{"version":3,"sources":["../node_modules/ag-grid-community/dist/ag-grid-community.auto.esm.js","../node_modules/react/index.js","../node_modules/date-fns/esm/_lib/requiredArgs/index.js","../node_modules/date-fns/esm/toDate/index.js","../node_modules/deepmerge/dist/es.js","../node_modules/lodash-es/isPlainObject.js","../node_modules/lodash-es/clone.js","../node_modules/lodash-es/toPath.js","../node_modules/lodash-es/cloneDeep.js","../node_modules/formik/dist/formik.esm.js","../node_modules/date-fns/esm/_lib/toInteger/index.js","../node_modules/prop-types/index.js","../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/classnames/index.js","../node_modules/lodash-es/isArray.js","../node_modules/@babel/runtime/helpers/assertThisInitialized.js","../node_modules/@babel/runtime/helpers/defineProperty.js","../node_modules/lodash-es/_root.js","../node_modules/lodash-es/isObjectLike.js","../node_modules/lodash-es/_baseHas.js","../node_modules/lodash-es/_isKey.js","../node_modules/lodash-es/_castPath.js","../node_modules/lodash-es/_hasPath.js","../node_modules/lodash-es/has.js","../node_modules/lodash-es/cloneDeepWith.js","../node_modules/lodash-es/isString.js","../node_modules/lodash-es/_iteratorToArray.js","../node_modules/lodash-es/_mapToArray.js","../node_modules/lodash-es/_setToArray.js","../node_modules/lodash-es/_asciiToArray.js","../node_modules/lodash-es/_hasUnicode.js","../node_modules/lodash-es/_unicodeToArray.js","../node_modules/lodash-es/_stringToArray.js","../node_modules/lodash-es/_baseValues.js","../node_modules/lodash-es/values.js","../node_modules/lodash-es/toArray.js","../node_modules/yup/es/util/printValue.js","../node_modules/yup/es/locale.js","../node_modules/yup/es/util/isSchema.js","../node_modules/yup/es/Condition.js","../node_modules/yup/es/ValidationError.js","../node_modules/yup/es/util/runValidations.js","../node_modules/yup/es/util/prependDeep.js","../node_modules/lodash-es/_createBaseFor.js","../node_modules/lodash-es/_baseFor.js","../node_modules/lodash-es/_baseForOwn.js","../node_modules/lodash-es/_setCacheAdd.js","../node_modules/lodash-es/_setCacheHas.js","../node_modules/lodash-es/_SetCache.js","../node_modules/lodash-es/_arraySome.js","../node_modules/lodash-es/_cacheHas.js","../node_modules/lodash-es/_equalArrays.js","../node_modules/lodash-es/_equalByTag.js","../node_modules/lodash-es/_equalObjects.js","../node_modules/lodash-es/_baseIsEqualDeep.js","../node_modules/lodash-es/_baseIsEqual.js","../node_modules/lodash-es/_baseIsMatch.js","../node_modules/lodash-es/_isStrictComparable.js","../node_modules/lodash-es/_getMatchData.js","../node_modules/lodash-es/_matchesStrictComparable.js","../node_modules/lodash-es/_baseMatches.js","../node_modules/lodash-es/_baseGet.js","../node_modules/lodash-es/get.js","../node_modules/lodash-es/_baseHasIn.js","../node_modules/lodash-es/hasIn.js","../node_modules/lodash-es/_baseMatchesProperty.js","../node_modules/lodash-es/identity.js","../node_modules/lodash-es/_baseProperty.js","../node_modules/lodash-es/_basePropertyDeep.js","../node_modules/lodash-es/property.js","../node_modules/lodash-es/_baseIteratee.js","../node_modules/lodash-es/mapValues.js","../node_modules/yup/es/Reference.js","../node_modules/yup/es/util/createValidation.js","../node_modules/yup/es/util/reach.js","../node_modules/yup/es/mixed.js","../node_modules/yup/es/util/inherits.js","../node_modules/yup/es/boolean.js","../node_modules/yup/es/util/isAbsent.js","../node_modules/yup/es/string.js","../node_modules/yup/es/number.js","../node_modules/yup/es/util/isodate.js","../node_modules/yup/es/date.js","../node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js","../node_modules/lodash-es/_arrayReduce.js","../node_modules/lodash-es/_basePropertyOf.js","../node_modules/lodash-es/_deburrLetter.js","../node_modules/lodash-es/deburr.js","../node_modules/lodash-es/_asciiWords.js","../node_modules/lodash-es/_hasUnicodeWord.js","../node_modules/lodash-es/_unicodeWords.js","../node_modules/lodash-es/words.js","../node_modules/lodash-es/_createCompounder.js","../node_modules/lodash-es/snakeCase.js","../node_modules/lodash-es/_baseSlice.js","../node_modules/lodash-es/_castSlice.js","../node_modules/lodash-es/_createCaseFirst.js","../node_modules/lodash-es/upperFirst.js","../node_modules/lodash-es/capitalize.js","../node_modules/lodash-es/camelCase.js","../node_modules/lodash-es/mapKeys.js","../node_modules/yup/es/util/sortFields.js","../node_modules/yup/es/util/sortByKeyOrder.js","../node_modules/yup/es/util/makePath.js","../node_modules/yup/es/object.js","../node_modules/yup/es/array.js","../node_modules/yup/es/Lazy.js","../node_modules/yup/es/index.js","../node_modules/lodash-es/_Symbol.js","../node_modules/ag-grid-react/lib/reactUi/useEffectOnce.js","../node_modules/ag-grid-react/lib/reactUi/beansContext.js","../node_modules/lodash-es/_getRawTag.js","../node_modules/lodash-es/_objectToString.js","../node_modules/lodash-es/_baseGetTag.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass.js","../node_modules/lodash-es/_coreJsData.js","../node_modules/lodash-es/_isMasked.js","../node_modules/lodash-es/_baseIsNative.js","../node_modules/lodash-es/_getValue.js","../node_modules/lodash-es/_getNative.js","../node_modules/axios/lib/utils.js","../node_modules/tiny-warning/dist/tiny-warning.esm.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","../node_modules/tiny-invariant/dist/tiny-invariant.esm.js","../node_modules/ag-grid-react/lib/reactUi/utils.js","../node_modules/lodash-es/isObject.js","../node_modules/lodash-es/_nativeKeys.js","../node_modules/lodash-es/_baseKeys.js","../node_modules/lodash-es/keys.js","../node_modules/lodash-es/_baseToString.js","../node_modules/lodash-es/toString.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/resolve-pathname/esm/resolve-pathname.js","../node_modules/value-equal/esm/value-equal.js","../node_modules/history/esm/history.js","../node_modules/date-fns/esm/startOfWeek/index.js","../node_modules/lodash-es/_DataView.js","../node_modules/lodash-es/_Promise.js","../node_modules/lodash-es/_Set.js","../node_modules/lodash-es/_WeakMap.js","../node_modules/lodash-es/_getTag.js","../node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js","../node_modules/lodash-es/_toKey.js","../node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js","../node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/date-fns/esm/_lib/protectedTokens/index.js","../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../node_modules/@babel/runtime/helpers/inheritsLoose.js","../node_modules/tslib/tslib.es6.js","../node_modules/file-selector/dist/es5/file.js","../node_modules/file-selector/dist/es5/file-selector.js","../node_modules/react-dropzone/dist/es/utils/index.js","../node_modules/react-dropzone/dist/es/index.js","../node_modules/react-country-flag/dist/index.es.js","../node_modules/react-phonenr-input/dist/index.js","../node_modules/react-formik-ui/dist/index.js","../node_modules/lodash-es/_nodeUtil.js","../node_modules/lodash-es/_toSource.js","../node_modules/react-fast-compare/index.js","../node_modules/object-assign/index.js","../node_modules/react-recaptcha-google/dist/index.js","../node_modules/lodash-es/isSymbol.js","../node_modules/property-expr/index.js","../node_modules/lodash-es/_listCacheClear.js","../node_modules/lodash-es/_assocIndexOf.js","../node_modules/lodash-es/_listCacheDelete.js","../node_modules/lodash-es/_listCacheGet.js","../node_modules/lodash-es/_listCacheHas.js","../node_modules/lodash-es/_listCacheSet.js","../node_modules/lodash-es/_ListCache.js","../node_modules/lodash-es/_defineProperty.js","../node_modules/lodash-es/_baseAssignValue.js","../node_modules/lodash-es/_Map.js","../node_modules/lodash-es/_stackClear.js","../node_modules/lodash-es/_stackDelete.js","../node_modules/lodash-es/_stackGet.js","../node_modules/lodash-es/_stackHas.js","../node_modules/lodash-es/_stackSet.js","../node_modules/lodash-es/_Stack.js","../node_modules/mini-create-react-context/dist/esm/index.js","../node_modules/react-router/esm/react-router.js","../node_modules/react-dom/index.js","../node_modules/lodash-es/isBuffer.js","../node_modules/date-fns/esm/startOfDay/index.js","../node_modules/lodash-es/_nativeCreate.js","../node_modules/lodash-es/_hashClear.js","../node_modules/lodash-es/_hashDelete.js","../node_modules/lodash-es/_hashGet.js","../node_modules/lodash-es/_hashHas.js","../node_modules/lodash-es/_hashSet.js","../node_modules/lodash-es/_Hash.js","../node_modules/lodash-es/_mapCacheClear.js","../node_modules/lodash-es/_isKeyable.js","../node_modules/lodash-es/_getMapData.js","../node_modules/lodash-es/_mapCacheDelete.js","../node_modules/lodash-es/_mapCacheGet.js","../node_modules/lodash-es/_mapCacheHas.js","../node_modules/lodash-es/_mapCacheSet.js","../node_modules/lodash-es/_MapCache.js","../node_modules/@babel/runtime/helpers/extends.js","../node_modules/moment/moment.js","../node_modules/react-tabs/esm/helpers/elementTypes.js","../node_modules/react-tabs/esm/helpers/childrenDeepMap.js","../node_modules/react-tabs/esm/components/UncontrolledTabs.js","../node_modules/react-tabs/esm/helpers/uuid.js","../node_modules/react-tabs/esm/helpers/count.js","../node_modules/react-tabs/esm/components/Tabs.js","../node_modules/react-tabs/esm/components/TabList.js","../node_modules/react-tabs/esm/components/Tab.js","../node_modules/react-tabs/esm/components/TabPanel.js","../node_modules/react-tabs/esm/index.js","../node_modules/react-recaptcha-google/node_modules/react/lib/ReactElement.js","../node_modules/webpack/buildin/global.js","../node_modules/ag-grid-react/lib/reactUi/jsComp.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","../node_modules/lodash-es/eq.js","../node_modules/lodash-es/_arrayMap.js","../node_modules/lodash-es/isLength.js","../node_modules/synchronous-promise/index.js","../node_modules/lodash-es/_baseUnary.js","../node_modules/lodash-es/isArrayLike.js","../node_modules/lodash-es/_isPrototype.js","../node_modules/lodash-es/_copyArray.js","../node_modules/lodash-es/_getPrototype.js","../node_modules/date-fns/esm/addMilliseconds/index.js","../node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js","../node_modules/libphonenumber-js/metadata.min.json.js","../node_modules/libphonenumber-js/es6/constants.js","../node_modules/libphonenumber-js/es6/util.js","../node_modules/libphonenumber-js/es6/ParseError.js","../node_modules/libphonenumber-js/es6/tools/semver-compare.js","../node_modules/libphonenumber-js/es6/metadata.js","../node_modules/libphonenumber-js/es6/extension.js","../node_modules/libphonenumber-js/es6/isViablePhoneNumber.js","../node_modules/libphonenumber-js/es6/parseDigits.js","../node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js","../node_modules/libphonenumber-js/es6/getNumberType_.js","../node_modules/libphonenumber-js/es6/isPossibleNumber_.js","../node_modules/libphonenumber-js/es6/IDD.js","../node_modules/libphonenumber-js/es6/RFC3966.js","../node_modules/libphonenumber-js/es6/validate_.js","../node_modules/libphonenumber-js/es6/format_.js","../node_modules/libphonenumber-js/es6/PhoneNumber.js","../node_modules/libphonenumber-js/es6/parse_.js","../node_modules/libphonenumber-js/es6/parsePhoneNumber_.js","../node_modules/libphonenumber-js/es6/parsePhoneNumber.js","../node_modules/libphonenumber-js/es6/parsePhoneNumberFromString_.js","../node_modules/libphonenumber-js/es6/parsePhoneNumberFromString.js","../node_modules/libphonenumber-js/es6/findNumbers/util.js","../node_modules/libphonenumber-js/es6/findNumbers/parsePreCandidate.js","../node_modules/libphonenumber-js/es6/findNumbers/isValidPreCandidate.js","../node_modules/libphonenumber-js/es6/findNumbers/utf-8.js","../node_modules/libphonenumber-js/es6/findNumbers/isValidCandidate.js","../node_modules/libphonenumber-js/es6/findPhoneNumbers_.js","../node_modules/libphonenumber-js/es6/findNumbers/LRUCache.js","../node_modules/libphonenumber-js/es6/findNumbers/RegExpCache.js","../node_modules/libphonenumber-js/es6/findNumbers/Leniency.js","../node_modules/libphonenumber-js/es6/PhoneNumberMatcher.js","../node_modules/libphonenumber-js/es6/AsYouType.js","../node_modules/libphonenumber-js/index.es6.js","../node_modules/lodash-es/_arrayEach.js","../node_modules/lodash-es/_assignValue.js","../node_modules/lodash-es/_copyObject.js","../node_modules/lodash-es/_baseAssign.js","../node_modules/lodash-es/_nativeKeysIn.js","../node_modules/lodash-es/_baseKeysIn.js","../node_modules/lodash-es/keysIn.js","../node_modules/lodash-es/_baseAssignIn.js","../node_modules/lodash-es/_copySymbols.js","../node_modules/lodash-es/_getSymbolsIn.js","../node_modules/lodash-es/_copySymbolsIn.js","../node_modules/lodash-es/_getAllKeysIn.js","../node_modules/lodash-es/_initCloneArray.js","../node_modules/lodash-es/_cloneArrayBuffer.js","../node_modules/lodash-es/_cloneDataView.js","../node_modules/lodash-es/_cloneRegExp.js","../node_modules/lodash-es/_cloneSymbol.js","../node_modules/lodash-es/_cloneTypedArray.js","../node_modules/lodash-es/_initCloneByTag.js","../node_modules/lodash-es/_baseCreate.js","../node_modules/lodash-es/_initCloneObject.js","../node_modules/lodash-es/_baseIsMap.js","../node_modules/lodash-es/isMap.js","../node_modules/lodash-es/_baseIsSet.js","../node_modules/lodash-es/isSet.js","../node_modules/lodash-es/_baseClone.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/inherits.js","../node_modules/lodash-es/_arrayFilter.js","../node_modules/lodash-es/_getSymbols.js","../node_modules/lodash-es/_Uint8Array.js","../node_modules/fbjs/lib/invariant.js","../node_modules/date-fns/esm/addDays/index.js","../node_modules/date-fns/esm/addMonths/index.js","../node_modules/lodash-es/_getAllKeys.js","../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/regenerator/index.js","../node_modules/react-recaptcha-google/node_modules/react/lib/reactProdInvariant.js","../node_modules/react-router-dom/esm/react-router-dom.js","../node_modules/lodash-es/_freeGlobal.js","../node_modules/lodash-es/isFunction.js","../node_modules/lodash-es/_isIndex.js","../node_modules/lodash-es/_baseGetAllKeys.js","../node_modules/lodash-es/_arrayPush.js","../node_modules/lodash-es/_overArg.js","../node_modules/lodash-es/stubArray.js","../node_modules/lodash.omit/index.js","../node_modules/date-fns/esm/subMilliseconds/index.js","../node_modules/date-fns/esm/_lib/format/longFormatters/index.js","../node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js","../node_modules/date-fns/esm/getDaysInMonth/index.js","../node_modules/date-fns/esm/startOfQuarter/index.js","../node_modules/date-fns/esm/locale/en-US/_lib/formatDistance/index.js","../node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.js","../node_modules/date-fns/esm/locale/en-US/_lib/formatLong/index.js","../node_modules/date-fns/esm/locale/en-US/_lib/formatRelative/index.js","../node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.js","../node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.js","../node_modules/date-fns/esm/locale/en-US/_lib/match/index.js","../node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.js","../node_modules/date-fns/esm/locale/en-US/index.js","../node_modules/date-fns/esm/locale/en-US/_lib/localize/index.js","../node_modules/lodash-es/memoize.js","../node_modules/lodash-es/_memoizeCapped.js","../node_modules/lodash-es/_stringToPath.js","../node_modules/lodash-es/_baseIsArguments.js","../node_modules/lodash-es/isArguments.js","../node_modules/lodash-es/_baseTimes.js","../node_modules/lodash-es/_arrayLikeKeys.js","../node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js","../node_modules/date-fns/esm/_lib/getUTCWeek/index.js","../node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js","../node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js","../node_modules/lodash-es/_baseIsTypedArray.js","../node_modules/lodash-es/isTypedArray.js","../node_modules/fbjs/lib/warning.js","../node_modules/react-is/index.js","../node_modules/webpack/buildin/harmony-module.js","../node_modules/get-intrinsic/index.js","../node_modules/function-bind/index.js","../node_modules/define-properties/index.js","../node_modules/react-autowhatever/dist/compareObjects.js","../node_modules/ag-grid-react/lib/shared/agGridColumn.js","../node_modules/ag-grid-react/lib/shared/changeDetectionService.js","../node_modules/ag-grid-react/lib/reactUi/agGridReactUi.js","../node_modules/ag-grid-react/lib/reactUi/reactComment.js","../node_modules/date-fns/esm/isValid/index.js","../node_modules/date-fns/esm/addMinutes/index.js","../node_modules/date-fns/esm/addHours/index.js","../node_modules/date-fns/esm/addWeeks/index.js","../node_modules/date-fns/esm/addYears/index.js","../node_modules/date-fns/esm/setMonth/index.js","../node_modules/gud/index.js","../node_modules/warning/warning.js","../node_modules/ag-grid-enterprise/dist/ag-grid-enterprise.auto.esm.js","../node_modules/formik/node_modules/scheduler/index.js","../node_modules/popper.js/dist/esm/popper.js","../node_modules/create-react-context/lib/index.js","../node_modules/path-to-regexp/index.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","../node_modules/react-recaptcha-google/node_modules/react/lib/ReactBaseClasses.js","../node_modules/react-recaptcha-google/node_modules/react/lib/ReactNoopUpdateQueue.js","../node_modules/fbjs/lib/emptyFunction.js","../node_modules/react-recaptcha-google/node_modules/react/lib/canDefineProperty.js","../node_modules/fbjs/lib/emptyObject.js","../node_modules/react-recaptcha-google/node_modules/react/lib/ReactCurrentOwner.js","../node_modules/react-recaptcha-google/node_modules/react/lib/ReactElementSymbol.js","../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/axios/lib/helpers/bind.js","../node_modules/axios/lib/helpers/buildURL.js","../node_modules/axios/lib/cancel/isCancel.js","../node_modules/axios/lib/defaults.js","../node_modules/axios/lib/adapters/xhr.js","../node_modules/axios/lib/core/createError.js","../node_modules/axios/lib/core/mergeConfig.js","../node_modules/axios/lib/cancel/Cancel.js","../node_modules/object-keys/index.js","../node_modules/object-keys/isArguments.js","../node_modules/has-symbols/shams.js","../node_modules/call-bind/index.js","../node_modules/regexp.prototype.flags/implementation.js","../node_modules/regexp.prototype.flags/polyfill.js","../node_modules/ag-grid-react/lib/shared/reactComponent.js","../node_modules/react-dom/server.browser.js","../node_modules/ag-grid-react/lib/shared/keyGenerator.js","../node_modules/ag-grid-react/lib/shared/newReactComponent.js","../node_modules/ag-grid-react/lib/shared/portalManager.js","../node_modules/ag-grid-react/lib/shared/reactFrameworkOverrides.js","../node_modules/lodash-es/stubFalse.js","../node_modules/lodash-es/_cloneBuffer.js","../node_modules/toposort/index.js","../node_modules/attr-accept/dist/index.js","../node_modules/react-datepicker/dist/react-datepicker.min.js","../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../node_modules/deep-equal/index.js","../node_modules/react-autosuggest/dist/index.js","../node_modules/ag-grid-react/main.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/slicedToArray.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/objectSpread2.js","../node_modules/react/cjs/react.production.min.js","../node_modules/react-dom/cjs/react-dom.production.min.js","../node_modules/scheduler/index.js","../node_modules/scheduler/cjs/scheduler.production.min.js","../node_modules/react-recaptcha-google/node_modules/react/react.js","../node_modules/react-recaptcha-google/node_modules/react/lib/React.js","../node_modules/react-recaptcha-google/node_modules/react/lib/lowPriorityWarning.js","../node_modules/react-recaptcha-google/node_modules/react/lib/ReactChildren.js","../node_modules/react-recaptcha-google/node_modules/react/lib/PooledClass.js","../node_modules/react-recaptcha-google/node_modules/react/lib/traverseAllChildren.js","../node_modules/react-recaptcha-google/node_modules/react/lib/getIteratorFn.js","../node_modules/react-recaptcha-google/node_modules/react/lib/KeyEscapeUtils.js","../node_modules/react-recaptcha-google/node_modules/react/lib/ReactDOMFactories.js","../node_modules/react-recaptcha-google/node_modules/react/lib/ReactPropTypes.js","../node_modules/prop-types/factory.js","../node_modules/prop-types/factoryWithTypeCheckers.js","../node_modules/react-is/cjs/react-is.production.min.js","../node_modules/prop-types/lib/has.js","../node_modules/prop-types/checkPropTypes.js","../node_modules/react-recaptcha-google/node_modules/react/lib/ReactVersion.js","../node_modules/react-recaptcha-google/node_modules/react/lib/createClass.js","../node_modules/create-react-class/factory.js","../node_modules/react-recaptcha-google/node_modules/react/lib/onlyChild.js","../node_modules/axios/index.js","../node_modules/axios/lib/axios.js","../node_modules/axios/lib/core/Axios.js","../node_modules/axios/lib/core/InterceptorManager.js","../node_modules/axios/lib/core/dispatchRequest.js","../node_modules/axios/lib/core/transformData.js","../node_modules/process/browser.js","../node_modules/axios/lib/helpers/normalizeHeaderName.js","../node_modules/axios/lib/core/settle.js","../node_modules/axios/lib/core/enhanceError.js","../node_modules/axios/lib/core/buildFullPath.js","../node_modules/axios/lib/helpers/isAbsoluteURL.js","../node_modules/axios/lib/helpers/combineURLs.js","../node_modules/axios/lib/helpers/parseHeaders.js","../node_modules/axios/lib/helpers/isURLSameOrigin.js","../node_modules/axios/lib/helpers/cookies.js","../node_modules/axios/lib/cancel/CancelToken.js","../node_modules/axios/lib/helpers/spread.js","../node_modules/formik/node_modules/scheduler/cjs/scheduler.production.min.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/date-fns/esm/isDate/index.js","../node_modules/date-fns/esm/subMinutes/index.js","../node_modules/date-fns/esm/subHours/index.js","../node_modules/date-fns/esm/subDays/index.js","../node_modules/date-fns/esm/subWeeks/index.js","../node_modules/date-fns/esm/subMonths/index.js","../node_modules/date-fns/esm/subYears/index.js","../node_modules/date-fns/esm/getSeconds/index.js","../node_modules/date-fns/esm/getMinutes/index.js","../node_modules/date-fns/esm/getHours/index.js","../node_modules/date-fns/esm/getDay/index.js","../node_modules/date-fns/esm/getDate/index.js","../node_modules/date-fns/esm/getMonth/index.js","../node_modules/date-fns/esm/getQuarter/index.js","../node_modules/date-fns/esm/getYear/index.js","../node_modules/date-fns/esm/getTime/index.js","../node_modules/date-fns/esm/setSeconds/index.js","../node_modules/date-fns/esm/setMinutes/index.js","../node_modules/date-fns/esm/setHours/index.js","../node_modules/date-fns/esm/setQuarter/index.js","../node_modules/date-fns/esm/setYear/index.js","../node_modules/date-fns/esm/min/index.js","../node_modules/date-fns/esm/max/index.js","../node_modules/date-fns/esm/differenceInCalendarDays/index.js","../node_modules/date-fns/esm/differenceInCalendarMonths/index.js","../node_modules/date-fns/esm/differenceInCalendarWeeks/index.js","../node_modules/date-fns/esm/differenceInCalendarYears/index.js","../node_modules/date-fns/esm/startOfMonth/index.js","../node_modules/date-fns/esm/startOfYear/index.js","../node_modules/date-fns/esm/endOfDay/index.js","../node_modules/date-fns/esm/endOfWeek/index.js","../node_modules/date-fns/esm/endOfMonth/index.js","../node_modules/date-fns/esm/isEqual/index.js","../node_modules/date-fns/esm/isSameDay/index.js","../node_modules/date-fns/esm/isSameMonth/index.js","../node_modules/date-fns/esm/isSameYear/index.js","../node_modules/date-fns/esm/isSameQuarter/index.js","../node_modules/date-fns/esm/isAfter/index.js","../node_modules/date-fns/esm/isBefore/index.js","../node_modules/date-fns/esm/isWithinInterval/index.js","../node_modules/date-fns/esm/parseISO/index.js","../node_modules/react-onclickoutside/dist/react-onclickoutside.es.js","../node_modules/object-keys/implementation.js","../node_modules/is-arguments/index.js","../node_modules/object-is/index.js","../node_modules/is-regex/index.js","../node_modules/call-bind/callBound.js","../node_modules/has-symbols/index.js","../node_modules/function-bind/implementation.js","../node_modules/has/src/index.js","../node_modules/has-tostringtag/shams.js","../node_modules/regexp.prototype.flags/index.js","../node_modules/has-property-descriptors/index.js","../node_modules/functions-have-names/index.js","../node_modules/regexp.prototype.flags/shim.js","../node_modules/is-date-object/index.js","../node_modules/create-react-context/lib/implementation.js","../node_modules/react-autosuggest/dist/Autosuggest.js","../node_modules/shallow-equal/arrays/index.js","../node_modules/react-autowhatever/dist/index.js","../node_modules/react-autowhatever/dist/Autowhatever.js","../node_modules/section-iterator/dist/index.js","../node_modules/react-themeable/dist/index.js","../node_modules/react-themeable/node_modules/object-assign/index.js","../node_modules/react-autowhatever/dist/SectionTitle.js","../node_modules/react-autowhatever/dist/ItemsList.js","../node_modules/react-autowhatever/dist/Item.js","../node_modules/react-autosuggest/dist/theme.js","../node_modules/path-to-regexp/node_modules/isarray/index.js","../node_modules/webpack/buildin/module.js","../node_modules/regenerator-runtime/runtime.js","../node_modules/ag-grid-react/lib/agGridReact.js","../node_modules/ag-grid-react/lib/legacy/agGridReactLegacy.js","../node_modules/ag-grid-react/lib/legacy/legacyReactComponent.js","../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../node_modules/ag-grid-react/lib/reactUi/cellRenderer/groupCellRenderer.js","../node_modules/ag-grid-react/lib/reactUi/cellRenderer/detailCellRenderer.js","../node_modules/ag-grid-react/lib/reactUi/gridComp.js","../node_modules/ag-grid-react/lib/reactUi/gridBodyComp.js","../node_modules/ag-grid-react/lib/reactUi/header/gridHeaderComp.js","../node_modules/ag-grid-react/lib/reactUi/header/headerRowContainerComp.js","../node_modules/ag-grid-react/lib/reactUi/header/headerRowComp.js","../node_modules/ag-grid-react/lib/reactUi/header/headerCellComp.js","../node_modules/ag-grid-react/lib/reactUi/header/headerGroupCellComp.js","../node_modules/ag-grid-react/lib/reactUi/header/headerFilterCellComp.js","../node_modules/ag-grid-react/lib/reactUi/rows/rowContainerComp.js","../node_modules/ag-grid-react/lib/reactUi/rows/rowComp.js","../node_modules/ag-grid-react/lib/reactUi/cells/cellComp.js","../node_modules/ag-grid-react/lib/reactUi/cells/popupEditorComp.js","../node_modules/ag-grid-react/lib/reactUi/cells/showJsRenderer.js","../node_modules/ag-grid-react/lib/reactUi/tabGuardComp.js","../node_modules/date-fns/esm/_lib/assign/index.js","../node_modules/date-fns/esm/_lib/setUTCDay/index.js","../node_modules/date-fns/esm/parse/_lib/parsers/index.js","../node_modules/date-fns/esm/_lib/setUTCWeek/index.js","../node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js","../node_modules/date-fns/esm/_lib/setUTCISODay/index.js","../node_modules/date-fns/esm/parse/index.js","../node_modules/date-fns/esm/_lib/addLeadingZeros/index.js","../node_modules/date-fns/esm/_lib/format/lightFormatters/index.js","../node_modules/date-fns/esm/_lib/format/formatters/index.js","../node_modules/date-fns/esm/_lib/getUTCDayOfYear/index.js","../node_modules/date-fns/esm/format/index.js","../node_modules/react-popper/lib/esm/Manager.js","../node_modules/react-popper/lib/esm/utils.js","../node_modules/react-popper/lib/esm/Popper.js","../node_modules/react-popper/lib/esm/Reference.js","../node_modules/react-popper/lib/esm/index.js","../node_modules/date-fns/esm/getWeekYear/index.js","../node_modules/date-fns/esm/startOfWeekYear/index.js","../node_modules/date-fns/esm/getWeek/index.js"],"names":["makeNull","value","exists","allowEmptyString","missing","missingOrEmpty","length","toStringOrNull","toString","attrToNumber","undefined","isNaN","valueParsed","parseInt","attrToBoolean","test","defaultComparator","valueA","valueB","accentedCompare","valueAMissing","valueBMissing","toNumber","doQuickCompare","a","b","localeCompare","e","values","object","Set","Map","arr_1","forEach","push","Object","GenericUtils","freeze","__proto__","attrToString","referenceCompare","left","right","jsonEquals","val1","val2","JSON","stringify","ColumnKeyCreator","this","existingKeys","prototype","addExistingKeys","keys","i","getUniqueKey","colId","colField","count","idToTry","iterateObject","callback","Array","isArray","index","key","cloneObject","copy","deepCloneDefinition","keysToSkip","obj","res","indexOf","sourceIsSimpleObject","isNonNullObject","constructor","getProperty","setProperty","copyPropertyIfPresent","source","target","property","transform","getAllKeysInObjects","objects","allValues","filter","getAllValuesInObject","anyObject","ret","hasOwnProperty","propertyIsEnumerable","mergeDeep","dest","copyUndefined","makeCopyOfSimpleObjects","sourceValue","destValue","getValueUsingField","data","field","fieldContainsDots","fields","split","currentObject","removeAllReferences","objectName","proto","getPrototypeOf","properties","console","warn","writable","defineProperties","ObjectUtils","deepCloneObject","parse","copyPropertiesIfPresent","_i","arguments","p","missingOrEmptyObject","get","expression","defaultValue","objectToRead","shift","set","objectToUpdate","deepFreeze","v","doOnceFlags","doOnce","func","getFunctionName","funcConstructor","name","matches","exec","trim","isFunction","val","call","apply","executeInAWhile","funcs","executeAfter","executeNextVMTurnFuncs","executeNextVMTurnPending","executeNextVMTurn","window","setTimeout","funcsCopy","slice","milliseconds","debounce","wait","immediate","timeout","args","context","callNow","clearTimeout","throttle","previousCall","currentCall","Date","getTime","waitUntil","condition","timeoutMessage","timeStamp","interval","executed","internalCallback","reachedTimeout","clearInterval","setInterval","callIfPresent","FunctionUtils","compose","fns","arg","reduce","composed","f","noop","Context","params","logger","beanWrappers","destroyed","beanClasses","contextParams","log","createBeans","beanInstances","getBeanInstances","wireBeans","map","beanEntry","beanInstance","createBean","bean","afterPreCreateCallback","Error","autoWireBeans","methodWireBeans","callLifeCycleMethods","_this","createBeanWrapper","bind","constructorParamsMeta","__agBeanMetaData","autowireMethods","agConstructor","constructorParams","getBeansForParameters","newInstance","argArray","concat","applyToConstructor","createdBeanNames","join","BeanClass","metaData","beanName","error","forEachMetaDataInHierarchy","attributes","agClassAttributes","attribute","otherBean","lookupBeanInstance","optional","attributeName","methodName","wireParams","initParams","getBeanName","constructorString","substring","parameters","beansList","paramIndex","otherBeanName","Number","wiringBean","providedBeanInstances","lifeCycleMethod","callLifeCycleMethodsOnBean","methodToIgnore","allMethods","methods","getBean","destroy","destroyBeans","destroyBean","beans","beanAny","PreConstruct","descriptor","props","getOrCreateProps$1","preConstructMethods","PostConstruct","postConstructMethods","PreDestroy","preDestroyMethods","Bean","classConstructor","Autowired","propertyKey","autowiredFunc","Optional","classPrototype","methodOrAttributeName","Qualifier","ModuleNames","__assign$h","assign","t","s","n","__decorate$2A","decorators","desc","d","c","r","getOwnPropertyDescriptor","Reflect","decorate","defineProperty","__param$a","decorator","EventService","allSyncListeners","allAsyncListeners","globalSyncListeners","globalAsyncListeners","asyncFunctionsQueue","scheduled","firedEvents","setBeans","loggerFactory","gridOptionsWrapper","frameworkOverrides","globalEventListener","async","useAsyncEvents","addGlobalListener","getListeners","eventType","autoCreateListenerCollection","listenerMap","listeners","noRegisteredListenersExist","size","addEventListener","listener","add","removeEventListener","delete","removeGlobalListener","dispatchEvent","event","agEvent","api","getApi","columnApi","getColumnApi","getContext","dispatchToListeners","type","dispatchEventOnce","dispatchAsync","processEventListeners","flushAsyncQueue","queueCopy","Constants","ROW_BUFFER_SIZE","LAYOUT_INTERVAL","BATCH_WAIT_MILLIS","EXPORT_TYPE_DRAG_COPY","EXPORT_TYPE_CLIPBOARD","EXPORT_TYPE_EXCEL","EXPORT_TYPE_CSV","ROW_MODEL_TYPE_INFINITE","ROW_MODEL_TYPE_VIEWPORT","ROW_MODEL_TYPE_CLIENT_SIDE","ROW_MODEL_TYPE_SERVER_SIDE","ALWAYS","ONLY_WHEN_GROUPING","PINNED_TOP","PINNED_BOTTOM","DOM_LAYOUT_NORMAL","DOM_LAYOUT_PRINT","DOM_LAYOUT_AUTO_HEIGHT","GROUP_AUTO_COLUMN_ID","SOURCE_PASTE","PINNED_RIGHT","PINNED_LEFT","SORT_ASC","SORT_DESC","INPUT_SELECTOR","FOCUSABLE_SELECTOR","FOCUSABLE_EXCLUDE","ModuleRegistry","register","module","moduleBased","modulesMap","moduleName","registerModules","modules","assertRegistered","reason","isRegistered","warningMessage","warningKey","getRegisteredModules","isPackageBased","__decorate$2z","instanceIdSequence$4","Column","colDef","userProvidedColDef","primary","instanceId","autoHeaderHeight","moving","menuVisible","filterActive","eventService","rowGroupActive","pivotActive","aggregationActive","setState","getInstanceId","sort","initialSort","sortIndex","initialSortIndex","hide","initialHide","visible","pinned","setPinned","initialPinned","flex","initialFlex","setColDef","initMinAndMaxWidths","initDotNotation","createColumnEvent","EVENT_COL_DEF_CHANGED","getUserProvidedColDef","setParent","parent","getParent","setOriginalParent","originalParent","getOriginalParent","initialise","resetActualWidth","validate","suppressDotNotation","isSuppressFieldDotNotation","tooltipFieldContainsDots","tooltipField","minWidth","columnUtils","calculateColMinWidth","maxWidth","calculateColMaxWidth","initialWidth","calculateColInitialWidth","setActualWidth","isEmptyGroup","isRowGroupDisplayed","showRowGroup","showingAllGroups","showingThisGroup","isPrimary","isFilterAllowed","filterFramework","isFieldContainsDots","isTooltipFieldContainsDots","colDefAny","warnOnce","msg","isRowModelDefault","RowGroupingModule","item","RichSelectModule","cellEditor","isTreeData","width","pinnedRowCellRenderer","pinnedRowCellRendererParams","pinnedRowCellRendererFramework","pinnedRowValueGetter","createColumnFunctionCallbackParams","rowNode","node","column","isSuppressNavigable","suppressNavigable","userFunc","isCellEditable","group","isEnableGroupEdit","isColumnFunc","editable","isSuppressFillHandle","suppressFillHandle","isAutoHeight","autoHeight","isAutoHeaderHeight","isRowDrag","rowDrag","isDndSource","dndSource","isCellCheckboxSelection","checkboxSelection","isSuppressPaste","suppressPaste","isResizable","resizable","setMoving","EVENT_MOVING_CHANGED","columns","isMoving","getSort","setSort","EVENT_SORT_CHANGED","setMenuVisible","EVENT_MENU_VISIBLE_CHANGED","isMenuVisible","isSortAscending","isSortDescending","isSortNone","isSorting","getSortIndex","setSortIndex","sortOrder","setAggFunc","aggFunc","getAggFunc","getLeft","getOldLeft","oldLeft","getRight","actualWidth","setLeft","EVENT_LEFT_CHANGED","isFilterActive","setFilterActive","active","additionalEventAttributes","EVENT_FILTER_ACTIVE_CHANGED","filterChangedEvent","EVENT_FILTER_CHANGED","setFirstRightPinned","firstRightPinned","EVENT_FIRST_RIGHT_PINNED_CHANGED","setLastLeftPinned","lastLeftPinned","EVENT_LAST_LEFT_PINNED_CHANGED","isFirstRightPinned","isLastLeftPinned","isPinned","isPinnedLeft","isPinnedRight","getPinned","setVisible","newValue","EVENT_VISIBLE_CHANGED","isVisible","getColDef","getColumnGroupShow","columnGroupShow","getColId","getId","getUniqueId","getDefinition","getActualWidth","getAutoHeaderHeight","setAutoHeaderHeight","height","changed","createBaseColDefParams","getColSpan","colSpan","Math","max","getRowSpan","rowSpan","silent","min","fireColumnWidthChangedEvent","EVENT_WIDTH_CHANGED","isGreaterThanMax","getMinWidth","getMaxWidth","getFlex","setFlex","setMinimum","setRowGroupActive","rowGroup","EVENT_ROW_GROUP_CHANGED","isRowGroupActive","setPivotActive","pivot","EVENT_PIVOT_CHANGED","isPivotActive","isAnyFunctionActive","isValueActive","isAnyFunctionAllowed","isAllowPivot","isAllowRowGroup","isAllowValue","setValueActive","EVENT_VALUE_CHANGED","enablePivot","enableValue","enableRowGroup","getMenuTabs","defaultValues","menuTabs","isLockPosition","lockPosition","isLockVisible","lockVisible","isLockPinned","lockPinned","firstExistingValue","last","arr","areEqual","comparator","every","sortNumerically","array","removeFromArray","splice","removeAllFromArray","toRemove","insertIntoArray","toIndex","moveInArray","objectsToMove","reverse","includes","flatten","arrayOfArrays","pushAll","ArrayUtils","existsAndNotEmpty","compareArrays","array1","array2","shallowCompare","arr1","arr2","removeRepeatsFromArray","thisOneMatches","nextOneMatches","insertArrayIntoArray","src","toStrings","forEachReverse","list","action","__decorate$2y","ColumnGroup","providedColumnGroup","groupId","displayedChildren","localEventService","createUniqueId","reset","children","allLeafColumns","getProvidedColumnGroup","getLeafColumns","col","checkLeft","child","isEnableRtl","lastChildLeft","firstChildLeft","createAgEvent","getGroupId","isChildInThisGroupDeepSearch","wantedChild","result","foundChild","groupActualWidth","groupChild","addChild","getDisplayedChildren","addLeafColumns","getDisplayedLeafColumns","addDisplayedLeafColumns","getColGroupDef","isPadding","isExpandable","isExpanded","setExpanded","expanded","leafColumns","getChildren","getOriginalColumnGroup","getPaddingLevel","calculateDisplayedColumns","parentWithExpansion","EVENT_DISPLAYED_CHILDREN_CHANGED","HEADER_GROUP_SHOW_OPEN","HEADER_GROUP_SHOW_CLOSED","ProvidedColumnGroup","colGroupDef","padding","level","expandable","openByDefault","getLevel","some","EVENT_EXPANDED_CHANGED","setChildren","setupExpandable","setExpandable","onColumnVisibilityChanged","atLeastOneShowingWhenOpen","atLeastOneShowingWhenClosed","atLeastOneChangeable","findChildrenRemovingPadding","j","abstractColumn","headerGroupShow","event_1","EVENT_EXPANDABLE_CHANGED","process","items","DefaultColumnTypes","numericColumn","headerClass","cellClass","rightAligned","PASSIVE_EVENTS$1","supports","stopPropagationForAgGrid","isStopPropagationForAgGrid","isEventSupported","tags","select","change","submit","load","abort","eventName","el","document","createElement","getCtrlForEvent","sourceElement","renderedComp","getDomData","parentElement","isElementInEventPath","element","getEventPath","createEventPath","pointer","eventNoType","path","composedPath","__agGridEventPath","addSafePassiveEventListener","eElement","options","passive","EventUtils","addChangeListener","addAgGridEventPath","__decorate$2x","BeanStub","destroyFunctions","__v_skip","isAlive","getFrameworkOverrides","EVENT_DESTROYED","dispatchEventAsync","addManagedListener","HTMLElement","destroyFunc","fn","addDestroyFunc","createManagedBean","__extends$2U","_extendStatics","setPrototypeOf","__","create","__decorate$2w","__param$9","ColumnFactory","_super","createColumnTree","defs","primaryColumns","existingTree","columnKeyCreator","_a","extractExistingTreeData","existingCols","existingGroups","existingColKeys","unbalancedTree","recursivelyCreateColumns","treeDept","findMaxDept","columnTree","balanceColumnTree","depthFirstOriginalTreeSearch","createForAutoGroups","autoGroupCols","gridBalancedTree","createAutoGroupTreeItem","balancedColumnTree","nextChild","findDepth","autoGroup","dept","currentDept","columnDept","originalGroup","newChildren","firstPaddedGroup","currentPaddedGroup","newColId","colGroupDefMerged","createMergedColGroupDef","paddedGroup","leaf","treeChildren","maxDeptThisLevel","newDept","existingColsCopy","def","isColumnGroup","createColumnGroup","createColumn","existingColumns","providedGroup","existingGroup","findExistingGroup","getDefaultColGroupDef","checkForDeprecatedItems","colDefMerged","mergeColDefs","findExistingColumn","applyColumnState","widthBeforeUpdate","newColDef","find","existingCol","existingColDef","newHasId","newHasField","newGroupDef","defaultColDef","getDefaultColDef","columnType","assignColumnTypes","autoGroupColDef","getAutoGroupColumnDef","isSortingCoupled","isColumnsSortingCoupledToGroup","typeKeys","allColumnTypes","getColumnTypes","typeColDef","colDefNoType","headerGroup","suppressRowGroup","suppressAggregation","displayName","headerName","abstractColDef","Events","EVENT_COLUMN_EVERYTHING_CHANGED","EVENT_NEW_COLUMNS_LOADED","EVENT_COLUMN_PIVOT_MODE_CHANGED","EVENT_COLUMN_ROW_GROUP_CHANGED","EVENT_EXPAND_COLLAPSE_ALL","EVENT_COLUMN_PIVOT_CHANGED","EVENT_GRID_COLUMNS_CHANGED","EVENT_COLUMN_VALUE_CHANGED","EVENT_COLUMN_MOVED","EVENT_COLUMN_VISIBLE","EVENT_COLUMN_PINNED","EVENT_COLUMN_GROUP_OPENED","EVENT_COLUMN_RESIZED","EVENT_DISPLAYED_COLUMNS_CHANGED","EVENT_VIRTUAL_COLUMNS_CHANGED","EVENT_ASYNC_TRANSACTIONS_FLUSHED","EVENT_ROW_GROUP_OPENED","EVENT_ROW_DATA_CHANGED","EVENT_ROW_DATA_UPDATED","EVENT_PINNED_ROW_DATA_CHANGED","EVENT_RANGE_SELECTION_CHANGED","EVENT_CHART_CREATED","EVENT_CHART_RANGE_SELECTION_CHANGED","EVENT_CHART_OPTIONS_CHANGED","EVENT_CHART_DESTROYED","EVENT_TOOL_PANEL_VISIBLE_CHANGED","EVENT_COLUMN_PANEL_ITEM_DRAG_START","EVENT_COLUMN_PANEL_ITEM_DRAG_END","EVENT_MODEL_UPDATED","EVENT_PASTE_START","EVENT_PASTE_END","EVENT_FILL_START","EVENT_FILL_END","EVENT_CELL_CLICKED","EVENT_CELL_DOUBLE_CLICKED","EVENT_CELL_MOUSE_DOWN","EVENT_CELL_CONTEXT_MENU","EVENT_CELL_VALUE_CHANGED","EVENT_CELL_EDIT_REQUEST","EVENT_ROW_VALUE_CHANGED","EVENT_CELL_FOCUSED","EVENT_FULL_WIDTH_ROW_FOCUSED","EVENT_ROW_SELECTED","EVENT_SELECTION_CHANGED","EVENT_CELL_KEY_DOWN","EVENT_CELL_KEY_PRESS","EVENT_CELL_MOUSE_OVER","EVENT_CELL_MOUSE_OUT","EVENT_FILTER_MODIFIED","EVENT_FILTER_OPENED","EVENT_VIRTUAL_ROW_REMOVED","EVENT_ROW_CLICKED","EVENT_ROW_DOUBLE_CLICKED","EVENT_GRID_READY","EVENT_GRID_SIZE_CHANGED","EVENT_VIEWPORT_CHANGED","EVENT_SCROLLBAR_WIDTH_CHANGED","EVENT_FIRST_DATA_RENDERED","EVENT_DRAG_STARTED","EVENT_DRAG_STOPPED","EVENT_CHECKBOX_CHANGED","EVENT_ROW_EDITING_STARTED","EVENT_ROW_EDITING_STOPPED","EVENT_CELL_EDITING_STARTED","EVENT_CELL_EDITING_STOPPED","EVENT_BODY_SCROLL","EVENT_BODY_SCROLL_END","EVENT_HEIGHT_SCALE_CHANGED","EVENT_PAGINATION_CHANGED","EVENT_COMPONENT_STATE_CHANGED","EVENT_BODY_HEIGHT_CHANGED","EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED","EVENT_SCROLL_VISIBILITY_CHANGED","EVENT_COLUMN_HOVER_CHANGED","EVENT_FLASH_CELLS","EVENT_PAGINATION_PIXEL_OFFSET_CHANGED","EVENT_DISPLAYED_ROWS_CHANGED","EVENT_LEFT_PINNED_WIDTH_CHANGED","EVENT_RIGHT_PINNED_WIDTH_CHANGED","EVENT_ROW_CONTAINER_HEIGHT_CHANGED","EVENT_HEADER_HEIGHT_CHANGED","EVENT_COLUMN_HEADER_HEIGHT_CHANGED","EVENT_ROW_DRAG_ENTER","EVENT_ROW_DRAG_MOVE","EVENT_ROW_DRAG_LEAVE","EVENT_ROW_DRAG_END","EVENT_POPUP_TO_FRONT","EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST","EVENT_COLUMN_PIVOT_CHANGE_REQUEST","EVENT_COLUMN_VALUE_CHANGE_REQUEST","EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST","EVENT_KEYBOARD_FOCUS","EVENT_MOUSE_FOCUS","EVENT_STORE_UPDATED","GroupInstanceIdCreator","existingIds","getInstanceIdForKey","lastResult","reUnescapedHtml","HTML_ESCAPES","camelCaseToHyphen","str","replace","g","toLowerCase","hyphenToCamelCase","toUpperCase","capitalise","substr","escapeString","toEscape","chr","camelCaseToHumanText","camelCase","word","StringUtils","utf8_encode","stringFromCharCode","String","fromCharCode","createByte","point","encodeCodePoint","padStart","symbol","checkScalarValue","codePoints","string","output","extra","len","counter","charCodeAt","ucs2decode","byteString","convertToMap","pair","MapUtils","mapById","_","__read$o","o","m","Symbol","iterator","ar","next","done","__spread$i","ColDefUtil","STRING_PROPERTIES","OBJECT_PROPERTIES","ARRAY_PROPERTIES","NUMBER_PROPERTIES","BOOLEAN_PROPERTIES","FUNCTION_PROPERTIES","ALL_PROPERTIES","FRAMEWORK_PROPERTIES","__read$n","__spread$h","PropertyKeys","__assign$g","__read$m","__spread$g","ComponentUtil","getEventCallbacks","EVENT_CALLBACKS","EVENTS","getCallbackForEvent","copyAttributesToGridOptions","gridOptions","component","skipEventDeprecationCheck","pGridOptions","keyExists","groupAggFiltering","toBoolean","processOnChange","changes","changesToApply","groupDisplayType","currentValue","setGroupDisplayType","rowClass","setRowClass","enableCellTextSelection","setEnableCellTextSelection","quickFilterText","setQuickFilter","autoGroupColumnDef","setAutoGroupColumnDef","columnDefs","setColumnDefs","setDefaultColDef","paginationPageSize","paginationSetPageSize","pivotMode","setPivotMode","groupRemoveSingleChildren","setGroupRemoveSingleChildren","suppressRowDrag","setSuppressRowDrag","suppressMoveWhenRowDragging","setSuppressMoveWhenRowDragging","suppressRowClickSelection","setSuppressRowClickSelection","suppressClipboardPaste","setSuppressClipboardPaste","headerHeight","setHeaderHeight","dynamicApi","setterName","charAt","PUBLIC_EVENTS","EXCLUDED_INTERNAL_EVENTS","isSafari","isIE","isEdge","isChrome","isFirefox","isMacOs","isIOS","invisibleScrollbar","browserScrollbarWidth","browserInfo","SideBarDefParser","toParse","toolPanels","DEFAULT_COLUMN_COMP","DEFAULT_FILTER_COMP","defaultToolPanel","comps_1","lookupResult","DEFAULT_BY_KEY","id","parseComponents","hiddenByDefault","position","from","it","toAdd","labelDefault","labelKey","iconKey","toolPanel","filters","__values$5","TypeError","getBrowserInfo","tem","version","userAgent","navigator","match","parseFloat","appName","appVersion","isBrowserEdge","documentMode","StyleMedia","isBrowserSafari","isBrowserChrome","win","chrome","webstore","runtime","vendor","isBrowserFirefox","InstallTrigger","isMacOsUserAgent","platform","isIOSUserAgent","maxTouchPoints","MSStream","browserSupportsPreventScroll","getTabIndex","numberTabIndex","tabIndex","getAttribute","getMaxDivHeight","body","testUpTo","div","appendChild","style","clientHeight","removeChild","getScrollbarWidth","initScrollbarWidthAndVisibility","opacity","overflow","msOverflowStyle","offsetWidth","clientWidth","parentNode","isInvisibleScrollbar","getBodyWidth","innerHeight","innerWidth","documentElement","getBodyHeight","BrowserUtils","hasOverflowScrolling","e_1","prefixes","found","getElementsByTagName","setAttribute","prefix","computedStyle","getComputedStyle","overflowScrolling","prefixes_1","prefixes_1_1","e_1_1","return","fuzzyCheckStrings","inputValues","validValues","allSuggestions","fuzzyMatches","invalidInputs","inputValue","validValue","invalidInput","fuzzySuggestions","hideIrrelevant","weighted","search","string_weighted_distances","string_distances","thisSuggestions","text","relevance","toLocaleLowerCase","suggestion","get_bigrams","ref","str1","str2","pairs1","pairs2","union","hit_count","len1","x","k","weight","lastIndex","idx","FuzzyMatchUtils","padStartWidthZeros","totalStringSize","createArrayOfNumbers","first","isNumeric","isFinite","formatNumberCommas","thousandSeparator","decimalSeparator","NumberUtils","cleanNumber","floor","decToHex","number","bytes","hex","formatNumberTwoDecimalPlacesAndCommas","round","sum","total","__assign$f","__decorate$2v","__param$8","__read$l","__spread$f","isTrue","oneOrGreater","valueNumber","GridOptionsWrapper","propertyEventService","domDataKey","random","GridOptionsWrapper_1","agWire","gridApi","checkForDeprecated","checkForViolations","init","suppressPropertyNamesCheck","checkGridOptionsProperties","checkColumnDefProperties","sideBar","globalEventHandler","isGroupSelectsChildren","isSuppressParentsInRowNodes","isRowSelectionMulti","isRowModelServerSide","isGroupRemoveSingleChildren","isGroupHideOpenParents","prop","groupDefaultExpanded","enableRangeSelection","RangeSelectionModule","isEnableRangeHandle","isEnableFillHandle","isGroupRowsSticky","isMasterDetail","isPagination","warnOfDeprecaredIcon","icons","userProperties","getOwnPropertyNames","validProperties","checkProperties","validPropertiesAndExceptions","containerName","docsUrl","invalidProperties","mergeGridCommonParams","callbackParams","mergedParams","getDomDataKey","domData","setDomData","isRowSelection","rowSelection","isSuppressRowDeselection","suppressRowDeselection","isRowMultiSelectWithClick","rowMultiSelectWithClick","isPivotMode","isSuppressExpandablePivotGroups","suppressExpandablePivotGroups","getPivotColumnGroupTotals","pivotColumnGroupTotals","getPivotRowTotals","pivotRowTotals","isRowModelInfinite","rowModelType","isRowModelViewport","isFullRowEdit","editType","isSuppressFocusAfterRefresh","suppressFocusAfterRefresh","isSuppressBrowserResizeObserver","suppressBrowserResizeObserver","isSuppressMaintainUnsortedOrder","suppressMaintainUnsortedOrder","isSuppressClearOnFillReduction","suppressClearOnFillReduction","isShowToolPanel","getSideBar","isSuppressTouch","suppressTouch","isMaintainColumnOrder","maintainColumnOrder","isSuppressRowTransform","suppressRowTransform","isSuppressColumnStateEvents","suppressColumnStateEvents","isAllowDragFromColumnsToolPanel","allowDragFromColumnsToolPanel","suppressAsyncEvents","isEnableCellChangeFlash","enableCellChangeFlash","getCellFlashDelay","cellFlashDelay","getCellFadeDelay","cellFadeDelay","groupSelectsChildren","isSuppressRowHoverHighlight","suppressRowHoverHighlight","isColumnHoverHighlight","columnHoverHighlight","isGroupSelectsFiltered","groupSelectsFiltered","groupHideOpenParents","isGroupMaintainOrder","groupMaintainOrder","isGroupMultiAutoColumn","matchesGroupDisplayType","isGroupUseEntireRow","groupRowsSticky","isGroupSuppressAutoColumn","treeDataDisplayType","matchesTreeDataDisplayType","isGroupRemoveLowestSingleChildren","groupRemoveLowestSingleChildren","isGroupIncludeFooter","groupIncludeFooter","isGroupIncludeTotalFooter","groupIncludeTotalFooter","isGroupSuppressBlankHeader","groupSuppressBlankHeader","isSuppressRowClickSelection","isSuppressCellFocus","suppressCellFocus","isSuppressMultiSort","suppressMultiSort","isAlwaysMultiSort","alwaysMultiSort","isMultiSortKeyCtrl","multiSortKey","isPivotSuppressAutoColumn","pivotSuppressAutoColumn","isSuppressDragLeaveHidesColumns","suppressDragLeaveHidesColumns","isSuppressRowGroupHidesColumns","suppressRowGroupHidesColumns","isSuppressScrollOnNewData","suppressScrollOnNewData","isSuppressScrollWhenPopupsAreOpen","suppressScrollWhenPopupsAreOpen","isRowDragEntireRow","rowDragEntireRow","isSuppressRowDrag","isRowDragManaged","rowDragManaged","isSuppressMoveWhenRowDragging","isRowDragMultiRow","rowDragMultiRow","getDomLayout","domLayout","isSuppressHorizontalScroll","suppressHorizontalScroll","isSuppressMaxRenderedRowRestriction","suppressMaxRenderedRowRestriction","isExcludeChildrenWhenTreeDataFiltering","excludeChildrenWhenTreeDataFiltering","isAlwaysShowHorizontalScroll","alwaysShowHorizontalScroll","isAlwaysShowVerticalScroll","alwaysShowVerticalScroll","isDebounceVerticalScrollbar","debounceVerticalScrollbar","isSuppressLoadingOverlay","suppressLoadingOverlay","isSuppressNoRowsOverlay","suppressNoRowsOverlay","suppressFieldDotNotation","getPinnedTopRowData","pinnedTopRowData","getPinnedBottomRowData","pinnedBottomRowData","isFunctionsPassive","functionsPassive","isSuppressChangeDetection","suppressChangeDetection","isSuppressAnimationFrame","suppressAnimationFrame","getQuickFilterText","isCacheQuickFilter","cacheQuickFilter","isUnSortIcon","unSortIcon","isSuppressMenuHide","suppressMenuHide","isEnterMovesDownAfterEdit","enterMovesDownAfterEdit","isEnterMovesDown","enterMovesDown","isUndoRedoCellEditing","undoRedoCellEditing","getUndoRedoCellEditingLimit","undoRedoCellEditingLimit","getRowStyle","rowStyle","getRowClass","getRowStyleFunc","getRowClassFunc","rowClassRules","isServerSideInfiniteScroll","serverSideInfiniteScroll","getServerSideGroupLevelParamsFunc","getServerSideGroupLevelParams","getCreateChartContainerFunc","createChartContainer","getPopupParent","popupParent","getBlockLoadDebounceMillis","blockLoadDebounceMillis","getPostProcessPopupFunc","postProcessPopup","getPaginationNumberFormatterFunc","paginationNumberFormatter","getChildCountFunc","getChildCount","getIsApplyServerSideTransactionFunc","isApplyServerSideTransaction","getInitialGroupOrderComparator","initialGroupOrderComparator","defaultGroupOrderComparator","nodeA","nodeB","getIsFullWidthCellFunc","isFullWidthRow","isFullWidthCell","getFullWidthCellRendererParams","fullWidthCellRendererParams","isEmbedFullWidthRows","embedFullWidthRows","deprecatedEmbedFullWidthRows","isDetailRowAutoHeight","detailRowAutoHeight","getSuppressKeyboardEventFunc","suppressKeyboardEvent","getBusinessKeyForNodeFunc","getBusinessKeyForNode","isReadOnlyEdit","readOnlyEdit","isImmutableData","getRowIdProvided","getRowId","immutableData","resetRowDataOnUpdate","isEnsureDomOrder","ensureDomOrder","isEnableCharts","enableCharts","GridChartsModule","getColResizeDefault","colResizeDefault","isSingleClickEdit","singleClickEdit","isSuppressClickEdit","suppressClickEdit","isStopEditingWhenCellsLoseFocus","stopEditingWhenCellsLoseFocus","getGroupDefaultExpanded","getMaxConcurrentDatasourceRequests","maxConcurrentDatasourceRequests","getMaxBlocksInCache","maxBlocksInCache","getCacheOverflowSize","cacheOverflowSize","getPaginationPageSize","isPaginateChildRows","paginateChildRows","getCacheBlockSize","cacheBlockSize","getInfiniteInitialRowCount","infiniteInitialRowCount","getServerSideInitialRowCount","rowCount","serverSideInitialRowCount","isPurgeClosedRowNodes","purgeClosedRowNodes","isSuppressPaginationPanel","suppressPaginationPanel","getRowData","rowData","enableRtl","getRowGroupPanelShow","rowGroupPanelShow","getPivotPanelShow","pivotPanelShow","isAngularCompileRows","angularCompileRows","isAngularCompileFilters","angularCompileFilters","isDebug","debug","getColumnDefs","columnTypes","getDatasource","datasource","getViewportDatasource","viewportDatasource","getServerSideDatasource","serverSideDatasource","isAccentedSort","accentedSort","isEnableBrowserTooltips","enableBrowserTooltips","isEnableCellExpressions","enableCellExpressions","enableGroupEdit","isSuppressMiddleClickScrolls","suppressMiddleClickScrolls","isPreventDefaultOnContextMenu","preventDefaultOnContextMenu","isSuppressPreventDefaultOnMouseWheel","suppressPreventDefaultOnMouseWheel","isSuppressColumnVirtualisation","suppressColumnVirtualisation","isSuppressRowVirtualisation","suppressRowVirtualisation","isSuppressContextMenu","suppressContextMenu","isAllowContextMenuWithControlKey","allowContextMenuWithControlKey","isSuppressCopyRowsToClipboard","suppressCopyRowsToClipboard","isSuppressCopySingleCellRanges","suppressCopySingleCellRanges","isCopyHeadersToClipboard","copyHeadersToClipboard","isCopyGroupHeadersToClipboard","copyGroupHeadersToClipboard","isSuppressClipboardPaste","isSuppressLastEmptyLineOnPaste","suppressLastEmptyLineOnPaste","pagination","isSuppressEnterpriseResetOnNewColumns","suppressEnterpriseResetOnNewColumns","getProcessDataFromClipboardFunc","processDataFromClipboard","getAsyncTransactionWaitMillis","asyncTransactionWaitMillis","isSuppressMovableColumns","suppressMovableColumns","isAnimateRows","animateRows","isSuppressColumnMoveAnimation","suppressColumnMoveAnimation","isSuppressAggFuncInHeader","suppressAggFuncInHeader","isSuppressAggAtRootLevel","suppressAggAtRootLevel","isSuppressAggFilteredOnly","getGroupAggFiltering","suppressAggFilteredOnly","isRemovePivotHeaderRowWhenSingleValueColumn","removePivotHeaderRowWhenSingleValueColumn","isShowOpenedGroup","showOpenedGroup","isReactUi","reactUi","isSuppressReactUi","suppressReactUi","isEnableRangeSelection","enableRangeHandle","enableFillHandle","getFillHandleDirection","direction","fillHandleDirection","getFillOperation","fillOperation","isSuppressMultiRangeSelection","suppressMultiRangeSelection","isPaginationAutoPageSize","paginationAutoPageSize","isRememberGroupStateWhenNewData","rememberGroupStateWhenNewData","getIcons","userValue","getAggFuncs","aggFuncs","getSortingOrder","sortingOrder","getAlignedGrids","alignedGrids","masterDetail","MasterDetailModule","isKeepDetailRows","keepDetailRows","getKeepDetailRowsCount","keepDetailRowsCount","getIsRowMasterFunc","isRowMaster","getIsRowSelectableFunc","isRowSelectable","getGroupRowRendererParams","groupRowRendererParams","getOverlayLoadingTemplate","overlayLoadingTemplate","getOverlayNoRowsTemplate","overlayNoRowsTemplate","isSuppressAutoSize","suppressAutoSize","isEnableCellTextSelection","suppressParentsInRowNodes","isSuppressClipboardApi","suppressClipboardApi","isFunctionsReadOnly","functionsReadOnly","isEnableCellTextSelect","defaultColGroupDef","getDefaultExportParams","defaultExportParams","defaultCsvExportParams","defaultExcelExportParams","isSuppressCsvExport","suppressCsvExport","isAllowShowChangeAfterFilter","allowShowChangeAfterFilter","isSuppressExcelExport","suppressExcelExport","isSuppressMakeColumnVisibleAfterUnGroup","suppressMakeColumnVisibleAfterUnGroup","getDataPathFunc","getDataPath","getIsServerSideGroupFunc","isServerSideGroup","getIsServerSideGroupOpenByDefaultFunc","isServerSideGroupOpenByDefault","getIsGroupOpenByDefaultFunc","isGroupOpenByDefault","getServerSideGroupKeyFunc","getServerSideGroupKey","getGroupRowAggFunc","getGroupRowAgg","groupRowAggNodes","nodes","getContextMenuItemsFunc","getContextMenuItems","getMainMenuItemsFunc","getMainMenuItems","getRowIdFunc","getRowNodeId","getNavigateToNextHeaderFunc","navigateToNextHeader","getTabToNextHeaderFunc","tabToNextHeader","getNavigateToNextCellFunc","navigateToNextCell","getTabToNextCellFunc","tabToNextCell","getGridTabIndex","treeData","isValueCache","valueCache","isValueCacheNeverExpires","valueCacheNeverExpires","isDeltaSort","deltaSort","isAggregateOnlyChangedColumns","aggregateOnlyChangedColumns","getProcessPivotResultColDefFunc","processPivotResultColDef","processSecondaryColDef","getProcessPivotResultColGroupDefFunc","processPivotResultColGroupDef","processSecondaryColGroupDef","getSendToClipboardFunc","sendToClipboard","getProcessRowPostCreateFunc","processRowPostCreate","getProcessCellForClipboardFunc","processCellForClipboard","getProcessHeaderForClipboardFunc","processHeaderForClipboard","getProcessGroupHeaderForClipboardFunc","processGroupHeaderForClipboard","getProcessCellFromClipboardFunc","processCellFromClipboard","getViewportRowModelPageSize","viewportRowModelPageSize","getViewportRowModelBufferSize","viewportRowModelBufferSize","isServerSideSortAllLevels","isEnabled","serverSideSortAllLevels","isServerSideFilterAllLevels","serverSideFilterAllLevels","isServerSideSortOnServer","serverSideSortOnServer","isServerSideFilterOnServer","serverSideFilterOnServer","getPostSortFunc","postSortRows","postSort","getChartToolbarItemsFunc","getChartToolbarItems","getChartThemeOverrides","chartThemeOverrides","getCustomChartThemes","customChartThemes","getChartThemes","chartThemes","getClipboardDelimiter","clipboardDelimiter","force","previousValue","isSkipHeaderOnAutoSize","skipHeaderOnAutoSize","getAutoSizePadding","autoSizePadding","getHeaderHeight","getFromTheme","getFloatingFiltersHeight","floatingFiltersHeight","getGroupHeaderHeight","groupHeaderHeight","getPivotHeaderHeight","pivotHeaderHeight","getPivotGroupHeaderHeight","pivotGroupHeaderHeight","isExternalFilterPresent","doesExternalFilterPass","getTooltipDelay","tooltipShowDelay","tooltipHideDelay","delay","capitalisedType","isTooltipMouseTrack","tooltipMouseTrack","isSuppressModelUpdateAfterUpdateTransaction","suppressModelUpdateAfterUpdateTransaction","getDocument","eGridDiv","ownerDocument","getMinColWidth","minColWidth","MIN_COL_WIDTH","measuredMin","getMaxColWidth","maxColWidth","getColWidth","colWidth","getRowBuffer","rowBuffer","getRowBufferInPixels","getRowHeightAsNumber","scrollbarWidth","rowDeselection","enableMultiRowDragging","checkRenamedProperty","oldProp","newProp","immutableColumns","deltaColumnMode","groupRowInnerRenderer","groupRowInnerRendererParams","groupRowInnerRendererFramework","innerRenderer","innerRendererParams","innerRendererFramework","detailCellRendererParams","stopEditingWhenGridLosesFocus","applyColumnDefOrder","groupMultiAutoColumn","groupUseEntireRow","groupSuppressAutoColumn","propName","defaultGroupSortComparator","localeTextFunc","suppressCellSelection","clipboardDeliminator","serverSideStoreType","treeDataViolations","getLocaleTextFunc","localeText","getLocaleText","variableValues","localisedText","callbackMethodName","setRowHeightVariable","newRowHeight","getPropertyValue","rowHeight","getDefaultRowHeight","isGetRowHeightFunction","getRowHeight","getRowHeightForNode","allowEstimate","defaultRowHeight","estimated","detail","detailRowHeight","isDynamicRowHeight","getListItemHeight","chartMenuPanelWidth","environment","sassVariableName","theme","getTheme","getSassVariable","toMatch","supplied","groupDisplayTypeValues","treeDataDisplayTypeValues","PROP_HEADER_HEIGHT","PROP_GROUP_REMOVE_SINGLE_CHILDREN","PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN","PROP_GROUP_DISPLAY_TYPE","PROP_PIVOT_HEADER_HEIGHT","PROP_SUPPRESS_CLIPBOARD_PASTE","PROP_GROUP_HEADER_HEIGHT","PROP_PIVOT_GROUP_HEADER_HEIGHT","PROP_NAVIGATE_TO_NEXT_CELL","PROP_TAB_TO_NEXT_CELL","PROP_NAVIGATE_TO_NEXT_HEADER","PROP_TAB_TO_NEXT_HEADER","PROP_IS_EXTERNAL_FILTER_PRESENT","PROP_DOES_EXTERNAL_FILTER_PASS","PROP_FLOATING_FILTERS_HEIGHT","PROP_SUPPRESS_ROW_CLICK_SELECTION","PROP_SUPPRESS_ROW_DRAG","PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG","PROP_GET_ROW_CLASS","PROP_GET_ROW_STYLE","PROP_GET_ROW_HEIGHT","PROP_POPUP_PARENT","PROP_DOM_LAYOUT","PROP_ROW_CLASS","PROP_FILL_HANDLE_DIRECTION","PROP_GROUP_ROW_AGG_NODES","PROP_GET_GROUP_ROW_AGG","PROP_GET_BUSINESS_KEY_FOR_NODE","PROP_GET_CHILD_COUNT","PROP_PROCESS_ROW_POST_CREATE","PROP_GET_ROW_NODE_ID","PROP_GET_ROW_ID","PROP_IS_FULL_WIDTH_CELL","PROP_IS_FULL_WIDTH_ROW","PROP_IS_ROW_SELECTABLE","PROP_IS_ROW_MASTER","PROP_POST_SORT","PROP_POST_SORT_ROWS","PROP_GET_DOCUMENT","PROP_POST_PROCESS_POPUP","PROP_DEFAULT_GROUP_ORDER_COMPARATOR","PROP_INITIAL_GROUP_ORDER_COMPARATOR","PROP_PAGINATION_NUMBER_FORMATTER","PROP_GET_CONTEXT_MENU_ITEMS","PROP_GET_MAIN_MENU_ITEMS","PROP_PROCESS_CELL_FOR_CLIPBOARD","PROP_PROCESS_CELL_FROM_CLIPBOARD","PROP_SEND_TO_CLIPBOARD","PROP_PROCESS_PIVOT_RESULT_COL_DEF","PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF","PROP_GET_CHART_TOOLBAR_ITEMS","PROP_GET_SERVER_SIDE_GROUP_PARAMS","PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT","PROP_IS_APPLY_SERVER_SIDE_TRANSACTION","PROP_IS_SERVER_SIDE_GROUP","PROP_GET_SERVER_SIDE_GROUP_KEY","PROP_AUTO_GROUP_COLUMN_DEF","PROP_DEFAULT_COL_DEF","__extends$2T","_extendStatics2","__decorate$2u","__param$7","__rest","getOwnPropertySymbols","__values$4","__read$k","__spread$e","ColumnModel","primaryHeaderRowCount","secondaryHeaderRowCount","gridHeaderRowCount","displayedColumnsLeft","displayedColumnsRight","displayedColumnsCenter","displayedColumns","displayedColumnsAndGroupsMap","viewportColumns","headerViewportColumns","viewportColumnsCenter","headerViewportColumnsCenter","autoHeightActiveAtLeastOnce","rowGroupColumns","valueColumns","pivotColumns","ready","autoGroupsNeedBuilding","forceRecreateAutoGroups","bodyWidth","leftWidth","rightWidth","bodyWidthDirty","flexColsCalculatedAtLestOnce","isPivotSettingAllowed","usingTreeData","onAutoGroupColumnDefChanged","onDefaultColDefChanged","updateGridColumns","updateDisplayedColumns","createColumnsFromColumnDefs","colsPreviouslyExisted","raiseEventsFunc","compareColumnStatesAndRaiseEvents","expire","oldPrimaryColumns","oldPrimaryTree","primaryColumnTree","balancedTreeResult","columnFactory","getColumnsFromTree","primaryColumnsMap","extractRowGroupColumns","extractPivotColumns","extractValueColumns","gridColsNotProcessed","gridColsArePrimary","orderGridColumnsLikePrimary","checkViewportColumns","dispatchEverythingChanged","dispatchNewColumnsLoaded","newColumnsLoadedEvent","eventEverythingChanged","gridColumns","colA","colB","primaryIndexA","primaryIndexB","indexAPresent","indexBPresent","placeLockedColumns","getAllDisplayedAutoHeightCols","displayedAutoHeightCols","setViewport","viewportLeft","scrollPosition","scrollWidth","viewportRight","getDisplayedColumnsStartingAt","currentColumn","getDisplayedColAfter","extractViewport","setViewportPosition","getSecondaryPivotColumn","pivotKeys","valueColKey","secondaryColumns","valueColumnToFind","getPrimaryColumn","foundColumn","thisPivotKeys","pivotValueColumn","setFirstRightAndLastLeftPinned","lastLeft","firstRight","autoSizeColumns","skipHeader","skipHeaderGroups","stopAtGroup","animationFrameService","flushAllFrames","columnsAutosized","changesThisTimeAround","shouldSkipHeader","shouldSkipHeaderGroups","actionOnGridColumns","preferredWidth","autoWidthCalculator","getPreferredWidthForColumn","newWidth","normaliseColumnWidth","autoSizeColumnGroupsByColumns","fireColumnResizedEvent","finished","flexColumns","autoSizeColumn","e_2","_b","headerGroupCtrl","columnGroups","getGridColumns","columnGroups_1","columnGroups_1_1","columnGroup","_c","ctrlsService","getHeaderRowContainerCtrls","_d","getHeaderCtrlForColumn","e_2_1","resizeLeafColumnsToFit","autoSizeAllColumns","allDisplayedColumns","getAllDisplayedColumns","rootColumns","recursiveFindColumns","childColumns","getAllDisplayedTrees","displayedTreeLeft","displayedTreeRight","displayedTreeCentre","getPrimaryColumnTree","getHeaderRowCount","getDisplayedTreeLeft","getDisplayedTreeRight","getDisplayedTreeCentre","isColumnDisplayed","getViewportColumns","getDisplayedLeftColumnsForRow","colSpanActive","getDisplayedColumnsForRow","getDisplayedRightColumnsForRow","filterCallback","emptySpaceBeforeColumn","out_i_1","lastConsideredCol","_loop_1","filterPasses","maxAllowedColSpan","columnsToCheckFilter","colsToRemove","colForFilter","getViewportCenterColumnsForRow","isColumnInRowViewport","getAriaColumnIndex","getAllGridColumns","isColumnInHeaderViewport","columnLeft","columnRight","leftBounds","rightBounds","getDisplayedColumnsLeftWidth","getWidthOfColsInList","getDisplayedColumnsRightWidth","updatePrimaryColumnList","masterList","actionIsAdd","columnCallback","atLeastOne","columnToAdd","setRowGroupColumns","colKeys","setPrimaryColumnList","setColumnVisible","addRowGroupColumn","addRowGroupColumns","removeRowGroupColumns","removeRowGroupColumn","addPivotColumns","setPivotColumns","added","addPivotColumn","removePivotColumns","removePivotColumn","fireColumnEvent","setValueColumns","initialAggFunc","aggFuncService","getDefaultAggFunc","addValueColumns","addValueColumn","colKey","removeValueColumn","removeValueColumns","getPrimaryOrGridColumn","getGridColumn","setColumnWidths","columnWidths","shiftKey","sets","columnWidth","ratios","otherCol","widthDiff","otherColWidth","resizeColumnSets","resizeSets","checkMinAndMaxWidthsForSet","columnResizeSet","minWidthAccumulated","maxWidthAccumulated","maxWidthActive","changedCols","allResizedCols","newWidths","finishedCols","finishedColsGrew","loopCount","_loop_2","subsetCols","subsetRatioTotal","pixelsToDistribute","ratioThisCol","ratioScale","colNewWidth","atLeastOneColChanged","flexedCols","refreshFlexedColumns","resizingCols","skipSetLeft","setLeftValues","updateBodyWidths","colsForEvent","setColumnAggFunc","moveRowGroupColumn","fromIndex","moveColumns","columnsToMoveKeys","columnAnimationService","start","columnsToMove","doesMovePassRules","finish","proposedColumnOrder","getProposedColumnOrder","doesOrderPassRules","gridOrder","doesMovePassMarryChildren","doesMovePassLockedPositions","sortColumnsLikeGridColumns","cols","lastPlacement","rulePassed","placement","allColumnsCopy","marryChildren","newIndexes","newColIndex","moveColumn","moveColumnByIndex","lastPrimaryOrder","columnDefFactory","buildColumnDefs","getBodyContainerWidth","getContainerWidth","newBodyWidth","newLeftWidth","newRightWidth","event_2","getValueColumns","getPivotColumns","getRowGroupColumns","getDisplayedCenterColumns","getDisplayedLeftColumns","getDisplayedRightColumns","getDisplayedColumns","getAllPrimaryColumns","getSecondaryColumns","getAllColumnsForQuickFilter","columnsForQuickFilter","isEmpty","isRowGroupEmpty","setColumnsVisible","state","setColumnPinned","setColumnsPinned","actualPinned","createEvent","updatedColumns","event_3","getDisplayedColBefore","oldIndex","getDisplayedGroupAfter","getDisplayedGroupAtDirection","getDisplayedGroupBefore","requiredLevel","colGroupLeafColumns","getDisplayColMethod","groupPointer","getColumnGroupAtLevel","isPinningLeft","isPinningRight","getPrimaryAndSecondaryAndAutoColumns","groupAutoColumns","getPrimaryAndAutoGroupCols","getPrimaryAndSecondaryColumns","createStateItemFromColumn","rowGroupIndex","pivotIndex","getColumnState","orderColumnStateList","columnStateList","colIdToGridIndexMap","itemA","itemB","has","resetColumnState","columnStates","letRowGroupIndex","letPivotIndex","colsToProcess","getValueOrNull","initialRowGroupIndex","initialRowGroup","initialPivotIndex","initialPivot","stateItem","applyOrder","applyStates","states","getById","columnsWithNoState","rowGroupIndexes","pivotIndexes","autoGroupColumnStates","unmatchedAndAutoStates","unmatchedCount","previousRowGroupCols","previousPivotCols","startsWith","syncColumnWithStateItem","defaultState","applyDefaultsFunc","indexes","oldList","indexA","indexB","aHasIndex","bHasIndex","oldIndexA","oldIndexB","aHasOldIndex","autoGroupColsCopy","autoCol","getAutoColumn","applyOrderAfterApplyState","getSecondaryColumn","newOrder","processedColIds","gridColumnsMap","autoGroupInsertIndex","startState","columnStateBefore","columnStateBeforeMap","colsForState","raiseWhenListsDifferent","colsBefore","colsAfter","idMapper","getChangedColumns","changedPredicate","changedColumns","colStateBefore","columnIdMapper","cs","oldActive","activeChanged","aggFuncChanged","raiseColumnPinnedEvent","raiseColumnVisibleEvent","sortController","dispatchSortChangedEvents","raiseColumnMovedEvent","getCommonValue","valueGetter","firstValue","colStateAfter","colStateAfterMapped","colsIntersectIds","beforeFiltered","afterFiltered","movedColumns","csAfter","csBefore","gridCol","getValue","key1","key2","value1","value2","calculated","getColumns","columnLookupCallback","foundColumns","getColumnWithValidation","getColumn","secondaryColumnsMap","columnList","columnMap","columnsMatch","getSourceColumnsForGroupColumn","groupCol","sourceColumnId","columnMatches","colDefMatches","idMatches","getDisplayNameForColumn","location","includeAggFunc","getHeaderName","wrapHeaderNameWithAggFunc","getDisplayNameForProvidedColumnGroup","getDisplayNameForColumnGroup","headerValueGetter","expressionService","evaluate","aggFuncFound","isCollapsedHeaderEnabled","isTotalColumn","pivotTotalColumnIds","measureActive","aggregationPresent","aggFuncString","getColumnGroup","allColumnGroups","checkInstanceId","depthFirstAllColumnTreeSearch","isReady","extractColumns","flag","previousCols","setFlagFunc","getIndexFunc","getInitialIndexFunc","getValueFunc","getInitialValueFunc","colsWithIndex","colsWithValue","colIsNew","initialValue","initialIndex","getIndexForCol","defaultIndex","resetColumnGroupState","stateItems","groupState","open","setColumnGroupState","getColumnGroupState","columnGroupState","impactedGroups","groupKey","updateGroupsAndDisplayedColumns","setColumnGroupOpened","keyAsString","calculateColumnsForDisplay","isAutoGroupCol","isValueCol","checkColSpanActiveInCols","calculateColumnsForGroupDisplay","groupDisplayColumns","groupDisplayColumnsMap","checkFunc","underlyingColumn","rowGroupCol","getGroupDisplayColumns","getGroupDisplayColumnForGroup","rowGroupColumnId","columnsForDisplay","buildDisplayedTrees","isSecondaryColumnsPresent","setSecondaryColumns","colDefs","newColsPresent","processSecondaryColumnDefinitions","secondaryBalancedTree","previousSecondaryColumns","groupCallback","searchForColDefs","colDefs2","prevGridCols","lastSecondaryOrder","hasSameColumns","orderGridColsLike","addAutoGroupToGridColumns","setupQuickFilterColumns","clearDisplayedAndViewportColumns","setAutoHeightActive","event_4","autoHeightActive","rowModel","getType","colsOrder","lastOrderMapped","noColsFound","gridColsMap","oldColsOrdered","oldColsMap","newColsOrdered","newGridColumns","newCol","siblings","leafCol","presentInNewGriColumns","noYetInSiblings","isPrimaryColumnGroupsPresent","normal","createGroupAutoColumnsIfNeeded","autoColBalancedTree","viewportRowLeft","viewportRowRight","viewportRowCenter","updateOpenClosedVisibilityInColumnGroups","deriveDisplayedColumns","derivedDisplayedColumnsFromDisplayedTree","joinDisplayedColumns","isAutoRowHeightActive","wasAutoRowHeightEverActive","setLeftValuesOfColumns","setLeftValuesOfGroups","allColumns","doingRtl","left_1","left_2","tree","depthFirstDisplayedColumnTreeSearch","extractViewportColumns","getVirtualHeaderGroupRow","calculateHeaderRows","virtualColIds","testGroup","returnValue","addThisItem","hashBefore","viewportWidth","flexViewportWidth","flexAfterDisplayIndex","indexOfCol","isColFlex","afterResizingCols","knownWidthColumns","flexingColumns","spaceForFlexingColumns","flexingColumnSizes","outer","totalFlex","widthByFlexRule","constrainedWidth","remainingSpace","fireResizedEvent","resetRowHeights","sizeColumnsToFit","gridWidth","_e","_f","_g","_h","_j","_k","_l","limitsMap","columnLimits","dimensions","doColumnsAlreadyFit","colsToSpread","colsToNotSpread","suppressSizeToFit","colsToFireEventFor","finishedResizing","moveToNotSpread","availablePixels","widthOverride","defaultMinWidth","scale","pixelsForLastCol","minOverride","maxOverride","defaultMaxWidth","colMinWidth","colMaxWidth","MAX_VALUE","visibleColumns","leftVisibleColumns","rightVisibleColumns","centerVisibleColumns","groupInstanceIdCreator","displayedGroupCreator","createDisplayedGroups","updateDisplayedMap","isDisplayed","getGroupAutoColumns","groupFullWidthRow","suppressAutoColumn","newAutoGroupCols","autoGroupColService","createAutoGroupColumns","autoColsEqual","colsA","colsB","getGridBalancedTree","hasFloatingFilters","floatingFilter","getFirstDisplayedColumn","isRtl","queryOrder","container","setColumnHeaderHeight","event_5","getColumnGroupHeaderRowHeight","getColumnHeaderRowHeight","defaultHeight","displayedHeights","__extends$2S","_extendStatics3","__decorate$2t","ColumnUtils","MAX_SAFE_INTEGER","colDefWidth","colDefInitialWidth","getOriginalPathForColumn","originalBalancedTree","recursePath","__extends$2R","_extendStatics4","__decorate$2s","DisplayedGroupCreator","sortedVisibleColumns","oldDisplayedGroups","previousRealPath","previousOriginalPath","oldColumnsMapped","mapOldGroupsById","currentOriginalPath","currentRealPath","firstColumn","newGroup","setupParentsIntoColumns","displayedGroups","recursive","columnsOrGroups","columnOrGroup","columnsOrGroup","__extends$2Q","_extendStatics5","__decorate$2r","AgStackComponentsRegistry","componentsMappedByName","setupComponents","components","componentMeta","addComponent","classUpperCase","componentName","componentClass","getComponentClass","htmlTag","__read$j","Color","fromString","fromHexString","nameToHex","fromRgbaString","parseHex","input","parts","stringToRgba","NaN","po","pc","contents","rgba","part","fromArray","fromHSB","h","alpha","rgb","HSBtoRGB","padHex","toHexString","toRgbaString","fractionDigits","pow","toHSB","RGBtoHSB","H","delta","rc","gc","bc","S","B","q","derive","hueShift","saturationFactor","brightnessFactor","opacityFactor","hsb","brighter","darker","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","stringToArray","strData","delimiter","isNewline","char","insideQuotedField","out_row_1","out_column_1","out_position_1","row","previousChar","currentChar","nextChar","ensureDataExists","rtlNegativeScroll","CsvUtils","isFocusableFormField","Element","msMatchesSelector","isFocusable","isNotFocusable","isElementVisible","setDisplayed","displayed","classList","toggle","setDisabled","disabled","addOrRemoveDisabledAttribute","removeAttribute","nodeListForEach","querySelectorAll","isElementChildOfClass","cls","maxNest","contains","getElementSize","paddingTop","paddingRight","paddingBottom","paddingLeft","marginTop","marginRight","marginBottom","marginLeft","boxSizing","getInnerHeight","getInnerWidth","getAbsoluteHeight","ceil","offsetHeight","getAbsoluteWidth","marginWidth","isRtlNegativeScroll","template","top","dir","innerHTML","scrollLeft","getScrollLeft","rtl","abs","setScrollLeft","clearElement","firstChild","removeFromParent","offsetParent","loadTemplate","tempDiv","eContainer","eChild","eChildBefore","nextSibling","focusedEl","activeElement","eChildHasFocus","insertBefore","insertAdjacentElement","focus","preventScroll","setDomChildOrder","orderedChildren","correctCellAtIndex","actualCellAtIndex","insertWithDomOrder","eToInsert","addStylesToElement","styles","keyCamelCase","isHorizontalScrollShowing","isVerticalScrollShowing","scrollHeight","setElementWidth","removeProperty","setFixedWidth","formatSize","setFixedHeight","maxHeight","minHeight","isNode","Node","nodeType","nodeName","isElement","isNodeOrElement","copyNodeList","nodeList","iterateNamedNodeMap","attr","addOrRemoveAttribute","DomUtils","radioCssClass","elementClass","otherElementClass","sibling","removeElement","cssSelector","querySelector","appendHtml","htmlTemplate","lastChild","insertAdjacentHTML","getElementAttribute","prependDC","documentFragment","setElementHeight","setCheckboxState","eCheckbox","checked","indeterminate","GeneralUtils","getNameOfClass","theClass","funcAsString","results","findLineByLeastSquares","maxDecimals","splitExponent","sum_x","sum_y","sum_xy","sum_xx","y","toFixed","cssStyleObjectToMarkup","stylesToUse","resParts","styleKey","styleValue","styleKeyDashed","message","eMessage","eBox","bindCellRendererToHtmlElement","cellRendererPromise","eTarget","then","cellRenderer","gui","getGui","setAriaAttribute","ariaAttributeName","removeAriaAttribute","setAriaRole","role","getAriaSortState","getAriaLevel","getAriaPosInSet","setAriaLabel","label","setAriaLabelledBy","labelledBy","_setAriaDescription","description","setAriaDescribedBy","describedby","setAriaLevel","setAriaDisabled","setAriaExpanded","removeAriaExpanded","setAriaSetSize","setsize","setAriaPosInSet","setAriaMultiSelectable","multiSelectable","setAriaRowCount","_setAriaRowIndex","rowIndex","setAriaColCount","colCount","setAriaColIndex","colIndex","setAriaColSpan","_setAriaSort","removeAriaSort","setAriaSelected","selected","setAriaChecked","AriaUtils","getAriaDescribedBy","setAriaDescription","setAriaRowIndex","setAriaSort","__read$i","serialiseDate","date","includeTime","separator","serialised","getFullYear","getMonth","getDate","getHours","getMinutes","getSeconds","calculateOrdinal","dateToFormattedString","format","fullYear","months","days","YYYY","YY","Y","MMMM","MMM","MM","Mo","M","Do","DD","D","dddd","getDay","ddd","dd","do","regexp","RegExp","parseDateTimeFromString","dateStr","timeStr","year","month","day","hours","minutes","seconds","setHours","setMinutes","setSeconds","DateUtils","iconNameClassMap","columnGroupOpened","columnGroupClosed","columnSelectClosed","columnSelectOpen","columnSelectIndeterminate","columnMovePin","columnMoveHide","columnMoveMove","columnMoveLeft","columnMoveRight","columnMoveGroup","columnMoveValue","columnMovePivot","dropNotAllowed","groupContracted","groupExpanded","chart","close","cancel","check","previous","linked","unlinked","colorPicker","groupLoading","menu","maximize","minimize","menuPin","menuValue","menuAddRowGroup","menuRemoveRowGroup","clipboardCopy","clipboardPaste","pivotPanel","rowGroupPanel","valuePanel","columnDrag","save","csvExport","excelExport","smallDown","smallLeft","smallRight","smallUp","sortAscending","sortDescending","sortUnSort","createIcon","iconName","iconContents","createIconNoSpan","className","eResult","forceCreate","userProvidedIcon","optionsIcons","span","cssClass","rendererResult","IconUtils","KeyCode","BACKSPACE","TAB","ENTER","ESCAPE","SPACE","LEFT","UP","RIGHT","DOWN","DELETE","F2","PAGE_UP","PAGE_DOWN","PAGE_HOME","PAGE_END","A","C","V","Z","isEventFromPrintableCharacter","altKey","ctrlKey","metaKey","printableCharacter","numpadDelWithNumlockOnForEdgeOrIe","charCode","isNumpadDelWithNumLockOnForEdge","isUserSuppressingKeyboardEvent","keyboardEvent","editing","gridOptionsFunc","colDefFunc","isUserSuppressingHeaderKeyboardEvent","headerRowIndex","suppressHeaderKeyboardEvent","normaliseQwertyAzerty","code","keyCode","KeyboardUtils","areEventsNear","e1","e2","pixelCount","diffX","clientX","diffY","clientY","MouseUtils","RowNodeUtils","sortRowNodesByOrder","rowNodes","rowNodeOrder","positionA","positionB","__objectId","atLeastOneOutOfOrder","traverseNodesWithKey","keyParts","recursiveSearchNodes","currentNodes","hasChildren","childrenAfterGroup","pop","convertToSet","AgPromiseStatus","SetUtils","__assign$e","NumberSequence","initValue","step","nextValue","valToReturn","peek","skip","TooltipStates","AgPromise","status","IN_PROGRESS","resolution","waiters","onDone","onReject","all","promises","resolve","remainingToResolve","combinedValues","promise","RESOLVED","resolveNow","ifNotResolvedValue","ifResolved","waiter","Timer","timestamp","print","duration","info","__extends$2P","_extendStatics6","__assign$d","__decorate$2q","CustomTooltipFeature","parentComp","DEFAULT_SHOW_TOOLTIP_DELAY","DEFAULT_HIDE_TOOLTIP_DELAY","SHOW_QUICK_TOOLTIP_DIFF","FADE_OUT_TOOLTIP_TIMEOUT","NOTHING","tooltipInstanceCount","postConstruct","onMouseEnter","onMouseLeave","onMouseMove","onMouseDown","onKeyDown","setToDoNothing","isLastTooltipHiddenRecently","showTooltipTimeoutId","showTooltip","lastMouseEvent","WAITING_TO_SHOW","SHOWING","hideTooltip","clearTimeouts","tooltipComp","positionTooltipUnderLastMouseEvent","destroyTooltipComp","lastTooltipHideTime","tooltipPopupDestroyFunc","getTooltipParams","newTooltipComponentCallback","userComponentFactory","getTooltipCompDetails","newAgStackInstance","tooltipInstanceCopy","eGui","translate","addPopupRes","popupService","addPopup","ariaLabel","hideFunc","hideTooltipTimeoutId","positionPopupUnderMouseEvent","mouseEvent","ePopup","nudgeY","CssClassManager","cssClassStates","addCssClass","removeCssClass","remove","containsCssClass","addOrRemoveCssClass","addOrRemove","__extends$2O","_extendStatics7","__decorate$2p","compIdSequence","Component","compId","cssClassManager","setTemplate","preConstructOnComponent","usingBrowserTooltips","getCompId","tooltipText","setTooltip","newTooltipText","tooltipFeature","createChildComponentsFromTags","paramsMap","childNodes","childNode","childComp","createComponentFromElement","copyAttributesFromNode","addItems","swapComponentForNode","componentParams","ComponentClass","agStackComponentsRegistry","elementGettingCreated","newComponent","setParentComponent","eComponent","replaceChild","createComment","swapInComponentForQuerySelectors","thisNoType","iterateOverQuerySelectors","thisPrototype","__agComponentMetaData","currentProtoName","querySelectors","setTemplateFromElement","__agComponent","wireQuerySelectors","createChildComponentsPreConstruct","setResult","refSelector","resultOfQuery","getFocusableElement","parentComponent","getParentComponent","setGui","queryForHtmlElement","queryForHtmlInputElement","newChild","childComponent","EVENT_DISPLAYED_CHANGED","addGuiEventListener","getRefElement","refName","QuerySelector","selector","querySelectorFunc","RefSelector","instanceName","getOrCreateProps","addToObjectProps","ConditionPosition","__extends$2N","_extendStatics8","__decorate$2o","ReadOnlyFloatingFilter","columnModel","eFloatingFilterText","setInputAriaLabel","onParentModelChanged","parentModel","parentFilterInstance","filterInstance","getModelAsString","modelAsString","setValue","DateCompWrapper","dateComponentParams","eParent","alive","getDateCompDetails","dateComp","afterGuiAttached","tempValue","setDate","setDateCompDisabled","setInputPlaceholder","placeholder","__assign$c","OptionsFactory","customFilterOptions","defaultOptions","filterOptions","mapCustomOptions","selectDefaultItem","checkForDeprecatedParams","opt","hideFilterInput","getFilterOptions","filterOption","mutatedFilterOptions","predicate","cv","numberOfInputs","displayKey","defaultOption","firstFilterOption","getDefaultOption","getCustomOption","DEFAULT_FILTER_LOCALE_TEXT","applyFilter","clearFilter","resetFilter","cancelFilter","textFilter","numberFilter","dateFilter","setFilter","filterOoo","empty","equals","notEqual","lessThan","greaterThan","inRange","inRangeStart","inRangeEnd","lessThanOrEqual","greaterThanOrEqual","notContains","endsWith","blank","notBlank","andCondition","orCondition","dateFormatOoo","__extends$2M","_extendStatics9","__assign$b","__decorate$2n","ManagedFocusFeature","eFocusableElement","callbacks","shouldStopEventPropagation","onTabKeyDown","defaultPrevented","nextRoot","focusService","findNextFocusableElement","preventDefault","FOCUS_MANAGED_CLASS","addKeyDownListeners","onFocusIn","onFocusOut","handleKeyDown","__extends$2L","_extendStatics10","__decorate$2m","ProvidedFilter","filterNameKey","applyActive","hidePopup","appliedModel","resetTemplate","getFilterTitle","templateString","getCssIdentifier","createBodyTemplate","isReadOnly","providedFilterParams","readOnly","setParams","resetUiToDefaults","updateUiVisibility","setupOnBtApplyDebounce","isUseApplyButton","createButtonPanel","buttons","eButtonsPanel","clickListener","onBtApply","onBtClear","onBtReset","onBtCancel","button","addButton","getDefaultDebounceMs","debounceMs","getDebounceMs","onBtApplyDebounce","getModel","setModel","model","setModelIntoUi","applyModel","currentModel","afterAppliedFunc","onUiChanged","closeOnApply","newModel","getModelFromUi","isModelValid","previousModel","areModelsEqual","afterFloatingFilter","afterDataChange","filterChangedCallback","onNewRowsLoaded","fromFloatingFilter","filterModifiedCallback","isValid","debounceDefault","getCellValue","__extends$2K","_extendStatics11","__decorate$2l","AgAbstractLabel","config","labelSeparator","labelAlignment","eLabel","labelWidth","setLabelSeparator","setLabel","setLabelWidth","setLabelAlignment","refreshLabel","innerText","getLabelId","getLabel","alignment","eGuiClassList","isDisabled","__extends$2J","_extendStatics12","AgAbstractField","onValueChange","callbackFn","EVENT_CHANGED","getWidth","setWidth","getPreviousValue","__extends$2I","_extendStatics13","__decorate$2k","AgPickerField","pickerIcon","ariaRole","isPickerDisplayed","isDestroyingPicker","skipClick","displayId","eDisplayField","eWrapper","clickHandler","pickerComponent","showPicker","icon","eIcon","setInputWidth","__extends$2H","_extendStatics14","__decorate$2j","AgList","cssIdentifier","itemEls","highlightedEl","pos","setValueByIndex","isDown","itemToHighlight","nextPos","highlightItem","addOptions","listOptions","listOption","addOption","sanitisedText","renderOption","updateIndices","option","itemEl","clearHighlighted","fireItemSelected","findIndex","displayValue","fireChangeEvent","getDisplayValue","refreshHighlighted","ACTIVE_CLASS","EVENT_ITEM_SELECTED","__extends$2G","_extendStatics15","__decorate$2i","AgSelect","listComponent","hideList","listGui","eDocument","destroyMouseWheelFunc","destroyFocusOutFunc","relatedTarget","modal","closeOnEsc","closedCallback","positionPopupUnderComponent","eventSource","keepWithinBounds","fromPicker","__extends$2F","_extendStatics16","__decorate$2h","AgAbstractInputField","inputType","displayFieldTag","setInputType","eInput","addInputListeners","getInputElement","setInputName","setMaxLength","maxLength","__extends$2E","_extendStatics17","__decorate$2g","RowHighlightPosition","SimpleFilter","getNumberOfInputs","customOpts","optionsFactory","zeroInputTypes","EMPTY","NOT_BLANK","BLANK","IN_RANGE","onFloatingFilterChanged","setTypeFromFloatingFilter","setValueFromFloatingFilter","eType1","eType2","isDefaultOperator","eJoinOperatorAnd","eJoinOperatorOr","isConditionUiComplete","One","isAllowTwoConditions","Two","filterType","getFilterType","operator","getJoinOperator","condition1","createCondition","condition2","getConditionTypes","aIsSimple","bIsSimple","aSimple","bSimple","areSimpleModelsEqual","aCombined","bCombined","combinedModel","orChecked","setConditionIntoUi","simpleModel","doesFilterPass","models","individualConditionPasses","getDefaultFilterOptions","allowTwoConditions","suppressAndOrCondition","alwaysShowBothConditions","defaultJoinOperator","getDefaultJoinOperator","putOptionsIntoDropdown","addChangedListeners","eTypes","createBoilerplateListOption","createCustomListOption","eType","customOption","createValueTemplate","elementConditionGroups","eJoinOperatorPanel","elementBodies","eCondition1Body","eCondition2Body","isConditionVisible","isConditionDisabled","isConditionBodyVisible","forEachInput","setElementDisplayed","setElementDisabled","resetPlaceholder","suppressFocus","firstInput","getInputs","globalTranslate","setElementValue","attachElementOnChange","cb","inputs","getValues","filteringLabel","uniqueGroupId","setName","mapValuesFromModel","elPosition","filterModel","cellValue","customFilterOption","customFilterResult","evaluateCustomFilter","evaluateNullValue","evaluateNonNullValue","isBlank","EQUALS","NOT_EQUAL","LESS_THAN","LESS_THAN_OR_EQUAL","GREATER_THAN","GREATER_THAN_OR_EQUAL","CONTAINS","NOT_CONTAINS","STARTS_WITH","ENDS_WITH","__extends$2D","_extendStatics18","ScalarFilter","scalarFilterParams","includeBlanksInEquals","includeBlanksInGreaterThan","includeBlanksInLessThan","includeBlanksInRange","compareResult","compareToResult","inRangeInclusive","__extends$2C","_extendStatics19","__assign$a","__decorate$2f","DateFilter","minValidYear","maxValidYear","Infinity","dateCondition1FromComp","dateFrom","dateTo","dateFilterParams","filterDate","yearParser","param","fallback","createDateComponents","createDateCompWrapper","onDateChanged","filterParams","eCondition1PanelFrom","dateCondition1ToComp","eCondition1PanelTo","dateCondition2FromComp","eCondition2PanelFrom","dateCondition2ToComp","eCondition2PanelTo","DEFAULT_FILTER_OPTIONS","valid","getUTCFullYear","__extends$2B","_extendStatics20","SimpleFloatingFilter","getTextFromModel","customOption1","customOption2","conditionToString","isEventFromFloatingFilter","getLastType","lastType","setLastTypeFromModel","canWeEditAfterModelFromParentFilter","isTypeEditable","setEditable","doesFilterHaveSingleInput","uneditableTypes","__extends$2A","_extendStatics21","__decorate$2e","DateFloatingFilter","isRange","inRangeFloatingFilterDateFormat","createDateComponent","eReadOnlyText","eDateWrapper","allowEditing","dateModel","filterValueText","__extends$2z","_extendStatics22","__decorate$2d","DefaultDateComponent","inputElement","eDateInput","shouldUseBrowserDatePicker","browserDatePicker","__extends$2y","_extendStatics23","__decorate$2c","NumberFilter","filterTo","numberFilterParams","allowedCharPattern","getAllowedCharPattern","agElementTag","stringToFloat","filterText","numberParser","eValueFrom1","eValueTo1","eValueFrom2","eValueTo2","__extends$2x","_extendStatics24","__assign$9","__decorate$2b","TextFilter","trimInput","trimmedInput","textFilterParams","matcher","getTextMatcher","formatter","textFormatter","caseSensitive","DEFAULT_FORMATTER","DEFAULT_LOWERCASE_FORMATTER","legacyComparator","textCustomComparator","textMatcher","DEFAULT_MATCHER","cleanValue","filterTypesAllowNulls","formattedValues","cellValueFormatted","matcherParams","lastIndexOf","__extends$2w","_extendStatics25","__decorate$2a","TextInputFloatingFilter","eFloatingFilterInput","toDebounce","syncUpWithParentFilter","filterGui","columnDef","enterKeyPressed","__extends$2v","_extendStatics26","NumberFloatingFilter","__extends$2u","_extendStatics27","TextFloatingFilter","TouchListener","preventMouseClick","destroyFuncs","touching","startListener","onTouchStart","moveListener","onTouchMove","endListener","onTouchEnd","getActiveTouch","touchList","identifier","touchStart","touchEvent","touches","moved","touchStartCopy","touchesMatch","EVENT_LONG_TAP","touch","EVENT_TAP","checkForDoubleTap","cancelable","now","lastTapTime","DOUBLE_TAP_MILLIS","EVENT_DOUBLE_TAP","__extends$2t","_extendStatics28","__decorate$29","SortIndicatorComp","skipTemplate","TEMPLATE","attachCustomElements","eSortOrder","eSortAsc","eSortDesc","eSortMixed","eSortNone","setupSort","suppressOrder","setupMultiSortIndicator","sortable","addInIcon","onSortChanged","updateIcons","updateSortOrder","sortDirection","getDisplaySortForColumn","isAscending","isDescending","alwaysHideNoSort","isNone","isColumnShowingRowGroup","updateMultiSortIndicator","isMixedSort","allColumnsWithSorting","getColumnsWithSortingOrdered","indexThisCol","getDisplaySortIndexForColumn","moreThanOneColSorting","showIndex","__extends$2s","_extendStatics29","__decorate$28","HeaderComp","lastMovingChanged","refresh","workOutTemplate","currentTemplate","workOutShowMenu","currentShowMenu","workOutSort","currentSort","setDisplayName","setupTap","setupIcons","setMenu","setupFilterIcon","currentDisplayName","displayNameSanitised","eText","eMenu","eFilter","touchListener","tapMenuButton","menuTouchListener","enableMenu","showColumnMenuAfterMouseClick","enableSorting","progressSort","menuHides","onIpadAndMenuHides","showMenu","menuFactory","showMenuAfterButtonClick","eSortIndicator","sortUsingCtrl","movedRecently","multiSort","onSortingChanged","isMultiSorting","sourceCol","onFilterChanged","filterPresent","__extends$2r","_extendStatics30","__decorate$27","HeaderGroupComp","checkWarnings","setupLabel","addGroupExpandIcon","setupExpandIcons","expandAction","newExpandedValue","addTouchAndClickListeners","eCloseIcon","eOpenIcon","stopPropagationAction","updateIconVisibility","__extends$2q","_extendStatics31","PopupComponent","isPopup","__extends$2p","_extendStatics32","__decorate$26","LargeTextCellEditor","focusAfterAttached","cellStartedEdit","eTextArea","setCols","setRows","rows","stopPropagation","parseValue","__extends$2o","_extendStatics33","__decorate$25","SelectCellEditor","startedByEnter","eventKey","hasValue","valueFormatted","valueFormatterService","formatValue","valueFormattedExits","eSelect","stopEditing","focusIn","__extends$2n","_extendStatics34","PopupSelectCellEditor","__extends$2m","_extendStatics35","__decorate$24","TextCellEditor","startValue","charPress","getStartValue","highlightAllOnFocus","inputEl","setSelectionRange","focusEl","useFormatter","refData","__extends$2l","_extendStatics36","PopupTextCellEditor","__extends$2k","_extendStatics37","__decorate$23","AnimateShowChangeCellRenderer","refreshCount","eValue","eDelta","showDelta","absDelta","valueToUse","deltaUp","setTimerToRemoveDelta","refreshCountCopy","hideDeltaValue","lastValue","filterManager","isSuppressFlashingCellsBecauseFiltering","__extends$2j","_extendStatics38","__decorate$22","AnimateSlideCellRenderer","eCurrent","addSlideAnimation","ePrevious","DragSourceType","VerticalDirection","HorizontalDirection","RowNode","childrenMapped","rowTop","oldRowTop","selectable","OBJECT_ID_SEQUENCE","__autoHeights","alreadyRendered","highlighted","onRowHeightChangedDebounced","onRowHeightChanged","setData","setDataCommon","updateData","update","oldData","onDataChanged","updateDataOnDetailNode","checkRowSelectable","createDataChangedEvent","dispatchLocalEvent","detailNode","newData","EVENT_DATA_CHANGED","createLocalRowEvent","getRowIndexString","rowPinned","createDaemonNode","oldNode","daemon","setDataAndId","setId","selectionService","syncInRowNode","isRowSelectableFunc","setRowSelectable","newVal","EVENT_SELECTABLE_CHANGED","calculateSelectedFromChildren","setSelected","parentKeys","getGroupKeys","ID_PREFIX_ROW_GROUP","excludeSelf","isPixelInRange","pixel","setFirstChild","EVENT_FIRST_CHILD_CHANGED","setLastChild","EVENT_LAST_CHILD_CHANGED","setChildIndex","childIndex","EVENT_CHILD_INDEX_CHANGED","setRowTop","EVENT_TOP_CHANGED","clearRowTopAndRowIndex","setRowIndex","setDragging","dragging","EVENT_DRAGGING_CHANGED","setHighlighted","EVENT_HIGHLIGHT_CHANGED","setAllChildrenCount","allChildrenCount","EVENT_ALL_CHILDREN_COUNT_CHANGED","setMaster","master","EVENT_MASTER_CHANGED","setGroup","updateHasChildren","EVENT_GROUP_CHANGED","setRowHeight","rowHeightEstimated","EVENT_HEIGHT_CHANGED","setRowAutoHeight","cellHeight","checkAutoHeightsDebounced","checkAutoHeights","notAllPresent","nonePresent","autoHeights","EVENT_ROW_INDEX_CHANGED","setUiLevel","uiLevel","EVENT_UI_LEVEL_CHANGED","createGlobalRowEvent","rowNodeEventThrottle","dispatchExpanded","rowRenderer","refreshCells","setDataValue","oldValue","valueService","valueChanged","dispatchCellChangedEvent","setGroupValue","groupData","columnId","setAggData","newAggData","colIds","aggData","oldAggData","footer","__hasChildren","EVENT_HAS_CHILDREN_CHANGED","isEmptyRowGroupNode","cellChangedEvent","EVENT_CELL_CHANGED","resetQuickFilterAggregateText","quickFilterAggregateText","isSelected","depthFirstSearch","atLeastOneSelected","atLeastOneDeSelected","atLeastOneMixed","childState","setSelectedInitialValue","clearSelection","suppressFinishActions","setSelectedParams","rangeSelect","isRowPinned","getLastSelectedNode","newRowClicked","allowMultiSelect","nodesChanged","doRowRangeSelection","setLastSelectedNode","updatedCount","selectThisNode","selectChildNodes","clearOtherNodes","updateGroupsFromChildrenSelections","groupsSelectChildren","lastSelectedNode","nodesToSelect","getNodesInRangeForSelection","isParentOfNode","potentialParent","selectionNotAllowed","selectionNotChanged","childrenAfterAggFilter","EVENT_MOUSE_ENTER","EVENT_MOUSE_LEAVE","getFirstChildOfFirstChild","rowGroupColumn","currentRowNode","isCandidate","foundFirstChildPath","nodeToSwapIn","parentRowNode","isFullWidthCellFunc","getRoute","ID_PREFIX_TOP_PINNED","ID_PREFIX_BOTTOM_PINNED","__extends$2i","_extendStatics39","__assign$8","__decorate$21","CheckboxSelectionComponent","setPassive","getCheckboxId","onSelectionChanged","onSelectableChanged","showOrHideSelect","stateName","onCheckedClicked","onUncheckedClicked","overrides","getIsVisible","showOrHideSelectListener","extraParams","showDisabledCheckboxes","removeHidden","__extends$2h","_extendStatics40","__decorate$20","__values$3","ExcelFactoryMode","DragAndDropService","dragSourceAndParamsList","dropTargets","DragAndDropService_1","ePinnedIcon","eHideIcon","eMoveIcon","eLeftIcon","eRightIcon","eGroupIcon","eAggregateIcon","ePivotIcon","eDropNotAllowedIcon","addDragSource","dragSource","allowTouch","dragStartPixels","onDragStart","onDragStop","onDragging","dragService","removeDragSource","sourceAndParams","clearDragSourceParamsList","nudge","eventLastTime","dragItem","getDragItem","lastDropTarget","dragSourceDropTarget","onDragStarted","createGhost","onDragStopped","draggingEvent","createDropTargetEvent","removeGhost","fromNudge","hDirection","getHorizontalDirection","vDirection","getVerticalDirection","positionGhost","validDropTargets","isMouseOnDropTarget","dropTarget","findCurrentDropTarget","leaveLastTargetIfExists","onGridExit","onGridEnter","enterDragTargetIfExists","getAllContainersFromDropTarget","secondaryContainers","getSecondaryContainers","containers","getContainer","allContainersIntersect","containers_1","containers_1_1","rect","getBoundingClientRect","horizontalFit","verticalFit","bottom","allContainersFromDropTarget","mouseOverTarget","allContainersFromDropTarget_1","allContainersFromDropTarget_1_1","currentContainers","targetContainsSource","isInterestedIn","e_3","e_4","elementStack","elementsFromPoint","elementStack_1","elementStack_1_1","validDropTargets_1","validDropTargets_1_1","e_4_1","e_3_1","onDragEnter","dragEnterEvent","setGhostIcon","getIconName","onDragLeave","dragLeaveEvent","addDropTarget","removeDropTarget","hasExternalDropZones","zones","external","findExternalZone","zone","eClientX","Left","Right","eClientY","Up","Down","dropZoneTarget","ghost","eGhost","ghostHeight","browserWidth","browserHeight","pageY","pageX","defaultView","windowScrollY","pageYOffset","scrollTop","windowScrollX","pageXOffset","eGhostParent","GHOST_TEMPLATE","mouseEventService","stampTopLevelGridCompWithGridInstance","eGhostIcon","dragItemName","targetEl","fullscreenElement","shake","defaultIconName","ICON_NOT_ALLOWED","ICON_PINNED","ICON_MOVE","ICON_LEFT","ICON_RIGHT","ICON_GROUP","ICON_AGGREGATE","ICON_PIVOT","ICON_HIDE","__extends$2g","_extendStatics41","__decorate$1$","RowDragComp","cellValueFn","customGui","suppressVisibilityChange","isCustomGui","setDragElement","checkCompatibility","strategy","ManagedVisibilityStrategy","NonManagedVisibilityStrategy","dragElement","getSelectedNodes","selection","managed","defaultTextValue","rowDragText","RowDrag","dragItemCount","dragSourceDomDataKey","dragAndDropService","VisibilityStrategy","setDisplayedOrVisible","neverDisplayed","shown","isShownSometimes","onSuppressRowDrag","workOutVisibility","rowDragFeature","getGridBodyCtrl","getRowDragFeature","shouldPreventRowMove","__extends$2f","_extendStatics42","__assign$7","__decorate$1_","GroupCellRendererCtrl","comp","eExpanded","eContracted","compClass","topLevelFooter","isTopLevelFooter","embeddedRowMismatch","isEmbeddedRowMismatch","nullValue","skipCell","cellIsBlank","setupShowingValueForOpenedParent","findDisplayedGroupNode","addFullWidthRowDraggerIfNeeded","addExpandAndContract","addCheckboxIfNeeded","addValueElement","setupIndent","refreshAriaExpanded","expandListener","eParentOfValue","rowGroupCols","fullWidth","pinnedLeftCell","pinnedRightCell","bodyCell","showingValueForOpenedParent","displayedGroupNode","keyOfGroupingColumn","valPresent","addFooterValue","addGroupValue","addChildCount","paramsAdjusted","adjustParamsWithDetailsFromRelatedColumn","innerCompDetails","getInnerCompDetails","valueWhenNoRenderer","setInnerRenderer","relatedColumn","footerValueGetter","footerValue","paramsClone","getFullWidthGroupRowInnerCellRenderer","getInnerRendererDetails","isGroupRowRenderer","details","relatedColDef","relatedCompDetails","getCellRendererDetails","cellRendererParams","suppressCount","updateChildCount","countString","isShowRowGroupForThisRow","setChildCount","eExpandedIcon","eContractedIcon","eGroupCell","eGridCell","suppressDoubleClickExpand","onCellDblClicked","onExpandClicked","showExpandAndContractIcons","expandableChangedListener","onRowNodeIsExpandableChanged","onExpandOrContract","nextExpandState","sticky","scrollToStickyNode","getScrollFeature","setVerticalScrollPosition","stickyRowTop","reducedLeafNode","leafGroup","displayedGroup","setExpandedDisplayed","setContractedDisplayed","pivotModeAndLeafGroup","addExpandableCss","isTotalFooterNode","setIndent","suppressPadding","fullWithRow","paddingCount","indentClass","rowDragComp","isUserWantsSelected","paramsCheckbox","checkbox","checkboxNeeded","cbSelectionComponent_1","setCheckboxVisible","suppressEnterExpand","__extends$2e","_extendStatics43","__decorate$1Z","GroupCellRenderer","compProxy","compDetails","valueToDisplay","setRenderDetails","eChildCount","ctrl","componentPromise","destroyComp","innerCellRenderer","__extends$2d","_extendStatics44","__decorate$1Y","LoadingCellRenderer","failedLoad","setupFailed","setupLoading","eLoadingText","eLoadingIcon","__extends$2c","_extendStatics45","LoadingOverlayComponent$1","LoadingOverlayComponent","DEFAULT_LOADING_OVERLAY_TEMPLATE","localisedTemplate","__extends$2b","_extendStatics46","NoRowsOverlayComponent$1","NoRowsOverlayComponent","DEFAULT_NO_ROWS_TEMPLATE","__extends$2a","_extendStatics47","TooltipComponent$1","TooltipComponent","__extends$29","_extendStatics48","__decorate$1X","UserComponentRegistry","agGridDefaults","agDateInput","agColumnHeader","agColumnGroupHeader","agSortIndicator","agTextColumnFloatingFilter","agNumberColumnFloatingFilter","agDateColumnFloatingFilter","agReadOnlyFloatingFilter","agAnimateShowChangeCellRenderer","agAnimateSlideCellRenderer","agGroupCellRenderer","agGroupRowRenderer","agLoadingCellRenderer","agCellEditor","agTextCellEditor","agSelectCellEditor","agPopupTextCellEditor","agPopupSelectCellEditor","agLargeTextCellEditor","agTextColumnFilter","agNumberColumnFilter","agDateColumnFilter","agLoadingOverlay","agNoRowsOverlay","agTooltipComponent","agDeprecatedNames","newComponentName","propertyHolder","animateShowChange","animateSlide","largeText","popupSelect","popupText","richSelect","headerComponent","jsComps","fwComps","registerJsComponent","frameworkComponents","registerFwComponent","registerDefaultComponent","rawName","translateIfDeprecated","retrieve","createResult","componentFromFramework","registeredViaFrameworkComp","frameworkComponent","jsComponent","isFrameworkComponent","defaultComponent","raw","deprecatedInfo","DateComponent","propertyName","HeaderComponent","HeaderGroupComponent","CellRendererComponent","CellEditorComponent","InnerRendererComponent","FilterComponent","FloatingFilterComponent","ToolPanelComponent","StatusPanelComponent","FullWidth","FullWidthLoading","FullWidthGroup","FullWidthDetail","FloatingFilterMapper","getFloatingFilterType","filterToFloatingFilterMapping","agSetColumnFilter","multi","agMultiColumnFilter","__extends$28","_extendStatics49","__decorate$1W","UserComponentFactory","getHeaderCompDetails","getCompDetails","getHeaderGroupCompDetails","getFullWidthCellRendererDetails","getFullWidthLoadingCellRendererDetails","getFullWidthGroupCellRendererDetails","getFullWidthDetailCellRendererDetails","getCellEditorDetails","getFilterDetails","defaultFilter","getLoadingOverlayCompDetails","getNoRowsOverlayCompDetails","getSetFilterCellRendererDetails","getFloatingFilterCompDetails","defaultFloatingFilter","getToolPanelCompDetails","toolPanelDef","getStatusPanelCompDetails","defObject","defaultName","mandatory","getCompKeys","compName","jsComp","fwComp","paramsFromSelector","popupFromSelector","popupPositionFromSelector","lookupFromRegistry","userComponentRegistry","agComponentUtils","doesImplementIComponent","adaptFunction","paramsMerged","mergeParamsWithApplicationProvidedParams","defObjectAny","selectorFunc","selectorRes","assignComp","providedJsComp","providedFwComp","xxxFrameworkDeprecatedWarn","warningMessage_1","popup","popupPosition","instance","thisComponentConfig","componentMetadataProvider","frameworkComponentWrapper","wrap","mandatoryMethodList","optionalMethodList","deferredInit","initComponent","paramsFromGrid","userParams","getDefaultFloatingFilterType","defaultFloatingFilterType","SetFilterModule","LayoutCssClasses","__extends$27","_extendStatics50","__decorate$1V","DragService","dragEndFunctions","dragSources","removeAllListeners","removeListener","dragSourceAndListener","mouseDownListener","touchEnabled","touchStartListener","isDragging","includeTouch","mouseListener","currentDragParams","touchLastTime","touchEndEvent","onTouchUp","events","addTemporaryEvents","onCommonMove","skipMouseEvent","_alreadyProcessedByDragService","mouseStartEvent","onMouseUp","currentEvent","isEventNearStartEvent","startEvent","getFirstActiveTouch","isEventFromThisGrid","isOverFormFieldElement","tagName","changedTouches","onUpCommon","eventOrTouch","__extends$26","_extendStatics51","__assign$6","__decorate$1U","FilterManager","allColumnFilters","activeAggregateFilters","activeColumnFilters","quickFilter","quickFilterParts","processingFilterChange","FilterManager_1","onColumnsChanged","refreshFiltersForAggregations","parseQuickFilter","setQuickFilterParts","externalFilterPresent","setFilterModel","allPromises","getFilterModel","modelKeys_1","filterWrapper","setModelOnFilterWrapper","filterPromise","getOrCreateFilterWrapper","before","after","promiseFilter","isColumnFilterPresent","isAggregateFilterPresent","doAggregateFiltersPass","filterToSkip","doColumnFiltersPass","updateActiveFilters","groupFilterEnabled","filterComp","isShowingPrimaryColumns","isAggFilter","updateFilterFlagInColumns","isAnyFilterPresent","isQuickFilterPresent","targetAggregates","targetedFilters","targetedData","newFilter","parsedFilter","callOnFilterChangedOutsideRenderCycle","isRefreshInProgress","onAnyFilterChanged","doesRowPassOtherFilters","doesRowPassFilter","filterInstanceToSkip","doesRowPassQuickFilterNoCache","filterPart","getQuickFilterTextForColumn","doesRowPassQuickFilterCache","aggregateRowForQuickFilter","doesRowPassQuickFilter","usingCache","doesRowPassAggregateFilters","stringParts","QUICK_FILTER_SEPARATOR","createValueGetter","getFilterComponent","createIfDoesNotExist","cachedFilter","putIntoGui","createFilterWrapper","createFilterInstance","createFilterParams","doesRowPassOtherFilter","compiledElement","guiPromise","eFilterGui","guiFromFilter","wrapper","disposeFilterWrapper","destroyFilter","__extends$25","_extendStatics52","AbstractHeaderCellComp","getCtrl","__extends$24","_extendStatics53","__decorate$1T","HeaderFilterCellComp","cssClassName","on","addOrRemoveBodyCssClass","eFloatingFilterBody","addOrRemoveButtonWrapperCssClass","eButtonWrapper","setCompDetails","getFloatingFilterComp","compPromise","setMenuIcon","eButtonShowMainFilter","setComp","afterCompCreated","__extends$23","_extendStatics54","__decorate$1S","RowAnimationCssClasses","LayoutFeature","view","updateLayoutClasses","AUTO_HEIGHT","PRINT","NORMAL","__extends$22","_extendStatics55","__decorate$1R","GridBodyScrollFeature","eBodyViewport","nextScrollTop","resetLastHorizontalScrollElementDebounced","resetLastHorizontalScrollElement","onDisplayedColumnsWidthChanged","whenReady","centerRowContainerCtrl","addScrollListener","fakeHScroll","getFakeHScrollCtrl","getViewportElement","onCenterViewportScroll","getViewport","onFakeHorizontalScroll","onVerticalScroll","horizontallyScrollHeaderCenterAndFloatingCenter","getCenterViewportScrollLeft","offset","topCenterContainer","getTopCenterRowContainerCtrl","stickyTopCenterContainer","getStickyTopCenterRowContainerCtrl","bottomCenterContainer","getBottomCenterRowContainerCtrl","getHeaderRowContainerCtrl","setHorizontalScroll","setContainerTranslateX","centerViewport","lastHorizontalScrollElement","isControllingScroll","eDiv","fakeHScrollViewport","onBodyHorizontalScroll","centerContainerViewport","eSource","shouldBlockScrollUpdate","doHorizontalScroll","setScrollTop","redrawRowsAfterScroll","schedule","fakeScrollLeft","fireScrollEvent","onHorizontalViewportChanged","bodyScrollEvent","scrollTimer","bodyScrollEndEvent","scrollTo","touchOnly","getCenterWidth","checkScrollLeft","executeAnimationFrameScroll","frameNeeded","setHorizontalScrollPosition","hScrollPosition","maxScrollLeft","vScrollPosition","getVScrollPosition","getHScrollPosition","scrollHorizontally","pixels","oldScrollPosition","scrollToTop","ensureNodeVisible","getRowCount","indexToSelect","getRow","ensureIndexVisible","paginationProxy","goToPageWithIndex","rowGotShiftedDuringOperation","stickyTopHeight","getStickyTopHeight","startingRowTop","startingRowHeight","paginationOffset","getPixelOffset","rowTopPixel","rowBottomPixel","heightOffset","heightScaler","getDivStretchOffset","vScrollTop","vScrollBottom","viewportHeight","pxTop","getScrollPositionForPixel","pxBottom","pxMiddle","newScrollPosition","redrawAfterScroll","ensureColumnVisible","newHorizontalScroll","getPositionedHorizontalScroll","setCenterViewportScrollLeft","isColumnOutsideViewport","columnBeforeStart","columnAfterEnd","viewportTooSmallForColumn","alignColToStart","alignColToEnd","isMiddle","getColumnBounds","colLeft","colMiddle","colRight","getViewportBounds","viewportStart","viewportEnd","end","multiplier","colLeftPixel","AutoScrollService","tickingInterval","onScrollCallback","scrollContainer","scrollAxis","scrollVertically","scrollByTick","getVerticalPosition","setVerticalPosition","getHorizontalPosition","setHorizontalPosition","shouldSkipVerticalScroll","shouldSkipHorizontalScroll","forceSkipVerticalScroll","skipVerticalScroll","scrollTick","tickLeft","tickRight","tickUp","tickDown","ensureTickingStarted","ensureCleared","doTick","tickCount","tickAmount","__extends$21","_extendStatics56","__assign$5","__decorate$1Q","__read$h","__spread$d","RowDragFeature","isMultiRowDrag","isGridSorted","isGridFiltered","clientSideRowModel","refreshStatus","onRowGroupChanged","gridBodyCon","autoScrollService","getBodyViewportElement","lastDraggingEvent","isSortActive","rowGroups","getRowNodes","isFromThisGrid","selectedNodes","getRowIndexNumber","currentNode","dispatchGridEvent","onEnterOrDragging","isDropZoneWithinThisGrid","gridGui","getNormalisedPosition","doManagedDrag","managedDrag","highlightRowAtPixel","moveRows","moveRowAndClearHighlight","lastHighlightedRowNode","getLastHighlightedRowNode","isBelow","Below","increment","getRowIdFunc_1","addIndex","getRowIndexAtPixel","getHighlightPosition","Above","updateRowData","getRowNode","clearRowHighlight","ensureRowsAtPixel","clearFocusedCell","rangeService","removeAllCellRanges","addRowDropZone","processedParams","fromGrid","draggingToRowDragEvent","getRowDropZone","overNode","vDirectionString","yNormalised","overIndex","getCurrentPageHeight","stopDragging","__extends$20","_extendStatics57","__decorate$1P","SelectionHandleType","CellRangeType","GridBodyCtrl","bodyScrollFeature","eGridBody","eTop","eBottom","eStickyTop","setCellTextSelection","addRowDragListener","setupRowAnimationCssClass","addEventListeners","addFocusListeners","onGridColumnsChanged","addBodyViewportListener","setFloatingHeights","disableBrowserDragging","addStopEditingWhenGridLosesFocus","registerGridBodyCtrl","getComp","onScrollVisibilityChanged","onPinnedRowDataChanged","onHeaderHeightChanged","elements","isFocusedElementNested","gridContainRelatedTarget","isNestedRelatedTarget","setColumnMovingCss","setCellSelectableCss","scrollVisibleService","setVerticalScrollPaddingVisible","setStickyTopWidth","setColumnCount","HTMLImageElement","focusOutListener","elementWithFocus","clickInsideGrid","viewports","viewport","isElementInThisGrid","getActivePopups","isElementWithinCustomPopup","updateRowCount","headerCount","headerNavigationService","isLastRowIndexKnown","setRowCount","registerBodyViewportResizeListener","overflowY","setPinnedTopBottomOverflowY","show","allowVerticalScroll","setAlwaysVerticalScrollClass","rowContainerHeightService","isStretching","animateRowsCssClass","ANIMATION_ON","ANIMATION_OFF","setRowAnimationCssOnBodyViewport","getGridBodyElement","getCenterRowContainerCtrl","contextMenuFactory","onContextMenu","onBodyViewportWheel","onStickyTopWheel","hasAnchoredPopup","offsetY","deltaY","pinnedRowModel","floatingTopHeight","getPinnedTopTotalHeight","floatingBottomHeight","getPinnedBottomTotalHeight","setTopHeight","setBottomHeight","setTopDisplay","setBottomDisplay","setStickyTopOffsetTop","setStickyTopHeight","vScrollVisible","getGridHeaderCtrl","pinnedTopHeight","setStickyTopTop","nextTimeout","scrollWidthToRemove","availableWidth","addScrollEventListener","removeScrollEventListener","RowType$1","CellRangeFeature","cellCtrl","cellComp","onRangeSelectionChanged","rangeCount","getCellRangeCount","getCellPosition","hasChartRange","getHasChartRange","CSS_CELL_RANGE_SELECTED","isSingleCell","updateRangeBorders","refreshHandle","rangeBorders","getRangeBorders","isTop","isRight","isBottom","isLeft","isMoreThanOneCell","cellRanges","getCellRanges","range","DIMENSION","VALUE","updateRangeBordersIfRangeCount","leftCol","rightCol","thisCol","ranges","isCellInSpecificRange","startRow","getRangeStartRow","endRow","getRangeEndRow","rowPositionUtils","sameRow","shouldHaveSelectionHandle","selectionHandle","addSelectionHandle","rangesLen","cellRange","cellPosition","isFillHandleAvailable","isRangeHandleAvailable","handleIsAvailable","isEditing","isCategoryCell","isContiguousRange","isBottomRightCell","cellRangeType","FILL","RANGE","selectionHandleFactory","createSelectionHandle","__extends$1$","_extendStatics58","CellPositionFeature","setupColSpan","setupRowSpan","onLeftChanged","onWidthChanged","applyRowSpan","onDisplayColumnsChanged","colsSpanning","getColSpanningList","getCellWidth","modifyLeftForPrintLayout","getCellLeft","leftPosition","isPrintLayout","totalRowHeight","zIndex","__extends$1_","_extendStatics59","CellCustomStyleFeature","staticClasses","applyUserStyles","applyCellClassRules","applyClassesFromColDef","cellClassParams","stylingService","processClassRules","cellClassRules","cellStyle","cellStyleParams","cellStyleFunc","setUserStyles","getStaticCellClasses","__extends$1Z","_extendStatics60","TooltipFeature","setupTooltip","browserTooltips","updateTooltipText","setTitle","tooltip","createTooltipFeatureIfNeeded","getTooltipValue","genericTooltipFeature","refreshToolTip","getLocation","getRowIndex","getTooltipText","getValueFormatted","__decorate$1O","Beans","doingMasterDetail","serverSideRowModel","__extends$1Y","_extendStatics61","CellMouseListenerFeature","onMouseEvent","onCellClicked","onCellDoubleClicked","onMouseOut","onMouseOver","isDoubleClickOnIPad","multiKeyPressed","intersectLastRange","cellClickedEvent","startRowOrCellEdit","nowMillis","lastIPadMouseClickEvent","cellDoubleClickedEvent","isRightClickInExistingRange","forceBrowserFocus","focusCell","containsWidget","thisCell","extendLatestRangeToCell","ctrlKeyPressed","setRangeToCell","isCellInAnyRange","mouseStayingInsideCell","cellMouseOutEvent","columnHoverService","clearMouseOver","cellMouseOverEvent","setMouseOver","cellContainsTarget","cellContainsRelatedTarget","__extends$1X","_extendStatics62","CellKeyboardListenerFeature","rowCtrl","onEnterKeyDown","onF2KeyDown","onEscapeKeyDown","onBackspaceOrDeleteKeyPressed","onNavigationKeyPressed","isRangeSelectionEnabled","onShiftRangeSelect","navigationService","endCell","extendLatestRangeInDirection","ensureCellVisible","stopEditingAndFocus","stopRowOrCellEdit","onKeyPress","pressedChar","onSpaceKeyPressed","currentSelection","newSelection","__extends$1W","_extendStatics63","__decorate$1N","DndSourceComp","eCell","checkVisibility","dragEvent","providedOnRowDrag","dndSourceOnRowDrag","dataTransfer","setDragImage","jsonData","defaultOnRowDrag","__extends$1V","_extendStatics64","__assign$4","instanceIdSequence$3","CellCtrl","suppressRefreshCell","onCellCompAttachedFuncs","createCellPosition","addFeatures","cellPositionFeature","cellCustomStyleFeature","cellMouseListenerFeature","cellKeyboardListenerFeature","cellRangeFeature","addTooltipFeature","tooltipCtrl","tooltipValueGetter","eCellWrapper","printLayout","startEditing","gow","updateAndFormatValue","addDomData","onCellFocused","applyStaticCssClasses","setWrapText","onFirstRightPinnedChanged","onLastLeftPinnedChanged","onColumnHover","setupControlComps","setupAutoHeight","setTabIndex","colIdSanitised","setColId","setRole","showValue","eAutoHeightContainer","eParentCell","minRowHeight","measureHeight","timesCalled","doc","newHeight","destroyResizeObserver","resizeObserverService","observeResize","forceNewCellRendererInstance","createCellRendererParams","includeSelection","isIncludeControl","includeRowDrag","includeDndSource","setIncludeSelection","setIncludeDndSource","setIncludeRowDrag","isForceWrapper","refreshShouldDestroy","selectionChanged","rowDragChanged","dndSourceChanged","editorParams","createCellEditorParams","cellEditorPopup","cellEditorPopupPosition","setEditing","setEditDetails","inPopup","editingInPopup","setInlineEditingClass","stopRowEditing","onPopupEditorClosed","takeValueFromCellEditor","noValueResult","newValueExists","getCellEditor","isCancelAfterEnd","saveNewValue","dispatchEventForSaveValueReadOnly","getValueFromValueService","refreshCell","forceRefresh","suppressFlash","dispatchEditingStoppedEvent","editingStoppedEvent","editingInline","popupEditorShowing","setInlineEditingCss","hackSayEditingInPopup","getParentOfValue","registerRowDragger","rowDraggerElement","addRowCompListener","valueParser","setFocusOutOnEditor","focusOut","setFocusInOnEditor","onCellChanged","suppressCellFlash","noValueProvided","valuesDifferent","flashCell","suppressNavigateAfterEdit","navigateAfterEdit","delays","flashDelay","fadeDelay","animateCell","cssName","fullName","animationFullName","transition","onFlashCells","cellId","cellPositionUtils","createId","cells","callValueFormatter","oldValueFormatted","valuesAreEqual","lockedClosedGroup","isOpenGroup","groupFootersEnabled","groupAlwaysShowAggData","ignoreAggData","DOM_DATA_KEY_CELL_CTRL","domEvent","onDisplayedColumnsChanged","colIdx","getBeans","htmlElement","startRowEditing","getRowCtrl","getRowPosition","setFocusedCell","onRowIndexChanged","cellFocused","isCellFocused","preventScrollOnBrowserFocus","fullRowEdit","isHovered","onColDefChanged","wrapText","dispatchCellContextMenuEvent","cellContextMenuEvent","onCellContextMenu","getCellRenderer","createSelectionCheckbox","cbSelectionComponent","createDndSource","dndSourceComp","customElement","customRowDragComp","newComp","createRowDragComp","clientSideRowModelActive","__extends$1U","_extendStatics65","__values$2","__read$g","__spread$c","RowType","RowContainerName","RowContainerType","instanceIdSequence$2","RowCtrl","animateIn","useAnimationFrameForCreate","allRowGuis","centerCellCtrls","leftCellCtrls","rightCellCtrls","lastMouseDownOnDragger","updateColumnListsPending","paginationPage","getCurrentPage","setAnimateFlags","rowFocused","isRowFocused","rowLevel","rowCssClassCalculator","calculateRowLevel","setRowType","addListeners","isSticky","rowComp","containerType","leftGui","rightGui","FULL_WIDTH","fullWidthGui","centerGui","allNormalPresent","fullWidthPresent","initialiseRowComps","rowType","dispatchFirstDataRenderedEvent","isCacheable","setCached","cached","rg","display","updateRowIndexes","setFocusedClasses","setStylesFromGridOptions","onRowSelected","updateColumnLists","slideRowIn","onTopChanged","fadeRowIn","businessKey","getRowBusinessKey","rowIdSanitised","businessKeySanitised","getInitialRowClasses","setRowId","setRowBusinessKey","isFullWidth","DOM_DATA_KEY_ROW_CTRL","createTask","addHoverFunctionality","setupFullWidth","addRowDraggerToRow","addDestroyTask","executeProcessRowPostCreateFunc","getPinnedForContainer","createFullWidthParams","masterDetailModuleLoaded","showFullWidth","getCellElement","getCellCtrl","eRow","ePinnedLeftRow","ePinnedRightRow","addRenderedRowListener","isStub","stub","isDetailCell","isFullWidthGroup","Normal","updateColumnListsImpl","createCellCtrls","prev","addCell","colInstanceId","prevCellCtrl","isCellEligibleToBeRemoved","centerCols","leftCols","rightCols","cellControls","setCellCtrls","nextContainerPinned","focused","column_1","oldRowTopExists","editingRow","getRowType","refreshFullWidth","tryRefresh","getFullWidthCellRenderer","fullWidthSuccess","centerSuccess","leftSuccess","rightSuccess","updateExpandedCss","onRowNodeDataChanged","onRowNodeCellChanged","onRowNodeHighlightChanged","onRowNodeDraggingChanged","onUiLevelChanged","onPaginationPixelOffsetChanged","onVirtualColumnsChanged","onCellFocusChanged","onPaginationChanged","onModelUpdated","onColumnMoved","addListenersForCellComps","getAllCellCtrls","postProcessCss","postProcessClassesFromGridOptions","postProcessRowClassRules","postProcessRowDragging","aboveOn","belowOn","onKeyboardNavigate","currentFullWidthComp","lastFocusedCell","getFocusedCell","currentFullWidthContainer","isFullWidthContainerFocused","nextEl","onFullWidthRowFocused","isFocused","removeCellCtrl","cellCtrlToRemove","onRowDblClick","onRowClick","onRowMouseDown","createRowEvent","createRowEventWithSource","multiSelectKeyPressed","shiftKeyPressed","multiSelectOnClick","rowDeselectionWithCtrl","setupDetailRowAutoHeight","eDetailGui","checkRowSizeFunc","resizeObserverDestroyFunc","addFullWidthRowDragging","newLevel","classToAdd_1","classToRemove_1","isFirstRowOnPage","getPageFirstRow","isLastRowOnPage","getPageLastRow","refreshFirstAndLastRowStyles","newFirst","newLast","firstRowOnPage","lastRowOnPage","stoppingRowEdit","isRowEdit","fireRowEditEvent","cellControls_1","cellControls_1_1","setEditingRow","sourceRenderedCell","cssClasses","processClassesFromGridOptions","classStr","processRowClassRules","rowStyles","processStylesFromGridOptions","businessKeyForNodeFunc","rowContainerType","rowIsEven","fullWidthRow","rowStyleFuncResult","rowStyleFunc","createAriaLabel","isUseAnimationFrameForCreate","roundRowTopToBounds","minPixel","applyPaginationOffset","maxPixel","heightFromFunc","lineHeight","destroyFirstPass","setupRemoveAnimation","destroySecondPass","destroyCellCtrls","ctrls","currentPage","topPx","afterPaginationPixels","getRealPixelPosition","setRowTopStyle","getInitialRowTop","getInitialRowTopShared","getInitialTransform","setTop","setTransform","rowIndexStr","headerRowCount","ariaRowIndex","getPinnedLeftRowElement","getPinnedRightRowElement","getBodyRowElement","getFullWidthRowElement","__extends$1T","_extendStatics66","__decorate$1M","__read$f","RowContainerEventsFeature","addMouseListeners","mockContextMenuForIPad","addKeyboardEvents","processKeyboardEvent","processMouseEvent","getRowForEvent","getRenderedCellForEvent","handleContextMenuMouseEvent","rowCon","anchorToElement","processCellKeyboardEvent","processFullWidthRowKeyboardEvent","handlePageScrollingKey","doGridOperations","cellKeyDownEvent","cellKeyPressEvent","focusedCell","onCtrlAndA","onCtrlAndC","onCtrlAndV","onCtrlAndD","undoRedoService","redo","undo","isRowsToRender","floatingStart","floatingEnd","rowEnd","setCellRange","rowStartIndex","rowStartPinned","rowEndIndex","rowEndPinned","columnStart","columnEnd","clipboardService","copyToClipboard","ClipboardModule","pasteFromClipboard","copyRangeDown","__extends$1S","_extendStatics67","__decorate$1L","ViewportSizeFeature","centerContainerCtrl","gridBodyCtrl","listenForResize","onScrollbarWidthChanged","onCenterViewportResized","registerViewportResizeListener","checkViewportAndScrolls","isViewportVisible","centerWidth","bodyHeight","updateScrollVisibleService","checkBodyHeight","updateScrollVisibleServiceImpl","horizontalScrollShowing","verticalScrollShowing","setScrollsVisible","isViewportHScrollShowing","getViewportScrollLeft","__extends$1R","_extendStatics68","__decorate$1K","SetPinnedLeftWidthFeature","onPinnedLeftWidthChanged","pinnedWidthService","getPinnedLeftWidth","__extends$1Q","_extendStatics69","__decorate$1J","SetPinnedRightWidthFeature","onPinnedRightWidthChanged","getPinnedRightWidth","__extends$1P","_extendStatics70","__decorate$1I","SetHeightFeature","onHeightChanged","maxDivHeightScaler","getUiContainerHeight","heightString","__extends$1O","_extendStatics71","__decorate$1H","DragListenerFeature","__extends$1N","_extendStatics72","__decorate$1G","CenterWidthFeature","totalWidth","__extends$1M","_extendStatics73","__decorate$1F","__read$e","__spread$b","getRowContainerTypeForName","CENTER","TOP_CENTER","STICKY_TOP_CENTER","BOTTOM_CENTER","TOP_LEFT","STICKY_TOP_LEFT","BOTTOM_LEFT","TOP_RIGHT","STICKY_TOP_RIGHT","BOTTOM_RIGHT","TOP_FULL_WIDTH","STICKY_TOP_FULL_WIDTH","BOTTOM_FULL_WIDTH","ContainerCssClasses","ViewportCssClasses","WrapperCssClasses","RowContainerCtrl","getRowContainerCssClasses","forContainers","viewportSizeFeature","registerWithCtrlsService","registerCenterRowContainerCtrl","registerLeftRowContainerCtrl","registerRightRowContainerCtrl","registerTopCenterRowContainerCtrl","registerTopLeftRowContainerCon","registerTopRightRowContainerCtrl","registerStickyTopCenterRowContainerCtrl","registerStickyTopLeftRowContainerCon","registerStickyTopRightRowContainerCtrl","registerBottomCenterRowContainerCtrl","registerBottomLeftRowContainerCtrl","registerBottomRightRowContainerCtrl","names","getContainerElement","getViewportSizeFeature","eViewport","addPreventScrollWhileDragging","listenOnDomOrder","stopHScrollOnPinnedRows","allTopNoFW","allStickyTopNoFW","allBottomNoFW","allMiddleNoFW","allNoFW","allMiddle","allCenter","allLeft","allRight","setContainerWidth","onDisplayedRowsChanged","setDomOrder","setViewportHeight","unsubscribeFromResize","amount","fullWithContainer","rowsThisContainer","getRowCtrls","embedFW","setRowCtrls","getTopRowCtrls","getStickyTopRowCtrls","getBottomRowCtrls","__extends$1L","_extendStatics74","__decorate$1E","GRID_BODY_TEMPLATE","GridBodyComp","setHeight","animate","bodyViewportClassList","ct","getFloatingTopBottom","__extends$1K","_extendStatics75","__decorate$1D","ScrollVisibleService","updateImpl","centerRowCtrl","__extends$1J","_extendStatics76","__decorate$1C","MouseEventService","gridInstanceId","MouseEventService_1","gridInstanceSequence","GRID_DOM_KEY","getCellPositionForEvent","gridPanelHasScrolls","vRange","__extends$1I","_extendStatics77","__assign$3","__decorate$1B","NavigationService","onPageDown","onPageUp","alt","rangeServiceShouldHandleShift","currentCell","processed","onHomeOrEndKey","onCtrlUpDownLeftRight","navigateTo","navigateParams","scrollIndex","scrollType","scrollColumn","focusIndex","focusColumn","isAsync","gridCell","pixelsInOnePage","getViewportHeight","pagingPixelOffset","currentPageBottomPixel","currentPageBottomRow","navigateToNextPageWithAutoHeight","navigateToNextPage","currentPageTopPixel","currentPageTopRow","up","firstRow","lastRow","rowPixelDiff","nextCellPixel","diff","isRowTallerThanView","getNextFocusIndexForAutoHeight","lastRowIndex","pixelSum","currentIndex","currentCellHeight","cellToFocus","cellNavigationService","getNextCellToFocus","homeKey","columnToSelect","backwards","tabToNextCellCommon","focusLastHeader","focusNextGridCoreContainer","cellOrRow","getCellByPosition","getRowByPosition","moveToNextEditingRow","moveToNextEditingCell","moveToNextCellNotEditing","getFocusedHeader","previousCell","previousPos","nextCell","findNextCellToFocusOn","previousEditable","nextEditable","rowsMatch","cellPos","tryToFocusFullWidthRow","previousPosition","nextPosition","getLastCellOfColSpan","getNextTabbedCell","userCell","previousCellPosition","nextCellPosition","floating","headerLen","focusHeaderPosition","headerPosition","cell","lookupRowNodeForCell","getPinnedTopRow","getPinnedBottomRow","allowUserOverride","hitEdgeOfGrid","isValidNavigateCell","normalisedPosition","focusPosition","currentCellFocused","fromBelow","focusEvent","colSpanningList","isGroupStickyEnabled","__extends$1H","_extendStatics78","__decorate$1A","PopupEditorWrapper","DOM_KEY_POPUP_EDITOR_WRAPPER","addKeyDownListener","__extends$1G","_extendStatics79","CellComp","rendererVersion","editorVersion","forceWrapper","refreshWrapper","actualElement","title","include","eCellValue","cellEditorPopupWrapper","firstRender","controlWrapperChanged","refreshCellRenderer","destroyRenderer","createCellRendererInstance","insertValueWithoutCellRenderer","createCellEditorInstance","destroyEditor","removeControls","checkboxSelectionComp","rowDraggingComp","providingControls","usingWrapper","putWrapperIn","takeWrapperOut","usingCellValue","putCellValueIn","takeCellValueOut","templateChanged","addControls","describedByIds","versionCopy","cellEditorPromise","afterCellEditorCreated","escapedValue","destroyEditorAndRenderer","cellRendererGui","hideEditorPopup","cellEditorGui","compClassAndParams","cellRendererClass","useTaskService","displayComponentVersionCopy","createCellRendererFunc","afterCellRendererCreated","cellRendererVersion","requestVersion","isCancelBeforeStart","addPopupCellEditor","addInCellEditor","clearParentOfValue","ePopupGui","useModelPopup","positionToUse","getPopupPosition","positionParams","positionCallback","positionPopupOverComponent","detach","__extends$1F","_extendStatics80","RowComp","cellComps","getInitialStyle","domOrder","cellCtrls","rowId","setFullWidthRowComp","cellsToRemove","newCellComp","cellCompsToRemove","destroyCells","elementsInOrder","destroyAllCells","cellsToDestroy","cp","fullWidthRowComponent","fullWidthCellRenderer","__extends$1E","_extendStatics81","__assign$2","__decorate$1z","HeaderRowType","RowContainerComp","template1","template2","templateFactory","rowComps","rowCtrls","preDestroy","oldRows","lastPlacedElement","existingRowComp","newRowComp","appendRow","oldRowComp","__decorate$1y","BodyDropPivotTarget","columnsToAggregate","columnsToGroup","columnsToPivot","clearColumnsList","dragColumns","__decorate$1x","__read$d","MoveColumnFeature","needToMoveLeft","needToMoveRight","centerContainer","ToolPanel","visibleState_1","visibleState","ensureIntervalCleared","allowedCols","normaliseX","checkCenterForScrolling","xAdjustedForScroll","firstVisiblePixel","lastVisiblePixel","ensureIntervalStarted","fromEnter","fakeEvent","mouseXNormalised","hDirectionNormalised","normaliseDirection","dragSourceType","attemptMoveColumns","calculateOldIndex","movingCols","gridCols","firstIndex","allMovingColumns","mouseX","draggingLeft","draggingRight","HeaderCell","newCols_1","movingGroup","allMovingColumnsOrdered","validMoves","calculateValidMoves","firstValidMove","constrainDirection","displayedCols","potentialMoves","targetOrder","move","order","displayedOrder","fragCount","groupFragCount","bestMove","parents","suppressMovable","allDisplayedCols","allGridCols","movingDisplayedCols","otherDisplayedCols","otherGridCols","displayIndex","widthOfMovingDisplayedCols_1","leftColumn","numberComparator","displacedCol","isColumnHidden","movingIntervalId","intervalCount","failedMoveAttempts","moveInterval","pixelsToMove","pixelsMoved","scrollFeature","columnsThatCanPin","pinType","__extends$1D","_extendStatics82","__decorate$1w","BodyDropTarget","eSecondaryContainers","leftRowContainerCtrl","bottomLeftRowContainerCtrl","topLeftRowContainerCtrl","rightRowContainerCtrl","bottomRightRowContainerCtrl","topRightRowContainerCtrl","bottomCenterRowContainerCtrl","topCenterRowContainerCtrl","moveColumnFeature","bodyDropPivotTarget","currentDropListener","isDropColumnInPivotMode","__read$c","__spread$a","CssClassApplier","getHeaderClassesFromColDef","getColumnClassesFromCollDef","getToolPanelClassesFromColDef","toolPanelClass","getClassParams","classesOrFunc","classToUse","__extends$1C","_extendStatics83","__decorate$1v","HeaderCellComp","headerCompVersion","getColumnGroupChild","setUserCompDetails","getUserCompInstance","headerComp","eResize","eHeaderCompWrapper","selectAllGui","getSelectAllGui","destroyHeaderComp","headerCompGui","setDragSource","__extends$1B","_extendStatics84","__decorate$1u","HeaderGroupCellComp","addOrRemoveResizableCssClass","afterHeaderCompCreated","headerGroupComp","__extends$1A","_extendStatics85","__decorate$1t","ClientSideRowModelSteps","HeaderRowComp","headerComps","extraClass","COLUMN_GROUP","FLOATING_FILTER","setHeaderCtrls","destroyHeaderCtrls","oldComps","createHeaderComp","comps","headerCtrl","__extends$1z","_extendStatics86","__decorate$1s","instanceIdSequence$1","AbstractHeaderCellCtrl","columnGroupChild","parentRowCtrl","lastFocusEvent","getWrapperHasFocus","wrapperHasFocus","DOM_DATA_KEY_HEADER_CTRL","getParentRowCtrl","__decorate$1r","unwrapUserComp","compAsAny","getFrameworkComponentInstance","HeaderNavigationDirection","GridApi","detailGridInfoMap","destroyCalled","registerOverlayWrapperComp","overlayWrapperComp","registerSideBarComp","sideBarComp","infiniteRowModel","__getAlignedGridService","alignedGridsService","__getContext","addDetailGridInfo","gridInfo","removeDetailGridInfo","getDetailGridInfo","forEachDetailGridInfo","getDataAsCsv","CsvExportModule","csvCreator","exportDataAsCsv","getExcelExportMode","baseParams","exportMode","getDataAsExcel","ExcelExportModule","excelCreator","getFactoryMode","MULTI_SHEET","exportDataAsExcel","getSheetDataForExcel","setFactoryMode","getMultipleSheetsAsExcel","exportMultipleSheetsAsExcel","setEnterpriseDatasource","setServerSideDatasource","setGridAriaProperty","eGrid","ariaProperty","setDatasource","setCacheBlockSize","blockSize","resetRootStore","setViewportDatasource","setRowData","immutableService","isActive","setFloatingTopRowData","setPinnedTopRowData","setFloatingBottomRowData","setPinnedBottomRowData","getFloatingTopRowCount","getPinnedTopRowCount","getFloatingBottomRowCount","getPinnedBottomRowCount","getFloatingTopRow","getFloatingBottomRow","expireValueCache","getVerticalPixelRange","getHorizontalPixelRange","setAlwaysShowHorizontalScroll","setAlwaysShowVerticalScroll","refreshToolPanel","flashCells","redrawRows","setFunctionsReadOnly","refreshHeader","setRowNodeExpanded","onGroupExpandedOrCollapsed","deprecated_refreshFromIndex","refreshModel","MAP","refreshInMemoryRowModel","refreshClientSideRowModel","paramsStep","EVERYTHING","stepsMapped","FILTER","aggregate","AGGREGATE","SORT","PIVOT","modelParams","keepRenderedRows","keepEditingRows","isAnimationFrameQueueEmpty","isQueueEmpty","flushAllAnimationFrames","getSizesForCurrentTheme","expandAll","expandOrCollapseAll","collapseAll","getToolPanelInstance","addVirtualRowListener","selectIndex","tryMulti","suppressEvents","deselectIndex","selectNode","deselectNode","selectAll","selectAllRowNodes","deselectAll","deselectAllRowNodes","selectAllFiltered","deselectAllFiltered","recomputeAggregates","showLoadingOverlay","showNoRowsOverlay","hideOverlay","isNodeSelected","getSelectedNodesById","getSelectedRows","getBestCostNodeSelection","getRenderedNodes","ensureColIndexVisible","nodeSelector","forEachLeafNode","forEachNode","forEachNodeAfterFilter","forEachNodeAfterFilterAndSort","getFilterInstance","getFilterInstanceImpl","unwrapped","getStatusPanel","statusBarService","getColumnDef","removeRowDropZone","activeDropTarget","getRowDropZoneParams","setDomLayout","setFillHandleDirection","setGroupHeaderHeight","setFloatingFiltersHeight","setPivotHeaderHeight","setPivotGroupHeaderHeight","setIsExternalFilterPresent","isExternalFilterPresentFunc","setDoesExternalFilterPass","doesExternalFilterPassFunc","setNavigateToNextCell","navigateToNextCellFunc","setTabToNextCell","tabToNextCellFunc","setTabToNextHeader","tabToNextHeaderFunc","setNavigateToNextHeader","navigateToNextHeaderFunc","setGroupRowAggNodes","groupRowAggNodesFunc","setGetGroupRowAgg","setGetBusinessKeyForNode","setGetChildCount","setProcessRowPostCreate","processRowPostCreateFunc","setGetRowNodeId","getRowNodeIdFunc","setGetRowId","setGetRowClass","rowClassFunc","setIsFullWidthCell","setIsFullWidthRow","isFullWidthRowFunc","setIsRowSelectable","setIsRowMaster","isRowMasterFunc","setPostSort","postSortFunc","setPostSortRows","postSortRowsFunc","setGetDocument","getDocumentFunc","setGetContextMenuItems","setGetMainMenuItems","setProcessCellForClipboard","processCellForClipboardFunc","setSendToClipboard","sendToClipboardFunc","setProcessCellFromClipboard","processCellFromClipboardFunc","setProcessSecondaryColDef","processSecondaryColDefFunc","setProcessPivotResultColDef","setProcessSecondaryColGroupDef","processSecondaryColGroupDefFunc","setProcessPivotResultColGroupDef","processPivotResultColDefFunc","processPivotResultColGroupDefFunc","setPostProcessPopup","postProcessPopupFunc","setDefaultGroupOrderComparator","defaultGroupOrderComparatorFunc","setInitialGroupOrderComparator","initialGroupOrderComparatorFunc","setGetChartToolbarItems","setPaginationNumberFormatter","paginationNumberFormatterFunc","setGetServerSideStoreParams","getServerSideStoreParamsFunc","setGetServerSideGroupLevelParams","setIsServerSideGroupOpenByDefault","isServerSideGroupOpenByDefaultFunc","setIsApplyServerSideTransaction","isApplyServerSideTransactionFunc","setIsServerSideGroup","isServerSideGroupFunc","setGetServerSideGroupKey","setGetRowStyle","setGetRowHeight","rowHeightFunc","isSideBarVisible","setSideBarVisible","setSideBarPosition","openToolPanel","closeToolPanel","getOpenedToolPanel","openedItem","setSideBar","isToolPanelShowing","doLayout","setGroupRemoveLowestSingleChildren","gridCtrl","getGridCtrl","destroyGridUi","cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid","warnIfDestroyed","resetQuickFilter","getRangeSelections","camelCaseToHumanReadable","addRangeSelection","deprecatedNoLongerUsed","addCellRange","clearRangeSelection","undoCellEditing","redoCellEditing","getCurrentUndoSize","getCurrentUndoStackSize","getCurrentRedoSize","getCurrentRedoStackSize","getChartModels","chartService","getChartRef","chartId","getChartImageDataURL","createRangeChart","createCrossFilterChart","restoreChart","chartModel","chartContainer","createPivotChart","copySelectedRowsToClipboard","copySelectedRangeToClipboard","copySelectedRangeDown","showColumnMenuAfterButtonClick","buttonElement","showMenuAfterMouseEvent","hidePopupMenu","hideActiveMenu","setPopupParent","ePopupParent","tabToPreviousCell","getCellRendererInstances","getCellEditorInstances","getEditingCells","startEditingCell","addAggFunc","addAggFuncs","clearAggFuncs","clear","applyServerSideTransaction","transaction","serverSideTransactionManager","applyTransaction","applyServerSideTransactionAsync","applyTransactionAsync","retryServerSideLoads","retryLoads","flushServerSideAsyncTransactions","flushAsyncTransactions","rowDataTransaction","refreshFullWidthRows","setDeltaSort","enable","batchUpdateRowData","insertItemsAtIndex","skipRefresh","removeItems","dataToRemove","refreshVirtualPageCache","refreshInfiniteCache","refreshInfinitePageCache","refreshCache","purgeVirtualPageCache","purgeInfinitePageCache","purgeInfiniteCache","purgeCache","purgeEnterpriseCache","route","purgeServerSideCache","refreshServerSide","purge","refreshStore","refreshServerSideStore","getServerSideStoreState","getServerSideGroupLevelState","getStoreState","getVirtualRowCount","getInfiniteRowCount","isMaxRowFound","setVirtualRowCount","maxRowFound","setInfiniteRowCount","getVirtualPageState","getCacheBlockState","getInfinitePageState","rowNodeBlockLoader","getBlockState","checkGridSize","getFirstRenderedRow","getFirstDisplayedRow","getFirstVirtualRenderedRow","getLastRenderedRow","getLastDisplayedRow","getLastVirtualRenderedRow","getDisplayedRowAtIndex","getDisplayedRowCount","paginationIsLastPageFound","isLastPageFound","paginationGetPageSize","getPageSize","paginationGetCurrentPage","paginationGetTotalPages","getTotalPages","paginationGetRowCount","getMasterRowCount","paginationGoToNextPage","goToNextPage","paginationGoToPreviousPage","goToPreviousPage","paginationGoToFirstPage","goToFirstPage","paginationGoToLastPage","goToLastPage","paginationGoToPage","page","goToPage","__extends$1y","_extendStatics87","__decorate$1q","SetLeftFeature","ariaEl","setColsSpanning","getColumnOrGroup","setLeftFirstTime","suppressMoveAnimation","oldLeftExists","animateInLeft","colOrGroup","oldActualLeft","actualLeft","indexColumn","__extends$1x","_extendStatics88","__decorate$1p","HoverFeature","addMouseHoverListeners","__extends$1w","_extendStatics89","__decorate$1o","HeaderFilterCellCtrl","filterExists","floatingFilterExists","setupWidth","setupLeft","setupHover","setupFocus","setupUserComp","setupSyncWithFilter","setupUi","showParentFilter","suppressFilterButton","eMenuIcon","nextFocusableEl","scrollToColumn","nextFocusableColumn","findNextColumnWithFloatingFilter","columModel","nextCol","focusInto","notFromHeaderWrapper","fromWithinHeader","fromTab","shouldFocusLast","setFocusedHeader","hovered","setLeftFeature","finalFilterParams","currentParentModel","floatingFilterComponentParams","filterComponent","syncWithFilter","__extends$1v","_extendStatics90","__decorate$1n","ResizeFeature","canResize","canAutosize","destroyResizeFuncs","removeResize","resize","autoSize","finishedWithResizeFunc","horizontalResizeService","addResizeBar","eResizeBar","onResizeStart","onResizing","onResizeEnd","skipHeaderOnAutoSize_1","autoSizeColListener_1","touchListener_1","addResize","addRefreshFunction","resizeAmount","resizeAmountNormalised","normaliseResizeAmount","resizeStartWidth","resizeWithShiftKey","dragChange","notPinningLeft","pinningRight","__extends$1u","_extendStatics91","AgCheckbox","onCheckboxClick","getNextValue","setReadOnly","dispatchChange","refreshSelectedClass","checkboxChangedEvent","__extends$1t","_extendStatics92","__decorate$1m","SelectAllFeature","cbSelectAllVisible","processingEventFromCheckbox","filteredOnly","headerCheckboxSelectionFilteredOnly","cbSelectAll","getCheckboxGui","headerCellCtrl","showOrHideSelectAll","onModelChanged","onCbSelectAll","refreshSelectAllLabel","isCheckboxSelection","checkRightRowModelType","updateStateOfCheckbox","getNextCheckboxState","selectionCount","notSelected","getSelectionCount","allSelected","ariaStatus","setAriaDescriptionProperty","refreshAriaDescription","selectedCount","notSelectedCount","headerCheckboxSelection","__extends$1s","_extendStatics93","__decorate$1l","HeaderCellCtrl","refreshFunctions","userHeaderClasses","ariaDescriptionProperties","updateState","setupMovingCss","setupMenuClass","setupSortableClass","setupWrapTextClass","addColumnHoverListener","setupFilterCss","setupColId","setupClassesFromColDef","addActiveHeaderMouseListeners","setupSelectAll","refreshAria","onColumnValueChanged","onColumnRowGroupChanged","onColumnPivotChanged","lookupUserCompDetails","userCompDetails","createParams","menuEnabled","showColumnMenu","setSortForColumn","eGridHeader","selectAllFeature","onEnterKeyPressed","isMenuEnabled","setActiveHeader","headerTooltip","refreshHeaderClasses","goa","classes","oldClasses","dragSourceElement","draggable","hideColumnOnExit","moveDragSource","createDragItem","unlockedColumns","suppressMenu","calculateDisplayName","workOutDraggable","refreshHeaderComp","newCompDetails","attemptHeaderCompRefresh","checkDisplayName","updateSortableCssClass","refreshAriaSort","wrapHeaderText","wrapperElement","stopResizeObserver","isMeasuring","checkMeasuring","startMeasuring","stopMeasuring","refreshAriaMenu","descriptionArray","__extends$1r","_extendStatics94","__decorate$1k","GroupResizeFeature","calculateInitialValues","takeFromGroup","takeFromLeafCols","resizeTakeFromCols","resizeTakeFromStartWidth","resizeTakeFromRatios","normaliseDragChange","resizeColumns","preferredSize","getPreferredWidthForColumnGroup","resizeCols","resizeRatios","leafCols","__extends$1q","_extendStatics95","__decorate$1j","GroupWidthFeature","removeChildListenersFuncs","addListenersToChildrenColumns","onDisplayedChildrenChanged","removeListenersOnChildrenColumns","widthChangedListener","__extends$1p","_extendStatics96","__decorate$1i","HeaderGroupCellCtrl","addClasses","addAttributes","groupResizeFeature","providedColGroup","refreshExpanded","eHeaderGroup","isSuppressMoving","getDragItemForGroup","allColumnsOriginalOrder","allColumnsCurrentOrder","childSuppressesMoving","__extends$1o","_extendStatics97","__decorate$1h","instanceIdSequence","HeaderRowCtrl","headerCellCtrls","onColumnResized","getHeaderCellCtrl","getWidthForRow","sizes","numberOfFloating","groupHeight","numberOfGroups","topOffset","thisRowHeight","oldCtrls","getColumnsInViewport","idOfChild","oldCtrl","isHeaderWrapperFocused","ctrlsToDisplay","destroyCtrls","getColumnsInViewportPrintLayout","getColumnsInViewportNormalLayout","actualDepth","getActualDepth","focusHeader","__extends$1n","_extendStatics98","__decorate$1g","__read$b","__spread$9","HeaderRowContainerCtrl","groupsRowCtrls","setupCenterWidth","setupPinnedWidth","setupDragAndDrop","resetScrollLeft","registerHeaderContainer","dropContainer","bodyDropTarget","keepColumns","sequence","focusedHeaderPosition","getFocusHeaderToUseAfterRefresh","groupRowCount","refreshColumnGroups","columnsRowCtrl","COLUMN","refreshColumns","destroyPreviousComp","filtersRowCtrl","rowIndexMismatch","refreshFilters","allCtrls","getAllCtrls","setCtrls","restoreFocusOnHeader","setCenterWidth","setContainerTransform","pinningLeft","hidden","widthWithPadding","setPinnedContainerWidth","getHtmlElementForColumnHeader","__extends$1m","_extendStatics99","__decorate$1f","HeaderRowContainerComp","headerRowComps","rowCompsList","selectAndSetTemplate","eCenterContainer","pinnedLeft","pinnedRight","PINNED_LEFT_TEMPLATE","PINNED_RIGHT_TEMPLATE","CENTER_TEMPLATE","eRowContainer","destroyRowComps","destroyRowComp","prevGui","oldRowComps","ctrlId","existingComp","appendEnsuringDomOrder","__extends$1l","_extendStatics100","__decorate$1e","HeaderNavigationService","centerHeaderContainer","getHeaderRowType","navigateVertically","fromHeader","rowLen","isUp","nextRow","nextFocusColumn","skipColumn","currentRowType","navigateHorizontally","nextHeader","normalisedDirection","focusedHeader","headerPositionUtils","findHeader","focusNextHeaderRow","nextRowIndex","findColAtEdgeForHeaderRow","columnToScrollTo","__extends$1k","_extendStatics101","__decorate$1d","GridHeaderCtrl","onPivotModeChanged","setupHeaderHeight","registerGridHeaderCtrl","totalHeaderHeight","px","setHeightAndMinHeight","clearFocusedHeader","__extends$1j","_extendStatics102","__decorate$1c","GridHeaderComp","addContainer","__extends$1i","_extendStatics103","__decorate$1b","HorizontalResizeService","dragStartX","setResizeIcons","MouseEvent","setResizeCursor","disableUserSelect","resetIcons","__extends$1h","_extendStatics104","__decorate$1a","StandardMenuFactory","showPopup","_positionCallback","tabListener","trapFocusWithin","isKeyboardEvent","KeyboardEvent","focusableEl","findTabbableParent","__extends$1g","_extendStatics105","__decorate$19","TabbedLayout","getTemplate","tabbedItemScrollMap","addItem","eHeader","isRightKey","currentPosition","activeItem","nextItem","showItemWrapper","eHeaderButton","eBody","isFocusUnderManagedComponent","setAfterAttachedParams","afterAttachedParams","showFirstItem","titleLabel","tabbedItem","showItem","itemWrapper","onItemClicked","lastScrollListener","bodyPromise","onlyUnmanaged","isKeyboardMode","afterAttachedCallback","keepScrollPosition","scrollableContainer_1","getScrollableContainer","scrollPosition_1","onActiveItemClicked","simpleHttpRequest","httpRequest","XMLHttpRequest","url","send","onreadystatechange","readyState","responseText","ServerSideTransactionResultStatus","__extends$1f","_extendStatics106","__decorate$18","ResizeObserverService","polyfillFunctions","debouncedCallback","suppressResize","ResizeObserver","resizeObserver","observe","disconnect","useBrowserResizeObserver","widthLastTime","heightLastTime","running","periodicallyCheckWidthAndHeight","doNextPolyfillTurn","usePolyfill","schedulePolyfill","polyfillScheduled","__extends$1e","_extendStatics107","__decorate$17","AnimationFrameService","createTasksP1","sorted","createTasksP2","destroyTasks","ticking","scrollGoingDown","lastScrollTop","taskCount","cancelledTasks","useAnimationFrame","isOn","verifyAnimationFrameOn","task","taskItem","createOrder","addTaskToList","cancelTask","taskList","sortTaskList","executeFrame","millis","p1TaskList","p1Tasks","p2TaskList","p2Tasks","frameStart","noMaxMillis","requestFrame","stopTicking","requestAnimationFrame","webkitRequestAnimationFrame","pending","__extends$1d","_extendStatics108","__decorate$16","PositionableFeature","dragStartPosition","lastSize","positioned","resizersAdded","resizeListeners","boundaryEl","isResizing","movable","currentResizer","center","getHeight","offsetElement","initialisePosition","centered","forcePopupParentAsOffsetParent","setOffsetParent","computedMinHeight","computedMinWidth","findBoundaryElement","offsetParentComputedStyles","paddingWidth","paddingHeight","refreshSize","top_1","isPositioned","getPosition","setMovable","moveElement","moveElementDragListener","onMoveStart","onMove","onMoveEnd","setResizable","clearResizeListeners","addResizers","removeResizers","topLeft","topRight","bottomRight","bottomLeft","side","resizerEl","getResizerElement","onResize","pointerEvents","removeSizeFromEl","restoreLastSize","isPercent","elRect","parentRect","yPosition","parentTop","xPosition","positionPopup","setPosition","updateDragStartPosition","calculateMouseMovement","anywhereWithin","topBuffer","xDiff","yDiff","movementX","shouldSkipX","movementY","shouldSkipY","boundaryElRect","skipX","skipY","createResizeMap","resizerMap","resizers","DOMParser","parseFromString","applySizeToSiblings","getSiblings","getMinSizeOfSiblings","currentEl","isFlex","nextHeight","nextWidth","vertical","containerToFlex","isHorizontal","isVertical","offsetLeft","offsetTop","oldWidth","skipWidth","oldHeight","skipHeight","calculateTopBuffer","__extends$1c","_extendStatics109","__decorate$15","AutoWidthCalculator","eHeaderCell","getHeaderCellForColumn","getAllCellsForColumn","addElementsToContainerAndGetWidth","eDummyContainer","eBodyContainer","cloneItemIntoDummy","dummyContainerWidth","eCellClone","cloneNode","eCloneParent","eCloneParentClassList","__extends$1b","_extendStatics110","__decorate$14","__values$1","__read$a","__spread$8","StickyRowFeature","createRowCon","destroyRowCtrls","stickyRowCtrls","containerHeight","getStickyRowCtrls","checkStickyRows","stickyRows","firstPixel","getFirstVisibleVerticalPixel","addStickyRow","stickyRow","lastAncester","childrenAfterSort","lastChildBottom","stickRowBottom","thisRowLastPx","firstPixelAfterStickyRows","firstMissingParent","refreshNodesAndContainerHeight","allStickyNodes","removedCtrls","addedNodes","ctrlsToDestroy","removedCtrl","newCtrls","__extends$1a","_extendStatics111","__decorate$13","__read$9","__spread$7","RowRenderer","destroyFuncsForColumnListeners","rowCtrlsByRowIndex","zombieRowCtrls","allRowCtrls","topRowCtrls","bottomRowCtrls","refreshInProgress","dataFirstRenderedFired","onPageLoaded","onDomLayoutChanged","stickyRowFeature","registerCellEventListeners","initialiseCache","redrawAfterModelUpdate","countProp","cachedRowCtrls","RowCtrlCache","updateAllRowCtrls","liveList","zombieList","cachedList","getEntries","getFullWidthRowCtrls","refreshListenersToColumnsForCellComps","removeGridColumnListeners","forEachCellWithThisCol","leftChangedListener","firstRightPinnedChangedListener","lastLeftPinnedChangedListener","colDefChangedListener","destroyRows","datasourceChanged","firstRenderedRow","lastRenderedRow","rowIndexesToRemove","removeRowCtrls","recycleRows","newPage","onlyBody","getAllRowCtrls","refreshFloatingRowComps","refreshFloatingRows","getRenderedIndexesForRowNodes","renderedRow","partialRefresh","indexesToRemove","getCellToRestoreFocusToAfterRefresh","suppressKeepFocus","getFocusCellToUseAfterRefresh","cellDomData","rowDomData","getLockOnRefresh","updateContainerHeights","scrollToTopIfNewData","rowsToRecycle","removeAllRowComps","focusedCellRecycled","rowIndexEqual","pinnedEqual","isFocusedCellGettingRecycled","redraw","dispatchDisplayedRowsChanged","restoreFocusedCell","releaseLockOnRefresh","suppressScrollToTop","setModelHeight","getCellCtrls","refreshCellParams","fullWidthRowCtrl","renderer","mapRowNodes","isRowInMap","rowIdsMap","colIdsMap","processRow","stubNodeIndexes","ctrlsByIdMap","rowsToRemove","indexToRemove","newFocusedCell","removeRowCompsNotToDraw","indexesToDraw","indexesToDrawMap","indexesNotToDraw","calculateIndexesToDraw","checkRowToDraw","indexStr","doNotUnVirtualiseRow","afterScroll","updateOffset","workOutFirstAndLastRowsToRender","createOrUpdateRowCtrl","redrawFullWidthEmbeddedRows","fullWidthCtrl","rowNodesMap","rowNodesToRefresh","selectivelyRefreshing","idsToRefresh","parentId","rowCtrlsMap","executeInAWhileFuncs","nodeId","addRow","bufferPixels","rowHeightsChanged","lastPixel","getCurrentPagePixelRange","pageFirstPixel","pageLastPixel","divStretchOffset","bodyVRange","bodyTopPixel","bodyBottomPixel","firstVisibleVPixel","ensureAllRowsInRangeHaveHeightsCalculated","firstRowIndex","pageFirstRow","pageLastRow","rowLayoutNormal","suppressRowCountRestriction","rowBufferMaxSize","firstDiffers","lastDiffers","topPixel","bottomPixel","ensureRowHeightsValid","rowHasFocus","isRowNodeFocused","rowIsEditing","rowIsDetail","isRowPresent","rowCtrlFromCache","renderedRows","rowPosition","gridRow","isRangeInRenderedViewport","startIndex","endIndex","blockAfterViewport","maxCount","entriesMap","entriesList","rowCtrlToDestroy","removeFromCache","rowNodeId","__extends$19","_extendStatics112","__decorate$12","ValueFormatterService","suppliedFormatter","useFormatterFromColumn","pinnedRowValueFormatter","valueFormatter","__extends$18","_extendStatics113","__decorate$11","PinnedRowModel","pinnedTopRows","pinnedBottomRows","getRowAtPixel","createNodesFromData","allData","nextRowTop_1","dataItem","idPrefix","getTotalHeight","forEachPinnedTopRow","forEachPinnedBottomRow","lastNode","DIRECTION","ChangedPath","keepingColumns","rootNode","nodeIdsToColumns","mapToItems","pathRoot","setInactive","depthFirstSearchChangedPath","pathItem","depthFirstSearchEverything","traverseEverything","forEachChangedNodeDepthFirst","traverseLeafNodes","executeFromRootNode","createPathItems","newEntryCount","newEntry","populateColumnsMap","linkPathItems","thisItem","parentItem","addParentNode","canSkip","getValueColumnsForNode","colsForThisNode","getNotValueColumnsForNode","__extends$17","_extendStatics114","RowNodeBlock","STATE_WAITING_TO_LOAD","STATE_LOADING","loadFromDatasource","getVersion","setStateWaitingToLoad","getState","pageLoadFailed","isRequestMostRecentAndLive","STATE_FAILED","processServerFail","dispatchLoadCompleted","success","successCommon","pageLoaded","thisIsMostRecentRequest","weAreNotDestroyed","STATE_LOADED","processServerResult","EVENT_LOAD_COMPLETE","block","__extends$16","_extendStatics115","__decorate$10","__param$6","RowNodeBlockLoader","activeBlockLoadsCount","blocks","RowNodeBlockLoader_1","maxConcurrentRequests","checkBlockToLoadDebounce","performCheckBlocksToLoad","addBlock","loadComplete","checkBlockToLoad","removeBlock","BLOCK_LOADER_FINISHED_EVENT","printCacheStatus","loadAvailability","blocksToLoad","getBlockStateJson","isLogging","isLoading","__extends$15","_extendStatics116","__decorate$$","PaginationProxy","topDisplayedRowIndex","bottomDisplayedRowIndex","pixelOffset","masterRowCount","onPaginationPageSizeChanged","startPixel","endPixel","startLimitIndex","endLimitIndex","calculatePages","modelUpdatedEvent","paginationChangedEvent","topRowBounds","bottomRowBounds","firstInRange","lastInRange","getRowBounds","getPageForIndex","pageSize","pageNumber","isRowInPage","lastPage","totalPages","setPageSize","calculatePagesAllRows","calculatePagesMasterRowsOnly","calculatedPagesNotActive","setPixelOffset","setZeroRows","getTopLevelRowCount","masterLastRowIndex","masterPageStartIndex","masterPageEndIndex","getTopLevelRowDisplayedIndex","firstIndexNotToShow","maxRowIndex","__extends$14","_extendStatics117","__decorate$_","StylingService","processAllCellClasses","onApplicableClass","onNotApplicableClass","processStaticCellClasses","classRules","classNames","classesToApply","classesToRemove","resultOfRule","rule","this_1","singleClass","classOrClasses","cssClassItem","__extends$13","_extendStatics118","AgRadioButton","onChange","__extends$12","_extendStatics119","AgToggleButton","__extends$11","_extendStatics120","AgInputTextField","preventDisallowedCharacters","pattern","clipboardData","getData","__extends$10","_extendStatics121","AgInputTextArea","__extends$$","_extendStatics122","AgInputNumberField","floatedValue","normalizeValue","onWheel","precision","adjustPrecision","floatString","setMin","setMax","setPrecision","setStep","__extends$_","_extendStatics123","AgInputRange","setMinValue","setMaxValue","__extends$Z","_extendStatics124","__decorate$Z","AgSlider","eSlider","eventChanged","textValue","sliderValue","setSliderWidth","setTextFieldWidth","minValue","maxValue","__extends$Y","_extendStatics125","__decorate$Y","AgAngleSelect","radius","offsetX","dragListener","eParentCircle","parentCircleRect","calculateAngleDrag","eAngleValue","degrees","floatValue","updateNumberInput","normalizeNegativeValue","normalizedValue","positionChildCircle","radians","eChildCircle","centerX","centerY","cos","sin","calculatePolar","atan2","toDegrees","sqrt","calculateCartesian","toRadians","getRadius","setOffsetX","setOffsetY","dx","dy","PI","normalizeAngle180","setRadius","radiansValue","__extends$X","_extendStatics126","__decorate$X","__read$8","AgColorPanel","isSpectrumDragging","isSpectrumHueDragging","isSpectrumAlphaDragging","colorChanged","picker","initRecentColors","spectrumVal","onSpectrumDraggerDown","onSpectrumDraggerMove","spectrumHue","onSpectrumHueDown","onSpectrumHueMove","spectrumAlpha","onSpectrumAlphaDown","onSpectrumAlphaMove","recentColors","onRecentColorClick","refreshSpectrumRect","spectrumValRect","refreshHueRect","spectrumHueRect","refreshAlphaRect","spectrumAlphaRect","moveDragger","moveHueSlider","moveAlphaSlider","valRect","setSpectrumValue","hueRect","slider","spectrumHueSlider","sliderRect","alphaRect","spectrumAlphaSlider","color","spectrumColor","rgbaColor","backgroundColor","spectrumDragger","saturation","brightness","dragger","draggerRect","innerHtml","addRecentColor","currentColor","maxRecentColors","__extends$W","_extendStatics127","__decorate$W","AgPanel","closable","hideTitleBar","positionableFeature","setBodyComponent","eTitleBar","setClosable","eTitleBarButtons","eContentWrapper","renderComponent","closeButtonComp","CLOSE_BTN_TEMPLATE","addTitleBarButton","onBtClose","bodyComponent","eTitle","__extends$V","_extendStatics128","__assign$1","__decorate$V","AgDialog","isMaximizable","isMaximized","maximizeListeners","resizeListenerDestroy","lastPosition","maximizable","bringPopupToFront","setMaximizable","alwaysOnTop","toggleMaximize","refreshMaximizeIcon","maximizeIcon","minimizeIcon","clearMaximizebleListeners","destroyListener","maximizeButtonComp","__extends$U","_extendStatics129","AgColorPicker","eGuiRect","colorDialog","colorPanel","__extends$T","_extendStatics130","__decorate$U","AgGroupComponent","suppressEnabledCheckbox","suppressOpenCloseIcons","enabled","alignItems","initialItems","cbGroupEnabled","setEnabled","setAlignItems","hideEnabledCheckbox","hideOpenCloseIcons","setupExpandContract","refreshAriaStatus","refreshChildDisplay","eGroupClosedIcon","eGroupOpenedIcon","toggleGroupExpand","showIcon","eToolbar","newCls","EVENT_EXPANDED","EVENT_COLLAPSED","hideItem","addCssClassToTitleBar","skipToggle","refreshDisabledStyles","onEnableChange","__extends$S","_extendStatics131","__decorate$T","TabGuardCtrl","skipTabGuardFocus","eTopGuard","eBottomGuard","focusInnerElement","providedFocusInnerElement","providedFocusIn","providedFocusOut","providedShouldStopEventPropagation","providedOnTabKeyDown","providedHandleKeyDown","activateTabGuards","guard","onFocus","tabGuardsAreActive","hasAttribute","deactivateTabGuards","fromBottom","getNextFocusableElement","focusable","findFocusableElements","forceFocusOutOfContainer","tabGuardToFocus","__extends$R","_extendStatics132","__read$7","__spread$6","TabGuardComp","initialiseTabGuard","createTabGuard","tabGuards","tabGuard","addTabGuards","tabGuardCtrl","topTabGuard","bottomTabGuard","removeAllChildrenExceptTabGuards","__extends$Q","_extendStatics133","__assign","__decorate$S","AgMenuList","menuItems","parentGui","closeIfIsChild","handleNavKey","topMenu","findTopMenu","clearActiveItem","activeMenuItem","deactivate","addMenuItems","menuItemOrString","addSeparator","menuItemDef","menuItem","AgMenuItemComponent","isAnotherSubMenuOpen","isSubMenuOpen","EVENT_MENU_ITEM_SELECTED","EVENT_MENU_ITEM_ACTIVATED","activateFirstItem","currentItem","activate","nextParent","findNextItem","openChild","closeSubMenu","openSubMenu","foundCurrent","__extends$P","_extendStatics134","__decorate$R","AgMenuPanel","wrappedComponent","closePanel","__extends$O","_extendStatics135","__decorate$Q","subMenuIsOpen","getClassName","addIcon","addName","addShortcut","addSubMenu","addTooltip","onItemSelected","subMenu","destroySubMenu","currentLevel","nextLevel","childMenu_1","cancelDeactivate","subMenu_1","menuPanel","subMenuGui_1","mouseEnterListener_1","positionPopupForMenu","hideSubMenu","cancelActivate","onItemActivated","isCompact","shortcut","activateTimeoutId","deactivateTimeoutId","ACTIVATION_DELAY","suffix","__extends$N","_extendStatics136","__decorate$P","__read$6","__spread$5","FocusService","FocusService_1","addKeyboardModeEvents","controller","docControllers","instancesMonitored","toggleKeyboardMode","removeKeyboardModeEvents","newControllers","currentGridCore","isKeyboardActive","keyboardModeActive","controllersForDoc","clearFocusedCellListener","onColumnEverythingChanged","unregisterGridCompController","gridCompController","focusedCellPosition","colFromColumnModel","isDomDataMissingInHierarchy","eBrowserCell","ePointer","gridColumn","focusedColumn","focusedHeaderRowIndex","previousHeaderPosition","nextHeaderPosition","focusGridView","focusFirstHeader","isAnyCellFocused","exclude","focusableString","excludeString","excludeNodes","focusableElements","toFocus","onlyManaged","activeEl","nextIndex","managedContainers","limit","getLastRow","getFirstRow","focusNextInnerContainer","isDetailGrid","AG_KEYBOARD_FOCUS","__extends$M","_extendStatics137","__decorate$O","__read$5","__spread$4","LoadingType","instanceIdSeq","PopupService","popupList","sourceRect","getParentRect","keepXYWithinBounds","maxX","xRightPosition","xLeftPosition","nudgeX","calculatePointerAlign","callPostProcessPopup","alignSide","horizontal","getPopupList","bounds","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","sizeProperty","anchorProperty","offsetProperty","scrollPositionProperty","docElement","documentRect","isBody","offsetSize","sizeOfParent","keepPopupPositionedRelativeTo","initialDiffTop","initialDiffLeft","lastDiffTop","lastDiffLeft","leftPx","pRect","sRect","currentDiffTop","newTop","currentDiffLeft","newLeft","intervalId","click","destroyPositionTracker","stopAnchoringPromise","allThemes","setAlwaysOnTop","popupHidden","hidePopupOnKeyboardEvent","hidePopupOnMouseEvent","hidePopupOnTouchEvent","popupParams","isEventFromCurrentPopup","isEventSameChainAsOriginalEvent","originalMouseEvent","isAnchored","indexOfThisChild","mouseEventOrTouch","screenX_1","screenX","screenY_1","screenY","xMatch","yMatch","getWrapper","popupLen","alwaysOnTopList","onTopLength","innerEls","innerElsScrollMap","__extends$L","_extendStatics138","__decorate$N","VirtualList","listName","isDestroyed","getItemHeight","addResizeObserver","setAriaProperties","drawVirtualRows","destroyObserver","focusRow","lastFocusedRowIndex","navigate","getLastFocusedRow","rowNumber","getComponentAt","rowComponent","forEachRenderedRow","viewportTopPixel","viewportScrolledBeforeRow","setComponentCreator","componentCreator","getScrollTop","clearVirtualRows","removeRow","ensureRowsRendered","insertRow","isRowSelected","OUTSIDE_ANGULAR_EVENTS","PASSIVE_EVENTS","VanillaFrameworkOverrides","isOutsideAngular","useCapture","isPassive","capture","global","__extends$K","_extendStatics139","__decorate$M","__read$4","__spread$3","CellNavigationService","ctrlPressed","getNextCellToFocusWithCtrlPressed","getNextCellToFocusWithoutCtrlPressed","upKey","downKey","leftKey","getCellAbove","getCellBelow","getCellToLeft","getCellToRight","isCellGoodToFocusOn","lastCell","colToLeft","colToRight","getRowBelow","isLastRowInContainer","nextStickyPosition","getNextStickyPosition","nextCtrl","rowBelow","getRowAbove","getLastBodyCell","getLastFloatingTopRow","rowAbove","getNextTabbedCellBackwards","getNextTabbedCellForwards","newRowIndex","newFloating","newColumn","__extends$J","_extendStatics140","__decorate$L","__param$5","AlignedGridsService","consuming","fireEvent","otherGrids","otherGridOptions","alignedGridService","onEvent","onColumnEvent","onScrollEvent","getMasterColumns","getColumnIds","colEvent","processColumnEvent","groupOpenedEvent","processGroupOpenedEvent","masterColumnGroup","otherColumnGroup","masterColumn","otherColumn","masterColumns","movedEvent","destColState","visibleEvent","pinnedEvent","resizedEvent","columnWidths_1","grid","__extends$I","_extendStatics141","__decorate$K","__param$4","SelectionService","selectedRows","removeGroupsFromSelection","changedPath","getRootNode","getNodeForIdIfSelected","rowNodeToKeepSelected","groupsToRefresh","otherRowNode","syncInOldRowNode","syncInNewRowNode","topLevelNodes","getTopLevelNodes","traverse","l","maybeGroup","setRowModel","justFiltered","rowModelClientSide","__decorate$J","ColumnApi","isPinning","getAllDisplayedVirtualColumns","setColumnWidth","getPivotResultColumn","getLeftDisplayedColumnGroups","getCenterDisplayedColumnGroups","getRightDisplayedColumnGroups","getAllDisplayedColumnGroups","setPivotResultColumns","getPivotResultColumns","getPrimaryColumns","getAllColumns","hideColumns","hideColumn","columnState","setColumnState","resetState","getAggregationColumns","removeAggregationColumn","removeAggregationColumns","addAggregationColumn","addAggregationColumns","setColumnAggFunction","getDisplayNameForCol","__extends$H","_extendStatics142","__decorate$I","ValueService","initialised","cellExpressions","callColumnCellValueChangedHandler","forFilter","groupDataExists","aggDataExists","filterValueGetter","executeFilterValueGetter","executeValueGetter","cellValueGetter","openedGroup","getOpenedGroup","newValueHandler","valueSetter","valueWasDifferent","setValueUsingField","onCellValueChanged","valuesAreSame","fieldPieces","fieldPiece","getValueCallback","valueFromCache","getKeyForNode","keyCreator","__extends$G","_extendStatics143","__decorate$H","__param$3","ExpressionService","expressionToFunctionCache","expressionOrFunc","evaluateExpression","createExpressionFunction","javaScriptFunction","functionBody","createFunctionBody","theFunction","Function","__extends$F","_extendStatics144","__decorate$G","TemplateService","templateCache","waitingCallbacks","templateFromCache","callbackList","that","client","onload","handleHttpResult","httpResult","response","__extends$E","_extendStatics145","__decorate$F","__param$2","LoggerFactory","logging","Logger","isLoggingFunc","__extends$D","_extendStatics146","__decorate$E","GridCtrl","eGridHostDiv","addRtlSupport","addOrRemoveKeyboardFocusClass","onGridSizeChanged","registerGridCtrl","showDropZones","showSideBar","SideBarModule","showStatusBar","StatusBarModule","showWatermark","EnterpriseCoreModule","setRtlClass","setCursor","setUserSelect","focusableContainers","getFocusableContainers","nextIdx","lastColumn","__extends$C","_extendStatics147","__decorate$D","GridComp","userSelect","webkitUserSelect","cursor","createTemplate","insertGridIntoDom","eRootWrapperBodyClassList","eRootWrapperBody","gridBodyComp","__extends$B","_extendStatics148","__decorate$C","__read$3","__spread$2","SortController","SortController_1","nextDirection","getNextSortDirection","columnsToUpdate","sortableRowGroupColumns","clearSortBarTheseColumns","updateSortIndex","lastColToChange","isCoupled","groupParent","lastSortIndexCol","allSortedCols","getIndexableColumnsOrdered","allSortedColsWithoutChanges","sortedCols","columnsToSkip","columnToClear","DEFAULT_SORTING_ORDER","notInArray","lastItemInArray","getColumnsOrderedForSort","allColumnsIncludingAuto","allColsIndexes","iA","iB","getSortModel","getSortOptions","canColumnDisplayMixedSort","isColumnSortCouplingActive","isGroupDisplayColumn","linkedColumns","sortableColumns","firstSort","displayColumn","__extends$A","_extendStatics149","__decorate$B","ColumnHoverService","selectedColumns","__extends$z","_extendStatics150","__decorate$A","ColumnAnimationService","executeNextFuncs","executeLaterFuncs","animationThreadCount","ensureAnimationCssClassPresent","flush","executeLaterVMTurn","animationThreadCountCopy","nowFuncs","waitFuncs","__extends$y","_extendStatics151","__decorate$z","AutoGroupColService","AutoGroupColService_1","doingTreeData","doingMultiAutoColumn","createOneAutoGroupColumn","defaultAutoColDef","generateDefaultColDef","GROUP_AUTO_COLUMN_BUNDLE_ID","userDef","cellRendererFramework","cellRendererSelector","__extends$x","_extendStatics152","__decorate$y","PaginationAutoPageSizeService","centerRowContainerCon","onBodyHeightChanged","checkPageSize","notActive","newPageSize","__extends$w","_extendStatics153","__decorate$x","ValueCache","cacheVersion","neverExpires","__cacheVersion","__cacheData","__extends$v","_extendStatics154","__decorate$w","ChangeDetectionService","doChangeDetection","onlyChangedColumns","doAggregate","__extends$u","_extendStatics155","__decorate$v","AgComponentUtils","jsCompFunc","metadata","functionAdapter","adaptCellRendererFunction","Adapter","callbackResult","candidate","__extends$t","_extendStatics156","__decorate$u","ComponentMetadataProvider","componentMetaData","dateComponent","detailCellRenderer","headerGroupComponent","loadingCellRenderer","loadingOverlayComponent","noRowsOverlayComponent","floatingFilterComponent","floatingFilterWrapperComponent","groupRowRenderer","statusPanel","tooltipComponent","__extends$s","_extendStatics157","__decorate$t","HARD_CODED_SIZES","headerCellMinWidth","listItemHeight","BASE_GRID_SIZE","MAT_GRID_SIZE","BALHAM_GRID_SIZE","ALPINE_GRID_SIZE","SASS_PROPERTY_BUILDER","CALCULATED_SIZES","Environment","useTheme","calculatedValue","prevEl","currentClass","currentDiv","sizeName","isThemeDark","themeFamily","reg","themeMatch","matched","newTheme_1","__extends$r","_extendStatics158","__decorate$s","__param$1","RowContainerHeightService","scrollY","uiBodyHeight","maxDivHeight","stretching","newScrollY","newBodyHeight","getUiBodyHeight","calculateOffset","setUiContainerHeight","pixelsToShave","modelHeight","uiContainerHeight","maxScrollY","scrollPercent","setDivStretchOffset","clearOffset","newOffset","newOffsetFloor","modelPixel","__extends$q","_extendStatics159","__decorate$r","SelectableService","updateSelectableAfterGrouping","recurseDown","nextChildrenFunc","rowSelectable","__extends$p","_extendStatics160","__decorate$q","PaginationComp","previousAndFirstButtonsDisabled","nextButtonDisabled","lastButtonDisabled","btFirst","btPrevious","btNext","btLast","onBtFirst","onBtPrevious","onBtNext","onBtLast","enableOrDisableButtons","updateRowLabels","setCurrentPageLabel","setTotalLabels","pagesExist","toDisplay","lbCurrent","formatNumber","strPage","strTo","strOf","strFirst","strPrevious","strNext","strLast","toggleButtonDisabled","zeroPagesToDisplay","isZeroPagesToDisplay","onLastPage","lbFirstRowOnPage","lbLastRowOnPage","lastPageFound","setTotalLabelsToZero","lbTotal","lbRecordCount","moreText","__extends$o","_extendStatics161","__decorate$p","OverlayWrapperComponent","inProgress","destroyRequested","manuallyDisplayed","overlayWrapperClassList","eOverlayWrapper","onRowDataUpdated","onNewColumnsLoaded","setWrapperTypeClass","loadingType","Loading","NoRows","showOverlay","workItem","destroyActiveOverlay","activeOverlay","showOrHideOverlay","__extends$n","_extendStatics162","__decorate$o","RowPositionUtils","pinnedBottomCount","pinnedTopCount","rowA","rowB","rowMax","rowMin","__extends$m","_extendStatics163","__decorate$n","CellPositionUtils","createIdFromValues","cellA","cellB","colsMatch","floatingMatch","indexMatch","__extends$l","_extendStatics164","UndoRedoAction","cellValueChanges","FillUndoRedoAction","initialRange","finalRange","UndoRedoStack","maxStackSize","actionStack","DEFAULT_STACK_SIZE","getCurrentStackSize","__extends$k","_extendStatics165","__decorate$m","UndoRedoService","activeCellEdit","activeRowEdit","isPasting","isFilling","eventCell","isCellEditing","isRowEditing","cellValueChange","clearStacks","undoStack","redoStack","undoRedoLimit","addRowEditingListeners","addCellEditingListeners","addPasteListeners","addFillListeners","keepUndoRedoStack","undoAction","processAction","processRangeAndCellFocus","redoAction","valueExtractor","currentRow","startColumn","setLastFocusedCell","cellRangeParams","pushActionsToUndoStack","__extends$j","_extendStatics166","__decorate$l","HeaderPositionUtils","nextColumn","getGroupMethod","getColMethod","__decorate$k","ColumnDefFactory","colGroupDefs","addToResult","childDef","createDefFromColumn","parentDef","existingParentDef","createDefFromGroup","defCloned","colDefCloned","__decorate$j","RowCssClassCalculator","extraCssClass","preProcessRowClassRules","rowCls","rowClassParams","__decorate$i","RowNodeSorter","doFullSort","sortOptions","sortedRowNodes","currentPos","compareRowNodes","sortedNodeA","sortedNodeB","sortOption","comparatorResult","providedComparator","getComparator","comparatorOnCol","groupLeafField","primaryColumn","leafChild","allLeafChildren","displayCol","__extends$i","_extendStatics167","__decorate$h","CtrlsService","readyCallbacks","CtrlsService_1","checkReady","stickyTopCenterRowContainerCtrl","stickyTopLeftRowContainerCtrl","stickyTopRightRowContainerCtrl","centerHeaderRowContainerCtrl","leftHeaderRowContainerCtrl","rightHeaderRowContainerCtrl","fakeHScrollCtrl","gridHeaderCtrl","p_1","createReadyParams","registerFakeHScrollCtrl","NAME","__extends$h","_extendStatics168","__decorate$g","CtrlsFactory","registry","meta","controllerName","controllerClass","getInstance","ControllerClass","__extends$g","_extendStatics169","__decorate$f","FakeHScrollCtrl","spacerWidthsListener","setFakeHScrollSpacerWidths","addActiveListenerToggles","initialiseInvisibleScrollbar","hideAndShowInvisibleScrollAsNeeded","refreshCompBottom","bottomPinnedHeight","setBottom","setScrollVisible","vScrollShowing","rightSpacing","scrollOnRight","setRightSpacerFixedWidth","includeRightSpacerScrollerCss","leftSpacing","setLeftSpacerFixedWidth","includeLeftSpacerScrollerCss","hScrollShowing","scrollContainerSize","setContainerHeight","__extends$f","_extendStatics170","__decorate$e","FakeHScrollComp","eRightSpacer","eLeftSpacer","__extends$e","_extendStatics171","__decorate$d","PinnedWidthService","checkContainerWidths","__extends$d","_extendStatics172","__decorate$c","RowNodeEventThrottle","dispatchExpandedDebounced","onRowGroupOpened","__read$2","__spread$1","Grid","GridCoreCreator","gridComp","createUi","acceptChanges","registeredModules","createBeansList","createProvidedBeans","contextLogger","registerModuleUserComponents","registerStackComponents","registerControllers","setColumnsAndData","dispatchGridReadyEvent","isEnterprise","controllers","ctrlsFactory","agStackComponents","createAgStackComponentsList","passedViaConstructor","registered","allModules","mapNames","addModule","mod","currentModule","dependantModules","extractModuleEntity","userComponents","compMeta","seed","moduleAgStackComps","rowModelClass","getRowModelClass","moduleBeans","beansNoDuplicates","moduleEntities","extractor","readyEvent","rowModelClasses","rowModels","InfiniteRowModelModule","ViewportRowModelModule","ServerSideRowModelModule","ClientSideRowModelModule","defaultGroupComparator","nodeAIsGroup","nodeBIsGroup","bothAreNormal","BarColumnLabelPlacement","BaseComponentWrapper","OriginalConstructor","componentType","createWrapper","createMethod","unwrap","addMethod","createMethodProxy","hasMethod","callMethod","globalObj","HTMLButtonElement","HTMLSelectElement","HTMLInputElement","RecursionType","__read$1","__spread","ClientSideNodeManager","nextId","allNodesMap","ROOT_NODE_ID","childrenAfterFilter","getCopyOfNodesMap","createNode","TOP_LEVEL","rowDataTran","rowNodeTransaction","nodesToUnselect","executeRemove","executeUpdate","executeAdd","updateSelection","nodesBeforeIndex","nodesAfterIndex","newNodes","allLeafChildren_1","normalizedAddIndex","prevIdx","currNode","currIdx","prevValueAtIndex","rowIdsRemoved","lookupRowNode","setMasterForRow","masterRowLevel","expandByDefault","__extends$c","_extendStatics173","__decorate$b","ClientSideRowModel","rowsToDisplay","refreshEverythingFunc","refreshEverythingAfterColsChangedFunc","afterColumnsChanged","onValueChanged","refreshMapListener","nodeManager","atLeastOneChange","rowAtStartPixel","rowAtEndPixel","setRowTopAndRowIndex","nextRowTop","displayedRowsMapped","changedPathActive","clearIfNotDisplayed","recurse","isRootNode","indexAtPixelNow","rowNodeAtPixelNow","highlight","lastHighlightedRow","filteredChildren","topLevelIndex","FILTER_AGGREGATES","createChangePath","rowNodeTransactions","noTransactions","transWithAddsOrDeletes","tx","doRowGrouping","doFilter","doPivot","doFilterAggregates","doSort","doRowsToDisplay","displayedNodesMapped","rowsMissing","firstRowHit","lastRowHit","lookingForLastRow","childOfLastRow","pixelToMatch","bottomPointer","topPointer","oldBottomPointer","oldTopPointer","midPointer","isRowInPixel","recursivelyWalkNodesAndCallback","AfterFilter","AfterFilterAndSort","forEachPivotNode","PivotNodes","recursionType","nodeChildren","aggregationStage","execute","filterAggregatesStage","expand","usingPivotMode","recursiveExpandOrCollapse","actionRow","sortStage","groupStage","restoreGroupState","filterStage","pivotStage","getGroupState","res_1","rowDataUpdatedEvent","applyAsyncTransactionsTimeout","rowDataTransactionBatch","waitMillis","executeBatchUpdateRowData","callbackFuncsBound","rowNodeTrans","forceRowNodeOrder","tranItem","rowNodeTran","commonUpdateRowData","createRowNodeOrder","orderMap","flattenStage","__extends$b","_extendStatics174","__decorate$a","FilterStage","filterService","__extends$a","_extendStatics175","__decorate$9","SortStage","sortActive","sortContainsGroupColumns","sortService","__extends$9","_extendStatics176","__decorate$8","FlattenStage","skipLeafNodes","showRootNode","topList","recursivelyAddToRowsToDisplay","ensureFooterNodeExists","addRowNodeToRowsToDisplay","rowsToFlatten","hideOpenParents","isParent","isSkippedLeafNode","isRemovedSingleChildrenGroup","isRemovedLowestSingleChildrenGroup","neverAllowToExpand","isHiddenOpenParent","excludedParent","uiLevelForChildren","createDetailNode","groupNode","footerNode","masterNode","__extends$8","_extendStatics177","__decorate$7","SortService","useDeltaSort","groupColumnsPresent","allDirtyNodes","calculateDirtyNodes","pullDownGroupDataForHideOpenParents","skipSortingPivotLeafs","skipSortingGroups","childrenToBeSorted","indexedOrders_1","acc","row1","row2","doDeltaSort","rowNodeSorter","updateChildIndexes","updateGroupDataForHideOpenParents","dirtyNodes","addNodesFunc","tran","allTouchedNodes","unsortedRows","oldSortedRows","untouchedRowsMap","touchedRows","sortedUntouchedRows","mapNodeToSortedNode","sortedChangedRows","mergeSortedArrays","listToSort","clearOperation","childRowNode","groupDisplayCol","displayingGroupKey","parentToStealFrom","__extends$7","_extendStatics178","__decorate$6","FilterService","filterNodes","includeChildNodes","passBecauseChildren","passBecauseDataPasses","doingTreeDataFiltering","treeDataDepthFirstFilter_1","alreadyFoundInParent","foundInParent","__extends$6","_extendStatics179","__decorate$5","__read","ImmutableService","transactionAndMap","createTransactionForRowData","orderIdMap","nodeTransaction","existingNodesMap","existingNode","clientSide","__extends$5","_extendStatics180","__decorate$4","InfiniteBlock","parentCache","createRowNodes","blockNumber","getStartRow","getEndRow","pageStatus","createLoadParams","getRows","successCallback","failCallback","sortModel","getLastAccessed","lastAccessed","dontTouchLastAccessed","lastAccessedSequence","localIndex","finalRowCount","destroyRowNodes","__extends$4","_extendStatics181","__decorate$3","__param","InfiniteCache","lastRowIndexKnown","blockCount","initialRowCount","dontCreatePage","blockId","createBlock","newBlock","purgeBlocksIfNeeded","getBlocksInOrder","destroyAllBlocks","destroyBlock","checkRowCount","onCacheUpdated","blockToExclude","blocksForPurging","maxBlocksProvided","blocksToKeep","emptyBlocksToKeep","MAX_EMPTY_BLOCKS_TO_KEEP","isBlockCurrentlyDisplayed","isBlockFocused","removeBlockFromCache","blockIndexStart","blockIndexEnd","blockToRemove","lastRowIndexPlusOverflow","overflowSize","forEachNodeDeep","destroyAllBlocksPastVirtualRowCount","blocksToDestroy","getRowNodesInRange","lastBlockId","inActiveRange","numberSequence","foundGapInSelection","hitFirstOrLast","__extends$3","_extendStatics182","__decorate$2","InfiniteRowModel","destroyCache","verifyProps","destroyDatasource","onColumnEverything","cacheParams","isSortModelDifferent","infiniteCache","resetCache","createModelUpdatedEvent","defaultIfInvalid","rowIndexForPixel","infinite","BaseCreator","getFileName","fileName","extension","getDefaultFileExtension","getDefaultFileName","serializingSession","createSerializingSession","gridSerializer","serialize","BaseGridSerializingSession","groupColumns","processCellCallback","processHeaderCallback","processGroupHeaderCallback","processRowGroupCallback","prepare","columnsToExport","extractHeaderValue","extractRowCellValue","accumulatedRowIndex","shouldRenderGroupSummaryCell","createValueForGroupNode","processedValue","processCell","currentColumnIndex","Downloader","download","content","URL","createObjectURL","bubbles","revokeObjectURL","__extends$2","_extendStatics183","CsvSerializingSession","isFirstLine","suppressQuotes","columnSeparator","addCustomContent","beginNewLine","putInQuotes","mergeAcross","appendEmptyCells","onNewHeaderGroupingRow","onColumn","onNewHeaderGroupingRowColumn","header","onNewHeaderRow","onNewHeaderRowColumn","onNewBodyRow","onNewBodyRowColumn","stringValue","__extends$1","_extendStatics184","__decorate$1","CsvCreator","getMergedParams","export","isExportSuppressed","packagedFile","Blob","__extends","_extendStatics185","__decorate","GridSerializer","gridSerializingSession","getColumnsToExport","columnKeys","prepareSession","prependContent","exportColumnGroups","exportHeaders","processPinnedTopRows","processRows","processPinnedBottomRows","appendContent","serializeChain","rowSkipper","shouldRowBeSkipped","skipSingleChildrenGroup","skipLowestSingleChildrenGroup","isClipboardExport","rowPositions","isExplicitExportSelection","onlySelected","isLeafNode","skipRowGroups","skipGroups","shouldSkipLowestGroup","shouldSkipCurrentGroup","skipPinnedTop","skipPinnedBottom","rowAccumulator","getCustomContentBelowRow","customFooter","customHeader","skipColumnGroupHeaders","recursivelyAddHeaderGroups","skipColumnHeaders","gridRowIterator_1","usingCsrm","usingSsrm","onlySelectedNonStandardModel","onlySelectedAllPages","directChildrenHeaderGroups","doAddHeaderHeader","gridRowIterator","columnIndex","collapsibleGroupRanges","collapsibleGroups","currentIdx","lastGroup","XmlFactory","createHeader","headerElement","encoding","standalone","headerStart","createXml","xmlElement","booleanTransformer","prefixedAttributes","prefixedSet","returnAttributeIfPopulated","rawMap","textNode","xmlValue","__values","crcTable","Uint32Array","ZipContainer","addFolders","paths","addFolder","folders","created","isBase64","addFile","files","getContent","mimeType","textOutput","buildFileStream","uInt8Output","buildUint8Array","clearStream","fData","totalFiles","foData","lL","cL","totalFiles_1","totalFiles_1_1","currentFile","getHeader","fileHeader","folderHeader","buildFolderEnd","utfPath","isUTF8","time","convertTime","dt","convertDate","extraFields","uExtraFieldPath","getFromCrc32Table","getConvertedContent","convertedContent","atob","tLen","cLen","lLen","uint8","Uint8Array","iterable","crc","AllCommunityModules","exports","requiredArgs","required","toDate","argument","argStr","stack","isMergeableObject","$$typeof","REACT_ELEMENT_TYPE","isReactElement","isSpecial","for","cloneUnlessOtherwiseSpecified","clone","deepmerge","defaultArrayMerge","arrayMerge","sourceIsArray","destination","mergeObject","funcProto","objectProto","funcToString","objectCtorString","isObjectLike","Ctor","isSymbol","CLONE_DEEP_FLAG","_extends","_inheritsLoose","subClass","superClass","_objectWithoutPropertiesLoose","excluded","sourceKeys","_assertThisInitialized","self","ReferenceError","isEmptyArray","isObject","isInteger","isString","isPromise","getIn","setIn","resVal","pathArray","currentPath","currentObj","nextPath","setNestedObjectValues","visited","WeakMap","_Object$keys","FormikContext","FormikProvider","Provider","FormikConsumer","Consumer","useFormikContext","formik","formikReducer","payload","touched","errors","isSubmitting","isValidating","submitCount","emptyErrors","emptyTouched","useFormik","_ref","_ref$validateOnChange","validateOnChange","_ref$validateOnBlur","validateOnBlur","_ref$validateOnMount","validateOnMount","isInitialValid","_ref$enableReinitiali","enableReinitialize","onSubmit","rest","initialValues","initialErrors","initialTouched","initialStatus","isMounted","fieldRegistry","current","_React$useReducer","dispatch","runValidateHandler","Promise","reject","maybePromisedErrors","actualException","runValidationSchema","validationSchema","schema","validateAt","sync","validateData","prepareDataForValidation","abortEarly","validateYupSchema","err","yupError","inner","_iterator","_isArray","_ref5","yupToFormErrors","runSingleFieldLevelValidation","runFieldLevelValidations","fieldKeysWithValidation","fieldValidations","fieldErrorsList","curr","runAllValidations","_ref2","fieldErrors","schemaErrors","validateErrors","validateFormWithLowPriority","useEventCallback","combinedErrors","validateFormWithHighPriority","resetForm","nextState","dispatchFn","onReset","maybePromisedOnReset","imperativeMethods","validateField","maybePromise","registerField","_ref3","unregisterField","setTouched","shouldValidate","setErrors","setValues","setFieldError","setFieldValue","executeChange","eventOrTextValue","maybePath","parsed","persist","currentTarget","outerHTML","multiple","valueProp","Boolean","currentArrayOfValues","isValueInArray","getValueForCheckbox","getSelectedValues","handleChange","eventOrPath","setFieldTouched","executeBlur","_e$target","handleBlur","eventOrString","setFormikState","stateOrCb","setStatus","setSubmitting","submitForm","isInstanceOfError","promiseOrUndefined","executeSubmit","_errors","handleSubmit","validateForm","handleReset","getFieldMeta","initialError","getFieldHelpers","setError","getFieldProps","nameOrOptions","isAnObject","valueState","onBlur","is","as","dirty","Formik","formikbag","render","innerRef","only","shouldClone","useIsomorphicLayoutEffect","_len","_key","useField","propsOrFieldName","fieldName","validateFn","Field","legacyBag","form","asElement","_innerRef","_rest","Form","_action","_useFormikContext","withFormik","_ref$mapPropsToValues","mapPropsToValues","vanillaProps","Component$1","componentDisplayName","_React$Component","actions","renderFormComponent","formikProps","mapPropsToStatus","mapPropsToErrors","mapPropsToTouched","connect","Comp","WrappedComponent","insert","arrayLike","copyArrayLike","maxIndex","FieldArrayInner","updateArrayField","alterTouched","alterErrors","_this$props","prevState","updateErrors","updateTouched","fieldError","fieldTouched","handlePush","swap","handleSwap","to","handleMove","handleInsert","handleReplace","unshift","handleUnshift","handleRemove","handlePop","_proto","componentDidUpdate","prevProps","tmp","arrayHelpers","_this$props2","defaultProps","ErrorMessage","ErrorMessageImpl","shouldComponentUpdate","toInteger","dirtyNumber","hasOwn","argType","default","enumerable","configurable","freeSelf","root","reIsDeepProp","reIsPlainProp","hasFunc","isLength","isArguments","customizer","reHasUnicode","rsAstral","rsCombo","rsFitz","rsNonAstral","rsRegional","rsSurrPair","reOptMod","rsSeq","rsSymbol","reUnicode","symIterator","isArrayLike","tag","errorToString","regExpToString","symbolToString","SYMBOL_REGEXP","printSimpleValue","quoteStrings","typeOf","printNumber","toISOString","printValue","mixed","oneOf","notOneOf","notType","originalValue","isCast","defined","email","lowercase","uppercase","moreThan","positive","negative","integer","noUnknown","__isYupSchema__","Condition","refs","otherwise","_len2","_key2","branch","base","isSchema","strReg","ValidationError","captureStackTrace","isError","formatError","propagateErrors","endEarly","collectErrors","validations","unwrapError","fulfilled","settled","nestedErrors","runValidations","catch","fromRight","iteratee","keysFunc","__data__","SetCache","cache","other","bitmask","equalFunc","isPartial","arrLength","othLength","stacked","seen","arrValue","othValue","compared","othIndex","symbolProto","symbolValueOf","valueOf","byteLength","byteOffset","buffer","eq","convert","objProps","objLength","skipCtor","objValue","objCtor","othCtor","objectTag","objIsArr","othIsArr","objTag","othTag","objIsObj","othIsObj","isSameTag","isBuffer","isTypedArray","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","baseIsEqual","matchData","noCustomizer","srcValue","Reference","isContext","isValue","isSibling","getter","cast","describe","isRef","__isYupRef","createErrorFactory","opts","_temp","_ref2$path","_ref2$message","_ref2$type","oldParams","newParams","resolveParams","createValidation","createError","ctx","testFn","runTest","validOrError","OPTIONS","lastPart","lastPartDebug","_part","isBracket","_subType","_type","parentPath","RefSet","toArray","merge","newItems","SchemaType","_deps","_conditions","_options","_exclusive","_whitelist","_blacklist","tests","transforms","withMutation","typeError","_defaultDefault","_this2","_mutate","_label","_meta","prependDeep","sourceVal","targetVal","_default","isType","_nullable","_typeCheck","conditions","resolvedSchema","_cast","assert","formattedValue","formattedResult","rawValue","_this3","_validate","_value","_this4","isStrict","_option","validationParams","initialTests","_typeError","_whitelistError","_blacklistError","validateSync","isValidSync","getDefault","strict","_isPresent","exclusive","notRequired","nullable","isNullable","isExclusive","when","deps","dep","enums","valids","invalids","strip","_strip","method","_arr","_getIn","_i2","_arr2","_i3","_arr3","inherits","ctor","superCtor","spec","BooleanSchema","rEmail","rUrl","isAbsent","StringSchema","_length","_min","_max","regex","excludeEmptyString","ensure","NumberSchema","less","more","truncate","avail","isoReg","invalidDate","DateSchema","struct","numericKeys","minutesOffset","UTC","_taggedTemplateLiteralLoose","strings","accumulator","initAccum","reLatin","reComboMark","reAsciiWord","reHasUnicodeWord","rsBreakRange","rsMathOpRange","rsBreak","rsDigits","rsDingbat","rsLower","rsMisc","rsUpper","rsMiscLower","rsMiscUpper","rsEmoji","reUnicodeWord","reApos","strSymbols","trailing","sortFields","excludes","edges","addNode","depPath","ii","sortByKeyOrder","makePath","_templateObject3","_templateObject2","_templateObject","ObjectSchema","_nodes","dft","_excludedEdges","shape","intermediateValue","innerOptions","__validating","isChanged","fieldValue","_from","alias","fromGetter","newObj","noAllow","known","stripUnknown","unknown","allow","transformKeys","snakeCase","constantCase","ArraySchema","of","_opts","castArray","castElement","subType","original","compact","rejector","innerType","Lazy","mapFn","_resolve","validateSyncAt","react_1","useEffectOnce","effect","effectFn","useRef","destroyFn","effectCalled","rendered","setVal","useState","useEffect","useLayoutEffectOnce","useLayoutEffect","__importDefault","__esModule","BeansContext","createContext","nativeObjectToString","symToStringTag","toStringTag","isOwn","unmasked","_classCallCheck","Constructor","_defineProperties","_createClass","protoProps","staticProps","maskSrcKey","uid","IE_PROTO","reIsHostCtor","reIsNative","isUndefined","isArrayBuffer","isFormData","FormData","isArrayBufferView","ArrayBuffer","isView","isNumber","isDate","isFile","isBlob","isStream","pipe","isURLSearchParams","URLSearchParams","isStandardBrowserEnv","product","assignValue","deepMerge","extend","thisArg","classesList","filtered","CssClasses","initialClasses","classesMap","setClass","isComponentStateless","isReactComponent","baseToString","isAbsolute","pathname","spliceOne","hasTrailingSlash","toParts","fromParts","isToAbs","isFromAbs","mustEndAbs","valueEqual","aValue","bValue","addLeadingSlash","stripLeadingSlash","stripBasename","hasBasename","stripTrailingSlash","createPath","hash","createLocation","currentLocation","hashIndex","searchIndex","parsePath","decodeURI","URIError","locationsAreEqual","createTransitionManager","prompt","setPrompt","nextPrompt","confirmTransitionTo","getUserConfirmation","appendListener","notifyListeners","canUseDOM","getConfirmation","confirm","getHistoryState","history","createBrowserHistory","globalHistory","canUseHistory","ua","supportsHistory","needsHashChangeListener","_props","_props$forceRefresh","_props$getUserConfirm","_props$keyLength","keyLength","basename","getDOMLocation","historyState","_window$location","createKey","transitionManager","handlePopState","isExtraneousPopstateEvent","handleHashChange","forceNextPop","ok","fromLocation","toLocation","allKeys","go","revertPop","initialLocation","createHref","listenerCount","checkDOMListeners","isBlocked","href","pushState","prevIndex","nextKeys","replaceState","goBack","goForward","unblock","listen","unlisten","HashPathCoders","hashbang","encodePath","decodePath","noslash","slash","stripHash","getHashPath","replaceHashPath","createHashHistory","_props$hashType","hashType","_HashPathCoders$hashT","ignorePath","encodedPath","prevLocation","allPaths","baseTag","pushHashPath","nextPaths","clamp","lowerBound","upperBound","createMemoryHistory","_props$initialEntries","initialEntries","_props$initialIndex","entries","entry","nextEntries","canGo","startOfWeek","dirtyDate","dirtyOptions","locale","localeWeekStartsOn","weekStartsOn","defaultWeekStartsOn","RangeError","dataViewCtorString","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","ctorString","startOfUTCWeek","getUTCDay","setUTCDate","getUTCDate","setUTCHours","getDateMillisecondsPart","getTimezoneOffsetInMilliseconds","baseTimezoneOffset","getTimezoneOffset","startOfUTCISOWeek","_objectWithoutProperties","sourceSymbolKeys","protectedDayOfYearTokens","protectedWeekYearTokens","isProtectedDayOfYearToken","token","isProtectedWeekYearToken","throwProtectedError","__awaiter","_arguments","P","generator","rejected","__generator","sent","trys","ops","verb","op","COMMON_MIME_TYPES","toFileWithPath","file","ext","withMimeType","webkitRelativePath","FILES_TO_IGNORE","fromEvent","evt","getDataTransferFiles","getInputFiles","fromList","kind","toFilePromises","noIgnoredFiles","webkitGetAsEntry","fromDataTransferItem","isDirectory","fromDirEntry","getAsFile","fwp","fromEntry","fromFileEntry","reader","createReader","readEntries","batch","err_1","fullPath","fileAccepted","accept","fileMatchSize","minSize","maxSize","isDefined","allFilesAccepted","isPropagationStopped","cancelBubble","isEvtWithFiles","types","onDocumentDragOver","isIe","isIeOrEdge","composeEventHandlers","_toConsumableArray","_arrayWithoutHoles","iter","_iterableToArray","_nonIterableSpread","_slicedToArray","_arrayWithHoles","_n","_s","_iterableToArrayLimit","_nonIterableRest","ownKeys","enumerableOnly","symbols","sym","_objectSpread","_defineProperty","getOwnPropertyDescriptors","Dropzone","_useDropzone","useDropzone","propTypes","oneOfType","arrayOf","bool","preventDropOnDocument","noClick","noKeyboard","noDrag","noDragEventsBubbling","getFilesFromEvent","onFileDialogCancel","onDragOver","onDrop","onDropAccepted","onDropRejected","initialState","isFileDialogActive","isDragActive","isDragAccept","isDragReject","draggedFiles","acceptedFiles","rejectedFiles","_ref2$disabled","_ref2$getFilesFromEve","_ref2$maxSize","_ref2$minSize","_ref2$multiple","_ref2$preventDropOnDo","_ref2$noClick","_ref2$noKeyboard","_ref2$noDrag","_ref2$noDragEventsBub","rootRef","inputRef","_useReducer","reducer","_useReducer2","openFileDialog","onWindowFocus","onKeyDownCb","isEqualNode","onFocusCb","onBlurCb","onClickCb","dragTargetsRef","onDocumentDrop","onDragEnterCb","onDragOverCb","dropEffect","_unused","onDragLeaveCb","targets","onDropCb","composeHandler","composeKeyboardHandler","composeDragHandler","getRootProps","_ref3$refKey","refKey","onClick","onInputElementClick","getInputProps","_ref4","_ref4$refKey","inputProps","autoComplete","fileCount","isMultipleAllowed","classCallCheck","createClass","possibleConstructorReturn","_Component","ReactCountryFlag","cdnUrl","styleProps","svg","flagUrl","emoji","fromCodePoint","backgroundImage","backgroundPosition","backgroundRepeat","backgroundSize","fontSize","verticalAlign","isRequired","Android","BlackBerry","iOS","Opera","Windows","any","regions","iso2","dialCode","isAreaCode","hasAreaCodes","U","Q","insertAt","head","styleSheet","cssText","createTextNode","defaultCountry","preferredCountries","withCountryMeta","N","buttonFlagStyles","F","listFlagStyles","I","E","w","L","z","T","R","O","G","J","phoneNumber","country","W","hintMsg","errorMsg","hint","u","animationName","hasError","moveLabel","onAnimationStart","suggestions","Fragment","htmlFor","asyncIterator","_invoke","delegate","_sent","dispatchException","abrupt","__await","resultName","nextLoc","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","completion","isGeneratorFunction","mark","awrap","AsyncIterator","stop","rval","complete","delegateYield","regeneratorRuntime","dateFormat","disabledKeyboardNavigation","placeholderText","onChangeRaw","zoneActiveText","fileInfo","disabledText","withClearButton","clearButtonText","mode","inline","selectedOptions","freeExports","freeModule","freeProcess","nodeUtil","require","binding","keyList","hasProp","hasElementType","equal","arrA","arrB","dateA","dateB","regexpA","regexpB","propIsEnumerable","toObject","test1","test2","test3","letter","shouldUseNative","installedModules","__webpack_require__","moduleId","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","defaultClearTimeout","runTimeout","fun","currentQueue","queue","draining","queueIndex","cleanUpNextTick","drainQueue","run","marker","runClearTimeout","Item","nextTick","browser","env","argv","versions","addListener","once","off","emit","prependListener","prependOnceListener","cwd","chdir","umask","makeEmptyFunction","emptyFunction","thatReturns","thatReturnsFalse","thatReturnsTrue","thatReturnsNull","thatReturnsThis","thatReturnsArgument","validateFormat","NODE_ENV","argIndex","framesToPop","warning","printWarning","_react","_react2","_interopRequireDefault","_propTypes2","onloadCallbackName","elementID","onloadCallback","verifyCallback","expiredCallback","sitekey","verifyCallbackName","expiredCallbackName","tabindex","hl","badge","grecaptcha","readyCheck","ReCaptcha","_possibleConstructorReturn","_renderGrecaptcha","widget","_updateReadyState","_inherits","_state","_state2","script","defer","_ReCaptcha2","_loadReCaptcha2","loadReCaptcha","invariant","ReactPropTypesSecret","loggedTypeFailures","typeSpecs","getStack","typeSpecName","ex","shim","propFullName","secret","getShim","ReactPropTypes","instanceOf","objectOf","exact","checkPropTypes","PropTypes","isValidElement","throwOnDirectAccess","ITERATOR_SYMBOL","createPrimitiveTypeChecker","createChainableTypeChecker","typeChecker","PropTypeError","propValue","getPropType","expectedClass","expectedClassName","propType","expectedValues","arrayOfTypeCheckers","checker","getPostfixForTypeWarning","shapeTypes","manualPropTypeCallCache","manualPropTypeWarningCount","checkType","cacheKey","chainedCheckType","expectedType","getPreciseType","iteratorFn","maybeIterable","getIteratorFn","Cache","_maxSize","_size","_values","SPLIT_REGEX","DIGIT_REGEX","LEAD_DIGIT_REGEX","SPEC_CHAR_REGEX","CLEAN_QUOTES_REGEX","pathCache","setCache","getCache","normalizePath","isQuoted","shouldBeQuoted","hasLeadingNumber","hasSpecialChars","setter","safe","segments","_forEach","ListCache","pairs","LARGE_ARRAY_SIZE","Stack","createEventEmitter","handlers","handler","changedBits","calculateChangedBits","_Provider$childContex","_Consumer$contextType","contextProp","emitter","getChildContext","componentWillReceiveProps","nextProps","childContextTypes","_Component2","onUpdate","observedBits","_proto2","componentDidMount","componentWillUnmount","contextTypes","Router","_isMounted","_pendingLocation","staticContext","computeRootMatch","isExact","Lifecycle","onMount","onUnmount","cacheCount","generatePath","compile","compilePath","pretty","Redirect","computedMatch","_ref$push","cache$1","cacheCount$1","matchPath","_options$exact","_options$strict","_options$sensitive","sensitive","_compilePath","compilePath$1","memo","Route","context$1","createURL","staticHandler","Switch","Children","cloneElement","useContext","checkDCE","__REACT_DEVTOOLS_GLOBAL_HOOK__","Buffer","startOfDay","Hash","MapCache","hookCallback","hooks","hasOwnProp","createUTC","createLocalOrUTC","utc","getParsingFlags","_pf","unusedTokens","unusedInput","charsLeftOver","nullInput","invalidMonth","invalidFormat","userInvalidated","iso","parsedDateParts","meridiem","rfc2822","weekdayMismatch","_isValid","flags","parsedParts","isNowValid","invalidWeekday","_strict","bigHour","isFrozen","createInvalid","momentProperties","copyConfig","_isAMomentObject","_tzm","_isUTC","_offset","_locale","updateInProgress","Moment","isMoment","absFloor","toInt","argumentForCoercion","coercedNumber","dontConvert","lengthDiff","diffs","suppressDeprecationWarnings","deprecate","firstTime","deprecationHandler","deprecations","deprecateSimple","mergeConfigs","parentConfig","childConfig","Locale","aliases","addUnitAlias","unit","shorthand","lowerCase","normalizeUnits","units","normalizeObjectUnits","inputObject","normalizedProp","normalizedInput","priorities","addUnitPriority","priority","zeroFill","targetLength","forceSign","absNumber","zerosToFill","formattingTokens","localFormattingTokens","formatFunctions","formatTokenFunctions","addFormatToken","padded","ordinal","localeData","formatMoment","expandFormat","mom","makeFormatFunction","replaceLongDateFormatTokens","longDateFormat","match1","match2","match3","match4","match6","match1to2","match3to4","match5to6","match1to3","match1to4","match1to6","matchUnsigned","matchSigned","matchOffset","matchShortOffset","matchWord","regexes","addRegexToken","strictRegex","getParseRegexForToken","regexEscape","p1","p2","p3","p4","tokens","addParseToken","addWeekParseToken","_w","addTimeToArrayFromToken","daysInYear","isLeapYear","parseTwoDigitYear","getSetYear","makeGetSet","keepTime","set$1","daysInMonth","modMonth","monthsShort","monthsShortRegex","monthsRegex","monthsParse","MONTHS_IN_FORMAT","defaultLocaleMonths","defaultLocaleMonthsShort","handleStrictParse","monthName","llc","_monthsParse","_longMonthsParse","_shortMonthsParse","setMonth","dayOfMonth","getSetMonth","defaultMonthsShortRegex","defaultMonthsRegex","computeMonthsParse","cmpLenRev","shortPieces","longPieces","mixedPieces","_monthsRegex","_monthsShortRegex","_monthsStrictRegex","_monthsShortStrictRegex","createDate","ms","setFullYear","createUTCDate","setUTCFullYear","firstWeekOffset","dow","doy","fwd","dayOfYearFromWeeks","week","weekday","resYear","resDayOfYear","dayOfYear","weekOfYear","resWeek","weekOffset","weeksInYear","weekOffsetNext","shiftWeekdays","ws","weekdaysMin","weekdaysShort","weekdays","weekdaysMinRegex","weekdaysShortRegex","weekdaysRegex","weekdaysParse","defaultLocaleWeekdays","defaultLocaleWeekdaysShort","defaultLocaleWeekdaysMin","handleStrictParse$1","weekdayName","_weekdaysParse","_shortWeekdaysParse","_minWeekdaysParse","defaultWeekdaysRegex","defaultWeekdaysShortRegex","defaultWeekdaysMinRegex","computeWeekdaysParse","minp","shortp","longp","minPieces","_weekdaysRegex","_weekdaysShortRegex","_weekdaysMinRegex","_weekdaysStrictRegex","_weekdaysShortStrictRegex","_weekdaysMinStrictRegex","hFormat","matchMeridiem","_meridiemParse","kInput","_isPm","isPM","_meridiem","pos1","pos2","globalLocale","getSetHour","baseConfig","calendar","sameDay","nextDay","nextWeek","lastDay","lastWeek","sameElse","LTS","LT","LL","LLL","LLLL","dayOfMonthOrdinalParse","relativeTime","future","past","ss","mm","hh","yy","meridiemParse","locales","localeFamilies","normalizeLocale","loadLocale","oldLocale","_abbr","getSetGlobalLocale","getLocale","defineLocale","abbr","_config","parentLocale","chooseLocale","checkOverflow","_overflowDayOfYear","_overflowWeeks","_overflowWeekday","defaults","configFromArray","currentDate","expectedWeekday","yearToUse","nowValue","_useUTC","getUTCMonth","currentDateArray","weekYear","temp","weekdayOverflow","GG","createLocal","_week","curWeek","gg","_dayOfYear","dayOfYearFromWeekInfo","_nextDay","setUTCMinutes","getUTCMinutes","extendedIsoRegex","basicIsoRegex","tzRegex","isoDates","isoTimes","aspNetJsonRegex","configFromISO","allowTime","timeFormat","tzFormat","configFromStringAndFormat","untruncateYear","yearStr","obsOffsets","UT","GMT","EDT","EST","CDT","CST","MDT","MST","PDT","PST","configFromRFC2822","parsedArray","monthStr","dayStr","hourStr","minuteStr","secondStr","extractFromRFC2822Strings","weekdayStr","parsedInput","checkWeekday","obsOffset","militaryOffset","numOffset","hm","ISO_8601","RFC_2822","skipped","stringLength","totalParsedInputLength","hour","isPm","meridiemHour","meridiemFixWrap","prepareConfig","preparse","tempConfig","bestMoment","scoreToBeat","currentScore","score","configFromStringAndArray","createFromInputFallback","configFromString","minute","second","millisecond","configFromObject","configFromInput","isUTC","isObjectEmpty","createFromConfig","prototypeMin","prototypeMax","pickBy","moments","ordering","Duration","years","quarters","quarter","weeks","isoWeek","unitHasDecimal","isDurationValid","_milliseconds","_days","_months","_data","_bubble","isDuration","absRound","utcOffset","sign","offsetFromString","chunkOffset","cloneWithOffset","setTime","local","getDateOffset","isUtc","aspNetRegex","isoRegex","createDuration","diffRes","parseIso","isBefore","positiveMomentsDifference","momentsDifference","inp","isAfter","createAdder","period","addSubtract","isAdding","invalid","subtract","monthDiff","wholeMonthDiff","anchor","newLocaleData","defaultFormat","defaultFormatUtc","lang","mod$1","dividend","divisor","localStartOfDate","utcStartOfDate","addWeekYearFormatToken","getSetWeekYearHelper","weeksTarget","setWeekAll","dayOfYearData","isoWeekYear","_dayOfMonthOrdinalParse","_ordinalParse","_dayOfMonthOrdinalParseLenient","getSetDayOfMonth","getSetMinute","getSetSecond","parseMs","getSetMillisecond","preParsePostFormat","formats","sod","startOf","calendarFormat","asFloat","zoneDelta","endOf","startOfDate","isoWeekday","inputString","postformat","withoutSuffix","humanize","fromNow","toNow","invalidAt","localInput","isBetween","inclusivity","localFrom","localTo","isSame","inputMs","isSameOrAfter","isSameOrBefore","parsingFlags","prioritized","unitsObj","getPrioritizedUnits","keepOffset","inspect","isLocal","toJSON","unix","creationData","isoWeeks","weekInfo","isoWeeksInYear","parseWeekday","parseIsoWeekday","keepLocalTime","keepMinutes","localAdjust","_changeInProgress","parseZone","tZone","hasAlignedHourOffset","isDST","isUtcOffset","zoneAbbr","zoneName","dates","isDSTShifted","_isDSTShifted","proto$1","get$1","listMonthsImpl","out","listWeekdaysImpl","localeSorted","_calendar","_longDateFormat","formatUpper","_invalidDate","_ordinal","isFuture","_relativeTime","pastFuture","isFormat","_monthsShort","_monthsParseExact","firstDayOfYear","firstDayOfWeek","_weekdays","_weekdaysMin","_weekdaysShort","_weekdaysParseExact","_fullWeekdaysParse","isLower","langData","mathAbs","addSubtract$1","absCeil","daysToMonths","monthsToDays","makeAs","asMilliseconds","asSeconds","asMinutes","asHours","asDays","asWeeks","asMonths","asQuarters","asYears","makeGetter","thresholds","substituteTimeAgo","abs$1","toISOString$1","totalSign","ymSign","daysSign","hmsSign","proto$2","monthsFromDays","withSuffix","posNegDuration","relativeTime$1","toIsoString","updateLocale","tmpLocale","relativeTimeRounding","roundingFunction","relativeTimeThreshold","threshold","myMoment","HTML5_FMT","DATETIME_LOCAL","DATETIME_LOCAL_SECONDS","DATETIME_LOCAL_MS","DATE","TIME","TIME_SECONDS","TIME_MS","WEEK","MONTH","factory","makeTypeChecker","tabsRole","isTab","isTabList","isTabPanel","deepMap","isTabChild","deepForEach","canUseActiveElement","uuid","tabCount","isTabNode","isTabDisabled","UncontrolledTabs","tabNodes","isTabFromContainer","selectedIndex","useSelectedIndex","handleClick","getNextTab","getPrevTab","getLastTab","getFirstTab","getTabsCount","onSelect","getTab","getPanelsCount","panelCount","disabledTabClassName","forceRenderTabPanel","selectedTabClassName","selectedTabPanelClassName","tabIds","panelIds","listIndex","wasTabFocused","tab","tabRef","panelId","selectedClassName","disabledClassName","tabId","forceRender","nodeAncestor","_this$props3","domRef","Tabs","handleSelected","copyPropsToState","defaultFocus","getDerivedStateFromProps","getModeFromProps","newState","maxTabIndex","_this$state","TabList","Tab","checkFocus","_cx","DEFAULT_CLASS","TabPanel","_assign","ReactCurrentOwner","RESERVED_PROPS","__self","__source","hasValidRef","hasValidKey","ReactElement","owner","_owner","childrenLength","childArray","createFactory","cloneAndReplaceKey","oldElement","newKey","_self","_source","showJsComp","compGui","setRef","createSyncJsComp","_getPrototypeOf","makeArrayFrom","SynchronousPromise","_continuations","_parent","_paused","_continueWith","_failWith","looksLikeAPromise","nextFn","catchFn","unresolved","_setParent","_isRejected","catchResult","_error","_chainPromiseData","_runResolutions","_isResolved","_runRejections","finally","ran","runFinally","pause","resume","firstPaused","_findFirstPaused","_findAncestry","cur","firstPending","_findFirstPending","_setResolved","_findFirstAncestor","_isPending","matching","firstRejected","_setRejected","_takeContinuations","continuations","cont","_handleUserFunctionResult","_handleWhenResolvedDataIsPromise","_handleResolutionError","continuation","nextSynchronousPromise","promiseData","newError","newResult","numResolved","thisResult","doReject","RealPromise","installGlobally","__patched","originalAwaiter","patchAwaiterIfRequired","uninstallGlobally","getPrototype","addMilliseconds","dirtyAmount","getUTCWeekYear","localeFirstWeekContainsDate","firstWeekContainsDate","defaultFirstWeekContainsDate","firstWeekOfNextYear","startOfNextYear","firstWeekOfThisYear","startOfThisYear","VALID_PUNCTUATION","matchesEntirely","regular_expression","ParseError","pa","pb","na","nb","_typeof","Metadata","is_object","countries","type_of","validateMetadata","setVersion","countryCode","v1","v2","v3","nonGeographic","nonGeographical","getCountryMetadata","callingCode","getCountryCodesForCallingCode","countryCodes","countryCallingCodes","selectNumberingPlan","hasCountry","numberingPlan","NumberingPlan","hasCallingCode","getNumberingPlanMetadata","getCountryCodeForCallingCode","IDDPrefix","defaultIDDPrefix","nationalNumberPattern","possibleLengths","nationalPrefixForParsing","nationalPrefixTransformRule","leadingDigits","hasTypes","country_phone_code_to_countries","country_calling_codes","globalMetadataObject","_getFormats","getDefaultCountryMetadataForRegion","Format","_getNationalPrefixFormattingRule","_nationalPrefixForParsing","nationalPrefix","_getNationalPrefixIsOptionalWhenFormatting","_type2","Type","_format","nationalPrefixFormattingRule","nationalPrefixIsOptionalWhenFormattingInNationalFormat","usesNationalPrefix","FIRST_GROUP_ONLY_PREFIX_PATTERN","getCountryCallingCode","countryCallingCode","isSupportedCountry","v4","create_extension_pattern","purpose","single_extension_characters","RFC3966_EXTN_PREFIX","EXTN_PATTERNS_FOR_PARSING","EXTN_PATTERNS_FOR_MATCHING","EXTN_PATTERN","VALID_PHONE_NUMBER_PATTERN","isViablePhoneNumber","DIGITS","parseDigit","character","parseDigits","digit","parseIncompletePhoneNumber","parsePhoneNumberCharacter","NON_FIXED_LINE_PHONE_TYPES","getNumberType","nationalNumber","phone","is_of_type","_NON_FIXED_LINE_PHONE","checkNumberLengthForType","type_info","possible_lengths","mobile_type","merged","mergeArrays","actual_length","minimum_length","isPossiblePhoneNumber","chooseCountryByCountryCallingCode","isPossibleNumber","isNonGeographicCallingCode","isInternational","CAPTURING_DIGIT_PATTERN","SINGLE_IDD_PREFIX","stripIDDPrefix","countryMetadata","IDDPrefixPattern","matchedGroups","parseRFC3966","_part$split2","formatRFC3966","isValidNumber","DEFAULT_OPTIONS","formatExtension","formattedNumber","addExtension","formatNationalNumber","fromCountry","getIDDPrefix","humanReadable","formattedForSameCountryCallingCode","toCountryCallingCode","toCountryMetadata","fromCountryMetadata","formatIDDSameCountryCallingCodeNumber","FIRST_GROUP_PATTERN","formatNationalNumberUsingFormat","useInternationalSeparator","useNationalPrefixFormattingRule","internationalFormat","applyInternationalSeparatorStyle","formatAs","availableFormats","nationalNnumber","leadingDigitsPatterns","lastLeadingDigitsPattern","chooseFormatForNumber","PhoneNumber","_metadata","isCountryCode","PHONE_NUMBER_START_PATTERN","AFTER_PHONE_NUMBER_END_PATTERN","_parseInput","throwOnError","startsAt","extractFormattedPhoneNumber","withExtensionStripped","number_without_extension","extractExtension","parseInput","formattedPhoneNumber","_parsePhoneNumber","defaultCallingCode","_extractCountryCallin","_stripNationalPrefixA","stripNationalPrefixAndCarrierCodeFromCompleteNumber","carrierCode","exactCountry","findCountryCode","parsePhoneNumber","hasSelectedNumberingPlan","extended","possible","stripNationalPrefixAndCarrierCode","prefixPattern","prefixMatch","capturedGroupsCount","nationalPhoneNumber","possibleCountries","_findCountryCode","_stripNationalPrefixA2","numberWithoutIDD","_extractCountryCallin2","extractCountryCallingCodeFromInternationalNumberWithoutPlusSign","shorterNumber","_countryCallingCode","possibleShorterNumber","possibleShorterNationalNumber","normalizeArguments","_Array$prototype$slic2","arg_1","arg_2","arg_3","arg_4","parsePhoneNumberFromString","_normalizeArguments","lower","upper","trimAfterFirstMatch","SECOND_NUMBER_START_PATTERN","parsePreCandidate","SLASH_SEPARATED_DATES","TIME_STAMPS","TIME_STAMPS_SUFFIX_LEADING","isValidPreCandidate","followingText","_pZ","pZ","PZ","pNd","_pL","pL","pL_regexp","pSc","pSc_regexp","pMn","pMn_regexp","latinLetterRegexp","isLatinLetter","isInvalidPunctuationSymbol","NON_PARENS","LEAD_CLASS","LEAD_CLASS_LEADING","BRACKET_PAIR_LIMIT","MATCHING_BRACKETS_ENTIRE","PUB_PAGES","isValidCandidate","leniency","lastCharIndex","WHITESPACE_IN_THE_BEGINNING_PATTERN","PUNCTUATION_IN_THE_END_PATTERN","PhoneNumberSearch","parseCandidate","endsAt","last_match","hasNext","LRUCache","tail","ensureLimit","put","RegExpCache","regExp","POSSIBLE","VALID","containsOnlyValidXChars","STRICT_GROUPING","regExpCache","candidateString","containsMoreThanOneSlashInNationalNumber","isNationalPrefixPresentIfRequired","checkNumberGroupingIsValid","allNumberGroupsRemainGrouped","EXACT_GROUPING","allNumberGroupsAreExactlyPresent","charAtIndex","charAtNextIndex","util","isNumberMatch","MatchType","NSN_MATCH","getCountryCodeSource","phoneNumberRegion","getRegionCodeForCountryCode","getCountryCode","getMetadataForRegion","getNationalSignificantNumber","formatRule","chooseFormattingPatternForNumber","numberFormats","getNationalPrefixFormattingRule","getNationalPrefixOptionalWhenFormatting","PhoneNumberUtil","formattingRuleHasFirstGroupOnly","rawInputCopy","normalizeDigitsOnly","getRawInput","maybeStripNationalPrefixAndCarrierCode","firstSlashInBodyIndex","secondSlashInBodyIndex","CountryCodeSource","FROM_NUMBER_WITH_PLUS_SIGN","FROM_NUMBER_WITHOUT_PLUS_SIGN","checkGroups","normalizedCandidate","normalizeDigits","formattedNumberGroups","getNationalNumberGroups","alternateFormats","MetadataManager","getAlternateFormatsForCountry","nationalSignificantNumber","alternateFormat","getPatternForRegExp","formattingPattern","formatNsnUsingPattern","rfc3966Format","candidateGroups","NON_DIGITS_PATTERN","candidateNumberGroupIndex","hasExtension","formattedNumberGroupIndex","FROM_DEFAULT_COUNTRY","region","getNddPrefixForRegion","Character","isDigit","getExtension","INNER_MATCHES","leadLimit","punctuationLimit","blockLimit","MAX_LENGTH_FOR_NSN","punctuation","digitSequence","PATTERN","UNWANTED_END_CHAR_PATTERN","PhoneNumberMatcher","maxTries","Leniency","parseAndVerify","extractInnerMatch","_INNER_MATCHES","isFirstMatch","possibleInnerMatch","_group","_match","lastMatch","LONGEST_DUMMY_PHONE_NUMBER","repeat","DIGIT_PLACEHOLDER_MATCHER","NATIONAL_PREFIX_SEPARATORS_PATTERN","CREATE_CHARACTER_CLASS_PATTERN","CREATE_STANDALONE_DIGIT_PATTERN","ELIGIBLE_FORMAT_PATTERN","VALID_FORMATTED_PHONE_NUMBER_PART_PATTERN","AFTER_PHONE_NUMBER_DIGITS_END_PATTERN","AsYouType","optionsOrDefaultCountry","formattedOutput","international","internationalPrefix","digits","nationalNumberDigits","setCountry","initializePhoneNumberFormatsForCountry","matchingFormats","resetFormat","chosenFormat","populatedNationalNumberTemplate","populatedNationalNumberTemplatePosition","formattedDigits","extractFormattedDigits","getFullNumber","inputDigits","getNonFormattedNationalNumber","extractedNumber","hasPlus","startInternationalNumber","nextDigits","isCountryCallingCodeAmbiguous","determineTheCountry","extractCountryCallingCode","previousNationalPrefix","extractNationalPrefix","matchFormats","formatNationalNumberWithNextDigits","attemptToFormatCompletePhoneNumber","previouslyChosenFormat","newlyChosenFormat","chooseFormat","formatNextNationalNumberDigits","reformatNationalNumber","createFormattingTemplate","leadingDigitsPatternIndex","nationalPrefixIsMandatoryWhenFormattingInNationalFormat","leadingDigitsPatternsCount","leadingDigitsPattern","_iterator2","_isArray2","formattedNationalNumber","formattedNationalNumberWithNationalPrefix","getSeparatorAfterNationalPrefix","spacing","getInternationalPrefix","getTemplateForNumberFormatPattern","strictPattern","nationalNumberDummyDigits","includesNationalPrefix","numberFormat","getFormatFormat","numberFormatWithNationalPrefix","_iterator3","_isArray3","cutAndStripNonPairedParens","getNonFormattedTemplate","cutBeforeIndex","dangling_braces","cleared_string","_i4","_dangling_braces","stripNonPairedParens","times","isNew","isProto","stubArray","arrayBuffer","dataView","isDeep","reFlags","typedArray","objectCreate","nodeIsMap","isMap","nodeIsSet","isSet","cloneableTags","baseClone","isFlat","isFull","isArr","isFunc","subValue","keysIn","assertThisInitialized","_setPrototypeOf","resIndex","nativeGetSymbols","getSymbols","addDays","addMonths","desiredMonth","dateWithDesiredMonth","reactIs","REACT_STATICS","contextType","getDefaultProps","getDerivedStateFromError","mixins","KNOWN_STATICS","caller","callee","arity","MEMO_STATICS","compare","TYPE_STATICS","getStatics","isMemo","ForwardRef","Memo","objectPrototype","hoistNonReactStatics","targetComponent","sourceComponent","blacklist","inheritedComponent","targetStatics","sourceStatics","argCount","argIdx","encodeURIComponent","BrowserRouter","resolveToLocation","normalizeToLocation","forwardRefShim","forwardRef","LinkAnchor","forwardedRef","_onClick","isModifiedEvent","Link","_ref2$component","forwardRefShim$1","forwardRef$1","_ref$ariaCurrent","ariaCurrent","_ref$activeClassName","activeClassName","activeStyle","classNameProp","isActiveProp","locationProp","styleProp","escapedPath","classnames","joinClassnames","freeGlobal","reIsUint","symbolsFunc","arrayIncludes","baseFindIndex","baseIsNaN","baseIndexOf","arrayIncludesWith","arrayMap","arrayPush","cacheHas","overArg","arrayProto","coreJsData","objectToString","spreadableSymbol","isConcatSpreadable","nativeMax","getNative","nativeCreate","arrayLikeKeys","inherited","baseTimes","skipIndexes","isIndex","assocIndexOf","baseIsNative","isHostObject","toSource","baseKeysIn","nativeKeysIn","isPrototype","getAllKeysIn","baseGetAllKeys","getSymbolsIn","getMapData","isKeyable","isFlattenable","toKey","isArrayLikeObject","omit","baseFlatten","depth","basePickBy","basePick","isCommon","valuesLength","computed","valuesIndex","baseDifference","otherArgs","subMilliseconds","dateLongFormatter","formatLong","timeLongFormatter","longFormatters","dateTimeFormat","matchResult","datePattern","timePattern","dateTime","getUTCISOWeekYear","fourthOfJanuaryOfNextYear","fourthOfJanuaryOfThisYear","getDaysInMonth","monthIndex","lastDayOfMonth","startOfQuarter","currentMonth","formatDistanceLocale","lessThanXSeconds","one","xSeconds","halfAMinute","lessThanXMinutes","xMinutes","aboutXHours","xHours","xDays","aboutXMonths","xMonths","aboutXYears","xYears","overXYears","almostXYears","buildFormatLongFn","defaultWidth","full","long","medium","short","formatRelativeLocale","yesterday","today","tomorrow","buildLocalizeFn","dirtyIndex","valuesArray","formattingValues","defaultFormattingWidth","_defaultWidth","_width","argumentCallback","buildMatchFn","dirtyString","matchPattern","matchPatterns","defaultMatchWidth","matchedString","parsePatterns","defaultParseWidth","findKey","valueCallback","formatDistance","addSuffix","comparison","formatRelative","_date","_baseDate","localize","ordinalNumber","_dirtyOptions","rem100","era","narrow","abbreviated","wide","dayPeriod","am","pm","midnight","noon","morning","afternoon","evening","night","parsePattern","parseResult","memoize","resolver","memoized","rePropName","reEscapeChar","stringToPath","quote","subString","isArg","isBuff","startOfUTCWeekYear","firstWeek","getUTCWeek","startOfUTCISOWeekYear","fourthOfJanuary","getUTCISOWeek","typedArrayTags","nodeIsTypedArray","originalModule","webpackPolyfill","$SyntaxError","SyntaxError","$Function","$TypeError","getEvalledConstructor","expressionSyntax","$gOPD","throwTypeError","ThrowTypeError","calleeThrows","gOPDthrows","hasSymbols","getProto","needsEval","TypedArray","INTRINSICS","AggregateError","Atomics","BigInt","DataView","decodeURIComponent","encodeURI","eval","EvalError","Float32Array","Float64Array","FinalizationRegistry","Int8Array","Int16Array","Int32Array","Proxy","SharedArrayBuffer","Uint8ClampedArray","Uint16Array","WeakRef","WeakSet","LEGACY_ALIASES","$concat","$spliceApply","$replace","$strSlice","$exec","getBaseIntrinsic","allowMissing","intrinsicName","doEval","gen","intrinsicBaseName","intrinsic","intrinsicRealName","skipFurtherCaching","implementation","toStr","origDefineProperty","hasPropertyDescriptors","supportsDescriptors","predicates","objA","objB","aKeys","bKeys","keysMap","aValueKeys","bValueKeys","aValueKey","__importStar","prop_types_1","AgGrid","AgGridColumn","mapChildColumnDefs","toColDef","columnProps","hasChildColumns","addProperties","listOfProps","propKey","ChangeDetectionStrategyType","SimpleFunctionalStrategy","DeepValueStrategy","areEquivalent","unwrapStringOrNumber","arrayCopy","newA","areEquivPropertyTracking","newB","strategyMap","DeepValueCheck","IdentityCheck","NoCheck","getStrategy","changeDetectionStrategy","ag_grid_community_1","agGridColumn_1","changeDetectionService_1","newReactComponent_1","portalManager_1","gridComp_1","reactFrameworkOverrides_1","AgGridReactUi","changeDetectionService","createRef","whenReadyFuncs","renderedAfterMount","mounted","portalManager","PortalManager","componentWrappingElement","maxComponentCreationTimeMs","createStyleForDiv","getPortals","containerStyle","gridParams","ReactFrameworkComponentWrapper","ReactFrameworkOverrides","setGridApi","processPropsChanges","extractGridPropertyChanges","extractDeclarativeColDefChanges","processChanges","debugLogging","currentColDefs","detectionStrategy","getStrategyTypeForProp","newColDefs","funcName","processWhenReady","rowDataChangeDetectionStrategy","isImmutableDataActive","deltaRowDataMode","UserReactComponent","NewReactComponent","useEffectOnce_1","comment","eForCommentRef","eForComment","eComment","addMinutes","addHours","addWeeks","addYears","dirtyMonth","__extends$3r","__read$Z","LicenseManager","watermarkMessage","LicenseManager_1","validateLicense","licenseKey","outputMissingLicenseKey","extractLicenseComponents","md5","license","isTrial","validateLicenseKeyForVersion","validateLegacyKey","outputInvalidLicenseKey","extractExpiry","restrictionHashed","decode","cleanedLicenseKey","hashStart","extractBracketedInformation","getLicenseDetails","expiry","formatDate","isDisplayWatermark","getWatermarkMessage","getGridReleaseDate","RELEASE_INFORMATION","keystr","utf8_decode","setLicenseKey","validateForTrial","gridReleaseDate","formattedExpiryDate","formattedReleaseDate","outputIncompatibleVersion","outputExpiredTrialKey","__extends$3q","MD5","ieCompatibility","md5cycle","ff","add32","cmn","md51","md5blk","md5blks","rhex","hex_chr","add32Compat","add32Std","lsw","__extends$3p","WatermarkComp","shouldDisplayWatermark","eLicenseTextRef","licenseManager","loc","hostname","isWhiteListURL","__extends$3o","ClipboardService","lastPasteOperationTime","navigatorApiFailed","clipboard","readText","processClipboardData","pasteFromClipboardLegacy","handlePasteEvent","currentPastOperationTime","executeOnTempElement","textArea","refocusLastFocusedCell","parsedData","removeLastLineIfBlank","doPasteOperation","cellsToFlash","updatedRowNodes","hasOnlyOneValueToPaste","pasteIntoActiveRange","pasteStartingFromFocusedCell","pasteOperationFunc","dispatchFlashCells","fireRowChanged","abortRepeatingPasteIntoRows","getRangeSize","indexOffset","dataRowIndex","iterateActiveRanges","currentRowData","columnsToPasteInto","isPasteSingleValueIntoRange","pasteSingleValueIntoRange","pasteMultipleValues","updateCellValue","firstRowValues","firstRowValue","lastLine","clipboardGridData","rowPointer","skipGroupRows","clipboardRowData","getNextGoodRowNode","includeHeaders","includeGroupHeaders","copyParams","shouldCopyRows","shouldSkipSingleCellRange","copyFocusedCellToClipboard","onlyFirst","rowCallback","iterateActiveRange","isLastRange","rangeIndex","isLastRow","areAllRangesAbleToMerge","buildDataFromMergedRanges","buildDataFromRanges","copyDataToClipboard","columnsSet","rowPositionsMap","allRowPositions","allCellsToFlash","getRangeRowPositionsAndCellsToFlash","rowPositionAsString","exportedColumns","buildExportParams","exportParams","userProvidedFunc","writeText","copyDataToClipboardLegacy","focusedElementBefore","execCommand","callbackNow","callbackAfter","eDoc","eTempInput","guiRoot","startRangeIndex","endRangeIndex","__extends$3n","ExpandState","PrimaryColsHeaderPanel","createExpandIcons","eExpand","onSelectClicked","eFilterTextField","onFilterTextChanged","onMiniFilterKeyPress","showOrHideOptions","eExpandChecked","eExpandUnchecked","eExpandIndeterminate","setExpandState","EXPANDED","showFilter","suppressColumnFilter","showSelect","suppressColumnSelectAll","showExpand","suppressColumnExpandAll","groupsPresent","onFilterTextChangedDebounced","DEBOUNCE_DELAY","selectState","expandState","COLLAPSED","INDETERMINATE","setSelectionState","ColumnModelItem","isGroup","getDisplayName","getDept","isPassesFilter","passesFilter","setPassesFilter","__extends$3m","__read$Y","__spread$w","__values$t","ToolPanelContextMenu","parentEl","initializeProperties","buildMenuItemMap","displayContextMenu","allowGrouping","allowValues","allowPivoting","menuItemMap","allowedFunction","activeFunction","activateLabel","deactivateLabel","activateFunction","groupedColumns","addColumnsToList","deActivateFunction","removeColumnsFromList","removeIcon","menuList","menuItemsMapped","getMappedMenuItems","isInactive","__extends$3l","ToolPanelColumnGroupComp","modelItem","allowDragging","focusWrapper","processingColumnStateChange","eDragHandle","checkboxGui","cbSelect","checkboxInput","onColumnStateChanged","onLabelClicked","onCheckboxChanged","onExpandChanged","setOpenClosedIcons","setupDragging","addVisibilityListenersToAllChildren","refreshAriaLabel","isSelectable","onSelectAllChanged","contextMenu","onChangeCommon","onExpandOrContractClicked","eColumnGroupIcons","getVisibleLeafColumns","extractCols","modelItemUtils","selectAllChildren","columnLabel","visibilityLabel","selectedValue","workOutSelectedValue","readOnlyValue","workOutReadOnlyValue","visibleLeafColumns","checkedCount","uncheckedCount","isColumnChecked","colsThatCanAction","pivoted","grouped","aggregated","oldState","folderOpen","cbValue","__extends$3k","PRIMARY_COLS_LIST_ITEM_HOVERED","PrimaryColsListPanelItemDragFeature","virtualList","currentDragColumn","lastHoveredColumnItem","columnPanelItemDragStart","columnPanelItemDragEnd","createDropTarget","createAutoScrollService","getCurrentColumns","moveBlocked","virtualListGui","hoveredColumnItem","getDragColumnItem","clearHoveredItems","maxLen","getDisplayedColsList","normalizedRowIndex","targetIndex","getTargetIndex","getMoveDiff","currentColumns","targetColumn","columnItemComponent","targetColumnIndex","adjustedTarget","__extends$3j","ToolPanelColumnComp","groupsExist","indent","setColumn","anyFunctionActive","canBeToggled","canBeDragged","noFunctionsAllowed","checkboxPassive","__extends$3i","UIColumnModel","PRIMARY_COLS_LIST_PANEL_CLASS","PrimaryColsListPanel","destroyColumnItemFuncs","destroyColumnTree","allColsTree","suppressSyncLayoutWithGrid","fireSelectionChangedEvent","expandGroupsByDefault","contractColumnSelection","columnListName","listItemElement","createComponentFromItem","suppressColumnMove","renderedGroup","columnComp","expandedStates","getExpandedStates","pivotModeActive","buildTreeFromWhatGridIsDisplaying","buildTreeFromProvidedColumnDefs","setExpandedStates","markFilteredColumns","flattenAndFilterModel","displayedColsList","forEachItem","colGroup","colDefService","syncLayoutWithGrid","setColumnLayout","buildListModel","columnExpandedListener","onColumnExpanded","recursivelyBuild","parentList","createGroupItem","createColumnItem","columnGroupDef","suppressColumnsToolPanel","removeFunc","recursiveFunc","focusedRow","focusRowIfAlive","doSetExpandedAll","setGroupsExpanded","groupIds","expandedGroupIds","unrecognisedGroupIds","getExpandState","expandedCount","notExpandedCount","doSetSelectedAll","selectAllChecked","getSelectionState","setFilterText","recursivelyCheckFilter","parentPasses","atLeastOneChildPassed","groupPasses_1","childPasses","fireGroupExpandedEvent","selectionState","__extends$3h","PivotModePanel","cbPivotMode","onBtPivotMode","__extends$3g","AggregationStage","noValueColumns","noUserAgg","aggDetails","createAggDetails","recursivelyCreateAggData","measureColumns","notPivoting","aggregateRowNode","aggResult","measureColumnsMissing","pivotColumnsMissing","aggregateRowNodeUsingValuesOnly","aggregateRowNodeUsingValuesAndPivot","pivotColumnDefs","getPivotColumnDefs","valueColDef","valueColumn","getValuesFromMappedSet","getValuesPivotNonLeaf","aggregateValues","totalColDef","aggResults","currentColId","changedValueColumns","notChangedValueColumns","values2d","getValuesNormal","oldValues","mappedSet","mapPointer","valueColumnCount","aggFuncOrString","BatchRemover","allSets","allParents","removeFromChildrenAfterGroup","getSet","removeFromAllLeafChildren","getAllParents","nodeDetails","__extends$3f","__read$X","__spread$v","GroupStage","groupIdSequence","createGroupingDetails","transactions","handleTransaction","afterColsChanged","shotgunResetEverything","positionLeafsAboveGroups","orderGroups","selectableService","leafNodes_1","groupNodes_1","groupedCols","includeParents","groupedColCount","batchRemover","removeNodes","moveNodesInWrongPath","insertNodes","parentsWithChildrenRemoved","removeEmptyGroups","sortChildren","recursiveSort","getExistingPathForNode","infoToKeyMapper","oldPath","newPath","getGroupInfo","moveNode","removeNodesInStages","insertOneNode","newParent","leafRowNodes","removeNodesFromParents","postRemoveCreateFillerNodes","nodeParents","forEachParentGroup","nodesToRemove","provided","batchRemoverIsLocal","batchRemoverToUse","nodeToRemove","newGroupNode_1","findParentForNode","possibleEmptyGroups","checkAgain","possibleEmptyGroup","mapKey","getChildrenMappedKey","groupShouldBeRemoved","addToParent","areGroupColsEqual","d1","d2","checkAllGroupDataAfterColsChanged","groupInfo","setGroupData","noChangeInGroupingColumns","noFurtherProcessingNeeded","newGroupDisplayColIds","oldGroupingDetails","oldGroupDisplayColIds","newRowNodes","isMove","parentGroup","swapGroupWithUserNode","nextNode","getOrCreateNextNode","fillerGroup","userGroup","createGroup","setExpandedInitialValue","userCallback","getGroupInfoFromCallback","getGroupInfoFromGroupColumns","__extends$3e","__assign$B","__read$W","__spread$u","PivotColDefService","PivotColDefService_1","createPivotColumnDefs","uniqueValues","levelsDeep","pivotColumnGroupDefs","recursiveBuildGroup","extractColDefs","addRowGroupTotals","addExpandablePivotGroups","addPivotTotalsToGroups","uniqueValue","maxDepth","primaryPivotColumns","buildMeasureCols","primaryPivotColumnDefs","headerNameComparator","pivotComparator","leafCols_1","newPivotKeys","createColDef","groups","generateColumnGroupId","measureCol","columnName","groupDef","recursivelyAddSubTotals","currentPivotColumnDefs","childAcc_1","grp","firstGroup_1","pivotValueColId","insertAfter","valueCols","valueCol","sameAggFuncs","recursivelyAddPivotTotal","childColIds","extractColIdsForValueColumn","createRowGroupTotal","parentChildren","PIVOT_ROW_TOTAL_PREFIX","totalColumn","colDefToCopy","generateColumnId","userComparator","m1","m2","existingList","updatedList","measureColumnId","__extends$3d","PivotStage","executePivotOn","executePivotOff","aggregationColumnsHashLastTime","bucketUpRowNodes","uniqueValuesChanged","setUniqueValues","aggregationColumns","aggregationColumnsHash","aggregationFuncsHash","aggregationColumnsChanged","aggregationFuncsChanged","aggregationFuncsHashLastTime","groupColumnsHash","groupColumnsChanged","groupColumnsHashLastTime","pivotColDefService","newValues","recursivelySearchForLeafNodes","bucketRowNode","bucketChildren","mappedChildren","pivotColumn","result_1","__extends$3c","AGBigInt","AggFuncService","aggFuncsMap","AggFuncService_1","initialiseWithDefaultAggregations","AGG_SUM","aggSum","AGG_FIRST","aggFirst","AGG_LAST","aggLast","AGG_MIN","aggMin","AGG_MAX","aggMax","AGG_COUNT","aggCount","AGG_AVG","aggAvg","isAggFuncPossible","getFuncNames","allowed","funcExists","defaultAgg","defaultAggFunc","userAllowedFuncs","allowedAggFuncs","valueToAdd","__extends$3b","DropZoneColumnComp","dropZonePurpose","popupShowing","addElementClasses","eButton","setupAria","getColumnAndAggFuncName","aggFuncName","aggSeparator","asc","columnSort","ariaInstructions","isGroupingZone","isAggregationZone","aggregationMenuAria","sortProgressAria","deleteAria","canSort","performSort","setTextValue","setupRemove","onShowAggFuncSelection","EVENT_COLUMN_REMOVE","isEnter","displayValueSanitised","createAggSelect","selectItem","rowToFocus","aggFuncStringTranslated","AggItemComp","itemSelected","__extends$3a","__read$V","__spread$t","BaseDropZonePanel","STATE_NOT_DRAGGING","guiDestroyFunctions","childColumnComponents","resizeEnabled","eColumnDropList","toggleResizable","destroyGui","refreshGui","setupDropTarget","getAriaLabel","isNext","isPrevious","checkInsertIndex","newIndex","getNewInsertIndex","insertIndex","mouseLocation","boundsList","hoveredIndex","checkDragStartedBySelf","STATE_REARRANGE_COLUMNS","potentialDndColumns","STATE_NEW_COLUMNS_IN","goodDragColumns","isColumnDroppable","isRowGroupPanel","colModel","isPotentialDndColumns","removeColumns","addColumns","rearrangeColumns","columnsToRemove","newColumnList","getExistingColumns","updateColumns","columnsToAdd","colsToAddNoDuplicates","getNonGhostColumns","focusedIndex","getFocusedItem","alternateElement","addIconAndTitleToGui","addEmptyMessageToGui","addColumnsToGui","restoreFocus","itemsToAddToGui","createColumnComponent","dndColumns","columnComponent","addArrow","addAriaLabelsToComponents","isExistingColumnsEmpty","emptyMessage","__extends$39","RowGroupDropZonePanel","passBeansUp","dragAndDropIcon","__extends$38","PivotDropZonePanel","__extends$37","GridHeaderDropZones","createNorthPanel","topPanelGui","dropPanelVisibleListener","onDropPanelVisible","rowGroupComp","pivotComp","bothDisplayed","grouping","__extends$36","FilterAggregatesStage","isAggFilterActive","applyFilterToNode","preserveChildren","setAllChildrenCountTreeData","setAllChildrenCountGridGrouping","__extends$35","ValuesDropZonePanel","__extends$34","PrimaryColsPanel","primaryColsHeaderPanel","hideFilter","hideSelect","primaryColsListPanel","onGroupExpanded","onSelectionChange","onExpandAll","onCollapseAll","onSelectAll","onUnselectAll","expandGroups","collapseGroups","__extends$33","ColumnToolPanel","childDestroyFuncs","defaultParams","suppressPivotMode","suppressRowGroups","suppressValues","suppressPivots","isRowGroupingModuleLoaded","pivotModePanel","primaryColsPanel","rowGroupDropZonePanel","valuesDropZonePanel","pivotDropZonePanel","setLastVisible","pivotModeListener_1","resetChildrenHeight","setPivotModeSectionVisible","setRowGroupsSectionVisible","setValuesSectionVisible","setPivotSectionVisible","setResizers","panel","columnDrop","columnDropEls","lastVisible","expandColumnGroups","collapseColumnGroups","destroyChildren","__extends$32","HorizontalResizeComp","setElementToResize","elementToResize","setInverted","startingWidth","inverted","setMaxWidth","setMinWidth","__extends$31","SideBarButtonComp","getToolPanelId","eIconWrapper","eToggleButton","onButtonPressed","EVENT_TOGGLE_BUTTON_CLICKED","__extends$30","SideBarButtonsComp","buttonComps","setToolPanelDefs","toolPanelDefs","addButtonComp","setActiveButton","buttonComp","EVENT_SIDE_BAR_BUTTON_CLICKED","toolPanelId","clearButtons","__extends$2$","ToolPanelWrapper","setupResize","resizeBar","setToolPanelDef","setToolPanelComponent","compInstance","toolPanelCompInstance","setResizerSizerSide","__extends$2_","SideBarComp","toolPanelWrappers","sideBarButtonsComp","onToolPanelButtonClicked","setSideBarDef","clearDownUi","sideBarGui","openPanel","firstFocusableEl","selectedButton","currentButton","innerButton","destroyToolPanelWrappers","sideBarExists","shouldDisplaySideBar","setupToolPanels","resizerSide","ColumnToolPanelModule","FiltersToolPanelModule","currentlyOpenedKey","raiseToolPanelVisibleEvent","toolPanelWrapper","activeToolPanel","__extends$2Z","ToolPanelColDefService","isColGroupDef","invalidColIds","mappedResults","createDummyColGroup","children_1","syncLayoutCallback","leafPathTrees","getLeafPathTrees","mergeLeafPathTrees","getLeafPathTree","leafPathTree","pathA","pathB","mergeTrees","treeA","treeB","mergeResult","groupToMerge","addChildrenToGroup","currentGroup","groupToAdd","currentSubGroup","currentSubGroupToAdd","existingChildIds","childGroupAlreadyExists","lastChildIsDifferent","subGroupIsSplit","subGroup","ModelItemUtils","colTree","extractAllLeafColumns","setAllColumns","setAllPivot","setAllVisible","allItems","colStateItems","setAllPivotPassive","setAllPivotActive","copyOfPivotColumns","copyOfValueColumns","copyOfRowGroupColumns","pivotChanged","rowGroupChanged","ColumnsToolPanelModule","workbook","html","xmlns","excelWorkbook","Width","styleId","MergeAcross","StyleID","worksheet","table","Name","documentProperties","styleProperties","Vertical","Horizontal","Indent","ReadingOrder","readingOrder","Rotate","rotate","ShrinkToFit","shrinkToFit","VerticalText","verticalText","WrapText","borders","borderBottom","borderLeft","borderRight","borderTop","Position","LineStyle","lineStyle","Weight","font","Bold","bold","FontName","fontName","Italic","italic","Outline","outline","Shadow","shadow","Size","StrikeThrough","strikeThrough","Underline","underline","VerticalAlign","CharSet","charSet","Family","family","interior","Pattern","PatternColor","patternColor","protection","Protected","protected","HideFormula","hideFormula","ID","ExcelXmlFactory","createExcel","currentWorksheet","excelXmlHeader","docProps","eWorkbook","wb","boolean","docProperties","stylesXmlElement","styleXmlElement","addProperty","factoryMode","SINGLE_SHEET","INCH_TO_EMU","numberFormatMap","pixelsToPoint","pointsToPixel","points","pixelsToEMU","getFontFamilyId","getHeightFromProperty","finalHeight","setExcelImageTotalWidth","image","columnsInSpan","setExcelImageTotalHeight","totalHeight","nextRowHeight","createXmlPart","getExcelColumnName","tableIdx","__extends$2Y","__assign$A","__read$U","__spread$s","BaseExcelSerializingSession","mixedStyles","mixedStyleCounter","stylesByIds","baseExcelStyles","excelStyles","customContent","addImage","outlineLevel","currentCells","headerRowHeight","collapsibleRanges","styleIds","styleLinker","HEADER_GROUPING","createMergedCell","getStyleId","getDataTypeForValue","onNewRow","onNewHeaderColumn","onNewBodyColumn","convertColumnToExcel","longestRow","sheetName","isFormula","autoConvertFormulas","getStyleById","nameForCol","HEADER","createCell","onNewColumnAccumulator","skipCols","valueForCell","BODY","excelStyleId","addedImage","addNewMixedStyle","excelID","excelId","resultantStyle","excelStyle","__extends$2X","ExcelXmlSerializingSession","dataType","actualStyle","typeTransformed","getValueTransformed","suppressTextAsCDATA","cdataEndRegex","numOfCells","coreFactory","author","jsonDate","dc","dcterms","dcmitype","xsi","contentTypeFactory","ContentType","Extension","PartName","__read$T","__spread$r","contentTypesFactory","sheetLen","worksheets","fill","sheetsWithImages","ExcelXlsxFactory","worksheetImages","imageTypesObject","workbookImageIds","imageDocs","imageTypes","contentType","getAnchor","imageAnchor","getExt","uri","recolor","getNvPicPr","descr","altText","preferRelativeResize","getColorDetails","tint","getDuoTone","primaryColor","secondaryColor","getBlipFill","blipChildren","transparency","amt","bright","contrast","getSpPr","imageBoxSize","xfrm","cx","cy","rotation","rot","prst","getImageBoxSize","fitCell","getPicture","worksheetImageIndex","drawingFactory","sheetIndex","sheetImages","sheetImageIds","worksheetImageIds","boxSize","editAs","__read$S","getColorChildren","lastClr","colorScheme","__read$R","getFont$3","typeface","panose","fontScheme","__read$Q","getPropertyVal","getGs","schemeColor","satMod","lumMod","shade","getSolidFill","getGradFill","rotWithShape","gs1","gs2","gs3","lin","ang","scaled","getLine","cap","cmpd","algn","lim","getEffectStyle","blurRad","dist","getFillStyleList","getLineStyleList","getEffectStyleList","getBgFillStyleList","formatScheme","themeElements","officeTheme","buildSharedString","strMap","sharedStrings","uniqueCount","numberFormatFactory","formatCode","numFmtId","numberFormatsFactory","fontFactory","colorTheme","scheme","fontsFactory","fonts","fillFactory","patternType","fgTheme","fgTint","fgRgb","bgRgb","bgIndexed","pf","indexed","fillsFactory","fills","getWeightName","mappedBorderNames","None","Dot","Dash","Double","DashDot","DashDotDot","SlantDashDot","mediumBorders","colorMap","Solid","Gray50","Gray75","Gray25","HorzStripe","VertStripe","ReverseDiagStripe","DiagStripe","DiagCross","ThickDiagCross","ThinHorzStripe","ThinVertStripe","ThinReverseDiagStripe","ThinDiagStripe","ThinHorzCross","ThinDiagCross","Gray125","Gray0625","horizontalAlignmentMap","Automatic","Center","Fill","Justify","CenterAcrossSelection","Distributed","JustifyDistributed","verticalAlignmentMap","Top","Bottom","convertLegacyPattern","convertLegacyColor","convertLegacyBorder","namedWeight","mappedName","convertLegacyHorizontalAlignment","convertLegacyVerticalAlignment","getBorderColor","borderFactory$1","border","diagonal","leftChildren","rightChildren","topChildren","bottomChildren","diagonalChildren","bordersFactory","getReadingOrderId","alignmentFactory","textRotation","protectionFactory","locked","xfFactory","xf","borderId","fillId","fontId","xfId","applyAlignment","applyProtection","applyBorder","applyFill","applyFont","applyNumberFormat","cellStylesXfsFactory","xfs","cellXfsFactory","borderFactory","builtinId","cellStylesFactory","cellStyles","__assign$z","stylesMap","registeredNumberFmts","registeredFonts","registeredFills","registeredBorders","registeredCellStyleXfs","registeredCellXfs","registeredCellStyles","currentSheet","getStyleName","resetStylesheetValues","registerFill","convertedPattern","convertedFillColor","convertedPatternColor","currentFill","registerNumberFmt","currentFormat","registerBorders","bottomStyle","topStyle","leftStyle","rightStyle","bottomColor","topColor","leftColor","rightColor","currentBorder","clS","clC","crS","crC","ctS","ctC","cbS","cbC","registerFont","utf8Name","convertedColor","familyId","convertedUnderline","convertedVerticalAlign","currentFont","registerStyle","currentNumberFmt","stylesheetFactory","defaultFontSize","cellStylesXfs","cellXfs","defaultPivotStyle","defaultTableStyle","registerStyles","_currentSheet","sheetFactory","sheetId","sheetsFactory","sheet","workbookFactory","getExcelCellWidth","bestFit","excelWidth","customWidth","convertLegacyType","cellFactory","convertedType","__read$P","__spread$q","addEmptyCells","rowIdx","mergeMap","posCounter","excelPos","mergedCells","shouldDisplayCell","rowFactory","collapsed","ht","customHeight","spans","mergeCellFactory","getMergedCellsAndAddColumnGroups","cellsWithCollapsibleGroups","lastCol","merges","cellIdx","outputRow","rangeMap","currentRange","rangeString","refCol","currentOutlineLevel","getPageOrientation","orientation","addSheetData","sheetNumber","addMergeCells","mergeCells","mergedCell","addPageMargins","margins","addPageSetup","pageSetup","horizontalDpi","verticalDpi","paperSize","replaceHeaderFooterTokens","getHeaderPosition","applyHeaderFontStyle","headerString","processHeaderFooterContent","buildHeaderFooter","headerFooterConfig","headersAndFooters","headerFooter","namePrefix","nameSuffix","addHeaderFooter","differentFirst","differentOddEven","even","addDrawingRel","addSheetPr","summaryBelow","addSheetFormatPr","maxOutline","baseColWidth","outlineLevelRow","worksheetFactory","createWorksheetChildren","relationshipFactory","Id","Target","relationshipsFactory","relationship","__read$O","__spread$p","addSheetName","sheetNames","createWorksheet","buildImageMap","currentSheetIndex","registeredImage","images","calculatedImage","currentSheetImages","currentImage","imageType","buildSheetImageMap","worksheetImageIdMap","append","getStringPosition","resetFactory","createWorkbook","createStylesheet","createSharedStrings","createCore","createContentTypes","createRels","rs","createTheme","createWorkbookRels","createDrawing","createDrawingRel","XMLArr","createWorksheetDrawingRel","currentRelationIndex","__extends$2W","ExcelXlsxSerializingSession","addImageToCell","__extends$2V","__assign$y","hasImages","imgCounter_1","firstImage","base64","imageRelationCounter","createImageRelationsForSheet","drawingFileName","drawingFolder","relFileName","worksheetRelFile","ExcelCreator","setExportMode","packageFile","getExportMode","isXlsx","applicableStyles","EXPAND_STATE","FiltersToolPanelHeaderPanel","preConstruct","onSearchTextChanged","showFilterSearch","suppressFilterSearch","suppressExpandAll","filterGroupsPresent","onSearchTextChangedDebounced","searchText","currentExpandState","ToolPanelFilterComp","hideHeader","eFilterName","eFilterToolPanelHeader","toggleExpanded","onFilterOpened","eFilterIcon","getColumnFilterName","collapse","underlyingFilter","agFilterToolPanelBody","refreshFilter","refreshVirtualList","ToolPanelFilterGroupComp","childFilterComps","expandedCallback","showingColumn","filterGroupComp","setGroupTitle","refreshFilterClass","addExpandCollapseListeners","addFilterChangedListeners","getFilterGroupName","filterGroupName","getFilterGroupId","hideGroupItem","hideGroup","forEachToolPanelFilterChild","collapseListener","getColumnGroupName","getColumnName","destroyFilters","FiltersToolPanelListPanel","filterGroupComps","syncFilterLayout","toolPanelColDefService","setFiltersLayout","recursivelyAddComps","setFirstAndLastVisible","searchFilterText","searchFilters","fireExpandedEvent","recursivelyAddFilterGroupComps","shouldDisplayFilter","filtersExistInChildren","suppressFiltersToolPanel","newDepth","expandFilterGroups","updatedGroupIds","updateGroupExpandState","filterGroup","expandFilters","updatedColIds","anyChildrenChanged_1","updateFilterExpandState","unrecognisedColIds","updateExpandCounts","performFilterSearch","searchFilter","firstVisible","groupName","recursivelySearch","filterItem","groupNamePasses","alreadyPassed","anyChildPasses","firstIdx","lastIdx","FiltersToolPanel","listenerDestroyFuncs","filtersToolPanelHeaderPanel","filtersToolPanelListPanel","hideExpand","hideSearch","onSearchChanged","setFilterLayout","collapseFilterGroups","collapseFilters","ChartDatasource","crossFiltering","chartData","columnNames","pivoting","updatePivotKeysForSSRM","extractRowsFromGridRowModel","aggregateRowsByDimension","numRows","extractedRowData","groupNodeIndexes","groupsToRemove","filteredNodes","allRowNodes","getFilteredRowNodes","getAllRowNodes","modelLastRow","gridRowModel","dimensionCols","valueObject","valueString","labels","getGroupLabels","ChartDataModel","DEFAULT_CATEGORY","columnNamesArr","filteredOutColId","actualValue","isScatter","groupIndexesToRemove_1","dataFromGrid","lastColId","dataAggregated","currentMap","groupItem_1","__children","dimCol","dimColId","groupItem","dataToAgg","dataToAggFiltered","aggResultFiltered","pivotKeySeparator","extractPivotKeySeparator","firstSecondaryCol","extractSeparator","childId","initialLabel","sortRowNodes","__read$N","__spread$o","valueColState","dimensionColState","suppressComboChartWarnings","chartType","pivotChart","chartThemeName","referenceCellRange","suppliedCellRange","suppressChartRanges","unlinkChart","seriesChartTypes","initComboCharts","seriesChartTypesExist","savedCustomSeriesChartTypes","updateCellRanges","updatedColState","valueCellRange","getAllChartColumns","allColsFromRanges","getAllColumnsFromRanges","updateColumnState","setDimensionCellRange","setValueCellRange","syncDimensionCellRange","updateSeriesChartTypes","isComboChart","seriesChartType","primaryOnly","secondaryAxis","updateChartSeriesTypesForBuiltInCombos","updateSeriesChartTypesForCustomCombo","SUPPORTED_COMBO_CHART_TYPES","updatedSeriesChartTypes","providedSeriesChartType","primaryChartType","secondaryChartType","selectedCols","lineIndex","seriesType","getRowIndexes","isGrouping","getSelectedDimension","getSelectedValueCols","isGroupActive","groupDimensionSelected","getColDisplayName","getChartDataType","chartDataType","createCellRange","dimensionCellRange","endRowPosition","isNumberCol","extractLeafData","childRow","allCols","isInitialising","hasSelectedDimension","aggFuncDimension","defaultCategory","chartTranslationService","valueColumnsFromReferenceRange","updatedCol","idsMatch","orderedColIds","reorderColState","ascColStateOrder","colsInRange","selectedDimensionColState","aggFuncDimension_1","selectedValueCols","orderedColIds_1","selectedDimension","BBox$1","BBox","dilate","containsPoint","noParams","resetTransform","strokeStyle","lineWidth","strokeRect","fillStyle","textBaseline","fillText","restore","__read$M","Matrix$1","Matrix","setElements","setIdentityElements","AxB","multiplySelf","multiply","preMultiplySelf","inverse","rD","inverseTo","invertSelf","transformPoint","transformBBox","bbox","xx","xy","yx","h_w","h_h","sx","sy","toContext","identity","flyweight","matrix","ID_MAP","RedrawType","createId$1","windowValue","evalAvailable","EVAL_USEABLE","SceneChangeDetection","TRIVIAL","changeCb","convertor","checkDirtyOnAssignment","privateKey","setterJs","NONE","getterJs","markDirty","markDirtyTransform","_dirtyPath","_dirtyFont","_dirty","ChangeDetectable","MAJOR","markClean","isDirty","__values$s","__read$L","PointerEvents$1","PointerEvents","zIndexChangedCallback","dirtyZIndex","zIndexChanged","Node$1","serialNumber","_nextSerialNumber","isContainerNode","_children","childSet","inverseMatrix","_dirtyTransform","scalingX","scalingY","scalingCenterX","scalingCenterY","rotationCenterX","rotationCenterY","translationX","translationY","zIndexSubOrder","All","_setScene","_scene","_debug","countChildren","nodes_1","nodes_1_1","scene","inverseTransformPoint","_x","_y","pickNode","hit","computeBBox","computeTransformedBBox","computeTransformMatrix","computeBBoxCenter","scx","scy","bbcx","bbcy","rcx","rcy","ty","tx4","ty4","renderCtx","stats","nodesRendered","clearBBox","clearRect","parentType","visibilityChanged","dirtyCount","visibleCount","nodeCount","childCount","childVisibleCount","childDirtyCount","chainObjects$1","emptyTarget$1","cloneUnlessOtherwiseSpecified$1","deepMerge$1","defaultArrayMerge$1","getMergeFunction$1","customMerge","getEnumerableOwnPropertySymbols$1","getKeys$1","propertyIsOnObject$1","propertyIsUnsafe$1","mergeObject$1","defaultIsMergeableObject$1","isNonNullObject$1","isSpecial$1","Shape$1","Shape","lastInstanceId","fillOpacity","strokeOpacity","defaultStyles","stroke","strokeWidth","lineDash","lineDashOffset","lineCap","lineJoin","fillShadow","createInstance","restoreOwnStyles","restoreAllStyles","restoreOverriddenStyles","protoStyles","align","pixelRatio","canvas","alignedStart","fillStroke","globalAlpha","shadowColor","shadowOffsetX","xOffset","shadowOffsetY","yOffset","shadowBlur","blur","setLineDash","isPointInPath","MINOR","HdpiCanvas$1","HdpiCanvas","domLayer","_container","_enabled","_opacity","_pixelRatio","_height","imageSource","setPixelRatio","_canvas","snapshot","toImage","img","getDataURL","toDataURL","dataUrl","ratio","devicePixelRatio","overrideScale","imageRendering","_textMeasuringContext","_svgText","createElementNS","visibility","svgText","_has","textMetrics","textMeasuringContext","measureText","actualBoundingBoxDescent","getTransform","textAlign","getTextSize","metrics","actualBoundingBoxAscent","measureSvgText","textSizeCache","fontCache","size_1","textContent","getBBox","$save","$restore","$setTransform","name_1","SceneFontChangeDetection","Text$1","Text","lines","fontFamily","_splitText","_font","getFont$2","fontStyle","fontWeight","getPreciseBBox","getApproximateBBox","actualBoundingBoxLeft","strokeText","nodesSkipped","__assign$x","Observable$1","Observable","allPropertyListeners","allEventListeners","addPropertyListener","scope","propertyListeners","scopes_1","scopes","removePropertyListener","notifyPropertyListeners","eventListeners","scopes_2","clearEventListeners","notifyEventListeners","privateKeyPrefix","Caption","PADDING","ticks$1","tickStep$1","range$1","e10$1","e5$1","e2$1","rawStep","LN10","tickIncrement$1","power","NumericTicks$1","NumericTicks","absStep","calculateNiceSecondaryAxis","domain","primaryTickCount","getTickStep","calculateNiceStart","getTicks","log10","magnitude","stepPower","ticks","tick","calculateNextNiceStep","constant$3","interpolateNumber$1","date$1","msA","msB","array$1","interpolateValue$1","object$1","__read$K","Color$1","color$1","ascending$1","ascendingStringNumberUndefined","compoundAscending","bisectRight","lo","hi","mid","complexBisectRight$1","ascendingComparator$1","__read$J","constant$2","identity$6","clamper$2","ContinuousScale$1","ContinuousScale","clamper","_clamp","_domain","_range","untransform","_interpolate","rescale","setDomain","getDomain","piecewise","polymap","bimap","normalize","interpolate","xt","x0","x1","y0","y1","tr","invert","formatDefault$1","xs","toPrecision","i0","i1","exit","formatTypes$1","formatDecimal$1","toExponential","_p2","formatRounded$1","formatPrefixAuto$1","X","_x2","prefixes$1","FormatSpecifier$1","FormatSpecifier","specifier","zero","comma","formatRegEx$1","interpolateRegEx$1","prefixExponent$1","formatDefaultLocale$1","format$1","formatPrefix$1","makeFormatSpecifier$1","tickFormat$1","formatSpecifier","precisionPrefix$1","precisionRound$1","precisionFixed$1","formatDecimalParts$1","coefficient","exponent","toLocaleString","formatGroup$1","thousands","formatNumerals$1","numerals","formatTrim$1","identity$5","defaultLocale$1","definition","formatLocale$3","formatPrefix","exponent$1","currencyPrefix","currency","currencySuffix","decimal","percent","minus","nan","newFormat","formatType","maybeSuffix","valuePrefix","valueSuffix","nx","valueNegative","signSuffix","LinearScale$1","LinearScale","nice","tickFormat","__values$r","identity$4","extent$1","findMinMax","values_1","values_1_1","isNumber$1","isNumberObject$1","isNumeric$1","isDate$1","isString$1","isStringObject$1","isDiscrete","isContinuous$1","checkDatum","isContinuousScale","sign$1","linearRoot$1","quadraticRoots$1","roots","t1","t2","cubicRoots$1","Im","t_1","theta","acos","thirdA","twoSqrtQ","t3","segmentIntersection$1","ax1","ay1","ax2","ay2","bx1","by1","bx2","by2","ub","cubicSegmentIntersections$1","px1","py1","px2","py2","px3","py3","px4","py4","x2","y2","intersections","bx","bezierCoefficients$1","by","tt","ttt","P1","P2","P3","P4","__values$q","Path2D$1","Path2D","previousCommands","previousParams","previousClosedPath","commands","_closedPath","draw","beginPath","commands_1","commands_1_1","moveTo","lineTo","bezierCurveTo","closePath","arcTo","rx","ry","fA","fS","hdx","hdy","sinPhi","cosPhi","xp","yp","ratX","ratY","lambda","cpx","cpy","theta1","deltaTheta","cubicArc","phi","theta2","anticlockwise","f90","sinTheta1","cosTheta1","rightAngle","lastX","sinPhi2","cosPhi2","C2x","C2y","deCasteljau","newPoints","approximateCurve","xy_1","quadraticCurveTo","cubicCurveTo","cx1","cy1","cx2","cy2","trackChanges","cn","py","intersectionCount","ci","pi","toCubicPaths","command","cubicPathToString","__assign$w","__values$p","__read$I","__spread$n","Group$1","Group","clipPath","optimiseDirtyTracking","visibleChildren","dirtyChildren","opacityChanged","layer","moveLayer","isLayer","removeLayer","addLayer","syncChildVisibility","optimisedRender","basicRender","consoleLog","clipBBox","resized","isChildDirty","counts","layersSkipped","groupVisible","ctxTransform","clip","childRenderContext","children_1_1","layersRendered","e_5","e_5_1","e_6","e_6_1","__values$o","EnterNode$1","EnterNode","datum","Selection$1","Selection","Class","numGroups","subgroups","groupSize","subgroup","subnode","selectByClass","selectByTag","selectAllByClass","selectAllByTag","selectNone","selectorAll","groupCount","groupLength","each","group_1","group_1_1","parent_1","groups0","groups1","m0","group0","group1","attrFn","group_2","group_2_1","group_3","group_3_1","enterGroups","exitGroups","setDatum","data_1","updateGroups","parent_2","dataSize","enterGroup","updateGroup","exitGroup","bindKey","bindIndex","enter","keyValues","nodeByKeyValue","keyValue","keyPrefix","Line$1","Line","ScenePathChangeDetection","Path$1","Path","renderOverride","checkPathDirty","dirtyPath","closedPath","isDirtyPath","updatePath","clipMode","twoPi","normalizeAngle360","normalizeAngle360Inclusive","isEqual","epsilon","fractionOrSignificantDigits","remain","ArcType","Arc","radiusX","radiusY","startAngle","endAngle","counterClockwise","Open","Chord","Round","fullPie","doOnceFlags$1","doOnce$1","Validate","BOOLEAN","OPT_BOOLEAN","STRING","OPT_STRING","OPT_NUMBER","NUMBER","FONT_WEIGHTS","OPT_FONT_STYLE","OPT_FONT_WEIGHT","Layers","Deprecated","logged","__read$H","__spread$m","__values$n","Tags","AxisTick","AxisLabel","autoRotate","autoRotateAngle","mirrored","parallel","onFormatChange","Axis","axisGroup","AXIS_ZINDEX","crossLineGroup","lineGroup","tickGroup","titleGroup","tickGroupSelection","lineNode","gridlineGroup","AXIS_GRIDLINES_ZINDEX","gridlineGroupSelection","_crossLines","line","translation","_labelAutoRotated","_calculatedTickCount","requestedRange","_visibleRange","_title","_gridLength","gridStyle","_radialGrid","thickness","onLabelFormatChange","_scale","crossLines","crossLine","initCrossLine","calculatedTickCount","detachCrossLine","attachCrossLine","calculateTickCount","_availableRange","getMeta","updateRange","rr","vr","visibleRange","tolerance","inRangeEx","labelFormatter","oldTitle","updateTitle","gridLength","requestedRangeMin","requestedRangeMax","parallelLabels","updateLine","sideFlag","parallelFlipRotation","regularFlipRotation","halfBandwidth","bandwidth","updateTicks","labelBboxes","updateLabels","tickLineGroupSelection","updateGridLines","anyTickVisible","translationYFn","visibleFn","Tick","ChartAxisDirection","updateAxis","enterAxis","updateGridlines","tagFn","GridLine","enterGridline","radialGrid","styleCount_1","gridLines","angularGridLength_1","arc","gridLine","labelAutoRotation","labelRotation","parallelFlipFlag","regularFlipFlag","labelCount","halfFirstLabelLength","halfLastLabelLength","availableRange","labelSelection","formatTickDatum","userHidden","labelX","calculateLabelsLength","bboxes","useWidth","totalLength","divideBy","length_1","lengthWithPadding","totalLabelLength","autoRotation","labelTextBaseline","alignFlag","labelTextAlign","isContinuous_1","averageLabelLength","labelsToShow","showEvery_1","visibleLabelIndex_1","forceVisible","titleVisible","titleNode","titleRotationFlag","lineBBox","bboxYDimension","tickBBox","tickWidth","axis","formatDatum","__read$G","__spread$l","ChartAxisPosition","flipChartAxisDirection","ChartAxis","boundSeries","includeInvisibleDomains","_position","useCalculatedTickCount","tickInterval","calculateTickIntervalEstimate","calculateDomain","linkedTo","domains_1","series","isYAxis","updateDomain","_isYAxis","__read$F","clamper$1","NumberAxis","_nice","__read$E","BandScale$1","BandScale","ordinalRange","_bandwidth","_rawBandwidth","_paddingInner","_paddingOuter","_round","_align","reversed","__read$D","__spread$k","CategoryAxis","_paddingOverrideEnabled","paddingInner","paddingOuter","valuesSet","TreeNode","subtreeLeft","subtreeRight","leafCount","prelim","ancestor","getLeftSibling","getLeftmostSibling","nextLeft","thread","nextRight","ticksToTree","pad","insertTick","pathParts","lastPartIndex","pathPart","partIndex","isNotLeaf","moveSubtree","wm","wp","vim","defaultAncestor","executeShifts","apportion","distance","vop","vip","vom","sip","sop","sim","som","firstWalk","defaultAncestor_1","midpoint","leftSibling","Dimensions","secondWalk","layout","thirdWalk","treeLayout","TreeLayout","leafNodes","nonLeafNodes","shiftX","shiftY","flipX","xSteps","ySteps","existingSpacingX","existingSpacingY","screenDimensions","__read$C","__spread$j","GroupedCategoryAxisLabel","GroupedCategoryAxis","tickScale","labelColor","gridLineSelection","axisLineSelection","separatorSelection","domainValues","tickTree","tickTreeLayout","resizeTickTree","domains","isNumericX","domain_1","rangeStart","rangeEnd","treeLabels","isLabelTree","enterGridLines","enterLabels","labelBBoxes","maxLeafLabelWidth","labelGrid","separatorData","minX","updateSeparators","enterSeparators","lineCount","updateAxisLines","enterAxisLines","styles_1","t0$1","t1$1","TimeInterval$1","TimeInterval","_floor","d0","CountableTimeInterval$1","CountableTimeInterval","_count","_field","field_1","floor$k","offset$k","count$k","millisecond$1","epochYear","durationSecond$1","durationMinute$1","durationHour$1","durationDay$1","durationWeek$1","durationMonth$1","durationYear$1","floor$j","getMilliseconds","offset$j","count$j","second$1","floor$i","offset$i","count$i","field$g","minute$1","floor$h","offset$h","count$h","field$f","hour$1","floor$g","offset$g","count$g","tzMinuteDelta","field$e","day$1","weekday$3","sunday$1","monday$1","tuesday","wednesday","thursday$1","friday","saturday","floor$f","offset$f","count$f","field$d","month$1","floor$e","offset$e","count$e","field$c","year$1","floor$d","offset$d","count$d","field$b","utcDay$1","floor$c","setUTCMonth","offset$c","count$c","field$a","utcYear$1","weekday$2","utcSunday$1","utcMonday$1","utcThursday$1","localDate$1","utcDate$1","formatLookup$1","newYear$1","percentCharCode$1","numberRe$1","percentRe$1","requoteRe$1","requote$1","formatRe$1","pads$1","locale$1","pad$1","formatLocale$2","timeLocale","lDateTime","lDate","lTime","lPeriods","periods","lWeekdays","lShortWeekdays","shortDays","lMonths","lShortMonths","shortMonths","periodRe","periodLookup","weekdayRe","weekdayLookup","shortWeekdayRe","shortWeekdayLookup","monthRe","monthLookup","shortMonthRe","shortMonthLookup","formatDayOfMonth","formatMilliseconds","formatUnixTimestamp","formatUnixTimestampSeconds","dayOfWeek","yearStart","formatLiteralPercent","utcFormats","formatUTCDayOfMonth","formatUTCMilliseconds","getUTCHours","getUTCSeconds","parses","parseSpecifier","parseDayOfMonth","parseHour24","newParse","newDate","pad_1","getUTCMilliseconds","utcFormat","utcParse","setDefaultLocale$1","__values$m","__read$B","DefaultTimeFormats","formatStrings","MILLISECOND","SECOND","MINUTE","HOUR","SHORT_MONTH","YEAR","TimeScale$1","TimeScale","tickIntervals","defaultTickFormat","defaultTimeFormat","updateFormat","extent","formatStringArray","formatString","t0","__read$A","TimeAxis","datumFormat","datumFormatter","_primaryTickCount","HdpiOffscreenCanvas","OffscreenCanvas","transferToImageBitmap","isSupported","__assign$v","__read$z","__values$l","Scene$1","Scene","layers","_nextZIndex","_nextLayerId","_root","dirtyTree","renderBoundingBoxes","pendingSize","lessThanZero","newLayer","sortLayers","domCanvases","newLayerIndex","newZIndex","newZIndexSubOrder","debugSplitTimes","performance","extraDebugStats","canvasCleared","buildDirtyTree","redrawType","buildTree","drawImage","pct","time_1","_m","splits","extras","fillRect","stats_1","stats_1_1","stat","childTree","treeNodeName","childrenDirtyTree","Label$1","Label","getFont","__read$y","__values$k","SeriesNodePickMode","SeriesItemHighlightStyle","SeriesHighlightStyle","dimOpacity","HighlightStyle","SeriesTooltip","Series","seriesGroupUsesLayer","pickModes","NEAREST_BY_MAIN_AXIS_FIRST","directions","directionKeys","nodeDataRefresh","_visible","showInLegend","highlightStyle","seriesGroup","SERIES_LAYER_ZINDEX","pickGroup","highlightGroup","highlightNode","highlightLabel","visibleChanged","setColors","_fills","_strokes","getKeys","markNodeDataDirty","getOpacity","isItemIdHighlighted","getStrokeWidth","defaultStrokeWidth","highlightedDatum","itemId","limitPickModes","pickModes_1","pickModes_1_1","pickMode","EXACT_SHAPE_MATCH","pickNodeExactShape","NEAREST_BY_MAIN_CATEGORY_AXIS_FIRST","pickNodeMainAxisFirst","NEAREST_NODE","pickNodeClosestDatum","_point","_requireCategoryAxis","fireNodeClickEvent","_event","_datum","toggleSeriesItem","_itemId","fixNumericExtent","highlightedZIndex","Padding$1","Padding","Gradient","stops","LinearGradient","angle","createGradient","atan","gradient_1","createLinearGradient","addColorStop","RectSizing","Rect","renderRect","borderPath","crisp","gradient","lastUpdatePathStrokeWidth","effectiveStrokeWidth","updateGradientInstance","gradientInstance","gradientFill","halfStrokeWidth","borderClipPath","borderActive","__values$j","Marker$1","Marker","half","applyPath","moves","moves_1","moves_1_1","mx","my","Square$1","Square","hs","MarkerLabel","_marker","_markerSize","_spacing","markerSize","Circle$1","Circle","Cross","Diamond$1","Diamond","Heart","rad","degree","Plus","Triangle","getMarker$1","__read$x","__values$i","LegendOrientation","LegendPosition","LegendLabel","LegendMarker","_shape","onMarkerShapeChange","LegendItem","paddingX","paddingY","NO_OP_LISTENER","LegendListeners","legendItemClick","Legend","LEGEND_ZINDEX","itemSelection","oldSize","truncatedItems","reverseOrder","characterWidths","getCharacterWidths","cw","performLayout","markerPadding","markerShape","enterSelection","itemCount","maxItemWidth","markerLabel","textChars","addEllipsis","truncatedText","cumCharSize","textChars_1","textChars_1_1","itemHeight","paddedItemsWidth","paddedItemsHeight","columnCount","itemsWidth","itemsHeight","columnCount_1","startX","startY","markerFill","markerStroke","markerStrokeWidth","markerFillOpacity","markerStrokeOpacity","getDatumForPoint","__values$h","SizeMonitor","NativeResizeObserver","entries_1","entries_1_1","contentRect","checkSize","checkClientSize","unobserve","circleRectOverlap","rectRectOverlap","w1","h1","w2","h2","rectContainsRect","r1x","r1y","r1w","r1h","r2x","r2y","r2w","r2h","isPointLabelDatum","placeLabels","ln","debouncedAnimationFrame","buildScheduler","scheduleFn","scheduleCount","SeriesMarker","__read$w","__values$g","CartesianSeries","highlightSelection","highlightLabelSelection","subGroups","subGroupId","seriesItemEnabled","pickGroupIncludes","pathsPerSeries","features","pathsZIndexSubOrderOffset","_contextNodeData","checkDomainXY","isContinuousX","isContinuousY","checkRangeXY","xAxis","yAxis","seriesHighlighted","anySeriesItemEnabled","updateSelections","updateNodes","updateHighlightSelection","isPathOrSelectionDirty","createNodeData","updateSeriesGroups","seriesIdx","datumSelection","markerSelection","contextData","nodeData","labelData","updatePaths","updateDatumSelection","updateLabelSelection","updateMarkerSelection","contextNodeData","markerGroup","paths_1","paths_1_1","totalGroups","subGroupZOffset","labelGroup","SERIES_LABEL_ZINDEX","pathParentGroup","datumParentGroup","markersEnabled","updateMarkerNodes","isHighlight","updateDatumNodes","updateLabelNodes","subGroupVisible","subGroupOpacity","paths_2","paths_2_1","updatePathNodes","labelItem","updateHighlightSelectionItem","itemId_1","contextNodeData_1","contextNodeData_1_1","ld","updateHighlightSelectionLabel","markerGroupIncluded","closestDatum","hitPoint","minDistance","contextNodeData_2","contextNodeData_2_1","datumX","_o","datumY","requireCategoryAxis","e_7","e_8","primaryDirection","hitPointCoords","contextNodeData_3","contextNodeData_3_1","_p","_q","point_1","newMinDistance","e_8_1","e_7_1","getLabelData","CartesianSeriesMarker","__assign$u","__values$f","__read$v","defaultTooltipCss$1","toTooltipHtml$1","Chart","defaultTooltipClass","ChartTooltip","class","tracking","showTimeout","constrained","tooltipRoot","IntersectionObserver","target_1","observer","intersectionRatio","updateClass","instantly","tooltipRect","maxLeft","lastPick","changeHighlightDatum","ChartUpdateType","background","legend","legendAutoPadding","_autoSize","_subtitle","_performUpdateType","firstRenderComplete","firstResizeReceived","seriesToUpdate","performUpdateTrigger","performUpdate","_lastPerformUpdateError","_axes","_series","legendBBox","_onMouseDown","_onMouseMove","_onMouseUp","_onMouseOut","lastTooltipMeta","handleTooltipTrigger","handleTooltip","pointerInsideLegend","pointerOverLegendDatum","_lastAutoSize","tooltipDocuments","styleElement","setupDomListeners","caption","cleanupDomListeners","FULL","forceNodeDataRefresh","seriesToUpdate_1","seriesToUpdate_1_1","performUpdateType","PROCESS_DATA","processData","disableTooltip","updateProcessing","PERFORM_LAYOUT","SERIES_UPDATE","SCENE_RENDER","durationMs","detachAxis","attachAxis","seriesRoot","removeAllSeries","addSeries","allSeries","beforeIndex","initSeries","onSeriesNodeClick","freeSeries","addSeriesAfter","afterIndex","removeSeries","assignSeriesToAxes","axes","assignAxesToSeries","directionToAxesMap","directionAxes","seriesKeys","newAxis","findMatchingAxis","directionAxes_1","directionAxes_1_1","axisKeys","directionKeys_1","directionKeys_1_1","directionKey","updateLegend","visibleSeries","seriesRect","legendData","listSeriesItems","positionCaptions","subtitle","titleBBox","subtitleBBox","captionAutoPadding","positionLegend","legendGroup","legendSpacing","chartElement","getSeriesRect","pickSeriesNode","reverseSeries","reverseSeries_1","reverseSeries_1_1","handleLegendMouseMove","pick","mergeTooltipDatum","onSeriesDatumPick","checkSeriesNodeClick","checkLegendClick","seriesId","oldHighlightedDatum","id_1","getTooltipHtml","canvasRect","scrollX","newPick","newSeries","lastSeries","__assign$t","__values$e","ClipRect","RangeHandle$1","RangeHandle","_fill","_stroke","_strokeWidth","_lineCap","_centerX","_centerY","_gripLineGap","_gripLineLength","ax","ay","axw","ayh","gripLineGap","gripLineLength","RangeMask","_fillOpacity","minRange","onRangeChange","computeVisibleRangeBBox","__assign$s","RangeSelector","minHandle","maxHandle","mask","updateHandles","NavigatorMask","rangeMask","rm","NavigatorHandle","rangeHandle","rh","Navigator","minHandleDragging","maxHandleDragging","panHandleOffset","changedCursor","_margin","updateAxes","clipSeries","layoutRequired","oldLabelAutoRotated","labelAutoRotated","updateType","onDrag","getRatio","stopHandleDragging","__read$u","CartesianChart","shrinkRect","legendPadding","navigatorTotalHeight","margin","_onTouchStart","_onTouchMove","_onTouchEnd","_onTouchCancel","onTouchCancel","getTouchOffset","inputShrinkRect","records","axisWidths","stableWidths","otherW","lastPass","updateAxesPass","lastPassSeriesRect","newAxisWidths","primaryTickCounts","crossLinePadding","calculatePadding","axisBound","buildAxisBound","buildSeriesRect","clampToOutsideSeriesRect","dimension","clampBounds","axisOffset","axisLeftRightRange","axisThickness","HierarchyChart","_seriesRoot","GroupedCategoryChart","PolarSeries","PolarSeriesMarker","PolarChart","__read$t","interpolatePattern","valueName","formatName","toDateString","sanitizeHtml","__values$d","__read$s","AreaSeriesLabel","AreaSeriesTooltip","AreaSeriesTag","AreaSeries","xData","yData","yDomain","xDomain","strokes","_xKey","xName","_yKeys","yNames","processSeriesItemEnabled","_visibles","visibles","_normalizedTo","absValue","xKey","yKeys","normalizedTo","normalized","xValues","xDatum","seriesDatum","yKey","seriesYs","yDatum","data_1_1","yMin","yMax","absSum","yData_1","yData_1_1","normalizedTotal","yData_2","yData_2_1","normalizedY","contexts","xScale","yScale","continuousY","cumulativePathValues","cumulativeMarkerValues","createPathCoordinates","prevY","currY","prevYCoordinate","currYCoordinate","labelSelectionData","markerSelectionData","strokeSelectionData","yValues","fillSelectionData","fillPoints","fillPhantomPoints","strokePoints","rawYDatum","datumIdx","labelText","nextXDatum","rawNextYDatum","nextYDatum","normalizedAndValid","createMarkerCoordinate","yValue","windowX","windowY","currCoordinates","nextCoordinates","Stroke","points_1","points_1_1","moveTo_1","points_2","points_2_1","MarkerShape","enterMarkers","isDatumHighlighted","seriesFillOpacity","deprecatedFill","deprecatedStroke","deprecatedStrokeWidth","highlightedFill","highlightFillOpacity","highlightedStroke","highlightedDatumStrokeWidth","yKeyIndex","labelEnabled","nodeDatum","xValue","markerFormatter","xString","yString","processedYValue","yName","tooltipRenderer","tooltipFormat","__read$r","__values$c","BarSeriesNodeTag","BarLabelPlacement","BarSeriesLabel","Inside","BarSeriesTooltip","flat","is2dArray$1","BarSeries","flipXY","groupScale","cumYKeyCount","flatYKeys","hideInLegend","_grouped","_yNames","smallestDataInterval","prevYKeyCount_1","visibleStacks_1","visiblesIdx","map_1","getCategoryAxis","getValueAxis","keysFound","prevX","setSmallestXInterval","yMinMax","yAbsTotal","findLargestMinMax","tallestStackMin","tallestStackMax","groups_1","groups_1_1","calculateStep","smallestInterval","intervals","maxBands","bands","labelFontStyle","labelFontWeight","labelFontSize","labelFontFamily","labelPlacement","xBandWidth","barWidth","rawBandwidth","groupIndex","groupYs","stackIndex","stackYs","prevMinY","prevMaxY","levelIndex","barX","bottomY","labelY","colorIndex","updateRects","enterRects","Bar","visibleMin","visibleMax","yGroup","fillIndex","startLevel","endLevel","visibleStacks","__values$b","__read$q","LineSeriesLabel","LineSeriesTooltip","LineSeries","_yKey","markerEnabled","prevXInRange","nextXYDatums","actualLength","xyDatums","xInRange","nextXInRange","linePath","nodeData_1","nodeData_1_1","enterDatumSelection","lineStroke","updateTextSelection","enterTextSelection","__assign$r","ScatterSeriesTooltip","ScatterSeries","validData","sizeData","sizeScale","labelName","_sizeKey","sizeKey","updateMarkers","seriesStrokeOpacity","seriesFill","seriesStroke","placedNodeDatum","__read$p","HistogramSeriesNodeTag","HistogramSeriesLabel","defaultBinCount","aggregationFunctions","bin","mean","HistogramBin","domainMin","domainMax","aggregatedValue","frequency","addDatum","domainWidth","calculateAggregatedValue","aggregationName","aggregationFunction","getY","areaPlot","relativeHeight","HistogramSeriesTooltip","HistogramSeries","binnedData","bins","aggregation","binCount","deriveBins","binStarts","binSize_1","firstBinEnd","calculateNiceBins","binSize","getBins","placeDataInBins","derivedBins","sortedData","currentBin","NEGATIVE_INFINITY","firstBin","lastBin","xMin","xMax","binOfData","xDomainMin","xDomainMax","xMinPx","xMaxPx","yZeroPx","yMaxPx","selectionDatumLabel","Bin","updateTexts","enterTexts","rangeMin","rangeMax","HierarchySeries","DropShadow","dice","roundNode","squarifyRatio","nodeValue","sumValue","newRatio","minRatio","beta","oldy0","newy1","oldx0","newx1","squarify","custom","Treemap","paddingStack","tile","eachBefore","positionNode","__values$a","HierarchyNode","countFn","eachAfter","leastCommonAncestor","ancestors","descendants","leaves","links","hierarchy","mapChildren","objectChildren","datumChildren","computeHeight","aNodes","bNodes","__values$9","TreemapSeriesTooltip","TreemapSeriesLabel","TextNodeTag","TreemapSeries","groupSelection","large","small","_nodePadding","colorKey","colorDomain","colorRange","colorParents","colorName","rootName","updateLayoutPadding","nodePadding","textSize","innerNodeWidth","hasTitle","dataRoot","colorScale","colorValue","getLabelCenterX","getLabelCenterY","Value","highlightedFillOpacity","labelMeta","buildLabelMeta","updateRectFn","pLeft","pRight","pTop","pBottom","updateNodeFn","nodeBaseline","updateValueFn","valueBaseline","valueText","isLeaf","innerNodeHeight","nodeBBox","hasNode","valueBBox","_direction","_legendData","Sector","centerOffset","innerRadius","outerRadius","angleOffset","isFullPie","midAngle","PieHighlightStyle","PieNodeTag","PieSeriesLabel","minAngle","PieSeriesCallout","colors","PieSeriesTooltip","PieTitle","PieSeries","radiusScale","groupSelectionData","angleScale","callout","angleKey","angleName","radiusKey","radiusName","radiusMin","radiusMax","outerRadiusOffset","innerRadiusOffset","angleData","angleDataTotal","angleDataRatios","radiusData","radii","min_1","delta_1","halfPi","datumIndex","quadrantTextOpts","midCos","midSin","labelMinAngle","labelVisible","quadrantOffset","quadrantIndex","updateGroupSelection","appendLabels","Callout","centerOffsets","updateSectorFn","sector","calloutColors","calloutLength","calloutStrokeWidth","offset_1","fontStyle_1","fontWeight_1","fontSize_1","fontFamily_1","color_1","labelRadius","angleValue","formattedAngleValue","radiusValue","fills_1","strokes_1","titleText_1","labelParts","floor$b","setUTCSeconds","offset$b","count$b","field$9","utcMinute","floor$a","offset$a","count$a","field$8","utcHour","floor$9","offset$9","count$9","field$7","utcMonth","__assign$q","palette$8","_target","mergeOptions","BOLD","INSIDE","ChartTheme","palette","createChartConfigPerSeries","getDefaults","common","cartesian","polar","applyOverrides","seriesTypes","overrideOpts","cartesianSeriesTypes","polarSeriesTypes","hierarchySeriesTypes","seriesOverridesMap_1","chartConfig","getPalette","getAxisDefaults","getSeriesDefaults","getBarSeriesDefaults","getLineSeriesDefaults","seriesDefaults","getCartesianSeriesMarkerDefaults","getChartDefaults","typeToAliases","groupedCategory","getConfig","mergeWithParentDefaults","parentDefaults","cartesianDefaults","category","bar","scatter","area","histogram","polarDefaults","pie","hierarchyDefaults","treemap","__assign$p","DarkTheme","fontColor","axisDefaults","seriesLabelDefaults","chartAxesDefaults","chartDefaults","palette$7","MaterialLight","palette$6","MaterialDark","palette$5","PastelLight","palette$4","PastelDark","palette$3","SolarLight","palette$2","SolarDark","palette$1","VividLight","VividDark","__assign$o","lightTheme","darkTheme","lightThemes","null","darkThemes","themes","getChartTheme","stockTheme","baseTheme","getIntegratedChartTheme","themeConfig","identity$3","LogScale","baseLog","basePow","_base","df","dl","EPSILON","makeLogFn","makePowFn","reflect","exp","pow10","log2","logBase","isReversed","p0","LogAxis","__assign$n","__values$8","jsonDiff","sourceType","classify","targetType","targetElement","lhs","rhs","allProps","propsChangedCount","take","lhsType","rhsType","allProps_1","allProps_1_1","NOT_SPECIFIED","jsonMerge","json","jsonTypes","finalValue","nextProp","props_1","props_1_1","jsonApply","matcherPath","constructors","allowedTypes","_loop_3","propertyMatcherPath","propertyPath","targetAny","targetClass","ctr","currentValueType","newValueType","allowableTypes","newValueArray","jsonWalk","visit","jsons","jsonType","_loop_4","otherValues","valueType","DEFAULT_CARTESIAN_CHART_OVERRIDES","DEFAULT_BAR_CHART_OVERRIDES","DEFAULT_SCATTER_HISTOGRAM_CHART_OVERRIDES","__assign$m","is2dArray","yNamesMapping","yKeysMapping","labelMapping","Outside","barSeriesTransform","identityTransform","SERIES_TRANSFORMS","applySeriesTransform","__assign$l","__values$7","groupSeriesByType","seriesOptions","indexMap","seriesOptions_1","seriesOptions_1_1","groupingKey","indexKey","FAIL","SKIP","ARRAY_REDUCER","BOOLEAN_OR_REDUCER","DEFAULTING_ARRAY_REDUCER","sparse","YKEYS_REDUCER","activationValue","REDUCE_CONFIG","outputProp","hideInChart","reduceSeries","reducerConfig","defaultReduce","processSeriesOptions","preprocessed","__assign$k","__values$6","optionsType","isAgCartesianChartOptions","specifiedType","isAgHierarchyChartOptions","isAgPolarChartOptions","isSeriesOptionType","countArrayElements","input_1","input_1_1","takeColours","colours","colourIndex","prepareOptions","newOptions","fallbackOptions","sanityCheckOptions","userSuppliedOptionsType","defaultSeriesType","defaultOverrides","prepareMainOptions","mergedOptions","axesThemes","seriesThemes","prepareSeries","prepareAxis","prepareEnabledOptions","prepareTheme","cleanedTheme","paletteOptions","calculateSeriesPalette","removeOptions","mergedResult","colourCount","axisTheme","crossLinesTheme_1","userOpts","mergedOpts","horizontalCrosslineTranslationDirections","xTranslationDirection","yTranslationDirection","inside","insideLeft","insideRight","insideTop","insideBottom","insideTopLeft","insideBottomLeft","insideTopRight","insideBottomRight","verticalCrossLineTranslationDirections","calculateLabelTranslation","yDirection","crossLineTranslationDirections","xTranslation","yTranslation","POSITION_TOP_COORDINATES","xEnd","yStart","yEnd","POSITION_LEFT_COORDINATES","xStart","POSITION_RIGHT_COORDINATES","POSITION_BOTTOM_COORDINATES","POSITION_INSIDE_COORDINATES","POSITION_TOP_LEFT_COORDINATES","POSITION_BOTTOM_LEFT_COORDINATES","POSITION_TOP_RIGHT_COORDINATES","POSITION_BOTTOM_RIGHT_COORDINATES","labeldDirectionHandling","CrossLineLabel","CrossLine","LINE_LAYER_ZINDEX","crossLineLabel","crossLineLine","crossLineRange","labelPoint","fillData","strokeData","getZIndex","RANGE_LAYER_ZINDEX","updateLinePath","updateLineNode","updateRangePath","updateRangeNode","updateLabel","positionLabel","clampedYStart","clampedYEnd","isContinuous","getRange","isLine","computeLabelBBox","crossLineLabelBBox","labelHeight","paddingbottom","SERIES_CROSSLINE_LINE_ZINDEX","SERIES_CROSSLINE_RANGE_ZINDEX","__assign$j","AgChart","createComponent","createSeries","AgChartV2","userOptions","mixinOpts","DEBUG","updateDelta","deltaOptions","applyChartOptions","optionalParams","applyOptionValues","applySeries","applyAxes","seriesOpts","registerListeners","optSeries","seriesDiff","applySeriesValues","optAxes","oldOpts_1","axisDiff","createAxis","axisOptions","JSON_APPLY_OPTIONS","ctrs","seriesTypeOverrides","sunday","monday","thursday","utcDay","utcYear","getSeriesType","ChartController","setChartRange","updateForRangeChange","setCellRanges","updateForGridChange","updateForDataChange","raiseChartUpdatedEvent","raiseChartRangeSelectionChangedEvent","updateForPanelChange","getChartUpdateParams","getSelectedValueColState","getChartData","getChartId","getCrossFilteringContext","lastSelectedChartId","getSeriesChartTypes","getChartModel","modelType","chartOptions","chartProxy","getChartOptions","chartPalette","getChartPalette","getCellRangeParams","getChartType","setChartType","raiseChartOptionsChangedEvent","setChartThemeName","getChartThemeName","isPivotChart","getThemes","getPalettes","themeName","isStockTheme","lookupCustomChartTheme","getValueColState","displayNameMapper","getDimensionColState","getColStateForMenu","isDefaultCategorySelected","detachChartRange","setChartProxy","getChartProxy","isActiveXYChart","isChartLinked","customComboExists","updateSeriesChartType","updateChartType","prevSeriesChartType","EVENT_CHART_TYPE_CHANGED","EVENT_CHART_SERIES_CHART_TYPE_CHANGED","getActiveSeriesChartTypes","selectedColIds","getChartSeriesTypes","firstCellRange","EVENT_CHART_UPDATED","ChartDataPanel","chartController","chartOptionsService","columnComps","updatePanels","clearComponents","currentChartType","groupExpandedState","getGroupExpandedState","getSeriesLabel_1","generateGetSeriesLabel","seriesChartTypeGroupComp","createSeriesChartTypeGroup","createCategoriesGroup","createSeriesGroup","restoreGroupExpandedState","categoriesGroupComp","seriesGroupComp","getCategoryGroupTitle","inputName","getSeriesGroupTitle","pairedModeToggle","getPairedMode","setPairedMode","getSeriesLabel","addDragHandle","seriesItemGroup","secondaryAxisComp","defaultText","availableChartTypes","chartTypeComp","ChartPanel","isBubble","isInPairedMode","selectedValuesCount","indexToAxisLabel","axisLabel","escapedLabel","getSeriesOption","itemHovered","checkHoveredItem","lastDraggedColumn","lastHoveredItem","lastHoveredComp","lastHoveredPosition","draggedColumnState","FontPanel","activeComps","fontGroup","initGroup","initFontFamilySelect","initFontWeightStyleSelect","initFontSizeSelect","initFontColorPicker","addCompToPanel","families","initialFont","valueIndex","capitalisedFontValue","familySelect","setFont","sizeSelect","weightStyles","selectedOption","weightStyleSelect","selectedWeightStyle","newColor","destroyActiveComps","LegendPanel","activePanels","initLegendGroup","initLegendPosition","initLegendPadding","initLegendItems","initLabelPanel","getChartOption","setChartOption","positions","legendPositionSelect","legendPaddingSlider","getMaxValue","initSlider","defaultMaxValue","markerSizeSlider","markerStrokeSlider","markerPaddingSlider","itemPaddingXSlider","itemPaddingYSlider","proxy","fontPanelComp","destroyActivePanels","AxisTicksPanel","axisTicksGroup","initAxisTicks","axisTicksColorPicker","getAxisProperty","setAxisProperty","initInput","axisTicksWidthSlider","axisTicksSizeSlider","AxisPanel","axisLabelUpdateFuncs","prevXRotation","prevYRotation","initAxis","initAxisLabels","axisColorInput","axisLineWidthSlider","options_1","xAxisTypeSelect","axisTicksComp","labelPanelComp","addAdditionalLabelComps","addLabelPadding","createRotationWidgets","xRotationComp","yRotationComp","autoRotateCb","initLabelRotations","getLabelRotation","axisType","setLabelRotation","xRotation","yRotation","getAutoRotateValue","autoRotateCheckbox","degreesSymbol","createRotationComp","angleSelect","labelPaddingSlider","NavigatorPanel","navigatorGroup","initNavigator","navigatorHeightSlider","PaddingPanel","chartPaddingGroup","initChartPaddingItems","paddingTopSlider","paddingRightSlider","paddingBottomSlider","paddingLeftSlider","BackgroundPanel","chartBackgroundGroup","initColorPicker","TitlePanel","initFontPanel","titlePlaceholder","getOption","setOption","fontPanelParams","currentTitleText","chartGroup","initTitles","initPaddingPanel","initBackgroundPanel","titlePanelComp","paddingPanelComp","backgroundPanelComp","ShadowPanel","getSelectedSeries","shadowGroup","shadowBlurSlider","shadowXOffsetSlider","shadowYOffsetSlider","initSeriesShadow","setSeriesOption","shadowColorPicker","initFontPanelParams","MarkersPanel","seriesMarkersGroup","initMarkers","seriesMarkerShapeSelect","shouldHideEnabledCheckbox","seriesMarkerMinSizeSlider","seriesMarkerSizeSlider","seriesMarkerStrokeWidthSlider","CalloutPanel","calloutGroup","initCalloutOptions","calloutLengthSlider","calloutStrokeWidthSlider","labelOffsetSlider","SeriesPanel","widgetFuncs","initLineWidth","initStrokeWidth","initLineDash","initLineOpacity","initFillOpacity","initLabels","initShadow","initTooltips","initBins","seriesWidgetMappings","getChartSeriesType","refreshWidgets","updateSeriesType","initSeriesSelect","seriesSelect","getSeriesSelectOptions","seriesTooltipsToggle","addWidget","seriesStrokeWidthSlider","seriesLineWidthSlider","seriesLineDashSlider","seriesLineOpacitySlider","seriesFillOpacitySlider","calloutPanelComp","shadowPanelComp","markersPanelComp","seriesBinCountSlider","seriesSelectOptions","activeChartTypes","FormatPanel","panels","createPanels","destroyPanels","MiniChart","tooltipName","MiniChartWithAxes","axisOvershoot","addAxes","leftAxis","bottomAxis","createColumnRects","xScalePadding","xScaleDomain","yScaleDomain","createBars","createLinePaths","clipRect","MiniColumn","columnData","updateColors","MiniStackedColumn","stackedColumns","MiniNormalizedColumn","MiniBar","bars","MiniStackedBar","MiniNormalizedBar","MiniDoughnut","centerRadiusScaler","angles","sectors","MiniPie","MiniLine","MiniScatter","MiniBubble","MiniArea","pathData","areas","MiniStackedArea","MiniNormalizedArea","MiniHistogram","MiniColumnLineCombo","lineData","MiniAreaColumnCombo","areaData","yZero","firstX","MiniCustomCombo","penIcon","buildPenIconPath","MiniChartsContainer","wrappers","chartGroups","barGroup","pieGroup","scatterGroup","areaGroup","histogramGroup","combinationGroup","miniChart","groupComponent","MiniClass","miniWrapper","updateSelectedMiniChart","selectedChartType","miniChartType","ChartSettingsPanel","miniCharts","cardItems","activePaletteIndex","palettes","resetPalettes","ePrevBtn","eNextBtn","setActivePalette","getPrev","getNext","scrollSelectedIntoView","currentChart","pallet","scrollIntoView","forceReset","isAnimating","eCardSelector","destroyMiniCharts","isActivePalette","miniChartsContainer","eMiniChartsContainer","addCardLink","eNavBar","link","animationDirection","currentPalette","currentGui","futurePalette","nextGui","final","TabbedChartMenu","tabs","panelType","createTab","getPanelClass","tabbedLayout","TabPanelClass","eWrapperDiv","titleEl","translatedTitle","showTab","tabItem","TAB_DATA","TAB_FORMAT","ChartMenu","eChartContainer","eMenuPanelContainer","chartSettings","chartFormat","chartLink","toggleDetached","chartUnlink","chartDownload","saveChart","createButtons","refreshMenuClasses","getToolbarOptions","tabOptions","toolbarItemsFunc","defaultItems","ignoreOptions","tooltipKey","tooltipTitle","chartToolbarOptions","buttonConfig","buttonEl","EVENT_DOWNLOAD_CHART","createMenuPanel","defaultTab","tabbedMenu","hideMenu","showContainer","showParent","tabName","hideParent","__assign$i","TitleEdit","chartMenu","endEditing","refreshTitle","destroyableChartListeners","getChart","destroyDbleClickListener","wasInTitle","destroyMouseMoveListener","inTitle","maximumInputWidth","inputWidth","inputStyle","isTitlePlaceholder","inputRect","emptyTarget","getMergeFunction","getEnumerableOwnPropertySymbols","propertyIsOnObject","propertyIsUnsafe","defaultIsMergeableObject","ChartProxy","chartProxyParams","crossFilterCallback","standaloneChartType","chartOptionsToRestore","chartPaletteToRestore","themeOverrides","chartTheme","getSelectedTheme","createChartTheme","convertConfigToOverrides","recreateChart","destroyChart","createChart","gridOptionsThemeOverrides","getGridOptionsChartThemeOverrides","apiThemeOverrides","apiChartThemeOverrides","themeOverrides_1","mergeThemeOverrides","availableThemes","customChartTheme","downloadChart","transformData","categoryKey","categoryAxis","getCommonChartOptions","overrideObjs","overrideObj","chartOverrides","paired","CartesianChartProxy","supportsAxesUpdates","axisTypeToClassMap","crossFilteringAllPoints","crossFilteringSelectedPoints","getAxes","getSeries","addCrossFilterOptions","getDataTransformedData","isCategoryAxis","xAxisType","seriesOverrides","extractSeriesOverrides","chartSeriesType","newXAxisType","isTimeAxis","getAxesOptions","testDatum","crossFilteringReset","crossFilteringPointSelected","crossFilteringDeselectedPoints","extractLineAreaCrossFilterSeries","nodeClick","multiSelection","crossFilteringAddSelectedPoint","getLineAreaCrossFilterData","pointSelected","hexToRGBA","changeOpacity","BarChartProxy","yAxisType","isBar","isNormalised","numberAxis","isGrouped","extractCrossFilterSeries","updateFilteredOutSeries","primarySeries","AreaChartProxy","LineChartProxy","PieChartProxy","getCrossFilterData","getCrossFilterChartOptions","numFields","currentOffset","offsetAmount","getFields","calculateOffsets","primaryOpts","getCrossFilterTooltipRenderer","filteredOutOptions","totalValue","ScatterChartProxy","seriesDefinitions","getSeriesDefinitions","labelFieldDefinition","seriesDefinition","xField","yField","sizeField","filteredOutKey","updatedSeries","markerDomain","calcMarkerDomain","filterableEvent","isBubbleChart","currentXField","HistogramChartProxy","firstField","ChartOptionsService","chartSeriesTypes","updateChart","updateAxisOptions","getAxis","chartAxis","isMatchingSeries","chartUpdateParams","ComboChartProxy","fieldsMap","getYKeys","primaryYKeys","secondaryYKeys","getAxisOptions","bottomOptions","leftOptions","rightOptions","secondaryYKey","secondaryAxisOptions","primaryYAxis","primaryYKey","lastSecondaryAxis","GridChartComp","availableChartThemes","validateCustomThemes","insideDialog","addDialog","addMenu","addTitleEditComp","setActiveChartCellRange","raiseChartCreatedEvent","suppliedThemes","customThemeName","crossFilteringContext","crossFilteringResetCallback","crossFilterService","eChart","createChartProxy","titleEdit","getBestDialogSize","chartDialog","eMenuContainer","eTitleEditContainer","shouldRecreateChart","getCurrentChartType","fileFormat","handleEmptyChart","pivotModeDisabled","minFieldsRequired","isEmptyChart","eEmpty","getUnderlyingChart","raiseChartDestroyedEvent","CURRENT_VERSION","upgradeChartModel","versionParts","major","minor","patch","ChartService","activeCharts","activeChartComps","versionedModel","chartRef","cr","createChartFromCurrentRange","selectedRange","getSelectedRange","getCellRange","createCellRangeFromCellRangeParams","cellRange_1","chartAllRangeParams","createChartContainerFunc","generateId","chartComp","createChartRef","destroyAllActiveCharts","ChartTranslationService","ChartTranslationService_1","toTranslate","DEFAULT_TRANSLATIONS","pivotChartTitle","rangeChartTitle","settings","categories","xyValues","xType","automatic","itemSpacing","itemPaddingX","itemPaddingY","layoutHorizontalSpacing","layoutVerticalSpacing","offsets","tooltips","markers","boldItalic","predefined","histogramBinCount","groupedColumnTooltip","stackedColumnTooltip","normalizedColumnTooltip","groupedBarTooltip","stackedBarTooltip","normalizedBarTooltip","pieTooltip","doughnutTooltip","lineTooltip","groupedAreaTooltip","stackedAreaTooltip","normalizedAreaTooltip","scatterTooltip","bubbleTooltip","histogramTooltip","columnLineComboTooltip","areaColumnComboTooltip","customComboTooltip","noDataToChart","pivotChartRequiresPivotMode","chartSettingsToolbarTooltip","chartLinkToolbarTooltip","chartUnlinkToolbarTooltip","chartDownloadToolbarTooltip","ChartCrossFilterService","ChartCrossFilterService_1","resetFilters","extractFilterColId","isValidColumnFilter","updateFilters","dataKey","existingGridValues","getCurrentGridValuesForCategory","updatedValues","getUpdatedFilterModel","getColumnFilterType","filterModels","filteredValues","getColumnById","RangeService","bodyScrollListener","onBodyScroll","intersectionRange","refreshLastRangeStart","beforeCols","dispatchChangedEvent","countBefore","lastRange","refreshRangeStart","rangeColumns","allPositions","pinnedBottomRowCount","appendRange","calculateColumnsBetween","rowForCell","setNewestRangeStartCell","newestRangeStartCell","updateRangeEnd","endColumn","colsToAdd","isLastCellOfRange","moveColInCellRange","colToMove","moveToFront","otherCols","getRangeEdgeColumns","allIndices","startCell","firstCol","endCellIndex","endCellFloating","newEndCell","newRange","startsOnTheRight","columnsString","rowToColumnMap","topRow","bottomRow","rowName","currentRangeColIds","filteredColumns","currentValString","columnInRange","rowInRange","isRowInRange","rangeFirstIndexColumn","rangeLastIndexColumn","lastRangeColumn","isRightColumn","thisRow","equalsFirstRow","equalsLastRow","afterFirstRow","beforeLastRow","getDraggingRange","draggingRange","extendRange","cellHoverListener","updateValuesOnMove","lastCellHovered","mouseRowPosition","fromMouseClick","intersectionStartRow","intersectionEndRow","newRanges","intersectCols","rangeCountBefore","middle","cellHasChanged","isMouseAndStartInPinned","started","columnFrom","columnTo","isSameColumn","AbstractSelectionHandle","changedCalculatedValues","shouldDestroyOnEndDragging","onDragEnd","clearValues","getDraggingCssClass","preventRangeExtension","setCellCtrl","rangeStartRow","setRangeStartRow","rangeEndRow","setRangeEndRow","getLastCellHovered","oldCellComp","removeListeners","FillHandle","markedCells","cellValues","isReduce","initialXY","newX","newY","allowedDirection","dragAxis","initialPosition","markPathFrom","isX","colLen","lastCellMarked","raiseFillStartEvent","handleValueChanged","raiseFillEndEvent","fillStartEvent","fillEndEvent","initialRangeEndRow","initialRangeStartRow","finalRangeEndRow","finalRangeStartRow","withinInitialRange","resetValues","iterateAcrossCells","fillValues","currentValues","updateInitialSet","skipValue","processValues","fromUserFunction","clearCellsInRange","userFillOperation","userResult","currentCellValue","allNumbers","clearMarkedPath","clearCellValues","reduceVertical","extendVertical","initialColumn","reduceHorizontal","extendHorizontal","endPosition","isMovingUp","rowPos","cellInRange","isInitialRow","celPos","isMovingLeft","startCol","endCol","colsToMark","rangeFixed","fixRangeStartEnd","SelectionHandleFactory","agCharts","DetailCellRendererCtrl","loadRowDataVersion","needRefresh","setAutoHeightClasses","setupRefreshStrategy","addThemeToDetailGrid","createDetailGrid","loadRowData","eventRow","parentClass","detailClass","addOrRemoveDetailGridCssClass","suppressRefresh","refreshStrategy","providedStrategy","detailGridOptions","setDetailGrid","registerDetailWithMaster","masterGridApi","detailGridInfo","versionThisCall","getDetailRowData","DetailCellRenderer","eDetailGrid","setDefaultTemplate","templateFunc","agGridReact","agGridReactCloned","detailApi","EnterpriseMenuFactory","activeMenu","restrictToTabs","EnterpriseMenu","lastSelectedTab","eMenuGui","closedFuncs","stopAnchoringFunc","showTabBasedOnPreviousSelection","EVENT_TAB_SELECTED","TABS_DEFAULT","initialSelection","restrictTo","tabFactories","includeChecks","TAB_GENERAL","createMainPanel","TAB_FILTER","createFilterPanel","TAB_COLUMNS","createColumnsPanel","getTabsToCreate","onHidePopup","onTabItemClicked","mainMenuList","isValidMenuTabItem","isNotSuppressed","isModuleLoaded","menuTabName","itemsToConsider","toShow","tabItemColumns","tabItemFilter","tabItemGeneral","activateTab","ev","getMenuItems","defaultMenuOptions","getDefaultMenuOptions","MENU_ITEM_SEPARATOR","allowPinning","rowGroupCount","doingGrouping","groupedByThisColumn","allowValue","allowRowGroup","pivotModeOn","isInMemoryRowModel","allowValueAgg","menuItemMapper","mapWithStockItems","hidePopupFunc","columnSelectPanel","columnsMenuParams","columnSelectPanelGui","CSS_MENU","CSS_CONTEXT_MENU_OPEN","ContextMenuFactory","csvModuleMissing","excelModuleMissing","suppressExcel","suppressCsv","blockMiddleClickScrollsIfNeeded","which","eGridBodyGui","ContextMenu","currentFocusedCell","MenuItemMapper","originalList","resultList","getStockMenuItem","resultDef","createAggregationSubMenu","exportSubMenuItems","csvModuleLoaded","excelModuleLoaded","chartMenuItem","getChartItems","pivotChartMenuItem","localeKey","rangeChartMenuItem","columnToUse","columnIsAlreadyAggValue","funcNames","MenuModule","MultiFilter","filterDefs","guiDestroyFuncs","activeFilterIndices","lastActivatedMenuItem","afterFiltersReadyFuncs","getFilterDefs","filterPromises","filterDef","createFilter","lastOpenedInContainer","filterTitle","insertFilterMenu","insertFilterGroup","filterWithoutType","params_1","getLastActiveFilterIndex","rowPasses","providedFilter","updateActiveList","getChildFilterInstance","executeFunctionIfExists","_doesRowPassOtherFilter","executeWhenAllFiltersReady","filterChanged","changedFilter","MultiFloatingFilterComp","floatingFilters","floatingFilterPromises","floatingFilterParams","parentMultiFilterInstance","floatingFilterPromise","createFloatingFilter","lastActiveFloatingFilterIndex_1","shouldShow","defaultComponentName","MultiFilterModule","RichSelectRow","populateWithRenderer","populateWithoutRenderer","updateSelected","valueToRender","RichSelectCellEditor","selectionConfirmed","searchString","originalSelectedValue","createRowComponent","eList","renderSelectedValue","debounceDelay","searchDebounceDelay","clearSearchString","confirmSelection","valueToSelect","setSelectedValue","runSearch","keyString","searchStrings","keyParams","topSuggestion","topValue","cmp","mouseY","ServerSideRowModel","pauseStoreUpdateListening","onStoreUpdated","resetListener","getRootStore","storeParams","rowGroupColumnVos","columnsToValueObjects","valueColumnVos","pivotColumnVos","sortModelDifferent","rowGroupDifferent","pivotDifferent","pivotCols","destroyRootStore","childStore","refreshAfterSort","newSortModel","rootStore","createStoreParams","storeFactory","createStore","updateRowIndexesAndBounds","rowDataChangedEvent","dispatchModelUpdated","dynamicRowHeight","sortListener","extractSortModel","getParams","setDisplayIndexes","getRowUsingDisplayIndex","refreshAfterFilter","newFilterModel","getDisplayIndexEnd","forEachNodeDeepAfterFilterAndSort","executeOnStore","storeToExecuteOn","getChildStore","store","addStoreStates","StoreUtils","parentBlock","groupKeys","request","getRowsParams","fail","currentCache","findNodeFunc","keyListForNextLevel","nextStore","isServerRefreshNeeded","valueColChanged","secondaryColChanged","colIdThisGroup","BlockUtils","usingMasterDetail","createRowNode","destroyRowNode","preserveStore","removeNode","setTreeGroupInfo","isGroupFunc","getKeyFunc","setRowGroupInfo","setMasterDetailInfo","isMasterFunc","updateDataIntoRowNode","setDataIntoRowNode","defaultId","cachedRowHeight","setGroupDataIntoRowNode","setChildCountIntoRowNode","groupDisplayCols","groupValue","clearDisplayIndex","clearDisplayIndexes","setDisplayIndex","displayIndexSeq","binarySearchForDisplayIndex","displayRowIndex","expandedMasterRow","isDisplayIndexInStore","extractRowBounds","getIndexAtPixel","createNodeIdPrefix","checkOpenByDefault","NodeManager","addRowNode","TransactionManager","asyncTransactions","asyncTransactionsTimeout","scheduleExecuteAsync","executeAsyncTransactions","resultFuncs","resultsForEvent","transactionsToRetry","atLeastOneTransactionApplied","txWrapper","StoreNotFound","StoreLoading","Applied","ExpandListener","storeUpdatedEvent","SortListener","replaceAutoGroupColumnWithActualRowGroupColumns","removeMultiColumnPrefixOnColumnIds","multiColumnPrefix","autoGroupSortModel","sm","autoGroupIndex","newModels","oldSortModel","findChangedColumnsInSort","listenerUtils","isSortingWithValueColumn","isSortingWithSecondaryColumn","allColsInBothSorts","ids","oldSortItem","newSortItem","differentSorts","differentIndexes","FilterListener","oldModel","findChangedColumns","allColKeysMap","InfiniteStoreBlock","ssrmParams","parentStore","groupLevel","groupColVo","groupField","nodeIdPrefix","blockUtils","isDisplayIndexInBlock","displayIndexStart","displayIndexEnd","isBlockBefore","getDisplayIndexStart","getBlockHeightPx","blockHeightPx","getBlockTopPx","blockTopPx","isGroupLevel","getGroupField","prefixId","isAnyNodeOpen","includeChildren","filterAndSort","forEachNodeShallow","getRowUsingLocalIndex","touchLastAccessed","onBlockLoadFailed","onBlockLoaded","storeRowCount","rowsToCreate","cachedBlockHeight","getCachedBlockHeight","dataLoadedForThisRow","getNodeWithData","removeDuplicateNode","retrieveNodeFromCache","stubRowNode","isStoreCachingNode","isNodeCached","storeUtils","FindResult","InfiniteStore","blockHeights","cacheTopPixel","refreshedNodeCache","INITIAL_ROW_COUNT","fireCacheUpdatedEvent","storeInfo","groupLevelInfo","OVERFLOW_SIZE","resetStore","refreshBlocks","buildRowNodeCache","rowCache","findBlockAndExecute","matchBlockFunc","blockFoundFunc","blockNotFoundFunc","blockFound","breakSearch","lastBlock","FOUND","CONTINUE_FIND","BREAK_FIND","foundBlock","previousBlock","rowsBetween","defaultBlockHeight","nextBlockId","getBlockDetails","blockHeight","pixelInBlock","blockDetails","pixelsBetween","lastAllowedIndex","currentBlock","blocksSkippedCount","rowsSkippedCount","blockToAddId","lastVisitedRow","rowsNotAccountedFor","cacheHeightPixels","dontCreateBlock","lastDisplayedNodeIndexInBlockBefore","lastRowTopLevelIndex","lastRowNode","infiniteScroll","forEachChildStoreShallow","StoreWrongType","nextCache","FullStore","nodeIdSequence","isRootStore","userInitialRowCount","initialiseRowNodes","nodesAfterSort","nodesAfterFilter","loadingRowsCount","loadingRowNode","createDataNode","fireStoreUpdatedEvent","nodesToRecycle","createOrRecycleNodes","filterAndSortNodes","nodeToRecycle","foundNode","lookupNodeToRecycle","recycleNode","transactionManager","filterRowNodes","serverIsSorting","noSortApplied","serverIsFiltering","visibleNodeIds","heightPx","childCache","lastRowNodeBottomPx","res2","storeIsImpacted","StoreLoadingFailed","StoreWaitingToLoad","applyCallback","Cancelled","newRowNode","loadingRowsToShow","scheduleLoad","StoreFactory","getStoreParams","userStoreParams","getLevelSpecificParams","isInfiniteScroll","getBlockSize","storeType","ListenerUtils","changedColumnsInSort","valueColIds","secondaryColIds","serverSide","NULL_SUBSTITUTE$1","ClientSideValuesExtractor","caseFormat","extractUniqueValues","addValue","valueKey","formatted","SetFilterModelValuesType","NULL_SUBSTITUTE","SetValueModel","setIsLoading","miniFilterText","providedValues","availableValues","displayedValues","selectedValues","suppressSorting","clientSideValuesExtractor","valuesType","TAKEN_FROM_GRID_VALUES","PROVIDED_LIST","PROVIDED_CALLBACK","updateAllValues","resetSelectionState","refreshValues","overrideValues","valuesToUse","allValuesPromise","refreshAfterAnyFilterChanged","showAvailableOnly","updateAvailableValues","isInitialised","getValuesFromRows","uniqueUnsortedStringArray","sortedValues","sortValues","callback_1","processedValues","setValuesType","getValuesType","isValueAvailable","EVENT_AVAILABLE_VALUES_CHANGED","updateDisplayedValues","excelMode","removeUnavailableValues","setMiniFilter","getMiniFilter","formattedFilterText","matchesFilter","valueToCheck","textFormatterValue","valueFormatterValue","getDisplayedValueCount","getDisplayedValue","hasSelections","defaultToNothingSelected","selectAllMatchingMiniFilter","clearExistingSelection","deselectAllMatchingMiniFilter","selectValue","deselectValue","isEverythingVisibleSelected","isValueSelected","isNothingVisibleSelected","allValues_1","allValue","uniqueKey","stringifiedResults","SetFilterListItem","parsedValue","toggleSelected","getFormattedValue","showTooltips","tooltipValue","renderCell","getComponentHolder","DEFAULT_LOCALE_TEXT","loadingOoo","blanks","searchOoo","selectAllSearchResults","noMatches","SetFilter","valueModel","setFilterParams","appliedModelValues","eSetFilterList","translateForSetFilter","handleKeySpace","handleKeyEnter","eMiniFilter","setModelAndRefresh","getValueModel","applyExcelModeOptions","loading","showOrHideLoadingScreen","initialiseFilterBodyUi","addEventListenersForDataChanges","applyMiniFilterWhileTyping","isValuesTakenFromGrid","syncAfterDataChange","eFilterLoading","initVirtualList","initMiniFilter","filterListName","createSetListItem","suppressSelectAll","ModelWrapper","ModelWrapperWithSelectAll","isSelectAllSelected","getSelectAllLabel","listItem","SELECT_ALL_VALUE","suppressMiniFilter","onMiniFilterInput","resetUiToActiveModel","showOrHideResults","resizableObject","setFilterValues","resetFilterValues","refreshFilterValues","filterOnAllVisibleValues","updateUiAfterMiniFilterChange","hideResults","eNoMatches","applyImmediately","newMiniFilter","refreshValuesOnOpen","valueToFormat","_extendStatics186","SetFloatingFilterComp","availableValuesListenerAdded","updateFloatingFilterText","parentSetFilterInstance","addAvailableValuesListener","setValueModel","arrayToDisplay","valuesString","_extendStatics187","StatusBarService","allComponents","registerStatusPanel","_extendStatics188","StatusBar","statusBar","statusPanels","leftStatusPanelComponents","componentConfig","createAndRenderComponents","eStatusBarLeft","centerStatusPanelComponents","eStatusBarCenter","rightStatusPanelComponents","eStatusBarRight","statusBarComponents","ePanelComponent","componentDetails","componentDetail","_extendStatics189","NameValueComp","_extendStatics190","TotalAndFilteredRowsComp","getFilteredRowCountValue","totalRowCount","getTotalRowCount","localeTextFunc_1","filteredRowCount","_extendStatics191","FilteredRowsComp","totalRowCountValue","getTotalRowCountValue","filteredRowCountValue","_extendStatics192","TotalRowsComp","getRowCountValue","_extendStatics193","SelectedRowsComp","isValidRowModel","selectedRowCount","eventListener","onRowSelectionChanged","_extendStatics194","AggregationComp","avgAggregationComp","countAggregationComp","minAggregationComp","maxAggregationComp","sumAggregationComp","setAggregationComponentValue","statusBarValueComponent","getAggregationValueComponent","refComponentName","aggregationPanelConfig","statusPanelParams","numberCount","cellsSoFar","gotResult","gotNumberResult","_extendStatics195","ViewportRowModel","rowNodesByIndex","onViewportChanged","calculateFirstRow","bufferSize","afterBuffer","calculateLastRow","purgeRowsNotInViewport","setViewportRange","createBlankRowNode","firstNodeOutOfRange","lastNodeOutOfRange","callbackCount","m11","m12","m21","m22","m31","m32","o11","o12","o21","o22","o31","o32","_scalingX","_scalingY","_scalingCenterX","_scalingCenterY","_rotationCenterX","_rotationCenterY","_rotation","_translationX","_translationY","dirtyTransform","_extendStatics196","chainObjects","_extendStatics197","_strokeOpacity","_lineDash","_lineDashOffset","_lineJoin","onShadowChange","_fillShadow","_strokeShadow","strokeShadow","identical","linearRoot","quadraticRoots","cubicRoots","segmentIntersection","cubicSegmentIntersections","bezierCoefficients","setFromString","parseSvgPath","splitCommandsRe","strParams","matchParamsRe","prettifySvgPath","lastCommand","checkQuadraticCP","quadraticCommandRe","checkCubicCP","cubicCommandRe","toPrettyString","toSvg","xmlDeclaration","toDebugSvg","_extendStatics198","_svgPath","isPointInStroke","appendPath","_extendStatics199","_x1","_y1","_y2","appendFn","creator","animationFrameId","renderFrameIndex","_frameIndex","frameIndex","cancelRender","cancelAnimationFrame","reactive","privateKeyEvents","events_1","defaultTooltipCss","isNumberObject","isStringObject","constant$1","interpolateNumber","interpolateValue","constant","identity$2","_extendStatics200","tickStep","e10","e5","tickIncrement","formatDefault","formatTypes","formatDecimal","_p3","formatRounded","formatPrefixAuto","_x3","formatRegEx","interpolateRegEx","prefixExponent","formatDefaultLocale","makeFormatSpecifier","precisionPrefix","precisionRound","precisionFixed","formatDecimalParts","formatGroup","formatNumerals","formatTrim","identity$1","defaultLocale","formatLocale$1","_extendStatics201","_extendStatics202","floor$8","offset$8","count$8","durationSecond","durationMinute","durationHour","durationDay","durationWeek","durationMonth","durationYear","floor$7","offset$7","count$7","floor$6","offset$6","count$6","field$6","floor$5","offset$5","count$5","field$5","floor$4","offset$4","count$4","field$4","weekday$1","floor$3","offset$3","count$3","field$3","floor$2","offset$2","count$2","field$2","ascending","complexBisectRight","ascendingComparator","floor$1","offset$1","count$1","field$1","utcSunday","utcMonday","utcThursday","localDate","utcDate","formatLookup","newYear","percentCharCode","numberRe","percentRe","requoteRe","requote","formatRe","pads","formatLocale","setDefaultLocale","_extendStatics203","formatMillisecond","formatSecond","formatMinute","formatHour","formatDay","formatWeek","formatMonth","formatYear","_extendStatics204","SparklineAxis","Sparkline","_context","layoutId","defaultDateFormatter","rootGroup","canvasElement","setupDomEventListeners","scheduleLayout","updateYScale","updateYScaleRange","updateYScaleDomain","updateXScale","getXScale","updateXScaleRange","updateXScaleDomain","xMinMax","updateAxisLine","updateCrosshairs","updateXCrosshairLine","updateYCrosshairLine","generateNodeData","getNodeData","highlightDatum","dehighlightDatum","pickClosestSeriesNodeDatum","invalidData","getDataType","xValueType","getDatum","setSparklineDimensions","shrunkWidth","shrunkHeight","getDistance","tooltipRendererResult","formatNumericDatum","cleanupDomEventListeners","_extendStatics205","toTooltipHtml","titleHtml","contentHtml","SparklineTooltip","bgColor","bgColorRgbaString","containerRect","_extendStatics206","_extendStatics207","_extendStatics208","_extendStatics209","getMarker","getLineDash","buttOrNull","solid","dash","dot","dashDot","dashDotDot","shortDot","shortDash","shortDashDot","shortDashDotDot","longDash","longDashDot","longDashDotDot","roundOrSquare","_extendStatics210","SparklineMarker$1","SparklineLine$1","SparklineCrosshairs$1","xLine","yLine","AreaSparkline","strokePath","fillPath","xCrosshairLine","yCrosshairLine","areaSparklineGroup","fillPathData","strokePathData","xAxisLine","crosshairs","updateStroke","updateFill","firstValidX","lastValidX","previousX","nextX","selectionData","enterMarkerSelection","highlightSize","highlightFill","highlightStroke","highlightStrokeWidth","markerFormat","_extendStatics211","SparklineMarker","SparklineLine","SparklineCrosshairs","LineSparkline","lineSparklineGroup","_extendStatics212","Rectangle","_crisp","al","_extendStatics213","getFont$1","lineBreakRegex","_text","_fontSize","_fontFamily","_textAlign","_textBaseline","_lineHeight","splitText","dirtyFont","_fontStyle","_fontWeight","_extendStatics214","_extendStatics215","_extendStatics216","BarColumnNodeTag","BarColumnLabel","InsideEnd","BarColumnSparkline","valueAxisDomain","axisLine","bandWidth","sparklineGroup","rectGroup","rectSelection","nodeSelectionData","updateRectSelection","updateRectNodes","gaps","enterRectSelection","nodeFormatter","nodeFormat","nodeFill","nodeStroke","nodeStrokeWidth","formatLabelValue","_extendStatics217","BarSparkline","invalidDatum","midPoint","isPositiveY","OutsideEnd","textWidth","_extendStatics218","ColumnSparkline","textHeight","AgSparkline","sparkline","getSparklineInstance","initSparkline","initSparklineByType","initBarColumnSparkline","initAreaSparkline","initLineSparkline","setValueIfPropertyExists","initPaddingOptions","initAxisOptions","initHighlightStyleOptions","initTooltipOptions","initMarkerOptions","initLineOptions","initCrosshairsOptions","initLabelOptions","initCrosshairLineOptions","offsetValidator","defaultOffset","validators","validator","_extendStatics219","SparklineCellRenderer","firstTimeIn","sparklineOptions","sparklineTooltipSingleton","getSparklineTooltip","eSparkline","_extendStatics220","SparklineTooltipSingleton","destroyTooltip","SparklinesModule","AllEnterpriseModules","AllModules","isBrowser","timeoutDuration","longerTimeoutBrowsers","called","functionToCheck","getStyleComputedProperty","css","getParentNode","host","getScrollParent","_getStyleComputedProp","overflowX","getReferenceNode","reference","referenceNode","isIE11","MSInputMethodContext","isIE10","getOffsetParent","noOffsetParent","nextElementSibling","getRoot","findCommonOffsetParent","element1","element2","compareDocumentPosition","DOCUMENT_POSITION_FOLLOWING","createRange","setStart","setEnd","commonAncestorContainer","firstElementChild","isOffsetContainer","element1root","getScroll","upperSide","scrollingElement","includeScroll","modifier","getBordersSize","sideA","sideB","getSize","getWindowSizes","getClientRect","horizScrollbar","vertScrollbar","getOffsetRectRelativeToArbitraryNode","fixedPosition","isHTML","childrenRect","scrollParent","getViewportOffsetRectRelativeToArtbitraryNode","excludeScroll","relativeOffset","isFixed","getFixedPositionOffsetParent","getBoundaries","popper","boundariesElement","boundaries","boundariesNode","_getWindowSizes","isPaddingNumber","getArea","computeAutoPlacement","refRect","rects","sortedAreas","filteredAreas","computedPlacement","variation","getReferenceOffsets","commonOffsetParent","getOuterSizes","getOppositePlacement","getPopperOffsets","referenceOffsets","popperRect","popperOffsets","isHoriz","mainSide","secondarySide","measurement","secondaryMeasurement","runModifiers","modifiers","ends","arrowStyles","flipped","positionFixed","flip","originalPlacement","isCreated","onCreate","isModifierEnabled","modifierName","getSupportedPropertyName","upperProp","toCheck","willChange","disableEventListeners","removeOnDestroy","getWindow","setupEventListeners","updateBound","scrollElement","attachToScrollParents","scrollParents","eventsEnabled","enableEventListeners","scheduleUpdate","setStyles","isModifierRequired","requestingName","requestedName","requesting","_requesting","requested","placements","validPlacements","clockwise","BEHAVIORS","parseOffset","basePlacement","useHeight","fragments","frag","divider","splitRegex","mergeWithPrevious","toValue","index2","Defaults","shiftvariation","_data$offsets","shiftOffsets","preventOverflow","transformProp","popperStyles","escapeWithReference","secondary","keepTogether","opSide","arrow","_data$offsets$arrow","arrowElement","sideCapitalized","altSide","arrowElementSize","popperMarginSide","popperBorderSide","sideValue","placementOpposite","flipOrder","behavior","refOffsets","overlapsRef","overflowsLeft","overflowsRight","overflowsTop","overflowsBottom","overflowsBoundaries","flippedVariationByRef","flipVariations","flippedVariationByContent","flipVariationsByContent","flippedVariation","getOppositeVariation","subtractLength","bound","computeStyle","legacyGpuAccelerationOption","gpuAcceleration","offsetParentRect","shouldRound","noRound","referenceWidth","popperWidth","isVariation","horizontalToInteger","verticalToInteger","getRoundedOffsets","prefixedProperty","invertTop","invertLeft","applyStyle","onLoad","modifierOptions","Popper","jquery","Utils","PopperUtils","_implementation2","isarray","pathToRegexp","tokensToFunction","tokensToRegExp","PATH_REGEXP","defaultDelimiter","escaped","asterisk","partial","escapeGroup","encodeURIComponentPretty","encode","segment","attachKeys","re","endsWithDelimiter","regexpToRegexp","arrayToRegexp","stringToRegexp","asyncGeneratorStep","_next","_throw","_asyncToGenerator","_prodInvariant","ReactNoopUpdateQueue","emptyObject","ReactComponent","updater","ReactPureComponent","ComponentDummy","partialState","enqueueSetState","enqueueCallback","forceUpdate","enqueueForceUpdate","isPureReactComponent","PureComponent","publicInstance","enqueueReplaceState","completeState","utils","paramsSerializer","serializedParams","hashmarkIndex","__CANCEL__","normalizeHeaderName","DEFAULT_CONTENT_TYPE","setContentTypeIfUnset","headers","adapter","getDefaultAdapter","transformRequest","transformResponse","xsrfCookieName","xsrfHeaderName","maxContentLength","validateStatus","settle","buildURL","buildFullPath","parseHeaders","isURLSameOrigin","requestData","requestHeaders","auth","username","password","Authorization","btoa","baseURL","responseURL","responseHeaders","getAllResponseHeaders","responseType","statusText","onabort","onerror","ontimeout","timeoutErrorMessage","cookies","xsrfValue","withCredentials","read","setRequestHeader","onDownloadProgress","onUploadProgress","upload","cancelToken","enhanceError","config1","config2","valueFromConfig2Keys","mergeDeepPropertiesKeys","defaultToConfig2Keys","axiosKeys","otherKeys","Cancel","isArgs","origKeys","keysShim","originalKeys","symObj","syms","GetIntrinsic","$apply","$call","$reflectApply","$defineProperty","$max","originalFunction","applyBind","functionsHaveConfigurableNames","$Object","hasIndices","ignoreCase","multiline","dotAll","unicode","calls","reactComponent","portal","statelessComponent","isStateless","eParentElement","componentInstance","destroyPortal","createParentElement","getComponentWrappingElement","reactContainer","addParentContainerStyleAndClasses","getReactContainerStyle","getReactContainerClasses","statelessComponentRendered","childElementCount","isStatelessComponent","getReactComponentName","getMemoType","hasSymbol","frameworkComponentInstance","fallbackMethodAvailable","fallbackMethod","react_dom_1","reactComponent_1","server_1","keyGenerator_1","oldPortal","portalKey","createOrUpdatePortal","createReactComponent","reactElement","createPortal","mountReactPortal","isNullValue","valueRenderedIsNull","originalConsoleError","renderToStaticMarkup","ignore","refreshComponent","updateReactPortal","__spreadArrays","il","jl","wrappingElement","portals","hasPendingPortalUpdate","MAX_COMPONENT_CREATION_TIME_IN_MS","curPortal","batchUpdate","waitForInstance","newPortal","startTime","groupCellRenderer_1","detailCellRenderer_1","agDetailCellRenderer","allocUnsafe","toposort","outgoingEdges","edge","makeOutgoingEdges","nodesHash","makeNodesHash","predecessors","nodeRep","outgoing","uniqueNodes","K","$","ee","te","ne","ae","oe","se","ie","pe","ce","le","de","ue","he","fe","me","De","ye","ve","we","ge","ke","be","Ce","Me","Se","We","Fe","awareOfUnicodeTokens","Oe","Pe","Ee","Ne","xe","Te","Ye","Ie","Le","qe","__localeId__","__localeData__","Ae","Be","minDate","maxDate","excludeDates","includeDates","Qe","Re","je","He","Ke","Ve","Ue","minTime","maxTime","$e","ze","Ge","Je","Xe","Ze","et","rt","nt","at","yearsList","incrementYears","decrementYears","onCancel","shiftYears","yearDropdownItemNumber","scrollableYearDropdown","renderOptions","ot","dropdownVisible","onSelectChange","renderSelectOptions","toggleDropdown","renderReadView","renderDropdown","adjustDateOnChange","handleYearChange","setOpen","dropdownMode","renderScrollMode","renderSelectMode","st","monthNames","useShortMonthInDropdown","pt","monthYearsList","scrollableMonthYearDropdown","lt","handleOnKeyDown","isSameDay","preSelection","highlightDates","startDate","endDate","selectsStart","selectsEnd","selectingDate","isInSelectingRange","dayClassName","isExcluded","isKeyboardSelected","isRangeStart","isRangeEnd","isInRange","isSelectingRangeStart","isSelectingRangeEnd","isWeekend","isOutsideMonth","getHighLightedClass","ariaLabelPrefixWhenEnabled","ariaLabelPrefixWhenDisabled","dayEl","getClassNames","handleMouseEnter","renderDayContents","isInputFocused","ut","weekNumber","ariaLabelPrefix","onDayClick","onDayMouseEnter","onWeekSelect","shouldCloseOnSelect","formatWeekNumber","showWeekNumber","handleWeekClick","chooseDayAriaLabelPrefix","disabledDayAriaLabelPrefix","handleDayClick","handleDayMouseEnter","renderDays","mt","orderInDisplay","fixedHeight","weekAriaLabelPrefix","showWeekNumbers","isWeekInMonth","peekNextMonth","isRangeStartMonth","isRangeEndMonth","isRangeStartQuarter","isRangeEndQuarter","onMonthClick","getMonthClassNames","onQuarterClick","getQuarterClassNames","showMonthYearPicker","showQuarterYearPicker","handleMouseLeave","renderMonths","renderQuarters","renderWeeks","yt","excludeTimes","includeTimes","timeClassName","injectTimes","openToDate","liClasses","centerLi","calcCenterPosition","monthRef","todayButton","timeCaption","renderTimes","onTimeChange","Dt","timeString","customTimeInput","timeInputLabel","renderTimeInput","vt","showPopperArrow","arrowProps","wt","kt","onClickOutside","containerRef","gt","onDropdownFocus","handleMonthChange","onMonthMouseLeave","onYearChange","onMonthChange","handleMonthYearChange","weekLabel","formatWeekday","formatWeekDay","useWeekdaysShort","renderCustomHeader","forceShowMonthNavigation","showDisabledMonthNavigation","showTimeSelectOnly","decreaseMonth","decreaseYear","previousMonthAriaLabel","previousYearAriaLabel","previousYearButtonLabel","previousMonthButtonLabel","showTimeSelect","increaseMonth","increaseYear","nextMonthAriaLabel","nextYearAriaLabel","nextYearButtonLabel","nextMonthButtonLabel","showYearDropdown","showMonthDropdown","showMonthYearDropdown","changeYear","changeMonth","changeMonthYear","monthDate","renderCurrentMonth","handleDropdownFocus","renderMonthDropdown","renderMonthYearDropdown","renderYearDropdown","prevMonthButtonDisabled","nextMonthButtonDisabled","prevYearButtonDisabled","nextYearButtonDisabled","renderYearHeader","renderDefaultHeader","showPreviousMonths","monthsShown","monthSelectedIn","monthContainer","renderHeader","monthClassName","handleMonthMouseLeave","timeIntervals","withPortal","showTimeInput","getDateInView","assignMonthContainer","renderPreviousButton","renderNextButton","renderTodayButton","renderTimeSection","renderInputTimeSection","Ct","_t","tabLoopRef","getTabChildren","enableTabLoop","handleFocusStart","handleFocusEnd","St","wrapperClassName","hidePopper","popperComponent","popperModifiers","popperPlacement","popperProps","popperOnKeyDown","popperContainer","Manager","Mt","Ot","Pt","Et","getPreSelection","startOpen","preventFocus","preventFocusTimeout","cancelFocusInput","calcInitialState","lastPreSelectChange","setBlur","preventOpenOnFocus","inputFocusTimeout","setFocus","isDefaultPrevented","Nt","strictParsing","setPreSelection","allowSameDay","inlineFocusSelectedMonth","onInputClick","componentNode","inputOk","handleSelect","onInputError","onClearClick","isCalendarOpen","dateFormatCalendar","handleCalendarClickOutside","outsideClickIgnoreClass","handleTimeChange","calendarClassName","calendarContainer","excludeScrollbar","onDayKeyDown","customInput","customInputRef","handleFocus","onInputKeyDown","autoFocus","ariaLabelledBy","isClearable","clearButtonTitle","ariaLabelClose","onCalendarOpen","onCalendarClose","clearPreventFocusTimeout","renderCalendar","renderDateInput","renderClearButton","popperClassName","onPopperKeyDown","CalendarContainer","getDefaultLocale","registerLocale","objectKeys","isRegex","deepEqual","actual","expected","isUndefinedOrNull","aIsRegex","bIsRegex","aIsBuffer","bIsBuffer","ka","kb","objEquiv","AgGridReact","_objectSpread2","escape","aa","ba","ReactCurrentDispatcher","ReactCurrentBatchConfig","suspense","IsSomeRendererActing","Profiler","StrictMode","Suspense","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","_calculateChangedBits","_currentValue","_currentValue2","_threadCount","lazy","_ctor","_status","_result","useCallback","useDebugValue","useImperativeHandle","useMemo","useReducer","onError","da","ea","fa","ha","ia","ja","la","ma","oa","qa","ra","sa","ta","va","wa","xa","ya","za","Aa","Ba","Ca","Da","Ea","Fa","Ga","Ia","Ja","_debugOwner","_debugSource","lineNumber","Ka","La","Ma","Na","extractEvents","eventTypes","Oa","phasedRegistrationNames","Pa","registrationName","Qa","Ra","dependencies","Sa","Ta","Ua","Va","Wa","Xa","stateNode","Ya","Za","$a","ab","bb","db","eb","fb","gb","hb","ib","jb","acceptsBooleans","attributeNamespace","mustUseProperty","sanitizeURL","ob","qb","mb","lb","setAttributeNS","rb","sb","xb","_valueTracker","stopTracking","tb","yb","zb","defaultChecked","_wrapperState","initialChecked","Ab","controlled","Bb","Cb","Db","Eb","Gb","Fb","Hb","defaultSelected","Ib","dangerouslySetInnerHTML","Jb","Kb","Lb","xlinkHref","Mb","Nb","Ob","Pb","Qb","MSApp","execUnsafeLocalFunction","namespaceURI","Rb","Sb","Tb","animationend","animationiteration","animationstart","transitionend","Ub","Vb","Wb","animation","Xb","Yb","Zb","$b","ac","cc","alternate","effectTag","ec","memoizedState","dehydrated","fc","hc","ic","jc","kc","lc","_dispatchListeners","_dispatchInstances","isPersistent","release","mc","nc","srcElement","correspondingUseElement","oc","qc","topLevelType","nativeEvent","targetInst","eventSystemFlags","sc","containerInfo","tc","uc","vc","wc","xc","yc","zc","Ac","Bc","Cc","Dc","Ec","Fc","Gc","Hc","Ic","Kc","blockedOn","Lc","pointerId","Mc","Nc","Pc","unstable_runWithPriority","hydrate","Qc","Rc","Sc","Tc","Uc","unstable_scheduleCallback","unstable_NormalPriority","Vc","Wc","Yc","Zc","$c","ad","bubbled","captured","eventPriority","bd","cd","unstable_UserBlockingPriority","ed","fd","gd","hd","Oc","jd","animationIterationCount","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRowEnd","gridRowSpan","gridRowStart","gridColumnEnd","gridColumnSpan","gridColumnStart","lineClamp","orphans","tabSize","widows","zoom","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","kd","md","nd","menuitem","br","embed","hr","keygen","track","wbr","od","pd","qd","rd","sd","td","ud","vd","xd","HTMLIFrameElement","contentWindow","yd","contentEditable","Dd","Ed","Fd","Gd","__html","Hd","Jd","Kd","previousSibling","Ld","Md","Nd","Od","Pd","Qd","Rd","Sd","Td","dispatchConfig","Ud","_targetInst","Vd","Wd","Xd","Yd","Zd","$d","Interface","eventPool","destructor","getPooled","eventPhase","isTrusted","beforeInput","compositionEnd","compositionStart","compositionUpdate","datetime","tel","detachEvent","attachEvent","_isInputEventSupported","Alt","Control","Meta","Shift","getModifierState","fromElement","toElement","pressure","tangentialPressure","tiltX","tiltY","twist","pointerType","mouseEnter","mouseLeave","pointerEnter","pointerLeave","parentWindow","af","bf","cf","ef","gf","hf","jf","selectionStart","selectionEnd","anchorNode","getSelection","anchorOffset","focusNode","focusOffset","kf","lf","elapsedTime","pseudoElement","mf","nf","Esc","Spacebar","Del","Win","Menu","Apps","Scroll","MozPrintableKey","qf","8","9","12","13","16","17","18","19","20","27","32","33","34","35","36","37","38","39","40","45","46","112","113","114","115","116","117","118","119","120","121","122","123","144","145","224","rf","sf","tf","targetTouches","uf","vf","deltaX","wheelDeltaX","wheelDeltaY","wheelDelta","deltaZ","deltaMode","wf","SimpleEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin","yf","zf","Af","Bf","Cf","__reactInternalMemoizedUnmaskedChildContext","__reactInternalMemoizedMaskedChildContext","Df","Ef","Ff","Gf","__reactInternalMemoizedMergedChildContext","Hf","If","Jf","Kf","unstable_cancelCallback","Lf","unstable_requestPaint","Mf","unstable_now","Nf","unstable_getCurrentPriorityLevel","Of","unstable_ImmediatePriority","Pf","Qf","Rf","unstable_LowPriority","Sf","unstable_IdlePriority","Tf","Uf","unstable_shouldYield","Vf","Wf","Xf","Yf","Zf","$f","ag","bg","cg","dg","eg","fg","hg","ig","jg","kg","lg","mg","ng","og","pg","childExpirationTime","qg","firstContext","expirationTime","sg","responders","tg","ug","updateQueue","baseState","baseQueue","shared","effects","vg","wg","suspenseConfig","xg","yg","zg","ca","Ag","Bg","Cg","Dg","Eg","Fg","Jg","_reactInternalFiber","Gg","Hg","Ig","Kg","Lg","Mg","UNSAFE_componentWillReceiveProps","Ng","getSnapshotBeforeUpdate","UNSAFE_componentWillMount","componentWillMount","Og","Pg","_stringRef","Qg","Rg","lastEffect","nextEffect","firstEffect","Sg","Tg","elementType","Ug","Vg","Wg","Xg","Yg","Zg","$g","ah","bh","ch","dh","eh","fh","gh","memoizedProps","revealOrder","ih","responder","jh","kh","lh","mh","nh","oh","ph","qh","sh","th","uh","vh","wh","lastRenderedReducer","eagerReducer","eagerState","lastRenderedState","xh","yh","zh","Ah","Bh","Ch","Dh","Eh","Fh","Gh","Hh","Ih","Jh","Kh","Lh","Mh","Nh","readContext","useResponder","useDeferredValue","useTransition","Oh","Ph","Qh","Rh","Sh","Th","pendingProps","Uh","Vh","Wh","Xh","Yh","Zh","$h","ai","bi","di","ei","fi","UNSAFE_componentWillUpdate","componentWillUpdate","gi","pendingContext","ni","qi","retryTime","ji","unstable_avoidThisFallback","ki","li","isBackwards","rendering","renderingStartTime","tailExpiration","tailMode","mi","ri","si","wasMultiple","onclick","ti","ui","vi","wi","xi","yi","zi","Ai","Bi","Ci","Fi","Ei","Gi","__reactInternalSnapshotBeforeUpdate","Hi","Ii","Ji","Ki","Li","Di","Mi","Ni","Oi","Pi","Qi","_reactRootContainer","Ri","Si","Ti","Ui","Vi","Wi","Xi","Yi","Zi","$i","componentDidCatch","aj","componentStack","Rj","bj","cj","dj","kj","lj","mj","nj","oj","qj","rj","sj","tj","uj","vj","wj","timeoutMs","xj","yj","zj","lastExpiredTime","Aj","firstPendingTime","lastPingedTime","nextKnownPendingLevel","callbackExpirationTime","callbackPriority","callbackNode","Bj","Cj","Dj","Ej","Fj","Gj","Hj","finishedWork","finishedExpirationTime","lastSuspendedTime","Ij","timeoutHandle","Jj","busyMinDurationMs","busyDelayMs","Kj","Mj","Nj","pingCache","Oj","Pj","Xc","Qj","Sj","firstSuspendedTime","activeElementDetached","focusedElem","selectionRange","Tj","wd","removeAllRanges","addRange","vb","Uj","Vj","Wj","Ha","Xj","unstable_observedBits","Zj","pendingChildren","ak","bk","ck","dk","ek","fk","Jc","_internalRoot","gk","ik","hk","jk","kk","unmount","Lj","lk","findFiberByHostInstance","supportsFiber","inject","onCommitFiberRoot","onCommitFiberUnmount","Yj","overrideHookState","overrideProps","setSuspenseHandler","currentDispatcherRef","findHostInstanceByFiber","findHostInstancesForRefresh","scheduleRefresh","scheduleRoot","setRefreshHandler","getCurrentFiber","bundleType","rendererPackageName","findDOMNode","flushSync","unmountComponentAtNode","unstable_batchedUpdates","unstable_createPortal","unstable_renderSubtreeIntoContainer","MessageChannel","unstable_forceFrameRate","port2","port1","onmessage","postMessage","priorityLevel","unstable_Profiling","unstable_continueExecution","unstable_getFirstCallbackNode","unstable_next","unstable_pauseExecution","unstable_wrapCallback","ReactBaseClasses","ReactChildren","ReactDOMFactories","ReactVersion","createReactClass","onlyChild","React","createMixin","mixin","DOM","PooledClass","traverseAllChildren","twoArgumentPooler","fourArgumentPooler","userProvidedKeyEscapeRegex","escapeUserProvidedKey","ForEachBookKeeping","forEachFunction","forEachContext","forEachSingleChild","bookKeeping","MapBookKeeping","mapResult","mapFunction","mapContext","mapSingleChildIntoContext","childKey","mappedChild","mapIntoWithKeyPrefixInternal","escapedPrefix","traverseContext","forEachSingleChildDummy","addPoolingTo","forEachFunc","oneArgumentPooler","copyFieldsFrom","instancePool","standardReleaser","poolSize","DEFAULT_POOLER","CopyConstructor","pooler","NewKlass","a1","a2","threeArgumentPooler","a3","a4","KeyEscapeUtils","getComponentKey","traverseAllChildrenImpl","nameSoFar","subtreeCount","nextNamePrefix","childrenString","escaperLookup","unescape","unescaperLookup","createDOMFactory","address","article","aside","audio","bdi","bdo","big","blockquote","cite","colgroup","datalist","del","dfn","dialog","em","fieldset","figcaption","figure","h3","h4","h5","h6","hgroup","iframe","ins","kbd","main","meter","nav","noscript","ol","optgroup","picture","pre","progress","rp","ruby","samp","section","strong","sub","summary","sup","tbody","textarea","tfoot","thead","ul","video","circle","ellipse","linearGradient","polygon","polyline","radialGradient","tspan","ReactIs","emptyFunctionThatReturnsNull","bigint","isValidElementType","expectedTypes","checkerResult","invalidValidatorError","resetWarningCache","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Portal","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isForwardRef","isFragment","isLazy","isPortal","isProfiler","isStrictMode","isSuspense","_invariant","injectedMixins","ReactClassInterface","statics","getInitialState","updateComponent","ReactClassStaticInterface","RESERVED_SPEC_KEYS","_displayName","_mixins","mixSpecIntoComponent","_childContextTypes","_contextTypes","_getDefaultProps","createMergedResultFunction","_propTypes","_statics","specPolicy","mixStaticSpecIntoComponent","autobind","validateMethodOverride","isAlreadyDefined","ReactClassMixin","autoBindPairs","__reactAutoBindPairs","isReactClassMethod","createChainedFunction","mergeIntoWithNoDuplicateKeys","two","bindAutoBindMethod","IsMountedPreMixin","__isMounted","IsMountedPostMixin","ReactClassComponent","autoBindKey","bindAutoBindMethods","Axios","mergeConfig","defaultConfig","axios","instanceConfig","CancelToken","isCancel","spread","InterceptorManager","dispatchRequest","interceptors","chain","interceptor","getUri","use","eject","throwIfCancellationRequested","throwIfRequested","normalizedName","isAxiosError","columnNumber","isAbsoluteURL","combineURLs","requestedURL","relativeURL","ignoreDuplicateOf","originURL","msie","urlParsingNode","resolveURL","protocol","port","requestURL","write","expires","secure","cookie","toGMTString","executor","resolvePromise","emptyFunctionWithReset","subMinutes","subHours","subDays","subWeeks","subMonths","subYears","getQuarter","getYear","dirtySeconds","dirtyMinutes","dirtyHours","setQuarter","dirtyQuarter","oldQuarter","setYear","dirtyYear","dirtyDatesArray","datesArray","differenceInCalendarDays","dirtyDateLeft","dirtyDateRight","startOfDayLeft","startOfDayRight","timestampLeft","timestampRight","differenceInCalendarMonths","dateLeft","dateRight","yearDiff","differenceInCalendarWeeks","startOfWeekLeft","startOfWeekRight","differenceInCalendarYears","startOfMonth","startOfYear","cleanDate","endOfDay","endOfWeek","endOfMonth","dirtyLeftDate","dirtyRightDate","dateLeftStartOfDay","dateRightStartOfDay","isSameMonth","isSameYear","isSameQuarter","dateLeftStartOfQuarter","dateRightStartOfQuarter","dirtyDateToCompare","dateToCompare","isWithinInterval","dirtyInterval","endTime","patterns","dateTimeDelimiter","timeZoneDelimiter","timezone","dateRegex","timeRegex","timezoneRegex","parseISO","additionalDigits","dateStrings","splitDateString","parseYearResult","parseYear","parseDate","restDateString","parseTime","parseTimezone","dateString","captures","century","isWeekDate","parseDateUnit","_year","validateWeekDate","fourthOfJanuaryDay","dayOfISOWeekYear","daysInMonths","isLeapYearIndex","validateDate","validateDayOfYearDate","parseTimeUnit","validateTime","timezoneString","_hours","validateTimezone","isNodeFound","ignoreClass","correspondingElement","passiveEventSupport","handlersMap","enabledInstances","touchEvents","IGNORE_CLASS_NAME","getEventHandlerOptions","handlerOptions","_class","__outsideClickHandler","__clickOutsideHandlerProp","handleClickOutside","__getComponentNode","setClickOutsideRef","enableOnClickOutside","_uid","testPassiveEventSupport","findHighest","disableOnClickOutside","getRef","instanceRef","wrappedRef","getClass","isEnumerable","hasDontEnumBug","hasProtoEnumBug","dontEnums","equalsConstructorPrototype","excludedKeys","$applicationCache","$console","$external","$frame","$frameElement","$frames","$innerHeight","$innerWidth","$onmozfullscreenchange","$onmozfullscreenerror","$outerHeight","$outerWidth","$pageXOffset","$pageYOffset","$parent","$scrollLeft","$scrollTop","$scrollX","$scrollY","$self","$webkitIndexedDB","$webkitStorageInfo","$window","hasAutomationEqualityBug","theKeys","skipProto","skipConstructor","equalsConstructorPrototypeIfNotBuggy","hasToStringTag","isStandardArguments","isLegacyArguments","supportsStandardArguments","numberIsNaN","isRegexMarker","badStringifier","callBound","throwRegexMarker","toPrimitive","$toString","gOPD","callBind","$indexOf","origSymbol","hasSymbolSham","ERROR_MESSAGE","binder","boundLength","boundArgs","Empty","define","getPolyfill","flagsBound","hasArrayLengthDefineBug","functionsHaveNames","$bind","boundFunctionsHaveNames","TypeErr","polyfill","tryDateObject","_gud2","_temp2","_arrays2","_reactAutowhatever2","_theme","alwaysTrue","Autosuggest","alwaysRenderSuggestions","_initialiseProps","isCollapsed","highlightedSectionIndex","highlightedSuggestionIndex","highlightedSuggestion","valueBeforeUpDown","justPressedUpDown","justMouseEntered","pressedSuggestion","onDocumentMouseDown","onDocumentMouseUp","autowhatever","suggestionsContainer","itemsContainer","highlightFirstSuggestion","willRenderSuggestions","justSelectedSuggestion","revealSuggestions","resetHighlightedSuggestion","onSuggestionHighlighted","getHighlightedSuggestion","sectionIndex","suggestionIndex","prevValue","getSuggestion","shouldResetValueBeforeUpDown","_props2","multiSection","getSectionSuggestions","getSuggestionValue","suggestionElement","startNode","_props$inputProps","shouldRenderSuggestions","_props3","renderInputComponent","onSuggestionsFetchRequested","renderSuggestion","renderSectionTitle","_onFocus","_onKeyDown","isOpen","autowhateverInputProps","justClickedOnSuggestionsContainer","shouldRender","blurEvent","onSuggestionsClearRequested","maybeCallOnChange","newHighlightedSectionIndex","newHighlightedItemIndex","getSuggestionValueByIndex","updateHighlightedSuggestion","closeSuggestions","_newValue","onSuggestionSelected","suggestionValue","willCloseSuggestions","renderSuggestionData","query","getQuery","renderItemsContainer","renderSuggestionsContainer","renderItem","renderItemData","getSectionItems","highlightedItemIndex","itemProps","mapToAutowhateverTheme","storeAutowhateverRef","focusInputOnSuggestionClick","containerProps","defaultTheme","onSuggestionMouseEnter","itemIndex","onSuggestionMouseDown","_props4","onSuggestionClick","_props5","_getSuggestionIndices","getSuggestionIndices","findSuggestionElement","clickedSuggestion","clickedSuggestionValue","_props6","onSuggestionMouseLeave","onSuggestionTouchStart","onSuggestionTouchMove","sliceIterator","_sectionIterator2","_reactThemeable2","_SectionTitle2","_ItemsList2","Autowhatever","storeInputReference","storeItemsContainerReference","onHighlightedItemChange","highlightedItem","getItemId","nextPrev","_this$sectionIterator","sectionIterator","_this$sectionIterator2","setSectionsItems","setSectionIterator","setTheme","ensureHighlightedItemIsVisible","sectionsItems","sectionsLengths","allSectionsAreEmpty","itemsCount","sectionKeyPrefix","isFirstSection","storeItemsListReference","itemOffsetRelativeToContainer","renderedItems","renderSections","renderItems","ariaActivedescendant","itemsContainerId","inputComponent","containerOpen","inputOpen","inputFocused","itemsContainerOpen","itemsList","itemFirst","itemHighlighted","sectionContainer","sectionContainerFirst","sectionTitle","nextNonEmptySectionIndex","_position2","prevNonEmptySectionIndex","isLast","_objectAssign","_objectAssign2","truthy","classNameDecorator","ToObject","ownEnumerableKeys","_compareObjects2","SectionTitle","_Item2","ItemsList","storeHighlightedItemReference","sectionPrefix","isItemPropsFunction","isFirst","isHighlighted","itemKey","itemPropsObj","allItemProps","storeItemReference","_this$props4","restProps","suggestionsContainerOpen","suggestionsList","suggestionFirst","suggestionHighlighted","Op","$Symbol","iteratorSymbol","asyncIteratorSymbol","toStringTagSymbol","innerFn","outerFn","tryLocsList","protoGenerator","Generator","doneResult","delegateResult","maybeInvokeDelegate","ContinueSentinel","record","tryCatch","makeInvokeMethod","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","NativeIteratorPrototype","Gp","defineIteratorMethods","PromiseImpl","previousPromise","callInvokeWithMethodAndArg","invoke","pushTryEntry","locs","resetTryEntry","iteratorMethod","genFun","skipTempReset","rootRecord","exception","handle","caught","hasCatch","hasFinally","finallyEntry","thrown","accidentalStrictMode","agGridReactLegacy_1","agGridReactUi_1","AgGridReactLegacy","legacyReactComponent_1","SYNCHRONOUS_CHANGE_PROPERTIES","processSynchronousChanges","processAsynchronousChanges","isDisableStaticMarkup","disableStaticMarkup","isLegacyComponentRendering","legacyComponentRendering","asyncChanges","synchronousChanges_1","synchronousChangeProperty","LegacyReactComponent","staticMarkup","staticRenderTime","renderStaticMarkup","removeStaticMarkup","isSlowRenderer","SLOW_RENDERING_THRESHOLD","listing","suppressContentEditableWarning","suppressHydrationWarning","domNamespace","threadID","exhausted","currentSelectValue","previousWasTextNode","makeStaticMarkup","suspenseDepth","contextIndex","contextStack","contextValueStack","clearProviders","pushProvider","popProvider","fallbackFrame","renderDOM","renderToString","renderToNodeStream","renderToStaticNodeStream","beansContext_1","jsComp_1","utils_1","eValueRef","eCheckboxRef","eExpandedRef","eContractedRef","setInnerCompDetails","_setChildCount","setCssClasses","expandedCssClasses","setExpandedCssClasses","contractedCssClasses","setContractedCssClasses","checkboxCssClasses","setCheckboxCssClasses","expandedClassName","contractedClassName","checkboxClassName","useFwRenderer","FwRenderer","useValue","gridCssClasses","setGridCssClasses","setDetailGridOptions","detailRowData","setDetailRowData","ctrlRef","eGuiRef","topClassName","gridClassName","gridBodyComp_1","reactComment_1","tabGuardComp_1","rtlClass","keyboardFocusClass","setKeyboardFocusClass","layoutClass","setLayoutClass","setInitialised","tabGuardReady","setTabGuardReady","gridCtrlRef","eRootWrapperRef","tabGuardRef","eGridBodyParentRef","focusInnerElementRef","currentController","els","gridBodyCompEl","sideBarEl","beansToDestroy","HeaderDropZonesClass","SideBarClass","StatusBarClass","WatermarkClass","PaginationClass","additionalEls","eRootWrapper","eGridBodyParent","headerDropZonesComp","statusBarComp","paginationComp","watermarkComp","rootWrapperClasses","rootWrapperBodyClasses","WebkitUserSelect","setTabGuardCompRef","gridHeaderComp_1","rowContainerComp_1","rowAnimationClass","setRowAnimationClass","ariaColCount","ariaRowCount","topHeight","bottomHeight","stickyTopTop","stickyTopWidth","topDisplay","bottomDisplay","movingCss","setMovingCss","forceVerticalScrollClass","setForceVerticalScrollClass","topAndBottomOverflowY","setTopAndBottomOverflowY","cellSelectableCss","_r","eRoot","CompClass","rootClasses","bodyViewportClasses","topClasses","stickyTopClasses","bottomClasses","stickyTopStyle","createRowContainer","createSection","headerRowContainerComp_1","headerRowComp_1","centerContainerWidth","setCenterContainerWidth","centerContainerTransform","setCenterContainerTransform","pinnedContainerWidth","_setPinnedContainerWidth","headerRowCtrls","setHeaderRowCtrls","centre","insertRowsJsx","eCenterContainerStyle","ePinnedStyle","headerCellComp_1","headerGroupCellComp_1","headerFilterCellComp_1","_setTransform","_setHeight","_setTop","_setWidth","typeColumn","typeGroup","typeFilter","setCellCtrlsMaintainOrder","prevMap","nextMap","oldCtrlsWeAreKeeping","createCellJsx","_setTitle","_setColId","ariaSort","ariaDescription","_setUserCompDetails","userCompRef","userCompStateless","reactUserComp","UserCompClass","cssResizableClasses","setResizableCssClasses","ariaExpanded","_setAriaExpanded","userCompDomElement","resizableClassName","cssBodyClasses","setBodyCssClasses","cssButtonWrapperClasses","setButtonWrapperCssClasses","alreadyResolved","userCompResolve","userCompPromise","bodyClassName","buttonWrapperClassName","rowComp_1","rowCtrlsOrdered","setRowCtrlsOrdered","_setRowCtrls","_setDomOrder","containerWidth","_setContainerWidth","wrapperClasses","viewportClasses","containerClasses","template3","topLevelRef","newRows","viewportStyle","buildContainer","cellComp_1","_setRowIndex","_setRowId","_setRole","rowBusinessKey","_setRowBusinessKey","_setTabIndex","userStyles","_setUserStyles","instanceIdMap","_setCellCtrls","fullWidthCompDetails","setFullWidthCompDetails","fullWidthCompRef","autoHeightSetup","autoHeightSetupAttempt","setAutoHeightSetupAttempt","oldCellCtrls","newCellCtrls","newInstanceIdMap","tempMap","maintainOrderOnColumns","showFullWidthFramework","showCells","reactFullWidthCellRendererStateless","FullWidthComp","showFullWidthFrameworkJsx","popupEditorComp_1","showJsRenderer_1","CellCompState","renderDetails","_setRenderDetails","editDetails","_setEditDetails","renderKey","setRenderKey","ariaDescribedBy","_setIncludeSelection","_setIncludeRowDrag","_setIncludeDndSource","jsEditorComp","setJsEditorComp","cellRendererRef","jsCellRendererRef","cellEditorRef","cellWrapperVersion","setCellWrapperVersion","setCellWrapperRef","cellValueVersion","setCellValueVersion","setCellValueRef","showTools","showCellWrapper","setCellEditorRef","msg_1","msg_2","checkCellEditorDeprecations","setPopupCellEditorRef","setInlineCellEditorRef","lastRenderDetails","oldDetails","newDetails","oldCompDetails","addComp","eGui_1","cellWrapperOrUndefined","reactCellRendererStateless","cellInstanceId","showContents","showDetails","setECellValue","noCellRenderer","reactCellRenderer","CellRendererClass","valueForNoCellRenderer","bodyJsxFunc","jsxShowValue","CellEditorClass","reactInlineEditor","reactPopupEditor","jsPopupEditor","wrappedContent","jsChildComp","jsxEditValue","popupEditorWrapper","setPopupEditorWrapper","eChildGui","destroyCellRenderer","jsCompDetails","comp_1","refreshResult","topTabGuardRef","bottomTabGuardRef","tabGuardCtrlRef","dirtyObject","setUTCDay","dirtyDay","currentDay","remainder","dayIndex","numericPatterns","timezonePatterns","parseNumericPattern","parseTimezonePattern","parseAnyDigitsSigned","parseNDigits","parseNDigitsSigned","dayPeriodEnumToHours","enumValue","normalizeTwoDigitYear","twoDigitYear","currentYear","isCommonEra","absCurrentYear","DAYS_IN_MONTH","DAYS_IN_MONTH_LEAP_YEAR","incompatibleTokens","isTwoDigitYear","normalizedTwoDigitYear","_flags","firstWeekOfYear","dirtyWeek","setUTCWeek","dirtyISOWeek","setUTCISOWeek","wholeWeekDays","setUTCISODay","setUTCMilliseconds","timestampIsSet","_token","formattingTokensRegExp","longFormattingTokensRegExp","escapedStringRegExp","doubleQuoteRegExp","notWhitespaceRegExp","unescapedLatinCharacterRegExp","dirtyDateString","dirtyFormatString","dirtyReferenceDate","subFnOptions","setters","dateToSystemTimezone","firstCharacter","longFormatter","usedTokens","useAdditionalWeekYearTokens","useAdditionalDayOfYearTokens","parser","incompatibleToken","usedToken","fullToken","cleanEscapedString","uniquePrioritySetters","setterArray","convertedDate","addLeadingZeros","signedYear","dayPeriodEnumValue","numberOfDigits","dayPeriodEnum","formatTimezoneShort","dirtyDelimiter","absOffset","formatTimezoneWithOptionalMinutes","formatTimezone","lightFormatters","signedWeekYear","startOfYearTimestamp","difference","getUTCDayOfYear","localDayOfWeek","isoDayOfWeek","_localize","timezoneOffset","_originalDate","originalDate","dirtyFormatStr","formatStr","formatterOptions","ManagerReferenceNodeContext","ManagerReferenceNodeSetterContext","newReferenceNode","setReferenceNode","unwrapArray","safeInvoke","initialStyle","initialArrowStyle","InnerPopper","popperNode","updatePopperInstance","arrowNode","updateStateModifier","popperInstance","destroyPopperInstance","referenceElement","getOptions","setPopperNode","getPopperStyle","getPopperPlacement","outOfBoundaries","getOutOfBoundariesState","setArrowNode","getArrowStyle","InnerReference","refHandler","getWeekYear","startOfWeekYear","getWeek"],"mappings":"8GAAA,mBAkBA,SAASA,EAASC,GAChB,OAAa,MAATA,GAA2B,KAAVA,EACZ,KAGFA,EAGT,SAASC,EAAOD,EAAOE,GAKrB,YAJyB,IAArBA,IACFA,GAAmB,GAGL,MAATF,IAA4B,K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,WACVC,KAAM,KACNC,SAAU,QACVE,cAAc,GACb,CACDprT,KAAM,UACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,SACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,WACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,QACVE,cAAc,GACb,CACDprT,KAAM,sBACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,QACVE,cAAc,GACb,CACDprT,KAAM,YACNgrT,QAAS,CAAC,UAAW,iBACrBC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,6DACNgrT,QAAS,CAAC,OAAQ,WAClBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,QACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,YACNgrT,QAAS,CAAC,WACVC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,0BACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,+BACNgrT,QAAS,CAAC,OAAQ,WAClBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,UACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,QACVE,cAAc,GACb,CACDprT,KAAM,yEACNgrT,QAAS,CAAC,eACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,gEACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,WACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,QACVE,cAAc,GACb,CACDprT,KAAM,6DACNgrT,QAAS,CAAC,SAAU,WACpBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,sBACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,SACNgrT,QAAS,CAAC,UAAW,mBACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,mBACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,UACNgrT,QAAS,CAAC,UAAW,iBACrBC,KAAM,KACNC,SAAU,QACVE,cAAc,GACb,CACDprT,KAAM,0CACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,UACNgrT,QAAS,CAAC,UAAW,iBACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,oIACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,WACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,kBACNgrT,QAAS,CAAC,UAAW,iBACrBC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,iCACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,yBACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,QACVE,cAAc,GACb,CACDprT,KAAM,SACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,8DACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,eACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,qBACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,wDACNgrT,QAAS,C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Ac,GACb,CACDprT,KAAM,uCACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,eACNgrT,QAAS,CAAC,WACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,aACNgrT,QAAS,CAAC,UAAW,mBACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,wBACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,qBACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,OACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,aACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,gDACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,2CACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,oBACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,WACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,WACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,QACVE,cAAc,GACb,CACDprT,KAAM,+CACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,KACVE,cAAc,GACb,CACDprT,KAAM,+CACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,QACVE,cAAc,EACdD,YAAY,GACX,CACDnrT,KAAM,+CACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,QACVE,cAAc,EACdD,YAAY,GACX,CACDnrT,KAAM,+CACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,QACVE,cAAc,EACdD,YAAY,GACX,CACDnrT,KAAM,UACNgrT,QAAS,CAAC,UAAW,iBACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,+CACNgrT,QAAS,CAAC,SAAU,gBACpBC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,cACNgrT,QAAS,CAAC,UAAW,mBACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,wCACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,UACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,kBACNgrT,QAAS,CAAC,SAAU,iBAAkB,WACtCC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,WACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,oCACNgrT,QAAS,CAAC,UAAW,iBACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,6BACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,OACNgrT,QAAS,CAAC,WACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,kBACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,SACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,sCACNgrT,QAAS,CAAC,UAAW,iBACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,+CACNgrT,QAAS,CAAC,WACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,QACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,SACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,yEACNgrT,QAAS,CAAC,OAAQ,WAClBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,wBACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,gBACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,YACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,gDACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,+BACNgrT,QAAS,CAAC,WACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,UACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,QACVE,cAAc,GACb,CACDprT,KAAM,aACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,OACNgrT,QAAS,CAAC,WACVC,KAAM,KACNC,SAAU,QACVE,cAAc,GACb,CACDprT,KAAM,YACNgrT,QAAS,CAAC,UAAW,mBACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,qBACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,kCACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,SACNgrT,QAAS,CAAC,UAAW,iBACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,QACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,WACNgrT,QAAS,CAAC,UAAW,mBACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,2BACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,4BACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,sBACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,mCACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,YACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,0DACNgrT,QAAS,CAAC,eACVC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,gEACNgrT,QAAS,CAAC,eACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,UACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,4DACNgrT,QAAS,CAAC,eACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,iBACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,UACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,QACVE,cAAc,GACb,CACDprT,KAAM,uBACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,kEACNgrT,QAAS,CAAC,eACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,sEACNgrT,QAAS,CAAC,OAAQ,WAClBC,KAAM,KACNC,SAAU,KACVE,cAAc,GACb,CACDprT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ACVE,cAAc,EACdD,YAAY,GACX,CACDnrT,KAAM,sEACNgrT,QAAS,CAAC,OAAQ,WAClBC,KAAM,KACNC,SAAU,QACVE,cAAc,EACdD,YAAY,GACX,CACDnrT,KAAM,QACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,WACNgrT,QAAS,CAAC,WACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,kEACNgrT,QAAS,CAAC,eACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,4EACNgrT,QAAS,CAAC,OAAQ,WAClBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,4BACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,mBACNgrT,QAAS,CAAC,SAAU,iBAAkB,WACtCC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,6DACNgrT,QAAS,CAAC,eACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,UACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,UACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,2DACNgrT,QAAS,CAAC,SAAU,gBACpBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,gBACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,sBACNgrT,QAAS,CAAC,SAAU,iBAAkB,WACtCC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,aACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,uBACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,mFACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,4BACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,SACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,WACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,WACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,OACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,QACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,mBACNgrT,QAAS,CAAC,WACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,aACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,wFACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,oBACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,qBACNgrT,QAAS,CAAC,UAAW,mBACrBC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,aACNgrT,QAAS,CAAC,WACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,8BACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,SACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,kDACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,yBACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,aACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,QACVE,cAAc,GACb,CACDprT,KAAM,mEACNgrT,QAAS,CAAC,SAAU,gBACpBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,6BACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,yDACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,uBACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,QACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,yCACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,0BACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,wCACNgrT,QAAS,CAAC,WACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,cACNgrT,QAAS,CAAC,WACVC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,YACNgrT,QAAS,CAAC,UAAW,mBACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,gBACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,UACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,OACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,iBACNgrT,QAAS,CAAC,WACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,sFACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,2BACNgrT,QAAS,CAAC,WACVC,KAAM,KACNC,SAAU,QACVE,cAAc,GACb,CACDprT,KAAM,iBACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,0DACNgrT,QAAS,CAAC,eACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,0EACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,QACNgrT,QAAS,CAAC,WACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,qEACNgrT,QAAS,CAAC,eACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,qBACNgrT,QAAS,CAAC,UAAW,mBACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,mBACNgrT,QAAS,CAAC,WACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,WACNgrT,QAAS,CAAC,UAAW,iBACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,iBACNgrT,QAAS,CAAC,UAAW,iBACrBC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,cACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,kBACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,WACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,cACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,KACVE,cAAc,GACb,CACDprT,KAAM,cACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,QACVE,cAAc,EACdD,YAAY,GACX,CACDnrT,KAAM,cACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,QACVE,cAAc,EACdD,YAAY,GACX,CACDnrT,KAAM,+CACNgrT,QAAS,CAAC,eACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,6BACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,uBACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,gDACNgrT,QAAS,CAAC,SAAU,OAAQ,WAC5BC,KAAM,KACNC,SAAU,KACVE,cAAc,GACb,CACDprT,KAAM,SACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,4CACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,eACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,wBACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,QACVE,cAAc,GACb,CACDprT,KAAM,cACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,QACVE,cAAc,GACb,CACDprT,KAAM,oDACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,uDACNgrT,QAAS,CAAC,UAAW,iBACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,mCACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,QACVE,cAAc,GACb,CACDprT,KAAM,QACNgrT,QAAS,CAAC,WACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,aACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,gEACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,0KACNgrT,QAAS,CAAC,eACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,0BACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,gDACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,aACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,eACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,YACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,eACNgrT,QAAS,CAAC,UAAW,aACrBC,KAAM,KACNC,SAAU,QACVE,cAAc,GACb,CACDprT,KAAM,uBACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,uBACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,kBACNgrT,QAAS,CAAC,WACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,uBACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,eACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,yCACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,sGACNgrT,QAAS,CAAC,SAAU,gBACpBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,oBACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,4EACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,uEACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,WACNgrT,QAAS,CAAC,UAAW,iBACrBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,YACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,mBACNgrT,QAAS,CAAC,SAAU,kBACpBC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,wBACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,2DACNgrT,QAAS,CAAC,eACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,wBACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,aACNgrT,QAAS,CAAC,OAAQ,WAClBC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,WACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,gCACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,MACVE,cAAc,GACb,CACDprT,KAAM,cACNgrT,QAAS,CAAC,QACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,OACNgrT,QAAS,CAAC,UACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,UACNgrT,QAAS,CAAC,WACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,QACNgrT,QAAS,CAAC,WACVC,KAAM,KACNC,SAAU,OACVE,cAAc,GACb,CACDprT,KAAM,sBACNgrT,QAA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C,GAC9B8xD,EAAY,IAAIzuW,KAAK,GACzByuW,EAAUroC,YAAYx1O,EAAM,EAAG42P,GAC/BinB,EAAUv9Q,SAAS,EAAG,EAAG,EAAG,GAC5B,IAAI3C,EAAO,OAAAkuN,EAAA,SAAYgyD,EAAW9xD,GAClC,OAAOpuN,EC5DT,wCAgDe,SAAS2whB,EAAQxiU,EAAW34R,GACzC,OAAA4oQ,EAAA,GAAa,EAAG1vR,WAChB,IAAIsxF,EAAO,OAAAs+L,EAAA,SAAO6vB,GACd96H,EAAO,OAAA66H,EAAA,SAAYluN,EAAMxqE,GAAS9jB,UAAYg/mB,EAAgB1whB,EAAMxqE,GAAS9jB,UAIjF,OAAOoY,KAAKypB,MAAM8/I,EAnDO,QAmDwB","file":"static/js/2.66f257e0.chunk.js","sourcesContent":["/**\n * @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n/**\n * If value is undefined, null or blank, returns null, otherwise returns the value\n * @param {T} value\n * @returns {T | null}\n */\nfunction makeNull(value) {\n if (value == null || value === '') {\n return null;\n }\n\n return value;\n}\n\nfunction exists(value, allowEmptyString) {\n if (allowEmptyString === void 0) {\n allowEmptyString = false;\n }\n\n return value != null && (value !== '' || allowEmptyString);\n}\n\nfunction missing(value) {\n return !exists(value);\n}\n\nfunction missingOrEmpty(value) {\n return value == null || value.length === 0;\n}\n\nfunction toStringOrNull(value) {\n return value != null && typeof value.toString === 'function' ? value.toString() : null;\n} // for parsing html attributes, where we want empty strings and missing attributes to be undefined\n\n\nfunction attrToNumber(value) {\n if (value === undefined) {\n // undefined or empty means ignore the value\n return;\n }\n\n if (value === null || value === '') {\n // null or blank means clear\n return null;\n }\n\n if (typeof value === 'number') {\n return isNaN(value) ? undefined : value;\n }\n\n var valueParsed = parseInt(value, 10);\n return isNaN(valueParsed) ? undefined : valueParsed;\n} // for parsing html attributes, where we want empty strings and missing attributes to be undefined\n\n\nfunction attrToBoolean(value) {\n if (value === undefined) {\n // undefined or empty means ignore the value\n return;\n }\n\n if (value === null || value === '') {\n // null means clear\n return false;\n }\n\n if (typeof value === 'boolean') {\n // if simple boolean, return the boolean\n return value;\n } // if equal to the string 'true' (ignoring case) then return true\n\n\n return /true/i.test(value);\n} // for parsing html attributes, where we want empty strings and missing attributes to be undefined\n\n\nfunction attrToString(value) {\n if (value == null || value === '') {\n return;\n }\n\n return value;\n}\n/** @deprecated */\n\n\nfunction referenceCompare(left, right) {\n if (left == null && right == null) {\n return true;\n }\n\n if (left == null && right != null) {\n return false;\n }\n\n if (left != null && right == null) {\n return false;\n }\n\n return left === right;\n}\n\nfunction jsonEquals(val1, val2) {\n var val1Json = val1 ? JSON.stringify(val1) : null;\n var val2Json = val2 ? JSON.stringify(val2) : null;\n return val1Json === val2Json;\n}\n\nfunction defaultComparator(valueA, valueB, accentedCompare) {\n if (accentedCompare === void 0) {\n accentedCompare = false;\n }\n\n var valueAMissing = valueA == null;\n var valueBMissing = valueB == null; // this is for aggregations sum and avg, where the result can be a number that is wrapped.\n // if we didn't do this, then the toString() value would be used, which would result in\n // the strings getting used instead of the numbers.\n\n if (valueA && valueA.toNumber) {\n valueA = valueA.toNumber();\n }\n\n if (valueB && valueB.toNumber) {\n valueB = valueB.toNumber();\n }\n\n if (valueAMissing && valueBMissing) {\n return 0;\n }\n\n if (valueAMissing) {\n return -1;\n }\n\n if (valueBMissing) {\n return 1;\n }\n\n function doQuickCompare(a, b) {\n return a > b ? 1 : a < b ? -1 : 0;\n }\n\n if (typeof valueA !== 'string') {\n return doQuickCompare(valueA, valueB);\n }\n\n if (!accentedCompare) {\n return doQuickCompare(valueA, valueB);\n }\n\n try {\n // using local compare also allows chinese comparisons\n return valueA.localeCompare(valueB);\n } catch (e) {\n // if something wrong with localeCompare, eg not supported\n // by browser, then just continue with the quick one\n return doQuickCompare(valueA, valueB);\n }\n}\n\nfunction values(object) {\n if (object instanceof Set || object instanceof Map) {\n var arr_1 = [];\n object.forEach(function (value) {\n return arr_1.push(value);\n });\n return arr_1;\n }\n\n return Object.values(object);\n}\n\nvar GenericUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n makeNull: makeNull,\n exists: exists,\n missing: missing,\n missingOrEmpty: missingOrEmpty,\n toStringOrNull: toStringOrNull,\n attrToNumber: attrToNumber,\n attrToBoolean: attrToBoolean,\n attrToString: attrToString,\n referenceCompare: referenceCompare,\n jsonEquals: jsonEquals,\n defaultComparator: defaultComparator,\n values: values\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nvar ColumnKeyCreator =\n/** @class */\nfunction () {\n function ColumnKeyCreator() {\n this.existingKeys = {};\n }\n\n ColumnKeyCreator.prototype.addExistingKeys = function (keys) {\n for (var i = 0; i < keys.length; i++) {\n this.existingKeys[keys[i]] = true;\n }\n };\n\n ColumnKeyCreator.prototype.getUniqueKey = function (colId, colField) {\n // in case user passed in number for colId, convert to string\n colId = toStringOrNull(colId);\n var count = 0;\n\n while (true) {\n var idToTry = void 0;\n\n if (colId) {\n idToTry = colId;\n\n if (count !== 0) {\n idToTry += '_' + count;\n }\n } else if (colField) {\n idToTry = colField;\n\n if (count !== 0) {\n idToTry += '_' + count;\n }\n } else {\n idToTry = '' + count;\n }\n\n if (!this.existingKeys[idToTry]) {\n this.existingKeys[idToTry] = true;\n return idToTry;\n }\n\n count++;\n }\n };\n\n return ColumnKeyCreator;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nfunction iterateObject(object, callback) {\n if (object == null) {\n return;\n }\n\n if (Array.isArray(object)) {\n object.forEach(function (value, index) {\n return callback(\"\" + index, value);\n });\n } else {\n Object.keys(object).forEach(function (key) {\n return callback(key, object[key]);\n });\n }\n}\n\nfunction cloneObject(object) {\n var copy = {};\n var keys = Object.keys(object);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = object[key];\n copy[key] = value;\n }\n\n return copy;\n}\n\nfunction deepCloneObject(object) {\n return JSON.parse(JSON.stringify(object));\n} // returns copy of an object, doing a deep clone of any objects with that object.\n// this is used for eg creating copies of Column Definitions, where we want to\n// deep copy all objects, but do not want to deep copy functions (eg when user provides\n// a function or class for colDef.cellRenderer)\n\n\nfunction deepCloneDefinition(object, keysToSkip) {\n if (!object) {\n return;\n }\n\n var obj = object;\n var res = {};\n Object.keys(obj).forEach(function (key) {\n if (keysToSkip && keysToSkip.indexOf(key) >= 0) {\n return;\n }\n\n var value = obj[key]; // 'simple object' means a bunch of key/value pairs, eg {filter: 'myFilter'}. it does\n // NOT include the following:\n // 1) arrays\n // 2) functions or classes (eg ColumnAPI instance)\n\n var sourceIsSimpleObject = isNonNullObject(value) && value.constructor === Object;\n\n if (sourceIsSimpleObject) {\n res[key] = deepCloneDefinition(value);\n } else {\n res[key] = value;\n }\n });\n return res;\n}\n\nfunction getProperty(object, key) {\n return object[key];\n}\n\nfunction setProperty(object, key, value) {\n object[key] = value;\n}\n/**\n * Will copy the specified properties from `source` into the equivalent properties on `target`, ignoring properties with\n * a value of `undefined`.\n */\n\n\nfunction copyPropertiesIfPresent(source, target) {\n var properties = [];\n\n for (var _i = 2; _i < arguments.length; _i++) {\n properties[_i - 2] = arguments[_i];\n }\n\n properties.forEach(function (p) {\n return copyPropertyIfPresent(source, target, p);\n });\n}\n/**\n * Will copy the specified property from `source` into the equivalent property on `target`, unless the property has a\n * value of `undefined`. If a transformation is provided, it will be applied to the value before being set on `target`.\n */\n\n\nfunction copyPropertyIfPresent(source, target, property, transform) {\n var value = getProperty(source, property);\n\n if (value !== undefined) {\n setProperty(target, property, transform ? transform(value) : value);\n }\n}\n\nfunction getAllKeysInObjects(objects) {\n var allValues = {};\n objects.filter(function (obj) {\n return obj != null;\n }).forEach(function (obj) {\n Object.keys(obj).forEach(function (key) {\n return allValues[key] = null;\n });\n });\n return Object.keys(allValues);\n}\n\nfunction getAllValuesInObject(obj) {\n if (!obj) {\n return [];\n }\n\n var anyObject = Object;\n\n if (typeof anyObject.values === 'function') {\n return anyObject.values(obj);\n }\n\n var ret = [];\n\n for (var key in obj) {\n if (obj.hasOwnProperty(key) && obj.propertyIsEnumerable(key)) {\n ret.push(obj[key]);\n }\n }\n\n return ret;\n}\n\nfunction mergeDeep(dest, source, copyUndefined, makeCopyOfSimpleObjects) {\n if (copyUndefined === void 0) {\n copyUndefined = true;\n }\n\n if (makeCopyOfSimpleObjects === void 0) {\n makeCopyOfSimpleObjects = false;\n }\n\n if (!exists(source)) {\n return;\n }\n\n iterateObject(source, function (key, sourceValue) {\n var destValue = dest[key];\n\n if (destValue === sourceValue) {\n return;\n } // when creating params, we don't want to just copy objects over. otherwise merging ColDefs (eg DefaultColDef\n // and Column Types) would result in params getting shared between objects.\n // by putting an empty value into destValue first, it means we end up copying over values from\n // the source object, rather than just copying in the source object in it's entirety.\n\n\n if (makeCopyOfSimpleObjects) {\n var objectIsDueToBeCopied = destValue == null && sourceValue != null;\n\n if (objectIsDueToBeCopied) {\n // 'simple object' means a bunch of key/value pairs, eg {filter: 'myFilter'}, as opposed\n // to a Class instance (such as ColumnAPI instance).\n var sourceIsSimpleObject = typeof sourceValue === 'object' && sourceValue.constructor === Object;\n var dontCopy = sourceIsSimpleObject;\n\n if (dontCopy) {\n destValue = {};\n dest[key] = destValue;\n }\n }\n }\n\n if (isNonNullObject(sourceValue) && isNonNullObject(destValue) && !Array.isArray(destValue)) {\n mergeDeep(destValue, sourceValue, copyUndefined, makeCopyOfSimpleObjects);\n } else if (copyUndefined || sourceValue !== undefined) {\n dest[key] = sourceValue;\n }\n });\n}\n\nfunction missingOrEmptyObject(value) {\n return missing(value) || Object.keys(value).length === 0;\n}\n\nfunction get(source, expression, defaultValue) {\n if (source == null) {\n return defaultValue;\n }\n\n var keys = expression.split('.');\n var objectToRead = source;\n\n while (keys.length > 1) {\n objectToRead = objectToRead[keys.shift()];\n\n if (objectToRead == null) {\n return defaultValue;\n }\n }\n\n var value = objectToRead[keys[0]];\n return value != null ? value : defaultValue;\n}\n\nfunction set(target, expression, value) {\n if (target == null) {\n return;\n }\n\n var keys = expression.split('.');\n var objectToUpdate = target;\n\n while (keys.length > 1) {\n objectToUpdate = objectToUpdate[keys.shift()];\n\n if (objectToUpdate == null) {\n return;\n }\n }\n\n objectToUpdate[keys[0]] = value;\n}\n\nfunction deepFreeze(object) {\n Object.freeze(object);\n values(object).forEach(function (v) {\n if (isNonNullObject(v) || typeof v === 'function') {\n deepFreeze(v);\n }\n });\n return object;\n}\n\nfunction getValueUsingField(data, field, fieldContainsDots) {\n if (!field || !data) {\n return;\n } // if no '.', then it's not a deep value\n\n\n if (!fieldContainsDots) {\n return data[field];\n } // otherwise it is a deep value, so need to dig for it\n\n\n var fields = field.split('.');\n var currentObject = data;\n\n for (var i = 0; i < fields.length; i++) {\n if (currentObject == null) {\n return undefined;\n }\n\n currentObject = currentObject[fields[i]];\n }\n\n return currentObject;\n} // used by ColumnAPI and GridAPI to remove all references, so keeping grid in memory resulting in a\n// memory leak if user is not disposing of the GridAPI or ColumnApi references\n\n\nfunction removeAllReferences(obj, objectName) {\n Object.keys(obj).forEach(function (key) {\n var value = obj[key]; // we want to replace all the @autowired services, which are objects. any simple types (boolean, string etc)\n // we don't care about\n\n if (typeof value === 'object') {\n obj[key] = undefined;\n }\n });\n var proto = Object.getPrototypeOf(obj);\n var properties = {};\n Object.keys(proto).forEach(function (key) {\n var value = proto[key]; // leave all basic types - this is needed for GridAPI to leave the \"destroyed: boolean\" attribute alone\n\n if (typeof value === 'function') {\n var func = function func() {\n console.warn(\"AG Grid: \" + objectName + \" function \" + key + \"() 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.\");\n };\n\n properties[key] = {\n value: func,\n writable: true\n };\n }\n });\n Object.defineProperties(obj, properties);\n}\n\nfunction isNonNullObject(value) {\n return typeof value === 'object' && value !== null;\n}\n\nvar ObjectUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n iterateObject: iterateObject,\n cloneObject: cloneObject,\n deepCloneObject: deepCloneObject,\n deepCloneDefinition: deepCloneDefinition,\n getProperty: getProperty,\n setProperty: setProperty,\n copyPropertiesIfPresent: copyPropertiesIfPresent,\n copyPropertyIfPresent: copyPropertyIfPresent,\n getAllKeysInObjects: getAllKeysInObjects,\n getAllValuesInObject: getAllValuesInObject,\n mergeDeep: mergeDeep,\n missingOrEmptyObject: missingOrEmptyObject,\n get: get,\n set: set,\n deepFreeze: deepFreeze,\n getValueUsingField: getValueUsingField,\n removeAllReferences: removeAllReferences,\n isNonNullObject: isNonNullObject\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nvar doOnceFlags = {};\n/**\n * If the key was passed before, then doesn't execute the func\n * @param {Function} func\n * @param {string} key\n */\n\nfunction doOnce(func, key) {\n if (doOnceFlags[key]) {\n return;\n }\n\n func();\n doOnceFlags[key] = true;\n}\n\nfunction getFunctionName(funcConstructor) {\n // for every other browser in the world\n if (funcConstructor.name) {\n return funcConstructor.name;\n } // for the pestilence that is ie11\n\n\n var matches = /function\\s+([^\\(]+)/.exec(funcConstructor.toString());\n return matches && matches.length === 2 ? matches[1].trim() : null;\n}\n\nfunction isFunction(val) {\n return !!(val && val.constructor && val.call && val.apply);\n}\n\nfunction executeInAWhile(funcs) {\n executeAfter(funcs, 400);\n}\n\nvar executeNextVMTurnFuncs = [];\nvar executeNextVMTurnPending = false;\n\nfunction executeNextVMTurn(func) {\n executeNextVMTurnFuncs.push(func);\n\n if (executeNextVMTurnPending) {\n return;\n }\n\n executeNextVMTurnPending = true;\n window.setTimeout(function () {\n var funcsCopy = executeNextVMTurnFuncs.slice();\n executeNextVMTurnFuncs.length = 0;\n executeNextVMTurnPending = false;\n funcsCopy.forEach(function (func) {\n return func();\n });\n }, 0);\n}\n\nfunction executeAfter(funcs, milliseconds) {\n if (milliseconds === void 0) {\n milliseconds = 0;\n }\n\n if (funcs.length > 0) {\n window.setTimeout(function () {\n return funcs.forEach(function (func) {\n return func();\n });\n }, milliseconds);\n }\n}\n/**\n * from https://stackoverflow.com/questions/24004791/can-someone-explain-the-debounce-function-in-javascript\n * @param {Function} func The function to be debounced\n * @param {number} wait The time in ms to debounce\n * @param {boolean} immediate If it should run immediately or wait for the initial debounce delay\n * @return {Function} The debounced function\n */\n\n\nfunction debounce(func, wait, immediate) {\n if (immediate === void 0) {\n immediate = false;\n } // 'private' variable for instance\n // The returned function will be able to reference this due to closure.\n // Each call to the returned function will share this common timer.\n\n\n var timeout; // Calling debounce returns a new anonymous function\n\n return function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n } // reference the context and args for the setTimeout function\n\n\n var context = this; // Should the function be called now? If immediate is true\n // and not already in a timeout then the answer is: Yes\n\n var callNow = immediate && !timeout; // This is the basic debounce behaviour where you can call this\n // function several times, but it will only execute once\n // [before or after imposing a delay].\n // Each time the returned function is called, the timer starts over.\n\n window.clearTimeout(timeout); // Set the new timeout\n\n timeout = window.setTimeout(function () {\n // Inside the timeout function, clear the timeout variable\n // which will let the next execution run when in 'immediate' mode\n timeout = null; // Check if the function already ran with the immediate flag\n\n if (!immediate) {\n // Call the original function with apply\n // apply lets you define the 'this' object as well as the arguments\n // (both captured before setTimeout)\n func.apply(context, args);\n }\n }, wait); // Immediate mode and no wait timer? Execute the function..\n\n if (callNow) {\n func.apply(context, args);\n }\n };\n}\n/**\n * @param {Function} func The function to be throttled\n * @param {number} wait The time in ms to throttle\n * @return {Function} The throttled function\n */\n\n\nfunction throttle(func, wait) {\n var previousCall = 0;\n return function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n var context = this;\n var currentCall = new Date().getTime();\n\n if (currentCall - previousCall < wait) {\n return;\n }\n\n previousCall = currentCall;\n func.apply(context, args);\n };\n}\n\nfunction waitUntil(condition, callback, timeout, timeoutMessage) {\n if (timeout === void 0) {\n timeout = 100;\n }\n\n var timeStamp = new Date().getTime();\n var interval = null;\n var executed = false;\n\n var internalCallback = function internalCallback() {\n var reachedTimeout = new Date().getTime() - timeStamp > timeout;\n\n if (condition() || reachedTimeout) {\n callback();\n executed = true;\n\n if (interval != null) {\n window.clearInterval(interval);\n interval = null;\n }\n\n if (reachedTimeout && timeoutMessage) {\n console.warn(timeoutMessage);\n }\n }\n };\n\n internalCallback();\n\n if (!executed) {\n interval = window.setInterval(internalCallback, 10);\n }\n}\n\nfunction compose() {\n var fns = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n fns[_i] = arguments[_i];\n }\n\n return function (arg) {\n return fns.reduce(function (composed, f) {\n return f(composed);\n }, arg);\n };\n}\n\nfunction callIfPresent(func) {\n if (func) {\n func();\n }\n}\n\nvar noop = function noop() {\n return;\n};\n\nvar FunctionUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n doOnce: doOnce,\n getFunctionName: getFunctionName,\n isFunction: isFunction,\n executeInAWhile: executeInAWhile,\n executeNextVMTurn: executeNextVMTurn,\n executeAfter: executeAfter,\n debounce: debounce,\n throttle: throttle,\n waitUntil: waitUntil,\n compose: compose,\n callIfPresent: callIfPresent,\n noop: noop\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nvar Context =\n/** @class */\nfunction () {\n function Context(params, logger) {\n this.beanWrappers = {};\n this.destroyed = false;\n\n if (!params || !params.beanClasses) {\n return;\n }\n\n this.contextParams = params;\n this.logger = logger;\n this.logger.log(\">> creating ag-Application Context\");\n this.createBeans();\n var beanInstances = this.getBeanInstances();\n this.wireBeans(beanInstances);\n this.logger.log(\">> ag-Application Context ready - component is alive\");\n }\n\n Context.prototype.getBeanInstances = function () {\n return values(this.beanWrappers).map(function (beanEntry) {\n return beanEntry.beanInstance;\n });\n };\n\n Context.prototype.createBean = function (bean, afterPreCreateCallback) {\n if (!bean) {\n throw Error(\"Can't wire to bean since it is null\");\n }\n\n this.wireBeans([bean], afterPreCreateCallback);\n return bean;\n };\n\n Context.prototype.wireBeans = function (beanInstances, afterPreCreateCallback) {\n this.autoWireBeans(beanInstances);\n this.methodWireBeans(beanInstances);\n this.callLifeCycleMethods(beanInstances, 'preConstructMethods'); // the callback sets the attributes, so the component has access to attributes\n // before postConstruct methods in the component are executed\n\n if (exists(afterPreCreateCallback)) {\n beanInstances.forEach(afterPreCreateCallback);\n }\n\n this.callLifeCycleMethods(beanInstances, 'postConstructMethods');\n };\n\n Context.prototype.createBeans = function () {\n var _this = this; // register all normal beans\n\n\n this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)); // register override beans, these will overwrite beans above of same name\n // instantiate all beans - overridden beans will be left out\n\n iterateObject(this.beanWrappers, function (key, beanEntry) {\n var constructorParamsMeta;\n\n if (beanEntry.bean.__agBeanMetaData && beanEntry.bean.__agBeanMetaData.autowireMethods && beanEntry.bean.__agBeanMetaData.autowireMethods.agConstructor) {\n constructorParamsMeta = beanEntry.bean.__agBeanMetaData.autowireMethods.agConstructor;\n }\n\n var constructorParams = _this.getBeansForParameters(constructorParamsMeta, beanEntry.bean.name);\n\n var newInstance = applyToConstructor(beanEntry.bean, constructorParams);\n beanEntry.beanInstance = newInstance;\n });\n var createdBeanNames = Object.keys(this.beanWrappers).join(', ');\n this.logger.log(\"created beans: \" + createdBeanNames);\n }; // tslint:disable-next-line\n\n\n Context.prototype.createBeanWrapper = function (BeanClass) {\n var metaData = BeanClass.__agBeanMetaData;\n\n if (!metaData) {\n var beanName = void 0;\n\n if (BeanClass.prototype.constructor) {\n beanName = getFunctionName(BeanClass.prototype.constructor);\n } else {\n beanName = \"\" + BeanClass;\n }\n\n console.error(\"Context item \" + beanName + \" is not a bean\");\n return;\n }\n\n var beanEntry = {\n bean: BeanClass,\n beanInstance: null,\n beanName: metaData.beanName\n };\n this.beanWrappers[metaData.beanName] = beanEntry;\n };\n\n Context.prototype.autoWireBeans = function (beanInstances) {\n var _this = this;\n\n beanInstances.forEach(function (beanInstance) {\n _this.forEachMetaDataInHierarchy(beanInstance, function (metaData, beanName) {\n var attributes = metaData.agClassAttributes;\n\n if (!attributes) {\n return;\n }\n\n attributes.forEach(function (attribute) {\n var otherBean = _this.lookupBeanInstance(beanName, attribute.beanName, attribute.optional);\n\n beanInstance[attribute.attributeName] = otherBean;\n });\n });\n });\n };\n\n Context.prototype.methodWireBeans = function (beanInstances) {\n var _this = this;\n\n beanInstances.forEach(function (beanInstance) {\n _this.forEachMetaDataInHierarchy(beanInstance, function (metaData, beanName) {\n iterateObject(metaData.autowireMethods, function (methodName, wireParams) {\n // skip constructor, as this is dealt with elsewhere\n if (methodName === \"agConstructor\") {\n return;\n }\n\n var initParams = _this.getBeansForParameters(wireParams, beanName);\n\n beanInstance[methodName].apply(beanInstance, initParams);\n });\n });\n });\n };\n\n Context.prototype.forEachMetaDataInHierarchy = function (beanInstance, callback) {\n var prototype = Object.getPrototypeOf(beanInstance);\n\n while (prototype != null) {\n var constructor = prototype.constructor;\n\n if (constructor.hasOwnProperty('__agBeanMetaData')) {\n var metaData = constructor.__agBeanMetaData;\n var beanName = this.getBeanName(constructor);\n callback(metaData, beanName);\n }\n\n prototype = Object.getPrototypeOf(prototype);\n }\n };\n\n Context.prototype.getBeanName = function (constructor) {\n if (constructor.__agBeanMetaData && constructor.__agBeanMetaData.beanName) {\n return constructor.__agBeanMetaData.beanName;\n }\n\n var constructorString = constructor.toString();\n var beanName = constructorString.substring(9, constructorString.indexOf(\"(\"));\n return beanName;\n };\n\n Context.prototype.getBeansForParameters = function (parameters, beanName) {\n var _this = this;\n\n var beansList = [];\n\n if (parameters) {\n iterateObject(parameters, function (paramIndex, otherBeanName) {\n var otherBean = _this.lookupBeanInstance(beanName, otherBeanName);\n\n beansList[Number(paramIndex)] = otherBean;\n });\n }\n\n return beansList;\n };\n\n Context.prototype.lookupBeanInstance = function (wiringBean, beanName, optional) {\n if (optional === void 0) {\n optional = false;\n }\n\n if (beanName === \"context\") {\n return this;\n }\n\n if (this.contextParams.providedBeanInstances && this.contextParams.providedBeanInstances.hasOwnProperty(beanName)) {\n return this.contextParams.providedBeanInstances[beanName];\n }\n\n var beanEntry = this.beanWrappers[beanName];\n\n if (beanEntry) {\n return beanEntry.beanInstance;\n }\n\n if (!optional) {\n console.error(\"AG Grid: unable to find bean reference \" + beanName + \" while initialising \" + wiringBean);\n }\n\n return null;\n };\n\n Context.prototype.callLifeCycleMethods = function (beanInstances, lifeCycleMethod) {\n var _this = this;\n\n beanInstances.forEach(function (beanInstance) {\n return _this.callLifeCycleMethodsOnBean(beanInstance, lifeCycleMethod);\n });\n };\n\n Context.prototype.callLifeCycleMethodsOnBean = function (beanInstance, lifeCycleMethod, methodToIgnore) {\n // putting all methods into a map removes duplicates\n var allMethods = {}; // dump methods from each level of the metadata hierarchy\n\n this.forEachMetaDataInHierarchy(beanInstance, function (metaData) {\n var methods = metaData[lifeCycleMethod];\n\n if (methods) {\n methods.forEach(function (methodName) {\n if (methodName != methodToIgnore) {\n allMethods[methodName] = true;\n }\n });\n }\n });\n var allMethodsList = Object.keys(allMethods);\n allMethodsList.forEach(function (methodName) {\n return beanInstance[methodName]();\n });\n };\n\n Context.prototype.getBean = function (name) {\n return this.lookupBeanInstance(\"getBean\", name, true);\n };\n\n Context.prototype.destroy = function () {\n if (this.destroyed) {\n return;\n }\n\n this.logger.log(\">> Shutting down ag-Application Context\");\n var beanInstances = this.getBeanInstances();\n this.destroyBeans(beanInstances);\n this.contextParams.providedBeanInstances = null;\n this.destroyed = true;\n this.logger.log(\">> ag-Application Context shut down - component is dead\");\n };\n\n Context.prototype.destroyBean = function (bean) {\n if (!bean) {\n return;\n }\n\n this.destroyBeans([bean]);\n };\n\n Context.prototype.destroyBeans = function (beans) {\n var _this = this;\n\n if (!beans) {\n return [];\n }\n\n beans.forEach(function (bean) {\n _this.callLifeCycleMethodsOnBean(bean, 'preDestroyMethods', 'destroy'); // call destroy() explicitly if it exists\n\n\n var beanAny = bean;\n\n if (typeof beanAny.destroy === 'function') {\n beanAny.destroy();\n }\n });\n return [];\n };\n\n return Context;\n}(); // taken from: http://stackoverflow.com/questions/3362471/how-can-i-call-a-javascript-constructor-using-call-or-apply\n// allows calling 'apply' on a constructor\n\n\nfunction applyToConstructor(constructor, argArray) {\n var args = [null].concat(argArray);\n var factoryFunction = constructor.bind.apply(constructor, args);\n return new factoryFunction();\n}\n\nfunction PreConstruct(target, methodName, descriptor) {\n var props = getOrCreateProps$1(target.constructor);\n\n if (!props.preConstructMethods) {\n props.preConstructMethods = [];\n }\n\n props.preConstructMethods.push(methodName);\n}\n\nfunction PostConstruct(target, methodName, descriptor) {\n var props = getOrCreateProps$1(target.constructor);\n\n if (!props.postConstructMethods) {\n props.postConstructMethods = [];\n }\n\n props.postConstructMethods.push(methodName);\n}\n\nfunction PreDestroy(target, methodName, descriptor) {\n var props = getOrCreateProps$1(target.constructor);\n\n if (!props.preDestroyMethods) {\n props.preDestroyMethods = [];\n }\n\n props.preDestroyMethods.push(methodName);\n}\n\nfunction Bean(beanName) {\n return function (classConstructor) {\n var props = getOrCreateProps$1(classConstructor);\n props.beanName = beanName;\n };\n}\n\nfunction Autowired(name) {\n return function (target, propertyKey, descriptor) {\n autowiredFunc(target, name, false, target, propertyKey, null);\n };\n}\n\nfunction Optional(name) {\n return function (target, propertyKey, descriptor) {\n autowiredFunc(target, name, true, target, propertyKey, null);\n };\n}\n\nfunction autowiredFunc(target, name, optional, classPrototype, methodOrAttributeName, index) {\n if (name === null) {\n console.error(\"AG Grid: Autowired name should not be null\");\n return;\n }\n\n if (typeof index === \"number\") {\n console.error(\"AG Grid: Autowired should be on an attribute\");\n return;\n } // it's an attribute on the class\n\n\n var props = getOrCreateProps$1(target.constructor);\n\n if (!props.agClassAttributes) {\n props.agClassAttributes = [];\n }\n\n props.agClassAttributes.push({\n attributeName: methodOrAttributeName,\n beanName: name,\n optional: optional\n });\n}\n\nfunction Qualifier(name) {\n return function (classPrototype, methodOrAttributeName, index) {\n var constructor = typeof classPrototype == \"function\" ? classPrototype : classPrototype.constructor;\n var props;\n\n if (typeof index === \"number\") {\n // it's a parameter on a method\n var methodName = void 0;\n\n if (methodOrAttributeName) {\n props = getOrCreateProps$1(constructor);\n methodName = methodOrAttributeName;\n } else {\n props = getOrCreateProps$1(constructor);\n methodName = \"agConstructor\";\n }\n\n if (!props.autowireMethods) {\n props.autowireMethods = {};\n }\n\n if (!props.autowireMethods[methodName]) {\n props.autowireMethods[methodName] = {};\n }\n\n props.autowireMethods[methodName][index] = name;\n }\n };\n}\n\nfunction getOrCreateProps$1(target) {\n if (!target.hasOwnProperty(\"__agBeanMetaData\")) {\n target.__agBeanMetaData = {};\n }\n\n return target.__agBeanMetaData;\n}\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __assign$h = undefined && undefined.__assign || function () {\n __assign$h = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$h.apply(this, arguments);\n};\n\nvar __decorate$2A = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __param$a = undefined && undefined.__param || function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n};\n\nvar EventService =\n/** @class */\nfunction () {\n function EventService() {\n this.allSyncListeners = new Map();\n this.allAsyncListeners = new Map();\n this.globalSyncListeners = new Set();\n this.globalAsyncListeners = new Set();\n this.asyncFunctionsQueue = [];\n this.scheduled = false; // using an object performs better than a Set for the number of different events we have\n\n this.firedEvents = {};\n } // because this class is used both inside the context and outside the context, we do not\n // use autowired attributes, as that would be confusing, as sometimes the attributes\n // would be wired, and sometimes not.\n //\n // the global event servers used by AG Grid is autowired by the context once, and this\n // setBeans method gets called once.\n //\n // the times when this class is used outside of the context (eg RowNode has an instance of this\n // class) then it is not a bean, and this setBeans method is not called.\n\n\n EventService.prototype.setBeans = function (loggerFactory, gridOptionsWrapper, frameworkOverrides, globalEventListener) {\n if (globalEventListener === void 0) {\n globalEventListener = null;\n }\n\n this.frameworkOverrides = frameworkOverrides;\n this.gridOptionsWrapper = gridOptionsWrapper;\n\n if (globalEventListener) {\n var async = gridOptionsWrapper.useAsyncEvents();\n this.addGlobalListener(globalEventListener, async);\n }\n };\n\n EventService.prototype.getListeners = function (eventType, async, autoCreateListenerCollection) {\n var listenerMap = async ? this.allAsyncListeners : this.allSyncListeners;\n var listeners = listenerMap.get(eventType); // Note: 'autoCreateListenerCollection' should only be 'true' if a listener is about to be added. For instance\n // getListeners() is also called during event dispatch even though no listeners are added. This measure protects\n // against 'memory bloat' as empty collections will prevent the RowNode's event service from being removed after\n // the RowComp is destroyed, see noRegisteredListenersExist() below.\n\n if (!listeners && autoCreateListenerCollection) {\n listeners = new Set();\n listenerMap.set(eventType, listeners);\n }\n\n return listeners;\n };\n\n EventService.prototype.noRegisteredListenersExist = function () {\n return this.allSyncListeners.size === 0 && this.allAsyncListeners.size === 0 && this.globalSyncListeners.size === 0 && this.globalAsyncListeners.size === 0;\n };\n\n EventService.prototype.addEventListener = function (eventType, listener, async) {\n if (async === void 0) {\n async = false;\n }\n\n this.getListeners(eventType, async, true).add(listener);\n };\n\n EventService.prototype.removeEventListener = function (eventType, listener, async) {\n if (async === void 0) {\n async = false;\n }\n\n var listeners = this.getListeners(eventType, async, false);\n\n if (!listeners) {\n return;\n }\n\n listeners.delete(listener);\n\n if (listeners.size === 0) {\n var listenerMap = async ? this.allAsyncListeners : this.allSyncListeners;\n listenerMap.delete(eventType);\n }\n };\n\n EventService.prototype.addGlobalListener = function (listener, async) {\n if (async === void 0) {\n async = false;\n }\n\n (async ? this.globalAsyncListeners : this.globalSyncListeners).add(listener);\n };\n\n EventService.prototype.removeGlobalListener = function (listener, async) {\n if (async === void 0) {\n async = false;\n }\n\n (async ? this.globalAsyncListeners : this.globalSyncListeners).delete(listener);\n };\n\n EventService.prototype.dispatchEvent = function (event) {\n var agEvent = event;\n\n if (this.gridOptionsWrapper) {\n // Apply common properties to all dispatched events if this event service has had its beans set with gridOptionsWrapper.\n // Note there are multiple instances of EventService that are used local to components which do not set gridOptionsWrapper. \n agEvent = __assign$h(__assign$h({}, event), {\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n context: this.gridOptionsWrapper.getContext()\n });\n }\n\n this.dispatchToListeners(agEvent, true);\n this.dispatchToListeners(agEvent, false);\n this.firedEvents[agEvent.type] = true;\n };\n\n EventService.prototype.dispatchEventOnce = function (event) {\n if (!this.firedEvents[event.type]) {\n this.dispatchEvent(event);\n }\n };\n\n EventService.prototype.dispatchToListeners = function (event, async) {\n var _this = this;\n\n var eventType = event.type;\n\n var processEventListeners = function processEventListeners(listeners) {\n return listeners.forEach(function (listener) {\n if (async) {\n _this.dispatchAsync(function () {\n return listener(event);\n });\n } else {\n listener(event);\n }\n });\n };\n\n var listeners = this.getListeners(eventType, async, false);\n\n if (listeners) {\n processEventListeners(listeners);\n }\n\n var globalListeners = async ? this.globalAsyncListeners : this.globalSyncListeners;\n globalListeners.forEach(function (listener) {\n if (async) {\n _this.dispatchAsync(function () {\n return _this.frameworkOverrides.dispatchEvent(eventType, function () {\n return listener(eventType, event);\n }, true);\n });\n } else {\n _this.frameworkOverrides.dispatchEvent(eventType, function () {\n return listener(eventType, event);\n }, true);\n }\n });\n }; // this gets called inside the grid's thread, for each event that it\n // wants to set async. the grid then batches the events into one setTimeout()\n // because setTimeout() is an expensive operation. ideally we would have\n // each event in it's own setTimeout(), but we batch for performance.\n\n\n EventService.prototype.dispatchAsync = function (func) {\n // add to the queue for executing later in the next VM turn\n this.asyncFunctionsQueue.push(func); // check if timeout is already scheduled. the first time the grid calls\n // this within it's thread turn, this should be false, so it will schedule\n // the 'flush queue' method the first time it comes here. then the flag is\n // set to 'true' so it will know it's already scheduled for subsequent calls.\n\n if (!this.scheduled) {\n // if not scheduled, schedule one\n window.setTimeout(this.flushAsyncQueue.bind(this), 0); // mark that it is scheduled\n\n this.scheduled = true;\n }\n }; // this happens in the next VM turn only, and empties the queue of events\n\n\n EventService.prototype.flushAsyncQueue = function () {\n this.scheduled = false; // we take a copy, because the event listener could be using\n // the grid, which would cause more events, which would be potentially\n // added to the queue, so safe to take a copy, the new events will\n // get executed in a later VM turn rather than risk updating the\n // queue as we are flushing it.\n\n var queueCopy = this.asyncFunctionsQueue.slice();\n this.asyncFunctionsQueue = []; // execute the queue\n\n queueCopy.forEach(function (func) {\n return func();\n });\n };\n\n __decorate$2A([__param$a(0, Qualifier('loggerFactory')), __param$a(1, Qualifier('gridOptionsWrapper')), __param$a(2, Qualifier('frameworkOverrides')), __param$a(3, Qualifier('globalEventListener'))], EventService.prototype, \"setBeans\", null);\n\n EventService = __decorate$2A([Bean('eventService')], EventService);\n return EventService;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar Constants =\n/** @class */\nfunction () {\n function Constants() {}\n\n Constants.ROW_BUFFER_SIZE = 10;\n Constants.LAYOUT_INTERVAL = 500;\n Constants.BATCH_WAIT_MILLIS = 50;\n Constants.EXPORT_TYPE_DRAG_COPY = 'dragCopy';\n Constants.EXPORT_TYPE_CLIPBOARD = 'clipboard';\n Constants.EXPORT_TYPE_EXCEL = 'excel';\n Constants.EXPORT_TYPE_CSV = 'csv';\n Constants.ROW_MODEL_TYPE_INFINITE = 'infinite';\n Constants.ROW_MODEL_TYPE_VIEWPORT = 'viewport';\n Constants.ROW_MODEL_TYPE_CLIENT_SIDE = 'clientSide';\n Constants.ROW_MODEL_TYPE_SERVER_SIDE = 'serverSide';\n Constants.ALWAYS = 'always';\n Constants.ONLY_WHEN_GROUPING = 'onlyWhenGrouping';\n Constants.PINNED_TOP = 'top';\n Constants.PINNED_BOTTOM = 'bottom';\n Constants.DOM_LAYOUT_NORMAL = 'normal';\n Constants.DOM_LAYOUT_PRINT = 'print';\n Constants.DOM_LAYOUT_AUTO_HEIGHT = 'autoHeight';\n Constants.GROUP_AUTO_COLUMN_ID = 'ag-Grid-AutoColumn';\n Constants.SOURCE_PASTE = 'paste';\n Constants.PINNED_RIGHT = 'right';\n Constants.PINNED_LEFT = 'left';\n Constants.SORT_ASC = 'asc';\n Constants.SORT_DESC = 'desc';\n Constants.INPUT_SELECTOR = 'input, select, button, textarea';\n Constants.FOCUSABLE_SELECTOR = '[tabindex], input, select, button, textarea';\n Constants.FOCUSABLE_EXCLUDE = '.ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *';\n return Constants;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar ModuleNames;\n\n(function (ModuleNames) {\n // when using modules, user references this\n ModuleNames[\"CommunityCoreModule\"] = \"@ag-grid-community/core\"; // when not using modules, user references this\n\n ModuleNames[\"CommunityAllModules\"] = \"@ag-grid-community/all\"; // community modules\n\n ModuleNames[\"InfiniteRowModelModule\"] = \"@ag-grid-community/infinite-row-model\";\n ModuleNames[\"ClientSideRowModelModule\"] = \"@ag-grid-community/client-side-row-model\";\n ModuleNames[\"CsvExportModule\"] = \"@ag-grid-community/csv-export\"; // enterprise core - users never import on this, but other enterprise modules do\n\n ModuleNames[\"EnterpriseCoreModule\"] = \"@ag-grid-enterprise/core\"; // when not using modules, user references this\n\n ModuleNames[\"EnterpriseAllModules\"] = \"@ag-grid-enterprise/all\"; // enterprise modules\n\n ModuleNames[\"RowGroupingModule\"] = \"@ag-grid-enterprise/row-grouping\";\n ModuleNames[\"ColumnToolPanelModule\"] = \"@ag-grid-enterprise/column-tool-panel\";\n ModuleNames[\"FiltersToolPanelModule\"] = \"@ag-grid-enterprise/filter-tool-panel\";\n ModuleNames[\"MenuModule\"] = \"@ag-grid-enterprise/menu\";\n ModuleNames[\"SetFilterModule\"] = \"@ag-grid-enterprise/set-filter\";\n ModuleNames[\"MultiFilterModule\"] = \"@ag-grid-enterprise/multi-filter\";\n ModuleNames[\"StatusBarModule\"] = \"@ag-grid-enterprise/status-bar\";\n ModuleNames[\"SideBarModule\"] = \"@ag-grid-enterprise/side-bar\";\n ModuleNames[\"RangeSelectionModule\"] = \"@ag-grid-enterprise/range-selection\";\n ModuleNames[\"MasterDetailModule\"] = \"@ag-grid-enterprise/master-detail\";\n ModuleNames[\"RichSelectModule\"] = \"@ag-grid-enterprise/rich-select\";\n ModuleNames[\"GridChartsModule\"] = \"@ag-grid-enterprise/charts\";\n ModuleNames[\"ViewportRowModelModule\"] = \"@ag-grid-enterprise/viewport-row-model\";\n ModuleNames[\"ServerSideRowModelModule\"] = \"@ag-grid-enterprise/server-side-row-model\";\n ModuleNames[\"ExcelExportModule\"] = \"@ag-grid-enterprise/excel-export\";\n ModuleNames[\"ClipboardModule\"] = \"@ag-grid-enterprise/clipboard\";\n ModuleNames[\"SparklinesModule\"] = \"@ag-grid-enterprise/sparklines\"; // framework wrappers currently don't provide beans, comps etc, so no need to be modules,\n // however i argue they should be as in theory they 'could' provide beans etc\n\n ModuleNames[\"AngularModule\"] = \"@ag-grid-community/angular\";\n ModuleNames[\"ReactModule\"] = \"@ag-grid-community/react\";\n ModuleNames[\"VueModule\"] = \"@ag-grid-community/vue\";\n ModuleNames[\"PolymerModule\"] = \"@ag-grid-community/polymer\"; // and then this, which is definitely not a grid module, as it should not have any dependency\n // on the grid (ie shouldn't even reference the Module interface)\n // ChartsModule = \"@ag-grid-community/charts-core\",\n})(ModuleNames || (ModuleNames = {}));\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar ModuleRegistry =\n/** @class */\nfunction () {\n function ModuleRegistry() {}\n\n ModuleRegistry.register = function (module, moduleBased) {\n if (moduleBased === void 0) {\n moduleBased = true;\n }\n\n ModuleRegistry.modulesMap[module.moduleName] = module;\n\n if (ModuleRegistry.moduleBased === undefined) {\n ModuleRegistry.moduleBased = moduleBased;\n } else {\n if (ModuleRegistry.moduleBased !== moduleBased) {\n doOnce(function () {\n 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.\");\n console.warn('Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.');\n }, 'ModulePackageCheck');\n }\n }\n }; // noinspection JSUnusedGlobalSymbols\n\n\n ModuleRegistry.registerModules = function (modules, moduleBased) {\n if (moduleBased === void 0) {\n moduleBased = true;\n }\n\n if (!modules) {\n return;\n }\n\n modules.forEach(function (module) {\n return ModuleRegistry.register(module, moduleBased);\n });\n };\n\n ModuleRegistry.assertRegistered = function (moduleName, reason) {\n if (this.isRegistered(moduleName)) {\n return true;\n }\n\n var warningKey = reason + moduleName;\n var warningMessage;\n\n if (ModuleRegistry.moduleBased) {\n warningMessage = \"AG Grid: unable to use \" + reason + \" as module \" + moduleName + \" is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/\";\n } else {\n warningMessage = \"AG Grid: unable to use \" + reason + \" as package 'ag-grid-enterprise' is not present. Please see: https://www.ag-grid.com/javascript-grid/packages/\";\n }\n\n doOnce(function () {\n console.warn(warningMessage);\n }, warningKey);\n return false;\n };\n\n ModuleRegistry.isRegistered = function (moduleName) {\n return !!ModuleRegistry.modulesMap[moduleName];\n };\n\n ModuleRegistry.getRegisteredModules = function () {\n return values(ModuleRegistry.modulesMap);\n };\n\n ModuleRegistry.isPackageBased = function () {\n return !ModuleRegistry.moduleBased;\n }; // having in a map a) removes duplicates and b) allows fast lookup\n\n\n ModuleRegistry.modulesMap = {};\n return ModuleRegistry;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __decorate$2z = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar instanceIdSequence$4 = 0; // Wrapper around a user provide column definition. The grid treats the column definition as ready only.\n// This class contains all the runtime information about a column, plus some logic (the definition has no logic).\n// This class implements both interfaces ColumnGroupChild and ProvidedColumnGroupChild as the class can\n// appear as a child of either the original tree or the displayed tree. However the relevant group classes\n// for each type only implements one, as each group can only appear in it's associated tree (eg ProvidedColumnGroup\n// can only appear in OriginalColumn tree).\n\nvar Column =\n/** @class */\nfunction () {\n function Column(colDef, userProvidedColDef, colId, primary) {\n // used by React (and possibly other frameworks) as key for rendering\n this.instanceId = instanceIdSequence$4++; // The measured height of this column's header when autoHeaderHeight is enabled\n\n this.autoHeaderHeight = null;\n this.moving = false;\n this.menuVisible = false;\n this.filterActive = false;\n this.eventService = new EventService();\n this.rowGroupActive = false;\n this.pivotActive = false;\n this.aggregationActive = false;\n this.colDef = colDef;\n this.userProvidedColDef = userProvidedColDef;\n this.colId = colId;\n this.primary = primary;\n this.setState(colDef);\n }\n\n Column.prototype.getInstanceId = function () {\n return this.instanceId;\n };\n\n Column.prototype.setState = function (colDef) {\n // sort\n if (colDef.sort !== undefined) {\n if (colDef.sort === Constants.SORT_ASC || colDef.sort === Constants.SORT_DESC) {\n this.sort = colDef.sort;\n }\n } else {\n if (colDef.initialSort === Constants.SORT_ASC || colDef.initialSort === Constants.SORT_DESC) {\n this.sort = colDef.initialSort;\n }\n } // sortIndex\n\n\n var sortIndex = attrToNumber(colDef.sortIndex);\n var initialSortIndex = attrToNumber(colDef.initialSortIndex);\n\n if (sortIndex !== undefined) {\n if (sortIndex !== null) {\n this.sortIndex = sortIndex;\n }\n } else {\n if (initialSortIndex !== null) {\n this.sortIndex = initialSortIndex;\n }\n } // hide\n\n\n var hide = attrToBoolean(colDef.hide);\n var initialHide = attrToBoolean(colDef.initialHide);\n\n if (hide !== undefined) {\n this.visible = !hide;\n } else {\n this.visible = !initialHide;\n } // pinned\n\n\n if (colDef.pinned !== undefined) {\n this.setPinned(colDef.pinned);\n } else {\n this.setPinned(colDef.initialPinned);\n } // flex\n\n\n var flex = attrToNumber(colDef.flex);\n var initialFlex = attrToNumber(colDef.initialFlex);\n\n if (flex !== undefined) {\n this.flex = flex;\n } else if (initialFlex !== undefined) {\n this.flex = initialFlex;\n }\n }; // gets called when user provides an alternative colDef, eg\n\n\n Column.prototype.setColDef = function (colDef, userProvidedColDef) {\n this.colDef = colDef;\n this.userProvidedColDef = userProvidedColDef;\n this.initMinAndMaxWidths();\n this.initDotNotation();\n this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_COL_DEF_CHANGED, \"api\"));\n };\n /**\n * Returns the column definition provided by the application.\n * This may not be correct, as items can be superseded by default column options.\n * However it's useful for comparison, eg to know which application column definition matches that column.\n */\n\n\n Column.prototype.getUserProvidedColDef = function () {\n return this.userProvidedColDef;\n };\n\n Column.prototype.setParent = function (parent) {\n this.parent = parent;\n };\n /** Returns the parent column group, if column grouping is active. */\n\n\n Column.prototype.getParent = function () {\n return this.parent;\n };\n\n Column.prototype.setOriginalParent = function (originalParent) {\n this.originalParent = originalParent;\n };\n\n Column.prototype.getOriginalParent = function () {\n return this.originalParent;\n }; // this is done after constructor as it uses gridOptionsWrapper\n\n\n Column.prototype.initialise = function () {\n this.initMinAndMaxWidths();\n this.resetActualWidth('gridInitializing');\n this.initDotNotation();\n this.validate();\n };\n\n Column.prototype.initDotNotation = function () {\n var suppressDotNotation = this.gridOptionsWrapper.isSuppressFieldDotNotation();\n this.fieldContainsDots = exists(this.colDef.field) && this.colDef.field.indexOf('.') >= 0 && !suppressDotNotation;\n this.tooltipFieldContainsDots = exists(this.colDef.tooltipField) && this.colDef.tooltipField.indexOf('.') >= 0 && !suppressDotNotation;\n };\n\n Column.prototype.initMinAndMaxWidths = function () {\n var colDef = this.colDef;\n this.minWidth = this.columnUtils.calculateColMinWidth(colDef);\n this.maxWidth = this.columnUtils.calculateColMaxWidth(colDef);\n };\n\n Column.prototype.resetActualWidth = function (source) {\n if (source === void 0) {\n source = 'api';\n }\n\n var initialWidth = this.columnUtils.calculateColInitialWidth(this.colDef);\n this.setActualWidth(initialWidth, source, true);\n };\n\n Column.prototype.isEmptyGroup = function () {\n return false;\n };\n\n Column.prototype.isRowGroupDisplayed = function (colId) {\n if (missing(this.colDef) || missing(this.colDef.showRowGroup)) {\n return false;\n }\n\n var showingAllGroups = this.colDef.showRowGroup === true;\n var showingThisGroup = this.colDef.showRowGroup === colId;\n return showingAllGroups || showingThisGroup;\n };\n /** Returns `true` if column is a primary column, `false` if secondary. Secondary columns are used for pivoting. */\n\n\n Column.prototype.isPrimary = function () {\n return this.primary;\n };\n /** Returns `true` if column filtering is allowed. */\n\n\n Column.prototype.isFilterAllowed = function () {\n // filter defined means it's a string, class or true.\n // if its false, null or undefined then it's false.\n var filterDefined = !!this.colDef.filter || !!this.colDef.filterFramework;\n return filterDefined;\n };\n\n Column.prototype.isFieldContainsDots = function () {\n return this.fieldContainsDots;\n };\n\n Column.prototype.isTooltipFieldContainsDots = function () {\n return this.tooltipFieldContainsDots;\n };\n\n Column.prototype.validate = function () {\n var colDefAny = this.colDef;\n\n function warnOnce(msg, key, obj) {\n doOnce(function () {\n if (obj) {\n console.warn(msg, obj);\n } else {\n doOnce(function () {\n return console.warn(msg);\n }, key);\n }\n }, key);\n }\n\n var usingCSRM = this.gridOptionsWrapper.isRowModelDefault();\n\n if (usingCSRM && !ModuleRegistry.isRegistered(ModuleNames.RowGroupingModule)) {\n var rowGroupingItems = ['enableRowGroup', 'rowGroup', 'rowGroupIndex', 'enablePivot', 'enableValue', 'pivot', 'pivotIndex', 'aggFunc'];\n rowGroupingItems.forEach(function (item) {\n if (exists(colDefAny[item])) {\n if (ModuleRegistry.isPackageBased()) {\n warnOnce(\"AG Grid: \" + item + \" is only valid in ag-grid-enterprise, your column definition should not have \" + item, 'ColumnRowGroupingMissing' + item);\n } else {\n warnOnce(\"AG Grid: \" + item + \" is only valid with AG Grid Enterprise Module \" + ModuleNames.RowGroupingModule + \" - your column definition should not have \" + item, 'ColumnRowGroupingMissing' + item);\n }\n }\n });\n }\n\n if (!ModuleRegistry.isRegistered(ModuleNames.RichSelectModule)) {\n if (this.colDef.cellEditor === 'agRichSelect' || this.colDef.cellEditor === 'agRichSelectCellEditor') {\n if (ModuleRegistry.isPackageBased()) {\n warnOnce(\"AG Grid: \" + this.colDef.cellEditor + \" can only be used with ag-grid-enterprise\", 'ColumnRichSelectMissing');\n } else {\n warnOnce(\"AG Grid: \" + this.colDef.cellEditor + \" can only be used with AG Grid Enterprise Module \" + ModuleNames.RichSelectModule, 'ColumnRichSelectMissing');\n }\n }\n }\n\n if (this.gridOptionsWrapper.isTreeData()) {\n var itemsNotAllowedWithTreeData = ['rowGroup', 'rowGroupIndex', 'pivot', 'pivotIndex'];\n itemsNotAllowedWithTreeData.forEach(function (item) {\n if (exists(colDefAny[item])) {\n warnOnce(\"AG Grid: \" + item + \" is not possible when doing tree data, your column definition should not have \" + item, 'TreeDataCannotRowGroup');\n }\n });\n }\n\n if (exists(this.colDef.width) && typeof this.colDef.width !== 'number') {\n warnOnce('AG Grid: colDef.width should be a number, not ' + typeof this.colDef.width, 'ColumnCheck_asdfawef');\n }\n\n if (colDefAny.pinnedRowCellRenderer) {\n warnOnce('AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column', 'colDef.pinnedRowCellRenderer-deprecated');\n }\n\n if (colDefAny.pinnedRowCellRendererParams) {\n warnOnce('AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column', 'colDef.pinnedRowCellRenderer-deprecated');\n }\n\n if (colDefAny.pinnedRowCellRendererFramework) {\n warnOnce('AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column', 'colDef.pinnedRowCellRenderer-deprecated');\n }\n\n if (colDefAny.pinnedRowValueGetter) {\n warnOnce('AG Grid: pinnedRowCellRenderer is deprecated, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue.', 'colDef.pinnedRowCellRenderer-deprecated');\n }\n };\n /** Add an event listener to the column. */\n\n\n Column.prototype.addEventListener = function (eventType, listener) {\n this.eventService.addEventListener(eventType, listener);\n };\n /** Remove event listener from the column. */\n\n\n Column.prototype.removeEventListener = function (eventType, listener) {\n this.eventService.removeEventListener(eventType, listener);\n };\n\n Column.prototype.createColumnFunctionCallbackParams = function (rowNode) {\n return {\n node: rowNode,\n data: rowNode.data,\n column: this,\n colDef: this.colDef,\n context: this.gridOptionsWrapper.getContext(),\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi()\n };\n };\n\n Column.prototype.isSuppressNavigable = function (rowNode) {\n // if boolean set, then just use it\n if (typeof this.colDef.suppressNavigable === 'boolean') {\n return this.colDef.suppressNavigable;\n } // if function, then call the function to find out\n\n\n if (typeof this.colDef.suppressNavigable === 'function') {\n var params = this.createColumnFunctionCallbackParams(rowNode);\n var userFunc = this.colDef.suppressNavigable;\n return userFunc(params);\n }\n\n return false;\n };\n\n Column.prototype.isCellEditable = function (rowNode) {\n // only allow editing of groups if the user has this option enabled\n if (rowNode.group && !this.gridOptionsWrapper.isEnableGroupEdit()) {\n return false;\n }\n\n return this.isColumnFunc(rowNode, this.colDef.editable);\n };\n\n Column.prototype.isSuppressFillHandle = function () {\n return !!attrToBoolean(this.colDef.suppressFillHandle);\n };\n\n Column.prototype.isAutoHeight = function () {\n return !!attrToBoolean(this.colDef.autoHeight);\n };\n\n Column.prototype.isAutoHeaderHeight = function () {\n return !!attrToBoolean(this.colDef.autoHeaderHeight);\n };\n\n Column.prototype.isRowDrag = function (rowNode) {\n return this.isColumnFunc(rowNode, this.colDef.rowDrag);\n };\n\n Column.prototype.isDndSource = function (rowNode) {\n return this.isColumnFunc(rowNode, this.colDef.dndSource);\n };\n\n Column.prototype.isCellCheckboxSelection = function (rowNode) {\n return this.isColumnFunc(rowNode, this.colDef.checkboxSelection);\n };\n\n Column.prototype.isSuppressPaste = function (rowNode) {\n return this.isColumnFunc(rowNode, this.colDef ? this.colDef.suppressPaste : null);\n };\n\n Column.prototype.isResizable = function () {\n return !!attrToBoolean(this.colDef.resizable);\n };\n\n Column.prototype.isColumnFunc = function (rowNode, value) {\n // if boolean set, then just use it\n if (typeof value === 'boolean') {\n return value;\n } // if function, then call the function to find out\n\n\n if (typeof value === 'function') {\n var params = this.createColumnFunctionCallbackParams(rowNode);\n var editableFunc = value;\n return editableFunc(params);\n }\n\n return false;\n };\n\n Column.prototype.setMoving = function (moving, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n this.moving = moving;\n this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_MOVING_CHANGED, source));\n };\n\n Column.prototype.createColumnEvent = function (type, source) {\n return {\n type: type,\n column: this,\n columns: [this],\n source: source,\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n context: this.gridOptionsWrapper.getContext()\n };\n };\n\n Column.prototype.isMoving = function () {\n return this.moving;\n };\n /** If sorting is active, returns the sort direction e.g. `'asc'` or `'desc'`. */\n\n\n Column.prototype.getSort = function () {\n return this.sort;\n };\n\n Column.prototype.setSort = function (sort, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (this.sort !== sort) {\n this.sort = sort;\n this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_SORT_CHANGED, source));\n }\n };\n\n Column.prototype.setMenuVisible = function (visible, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (this.menuVisible !== visible) {\n this.menuVisible = visible;\n this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_MENU_VISIBLE_CHANGED, source));\n }\n };\n\n Column.prototype.isMenuVisible = function () {\n return this.menuVisible;\n };\n\n Column.prototype.isSortAscending = function () {\n return this.sort === Constants.SORT_ASC;\n };\n\n Column.prototype.isSortDescending = function () {\n return this.sort === Constants.SORT_DESC;\n };\n\n Column.prototype.isSortNone = function () {\n return missing(this.sort);\n };\n\n Column.prototype.isSorting = function () {\n return exists(this.sort);\n };\n\n Column.prototype.getSortIndex = function () {\n return this.sortIndex;\n };\n\n Column.prototype.setSortIndex = function (sortOrder) {\n this.sortIndex = sortOrder;\n };\n\n Column.prototype.setAggFunc = function (aggFunc) {\n this.aggFunc = aggFunc;\n };\n /** If aggregation is set for the column, returns the aggregation function. */\n\n\n Column.prototype.getAggFunc = function () {\n return this.aggFunc;\n };\n\n Column.prototype.getLeft = function () {\n return this.left;\n };\n\n Column.prototype.getOldLeft = function () {\n return this.oldLeft;\n };\n\n Column.prototype.getRight = function () {\n return this.left + this.actualWidth;\n };\n\n Column.prototype.setLeft = function (left, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n this.oldLeft = this.left;\n\n if (this.left !== left) {\n this.left = left;\n this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_LEFT_CHANGED, source));\n }\n };\n /** Returns `true` if filter is active on the column. */\n\n\n Column.prototype.isFilterActive = function () {\n return this.filterActive;\n }; // additionalEventAttributes is used by provided simple floating filter, so it can add 'floatingFilter=true' to the event\n\n\n Column.prototype.setFilterActive = function (active, source, additionalEventAttributes) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (this.filterActive !== active) {\n this.filterActive = active;\n this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_FILTER_ACTIVE_CHANGED, source));\n }\n\n var filterChangedEvent = this.createColumnEvent(Column.EVENT_FILTER_CHANGED, source);\n\n if (additionalEventAttributes) {\n mergeDeep(filterChangedEvent, additionalEventAttributes);\n }\n\n this.eventService.dispatchEvent(filterChangedEvent);\n };\n\n Column.prototype.setPinned = function (pinned) {\n if (pinned === true || pinned === Constants.PINNED_LEFT) {\n this.pinned = Constants.PINNED_LEFT;\n } else if (pinned === Constants.PINNED_RIGHT) {\n this.pinned = Constants.PINNED_RIGHT;\n } else {\n this.pinned = null;\n }\n };\n\n Column.prototype.setFirstRightPinned = function (firstRightPinned, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (this.firstRightPinned !== firstRightPinned) {\n this.firstRightPinned = firstRightPinned;\n this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_FIRST_RIGHT_PINNED_CHANGED, source));\n }\n };\n\n Column.prototype.setLastLeftPinned = function (lastLeftPinned, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (this.lastLeftPinned !== lastLeftPinned) {\n this.lastLeftPinned = lastLeftPinned;\n this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_LAST_LEFT_PINNED_CHANGED, source));\n }\n };\n\n Column.prototype.isFirstRightPinned = function () {\n return this.firstRightPinned;\n };\n\n Column.prototype.isLastLeftPinned = function () {\n return this.lastLeftPinned;\n };\n\n Column.prototype.isPinned = function () {\n return this.pinned === Constants.PINNED_LEFT || this.pinned === Constants.PINNED_RIGHT;\n };\n\n Column.prototype.isPinnedLeft = function () {\n return this.pinned === Constants.PINNED_LEFT;\n };\n\n Column.prototype.isPinnedRight = function () {\n return this.pinned === Constants.PINNED_RIGHT;\n };\n\n Column.prototype.getPinned = function () {\n return this.pinned;\n };\n\n Column.prototype.setVisible = function (visible, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n var newValue = visible === true;\n\n if (this.visible !== newValue) {\n this.visible = newValue;\n this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_VISIBLE_CHANGED, source));\n }\n };\n\n Column.prototype.isVisible = function () {\n return this.visible;\n };\n /** Returns the column definition for this column.\n * The column definition will be the result of merging the application provided column definition with any provided defaults\n * (e.g. `defaultColDef` grid option, or column types.\n *\n * Equivalent: `getDefinition` */\n\n\n Column.prototype.getColDef = function () {\n return this.colDef;\n };\n\n Column.prototype.getColumnGroupShow = function () {\n return this.colDef.columnGroupShow;\n };\n /**\n * Returns the unique ID for the column.\n *\n * Equivalent: `getId`, `getUniqueId` */\n\n\n Column.prototype.getColId = function () {\n return this.colId;\n };\n /**\n * Returns the unique ID for the column.\n *\n * Equivalent: `getColId`, `getUniqueId` */\n\n\n Column.prototype.getId = function () {\n return this.getColId();\n };\n /**\n * Returns the unique ID for the column.\n *\n * Equivalent: `getColId`, `getId` */\n\n\n Column.prototype.getUniqueId = function () {\n return this.getId();\n };\n\n Column.prototype.getDefinition = function () {\n return this.colDef;\n };\n /** Returns the current width of the column. If the column is resized, the actual width is the new size. */\n\n\n Column.prototype.getActualWidth = function () {\n return this.actualWidth;\n };\n\n Column.prototype.getAutoHeaderHeight = function () {\n return this.autoHeaderHeight;\n };\n /** Returns true if the header height has changed */\n\n\n Column.prototype.setAutoHeaderHeight = function (height) {\n var changed = height !== this.autoHeaderHeight;\n this.autoHeaderHeight = height;\n return changed;\n };\n\n Column.prototype.createBaseColDefParams = function (rowNode) {\n var params = {\n node: rowNode,\n data: rowNode.data,\n colDef: this.colDef,\n column: this,\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n context: this.gridOptionsWrapper.getContext()\n };\n return params;\n };\n\n Column.prototype.getColSpan = function (rowNode) {\n if (missing(this.colDef.colSpan)) {\n return 1;\n }\n\n var params = this.createBaseColDefParams(rowNode);\n var colSpan = this.colDef.colSpan(params); // colSpan must be number equal to or greater than 1\n\n return Math.max(colSpan, 1);\n };\n\n Column.prototype.getRowSpan = function (rowNode) {\n if (missing(this.colDef.rowSpan)) {\n return 1;\n }\n\n var params = this.createBaseColDefParams(rowNode);\n var rowSpan = this.colDef.rowSpan(params); // rowSpan must be number equal to or greater than 1\n\n return Math.max(rowSpan, 1);\n };\n\n Column.prototype.setActualWidth = function (actualWidth, source, silent) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (silent === void 0) {\n silent = false;\n }\n\n if (this.minWidth != null) {\n actualWidth = Math.max(actualWidth, this.minWidth);\n }\n\n if (this.maxWidth != null) {\n actualWidth = Math.min(actualWidth, this.maxWidth);\n }\n\n if (this.actualWidth !== actualWidth) {\n // disable flex for this column if it was manually resized.\n this.actualWidth = actualWidth;\n\n if (this.flex && source !== 'flex' && source !== 'gridInitializing') {\n this.flex = null;\n }\n\n if (!silent) {\n this.fireColumnWidthChangedEvent(source);\n }\n }\n };\n\n Column.prototype.fireColumnWidthChangedEvent = function (source) {\n this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_WIDTH_CHANGED, source));\n };\n\n Column.prototype.isGreaterThanMax = function (width) {\n if (this.maxWidth != null) {\n return width > this.maxWidth;\n }\n\n return false;\n };\n\n Column.prototype.getMinWidth = function () {\n return this.minWidth;\n };\n\n Column.prototype.getMaxWidth = function () {\n return this.maxWidth;\n };\n\n Column.prototype.getFlex = function () {\n return this.flex || 0;\n }; // this method should only be used by the columnModel to\n // change flex when required by the setColumnState method.\n\n\n Column.prototype.setFlex = function (flex) {\n if (this.flex !== flex) {\n this.flex = flex;\n }\n };\n\n Column.prototype.setMinimum = function (source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (exists(this.minWidth)) {\n this.setActualWidth(this.minWidth, source);\n }\n };\n\n Column.prototype.setRowGroupActive = function (rowGroup, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (this.rowGroupActive !== rowGroup) {\n this.rowGroupActive = rowGroup;\n this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_ROW_GROUP_CHANGED, source));\n }\n };\n /** Returns `true` if row group is currently active for this column. */\n\n\n Column.prototype.isRowGroupActive = function () {\n return this.rowGroupActive;\n };\n\n Column.prototype.setPivotActive = function (pivot, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (this.pivotActive !== pivot) {\n this.pivotActive = pivot;\n this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_PIVOT_CHANGED, source));\n }\n };\n /** Returns `true` if pivot is currently active for this column. */\n\n\n Column.prototype.isPivotActive = function () {\n return this.pivotActive;\n };\n\n Column.prototype.isAnyFunctionActive = function () {\n return this.isPivotActive() || this.isRowGroupActive() || this.isValueActive();\n };\n\n Column.prototype.isAnyFunctionAllowed = function () {\n return this.isAllowPivot() || this.isAllowRowGroup() || this.isAllowValue();\n };\n\n Column.prototype.setValueActive = function (value, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (this.aggregationActive !== value) {\n this.aggregationActive = value;\n this.eventService.dispatchEvent(this.createColumnEvent(Column.EVENT_VALUE_CHANGED, source));\n }\n };\n /** Returns `true` if value (aggregation) is currently active for this column. */\n\n\n Column.prototype.isValueActive = function () {\n return this.aggregationActive;\n };\n\n Column.prototype.isAllowPivot = function () {\n return this.colDef.enablePivot === true;\n };\n\n Column.prototype.isAllowValue = function () {\n return this.colDef.enableValue === true;\n };\n\n Column.prototype.isAllowRowGroup = function () {\n return this.colDef.enableRowGroup === true;\n };\n\n Column.prototype.getMenuTabs = function (defaultValues) {\n var menuTabs = this.getColDef().menuTabs;\n\n if (menuTabs == null) {\n menuTabs = defaultValues;\n }\n\n return menuTabs;\n }; // this used to be needed, as previous version of ag-grid had lockPosition as column state,\n // so couldn't depend on colDef version.\n\n\n Column.prototype.isLockPosition = function () {\n console.warn('AG Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead.');\n return this.colDef ? !!this.colDef.lockPosition : false;\n }; // this used to be needed, as previous version of ag-grid had lockVisible as column state,\n // so couldn't depend on colDef version.\n\n\n Column.prototype.isLockVisible = function () {\n console.warn('AG Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead.');\n return this.colDef ? !!this.colDef.lockVisible : false;\n }; // this used to be needed, as previous version of ag-grid had lockPinned as column state,\n // so couldn't depend on colDef version.\n\n\n Column.prototype.isLockPinned = function () {\n console.warn('AG Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead.');\n return this.colDef ? !!this.colDef.lockPinned : false;\n }; // + renderedHeaderCell - for making header cell transparent when moving\n\n\n Column.EVENT_MOVING_CHANGED = 'movingChanged'; // + renderedCell - changing left position\n\n Column.EVENT_LEFT_CHANGED = 'leftChanged'; // + renderedCell - changing width\n\n Column.EVENT_WIDTH_CHANGED = 'widthChanged'; // + renderedCell - for changing pinned classes\n\n Column.EVENT_LAST_LEFT_PINNED_CHANGED = 'lastLeftPinnedChanged';\n Column.EVENT_FIRST_RIGHT_PINNED_CHANGED = 'firstRightPinnedChanged'; // + renderedColumn - for changing visibility icon\n\n Column.EVENT_VISIBLE_CHANGED = 'visibleChanged'; // + every time the filter changes, used in the floating filters\n\n Column.EVENT_FILTER_CHANGED = 'filterChanged'; // + renderedHeaderCell - marks the header with filter icon\n\n Column.EVENT_FILTER_ACTIVE_CHANGED = 'filterActiveChanged'; // + renderedHeaderCell - marks the header with sort icon\n\n Column.EVENT_SORT_CHANGED = 'sortChanged'; // + renderedHeaderCell - marks the header with sort icon\n\n Column.EVENT_COL_DEF_CHANGED = 'colDefChanged';\n Column.EVENT_MENU_VISIBLE_CHANGED = 'menuVisibleChanged'; // + toolpanel, for gui updates\n\n Column.EVENT_ROW_GROUP_CHANGED = 'columnRowGroupChanged'; // + toolpanel, for gui updates\n\n Column.EVENT_PIVOT_CHANGED = 'columnPivotChanged'; // + toolpanel, for gui updates\n\n Column.EVENT_VALUE_CHANGED = 'columnValueChanged';\n\n __decorate$2z([Autowired('gridOptionsWrapper')], Column.prototype, \"gridOptionsWrapper\", void 0);\n\n __decorate$2z([Autowired('columnUtils')], Column.prototype, \"columnUtils\", void 0);\n\n __decorate$2z([PostConstruct], Column.prototype, \"initialise\", null);\n\n return Column;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nfunction firstExistingValue() {\n var values = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n values[_i] = arguments[_i];\n }\n\n for (var i = 0; i < values.length; i++) {\n var value = values[i];\n\n if (exists(value)) {\n return value;\n }\n }\n\n return null;\n}\n\nfunction existsAndNotEmpty(value) {\n return value != null && value.length > 0;\n}\n\nfunction last(arr) {\n if (!arr || !arr.length) {\n return;\n }\n\n return arr[arr.length - 1];\n}\n\nfunction areEqual(a, b, comparator) {\n if (a == null && b == null) {\n return true;\n }\n\n return a != null && b != null && a.length === b.length && a.every(function (value, index) {\n return comparator ? comparator(value, b[index]) : b[index] === value;\n });\n}\n/** @deprecated */\n\n\nfunction compareArrays(array1, array2) {\n return areEqual(array1, array2);\n}\n/** @deprecated */\n\n\nfunction shallowCompare(arr1, arr2) {\n return areEqual(arr1, arr2);\n}\n\nfunction sortNumerically(array) {\n return array.sort(function (a, b) {\n return a - b;\n });\n}\n\nfunction removeRepeatsFromArray(array, object) {\n if (!array) {\n return;\n }\n\n for (var index = array.length - 2; index >= 0; index--) {\n var thisOneMatches = array[index] === object;\n var nextOneMatches = array[index + 1] === object;\n\n if (thisOneMatches && nextOneMatches) {\n array.splice(index + 1, 1);\n }\n }\n}\n\nfunction removeFromArray(array, object) {\n var index = array.indexOf(object);\n\n if (index >= 0) {\n array.splice(index, 1);\n }\n}\n\nfunction removeAllFromArray(array, toRemove) {\n toRemove.forEach(function (item) {\n return removeFromArray(array, item);\n });\n}\n\nfunction insertIntoArray(array, object, toIndex) {\n array.splice(toIndex, 0, object);\n}\n\nfunction insertArrayIntoArray(dest, src, toIndex) {\n if (dest == null || src == null) {\n return;\n } // put items in backwards, otherwise inserted items end up in reverse order\n\n\n for (var i = src.length - 1; i >= 0; i--) {\n var item = src[i];\n insertIntoArray(dest, item, toIndex);\n }\n}\n\nfunction moveInArray(array, objectsToMove, toIndex) {\n // first take out items from the array\n removeAllFromArray(array, objectsToMove); // now add the objects, in same order as provided to us, that means we start at the end\n // as the objects will be pushed to the right as they are inserted\n\n objectsToMove.slice().reverse().forEach(function (obj) {\n return insertIntoArray(array, obj, toIndex);\n });\n}\n\nfunction includes(array, value) {\n return array.indexOf(value) > -1;\n}\n\nfunction flatten(arrayOfArrays) {\n return [].concat.apply([], arrayOfArrays);\n}\n\nfunction pushAll(target, source) {\n if (source == null || target == null) {\n return;\n }\n\n source.forEach(function (value) {\n return target.push(value);\n });\n}\n\nfunction toStrings(array) {\n return array.map(toStringOrNull);\n}\n\nfunction forEachReverse(list, action) {\n if (list == null) {\n return;\n }\n\n for (var i = list.length - 1; i >= 0; i--) {\n action(list[i], i);\n }\n}\n\nvar ArrayUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n firstExistingValue: firstExistingValue,\n existsAndNotEmpty: existsAndNotEmpty,\n last: last,\n areEqual: areEqual,\n compareArrays: compareArrays,\n shallowCompare: shallowCompare,\n sortNumerically: sortNumerically,\n removeRepeatsFromArray: removeRepeatsFromArray,\n removeFromArray: removeFromArray,\n removeAllFromArray: removeAllFromArray,\n insertIntoArray: insertIntoArray,\n insertArrayIntoArray: insertArrayIntoArray,\n moveInArray: moveInArray,\n includes: includes,\n flatten: flatten,\n pushAll: pushAll,\n toStrings: toStrings,\n forEachReverse: forEachReverse\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nvar __decorate$2y = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ColumnGroup =\n/** @class */\nfunction () {\n function ColumnGroup(providedColumnGroup, groupId, instanceId, pinned) {\n // depends on the open/closed state of the group, only displaying columns are stored here\n this.displayedChildren = [];\n this.localEventService = new EventService();\n this.groupId = groupId;\n this.instanceId = instanceId;\n this.providedColumnGroup = providedColumnGroup;\n this.pinned = pinned;\n } // this is static, a it is used outside of this class\n\n\n ColumnGroup.createUniqueId = function (groupId, instanceId) {\n return groupId + '_' + instanceId;\n }; // as the user is adding and removing columns, the groups are recalculated.\n // this reset clears out all children, ready for children to be added again\n\n\n ColumnGroup.prototype.reset = function () {\n this.parent = null;\n this.children = null;\n this.displayedChildren = null;\n };\n\n ColumnGroup.prototype.getParent = function () {\n return this.parent;\n };\n\n ColumnGroup.prototype.setParent = function (parent) {\n this.parent = parent;\n };\n\n ColumnGroup.prototype.getUniqueId = function () {\n return ColumnGroup.createUniqueId(this.groupId, this.instanceId);\n };\n\n ColumnGroup.prototype.isEmptyGroup = function () {\n return this.displayedChildren.length === 0;\n };\n\n ColumnGroup.prototype.isMoving = function () {\n var allLeafColumns = this.getProvidedColumnGroup().getLeafColumns();\n\n if (!allLeafColumns || allLeafColumns.length === 0) {\n return false;\n }\n\n return allLeafColumns.every(function (col) {\n return col.isMoving();\n });\n };\n\n ColumnGroup.prototype.checkLeft = function () {\n // first get all children to setLeft, as it impacts our decision below\n this.displayedChildren.forEach(function (child) {\n if (child instanceof ColumnGroup) {\n child.checkLeft();\n }\n }); // set our left based on first displayed column\n\n if (this.displayedChildren.length > 0) {\n if (this.gridOptionsWrapper.isEnableRtl()) {\n var lastChild = last(this.displayedChildren);\n var lastChildLeft = lastChild.getLeft();\n this.setLeft(lastChildLeft);\n } else {\n var firstChildLeft = this.displayedChildren[0].getLeft();\n this.setLeft(firstChildLeft);\n }\n } else {\n // this should never happen, as if we have no displayed columns, then\n // this groups should not even exist.\n this.setLeft(null);\n }\n };\n\n ColumnGroup.prototype.getLeft = function () {\n return this.left;\n };\n\n ColumnGroup.prototype.getOldLeft = function () {\n return this.oldLeft;\n };\n\n ColumnGroup.prototype.setLeft = function (left) {\n this.oldLeft = left;\n\n if (this.left !== left) {\n this.left = left;\n this.localEventService.dispatchEvent(this.createAgEvent(ColumnGroup.EVENT_LEFT_CHANGED));\n }\n };\n\n ColumnGroup.prototype.getPinned = function () {\n return this.pinned;\n };\n\n ColumnGroup.prototype.createAgEvent = function (type) {\n return {\n type: type\n };\n };\n\n ColumnGroup.prototype.addEventListener = function (eventType, listener) {\n this.localEventService.addEventListener(eventType, listener);\n };\n\n ColumnGroup.prototype.removeEventListener = function (eventType, listener) {\n this.localEventService.removeEventListener(eventType, listener);\n };\n\n ColumnGroup.prototype.getGroupId = function () {\n return this.groupId;\n };\n\n ColumnGroup.prototype.getInstanceId = function () {\n return this.instanceId;\n };\n\n ColumnGroup.prototype.isChildInThisGroupDeepSearch = function (wantedChild) {\n var result = false;\n this.children.forEach(function (foundChild) {\n if (wantedChild === foundChild) {\n result = true;\n }\n\n if (foundChild instanceof ColumnGroup) {\n if (foundChild.isChildInThisGroupDeepSearch(wantedChild)) {\n result = true;\n }\n }\n });\n return result;\n };\n\n ColumnGroup.prototype.getActualWidth = function () {\n var groupActualWidth = 0;\n\n if (this.displayedChildren) {\n this.displayedChildren.forEach(function (child) {\n groupActualWidth += child.getActualWidth();\n });\n }\n\n return groupActualWidth;\n };\n\n ColumnGroup.prototype.isResizable = function () {\n if (!this.displayedChildren) {\n return false;\n } // if at least one child is resizable, then the group is resizable\n\n\n var result = false;\n this.displayedChildren.forEach(function (child) {\n if (child.isResizable()) {\n result = true;\n }\n });\n return result;\n };\n\n ColumnGroup.prototype.getMinWidth = function () {\n var result = 0;\n this.displayedChildren.forEach(function (groupChild) {\n result += groupChild.getMinWidth() || 0;\n });\n return result;\n };\n\n ColumnGroup.prototype.addChild = function (child) {\n if (!this.children) {\n this.children = [];\n }\n\n this.children.push(child);\n };\n\n ColumnGroup.prototype.getDisplayedChildren = function () {\n return this.displayedChildren;\n };\n\n ColumnGroup.prototype.getLeafColumns = function () {\n var result = [];\n this.addLeafColumns(result);\n return result;\n };\n\n ColumnGroup.prototype.getDisplayedLeafColumns = function () {\n var result = [];\n this.addDisplayedLeafColumns(result);\n return result;\n }; // why two methods here doing the same thing?\n\n\n ColumnGroup.prototype.getDefinition = function () {\n return this.providedColumnGroup.getColGroupDef();\n };\n\n ColumnGroup.prototype.getColGroupDef = function () {\n return this.providedColumnGroup.getColGroupDef();\n };\n\n ColumnGroup.prototype.isPadding = function () {\n return this.providedColumnGroup.isPadding();\n };\n\n ColumnGroup.prototype.isExpandable = function () {\n return this.providedColumnGroup.isExpandable();\n };\n\n ColumnGroup.prototype.isExpanded = function () {\n return this.providedColumnGroup.isExpanded();\n };\n\n ColumnGroup.prototype.setExpanded = function (expanded) {\n this.providedColumnGroup.setExpanded(expanded);\n };\n\n ColumnGroup.prototype.addDisplayedLeafColumns = function (leafColumns) {\n this.displayedChildren.forEach(function (child) {\n if (child instanceof Column) {\n leafColumns.push(child);\n } else if (child instanceof ColumnGroup) {\n child.addDisplayedLeafColumns(leafColumns);\n }\n });\n };\n\n ColumnGroup.prototype.addLeafColumns = function (leafColumns) {\n this.children.forEach(function (child) {\n if (child instanceof Column) {\n leafColumns.push(child);\n } else if (child instanceof ColumnGroup) {\n child.addLeafColumns(leafColumns);\n }\n });\n };\n\n ColumnGroup.prototype.getChildren = function () {\n return this.children;\n };\n\n ColumnGroup.prototype.getColumnGroupShow = function () {\n return this.providedColumnGroup.getColumnGroupShow();\n };\n\n ColumnGroup.prototype.getProvidedColumnGroup = function () {\n return this.providedColumnGroup;\n };\n /** @deprecated getOriginalColumnGroup is deprecated, use getOriginalColumnGroup. */\n\n\n ColumnGroup.prototype.getOriginalColumnGroup = function () {\n console.warn('AG Grid: columnGroup.getOriginalColumnGroup() is deprecated due to a method rename, use columnGroup.getProvidedColumnGroup() instead');\n return this.getProvidedColumnGroup();\n };\n\n ColumnGroup.prototype.getPaddingLevel = function () {\n var parent = this.getParent();\n\n if (!this.isPadding() || !parent || !parent.isPadding()) {\n return 0;\n }\n\n return 1 + parent.getPaddingLevel();\n };\n\n ColumnGroup.prototype.calculateDisplayedColumns = function () {\n var _this = this; // clear out last time we calculated\n\n\n this.displayedChildren = []; // find the column group that is controlling expandable. this is relevant when we have padding (empty)\n // groups, where the expandable is actually the first parent that is not a padding group.\n\n var parentWithExpansion = this;\n\n while (parentWithExpansion != null && parentWithExpansion.isPadding()) {\n parentWithExpansion = parentWithExpansion.getParent();\n }\n\n var isExpandable = parentWithExpansion ? parentWithExpansion.providedColumnGroup.isExpandable() : false; // it not expandable, everything is visible\n\n if (!isExpandable) {\n this.displayedChildren = this.children;\n this.localEventService.dispatchEvent(this.createAgEvent(ColumnGroup.EVENT_DISPLAYED_CHILDREN_CHANGED));\n return;\n } // Add cols based on columnGroupShow\n // Note - the below also adds padding groups, these are always added because they never have\n // colDef.columnGroupShow set.\n\n\n this.children.forEach(function (child) {\n // never add empty groups\n var emptyGroup = child instanceof ColumnGroup && (!child.displayedChildren || !child.displayedChildren.length);\n\n if (emptyGroup) {\n return;\n }\n\n var headerGroupShow = child.getColumnGroupShow();\n\n switch (headerGroupShow) {\n case ColumnGroup.HEADER_GROUP_SHOW_OPEN:\n // when set to open, only show col if group is open\n if (parentWithExpansion.providedColumnGroup.isExpanded()) {\n _this.displayedChildren.push(child);\n }\n\n break;\n\n case ColumnGroup.HEADER_GROUP_SHOW_CLOSED:\n // when set to open, only show col if group is open\n if (!parentWithExpansion.providedColumnGroup.isExpanded()) {\n _this.displayedChildren.push(child);\n }\n\n break;\n\n default:\n _this.displayedChildren.push(child);\n\n break;\n }\n });\n this.localEventService.dispatchEvent(this.createAgEvent(ColumnGroup.EVENT_DISPLAYED_CHILDREN_CHANGED));\n };\n\n ColumnGroup.HEADER_GROUP_SHOW_OPEN = 'open';\n ColumnGroup.HEADER_GROUP_SHOW_CLOSED = 'closed';\n ColumnGroup.EVENT_LEFT_CHANGED = 'leftChanged';\n ColumnGroup.EVENT_DISPLAYED_CHILDREN_CHANGED = 'displayedChildrenChanged';\n\n __decorate$2y([Autowired('gridOptionsWrapper')], ColumnGroup.prototype, \"gridOptionsWrapper\", void 0);\n\n return ColumnGroup;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar ProvidedColumnGroup =\n/** @class */\nfunction () {\n function ProvidedColumnGroup(colGroupDef, groupId, padding, level) {\n this.localEventService = new EventService();\n this.expandable = false;\n this.colGroupDef = colGroupDef;\n this.groupId = groupId;\n this.expanded = !!colGroupDef && !!colGroupDef.openByDefault;\n this.padding = padding;\n this.level = level;\n }\n\n ProvidedColumnGroup.prototype.setOriginalParent = function (originalParent) {\n this.originalParent = originalParent;\n };\n\n ProvidedColumnGroup.prototype.getOriginalParent = function () {\n return this.originalParent;\n };\n\n ProvidedColumnGroup.prototype.getLevel = function () {\n return this.level;\n };\n\n ProvidedColumnGroup.prototype.isVisible = function () {\n // return true if at least one child is visible\n if (this.children) {\n return this.children.some(function (child) {\n return child.isVisible();\n });\n }\n\n return false;\n };\n\n ProvidedColumnGroup.prototype.isPadding = function () {\n return this.padding;\n };\n\n ProvidedColumnGroup.prototype.setExpanded = function (expanded) {\n this.expanded = expanded === undefined ? false : expanded;\n var event = {\n type: ProvidedColumnGroup.EVENT_EXPANDED_CHANGED\n };\n this.localEventService.dispatchEvent(event);\n };\n\n ProvidedColumnGroup.prototype.isExpandable = function () {\n return this.expandable;\n };\n\n ProvidedColumnGroup.prototype.isExpanded = function () {\n return this.expanded;\n };\n\n ProvidedColumnGroup.prototype.getGroupId = function () {\n return this.groupId;\n };\n\n ProvidedColumnGroup.prototype.getId = function () {\n return this.getGroupId();\n };\n\n ProvidedColumnGroup.prototype.setChildren = function (children) {\n this.children = children;\n };\n\n ProvidedColumnGroup.prototype.getChildren = function () {\n return this.children;\n };\n\n ProvidedColumnGroup.prototype.getColGroupDef = function () {\n return this.colGroupDef;\n };\n\n ProvidedColumnGroup.prototype.getLeafColumns = function () {\n var result = [];\n this.addLeafColumns(result);\n return result;\n };\n\n ProvidedColumnGroup.prototype.addLeafColumns = function (leafColumns) {\n if (!this.children) {\n return;\n }\n\n this.children.forEach(function (child) {\n if (child instanceof Column) {\n leafColumns.push(child);\n } else if (child instanceof ProvidedColumnGroup) {\n child.addLeafColumns(leafColumns);\n }\n });\n };\n\n ProvidedColumnGroup.prototype.getColumnGroupShow = function () {\n var colGroupDef = this.colGroupDef;\n\n if (!colGroupDef) {\n return;\n }\n\n return colGroupDef.columnGroupShow;\n }; // need to check that this group has at least one col showing when both expanded and contracted.\n // if not, then we don't allow expanding and contracting on this group\n\n\n ProvidedColumnGroup.prototype.setupExpandable = function () {\n var _this = this;\n\n this.setExpandable(); // note - we should be removing this event listener\n\n this.getLeafColumns().forEach(function (col) {\n return col.addEventListener(Column.EVENT_VISIBLE_CHANGED, _this.onColumnVisibilityChanged.bind(_this));\n });\n };\n\n ProvidedColumnGroup.prototype.setExpandable = function () {\n if (this.isPadding()) {\n return;\n } // want to make sure the group doesn't disappear when it's open\n\n\n var atLeastOneShowingWhenOpen = false; // want to make sure the group doesn't disappear when it's closed\n\n var atLeastOneShowingWhenClosed = false; // want to make sure the group has something to show / hide\n\n var atLeastOneChangeable = false;\n var children = this.findChildrenRemovingPadding();\n\n for (var i = 0, j = children.length; i < j; i++) {\n var abstractColumn = children[i];\n\n if (!abstractColumn.isVisible()) {\n continue;\n } // if the abstractColumn is a grid generated group, there will be no colDef\n\n\n var headerGroupShow = abstractColumn.getColumnGroupShow();\n\n if (headerGroupShow === ColumnGroup.HEADER_GROUP_SHOW_OPEN) {\n atLeastOneShowingWhenOpen = true;\n atLeastOneChangeable = true;\n } else if (headerGroupShow === ColumnGroup.HEADER_GROUP_SHOW_CLOSED) {\n atLeastOneShowingWhenClosed = true;\n atLeastOneChangeable = true;\n } else {\n atLeastOneShowingWhenOpen = true;\n atLeastOneShowingWhenClosed = true;\n }\n }\n\n var expandable = atLeastOneShowingWhenOpen && atLeastOneShowingWhenClosed && atLeastOneChangeable;\n\n if (this.expandable !== expandable) {\n this.expandable = expandable;\n var event_1 = {\n type: ProvidedColumnGroup.EVENT_EXPANDABLE_CHANGED\n };\n this.localEventService.dispatchEvent(event_1);\n }\n };\n\n ProvidedColumnGroup.prototype.findChildrenRemovingPadding = function () {\n var res = [];\n\n var process = function process(items) {\n items.forEach(function (item) {\n // if padding, we add this children instead of the padding\n var skipBecausePadding = item instanceof ProvidedColumnGroup && item.isPadding();\n\n if (skipBecausePadding) {\n process(item.children);\n } else {\n res.push(item);\n }\n });\n };\n\n process(this.children);\n return res;\n };\n\n ProvidedColumnGroup.prototype.onColumnVisibilityChanged = function () {\n this.setExpandable();\n };\n\n ProvidedColumnGroup.prototype.addEventListener = function (eventType, listener) {\n this.localEventService.addEventListener(eventType, listener);\n };\n\n ProvidedColumnGroup.prototype.removeEventListener = function (eventType, listener) {\n this.localEventService.removeEventListener(eventType, listener);\n };\n\n ProvidedColumnGroup.EVENT_EXPANDED_CHANGED = 'expandedChanged';\n ProvidedColumnGroup.EVENT_EXPANDABLE_CHANGED = 'expandableChanged';\n return ProvidedColumnGroup;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar DefaultColumnTypes = {\n numericColumn: {\n headerClass: 'ag-right-aligned-header',\n cellClass: 'ag-right-aligned-cell'\n },\n rightAligned: {\n headerClass: 'ag-right-aligned-header',\n cellClass: 'ag-right-aligned-cell'\n }\n};\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nvar AG_GRID_STOP_PROPAGATION = '__ag_Grid_Stop_Propagation';\nvar PASSIVE_EVENTS$1 = ['touchstart', 'touchend', 'touchmove', 'touchcancel'];\nvar supports = {};\n/**\n * a user once raised an issue - they said that when you opened a popup (eg context menu)\n * and then clicked on a selection checkbox, the popup wasn't closed. this is because the\n * popup listens for clicks on the body, however ag-grid WAS stopping propagation on the\n * checkbox clicks (so the rows didn't pick them up as row selection selection clicks).\n * to get around this, we have a pattern to stop propagation for the purposes of AG Grid,\n * but we still let the event pass back to the body.\n * @param {Event} event\n */\n\nfunction stopPropagationForAgGrid(event) {\n event[AG_GRID_STOP_PROPAGATION] = true;\n}\n\nfunction isStopPropagationForAgGrid(event) {\n return event[AG_GRID_STOP_PROPAGATION] === true;\n}\n\nvar isEventSupported = function () {\n var tags = {\n select: 'input',\n change: 'input',\n submit: 'form',\n reset: 'form',\n error: 'img',\n load: 'img',\n abort: 'img'\n };\n\n var eventChecker = function eventChecker(eventName) {\n if (typeof supports[eventName] === 'boolean') {\n return supports[eventName];\n }\n\n var el = document.createElement(tags[eventName] || 'div');\n eventName = 'on' + eventName;\n return supports[eventName] = eventName in el;\n };\n\n return eventChecker;\n}();\n\nfunction getCtrlForEvent(gridOptionsWrapper, event, type) {\n var sourceElement = event.target;\n\n while (sourceElement) {\n var renderedComp = gridOptionsWrapper.getDomData(sourceElement, type);\n\n if (renderedComp) {\n return renderedComp;\n }\n\n sourceElement = sourceElement.parentElement;\n }\n\n return null;\n}\n/**\n * @deprecated\n * Adds all type of change listeners to an element, intended to be a text field\n * @param {HTMLElement} element\n * @param {EventListener} listener\n */\n\n\nfunction addChangeListener(element, listener) {\n element.addEventListener('changed', listener);\n element.addEventListener('paste', listener);\n element.addEventListener('input', listener);\n}\n\nfunction isElementInEventPath(element, event) {\n if (!event || !element) {\n return false;\n }\n\n return getEventPath(event).indexOf(element) >= 0;\n}\n\nfunction createEventPath(event) {\n var res = [];\n var pointer = event.target;\n\n while (pointer) {\n res.push(pointer);\n pointer = pointer.parentElement;\n }\n\n return res;\n}\n/**\n * firefox doesn't have event.path set, or any alternative to it, so we hack\n * it in. this is needed as it's to late to work out the path when the item is\n * removed from the dom. used by MouseEventService, where it works out if a click\n * was from the current grid, or a detail grid (master / detail).\n * @param {Event} event\n */\n\n\nfunction addAgGridEventPath(event) {\n event.__agGridEventPath = getEventPath(event);\n}\n/**\n * Gets the path for an Event.\n * https://stackoverflow.com/questions/39245488/event-path-undefined-with-firefox-and-vue-js\n * https://developer.mozilla.org/en-US/docs/Web/API/Event\n * @param {Event} event\n * @returns {EventTarget[]}\n */\n\n\nfunction getEventPath(event) {\n var eventNoType = event;\n\n if (eventNoType.path) {\n // Chrome supports path\n return eventNoType.path;\n }\n\n if (eventNoType.composedPath) {\n // Firefox supports composePath\n return eventNoType.composedPath();\n }\n\n if (eventNoType.__agGridEventPath) {\n // Firefox supports composePath\n return eventNoType.__agGridEventPath;\n } // and finally, if none of the above worked,\n // we create the path ourselves\n\n\n return createEventPath(event);\n}\n\nfunction addSafePassiveEventListener(frameworkOverrides, eElement, event, listener) {\n var isPassive = includes(PASSIVE_EVENTS$1, event);\n var options = isPassive ? {\n passive: true\n } : undefined; // this check is here for certain scenarios where I believe the user must be destroying\n // the grid somehow but continuing for it to be used\n\n if (frameworkOverrides && frameworkOverrides.addEventListener) {\n frameworkOverrides.addEventListener(eElement, event, listener, options);\n }\n}\n\nvar EventUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n stopPropagationForAgGrid: stopPropagationForAgGrid,\n isStopPropagationForAgGrid: isStopPropagationForAgGrid,\n isEventSupported: isEventSupported,\n getCtrlForEvent: getCtrlForEvent,\n addChangeListener: addChangeListener,\n isElementInEventPath: isElementInEventPath,\n createEventPath: createEventPath,\n addAgGridEventPath: addAgGridEventPath,\n getEventPath: getEventPath,\n addSafePassiveEventListener: addSafePassiveEventListener\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nvar __decorate$2x = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar BeanStub =\n/** @class */\nfunction () {\n function BeanStub() {\n var _this = this;\n\n this.destroyFunctions = [];\n this.destroyed = false; // for vue 3 - prevents Vue from trying to make this (and obviously any sub classes) from being reactive\n // prevents vue from creating proxies for created objects and prevents identity related issues\n\n this.__v_skip = true;\n\n this.isAlive = function () {\n return !_this.destroyed;\n };\n } // this was a test constructor niall built, when active, it prints after 5 seconds all beans/components that are\n // not destroyed. to use, create a new grid, then api.destroy() before 5 seconds. then anything that gets printed\n // points to a bean or component that was not properly disposed of.\n // constructor() {\n // setTimeout(()=> {\n // if (this.isAlive()) {\n // let prototype: any = Object.getPrototypeOf(this);\n // const constructor: any = prototype.constructor;\n // const constructorString = constructor.toString();\n // const beanName = constructorString.substring(9, constructorString.indexOf(\"(\"));\n // console.log('is alive ' + beanName);\n // }\n // }, 5000);\n // }\n // CellComp and GridComp and override this because they get the FrameworkOverrides from the Beans bean\n\n\n BeanStub.prototype.getFrameworkOverrides = function () {\n return this.frameworkOverrides;\n };\n\n BeanStub.prototype.getContext = function () {\n return this.context;\n };\n\n BeanStub.prototype.destroy = function () {\n // let prototype: any = Object.getPrototypeOf(this);\n // const constructor: any = prototype.constructor;\n // const constructorString = constructor.toString();\n // const beanName = constructorString.substring(9, constructorString.indexOf(\"(\"));\n this.destroyFunctions.forEach(function (func) {\n return func();\n });\n this.destroyFunctions.length = 0;\n this.destroyed = true;\n this.dispatchEvent({\n type: BeanStub.EVENT_DESTROYED\n });\n };\n\n BeanStub.prototype.addEventListener = function (eventType, listener) {\n if (!this.localEventService) {\n this.localEventService = new EventService();\n }\n\n this.localEventService.addEventListener(eventType, listener);\n };\n\n BeanStub.prototype.removeEventListener = function (eventType, listener) {\n if (this.localEventService) {\n this.localEventService.removeEventListener(eventType, listener);\n }\n };\n\n BeanStub.prototype.dispatchEventAsync = function (event) {\n var _this = this;\n\n window.setTimeout(function () {\n return _this.dispatchEvent(event);\n }, 0);\n };\n\n BeanStub.prototype.dispatchEvent = function (event) {\n if (this.localEventService) {\n this.localEventService.dispatchEvent(event);\n }\n };\n\n BeanStub.prototype.addManagedListener = function (object, event, listener) {\n var _this = this;\n\n if (this.destroyed) {\n return;\n }\n\n if (object instanceof HTMLElement) {\n addSafePassiveEventListener(this.getFrameworkOverrides(), object, event, listener);\n } else {\n object.addEventListener(event, listener);\n }\n\n var destroyFunc = function destroyFunc() {\n object.removeEventListener(event, listener);\n _this.destroyFunctions = _this.destroyFunctions.filter(function (fn) {\n return fn !== destroyFunc;\n });\n return null;\n };\n\n this.destroyFunctions.push(destroyFunc);\n return destroyFunc;\n };\n\n BeanStub.prototype.addDestroyFunc = function (func) {\n // if we are already destroyed, we execute the func now\n if (this.isAlive()) {\n this.destroyFunctions.push(func);\n } else {\n func();\n }\n };\n\n BeanStub.prototype.createManagedBean = function (bean, context) {\n var res = this.createBean(bean, context);\n this.addDestroyFunc(this.destroyBean.bind(this, bean, context));\n return res;\n };\n\n BeanStub.prototype.createBean = function (bean, context, afterPreCreateCallback) {\n return (context || this.getContext()).createBean(bean, afterPreCreateCallback);\n };\n\n BeanStub.prototype.destroyBean = function (bean, context) {\n return (context || this.getContext()).destroyBean(bean);\n };\n\n BeanStub.prototype.destroyBeans = function (beans, context) {\n var _this = this;\n\n if (beans) {\n beans.forEach(function (bean) {\n return _this.destroyBean(bean, context);\n });\n }\n\n return [];\n };\n\n BeanStub.EVENT_DESTROYED = 'destroyed';\n\n __decorate$2x([Autowired('frameworkOverrides')], BeanStub.prototype, \"frameworkOverrides\", void 0);\n\n __decorate$2x([Autowired('context')], BeanStub.prototype, \"context\", void 0);\n\n __decorate$2x([Autowired('eventService')], BeanStub.prototype, \"eventService\", void 0);\n\n __decorate$2x([Autowired('gridOptionsWrapper')], BeanStub.prototype, \"gridOptionsWrapper\", void 0);\n\n __decorate$2x([PreDestroy], BeanStub.prototype, \"destroy\", null);\n\n return BeanStub;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2U = undefined && undefined.__extends || function () {\n var _extendStatics = function extendStatics(d, b) {\n _extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics(d, b);\n };\n\n return function (d, b) {\n _extendStatics(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2w = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __param$9 = undefined && undefined.__param || function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n}; // takes ColDefs and ColGroupDefs and turns them into Columns and OriginalGroups\n\n\nvar ColumnFactory =\n/** @class */\nfunction (_super) {\n __extends$2U(ColumnFactory, _super);\n\n function ColumnFactory() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n ColumnFactory.prototype.setBeans = function (loggerFactory) {\n this.logger = loggerFactory.create('ColumnFactory');\n };\n\n ColumnFactory.prototype.createColumnTree = function (defs, primaryColumns, existingTree) {\n // column key creator dishes out unique column id's in a deterministic way,\n // so if we have two grids (that could be master/slave) with same column definitions,\n // then this ensures the two grids use identical id's.\n var columnKeyCreator = new ColumnKeyCreator();\n\n var _a = this.extractExistingTreeData(existingTree),\n existingCols = _a.existingCols,\n existingGroups = _a.existingGroups,\n existingColKeys = _a.existingColKeys;\n\n columnKeyCreator.addExistingKeys(existingColKeys); // create am unbalanced tree that maps the provided definitions\n\n var unbalancedTree = this.recursivelyCreateColumns(defs, 0, primaryColumns, existingCols, columnKeyCreator, existingGroups);\n var treeDept = this.findMaxDept(unbalancedTree, 0);\n this.logger.log('Number of levels for grouped columns is ' + treeDept);\n var columnTree = this.balanceColumnTree(unbalancedTree, 0, treeDept, columnKeyCreator);\n\n var deptFirstCallback = function deptFirstCallback(child, parent) {\n if (child instanceof ProvidedColumnGroup) {\n child.setupExpandable();\n } // we set the original parents at the end, rather than when we go along, as balancing the tree\n // adds extra levels into the tree. so we can only set parents when balancing is done.\n\n\n child.setOriginalParent(parent);\n };\n\n this.columnUtils.depthFirstOriginalTreeSearch(null, columnTree, deptFirstCallback);\n return {\n columnTree: columnTree,\n treeDept: treeDept\n };\n };\n\n ColumnFactory.prototype.extractExistingTreeData = function (existingTree) {\n var existingCols = [];\n var existingGroups = [];\n var existingColKeys = [];\n\n if (existingTree) {\n this.columnUtils.depthFirstOriginalTreeSearch(null, existingTree, function (item) {\n if (item instanceof ProvidedColumnGroup) {\n var group = item;\n existingGroups.push(group);\n } else {\n var col = item;\n existingColKeys.push(col.getId());\n existingCols.push(col);\n }\n });\n }\n\n return {\n existingCols: existingCols,\n existingGroups: existingGroups,\n existingColKeys: existingColKeys\n };\n };\n\n ColumnFactory.prototype.createForAutoGroups = function (autoGroupCols, gridBalancedTree) {\n var _this = this;\n\n return autoGroupCols.map(function (col) {\n return _this.createAutoGroupTreeItem(gridBalancedTree, col);\n });\n };\n\n ColumnFactory.prototype.createAutoGroupTreeItem = function (balancedColumnTree, column) {\n var dept = this.findDepth(balancedColumnTree); // at the end, this will be the top of the tree item.\n\n var nextChild = column;\n\n for (var i = dept - 1; i >= 0; i--) {\n var autoGroup = new ProvidedColumnGroup(null, \"FAKE_PATH_\" + column.getId() + \"}_\" + i, true, i);\n this.context.createBean(autoGroup);\n autoGroup.setChildren([nextChild]);\n nextChild.setOriginalParent(autoGroup);\n nextChild = autoGroup;\n } // at this point, the nextChild is the top most item in the tree\n\n\n return nextChild;\n };\n\n ColumnFactory.prototype.findDepth = function (balancedColumnTree) {\n var dept = 0;\n var pointer = balancedColumnTree;\n\n while (pointer && pointer[0] && pointer[0] instanceof ProvidedColumnGroup) {\n dept++;\n pointer = pointer[0].getChildren();\n }\n\n return dept;\n };\n\n ColumnFactory.prototype.balanceColumnTree = function (unbalancedTree, currentDept, columnDept, columnKeyCreator) {\n var result = []; // go through each child, for groups, recurse a level deeper,\n // for columns we need to pad\n\n for (var i = 0; i < unbalancedTree.length; i++) {\n var child = unbalancedTree[i];\n\n if (child instanceof ProvidedColumnGroup) {\n // child is a group, all we do is go to the next level of recursion\n var originalGroup = child;\n var newChildren = this.balanceColumnTree(originalGroup.getChildren(), currentDept + 1, columnDept, columnKeyCreator);\n originalGroup.setChildren(newChildren);\n result.push(originalGroup);\n } else {\n // child is a column - so here we add in the padded column groups if needed\n var firstPaddedGroup = void 0;\n var currentPaddedGroup = void 0; // this for loop will NOT run any loops if no padded column groups are needed\n\n for (var j = columnDept - 1; j >= currentDept; j--) {\n var newColId = columnKeyCreator.getUniqueKey(null, null);\n var colGroupDefMerged = this.createMergedColGroupDef(null);\n var paddedGroup = new ProvidedColumnGroup(colGroupDefMerged, newColId, true, currentDept);\n this.context.createBean(paddedGroup);\n\n if (currentPaddedGroup) {\n currentPaddedGroup.setChildren([paddedGroup]);\n }\n\n currentPaddedGroup = paddedGroup;\n\n if (!firstPaddedGroup) {\n firstPaddedGroup = currentPaddedGroup;\n }\n } // likewise this if statement will not run if no padded groups\n\n\n if (firstPaddedGroup && currentPaddedGroup) {\n result.push(firstPaddedGroup);\n var hasGroups = unbalancedTree.some(function (leaf) {\n return leaf instanceof ProvidedColumnGroup;\n });\n\n if (hasGroups) {\n currentPaddedGroup.setChildren([child]);\n continue;\n } else {\n currentPaddedGroup.setChildren(unbalancedTree);\n break;\n }\n }\n\n result.push(child);\n }\n }\n\n return result;\n };\n\n ColumnFactory.prototype.findMaxDept = function (treeChildren, dept) {\n var maxDeptThisLevel = dept;\n\n for (var i = 0; i < treeChildren.length; i++) {\n var abstractColumn = treeChildren[i];\n\n if (abstractColumn instanceof ProvidedColumnGroup) {\n var originalGroup = abstractColumn;\n var newDept = this.findMaxDept(originalGroup.getChildren(), dept + 1);\n\n if (maxDeptThisLevel < newDept) {\n maxDeptThisLevel = newDept;\n }\n }\n }\n\n return maxDeptThisLevel;\n };\n\n ColumnFactory.prototype.recursivelyCreateColumns = function (defs, level, primaryColumns, existingColsCopy, columnKeyCreator, existingGroups) {\n var _this = this;\n\n return (defs || []).map(function (def) {\n if (_this.isColumnGroup(def)) {\n return _this.createColumnGroup(primaryColumns, def, level, existingColsCopy, columnKeyCreator, existingGroups);\n } else {\n return _this.createColumn(primaryColumns, def, existingColsCopy, columnKeyCreator);\n }\n });\n };\n\n ColumnFactory.prototype.createColumnGroup = function (primaryColumns, colGroupDef, level, existingColumns, columnKeyCreator, existingGroups) {\n var colGroupDefMerged = this.createMergedColGroupDef(colGroupDef);\n var groupId = columnKeyCreator.getUniqueKey(colGroupDefMerged.groupId || null, null);\n var providedGroup = new ProvidedColumnGroup(colGroupDefMerged, groupId, false, level);\n this.context.createBean(providedGroup);\n var existingGroup = this.findExistingGroup(colGroupDef, existingGroups); // make sure we remove, so if user provided duplicate id, then we don't have more than\n // one column instance for colDef with common id\n\n if (existingGroup) {\n removeFromArray(existingGroups, existingGroup);\n }\n\n if (existingGroup && existingGroup.isExpanded()) {\n providedGroup.setExpanded(true);\n }\n\n var children = this.recursivelyCreateColumns(colGroupDefMerged.children, level + 1, primaryColumns, existingColumns, columnKeyCreator, existingGroups);\n providedGroup.setChildren(children);\n return providedGroup;\n };\n\n ColumnFactory.prototype.createMergedColGroupDef = function (colGroupDef) {\n var colGroupDefMerged = {};\n Object.assign(colGroupDefMerged, this.gridOptionsWrapper.getDefaultColGroupDef());\n Object.assign(colGroupDefMerged, colGroupDef);\n this.checkForDeprecatedItems(colGroupDefMerged);\n return colGroupDefMerged;\n };\n\n ColumnFactory.prototype.createColumn = function (primaryColumns, colDef, existingColsCopy, columnKeyCreator) {\n var colDefMerged = this.mergeColDefs(colDef);\n this.checkForDeprecatedItems(colDefMerged); // see if column already exists\n\n var column = this.findExistingColumn(colDef, existingColsCopy); // make sure we remove, so if user provided duplicate id, then we don't have more than\n // one column instance for colDef with common id\n\n if (existingColsCopy && column) {\n removeFromArray(existingColsCopy, column);\n }\n\n if (!column) {\n // no existing column, need to create one\n var colId = columnKeyCreator.getUniqueKey(colDefMerged.colId, colDefMerged.field);\n column = new Column(colDefMerged, colDef, colId, primaryColumns);\n this.context.createBean(column);\n } else {\n column.setColDef(colDefMerged, colDef);\n this.applyColumnState(column, colDefMerged);\n }\n\n return column;\n };\n\n ColumnFactory.prototype.applyColumnState = function (column, colDef) {\n // flex\n var flex = attrToNumber(colDef.flex);\n\n if (flex !== undefined) {\n column.setFlex(flex);\n } // width - we only set width if column is not flexing\n\n\n var noFlexThisCol = column.getFlex() <= 0;\n\n if (noFlexThisCol) {\n // both null and undefined means we skip, as it's not possible to 'clear' width (a column must have a width)\n var width = attrToNumber(colDef.width);\n\n if (width != null) {\n column.setActualWidth(width);\n } else {\n // otherwise set the width again, in case min or max width has changed,\n // and width needs to be adjusted.\n var widthBeforeUpdate = column.getActualWidth();\n column.setActualWidth(widthBeforeUpdate);\n }\n } // sort - anything but undefined will set sort, thus null or empty string will clear the sort\n\n\n if (colDef.sort !== undefined) {\n if (colDef.sort == Constants.SORT_ASC || colDef.sort == Constants.SORT_DESC) {\n column.setSort(colDef.sort);\n } else {\n column.setSort(undefined);\n }\n } // sorted at - anything but undefined, thus null will clear the sortIndex\n\n\n var sortIndex = attrToNumber(colDef.sortIndex);\n\n if (sortIndex !== undefined) {\n column.setSortIndex(sortIndex);\n } // hide - anything but undefined, thus null will clear the hide\n\n\n var hide = attrToBoolean(colDef.hide);\n\n if (hide !== undefined) {\n column.setVisible(!hide);\n } // pinned - anything but undefined, thus null or empty string will remove pinned\n\n\n if (colDef.pinned !== undefined) {\n column.setPinned(colDef.pinned);\n }\n };\n\n ColumnFactory.prototype.findExistingColumn = function (newColDef, existingColsCopy) {\n return (existingColsCopy || []).find(function (existingCol) {\n var existingColDef = existingCol.getUserProvidedColDef();\n\n if (!existingColDef) {\n return false;\n }\n\n var newHasId = newColDef.colId != null;\n var newHasField = newColDef.field != null;\n\n if (newHasId) {\n return existingCol.getId() === newColDef.colId;\n }\n\n if (newHasField) {\n return existingColDef.field === newColDef.field;\n } // if no id or field present, then try object equivalence.\n\n\n if (existingColDef === newColDef) {\n return true;\n }\n\n return false;\n });\n };\n\n ColumnFactory.prototype.findExistingGroup = function (newGroupDef, existingGroups) {\n return existingGroups.find(function (existingGroup) {\n var existingDef = existingGroup.getColGroupDef();\n\n if (!existingDef) {\n return false;\n }\n\n var newHasId = newGroupDef.groupId != null;\n\n if (newHasId) {\n return existingGroup.getId() === newGroupDef.groupId;\n }\n\n return false;\n });\n };\n\n ColumnFactory.prototype.mergeColDefs = function (colDef) {\n // start with empty merged definition\n var colDefMerged = {}; // merge properties from default column definitions\n\n var defaultColDef = this.gridOptionsWrapper.getDefaultColDef();\n mergeDeep(colDefMerged, defaultColDef, false, true); // merge properties from column type properties\n\n var columnType = colDef.type;\n\n if (!columnType) {\n columnType = defaultColDef && defaultColDef.type;\n } // if type of both colDef and defaultColDef, then colDef gets preference\n\n\n if (columnType) {\n this.assignColumnTypes(columnType, colDefMerged);\n } // merge properties from column definitions\n\n\n mergeDeep(colDefMerged, colDef, false, true);\n var autoGroupColDef = this.gridOptionsWrapper.getAutoGroupColumnDef();\n var isSortingCoupled = this.gridOptionsWrapper.isColumnsSortingCoupledToGroup();\n\n if (colDef.rowGroup && autoGroupColDef && isSortingCoupled) {\n // override the sort for row group columns where the autoGroupColDef defines these values.\n mergeDeep(colDefMerged, {\n sort: autoGroupColDef.sort,\n initialSort: autoGroupColDef.initialSort\n }, false, true);\n }\n\n return colDefMerged;\n };\n\n ColumnFactory.prototype.assignColumnTypes = function (type, colDefMerged) {\n var typeKeys = [];\n\n if (type instanceof Array) {\n var invalidArray = type.some(function (a) {\n return typeof a !== 'string';\n });\n\n if (invalidArray) {\n console.warn(\"AG Grid: if colDef.type is supplied an array it should be of type 'string[]'\");\n } else {\n typeKeys = type;\n }\n } else if (typeof type === 'string') {\n typeKeys = type.split(',');\n } else {\n console.warn(\"AG Grid: colDef.type should be of type 'string' | 'string[]'\");\n return;\n } // merge user defined with default column types\n\n\n var allColumnTypes = Object.assign({}, DefaultColumnTypes);\n var userTypes = this.gridOptionsWrapper.getColumnTypes() || {};\n iterateObject(userTypes, function (key, value) {\n if (key in allColumnTypes) {\n console.warn(\"AG Grid: the column type '\" + key + \"' is a default column type and cannot be overridden.\");\n } else {\n allColumnTypes[key] = value;\n }\n });\n typeKeys.forEach(function (t) {\n var typeColDef = allColumnTypes[t.trim()];\n\n if (typeColDef) {\n mergeDeep(colDefMerged, typeColDef, false, true);\n } else {\n console.warn(\"AG Grid: colDef.type '\" + t + \"' does not correspond to defined gridOptions.columnTypes\");\n }\n });\n };\n\n ColumnFactory.prototype.checkForDeprecatedItems = function (colDef) {\n if (colDef) {\n var colDefNoType = colDef; // take out the type, so we can access attributes not defined in the type\n\n if (colDefNoType.group !== undefined) {\n console.warn('AG Grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3');\n }\n\n if (colDefNoType.headerGroup !== undefined) {\n console.warn('AG Grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3');\n }\n\n if (colDefNoType.headerGroupShow !== undefined) {\n 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');\n }\n\n if (colDefNoType.suppressRowGroup !== undefined) {\n console.warn('AG Grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead');\n }\n\n if (colDefNoType.suppressAggregation !== undefined) {\n console.warn('AG Grid: colDef.suppressAggregation is deprecated, please use colDef.type instead');\n }\n\n if (colDefNoType.suppressRowGroup || colDefNoType.suppressAggregation) {\n console.warn('AG Grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead');\n }\n\n if (colDefNoType.displayName) {\n console.warn(\"AG Grid: Found displayName \" + colDefNoType.displayName + \", please use headerName instead, displayName is deprecated.\");\n colDefNoType.headerName = colDefNoType.displayName;\n }\n }\n }; // if object has children, we assume it's a group\n\n\n ColumnFactory.prototype.isColumnGroup = function (abstractColDef) {\n return abstractColDef.children !== undefined;\n };\n\n __decorate$2w([Autowired('columnUtils')], ColumnFactory.prototype, \"columnUtils\", void 0);\n\n __decorate$2w([__param$9(0, Qualifier('loggerFactory'))], ColumnFactory.prototype, \"setBeans\", null);\n\n ColumnFactory = __decorate$2w([Bean('columnFactory')], ColumnFactory);\n return ColumnFactory;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar Events =\n/** @class */\nfunction () {\n function Events() {}\n /** Everything has changed with the columns. Either complete new set of columns set, or user called setState() */\n\n /** @deprecated - grid no longer uses this, and setSate() also fires individual events */\n\n\n Events.EVENT_COLUMN_EVERYTHING_CHANGED = 'columnEverythingChanged';\n /** User has set in new columns. */\n\n Events.EVENT_NEW_COLUMNS_LOADED = 'newColumnsLoaded';\n /** The pivot mode flag was changed */\n\n Events.EVENT_COLUMN_PIVOT_MODE_CHANGED = 'columnPivotModeChanged';\n /** A row group column was added, removed or order changed. */\n\n Events.EVENT_COLUMN_ROW_GROUP_CHANGED = 'columnRowGroupChanged';\n /** expandAll / collapseAll was called from the api. */\n\n Events.EVENT_EXPAND_COLLAPSE_ALL = 'expandOrCollapseAll';\n /** A pivot column was added, removed or order changed. */\n\n Events.EVENT_COLUMN_PIVOT_CHANGED = 'columnPivotChanged';\n /** The list of grid columns has changed. */\n\n Events.EVENT_GRID_COLUMNS_CHANGED = 'gridColumnsChanged';\n /** A value column was added, removed or agg function was changed. */\n\n Events.EVENT_COLUMN_VALUE_CHANGED = 'columnValueChanged';\n /** A column was moved */\n\n Events.EVENT_COLUMN_MOVED = 'columnMoved';\n /** One or more columns was shown / hidden */\n\n Events.EVENT_COLUMN_VISIBLE = 'columnVisible';\n /** One or more columns was pinned / unpinned*/\n\n Events.EVENT_COLUMN_PINNED = 'columnPinned';\n /** A column group was opened / closed */\n\n Events.EVENT_COLUMN_GROUP_OPENED = 'columnGroupOpened';\n /** One or more columns was resized. If just one, the column in the event is set. */\n\n Events.EVENT_COLUMN_RESIZED = 'columnResized';\n /** The list of displayed columns has changed, can result from columns open / close, column move, pivot, group, etc */\n\n Events.EVENT_DISPLAYED_COLUMNS_CHANGED = 'displayedColumnsChanged';\n /** The list of virtual columns has changed, results from viewport changing */\n\n Events.EVENT_VIRTUAL_COLUMNS_CHANGED = 'virtualColumnsChanged';\n /** Async Transactions Executed */\n\n Events.EVENT_ASYNC_TRANSACTIONS_FLUSHED = 'asyncTransactionsFlushed';\n /** A row group was opened / closed */\n\n Events.EVENT_ROW_GROUP_OPENED = 'rowGroupOpened';\n /** @deprecated use EVENT_ROW_DATA_UPDATED instead */\n\n Events.EVENT_ROW_DATA_CHANGED = 'rowDataChanged';\n /** The client has updated data for the grid */\n\n Events.EVENT_ROW_DATA_UPDATED = 'rowDataUpdated';\n /** The client has set new floating data into the grid */\n\n Events.EVENT_PINNED_ROW_DATA_CHANGED = 'pinnedRowDataChanged';\n /** Range selection has changed */\n\n Events.EVENT_RANGE_SELECTION_CHANGED = 'rangeSelectionChanged';\n /** Chart was created */\n\n Events.EVENT_CHART_CREATED = 'chartCreated';\n /** Chart Range selection has changed */\n\n Events.EVENT_CHART_RANGE_SELECTION_CHANGED = 'chartRangeSelectionChanged';\n /** Chart Options have changed */\n\n Events.EVENT_CHART_OPTIONS_CHANGED = 'chartOptionsChanged';\n /** Chart was destroyed */\n\n Events.EVENT_CHART_DESTROYED = 'chartDestroyed';\n /** For when the tool panel is shown / hidden */\n\n Events.EVENT_TOOL_PANEL_VISIBLE_CHANGED = 'toolPanelVisibleChanged';\n Events.EVENT_COLUMN_PANEL_ITEM_DRAG_START = 'columnPanelItemDragStart';\n Events.EVENT_COLUMN_PANEL_ITEM_DRAG_END = 'columnPanelItemDragEnd';\n /** Model was updated - grid updates the drawn rows when this happens */\n\n Events.EVENT_MODEL_UPDATED = 'modelUpdated';\n Events.EVENT_PASTE_START = 'pasteStart';\n Events.EVENT_PASTE_END = 'pasteEnd';\n Events.EVENT_FILL_START = 'fillStart';\n Events.EVENT_FILL_END = 'fillEnd';\n Events.EVENT_CELL_CLICKED = 'cellClicked';\n Events.EVENT_CELL_DOUBLE_CLICKED = 'cellDoubleClicked';\n Events.EVENT_CELL_MOUSE_DOWN = 'cellMouseDown';\n Events.EVENT_CELL_CONTEXT_MENU = 'cellContextMenu';\n Events.EVENT_CELL_VALUE_CHANGED = 'cellValueChanged';\n Events.EVENT_CELL_EDIT_REQUEST = 'cellEditRequest';\n Events.EVENT_ROW_VALUE_CHANGED = 'rowValueChanged';\n Events.EVENT_CELL_FOCUSED = 'cellFocused';\n Events.EVENT_FULL_WIDTH_ROW_FOCUSED = 'fullWidthRowFocused';\n Events.EVENT_ROW_SELECTED = 'rowSelected';\n Events.EVENT_SELECTION_CHANGED = 'selectionChanged';\n Events.EVENT_CELL_KEY_DOWN = 'cellKeyDown';\n Events.EVENT_CELL_KEY_PRESS = 'cellKeyPress';\n Events.EVENT_CELL_MOUSE_OVER = 'cellMouseOver';\n Events.EVENT_CELL_MOUSE_OUT = 'cellMouseOut';\n /** 2 events for filtering. The grid LISTENS for filterChanged and afterFilterChanged */\n\n Events.EVENT_FILTER_CHANGED = 'filterChanged';\n /** Filter was change but not applied. Only useful if apply buttons are used in filters. */\n\n Events.EVENT_FILTER_MODIFIED = 'filterModified';\n Events.EVENT_FILTER_OPENED = 'filterOpened';\n Events.EVENT_SORT_CHANGED = 'sortChanged';\n /** A row was removed from the dom, for any reason. Use to clean up resources (if any) used by the row. */\n\n Events.EVENT_VIRTUAL_ROW_REMOVED = 'virtualRowRemoved';\n Events.EVENT_ROW_CLICKED = 'rowClicked';\n Events.EVENT_ROW_DOUBLE_CLICKED = 'rowDoubleClicked';\n /** Gets called once after the grid has finished initialising. */\n\n Events.EVENT_GRID_READY = 'gridReady';\n /** Width of height of the main grid div has changed. Grid listens for this and does layout of grid if it's\n * changed, so always filling the space it was given. */\n\n Events.EVENT_GRID_SIZE_CHANGED = 'gridSizeChanged';\n /** The indexes of the rows rendered has changed, eg user has scrolled to a new vertical position. */\n\n Events.EVENT_VIEWPORT_CHANGED = 'viewportChanged';\n /* The width of the scrollbar has been calculated */\n\n Events.EVENT_SCROLLBAR_WIDTH_CHANGED = 'scrollbarWidthChanged';\n /** Rows were rendered for the first time (ie on async data load). */\n\n Events.EVENT_FIRST_DATA_RENDERED = 'firstDataRendered';\n /** A column drag has started, either resizing a column or moving a column. */\n\n Events.EVENT_DRAG_STARTED = 'dragStarted';\n /** A column drag has stopped */\n\n Events.EVENT_DRAG_STOPPED = 'dragStopped';\n Events.EVENT_CHECKBOX_CHANGED = 'checkboxChanged';\n Events.EVENT_ROW_EDITING_STARTED = 'rowEditingStarted';\n Events.EVENT_ROW_EDITING_STOPPED = 'rowEditingStopped';\n Events.EVENT_CELL_EDITING_STARTED = 'cellEditingStarted';\n Events.EVENT_CELL_EDITING_STOPPED = 'cellEditingStopped';\n /** Main body of grid has scrolled, either horizontally or vertically */\n\n Events.EVENT_BODY_SCROLL = 'bodyScroll';\n /** Main body of the grid has stopped scrolling, either horizontally or vertically */\n\n Events.EVENT_BODY_SCROLL_END = 'bodyScrollEnd';\n Events.EVENT_HEIGHT_SCALE_CHANGED = 'heightScaleChanged';\n /** The displayed page for pagination has changed. For example the data was filtered or sorted,\n * or the user has moved to a different page. */\n\n Events.EVENT_PAGINATION_CHANGED = 'paginationChanged';\n /** Only used by React, Angular, Web Components and VueJS AG Grid components\n * (not used if doing plain JavaScript). If the grid receives changes due\n * to bound properties, this event fires after the grid has finished processing the change. */\n\n Events.EVENT_COMPONENT_STATE_CHANGED = 'componentStateChanged';\n /***************************** INTERNAL EVENTS: START ******************************************* */\n\n /** Please remember to add to ComponentUtil.EXCLUDED_INTERNAL_EVENTS to not have these events exposed to framework components. */\n\n /** All items from here down are used internally by the grid, not intended for external use. */\n // not documented, either experimental, or we just don't want users using an depending on them\n\n Events.EVENT_BODY_HEIGHT_CHANGED = 'bodyHeightChanged';\n Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED = 'displayedColumnsWidthChanged';\n Events.EVENT_SCROLL_VISIBILITY_CHANGED = 'scrollVisibilityChanged';\n Events.EVENT_COLUMN_HOVER_CHANGED = 'columnHoverChanged';\n Events.EVENT_FLASH_CELLS = 'flashCells';\n Events.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED = 'paginationPixelOffsetChanged';\n Events.EVENT_DISPLAYED_ROWS_CHANGED = 'displayedRowsChanged';\n Events.EVENT_LEFT_PINNED_WIDTH_CHANGED = 'leftPinnedWidthChanged';\n Events.EVENT_RIGHT_PINNED_WIDTH_CHANGED = 'rightPinnedWidthChanged';\n Events.EVENT_ROW_CONTAINER_HEIGHT_CHANGED = 'rowContainerHeightChanged';\n Events.EVENT_HEADER_HEIGHT_CHANGED = 'headerHeightChanged';\n Events.EVENT_COLUMN_HEADER_HEIGHT_CHANGED = 'columnHeaderHeightChanged';\n Events.EVENT_ROW_DRAG_ENTER = 'rowDragEnter';\n Events.EVENT_ROW_DRAG_MOVE = 'rowDragMove';\n Events.EVENT_ROW_DRAG_LEAVE = 'rowDragLeave';\n Events.EVENT_ROW_DRAG_END = 'rowDragEnd'; // primarily for charts\n\n Events.EVENT_POPUP_TO_FRONT = 'popupToFront'; // these are used for server side group and agg - only used by CS with Viewport Row Model - intention is\n // to design these better around server side functions and then release to general public when fully working with\n // all the row models.\n\n Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST = 'columnRowGroupChangeRequest';\n Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST = 'columnPivotChangeRequest';\n Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST = 'columnValueChangeRequest';\n Events.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST = 'columnAggFuncChangeRequest';\n Events.EVENT_KEYBOARD_FOCUS = 'keyboardFocus';\n Events.EVENT_MOUSE_FOCUS = 'mouseFocus';\n Events.EVENT_STORE_UPDATED = 'storeUpdated';\n return Events;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n// class returns unique instance id's for columns.\n// eg, the following calls (in this order) will result in:\n//\n// getInstanceIdForKey('country') => 0\n// getInstanceIdForKey('country') => 1\n// getInstanceIdForKey('country') => 2\n// getInstanceIdForKey('country') => 3\n// getInstanceIdForKey('age') => 0\n// getInstanceIdForKey('age') => 1\n// getInstanceIdForKey('country') => 4\n\n\nvar GroupInstanceIdCreator =\n/** @class */\nfunction () {\n function GroupInstanceIdCreator() {\n // this map contains keys to numbers, so we remember what the last call was\n this.existingIds = {};\n }\n\n GroupInstanceIdCreator.prototype.getInstanceIdForKey = function (key) {\n var lastResult = this.existingIds[key];\n var result;\n\n if (typeof lastResult !== 'number') {\n // first time this key\n result = 0;\n } else {\n result = lastResult + 1;\n }\n\n this.existingIds[key] = result;\n return result;\n };\n\n return GroupInstanceIdCreator;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar reUnescapedHtml = /[&<>\"']/g;\n/**\n * HTML Escapes.\n */\n\nvar HTML_ESCAPES = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": '''\n};\n/**\n * It encodes any string in UTF-8 format\n * taken from https://github.com/mathiasbynens/utf8.js\n * @param {string} s\n * @returns {string}\n */\n\nfunction utf8_encode(s) {\n var stringFromCharCode = String.fromCharCode;\n\n function ucs2decode(string) {\n var output = [];\n\n if (!string) {\n return [];\n }\n\n var len = string.length;\n var counter = 0;\n var value;\n var extra;\n\n while (counter < len) {\n value = string.charCodeAt(counter++);\n\n if (value >= 0xD800 && value <= 0xDBFF && counter < len) {\n // high surrogate, and there is a next character\n extra = string.charCodeAt(counter++);\n\n if ((extra & 0xFC00) == 0xDC00) {\n // low surrogate\n output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n } else {\n // unmatched surrogate; only append this code unit, in case the next\n // code unit is the high surrogate of a surrogate pair\n output.push(value);\n counter--;\n }\n } else {\n output.push(value);\n }\n }\n\n return output;\n }\n\n function checkScalarValue(point) {\n if (point >= 0xD800 && point <= 0xDFFF) {\n throw Error('Lone surrogate U+' + point.toString(16).toUpperCase() + ' is not a scalar value');\n }\n }\n\n function createByte(point, shift) {\n return stringFromCharCode(point >> shift & 0x3F | 0x80);\n }\n\n function encodeCodePoint(point) {\n if (point >= 0 && point <= 31 && point !== 10) {\n var convertedCode = point.toString(16).toUpperCase();\n var paddedCode = convertedCode.padStart(4, '0');\n return \"_x\" + paddedCode + \"_\";\n }\n\n if ((point & 0xFFFFFF80) == 0) {\n // 1-byte sequence\n return stringFromCharCode(point);\n }\n\n var symbol = '';\n\n if ((point & 0xFFFFF800) == 0) {\n // 2-byte sequence\n symbol = stringFromCharCode(point >> 6 & 0x1F | 0xC0);\n } else if ((point & 0xFFFF0000) == 0) {\n // 3-byte sequence\n checkScalarValue(point);\n symbol = stringFromCharCode(point >> 12 & 0x0F | 0xE0);\n symbol += createByte(point, 6);\n } else if ((point & 0xFFE00000) == 0) {\n // 4-byte sequence\n symbol = stringFromCharCode(point >> 18 & 0x07 | 0xF0);\n symbol += createByte(point, 12);\n symbol += createByte(point, 6);\n }\n\n symbol += stringFromCharCode(point & 0x3F | 0x80);\n return symbol;\n }\n\n var codePoints = ucs2decode(s);\n var length = codePoints.length;\n var index = -1;\n var codePoint;\n var byteString = '';\n\n while (++index < length) {\n codePoint = codePoints[index];\n byteString += encodeCodePoint(codePoint);\n }\n\n return byteString;\n}\n/**\n * Converts a camelCase string into hyphenated string\n * from https://gist.github.com/youssman/745578062609e8acac9f\n * @param {string} str\n * @return {string}\n */\n\n\nfunction camelCaseToHyphen(str) {\n if (str === null || str === undefined) {\n return null;\n }\n\n return str.replace(/([A-Z])/g, function (g) {\n return '-' + g[0].toLowerCase();\n });\n}\n/**\n * Converts a hyphenated string into camelCase string\n * from https://stackoverflow.com/questions/6660977/convert-hyphens-to-camel-case-camelcase\n * @param {string} str\n * @return {string}\n */\n\n\nfunction hyphenToCamelCase(str) {\n if (str === null || str === undefined) {\n return null;\n }\n\n return str.replace(/-([a-z])/g, function (g) {\n return g[1].toUpperCase();\n });\n}\n\nfunction capitalise(str) {\n return str[0].toUpperCase() + str.substr(1).toLowerCase();\n}\n\nfunction escapeString(toEscape) {\n // we call toString() twice, in case value is an object, where user provides\n // a toString() method, and first call to toString() returns back something other\n // than a string (eg a number to render)\n return toEscape == null ? null : toEscape.toString().toString().replace(reUnescapedHtml, function (chr) {\n return HTML_ESCAPES[chr];\n });\n}\n/**\n * Converts a camelCase string into regular text\n * from: https://stackoverflow.com/questions/15369566/putting-space-in-camel-case-string-using-regular-expression\n * @param {string} camelCase\n * @return {string}\n */\n\n\nfunction camelCaseToHumanText(camelCase) {\n if (!camelCase || camelCase == null) {\n return null;\n }\n\n var rex = /([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g;\n var words = camelCase.replace(rex, '$1$4 $2$3$5').replace('.', ' ').split(' ');\n return words.map(function (word) {\n return word.substring(0, 1).toUpperCase() + (word.length > 1 ? word.substring(1, word.length) : '');\n }).join(' ');\n}\n\nvar StringUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n utf8_encode: utf8_encode,\n camelCaseToHyphen: camelCaseToHyphen,\n hyphenToCamelCase: hyphenToCamelCase,\n capitalise: capitalise,\n escapeString: escapeString,\n camelCaseToHumanText: camelCaseToHumanText\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nfunction convertToMap(arr) {\n var map = new Map();\n arr.forEach(function (pair) {\n return map.set(pair[0], pair[1]);\n });\n return map;\n} // handy for organising a list into a map, where each item is mapped by an attribute, eg mapping Columns by ID\n\n\nfunction mapById(arr, callback) {\n var map = new Map();\n arr.forEach(function (item) {\n return map.set(callback(item), item);\n });\n return map;\n}\n\nfunction keys(map) {\n var arr = [];\n map.forEach(function (_, key) {\n return arr.push(key);\n });\n return arr;\n}\n\nvar MapUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n convertToMap: convertToMap,\n mapById: mapById,\n keys: keys\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nvar __read$o = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$i = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$o(arguments[i]));\n }\n\n return ar;\n};\n\nvar ColDefUtil =\n/** @class */\nfunction () {\n function ColDefUtil() {}\n\n ColDefUtil.STRING_PROPERTIES = ['headerName', 'columnGroupShow', 'headerClass', 'toolPanelClass', 'headerValueGetter', 'pivotKeys', 'groupId', 'colId', 'sort', 'initialSort', 'field', 'type', 'tooltipComponent', 'tooltipField', 'headerTooltip', 'cellClass', 'showRowGroup', 'filter', 'initialAggFunc', 'defaultAggFunc', 'aggFunc', 'pinned', 'initialPinned', 'chartDataType', 'cellEditorPopupPosition'];\n ColDefUtil.OBJECT_PROPERTIES = ['headerGroupComponent', 'headerGroupComponentFramework', 'headerGroupComponentParams', 'cellStyle', 'cellRenderer', 'cellRendererParams', 'cellRendererFramework', 'cellEditor', 'cellEditorFramework', 'cellEditorParams', 'pinnedRowCellRendererFramework', 'pinnedRowCellRendererParams', 'filterFramework', 'filterParams', 'pivotValueColumn', 'headerComponent', 'headerComponentFramework', 'headerComponentParams', 'floatingFilterComponent', 'floatingFilterComponentParams', 'floatingFilterComponentFramework', 'floatingFilterFramework', 'tooltipComponent', 'tooltipComponentParams', 'tooltipComponentFramework', 'refData', 'columnsMenuParams'];\n ColDefUtil.ARRAY_PROPERTIES = ['children', 'sortingOrder', 'allowedAggFuncs', 'menuTabs', 'pivotTotalColumnIds', 'cellClassRules', 'icons'];\n ColDefUtil.NUMBER_PROPERTIES = ['sortedAt', 'sortIndex', 'initialSortIndex', 'flex', 'initialFlex', 'width', 'initialWidth', 'minWidth', 'maxWidth', 'rowGroupIndex', 'initialRowGroupIndex', 'pivotIndex', 'initialPivotIndex'];\n ColDefUtil.BOOLEAN_PROPERTIES = ['suppressCellFlash', 'suppressColumnsToolPanel', 'suppressFiltersToolPanel', 'openByDefault', 'marryChildren', 'hide', 'initialHide', 'rowGroup', 'initialRowGroup', 'pivot', 'initialPivot', 'checkboxSelection', 'showDisabledCheckboxes', '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', 'cellEditorPopup', 'suppressFillHandle', 'wrapHeaderText', 'autoHeaderHeight'];\n ColDefUtil.FUNCTION_PROPERTIES = ['dndSourceOnRowDrag', 'valueGetter', 'valueSetter', 'filterValueGetter', 'keyCreator', 'pinnedRowCellRenderer', 'valueFormatter', 'pinnedRowValueFormatter', 'valueParser', 'comparator', 'equals', 'pivotComparator', 'suppressKeyboardEvent', 'suppressHeaderKeyboardEvent', 'colSpan', 'rowSpan', 'getQuickFilterText', 'newValueHandler', 'onCellValueChanged', 'onCellClicked', 'onCellDoubleClicked', 'onCellContextMenu', 'rowDragText', 'tooltipValueGetter', 'tooltipComponent', 'tooltipComponentFramework', 'cellRendererSelector', 'cellEditorSelector'];\n ColDefUtil.ALL_PROPERTIES = __spread$i(ColDefUtil.ARRAY_PROPERTIES, ColDefUtil.OBJECT_PROPERTIES, ColDefUtil.STRING_PROPERTIES, ColDefUtil.NUMBER_PROPERTIES, ColDefUtil.FUNCTION_PROPERTIES, ColDefUtil.BOOLEAN_PROPERTIES); // used when doing property checks - this causes noise when using frameworks which can add their own fw specific\n // properties to colDefs, gridOptions etc\n\n ColDefUtil.FRAMEWORK_PROPERTIES = ['__ob__', '__v_skip', '__metadata__', 'mappedColumnProperties', 'hasChildColumns', 'toColDef', 'createColDefFromGridColumn'];\n return ColDefUtil;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __read$n = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$h = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$n(arguments[i]));\n }\n\n return ar;\n};\n/**\n * These keys are used for validating properties supplied on a gridOptions object, and for code generation.\n * If you change the properties on the gridOptions interface, you *must* update this file as well to be consistent.\n */\n\n\nvar PropertyKeys =\n/** @class */\nfunction () {\n function PropertyKeys() {}\n\n PropertyKeys.STRING_PROPERTIES = ['sortingOrder', 'rowClass', 'rowSelection', 'overlayLoadingTemplate', 'overlayNoRowsTemplate', 'quickFilterText', 'rowModelType', 'editType', 'domLayout', 'clipboardDelimiter', 'rowGroupPanelShow', 'multiSortKey', 'pivotColumnGroupTotals', 'pivotRowTotals', 'pivotPanelShow', 'fillHandleDirection', 'serverSideStoreType', 'groupDisplayType', 'treeDataDisplayType'];\n PropertyKeys.OBJECT_PROPERTIES = ['components', 'frameworkComponents', 'rowStyle', 'context', 'autoGroupColumnDef', 'localeText', 'icons', 'datasource', 'serverSideDatasource', 'viewportDatasource', 'groupRowRendererParams', 'aggFuncs', 'fullWidthCellRendererParams', 'defaultColGroupDef', 'defaultColDef', 'defaultExportParams', 'defaultCsvExportParams', 'defaultExcelExportParams', 'columnTypes', 'rowClassRules', 'detailCellRendererParams', 'loadingCellRendererParams', 'loadingOverlayComponentParams', 'noRowsOverlayComponentParams', 'popupParent', 'colResizeDefault', 'statusBar', 'sideBar', 'chartThemeOverrides', 'customChartThemes'];\n PropertyKeys.ARRAY_PROPERTIES = ['alignedGrids', 'rowData', 'columnDefs', 'excelStyles', 'pinnedTopRowData', 'pinnedBottomRowData', 'chartThemes'];\n PropertyKeys.NUMBER_PROPERTIES = ['rowHeight', 'detailRowHeight', 'rowBuffer', 'colWidth', 'headerHeight', 'groupHeaderHeight', 'floatingFiltersHeight', 'pivotHeaderHeight', 'pivotGroupHeaderHeight', 'groupDefaultExpanded', 'minColWidth', 'maxColWidth', 'viewportRowModelPageSize', 'viewportRowModelBufferSize', 'autoSizePadding', 'maxBlocksInCache', 'maxConcurrentDatasourceRequests', 'tooltipShowDelay', 'tooltipHideDelay', 'cacheOverflowSize', 'paginationPageSize', 'cacheBlockSize', 'infiniteInitialRowCount', 'serverSideInitialRowCount', 'scrollbarWidth', 'batchUpdateWaitMillis', 'asyncTransactionWaitMillis', 'blockLoadDebounceMillis', 'keepDetailRowsCount', 'undoRedoCellEditingLimit', 'cellFlashDelay', 'cellFadeDelay', 'tabIndex'];\n PropertyKeys.BOOLEAN_PROPERTIES = ['suppressMakeColumnVisibleAfterUnGroup', 'suppressRowClickSelection', 'suppressCellSelection', 'suppressCellFocus', 'suppressHorizontalScroll', 'alwaysShowHorizontalScroll', 'alwaysShowVerticalScroll', 'debug', 'enableBrowserTooltips', 'enableCellExpressions', 'angularCompileRows', 'angularCompileFilters', 'groupSuppressAutoColumn', 'groupSelectsChildren', 'groupIncludeFooter', 'groupIncludeTotalFooter', 'groupUseEntireRow', 'groupSuppressBlankHeader', 'suppressMenuHide', 'suppressRowDeselection', 'unSortIcon', 'suppressMultiSort', 'alwaysMultiSort', 'singleClickEdit', 'suppressLoadingOverlay', 'suppressNoRowsOverlay', 'suppressAutoSize', 'skipHeaderOnAutoSize', 'suppressParentsInRowNodes', 'suppressColumnMoveAnimation', 'suppressMovableColumns', 'suppressFieldDotNotation', 'enableRangeSelection', 'enableRangeHandle', 'enableFillHandle', 'suppressClearOnFillReduction', 'deltaSort', 'suppressTouch', 'suppressAsyncEvents', 'allowContextMenuWithControlKey', 'suppressContextMenu', 'rememberGroupStateWhenNewData', 'enableCellChangeFlash', 'suppressDragLeaveHidesColumns', 'suppressRowGroupHidesColumns', 'suppressMiddleClickScrolls', 'suppressPreventDefaultOnMouseWheel', 'suppressCopyRowsToClipboard', 'copyHeadersToClipboard', 'copyGroupHeadersToClipboard', 'pivotMode', 'suppressAggFuncInHeader', 'suppressColumnVirtualisation', 'suppressAggAtRootLevel', 'suppressFocusAfterRefresh', 'functionsPassive', 'functionsReadOnly', 'animateRows', 'groupSelectsFiltered', 'groupRemoveSingleChildren', 'groupRemoveLowestSingleChildren', 'enableRtl', 'suppressClickEdit', 'rowDragEntireRow', 'rowDragManaged', 'suppressRowDrag', 'suppressMoveWhenRowDragging', 'rowDragMultiRow', 'enableGroupEdit', 'embedFullWidthRows', 'deprecatedEmbedFullWidthRows', 'suppressPaginationPanel', 'groupHideOpenParents', 'groupMultiAutoColumn', 'pagination', 'stopEditingWhenGridLosesFocus', 'paginationAutoPageSize', 'suppressScrollOnNewData', 'suppressScrollWhenPopupsAreOpen', 'purgeClosedRowNodes', 'cacheQuickFilter', 'deltaRowDataMode', 'ensureDomOrder', 'accentedSort', 'suppressChangeDetection', 'valueCache', 'valueCacheNeverExpires', 'aggregateOnlyChangedColumns', 'suppressAnimationFrame', 'suppressExcelExport', 'suppressCsvExport', 'treeData', 'masterDetail', 'suppressMultiRangeSelection', 'enterMovesDownAfterEdit', 'enterMovesDown', 'suppressPropertyNamesCheck', 'rowMultiSelectWithClick', 'suppressEnterpriseResetOnNewColumns', 'suppressRowHoverHighlight', 'suppressRowTransform', 'suppressClipboardPaste', 'suppressLastEmptyLineOnPaste', 'suppressSetColumnStateEvents', 'suppressColumnStateEvents', 'enableCharts', 'deltaColumnMode', 'suppressMaintainUnsortedOrder', 'enableCellTextSelection', 'suppressBrowserResizeObserver', 'suppressMaxRenderedRowRestriction', 'excludeChildrenWhenTreeDataFiltering', 'tooltipMouseTrack', 'keepDetailRows', 'paginateChildRows', 'preventDefaultOnContextMenu', 'undoRedoCellEditing', 'allowDragFromColumnsToolPanel', 'immutableData', 'immutableColumns', 'pivotSuppressAutoColumn', 'suppressExpandablePivotGroups', 'applyColumnDefOrder', 'debounceVerticalScrollbar', 'detailRowAutoHeight', 'serverSideFilteringAlwaysResets', 'serverSideSortingAlwaysResets', 'serverSideSortAllLevels', 'serverSideFilterAllLevels', 'serverSideSortOnServer', 'serverSideFilterOnServer', 'suppressAggFilteredOnly', 'showOpenedGroup', 'suppressClipboardApi', 'suppressModelUpdateAfterUpdateTransaction', 'stopEditingWhenCellsLoseFocus', 'maintainColumnOrder', 'groupMaintainOrder', 'columnHoverHighlight', 'reactUi', 'suppressReactUi', 'readOnlyEdit', 'suppressRowVirtualisation', 'resetRowDataOnUpdate', 'removePivotHeaderRowWhenSingleValueColumn', 'suppressCopySingleCellRanges', 'groupRowsSticky', 'serverSideInfiniteScroll'];\n /** You do not need to include event callbacks in this list, as they are generated automatically. */\n\n PropertyKeys.FUNCTION_PROPERTIES = ['localeTextFunc', 'getLocaleText', 'groupRowInnerRenderer', 'groupRowInnerRendererFramework', 'groupRowRenderer', 'groupRowRendererFramework', 'isExternalFilterPresent', 'getRowHeight', 'doesExternalFilterPass', 'getRowClass', 'getRowStyle', 'getContextMenuItems', 'getMainMenuItems', 'processRowPostCreate', 'processCellForClipboard', 'groupRowAggNodes', 'getGroupRowAgg', 'getRowNodeId', 'isFullWidthCell', 'isFullWidthRow', 'fullWidthCellRenderer', 'fullWidthCellRendererFramework', 'processSecondaryColDef', 'processSecondaryColGroupDef', 'processPivotResultColDef', 'processPivotResultColGroupDef', 'getBusinessKeyForNode', 'sendToClipboard', 'navigateToNextHeader', 'tabToNextHeader', 'navigateToNextCell', 'tabToNextCell', 'processCellFromClipboard', 'getDocument', 'postProcessPopup', 'getChildCount', 'getDataPath', 'loadingCellRenderer', 'loadingCellRendererFramework', 'loadingOverlayComponent', 'loadingOverlayComponentFramework', 'noRowsOverlayComponent', 'noRowsOverlayComponentFramework', 'detailCellRenderer', 'detailCellRendererFramework', 'isRowMaster', 'isRowSelectable', 'postSort', 'postSortRows', 'processHeaderForClipboard', 'processGroupHeaderForClipboard', 'paginationNumberFormatter', 'processDataFromClipboard', 'getServerSideGroupKey', 'isServerSideGroup', 'suppressKeyboardEvent', 'createChartContainer', 'getChartToolbarItems', 'fillOperation', 'isApplyServerSideTransaction', 'getServerSideStoreParams', 'getServerSideGroupLevelParams', 'isServerSideGroupOpenByDefault', 'isGroupOpenByDefault', 'defaultGroupSortComparator', 'defaultGroupOrderComparator', 'initialGroupOrderComparator', 'loadingCellRendererSelector', 'getRowId', 'groupAggFiltering'];\n PropertyKeys.ALL_PROPERTIES = __spread$h(PropertyKeys.ARRAY_PROPERTIES, PropertyKeys.OBJECT_PROPERTIES, PropertyKeys.STRING_PROPERTIES, PropertyKeys.NUMBER_PROPERTIES, PropertyKeys.FUNCTION_PROPERTIES, PropertyKeys.BOOLEAN_PROPERTIES);\n /**\n * Used when performing property checks. This avoids noise caused when using frameworks, which can add their own\n * framework-specific properties to colDefs, gridOptions etc.\n */\n\n PropertyKeys.FRAMEWORK_PROPERTIES = ['__ob__', '__v_skip', '__metadata__', 'mappedColumnProperties', 'hasChildColumns', 'toColDef', 'createColDefFromGridColumn'];\n return PropertyKeys;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __assign$g = undefined && undefined.__assign || function () {\n __assign$g = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$g.apply(this, arguments);\n};\n\nvar __read$m = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$g = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$m(arguments[i]));\n }\n\n return ar;\n};\n\nvar ComponentUtil =\n/** @class */\nfunction () {\n function ComponentUtil() {}\n\n ComponentUtil.getEventCallbacks = function () {\n if (!ComponentUtil.EVENT_CALLBACKS) {\n ComponentUtil.EVENT_CALLBACKS = ComponentUtil.EVENTS.map(function (event) {\n return ComponentUtil.getCallbackForEvent(event);\n });\n }\n\n return ComponentUtil.EVENT_CALLBACKS;\n };\n\n ComponentUtil.copyAttributesToGridOptions = function (gridOptions, component, skipEventDeprecationCheck) {\n // create empty grid options if none were passed\n if (typeof gridOptions !== 'object') {\n gridOptions = {};\n } // to allow array style lookup in TypeScript, take type away from 'this' and 'gridOptions'\n\n\n var pGridOptions = gridOptions;\n\n var keyExists = function keyExists(key) {\n return typeof component[key] !== 'undefined';\n }; // if groupAggFiltering exists and isn't a function, handle as a boolean.\n\n\n if (keyExists('groupAggFiltering') && typeof component.groupAggFiltering !== 'function') {\n pGridOptions.groupAggFiltering = ComponentUtil.toBoolean(component.groupAggFiltering);\n delete component.groupAggFiltering;\n } // add in all the simple properties\n\n\n __spread$g(ComponentUtil.ARRAY_PROPERTIES, ComponentUtil.STRING_PROPERTIES, ComponentUtil.OBJECT_PROPERTIES, ComponentUtil.FUNCTION_PROPERTIES, ComponentUtil.getEventCallbacks()).filter(keyExists).forEach(function (key) {\n return pGridOptions[key] = component[key];\n });\n\n ComponentUtil.BOOLEAN_PROPERTIES.filter(keyExists).forEach(function (key) {\n return pGridOptions[key] = ComponentUtil.toBoolean(component[key]);\n });\n ComponentUtil.NUMBER_PROPERTIES.filter(keyExists).forEach(function (key) {\n return pGridOptions[key] = ComponentUtil.toNumber(component[key]);\n });\n return gridOptions;\n };\n\n ComponentUtil.getCallbackForEvent = function (eventName) {\n if (!eventName || eventName.length < 2) {\n return eventName;\n }\n\n return 'on' + eventName[0].toUpperCase() + eventName.substr(1);\n };\n\n ComponentUtil.processOnChange = function (changes, gridOptions, api, columnApi) {\n if (!changes) {\n return;\n }\n\n var changesToApply = __assign$g({}, changes); // to allow array style lookup in TypeScript, take type away from 'this' and 'gridOptions'\n\n\n var pGridOptions = gridOptions;\n\n var keyExists = function keyExists(key) {\n return changesToApply[key];\n }; // if groupAggFiltering exists and isn't a function, handle as a boolean.\n\n\n if (keyExists('groupAggFiltering')) {\n if (typeof changesToApply.groupAggFiltering === 'function') {\n pGridOptions.groupAggFiltering = changesToApply.groupAggFiltering;\n } else {\n pGridOptions.groupAggFiltering = ComponentUtil.toBoolean(changesToApply.groupAggFiltering);\n }\n\n delete changesToApply.groupAggFiltering;\n }\n\n if (keyExists('groupDisplayType')) {\n if (typeof changesToApply.groupDisplayType.currentValue === 'string') {\n api.setGroupDisplayType(changesToApply.groupDisplayType.currentValue);\n delete changesToApply.groupDisplayType;\n }\n } // we need to do this before the generic handling, otherwise value gets set before we\n // try to set it, and the grid then doesn't refresh the rows as it doesn't see any change.\n // also it's possible we use the generic code setXXX below and put it up there instead,\n // cover all cases.\n\n\n if (changesToApply.rowClass) {\n api.setRowClass(changesToApply.rowClass.currentValue);\n delete changesToApply.rowClass;\n } // check if any change for the simple types, and if so, then just copy in the new value\n\n\n __spread$g(ComponentUtil.ARRAY_PROPERTIES, ComponentUtil.OBJECT_PROPERTIES, ComponentUtil.STRING_PROPERTIES, ComponentUtil.getEventCallbacks()).filter(keyExists).forEach(function (key) {\n return pGridOptions[key] = changesToApply[key].currentValue;\n });\n\n ComponentUtil.BOOLEAN_PROPERTIES.filter(keyExists).forEach(function (key) {\n return pGridOptions[key] = ComponentUtil.toBoolean(changesToApply[key].currentValue);\n });\n ComponentUtil.NUMBER_PROPERTIES.filter(keyExists).forEach(function (key) {\n return pGridOptions[key] = ComponentUtil.toNumber(changesToApply[key].currentValue);\n });\n\n if (changesToApply.enableCellTextSelection) {\n api.setEnableCellTextSelection(ComponentUtil.toBoolean(changesToApply.enableCellTextSelection.currentValue));\n delete changesToApply.enableCellTextSelection;\n }\n\n if (changesToApply.quickFilterText) {\n api.setQuickFilter(changesToApply.quickFilterText.currentValue);\n delete changesToApply.quickFilterText;\n }\n\n if (changesToApply.autoGroupColumnDef) {\n api.setAutoGroupColumnDef(changesToApply.autoGroupColumnDef.currentValue, \"gridOptionsChanged\");\n delete changesToApply.autoGroupColumnDef;\n }\n\n if (changesToApply.columnDefs) {\n api.setColumnDefs(changesToApply.columnDefs.currentValue, \"gridOptionsChanged\");\n delete changesToApply.columnDefs;\n }\n\n if (changesToApply.defaultColDef) {\n api.setDefaultColDef(changesToApply.defaultColDef.currentValue, \"gridOptionsChanged\");\n delete changesToApply.defaultColDef;\n }\n\n if (changesToApply.paginationPageSize) {\n api.paginationSetPageSize(ComponentUtil.toNumber(changesToApply.paginationPageSize.currentValue));\n delete changesToApply.paginationPageSize;\n }\n\n if (changesToApply.pivotMode) {\n columnApi.setPivotMode(ComponentUtil.toBoolean(changesToApply.pivotMode.currentValue));\n delete changesToApply.pivotMode;\n }\n\n if (changesToApply.groupRemoveSingleChildren) {\n api.setGroupRemoveSingleChildren(ComponentUtil.toBoolean(changesToApply.groupRemoveSingleChildren.currentValue));\n delete changesToApply.groupRemoveSingleChildren;\n }\n\n if (changesToApply.suppressRowDrag) {\n api.setSuppressRowDrag(ComponentUtil.toBoolean(changesToApply.suppressRowDrag.currentValue));\n delete changesToApply.suppressRowDrag;\n }\n\n if (changesToApply.suppressMoveWhenRowDragging) {\n api.setSuppressMoveWhenRowDragging(ComponentUtil.toBoolean(changesToApply.suppressMoveWhenRowDragging.currentValue));\n delete changesToApply.suppressMoveWhenRowDragging;\n }\n\n if (changesToApply.suppressRowClickSelection) {\n api.setSuppressRowClickSelection(ComponentUtil.toBoolean(changesToApply.suppressRowClickSelection.currentValue));\n delete changesToApply.suppressRowClickSelection;\n }\n\n if (changesToApply.suppressClipboardPaste) {\n api.setSuppressClipboardPaste(ComponentUtil.toBoolean(changesToApply.suppressClipboardPaste.currentValue));\n delete changesToApply.suppressClipboardPaste;\n }\n\n if (changesToApply.headerHeight) {\n api.setHeaderHeight(ComponentUtil.toNumber(changesToApply.headerHeight.currentValue));\n delete changesToApply.headerHeight;\n } // any remaining properties can be set in a generic way\n // ie the setter takes the form of setXXX and the argument requires no formatting/translation first\n\n\n var dynamicApi = api;\n Object.keys(changesToApply).forEach(function (property) {\n var setterName = \"set\" + property.charAt(0).toUpperCase() + property.substring(1);\n\n if (dynamicApi[setterName]) {\n dynamicApi[setterName](changes[property].currentValue);\n }\n }); // copy changes into an event for dispatch\n\n var event = {\n type: Events.EVENT_COMPONENT_STATE_CHANGED\n };\n iterateObject(changes, function (key, value) {\n event[key] = value;\n });\n api.dispatchEvent(event);\n };\n\n ComponentUtil.toBoolean = function (value) {\n if (typeof value === 'boolean') {\n return value;\n }\n\n if (typeof value === 'string') {\n // for boolean, compare to empty String to allow attributes appearing with\n // no value to be treated as 'true'\n return value.toUpperCase() === 'TRUE' || value == '';\n }\n\n return false;\n };\n\n ComponentUtil.toNumber = function (value) {\n if (typeof value === 'number') {\n return value;\n }\n\n if (typeof value === 'string') {\n return Number(value);\n }\n }; // all the events are populated in here AFTER this class (at the bottom of the file).\n\n\n ComponentUtil.EVENTS = []; // events that are available for use by users of AG Grid and so should be documented\n\n ComponentUtil.PUBLIC_EVENTS = []; // events that are internal to AG Grid and should not be exposed to users via documentation or generated framework components\n\n ComponentUtil.EXCLUDED_INTERNAL_EVENTS = [];\n ComponentUtil.STRING_PROPERTIES = PropertyKeys.STRING_PROPERTIES;\n ComponentUtil.OBJECT_PROPERTIES = PropertyKeys.OBJECT_PROPERTIES;\n ComponentUtil.ARRAY_PROPERTIES = PropertyKeys.ARRAY_PROPERTIES;\n ComponentUtil.NUMBER_PROPERTIES = PropertyKeys.NUMBER_PROPERTIES;\n ComponentUtil.BOOLEAN_PROPERTIES = PropertyKeys.BOOLEAN_PROPERTIES;\n ComponentUtil.FUNCTION_PROPERTIES = PropertyKeys.FUNCTION_PROPERTIES;\n ComponentUtil.ALL_PROPERTIES = PropertyKeys.ALL_PROPERTIES;\n return ComponentUtil;\n}();\n\nComponentUtil.EVENTS = values(Events);\n/** Exclude the following internal events from code generation to prevent exposing these events via framework components */\n\nComponentUtil.EXCLUDED_INTERNAL_EVENTS = [Events.EVENT_SCROLLBAR_WIDTH_CHANGED, Events.EVENT_CHECKBOX_CHANGED, Events.EVENT_HEIGHT_SCALE_CHANGED, Events.EVENT_BODY_HEIGHT_CHANGED, Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, Events.EVENT_SCROLL_VISIBILITY_CHANGED, Events.EVENT_COLUMN_HOVER_CHANGED, Events.EVENT_FLASH_CELLS, Events.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED, Events.EVENT_DISPLAYED_ROWS_CHANGED, Events.EVENT_LEFT_PINNED_WIDTH_CHANGED, Events.EVENT_RIGHT_PINNED_WIDTH_CHANGED, Events.EVENT_ROW_CONTAINER_HEIGHT_CHANGED, Events.EVENT_POPUP_TO_FRONT, Events.EVENT_KEYBOARD_FOCUS, Events.EVENT_MOUSE_FOCUS, Events.EVENT_STORE_UPDATED, Events.EVENT_COLUMN_PANEL_ITEM_DRAG_START, Events.EVENT_COLUMN_PANEL_ITEM_DRAG_END, Events.EVENT_FILL_START, Events.EVENT_FILL_END, Events.EVENT_FULL_WIDTH_ROW_FOCUSED, Events.EVENT_HEADER_HEIGHT_CHANGED, Events.EVENT_COLUMN_HEADER_HEIGHT_CHANGED];\n/** EVENTS that should be exposed via code generation for the framework components. */\n\nComponentUtil.PUBLIC_EVENTS = ComponentUtil.EVENTS.filter(function (e) {\n return !includes(ComponentUtil.EXCLUDED_INTERNAL_EVENTS, e);\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nvar SideBarDefParser =\n/** @class */\nfunction () {\n function SideBarDefParser() {}\n\n SideBarDefParser.parse = function (toParse) {\n if (!toParse) {\n return null;\n }\n\n if (toParse === true) {\n return {\n toolPanels: [SideBarDefParser.DEFAULT_COLUMN_COMP, SideBarDefParser.DEFAULT_FILTER_COMP],\n defaultToolPanel: 'columns'\n };\n }\n\n if (typeof toParse === 'string') {\n return SideBarDefParser.parse([toParse]);\n }\n\n if (Array.isArray(toParse)) {\n var comps_1 = [];\n toParse.forEach(function (key) {\n var lookupResult = SideBarDefParser.DEFAULT_BY_KEY[key];\n\n if (!lookupResult) {\n console.warn(\"AG Grid: the key \" + key + \" is not a valid key for specifying a tool panel, valid keys are: \" + Object.keys(SideBarDefParser.DEFAULT_BY_KEY).join(','));\n return;\n }\n\n comps_1.push(lookupResult);\n });\n\n if (comps_1.length === 0) {\n return null;\n }\n\n return {\n toolPanels: comps_1,\n defaultToolPanel: comps_1[0].id\n };\n }\n\n var result = {\n toolPanels: SideBarDefParser.parseComponents(toParse.toolPanels),\n defaultToolPanel: toParse.defaultToolPanel,\n hiddenByDefault: toParse.hiddenByDefault,\n position: toParse.position\n };\n return result;\n };\n\n SideBarDefParser.parseComponents = function (from) {\n var result = [];\n\n if (!from) {\n return result;\n }\n\n from.forEach(function (it) {\n var toAdd = null;\n\n if (typeof it === 'string') {\n var lookupResult = SideBarDefParser.DEFAULT_BY_KEY[it];\n\n if (!lookupResult) {\n console.warn(\"AG Grid: the key \" + it + \" is not a valid key for specifying a tool panel, valid keys are: \" + Object.keys(SideBarDefParser.DEFAULT_BY_KEY).join(','));\n return;\n }\n\n toAdd = lookupResult;\n } else {\n toAdd = it;\n }\n\n result.push(toAdd);\n });\n return result;\n };\n\n SideBarDefParser.DEFAULT_COLUMN_COMP = {\n id: 'columns',\n labelDefault: 'Columns',\n labelKey: 'columns',\n iconKey: 'columns',\n toolPanel: 'agColumnsToolPanel'\n };\n SideBarDefParser.DEFAULT_FILTER_COMP = {\n id: 'filters',\n labelDefault: 'Filters',\n labelKey: 'filters',\n iconKey: 'filter',\n toolPanel: 'agFiltersToolPanel'\n };\n SideBarDefParser.DEFAULT_BY_KEY = {\n columns: SideBarDefParser.DEFAULT_COLUMN_COMP,\n filters: SideBarDefParser.DEFAULT_FILTER_COMP\n };\n return SideBarDefParser;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __values$5 = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n/**\n * These variables are lazy loaded, as otherwise they try and get initialised when we are loading\n * unit tests and we don't have references to window or document in the unit tests\n * from http://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser\n */\n\n\nvar isSafari;\nvar isIE;\nvar isEdge;\nvar isChrome;\nvar isFirefox;\nvar isMacOs;\nvar isIOS;\nvar invisibleScrollbar;\nvar browserScrollbarWidth;\nvar browserInfo;\n/**\n * from https://stackoverflow.com/a/16938481/1388233\n */\n\nfunction getBrowserInfo() {\n if (browserInfo) {\n return browserInfo;\n }\n\n var userAgent = navigator.userAgent;\n var match = userAgent.match(/(opera|chrome|safari|firefox|msie|trident(?=\\/))\\/?\\s*(\\d+)/i) || [];\n var tem;\n var version;\n\n if (/trident/i.test(match[1])) {\n tem = /\\brv[ :]+(\\d+)/g.exec(userAgent) || [];\n version = tem[1] != null ? parseFloat(tem[1]) : 0;\n return {\n name: 'IE',\n version: version\n };\n }\n\n if (match[1] === 'Chrome') {\n tem = userAgent.match(/\\bOPR|Edge\\/(\\d+)/);\n\n if (tem != null) {\n version = tem[1] != null ? parseFloat(tem[1]) : 0;\n return {\n name: 'Opera',\n version: version\n };\n }\n }\n\n match = match[2] ? [match[1], match[2]] : [navigator.appName, navigator.appVersion, '-?'];\n tem = userAgent.match(/version\\/(\\d+)/i);\n\n if (tem != null) {\n match.splice(1, 1, tem[1]);\n }\n\n var name = match[0];\n version = match[1] != null ? parseFloat(match[1]) : 0;\n browserInfo = {\n name: name,\n version: version\n };\n return browserInfo;\n}\n\nfunction isBrowserIE() {\n if (isIE === undefined) {\n isIE =\n /*@cc_on!@*/\n !!document.documentMode; // At least IE6\n }\n\n return isIE;\n}\n\nfunction isBrowserEdge() {\n if (isEdge === undefined) {\n isEdge = !isBrowserIE() && !!window.StyleMedia;\n }\n\n return isEdge;\n}\n\nfunction isBrowserSafari() {\n if (isSafari === undefined) {\n // taken from https://stackoverflow.com/a/23522755/1388233\n isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);\n }\n\n return isSafari;\n}\n\nfunction isBrowserChrome() {\n if (isChrome === undefined) {\n var win = window;\n isChrome = !!win.chrome && (!!win.chrome.webstore || !!win.chrome.runtime) || /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);\n }\n\n return isChrome;\n}\n\nfunction isBrowserFirefox() {\n if (isFirefox === undefined) {\n var win = window;\n isFirefox = typeof win.InstallTrigger !== 'undefined';\n }\n\n return isFirefox;\n}\n\nfunction isMacOsUserAgent() {\n if (isMacOs === undefined) {\n isMacOs = /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform);\n }\n\n return isMacOs;\n}\n\nfunction isIOSUserAgent() {\n if (isIOS === undefined) {\n // taken from https://stackoverflow.com/a/58064481/1388233\n isIOS = (/iPad|iPhone|iPod/.test(navigator.platform) || // eslint-disable-next-line\n navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1) && // @ts-ignore\n !window.MSStream;\n }\n\n return isIOS;\n}\n\nfunction browserSupportsPreventScroll() {\n // all browsers except safari support focus({ preventScroll: true }).\n // this feature was added on Safari 15+\n return !isBrowserSafari() || getBrowserInfo().version >= 15;\n}\n\nfunction getTabIndex(el) {\n if (!el) {\n return null;\n }\n\n var numberTabIndex = el.tabIndex;\n var tabIndex = el.getAttribute('tabIndex');\n\n if (numberTabIndex === -1 && (tabIndex === null || tabIndex === '' && !isBrowserFirefox())) {\n return null;\n }\n\n return numberTabIndex.toString();\n}\n\nfunction getMaxDivHeight() {\n if (!document.body) {\n return -1;\n }\n\n var res = 1000000; // FF reports the height back but still renders blank after ~6M px\n\n var testUpTo = navigator.userAgent.toLowerCase().match(/firefox/) ? 6000000 : 1000000000;\n var div = document.createElement('div');\n document.body.appendChild(div);\n\n while (true) {\n var test = res * 2;\n div.style.height = test + 'px';\n\n if (test > testUpTo || div.clientHeight !== test) {\n break;\n } else {\n res = test;\n }\n }\n\n document.body.removeChild(div);\n return res;\n}\n\nfunction getScrollbarWidth() {\n if (browserScrollbarWidth == null) {\n initScrollbarWidthAndVisibility();\n }\n\n return browserScrollbarWidth;\n}\n\nfunction initScrollbarWidthAndVisibility() {\n var body = document.body;\n var div = document.createElement('div');\n div.style.width = div.style.height = '100px';\n div.style.opacity = '0';\n div.style.overflow = 'scroll';\n div.style.msOverflowStyle = 'scrollbar'; // needed for WinJS apps\n\n div.style.position = 'absolute';\n body.appendChild(div);\n var width = div.offsetWidth - div.clientWidth; // if width is 0 and client width is 0, means the DOM isn't ready\n\n if (width === 0 && div.clientWidth === 0) {\n width = null;\n } // remove div\n\n\n if (div.parentNode) {\n div.parentNode.removeChild(div);\n }\n\n if (width != null) {\n browserScrollbarWidth = width;\n invisibleScrollbar = width === 0;\n }\n}\n\nfunction isInvisibleScrollbar() {\n if (invisibleScrollbar == null) {\n initScrollbarWidthAndVisibility();\n }\n\n return invisibleScrollbar;\n}\n/** @deprecated */\n\n\nfunction hasOverflowScrolling() {\n var e_1, _a;\n\n var prefixes = ['webkit', 'moz', 'o', 'ms'];\n var div = document.createElement('div');\n var body = document.getElementsByTagName('body')[0];\n var found = false;\n var p;\n body.appendChild(div);\n div.setAttribute('style', prefixes.map(function (prefix) {\n return \"-\" + prefix + \"-overflow-scrolling: touch\";\n }).concat('overflow-scrolling: touch').join(';'));\n var computedStyle = window.getComputedStyle(div);\n\n if (computedStyle.overflowScrolling === 'touch') {\n found = true;\n }\n\n if (!found) {\n try {\n for (var prefixes_1 = __values$5(prefixes), prefixes_1_1 = prefixes_1.next(); !prefixes_1_1.done; prefixes_1_1 = prefixes_1.next()) {\n p = prefixes_1_1.value;\n\n if (computedStyle[p + \"OverflowScrolling\"] === 'touch') {\n found = true;\n break;\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (prefixes_1_1 && !prefixes_1_1.done && (_a = prefixes_1.return)) _a.call(prefixes_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n }\n\n if (div.parentNode) {\n div.parentNode.removeChild(div);\n }\n\n return found;\n}\n/**\n * Gets the document body width\n * from: http://stackoverflow.com/questions/1038727/how-to-get-browser-width-using-javascript-code\n * @returns {number}\n */\n\n\nfunction getBodyWidth() {\n if (document.body) {\n return document.body.clientWidth;\n }\n\n if (window.innerHeight) {\n return window.innerWidth;\n }\n\n if (document.documentElement && document.documentElement.clientWidth) {\n return document.documentElement.clientWidth;\n }\n\n return -1;\n}\n/**\n * Gets the body height\n * from: http://stackoverflow.com/questions/1038727/how-to-get-browser-width-using-javascript-code\n * @returns {number}\n */\n\n\nfunction getBodyHeight() {\n if (document.body) {\n return document.body.clientHeight;\n }\n\n if (window.innerHeight) {\n return window.innerHeight;\n }\n\n if (document.documentElement && document.documentElement.clientHeight) {\n return document.documentElement.clientHeight;\n }\n\n return -1;\n}\n\nvar BrowserUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n getBrowserInfo: getBrowserInfo,\n isBrowserEdge: isBrowserEdge,\n isBrowserSafari: isBrowserSafari,\n isBrowserChrome: isBrowserChrome,\n isBrowserFirefox: isBrowserFirefox,\n isMacOsUserAgent: isMacOsUserAgent,\n isIOSUserAgent: isIOSUserAgent,\n browserSupportsPreventScroll: browserSupportsPreventScroll,\n getTabIndex: getTabIndex,\n getMaxDivHeight: getMaxDivHeight,\n getScrollbarWidth: getScrollbarWidth,\n isInvisibleScrollbar: isInvisibleScrollbar,\n hasOverflowScrolling: hasOverflowScrolling,\n getBodyWidth: getBodyWidth,\n getBodyHeight: getBodyHeight\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nfunction fuzzyCheckStrings(inputValues, validValues, allSuggestions) {\n var fuzzyMatches = {};\n var invalidInputs = inputValues.filter(function (inputValue) {\n return !validValues.some(function (validValue) {\n return validValue === inputValue;\n });\n });\n\n if (invalidInputs.length > 0) {\n invalidInputs.forEach(function (invalidInput) {\n return fuzzyMatches[invalidInput] = fuzzySuggestions(invalidInput, allSuggestions);\n });\n }\n\n return fuzzyMatches;\n}\n/**\n *\n * @param {String} inputValue The value to be compared against a list of strings\n * @param allSuggestions The list of strings to be compared against\n * @param hideIrrelevant By default, fuzzy suggestions will just sort the allSuggestions list, set this to true\n * to filter out the irrelevant values\n * @param weighted Set this to true, to make letters matched in the order they were typed have priority in the results.\n */\n\n\nfunction fuzzySuggestions(inputValue, allSuggestions, hideIrrelevant, weighted) {\n var search = weighted ? string_weighted_distances : string_distances;\n var thisSuggestions = allSuggestions.map(function (text) {\n return {\n value: text,\n relevance: search(inputValue.toLowerCase(), text.toLocaleLowerCase())\n };\n });\n thisSuggestions.sort(function (a, b) {\n return b.relevance - a.relevance;\n });\n\n if (hideIrrelevant) {\n thisSuggestions = thisSuggestions.filter(function (suggestion) {\n return suggestion.relevance !== 0;\n });\n }\n\n return thisSuggestions.map(function (suggestion) {\n return suggestion.value;\n });\n}\n/**\n * Algorithm to do fuzzy search\n * from https://stackoverflow.com/questions/23305000/javascript-fuzzy-search-that-makes-sense\n * @param {string} from\n * @return {[]}\n */\n\n\nfunction get_bigrams(from) {\n var s = from.toLowerCase();\n var v = new Array(s.length - 1);\n var i;\n var j;\n var ref;\n\n for (i = j = 0, ref = v.length; j <= ref; i = j += 1) {\n v[i] = s.slice(i, i + 2);\n }\n\n return v;\n}\n\nfunction string_distances(str1, str2) {\n if (str1.length === 0 && str2.length === 0) {\n return 0;\n }\n\n var pairs1 = get_bigrams(str1);\n var pairs2 = get_bigrams(str2);\n var union = pairs1.length + pairs2.length;\n var hit_count = 0;\n var j;\n var len;\n\n for (j = 0, len = pairs1.length; j < len; j++) {\n var x = pairs1[j];\n var k = void 0;\n var len1 = void 0;\n\n for (k = 0, len1 = pairs2.length; k < len1; k++) {\n var y = pairs2[k];\n\n if (x === y) {\n hit_count++;\n }\n }\n }\n\n return hit_count > 0 ? 2 * hit_count / union : 0;\n}\n\nfunction string_weighted_distances(str1, str2) {\n var a = str1.replace(/\\s/g, '');\n var b = str2.replace(/\\s/g, '');\n var weight = 0;\n var lastIndex = 0;\n\n for (var i = 0; i < a.length; i++) {\n var idx = b.indexOf(a[i], lastIndex);\n\n if (idx === -1) {\n continue;\n }\n\n lastIndex = idx;\n weight += 100 - lastIndex * 100 / 10000 * 100;\n }\n\n return weight;\n}\n\nvar FuzzyMatchUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n fuzzyCheckStrings: fuzzyCheckStrings,\n fuzzySuggestions: fuzzySuggestions,\n get_bigrams: get_bigrams,\n string_distances: string_distances,\n string_weighted_distances: string_weighted_distances\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nfunction padStartWidthZeros(value, totalStringSize) {\n return value.toString().padStart(totalStringSize, '0');\n}\n\nfunction createArrayOfNumbers(first, last) {\n var result = [];\n\n for (var i = first; i <= last; i++) {\n result.push(i);\n }\n\n return result;\n}\n/**\n * Check if a value is numeric\n * from http://stackoverflow.com/questions/9716468/is-there-any-function-like-isnumeric-in-javascript-to-validate-numbers\n * @param {any} value\n * @return {boolean}\n */\n\n\nfunction isNumeric(value) {\n return value !== '' && !isNaN(parseFloat(value)) && isFinite(value);\n}\n\nfunction cleanNumber(value) {\n if (typeof value === 'string') {\n value = parseInt(value, 10);\n }\n\n if (typeof value === 'number') {\n return Math.floor(value);\n }\n\n return null;\n}\n\nfunction decToHex(number, bytes) {\n var hex = '';\n\n for (var i = 0; i < bytes; i++) {\n hex += String.fromCharCode(number & 0xff);\n number >>>= 8;\n }\n\n return hex;\n}\n\nfunction formatNumberTwoDecimalPlacesAndCommas(value, thousandSeparator, decimalSeparator) {\n if (typeof value !== 'number') {\n return '';\n }\n\n return formatNumberCommas(Math.round(value * 100) / 100, thousandSeparator, decimalSeparator);\n}\n/**\n * the native method number.toLocaleString(undefined, {minimumFractionDigits: 0})\n * puts in decimal places in IE, so we use this method instead\n * from: http://blog.tompawlak.org/number-currency-formatting-javascript\n * @param {number} value\n * @returns {string}\n */\n\n\nfunction formatNumberCommas(value, thousandSeparator, decimalSeparator) {\n if (typeof value !== 'number') {\n return '';\n }\n\n return value.toString().replace('.', decimalSeparator).replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, \"$1\" + thousandSeparator);\n}\n\nfunction sum(values) {\n return values == null ? null : values.reduce(function (total, value) {\n return total + value;\n }, 0);\n}\n\nvar NumberUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n padStartWidthZeros: padStartWidthZeros,\n createArrayOfNumbers: createArrayOfNumbers,\n isNumeric: isNumeric,\n cleanNumber: cleanNumber,\n decToHex: decToHex,\n formatNumberTwoDecimalPlacesAndCommas: formatNumberTwoDecimalPlacesAndCommas,\n formatNumberCommas: formatNumberCommas,\n sum: sum\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nvar __assign$f = undefined && undefined.__assign || function () {\n __assign$f = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$f.apply(this, arguments);\n};\n\nvar __decorate$2v = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __param$8 = undefined && undefined.__param || function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n};\n\nvar __read$l = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$f = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$l(arguments[i]));\n }\n\n return ar;\n};\n\nvar DEFAULT_ROW_HEIGHT = 25;\nvar DEFAULT_DETAIL_ROW_HEIGHT = 300;\nvar DEFAULT_VIEWPORT_ROW_MODEL_PAGE_SIZE = 5;\nvar DEFAULT_VIEWPORT_ROW_MODEL_BUFFER_SIZE = 5;\nvar DEFAULT_KEEP_DETAIL_ROW_COUNT = 10;\n\nfunction isTrue(value) {\n return value === true || value === 'true';\n}\n\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n\n if (typeof value == 'string') {\n return parseInt(value, 10);\n }\n}\n\nfunction zeroOrGreater(value, defaultValue) {\n if (value >= 0) {\n return value;\n } // zero gets returned if number is missing or the wrong type\n\n\n return defaultValue;\n}\n\nfunction oneOrGreater(value, defaultValue) {\n var valueNumber = parseInt(value, 10);\n\n if (isNumeric(valueNumber) && valueNumber > 0) {\n return valueNumber;\n }\n\n return defaultValue;\n}\n\nvar GridOptionsWrapper =\n/** @class */\nfunction () {\n function GridOptionsWrapper() {\n this.propertyEventService = new EventService();\n this.domDataKey = '__AG_' + Math.random().toString();\n this.destroyed = false;\n }\n\n GridOptionsWrapper_1 = GridOptionsWrapper;\n\n GridOptionsWrapper.prototype.agWire = function (gridApi, columnApi) {\n this.gridOptions.api = gridApi;\n this.gridOptions.columnApi = columnApi;\n this.checkForDeprecated();\n this.checkForViolations();\n };\n\n GridOptionsWrapper.prototype.destroy = function () {\n // need to remove these, as we don't own the lifecycle of the gridOptions, we need to\n // remove the references in case the user keeps the grid options, we want the rest\n // of the grid to be picked up by the garbage collector\n this.gridOptions.api = null;\n this.gridOptions.columnApi = null;\n this.destroyed = true;\n };\n\n GridOptionsWrapper.prototype.init = function () {\n var _this = this;\n\n if (this.gridOptions.suppressPropertyNamesCheck !== true) {\n this.checkGridOptionsProperties();\n this.checkColumnDefProperties();\n } // parse side bar options into correct format\n\n\n if (this.gridOptions.sideBar != null) {\n this.gridOptions.sideBar = SideBarDefParser.parse(this.gridOptions.sideBar);\n }\n\n var async = this.useAsyncEvents();\n this.eventService.addGlobalListener(this.globalEventHandler.bind(this), async);\n\n if (this.isGroupSelectsChildren() && this.isSuppressParentsInRowNodes()) {\n console.warn(\"AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work\");\n }\n\n if (this.isGroupSelectsChildren()) {\n if (!this.isRowSelectionMulti()) {\n console.warn(\"AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense\");\n }\n\n if (this.isRowModelServerSide()) {\n 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 as' + 'the grid has no way of knowing what the children are.');\n }\n }\n\n if (this.isGroupRemoveSingleChildren() && this.isGroupHideOpenParents()) {\n 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 use these together on our support forum either, you will get the same answer!\");\n }\n\n if (this.isRowModelServerSide()) {\n var msg = function msg(prop) {\n return \"AG Grid: '\" + prop + \"' is not supported on the Server-Side Row Model\";\n };\n\n if (exists(this.gridOptions.groupDefaultExpanded)) {\n console.warn(msg('groupDefaultExpanded'));\n }\n\n if (exists(this.gridOptions.groupDefaultExpanded)) {\n console.warn(msg('groupIncludeFooter'));\n }\n\n if (exists(this.gridOptions.groupDefaultExpanded)) {\n console.warn(msg('groupIncludeTotalFooter'));\n }\n }\n\n if (isTrue(this.gridOptions.enableRangeSelection)) {\n ModuleRegistry.assertRegistered(ModuleNames.RangeSelectionModule, 'enableRangeSelection');\n } else if (this.isEnableRangeHandle() || this.isEnableFillHandle()) {\n console.warn(\"AG Grid: 'enableRangeHandle' or 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true\");\n }\n\n if (this.isGroupRowsSticky()) {\n if (this.isGroupHideOpenParents()) {\n console.warn(\"AG Grid: groupRowsSticky and groupHideOpenParents do not work with each other, you need to pick one.\");\n }\n\n if (this.isMasterDetail()) {\n console.warn(\"AG Grid: groupRowsSticky and masterDetail do not work with each other, you need to pick one.\");\n }\n\n if (this.isPagination()) {\n console.warn(\"AG Grid: groupRowsSticky and pagination do not work with each other, you need to pick one.\");\n }\n }\n\n var warnOfDeprecaredIcon = function warnOfDeprecaredIcon(name) {\n if (_this.gridOptions.icons && _this.gridOptions.icons[name]) {\n console.warn(\"gridOptions.icons.\" + name + \" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/\");\n }\n };\n\n warnOfDeprecaredIcon('radioButtonOff');\n warnOfDeprecaredIcon('radioButtonOn');\n warnOfDeprecaredIcon('checkboxChecked');\n warnOfDeprecaredIcon('checkboxUnchecked');\n warnOfDeprecaredIcon('checkboxIndeterminate'); // sets an initial calculation for the scrollbar width\n\n this.getScrollbarWidth();\n };\n\n GridOptionsWrapper.prototype.checkColumnDefProperties = function () {\n var _this = this;\n\n if (this.gridOptions.columnDefs == null) {\n return;\n }\n\n this.gridOptions.columnDefs.forEach(function (colDef) {\n var userProperties = Object.getOwnPropertyNames(colDef);\n\n var validProperties = __spread$f(ColDefUtil.ALL_PROPERTIES, ColDefUtil.FRAMEWORK_PROPERTIES);\n\n _this.checkProperties(userProperties, validProperties, validProperties, 'colDef', 'https://www.ag-grid.com/javascript-grid-column-properties/');\n });\n };\n\n GridOptionsWrapper.prototype.checkGridOptionsProperties = function () {\n var userProperties = Object.getOwnPropertyNames(this.gridOptions);\n\n var validProperties = __spread$f(PropertyKeys.ALL_PROPERTIES, PropertyKeys.FRAMEWORK_PROPERTIES, values(Events).map(function (event) {\n return ComponentUtil.getCallbackForEvent(event);\n }));\n\n var validPropertiesAndExceptions = __spread$f(validProperties, ['api', 'columnApi']);\n\n this.checkProperties(userProperties, validPropertiesAndExceptions, validProperties, 'gridOptions', 'https://www.ag-grid.com/javascript-data-grid/grid-options/');\n };\n\n GridOptionsWrapper.prototype.checkProperties = function (userProperties, validPropertiesAndExceptions, validProperties, containerName, docsUrl) {\n var invalidProperties = fuzzyCheckStrings(userProperties, validPropertiesAndExceptions, validProperties);\n iterateObject(invalidProperties, function (key, value) {\n console.warn(\"ag-grid: invalid \" + containerName + \" property '\" + key + \"' did you mean any of these: \" + value.slice(0, 8).join(\", \"));\n });\n\n if (Object.keys(invalidProperties).length > 0) {\n console.warn(\"ag-grid: to see all the valid \" + containerName + \" properties please check: \" + docsUrl);\n }\n };\n /**\n * Wrap the user callback and attach the api, columnApi and context to the params object on the way through.\n * @param callback User provided callback\n * @returns Wrapped callback where the params object not require api, columnApi and context\n */\n\n\n GridOptionsWrapper.prototype.mergeGridCommonParams = function (callback) {\n var _this = this;\n\n if (callback) {\n var wrapped = function wrapped(callbackParams) {\n var mergedParams = __assign$f(__assign$f({}, callbackParams), {\n api: _this.getApi(),\n columnApi: _this.getColumnApi(),\n context: _this.getContext()\n });\n\n return callback(mergedParams);\n };\n\n return wrapped;\n }\n\n return callback;\n };\n\n GridOptionsWrapper.prototype.getDomDataKey = function () {\n return this.domDataKey;\n }; // returns the dom data, or undefined if not found\n\n\n GridOptionsWrapper.prototype.getDomData = function (element, key) {\n var domData = element[this.getDomDataKey()];\n return domData ? domData[key] : undefined;\n };\n\n GridOptionsWrapper.prototype.setDomData = function (element, key, value) {\n var domDataKey = this.getDomDataKey();\n var domData = element[domDataKey];\n\n if (missing(domData)) {\n domData = {};\n element[domDataKey] = domData;\n }\n\n domData[key] = value;\n };\n\n GridOptionsWrapper.prototype.isRowSelection = function () {\n return this.gridOptions.rowSelection === 'single' || this.gridOptions.rowSelection === 'multiple';\n };\n\n GridOptionsWrapper.prototype.isSuppressRowDeselection = function () {\n return isTrue(this.gridOptions.suppressRowDeselection);\n };\n\n GridOptionsWrapper.prototype.isRowSelectionMulti = function () {\n return this.gridOptions.rowSelection === 'multiple';\n };\n\n GridOptionsWrapper.prototype.isRowMultiSelectWithClick = function () {\n return isTrue(this.gridOptions.rowMultiSelectWithClick);\n };\n\n GridOptionsWrapper.prototype.getContext = function () {\n return this.gridOptions.context;\n };\n\n GridOptionsWrapper.prototype.isPivotMode = function () {\n return isTrue(this.gridOptions.pivotMode);\n };\n\n GridOptionsWrapper.prototype.isSuppressExpandablePivotGroups = function () {\n return isTrue(this.gridOptions.suppressExpandablePivotGroups);\n };\n\n GridOptionsWrapper.prototype.getPivotColumnGroupTotals = function () {\n return this.gridOptions.pivotColumnGroupTotals;\n };\n\n GridOptionsWrapper.prototype.getPivotRowTotals = function () {\n return this.gridOptions.pivotRowTotals;\n };\n\n GridOptionsWrapper.prototype.isRowModelInfinite = function () {\n return this.gridOptions.rowModelType === Constants.ROW_MODEL_TYPE_INFINITE;\n };\n\n GridOptionsWrapper.prototype.isRowModelViewport = function () {\n return this.gridOptions.rowModelType === Constants.ROW_MODEL_TYPE_VIEWPORT;\n };\n\n GridOptionsWrapper.prototype.isRowModelServerSide = function () {\n return this.gridOptions.rowModelType === Constants.ROW_MODEL_TYPE_SERVER_SIDE;\n };\n\n GridOptionsWrapper.prototype.isRowModelDefault = function () {\n return missing(this.gridOptions.rowModelType) || this.gridOptions.rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE;\n };\n\n GridOptionsWrapper.prototype.isFullRowEdit = function () {\n return this.gridOptions.editType === 'fullRow';\n };\n\n GridOptionsWrapper.prototype.isSuppressFocusAfterRefresh = function () {\n return isTrue(this.gridOptions.suppressFocusAfterRefresh);\n };\n\n GridOptionsWrapper.prototype.isSuppressBrowserResizeObserver = function () {\n return isTrue(this.gridOptions.suppressBrowserResizeObserver);\n };\n\n GridOptionsWrapper.prototype.isSuppressMaintainUnsortedOrder = function () {\n return isTrue(this.gridOptions.suppressMaintainUnsortedOrder);\n };\n\n GridOptionsWrapper.prototype.isSuppressClearOnFillReduction = function () {\n return isTrue(this.gridOptions.suppressClearOnFillReduction);\n };\n\n GridOptionsWrapper.prototype.isShowToolPanel = function () {\n return isTrue(this.gridOptions.sideBar && Array.isArray(this.getSideBar().toolPanels));\n };\n\n GridOptionsWrapper.prototype.getSideBar = function () {\n return this.gridOptions.sideBar;\n };\n\n GridOptionsWrapper.prototype.isSuppressTouch = function () {\n return isTrue(this.gridOptions.suppressTouch);\n };\n\n GridOptionsWrapper.prototype.isMaintainColumnOrder = function () {\n return isTrue(this.gridOptions.maintainColumnOrder);\n };\n\n GridOptionsWrapper.prototype.isSuppressRowTransform = function () {\n return isTrue(this.gridOptions.suppressRowTransform);\n };\n\n GridOptionsWrapper.prototype.isSuppressColumnStateEvents = function () {\n return isTrue(this.gridOptions.suppressColumnStateEvents);\n };\n\n GridOptionsWrapper.prototype.isAllowDragFromColumnsToolPanel = function () {\n return isTrue(this.gridOptions.allowDragFromColumnsToolPanel);\n };\n\n GridOptionsWrapper.prototype.useAsyncEvents = function () {\n return !isTrue(this.gridOptions.suppressAsyncEvents);\n };\n\n GridOptionsWrapper.prototype.isEnableCellChangeFlash = function () {\n return isTrue(this.gridOptions.enableCellChangeFlash);\n };\n\n GridOptionsWrapper.prototype.getCellFlashDelay = function () {\n return this.gridOptions.cellFlashDelay || 500;\n };\n\n GridOptionsWrapper.prototype.getCellFadeDelay = function () {\n return this.gridOptions.cellFadeDelay || 1000;\n };\n\n GridOptionsWrapper.prototype.isGroupSelectsChildren = function () {\n return isTrue(this.gridOptions.groupSelectsChildren);\n };\n\n GridOptionsWrapper.prototype.isSuppressRowHoverHighlight = function () {\n return isTrue(this.gridOptions.suppressRowHoverHighlight);\n };\n\n GridOptionsWrapper.prototype.isColumnHoverHighlight = function () {\n return isTrue(this.gridOptions.columnHoverHighlight);\n };\n\n GridOptionsWrapper.prototype.isGroupSelectsFiltered = function () {\n return isTrue(this.gridOptions.groupSelectsFiltered);\n };\n\n GridOptionsWrapper.prototype.isGroupHideOpenParents = function () {\n return isTrue(this.gridOptions.groupHideOpenParents);\n };\n\n GridOptionsWrapper.prototype.isGroupMaintainOrder = function () {\n return isTrue(this.gridOptions.groupMaintainOrder);\n };\n\n GridOptionsWrapper.prototype.getAutoGroupColumnDef = function () {\n return this.gridOptions.autoGroupColumnDef;\n };\n\n GridOptionsWrapper.prototype.isColumnsSortingCoupledToGroup = function () {\n var _a;\n\n var autoGroupColumnDef = this.getAutoGroupColumnDef();\n var isClientSideRowModel = this.isRowModelDefault();\n return isClientSideRowModel && !((_a = autoGroupColumnDef) === null || _a === void 0 ? void 0 : _a.comparator);\n };\n\n GridOptionsWrapper.prototype.isGroupMultiAutoColumn = function () {\n if (this.gridOptions.groupDisplayType) {\n return this.matchesGroupDisplayType('multipleColumns', this.gridOptions.groupDisplayType);\n } // if we are doing hideOpenParents we also show multiple columns, otherwise hideOpenParents would not work\n\n\n return isTrue(this.gridOptions.groupHideOpenParents);\n };\n\n GridOptionsWrapper.prototype.isGroupUseEntireRow = function (pivotMode) {\n // we never allow groupUseEntireRow if in pivot mode, otherwise we won't see the pivot values.\n if (pivotMode) {\n return false;\n }\n\n return this.gridOptions.groupDisplayType ? this.matchesGroupDisplayType('groupRows', this.gridOptions.groupDisplayType) : false;\n };\n\n GridOptionsWrapper.prototype.isGroupRowsSticky = function () {\n return isTrue(this.gridOptions.groupRowsSticky);\n };\n\n GridOptionsWrapper.prototype.isGroupSuppressAutoColumn = function () {\n var isCustomRowGroups = this.gridOptions.groupDisplayType ? this.matchesGroupDisplayType('custom', this.gridOptions.groupDisplayType) : false;\n\n if (isCustomRowGroups) {\n return true;\n }\n\n return this.gridOptions.treeDataDisplayType ? this.matchesTreeDataDisplayType('custom', this.gridOptions.treeDataDisplayType) : false;\n };\n\n GridOptionsWrapper.prototype.isGroupRemoveSingleChildren = function () {\n return isTrue(this.gridOptions.groupRemoveSingleChildren);\n };\n\n GridOptionsWrapper.prototype.isGroupRemoveLowestSingleChildren = function () {\n return isTrue(this.gridOptions.groupRemoveLowestSingleChildren);\n };\n\n GridOptionsWrapper.prototype.isGroupIncludeFooter = function () {\n return isTrue(this.gridOptions.groupIncludeFooter);\n };\n\n GridOptionsWrapper.prototype.isGroupIncludeTotalFooter = function () {\n return isTrue(this.gridOptions.groupIncludeTotalFooter);\n };\n\n GridOptionsWrapper.prototype.isGroupSuppressBlankHeader = function () {\n return isTrue(this.gridOptions.groupSuppressBlankHeader);\n };\n\n GridOptionsWrapper.prototype.isSuppressRowClickSelection = function () {\n return isTrue(this.gridOptions.suppressRowClickSelection);\n };\n\n GridOptionsWrapper.prototype.isSuppressCellFocus = function () {\n return isTrue(this.gridOptions.suppressCellFocus);\n };\n\n GridOptionsWrapper.prototype.isSuppressMultiSort = function () {\n return isTrue(this.gridOptions.suppressMultiSort);\n };\n\n GridOptionsWrapper.prototype.isAlwaysMultiSort = function () {\n return isTrue(this.gridOptions.alwaysMultiSort);\n };\n\n GridOptionsWrapper.prototype.isMultiSortKeyCtrl = function () {\n return this.gridOptions.multiSortKey === 'ctrl';\n };\n\n GridOptionsWrapper.prototype.isPivotSuppressAutoColumn = function () {\n return isTrue(this.gridOptions.pivotSuppressAutoColumn);\n };\n\n GridOptionsWrapper.prototype.isSuppressDragLeaveHidesColumns = function () {\n return isTrue(this.gridOptions.suppressDragLeaveHidesColumns);\n };\n\n GridOptionsWrapper.prototype.isSuppressRowGroupHidesColumns = function () {\n return isTrue(this.gridOptions.suppressRowGroupHidesColumns);\n };\n\n GridOptionsWrapper.prototype.isSuppressScrollOnNewData = function () {\n return isTrue(this.gridOptions.suppressScrollOnNewData);\n };\n\n GridOptionsWrapper.prototype.isSuppressScrollWhenPopupsAreOpen = function () {\n return isTrue(this.gridOptions.suppressScrollWhenPopupsAreOpen);\n };\n\n GridOptionsWrapper.prototype.isRowDragEntireRow = function () {\n return isTrue(this.gridOptions.rowDragEntireRow);\n };\n\n GridOptionsWrapper.prototype.isSuppressRowDrag = function () {\n return isTrue(this.gridOptions.suppressRowDrag);\n };\n\n GridOptionsWrapper.prototype.isRowDragManaged = function () {\n return isTrue(this.gridOptions.rowDragManaged);\n };\n\n GridOptionsWrapper.prototype.isSuppressMoveWhenRowDragging = function () {\n return isTrue(this.gridOptions.suppressMoveWhenRowDragging);\n };\n\n GridOptionsWrapper.prototype.isRowDragMultiRow = function () {\n return isTrue(this.gridOptions.rowDragMultiRow);\n }; // returns either 'print', 'autoHeight' or 'normal' (normal is the default)\n\n\n GridOptionsWrapper.prototype.getDomLayout = function () {\n var domLayout = this.gridOptions.domLayout || Constants.DOM_LAYOUT_NORMAL;\n var validLayouts = [Constants.DOM_LAYOUT_PRINT, Constants.DOM_LAYOUT_AUTO_HEIGHT, Constants.DOM_LAYOUT_NORMAL];\n\n if (validLayouts.indexOf(domLayout) === -1) {\n doOnce(function () {\n return console.warn(\"AG Grid: \" + domLayout + \" is not valid for DOM Layout, valid values are \" + Constants.DOM_LAYOUT_NORMAL + \", \" + Constants.DOM_LAYOUT_AUTO_HEIGHT + \" and \" + Constants.DOM_LAYOUT_PRINT);\n }, 'warn about dom layout values');\n return Constants.DOM_LAYOUT_NORMAL;\n }\n\n return domLayout;\n };\n\n GridOptionsWrapper.prototype.isSuppressHorizontalScroll = function () {\n return isTrue(this.gridOptions.suppressHorizontalScroll);\n };\n\n GridOptionsWrapper.prototype.isSuppressMaxRenderedRowRestriction = function () {\n return isTrue(this.gridOptions.suppressMaxRenderedRowRestriction);\n };\n\n GridOptionsWrapper.prototype.isExcludeChildrenWhenTreeDataFiltering = function () {\n return isTrue(this.gridOptions.excludeChildrenWhenTreeDataFiltering);\n };\n\n GridOptionsWrapper.prototype.isAlwaysShowHorizontalScroll = function () {\n return isTrue(this.gridOptions.alwaysShowHorizontalScroll);\n };\n\n GridOptionsWrapper.prototype.isAlwaysShowVerticalScroll = function () {\n return isTrue(this.gridOptions.alwaysShowVerticalScroll);\n };\n\n GridOptionsWrapper.prototype.isDebounceVerticalScrollbar = function () {\n return isTrue(this.gridOptions.debounceVerticalScrollbar);\n };\n\n GridOptionsWrapper.prototype.isSuppressLoadingOverlay = function () {\n return isTrue(this.gridOptions.suppressLoadingOverlay);\n };\n\n GridOptionsWrapper.prototype.isSuppressNoRowsOverlay = function () {\n return isTrue(this.gridOptions.suppressNoRowsOverlay);\n };\n\n GridOptionsWrapper.prototype.isSuppressFieldDotNotation = function () {\n return isTrue(this.gridOptions.suppressFieldDotNotation);\n };\n\n GridOptionsWrapper.prototype.getPinnedTopRowData = function () {\n return this.gridOptions.pinnedTopRowData;\n };\n\n GridOptionsWrapper.prototype.getPinnedBottomRowData = function () {\n return this.gridOptions.pinnedBottomRowData;\n };\n\n GridOptionsWrapper.prototype.isFunctionsPassive = function () {\n return isTrue(this.gridOptions.functionsPassive);\n };\n\n GridOptionsWrapper.prototype.isSuppressChangeDetection = function () {\n return isTrue(this.gridOptions.suppressChangeDetection);\n };\n\n GridOptionsWrapper.prototype.isSuppressAnimationFrame = function () {\n return isTrue(this.gridOptions.suppressAnimationFrame);\n };\n\n GridOptionsWrapper.prototype.getQuickFilterText = function () {\n return this.gridOptions.quickFilterText;\n };\n\n GridOptionsWrapper.prototype.isCacheQuickFilter = function () {\n return isTrue(this.gridOptions.cacheQuickFilter);\n };\n\n GridOptionsWrapper.prototype.isUnSortIcon = function () {\n return isTrue(this.gridOptions.unSortIcon);\n };\n\n GridOptionsWrapper.prototype.isSuppressMenuHide = function () {\n return isTrue(this.gridOptions.suppressMenuHide);\n };\n\n GridOptionsWrapper.prototype.isEnterMovesDownAfterEdit = function () {\n return isTrue(this.gridOptions.enterMovesDownAfterEdit);\n };\n\n GridOptionsWrapper.prototype.isEnterMovesDown = function () {\n return isTrue(this.gridOptions.enterMovesDown);\n };\n\n GridOptionsWrapper.prototype.isUndoRedoCellEditing = function () {\n return isTrue(this.gridOptions.undoRedoCellEditing);\n };\n\n GridOptionsWrapper.prototype.getUndoRedoCellEditingLimit = function () {\n return toNumber(this.gridOptions.undoRedoCellEditingLimit);\n };\n\n GridOptionsWrapper.prototype.getRowStyle = function () {\n return this.gridOptions.rowStyle;\n };\n\n GridOptionsWrapper.prototype.getRowClass = function () {\n return this.gridOptions.rowClass;\n };\n\n GridOptionsWrapper.prototype.getRowStyleFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.getRowStyle);\n };\n\n GridOptionsWrapper.prototype.getRowClassFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.getRowClass);\n };\n\n GridOptionsWrapper.prototype.rowClassRules = function () {\n return this.gridOptions.rowClassRules;\n };\n\n GridOptionsWrapper.prototype.isServerSideInfiniteScroll = function () {\n return isTrue(this.gridOptions.serverSideInfiniteScroll);\n };\n\n GridOptionsWrapper.prototype.getServerSideGroupLevelParamsFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.getServerSideGroupLevelParams);\n };\n\n GridOptionsWrapper.prototype.getCreateChartContainerFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.createChartContainer);\n };\n\n GridOptionsWrapper.prototype.getPopupParent = function () {\n return this.gridOptions.popupParent;\n };\n\n GridOptionsWrapper.prototype.getBlockLoadDebounceMillis = function () {\n return this.gridOptions.blockLoadDebounceMillis;\n };\n\n GridOptionsWrapper.prototype.getPostProcessPopupFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.postProcessPopup);\n };\n\n GridOptionsWrapper.prototype.getPaginationNumberFormatterFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.paginationNumberFormatter);\n };\n\n GridOptionsWrapper.prototype.getChildCountFunc = function () {\n return this.gridOptions.getChildCount;\n };\n\n GridOptionsWrapper.prototype.getIsApplyServerSideTransactionFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.isApplyServerSideTransaction);\n };\n\n GridOptionsWrapper.prototype.getInitialGroupOrderComparator = function () {\n var _a = this.gridOptions,\n initialGroupOrderComparator = _a.initialGroupOrderComparator,\n defaultGroupOrderComparator = _a.defaultGroupOrderComparator;\n\n if (initialGroupOrderComparator) {\n return this.mergeGridCommonParams(initialGroupOrderComparator);\n } // this is the deprecated way, so provide a proxy to make it compatible\n\n\n if (defaultGroupOrderComparator) {\n return function (params) {\n return defaultGroupOrderComparator(params.nodeA, params.nodeB);\n };\n }\n };\n\n GridOptionsWrapper.prototype.getIsFullWidthCellFunc = function () {\n var _a = this.gridOptions,\n isFullWidthRow = _a.isFullWidthRow,\n isFullWidthCell = _a.isFullWidthCell;\n\n if (isFullWidthRow) {\n return this.mergeGridCommonParams(isFullWidthRow);\n } // this is the deprecated way, so provide a proxy to make it compatible\n\n\n if (isFullWidthCell) {\n return function (params) {\n return isFullWidthCell(params.rowNode);\n };\n }\n };\n\n GridOptionsWrapper.prototype.getFullWidthCellRendererParams = function () {\n return this.gridOptions.fullWidthCellRendererParams;\n };\n\n GridOptionsWrapper.prototype.isEmbedFullWidthRows = function () {\n return isTrue(this.gridOptions.embedFullWidthRows) || isTrue(this.gridOptions.deprecatedEmbedFullWidthRows);\n };\n\n GridOptionsWrapper.prototype.isDetailRowAutoHeight = function () {\n return isTrue(this.gridOptions.detailRowAutoHeight);\n };\n\n GridOptionsWrapper.prototype.getSuppressKeyboardEventFunc = function () {\n return this.gridOptions.suppressKeyboardEvent;\n };\n\n GridOptionsWrapper.prototype.getBusinessKeyForNodeFunc = function () {\n return this.gridOptions.getBusinessKeyForNode;\n };\n\n GridOptionsWrapper.prototype.getApi = function () {\n return this.gridOptions.api;\n };\n\n GridOptionsWrapper.prototype.getColumnApi = function () {\n return this.gridOptions.columnApi;\n };\n\n GridOptionsWrapper.prototype.isReadOnlyEdit = function () {\n return isTrue(this.gridOptions.readOnlyEdit);\n };\n\n GridOptionsWrapper.prototype.isImmutableData = function () {\n // we used to have a property immutableData for this. however this was deprecated\n // in favour of having Immutable Data on by default when getRowId is provided\n var getRowIdProvided = this.gridOptions.getRowId != null;\n var immutableData = isTrue(this.gridOptions.immutableData); // this property is a backwards compatibility property, for those who want\n // the old behaviour of Row ID's but NOT Immutable Data.\n\n var resetRowDataOnUpdate = isTrue(this.gridOptions.resetRowDataOnUpdate);\n\n if (resetRowDataOnUpdate) {\n return false;\n }\n\n return getRowIdProvided || immutableData;\n };\n\n GridOptionsWrapper.prototype.isEnsureDomOrder = function () {\n return isTrue(this.gridOptions.ensureDomOrder);\n };\n\n GridOptionsWrapper.prototype.isEnableCharts = function () {\n if (isTrue(this.gridOptions.enableCharts)) {\n return ModuleRegistry.assertRegistered(ModuleNames.GridChartsModule, 'enableCharts');\n }\n\n return false;\n };\n\n GridOptionsWrapper.prototype.getColResizeDefault = function () {\n return this.gridOptions.colResizeDefault;\n };\n\n GridOptionsWrapper.prototype.isSingleClickEdit = function () {\n return isTrue(this.gridOptions.singleClickEdit);\n };\n\n GridOptionsWrapper.prototype.isSuppressClickEdit = function () {\n return isTrue(this.gridOptions.suppressClickEdit);\n };\n\n GridOptionsWrapper.prototype.isStopEditingWhenCellsLoseFocus = function () {\n return isTrue(this.gridOptions.stopEditingWhenCellsLoseFocus);\n };\n\n GridOptionsWrapper.prototype.getGroupDefaultExpanded = function () {\n return this.gridOptions.groupDefaultExpanded;\n };\n\n GridOptionsWrapper.prototype.getMaxConcurrentDatasourceRequests = function () {\n var res = toNumber(this.gridOptions.maxConcurrentDatasourceRequests);\n\n if (res == null) {\n return 2;\n } // 2 is the default\n\n\n if (res <= 0) {\n return;\n } // negative number, eg -1, means no max restriction\n\n\n return res;\n };\n\n GridOptionsWrapper.prototype.getMaxBlocksInCache = function () {\n return this.gridOptions.maxBlocksInCache;\n };\n\n GridOptionsWrapper.prototype.getCacheOverflowSize = function () {\n return this.gridOptions.cacheOverflowSize;\n };\n\n GridOptionsWrapper.prototype.getPaginationPageSize = function () {\n return toNumber(this.gridOptions.paginationPageSize);\n };\n\n GridOptionsWrapper.prototype.isPaginateChildRows = function () {\n var shouldPaginate = this.isGroupRemoveSingleChildren() || this.isGroupRemoveLowestSingleChildren();\n\n if (shouldPaginate) {\n return true;\n }\n\n return isTrue(this.gridOptions.paginateChildRows);\n };\n\n GridOptionsWrapper.prototype.getCacheBlockSize = function () {\n return oneOrGreater(this.gridOptions.cacheBlockSize);\n };\n\n GridOptionsWrapper.prototype.getInfiniteInitialRowCount = function () {\n return this.gridOptions.infiniteInitialRowCount;\n };\n\n GridOptionsWrapper.prototype.getServerSideInitialRowCount = function () {\n var rowCount = this.gridOptions.serverSideInitialRowCount;\n\n if (typeof rowCount === 'number' && rowCount > 0) {\n return rowCount;\n }\n\n return 1;\n };\n\n GridOptionsWrapper.prototype.isPurgeClosedRowNodes = function () {\n return isTrue(this.gridOptions.purgeClosedRowNodes);\n };\n\n GridOptionsWrapper.prototype.isSuppressPaginationPanel = function () {\n return isTrue(this.gridOptions.suppressPaginationPanel);\n };\n\n GridOptionsWrapper.prototype.getRowData = function () {\n return this.gridOptions.rowData;\n };\n\n GridOptionsWrapper.prototype.isEnableRtl = function () {\n return isTrue(this.gridOptions.enableRtl);\n };\n\n GridOptionsWrapper.prototype.getRowGroupPanelShow = function () {\n return this.gridOptions.rowGroupPanelShow;\n };\n\n GridOptionsWrapper.prototype.getPivotPanelShow = function () {\n return this.gridOptions.pivotPanelShow;\n };\n\n GridOptionsWrapper.prototype.isAngularCompileRows = function () {\n return isTrue(this.gridOptions.angularCompileRows);\n };\n\n GridOptionsWrapper.prototype.isAngularCompileFilters = function () {\n return isTrue(this.gridOptions.angularCompileFilters);\n };\n\n GridOptionsWrapper.prototype.isDebug = function () {\n return isTrue(this.gridOptions.debug);\n };\n\n GridOptionsWrapper.prototype.getColumnDefs = function () {\n return this.gridOptions.columnDefs;\n };\n\n GridOptionsWrapper.prototype.getColumnTypes = function () {\n return this.gridOptions.columnTypes;\n };\n\n GridOptionsWrapper.prototype.getDatasource = function () {\n return this.gridOptions.datasource;\n };\n\n GridOptionsWrapper.prototype.getViewportDatasource = function () {\n return this.gridOptions.viewportDatasource;\n };\n\n GridOptionsWrapper.prototype.getServerSideDatasource = function () {\n return this.gridOptions.serverSideDatasource;\n };\n\n GridOptionsWrapper.prototype.isAccentedSort = function () {\n return isTrue(this.gridOptions.accentedSort);\n };\n\n GridOptionsWrapper.prototype.isEnableBrowserTooltips = function () {\n return isTrue(this.gridOptions.enableBrowserTooltips);\n };\n\n GridOptionsWrapper.prototype.isEnableCellExpressions = function () {\n return isTrue(this.gridOptions.enableCellExpressions);\n };\n\n GridOptionsWrapper.prototype.isEnableGroupEdit = function () {\n return isTrue(this.gridOptions.enableGroupEdit);\n };\n\n GridOptionsWrapper.prototype.isSuppressMiddleClickScrolls = function () {\n return isTrue(this.gridOptions.suppressMiddleClickScrolls);\n };\n\n GridOptionsWrapper.prototype.isPreventDefaultOnContextMenu = function () {\n return isTrue(this.gridOptions.preventDefaultOnContextMenu);\n };\n\n GridOptionsWrapper.prototype.isSuppressPreventDefaultOnMouseWheel = function () {\n return isTrue(this.gridOptions.suppressPreventDefaultOnMouseWheel);\n };\n\n GridOptionsWrapper.prototype.isSuppressColumnVirtualisation = function () {\n return isTrue(this.gridOptions.suppressColumnVirtualisation);\n };\n\n GridOptionsWrapper.prototype.isSuppressRowVirtualisation = function () {\n return isTrue(this.gridOptions.suppressRowVirtualisation);\n };\n\n GridOptionsWrapper.prototype.isSuppressContextMenu = function () {\n return isTrue(this.gridOptions.suppressContextMenu);\n };\n\n GridOptionsWrapper.prototype.isAllowContextMenuWithControlKey = function () {\n return isTrue(this.gridOptions.allowContextMenuWithControlKey);\n };\n\n GridOptionsWrapper.prototype.isSuppressCopyRowsToClipboard = function () {\n return isTrue(this.gridOptions.suppressCopyRowsToClipboard);\n };\n\n GridOptionsWrapper.prototype.isSuppressCopySingleCellRanges = function () {\n return isTrue(this.gridOptions.suppressCopySingleCellRanges);\n };\n\n GridOptionsWrapper.prototype.isCopyHeadersToClipboard = function () {\n return isTrue(this.gridOptions.copyHeadersToClipboard);\n };\n\n GridOptionsWrapper.prototype.isCopyGroupHeadersToClipboard = function () {\n return isTrue(this.gridOptions.copyGroupHeadersToClipboard);\n };\n\n GridOptionsWrapper.prototype.isSuppressClipboardPaste = function () {\n return isTrue(this.gridOptions.suppressClipboardPaste);\n };\n\n GridOptionsWrapper.prototype.isSuppressLastEmptyLineOnPaste = function () {\n return isTrue(this.gridOptions.suppressLastEmptyLineOnPaste);\n };\n\n GridOptionsWrapper.prototype.isPagination = function () {\n return isTrue(this.gridOptions.pagination);\n };\n\n GridOptionsWrapper.prototype.isSuppressEnterpriseResetOnNewColumns = function () {\n return isTrue(this.gridOptions.suppressEnterpriseResetOnNewColumns);\n };\n\n GridOptionsWrapper.prototype.getProcessDataFromClipboardFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.processDataFromClipboard);\n };\n\n GridOptionsWrapper.prototype.getAsyncTransactionWaitMillis = function () {\n return exists(this.gridOptions.asyncTransactionWaitMillis) ? this.gridOptions.asyncTransactionWaitMillis : Constants.BATCH_WAIT_MILLIS;\n };\n\n GridOptionsWrapper.prototype.isSuppressMovableColumns = function () {\n return isTrue(this.gridOptions.suppressMovableColumns);\n };\n\n GridOptionsWrapper.prototype.isAnimateRows = function () {\n // never allow animating if enforcing the row order\n if (this.isEnsureDomOrder()) {\n return false;\n }\n\n return isTrue(this.gridOptions.animateRows);\n };\n\n GridOptionsWrapper.prototype.isSuppressColumnMoveAnimation = function () {\n return isTrue(this.gridOptions.suppressColumnMoveAnimation);\n };\n\n GridOptionsWrapper.prototype.isSuppressAggFuncInHeader = function () {\n return isTrue(this.gridOptions.suppressAggFuncInHeader);\n };\n\n GridOptionsWrapper.prototype.isSuppressAggAtRootLevel = function () {\n return isTrue(this.gridOptions.suppressAggAtRootLevel);\n };\n\n GridOptionsWrapper.prototype.isSuppressAggFilteredOnly = function () {\n var isGroupAggFiltering = this.getGroupAggFiltering() !== undefined;\n return isGroupAggFiltering || isTrue(this.gridOptions.suppressAggFilteredOnly);\n };\n\n GridOptionsWrapper.prototype.isRemovePivotHeaderRowWhenSingleValueColumn = function () {\n return isTrue(this.gridOptions.removePivotHeaderRowWhenSingleValueColumn);\n };\n\n GridOptionsWrapper.prototype.isShowOpenedGroup = function () {\n return isTrue(this.gridOptions.showOpenedGroup);\n };\n\n GridOptionsWrapper.prototype.isReactUi = function () {\n return isTrue(this.gridOptions.reactUi);\n };\n\n GridOptionsWrapper.prototype.isSuppressReactUi = function () {\n return isTrue(this.gridOptions.suppressReactUi);\n };\n\n GridOptionsWrapper.prototype.isEnableRangeSelection = function () {\n return ModuleRegistry.isRegistered(ModuleNames.RangeSelectionModule) && isTrue(this.gridOptions.enableRangeSelection);\n };\n\n GridOptionsWrapper.prototype.isEnableRangeHandle = function () {\n return isTrue(this.gridOptions.enableRangeHandle);\n };\n\n GridOptionsWrapper.prototype.isEnableFillHandle = function () {\n return isTrue(this.gridOptions.enableFillHandle);\n };\n\n GridOptionsWrapper.prototype.getFillHandleDirection = function () {\n var direction = this.gridOptions.fillHandleDirection;\n\n if (!direction) {\n return 'xy';\n }\n\n if (direction !== 'x' && direction !== 'y' && direction !== 'xy') {\n doOnce(function () {\n return console.warn(\"AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.\");\n }, 'warn invalid fill direction');\n return 'xy';\n }\n\n return direction;\n };\n\n GridOptionsWrapper.prototype.getFillOperation = function () {\n return this.mergeGridCommonParams(this.gridOptions.fillOperation);\n };\n\n GridOptionsWrapper.prototype.isSuppressMultiRangeSelection = function () {\n return isTrue(this.gridOptions.suppressMultiRangeSelection);\n };\n\n GridOptionsWrapper.prototype.isPaginationAutoPageSize = function () {\n return isTrue(this.gridOptions.paginationAutoPageSize);\n };\n\n GridOptionsWrapper.prototype.isRememberGroupStateWhenNewData = function () {\n return isTrue(this.gridOptions.rememberGroupStateWhenNewData);\n };\n\n GridOptionsWrapper.prototype.getIcons = function () {\n return this.gridOptions.icons;\n };\n\n GridOptionsWrapper.prototype.getGroupAggFiltering = function () {\n var userValue = this.gridOptions.groupAggFiltering;\n\n if (typeof userValue === 'function') {\n return this.mergeGridCommonParams(userValue);\n }\n\n if (isTrue(userValue)) {\n return function () {\n return true;\n };\n }\n\n return undefined;\n };\n\n GridOptionsWrapper.prototype.getAggFuncs = function () {\n return this.gridOptions.aggFuncs;\n };\n\n GridOptionsWrapper.prototype.getSortingOrder = function () {\n return this.gridOptions.sortingOrder;\n };\n\n GridOptionsWrapper.prototype.getAlignedGrids = function () {\n return this.gridOptions.alignedGrids;\n };\n\n GridOptionsWrapper.prototype.isMasterDetail = function () {\n var masterDetail = isTrue(this.gridOptions.masterDetail);\n\n if (masterDetail) {\n return ModuleRegistry.assertRegistered(ModuleNames.MasterDetailModule, 'masterDetail');\n } else {\n return false;\n }\n };\n\n GridOptionsWrapper.prototype.isKeepDetailRows = function () {\n return isTrue(this.gridOptions.keepDetailRows);\n };\n\n GridOptionsWrapper.prototype.getKeepDetailRowsCount = function () {\n var keepDetailRowsCount = this.gridOptions.keepDetailRowsCount;\n\n if (exists(keepDetailRowsCount) && keepDetailRowsCount > 0) {\n return this.gridOptions.keepDetailRowsCount;\n }\n\n return DEFAULT_KEEP_DETAIL_ROW_COUNT;\n };\n\n GridOptionsWrapper.prototype.getIsRowMasterFunc = function () {\n return this.gridOptions.isRowMaster;\n };\n\n GridOptionsWrapper.prototype.getIsRowSelectableFunc = function () {\n return this.gridOptions.isRowSelectable;\n };\n\n GridOptionsWrapper.prototype.getGroupRowRendererParams = function () {\n return this.gridOptions.groupRowRendererParams;\n };\n\n GridOptionsWrapper.prototype.getOverlayLoadingTemplate = function () {\n return this.gridOptions.overlayLoadingTemplate;\n };\n\n GridOptionsWrapper.prototype.getOverlayNoRowsTemplate = function () {\n return this.gridOptions.overlayNoRowsTemplate;\n };\n\n GridOptionsWrapper.prototype.isSuppressAutoSize = function () {\n return isTrue(this.gridOptions.suppressAutoSize);\n };\n\n GridOptionsWrapper.prototype.isEnableCellTextSelection = function () {\n return isTrue(this.gridOptions.enableCellTextSelection);\n };\n\n GridOptionsWrapper.prototype.isSuppressParentsInRowNodes = function () {\n return isTrue(this.gridOptions.suppressParentsInRowNodes);\n };\n\n GridOptionsWrapper.prototype.isSuppressClipboardApi = function () {\n return isTrue(this.gridOptions.suppressClipboardApi);\n };\n\n GridOptionsWrapper.prototype.isFunctionsReadOnly = function () {\n return isTrue(this.gridOptions.functionsReadOnly);\n };\n\n GridOptionsWrapper.prototype.isEnableCellTextSelect = function () {\n return isTrue(this.gridOptions.enableCellTextSelection);\n };\n\n GridOptionsWrapper.prototype.getDefaultColDef = function () {\n return this.gridOptions.defaultColDef;\n };\n\n GridOptionsWrapper.prototype.getDefaultColGroupDef = function () {\n return this.gridOptions.defaultColGroupDef;\n };\n\n GridOptionsWrapper.prototype.getDefaultExportParams = function (type) {\n if (this.gridOptions.defaultExportParams) {\n console.warn(\"AG Grid: Since v25.2 `defaultExportParams` has been replaced by `default\" + capitalise(type) + \"ExportParams`'\");\n\n if (type === 'csv') {\n return this.gridOptions.defaultExportParams;\n }\n\n return this.gridOptions.defaultExportParams;\n }\n\n if (type === 'csv' && this.gridOptions.defaultCsvExportParams) {\n return this.gridOptions.defaultCsvExportParams;\n }\n\n if (type === 'excel' && this.gridOptions.defaultExcelExportParams) {\n return this.gridOptions.defaultExcelExportParams;\n }\n };\n\n GridOptionsWrapper.prototype.isSuppressCsvExport = function () {\n return isTrue(this.gridOptions.suppressCsvExport);\n };\n\n GridOptionsWrapper.prototype.isAllowShowChangeAfterFilter = function () {\n return isTrue(this.gridOptions.allowShowChangeAfterFilter);\n };\n\n GridOptionsWrapper.prototype.isSuppressExcelExport = function () {\n return isTrue(this.gridOptions.suppressExcelExport);\n };\n\n GridOptionsWrapper.prototype.isSuppressMakeColumnVisibleAfterUnGroup = function () {\n return isTrue(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup);\n };\n\n GridOptionsWrapper.prototype.getDataPathFunc = function () {\n return this.gridOptions.getDataPath;\n };\n\n GridOptionsWrapper.prototype.getIsServerSideGroupFunc = function () {\n return this.gridOptions.isServerSideGroup;\n };\n\n GridOptionsWrapper.prototype.getIsServerSideGroupOpenByDefaultFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.isServerSideGroupOpenByDefault);\n };\n\n GridOptionsWrapper.prototype.getIsGroupOpenByDefaultFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.isGroupOpenByDefault);\n };\n\n GridOptionsWrapper.prototype.getServerSideGroupKeyFunc = function () {\n return this.gridOptions.getServerSideGroupKey;\n };\n\n GridOptionsWrapper.prototype.getGroupRowAggFunc = function () {\n var _a = this.gridOptions,\n getGroupRowAgg = _a.getGroupRowAgg,\n groupRowAggNodes = _a.groupRowAggNodes;\n\n if (getGroupRowAgg) {\n return this.mergeGridCommonParams(getGroupRowAgg);\n } // this is the deprecated way, so provide a proxy to make it compatible\n\n\n if (groupRowAggNodes) {\n return function (params) {\n return groupRowAggNodes(params.nodes);\n };\n }\n };\n\n GridOptionsWrapper.prototype.getContextMenuItemsFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.getContextMenuItems);\n };\n\n GridOptionsWrapper.prototype.getMainMenuItemsFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.getMainMenuItems);\n };\n\n GridOptionsWrapper.prototype.getRowIdFunc = function () {\n var _a = this.gridOptions,\n getRowId = _a.getRowId,\n getRowNodeId = _a.getRowNodeId;\n\n if (getRowId) {\n return this.mergeGridCommonParams(getRowId);\n } // this is the deprecated way, so provide a proxy to make it compatible\n\n\n if (getRowNodeId) {\n return function (params) {\n return getRowNodeId(params.data);\n };\n }\n };\n\n GridOptionsWrapper.prototype.getNavigateToNextHeaderFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.navigateToNextHeader);\n };\n\n GridOptionsWrapper.prototype.getTabToNextHeaderFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.tabToNextHeader);\n };\n\n GridOptionsWrapper.prototype.getNavigateToNextCellFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.navigateToNextCell);\n };\n\n GridOptionsWrapper.prototype.getTabToNextCellFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.tabToNextCell);\n };\n\n GridOptionsWrapper.prototype.getGridTabIndex = function () {\n return (this.gridOptions.tabIndex || 0).toString();\n };\n\n GridOptionsWrapper.prototype.isTreeData = function () {\n var usingTreeData = isTrue(this.gridOptions.treeData);\n\n if (usingTreeData) {\n return ModuleRegistry.assertRegistered(ModuleNames.RowGroupingModule, 'Tree Data');\n }\n\n return false;\n };\n\n GridOptionsWrapper.prototype.isValueCache = function () {\n return isTrue(this.gridOptions.valueCache);\n };\n\n GridOptionsWrapper.prototype.isValueCacheNeverExpires = function () {\n return isTrue(this.gridOptions.valueCacheNeverExpires);\n };\n\n GridOptionsWrapper.prototype.isDeltaSort = function () {\n return isTrue(this.gridOptions.deltaSort);\n };\n\n GridOptionsWrapper.prototype.isAggregateOnlyChangedColumns = function () {\n return isTrue(this.gridOptions.aggregateOnlyChangedColumns);\n };\n\n GridOptionsWrapper.prototype.getProcessPivotResultColDefFunc = function () {\n return this.gridOptions.processPivotResultColDef || this.gridOptions.processSecondaryColDef;\n };\n\n GridOptionsWrapper.prototype.getProcessPivotResultColGroupDefFunc = function () {\n return this.gridOptions.processPivotResultColGroupDef || this.gridOptions.processSecondaryColGroupDef;\n };\n\n GridOptionsWrapper.prototype.getSendToClipboardFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.sendToClipboard);\n };\n\n GridOptionsWrapper.prototype.getProcessRowPostCreateFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.processRowPostCreate);\n };\n\n GridOptionsWrapper.prototype.getProcessCellForClipboardFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.processCellForClipboard);\n };\n\n GridOptionsWrapper.prototype.getProcessHeaderForClipboardFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.processHeaderForClipboard);\n };\n\n GridOptionsWrapper.prototype.getProcessGroupHeaderForClipboardFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.processGroupHeaderForClipboard);\n };\n\n GridOptionsWrapper.prototype.getProcessCellFromClipboardFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.processCellFromClipboard);\n };\n\n GridOptionsWrapper.prototype.getViewportRowModelPageSize = function () {\n return oneOrGreater(this.gridOptions.viewportRowModelPageSize, DEFAULT_VIEWPORT_ROW_MODEL_PAGE_SIZE);\n };\n\n GridOptionsWrapper.prototype.getViewportRowModelBufferSize = function () {\n return zeroOrGreater(this.gridOptions.viewportRowModelBufferSize, DEFAULT_VIEWPORT_ROW_MODEL_BUFFER_SIZE);\n };\n\n GridOptionsWrapper.prototype.isServerSideSortAllLevels = function () {\n var isEnabled = isTrue(this.gridOptions.serverSideSortAllLevels);\n\n if (!this.isRowModelServerSide() && isEnabled) {\n doOnce(function () {\n return console.warn('AG Grid: The `serverSideSortAllLevels` property can only be used with the server side row model.');\n }, 'serverSideSortAllLevels');\n return false;\n }\n\n return isEnabled;\n };\n\n GridOptionsWrapper.prototype.isServerSideFilterAllLevels = function () {\n var isEnabled = isTrue(this.gridOptions.serverSideFilterAllLevels);\n\n if (!this.isRowModelServerSide() && isEnabled) {\n doOnce(function () {\n return console.warn('AG Grid: The `serverSideFilterAllLevels` property can only be used with the server side row model.');\n }, 'serverSideFilterAllLevels');\n return false;\n }\n\n return isEnabled;\n };\n\n GridOptionsWrapper.prototype.isServerSideSortOnServer = function () {\n var isEnabled = isTrue(this.gridOptions.serverSideSortOnServer);\n\n if (!this.isRowModelServerSide() && isEnabled) {\n doOnce(function () {\n return console.warn('AG Grid: The `serverSideSortOnServer` property can only be used with the server side row model.');\n }, 'serverSideSortOnServerRowModel');\n return false;\n }\n\n if (this.isTreeData() && isEnabled) {\n doOnce(function () {\n return console.warn('AG Grid: The `serverSideSortOnServer` property cannot be used while using tree data.');\n }, 'serverSideSortOnServerTreeData');\n return false;\n }\n\n return isEnabled;\n };\n\n GridOptionsWrapper.prototype.isServerSideFilterOnServer = function () {\n var isEnabled = isTrue(this.gridOptions.serverSideFilterOnServer);\n\n if (!this.isRowModelServerSide() && isEnabled) {\n doOnce(function () {\n return console.warn('AG Grid: The `serverSideFilterOnServer` property can only be used with the server side row model.');\n }, 'serverSideFilterOnServerRowModel');\n return false;\n }\n\n if (this.isTreeData() && isEnabled) {\n doOnce(function () {\n return console.warn('AG Grid: The `serverSideFilterOnServer` property cannot be used while using tree data.');\n }, 'serverSideFilterOnServerTreeData');\n return false;\n }\n\n return isEnabled;\n };\n\n GridOptionsWrapper.prototype.getPostSortFunc = function () {\n var _a = this.gridOptions,\n postSortRows = _a.postSortRows,\n postSort = _a.postSort;\n\n if (postSortRows) {\n return this.mergeGridCommonParams(postSortRows);\n } // this is the deprecated way, so provide a proxy to make it compatible\n\n\n if (postSort) {\n return function (params) {\n return postSort(params.nodes);\n };\n }\n };\n\n GridOptionsWrapper.prototype.getChartToolbarItemsFunc = function () {\n return this.mergeGridCommonParams(this.gridOptions.getChartToolbarItems);\n };\n\n GridOptionsWrapper.prototype.getChartThemeOverrides = function () {\n return this.gridOptions.chartThemeOverrides;\n };\n\n GridOptionsWrapper.prototype.getCustomChartThemes = function () {\n return this.gridOptions.customChartThemes;\n };\n\n GridOptionsWrapper.prototype.getChartThemes = function () {\n // return default themes if user hasn't supplied any\n return this.gridOptions.chartThemes || ['ag-default', 'ag-material', 'ag-pastel', 'ag-vivid', 'ag-solar'];\n };\n\n GridOptionsWrapper.prototype.getClipboardDelimiter = function () {\n return exists(this.gridOptions.clipboardDelimiter) ? this.gridOptions.clipboardDelimiter : '\\t';\n };\n\n GridOptionsWrapper.prototype.setProperty = function (key, value, force) {\n if (force === void 0) {\n force = false;\n }\n\n var previousValue = this.gridOptions[key];\n\n if (force || previousValue !== value) {\n this.gridOptions[key] = value;\n var event_1 = {\n type: key,\n currentValue: value,\n previousValue: previousValue\n };\n this.propertyEventService.dispatchEvent(event_1);\n }\n };\n\n GridOptionsWrapper.prototype.addEventListener = function (key, listener) {\n this.propertyEventService.addEventListener(key, listener);\n };\n\n GridOptionsWrapper.prototype.removeEventListener = function (key, listener) {\n this.propertyEventService.removeEventListener(key, listener);\n };\n\n GridOptionsWrapper.prototype.isSkipHeaderOnAutoSize = function () {\n return !!this.gridOptions.skipHeaderOnAutoSize;\n };\n\n GridOptionsWrapper.prototype.getAutoSizePadding = function () {\n var value = this.gridOptions.autoSizePadding;\n return value != null && value >= 0 ? value : 20;\n }; // properties\n\n\n GridOptionsWrapper.prototype.getHeaderHeight = function () {\n if (typeof this.gridOptions.headerHeight === 'number') {\n return this.gridOptions.headerHeight;\n }\n\n return this.getFromTheme(25, 'headerHeight');\n };\n\n GridOptionsWrapper.prototype.getFloatingFiltersHeight = function () {\n if (typeof this.gridOptions.floatingFiltersHeight === 'number') {\n return this.gridOptions.floatingFiltersHeight;\n }\n\n return this.getFromTheme(25, 'headerHeight');\n };\n\n GridOptionsWrapper.prototype.getGroupHeaderHeight = function () {\n if (typeof this.gridOptions.groupHeaderHeight === 'number') {\n return this.gridOptions.groupHeaderHeight;\n }\n\n return this.getHeaderHeight();\n };\n\n GridOptionsWrapper.prototype.getPivotHeaderHeight = function () {\n if (typeof this.gridOptions.pivotHeaderHeight === 'number') {\n return this.gridOptions.pivotHeaderHeight;\n }\n\n return this.getHeaderHeight();\n };\n\n GridOptionsWrapper.prototype.getPivotGroupHeaderHeight = function () {\n if (typeof this.gridOptions.pivotGroupHeaderHeight === 'number') {\n return this.gridOptions.pivotGroupHeaderHeight;\n }\n\n return this.getGroupHeaderHeight();\n };\n\n GridOptionsWrapper.prototype.isExternalFilterPresent = function () {\n if (typeof this.gridOptions.isExternalFilterPresent === 'function') {\n return this.gridOptions.isExternalFilterPresent({\n api: this.getApi(),\n columnApi: this.getColumnApi(),\n context: this.getContext()\n });\n }\n\n return false;\n };\n\n GridOptionsWrapper.prototype.doesExternalFilterPass = function (node) {\n if (typeof this.gridOptions.doesExternalFilterPass === 'function') {\n return this.gridOptions.doesExternalFilterPass(node);\n }\n\n return false;\n };\n\n GridOptionsWrapper.prototype.getTooltipDelay = function (type) {\n var _a = this.gridOptions,\n tooltipShowDelay = _a.tooltipShowDelay,\n tooltipHideDelay = _a.tooltipHideDelay;\n var delay = type === 'show' ? tooltipShowDelay : tooltipHideDelay;\n var capitalisedType = capitalise(type);\n\n if (exists(delay)) {\n if (delay < 0) {\n doOnce(function () {\n return console.warn(\"ag-grid: tooltip\" + capitalisedType + \"Delay should not be lower than 0\");\n }, \"tooltip\" + capitalisedType + \"DelayWarn\");\n }\n\n return Math.max(200, delay);\n }\n\n return null;\n };\n\n GridOptionsWrapper.prototype.isTooltipMouseTrack = function () {\n return isTrue(this.gridOptions.tooltipMouseTrack);\n };\n\n GridOptionsWrapper.prototype.isSuppressModelUpdateAfterUpdateTransaction = function () {\n return isTrue(this.gridOptions.suppressModelUpdateAfterUpdateTransaction);\n };\n\n GridOptionsWrapper.prototype.getDocument = function () {\n // if user is providing document, we use the users one,\n // otherwise we use the document on the global namespace.\n var result = null;\n\n if (this.gridOptions.getDocument && exists(this.gridOptions.getDocument)) {\n result = this.gridOptions.getDocument();\n } else if (this.eGridDiv) {\n result = this.eGridDiv.ownerDocument;\n }\n\n if (result && exists(result)) {\n return result;\n }\n\n return document;\n };\n\n GridOptionsWrapper.prototype.getMinColWidth = function () {\n var minColWidth = this.gridOptions.minColWidth;\n\n if (exists(minColWidth) && minColWidth > GridOptionsWrapper_1.MIN_COL_WIDTH) {\n return this.gridOptions.minColWidth;\n }\n\n var measuredMin = this.getFromTheme(null, 'headerCellMinWidth');\n return exists(measuredMin) ? Math.max(measuredMin, GridOptionsWrapper_1.MIN_COL_WIDTH) : GridOptionsWrapper_1.MIN_COL_WIDTH;\n };\n\n GridOptionsWrapper.prototype.getMaxColWidth = function () {\n if (this.gridOptions.maxColWidth && this.gridOptions.maxColWidth > GridOptionsWrapper_1.MIN_COL_WIDTH) {\n return this.gridOptions.maxColWidth;\n }\n\n return null;\n };\n\n GridOptionsWrapper.prototype.getColWidth = function () {\n if (typeof this.gridOptions.colWidth !== 'number' || this.gridOptions.colWidth < GridOptionsWrapper_1.MIN_COL_WIDTH) {\n return 200;\n }\n\n return this.gridOptions.colWidth;\n };\n\n GridOptionsWrapper.prototype.getRowBuffer = function () {\n var rowBuffer = this.gridOptions.rowBuffer;\n\n if (typeof rowBuffer === 'number') {\n if (rowBuffer < 0) {\n doOnce(function () {\n return console.warn(\"AG Grid: rowBuffer should not be negative\");\n }, 'warn rowBuffer negative');\n this.gridOptions.rowBuffer = rowBuffer = 0;\n }\n } else {\n rowBuffer = Constants.ROW_BUFFER_SIZE;\n }\n\n return rowBuffer;\n };\n\n GridOptionsWrapper.prototype.getRowBufferInPixels = function () {\n var rowsToBuffer = this.getRowBuffer();\n var defaultRowHeight = this.getRowHeightAsNumber();\n return rowsToBuffer * defaultRowHeight;\n }; // the user might be using some non-standard scrollbar, eg a scrollbar that has zero\n // width and overlays (like the Safari scrollbar, but presented in Chrome). so we\n // allow the user to provide the scroll width before we work it out.\n\n\n GridOptionsWrapper.prototype.getScrollbarWidth = function () {\n if (this.scrollbarWidth == null) {\n var useGridOptions = typeof this.gridOptions.scrollbarWidth === 'number' && this.gridOptions.scrollbarWidth >= 0;\n var scrollbarWidth = useGridOptions ? this.gridOptions.scrollbarWidth : getScrollbarWidth();\n\n if (scrollbarWidth != null) {\n this.scrollbarWidth = scrollbarWidth;\n this.eventService.dispatchEvent({\n type: Events.EVENT_SCROLLBAR_WIDTH_CHANGED\n });\n }\n }\n\n return this.scrollbarWidth;\n };\n\n GridOptionsWrapper.prototype.checkForDeprecated = function () {\n // casting to generic object, so typescript compiles even though\n // we are looking for attributes that don't exist\n var options = this.gridOptions;\n\n if (options.deprecatedEmbedFullWidthRows) {\n console.warn(\"AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows.\");\n }\n\n if (options.rowDeselection) {\n 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.');\n }\n\n if (options.enableMultiRowDragging) {\n options.rowDragMultiRow = true;\n delete options.enableMultiRowDragging;\n console.warn('AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`.');\n }\n\n var checkRenamedProperty = function checkRenamedProperty(oldProp, newProp, version) {\n if (options[oldProp] != null) {\n console.warn(\"AG Grid: since version \" + version + \", '\" + oldProp + \"' is deprecated / renamed, please use the new property name '\" + newProp + \"' instead.\");\n\n if (options[newProp] == null) {\n options[newProp] = options[oldProp];\n }\n }\n };\n\n checkRenamedProperty('batchUpdateWaitMillis', 'asyncTransactionWaitMillis', '23.1.x');\n checkRenamedProperty('deltaRowDataMode', 'immutableData', '23.1.x');\n checkRenamedProperty('serverSideFilteringAlwaysResets', 'serverSideFilterAllLevels', '28.0.0');\n checkRenamedProperty('serverSideSortingAlwaysResets', 'serverSideSortAllLevels', '28.0.0');\n\n if (options.immutableColumns || options.deltaColumnMode) {\n 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');\n }\n\n checkRenamedProperty('suppressSetColumnStateEvents', 'suppressColumnStateEvents', '24.0.x');\n\n if (options.groupRowInnerRenderer || options.groupRowInnerRendererParams || options.groupRowInnerRendererFramework) {\n console.warn('AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used.');\n console.warn(' Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams.');\n console.warn(' For example instead of this:');\n console.warn(' groupRowInnerRenderer: \"myRenderer\"');\n console.warn(' groupRowInnerRendererParams: {x: a}');\n console.warn(' Replace with this:');\n console.warn(' groupRowRendererParams: {');\n console.warn(' innerRenderer: \"myRenderer\",');\n console.warn(' innerRendererParams: {x: a}');\n console.warn(' }');\n console.warn(' We have copied the properties over for you. However to stop this error message, please change your application code.');\n\n if (!options.groupRowRendererParams) {\n options.groupRowRendererParams = {};\n }\n\n var params = options.groupRowRendererParams;\n\n if (options.groupRowInnerRenderer) {\n params.innerRenderer = options.groupRowInnerRenderer;\n }\n\n if (options.groupRowInnerRendererParams) {\n params.innerRendererParams = options.groupRowInnerRendererParams;\n }\n\n if (options.groupRowInnerRendererFramework) {\n params.innerRendererFramework = options.groupRowInnerRendererFramework;\n }\n }\n\n if (options.rememberGroupStateWhenNewData) {\n 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.');\n }\n\n if (options.detailCellRendererParams && options.detailCellRendererParams.autoHeight) {\n 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');\n options.detailRowAutoHeight = true;\n }\n\n if (options.suppressKeyboardEvent) {\n 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.\");\n }\n\n if (options.suppressEnterpriseResetOnNewColumns) {\n 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.');\n }\n\n if (options.suppressColumnStateEvents) {\n 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');\n }\n\n if (options.defaultExportParams) {\n console.warn('AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`.');\n }\n\n if (options.stopEditingWhenGridLosesFocus) {\n console.warn('AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`.');\n options.stopEditingWhenCellsLoseFocus = true;\n }\n\n if (options.applyColumnDefOrder) {\n console.warn('AG Grid: since v26.0, the grid property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true');\n }\n\n if (options.groupMultiAutoColumn) {\n console.warn(\"AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`\");\n options.groupDisplayType = 'multipleColumns';\n }\n\n if (options.groupUseEntireRow) {\n console.warn(\"AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`\");\n options.groupDisplayType = 'groupRows';\n }\n\n if (options.groupSuppressAutoColumn) {\n var propName = options.treeData ? 'treeDataDisplayType' : 'groupDisplayType';\n console.warn(\"AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `\" + propName + \" = 'custom'`\");\n options.groupDisplayType = 'custom';\n }\n\n if (options.defaultGroupOrderComparator) {\n console.warn(\"AG Grid: since v27.2, the grid property `defaultGroupOrderComparator` is deprecated and has been replaced by `initialGroupOrderComparator` and now receives a single params object.\");\n }\n\n if (options.defaultGroupSortComparator) {\n console.warn(\"AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `initialGroupOrderComparator`\");\n options.defaultGroupOrderComparator = options.defaultGroupSortComparator;\n }\n\n if (options.groupRowAggNodes) {\n console.warn(\"AG Grid: since v27.2, the grid property `groupRowAggNodes` is deprecated and has been replaced by `getGroupRowAgg` and now receives a single params object.\");\n }\n\n if (options.postSort) {\n console.warn(\"AG Grid: since v27.2, the grid property `postSort` is deprecated and has been replaced by `postSortRows` and now receives a single params object.\");\n }\n\n if (options.isFullWidthCell) {\n console.warn(\"AG Grid: since v27.2, the grid property `isFullWidthCell` is deprecated and has been replaced by `isFullWidthRow` and now receives a single params object.\");\n }\n\n if (options.localeTextFunc) {\n console.warn(\"AG Grid: since v27.2, the grid property `localeTextFunc` is deprecated and has been replaced by `getLocaleText` and now receives a single params object.\");\n }\n\n if (options.colWidth) {\n console.warn('AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`.');\n }\n\n if (options.minColWidth) {\n console.warn('AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`.');\n }\n\n if (options.maxColWidth) {\n console.warn('AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`.');\n }\n\n if (options.reactUi) {\n console.warn('AG Grid: since v27.0, React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true.');\n }\n\n if (options.suppressReactUi) {\n console.warn('AG Grid: The legacy React rendering engine is deprecated and will be removed in the next major version of the grid.');\n }\n\n if (options.suppressCellSelection) {\n console.warn('AG Grid: since v27.0, `suppressCellSelection` has been replaced by `suppressCellFocus`.');\n options.suppressCellFocus = options.suppressCellSelection;\n }\n\n if (options.getRowNodeId) {\n console.warn('AG Grid: since v27.1, `getRowNodeId` is deprecated and has been replaced by `getRowId`. The difference: if getRowId() is implemented then immutable data is enabled by default.');\n }\n\n if (options.immutableData) {\n if (options.getRowId) {\n console.warn('AG Grid: since v27.1, `immutableData` is deprecated. With the `getRowId` callback implemented, immutable data is enabled by default so you can remove `immutableData=true`.');\n } else {\n console.warn('AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.');\n }\n }\n\n if (options.clipboardDeliminator) {\n console.warn('AG Grid: since v27.1, `clipboardDeliminator` has been replaced by `clipboardDelimiter`.');\n options.clipboardDelimiter = options.clipboardDeliminator;\n }\n\n checkRenamedProperty('processSecondaryColDef', 'processPivotResultColDef', '28.0.x');\n checkRenamedProperty('processSecondaryColGroupDef', 'processPivotResultColGroupDef', '28.0.x');\n\n if (options.serverSideStoreType) {\n console.warn('AG Grid: since v28.0, `serverSideStoreType` has been replaced by `serverSideInfiniteScroll`. Set to true to use Partial Store, and false to use Full Store.');\n options.serverSideInfiniteScroll = options.serverSideStoreType === 'partial';\n }\n\n checkRenamedProperty('getServerSideStoreParams', 'getServerSideGroupLevelParams', '28.0.x');\n };\n\n GridOptionsWrapper.prototype.checkForViolations = function () {\n if (this.isTreeData()) {\n this.treeDataViolations();\n }\n };\n\n GridOptionsWrapper.prototype.treeDataViolations = function () {\n if (this.isRowModelDefault()) {\n if (missing(this.getDataPathFunc())) {\n 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.');\n }\n }\n\n if (this.isRowModelServerSide()) {\n if (missing(this.getIsServerSideGroupFunc())) {\n 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.');\n }\n\n if (missing(this.getServerSideGroupKeyFunc())) {\n 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.');\n }\n }\n };\n\n GridOptionsWrapper.prototype.getLocaleTextFunc = function () {\n var _this = this;\n\n var _a = this.gridOptions,\n localeText = _a.localeText,\n getLocaleText = _a.getLocaleText,\n localeTextFunc = _a.localeTextFunc;\n\n if (getLocaleText) {\n //key: string, defaultValue: string, variableValues?: string[]\n return function (key, defaultValue, variableValues) {\n var params = {\n key: key,\n defaultValue: defaultValue,\n variableValues: variableValues,\n api: _this.getApi(),\n columnApi: _this.getColumnApi(),\n context: _this.getContext()\n };\n return getLocaleText(params);\n };\n }\n\n if (localeTextFunc) {\n return localeTextFunc;\n }\n\n return function (key, defaultValue, variableValues) {\n var localisedText = localeText && localeText[key];\n\n if (localisedText && variableValues && variableValues.length) {\n var found = 0;\n\n while (true) {\n if (found >= variableValues.length) {\n break;\n }\n\n var idx = localisedText.indexOf('${variable}');\n\n if (idx === -1) {\n break;\n }\n\n localisedText = localisedText.replace('${variable}', variableValues[found++]);\n }\n }\n\n return localisedText !== null && localisedText !== void 0 ? localisedText : defaultValue;\n };\n }; // responsible for calling the onXXX functions on gridOptions\n\n\n GridOptionsWrapper.prototype.globalEventHandler = function (eventName, event) {\n // prevent events from being fired _after_ the grid has been destroyed\n if (this.destroyed) {\n return;\n }\n\n var callbackMethodName = ComponentUtil.getCallbackForEvent(eventName);\n\n if (typeof this.gridOptions[callbackMethodName] === 'function') {\n this.gridOptions[callbackMethodName](event);\n }\n };\n\n GridOptionsWrapper.prototype.setRowHeightVariable = function (height) {\n var oldRowHeight = this.eGridDiv.style.getPropertyValue('--ag-line-height').trim();\n var newRowHeight = height + \"px\";\n\n if (oldRowHeight != newRowHeight) {\n this.eGridDiv.style.setProperty('--ag-line-height', newRowHeight);\n }\n }; // we don't allow dynamic row height for virtual paging\n\n\n GridOptionsWrapper.prototype.getRowHeightAsNumber = function () {\n if (!this.gridOptions.rowHeight || missing(this.gridOptions.rowHeight)) {\n return this.getDefaultRowHeight();\n }\n\n var rowHeight = this.gridOptions.rowHeight;\n\n if (rowHeight && this.isNumeric(rowHeight)) {\n this.setRowHeightVariable(rowHeight);\n return rowHeight;\n }\n\n console.warn('AG Grid row height must be a number if not using standard row model');\n return this.getDefaultRowHeight();\n };\n\n GridOptionsWrapper.prototype.isGetRowHeightFunction = function () {\n return typeof this.gridOptions.getRowHeight === 'function';\n };\n\n GridOptionsWrapper.prototype.getRowHeightForNode = function (rowNode, allowEstimate, defaultRowHeight) {\n if (allowEstimate === void 0) {\n allowEstimate = false;\n }\n\n if (defaultRowHeight == null) {\n defaultRowHeight = this.getDefaultRowHeight();\n } // check the function first, in case use set both function and\n // number, when using virtual pagination then function can be\n // used for pinned rows and the number for the body rows.\n\n\n if (this.isGetRowHeightFunction()) {\n if (allowEstimate) {\n return {\n height: defaultRowHeight,\n estimated: true\n };\n }\n\n var params = {\n node: rowNode,\n data: rowNode.data\n };\n var height = this.mergeGridCommonParams(this.gridOptions.getRowHeight)(params);\n\n if (this.isNumeric(height)) {\n if (height === 0) {\n doOnce(function () {\n return console.warn('AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.');\n }, 'invalidRowHeight');\n }\n\n return {\n height: Math.max(1, height),\n estimated: false\n };\n }\n }\n\n if (rowNode.detail && this.isMasterDetail()) {\n // if autoHeight, we want the height to grow to the new height starting at 1, as otherwise a flicker would happen,\n // as the detail goes to the default (eg 200px) and then immediately shrink up/down to the new measured height\n // (due to auto height) which looks bad, especially if doing row animation.\n if (this.isDetailRowAutoHeight()) {\n return {\n height: 1,\n estimated: false\n };\n }\n\n if (this.isNumeric(this.gridOptions.detailRowHeight)) {\n return {\n height: this.gridOptions.detailRowHeight,\n estimated: false\n };\n }\n\n return {\n height: DEFAULT_DETAIL_ROW_HEIGHT,\n estimated: false\n };\n }\n\n var rowHeight = this.gridOptions.rowHeight && this.isNumeric(this.gridOptions.rowHeight) ? this.gridOptions.rowHeight : defaultRowHeight;\n return {\n height: rowHeight,\n estimated: false\n };\n };\n\n GridOptionsWrapper.prototype.isDynamicRowHeight = function () {\n return typeof this.gridOptions.getRowHeight === 'function';\n };\n\n GridOptionsWrapper.prototype.getListItemHeight = function () {\n return this.getFromTheme(20, 'listItemHeight');\n };\n\n GridOptionsWrapper.prototype.chartMenuPanelWidth = function () {\n return this.environment.chartMenuPanelWidth();\n };\n\n GridOptionsWrapper.prototype.isNumeric = function (value) {\n return !isNaN(value) && typeof value === 'number' && isFinite(value);\n };\n\n GridOptionsWrapper.prototype.getFromTheme = function (defaultValue, sassVariableName) {\n var theme = this.environment.getTheme().theme;\n\n if (theme && theme.indexOf('ag-theme') === 0) {\n return this.environment.getSassVariable(theme, sassVariableName);\n }\n\n return defaultValue;\n };\n\n GridOptionsWrapper.prototype.getDefaultRowHeight = function () {\n return this.getFromTheme(DEFAULT_ROW_HEIGHT, 'rowHeight');\n };\n\n GridOptionsWrapper.prototype.matchesGroupDisplayType = function (toMatch, supplied) {\n var groupDisplayTypeValues = ['groupRows', 'multipleColumns', 'custom', 'singleColumn'];\n\n if (groupDisplayTypeValues.indexOf(supplied) < 0) {\n console.warn(\"AG Grid: '\" + supplied + \"' is not a valid groupDisplayType value - possible values are: '\" + groupDisplayTypeValues.join(\"', '\") + \"'\");\n return false;\n }\n\n return supplied === toMatch;\n };\n\n GridOptionsWrapper.prototype.matchesTreeDataDisplayType = function (toMatch, supplied) {\n var treeDataDisplayTypeValues = ['auto', 'custom'];\n\n if (treeDataDisplayTypeValues.indexOf(supplied) < 0) {\n console.warn(\"AG Grid: '\" + supplied + \"' is not a valid treeDataDisplayType value - possible values are: '\" + treeDataDisplayTypeValues.join(\"', '\") + \"'\");\n return false;\n }\n\n return supplied === toMatch;\n };\n\n var GridOptionsWrapper_1;\n GridOptionsWrapper.MIN_COL_WIDTH = 10;\n GridOptionsWrapper.PROP_HEADER_HEIGHT = 'headerHeight';\n GridOptionsWrapper.PROP_GROUP_REMOVE_SINGLE_CHILDREN = 'groupRemoveSingleChildren';\n GridOptionsWrapper.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN = 'groupRemoveLowestSingleChildren';\n GridOptionsWrapper.PROP_GROUP_DISPLAY_TYPE = 'groupDisplayType';\n GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT = 'pivotHeaderHeight';\n GridOptionsWrapper.PROP_SUPPRESS_CLIPBOARD_PASTE = 'suppressClipboardPaste';\n GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT = 'groupHeaderHeight';\n GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT = 'pivotGroupHeaderHeight';\n GridOptionsWrapper.PROP_NAVIGATE_TO_NEXT_CELL = 'navigateToNextCell';\n GridOptionsWrapper.PROP_TAB_TO_NEXT_CELL = 'tabToNextCell';\n GridOptionsWrapper.PROP_NAVIGATE_TO_NEXT_HEADER = 'navigateToNextHeader';\n GridOptionsWrapper.PROP_TAB_TO_NEXT_HEADER = 'tabToNextHeader';\n GridOptionsWrapper.PROP_IS_EXTERNAL_FILTER_PRESENT = 'isExternalFilterPresent';\n GridOptionsWrapper.PROP_DOES_EXTERNAL_FILTER_PASS = 'doesExternalFilterPass';\n GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT = 'floatingFiltersHeight';\n GridOptionsWrapper.PROP_SUPPRESS_ROW_CLICK_SELECTION = 'suppressRowClickSelection';\n GridOptionsWrapper.PROP_SUPPRESS_ROW_DRAG = 'suppressRowDrag';\n GridOptionsWrapper.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG = 'suppressMoveWhenRowDragging';\n GridOptionsWrapper.PROP_GET_ROW_CLASS = 'getRowClass';\n GridOptionsWrapper.PROP_GET_ROW_STYLE = 'getRowStyle';\n GridOptionsWrapper.PROP_GET_ROW_HEIGHT = 'getRowHeight';\n GridOptionsWrapper.PROP_POPUP_PARENT = 'popupParent';\n GridOptionsWrapper.PROP_DOM_LAYOUT = 'domLayout';\n GridOptionsWrapper.PROP_ROW_CLASS = 'rowClass';\n GridOptionsWrapper.PROP_FILL_HANDLE_DIRECTION = 'fillHandleDirection';\n GridOptionsWrapper.PROP_GROUP_ROW_AGG_NODES = 'groupRowAggNodes';\n GridOptionsWrapper.PROP_GET_GROUP_ROW_AGG = 'getGroupRowAgg';\n GridOptionsWrapper.PROP_GET_BUSINESS_KEY_FOR_NODE = 'getBusinessKeyForNode';\n GridOptionsWrapper.PROP_GET_CHILD_COUNT = 'getChildCount';\n GridOptionsWrapper.PROP_PROCESS_ROW_POST_CREATE = 'processRowPostCreate';\n GridOptionsWrapper.PROP_GET_ROW_NODE_ID = 'getRowNodeId';\n GridOptionsWrapper.PROP_GET_ROW_ID = 'getRowId';\n GridOptionsWrapper.PROP_IS_FULL_WIDTH_CELL = 'isFullWidthCell';\n GridOptionsWrapper.PROP_IS_FULL_WIDTH_ROW = 'isFullWidthRow';\n GridOptionsWrapper.PROP_IS_ROW_SELECTABLE = 'isRowSelectable';\n GridOptionsWrapper.PROP_IS_ROW_MASTER = 'isRowMaster';\n GridOptionsWrapper.PROP_POST_SORT = 'postSort';\n GridOptionsWrapper.PROP_POST_SORT_ROWS = 'postSortRows';\n GridOptionsWrapper.PROP_GET_DOCUMENT = 'getDocument';\n GridOptionsWrapper.PROP_POST_PROCESS_POPUP = 'postProcessPopup';\n GridOptionsWrapper.PROP_DEFAULT_GROUP_ORDER_COMPARATOR = 'defaultGroupOrderComparator';\n GridOptionsWrapper.PROP_INITIAL_GROUP_ORDER_COMPARATOR = 'initialGroupOrderComparator';\n GridOptionsWrapper.PROP_PAGINATION_NUMBER_FORMATTER = 'paginationNumberFormatter';\n GridOptionsWrapper.PROP_GET_CONTEXT_MENU_ITEMS = 'getContextMenuItems';\n GridOptionsWrapper.PROP_GET_MAIN_MENU_ITEMS = 'getMainMenuItems';\n GridOptionsWrapper.PROP_PROCESS_CELL_FOR_CLIPBOARD = 'processCellForClipboard';\n GridOptionsWrapper.PROP_PROCESS_CELL_FROM_CLIPBOARD = 'processCellFromClipboard';\n GridOptionsWrapper.PROP_SEND_TO_CLIPBOARD = 'sendToClipboard';\n GridOptionsWrapper.PROP_PROCESS_PIVOT_RESULT_COL_DEF = 'processPivotResultColDef';\n GridOptionsWrapper.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF = 'processPivotResultColGroupDef';\n GridOptionsWrapper.PROP_GET_CHART_TOOLBAR_ITEMS = 'getChartToolbarItems';\n GridOptionsWrapper.PROP_GET_SERVER_SIDE_GROUP_PARAMS = 'getServerSideGroupLevelParams';\n GridOptionsWrapper.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT = 'isServerSideGroupOpenByDefault';\n GridOptionsWrapper.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION = 'isApplyServerSideTransaction';\n GridOptionsWrapper.PROP_IS_SERVER_SIDE_GROUP = 'isServerSideGroup';\n GridOptionsWrapper.PROP_GET_SERVER_SIDE_GROUP_KEY = 'getServerSideGroupKey';\n GridOptionsWrapper.PROP_AUTO_GROUP_COLUMN_DEF = 'autoGroupColumnDef';\n GridOptionsWrapper.PROP_DEFAULT_COL_DEF = 'defaultColDef';\n\n __decorate$2v([Autowired('gridOptions')], GridOptionsWrapper.prototype, \"gridOptions\", void 0);\n\n __decorate$2v([Autowired('eventService')], GridOptionsWrapper.prototype, \"eventService\", void 0);\n\n __decorate$2v([Autowired('environment')], GridOptionsWrapper.prototype, \"environment\", void 0);\n\n __decorate$2v([Autowired('eGridDiv')], GridOptionsWrapper.prototype, \"eGridDiv\", void 0);\n\n __decorate$2v([__param$8(0, Qualifier('gridApi')), __param$8(1, Qualifier('columnApi'))], GridOptionsWrapper.prototype, \"agWire\", null);\n\n __decorate$2v([PreDestroy], GridOptionsWrapper.prototype, \"destroy\", null);\n\n __decorate$2v([PostConstruct], GridOptionsWrapper.prototype, \"init\", null);\n\n GridOptionsWrapper = GridOptionsWrapper_1 = __decorate$2v([Bean('gridOptionsWrapper')], GridOptionsWrapper);\n return GridOptionsWrapper;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2T = undefined && undefined.__extends || function () {\n var _extendStatics2 = function extendStatics(d, b) {\n _extendStatics2 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics2(d, b);\n };\n\n return function (d, b) {\n _extendStatics2(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2u = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __param$7 = undefined && undefined.__param || function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n};\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar __values$4 = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar __read$k = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$e = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$k(arguments[i]));\n }\n\n return ar;\n};\n\nvar ColumnModel =\n/** @class */\nfunction (_super) {\n __extends$2T(ColumnModel, _super);\n\n function ColumnModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this; // header row count, based on user provided columns\n\n\n _this.primaryHeaderRowCount = 0;\n _this.secondaryHeaderRowCount = 0; // header row count, either above, or based on pivoting if we are pivoting\n\n _this.gridHeaderRowCount = 0; // leave level columns of the displayed trees\n\n _this.displayedColumnsLeft = [];\n _this.displayedColumnsRight = [];\n _this.displayedColumnsCenter = []; // all three lists above combined\n\n _this.displayedColumns = []; // for fast lookup, to see if a column or group is still displayed\n\n _this.displayedColumnsAndGroupsMap = {}; // all columns to be rendered\n\n _this.viewportColumns = []; // same as viewportColumns, except we always include columns with headerAutoHeight\n\n _this.headerViewportColumns = []; // all columns to be rendered in the centre\n\n _this.viewportColumnsCenter = []; // same as viewportColumnsCenter, except we always include columns with headerAutoHeight\n\n _this.headerViewportColumnsCenter = [];\n _this.autoHeightActiveAtLeastOnce = false;\n _this.rowGroupColumns = [];\n _this.valueColumns = [];\n _this.pivotColumns = [];\n _this.ready = false;\n _this.autoGroupsNeedBuilding = false;\n _this.forceRecreateAutoGroups = false;\n _this.pivotMode = false;\n _this.bodyWidth = 0;\n _this.leftWidth = 0;\n _this.rightWidth = 0;\n _this.bodyWidthDirty = true;\n _this.flexColsCalculatedAtLestOnce = false;\n return _this;\n }\n\n ColumnModel.prototype.init = function () {\n var _this = this;\n\n this.suppressColumnVirtualisation = this.gridOptionsWrapper.isSuppressColumnVirtualisation();\n var pivotMode = this.gridOptionsWrapper.isPivotMode();\n\n if (this.isPivotSettingAllowed(pivotMode)) {\n this.pivotMode = pivotMode;\n }\n\n this.usingTreeData = this.gridOptionsWrapper.isTreeData();\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_GROUP_DISPLAY_TYPE, function () {\n return _this.onAutoGroupColumnDefChanged();\n });\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_AUTO_GROUP_COLUMN_DEF, function () {\n return _this.onAutoGroupColumnDefChanged();\n });\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_DEFAULT_COL_DEF, function () {\n return _this.onDefaultColDefChanged();\n });\n };\n\n ColumnModel.prototype.onAutoGroupColumnDefChanged = function () {\n this.autoGroupsNeedBuilding = true;\n this.forceRecreateAutoGroups = true;\n this.updateGridColumns();\n this.updateDisplayedColumns('gridOptionsChanged');\n };\n\n ColumnModel.prototype.onDefaultColDefChanged = function () {\n // likewise for autoGroupCol, the default col def impacts this\n this.forceRecreateAutoGroups = true;\n this.createColumnsFromColumnDefs(true);\n };\n\n ColumnModel.prototype.setColumnDefs = function (columnDefs, source) {\n if (source === void 0) {\n source = 'api';\n }\n\n var colsPreviouslyExisted = !!this.columnDefs;\n this.columnDefs = columnDefs;\n this.createColumnsFromColumnDefs(colsPreviouslyExisted, source);\n };\n\n ColumnModel.prototype.createColumnsFromColumnDefs = function (colsPreviouslyExisted, source) {\n var _this = this;\n\n if (source === void 0) {\n source = 'api';\n } // only need to raise before/after events if updating columns, never if setting columns for first time\n\n\n var raiseEventsFunc = colsPreviouslyExisted ? this.compareColumnStatesAndRaiseEvents(source) : undefined; // always invalidate cache on changing columns, as the column id's for the new columns\n // could overlap with the old id's, so the cache would return old values for new columns.\n\n this.valueCache.expire(); // NOTE ==================\n // we should be destroying the existing columns and groups if they exist, for example, the original column\n // group adds a listener to the columns, it should be also removing the listeners\n\n this.autoGroupsNeedBuilding = true;\n var oldPrimaryColumns = this.primaryColumns;\n var oldPrimaryTree = this.primaryColumnTree;\n var balancedTreeResult = this.columnFactory.createColumnTree(this.columnDefs, true, oldPrimaryTree);\n this.primaryColumnTree = balancedTreeResult.columnTree;\n this.primaryHeaderRowCount = balancedTreeResult.treeDept + 1;\n this.primaryColumns = this.getColumnsFromTree(this.primaryColumnTree);\n this.primaryColumnsMap = {};\n this.primaryColumns.forEach(function (col) {\n return _this.primaryColumnsMap[col.getId()] = col;\n });\n this.extractRowGroupColumns(source, oldPrimaryColumns);\n this.extractPivotColumns(source, oldPrimaryColumns);\n this.extractValueColumns(source, oldPrimaryColumns);\n this.ready = true; // if we are showing secondary columns, then no need to update grid columns\n // at this point, as it's the pivot service responsibility to change these\n // if we are no longer pivoting (ie and need to revert back to primary, otherwise\n // we shouldn't be touching the primary).\n\n var gridColsNotProcessed = this.gridColsArePrimary === undefined;\n var processGridCols = this.gridColsArePrimary || gridColsNotProcessed;\n\n if (processGridCols) {\n this.updateGridColumns();\n\n if (colsPreviouslyExisted && !this.gridOptionsWrapper.isMaintainColumnOrder()) {\n this.orderGridColumnsLikePrimary();\n }\n\n this.updateDisplayedColumns(source);\n this.checkViewportColumns();\n } // this event is not used by AG Grid, but left here for backwards compatibility,\n // in case applications use it\n\n\n this.dispatchEverythingChanged(source);\n\n if (raiseEventsFunc) {\n raiseEventsFunc();\n }\n\n this.dispatchNewColumnsLoaded();\n };\n\n ColumnModel.prototype.dispatchNewColumnsLoaded = function () {\n var newColumnsLoadedEvent = {\n type: Events.EVENT_NEW_COLUMNS_LOADED\n };\n this.eventService.dispatchEvent(newColumnsLoadedEvent);\n }; // this event is legacy, no grid code listens to it. instead the grid listens to New Columns Loaded\n\n\n ColumnModel.prototype.dispatchEverythingChanged = function (source) {\n if (source === void 0) {\n source = 'api';\n }\n\n var eventEverythingChanged = {\n type: Events.EVENT_COLUMN_EVERYTHING_CHANGED,\n source: source\n };\n this.eventService.dispatchEvent(eventEverythingChanged);\n };\n\n ColumnModel.prototype.orderGridColumnsLikePrimary = function () {\n var _this = this;\n\n var primaryColumns = this.primaryColumns;\n\n if (!primaryColumns) {\n return;\n }\n\n this.gridColumns.sort(function (colA, colB) {\n var primaryIndexA = primaryColumns.indexOf(colA);\n var primaryIndexB = primaryColumns.indexOf(colB); // if both cols are present in primary, then we just return the position,\n // so position is maintained.\n\n var indexAPresent = primaryIndexA >= 0;\n var indexBPresent = primaryIndexB >= 0;\n\n if (indexAPresent && indexBPresent) {\n return primaryIndexA - primaryIndexB;\n }\n\n if (indexAPresent) {\n // B is auto group column, so put B first\n return 1;\n }\n\n if (indexBPresent) {\n // A is auto group column, so put A first\n return -1;\n } // otherwise both A and B are auto-group columns. so we just keep the order\n // as they were already in.\n\n\n var gridIndexA = _this.gridColumns.indexOf(colA);\n\n var gridIndexB = _this.gridColumns.indexOf(colB);\n\n return gridIndexA - gridIndexB;\n });\n this.gridColumns = this.placeLockedColumns(this.gridColumns);\n };\n\n ColumnModel.prototype.getAllDisplayedAutoHeightCols = function () {\n return this.displayedAutoHeightCols;\n };\n\n ColumnModel.prototype.setViewport = function () {\n if (this.gridOptionsWrapper.isEnableRtl()) {\n this.viewportLeft = this.bodyWidth - this.scrollPosition - this.scrollWidth;\n this.viewportRight = this.bodyWidth - this.scrollPosition;\n } else {\n this.viewportLeft = this.scrollPosition;\n this.viewportRight = this.scrollWidth + this.scrollPosition;\n }\n }; // used by clipboard service, to know what columns to paste into\n\n\n ColumnModel.prototype.getDisplayedColumnsStartingAt = function (column) {\n var currentColumn = column;\n var columns = [];\n\n while (currentColumn != null) {\n columns.push(currentColumn);\n currentColumn = this.getDisplayedColAfter(currentColumn);\n }\n\n return columns;\n }; // checks what columns are currently displayed due to column virtualisation. fires an event\n // if the list of columns has changed.\n // + setColumnWidth(), setViewportPosition(), setColumnDefs(), sizeColumnsToFit()\n\n\n ColumnModel.prototype.checkViewportColumns = function () {\n // check displayCenterColumnTree exists first, as it won't exist when grid is initialising\n if (this.displayedColumnsCenter == null) {\n return;\n }\n\n var viewportColumnsChanged = this.extractViewport();\n\n if (!viewportColumnsChanged) {\n return;\n }\n\n var event = {\n type: Events.EVENT_VIRTUAL_COLUMNS_CHANGED\n };\n this.eventService.dispatchEvent(event);\n };\n\n ColumnModel.prototype.setViewportPosition = function (scrollWidth, scrollPosition) {\n if (scrollWidth !== this.scrollWidth || scrollPosition !== this.scrollPosition || this.bodyWidthDirty) {\n this.scrollWidth = scrollWidth;\n this.scrollPosition = scrollPosition; // we need to call setVirtualViewportLeftAndRight() at least once after the body width changes,\n // as the viewport can stay the same, but in RTL, if body width changes, we need to work out the\n // virtual columns again\n\n this.bodyWidthDirty = true;\n this.setViewport();\n\n if (this.ready) {\n this.checkViewportColumns();\n }\n }\n };\n\n ColumnModel.prototype.isPivotMode = function () {\n return this.pivotMode;\n };\n\n ColumnModel.prototype.isPivotSettingAllowed = function (pivot) {\n if (pivot && this.gridOptionsWrapper.isTreeData()) {\n console.warn(\"AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'\");\n return false;\n }\n\n return true;\n };\n\n ColumnModel.prototype.setPivotMode = function (pivotMode, source) {\n if (source === void 0) {\n source = 'api';\n }\n\n if (pivotMode === this.pivotMode || !this.isPivotSettingAllowed(this.pivotMode)) {\n return;\n }\n\n this.pivotMode = pivotMode; // we need to update grid columns to cover the scenario where user has groupSuppressAutoColumn=true, as\n // this means we don't use auto group column UNLESS we are in pivot mode (it's mandatory in pivot mode),\n // so need to updateGridColumn() to check it autoGroupCol needs to be added / removed\n\n this.autoGroupsNeedBuilding = true;\n this.updateGridColumns();\n this.updateDisplayedColumns(source);\n var event = {\n type: Events.EVENT_COLUMN_PIVOT_MODE_CHANGED\n };\n this.eventService.dispatchEvent(event);\n };\n\n ColumnModel.prototype.getSecondaryPivotColumn = function (pivotKeys, valueColKey) {\n if (missing(this.secondaryColumns)) {\n return null;\n }\n\n var valueColumnToFind = this.getPrimaryColumn(valueColKey);\n var foundColumn = null;\n this.secondaryColumns.forEach(function (column) {\n var thisPivotKeys = column.getColDef().pivotKeys;\n var pivotValueColumn = column.getColDef().pivotValueColumn;\n var pivotKeyMatches = areEqual(thisPivotKeys, pivotKeys);\n var pivotValueMatches = pivotValueColumn === valueColumnToFind;\n\n if (pivotKeyMatches && pivotValueMatches) {\n foundColumn = column;\n }\n });\n return foundColumn;\n };\n\n ColumnModel.prototype.setBeans = function (loggerFactory) {\n this.logger = loggerFactory.create('columnModel');\n };\n\n ColumnModel.prototype.setFirstRightAndLastLeftPinned = function (source) {\n var lastLeft;\n var firstRight;\n\n if (this.gridOptionsWrapper.isEnableRtl()) {\n lastLeft = this.displayedColumnsLeft ? this.displayedColumnsLeft[0] : null;\n firstRight = this.displayedColumnsRight ? last(this.displayedColumnsRight) : null;\n } else {\n lastLeft = this.displayedColumnsLeft ? last(this.displayedColumnsLeft) : null;\n firstRight = this.displayedColumnsRight ? this.displayedColumnsRight[0] : null;\n }\n\n this.gridColumns.forEach(function (column) {\n column.setLastLeftPinned(column === lastLeft, source);\n column.setFirstRightPinned(column === firstRight, source);\n });\n };\n\n ColumnModel.prototype.autoSizeColumns = function (params) {\n var _this = this;\n\n var columns = params.columns,\n skipHeader = params.skipHeader,\n skipHeaderGroups = params.skipHeaderGroups,\n stopAtGroup = params.stopAtGroup,\n _a = params.source,\n source = _a === void 0 ? 'api' : _a; // because of column virtualisation, we can only do this function on columns that are\n // actually rendered, as non-rendered columns (outside the viewport and not rendered\n // due to column virtualisation) are not present. this can result in all rendered columns\n // getting narrowed, which in turn introduces more rendered columns on the RHS which\n // did not get autosized in the original run, leaving the visible grid with columns on\n // the LHS sized, but RHS no. so we keep looping through the visible columns until\n // no more cols are available (rendered) to be resized\n // we autosize after animation frames finish in case any cell renderers need to complete first. this can\n // happen eg if client code is calling api.autoSizeAllColumns() straight after grid is initialised, but grid\n // hasn't fully drawn out all the cells yet (due to cell renderers in animation frames).\n\n this.animationFrameService.flushAllFrames(); // keep track of which cols we have resized in here\n\n var columnsAutosized = []; // initialise with anything except 0 so that while loop executes at least once\n\n var changesThisTimeAround = -1;\n var shouldSkipHeader = skipHeader != null ? skipHeader : this.gridOptionsWrapper.isSkipHeaderOnAutoSize();\n var shouldSkipHeaderGroups = skipHeaderGroups != null ? skipHeaderGroups : shouldSkipHeader;\n\n while (changesThisTimeAround !== 0) {\n changesThisTimeAround = 0;\n this.actionOnGridColumns(columns, function (column) {\n // if already autosized, skip it\n if (columnsAutosized.indexOf(column) >= 0) {\n return false;\n } // get how wide this col should be\n\n\n var preferredWidth = _this.autoWidthCalculator.getPreferredWidthForColumn(column, shouldSkipHeader); // preferredWidth = -1 if this col is not on the screen\n\n\n if (preferredWidth > 0) {\n var newWidth = _this.normaliseColumnWidth(column, preferredWidth);\n\n column.setActualWidth(newWidth, source);\n columnsAutosized.push(column);\n changesThisTimeAround++;\n }\n\n return true;\n }, source);\n }\n\n if (!shouldSkipHeaderGroups) {\n this.autoSizeColumnGroupsByColumns(columns, stopAtGroup);\n }\n\n this.fireColumnResizedEvent(columnsAutosized, true, 'autosizeColumns');\n };\n\n ColumnModel.prototype.fireColumnResizedEvent = function (columns, finished, source, flexColumns) {\n if (flexColumns === void 0) {\n flexColumns = null;\n }\n\n if (columns && columns.length) {\n var event_1 = {\n type: Events.EVENT_COLUMN_RESIZED,\n columns: columns,\n column: columns.length === 1 ? columns[0] : null,\n flexColumns: flexColumns,\n finished: finished,\n source: source\n };\n this.eventService.dispatchEvent(event_1);\n }\n };\n\n ColumnModel.prototype.autoSizeColumn = function (key, skipHeader, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (key) {\n this.autoSizeColumns({\n columns: [key],\n skipHeader: skipHeader,\n skipHeaderGroups: true,\n source: source\n });\n }\n };\n\n ColumnModel.prototype.autoSizeColumnGroupsByColumns = function (keys, stopAtGroup) {\n var e_1, _a, e_2, _b;\n\n var columnGroups = new Set();\n var columns = this.getGridColumns(keys);\n columns.forEach(function (col) {\n var parent = col.getParent();\n\n while (parent && parent != stopAtGroup) {\n if (!parent.isPadding()) {\n columnGroups.add(parent);\n }\n\n parent = parent.getParent();\n }\n });\n var headerGroupCtrl;\n var resizedColumns = [];\n\n try {\n for (var columnGroups_1 = __values$4(columnGroups), columnGroups_1_1 = columnGroups_1.next(); !columnGroups_1_1.done; columnGroups_1_1 = columnGroups_1.next()) {\n var columnGroup = columnGroups_1_1.value;\n\n try {\n for (var _c = (e_2 = void 0, __values$4(this.ctrlsService.getHeaderRowContainerCtrls())), _d = _c.next(); !_d.done; _d = _c.next()) {\n var headerContainerCtrl = _d.value;\n headerGroupCtrl = headerContainerCtrl.getHeaderCtrlForColumn(columnGroup);\n\n if (headerGroupCtrl) {\n break;\n }\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally {\n try {\n if (_d && !_d.done && (_b = _c.return)) _b.call(_c);\n } finally {\n if (e_2) throw e_2.error;\n }\n }\n\n if (headerGroupCtrl) {\n headerGroupCtrl.resizeLeafColumnsToFit();\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (columnGroups_1_1 && !columnGroups_1_1.done && (_a = columnGroups_1.return)) _a.call(columnGroups_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n return resizedColumns;\n };\n\n ColumnModel.prototype.autoSizeAllColumns = function (skipHeader, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n var allDisplayedColumns = this.getAllDisplayedColumns();\n this.autoSizeColumns({\n columns: allDisplayedColumns,\n skipHeader: skipHeader,\n source: source\n });\n }; // Possible candidate for reuse (alot of recursive traversal duplication)\n\n\n ColumnModel.prototype.getColumnsFromTree = function (rootColumns) {\n var result = [];\n\n var recursiveFindColumns = function recursiveFindColumns(childColumns) {\n for (var i = 0; i < childColumns.length; i++) {\n var child = childColumns[i];\n\n if (child instanceof Column) {\n result.push(child);\n } else if (child instanceof ProvidedColumnGroup) {\n recursiveFindColumns(child.getChildren());\n }\n }\n };\n\n recursiveFindColumns(rootColumns);\n return result;\n };\n\n ColumnModel.prototype.getAllDisplayedTrees = function () {\n if (this.displayedTreeLeft && this.displayedTreeRight && this.displayedTreeCentre) {\n return this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight);\n }\n\n return null;\n }; // + columnSelectPanel\n\n\n ColumnModel.prototype.getPrimaryColumnTree = function () {\n return this.primaryColumnTree;\n }; // + gridPanel -> for resizing the body and setting top margin\n\n\n ColumnModel.prototype.getHeaderRowCount = function () {\n return this.gridHeaderRowCount;\n }; // + headerRenderer -> setting pinned body width\n\n\n ColumnModel.prototype.getDisplayedTreeLeft = function () {\n return this.displayedTreeLeft;\n }; // + headerRenderer -> setting pinned body width\n\n\n ColumnModel.prototype.getDisplayedTreeRight = function () {\n return this.displayedTreeRight;\n }; // + headerRenderer -> setting pinned body width\n\n\n ColumnModel.prototype.getDisplayedTreeCentre = function () {\n return this.displayedTreeCentre;\n }; // gridPanel -> ensureColumnVisible\n\n\n ColumnModel.prototype.isColumnDisplayed = function (column) {\n return this.getAllDisplayedColumns().indexOf(column) >= 0;\n }; // + csvCreator\n\n\n ColumnModel.prototype.getAllDisplayedColumns = function () {\n return this.displayedColumns;\n };\n\n ColumnModel.prototype.getViewportColumns = function () {\n return this.viewportColumns;\n };\n\n ColumnModel.prototype.getDisplayedLeftColumnsForRow = function (rowNode) {\n if (!this.colSpanActive) {\n return this.displayedColumnsLeft;\n }\n\n return this.getDisplayedColumnsForRow(rowNode, this.displayedColumnsLeft);\n };\n\n ColumnModel.prototype.getDisplayedRightColumnsForRow = function (rowNode) {\n if (!this.colSpanActive) {\n return this.displayedColumnsRight;\n }\n\n return this.getDisplayedColumnsForRow(rowNode, this.displayedColumnsRight);\n };\n\n ColumnModel.prototype.getDisplayedColumnsForRow = function (rowNode, displayedColumns, filterCallback, emptySpaceBeforeColumn) {\n var result = [];\n var lastConsideredCol = null;\n\n var _loop_1 = function _loop_1(i) {\n var col = displayedColumns[i];\n var maxAllowedColSpan = displayedColumns.length - i;\n var colSpan = Math.min(col.getColSpan(rowNode), maxAllowedColSpan);\n var columnsToCheckFilter = [col];\n\n if (colSpan > 1) {\n var colsToRemove = colSpan - 1;\n\n for (var j = 1; j <= colsToRemove; j++) {\n columnsToCheckFilter.push(displayedColumns[i + j]);\n }\n\n i += colsToRemove;\n } // see which cols we should take out for column virtualisation\n\n\n var filterPasses;\n\n if (filterCallback) {\n // if user provided a callback, means some columns may not be in the viewport.\n // the user will NOT provide a callback if we are talking about pinned areas,\n // as pinned areas have no horizontal scroll and do not virtualise the columns.\n // if lots of columns, that means column spanning, and we set filterPasses = true\n // if one or more of the columns spanned pass the filter.\n filterPasses = false;\n columnsToCheckFilter.forEach(function (colForFilter) {\n if (filterCallback(colForFilter)) {\n filterPasses = true;\n }\n });\n } else {\n filterPasses = true;\n }\n\n if (filterPasses) {\n if (result.length === 0 && lastConsideredCol) {\n var gapBeforeColumn = emptySpaceBeforeColumn ? emptySpaceBeforeColumn(col) : false;\n\n if (gapBeforeColumn) {\n result.push(lastConsideredCol);\n }\n }\n\n result.push(col);\n }\n\n lastConsideredCol = col;\n out_i_1 = i;\n };\n\n var out_i_1;\n\n for (var i = 0; i < displayedColumns.length; i++) {\n _loop_1(i);\n\n i = out_i_1;\n }\n\n return result;\n }; // + rowRenderer\n // if we are not column spanning, this just returns back the virtual centre columns,\n // however if we are column spanning, then different rows can have different virtual\n // columns, so we have to work out the list for each individual row.\n\n\n ColumnModel.prototype.getViewportCenterColumnsForRow = function (rowNode) {\n var _this = this;\n\n if (!this.colSpanActive) {\n return this.viewportColumnsCenter;\n }\n\n var emptySpaceBeforeColumn = function emptySpaceBeforeColumn(col) {\n var left = col.getLeft();\n return exists(left) && left > _this.viewportLeft;\n }; // if doing column virtualisation, then we filter based on the viewport.\n\n\n var filterCallback = this.suppressColumnVirtualisation ? null : this.isColumnInRowViewport.bind(this);\n return this.getDisplayedColumnsForRow(rowNode, this.displayedColumnsCenter, filterCallback, emptySpaceBeforeColumn);\n };\n\n ColumnModel.prototype.getAriaColumnIndex = function (col) {\n return this.getAllGridColumns().indexOf(col) + 1;\n };\n\n ColumnModel.prototype.isColumnInHeaderViewport = function (col) {\n // for headers, we never filter out autoHeaderHeight columns, if calculating \n if (col.isAutoHeaderHeight()) {\n return true;\n }\n\n return this.isColumnInRowViewport(col);\n };\n\n ColumnModel.prototype.isColumnInRowViewport = function (col) {\n // we never filter out autoHeight columns, as we need them in the DOM for calculating Auto Height\n if (col.isAutoHeight()) {\n return true;\n }\n\n var columnLeft = col.getLeft() || 0;\n var columnRight = columnLeft + col.getActualWidth(); // adding 200 for buffer size, so some cols off viewport are rendered.\n // this helps horizontal scrolling so user rarely sees white space (unless\n // they scroll horizontally fast). however we are conservative, as the more\n // buffer the slower the vertical redraw speed\n\n var leftBounds = this.viewportLeft - 200;\n var rightBounds = this.viewportRight + 200;\n var columnToMuchLeft = columnLeft < leftBounds && columnRight < leftBounds;\n var columnToMuchRight = columnLeft > rightBounds && columnRight > rightBounds;\n return !columnToMuchLeft && !columnToMuchRight;\n }; // used by:\n // + angularGrid -> setting pinned body width\n // note: this should be cached\n\n\n ColumnModel.prototype.getDisplayedColumnsLeftWidth = function () {\n return this.getWidthOfColsInList(this.displayedColumnsLeft);\n }; // note: this should be cached\n\n\n ColumnModel.prototype.getDisplayedColumnsRightWidth = function () {\n return this.getWidthOfColsInList(this.displayedColumnsRight);\n };\n\n ColumnModel.prototype.updatePrimaryColumnList = function (keys, masterList, actionIsAdd, columnCallback, eventType, source) {\n var _this = this;\n\n if (source === void 0) {\n source = \"api\";\n }\n\n if (!keys || missingOrEmpty(keys)) {\n return;\n }\n\n var atLeastOne = false;\n keys.forEach(function (key) {\n var columnToAdd = _this.getPrimaryColumn(key);\n\n if (!columnToAdd) {\n return;\n }\n\n if (actionIsAdd) {\n if (masterList.indexOf(columnToAdd) >= 0) {\n return;\n }\n\n masterList.push(columnToAdd);\n } else {\n if (masterList.indexOf(columnToAdd) < 0) {\n return;\n }\n\n removeFromArray(masterList, columnToAdd);\n }\n\n columnCallback(columnToAdd);\n atLeastOne = true;\n });\n\n if (!atLeastOne) {\n return;\n }\n\n if (this.autoGroupsNeedBuilding) {\n this.updateGridColumns();\n }\n\n this.updateDisplayedColumns(source);\n var event = {\n type: eventType,\n columns: masterList,\n column: masterList.length === 1 ? masterList[0] : null,\n source: source\n };\n this.eventService.dispatchEvent(event);\n };\n\n ColumnModel.prototype.setRowGroupColumns = function (colKeys, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n this.autoGroupsNeedBuilding = true;\n this.setPrimaryColumnList(colKeys, this.rowGroupColumns, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.setRowGroupActive.bind(this), source);\n };\n\n ColumnModel.prototype.setRowGroupActive = function (active, column, source) {\n if (active === column.isRowGroupActive()) {\n return;\n }\n\n column.setRowGroupActive(active, source);\n\n if (active && !this.gridOptionsWrapper.isSuppressRowGroupHidesColumns()) {\n this.setColumnVisible(column, false, source);\n }\n\n if (!active && !this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()) {\n this.setColumnVisible(column, true, source);\n }\n };\n\n ColumnModel.prototype.addRowGroupColumn = function (key, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (key) {\n this.addRowGroupColumns([key], source);\n }\n };\n\n ColumnModel.prototype.addRowGroupColumns = function (keys, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n this.autoGroupsNeedBuilding = true;\n this.updatePrimaryColumnList(keys, this.rowGroupColumns, true, this.setRowGroupActive.bind(this, true), Events.EVENT_COLUMN_ROW_GROUP_CHANGED, source);\n };\n\n ColumnModel.prototype.removeRowGroupColumns = function (keys, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n this.autoGroupsNeedBuilding = true;\n this.updatePrimaryColumnList(keys, this.rowGroupColumns, false, this.setRowGroupActive.bind(this, false), Events.EVENT_COLUMN_ROW_GROUP_CHANGED, source);\n };\n\n ColumnModel.prototype.removeRowGroupColumn = function (key, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (key) {\n this.removeRowGroupColumns([key], source);\n }\n };\n\n ColumnModel.prototype.addPivotColumns = function (keys, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n this.updatePrimaryColumnList(keys, this.pivotColumns, true, function (column) {\n return column.setPivotActive(true, source);\n }, Events.EVENT_COLUMN_PIVOT_CHANGED, source);\n };\n\n ColumnModel.prototype.setPivotColumns = function (colKeys, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n this.setPrimaryColumnList(colKeys, this.pivotColumns, Events.EVENT_COLUMN_PIVOT_CHANGED, function (added, column) {\n column.setPivotActive(added, source);\n }, source);\n };\n\n ColumnModel.prototype.addPivotColumn = function (key, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n this.addPivotColumns([key], source);\n };\n\n ColumnModel.prototype.removePivotColumns = function (keys, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n this.updatePrimaryColumnList(keys, this.pivotColumns, false, function (column) {\n return column.setPivotActive(false, source);\n }, Events.EVENT_COLUMN_PIVOT_CHANGED, source);\n };\n\n ColumnModel.prototype.removePivotColumn = function (key, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n this.removePivotColumns([key], source);\n };\n\n ColumnModel.prototype.setPrimaryColumnList = function (colKeys, masterList, eventName, columnCallback, source) {\n var _this = this;\n\n masterList.length = 0;\n\n if (exists(colKeys)) {\n colKeys.forEach(function (key) {\n var column = _this.getPrimaryColumn(key);\n\n if (column) {\n masterList.push(column);\n }\n });\n }\n\n (this.primaryColumns || []).forEach(function (column) {\n var added = masterList.indexOf(column) >= 0;\n columnCallback(added, column);\n });\n\n if (this.autoGroupsNeedBuilding) {\n this.updateGridColumns();\n }\n\n this.updateDisplayedColumns(source);\n this.fireColumnEvent(eventName, masterList, source);\n };\n\n ColumnModel.prototype.setValueColumns = function (colKeys, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n this.setPrimaryColumnList(colKeys, this.valueColumns, Events.EVENT_COLUMN_VALUE_CHANGED, this.setValueActive.bind(this), source);\n };\n\n ColumnModel.prototype.setValueActive = function (active, column, source) {\n if (active === column.isValueActive()) {\n return;\n }\n\n column.setValueActive(active, source);\n\n if (active && !column.getAggFunc()) {\n var initialAggFunc = this.aggFuncService.getDefaultAggFunc(column);\n column.setAggFunc(initialAggFunc);\n }\n };\n\n ColumnModel.prototype.addValueColumns = function (keys, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n this.updatePrimaryColumnList(keys, this.valueColumns, true, this.setValueActive.bind(this, true), Events.EVENT_COLUMN_VALUE_CHANGED, source);\n };\n\n ColumnModel.prototype.addValueColumn = function (colKey, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (colKey) {\n this.addValueColumns([colKey], source);\n }\n };\n\n ColumnModel.prototype.removeValueColumn = function (colKey, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n this.removeValueColumns([colKey], source);\n };\n\n ColumnModel.prototype.removeValueColumns = function (keys, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n this.updatePrimaryColumnList(keys, this.valueColumns, false, this.setValueActive.bind(this, false), Events.EVENT_COLUMN_VALUE_CHANGED, source);\n }; // returns the width we can set to this col, taking into consideration min and max widths\n\n\n ColumnModel.prototype.normaliseColumnWidth = function (column, newWidth) {\n var minWidth = column.getMinWidth();\n\n if (exists(minWidth) && newWidth < minWidth) {\n newWidth = minWidth;\n }\n\n var maxWidth = column.getMaxWidth();\n\n if (exists(maxWidth) && column.isGreaterThanMax(newWidth)) {\n newWidth = maxWidth;\n }\n\n return newWidth;\n };\n\n ColumnModel.prototype.getPrimaryOrGridColumn = function (key) {\n var column = this.getPrimaryColumn(key);\n return column || this.getGridColumn(key);\n };\n\n ColumnModel.prototype.setColumnWidths = function (columnWidths, shiftKey, // @takeFromAdjacent - if user has 'shift' pressed, then pixels are taken from adjacent column\n finished, // @finished - ends up in the event, tells the user if more events are to come\n source) {\n var _this = this;\n\n if (source === void 0) {\n source = \"api\";\n }\n\n var sets = [];\n columnWidths.forEach(function (columnWidth) {\n var col = _this.getPrimaryOrGridColumn(columnWidth.key);\n\n if (!col) {\n return;\n }\n\n sets.push({\n width: columnWidth.newWidth,\n ratios: [1],\n columns: [col]\n }); // if user wants to do shift resize by default, then we invert the shift operation\n\n var defaultIsShift = _this.gridOptionsWrapper.getColResizeDefault() === 'shift';\n\n if (defaultIsShift) {\n shiftKey = !shiftKey;\n }\n\n if (shiftKey) {\n var otherCol = _this.getDisplayedColAfter(col);\n\n if (!otherCol) {\n return;\n }\n\n var widthDiff = col.getActualWidth() - columnWidth.newWidth;\n var otherColWidth = otherCol.getActualWidth() + widthDiff;\n sets.push({\n width: otherColWidth,\n ratios: [1],\n columns: [otherCol]\n });\n }\n });\n\n if (sets.length === 0) {\n return;\n }\n\n this.resizeColumnSets({\n resizeSets: sets,\n finished: finished,\n source: source\n });\n };\n\n ColumnModel.prototype.checkMinAndMaxWidthsForSet = function (columnResizeSet) {\n var columns = columnResizeSet.columns,\n width = columnResizeSet.width; // every col has a min width, so sum them all up and see if we have enough room\n // for all the min widths\n\n var minWidthAccumulated = 0;\n var maxWidthAccumulated = 0;\n var maxWidthActive = true;\n columns.forEach(function (col) {\n var minWidth = col.getMinWidth();\n minWidthAccumulated += minWidth || 0;\n var maxWidth = col.getMaxWidth();\n\n if (exists(maxWidth) && maxWidth > 0) {\n maxWidthAccumulated += maxWidth;\n } else {\n // if at least one columns has no max width, it means the group of columns\n // then has no max width, as at least one column can take as much width as possible\n maxWidthActive = false;\n }\n });\n var minWidthPasses = width >= minWidthAccumulated;\n var maxWidthPasses = !maxWidthActive || width <= maxWidthAccumulated;\n return minWidthPasses && maxWidthPasses;\n }; // method takes sets of columns and resizes them. either all sets will be resized, or nothing\n // be resized. this is used for example when user tries to resize a group and holds shift key,\n // then both the current group (grows), and the adjacent group (shrinks), will get resized,\n // so that's two sets for this method.\n\n\n ColumnModel.prototype.resizeColumnSets = function (params) {\n var _this = this;\n\n var resizeSets = params.resizeSets,\n finished = params.finished,\n source = params.source;\n var passMinMaxCheck = !resizeSets || resizeSets.every(function (columnResizeSet) {\n return _this.checkMinAndMaxWidthsForSet(columnResizeSet);\n });\n\n if (!passMinMaxCheck) {\n // even though we are not going to resize beyond min/max size, we still need to raise event when finished\n if (finished) {\n var columns = resizeSets && resizeSets.length > 0 ? resizeSets[0].columns : null;\n this.fireColumnResizedEvent(columns, finished, source);\n }\n\n return; // don't resize!\n }\n\n var changedCols = [];\n var allResizedCols = [];\n resizeSets.forEach(function (set) {\n var width = set.width,\n columns = set.columns,\n ratios = set.ratios; // keep track of pixels used, and last column gets the remaining,\n // to cater for rounding errors, and min width adjustments\n\n var newWidths = {};\n var finishedCols = {};\n columns.forEach(function (col) {\n return allResizedCols.push(col);\n }); // the loop below goes through each col. if a col exceeds it's min/max width,\n // it then gets set to its min/max width and the column is removed marked as 'finished'\n // and the calculation is done again leaving this column out. take for example columns\n // {A, width: 50, maxWidth: 100}\n // {B, width: 50}\n // {C, width: 50}\n // and then the set is set to width 600 - on the first pass the grid tries to set each column\n // to 200. it checks A and sees 200 > 100 and so sets the width to 100. col A is then marked\n // as 'finished' and the calculation is done again with the remaining cols B and C, which end up\n // splitting the remaining 500 pixels.\n\n var finishedColsGrew = true;\n var loopCount = 0;\n\n var _loop_2 = function _loop_2() {\n loopCount++;\n\n if (loopCount > 1000) {\n // this should never happen, but in the future, someone might introduce a bug here,\n // so we stop the browser from hanging and report bug properly\n console.error('AG Grid: infinite loop in resizeColumnSets');\n return \"break\";\n }\n\n finishedColsGrew = false;\n var subsetCols = [];\n var subsetRatioTotal = 0;\n var pixelsToDistribute = width;\n columns.forEach(function (col, index) {\n var thisColFinished = finishedCols[col.getId()];\n\n if (thisColFinished) {\n pixelsToDistribute -= newWidths[col.getId()];\n } else {\n subsetCols.push(col);\n var ratioThisCol = ratios[index];\n subsetRatioTotal += ratioThisCol;\n }\n }); // because we are not using all of the ratios (cols can be missing),\n // we scale the ratio. if all columns are included, then subsetRatioTotal=1,\n // and so the ratioScale will be 1.\n\n var ratioScale = 1 / subsetRatioTotal;\n subsetCols.forEach(function (col, index) {\n var lastCol = index === subsetCols.length - 1;\n var colNewWidth;\n\n if (lastCol) {\n colNewWidth = pixelsToDistribute;\n } else {\n colNewWidth = Math.round(ratios[index] * width * ratioScale);\n pixelsToDistribute -= colNewWidth;\n }\n\n var minWidth = col.getMinWidth();\n var maxWidth = col.getMaxWidth();\n\n if (exists(minWidth) && colNewWidth < minWidth) {\n colNewWidth = minWidth;\n finishedCols[col.getId()] = true;\n finishedColsGrew = true;\n } else if (exists(maxWidth) && maxWidth > 0 && colNewWidth > maxWidth) {\n colNewWidth = maxWidth;\n finishedCols[col.getId()] = true;\n finishedColsGrew = true;\n }\n\n newWidths[col.getId()] = colNewWidth;\n });\n };\n\n while (finishedColsGrew) {\n var state_1 = _loop_2();\n\n if (state_1 === \"break\") break;\n }\n\n columns.forEach(function (col) {\n var newWidth = newWidths[col.getId()];\n var actualWidth = col.getActualWidth();\n\n if (actualWidth !== newWidth) {\n col.setActualWidth(newWidth, source);\n changedCols.push(col);\n }\n });\n }); // if no cols changed, then no need to update more or send event.\n\n var atLeastOneColChanged = changedCols.length > 0;\n var flexedCols = [];\n\n if (atLeastOneColChanged) {\n flexedCols = this.refreshFlexedColumns({\n resizingCols: allResizedCols,\n skipSetLeft: true\n });\n this.setLeftValues(source);\n this.updateBodyWidths();\n this.checkViewportColumns();\n } // check for change first, to avoid unnecessary firing of events\n // however we always fire 'finished' events. this is important\n // when groups are resized, as if the group is changing slowly,\n // eg 1 pixel at a time, then each change will fire change events\n // in all the columns in the group, but only one with get the pixel.\n\n\n var colsForEvent = allResizedCols.concat(flexedCols);\n\n if (atLeastOneColChanged || finished) {\n this.fireColumnResizedEvent(colsForEvent, finished, source, flexedCols);\n }\n };\n\n ColumnModel.prototype.setColumnAggFunc = function (key, aggFunc, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (!key) {\n return;\n }\n\n var column = this.getPrimaryColumn(key);\n\n if (!column) {\n return;\n }\n\n column.setAggFunc(aggFunc);\n this.fireColumnEvent(Events.EVENT_COLUMN_VALUE_CHANGED, [column], source);\n };\n\n ColumnModel.prototype.fireColumnEvent = function (type, columns, source) {\n var event = {\n type: type,\n columns: columns,\n column: columns && columns.length == 1 ? columns[0] : null,\n source: source\n };\n this.eventService.dispatchEvent(event);\n };\n\n ColumnModel.prototype.moveRowGroupColumn = function (fromIndex, toIndex, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n var column = this.rowGroupColumns[fromIndex];\n this.rowGroupColumns.splice(fromIndex, 1);\n this.rowGroupColumns.splice(toIndex, 0, column);\n var event = {\n type: Events.EVENT_COLUMN_ROW_GROUP_CHANGED,\n columns: this.rowGroupColumns,\n column: this.rowGroupColumns.length === 1 ? this.rowGroupColumns[0] : null,\n source: source\n };\n this.eventService.dispatchEvent(event);\n };\n\n ColumnModel.prototype.moveColumns = function (columnsToMoveKeys, toIndex, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n this.columnAnimationService.start();\n\n if (toIndex > this.gridColumns.length - columnsToMoveKeys.length) {\n console.warn('AG Grid: tried to insert columns in invalid location, toIndex = ' + toIndex);\n console.warn('AG Grid: remember that you should not count the moving columns when calculating the new index');\n return;\n } // we want to pull all the columns out first and put them into an ordered list\n\n\n var columnsToMove = this.getGridColumns(columnsToMoveKeys);\n var failedRules = !this.doesMovePassRules(columnsToMove, toIndex);\n\n if (failedRules) {\n return;\n }\n\n moveInArray(this.gridColumns, columnsToMove, toIndex);\n this.updateDisplayedColumns(source);\n var event = {\n type: Events.EVENT_COLUMN_MOVED,\n columns: columnsToMove,\n column: columnsToMove.length === 1 ? columnsToMove[0] : null,\n toIndex: toIndex,\n source: source\n };\n this.eventService.dispatchEvent(event);\n this.columnAnimationService.finish();\n };\n\n ColumnModel.prototype.doesMovePassRules = function (columnsToMove, toIndex) {\n // make a copy of what the grid columns would look like after the move\n var proposedColumnOrder = this.getProposedColumnOrder(columnsToMove, toIndex);\n return this.doesOrderPassRules(proposedColumnOrder);\n };\n\n ColumnModel.prototype.doesOrderPassRules = function (gridOrder) {\n if (!this.doesMovePassMarryChildren(gridOrder)) {\n return false;\n }\n\n if (!this.doesMovePassLockedPositions(gridOrder)) {\n return false;\n }\n\n return true;\n };\n\n ColumnModel.prototype.getProposedColumnOrder = function (columnsToMove, toIndex) {\n var proposedColumnOrder = this.gridColumns.slice();\n moveInArray(proposedColumnOrder, columnsToMove, toIndex);\n return proposedColumnOrder;\n }; // returns the provided cols sorted in same order as they appear in grid columns. eg if grid columns\n // contains [a,b,c,d,e] and col passed is [e,a] then the passed cols are sorted into [a,e]\n\n\n ColumnModel.prototype.sortColumnsLikeGridColumns = function (cols) {\n var _this = this;\n\n if (!cols || cols.length <= 1) {\n return;\n }\n\n var notAllColsInGridColumns = cols.filter(function (c) {\n return _this.gridColumns.indexOf(c) < 0;\n }).length > 0;\n\n if (notAllColsInGridColumns) {\n return;\n }\n\n cols.sort(function (a, b) {\n var indexA = _this.gridColumns.indexOf(a);\n\n var indexB = _this.gridColumns.indexOf(b);\n\n return indexA - indexB;\n });\n };\n\n ColumnModel.prototype.doesMovePassLockedPositions = function (proposedColumnOrder) {\n // Placement is a number indicating 'left' 'center' or 'right' as 0 1 2\n var lastPlacement = 0;\n var rulePassed = true;\n\n var lockPositionToPlacement = function lockPositionToPlacement(position) {\n if (!position) {\n // false or undefined\n return 1;\n }\n\n if (position === true) {\n return 0;\n }\n\n return position === 'left' ? 0 : 2; // Otherwise 'right'\n };\n\n proposedColumnOrder.forEach(function (col) {\n var placement = lockPositionToPlacement(col.getColDef().lockPosition);\n\n if (placement < lastPlacement) {\n // If placement goes down, we're not in the correct order\n rulePassed = false;\n }\n\n lastPlacement = placement;\n });\n return rulePassed;\n };\n\n ColumnModel.prototype.doesMovePassMarryChildren = function (allColumnsCopy) {\n var rulePassed = true;\n this.columnUtils.depthFirstOriginalTreeSearch(null, this.gridBalancedTree, function (child) {\n if (!(child instanceof ProvidedColumnGroup)) {\n return;\n }\n\n var columnGroup = child;\n var colGroupDef = columnGroup.getColGroupDef();\n var marryChildren = colGroupDef && colGroupDef.marryChildren;\n\n if (!marryChildren) {\n return;\n }\n\n var newIndexes = [];\n columnGroup.getLeafColumns().forEach(function (col) {\n var newColIndex = allColumnsCopy.indexOf(col);\n newIndexes.push(newColIndex);\n });\n var maxIndex = Math.max.apply(Math, newIndexes);\n var minIndex = Math.min.apply(Math, newIndexes); // spread is how far the first column in this group is away from the last column\n\n var spread = maxIndex - minIndex;\n var maxSpread = columnGroup.getLeafColumns().length - 1; // if the columns\n\n if (spread > maxSpread) {\n rulePassed = false;\n } // console.log(`maxIndex = ${maxIndex}, minIndex = ${minIndex}, spread = ${spread}, maxSpread = ${maxSpread}, fail = ${spread > (count-1)}`)\n // console.log(allColumnsCopy.map( col => col.getColDef().field).join(','));\n\n });\n return rulePassed;\n };\n\n ColumnModel.prototype.moveColumn = function (key, toIndex, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n this.moveColumns([key], toIndex, source);\n };\n\n ColumnModel.prototype.moveColumnByIndex = function (fromIndex, toIndex, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n var column = this.gridColumns[fromIndex];\n this.moveColumn(column, toIndex, source);\n };\n\n ColumnModel.prototype.getColumnDefs = function () {\n var _this = this;\n\n if (!this.primaryColumns) {\n return;\n }\n\n var cols = this.primaryColumns.slice();\n\n if (this.gridColsArePrimary) {\n cols.sort(function (a, b) {\n return _this.gridColumns.indexOf(a) - _this.gridColumns.indexOf(b);\n });\n } else if (this.lastPrimaryOrder) {\n cols.sort(function (a, b) {\n return _this.lastPrimaryOrder.indexOf(a) - _this.lastPrimaryOrder.indexOf(b);\n });\n }\n\n return this.columnDefFactory.buildColumnDefs(cols, this.rowGroupColumns, this.pivotColumns);\n }; // used by:\n // + angularGrid -> for setting body width\n // + rowController -> setting main row widths (when inserting and resizing)\n // need to cache this\n\n\n ColumnModel.prototype.getBodyContainerWidth = function () {\n return this.bodyWidth;\n };\n\n ColumnModel.prototype.getContainerWidth = function (pinned) {\n switch (pinned) {\n case Constants.PINNED_LEFT:\n return this.leftWidth;\n\n case Constants.PINNED_RIGHT:\n return this.rightWidth;\n\n default:\n return this.bodyWidth;\n }\n }; // after setColumnWidth or updateGroupsAndDisplayedColumns\n\n\n ColumnModel.prototype.updateBodyWidths = function () {\n var newBodyWidth = this.getWidthOfColsInList(this.displayedColumnsCenter);\n var newLeftWidth = this.getWidthOfColsInList(this.displayedColumnsLeft);\n var newRightWidth = this.getWidthOfColsInList(this.displayedColumnsRight); // this is used by virtual col calculation, for RTL only, as a change to body width can impact displayed\n // columns, due to RTL inverting the y coordinates\n\n this.bodyWidthDirty = this.bodyWidth !== newBodyWidth;\n var atLeastOneChanged = this.bodyWidth !== newBodyWidth || this.leftWidth !== newLeftWidth || this.rightWidth !== newRightWidth;\n\n if (atLeastOneChanged) {\n this.bodyWidth = newBodyWidth;\n this.leftWidth = newLeftWidth;\n this.rightWidth = newRightWidth; // when this fires, it is picked up by the gridPanel, which ends up in\n // gridPanel calling setWidthAndScrollPosition(), which in turn calls setViewportPosition()\n\n var event_2 = {\n type: Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED\n };\n this.eventService.dispatchEvent(event_2);\n }\n }; // + rowController\n\n\n ColumnModel.prototype.getValueColumns = function () {\n return this.valueColumns ? this.valueColumns : [];\n }; // + rowController\n\n\n ColumnModel.prototype.getPivotColumns = function () {\n return this.pivotColumns ? this.pivotColumns : [];\n }; // + clientSideRowModel\n\n\n ColumnModel.prototype.isPivotActive = function () {\n return this.pivotColumns && this.pivotColumns.length > 0 && this.pivotMode;\n }; // + toolPanel\n\n\n ColumnModel.prototype.getRowGroupColumns = function () {\n return this.rowGroupColumns ? this.rowGroupColumns : [];\n }; // + rowController -> while inserting rows\n\n\n ColumnModel.prototype.getDisplayedCenterColumns = function () {\n return this.displayedColumnsCenter;\n }; // + rowController -> while inserting rows\n\n\n ColumnModel.prototype.getDisplayedLeftColumns = function () {\n return this.displayedColumnsLeft;\n };\n\n ColumnModel.prototype.getDisplayedRightColumns = function () {\n return this.displayedColumnsRight;\n };\n\n ColumnModel.prototype.getDisplayedColumns = function (type) {\n switch (type) {\n case Constants.PINNED_LEFT:\n return this.getDisplayedLeftColumns();\n\n case Constants.PINNED_RIGHT:\n return this.getDisplayedRightColumns();\n\n default:\n return this.getDisplayedCenterColumns();\n }\n }; // used by:\n // + clientSideRowController -> sorting, building quick filter text\n // + headerRenderer -> sorting (clearing icon)\n\n\n ColumnModel.prototype.getAllPrimaryColumns = function () {\n return this.primaryColumns ? this.primaryColumns.slice() : null;\n };\n\n ColumnModel.prototype.getSecondaryColumns = function () {\n return this.secondaryColumns ? this.secondaryColumns.slice() : null;\n };\n\n ColumnModel.prototype.getAllColumnsForQuickFilter = function () {\n return this.columnsForQuickFilter;\n }; // + moveColumnController\n\n\n ColumnModel.prototype.getAllGridColumns = function () {\n return this.gridColumns;\n };\n\n ColumnModel.prototype.isEmpty = function () {\n return missingOrEmpty(this.gridColumns);\n };\n\n ColumnModel.prototype.isRowGroupEmpty = function () {\n return missingOrEmpty(this.rowGroupColumns);\n };\n\n ColumnModel.prototype.setColumnVisible = function (key, visible, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n this.setColumnsVisible([key], visible, source);\n };\n\n ColumnModel.prototype.setColumnsVisible = function (keys, visible, source) {\n if (visible === void 0) {\n visible = false;\n }\n\n this.applyColumnState({\n state: keys.map(function (key) {\n return {\n colId: typeof key === 'string' ? key : key.getColId(),\n hide: !visible\n };\n })\n });\n };\n\n ColumnModel.prototype.setColumnPinned = function (key, pinned, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (key) {\n this.setColumnsPinned([key], pinned, source);\n }\n };\n\n ColumnModel.prototype.setColumnsPinned = function (keys, pinned, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (this.gridOptionsWrapper.getDomLayout() === 'print') {\n console.warn(\"Changing the column pinning status is not allowed with domLayout='print'\");\n return;\n }\n\n this.columnAnimationService.start();\n var actualPinned;\n\n if (pinned === true || pinned === Constants.PINNED_LEFT) {\n actualPinned = Constants.PINNED_LEFT;\n } else if (pinned === Constants.PINNED_RIGHT) {\n actualPinned = Constants.PINNED_RIGHT;\n } else {\n actualPinned = null;\n }\n\n this.actionOnGridColumns(keys, function (col) {\n if (col.getPinned() !== actualPinned) {\n col.setPinned(actualPinned);\n return true;\n }\n\n return false;\n }, source, function () {\n var event = {\n type: Events.EVENT_COLUMN_PINNED,\n pinned: actualPinned,\n column: null,\n columns: null,\n source: source\n };\n return event;\n });\n this.columnAnimationService.finish();\n }; // does an action on a set of columns. provides common functionality for looking up the\n // columns based on key, getting a list of effected columns, and then updated the event\n // with either one column (if it was just one col) or a list of columns\n // used by: autoResize, setVisible, setPinned\n\n\n ColumnModel.prototype.actionOnGridColumns = function ( // the column keys this action will be on\n keys, // the action to do - if this returns false, the column was skipped\n // and won't be included in the event\n action, // should return back a column event of the right type\n source, createEvent) {\n var _this = this;\n\n if (missingOrEmpty(keys)) {\n return;\n }\n\n var updatedColumns = [];\n keys.forEach(function (key) {\n var column = _this.getGridColumn(key);\n\n if (!column) {\n return;\n } // need to check for false with type (ie !== instead of !=)\n // as not returning anything (undefined) would also be false\n\n\n var resultOfAction = action(column);\n\n if (resultOfAction !== false) {\n updatedColumns.push(column);\n }\n });\n\n if (!updatedColumns.length) {\n return;\n }\n\n this.updateDisplayedColumns(source);\n\n if (exists(createEvent) && createEvent) {\n var event_3 = createEvent();\n event_3.columns = updatedColumns;\n event_3.column = updatedColumns.length === 1 ? updatedColumns[0] : null;\n this.eventService.dispatchEvent(event_3);\n }\n };\n\n ColumnModel.prototype.getDisplayedColBefore = function (col) {\n var allDisplayedColumns = this.getAllDisplayedColumns();\n var oldIndex = allDisplayedColumns.indexOf(col);\n\n if (oldIndex > 0) {\n return allDisplayedColumns[oldIndex - 1];\n }\n\n return null;\n }; // used by:\n // + rowRenderer -> for navigation\n\n\n ColumnModel.prototype.getDisplayedColAfter = function (col) {\n var allDisplayedColumns = this.getAllDisplayedColumns();\n var oldIndex = allDisplayedColumns.indexOf(col);\n\n if (oldIndex < allDisplayedColumns.length - 1) {\n return allDisplayedColumns[oldIndex + 1];\n }\n\n return null;\n };\n\n ColumnModel.prototype.getDisplayedGroupAfter = function (columnGroup) {\n return this.getDisplayedGroupAtDirection(columnGroup, 'After');\n };\n\n ColumnModel.prototype.getDisplayedGroupBefore = function (columnGroup) {\n return this.getDisplayedGroupAtDirection(columnGroup, 'Before');\n };\n\n ColumnModel.prototype.getDisplayedGroupAtDirection = function (columnGroup, direction) {\n // pick the last displayed column in this group\n var requiredLevel = columnGroup.getProvidedColumnGroup().getLevel() + columnGroup.getPaddingLevel();\n var colGroupLeafColumns = columnGroup.getDisplayedLeafColumns();\n var col = direction === 'After' ? last(colGroupLeafColumns) : colGroupLeafColumns[0];\n var getDisplayColMethod = \"getDisplayedCol\" + direction;\n\n while (true) {\n // keep moving to the next col, until we get to another group\n var column = this[getDisplayColMethod](col);\n\n if (!column) {\n return null;\n }\n\n var groupPointer = this.getColumnGroupAtLevel(column, requiredLevel);\n\n if (groupPointer !== columnGroup) {\n return groupPointer;\n }\n }\n };\n\n ColumnModel.prototype.getColumnGroupAtLevel = function (column, level) {\n // get group at same level as the one we are looking for\n var groupPointer = column.getParent();\n var originalGroupLevel;\n var groupPointerLevel;\n\n while (true) {\n var groupPointerProvidedColumnGroup = groupPointer.getProvidedColumnGroup();\n originalGroupLevel = groupPointerProvidedColumnGroup.getLevel();\n groupPointerLevel = groupPointer.getPaddingLevel();\n\n if (originalGroupLevel + groupPointerLevel <= level) {\n break;\n }\n\n groupPointer = groupPointer.getParent();\n }\n\n return groupPointer;\n };\n\n ColumnModel.prototype.isPinningLeft = function () {\n return this.displayedColumnsLeft.length > 0;\n };\n\n ColumnModel.prototype.isPinningRight = function () {\n return this.displayedColumnsRight.length > 0;\n };\n\n ColumnModel.prototype.getPrimaryAndSecondaryAndAutoColumns = function () {\n var _a;\n\n return (_a = []).concat.apply(_a, __spread$e([this.primaryColumns || [], this.groupAutoColumns || [], this.secondaryColumns || []]));\n };\n\n ColumnModel.prototype.getPrimaryAndAutoGroupCols = function () {\n var _a;\n\n return (_a = []).concat.apply(_a, __spread$e([this.primaryColumns || [], this.groupAutoColumns || []]));\n };\n\n ColumnModel.prototype.getPrimaryAndSecondaryColumns = function () {\n var _a;\n\n return (_a = []).concat.apply(_a, __spread$e([this.primaryColumns || [], this.secondaryColumns || []]));\n };\n\n ColumnModel.prototype.createStateItemFromColumn = function (column) {\n var rowGroupIndex = column.isRowGroupActive() ? this.rowGroupColumns.indexOf(column) : null;\n var pivotIndex = column.isPivotActive() ? this.pivotColumns.indexOf(column) : null;\n var aggFunc = column.isValueActive() ? column.getAggFunc() : null;\n var sort = column.getSort() != null ? column.getSort() : null;\n var sortIndex = column.getSortIndex() != null ? column.getSortIndex() : null;\n var flex = column.getFlex() != null && column.getFlex() > 0 ? column.getFlex() : null;\n var res = {\n colId: column.getColId(),\n width: column.getActualWidth(),\n hide: !column.isVisible(),\n pinned: column.getPinned(),\n sort: sort,\n sortIndex: sortIndex,\n aggFunc: aggFunc,\n rowGroup: column.isRowGroupActive(),\n rowGroupIndex: rowGroupIndex,\n pivot: column.isPivotActive(),\n pivotIndex: pivotIndex,\n flex: flex\n };\n return res;\n };\n\n ColumnModel.prototype.getColumnState = function () {\n if (missing(this.primaryColumns) || !this.isAlive()) {\n return [];\n }\n\n var colsForState = this.getPrimaryAndSecondaryAndAutoColumns();\n var res = colsForState.map(this.createStateItemFromColumn.bind(this));\n this.orderColumnStateList(res);\n return res;\n };\n\n ColumnModel.prototype.orderColumnStateList = function (columnStateList) {\n // for fast looking, store the index of each column\n var colIdToGridIndexMap = convertToMap(this.gridColumns.map(function (col, index) {\n return [col.getColId(), index];\n }));\n columnStateList.sort(function (itemA, itemB) {\n var posA = colIdToGridIndexMap.has(itemA.colId) ? colIdToGridIndexMap.get(itemA.colId) : -1;\n var posB = colIdToGridIndexMap.has(itemB.colId) ? colIdToGridIndexMap.get(itemB.colId) : -1;\n return posA - posB;\n });\n };\n\n ColumnModel.prototype.resetColumnState = function (source) {\n // NOTE = there is one bug here that no customer has noticed - if a column has colDef.lockPosition,\n // this is ignored below when ordering the cols. to work, we should always put lockPosition cols first.\n // As a work around, developers should just put lockPosition columns first in their colDef list.\n if (source === void 0) {\n source = \"api\";\n } // we can't use 'allColumns' as the order might of messed up, so get the primary ordered list\n\n\n var primaryColumns = this.getColumnsFromTree(this.primaryColumnTree);\n var columnStates = []; // we start at 1000, so if user has mix of rowGroup and group specified, it will work with both.\n // eg IF user has ColA.rowGroupIndex=0, ColB.rowGroupIndex=1, ColC.rowGroup=true,\n // THEN result will be ColA.rowGroupIndex=0, ColB.rowGroupIndex=1, ColC.rowGroup=1000\n\n var letRowGroupIndex = 1000;\n var letPivotIndex = 1000;\n var colsToProcess = [];\n\n if (this.groupAutoColumns) {\n colsToProcess = colsToProcess.concat(this.groupAutoColumns);\n }\n\n if (primaryColumns) {\n colsToProcess = colsToProcess.concat(primaryColumns);\n }\n\n colsToProcess.forEach(function (column) {\n var getValueOrNull = function getValueOrNull(a, b) {\n return a != null ? a : b != null ? b : null;\n };\n\n var colDef = column.getColDef();\n var sort = getValueOrNull(colDef.sort, colDef.initialSort);\n var sortIndex = getValueOrNull(colDef.sortIndex, colDef.initialSortIndex);\n var hide = getValueOrNull(colDef.hide, colDef.initialHide);\n var pinned = getValueOrNull(colDef.pinned, colDef.initialPinned);\n var width = getValueOrNull(colDef.width, colDef.initialWidth);\n var flex = getValueOrNull(colDef.flex, colDef.initialFlex);\n var rowGroupIndex = getValueOrNull(colDef.rowGroupIndex, colDef.initialRowGroupIndex);\n var rowGroup = getValueOrNull(colDef.rowGroup, colDef.initialRowGroup);\n\n if (rowGroupIndex == null && (rowGroup == null || rowGroup == false)) {\n rowGroupIndex = null;\n rowGroup = null;\n }\n\n var pivotIndex = getValueOrNull(colDef.pivotIndex, colDef.initialPivotIndex);\n var pivot = getValueOrNull(colDef.pivot, colDef.initialPivot);\n\n if (pivotIndex == null && (pivot == null || pivot == false)) {\n pivotIndex = null;\n pivot = null;\n }\n\n var aggFunc = getValueOrNull(colDef.aggFunc, colDef.initialAggFunc);\n var stateItem = {\n colId: column.getColId(),\n sort: sort,\n sortIndex: sortIndex,\n hide: hide,\n pinned: pinned,\n width: width,\n flex: flex,\n rowGroup: rowGroup,\n rowGroupIndex: rowGroupIndex,\n pivot: pivot,\n pivotIndex: pivotIndex,\n aggFunc: aggFunc\n };\n\n if (missing(rowGroupIndex) && rowGroup) {\n stateItem.rowGroupIndex = letRowGroupIndex++;\n }\n\n if (missing(pivotIndex) && pivot) {\n stateItem.pivotIndex = letPivotIndex++;\n }\n\n columnStates.push(stateItem);\n });\n this.applyColumnState({\n state: columnStates,\n applyOrder: true\n }, source);\n };\n\n ColumnModel.prototype.applyColumnState = function (params, source) {\n var _this = this;\n\n if (source === void 0) {\n source = \"api\";\n }\n\n if (missingOrEmpty(this.primaryColumns)) {\n return false;\n }\n\n if (params && params.state && !params.state.forEach) {\n 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.');\n return false;\n }\n\n var applyStates = function applyStates(states, existingColumns, getById) {\n var raiseEventsFunc = _this.compareColumnStatesAndRaiseEvents(source);\n\n _this.autoGroupsNeedBuilding = true; // at the end below, this list will have all columns we got no state for\n\n var columnsWithNoState = existingColumns.slice();\n var rowGroupIndexes = {};\n var pivotIndexes = {};\n var autoGroupColumnStates = []; // If pivoting is modified, these are the states we try to reapply after\n // the secondary columns are re-generated\n\n var unmatchedAndAutoStates = [];\n var unmatchedCount = 0;\n\n var previousRowGroupCols = _this.rowGroupColumns.slice();\n\n var previousPivotCols = _this.pivotColumns.slice();\n\n states.forEach(function (state) {\n var colId = state.colId || ''; // auto group columns are re-created so deferring syncing with ColumnState\n\n var isAutoGroupColumn = colId.startsWith(Constants.GROUP_AUTO_COLUMN_ID);\n\n if (isAutoGroupColumn) {\n autoGroupColumnStates.push(state);\n unmatchedAndAutoStates.push(state);\n return;\n }\n\n var column = getById(colId);\n\n if (!column) {\n unmatchedAndAutoStates.push(state);\n unmatchedCount += 1;\n } else {\n _this.syncColumnWithStateItem(column, state, params.defaultState, rowGroupIndexes, pivotIndexes, false, source);\n\n removeFromArray(columnsWithNoState, column);\n }\n }); // anything left over, we got no data for, so add in the column as non-value, non-rowGroup and hidden\n\n var applyDefaultsFunc = function applyDefaultsFunc(col) {\n return _this.syncColumnWithStateItem(col, null, params.defaultState, rowGroupIndexes, pivotIndexes, false, source);\n };\n\n columnsWithNoState.forEach(applyDefaultsFunc); // sort the lists according to the indexes that were provided\n\n var comparator = function comparator(indexes, oldList, colA, colB) {\n var indexA = indexes[colA.getId()];\n var indexB = indexes[colB.getId()];\n var aHasIndex = indexA != null;\n var bHasIndex = indexB != null;\n\n if (aHasIndex && bHasIndex) {\n // both a and b are new cols with index, so sort on index\n return indexA - indexB;\n }\n\n if (aHasIndex) {\n // a has an index, so it should be before a\n return -1;\n }\n\n if (bHasIndex) {\n // b has an index, so it should be before a\n return 1;\n }\n\n var oldIndexA = oldList.indexOf(colA);\n var oldIndexB = oldList.indexOf(colB);\n var aHasOldIndex = oldIndexA >= 0;\n var bHasOldIndex = oldIndexB >= 0;\n\n if (aHasOldIndex && bHasOldIndex) {\n // both a and b are old cols, so sort based on last order\n return oldIndexA - oldIndexB;\n }\n\n if (aHasOldIndex) {\n // a is old, b is new, so b is first\n return -1;\n } // this bit does matter, means both are new cols\n // but without index or that b is old and a is new\n\n\n return 1;\n };\n\n _this.rowGroupColumns.sort(comparator.bind(_this, rowGroupIndexes, previousRowGroupCols));\n\n _this.pivotColumns.sort(comparator.bind(_this, pivotIndexes, previousPivotCols));\n\n _this.updateGridColumns(); // sync newly created auto group columns with ColumnState\n\n\n var autoGroupColsCopy = _this.groupAutoColumns ? _this.groupAutoColumns.slice() : [];\n autoGroupColumnStates.forEach(function (stateItem) {\n var autoCol = _this.getAutoColumn(stateItem.colId);\n\n removeFromArray(autoGroupColsCopy, autoCol);\n\n _this.syncColumnWithStateItem(autoCol, stateItem, params.defaultState, null, null, true, source);\n }); // autogroup cols with nothing else, apply the default\n\n autoGroupColsCopy.forEach(applyDefaultsFunc);\n\n _this.applyOrderAfterApplyState(params);\n\n _this.updateDisplayedColumns(source);\n\n _this.dispatchEverythingChanged(source);\n\n raiseEventsFunc(); // Will trigger secondary column changes if pivoting modified\n\n return {\n unmatchedAndAutoStates: unmatchedAndAutoStates,\n unmatchedCount: unmatchedCount\n };\n };\n\n this.columnAnimationService.start();\n\n var _a = applyStates(params.state || [], this.primaryColumns || [], function (id) {\n return _this.getPrimaryColumn(id);\n }),\n unmatchedAndAutoStates = _a.unmatchedAndAutoStates,\n unmatchedCount = _a.unmatchedCount; // If there are still states left over, see if we can apply them to newly generated\n // secondary or auto columns. Also if defaults exist, ensure they are applied to secondary cols\n\n\n if (unmatchedAndAutoStates.length > 0 || exists(params.defaultState)) {\n unmatchedCount = applyStates(unmatchedAndAutoStates, this.secondaryColumns || [], function (id) {\n return _this.getSecondaryColumn(id);\n }).unmatchedCount;\n }\n\n this.columnAnimationService.finish();\n return unmatchedCount === 0; // Successful if no states unaccounted for\n };\n\n ColumnModel.prototype.applyOrderAfterApplyState = function (params) {\n var _this = this;\n\n if (!params.applyOrder || !params.state) {\n return;\n }\n\n var newOrder = [];\n var processedColIds = {};\n params.state.forEach(function (item) {\n if (!item.colId || processedColIds[item.colId]) {\n return;\n }\n\n var col = _this.gridColumnsMap[item.colId];\n\n if (col) {\n newOrder.push(col);\n processedColIds[item.colId] = true;\n }\n }); // add in all other columns\n\n var autoGroupInsertIndex = 0;\n this.gridColumns.forEach(function (col) {\n var colId = col.getColId();\n var alreadyProcessed = processedColIds[colId] != null;\n\n if (alreadyProcessed) {\n return;\n }\n\n var isAutoGroupCol = colId.startsWith(Constants.GROUP_AUTO_COLUMN_ID);\n\n if (isAutoGroupCol) {\n // auto group columns, if missing from state list, are added to the start.\n // it's common to have autoGroup missing, as grouping could be on by default\n // on a column, but the user could of since removed the grouping via the UI.\n // if we don't inc the insert index, autoGroups will be inserted in reverse order\n insertIntoArray(newOrder, col, autoGroupInsertIndex++);\n } else {\n // normal columns, if missing from state list, are added at the end\n newOrder.push(col);\n }\n }); // this is already done in updateGridColumns, however we changed the order above (to match the order of the state\n // columns) so we need to do it again. we could of put logic into the order above to take into account fixed\n // columns, however if we did then we would have logic for updating fixed columns twice. reusing the logic here\n // is less sexy for the code here, but it keeps consistency.\n\n newOrder = this.placeLockedColumns(newOrder);\n\n if (!this.doesMovePassMarryChildren(newOrder)) {\n console.warn('AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.');\n return;\n }\n\n this.gridColumns = newOrder;\n };\n\n ColumnModel.prototype.compareColumnStatesAndRaiseEvents = function (source) {\n var _this = this;\n\n var startState = {\n rowGroupColumns: this.rowGroupColumns.slice(),\n pivotColumns: this.pivotColumns.slice(),\n valueColumns: this.valueColumns.slice()\n };\n var columnStateBefore = this.getColumnState();\n var columnStateBeforeMap = {};\n columnStateBefore.forEach(function (col) {\n columnStateBeforeMap[col.colId] = col;\n });\n return function () {\n if (_this.gridOptionsWrapper.isSuppressColumnStateEvents()) {\n return;\n }\n\n var colsForState = _this.getPrimaryAndSecondaryAndAutoColumns(); // raises generic ColumnEvents where all columns are returned rather than what has changed\n\n\n var raiseWhenListsDifferent = function raiseWhenListsDifferent(eventType, colsBefore, colsAfter, idMapper) {\n var beforeList = colsBefore.map(idMapper);\n var afterList = colsAfter.map(idMapper);\n var unchanged = areEqual(beforeList, afterList);\n\n if (unchanged) {\n return;\n } // returning all columns rather than what has changed!\n\n\n var event = {\n type: eventType,\n columns: colsAfter,\n column: colsAfter.length === 1 ? colsAfter[0] : null,\n source: source\n };\n\n _this.eventService.dispatchEvent(event);\n }; // determines which columns have changed according to supplied predicate\n\n\n var getChangedColumns = function getChangedColumns(changedPredicate) {\n var changedColumns = [];\n colsForState.forEach(function (column) {\n var colStateBefore = columnStateBeforeMap[column.getColId()];\n\n if (colStateBefore && changedPredicate(colStateBefore, column)) {\n changedColumns.push(column);\n }\n });\n return changedColumns;\n };\n\n var columnIdMapper = function columnIdMapper(c) {\n return c.getColId();\n };\n\n raiseWhenListsDifferent(Events.EVENT_COLUMN_ROW_GROUP_CHANGED, startState.rowGroupColumns, _this.rowGroupColumns, columnIdMapper);\n raiseWhenListsDifferent(Events.EVENT_COLUMN_PIVOT_CHANGED, startState.pivotColumns, _this.pivotColumns, columnIdMapper);\n\n var valueChangePredicate = function valueChangePredicate(cs, c) {\n var oldActive = cs.aggFunc != null;\n var activeChanged = oldActive != c.isValueActive(); // we only check aggFunc if the agg is active\n\n var aggFuncChanged = oldActive && cs.aggFunc != c.getAggFunc();\n return activeChanged || aggFuncChanged;\n };\n\n var changedValues = getChangedColumns(valueChangePredicate);\n\n if (changedValues.length > 0) {\n // we pass all value columns, now the ones that changed. this is the same\n // as pivot and rowGroup cols, but different to all other properties below.\n // this is more for backwards compatibility, as it's always been this way.\n // really it should be the other way, as the order of the cols makes no difference\n // for valueColumns (apart from displaying them in the tool panel).\n _this.fireColumnEvent(Events.EVENT_COLUMN_VALUE_CHANGED, _this.valueColumns, source);\n }\n\n var resizeChangePredicate = function resizeChangePredicate(cs, c) {\n return cs.width != c.getActualWidth();\n };\n\n _this.fireColumnResizedEvent(getChangedColumns(resizeChangePredicate), true, source);\n\n var pinnedChangePredicate = function pinnedChangePredicate(cs, c) {\n return cs.pinned != c.getPinned();\n };\n\n _this.raiseColumnPinnedEvent(getChangedColumns(pinnedChangePredicate), source);\n\n var visibilityChangePredicate = function visibilityChangePredicate(cs, c) {\n return cs.hide == c.isVisible();\n };\n\n _this.raiseColumnVisibleEvent(getChangedColumns(visibilityChangePredicate), source);\n\n var sortChangePredicate = function sortChangePredicate(cs, c) {\n return cs.sort != c.getSort() || cs.sortIndex != c.getSortIndex();\n };\n\n if (getChangedColumns(sortChangePredicate).length > 0) {\n _this.sortController.dispatchSortChangedEvents(source);\n } // special handling for moved column events\n\n\n _this.raiseColumnMovedEvent(columnStateBefore, source);\n };\n };\n\n ColumnModel.prototype.raiseColumnPinnedEvent = function (changedColumns, source) {\n if (!changedColumns.length) {\n return;\n } // if just one column, we use this, otherwise we don't include the col\n\n\n var column = changedColumns.length === 1 ? changedColumns[0] : null; // only include visible if it's common in all columns\n\n var pinned = this.getCommonValue(changedColumns, function (col) {\n return col.getPinned();\n });\n var event = {\n type: Events.EVENT_COLUMN_PINNED,\n // mistake in typing, 'undefined' should be allowed, as 'null' means 'not pinned'\n pinned: pinned != null ? pinned : null,\n columns: changedColumns,\n column: column,\n source: source\n };\n this.eventService.dispatchEvent(event);\n };\n\n ColumnModel.prototype.getCommonValue = function (cols, valueGetter) {\n if (!cols || cols.length == 0) {\n return undefined;\n } // compare each value to the first value. if nothing differs, then value is common so return it.\n\n\n var firstValue = valueGetter(cols[0]);\n\n for (var i = 1; i < cols.length; i++) {\n if (firstValue !== valueGetter(cols[i])) {\n // values differ, no common value\n return undefined;\n }\n }\n\n return firstValue;\n };\n\n ColumnModel.prototype.raiseColumnVisibleEvent = function (changedColumns, source) {\n if (!changedColumns.length) {\n return;\n } // if just one column, we use this, otherwise we don't include the col\n\n\n var column = changedColumns.length === 1 ? changedColumns[0] : null; // only include visible if it's common in all columns\n\n var visible = this.getCommonValue(changedColumns, function (col) {\n return col.isVisible();\n });\n var event = {\n type: Events.EVENT_COLUMN_VISIBLE,\n visible: visible,\n columns: changedColumns,\n column: column,\n source: source\n };\n this.eventService.dispatchEvent(event);\n };\n\n ColumnModel.prototype.raiseColumnMovedEvent = function (colStateBefore, source) {\n // we are only interested in columns that were both present and visible before and after\n var _this = this;\n\n var colStateAfter = this.getColumnState();\n var colStateAfterMapped = {};\n colStateAfter.forEach(function (s) {\n return colStateAfterMapped[s.colId] = s;\n }); // get id's of cols in both before and after lists\n\n var colsIntersectIds = {};\n colStateBefore.forEach(function (s) {\n if (colStateAfterMapped[s.colId]) {\n colsIntersectIds[s.colId] = true;\n }\n }); // filter state lists, so we only have cols that were present before and after\n\n var beforeFiltered = colStateBefore.filter(function (c) {\n return colsIntersectIds[c.colId];\n });\n var afterFiltered = colStateAfter.filter(function (c) {\n return colsIntersectIds[c.colId];\n }); // see if any cols are in a different location\n\n var movedColumns = [];\n afterFiltered.forEach(function (csAfter, index) {\n var csBefore = beforeFiltered && beforeFiltered[index];\n\n if (csBefore && csBefore.colId !== csAfter.colId) {\n var gridCol = _this.getGridColumn(csBefore.colId);\n\n if (gridCol) {\n movedColumns.push(gridCol);\n }\n }\n });\n\n if (!movedColumns.length) {\n return;\n }\n\n var event = {\n type: Events.EVENT_COLUMN_MOVED,\n columns: movedColumns,\n column: null,\n source: source\n };\n this.eventService.dispatchEvent(event);\n };\n\n ColumnModel.prototype.syncColumnWithStateItem = function (column, stateItem, defaultState, rowGroupIndexes, pivotIndexes, autoCol, source) {\n if (!column) {\n return;\n }\n\n var getValue = function getValue(key1, key2) {\n var obj = {\n value1: undefined,\n value2: undefined\n };\n var calculated = false;\n\n if (stateItem) {\n if (stateItem[key1] !== undefined) {\n obj.value1 = stateItem[key1];\n calculated = true;\n }\n\n if (exists(key2) && stateItem[key2] !== undefined) {\n obj.value2 = stateItem[key2];\n calculated = true;\n }\n }\n\n if (!calculated && defaultState) {\n if (defaultState[key1] !== undefined) {\n obj.value1 = defaultState[key1];\n }\n\n if (exists(key2) && defaultState[key2] !== undefined) {\n obj.value2 = defaultState[key2];\n }\n }\n\n return obj;\n }; // following ensures we are left with boolean true or false, eg converts (null, undefined, 0) all to true\n\n\n var hide = getValue('hide').value1;\n\n if (hide !== undefined) {\n column.setVisible(!hide, source);\n } // sets pinned to 'left' or 'right'\n\n\n var pinned = getValue('pinned').value1;\n\n if (pinned !== undefined) {\n column.setPinned(pinned);\n } // if width provided and valid, use it, otherwise stick with the old width\n\n\n var minColWidth = this.columnUtils.calculateColMinWidth(column.getColDef()); // flex\n\n var flex = getValue('flex').value1;\n\n if (flex !== undefined) {\n column.setFlex(flex);\n } // width - we only set width if column is not flexing\n\n\n var noFlexThisCol = column.getFlex() <= 0;\n\n if (noFlexThisCol) {\n // both null and undefined means we skip, as it's not possible to 'clear' width (a column must have a width)\n var width = getValue('width').value1;\n\n if (width != null) {\n if (minColWidth != null && width >= minColWidth) {\n column.setActualWidth(width, source);\n }\n }\n }\n\n var sort = getValue('sort').value1;\n\n if (sort !== undefined) {\n if (sort === Constants.SORT_DESC || sort === Constants.SORT_ASC) {\n column.setSort(sort, source);\n } else {\n column.setSort(undefined, source);\n }\n }\n\n var sortIndex = getValue('sortIndex').value1;\n\n if (sortIndex !== undefined) {\n column.setSortIndex(sortIndex);\n } // we do not do aggFunc, rowGroup or pivot for auto cols or secondary cols\n\n\n if (autoCol || !column.isPrimary()) {\n return;\n }\n\n var aggFunc = getValue('aggFunc').value1;\n\n if (aggFunc !== undefined) {\n if (typeof aggFunc === 'string') {\n column.setAggFunc(aggFunc);\n\n if (!column.isValueActive()) {\n column.setValueActive(true, source);\n this.valueColumns.push(column);\n }\n } else {\n if (exists(aggFunc)) {\n 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.');\n } // Note: we do not call column.setAggFunc(null), so that next time we aggregate\n // by this column (eg drag the column to the agg section int he toolpanel) it will\n // default to the last aggregation function.\n\n\n if (column.isValueActive()) {\n column.setValueActive(false, source);\n removeFromArray(this.valueColumns, column);\n }\n }\n }\n\n var _a = getValue('rowGroup', 'rowGroupIndex'),\n rowGroup = _a.value1,\n rowGroupIndex = _a.value2;\n\n if (rowGroup !== undefined || rowGroupIndex !== undefined) {\n if (typeof rowGroupIndex === 'number' || rowGroup) {\n if (!column.isRowGroupActive()) {\n column.setRowGroupActive(true, source);\n this.rowGroupColumns.push(column);\n }\n\n if (rowGroupIndexes && typeof rowGroupIndex === 'number') {\n rowGroupIndexes[column.getId()] = rowGroupIndex;\n }\n } else {\n if (column.isRowGroupActive()) {\n column.setRowGroupActive(false, source);\n removeFromArray(this.rowGroupColumns, column);\n }\n }\n }\n\n var _b = getValue('pivot', 'pivotIndex'),\n pivot = _b.value1,\n pivotIndex = _b.value2;\n\n if (pivot !== undefined || pivotIndex !== undefined) {\n if (typeof pivotIndex === 'number' || pivot) {\n if (!column.isPivotActive()) {\n column.setPivotActive(true, source);\n this.pivotColumns.push(column);\n }\n\n if (pivotIndexes && typeof pivotIndex === 'number') {\n pivotIndexes[column.getId()] = pivotIndex;\n }\n } else {\n if (column.isPivotActive()) {\n column.setPivotActive(false, source);\n removeFromArray(this.pivotColumns, column);\n }\n }\n }\n };\n\n ColumnModel.prototype.getGridColumns = function (keys) {\n return this.getColumns(keys, this.getGridColumn.bind(this));\n };\n\n ColumnModel.prototype.getColumns = function (keys, columnLookupCallback) {\n var foundColumns = [];\n\n if (keys) {\n keys.forEach(function (key) {\n var column = columnLookupCallback(key);\n\n if (column) {\n foundColumns.push(column);\n }\n });\n }\n\n return foundColumns;\n }; // used by growGroupPanel\n\n\n ColumnModel.prototype.getColumnWithValidation = function (key) {\n if (key == null) {\n return null;\n }\n\n var column = this.getGridColumn(key);\n\n if (!column) {\n console.warn('AG Grid: could not find column ' + key);\n }\n\n return column;\n };\n\n ColumnModel.prototype.getPrimaryColumn = function (key) {\n if (!this.primaryColumns) {\n return null;\n }\n\n return this.getColumn(key, this.primaryColumns, this.primaryColumnsMap);\n };\n\n ColumnModel.prototype.getGridColumn = function (key) {\n return this.getColumn(key, this.gridColumns, this.gridColumnsMap);\n };\n\n ColumnModel.prototype.getSecondaryColumn = function (key) {\n if (!this.secondaryColumns) {\n return null;\n }\n\n return this.getColumn(key, this.secondaryColumns, this.secondaryColumnsMap);\n };\n\n ColumnModel.prototype.getColumn = function (key, columnList, columnMap) {\n if (!key) {\n return null;\n } // most of the time this method gets called the key is a string, so we put this shortcut in\n // for performance reasons, to see if we can match for ID (it doesn't do auto columns, that's done below)\n\n\n if (typeof key == 'string' && columnMap[key]) {\n return columnMap[key];\n }\n\n for (var i = 0; i < columnList.length; i++) {\n if (this.columnsMatch(columnList[i], key)) {\n return columnList[i];\n }\n }\n\n return this.getAutoColumn(key);\n };\n\n ColumnModel.prototype.getSourceColumnsForGroupColumn = function (groupCol) {\n var sourceColumnId = groupCol.getColDef().showRowGroup;\n\n if (!sourceColumnId) {\n return null;\n }\n\n if (sourceColumnId === true) {\n return this.rowGroupColumns.slice(0);\n }\n\n var column = this.getPrimaryColumn(sourceColumnId);\n return column ? [column] : null;\n };\n\n ColumnModel.prototype.getAutoColumn = function (key) {\n var _this = this;\n\n if (!this.groupAutoColumns || !exists(this.groupAutoColumns) || missing(this.groupAutoColumns)) {\n return null;\n }\n\n return this.groupAutoColumns.find(function (groupCol) {\n return _this.columnsMatch(groupCol, key);\n }) || null;\n };\n\n ColumnModel.prototype.columnsMatch = function (column, key) {\n var columnMatches = column === key;\n var colDefMatches = column.getColDef() === key;\n var idMatches = column.getColId() == key;\n return columnMatches || colDefMatches || idMatches;\n };\n\n ColumnModel.prototype.getDisplayNameForColumn = function (column, location, includeAggFunc) {\n if (includeAggFunc === void 0) {\n includeAggFunc = false;\n }\n\n if (!column) {\n return null;\n }\n\n var headerName = this.getHeaderName(column.getColDef(), column, null, null, location);\n\n if (includeAggFunc) {\n return this.wrapHeaderNameWithAggFunc(column, headerName);\n }\n\n return headerName;\n };\n\n ColumnModel.prototype.getDisplayNameForProvidedColumnGroup = function (columnGroup, providedColumnGroup, location) {\n var colGroupDef = providedColumnGroup ? providedColumnGroup.getColGroupDef() : null;\n\n if (colGroupDef) {\n return this.getHeaderName(colGroupDef, null, columnGroup, providedColumnGroup, location);\n }\n\n return null;\n };\n\n ColumnModel.prototype.getDisplayNameForColumnGroup = function (columnGroup, location) {\n return this.getDisplayNameForProvidedColumnGroup(columnGroup, columnGroup.getProvidedColumnGroup(), location);\n }; // location is where the column is going to appear, ie who is calling us\n\n\n ColumnModel.prototype.getHeaderName = function (colDef, column, columnGroup, providedColumnGroup, location) {\n var headerValueGetter = colDef.headerValueGetter;\n\n if (headerValueGetter) {\n var params = {\n colDef: colDef,\n column: column,\n columnGroup: columnGroup,\n providedColumnGroup: providedColumnGroup,\n location: location,\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n context: this.gridOptionsWrapper.getContext()\n };\n\n if (typeof headerValueGetter === 'function') {\n // valueGetter is a function, so just call it\n return headerValueGetter(params);\n } else if (typeof headerValueGetter === 'string') {\n // valueGetter is an expression, so execute the expression\n return this.expressionService.evaluate(headerValueGetter, params);\n }\n\n console.warn('ag-grid: headerValueGetter must be a function or a string');\n return '';\n } else if (colDef.headerName != null) {\n return colDef.headerName;\n } else if (colDef.field) {\n return camelCaseToHumanText(colDef.field);\n }\n\n return '';\n };\n\n ColumnModel.prototype.wrapHeaderNameWithAggFunc = function (column, headerName) {\n if (this.gridOptionsWrapper.isSuppressAggFuncInHeader()) {\n return headerName;\n } // only columns with aggregation active can have aggregations\n\n\n var pivotValueColumn = column.getColDef().pivotValueColumn;\n var pivotActiveOnThisColumn = exists(pivotValueColumn);\n var aggFunc = null;\n var aggFuncFound; // otherwise we have a measure that is active, and we are doing aggregation on it\n\n if (pivotActiveOnThisColumn) {\n var isCollapsedHeaderEnabled = this.gridOptionsWrapper.isRemovePivotHeaderRowWhenSingleValueColumn() && this.valueColumns.length === 1;\n var isTotalColumn = column.getColDef().pivotTotalColumnIds !== undefined;\n\n if (isCollapsedHeaderEnabled && !isTotalColumn) {\n return headerName; // Skip decorating the header - in this case the label is the pivot key, not the value col\n }\n\n aggFunc = pivotValueColumn ? pivotValueColumn.getAggFunc() : null;\n aggFuncFound = true;\n } else {\n var measureActive = column.isValueActive();\n var aggregationPresent = this.pivotMode || !this.isRowGroupEmpty();\n\n if (measureActive && aggregationPresent) {\n aggFunc = column.getAggFunc();\n aggFuncFound = true;\n } else {\n aggFuncFound = false;\n }\n }\n\n if (aggFuncFound) {\n var aggFuncString = typeof aggFunc === 'string' ? aggFunc : 'func';\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n var aggFuncStringTranslated = localeTextFunc(aggFuncString, aggFuncString);\n return aggFuncStringTranslated + \"(\" + headerName + \")\";\n }\n\n return headerName;\n }; // returns the group with matching colId and instanceId. If instanceId is missing,\n // matches only on the colId.\n\n\n ColumnModel.prototype.getColumnGroup = function (colId, instanceId) {\n if (!colId) {\n return null;\n }\n\n if (colId instanceof ColumnGroup) {\n return colId;\n }\n\n var allColumnGroups = this.getAllDisplayedTrees();\n var checkInstanceId = typeof instanceId === 'number';\n var result = null;\n this.columnUtils.depthFirstAllColumnTreeSearch(allColumnGroups, function (child) {\n if (child instanceof ColumnGroup) {\n var columnGroup = child;\n var matched = void 0;\n\n if (checkInstanceId) {\n matched = colId === columnGroup.getGroupId() && instanceId === columnGroup.getInstanceId();\n } else {\n matched = colId === columnGroup.getGroupId();\n }\n\n if (matched) {\n result = columnGroup;\n }\n }\n });\n return result;\n };\n\n ColumnModel.prototype.isReady = function () {\n return this.ready;\n };\n\n ColumnModel.prototype.extractValueColumns = function (source, oldPrimaryColumns) {\n this.valueColumns = this.extractColumns(oldPrimaryColumns, this.valueColumns, function (col, flag) {\n return col.setValueActive(flag, source);\n }, // aggFunc doesn't have index variant, cos order of value cols doesn't matter, so always return null\n function () {\n return undefined;\n }, function () {\n return undefined;\n }, // aggFunc is a string, so return it's existence\n function (colDef) {\n var aggFunc = colDef.aggFunc; // null or empty string means clear\n\n if (aggFunc === null || aggFunc === '') {\n return null;\n }\n\n if (aggFunc === undefined) {\n return;\n }\n\n return !!aggFunc;\n }, function (colDef) {\n // return false if any of the following: null, undefined, empty string\n return colDef.initialAggFunc != null && colDef.initialAggFunc != '';\n }); // all new columns added will have aggFunc missing, so set it to what is in the colDef\n\n this.valueColumns.forEach(function (col) {\n var colDef = col.getColDef(); // if aggFunc provided, we always override, as reactive property\n\n if (colDef.aggFunc != null && colDef.aggFunc != '') {\n col.setAggFunc(colDef.aggFunc);\n } else {\n // otherwise we use initialAggFunc only if no agg func set - which happens when new column only\n if (!col.getAggFunc()) {\n col.setAggFunc(colDef.initialAggFunc);\n }\n }\n });\n };\n\n ColumnModel.prototype.extractRowGroupColumns = function (source, oldPrimaryColumns) {\n this.rowGroupColumns = this.extractColumns(oldPrimaryColumns, this.rowGroupColumns, function (col, flag) {\n return col.setRowGroupActive(flag, source);\n }, function (colDef) {\n return colDef.rowGroupIndex;\n }, function (colDef) {\n return colDef.initialRowGroupIndex;\n }, function (colDef) {\n return colDef.rowGroup;\n }, function (colDef) {\n return colDef.initialRowGroup;\n });\n };\n\n ColumnModel.prototype.extractColumns = function (oldPrimaryColumns, previousCols, setFlagFunc, getIndexFunc, getInitialIndexFunc, getValueFunc, getInitialValueFunc) {\n if (oldPrimaryColumns === void 0) {\n oldPrimaryColumns = [];\n }\n\n if (previousCols === void 0) {\n previousCols = [];\n }\n\n var colsWithIndex = [];\n var colsWithValue = []; // go though all cols.\n // if value, change\n // if default only, change only if new\n\n (this.primaryColumns || []).forEach(function (col) {\n var colIsNew = oldPrimaryColumns.indexOf(col) < 0;\n var colDef = col.getColDef();\n var value = attrToBoolean(getValueFunc(colDef));\n var initialValue = attrToBoolean(getInitialValueFunc(colDef));\n var index = attrToNumber(getIndexFunc(colDef));\n var initialIndex = attrToNumber(getInitialIndexFunc(colDef));\n var include;\n var valuePresent = value !== undefined;\n var indexPresent = index !== undefined;\n var initialValuePresent = initialValue !== undefined;\n var initialIndexPresent = initialIndex !== undefined;\n\n if (valuePresent) {\n include = value; // boolean value is guaranteed as attrToBoolean() is used above\n } else if (indexPresent) {\n if (index === null) {\n // if col is new we don't want to use the default / initial if index is set to null. Similarly,\n // we don't want to include the property for existing columns, i.e. we want to 'clear' it.\n include = false;\n } else {\n // note that 'null >= 0' evaluates to true which means 'rowGroupIndex = null' would enable row\n // grouping if the null check didn't exist above.\n include = index >= 0;\n }\n } else {\n if (colIsNew) {\n // as no value or index is 'present' we use the default / initial when col is new\n if (initialValuePresent) {\n include = initialValue;\n } else if (initialIndexPresent) {\n include = initialIndex != null && initialIndex >= 0;\n } else {\n include = false;\n }\n } else {\n // otherwise include it if included last time, e.g. if we are extracting row group cols and this col\n // is an existing row group col (i.e. it exists in 'previousCols') then we should include it.\n include = previousCols.indexOf(col) >= 0;\n }\n }\n\n if (include) {\n var useIndex = colIsNew ? index != null || initialIndex != null : index != null;\n useIndex ? colsWithIndex.push(col) : colsWithValue.push(col);\n }\n });\n\n var getIndexForCol = function getIndexForCol(col) {\n var index = getIndexFunc(col.getColDef());\n var defaultIndex = getInitialIndexFunc(col.getColDef());\n return index != null ? index : defaultIndex;\n }; // sort cols with index, and add these first\n\n\n colsWithIndex.sort(function (colA, colB) {\n var indexA = getIndexForCol(colA);\n var indexB = getIndexForCol(colB);\n\n if (indexA === indexB) {\n return 0;\n }\n\n if (indexA < indexB) {\n return -1;\n }\n\n return 1;\n });\n var res = [].concat(colsWithIndex); // second add columns that were there before and in the same order as they were before,\n // so we are preserving order of current grouping of columns that simply have rowGroup=true\n\n previousCols.forEach(function (col) {\n if (colsWithValue.indexOf(col) >= 0) {\n res.push(col);\n }\n }); // lastly put in all remaining cols\n\n colsWithValue.forEach(function (col) {\n if (res.indexOf(col) < 0) {\n res.push(col);\n }\n }); // set flag=false for removed cols\n\n previousCols.forEach(function (col) {\n if (res.indexOf(col) < 0) {\n setFlagFunc(col, false);\n }\n }); // set flag=true for newly added cols\n\n res.forEach(function (col) {\n if (previousCols.indexOf(col) < 0) {\n setFlagFunc(col, true);\n }\n });\n return res;\n };\n\n ColumnModel.prototype.extractPivotColumns = function (source, oldPrimaryColumns) {\n this.pivotColumns = this.extractColumns(oldPrimaryColumns, this.pivotColumns, function (col, flag) {\n return col.setPivotActive(flag, source);\n }, function (colDef) {\n return colDef.pivotIndex;\n }, function (colDef) {\n return colDef.initialPivotIndex;\n }, function (colDef) {\n return colDef.pivot;\n }, function (colDef) {\n return colDef.initialPivot;\n });\n };\n\n ColumnModel.prototype.resetColumnGroupState = function (source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n var stateItems = [];\n this.columnUtils.depthFirstOriginalTreeSearch(null, this.primaryColumnTree, function (child) {\n if (child instanceof ProvidedColumnGroup) {\n var colGroupDef = child.getColGroupDef();\n var groupState = {\n groupId: child.getGroupId(),\n open: !colGroupDef ? undefined : colGroupDef.openByDefault\n };\n stateItems.push(groupState);\n }\n });\n this.setColumnGroupState(stateItems, source);\n };\n\n ColumnModel.prototype.getColumnGroupState = function () {\n var columnGroupState = [];\n this.columnUtils.depthFirstOriginalTreeSearch(null, this.gridBalancedTree, function (node) {\n if (node instanceof ProvidedColumnGroup) {\n columnGroupState.push({\n groupId: node.getGroupId(),\n open: node.isExpanded()\n });\n }\n });\n return columnGroupState;\n };\n\n ColumnModel.prototype.setColumnGroupState = function (stateItems, source) {\n var _this = this;\n\n if (source === void 0) {\n source = \"api\";\n }\n\n this.columnAnimationService.start();\n var impactedGroups = [];\n stateItems.forEach(function (stateItem) {\n var groupKey = stateItem.groupId;\n var newValue = stateItem.open;\n\n var providedColumnGroup = _this.getProvidedColumnGroup(groupKey);\n\n if (!providedColumnGroup) {\n return;\n }\n\n if (providedColumnGroup.isExpanded() === newValue) {\n return;\n }\n\n _this.logger.log('columnGroupOpened(' + providedColumnGroup.getGroupId() + ',' + newValue + ')');\n\n providedColumnGroup.setExpanded(newValue);\n impactedGroups.push(providedColumnGroup);\n });\n this.updateGroupsAndDisplayedColumns(source);\n this.setFirstRightAndLastLeftPinned(source);\n impactedGroups.forEach(function (providedColumnGroup) {\n var event = {\n type: Events.EVENT_COLUMN_GROUP_OPENED,\n columnGroup: providedColumnGroup\n };\n\n _this.eventService.dispatchEvent(event);\n });\n this.columnAnimationService.finish();\n }; // called by headerRenderer - when a header is opened or closed\n\n\n ColumnModel.prototype.setColumnGroupOpened = function (key, newValue, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n var keyAsString;\n\n if (key instanceof ProvidedColumnGroup) {\n keyAsString = key.getId();\n } else {\n keyAsString = key || '';\n }\n\n this.setColumnGroupState([{\n groupId: keyAsString,\n open: newValue\n }], source);\n };\n\n ColumnModel.prototype.getProvidedColumnGroup = function (key) {\n // if (key instanceof ProvidedColumnGroup) { return key; }\n if (typeof key !== 'string') {\n console.error('AG Grid: group key must be a string');\n } // otherwise, search for the column group by id\n\n\n var res = null;\n this.columnUtils.depthFirstOriginalTreeSearch(null, this.gridBalancedTree, function (node) {\n if (node instanceof ProvidedColumnGroup) {\n if (node.getId() === key) {\n res = node;\n }\n }\n });\n return res;\n };\n\n ColumnModel.prototype.calculateColumnsForDisplay = function () {\n var _this = this;\n\n var columnsForDisplay;\n\n if (this.pivotMode && missing(this.secondaryColumns)) {\n // pivot mode is on, but we are not pivoting, so we only\n // show columns we are aggregating on\n columnsForDisplay = this.gridColumns.filter(function (column) {\n var isAutoGroupCol = _this.groupAutoColumns && includes(_this.groupAutoColumns, column);\n var isValueCol = _this.valueColumns && includes(_this.valueColumns, column);\n return isAutoGroupCol || isValueCol;\n });\n } else {\n // otherwise continue as normal. this can be working on the primary\n // or secondary columns, whatever the gridColumns are set to\n columnsForDisplay = this.gridColumns.filter(function (column) {\n // keep col if a) it's auto-group or b) it's visible\n var isAutoGroupCol = _this.groupAutoColumns && includes(_this.groupAutoColumns, column);\n return isAutoGroupCol || column.isVisible();\n });\n }\n\n return columnsForDisplay;\n };\n\n ColumnModel.prototype.checkColSpanActiveInCols = function (columns) {\n var result = false;\n columns.forEach(function (col) {\n if (exists(col.getColDef().colSpan)) {\n result = true;\n }\n });\n return result;\n };\n\n ColumnModel.prototype.calculateColumnsForGroupDisplay = function () {\n var _this = this;\n\n this.groupDisplayColumns = [];\n this.groupDisplayColumnsMap = {};\n\n var checkFunc = function checkFunc(col) {\n var colDef = col.getColDef();\n var underlyingColumn = colDef.showRowGroup;\n\n if (colDef && exists(underlyingColumn)) {\n _this.groupDisplayColumns.push(col);\n\n if (typeof underlyingColumn === 'string') {\n _this.groupDisplayColumnsMap[underlyingColumn] = col;\n } else if (underlyingColumn === true) {\n _this.getRowGroupColumns().forEach(function (rowGroupCol) {\n _this.groupDisplayColumnsMap[rowGroupCol.getId()] = col;\n });\n }\n }\n };\n\n this.gridColumns.forEach(checkFunc);\n\n if (this.groupAutoColumns) {\n this.groupAutoColumns.forEach(checkFunc);\n }\n };\n\n ColumnModel.prototype.getGroupDisplayColumns = function () {\n return this.groupDisplayColumns;\n };\n\n ColumnModel.prototype.getGroupDisplayColumnForGroup = function (rowGroupColumnId) {\n return this.groupDisplayColumnsMap[rowGroupColumnId];\n };\n\n ColumnModel.prototype.updateDisplayedColumns = function (source) {\n var columnsForDisplay = this.calculateColumnsForDisplay();\n this.buildDisplayedTrees(columnsForDisplay);\n this.calculateColumnsForGroupDisplay(); // also called when group opened/closed\n\n this.updateGroupsAndDisplayedColumns(source); // also called when group opened/closed\n\n this.setFirstRightAndLastLeftPinned(source);\n };\n\n ColumnModel.prototype.isSecondaryColumnsPresent = function () {\n return exists(this.secondaryColumns);\n };\n\n ColumnModel.prototype.setSecondaryColumns = function (colDefs, source) {\n var _this = this;\n\n if (source === void 0) {\n source = \"api\";\n }\n\n var newColsPresent = colDefs && colDefs.length > 0; // if not cols passed, and we had no cols anyway, then do nothing\n\n if (!newColsPresent && missing(this.secondaryColumns)) {\n return;\n }\n\n if (newColsPresent) {\n this.processSecondaryColumnDefinitions(colDefs);\n var balancedTreeResult = this.columnFactory.createColumnTree(colDefs, false, this.secondaryBalancedTree || this.previousSecondaryColumns || undefined);\n this.secondaryBalancedTree = balancedTreeResult.columnTree;\n this.secondaryHeaderRowCount = balancedTreeResult.treeDept + 1;\n this.secondaryColumns = this.getColumnsFromTree(this.secondaryBalancedTree);\n this.secondaryColumnsMap = {};\n this.secondaryColumns.forEach(function (col) {\n return _this.secondaryColumnsMap[col.getId()] = col;\n });\n this.previousSecondaryColumns = null;\n } else {\n this.previousSecondaryColumns = this.secondaryBalancedTree;\n this.secondaryBalancedTree = null;\n this.secondaryHeaderRowCount = -1;\n this.secondaryColumns = null;\n this.secondaryColumnsMap = {};\n }\n\n this.updateGridColumns();\n this.updateDisplayedColumns(source);\n };\n\n ColumnModel.prototype.processSecondaryColumnDefinitions = function (colDefs) {\n var columnCallback = this.gridOptionsWrapper.getProcessPivotResultColDefFunc();\n var groupCallback = this.gridOptionsWrapper.getProcessPivotResultColGroupDefFunc();\n\n if (!columnCallback && !groupCallback) {\n return undefined;\n }\n\n var searchForColDefs = function searchForColDefs(colDefs2) {\n colDefs2.forEach(function (abstractColDef) {\n var isGroup = exists(abstractColDef.children);\n\n if (isGroup) {\n var colGroupDef = abstractColDef;\n\n if (groupCallback) {\n groupCallback(colGroupDef);\n }\n\n searchForColDefs(colGroupDef.children);\n } else {\n var colDef = abstractColDef;\n\n if (columnCallback) {\n columnCallback(colDef);\n }\n }\n });\n };\n\n if (colDefs) {\n searchForColDefs(colDefs);\n }\n }; // called from: setColumnState, setColumnDefs, setSecondaryColumns\n\n\n ColumnModel.prototype.updateGridColumns = function () {\n var _this = this;\n\n var prevGridCols = this.gridBalancedTree;\n\n if (this.gridColsArePrimary) {\n this.lastPrimaryOrder = this.gridColumns;\n } else {\n this.lastSecondaryOrder = this.gridColumns;\n }\n\n if (this.secondaryColumns && this.secondaryBalancedTree) {\n var hasSameColumns = this.secondaryColumns.every(function (col) {\n return _this.gridColumnsMap[col.getColId()] !== undefined;\n });\n this.gridBalancedTree = this.secondaryBalancedTree.slice();\n this.gridHeaderRowCount = this.secondaryHeaderRowCount;\n this.gridColumns = this.secondaryColumns.slice();\n this.gridColsArePrimary = false; // If the current columns are the same or a subset of the previous\n // we keep the previous order, otherwise we go back to the order the pivot\n // cols are generated in\n\n if (hasSameColumns) {\n this.orderGridColsLike(this.lastSecondaryOrder);\n }\n } else if (this.primaryColumns) {\n this.gridBalancedTree = this.primaryColumnTree.slice();\n this.gridHeaderRowCount = this.primaryHeaderRowCount;\n this.gridColumns = this.primaryColumns.slice();\n this.gridColsArePrimary = true; // updateGridColumns gets called after user adds a row group. we want to maintain the order of the columns\n // when this happens (eg if user moved a column) rather than revert back to the original column order.\n // likewise if changing in/out of pivot mode, we want to maintain the order of the cols\n\n this.orderGridColsLike(this.lastPrimaryOrder);\n }\n\n this.addAutoGroupToGridColumns();\n this.gridColumns = this.placeLockedColumns(this.gridColumns);\n this.setupQuickFilterColumns();\n this.clearDisplayedAndViewportColumns();\n this.colSpanActive = this.checkColSpanActiveInCols(this.gridColumns);\n this.gridColumnsMap = {};\n this.gridColumns.forEach(function (col) {\n return _this.gridColumnsMap[col.getId()] = col;\n });\n this.setAutoHeightActive();\n\n if (!areEqual(prevGridCols, this.gridBalancedTree)) {\n var event_4 = {\n type: Events.EVENT_GRID_COLUMNS_CHANGED\n };\n this.eventService.dispatchEvent(event_4);\n }\n };\n\n ColumnModel.prototype.setAutoHeightActive = function () {\n this.autoHeightActive = this.gridColumns.filter(function (col) {\n return col.isAutoHeight();\n }).length > 0;\n\n if (this.autoHeightActive) {\n this.autoHeightActiveAtLeastOnce = true;\n var rowModelType = this.rowModel.getType();\n var supportedRowModel = rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE || rowModelType === Constants.ROW_MODEL_TYPE_SERVER_SIDE;\n\n if (!supportedRowModel) {\n var message_1 = 'AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.';\n doOnce(function () {\n return console.warn(message_1);\n }, 'autoHeightActive.wrongRowModel');\n }\n }\n };\n\n ColumnModel.prototype.orderGridColsLike = function (colsOrder) {\n if (missing(colsOrder)) {\n return;\n }\n\n var lastOrderMapped = convertToMap(colsOrder.map(function (col, index) {\n return [col, index];\n })); // only do the sort if at least one column is accounted for. columns will be not accounted for\n // if changing from secondary to primary columns\n\n var noColsFound = true;\n this.gridColumns.forEach(function (col) {\n if (lastOrderMapped.has(col)) {\n noColsFound = false;\n }\n });\n\n if (noColsFound) {\n return;\n } // order cols in the same order as before. we need to make sure that all\n // cols still exists, so filter out any that no longer exist.\n\n\n var gridColsMap = convertToMap(this.gridColumns.map(function (col) {\n return [col, true];\n }));\n var oldColsOrdered = colsOrder.filter(function (col) {\n return gridColsMap.has(col);\n });\n var oldColsMap = convertToMap(oldColsOrdered.map(function (col) {\n return [col, true];\n }));\n var newColsOrdered = this.gridColumns.filter(function (col) {\n return !oldColsMap.has(col);\n }); // add in the new columns, at the end (if no group), or at the end of the group (if a group)\n\n var newGridColumns = oldColsOrdered.slice();\n newColsOrdered.forEach(function (newCol) {\n var parent = newCol.getOriginalParent(); // if no parent, means we are not grouping, so just add the column to the end\n\n if (!parent) {\n newGridColumns.push(newCol);\n return;\n } // find the group the column belongs to. if no siblings at the current level (eg col in group on it's\n // own) then go up one level and look for siblings there.\n\n\n var siblings = [];\n\n while (!siblings.length && parent) {\n var leafCols = parent.getLeafColumns();\n leafCols.forEach(function (leafCol) {\n var presentInNewGriColumns = newGridColumns.indexOf(leafCol) >= 0;\n var noYetInSiblings = siblings.indexOf(leafCol) < 0;\n\n if (presentInNewGriColumns && noYetInSiblings) {\n siblings.push(leafCol);\n }\n });\n parent = parent.getOriginalParent();\n } // if no siblings exist at any level, this means the col is in a group (or parent groups) on it's own\n\n\n if (!siblings.length) {\n newGridColumns.push(newCol);\n return;\n } // find index of last column in the group\n\n\n var indexes = siblings.map(function (col) {\n return newGridColumns.indexOf(col);\n });\n var lastIndex = Math.max.apply(Math, __spread$e(indexes));\n insertIntoArray(newGridColumns, newCol, lastIndex + 1);\n });\n this.gridColumns = newGridColumns;\n };\n\n ColumnModel.prototype.isPrimaryColumnGroupsPresent = function () {\n return this.primaryHeaderRowCount > 1;\n }; // if we are using autoGroupCols, then they should be included for quick filter. this covers the\n // following scenarios:\n // a) user provides 'field' into autoGroupCol of normal grid, so now because a valid col to filter leafs on\n // b) using tree data and user depends on autoGroupCol for first col, and we also want to filter on this\n // (tree data is a bit different, as parent rows can be filtered on, unlike row grouping)\n\n\n ColumnModel.prototype.setupQuickFilterColumns = function () {\n if (this.groupAutoColumns) {\n this.columnsForQuickFilter = (this.primaryColumns || []).concat(this.groupAutoColumns);\n } else if (this.primaryColumns) {\n this.columnsForQuickFilter = this.primaryColumns;\n }\n };\n\n ColumnModel.prototype.placeLockedColumns = function (cols) {\n var left = [];\n var normal = [];\n var right = [];\n cols.forEach(function (col) {\n var position = col.getColDef().lockPosition;\n\n if (position === 'right') {\n right.push(col);\n } else if (position === 'left' || position === true) {\n left.push(col);\n } else {\n normal.push(col);\n }\n });\n return __spread$e(left, normal, right);\n };\n\n ColumnModel.prototype.addAutoGroupToGridColumns = function () {\n // add in auto-group here\n this.createGroupAutoColumnsIfNeeded();\n\n if (missing(this.groupAutoColumns)) {\n return;\n }\n\n this.gridColumns = this.groupAutoColumns ? this.groupAutoColumns.concat(this.gridColumns) : this.gridColumns;\n var autoColBalancedTree = this.columnFactory.createForAutoGroups(this.groupAutoColumns, this.gridBalancedTree);\n this.gridBalancedTree = autoColBalancedTree.concat(this.gridBalancedTree);\n }; // gets called after we copy down grid columns, to make sure any part of the gui\n // that tries to draw, eg the header, it will get empty lists of columns rather\n // than stale columns. for example, the header will received gridColumnsChanged\n // event, so will try and draw, but it will draw successfully when it acts on the\n // virtualColumnsChanged event\n\n\n ColumnModel.prototype.clearDisplayedAndViewportColumns = function () {\n this.displayedTreeLeft = [];\n this.displayedTreeRight = [];\n this.displayedTreeCentre = [];\n this.viewportRowLeft = {};\n this.viewportRowRight = {};\n this.viewportRowCenter = {};\n this.displayedColumnsLeft = [];\n this.displayedColumnsRight = [];\n this.displayedColumnsCenter = [];\n this.displayedColumns = [];\n this.viewportColumns = [];\n this.headerViewportColumns = [];\n };\n\n ColumnModel.prototype.updateGroupsAndDisplayedColumns = function (source) {\n this.updateOpenClosedVisibilityInColumnGroups();\n this.deriveDisplayedColumns(source);\n this.refreshFlexedColumns();\n this.extractViewport();\n this.updateBodyWidths(); // this event is picked up by the gui, headerRenderer and rowRenderer, to recalculate what columns to display\n\n var event = {\n type: Events.EVENT_DISPLAYED_COLUMNS_CHANGED\n };\n this.eventService.dispatchEvent(event);\n };\n\n ColumnModel.prototype.deriveDisplayedColumns = function (source) {\n this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft, this.displayedColumnsLeft);\n this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre, this.displayedColumnsCenter);\n this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight, this.displayedColumnsRight);\n this.joinDisplayedColumns();\n this.setLeftValues(source);\n this.displayedAutoHeightCols = this.displayedColumns.filter(function (col) {\n return col.isAutoHeight();\n });\n };\n\n ColumnModel.prototype.isAutoRowHeightActive = function () {\n return this.autoHeightActive;\n };\n\n ColumnModel.prototype.wasAutoRowHeightEverActive = function () {\n return this.autoHeightActiveAtLeastOnce;\n };\n\n ColumnModel.prototype.joinDisplayedColumns = function () {\n if (this.gridOptionsWrapper.isEnableRtl()) {\n this.displayedColumns = this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft);\n } else {\n this.displayedColumns = this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight);\n }\n }; // sets the left pixel position of each column\n\n\n ColumnModel.prototype.setLeftValues = function (source) {\n this.setLeftValuesOfColumns(source);\n this.setLeftValuesOfGroups();\n };\n\n ColumnModel.prototype.setLeftValuesOfColumns = function (source) {\n var _this = this;\n\n if (!this.primaryColumns) {\n return;\n } // go through each list of displayed columns\n\n\n var allColumns = this.primaryColumns.slice(0); // let totalColumnWidth = this.getWidthOfColsInList()\n\n var doingRtl = this.gridOptionsWrapper.isEnableRtl();\n [this.displayedColumnsLeft, this.displayedColumnsRight, this.displayedColumnsCenter].forEach(function (columns) {\n if (doingRtl) {\n // when doing RTL, we start at the top most pixel (ie RHS) and work backwards\n var left_1 = _this.getWidthOfColsInList(columns);\n\n columns.forEach(function (column) {\n left_1 -= column.getActualWidth();\n column.setLeft(left_1, source);\n });\n } else {\n // otherwise normal LTR, we start at zero\n var left_2 = 0;\n columns.forEach(function (column) {\n column.setLeft(left_2, source);\n left_2 += column.getActualWidth();\n });\n }\n\n removeAllFromArray(allColumns, columns);\n }); // items left in allColumns are columns not displayed, so remove the left position. this is\n // important for the rows, as if a col is made visible, then taken out, then made visible again,\n // we don't want the animation of the cell floating in from the old position, whatever that was.\n\n allColumns.forEach(function (column) {\n column.setLeft(null, source);\n });\n };\n\n ColumnModel.prototype.setLeftValuesOfGroups = function () {\n // a groups left value is the lest left value of it's children\n [this.displayedTreeLeft, this.displayedTreeRight, this.displayedTreeCentre].forEach(function (columns) {\n columns.forEach(function (column) {\n if (column instanceof ColumnGroup) {\n var columnGroup = column;\n columnGroup.checkLeft();\n }\n });\n });\n };\n\n ColumnModel.prototype.derivedDisplayedColumnsFromDisplayedTree = function (tree, columns) {\n columns.length = 0;\n this.columnUtils.depthFirstDisplayedColumnTreeSearch(tree, function (child) {\n if (child instanceof Column) {\n columns.push(child);\n }\n });\n };\n\n ColumnModel.prototype.extractViewportColumns = function () {\n if (this.suppressColumnVirtualisation) {\n // no virtualisation, so don't filter\n this.viewportColumnsCenter = this.displayedColumnsCenter;\n this.headerViewportColumnsCenter = this.displayedColumnsCenter;\n } else {\n // filter out what should be visible\n this.viewportColumnsCenter = this.displayedColumnsCenter.filter(this.isColumnInRowViewport.bind(this));\n this.headerViewportColumnsCenter = this.displayedColumnsCenter.filter(this.isColumnInHeaderViewport.bind(this));\n }\n\n this.viewportColumns = this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight);\n this.headerViewportColumns = this.headerViewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight);\n };\n\n ColumnModel.prototype.getVirtualHeaderGroupRow = function (type, dept) {\n var result;\n\n switch (type) {\n case Constants.PINNED_LEFT:\n result = this.viewportRowLeft[dept];\n break;\n\n case Constants.PINNED_RIGHT:\n result = this.viewportRowRight[dept];\n break;\n\n default:\n result = this.viewportRowCenter[dept];\n break;\n }\n\n if (missing(result)) {\n result = [];\n }\n\n return result;\n };\n\n ColumnModel.prototype.calculateHeaderRows = function () {\n // go through each group, see if any of it's cols are displayed, and if yes,\n // then this group is included\n this.viewportRowLeft = {};\n this.viewportRowRight = {};\n this.viewportRowCenter = {}; // for easy lookup when building the groups.\n\n var virtualColIds = {};\n this.headerViewportColumns.forEach(function (col) {\n return virtualColIds[col.getId()] = true;\n });\n\n var testGroup = function testGroup(children, result, dept) {\n var returnValue = false;\n\n for (var i = 0; i < children.length; i++) {\n // see if this item is within viewport\n var child = children[i];\n var addThisItem = false;\n\n if (child instanceof Column) {\n // for column, test if column is included\n addThisItem = virtualColIds[child.getId()] === true;\n } else {\n // if group, base decision on children\n var columnGroup = child;\n var displayedChildren = columnGroup.getDisplayedChildren();\n\n if (displayedChildren) {\n addThisItem = testGroup(displayedChildren, result, dept + 1);\n }\n }\n\n if (addThisItem) {\n returnValue = true;\n\n if (!result[dept]) {\n result[dept] = [];\n }\n\n result[dept].push(child);\n }\n }\n\n return returnValue;\n };\n\n testGroup(this.displayedTreeLeft, this.viewportRowLeft, 0);\n testGroup(this.displayedTreeRight, this.viewportRowRight, 0);\n testGroup(this.displayedTreeCentre, this.viewportRowCenter, 0);\n };\n\n ColumnModel.prototype.extractViewport = function () {\n var hashBefore = this.viewportColumns.map(function (column) {\n return column.getId();\n }).join('#');\n this.extractViewportColumns();\n var hashAfter = this.viewportColumns.map(function (column) {\n return column.getId();\n }).join('#');\n var changed = hashBefore !== hashAfter;\n\n if (changed) {\n this.calculateHeaderRows();\n }\n\n return changed;\n };\n\n ColumnModel.prototype.refreshFlexedColumns = function (params) {\n var _this = this;\n\n if (params === void 0) {\n params = {};\n }\n\n var source = params.source ? params.source : 'flex';\n\n if (params.viewportWidth != null) {\n this.flexViewportWidth = params.viewportWidth;\n }\n\n if (!this.flexViewportWidth) {\n return [];\n } // If the grid has left-over space, divide it between flexing columns in proportion to their flex value.\n // A \"flexing column\" is one that has a 'flex' value set and is not currently being constrained by its\n // minWidth or maxWidth rules.\n\n\n var flexAfterDisplayIndex = -1;\n\n if (params.resizingCols) {\n params.resizingCols.forEach(function (col) {\n var indexOfCol = _this.displayedColumnsCenter.indexOf(col);\n\n if (flexAfterDisplayIndex < indexOfCol) {\n flexAfterDisplayIndex = indexOfCol;\n }\n });\n }\n\n var isColFlex = function isColFlex(col) {\n var afterResizingCols = _this.displayedColumnsCenter.indexOf(col) > flexAfterDisplayIndex;\n return col.getFlex() && afterResizingCols;\n };\n\n var knownWidthColumns = this.displayedColumnsCenter.filter(function (col) {\n return !isColFlex(col);\n });\n var flexingColumns = this.displayedColumnsCenter.filter(function (col) {\n return isColFlex(col);\n });\n var changedColumns = [];\n\n if (!flexingColumns.length) {\n return [];\n }\n\n var flexingColumnSizes = [];\n var spaceForFlexingColumns;\n\n outer: while (true) {\n var totalFlex = flexingColumns.reduce(function (count, col) {\n return count + col.getFlex();\n }, 0);\n spaceForFlexingColumns = this.flexViewportWidth - this.getWidthOfColsInList(knownWidthColumns);\n\n for (var i = 0; i < flexingColumns.length; i++) {\n var col = flexingColumns[i];\n var widthByFlexRule = spaceForFlexingColumns * col.getFlex() / totalFlex;\n var constrainedWidth = 0;\n var minWidth = col.getMinWidth();\n var maxWidth = col.getMaxWidth();\n\n if (exists(minWidth) && widthByFlexRule < minWidth) {\n constrainedWidth = minWidth;\n } else if (exists(maxWidth) && widthByFlexRule > maxWidth) {\n constrainedWidth = maxWidth;\n }\n\n if (constrainedWidth) {\n // This column is not in fact flexing as it is being constrained to a specific size\n // so remove it from the list of flexing columns and start again\n col.setActualWidth(constrainedWidth, source);\n removeFromArray(flexingColumns, col);\n changedColumns.push(col);\n knownWidthColumns.push(col);\n continue outer;\n }\n\n flexingColumnSizes[i] = Math.round(widthByFlexRule);\n }\n\n break;\n }\n\n var remainingSpace = spaceForFlexingColumns;\n flexingColumns.forEach(function (col, i) {\n col.setActualWidth(Math.min(flexingColumnSizes[i], remainingSpace), source);\n changedColumns.push(col);\n remainingSpace -= flexingColumnSizes[i];\n });\n\n if (!params.skipSetLeft) {\n this.setLeftValues(source);\n }\n\n if (params.updateBodyWidths) {\n this.updateBodyWidths();\n }\n\n if (params.fireResizedEvent) {\n this.fireColumnResizedEvent(changedColumns, true, source, flexingColumns);\n } // if the user sets rowData directly into GridOptions, then the row data is set before\n // grid is attached to the DOM. this means the columns are not flexed, and then the rows\n // have the wrong height (as they depend on column widths). so once the columns have\n // been flexed for the first time (only happens once grid is attached to DOM, as dependency\n // on getting the grid width, which only happens after attached after ResizeObserver fires)\n // we get get rows to re-calc their heights.\n\n\n if (!this.flexColsCalculatedAtLestOnce) {\n if (this.gridOptionsWrapper.isRowModelDefault()) {\n this.rowModel.resetRowHeights();\n }\n\n this.flexColsCalculatedAtLestOnce = true;\n }\n\n return flexingColumns;\n }; // called from api\n\n\n ColumnModel.prototype.sizeColumnsToFit = function (gridWidth, source, silent, params) {\n if (source === void 0) {\n source = \"sizeColumnsToFit\";\n }\n\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;\n\n var limitsMap = {};\n\n if (params) {\n (_b = (_a = params) === null || _a === void 0 ? void 0 : _a.columnLimits) === null || _b === void 0 ? void 0 : _b.forEach(function (_a) {\n var key = _a.key,\n dimensions = __rest(_a, [\"key\"]);\n\n limitsMap[typeof key === 'string' ? key : key.getColId()] = dimensions;\n });\n } // avoid divide by zero\n\n\n var allDisplayedColumns = this.getAllDisplayedColumns();\n var doColumnsAlreadyFit = gridWidth === this.getWidthOfColsInList(allDisplayedColumns);\n\n if (gridWidth <= 0 || !allDisplayedColumns.length || doColumnsAlreadyFit) {\n return;\n }\n\n var colsToSpread = [];\n var colsToNotSpread = [];\n allDisplayedColumns.forEach(function (column) {\n if (column.getColDef().suppressSizeToFit === true) {\n colsToNotSpread.push(column);\n } else {\n colsToSpread.push(column);\n }\n }); // make a copy of the cols that are going to be resized\n\n var colsToFireEventFor = colsToSpread.slice(0);\n var finishedResizing = false;\n\n var moveToNotSpread = function moveToNotSpread(column) {\n removeFromArray(colsToSpread, column);\n colsToNotSpread.push(column);\n }; // resetting cols to their original width makes the sizeColumnsToFit more deterministic,\n // rather than depending on the current size of the columns. most users call sizeColumnsToFit\n // immediately after grid is created, so will make no difference. however if application is calling\n // sizeColumnsToFit repeatedly (eg after column group is opened / closed repeatedly) we don't want\n // the columns to start shrinking / growing over time.\n //\n // NOTE: the process below will assign values to `this.actualWidth` of each column without firing events\n // for this reason we need to manually fire resize events after the resize has been done for each column.\n\n\n colsToSpread.forEach(function (column) {\n return column.resetActualWidth(source);\n });\n\n while (!finishedResizing) {\n finishedResizing = true;\n var availablePixels = gridWidth - this.getWidthOfColsInList(colsToNotSpread);\n\n if (availablePixels <= 0) {\n // no width, set everything to minimum\n colsToSpread.forEach(function (column) {\n var _a, _b, _c, _d;\n\n var widthOverride = (_c = (_b = (_a = limitsMap) === null || _a === void 0 ? void 0 : _a[column.getId()]) === null || _b === void 0 ? void 0 : _b.minWidth, _c !== null && _c !== void 0 ? _c : (_d = params) === null || _d === void 0 ? void 0 : _d.defaultMinWidth);\n\n if (typeof widthOverride === 'number') {\n column.setActualWidth(widthOverride);\n return;\n }\n\n column.setMinimum(source);\n });\n } else {\n var scale = availablePixels / this.getWidthOfColsInList(colsToSpread); // we set the pixels for the last col based on what's left, as otherwise\n // we could be a pixel or two short or extra because of rounding errors.\n\n var pixelsForLastCol = availablePixels; // backwards through loop, as we are removing items as we go\n\n for (var i = colsToSpread.length - 1; i >= 0; i--) {\n var column = colsToSpread[i];\n var widthOverride = (_c = limitsMap) === null || _c === void 0 ? void 0 : _c[column.getId()];\n var minOverride = (_e = (_d = widthOverride) === null || _d === void 0 ? void 0 : _d.minWidth, _e !== null && _e !== void 0 ? _e : (_f = params) === null || _f === void 0 ? void 0 : _f.defaultMinWidth);\n var maxOverride = (_h = (_g = widthOverride) === null || _g === void 0 ? void 0 : _g.maxWidth, _h !== null && _h !== void 0 ? _h : (_j = params) === null || _j === void 0 ? void 0 : _j.defaultMaxWidth);\n var colMinWidth = (_k = column.getMinWidth(), _k !== null && _k !== void 0 ? _k : 0);\n var colMaxWidth = (_l = column.getMaxWidth(), _l !== null && _l !== void 0 ? _l : Number.MAX_VALUE);\n var minWidth = typeof minOverride === 'number' && minOverride > colMinWidth ? minOverride : column.getMinWidth();\n var maxWidth = typeof maxOverride === 'number' && maxOverride < colMaxWidth ? maxOverride : column.getMaxWidth();\n var newWidth = Math.round(column.getActualWidth() * scale);\n\n if (exists(minWidth) && newWidth < minWidth) {\n newWidth = minWidth;\n moveToNotSpread(column);\n finishedResizing = false;\n } else if (exists(maxWidth) && newWidth > maxWidth) {\n newWidth = maxWidth;\n moveToNotSpread(column);\n finishedResizing = false;\n } else if (i === 0) {\n // if this is the last column\n newWidth = pixelsForLastCol;\n }\n\n column.setActualWidth(newWidth, source, true);\n pixelsForLastCol -= newWidth;\n }\n }\n } // see notes above\n\n\n colsToFireEventFor.forEach(function (col) {\n col.fireColumnWidthChangedEvent(source);\n });\n this.setLeftValues(source);\n this.updateBodyWidths();\n\n if (silent) {\n return;\n }\n\n this.fireColumnResizedEvent(colsToFireEventFor, true, source);\n };\n\n ColumnModel.prototype.buildDisplayedTrees = function (visibleColumns) {\n var leftVisibleColumns = [];\n var rightVisibleColumns = [];\n var centerVisibleColumns = [];\n visibleColumns.forEach(function (column) {\n switch (column.getPinned()) {\n case \"left\":\n leftVisibleColumns.push(column);\n break;\n\n case \"right\":\n rightVisibleColumns.push(column);\n break;\n\n default:\n centerVisibleColumns.push(column);\n break;\n }\n });\n var groupInstanceIdCreator = new GroupInstanceIdCreator();\n this.displayedTreeLeft = this.displayedGroupCreator.createDisplayedGroups(leftVisibleColumns, this.gridBalancedTree, groupInstanceIdCreator, Constants.PINNED_LEFT, this.displayedTreeLeft);\n this.displayedTreeRight = this.displayedGroupCreator.createDisplayedGroups(rightVisibleColumns, this.gridBalancedTree, groupInstanceIdCreator, Constants.PINNED_RIGHT, this.displayedTreeRight);\n this.displayedTreeCentre = this.displayedGroupCreator.createDisplayedGroups(centerVisibleColumns, this.gridBalancedTree, groupInstanceIdCreator, null, this.displayedTreeCentre);\n this.updateDisplayedMap();\n };\n\n ColumnModel.prototype.updateDisplayedMap = function () {\n var _this = this;\n\n this.displayedColumnsAndGroupsMap = {};\n\n var func = function func(child) {\n _this.displayedColumnsAndGroupsMap[child.getUniqueId()] = child;\n };\n\n this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre, func);\n this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft, func);\n this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight, func);\n };\n\n ColumnModel.prototype.isDisplayed = function (item) {\n var fromMap = this.displayedColumnsAndGroupsMap[item.getUniqueId()]; // check for reference, in case new column / group with same id is now present\n\n return fromMap === item;\n };\n\n ColumnModel.prototype.updateOpenClosedVisibilityInColumnGroups = function () {\n var allColumnGroups = this.getAllDisplayedTrees();\n this.columnUtils.depthFirstAllColumnTreeSearch(allColumnGroups, function (child) {\n if (child instanceof ColumnGroup) {\n var columnGroup = child;\n columnGroup.calculateDisplayedColumns();\n }\n });\n };\n\n ColumnModel.prototype.getGroupAutoColumns = function () {\n return this.groupAutoColumns;\n };\n\n ColumnModel.prototype.createGroupAutoColumnsIfNeeded = function () {\n if (!this.autoGroupsNeedBuilding) {\n return;\n }\n\n this.autoGroupsNeedBuilding = false;\n var groupFullWidthRow = this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode); // we need to allow suppressing auto-column separately for group and pivot as the normal situation\n // is CSRM and user provides group column themselves for normal view, but when they go into pivot the\n // columns are generated by the grid so no opportunity for user to provide group column. so need a way\n // to suppress auto-col for grouping only, and not pivot.\n // however if using Viewport RM or SSRM and user is providing the columns, the user may wish full control\n // of the group column in this instance.\n\n var suppressAutoColumn = this.pivotMode ? this.gridOptionsWrapper.isPivotSuppressAutoColumn() : this.gridOptionsWrapper.isGroupSuppressAutoColumn();\n var groupingActive = this.rowGroupColumns.length > 0 || this.usingTreeData;\n var needAutoColumns = groupingActive && !suppressAutoColumn && !groupFullWidthRow;\n\n if (needAutoColumns) {\n var existingCols = this.groupAutoColumns || [];\n var newAutoGroupCols = this.autoGroupColService.createAutoGroupColumns(existingCols, this.rowGroupColumns);\n var autoColsDifferent = !this.autoColsEqual(newAutoGroupCols, this.groupAutoColumns); // we force recreate when suppressColumnStateEvents changes, so new group cols pick up the new\n // definitions. otherwise we could ignore the new cols because they appear to be the same.\n\n if (autoColsDifferent || this.forceRecreateAutoGroups) {\n this.groupAutoColumns = newAutoGroupCols;\n }\n } else {\n this.groupAutoColumns = null;\n }\n };\n\n ColumnModel.prototype.autoColsEqual = function (colsA, colsB) {\n return areEqual(colsA, colsB, function (a, b) {\n return a.getColId() === b.getColId();\n });\n };\n\n ColumnModel.prototype.getWidthOfColsInList = function (columnList) {\n return columnList.reduce(function (width, col) {\n return width + col.getActualWidth();\n }, 0);\n };\n\n ColumnModel.prototype.getGridBalancedTree = function () {\n return this.gridBalancedTree;\n };\n\n ColumnModel.prototype.hasFloatingFilters = function () {\n if (!this.gridColumns) {\n return false;\n }\n\n var res = this.gridColumns.some(function (col) {\n return col.getColDef().floatingFilter;\n });\n return res;\n };\n\n ColumnModel.prototype.getFirstDisplayedColumn = function () {\n var isRtl = this.gridOptionsWrapper.isEnableRtl();\n var queryOrder = ['getDisplayedLeftColumns', 'getDisplayedCenterColumns', 'getDisplayedRightColumns'];\n\n if (isRtl) {\n queryOrder.reverse();\n }\n\n for (var i = 0; i < queryOrder.length; i++) {\n var container = this[queryOrder[i]]();\n\n if (container.length) {\n return isRtl ? last(container) : container[0];\n }\n }\n\n return null;\n };\n\n ColumnModel.prototype.setColumnHeaderHeight = function (col, height) {\n var changed = col.setAutoHeaderHeight(height);\n\n if (changed) {\n var event_5 = {\n type: Events.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,\n column: col,\n columns: [col],\n source: 'autosizeColumnHeaderHeight'\n };\n this.eventService.dispatchEvent(event_5);\n }\n };\n\n ColumnModel.prototype.getColumnGroupHeaderRowHeight = function () {\n if (this.isPivotMode()) {\n return this.gridOptionsWrapper.getPivotGroupHeaderHeight();\n } else {\n return this.gridOptionsWrapper.getGroupHeaderHeight();\n }\n };\n\n ColumnModel.prototype.getColumnHeaderRowHeight = function () {\n var defaultHeight = this.isPivotMode() ? this.gridOptionsWrapper.getPivotHeaderHeight() : this.gridOptionsWrapper.getHeaderHeight();\n var displayedHeights = this.getAllDisplayedColumns().filter(function (col) {\n return col.isAutoHeaderHeight();\n }).map(function (col) {\n return col.getAutoHeaderHeight() || 0;\n });\n return Math.max.apply(Math, __spread$e([defaultHeight], displayedHeights));\n };\n\n __decorate$2u([Autowired('expressionService')], ColumnModel.prototype, \"expressionService\", void 0);\n\n __decorate$2u([Autowired('columnFactory')], ColumnModel.prototype, \"columnFactory\", void 0);\n\n __decorate$2u([Autowired('displayedGroupCreator')], ColumnModel.prototype, \"displayedGroupCreator\", void 0);\n\n __decorate$2u([Autowired('ctrlsService')], ColumnModel.prototype, \"ctrlsService\", void 0);\n\n __decorate$2u([Autowired('autoWidthCalculator')], ColumnModel.prototype, \"autoWidthCalculator\", void 0);\n\n __decorate$2u([Autowired('columnUtils')], ColumnModel.prototype, \"columnUtils\", void 0);\n\n __decorate$2u([Autowired('columnAnimationService')], ColumnModel.prototype, \"columnAnimationService\", void 0);\n\n __decorate$2u([Autowired('autoGroupColService')], ColumnModel.prototype, \"autoGroupColService\", void 0);\n\n __decorate$2u([Optional('aggFuncService')], ColumnModel.prototype, \"aggFuncService\", void 0);\n\n __decorate$2u([Optional('valueCache')], ColumnModel.prototype, \"valueCache\", void 0);\n\n __decorate$2u([Optional('animationFrameService')], ColumnModel.prototype, \"animationFrameService\", void 0);\n\n __decorate$2u([Autowired('rowModel')], ColumnModel.prototype, \"rowModel\", void 0);\n\n __decorate$2u([Autowired('sortController')], ColumnModel.prototype, \"sortController\", void 0);\n\n __decorate$2u([Autowired('columnDefFactory')], ColumnModel.prototype, \"columnDefFactory\", void 0);\n\n __decorate$2u([PostConstruct], ColumnModel.prototype, \"init\", null);\n\n __decorate$2u([__param$7(0, Qualifier('loggerFactory'))], ColumnModel.prototype, \"setBeans\", null);\n\n ColumnModel = __decorate$2u([Bean('columnModel')], ColumnModel);\n return ColumnModel;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2S = undefined && undefined.__extends || function () {\n var _extendStatics3 = function extendStatics(d, b) {\n _extendStatics3 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics3(d, b);\n };\n\n return function (d, b) {\n _extendStatics3(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2t = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}; // takes in a list of columns, as specified by the column definitions, and returns column groups\n\n\nvar ColumnUtils =\n/** @class */\nfunction (_super) {\n __extends$2S(ColumnUtils, _super);\n\n function ColumnUtils() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n ColumnUtils.prototype.calculateColMinWidth = function (colDef) {\n return colDef.minWidth != null ? colDef.minWidth : this.gridOptionsWrapper.getMinColWidth();\n };\n\n ColumnUtils.prototype.calculateColMaxWidth = function (colDef) {\n return colDef.maxWidth != null ? colDef.maxWidth : this.gridOptionsWrapper.getMaxColWidth() || Number.MAX_SAFE_INTEGER;\n };\n\n ColumnUtils.prototype.calculateColInitialWidth = function (colDef) {\n var minColWidth = this.calculateColMinWidth(colDef);\n var maxColWidth = this.calculateColMaxWidth(colDef);\n var width;\n var colDefWidth = attrToNumber(colDef.width);\n var colDefInitialWidth = attrToNumber(colDef.initialWidth);\n\n if (colDefWidth != null) {\n width = colDefWidth;\n } else if (colDefInitialWidth != null) {\n width = colDefInitialWidth;\n } else {\n width = this.gridOptionsWrapper.getColWidth();\n }\n\n return Math.max(Math.min(width, maxColWidth), minColWidth);\n };\n\n ColumnUtils.prototype.getOriginalPathForColumn = function (column, originalBalancedTree) {\n var result = [];\n var found = false;\n\n var recursePath = function recursePath(balancedColumnTree, dept) {\n for (var i = 0; i < balancedColumnTree.length; i++) {\n if (found) {\n return;\n } // quit the search, so 'result' is kept with the found result\n\n\n var node = balancedColumnTree[i];\n\n if (node instanceof ProvidedColumnGroup) {\n var nextNode = node;\n recursePath(nextNode.getChildren(), dept + 1);\n result[dept] = node;\n } else if (node === column) {\n found = true;\n }\n }\n };\n\n recursePath(originalBalancedTree, 0); // we should always find the path, but in case there is a bug somewhere, returning null\n // will make it fail rather than provide a 'hard to track down' bug\n\n return found ? result : null;\n };\n\n ColumnUtils.prototype.depthFirstOriginalTreeSearch = function (parent, tree, callback) {\n var _this = this;\n\n if (!tree) {\n return;\n }\n\n tree.forEach(function (child) {\n if (child instanceof ProvidedColumnGroup) {\n _this.depthFirstOriginalTreeSearch(child, child.getChildren(), callback);\n }\n\n callback(child, parent);\n });\n };\n\n ColumnUtils.prototype.depthFirstAllColumnTreeSearch = function (tree, callback) {\n var _this = this;\n\n if (!tree) {\n return;\n }\n\n tree.forEach(function (child) {\n if (child instanceof ColumnGroup) {\n _this.depthFirstAllColumnTreeSearch(child.getChildren(), callback);\n }\n\n callback(child);\n });\n };\n\n ColumnUtils.prototype.depthFirstDisplayedColumnTreeSearch = function (tree, callback) {\n var _this = this;\n\n if (!tree) {\n return;\n }\n\n tree.forEach(function (child) {\n if (child instanceof ColumnGroup) {\n _this.depthFirstDisplayedColumnTreeSearch(child.getDisplayedChildren(), callback);\n }\n\n callback(child);\n });\n };\n\n ColumnUtils = __decorate$2t([Bean('columnUtils')], ColumnUtils);\n return ColumnUtils;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2R = undefined && undefined.__extends || function () {\n var _extendStatics4 = function extendStatics(d, b) {\n _extendStatics4 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics4(d, b);\n };\n\n return function (d, b) {\n _extendStatics4(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2s = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}; // takes in a list of columns, as specified by the column definitions, and returns column groups\n\n\nvar DisplayedGroupCreator =\n/** @class */\nfunction (_super) {\n __extends$2R(DisplayedGroupCreator, _super);\n\n function DisplayedGroupCreator() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n DisplayedGroupCreator.prototype.createDisplayedGroups = function ( // all displayed columns sorted - this is the columns the grid should show\n sortedVisibleColumns, // the tree of columns, as provided by the users, used to know what groups columns roll up into\n balancedColumnTree, // creates unique id's for the group\n groupInstanceIdCreator, // whether it's left, right or center col\n pinned, // we try to reuse old groups if we can, to allow gui to do animation\n oldDisplayedGroups) {\n var _this = this;\n\n var result = [];\n var previousRealPath;\n var previousOriginalPath;\n var oldColumnsMapped = this.mapOldGroupsById(oldDisplayedGroups); // go through each column, then do a bottom up comparison to the previous column, and start\n // to share groups if they converge at any point.\n\n sortedVisibleColumns.forEach(function (currentColumn) {\n var currentOriginalPath = _this.getOriginalPathForColumn(balancedColumnTree, currentColumn);\n\n var currentRealPath = [];\n var firstColumn = !previousOriginalPath;\n\n for (var i = 0; i < currentOriginalPath.length; i++) {\n if (firstColumn || currentOriginalPath[i] !== previousOriginalPath[i]) {\n // new group needed\n var newGroup = _this.createColumnGroup(currentOriginalPath[i], groupInstanceIdCreator, oldColumnsMapped, pinned);\n\n currentRealPath[i] = newGroup; // if top level, add to result, otherwise add to parent\n\n if (i == 0) {\n result.push(newGroup);\n } else {\n currentRealPath[i - 1].addChild(newGroup);\n }\n } else {\n // reuse old group\n currentRealPath[i] = previousRealPath[i];\n }\n }\n\n var noColumnGroups = currentRealPath.length === 0;\n\n if (noColumnGroups) {\n // if we are not grouping, then the result of the above is an empty\n // path (no groups), and we just add the column to the root list.\n result.push(currentColumn);\n } else {\n var leafGroup = last(currentRealPath);\n leafGroup.addChild(currentColumn);\n }\n\n previousRealPath = currentRealPath;\n previousOriginalPath = currentOriginalPath;\n });\n this.setupParentsIntoColumns(result, null);\n return result;\n };\n\n DisplayedGroupCreator.prototype.createColumnGroup = function (providedGroup, groupInstanceIdCreator, oldColumnsMapped, pinned) {\n var groupId = providedGroup.getGroupId();\n var instanceId = groupInstanceIdCreator.getInstanceIdForKey(groupId);\n var uniqueId = ColumnGroup.createUniqueId(groupId, instanceId);\n var columnGroup = oldColumnsMapped[uniqueId]; // if the user is setting new colDefs, it is possible that the id's overlap, and we\n // would have a false match from above. so we double check we are talking about the\n // same original column group.\n\n if (columnGroup && columnGroup.getProvidedColumnGroup() !== providedGroup) {\n columnGroup = null;\n }\n\n if (exists(columnGroup)) {\n // clean out the old column group here, as we will be adding children into it again\n columnGroup.reset();\n } else {\n columnGroup = new ColumnGroup(providedGroup, groupId, instanceId, pinned);\n this.context.createBean(columnGroup);\n }\n\n return columnGroup;\n }; // returns back a 2d map of ColumnGroup as follows: groupId -> instanceId -> ColumnGroup\n\n\n DisplayedGroupCreator.prototype.mapOldGroupsById = function (displayedGroups) {\n var result = {};\n\n var recursive = function recursive(columnsOrGroups) {\n columnsOrGroups.forEach(function (columnOrGroup) {\n if (columnOrGroup instanceof ColumnGroup) {\n var columnGroup = columnOrGroup;\n result[columnOrGroup.getUniqueId()] = columnGroup;\n recursive(columnGroup.getChildren());\n }\n });\n };\n\n if (displayedGroups) {\n recursive(displayedGroups);\n }\n\n return result;\n };\n\n DisplayedGroupCreator.prototype.setupParentsIntoColumns = function (columnsOrGroups, parent) {\n var _this = this;\n\n columnsOrGroups.forEach(function (columnsOrGroup) {\n columnsOrGroup.setParent(parent);\n\n if (columnsOrGroup instanceof ColumnGroup) {\n var columnGroup = columnsOrGroup;\n\n _this.setupParentsIntoColumns(columnGroup.getChildren(), columnGroup);\n }\n });\n };\n\n DisplayedGroupCreator.prototype.getOriginalPathForColumn = function (balancedColumnTree, column) {\n var result = [];\n var found = false;\n\n var recursePath = function recursePath(columnTree, dept) {\n for (var i = 0; i < columnTree.length; i++) {\n // quit the search, so 'result' is kept with the found result\n if (found) {\n return;\n }\n\n var node = columnTree[i];\n\n if (node instanceof ProvidedColumnGroup) {\n recursePath(node.getChildren(), dept + 1);\n result[dept] = node;\n } else if (node === column) {\n found = true;\n }\n }\n };\n\n recursePath(balancedColumnTree, 0); // it's possible we didn't find a path. this happens if the column is generated\n // by the grid (auto-group), in that the definition didn't come from the client. in this case,\n // we create a fake original path.\n\n if (found) {\n return result;\n }\n\n console.warn('AG Grid: could not get path');\n return null;\n };\n\n DisplayedGroupCreator = __decorate$2s([Bean('displayedGroupCreator')], DisplayedGroupCreator);\n return DisplayedGroupCreator;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2Q = undefined && undefined.__extends || function () {\n var _extendStatics5 = function extendStatics(d, b) {\n _extendStatics5 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics5(d, b);\n };\n\n return function (d, b) {\n _extendStatics5(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2r = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AgStackComponentsRegistry =\n/** @class */\nfunction (_super) {\n __extends$2Q(AgStackComponentsRegistry, _super);\n\n function AgStackComponentsRegistry() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.componentsMappedByName = {};\n return _this;\n }\n\n AgStackComponentsRegistry.prototype.setupComponents = function (components) {\n var _this = this;\n\n if (components) {\n components.forEach(function (componentMeta) {\n return _this.addComponent(componentMeta);\n });\n }\n };\n\n AgStackComponentsRegistry.prototype.addComponent = function (componentMeta) {\n // get name of the class as a string\n // let className = getNameOfClass(ComponentClass);\n // insert a dash after every capital letter\n // let classEscaped = className.replace(/([A-Z])/g, \"-$1\").toLowerCase();\n var classEscaped = componentMeta.componentName.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase(); // put all to upper case\n\n var classUpperCase = classEscaped.toUpperCase(); // finally store\n\n this.componentsMappedByName[classUpperCase] = componentMeta.componentClass;\n };\n\n AgStackComponentsRegistry.prototype.getComponentClass = function (htmlTag) {\n return this.componentsMappedByName[htmlTag];\n };\n\n AgStackComponentsRegistry = __decorate$2r([Bean('agStackComponentsRegistry')], AgStackComponentsRegistry);\n return AgStackComponentsRegistry;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __read$j = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar Color =\n/** @class */\nfunction () {\n /**\n * Every color component should be in the [0, 1] range.\n * Some easing functions (such as elastic easing) can overshoot the target value by some amount.\n * So, when animating colors, if the source or target color components are already near\n * or at the edge of the allowed [0, 1] range, it is possible for the intermediate color\n * component value to end up outside of that range mid-animation. For this reason the constructor\n * performs range checking/constraining.\n * @param r Red component.\n * @param g Green component.\n * @param b Blue component.\n * @param a Alpha (opacity) component.\n */\n function Color(r, g, b, a) {\n if (a === void 0) {\n a = 1;\n } // NaN is treated as 0.\n\n\n this.r = Math.min(1, Math.max(0, r || 0));\n this.g = Math.min(1, Math.max(0, g || 0));\n this.b = Math.min(1, Math.max(0, b || 0));\n this.a = Math.min(1, Math.max(0, a || 0));\n }\n /**\n * The given string can be in one of the following formats:\n * - #rgb\n * - #rrggbb\n * - rgb(r, g, b)\n * - rgba(r, g, b, a)\n * - CSS color name such as 'white', 'orange', 'cyan', etc.\n * @param str\n */\n\n\n Color.fromString = function (str) {\n // hexadecimal notation\n if (str.indexOf('#') >= 0) {\n // there can be some leading whitespace\n return Color.fromHexString(str);\n } // color name\n\n\n var hex = Color.nameToHex[str];\n\n if (hex) {\n return Color.fromHexString(hex);\n } // rgb(a) notation\n\n\n if (str.indexOf('rgb') >= 0) {\n return Color.fromRgbaString(str);\n }\n\n throw new Error(\"Invalid color string: '\" + str + \"'\");\n }; // See https://drafts.csswg.org/css-color/#hex-notation\n\n\n Color.parseHex = function (input) {\n input = input.replace(/ /g, '').slice(1);\n var parts;\n\n switch (input.length) {\n case 6:\n case 8:\n parts = [];\n\n for (var i = 0; i < input.length; i += 2) {\n parts.push(parseInt(\"\" + input[i] + input[i + 1], 16));\n }\n\n break;\n\n case 3:\n case 4:\n parts = input.split('').map(function (p) {\n return parseInt(p, 16);\n }).map(function (p) {\n return p + p * 16;\n });\n break;\n }\n\n if (parts.length >= 3) {\n if (parts.every(function (p) {\n return p >= 0;\n })) {\n if (parts.length === 3) {\n parts.push(255);\n }\n\n return parts;\n }\n }\n };\n\n Color.fromHexString = function (str) {\n var values = Color.parseHex(str);\n\n if (values) {\n var _a = __read$j(values, 4),\n r = _a[0],\n g = _a[1],\n b = _a[2],\n a = _a[3];\n\n return new Color(r / 255, g / 255, b / 255, a / 255);\n }\n\n throw new Error(\"Malformed hexadecimal color string: '\" + str + \"'\");\n };\n\n Color.stringToRgba = function (str) {\n // Find positions of opening and closing parentheses.\n var _a = __read$j([NaN, NaN], 2),\n po = _a[0],\n pc = _a[1];\n\n for (var i = 0; i < str.length; i++) {\n var c = str[i];\n\n if (!po && c === '(') {\n po = i;\n } else if (c === ')') {\n pc = i;\n break;\n }\n }\n\n var contents = po && pc && str.substring(po + 1, pc);\n\n if (!contents) {\n return;\n }\n\n var parts = contents.split(',');\n var rgba = [];\n\n for (var i = 0; i < parts.length; i++) {\n var part = parts[i];\n var value = parseFloat(part);\n\n if (isNaN(value)) {\n return;\n }\n\n if (part.indexOf('%') >= 0) {\n // percentage r, g, or b value\n value = Math.max(0, Math.min(100, value));\n value /= 100;\n } else {\n if (i === 3) {\n // alpha component\n value = Math.max(0, Math.min(1, value));\n } else {\n // absolute r, g, or b value\n value = Math.max(0, Math.min(255, value));\n value /= 255;\n }\n }\n\n rgba.push(value);\n }\n\n return rgba;\n };\n\n Color.fromRgbaString = function (str) {\n var rgba = Color.stringToRgba(str);\n\n if (rgba) {\n if (rgba.length === 3) {\n return new Color(rgba[0], rgba[1], rgba[2]);\n } else if (rgba.length === 4) {\n return new Color(rgba[0], rgba[1], rgba[2], rgba[3]);\n }\n }\n\n throw new Error(\"Malformed rgb/rgba color string: '\" + str + \"'\");\n };\n\n Color.fromArray = function (arr) {\n if (arr.length === 4) {\n return new Color(arr[0], arr[1], arr[2], arr[3]);\n }\n\n if (arr.length === 3) {\n return new Color(arr[0], arr[1], arr[2]);\n }\n\n throw new Error('The given array should contain 3 or 4 color components (numbers).');\n };\n\n Color.fromHSB = function (h, s, b, alpha) {\n if (alpha === void 0) {\n alpha = 1;\n }\n\n var rgb = Color.HSBtoRGB(h, s, b);\n return new Color(rgb[0], rgb[1], rgb[2], alpha);\n };\n\n Color.padHex = function (str) {\n // Can't use `padStart(2, '0')` here because of IE.\n return str.length === 1 ? '0' + str : str;\n };\n\n Color.prototype.toHexString = function () {\n var hex = '#' + Color.padHex(Math.round(this.r * 255).toString(16)) + Color.padHex(Math.round(this.g * 255).toString(16)) + Color.padHex(Math.round(this.b * 255).toString(16));\n\n if (this.a < 1) {\n hex += Color.padHex(Math.round(this.a * 255).toString(16));\n }\n\n return hex;\n };\n\n Color.prototype.toRgbaString = function (fractionDigits) {\n if (fractionDigits === void 0) {\n fractionDigits = 3;\n }\n\n var components = [Math.round(this.r * 255), Math.round(this.g * 255), Math.round(this.b * 255)];\n var k = Math.pow(10, fractionDigits);\n\n if (this.a !== 1) {\n components.push(Math.round(this.a * k) / k);\n return \"rgba(\" + components.join(', ') + \")\";\n }\n\n return \"rgb(\" + components.join(', ') + \")\";\n };\n\n Color.prototype.toString = function () {\n if (this.a === 1) {\n return this.toHexString();\n }\n\n return this.toRgbaString();\n };\n\n Color.prototype.toHSB = function () {\n return Color.RGBtoHSB(this.r, this.g, this.b);\n };\n /**\n * Converts the given RGB triple to an array of HSB (HSV) components.\n * The hue component will be `NaN` for achromatic colors.\n */\n\n\n Color.RGBtoHSB = function (r, g, b) {\n var min = Math.min(r, g, b);\n var max = Math.max(r, g, b);\n var S = max !== 0 ? (max - min) / max : 0;\n var H = NaN; // min == max, means all components are the same\n // and the color is a shade of gray with no hue (H is NaN)\n\n if (min !== max) {\n var delta = max - min;\n var rc = (max - r) / delta;\n var gc = (max - g) / delta;\n var bc = (max - b) / delta;\n\n if (r === max) {\n H = bc - gc;\n } else if (g === max) {\n H = 2.0 + rc - bc;\n } else {\n H = 4.0 + gc - rc;\n }\n\n H /= 6.0;\n\n if (H < 0) {\n H = H + 1.0;\n }\n }\n\n return [H * 360, S, max];\n };\n /**\n * Converts the given HSB (HSV) triple to an array of RGB components.\n */\n\n\n Color.HSBtoRGB = function (H, S, B) {\n if (isNaN(H)) {\n H = 0;\n }\n\n H = (H % 360 + 360) % 360 / 360; // normalize hue to [0, 360] interval, then scale to [0, 1]\n\n var r = 0;\n var g = 0;\n var b = 0;\n\n if (S === 0) {\n r = g = b = B;\n } else {\n var h = (H - Math.floor(H)) * 6;\n var f = h - Math.floor(h);\n var p = B * (1 - S);\n var q = B * (1 - S * f);\n var t = B * (1 - S * (1 - f));\n\n switch (h >> 0) {\n // discard the floating point part of the number\n case 0:\n r = B;\n g = t;\n b = p;\n break;\n\n case 1:\n r = q;\n g = B;\n b = p;\n break;\n\n case 2:\n r = p;\n g = B;\n b = t;\n break;\n\n case 3:\n r = p;\n g = q;\n b = B;\n break;\n\n case 4:\n r = t;\n g = p;\n b = B;\n break;\n\n case 5:\n r = B;\n g = p;\n b = q;\n break;\n }\n }\n\n return [r, g, b];\n };\n\n Color.prototype.derive = function (hueShift, saturationFactor, brightnessFactor, opacityFactor) {\n var hsb = Color.RGBtoHSB(this.r, this.g, this.b);\n var b = hsb[2];\n\n if (b == 0 && brightnessFactor > 1.0) {\n b = 0.05;\n }\n\n var h = ((hsb[0] + hueShift) % 360 + 360) % 360;\n var s = Math.max(Math.min(hsb[1] * saturationFactor, 1.0), 0.0);\n b = Math.max(Math.min(b * brightnessFactor, 1.0), 0.0);\n var a = Math.max(Math.min(this.a * opacityFactor, 1.0), 0.0);\n var rgba = Color.HSBtoRGB(h, s, b);\n rgba.push(a);\n return Color.fromArray(rgba);\n };\n\n Color.prototype.brighter = function () {\n return this.derive(0, 1.0, 1.0 / 0.7, 1.0);\n };\n\n Color.prototype.darker = function () {\n return this.derive(0, 1.0, 0.7, 1.0);\n };\n /**\n * CSS Color Module Level 4:\n * https://drafts.csswg.org/css-color/#named-colors\n */\n\n\n Color.nameToHex = Object.freeze({\n aliceblue: '#F0F8FF',\n antiquewhite: '#FAEBD7',\n aqua: '#00FFFF',\n aquamarine: '#7FFFD4',\n azure: '#F0FFFF',\n beige: '#F5F5DC',\n bisque: '#FFE4C4',\n black: '#000000',\n blanchedalmond: '#FFEBCD',\n blue: '#0000FF',\n blueviolet: '#8A2BE2',\n brown: '#A52A2A',\n burlywood: '#DEB887',\n cadetblue: '#5F9EA0',\n chartreuse: '#7FFF00',\n chocolate: '#D2691E',\n coral: '#FF7F50',\n cornflowerblue: '#6495ED',\n cornsilk: '#FFF8DC',\n crimson: '#DC143C',\n cyan: '#00FFFF',\n darkblue: '#00008B',\n darkcyan: '#008B8B',\n darkgoldenrod: '#B8860B',\n darkgray: '#A9A9A9',\n darkgreen: '#006400',\n darkgrey: '#A9A9A9',\n darkkhaki: '#BDB76B',\n darkmagenta: '#8B008B',\n darkolivegreen: '#556B2F',\n darkorange: '#FF8C00',\n darkorchid: '#9932CC',\n darkred: '#8B0000',\n darksalmon: '#E9967A',\n darkseagreen: '#8FBC8F',\n darkslateblue: '#483D8B',\n darkslategray: '#2F4F4F',\n darkslategrey: '#2F4F4F',\n darkturquoise: '#00CED1',\n darkviolet: '#9400D3',\n deeppink: '#FF1493',\n deepskyblue: '#00BFFF',\n dimgray: '#696969',\n dimgrey: '#696969',\n dodgerblue: '#1E90FF',\n firebrick: '#B22222',\n floralwhite: '#FFFAF0',\n forestgreen: '#228B22',\n fuchsia: '#FF00FF',\n gainsboro: '#DCDCDC',\n ghostwhite: '#F8F8FF',\n gold: '#FFD700',\n goldenrod: '#DAA520',\n gray: '#808080',\n green: '#008000',\n greenyellow: '#ADFF2F',\n grey: '#808080',\n honeydew: '#F0FFF0',\n hotpink: '#FF69B4',\n indianred: '#CD5C5C',\n indigo: '#4B0082',\n ivory: '#FFFFF0',\n khaki: '#F0E68C',\n lavender: '#E6E6FA',\n lavenderblush: '#FFF0F5',\n lawngreen: '#7CFC00',\n lemonchiffon: '#FFFACD',\n lightblue: '#ADD8E6',\n lightcoral: '#F08080',\n lightcyan: '#E0FFFF',\n lightgoldenrodyellow: '#FAFAD2',\n lightgray: '#D3D3D3',\n lightgreen: '#90EE90',\n lightgrey: '#D3D3D3',\n lightpink: '#FFB6C1',\n lightsalmon: '#FFA07A',\n lightseagreen: '#20B2AA',\n lightskyblue: '#87CEFA',\n lightslategray: '#778899',\n lightslategrey: '#778899',\n lightsteelblue: '#B0C4DE',\n lightyellow: '#FFFFE0',\n lime: '#00FF00',\n limegreen: '#32CD32',\n linen: '#FAF0E6',\n magenta: '#FF00FF',\n maroon: '#800000',\n mediumaquamarine: '#66CDAA',\n mediumblue: '#0000CD',\n mediumorchid: '#BA55D3',\n mediumpurple: '#9370DB',\n mediumseagreen: '#3CB371',\n mediumslateblue: '#7B68EE',\n mediumspringgreen: '#00FA9A',\n mediumturquoise: '#48D1CC',\n mediumvioletred: '#C71585',\n midnightblue: '#191970',\n mintcream: '#F5FFFA',\n mistyrose: '#FFE4E1',\n moccasin: '#FFE4B5',\n navajowhite: '#FFDEAD',\n navy: '#000080',\n oldlace: '#FDF5E6',\n olive: '#808000',\n olivedrab: '#6B8E23',\n orange: '#FFA500',\n orangered: '#FF4500',\n orchid: '#DA70D6',\n palegoldenrod: '#EEE8AA',\n palegreen: '#98FB98',\n paleturquoise: '#AFEEEE',\n palevioletred: '#DB7093',\n papayawhip: '#FFEFD5',\n peachpuff: '#FFDAB9',\n peru: '#CD853F',\n pink: '#FFC0CB',\n plum: '#DDA0DD',\n powderblue: '#B0E0E6',\n purple: '#800080',\n rebeccapurple: '#663399',\n red: '#FF0000',\n rosybrown: '#BC8F8F',\n royalblue: '#4169E1',\n saddlebrown: '#8B4513',\n salmon: '#FA8072',\n sandybrown: '#F4A460',\n seagreen: '#2E8B57',\n seashell: '#FFF5EE',\n sienna: '#A0522D',\n silver: '#C0C0C0',\n skyblue: '#87CEEB',\n slateblue: '#6A5ACD',\n slategray: '#708090',\n slategrey: '#708090',\n snow: '#FFFAFA',\n springgreen: '#00FF7F',\n steelblue: '#4682B4',\n tan: '#D2B48C',\n teal: '#008080',\n thistle: '#D8BFD8',\n tomato: '#FF6347',\n turquoise: '#40E0D0',\n violet: '#EE82EE',\n wheat: '#F5DEB3',\n white: '#FFFFFF',\n whitesmoke: '#F5F5F5',\n yellow: '#FFFF00',\n yellowgreen: '#9ACD32'\n });\n return Color;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n// Based on https://stackoverflow.com/a/14991797\n// This will parse a delimited string into an array of arrays.\n\n\nfunction stringToArray(strData, delimiter) {\n if (delimiter === void 0) {\n delimiter = ',';\n }\n\n var data = [];\n\n var isNewline = function isNewline(char) {\n return char === '\\r' || char === '\\n';\n };\n\n var insideQuotedField = false;\n\n if (strData === '') {\n return [['']];\n }\n\n var _loop_1 = function _loop_1(row, column, position) {\n var previousChar = strData[position - 1];\n var currentChar = strData[position];\n var nextChar = strData[position + 1];\n\n var ensureDataExists = function ensureDataExists() {\n if (!data[row]) {\n // create row if it doesn't exist\n data[row] = [];\n }\n\n if (!data[row][column]) {\n // create column if it doesn't exist\n data[row][column] = '';\n }\n };\n\n ensureDataExists();\n\n if (currentChar === '\"') {\n if (insideQuotedField) {\n if (nextChar === '\"') {\n // unescape double quote\n data[row][column] += '\"';\n position++;\n } else {\n // exit quoted field\n insideQuotedField = false;\n }\n\n return out_row_1 = row, out_column_1 = column, out_position_1 = position, \"continue\";\n } else if (previousChar === undefined || previousChar === delimiter || isNewline(previousChar)) {\n // enter quoted field\n insideQuotedField = true;\n return out_row_1 = row, out_column_1 = column, out_position_1 = position, \"continue\";\n }\n }\n\n if (!insideQuotedField) {\n if (currentChar === delimiter) {\n // move to next column\n column++;\n ensureDataExists();\n return out_row_1 = row, out_column_1 = column, out_position_1 = position, \"continue\";\n } else if (isNewline(currentChar)) {\n // move to next row\n column = 0;\n row++;\n ensureDataExists();\n\n if (currentChar === '\\r' && nextChar === '\\n') {\n // skip over second newline character if it exists\n position++;\n }\n\n return out_row_1 = row, out_column_1 = column, out_position_1 = position, \"continue\";\n }\n } // add current character to current column\n\n\n data[row][column] += currentChar;\n out_row_1 = row;\n out_column_1 = column;\n out_position_1 = position;\n };\n\n var out_row_1, out_column_1, out_position_1; // iterate over each character, keep track of current row and column (of the returned array)\n\n for (var row = 0, column = 0, position = 0; position < strData.length; position++) {\n _loop_1(row, column, position);\n\n row = out_row_1;\n column = out_column_1;\n position = out_position_1;\n }\n\n return data;\n}\n\nvar CsvUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n stringToArray: stringToArray\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nvar rtlNegativeScroll;\n/**\n * This method adds a class to an element and remove that class from all siblings.\n * Useful for toggling state.\n * @param {HTMLElement} element The element to receive the class\n * @param {string} elementClass The class to be assigned to the element\n * @param {boolean} otherElementClass The class to be assigned to siblings of the element, but not the element itself\n */\n\nfunction radioCssClass(element, elementClass, otherElementClass) {\n var parent = element.parentElement;\n var sibling = parent && parent.firstChild;\n\n while (sibling) {\n if (elementClass) {\n sibling.classList.toggle(elementClass, sibling === element);\n }\n\n if (otherElementClass) {\n sibling.classList.toggle(otherElementClass, sibling !== element);\n }\n\n sibling = sibling.nextSibling;\n }\n}\n\nfunction isFocusableFormField(element) {\n var matches = Element.prototype.matches || Element.prototype.msMatchesSelector;\n var isFocusable = matches.call(element, Constants.INPUT_SELECTOR);\n var isNotFocusable = matches.call(element, Constants.FOCUSABLE_EXCLUDE);\n var isElementVisible = isVisible(element);\n var focusable = isFocusable && !isNotFocusable && isElementVisible;\n return focusable;\n}\n\nfunction setDisplayed(element, displayed) {\n element.classList.toggle('ag-hidden', !displayed);\n}\n\nfunction setVisible(element, visible) {\n element.classList.toggle('ag-invisible', !visible);\n}\n\nfunction setDisabled(element, disabled) {\n var attributeName = 'disabled';\n var addOrRemoveDisabledAttribute = disabled ? function (e) {\n return e.setAttribute(attributeName, '');\n } : function (e) {\n return e.removeAttribute(attributeName);\n };\n addOrRemoveDisabledAttribute(element);\n nodeListForEach(element.querySelectorAll('input'), function (input) {\n return addOrRemoveDisabledAttribute(input);\n });\n}\n\nfunction isElementChildOfClass(element, cls, maxNest) {\n var counter = 0;\n\n while (element) {\n if (element.classList.contains(cls)) {\n return true;\n }\n\n element = element.parentElement;\n\n if (typeof maxNest == 'number') {\n if (++counter > maxNest) {\n break;\n }\n } else if (element === maxNest) {\n break;\n }\n }\n\n return false;\n} // returns back sizes as doubles instead of strings. similar to\n// getBoundingClientRect, however getBoundingClientRect does not:\n// a) work with fractions (eg browser is zooming)\n// b) has CSS transitions applied (eg CSS scale, browser zoom), which we don't want, we want the un-transitioned values\n\n\nfunction getElementSize(el) {\n var _a = window.getComputedStyle(el),\n height = _a.height,\n width = _a.width,\n paddingTop = _a.paddingTop,\n paddingRight = _a.paddingRight,\n paddingBottom = _a.paddingBottom,\n paddingLeft = _a.paddingLeft,\n marginTop = _a.marginTop,\n marginRight = _a.marginRight,\n marginBottom = _a.marginBottom,\n marginLeft = _a.marginLeft,\n boxSizing = _a.boxSizing;\n\n return {\n height: parseFloat(height),\n width: parseFloat(width),\n paddingTop: parseFloat(paddingTop),\n paddingRight: parseFloat(paddingRight),\n paddingBottom: parseFloat(paddingBottom),\n paddingLeft: parseFloat(paddingLeft),\n marginTop: parseFloat(marginTop),\n marginRight: parseFloat(marginRight),\n marginBottom: parseFloat(marginBottom),\n marginLeft: parseFloat(marginLeft),\n boxSizing: boxSizing\n };\n}\n\nfunction getInnerHeight(el) {\n var size = getElementSize(el);\n\n if (size.boxSizing === 'border-box') {\n return size.height - size.paddingTop - size.paddingBottom;\n }\n\n return size.height;\n}\n\nfunction getInnerWidth(el) {\n var size = getElementSize(el);\n\n if (size.boxSizing === 'border-box') {\n return size.width - size.paddingLeft - size.paddingRight;\n }\n\n return size.width;\n}\n\nfunction getAbsoluteHeight(el) {\n var size = getElementSize(el);\n var marginRight = size.marginBottom + size.marginTop;\n return Math.ceil(el.offsetHeight + marginRight);\n}\n\nfunction getAbsoluteWidth(el) {\n var size = getElementSize(el);\n var marginWidth = size.marginLeft + size.marginRight;\n return Math.ceil(el.offsetWidth + marginWidth);\n}\n\nfunction isRtlNegativeScroll() {\n if (typeof rtlNegativeScroll === \"boolean\") {\n return rtlNegativeScroll;\n }\n\n var template = document.createElement('div');\n template.style.direction = 'rtl';\n template.style.width = '1px';\n template.style.height = '1px';\n template.style.position = 'fixed';\n template.style.top = '0px';\n template.style.overflow = 'hidden';\n template.dir = 'rtl';\n template.innerHTML =\n /* html */\n \"
\\n \\n \\n
\";\n document.body.appendChild(template);\n template.scrollLeft = 1;\n rtlNegativeScroll = Math.floor(template.scrollLeft) === 0;\n document.body.removeChild(template);\n return rtlNegativeScroll;\n}\n\nfunction getScrollLeft(element, rtl) {\n var scrollLeft = element.scrollLeft;\n\n if (rtl) {\n // Absolute value - for FF that reports RTL scrolls in negative numbers\n scrollLeft = Math.abs(scrollLeft);\n\n if (isBrowserChrome() && !isRtlNegativeScroll()) {\n scrollLeft = element.scrollWidth - element.clientWidth - scrollLeft;\n }\n }\n\n return scrollLeft;\n}\n\nfunction setScrollLeft(element, value, rtl) {\n if (rtl) {\n // Chrome and Safari when doing RTL have the END position of the scroll as zero, not the start\n if (isRtlNegativeScroll()) {\n value *= -1;\n } else if (isBrowserSafari() || isBrowserChrome()) {\n value = element.scrollWidth - element.clientWidth - value;\n }\n }\n\n element.scrollLeft = value;\n}\n\nfunction clearElement(el) {\n while (el && el.firstChild) {\n el.removeChild(el.firstChild);\n }\n}\n/** @deprecated */\n\n\nfunction removeElement(parent, cssSelector) {\n removeFromParent(parent.querySelector(cssSelector));\n}\n\nfunction removeFromParent(node) {\n if (node && node.parentNode) {\n node.parentNode.removeChild(node);\n }\n}\n\nfunction isVisible(element) {\n return element.offsetParent !== null;\n}\n/**\n * Loads the template and returns it as an element. makes up for no simple way in\n * the dom api to load html directly, eg we cannot do this: document.createElement(template)\n * @param {string} template\n * @returns {HTMLElement}\n */\n\n\nfunction loadTemplate(template) {\n var tempDiv = document.createElement('div');\n tempDiv.innerHTML = (template || '').trim();\n return tempDiv.firstChild;\n}\n\nfunction appendHtml(eContainer, htmlTemplate) {\n if (eContainer.lastChild) {\n // https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentHTML\n // we put the items at the start, so new items appear underneath old items,\n // so when expanding/collapsing groups, the new rows don't go on top of the\n // rows below that are moving our of the way\n eContainer.insertAdjacentHTML('afterbegin', htmlTemplate);\n } else {\n eContainer.innerHTML = htmlTemplate;\n }\n}\n/** @deprecated */\n\n\nfunction getElementAttribute(element, attributeName) {\n if (element.attributes && element.attributes[attributeName]) {\n var attribute = element.attributes[attributeName];\n return attribute.value;\n }\n\n return null;\n}\n\nfunction offsetHeight(element) {\n return element && element.clientHeight ? element.clientHeight : 0;\n}\n\nfunction offsetWidth(element) {\n return element && element.clientWidth ? element.clientWidth : 0;\n}\n\nfunction ensureDomOrder(eContainer, eChild, eChildBefore) {\n // if already in right order, do nothing\n if (eChildBefore && eChildBefore.nextSibling === eChild) {\n return;\n }\n\n var focusedEl = document.activeElement;\n var eChildHasFocus = eChild.contains(focusedEl);\n\n if (eChildBefore) {\n if (eChildBefore.nextSibling) {\n // insert between the eRowBefore and the row after it\n eContainer.insertBefore(eChild, eChildBefore.nextSibling);\n } else {\n // if nextSibling is missing, means other row is at end, so just append new row at the end\n eContainer.appendChild(eChild);\n }\n } else {\n // otherwise put at start\n if (eContainer.firstChild && eContainer.firstChild !== eChild) {\n // insert it at the first location\n eContainer.insertAdjacentElement('afterbegin', eChild);\n }\n }\n\n if (eChildHasFocus && focusedEl && browserSupportsPreventScroll()) {\n focusedEl.focus({\n preventScroll: true\n });\n }\n}\n\nfunction setDomChildOrder(eContainer, orderedChildren) {\n for (var i = 0; i < orderedChildren.length; i++) {\n var correctCellAtIndex = orderedChildren[i];\n var actualCellAtIndex = eContainer.children[i];\n\n if (actualCellAtIndex !== correctCellAtIndex) {\n eContainer.insertBefore(correctCellAtIndex, actualCellAtIndex);\n }\n }\n}\n\nfunction insertWithDomOrder(eContainer, eToInsert, eChildBefore) {\n if (eChildBefore) {\n // if previous element exists, just slot in after the previous element\n eChildBefore.insertAdjacentElement('afterend', eToInsert);\n } else {\n if (eContainer.firstChild) {\n // insert it at the first location\n eContainer.insertAdjacentElement('afterbegin', eToInsert);\n } else {\n // otherwise eContainer is empty, so just append it\n eContainer.appendChild(eToInsert);\n }\n }\n}\n/** @deprecated */\n\n\nfunction prependDC(parent, documentFragment) {\n if (exists(parent.firstChild)) {\n parent.insertBefore(documentFragment, parent.firstChild);\n } else {\n parent.appendChild(documentFragment);\n }\n}\n\nfunction addStylesToElement(eElement, styles) {\n if (!styles) {\n return;\n }\n\n Object.keys(styles).forEach(function (key) {\n var keyCamelCase = hyphenToCamelCase(key);\n\n if (keyCamelCase) {\n eElement.style[keyCamelCase] = styles[key];\n }\n });\n}\n\nfunction isHorizontalScrollShowing(element) {\n return element.clientWidth < element.scrollWidth;\n}\n\nfunction isVerticalScrollShowing(element) {\n return element.clientHeight < element.scrollHeight;\n}\n\nfunction setElementWidth(element, width) {\n if (width === 'flex') {\n element.style.removeProperty('width');\n element.style.removeProperty('minWidth');\n element.style.removeProperty('maxWidth');\n element.style.flex = '1 1 auto';\n } else {\n setFixedWidth(element, width);\n }\n}\n\nfunction setFixedWidth(element, width) {\n width = formatSize(width);\n element.style.width = width.toString();\n element.style.maxWidth = width.toString();\n element.style.minWidth = width.toString();\n}\n\nfunction setElementHeight(element, height) {\n if (height === 'flex') {\n element.style.removeProperty('height');\n element.style.removeProperty('minHeight');\n element.style.removeProperty('maxHeight');\n element.style.flex = '1 1 auto';\n } else {\n setFixedHeight(element, height);\n }\n}\n\nfunction setFixedHeight(element, height) {\n height = formatSize(height);\n element.style.height = height.toString();\n element.style.maxHeight = height.toString();\n element.style.minHeight = height.toString();\n}\n\nfunction formatSize(size) {\n if (typeof size === 'number') {\n return size + \"px\";\n }\n\n return size;\n}\n/**\n * Returns true if it is a DOM node\n * taken from: http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object\n * @param {any} o\n * @return {boolean}\n */\n\n\nfunction isNode(o) {\n return typeof Node === 'function' ? o instanceof Node : o && typeof o === 'object' && typeof o.nodeType === 'number' && typeof o.nodeName === 'string';\n} //\n\n/**\n * Returns true if it is a DOM element\n * taken from: http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object\n * @param {any} o\n * @returns {boolean}\n */\n\n\nfunction isElement(o) {\n return typeof HTMLElement === 'function' ? o instanceof HTMLElement //DOM2\n : o && isNonNullObject(o) && o.nodeType === 1 && typeof o.nodeName === 'string';\n}\n\nfunction isNodeOrElement(o) {\n return isNode(o) || isElement(o);\n}\n/**\n * Makes a copy of a node list into a list\n * @param {NodeList} nodeList\n * @returns {Node[]}\n */\n\n\nfunction copyNodeList(nodeList) {\n if (nodeList == null) {\n return [];\n }\n\n var result = [];\n nodeListForEach(nodeList, function (node) {\n return result.push(node);\n });\n return result;\n}\n\nfunction iterateNamedNodeMap(map, callback) {\n if (!map) {\n return;\n }\n\n for (var i = 0; i < map.length; i++) {\n var attr = map[i];\n callback(attr.name, attr.value);\n }\n}\n/** @deprecated */\n\n\nfunction setCheckboxState(eCheckbox, state) {\n if (typeof state === 'boolean') {\n eCheckbox.checked = state;\n eCheckbox.indeterminate = false;\n } else {\n // isNodeSelected returns back undefined if it's a group and the children\n // are a mix of selected and unselected\n eCheckbox.indeterminate = true;\n }\n}\n\nfunction addOrRemoveAttribute(element, name, value) {\n if (value == null) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value.toString());\n }\n}\n\nfunction nodeListForEach(nodeList, action) {\n if (nodeList == null) {\n return;\n }\n\n for (var i = 0; i < nodeList.length; i++) {\n action(nodeList[i]);\n }\n}\n\nvar DomUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n radioCssClass: radioCssClass,\n isFocusableFormField: isFocusableFormField,\n setDisplayed: setDisplayed,\n setVisible: setVisible,\n setDisabled: setDisabled,\n isElementChildOfClass: isElementChildOfClass,\n getElementSize: getElementSize,\n getInnerHeight: getInnerHeight,\n getInnerWidth: getInnerWidth,\n getAbsoluteHeight: getAbsoluteHeight,\n getAbsoluteWidth: getAbsoluteWidth,\n isRtlNegativeScroll: isRtlNegativeScroll,\n getScrollLeft: getScrollLeft,\n setScrollLeft: setScrollLeft,\n clearElement: clearElement,\n removeElement: removeElement,\n removeFromParent: removeFromParent,\n isVisible: isVisible,\n loadTemplate: loadTemplate,\n appendHtml: appendHtml,\n getElementAttribute: getElementAttribute,\n offsetHeight: offsetHeight,\n offsetWidth: offsetWidth,\n ensureDomOrder: ensureDomOrder,\n setDomChildOrder: setDomChildOrder,\n insertWithDomOrder: insertWithDomOrder,\n prependDC: prependDC,\n addStylesToElement: addStylesToElement,\n isHorizontalScrollShowing: isHorizontalScrollShowing,\n isVerticalScrollShowing: isVerticalScrollShowing,\n setElementWidth: setElementWidth,\n setFixedWidth: setFixedWidth,\n setElementHeight: setElementHeight,\n setFixedHeight: setFixedHeight,\n formatSize: formatSize,\n isNode: isNode,\n isElement: isElement,\n isNodeOrElement: isNodeOrElement,\n copyNodeList: copyNodeList,\n iterateNamedNodeMap: iterateNamedNodeMap,\n setCheckboxState: setCheckboxState,\n addOrRemoveAttribute: addOrRemoveAttribute,\n nodeListForEach: nodeListForEach\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n/** @deprecated */\n\nfunction getNameOfClass(theClass) {\n var funcNameRegex = /function (.{1,})\\(/;\n var funcAsString = theClass.toString();\n var results = funcNameRegex.exec(funcAsString);\n return results && results.length > 1 ? results[1] : \"\";\n}\n\nfunction findLineByLeastSquares(values) {\n var len = values.length;\n var maxDecimals = 0;\n\n if (len <= 1) {\n return values;\n }\n\n for (var i = 0; i < values.length; i++) {\n var value = values[i];\n var splitExponent = value.toString().split('e-');\n\n if (splitExponent.length > 1) {\n maxDecimals = Math.max(maxDecimals, parseInt(splitExponent[1], 10));\n continue;\n }\n\n if (Math.floor(value) === value) {\n continue;\n }\n\n maxDecimals = Math.max(maxDecimals, value.toString().split('.')[1].length);\n }\n\n var sum_x = 0;\n var sum_y = 0;\n var sum_xy = 0;\n var sum_xx = 0;\n var y = 0;\n\n for (var x = 0; x < len; x++) {\n y = values[x];\n sum_x += x;\n sum_y += y;\n sum_xx += x * x;\n sum_xy += x * y;\n }\n\n var m = (len * sum_xy - sum_x * sum_y) / (len * sum_xx - sum_x * sum_x);\n var b = sum_y / len - m * sum_x / len;\n var result = [];\n\n for (var x = 0; x <= len; x++) {\n result.push(parseFloat((x * m + b).toFixed(maxDecimals)));\n }\n\n return result;\n}\n/**\n * Converts a CSS object into string\n * @param {Object} stylesToUse an object eg: {color: 'black', top: '25px'}\n * @return {string} A string like \"color: black; top: 25px;\" for html\n */\n\n\nfunction cssStyleObjectToMarkup(stylesToUse) {\n if (!stylesToUse) {\n return '';\n }\n\n var resParts = [];\n iterateObject(stylesToUse, function (styleKey, styleValue) {\n var styleKeyDashed = camelCaseToHyphen(styleKey);\n resParts.push(styleKeyDashed + \": \" + styleValue + \";\");\n });\n return resParts.join(' ');\n}\n/**\n * Displays a message to the browser. this is useful in iPad, where you can't easily see the console.\n * so the javascript code can use this to give feedback. this is NOT intended to be called in production.\n * it is intended the AG Grid developer calls this to troubleshoot, but then takes out the calls before\n * checking in.\n * @param {string} msg\n */\n\n\nfunction message(msg) {\n var eMessage = document.createElement('div');\n var eBox = document.querySelector('#__ag__message');\n eMessage.innerHTML = msg;\n\n if (!eBox) {\n var template = \"
\";\n eBox = loadTemplate(template);\n\n if (document.body) {\n document.body.appendChild(eBox);\n }\n }\n\n eBox.insertBefore(eMessage, eBox.children[0]);\n}\n/**\n * cell renderers are used in a few places. they bind to dom slightly differently to other cell renderes as they\n * can return back strings (instead of html elemnt) in the getGui() method. common code placed here to handle that.\n * @param {AgPromise} cellRendererPromise\n * @param {HTMLElement} eTarget\n */\n\n\nfunction bindCellRendererToHtmlElement(cellRendererPromise, eTarget) {\n cellRendererPromise.then(function (cellRenderer) {\n var gui = cellRenderer.getGui();\n\n if (gui != null) {\n if (typeof gui === 'object') {\n eTarget.appendChild(gui);\n } else {\n eTarget.innerHTML = gui;\n }\n }\n });\n}\n\nvar GeneralUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n getNameOfClass: getNameOfClass,\n findLineByLeastSquares: findLineByLeastSquares,\n cssStyleObjectToMarkup: cssStyleObjectToMarkup,\n message: message,\n bindCellRendererToHtmlElement: bindCellRendererToHtmlElement\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n// ARIA HELPER FUNCTIONS\n\nfunction setAriaAttribute(element, attribute, value) {\n element.setAttribute(ariaAttributeName(attribute), value.toString());\n}\n\nfunction removeAriaAttribute(element, attribute) {\n element.removeAttribute(ariaAttributeName(attribute));\n}\n\nfunction ariaAttributeName(attribute) {\n return \"aria-\" + attribute;\n}\n\nfunction setAriaRole(element, role) {\n if (role) {\n element.setAttribute('role', role);\n } else {\n element.removeAttribute('role');\n }\n}\n\nfunction getAriaSortState(column) {\n var sort;\n\n if (column.isSortAscending()) {\n sort = 'ascending';\n } else if (column.isSortDescending()) {\n sort = 'descending';\n } else {\n sort = 'none';\n }\n\n return sort;\n} // ARIA ATTRIBUTE GETTERS\n\n\nfunction getAriaLevel(element) {\n return parseInt(element.getAttribute('aria-level'), 10);\n}\n\nfunction getAriaPosInSet(element) {\n return parseInt(element.getAttribute('aria-posinset'), 10);\n}\n\nfunction getAriaDescribedBy(element) {\n return element.getAttribute('aria-describedby') || '';\n} // ARIA ATTRIBUTE SETTERS\n\n\nfunction setAriaLabel(element, label) {\n var key = 'label';\n\n if (label) {\n setAriaAttribute(element, key, label);\n } else {\n removeAriaAttribute(element, key);\n }\n}\n\nfunction setAriaLabelledBy(element, labelledBy) {\n var key = 'labelledby';\n\n if (labelledBy) {\n setAriaAttribute(element, key, labelledBy);\n } else {\n removeAriaAttribute(element, key);\n }\n}\n\nfunction _setAriaDescription(element, description) {\n var key = 'description';\n\n if (description) {\n setAriaAttribute(element, key, description);\n } else {\n removeAriaAttribute(element, key);\n }\n}\n\nfunction setAriaDescribedBy(element, describedby) {\n var key = 'describedby';\n\n if (describedby) {\n setAriaAttribute(element, key, describedby);\n } else {\n removeAriaAttribute(element, key);\n }\n}\n\nfunction setAriaLevel(element, level) {\n setAriaAttribute(element, 'level', level);\n}\n\nfunction setAriaDisabled(element, disabled) {\n setAriaAttribute(element, 'disabled', disabled);\n}\n\nfunction setAriaExpanded(element, expanded) {\n setAriaAttribute(element, 'expanded', expanded);\n}\n\nfunction removeAriaExpanded(element) {\n removeAriaAttribute(element, 'expanded');\n}\n\nfunction setAriaSetSize(element, setsize) {\n setAriaAttribute(element, 'setsize', setsize);\n}\n\nfunction setAriaPosInSet(element, position) {\n setAriaAttribute(element, 'posinset', position);\n}\n\nfunction setAriaMultiSelectable(element, multiSelectable) {\n setAriaAttribute(element, 'multiselectable', multiSelectable);\n}\n\nfunction setAriaRowCount(element, rowCount) {\n setAriaAttribute(element, 'rowcount', rowCount);\n}\n\nfunction _setAriaRowIndex(element, rowIndex) {\n setAriaAttribute(element, 'rowindex', rowIndex);\n}\n\nfunction setAriaColCount(element, colCount) {\n setAriaAttribute(element, 'colcount', colCount);\n}\n\nfunction setAriaColIndex(element, colIndex) {\n setAriaAttribute(element, 'colindex', colIndex);\n}\n\nfunction setAriaColSpan(element, colSpan) {\n setAriaAttribute(element, 'colspan', colSpan);\n}\n\nfunction _setAriaSort(element, sort) {\n setAriaAttribute(element, 'sort', sort);\n}\n\nfunction removeAriaSort(element) {\n removeAriaAttribute(element, 'sort');\n}\n\nfunction setAriaSelected(element, selected) {\n var attributeName = 'selected';\n\n if (selected) {\n setAriaAttribute(element, attributeName, selected);\n } else {\n removeAriaAttribute(element, attributeName);\n }\n}\n\nfunction setAriaChecked(element, checked) {\n setAriaAttribute(element, 'checked', checked === undefined ? 'mixed' : checked);\n}\n\nvar AriaUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n setAriaRole: setAriaRole,\n getAriaSortState: getAriaSortState,\n getAriaLevel: getAriaLevel,\n getAriaPosInSet: getAriaPosInSet,\n getAriaDescribedBy: getAriaDescribedBy,\n setAriaLabel: setAriaLabel,\n setAriaLabelledBy: setAriaLabelledBy,\n setAriaDescription: _setAriaDescription,\n setAriaDescribedBy: setAriaDescribedBy,\n setAriaLevel: setAriaLevel,\n setAriaDisabled: setAriaDisabled,\n setAriaExpanded: setAriaExpanded,\n removeAriaExpanded: removeAriaExpanded,\n setAriaSetSize: setAriaSetSize,\n setAriaPosInSet: setAriaPosInSet,\n setAriaMultiSelectable: setAriaMultiSelectable,\n setAriaRowCount: setAriaRowCount,\n setAriaRowIndex: _setAriaRowIndex,\n setAriaColCount: setAriaColCount,\n setAriaColIndex: setAriaColIndex,\n setAriaColSpan: setAriaColSpan,\n setAriaSort: _setAriaSort,\n removeAriaSort: removeAriaSort,\n setAriaSelected: setAriaSelected,\n setAriaChecked: setAriaChecked\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nvar __read$i = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n/**\n * Serialises a Date to a string of format `yyyy-MM-dd HH:mm:ss`.\n * An alternative separator can be provided to be used instead of hyphens.\n * @param date The date to serialise\n * @param includeTime Whether to include the time in the serialised string\n * @param separator The separator to use between date parts\n */\n\n\nfunction serialiseDate(date, includeTime, separator) {\n if (includeTime === void 0) {\n includeTime = true;\n }\n\n if (separator === void 0) {\n separator = '-';\n }\n\n if (!date) {\n return null;\n }\n\n var serialised = [date.getFullYear(), date.getMonth() + 1, date.getDate()].map(function (part) {\n return padStartWidthZeros(part, 2);\n }).join(separator);\n\n if (includeTime) {\n serialised += ' ' + [date.getHours(), date.getMinutes(), date.getSeconds()].map(function (part) {\n return padStartWidthZeros(part, 2);\n }).join(':');\n }\n\n return serialised;\n}\n\nvar calculateOrdinal = function calculateOrdinal(value) {\n if (value > 3 && value < 21) {\n return 'th';\n }\n\n var remainder = value % 10;\n\n switch (remainder) {\n case 1:\n return \"st\";\n\n case 2:\n return \"nd\";\n\n case 3:\n return \"rd\";\n }\n\n return 'th';\n};\n/**\n * Serialises a Date to a string of format the defined format, does not include time.\n * @param date The date to serialise\n * @param format The string to format the date to, defaults to YYYY-MM-DD\n */\n\n\nfunction dateToFormattedString(date, format) {\n if (format === void 0) {\n format = 'YYYY-MM-DD';\n }\n\n var fullYear = padStartWidthZeros(date.getFullYear(), 4);\n var months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];\n var days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];\n var replace = {\n YYYY: function YYYY() {\n return fullYear.slice(fullYear.length - 4, fullYear.length);\n },\n YY: function YY() {\n return fullYear.slice(fullYear.length - 2, fullYear.length);\n },\n Y: function Y() {\n return \"\" + date.getFullYear();\n },\n MMMM: function MMMM() {\n return months[date.getMonth()];\n },\n MMM: function MMM() {\n return months[date.getMonth()].slice(0, 3);\n },\n MM: function MM() {\n return padStartWidthZeros(date.getMonth() + 1, 2);\n },\n Mo: function Mo() {\n return \"\" + (date.getMonth() + 1) + calculateOrdinal(date.getMonth() + 1);\n },\n M: function M() {\n return \"\" + (date.getMonth() + 1);\n },\n Do: function Do() {\n return \"\" + date.getDate() + calculateOrdinal(date.getDate());\n },\n DD: function DD() {\n return padStartWidthZeros(date.getDate(), 2);\n },\n D: function D() {\n return \"\" + date.getDate();\n },\n dddd: function dddd() {\n return days[date.getDay()];\n },\n ddd: function ddd() {\n return days[date.getDay()].slice(0, 3);\n },\n dd: function dd() {\n return days[date.getDay()].slice(0, 2);\n },\n do: function _do() {\n return \"\" + date.getDay() + calculateOrdinal(date.getDay());\n },\n d: function d() {\n return \"\" + date.getDay();\n }\n };\n var regexp = new RegExp(Object.keys(replace).join('|'), 'g');\n return format.replace(regexp, function (match) {\n if (match in replace) {\n return replace[match]();\n }\n\n return match;\n });\n}\n/**\n * Parses a date and time from a string in the format `yyyy-MM-dd HH:mm:ss`\n */\n\n\nfunction parseDateTimeFromString(value) {\n if (!value) {\n return null;\n }\n\n var _a = __read$i(value.split(' '), 2),\n dateStr = _a[0],\n timeStr = _a[1];\n\n if (!dateStr) {\n return null;\n }\n\n var fields = dateStr.split('-').map(function (f) {\n return parseInt(f, 10);\n });\n\n if (fields.filter(function (f) {\n return !isNaN(f);\n }).length !== 3) {\n return null;\n }\n\n var _b = __read$i(fields, 3),\n year = _b[0],\n month = _b[1],\n day = _b[2];\n\n var date = new Date(year, month - 1, day);\n\n if (date.getFullYear() !== year || date.getMonth() !== month - 1 || date.getDate() !== day) {\n // date was not parsed as expected so must have been invalid\n return null;\n }\n\n if (!timeStr || timeStr === '00:00:00') {\n return date;\n }\n\n var _c = __read$i(timeStr.split(':').map(function (part) {\n return parseInt(part, 10);\n }), 3),\n hours = _c[0],\n minutes = _c[1],\n seconds = _c[2];\n\n if (hours >= 0 && hours < 24) {\n date.setHours(hours);\n }\n\n if (minutes >= 0 && minutes < 60) {\n date.setMinutes(minutes);\n }\n\n if (seconds >= 0 && seconds < 60) {\n date.setSeconds(seconds);\n }\n\n return date;\n}\n\nvar DateUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n serialiseDate: serialiseDate,\n dateToFormattedString: dateToFormattedString,\n parseDateTimeFromString: parseDateTimeFromString\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n//\n// IMPORTANT NOTE!\n//\n// If you change the list below, copy/paste the new content into the docs page javascript-grid-icons\n//\n\nvar iconNameClassMap = {\n // header column group shown when expanded (click to contract)\n columnGroupOpened: 'expanded',\n // header column group shown when contracted (click to expand)\n columnGroupClosed: 'contracted',\n // tool panel column group contracted (click to expand)\n columnSelectClosed: 'tree-closed',\n // tool panel column group expanded (click to contract)\n columnSelectOpen: 'tree-open',\n // column tool panel header expand/collapse all button, shown when some children are expanded and\n // others are collapsed\n columnSelectIndeterminate: 'tree-indeterminate',\n // shown on ghost icon while dragging column to the side of the grid to pin\n columnMovePin: 'pin',\n // shown on ghost icon while dragging over part of the page that is not a drop zone\n columnMoveHide: 'eye-slash',\n // shown on ghost icon while dragging columns to reorder\n columnMoveMove: 'arrows',\n // animating icon shown when dragging a column to the right of the grid causes horizontal scrolling\n columnMoveLeft: 'left',\n // animating icon shown when dragging a column to the left of the grid causes horizontal scrolling\n columnMoveRight: 'right',\n // shown on ghost icon while dragging over Row Groups drop zone\n columnMoveGroup: 'group',\n // shown on ghost icon while dragging over Values drop zone\n columnMoveValue: 'aggregation',\n // shown on ghost icon while dragging over pivot drop zone\n columnMovePivot: 'pivot',\n // shown on ghost icon while dragging over drop zone that doesn't support it, e.g.\n // string column over aggregation drop zone\n dropNotAllowed: 'not-allowed',\n // shown on row group when contracted (click to expand)\n groupContracted: 'tree-closed',\n // shown on row group when expanded (click to contract)\n groupExpanded: 'tree-open',\n // context menu chart item\n chart: 'chart',\n // chart window title bar\n close: 'cross',\n // X (remove) on column 'pill' after adding it to a drop zone list\n cancel: 'cancel',\n // indicates the currently active pin state in the \"Pin column\" sub-menu of the column menu\n check: 'tick',\n // \"go to first\" button in pagination controls\n first: 'first',\n // \"go to previous\" button in pagination controls\n previous: 'previous',\n // \"go to next\" button in pagination controls\n next: 'next',\n // \"go to last\" button in pagination controls\n last: 'last',\n // shown on top right of chart when chart is linked to range data (click to unlink)\n linked: 'linked',\n // shown on top right of chart when chart is not linked to range data (click to link)\n unlinked: 'unlinked',\n // \"Choose colour\" button on chart settings tab\n colorPicker: 'color-picker',\n // rotating spinner shown by the loading cell renderer\n groupLoading: 'loading',\n // button to launch enterprise column menu\n menu: 'menu',\n // filter tool panel tab\n filter: 'filter',\n // column tool panel tab\n columns: 'columns',\n // button in chart regular size window title bar (click to maximise)\n maximize: 'maximize',\n // button in chart maximised window title bar (click to make regular size)\n minimize: 'minimize',\n // \"Pin column\" item in column header menu\n menuPin: 'pin',\n // \"Value aggregation\" column menu item (shown on numeric columns when grouping is active)\"\n menuValue: 'aggregation',\n // \"Group by {column-name}\" item in column header menu\n menuAddRowGroup: 'group',\n // \"Un-Group by {column-name}\" item in column header menu\n menuRemoveRowGroup: 'group',\n // context menu copy item\n clipboardCopy: 'copy',\n // context menu paste item\n clipboardPaste: 'paste',\n // identifies the pivot drop zone\n pivotPanel: 'pivot',\n // \"Row groups\" drop zone in column tool panel\n rowGroupPanel: 'group',\n // columns tool panel Values drop zone\n valuePanel: 'aggregation',\n // drag handle used to pick up draggable columns\n columnDrag: 'grip',\n // drag handle used to pick up draggable rows\n rowDrag: 'grip',\n // context menu export item\n save: 'save',\n // csv export\n csvExport: 'csv',\n // excel export,\n excelExport: 'excel',\n // icon on dropdown editors\n smallDown: 'small-down',\n // version of small-right used in RTL mode\n smallLeft: 'small-left',\n // separater between column 'pills' when you add multiple columns to the header drop zone\n smallRight: 'small-right',\n smallUp: 'small-up',\n // show on column header when column is sorted ascending\n sortAscending: 'asc',\n // show on column header when column is sorted descending\n sortDescending: 'desc',\n // show on column header when column has no sort, only when enabled with gridOptions.unSortIcon=true\n sortUnSort: 'none'\n};\n/**\n * If icon provided, use this (either a string, or a function callback).\n * if not, then use the default icon from the theme\n * @param {string} iconName\n * @param {GridOptionsWrapper} gridOptionsWrapper\n * @param {Column | null} [column]\n * @returns {HTMLElement}\n */\n\nfunction createIcon(iconName, gridOptionsWrapper, column) {\n var iconContents = createIconNoSpan(iconName, gridOptionsWrapper, column);\n\n if (iconContents && iconContents.className.indexOf('ag-icon') > -1) {\n return iconContents;\n }\n\n var eResult = document.createElement('span');\n eResult.appendChild(iconContents);\n return eResult;\n}\n\nfunction createIconNoSpan(iconName, gridOptionsWrapper, column, forceCreate) {\n var userProvidedIcon = null; // check col for icon first\n\n var icons = column && column.getColDef().icons;\n\n if (icons) {\n userProvidedIcon = icons[iconName];\n } // if not in col, try grid options\n\n\n if (gridOptionsWrapper && !userProvidedIcon) {\n var optionsIcons = gridOptionsWrapper.getIcons();\n\n if (optionsIcons) {\n userProvidedIcon = optionsIcons[iconName];\n }\n } // now if user provided, use it\n\n\n if (userProvidedIcon) {\n var rendererResult = void 0;\n\n if (typeof userProvidedIcon === 'function') {\n rendererResult = userProvidedIcon();\n } else if (typeof userProvidedIcon === 'string') {\n rendererResult = userProvidedIcon;\n } else {\n throw new Error('icon from grid options needs to be a string or a function');\n }\n\n if (typeof rendererResult === 'string') {\n return loadTemplate(rendererResult);\n }\n\n if (isNodeOrElement(rendererResult)) {\n return rendererResult;\n }\n\n console.warn('AG Grid: iconRenderer should return back a string or a dom object');\n } else {\n var span = document.createElement('span');\n var cssClass = iconNameClassMap[iconName];\n\n if (!cssClass) {\n if (!forceCreate) {\n console.warn(\"AG Grid: Did not find icon \" + iconName);\n cssClass = '';\n } else {\n cssClass = iconName;\n }\n }\n\n span.setAttribute('class', \"ag-icon ag-icon-\" + cssClass);\n span.setAttribute('unselectable', 'on');\n setAriaRole(span, 'presentation');\n return span;\n }\n}\n\nvar IconUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n iconNameClassMap: iconNameClassMap,\n createIcon: createIcon,\n createIconNoSpan: createIconNoSpan\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nvar KeyCode =\n/** @class */\nfunction () {\n function KeyCode() {}\n\n KeyCode.BACKSPACE = 'Backspace';\n KeyCode.TAB = 'Tab';\n KeyCode.ENTER = 'Enter';\n KeyCode.ESCAPE = 'Escape';\n KeyCode.SPACE = ' ';\n KeyCode.LEFT = 'ArrowLeft';\n KeyCode.UP = 'ArrowUp';\n KeyCode.RIGHT = 'ArrowRight';\n KeyCode.DOWN = 'ArrowDown';\n KeyCode.DELETE = 'Delete';\n KeyCode.F2 = 'F2';\n KeyCode.PAGE_UP = 'PageUp';\n KeyCode.PAGE_DOWN = 'PageDown';\n KeyCode.PAGE_HOME = 'Home';\n KeyCode.PAGE_END = 'End'; // these should be used with `event.code` instead of `event.key`\n // as `event.key` changes when non-latin keyboards are used\n\n KeyCode.A = 'KeyA';\n KeyCode.C = 'KeyC';\n KeyCode.V = 'KeyV';\n KeyCode.D = 'KeyD';\n KeyCode.Z = 'KeyZ';\n KeyCode.Y = 'KeyY';\n return KeyCode;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar NUMPAD_DEL_NUMLOCK_ON_KEY = 'Del'; // Using legacy values to match AZERTY keyboards\n\nvar NUMPAD_DEL_NUMLOCK_ON_KEYCODE = 46;\nvar A_KEYCODE = 65;\nvar C_KEYCODE = 67;\nvar V_KEYCODE = 86;\nvar D_KEYCODE = 68;\nvar Z_KEYCODE = 90;\nvar Y_KEYCODE = 89;\n\nfunction isEventFromPrintableCharacter(event) {\n // no allowed printable chars have alt or ctrl key combinations\n if (event.altKey || event.ctrlKey || event.metaKey) {\n return false;\n } // if key is length 1, eg if it is 'a' for the a key, or '2' for the '2' key.\n // non-printable characters have names, eg 'Enter' or 'Backspace'.\n\n\n var printableCharacter = event.key.length === 1; // IE11 & Edge treat the numpad del key differently - with numlock on we get \"Del\" for key,\n // so this addition checks if its IE11/Edge and handles that specific case the same was as all other browsers\n\n var numpadDelWithNumlockOnForEdgeOrIe = isNumpadDelWithNumLockOnForEdge(event);\n return printableCharacter || numpadDelWithNumlockOnForEdgeOrIe;\n}\n/**\n * Allows user to tell the grid to skip specific keyboard events\n * @param {GridOptionsWrapper} gridOptionsWrapper\n * @param {KeyboardEvent} keyboardEvent\n * @param {RowNode} rowNode\n * @param {Column} column\n * @param {boolean} editing\n * @returns {boolean}\n */\n\n\nfunction isUserSuppressingKeyboardEvent(gridOptionsWrapper, keyboardEvent, rowNode, column, editing) {\n var gridOptionsFunc = gridOptionsWrapper.getSuppressKeyboardEventFunc();\n var colDefFunc = column ? column.getColDef().suppressKeyboardEvent : undefined; // if no callbacks provided by user, then do nothing\n\n if (!gridOptionsFunc && !colDefFunc) {\n return false;\n }\n\n var params = {\n event: keyboardEvent,\n editing: editing,\n column: column,\n api: gridOptionsWrapper.getApi(),\n node: rowNode,\n data: rowNode.data,\n colDef: column.getColDef(),\n context: gridOptionsWrapper.getContext(),\n columnApi: gridOptionsWrapper.getColumnApi()\n }; // colDef get first preference on suppressing events\n\n if (colDefFunc) {\n var colDefFuncResult = colDefFunc(params); // if colDef func suppressed, then return now, no need to call gridOption func\n\n if (colDefFuncResult) {\n return true;\n }\n }\n\n if (gridOptionsFunc) {\n // if gridOption func, return the result\n return gridOptionsFunc(params);\n } // otherwise return false, don't suppress, as colDef didn't suppress and no func on gridOptions\n\n\n return false;\n}\n\nfunction isUserSuppressingHeaderKeyboardEvent(gridOptionsWrapper, keyboardEvent, headerRowIndex, column) {\n var colDef = column.getDefinition();\n var colDefFunc = colDef && colDef.suppressHeaderKeyboardEvent;\n\n if (!exists(colDefFunc)) {\n return false;\n }\n\n var params = {\n api: gridOptionsWrapper.getApi(),\n columnApi: gridOptionsWrapper.getColumnApi(),\n context: gridOptionsWrapper.getContext(),\n colDef: colDef,\n column: column,\n headerRowIndex: headerRowIndex,\n event: keyboardEvent\n };\n return !!colDefFunc(params);\n}\n\nfunction isNumpadDelWithNumLockOnForEdge(event) {\n return isBrowserEdge() && event.key === NUMPAD_DEL_NUMLOCK_ON_KEY && event.charCode === NUMPAD_DEL_NUMLOCK_ON_KEYCODE;\n}\n\nfunction normaliseQwertyAzerty(keyboardEvent) {\n var keyCode = keyboardEvent.keyCode;\n var code;\n\n switch (keyCode) {\n case A_KEYCODE:\n code = KeyCode.A;\n break;\n\n case C_KEYCODE:\n code = KeyCode.C;\n break;\n\n case V_KEYCODE:\n code = KeyCode.V;\n break;\n\n case D_KEYCODE:\n code = KeyCode.D;\n break;\n\n case Z_KEYCODE:\n code = KeyCode.Z;\n break;\n\n case Y_KEYCODE:\n code = KeyCode.Y;\n break;\n\n default:\n code = keyboardEvent.code;\n }\n\n return code;\n}\n\nvar KeyboardUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n isEventFromPrintableCharacter: isEventFromPrintableCharacter,\n isUserSuppressingKeyboardEvent: isUserSuppressingKeyboardEvent,\n isUserSuppressingHeaderKeyboardEvent: isUserSuppressingHeaderKeyboardEvent,\n normaliseQwertyAzerty: normaliseQwertyAzerty\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n/**\n * `True` if the event is close to the original event by X pixels either vertically or horizontally.\n * we only start dragging after X pixels so this allows us to know if we should start dragging yet.\n * @param {MouseEvent | TouchEvent} e1\n * @param {MouseEvent | TouchEvent} e2\n * @param {number} pixelCount\n * @returns {boolean}\n */\n\nfunction areEventsNear(e1, e2, pixelCount) {\n // by default, we wait 4 pixels before starting the drag\n if (pixelCount === 0) {\n return false;\n }\n\n var diffX = Math.abs(e1.clientX - e2.clientX);\n var diffY = Math.abs(e1.clientY - e2.clientY);\n return Math.max(diffX, diffY) <= pixelCount;\n}\n\nvar MouseUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n areEventsNear: areEventsNear\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n/**\n * Gets called by: a) ClientSideNodeManager and b) GroupStage to do sorting.\n * when in ClientSideNodeManager we always have indexes (as this sorts the items the\n * user provided) but when in GroupStage, the nodes can contain filler nodes that\n * don't have order id's\n * @param {RowNode[]} rowNodes\n * @param {Object} rowNodeOrder\n */\n\nfunction sortRowNodesByOrder(rowNodes, rowNodeOrder) {\n if (!rowNodes) {\n return;\n }\n\n var comparator = function comparator(nodeA, nodeB) {\n var positionA = rowNodeOrder[nodeA.id];\n var positionB = rowNodeOrder[nodeB.id];\n var aHasIndex = positionA !== undefined;\n var bHasIndex = positionB !== undefined;\n var bothNodesAreUserNodes = aHasIndex && bHasIndex;\n var bothNodesAreFillerNodes = !aHasIndex && !bHasIndex;\n\n if (bothNodesAreUserNodes) {\n // when comparing two nodes the user has provided, they always\n // have indexes\n return positionA - positionB;\n }\n\n if (bothNodesAreFillerNodes) {\n // when comparing two filler nodes, we have no index to compare them\n // against, however we want this sorting to be deterministic, so that\n // the rows don't jump around as the user does delta updates. so we\n // want the same sort result. so we use the __objectId - which doesn't make sense\n // from a sorting point of view, but does give consistent behaviour between\n // calls. otherwise groups jump around as delta updates are done.\n // note: previously here we used nodeId, however this gave a strange order\n // as string ordering of numbers is wrong, so using id based on creation order\n // as least gives better looking order.\n return nodeA.__objectId - nodeB.__objectId;\n }\n\n if (aHasIndex) {\n return 1;\n }\n\n return -1;\n }; // check if the list first needs sorting\n\n\n var rowNodeA;\n var rowNodeB;\n var atLeastOneOutOfOrder = false;\n\n for (var i = 0; i < rowNodes.length - 1; i++) {\n rowNodeA = rowNodes[i];\n rowNodeB = rowNodes[i + 1];\n\n if (comparator(rowNodeA, rowNodeB) > 0) {\n atLeastOneOutOfOrder = true;\n break;\n }\n }\n\n if (atLeastOneOutOfOrder) {\n rowNodes.sort(comparator);\n }\n}\n\nfunction traverseNodesWithKey(nodes, callback) {\n var keyParts = [];\n recursiveSearchNodes(nodes);\n\n function recursiveSearchNodes(currentNodes) {\n if (!currentNodes) {\n return;\n }\n\n currentNodes.forEach(function (node) {\n // also checking for children for tree data\n if (node.group || node.hasChildren()) {\n keyParts.push(node.key);\n var key = keyParts.join('|');\n callback(node, key);\n recursiveSearchNodes(node.childrenAfterGroup);\n keyParts.pop();\n }\n });\n }\n}\n\nvar RowNodeUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n sortRowNodesByOrder: sortRowNodesByOrder,\n traverseNodesWithKey: traverseNodesWithKey\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nfunction convertToSet(list) {\n var set = new Set();\n list.forEach(function (x) {\n return set.add(x);\n });\n return set;\n}\n\nvar SetUtils = /*#__PURE__*/Object.freeze({\n __proto__: null,\n convertToSet: convertToSet\n});\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nvar __assign$e = undefined && undefined.__assign || function () {\n __assign$e = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$e.apply(this, arguments);\n};\n\nvar utils = __assign$e(__assign$e(__assign$e(__assign$e(__assign$e(__assign$e(__assign$e(__assign$e(__assign$e(__assign$e(__assign$e(__assign$e(__assign$e(__assign$e(__assign$e(__assign$e(__assign$e(__assign$e(__assign$e(__assign$e({}, GeneralUtils), AriaUtils), ArrayUtils), BrowserUtils), CsvUtils), DateUtils), DomUtils), EventUtils), FunctionUtils), FuzzyMatchUtils), GenericUtils), IconUtils), KeyboardUtils), MapUtils), MouseUtils), NumberUtils), ObjectUtils), RowNodeUtils), SetUtils), StringUtils);\n\nvar _ = utils;\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nvar NumberSequence =\n/** @class */\nfunction () {\n function NumberSequence(initValue, step) {\n if (initValue === void 0) {\n initValue = 0;\n }\n\n if (step === void 0) {\n step = 1;\n }\n\n this.nextValue = initValue;\n this.step = step;\n }\n\n NumberSequence.prototype.next = function () {\n var valToReturn = this.nextValue;\n this.nextValue += this.step;\n return valToReturn;\n };\n\n NumberSequence.prototype.peek = function () {\n return this.nextValue;\n };\n\n NumberSequence.prototype.skip = function (count) {\n this.nextValue += count;\n };\n\n return NumberSequence;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar AgPromiseStatus;\n\n(function (AgPromiseStatus) {\n AgPromiseStatus[AgPromiseStatus[\"IN_PROGRESS\"] = 0] = \"IN_PROGRESS\";\n AgPromiseStatus[AgPromiseStatus[\"RESOLVED\"] = 1] = \"RESOLVED\";\n})(AgPromiseStatus || (AgPromiseStatus = {}));\n\nvar AgPromise =\n/** @class */\nfunction () {\n function AgPromise(callback) {\n var _this = this;\n\n this.status = AgPromiseStatus.IN_PROGRESS;\n this.resolution = null;\n this.waiters = [];\n callback(function (value) {\n return _this.onDone(value);\n }, function (params) {\n return _this.onReject(params);\n });\n }\n\n AgPromise.all = function (promises) {\n return new AgPromise(function (resolve) {\n var remainingToResolve = promises.length;\n var combinedValues = new Array(remainingToResolve);\n promises.forEach(function (promise, index) {\n promise.then(function (value) {\n combinedValues[index] = value;\n remainingToResolve--;\n\n if (remainingToResolve === 0) {\n resolve(combinedValues);\n }\n });\n });\n });\n };\n\n AgPromise.resolve = function (value) {\n if (value === void 0) {\n value = null;\n }\n\n return new AgPromise(function (resolve) {\n return resolve(value);\n });\n };\n\n AgPromise.prototype.then = function (func) {\n var _this = this;\n\n return new AgPromise(function (resolve) {\n if (_this.status === AgPromiseStatus.RESOLVED) {\n resolve(func(_this.resolution));\n } else {\n _this.waiters.push(function (value) {\n return resolve(func(value));\n });\n }\n });\n };\n\n AgPromise.prototype.resolveNow = function (ifNotResolvedValue, ifResolved) {\n return this.status === AgPromiseStatus.RESOLVED ? ifResolved(this.resolution) : ifNotResolvedValue;\n };\n\n AgPromise.prototype.onDone = function (value) {\n this.status = AgPromiseStatus.RESOLVED;\n this.resolution = value;\n this.waiters.forEach(function (waiter) {\n return waiter(value);\n });\n };\n\n AgPromise.prototype.onReject = function (params) {\n console.warn('TBI');\n };\n\n return AgPromise;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n/**\n * A Util Class only used when debugging for printing time to console\n */\n\n\nvar Timer =\n/** @class */\nfunction () {\n function Timer() {\n this.timestamp = new Date().getTime();\n }\n\n Timer.prototype.print = function (msg) {\n var duration = new Date().getTime() - this.timestamp;\n console.info(msg + \" = \" + duration);\n this.timestamp = new Date().getTime();\n };\n\n return Timer;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2P = undefined && undefined.__extends || function () {\n var _extendStatics6 = function extendStatics(d, b) {\n _extendStatics6 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics6(d, b);\n };\n\n return function (d, b) {\n _extendStatics6(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$d = undefined && undefined.__assign || function () {\n __assign$d = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$d.apply(this, arguments);\n};\n\nvar __decorate$2q = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar TooltipStates;\n\n(function (TooltipStates) {\n TooltipStates[TooltipStates[\"NOTHING\"] = 0] = \"NOTHING\";\n TooltipStates[TooltipStates[\"WAITING_TO_SHOW\"] = 1] = \"WAITING_TO_SHOW\";\n TooltipStates[TooltipStates[\"SHOWING\"] = 2] = \"SHOWING\";\n})(TooltipStates || (TooltipStates = {}));\n\nvar CustomTooltipFeature =\n/** @class */\nfunction (_super) {\n __extends$2P(CustomTooltipFeature, _super);\n\n function CustomTooltipFeature(parentComp) {\n var _this = _super.call(this) || this;\n\n _this.DEFAULT_SHOW_TOOLTIP_DELAY = 2000;\n _this.DEFAULT_HIDE_TOOLTIP_DELAY = 10000;\n _this.SHOW_QUICK_TOOLTIP_DIFF = 1000;\n _this.FADE_OUT_TOOLTIP_TIMEOUT = 1000;\n _this.state = TooltipStates.NOTHING; // when showing the tooltip, we need to make sure it's the most recent instance we request, as due to\n // async we could request two tooltips before the first instance returns, in which case we should\n // disregard the second instance.\n\n _this.tooltipInstanceCount = 0;\n _this.tooltipMouseTrack = false;\n _this.parentComp = parentComp;\n return _this;\n }\n\n CustomTooltipFeature.prototype.postConstruct = function () {\n this.tooltipShowDelay = this.gridOptionsWrapper.getTooltipDelay('show') || this.DEFAULT_SHOW_TOOLTIP_DELAY;\n this.tooltipHideDelay = this.gridOptionsWrapper.getTooltipDelay('hide') || this.DEFAULT_HIDE_TOOLTIP_DELAY;\n this.tooltipMouseTrack = this.gridOptionsWrapper.isTooltipMouseTrack();\n var el = this.parentComp.getGui();\n this.addManagedListener(el, 'mouseenter', this.onMouseEnter.bind(this));\n this.addManagedListener(el, 'mouseleave', this.onMouseLeave.bind(this));\n this.addManagedListener(el, 'mousemove', this.onMouseMove.bind(this));\n this.addManagedListener(el, 'mousedown', this.onMouseDown.bind(this));\n this.addManagedListener(el, 'keydown', this.onKeyDown.bind(this));\n };\n\n CustomTooltipFeature.prototype.destroy = function () {\n // if this component gets destroyed while tooltip is showing, need to make sure\n // we don't end with no mouseLeave event resulting in zombie tooltip\n this.setToDoNothing();\n\n _super.prototype.destroy.call(this);\n };\n\n CustomTooltipFeature.prototype.onMouseEnter = function (e) {\n if (isIOSUserAgent()) {\n return;\n } // every mouseenter should be following by a mouseleave, however for some unkonwn, it's possible for\n // mouseenter to be called twice in a row, which can happen if editing the cell. this was reported\n // in https://ag-grid.atlassian.net/browse/AG-4422. to get around this, we check the state, and if\n // state is !=nothing, then we know mouseenter was already received.\n\n\n if (this.state != TooltipStates.NOTHING) {\n return;\n } // if another tooltip was hidden very recently, we only wait 200ms to show, not the normal waiting time\n\n\n var delay = this.isLastTooltipHiddenRecently() ? 200 : this.tooltipShowDelay;\n this.showTooltipTimeoutId = window.setTimeout(this.showTooltip.bind(this), delay);\n this.lastMouseEvent = e;\n this.state = TooltipStates.WAITING_TO_SHOW;\n };\n\n CustomTooltipFeature.prototype.onMouseLeave = function () {\n this.setToDoNothing();\n };\n\n CustomTooltipFeature.prototype.onKeyDown = function () {\n this.setToDoNothing();\n };\n\n CustomTooltipFeature.prototype.setToDoNothing = function () {\n if (this.state === TooltipStates.SHOWING) {\n this.hideTooltip();\n }\n\n this.clearTimeouts();\n this.state = TooltipStates.NOTHING;\n };\n\n CustomTooltipFeature.prototype.onMouseMove = function (e) {\n // there is a delay from the time we mouseOver a component and the time the\n // tooltip is displayed, so we need to track mousemove to be able to correctly\n // position the tooltip when showTooltip is called.\n this.lastMouseEvent = e;\n\n if (this.tooltipMouseTrack && this.state === TooltipStates.SHOWING && this.tooltipComp) {\n this.positionTooltipUnderLastMouseEvent();\n }\n };\n\n CustomTooltipFeature.prototype.onMouseDown = function () {\n this.setToDoNothing();\n };\n\n CustomTooltipFeature.prototype.hideTooltip = function () {\n // check if comp exists - due to async, although we asked for\n // one, the instance may not be back yet\n if (this.tooltipComp) {\n this.destroyTooltipComp();\n CustomTooltipFeature.lastTooltipHideTime = new Date().getTime();\n }\n\n this.state = TooltipStates.NOTHING;\n };\n\n CustomTooltipFeature.prototype.destroyTooltipComp = function () {\n var _this = this; // add class to fade out the tooltip\n\n\n this.tooltipComp.getGui().classList.add('ag-tooltip-hiding'); // make local copies of these variables, as we use them in the async function below,\n // and we clear then to 'undefined' later, so need to take a copy before they are undefined.\n\n var tooltipPopupDestroyFunc = this.tooltipPopupDestroyFunc;\n var tooltipComp = this.tooltipComp;\n window.setTimeout(function () {\n tooltipPopupDestroyFunc();\n\n _this.getContext().destroyBean(tooltipComp);\n }, this.FADE_OUT_TOOLTIP_TIMEOUT);\n this.tooltipPopupDestroyFunc = undefined;\n this.tooltipComp = undefined;\n };\n\n CustomTooltipFeature.prototype.isLastTooltipHiddenRecently = function () {\n // return true if <1000ms since last time we hid a tooltip\n var now = new Date().getTime();\n var then = CustomTooltipFeature.lastTooltipHideTime;\n return now - then < this.SHOW_QUICK_TOOLTIP_DIFF;\n };\n\n CustomTooltipFeature.prototype.showTooltip = function () {\n var params = __assign$d({}, this.parentComp.getTooltipParams());\n\n if (!exists(params.value)) {\n this.setToDoNothing();\n return;\n }\n\n this.state = TooltipStates.SHOWING;\n this.tooltipInstanceCount++; // we pass in tooltipInstanceCount so the callback knows what the count was when\n // we requested the tooltip, so if another tooltip was requested in the mean time\n // we disregard it\n\n var callback = this.newTooltipComponentCallback.bind(this, this.tooltipInstanceCount);\n var userDetails = this.userComponentFactory.getTooltipCompDetails(params);\n userDetails.newAgStackInstance().then(callback);\n };\n\n CustomTooltipFeature.prototype.newTooltipComponentCallback = function (tooltipInstanceCopy, tooltipComp) {\n var compNoLongerNeeded = this.state !== TooltipStates.SHOWING || this.tooltipInstanceCount !== tooltipInstanceCopy;\n\n if (compNoLongerNeeded) {\n this.getContext().destroyBean(tooltipComp);\n return;\n }\n\n var eGui = tooltipComp.getGui();\n this.tooltipComp = tooltipComp;\n\n if (!eGui.classList.contains('ag-tooltip')) {\n eGui.classList.add('ag-tooltip-custom');\n }\n\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var addPopupRes = this.popupService.addPopup({\n eChild: eGui,\n ariaLabel: translate('ariaLabelTooltip', 'Tooltip')\n });\n\n if (addPopupRes) {\n this.tooltipPopupDestroyFunc = addPopupRes.hideFunc;\n } // this.tooltipPopupDestroyFunc = this.popupService.addPopup(false, eGui, false);\n\n\n this.positionTooltipUnderLastMouseEvent();\n this.hideTooltipTimeoutId = window.setTimeout(this.hideTooltip.bind(this), this.tooltipHideDelay);\n };\n\n CustomTooltipFeature.prototype.positionTooltipUnderLastMouseEvent = function () {\n this.popupService.positionPopupUnderMouseEvent({\n type: 'tooltip',\n mouseEvent: this.lastMouseEvent,\n ePopup: this.tooltipComp.getGui(),\n nudgeY: 18\n });\n };\n\n CustomTooltipFeature.prototype.clearTimeouts = function () {\n if (this.showTooltipTimeoutId) {\n window.clearTimeout(this.showTooltipTimeoutId);\n this.showTooltipTimeoutId = undefined;\n }\n\n if (this.hideTooltipTimeoutId) {\n window.clearTimeout(this.hideTooltipTimeoutId);\n this.hideTooltipTimeoutId = undefined;\n }\n };\n\n __decorate$2q([Autowired('popupService')], CustomTooltipFeature.prototype, \"popupService\", void 0);\n\n __decorate$2q([Autowired('userComponentFactory')], CustomTooltipFeature.prototype, \"userComponentFactory\", void 0);\n\n __decorate$2q([Autowired('columnApi')], CustomTooltipFeature.prototype, \"columnApi\", void 0);\n\n __decorate$2q([Autowired('gridApi')], CustomTooltipFeature.prototype, \"gridApi\", void 0);\n\n __decorate$2q([PostConstruct], CustomTooltipFeature.prototype, \"postConstruct\", null);\n\n return CustomTooltipFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar CssClassManager =\n/** @class */\nfunction () {\n function CssClassManager(getGui) {\n // to minimise DOM hits, we only apply CSS classes if they have changed. as adding a CSS class that is already\n // there, or removing one that wasn't present, all takes CPU.\n this.cssClassStates = {};\n this.getGui = getGui;\n }\n\n CssClassManager.prototype.addCssClass = function (className) {\n var _this = this;\n\n var list = (className || '').split(' ');\n\n if (list.length > 1) {\n list.forEach(function (cls) {\n return _this.addCssClass(cls);\n });\n return;\n }\n\n var updateNeeded = this.cssClassStates[className] !== true;\n\n if (updateNeeded && className.length) {\n this.getGui().classList.add(className);\n this.cssClassStates[className] = true;\n }\n };\n\n CssClassManager.prototype.removeCssClass = function (className) {\n var _this = this;\n\n var list = (className || '').split(' ');\n\n if (list.length > 1) {\n list.forEach(function (cls) {\n return _this.removeCssClass(cls);\n });\n return;\n }\n\n var updateNeeded = this.cssClassStates[className] !== false;\n\n if (updateNeeded && className.length) {\n this.getGui().classList.remove(className);\n this.cssClassStates[className] = false;\n }\n };\n\n CssClassManager.prototype.containsCssClass = function (className) {\n return this.getGui().classList.contains(className);\n };\n\n CssClassManager.prototype.addOrRemoveCssClass = function (className, addOrRemove) {\n var _this = this;\n\n if (!className) {\n return;\n } // we check for spaces before doing the split, as doing the split\n // created a performance problem (on windows only, see AG-6765)\n\n\n if (className.indexOf(' ') >= 0) {\n var list = (className || '').split(' ');\n\n if (list.length > 1) {\n list.forEach(function (cls) {\n return _this.addOrRemoveCssClass(cls, addOrRemove);\n });\n return;\n }\n }\n\n var updateNeeded = this.cssClassStates[className] !== addOrRemove;\n\n if (updateNeeded && className.length) {\n this.getGui().classList.toggle(className, addOrRemove);\n this.cssClassStates[className] = addOrRemove;\n }\n };\n\n return CssClassManager;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2O = undefined && undefined.__extends || function () {\n var _extendStatics7 = function extendStatics(d, b) {\n _extendStatics7 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics7(d, b);\n };\n\n return function (d, b) {\n _extendStatics7(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2p = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar compIdSequence = new NumberSequence();\n\nvar Component =\n/** @class */\nfunction (_super) {\n __extends$2O(Component, _super);\n\n function Component(template) {\n var _this = _super.call(this) || this; // if false, then CSS class \"ag-hidden\" is applied, which sets \"display: none\"\n\n\n _this.displayed = true; // if false, then CSS class \"ag-invisible\" is applied, which sets \"visibility: hidden\"\n\n _this.visible = true; // unique id for this row component. this is used for getting a reference to the HTML dom.\n // we cannot use the RowNode id as this is not unique (due to animation, old rows can be lying\n // around as we create a new rowComp instance for the same row node).\n\n _this.compId = compIdSequence.next();\n _this.cssClassManager = new CssClassManager(function () {\n return _this.eGui;\n });\n\n if (template) {\n _this.setTemplate(template);\n }\n\n return _this;\n }\n\n Component.prototype.preConstructOnComponent = function () {\n this.usingBrowserTooltips = this.gridOptionsWrapper.isEnableBrowserTooltips();\n };\n\n Component.prototype.getCompId = function () {\n return this.compId;\n };\n\n Component.prototype.getTooltipParams = function () {\n return {\n value: this.tooltipText,\n location: 'UNKNOWN'\n };\n };\n\n Component.prototype.setTooltip = function (newTooltipText) {\n var _this = this;\n\n var removeTooltip = function removeTooltip() {\n if (_this.usingBrowserTooltips) {\n _this.getGui().removeAttribute('title');\n } else {\n _this.tooltipFeature = _this.destroyBean(_this.tooltipFeature);\n }\n };\n\n var addTooltip = function addTooltip() {\n if (_this.usingBrowserTooltips) {\n _this.getGui().setAttribute('title', _this.tooltipText);\n } else {\n _this.tooltipFeature = _this.createBean(new CustomTooltipFeature(_this));\n }\n };\n\n if (this.tooltipText != newTooltipText) {\n if (this.tooltipText) {\n removeTooltip();\n }\n\n if (newTooltipText != null) {\n this.tooltipText = newTooltipText;\n\n if (this.tooltipText) {\n addTooltip();\n }\n }\n }\n }; // for registered components only, eg creates AgCheckbox instance from ag-checkbox HTML tag\n\n\n Component.prototype.createChildComponentsFromTags = function (parentNode, paramsMap) {\n var _this = this; // we MUST take a copy of the list first, as the 'swapComponentForNode' adds comments into the DOM\n // which messes up the traversal order of the children.\n\n\n var childNodeList = copyNodeList(parentNode.childNodes);\n childNodeList.forEach(function (childNode) {\n if (!(childNode instanceof HTMLElement)) {\n return;\n }\n\n var childComp = _this.createComponentFromElement(childNode, function (childComp) {\n // copy over all attributes, including css classes, so any attributes user put on the tag\n // wll be carried across\n var childGui = childComp.getGui();\n\n if (childGui) {\n _this.copyAttributesFromNode(childNode, childComp.getGui());\n }\n }, paramsMap);\n\n if (childComp) {\n if (childComp.addItems && childNode.children.length) {\n _this.createChildComponentsFromTags(childNode, paramsMap); // converting from HTMLCollection to Array\n\n\n var items = Array.prototype.slice.call(childNode.children);\n childComp.addItems(items);\n } // replace the tag (eg ag-checkbox) with the proper HTMLElement (eg 'div') in the dom\n\n\n _this.swapComponentForNode(childComp, parentNode, childNode);\n } else if (childNode.childNodes) {\n _this.createChildComponentsFromTags(childNode, paramsMap);\n }\n });\n };\n\n Component.prototype.createComponentFromElement = function (element, afterPreCreateCallback, paramsMap) {\n var key = element.nodeName;\n var componentParams = paramsMap ? paramsMap[element.getAttribute('ref')] : undefined;\n var ComponentClass = this.agStackComponentsRegistry.getComponentClass(key);\n\n if (ComponentClass) {\n Component.elementGettingCreated = element;\n var newComponent = new ComponentClass(componentParams);\n newComponent.setParentComponent(this);\n this.createBean(newComponent, null, afterPreCreateCallback);\n return newComponent;\n }\n\n return null;\n };\n\n Component.prototype.copyAttributesFromNode = function (source, dest) {\n iterateNamedNodeMap(source.attributes, function (name, value) {\n return dest.setAttribute(name, value);\n });\n };\n\n Component.prototype.swapComponentForNode = function (newComponent, parentNode, childNode) {\n var eComponent = newComponent.getGui();\n parentNode.replaceChild(eComponent, childNode);\n parentNode.insertBefore(document.createComment(childNode.nodeName), eComponent);\n this.addDestroyFunc(this.destroyBean.bind(this, newComponent));\n this.swapInComponentForQuerySelectors(newComponent, childNode);\n };\n\n Component.prototype.swapInComponentForQuerySelectors = function (newComponent, childNode) {\n var thisNoType = this;\n this.iterateOverQuerySelectors(function (querySelector) {\n if (thisNoType[querySelector.attributeName] === childNode) {\n thisNoType[querySelector.attributeName] = newComponent;\n }\n });\n };\n\n Component.prototype.iterateOverQuerySelectors = function (action) {\n var thisPrototype = Object.getPrototypeOf(this);\n\n while (thisPrototype != null) {\n var metaData = thisPrototype.__agComponentMetaData;\n var currentProtoName = getFunctionName(thisPrototype.constructor);\n\n if (metaData && metaData[currentProtoName] && metaData[currentProtoName].querySelectors) {\n metaData[currentProtoName].querySelectors.forEach(function (querySelector) {\n return action(querySelector);\n });\n }\n\n thisPrototype = Object.getPrototypeOf(thisPrototype);\n }\n };\n\n Component.prototype.setTemplate = function (template, paramsMap) {\n var eGui = loadTemplate(template);\n this.setTemplateFromElement(eGui, paramsMap);\n };\n\n Component.prototype.setTemplateFromElement = function (element, paramsMap) {\n this.eGui = element;\n this.eGui.__agComponent = this;\n this.wireQuerySelectors(); // context will not be available when user sets template in constructor\n\n if (!!this.getContext()) {\n this.createChildComponentsFromTags(this.getGui(), paramsMap);\n }\n };\n\n Component.prototype.createChildComponentsPreConstruct = function () {\n // ui exists if user sets template in constructor. when this happens, we have to wait for the context\n // to be autoWired first before we can create child components.\n if (!!this.getGui()) {\n this.createChildComponentsFromTags(this.getGui());\n }\n };\n\n Component.prototype.wireQuerySelectors = function () {\n var _this = this;\n\n if (!this.eGui) {\n return;\n }\n\n var thisNoType = this;\n this.iterateOverQuerySelectors(function (querySelector) {\n var setResult = function setResult(result) {\n return thisNoType[querySelector.attributeName] = result;\n }; // if it's a ref selector, and match is on top level component, we return\n // the element. otherwise no way of components putting ref=xxx on the top\n // level element as querySelector only looks at children.\n\n\n var topLevelRefMatch = querySelector.refSelector && _this.eGui.getAttribute('ref') === querySelector.refSelector;\n\n if (topLevelRefMatch) {\n setResult(_this.eGui);\n } else {\n // otherwise use querySelector, which looks at children\n var resultOfQuery = _this.eGui.querySelector(querySelector.querySelector);\n\n if (resultOfQuery) {\n setResult(resultOfQuery.__agComponent || resultOfQuery);\n }\n }\n });\n };\n\n Component.prototype.getGui = function () {\n return this.eGui;\n };\n\n Component.prototype.getFocusableElement = function () {\n return this.eGui;\n };\n\n Component.prototype.setParentComponent = function (component) {\n this.parentComponent = component;\n };\n\n Component.prototype.getParentComponent = function () {\n return this.parentComponent;\n }; // this method is for older code, that wants to provide the gui element,\n // it is not intended for this to be in ag-Stack\n\n\n Component.prototype.setGui = function (eGui) {\n this.eGui = eGui;\n };\n\n Component.prototype.queryForHtmlElement = function (cssSelector) {\n return this.eGui.querySelector(cssSelector);\n };\n\n Component.prototype.queryForHtmlInputElement = function (cssSelector) {\n return this.eGui.querySelector(cssSelector);\n };\n\n Component.prototype.appendChild = function (newChild, container) {\n if (newChild == null) {\n return;\n }\n\n if (!container) {\n container = this.eGui;\n }\n\n if (isNodeOrElement(newChild)) {\n container.appendChild(newChild);\n } else {\n var childComponent = newChild;\n container.appendChild(childComponent.getGui());\n }\n };\n\n Component.prototype.isDisplayed = function () {\n return this.displayed;\n };\n\n Component.prototype.setVisible = function (visible) {\n if (visible !== this.visible) {\n this.visible = visible;\n setVisible(this.eGui, visible);\n }\n };\n\n Component.prototype.setDisplayed = function (displayed) {\n if (displayed !== this.displayed) {\n this.displayed = displayed;\n setDisplayed(this.eGui, displayed);\n var event_1 = {\n type: Component.EVENT_DISPLAYED_CHANGED,\n visible: this.displayed\n };\n this.dispatchEvent(event_1);\n }\n };\n\n Component.prototype.destroy = function () {\n if (this.tooltipFeature) {\n this.tooltipFeature = this.destroyBean(this.tooltipFeature);\n }\n\n _super.prototype.destroy.call(this);\n };\n\n Component.prototype.addGuiEventListener = function (event, listener) {\n var _this = this;\n\n this.eGui.addEventListener(event, listener);\n this.addDestroyFunc(function () {\n return _this.eGui.removeEventListener(event, listener);\n });\n };\n\n Component.prototype.addCssClass = function (className) {\n this.cssClassManager.addCssClass(className);\n };\n\n Component.prototype.removeCssClass = function (className) {\n this.cssClassManager.removeCssClass(className);\n };\n\n Component.prototype.containsCssClass = function (className) {\n return this.cssClassManager.containsCssClass(className);\n };\n\n Component.prototype.addOrRemoveCssClass = function (className, addOrRemove) {\n this.cssClassManager.addOrRemoveCssClass(className, addOrRemove);\n };\n\n Component.prototype.getAttribute = function (key) {\n var eGui = this.eGui;\n return eGui ? eGui.getAttribute(key) : null;\n };\n\n Component.prototype.getRefElement = function (refName) {\n return this.queryForHtmlElement(\"[ref=\\\"\" + refName + \"\\\"]\");\n };\n\n Component.EVENT_DISPLAYED_CHANGED = 'displayedChanged';\n\n __decorate$2p([Autowired('agStackComponentsRegistry')], Component.prototype, \"agStackComponentsRegistry\", void 0);\n\n __decorate$2p([PreConstruct], Component.prototype, \"preConstructOnComponent\", null);\n\n __decorate$2p([PreConstruct], Component.prototype, \"createChildComponentsPreConstruct\", null);\n\n return Component;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nfunction QuerySelector(selector) {\n return querySelectorFunc.bind(this, selector, undefined);\n}\n\nfunction RefSelector(ref) {\n return querySelectorFunc.bind(this, \"[ref=\" + ref + \"]\", ref);\n}\n\nfunction querySelectorFunc(selector, refSelector, classPrototype, methodOrAttributeName, index) {\n if (selector === null) {\n console.error('AG Grid: QuerySelector selector should not be null');\n return;\n }\n\n if (typeof index === 'number') {\n console.error('AG Grid: QuerySelector should be on an attribute');\n return;\n }\n\n addToObjectProps(classPrototype, 'querySelectors', {\n attributeName: methodOrAttributeName,\n querySelector: selector,\n refSelector: refSelector\n });\n} // // think we should take this out, put property bindings on the\n// export function Method(eventName?: string): Function {\n// return methodFunc.bind(this, eventName);\n// }\n//\n// function methodFunc(alias: string, target: Object, methodName: string) {\n// if (alias === null) {\n// console.error(\"AG Grid: EventListener eventName should not be null\");\n// return;\n// }\n//\n// addToObjectProps(target, 'methods', {\n// methodName: methodName,\n// alias: alias\n// });\n// }\n\n\nfunction addToObjectProps(target, key, value) {\n // it's an attribute on the class\n var props = getOrCreateProps(target, getFunctionName(target.constructor));\n\n if (!props[key]) {\n props[key] = [];\n }\n\n props[key].push(value);\n}\n\nfunction getOrCreateProps(target, instanceName) {\n if (!target.__agComponentMetaData) {\n target.__agComponentMetaData = {};\n }\n\n if (!target.__agComponentMetaData[instanceName]) {\n target.__agComponentMetaData[instanceName] = {};\n }\n\n return target.__agComponentMetaData[instanceName];\n}\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2N = undefined && undefined.__extends || function () {\n var _extendStatics8 = function extendStatics(d, b) {\n _extendStatics8 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics8(d, b);\n };\n\n return function (d, b) {\n _extendStatics8(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2o = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}; // optional floating filter for user provided filters - instead of providing a floating filter,\n// they can provide a getModelAsString() method on the filter instead. this class just displays\n// the string returned from getModelAsString()\n\n\nvar ReadOnlyFloatingFilter =\n/** @class */\nfunction (_super) {\n __extends$2N(ReadOnlyFloatingFilter, _super);\n\n function ReadOnlyFloatingFilter() {\n return _super.call(this,\n /* html */\n \"\\n
\\n \\n
\") || this;\n } // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n // so we need to override destroy() just to make the method public.\n\n\n ReadOnlyFloatingFilter.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n ReadOnlyFloatingFilter.prototype.init = function (params) {\n this.params = params;\n var displayName = this.columnModel.getDisplayNameForColumn(params.column, 'header', true);\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n this.eFloatingFilterText.setDisabled(true).setInputAriaLabel(displayName + \" \" + translate('ariaFilterInput', 'Filter Input'));\n };\n\n ReadOnlyFloatingFilter.prototype.onParentModelChanged = function (parentModel) {\n var _this = this;\n\n if (!parentModel) {\n this.eFloatingFilterText.setValue('');\n return;\n }\n\n this.params.parentFilterInstance(function (filterInstance) {\n // it would be nice to check if getModelAsString was present before creating this component,\n // however that is not possible, as React Hooks and VueJS don't attached the methods to the Filter until\n // AFTER the filter is created, not allowing inspection before this (we create floating filters as columns\n // are drawn, but the parent filters are only created when needed).\n if (filterInstance.getModelAsString) {\n var modelAsString = filterInstance.getModelAsString(parentModel);\n\n _this.eFloatingFilterText.setValue(modelAsString);\n }\n });\n };\n\n __decorate$2o([RefSelector('eFloatingFilterText')], ReadOnlyFloatingFilter.prototype, \"eFloatingFilterText\", void 0);\n\n __decorate$2o([Autowired('columnModel')], ReadOnlyFloatingFilter.prototype, \"columnModel\", void 0);\n\n return ReadOnlyFloatingFilter;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n/** Provides sync access to async component. Date component can be lazy created - this class encapsulates\n * this by keeping value locally until DateComp has loaded, then passing DateComp the value. */\n\n\nvar DateCompWrapper =\n/** @class */\nfunction () {\n function DateCompWrapper(context, userComponentFactory, dateComponentParams, eParent) {\n var _this = this;\n\n this.alive = true;\n this.context = context;\n this.eParent = eParent;\n var compDetails = userComponentFactory.getDateCompDetails(dateComponentParams);\n var promise = compDetails.newAgStackInstance();\n promise.then(function (dateComp) {\n // because async, check the filter still exists after component comes back\n if (!_this.alive) {\n context.destroyBean(dateComp);\n return;\n }\n\n _this.dateComp = dateComp;\n\n if (!dateComp) {\n return;\n }\n\n eParent.appendChild(dateComp.getGui());\n\n if (dateComp.afterGuiAttached) {\n dateComp.afterGuiAttached();\n }\n\n if (_this.tempValue) {\n dateComp.setDate(_this.tempValue);\n }\n\n if (_this.disabled != null) {\n _this.setDateCompDisabled(_this.disabled);\n }\n });\n }\n\n DateCompWrapper.prototype.destroy = function () {\n this.alive = false;\n this.dateComp = this.context.destroyBean(this.dateComp);\n };\n\n DateCompWrapper.prototype.getDate = function () {\n return this.dateComp ? this.dateComp.getDate() : this.tempValue;\n };\n\n DateCompWrapper.prototype.setDate = function (value) {\n if (this.dateComp) {\n this.dateComp.setDate(value);\n } else {\n this.tempValue = value;\n }\n };\n\n DateCompWrapper.prototype.setDisabled = function (disabled) {\n if (this.dateComp) {\n this.setDateCompDisabled(disabled);\n } else {\n this.disabled = disabled;\n }\n };\n\n DateCompWrapper.prototype.setDisplayed = function (displayed) {\n setDisplayed(this.eParent, displayed);\n };\n\n DateCompWrapper.prototype.setInputPlaceholder = function (placeholder) {\n if (this.dateComp && this.dateComp.setInputPlaceholder) {\n this.dateComp.setInputPlaceholder(placeholder);\n }\n };\n\n DateCompWrapper.prototype.setInputAriaLabel = function (label) {\n if (this.dateComp && this.dateComp.setInputAriaLabel) {\n this.dateComp.setInputAriaLabel(label);\n }\n };\n\n DateCompWrapper.prototype.afterGuiAttached = function (params) {\n if (this.dateComp && typeof this.dateComp.afterGuiAttached === 'function') {\n this.dateComp.afterGuiAttached(params);\n }\n };\n\n DateCompWrapper.prototype.setDateCompDisabled = function (disabled) {\n if (this.dateComp == null) {\n return;\n }\n\n if (this.dateComp.setDisabled == null) {\n return;\n }\n\n this.dateComp.setDisabled(disabled);\n };\n\n return DateCompWrapper;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __assign$c = undefined && undefined.__assign || function () {\n __assign$c = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$c.apply(this, arguments);\n};\n/* Common logic for options, used by both filters and floating filters. */\n\n\nvar OptionsFactory =\n/** @class */\nfunction () {\n function OptionsFactory() {\n this.customFilterOptions = {};\n }\n\n OptionsFactory.prototype.init = function (params, defaultOptions) {\n this.filterOptions = params.filterOptions || defaultOptions;\n this.mapCustomOptions();\n this.selectDefaultItem(params);\n this.checkForDeprecatedParams();\n };\n\n OptionsFactory.prototype.checkForDeprecatedParams = function () {\n if (this.filterOptions.some(function (opt) {\n return typeof opt != 'string' && opt.test != null;\n })) {\n console.warn(\"AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate().\");\n }\n\n if (this.filterOptions.some(function (opt) {\n return typeof opt != 'string' && opt.hideFilterInput != null;\n })) {\n console.warn(\"AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.\");\n }\n };\n\n OptionsFactory.prototype.getFilterOptions = function () {\n return this.filterOptions;\n };\n\n OptionsFactory.prototype.mapCustomOptions = function () {\n var _this = this;\n\n if (!this.filterOptions) {\n return;\n }\n\n this.filterOptions.forEach(function (filterOption) {\n if (typeof filterOption === 'string') {\n return;\n }\n\n var requiredProperties = [['displayKey'], ['displayName'], ['predicate', 'test']];\n\n var propertyCheck = function propertyCheck(keys) {\n if (!keys.some(function (key) {\n return filterOption[key] != null;\n })) {\n console.warn(\"AG Grid: ignoring FilterOptionDef as it doesn't contain one of '\" + keys + \"'\");\n return false;\n }\n\n return true;\n };\n\n if (!requiredProperties.every(propertyCheck)) {\n _this.filterOptions = _this.filterOptions.filter(function (v) {\n return v === filterOption;\n }) || [];\n return;\n }\n\n var test = filterOption.test;\n\n var mutatedFilterOptions = __assign$c({}, filterOption);\n\n if (test != null && filterOption.predicate == null) {\n mutatedFilterOptions.predicate = function (v, cv) {\n return test(v[0], cv);\n };\n\n delete mutatedFilterOptions.test;\n }\n\n if (mutatedFilterOptions.hideFilterInput && mutatedFilterOptions.numberOfInputs == null) {\n mutatedFilterOptions.numberOfInputs = 0;\n delete mutatedFilterOptions.hideFilterInput;\n }\n\n _this.customFilterOptions[filterOption.displayKey] = mutatedFilterOptions;\n });\n };\n\n OptionsFactory.prototype.selectDefaultItem = function (params) {\n if (params.defaultOption) {\n this.defaultOption = params.defaultOption;\n } else if (this.filterOptions.length >= 1) {\n var firstFilterOption = this.filterOptions[0];\n\n if (typeof firstFilterOption === 'string') {\n this.defaultOption = firstFilterOption;\n } else if (firstFilterOption.displayKey) {\n this.defaultOption = firstFilterOption.displayKey;\n } else {\n console.warn(\"AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'\");\n }\n } else {\n console.warn('AG Grid: no filter options for filter');\n }\n };\n\n OptionsFactory.prototype.getDefaultOption = function () {\n return this.defaultOption;\n };\n\n OptionsFactory.prototype.getCustomOption = function (name) {\n return this.customFilterOptions[name];\n };\n\n return OptionsFactory;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar DEFAULT_FILTER_LOCALE_TEXT = {\n applyFilter: 'Apply',\n clearFilter: 'Clear',\n resetFilter: 'Reset',\n cancelFilter: 'Cancel',\n textFilter: 'Text Filter',\n numberFilter: 'Number Filter',\n dateFilter: 'Date Filter',\n setFilter: 'Set Filter',\n filterOoo: 'Filter...',\n empty: 'Choose One',\n equals: 'Equals',\n notEqual: 'Not equal',\n lessThan: 'Less than',\n greaterThan: 'Greater than',\n inRange: 'In range',\n inRangeStart: 'From',\n inRangeEnd: 'To',\n lessThanOrEqual: 'Less than or equals',\n greaterThanOrEqual: 'Greater than or equals',\n contains: 'Contains',\n notContains: 'Not contains',\n startsWith: 'Starts with',\n endsWith: 'Ends with',\n blank: 'Blank',\n notBlank: 'Not blank',\n andCondition: 'AND',\n orCondition: 'OR',\n dateFormatOoo: 'yyyy-mm-dd'\n};\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nvar __extends$2M = undefined && undefined.__extends || function () {\n var _extendStatics9 = function extendStatics(d, b) {\n _extendStatics9 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics9(d, b);\n };\n\n return function (d, b) {\n _extendStatics9(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$b = undefined && undefined.__assign || function () {\n __assign$b = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$b.apply(this, arguments);\n};\n\nvar __decorate$2n = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ManagedFocusFeature =\n/** @class */\nfunction (_super) {\n __extends$2M(ManagedFocusFeature, _super);\n\n function ManagedFocusFeature(eFocusableElement, callbacks) {\n if (callbacks === void 0) {\n callbacks = {};\n }\n\n var _this = _super.call(this) || this;\n\n _this.eFocusableElement = eFocusableElement;\n _this.callbacks = callbacks;\n _this.callbacks = __assign$b({\n shouldStopEventPropagation: function shouldStopEventPropagation() {\n return false;\n },\n onTabKeyDown: function onTabKeyDown(e) {\n if (e.defaultPrevented) {\n return;\n }\n\n var nextRoot = _this.focusService.findNextFocusableElement(_this.eFocusableElement, false, e.shiftKey);\n\n if (!nextRoot) {\n return;\n }\n\n nextRoot.focus();\n e.preventDefault();\n }\n }, callbacks);\n return _this;\n }\n\n ManagedFocusFeature.prototype.postConstruct = function () {\n this.eFocusableElement.classList.add(ManagedFocusFeature.FOCUS_MANAGED_CLASS);\n this.addKeyDownListeners(this.eFocusableElement);\n\n if (this.callbacks.onFocusIn) {\n this.addManagedListener(this.eFocusableElement, 'focusin', this.callbacks.onFocusIn);\n }\n\n if (this.callbacks.onFocusOut) {\n this.addManagedListener(this.eFocusableElement, 'focusout', this.callbacks.onFocusOut);\n }\n };\n\n ManagedFocusFeature.prototype.addKeyDownListeners = function (eGui) {\n var _this = this;\n\n this.addManagedListener(eGui, 'keydown', function (e) {\n if (e.defaultPrevented || isStopPropagationForAgGrid(e)) {\n return;\n }\n\n if (_this.callbacks.shouldStopEventPropagation(e)) {\n stopPropagationForAgGrid(e);\n return;\n }\n\n if (e.key === KeyCode.TAB) {\n _this.callbacks.onTabKeyDown(e);\n } else if (_this.callbacks.handleKeyDown) {\n _this.callbacks.handleKeyDown(e);\n }\n });\n };\n\n ManagedFocusFeature.FOCUS_MANAGED_CLASS = 'ag-focus-managed';\n\n __decorate$2n([Autowired('focusService')], ManagedFocusFeature.prototype, \"focusService\", void 0);\n\n __decorate$2n([PostConstruct], ManagedFocusFeature.prototype, \"postConstruct\", null);\n\n return ManagedFocusFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2L = undefined && undefined.__extends || function () {\n var _extendStatics10 = function extendStatics(d, b) {\n _extendStatics10 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics10(d, b);\n };\n\n return function (d, b) {\n _extendStatics10(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2m = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n/**\n * Contains common logic to all provided filters (apply button, clear button, etc).\n * All the filters that come with AG Grid extend this class. User filters do not\n * extend this class.\n *\n * @param M type of filter-model managed by the concrete sub-class that extends this type\n * @param V type of value managed by the concrete sub-class that extends this type\n */\n\n\nvar ProvidedFilter =\n/** @class */\nfunction (_super) {\n __extends$2L(ProvidedFilter, _super);\n\n function ProvidedFilter(filterNameKey) {\n var _this = _super.call(this) || this;\n\n _this.filterNameKey = filterNameKey;\n _this.applyActive = false;\n _this.hidePopup = null; // after the user hits 'apply' the model gets copied to here. this is then the model that we use for\n // all filtering. so if user changes UI but doesn't hit apply, then the UI will be out of sync with this model.\n // this is what we want, as the UI should only become the 'active' filter once it's applied. when apply is\n // inactive, this model will be in sync (following the debounce ms). if the UI is not a valid filter\n // (eg the value is missing so nothing to filter on, or for set filter all checkboxes are checked so filter\n // not active) then this appliedModel will be null/undefined.\n\n _this.appliedModel = null;\n return _this;\n }\n\n ProvidedFilter.prototype.postConstruct = function () {\n this.resetTemplate(); // do this first to create the DOM\n\n this.createManagedBean(new ManagedFocusFeature(this.getFocusableElement(), {\n handleKeyDown: this.handleKeyDown.bind(this)\n }));\n }; // override\n\n\n ProvidedFilter.prototype.handleKeyDown = function (e) {};\n\n ProvidedFilter.prototype.getFilterTitle = function () {\n return this.translate(this.filterNameKey);\n };\n\n ProvidedFilter.prototype.isFilterActive = function () {\n // filter is active if we have a valid applied model\n return !!this.appliedModel;\n };\n\n ProvidedFilter.prototype.resetTemplate = function (paramsMap) {\n var templateString =\n /* html */\n \"\\n
\\n
\\n \" + this.createBodyTemplate() + \"\\n
\\n
\";\n this.setTemplate(templateString, paramsMap);\n };\n\n ProvidedFilter.prototype.isReadOnly = function () {\n return !!this.providedFilterParams.readOnly;\n };\n\n ProvidedFilter.prototype.init = function (params) {\n var _this = this;\n\n this.setParams(params);\n this.resetUiToDefaults(true).then(function () {\n _this.updateUiVisibility();\n\n _this.setupOnBtApplyDebounce();\n });\n };\n\n ProvidedFilter.prototype.setParams = function (params) {\n this.providedFilterParams = params;\n this.applyActive = ProvidedFilter.isUseApplyButton(params);\n this.createButtonPanel();\n };\n\n ProvidedFilter.prototype.createButtonPanel = function () {\n var _this = this;\n\n var buttons = this.providedFilterParams.buttons;\n\n if (!buttons || buttons.length < 1 || this.isReadOnly()) {\n return;\n }\n\n var eButtonsPanel = document.createElement('div');\n eButtonsPanel.classList.add('ag-filter-apply-panel');\n\n var addButton = function addButton(type) {\n var text;\n var clickListener;\n\n switch (type) {\n case 'apply':\n text = _this.translate('applyFilter');\n\n clickListener = function clickListener(e) {\n return _this.onBtApply(false, false, e);\n };\n\n break;\n\n case 'clear':\n text = _this.translate('clearFilter');\n\n clickListener = function clickListener() {\n return _this.onBtClear();\n };\n\n break;\n\n case 'reset':\n text = _this.translate('resetFilter');\n\n clickListener = function clickListener() {\n return _this.onBtReset();\n };\n\n break;\n\n case 'cancel':\n text = _this.translate('cancelFilter');\n\n clickListener = function clickListener(e) {\n _this.onBtCancel(e);\n };\n\n break;\n\n default:\n console.warn('AG Grid: Unknown button type specified');\n return;\n }\n\n var button = loadTemplate(\n /* html */\n \"\" + text + \"\\n \");\n eButtonsPanel.appendChild(button);\n\n _this.addManagedListener(button, 'click', clickListener);\n };\n\n convertToSet(buttons).forEach(function (type) {\n return addButton(type);\n });\n this.getGui().appendChild(eButtonsPanel);\n }; // subclasses can override this to provide alternative debounce defaults\n\n\n ProvidedFilter.prototype.getDefaultDebounceMs = function () {\n return 0;\n };\n\n ProvidedFilter.prototype.setupOnBtApplyDebounce = function () {\n var debounceMs = ProvidedFilter.getDebounceMs(this.providedFilterParams, this.getDefaultDebounceMs());\n this.onBtApplyDebounce = debounce(this.onBtApply.bind(this), debounceMs);\n };\n\n ProvidedFilter.prototype.getModel = function () {\n return this.appliedModel ? this.appliedModel : null;\n };\n\n ProvidedFilter.prototype.setModel = function (model) {\n var _this = this;\n\n var promise = model != null ? this.setModelIntoUi(model) : this.resetUiToDefaults();\n return promise.then(function () {\n _this.updateUiVisibility(); // we set the model from the GUI, rather than the provided model,\n // so the model is consistent, e.g. handling of null/undefined will be the same,\n // or if model is case insensitive, then casing is removed.\n\n\n _this.applyModel();\n });\n };\n\n ProvidedFilter.prototype.onBtCancel = function (e) {\n var _this = this;\n\n var currentModel = this.getModel();\n\n var afterAppliedFunc = function afterAppliedFunc() {\n _this.onUiChanged(false, 'prevent');\n\n if (_this.providedFilterParams.closeOnApply) {\n _this.close(e);\n }\n };\n\n if (currentModel != null) {\n this.setModelIntoUi(currentModel).then(afterAppliedFunc);\n } else {\n this.resetUiToDefaults().then(afterAppliedFunc);\n }\n };\n\n ProvidedFilter.prototype.onBtClear = function () {\n var _this = this;\n\n this.resetUiToDefaults().then(function () {\n return _this.onUiChanged();\n });\n };\n\n ProvidedFilter.prototype.onBtReset = function () {\n this.onBtClear();\n this.onBtApply();\n };\n /**\n * Applies changes made in the UI to the filter, and returns true if the model has changed.\n */\n\n\n ProvidedFilter.prototype.applyModel = function () {\n var newModel = this.getModelFromUi();\n\n if (!this.isModelValid(newModel)) {\n return false;\n }\n\n var previousModel = this.appliedModel;\n this.appliedModel = newModel; // models can be same if user pasted same content into text field, or maybe just changed the case\n // and it's a case insensitive filter\n\n return !this.areModelsEqual(previousModel, newModel);\n };\n\n ProvidedFilter.prototype.isModelValid = function (model) {\n return true;\n };\n\n ProvidedFilter.prototype.onBtApply = function (afterFloatingFilter, afterDataChange, e) {\n if (afterFloatingFilter === void 0) {\n afterFloatingFilter = false;\n }\n\n if (afterDataChange === void 0) {\n afterDataChange = false;\n }\n\n if (this.applyModel()) {\n // the floating filter uses 'afterFloatingFilter' info, so it doesn't refresh after filter changed if change\n // came from floating filter\n this.providedFilterParams.filterChangedCallback({\n afterFloatingFilter: afterFloatingFilter,\n afterDataChange: afterDataChange\n });\n }\n\n var closeOnApply = this.providedFilterParams.closeOnApply; // only close if an apply button is visible, otherwise we'd be closing every time a change was made!\n\n if (closeOnApply && this.applyActive && !afterFloatingFilter && !afterDataChange) {\n this.close(e);\n }\n };\n\n ProvidedFilter.prototype.onNewRowsLoaded = function () {};\n\n ProvidedFilter.prototype.close = function (e) {\n if (!this.hidePopup) {\n return;\n }\n\n var keyboardEvent = e;\n var key = keyboardEvent && keyboardEvent.key;\n var params;\n\n if (key === 'Enter' || key === 'Space') {\n params = {\n keyboardEvent: keyboardEvent\n };\n }\n\n this.hidePopup(params);\n this.hidePopup = null;\n };\n /**\n * By default, if the change came from a floating filter it will be applied immediately, otherwise if there is no\n * apply button it will be applied after a debounce, otherwise it will not be applied at all. This behaviour can\n * be adjusted by using the apply parameter.\n */\n\n\n ProvidedFilter.prototype.onUiChanged = function (fromFloatingFilter, apply) {\n if (fromFloatingFilter === void 0) {\n fromFloatingFilter = false;\n }\n\n this.updateUiVisibility();\n this.providedFilterParams.filterModifiedCallback();\n\n if (this.applyActive && !this.isReadOnly) {\n var isValid = this.isModelValid(this.getModelFromUi());\n setDisabled(this.getRefElement('applyFilterButton'), !isValid);\n }\n\n if (fromFloatingFilter && !apply || apply === 'immediately') {\n this.onBtApply(fromFloatingFilter);\n } else if (!this.applyActive && !apply || apply === 'debounce') {\n this.onBtApplyDebounce();\n }\n };\n\n ProvidedFilter.prototype.afterGuiAttached = function (params) {\n if (params == null) {\n return;\n }\n\n this.hidePopup = params.hidePopup;\n }; // static, as used by floating filter also\n\n\n ProvidedFilter.getDebounceMs = function (params, debounceDefault) {\n if (ProvidedFilter.isUseApplyButton(params)) {\n if (params.debounceMs != null) {\n console.warn('AG Grid: debounceMs is ignored when apply button is present');\n }\n\n return 0;\n }\n\n return params.debounceMs != null ? params.debounceMs : debounceDefault;\n }; // static, as used by floating filter also\n\n\n ProvidedFilter.isUseApplyButton = function (params) {\n return !!params.buttons && params.buttons.indexOf('apply') >= 0;\n };\n\n ProvidedFilter.prototype.destroy = function () {\n this.hidePopup = null;\n\n _super.prototype.destroy.call(this);\n };\n\n ProvidedFilter.prototype.translate = function (key) {\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n return translate(key, DEFAULT_FILTER_LOCALE_TEXT[key]);\n };\n\n ProvidedFilter.prototype.getCellValue = function (rowNode) {\n var _a = this.providedFilterParams,\n api = _a.api,\n colDef = _a.colDef,\n column = _a.column,\n columnApi = _a.columnApi,\n context = _a.context;\n return this.providedFilterParams.valueGetter({\n api: api,\n colDef: colDef,\n column: column,\n columnApi: columnApi,\n context: context,\n data: rowNode.data,\n getValue: function getValue(field) {\n return rowNode.data[field];\n },\n node: rowNode\n });\n };\n\n __decorate$2m([Autowired('rowModel')], ProvidedFilter.prototype, \"rowModel\", void 0);\n\n __decorate$2m([Autowired('valueService')], ProvidedFilter.prototype, \"valueService\", void 0);\n\n __decorate$2m([PostConstruct], ProvidedFilter.prototype, \"postConstruct\", null);\n\n return ProvidedFilter;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2K = undefined && undefined.__extends || function () {\n var _extendStatics11 = function extendStatics(d, b) {\n _extendStatics11 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics11(d, b);\n };\n\n return function (d, b) {\n _extendStatics11(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2l = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AgAbstractLabel =\n/** @class */\nfunction (_super) {\n __extends$2K(AgAbstractLabel, _super);\n\n function AgAbstractLabel(config, template) {\n var _this = _super.call(this, template) || this;\n\n _this.labelSeparator = '';\n _this.labelAlignment = 'left';\n _this.disabled = false;\n _this.label = '';\n _this.config = config || {};\n return _this;\n }\n\n AgAbstractLabel.prototype.postConstruct = function () {\n this.addCssClass('ag-labeled');\n this.eLabel.classList.add('ag-label');\n var _a = this.config,\n labelSeparator = _a.labelSeparator,\n label = _a.label,\n labelWidth = _a.labelWidth,\n labelAlignment = _a.labelAlignment;\n\n if (labelSeparator != null) {\n this.setLabelSeparator(labelSeparator);\n }\n\n if (label != null) {\n this.setLabel(label);\n }\n\n if (labelWidth != null) {\n this.setLabelWidth(labelWidth);\n }\n\n this.setLabelAlignment(labelAlignment || this.labelAlignment);\n this.refreshLabel();\n };\n\n AgAbstractLabel.prototype.refreshLabel = function () {\n clearElement(this.eLabel);\n\n if (typeof this.label === 'string') {\n this.eLabel.innerText = this.label + this.labelSeparator;\n } else if (this.label) {\n this.eLabel.appendChild(this.label);\n }\n\n if (this.label === '') {\n this.eLabel.classList.add('ag-hidden');\n setAriaRole(this.eLabel, 'presentation');\n } else {\n this.eLabel.classList.remove('ag-hidden');\n setAriaRole(this.eLabel, null);\n }\n };\n\n AgAbstractLabel.prototype.setLabelSeparator = function (labelSeparator) {\n if (this.labelSeparator === labelSeparator) {\n return this;\n }\n\n this.labelSeparator = labelSeparator;\n\n if (this.label != null) {\n this.refreshLabel();\n }\n\n return this;\n };\n\n AgAbstractLabel.prototype.getLabelId = function () {\n this.eLabel.id = this.eLabel.id || \"ag-\" + this.getCompId() + \"-label\";\n return this.eLabel.id;\n };\n\n AgAbstractLabel.prototype.getLabel = function () {\n return this.label;\n };\n\n AgAbstractLabel.prototype.setLabel = function (label) {\n if (this.label === label) {\n return this;\n }\n\n this.label = label;\n this.refreshLabel();\n return this;\n };\n\n AgAbstractLabel.prototype.setLabelAlignment = function (alignment) {\n var eGui = this.getGui();\n var eGuiClassList = eGui.classList;\n eGuiClassList.toggle('ag-label-align-left', alignment === 'left');\n eGuiClassList.toggle('ag-label-align-right', alignment === 'right');\n eGuiClassList.toggle('ag-label-align-top', alignment === 'top');\n return this;\n };\n\n AgAbstractLabel.prototype.setLabelWidth = function (width) {\n if (this.label == null) {\n return this;\n }\n\n setElementWidth(this.eLabel, width);\n return this;\n };\n\n AgAbstractLabel.prototype.setDisabled = function (disabled) {\n disabled = !!disabled;\n var element = this.getGui();\n setDisabled(element, disabled);\n element.classList.toggle('ag-disabled', disabled);\n this.disabled = disabled;\n return this;\n };\n\n AgAbstractLabel.prototype.isDisabled = function () {\n return !!this.disabled;\n };\n\n __decorate$2l([PostConstruct], AgAbstractLabel.prototype, \"postConstruct\", null);\n\n return AgAbstractLabel;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2J = undefined && undefined.__extends || function () {\n var _extendStatics12 = function extendStatics(d, b) {\n _extendStatics12 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics12(d, b);\n };\n\n return function (d, b) {\n _extendStatics12(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar AgAbstractField =\n/** @class */\nfunction (_super) {\n __extends$2J(AgAbstractField, _super);\n\n function AgAbstractField(config, template, className) {\n var _this = _super.call(this, config, template) || this;\n\n _this.className = className;\n return _this;\n }\n\n AgAbstractField.prototype.postConstruct = function () {\n _super.prototype.postConstruct.call(this);\n\n if (this.className) {\n this.addCssClass(this.className);\n }\n };\n\n AgAbstractField.prototype.onValueChange = function (callbackFn) {\n var _this = this;\n\n this.addManagedListener(this, AgAbstractField.EVENT_CHANGED, function () {\n return callbackFn(_this.getValue());\n });\n return this;\n };\n\n AgAbstractField.prototype.getWidth = function () {\n return this.getGui().clientWidth;\n };\n\n AgAbstractField.prototype.setWidth = function (width) {\n setFixedWidth(this.getGui(), width);\n return this;\n };\n\n AgAbstractField.prototype.getPreviousValue = function () {\n return this.previousValue;\n };\n\n AgAbstractField.prototype.getValue = function () {\n return this.value;\n };\n\n AgAbstractField.prototype.setValue = function (value, silent) {\n if (this.value === value) {\n return this;\n }\n\n this.previousValue = this.value;\n this.value = value;\n\n if (!silent) {\n this.dispatchEvent({\n type: AgAbstractField.EVENT_CHANGED\n });\n }\n\n return this;\n };\n\n AgAbstractField.EVENT_CHANGED = 'valueChange';\n return AgAbstractField;\n}(AgAbstractLabel);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2I = undefined && undefined.__extends || function () {\n var _extendStatics13 = function extendStatics(d, b) {\n _extendStatics13 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics13(d, b);\n };\n\n return function (d, b) {\n _extendStatics13(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2k = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AgPickerField =\n/** @class */\nfunction (_super) {\n __extends$2I(AgPickerField, _super);\n\n function AgPickerField(config, className, pickerIcon, ariaRole) {\n var _this = _super.call(this, config,\n /* html */\n \"
\\n
\\n
\\n
\\n
\\n
\\n
\", className) || this;\n\n _this.pickerIcon = pickerIcon;\n _this.isPickerDisplayed = false;\n _this.isDestroyingPicker = false;\n _this.skipClick = false;\n return _this;\n }\n\n AgPickerField.prototype.postConstruct = function () {\n var _this = this;\n\n _super.prototype.postConstruct.call(this);\n\n var displayId = this.getCompId() + \"-display\";\n this.eDisplayField.setAttribute('id', displayId);\n setAriaDescribedBy(this.eWrapper, displayId);\n\n var clickHandler = function clickHandler() {\n if (_this.skipClick) {\n _this.skipClick = false;\n return;\n }\n\n if (_this.isDisabled()) {\n return;\n }\n\n _this.pickerComponent = _this.showPicker();\n };\n\n var eGui = this.getGui();\n this.addManagedListener(eGui, 'mousedown', function (e) {\n if (!_this.skipClick && _this.pickerComponent && _this.pickerComponent.isAlive() && isVisible(_this.pickerComponent.getGui()) && eGui.contains(e.target)) {\n _this.skipClick = true;\n }\n });\n this.addManagedListener(eGui, 'keydown', function (e) {\n switch (e.key) {\n case KeyCode.UP:\n case KeyCode.DOWN:\n case KeyCode.ENTER:\n case KeyCode.SPACE:\n clickHandler();\n\n case KeyCode.ESCAPE:\n if (_this.isPickerDisplayed) {\n e.preventDefault();\n }\n\n break;\n }\n });\n this.addManagedListener(this.eWrapper, 'click', clickHandler);\n this.addManagedListener(this.eLabel, 'click', clickHandler);\n\n if (this.pickerIcon) {\n var icon = createIconNoSpan(this.pickerIcon, this.gridOptionsWrapper);\n\n if (icon) {\n this.eIcon.appendChild(icon);\n }\n }\n };\n\n AgPickerField.prototype.refreshLabel = function () {\n if (exists(this.getLabel())) {\n setAriaLabelledBy(this.eWrapper, this.getLabelId());\n } else {\n this.eWrapper.removeAttribute('aria-labelledby');\n }\n\n _super.prototype.refreshLabel.call(this);\n };\n\n AgPickerField.prototype.setAriaLabel = function (label) {\n setAriaLabel(this.eWrapper, label);\n return this;\n };\n\n AgPickerField.prototype.setInputWidth = function (width) {\n setElementWidth(this.eWrapper, width);\n return this;\n };\n\n AgPickerField.prototype.getFocusableElement = function () {\n return this.eWrapper;\n };\n\n __decorate$2k([RefSelector('eLabel')], AgPickerField.prototype, \"eLabel\", void 0);\n\n __decorate$2k([RefSelector('eWrapper')], AgPickerField.prototype, \"eWrapper\", void 0);\n\n __decorate$2k([RefSelector('eDisplayField')], AgPickerField.prototype, \"eDisplayField\", void 0);\n\n __decorate$2k([RefSelector('eIcon')], AgPickerField.prototype, \"eIcon\", void 0);\n\n return AgPickerField;\n}(AgAbstractField);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2H = undefined && undefined.__extends || function () {\n var _extendStatics14 = function extendStatics(d, b) {\n _extendStatics14 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics14(d, b);\n };\n\n return function (d, b) {\n _extendStatics14(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2j = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AgList =\n/** @class */\nfunction (_super) {\n __extends$2H(AgList, _super);\n\n function AgList(cssIdentifier) {\n if (cssIdentifier === void 0) {\n cssIdentifier = 'default';\n }\n\n var _this = _super.call(this,\n /* html */\n \"
\") || this;\n\n _this.cssIdentifier = cssIdentifier;\n _this.options = [];\n _this.itemEls = [];\n return _this;\n }\n\n AgList.prototype.init = function () {\n this.addManagedListener(this.getGui(), 'keydown', this.handleKeyDown.bind(this));\n };\n\n AgList.prototype.handleKeyDown = function (e) {\n var key = e.key;\n\n switch (key) {\n case KeyCode.ENTER:\n if (!this.highlightedEl) {\n this.setValue(this.getValue());\n } else {\n var pos = this.itemEls.indexOf(this.highlightedEl);\n this.setValueByIndex(pos);\n }\n\n break;\n\n case KeyCode.DOWN:\n case KeyCode.UP:\n var isDown = key === KeyCode.DOWN;\n var itemToHighlight = void 0;\n e.preventDefault();\n\n if (!this.highlightedEl) {\n itemToHighlight = this.itemEls[isDown ? 0 : this.itemEls.length - 1];\n } else {\n var currentIdx = this.itemEls.indexOf(this.highlightedEl);\n var nextPos = currentIdx + (isDown ? 1 : -1);\n nextPos = Math.min(Math.max(nextPos, 0), this.itemEls.length - 1);\n itemToHighlight = this.itemEls[nextPos];\n }\n\n this.highlightItem(itemToHighlight);\n break;\n }\n };\n\n AgList.prototype.addOptions = function (listOptions) {\n var _this = this;\n\n listOptions.forEach(function (listOption) {\n return _this.addOption(listOption);\n });\n return this;\n };\n\n AgList.prototype.addOption = function (listOption) {\n var value = listOption.value,\n text = listOption.text;\n var sanitisedText = escapeString(text || value);\n this.options.push({\n value: value,\n text: sanitisedText\n });\n this.renderOption(value, sanitisedText);\n this.updateIndices();\n return this;\n };\n\n AgList.prototype.updateIndices = function () {\n var options = this.getGui().querySelectorAll('.ag-list-item');\n options.forEach(function (option, idx) {\n setAriaPosInSet(option, idx + 1);\n setAriaSetSize(option, options.length);\n });\n };\n\n AgList.prototype.renderOption = function (value, text) {\n var _this = this;\n\n var itemEl = document.createElement('div');\n setAriaRole(itemEl, 'option');\n itemEl.classList.add('ag-list-item', \"ag-\" + this.cssIdentifier + \"-list-item\");\n itemEl.innerHTML = \"\" + text + \"\";\n itemEl.tabIndex = -1;\n this.itemEls.push(itemEl);\n this.addManagedListener(itemEl, 'mouseover', function () {\n return _this.highlightItem(itemEl);\n });\n this.addManagedListener(itemEl, 'mouseleave', function () {\n return _this.clearHighlighted();\n });\n this.addManagedListener(itemEl, 'click', function () {\n return _this.setValue(value);\n });\n this.getGui().appendChild(itemEl);\n };\n\n AgList.prototype.setValue = function (value, silent) {\n if (this.value === value) {\n this.fireItemSelected();\n return this;\n }\n\n if (value == null) {\n this.reset();\n return this;\n }\n\n var idx = this.options.findIndex(function (option) {\n return option.value === value;\n });\n\n if (idx !== -1) {\n var option = this.options[idx];\n this.value = option.value;\n this.displayValue = option.text != null ? option.text : option.value;\n this.highlightItem(this.itemEls[idx]);\n\n if (!silent) {\n this.fireChangeEvent();\n }\n }\n\n return this;\n };\n\n AgList.prototype.setValueByIndex = function (idx) {\n return this.setValue(this.options[idx].value);\n };\n\n AgList.prototype.getValue = function () {\n return this.value;\n };\n\n AgList.prototype.getDisplayValue = function () {\n return this.displayValue;\n };\n\n AgList.prototype.refreshHighlighted = function () {\n var _this = this;\n\n this.clearHighlighted();\n var idx = this.options.findIndex(function (option) {\n return option.value === _this.value;\n });\n\n if (idx !== -1) {\n this.highlightItem(this.itemEls[idx]);\n }\n };\n\n AgList.prototype.reset = function () {\n this.value = null;\n this.displayValue = null;\n this.clearHighlighted();\n this.fireChangeEvent();\n };\n\n AgList.prototype.highlightItem = function (el) {\n if (!el.offsetParent) {\n return;\n }\n\n this.clearHighlighted();\n this.highlightedEl = el;\n this.highlightedEl.classList.add(AgList.ACTIVE_CLASS);\n setAriaSelected(this.highlightedEl, true);\n this.highlightedEl.focus();\n };\n\n AgList.prototype.clearHighlighted = function () {\n if (!this.highlightedEl || !this.highlightedEl.offsetParent) {\n return;\n }\n\n this.highlightedEl.classList.remove(AgList.ACTIVE_CLASS);\n setAriaSelected(this.highlightedEl, false);\n this.highlightedEl = null;\n };\n\n AgList.prototype.fireChangeEvent = function () {\n this.dispatchEvent({\n type: AgAbstractField.EVENT_CHANGED\n });\n this.fireItemSelected();\n };\n\n AgList.prototype.fireItemSelected = function () {\n this.dispatchEvent({\n type: AgList.EVENT_ITEM_SELECTED\n });\n };\n\n AgList.EVENT_ITEM_SELECTED = 'selectedItem';\n AgList.ACTIVE_CLASS = 'ag-active-item';\n\n __decorate$2j([PostConstruct], AgList.prototype, \"init\", null);\n\n return AgList;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2G = undefined && undefined.__extends || function () {\n var _extendStatics15 = function extendStatics(d, b) {\n _extendStatics15 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics15(d, b);\n };\n\n return function (d, b) {\n _extendStatics15(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2i = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AgSelect =\n/** @class */\nfunction (_super) {\n __extends$2G(AgSelect, _super);\n\n function AgSelect(config) {\n return _super.call(this, config, 'ag-select', 'smallDown', 'listbox') || this;\n }\n\n AgSelect.prototype.init = function () {\n var _this = this;\n\n this.listComponent = this.createBean(new AgList('select'));\n this.listComponent.setParentComponent(this);\n this.eWrapper.tabIndex = 0;\n this.listComponent.addManagedListener(this.listComponent, AgList.EVENT_ITEM_SELECTED, function () {\n if (_this.hideList) {\n _this.hideList();\n }\n });\n this.listComponent.addManagedListener(this.listComponent, AgAbstractField.EVENT_CHANGED, function () {\n _this.setValue(_this.listComponent.getValue(), false, true);\n\n if (_this.hideList) {\n _this.hideList();\n }\n });\n };\n\n AgSelect.prototype.showPicker = function () {\n var _this = this;\n\n var listGui = this.listComponent.getGui();\n var eDocument = this.gridOptionsWrapper.getDocument();\n var destroyMouseWheelFunc = this.addManagedListener(eDocument.body, 'wheel', function (e) {\n if (!listGui.contains(e.target) && _this.hideList) {\n _this.hideList();\n }\n });\n var destroyFocusOutFunc = this.addManagedListener(listGui, 'focusout', function (e) {\n if (!listGui.contains(e.relatedTarget) && _this.hideList) {\n _this.hideList();\n }\n });\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var addPopupRes = this.popupService.addPopup({\n modal: true,\n eChild: listGui,\n closeOnEsc: true,\n closedCallback: function closedCallback() {\n _this.hideList = null;\n _this.isPickerDisplayed = false;\n destroyFocusOutFunc();\n destroyMouseWheelFunc();\n\n if (_this.isAlive()) {\n setAriaExpanded(_this.eWrapper, false);\n\n _this.getFocusableElement().focus();\n }\n },\n ariaLabel: translate('ariaLabelSelectField', 'Select Field')\n });\n\n if (addPopupRes) {\n this.hideList = addPopupRes.hideFunc;\n }\n\n this.isPickerDisplayed = true;\n setElementWidth(listGui, getAbsoluteWidth(this.eWrapper));\n setAriaExpanded(this.eWrapper, true);\n listGui.style.maxHeight = getInnerHeight(this.popupService.getPopupParent()) + 'px';\n listGui.style.position = 'absolute';\n this.popupService.positionPopupUnderComponent({\n type: 'ag-list',\n eventSource: this.eWrapper,\n ePopup: listGui,\n keepWithinBounds: true\n });\n this.listComponent.refreshHighlighted();\n return this.listComponent;\n };\n\n AgSelect.prototype.addOptions = function (options) {\n var _this = this;\n\n options.forEach(function (option) {\n return _this.addOption(option);\n });\n return this;\n };\n\n AgSelect.prototype.addOption = function (option) {\n this.listComponent.addOption(option);\n return this;\n };\n\n AgSelect.prototype.setValue = function (value, silent, fromPicker) {\n if (this.value === value) {\n return this;\n }\n\n if (!fromPicker) {\n this.listComponent.setValue(value, true);\n }\n\n var newValue = this.listComponent.getValue();\n\n if (newValue === this.getValue()) {\n return this;\n }\n\n this.eDisplayField.innerHTML = this.listComponent.getDisplayValue();\n return _super.prototype.setValue.call(this, value, silent);\n };\n\n AgSelect.prototype.destroy = function () {\n if (this.hideList) {\n this.hideList();\n }\n\n this.destroyBean(this.listComponent);\n\n _super.prototype.destroy.call(this);\n };\n\n __decorate$2i([Autowired('popupService')], AgSelect.prototype, \"popupService\", void 0);\n\n __decorate$2i([PostConstruct], AgSelect.prototype, \"init\", null);\n\n return AgSelect;\n}(AgPickerField);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2F = undefined && undefined.__extends || function () {\n var _extendStatics16 = function extendStatics(d, b) {\n _extendStatics16 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics16(d, b);\n };\n\n return function (d, b) {\n _extendStatics16(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2h = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AgAbstractInputField =\n/** @class */\nfunction (_super) {\n __extends$2F(AgAbstractInputField, _super);\n\n function AgAbstractInputField(config, className, inputType, displayFieldTag) {\n if (inputType === void 0) {\n inputType = 'text';\n }\n\n if (displayFieldTag === void 0) {\n displayFieldTag = 'input';\n }\n\n var _this = _super.call(this, config,\n /* html */\n \"\\n
\\n
\\n
\\n <\" + displayFieldTag + \" ref=\\\"eInput\\\" class=\\\"ag-input-field-input\\\">\\n
\\n
\", className) || this;\n\n _this.inputType = inputType;\n _this.displayFieldTag = displayFieldTag;\n return _this;\n }\n\n AgAbstractInputField.prototype.postConstruct = function () {\n _super.prototype.postConstruct.call(this);\n\n this.setInputType();\n this.eLabel.classList.add(this.className + \"-label\");\n this.eWrapper.classList.add(this.className + \"-input-wrapper\");\n this.eInput.classList.add(this.className + \"-input\");\n this.addCssClass('ag-input-field');\n this.eInput.id = this.eInput.id || \"ag-\" + this.getCompId() + \"-input\";\n var _a = this.config,\n width = _a.width,\n value = _a.value;\n\n if (width != null) {\n this.setWidth(width);\n }\n\n if (value != null) {\n this.setValue(value);\n }\n\n this.addInputListeners();\n };\n\n AgAbstractInputField.prototype.refreshLabel = function () {\n if (exists(this.getLabel())) {\n setAriaLabelledBy(this.eInput, this.getLabelId());\n } else {\n this.eInput.removeAttribute('aria-labelledby');\n }\n\n _super.prototype.refreshLabel.call(this);\n };\n\n AgAbstractInputField.prototype.addInputListeners = function () {\n var _this = this;\n\n this.addManagedListener(this.eInput, 'input', function (e) {\n return _this.setValue(e.target.value);\n });\n };\n\n AgAbstractInputField.prototype.setInputType = function () {\n if (this.displayFieldTag === 'input') {\n this.eInput.setAttribute('type', this.inputType);\n }\n };\n\n AgAbstractInputField.prototype.getInputElement = function () {\n return this.eInput;\n };\n\n AgAbstractInputField.prototype.setInputWidth = function (width) {\n setElementWidth(this.eWrapper, width);\n return this;\n };\n\n AgAbstractInputField.prototype.setInputName = function (name) {\n this.getInputElement().setAttribute('name', name);\n return this;\n };\n\n AgAbstractInputField.prototype.getFocusableElement = function () {\n return this.eInput;\n };\n\n AgAbstractInputField.prototype.setMaxLength = function (length) {\n var eInput = this.eInput;\n eInput.maxLength = length;\n return this;\n };\n\n AgAbstractInputField.prototype.setInputPlaceholder = function (placeholder) {\n addOrRemoveAttribute(this.eInput, 'placeholder', placeholder);\n return this;\n };\n\n AgAbstractInputField.prototype.setInputAriaLabel = function (label) {\n setAriaLabel(this.eInput, label);\n return this;\n };\n\n AgAbstractInputField.prototype.setDisabled = function (disabled) {\n setDisabled(this.eInput, disabled);\n return _super.prototype.setDisabled.call(this, disabled);\n };\n\n __decorate$2h([RefSelector('eLabel')], AgAbstractInputField.prototype, \"eLabel\", void 0);\n\n __decorate$2h([RefSelector('eWrapper')], AgAbstractInputField.prototype, \"eWrapper\", void 0);\n\n __decorate$2h([RefSelector('eInput')], AgAbstractInputField.prototype, \"eInput\", void 0);\n\n return AgAbstractInputField;\n}(AgAbstractField);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2E = undefined && undefined.__extends || function () {\n var _extendStatics17 = function extendStatics(d, b) {\n _extendStatics17 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics17(d, b);\n };\n\n return function (d, b) {\n _extendStatics17(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2g = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ConditionPosition;\n\n(function (ConditionPosition) {\n ConditionPosition[ConditionPosition[\"One\"] = 0] = \"One\";\n ConditionPosition[ConditionPosition[\"Two\"] = 1] = \"Two\";\n})(ConditionPosition || (ConditionPosition = {}));\n/**\n * Every filter with a dropdown where the user can specify a comparing type against the filter values.\n *\n * @param M type of filter-model managed by the concrete sub-class that extends this type\n * @param V type of value managed by the concrete sub-class that extends this type\n * @param E type of UI element used for collecting user-input\n */\n\n\nvar SimpleFilter =\n/** @class */\nfunction (_super) {\n __extends$2E(SimpleFilter, _super);\n\n function SimpleFilter() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n SimpleFilter.prototype.getNumberOfInputs = function (type) {\n var customOpts = this.optionsFactory.getCustomOption(type);\n\n if (customOpts) {\n var numberOfInputs = customOpts.numberOfInputs;\n return numberOfInputs != null ? numberOfInputs : 1;\n }\n\n var zeroInputTypes = [SimpleFilter.EMPTY, SimpleFilter.NOT_BLANK, SimpleFilter.BLANK];\n\n if (type && zeroInputTypes.indexOf(type) >= 0) {\n return 0;\n } else if (type === SimpleFilter.IN_RANGE) {\n return 2;\n }\n\n return 1;\n }; // floating filter calls this when user applies filter from floating filter\n\n\n SimpleFilter.prototype.onFloatingFilterChanged = function (type, value) {\n this.setTypeFromFloatingFilter(type);\n this.setValueFromFloatingFilter(value);\n this.onUiChanged(true);\n };\n\n SimpleFilter.prototype.setTypeFromFloatingFilter = function (type) {\n this.eType1.setValue(type);\n this.eType2.setValue(this.optionsFactory.getDefaultOption());\n (this.isDefaultOperator('AND') ? this.eJoinOperatorAnd : this.eJoinOperatorOr).setValue(true);\n };\n\n SimpleFilter.prototype.getModelFromUi = function () {\n if (!this.isConditionUiComplete(ConditionPosition.One)) {\n return null;\n }\n\n if (this.isAllowTwoConditions() && this.isConditionUiComplete(ConditionPosition.Two)) {\n return {\n filterType: this.getFilterType(),\n operator: this.getJoinOperator(),\n condition1: this.createCondition(ConditionPosition.One),\n condition2: this.createCondition(ConditionPosition.Two)\n };\n }\n\n return this.createCondition(ConditionPosition.One);\n };\n\n SimpleFilter.prototype.getConditionTypes = function () {\n return [this.eType1.getValue(), this.eType2.getValue()];\n };\n\n SimpleFilter.prototype.getJoinOperator = function () {\n return this.eJoinOperatorOr.getValue() === true ? 'OR' : 'AND';\n };\n\n SimpleFilter.prototype.areModelsEqual = function (a, b) {\n // both are missing\n if (!a && !b) {\n return true;\n } // one is missing, other present\n\n\n if (!a && b || a && !b) {\n return false;\n } // one is combined, the other is not\n\n\n var aIsSimple = !a.operator;\n var bIsSimple = !b.operator;\n var oneSimpleOneCombined = !aIsSimple && bIsSimple || aIsSimple && !bIsSimple;\n\n if (oneSimpleOneCombined) {\n return false;\n }\n\n var res; // otherwise both present, so compare\n\n if (aIsSimple) {\n var aSimple = a;\n var bSimple = b;\n res = this.areSimpleModelsEqual(aSimple, bSimple);\n } else {\n var aCombined = a;\n var bCombined = b;\n res = aCombined.operator === bCombined.operator && this.areSimpleModelsEqual(aCombined.condition1, bCombined.condition1) && this.areSimpleModelsEqual(aCombined.condition2, bCombined.condition2);\n }\n\n return res;\n };\n\n SimpleFilter.prototype.setModelIntoUi = function (model) {\n var isCombined = model.operator;\n\n if (isCombined) {\n var combinedModel = model;\n var orChecked = combinedModel.operator === 'OR';\n this.eJoinOperatorAnd.setValue(!orChecked);\n this.eJoinOperatorOr.setValue(orChecked);\n this.eType1.setValue(combinedModel.condition1.type);\n this.eType2.setValue(combinedModel.condition2.type);\n this.setConditionIntoUi(combinedModel.condition1, ConditionPosition.One);\n this.setConditionIntoUi(combinedModel.condition2, ConditionPosition.Two);\n } else {\n var simpleModel = model;\n this.eJoinOperatorAnd.setValue(this.isDefaultOperator('AND'));\n this.eJoinOperatorOr.setValue(this.isDefaultOperator('OR'));\n this.eType1.setValue(simpleModel.type);\n this.eType2.setValue(this.optionsFactory.getDefaultOption());\n this.setConditionIntoUi(simpleModel, ConditionPosition.One);\n this.setConditionIntoUi(null, ConditionPosition.Two);\n }\n\n return AgPromise.resolve();\n };\n\n SimpleFilter.prototype.doesFilterPass = function (params) {\n var _this = this;\n\n var model = this.getModel();\n\n if (model == null) {\n return true;\n }\n\n var operator = model.operator;\n var models = [];\n\n if (operator) {\n var combinedModel = model;\n models.push(combinedModel.condition1, combinedModel.condition2);\n } else {\n models.push(model);\n }\n\n var combineFunction = operator && operator === 'OR' ? 'some' : 'every';\n return models[combineFunction](function (m) {\n return _this.individualConditionPasses(params, m);\n });\n };\n\n SimpleFilter.prototype.setParams = function (params) {\n _super.prototype.setParams.call(this, params);\n\n this.optionsFactory = new OptionsFactory();\n this.optionsFactory.init(params, this.getDefaultFilterOptions());\n this.allowTwoConditions = !params.suppressAndOrCondition;\n this.alwaysShowBothConditions = !!params.alwaysShowBothConditions;\n this.defaultJoinOperator = this.getDefaultJoinOperator(params.defaultJoinOperator);\n this.putOptionsIntoDropdown();\n this.addChangedListeners();\n };\n\n SimpleFilter.prototype.getDefaultJoinOperator = function (defaultJoinOperator) {\n return includes(['AND', 'OR'], defaultJoinOperator) ? defaultJoinOperator : 'AND';\n };\n\n SimpleFilter.prototype.putOptionsIntoDropdown = function () {\n var _this = this;\n\n var filterOptions = this.optionsFactory.getFilterOptions();\n var eTypes = [this.eType1, this.eType2]; // Add specified options to all condition drop-downs.\n\n filterOptions.forEach(function (option) {\n var listOption = typeof option === 'string' ? _this.createBoilerplateListOption(option) : _this.createCustomListOption(option);\n eTypes.forEach(function (eType) {\n return eType.addOption(listOption);\n });\n }); // Make drop-downs read-only if there is only one option.\n\n eTypes.forEach(function (eType) {\n return eType.setDisabled(filterOptions.length <= 1);\n });\n };\n\n SimpleFilter.prototype.createBoilerplateListOption = function (option) {\n return {\n value: option,\n text: this.translate(option)\n };\n };\n\n SimpleFilter.prototype.createCustomListOption = function (option) {\n var displayKey = option.displayKey;\n var customOption = this.optionsFactory.getCustomOption(option.displayKey);\n return {\n value: displayKey,\n text: customOption ? this.gridOptionsWrapper.getLocaleTextFunc()(customOption.displayKey, customOption.displayName) : this.translate(displayKey)\n };\n };\n\n SimpleFilter.prototype.isAllowTwoConditions = function () {\n return this.allowTwoConditions;\n };\n\n SimpleFilter.prototype.createBodyTemplate = function () {\n return (\n /* html */\n \"\\n \\n \" + this.createValueTemplate(ConditionPosition.One) + \"\\n
\\n \\n \\n
\\n \\n \" + this.createValueTemplate(ConditionPosition.Two)\n );\n };\n\n SimpleFilter.prototype.getCssIdentifier = function () {\n return 'simple-filter';\n };\n\n SimpleFilter.prototype.updateUiVisibility = function () {\n var _this = this;\n\n var elementConditionGroups = [[this.eType1], [this.eType2, this.eJoinOperatorPanel, this.eJoinOperatorAnd, this.eJoinOperatorOr]];\n var elementBodies = [this.eCondition1Body, this.eCondition2Body];\n elementConditionGroups.forEach(function (group, position) {\n var visible = _this.isConditionVisible(position);\n\n var disabled = _this.isConditionDisabled(position);\n\n group.forEach(function (element) {\n if (element instanceof AgAbstractInputField || element instanceof AgSelect) {\n element.setDisabled(disabled);\n element.setDisplayed(visible);\n } else {\n setDisabled(element, disabled);\n setDisplayed(element, visible);\n }\n });\n });\n elementBodies.forEach(function (element, index) {\n setDisplayed(element, _this.isConditionBodyVisible(index));\n });\n this.forEachInput(function (element, index, position, numberOfInputs) {\n _this.setElementDisplayed(element, index < numberOfInputs);\n\n _this.setElementDisabled(element, _this.isConditionDisabled(position));\n });\n this.resetPlaceholder();\n };\n\n SimpleFilter.prototype.afterGuiAttached = function (params) {\n _super.prototype.afterGuiAttached.call(this, params);\n\n this.resetPlaceholder();\n\n if (!params || !params.suppressFocus && !this.isReadOnly()) {\n var firstInput = this.getInputs()[0][0];\n\n if (!firstInput) {\n return;\n }\n\n if (firstInput instanceof AgAbstractInputField) {\n firstInput.getInputElement().focus();\n }\n }\n }; // allow sub-classes to reset HTML placeholders after UI update.\n\n\n SimpleFilter.prototype.resetPlaceholder = function () {\n var _this = this;\n\n var globalTranslate = this.gridOptionsWrapper.getLocaleTextFunc();\n this.forEachInput(function (element, index, _, numberOfInputs) {\n if (!(element instanceof AgAbstractInputField)) {\n return;\n }\n\n var placeholder = index === 0 && numberOfInputs > 1 ? 'inRangeStart' : index === 0 ? 'filterOoo' : 'inRangeEnd';\n var ariaLabel = index === 0 && numberOfInputs > 1 ? globalTranslate('ariaFilterFromValue', 'Filter from value') : index === 0 ? globalTranslate('ariaFilterValue', 'Filter Value') : globalTranslate('ariaFilterToValue', 'Filter to Value');\n element.setInputPlaceholder(_this.translate(placeholder));\n element.setInputAriaLabel(ariaLabel);\n });\n };\n\n SimpleFilter.prototype.setElementValue = function (element, value, silent) {\n if (element instanceof AgAbstractInputField) {\n element.setValue(value != null ? String(value) : null, silent);\n }\n };\n\n SimpleFilter.prototype.setElementDisplayed = function (element, displayed) {\n if (element instanceof Component) {\n setDisplayed(element.getGui(), displayed);\n }\n };\n\n SimpleFilter.prototype.setElementDisabled = function (element, disabled) {\n if (element instanceof Component) {\n setDisabled(element.getGui(), disabled);\n }\n };\n\n SimpleFilter.prototype.attachElementOnChange = function (element, listener) {\n if (element instanceof AgAbstractInputField) {\n element.onValueChange(listener);\n }\n };\n\n SimpleFilter.prototype.forEachInput = function (cb) {\n var _this = this;\n\n var inputs = this.getInputs();\n this.getConditionTypes().forEach(function (type, position) {\n var numberOfInputs = _this.getNumberOfInputs(type);\n\n for (var index = 0; index < inputs[position].length; index++) {\n var input = inputs[position][index];\n\n if (input != null) {\n cb(input, index, position, numberOfInputs);\n }\n }\n });\n };\n\n SimpleFilter.prototype.isConditionVisible = function (position) {\n if (position === 0) {\n return true;\n } // Position 0 should always be visible.\n\n\n if (!this.allowTwoConditions) {\n return false;\n } // Short-circuit if no tail conditions.\n\n\n if (this.isReadOnly()) {\n // Only display a condition when read-only if the condition is complete.\n return this.isConditionUiComplete(position);\n }\n\n if (this.alwaysShowBothConditions) {\n return true;\n } // Only display a 2nd or later condition when the previous condition is complete.\n\n\n return this.isConditionUiComplete(position - 1);\n };\n\n SimpleFilter.prototype.isConditionDisabled = function (position) {\n if (this.isReadOnly()) {\n return true;\n } // Read-only mode trumps everything.\n\n\n if (!this.isConditionVisible(position)) {\n return true;\n } // Invisible implies disabled.\n\n\n if (position === 0) {\n return false;\n } // Position 0 should typically be editable.\n // Only allow editing of a 2nd or later condition if the previous condition is complete.\n\n\n return !this.isConditionUiComplete(position - 1);\n };\n\n SimpleFilter.prototype.isConditionBodyVisible = function (position) {\n if (!this.isConditionVisible(position)) {\n return false;\n } // Check that the condition needs inputs.\n\n\n var type = this.getConditionTypes()[position];\n var numberOfInputs = this.getNumberOfInputs(type);\n return numberOfInputs > 0;\n }; // returns true if the UI represents a working filter, eg all parts are filled out.\n // eg if text filter and textfield blank then returns false.\n\n\n SimpleFilter.prototype.isConditionUiComplete = function (position) {\n var type = this.getConditionTypes()[position];\n\n if (type === SimpleFilter.EMPTY) {\n return false;\n }\n\n if (this.getValues(position).some(function (v) {\n return v == null;\n })) {\n return false;\n }\n\n return true;\n };\n\n SimpleFilter.prototype.resetUiToDefaults = function (silent) {\n var _this = this;\n\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var filteringLabel = translate('ariaFilteringOperator', 'Filtering operator');\n var uniqueGroupId = 'ag-simple-filter-and-or-' + this.getCompId();\n var defaultOption = this.optionsFactory.getDefaultOption();\n this.eType1.setValue(defaultOption, silent).setAriaLabel(filteringLabel).setDisabled(this.isReadOnly());\n this.eType2.setValue(this.optionsFactory.getDefaultOption(), silent).setAriaLabel(filteringLabel).setDisabled(this.isReadOnly());\n this.eJoinOperatorAnd.setValue(this.isDefaultOperator('AND'), silent).setName(uniqueGroupId).setLabel(this.translate('andCondition')).setDisabled(this.isReadOnly());\n this.eJoinOperatorOr.setValue(this.isDefaultOperator('OR'), silent).setName(uniqueGroupId).setLabel(this.translate('orCondition')).setDisabled(this.isReadOnly());\n this.forEachInput(function (element) {\n _this.setElementValue(element, null, silent);\n\n _this.setElementDisabled(element, _this.isReadOnly());\n });\n this.resetPlaceholder();\n return AgPromise.resolve();\n }; // puts model values into the UI\n\n\n SimpleFilter.prototype.setConditionIntoUi = function (model, position) {\n var _this = this;\n\n var values = this.mapValuesFromModel(model);\n this.forEachInput(function (element, index, elPosition, _) {\n if (elPosition !== position) {\n return;\n }\n\n _this.setElementValue(element, values[index] != null ? values[index] : null);\n });\n }; // after floating filter changes, this sets the 'value' section. this is implemented by the base class\n // (as that's where value is controlled), the 'type' part from the floating filter is dealt with in this class.\n\n\n SimpleFilter.prototype.setValueFromFloatingFilter = function (value) {\n var _this = this;\n\n this.forEachInput(function (element, index, position, _) {\n _this.setElementValue(element, index === 0 && position === 0 ? value : null);\n });\n };\n\n SimpleFilter.prototype.isDefaultOperator = function (operator) {\n return operator === this.defaultJoinOperator;\n };\n\n SimpleFilter.prototype.addChangedListeners = function () {\n var _this = this;\n\n if (this.isReadOnly()) {\n return;\n }\n\n var listener = function listener() {\n return _this.onUiChanged();\n };\n\n this.eType1.onValueChange(listener);\n this.eType2.onValueChange(listener);\n this.eJoinOperatorOr.onValueChange(listener);\n this.eJoinOperatorAnd.onValueChange(listener);\n this.forEachInput(function (element) {\n _this.attachElementOnChange(element, listener);\n });\n };\n /** returns true if the row passes the said condition */\n\n\n SimpleFilter.prototype.individualConditionPasses = function (params, filterModel) {\n var cellValue = this.getCellValue(params.node);\n var values = this.mapValuesFromModel(filterModel);\n var customFilterOption = this.optionsFactory.getCustomOption(filterModel.type);\n var customFilterResult = this.evaluateCustomFilter(customFilterOption, values, cellValue);\n\n if (customFilterResult != null) {\n return customFilterResult;\n }\n\n if (cellValue == null) {\n return this.evaluateNullValue(filterModel.type);\n }\n\n return this.evaluateNonNullValue(values, cellValue, filterModel, params);\n };\n\n SimpleFilter.prototype.evaluateCustomFilter = function (customFilterOption, values, cellValue) {\n if (customFilterOption == null) {\n return;\n }\n\n var predicate = customFilterOption.predicate; // only execute the custom filter if a value exists or a value isn't required, i.e. input is hidden\n\n if (predicate != null && !values.some(function (v) {\n return v == null;\n })) {\n return predicate(values, cellValue);\n } // No custom filter invocation, indicate that to the caller.\n\n\n return;\n };\n\n SimpleFilter.prototype.isBlank = function (cellValue) {\n return cellValue == null || typeof cellValue === 'string' && cellValue.trim().length === 0;\n };\n\n SimpleFilter.EMPTY = 'empty';\n SimpleFilter.BLANK = 'blank';\n SimpleFilter.NOT_BLANK = 'notBlank';\n SimpleFilter.EQUALS = 'equals';\n SimpleFilter.NOT_EQUAL = 'notEqual';\n SimpleFilter.LESS_THAN = 'lessThan';\n SimpleFilter.LESS_THAN_OR_EQUAL = 'lessThanOrEqual';\n SimpleFilter.GREATER_THAN = 'greaterThan';\n SimpleFilter.GREATER_THAN_OR_EQUAL = 'greaterThanOrEqual';\n SimpleFilter.IN_RANGE = 'inRange';\n SimpleFilter.CONTAINS = 'contains';\n SimpleFilter.NOT_CONTAINS = 'notContains';\n SimpleFilter.STARTS_WITH = 'startsWith';\n SimpleFilter.ENDS_WITH = 'endsWith';\n\n __decorate$2g([RefSelector('eOptions1')], SimpleFilter.prototype, \"eType1\", void 0);\n\n __decorate$2g([RefSelector('eOptions2')], SimpleFilter.prototype, \"eType2\", void 0);\n\n __decorate$2g([RefSelector('eJoinOperatorPanel')], SimpleFilter.prototype, \"eJoinOperatorPanel\", void 0);\n\n __decorate$2g([RefSelector('eJoinOperatorAnd')], SimpleFilter.prototype, \"eJoinOperatorAnd\", void 0);\n\n __decorate$2g([RefSelector('eJoinOperatorOr')], SimpleFilter.prototype, \"eJoinOperatorOr\", void 0);\n\n __decorate$2g([RefSelector('eCondition1Body')], SimpleFilter.prototype, \"eCondition1Body\", void 0);\n\n __decorate$2g([RefSelector('eCondition2Body')], SimpleFilter.prototype, \"eCondition2Body\", void 0);\n\n return SimpleFilter;\n}(ProvidedFilter);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2D = undefined && undefined.__extends || function () {\n var _extendStatics18 = function extendStatics(d, b) {\n _extendStatics18 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics18(d, b);\n };\n\n return function (d, b) {\n _extendStatics18(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar ScalarFilter =\n/** @class */\nfunction (_super) {\n __extends$2D(ScalarFilter, _super);\n\n function ScalarFilter() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n ScalarFilter.prototype.setParams = function (params) {\n _super.prototype.setParams.call(this, params);\n\n this.scalarFilterParams = params;\n };\n\n ScalarFilter.prototype.evaluateNullValue = function (filterType) {\n switch (filterType) {\n case ScalarFilter.EQUALS:\n case ScalarFilter.NOT_EQUAL:\n if (this.scalarFilterParams.includeBlanksInEquals) {\n return true;\n }\n\n break;\n\n case ScalarFilter.GREATER_THAN:\n case ScalarFilter.GREATER_THAN_OR_EQUAL:\n if (this.scalarFilterParams.includeBlanksInGreaterThan) {\n return true;\n }\n\n break;\n\n case ScalarFilter.LESS_THAN:\n case ScalarFilter.LESS_THAN_OR_EQUAL:\n if (this.scalarFilterParams.includeBlanksInLessThan) {\n return true;\n }\n\n break;\n\n case ScalarFilter.IN_RANGE:\n if (this.scalarFilterParams.includeBlanksInRange) {\n return true;\n }\n\n break;\n\n case ScalarFilter.BLANK:\n return true;\n\n case ScalarFilter.NOT_BLANK:\n return false;\n }\n\n return false;\n };\n\n ScalarFilter.prototype.evaluateNonNullValue = function (values, cellValue, filterModel) {\n var comparator = this.comparator();\n var compareResult = values[0] != null ? comparator(values[0], cellValue) : 0;\n\n switch (filterModel.type) {\n case ScalarFilter.EQUALS:\n return compareResult === 0;\n\n case ScalarFilter.NOT_EQUAL:\n return compareResult !== 0;\n\n case ScalarFilter.GREATER_THAN:\n return compareResult > 0;\n\n case ScalarFilter.GREATER_THAN_OR_EQUAL:\n return compareResult >= 0;\n\n case ScalarFilter.LESS_THAN:\n return compareResult < 0;\n\n case ScalarFilter.LESS_THAN_OR_EQUAL:\n return compareResult <= 0;\n\n case ScalarFilter.IN_RANGE:\n {\n var compareToResult = comparator(values[1], cellValue);\n return this.scalarFilterParams.inRangeInclusive ? compareResult >= 0 && compareToResult <= 0 : compareResult > 0 && compareToResult < 0;\n }\n\n case ScalarFilter.BLANK:\n return this.isBlank(cellValue);\n\n case ScalarFilter.NOT_BLANK:\n return !this.isBlank(cellValue);\n\n default:\n console.warn('AG Grid: Unexpected type of filter \"' + filterModel.type + '\", it looks like the filter was configured with incorrect Filter Options');\n return true;\n }\n };\n\n return ScalarFilter;\n}(SimpleFilter);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2C = undefined && undefined.__extends || function () {\n var _extendStatics19 = function extendStatics(d, b) {\n _extendStatics19 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics19(d, b);\n };\n\n return function (d, b) {\n _extendStatics19(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$a = undefined && undefined.__assign || function () {\n __assign$a = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$a.apply(this, arguments);\n};\n\nvar __decorate$2f = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar DEFAULT_MIN_YEAR = 1000;\nvar DEFAULT_MAX_YEAR = Infinity;\n\nvar DateFilter =\n/** @class */\nfunction (_super) {\n __extends$2C(DateFilter, _super);\n\n function DateFilter() {\n var _this = _super.call(this, 'dateFilter') || this;\n\n _this.minValidYear = DEFAULT_MIN_YEAR;\n _this.maxValidYear = DEFAULT_MAX_YEAR;\n return _this;\n }\n\n DateFilter.prototype.afterGuiAttached = function (params) {\n _super.prototype.afterGuiAttached.call(this, params);\n\n this.dateCondition1FromComp.afterGuiAttached(params);\n };\n\n DateFilter.prototype.mapValuesFromModel = function (filterModel) {\n // unlike the other filters, we do two things here:\n // 1) allow for different attribute names (same as done for other filters) (eg the 'from' and 'to'\n // are in different locations in Date and Number filter models)\n // 2) convert the type (because Date filter uses Dates, however model is 'string')\n //\n // NOTE: The conversion of string to date also removes the timezone - i.e. when user picks\n // a date from the UI, it will have timezone info in it. This is lost when creating\n // the model. When we recreate the date again here, it's without a timezone.\n var _a = filterModel || {},\n dateFrom = _a.dateFrom,\n dateTo = _a.dateTo,\n type = _a.type;\n\n return [dateFrom && parseDateTimeFromString(dateFrom) || null, dateTo && parseDateTimeFromString(dateTo) || null].slice(0, this.getNumberOfInputs(type));\n };\n\n DateFilter.prototype.comparator = function () {\n return this.dateFilterParams.comparator ? this.dateFilterParams.comparator : this.defaultComparator.bind(this);\n };\n\n DateFilter.prototype.defaultComparator = function (filterDate, cellValue) {\n // The default comparator assumes that the cellValue is a date\n var cellAsDate = cellValue;\n\n if (cellValue == null || cellAsDate < filterDate) {\n return -1;\n }\n\n if (cellAsDate > filterDate) {\n return 1;\n }\n\n return 0;\n };\n\n DateFilter.prototype.setParams = function (params) {\n _super.prototype.setParams.call(this, params);\n\n this.dateFilterParams = params;\n\n var yearParser = function yearParser(param, fallback) {\n if (params[param] != null) {\n if (!isNaN(params[param])) {\n return params[param] == null ? fallback : Number(params[param]);\n } else {\n console.warn(\"AG Grid: DateFilter \" + param + \" is not a number\");\n }\n }\n\n return fallback;\n };\n\n this.minValidYear = yearParser('minValidYear', DEFAULT_MIN_YEAR);\n this.maxValidYear = yearParser('maxValidYear', DEFAULT_MAX_YEAR);\n\n if (this.minValidYear > this.maxValidYear) {\n console.warn(\"AG Grid: DateFilter minValidYear should be <= maxValidYear\");\n }\n\n this.createDateComponents();\n };\n\n DateFilter.prototype.createDateComponents = function () {\n var _this = this;\n\n var createDateCompWrapper = function createDateCompWrapper(element) {\n return new DateCompWrapper(_this.getContext(), _this.userComponentFactory, {\n onDateChanged: function onDateChanged() {\n return _this.onUiChanged();\n },\n filterParams: _this.dateFilterParams\n }, element);\n };\n\n this.dateCondition1FromComp = createDateCompWrapper(this.eCondition1PanelFrom);\n this.dateCondition1ToComp = createDateCompWrapper(this.eCondition1PanelTo);\n this.dateCondition2FromComp = createDateCompWrapper(this.eCondition2PanelFrom);\n this.dateCondition2ToComp = createDateCompWrapper(this.eCondition2PanelTo);\n this.addDestroyFunc(function () {\n _this.forEachInput(function (element) {\n return element.destroy();\n });\n });\n };\n\n DateFilter.prototype.setElementValue = function (element, value, silent) {\n element.setDate(value);\n };\n\n DateFilter.prototype.setElementDisplayed = function (element, displayed) {\n element.setDisplayed(displayed);\n };\n\n DateFilter.prototype.setElementDisabled = function (element, disabled) {\n element.setDisabled(disabled);\n };\n\n DateFilter.prototype.getDefaultFilterOptions = function () {\n return DateFilter.DEFAULT_FILTER_OPTIONS;\n };\n\n DateFilter.prototype.createValueTemplate = function (position) {\n var pos = position === ConditionPosition.One ? '1' : '2';\n return (\n /* html */\n \"\\n
\\n
\\n
\\n
\"\n );\n };\n\n DateFilter.prototype.isConditionUiComplete = function (position) {\n var _this = this;\n\n if (!_super.prototype.isConditionUiComplete.call(this, position)) {\n return false;\n }\n\n var isValidDate = function isValidDate(value) {\n return value != null && value.getUTCFullYear() >= _this.minValidYear && value.getUTCFullYear() <= _this.maxValidYear;\n };\n\n var valid = true;\n this.forEachInput(function (element, index, elPosition, numberOfInputs) {\n if (elPosition !== position || !valid || index >= numberOfInputs) {\n return;\n }\n\n valid = valid && isValidDate(element.getDate());\n });\n return valid;\n };\n\n DateFilter.prototype.areSimpleModelsEqual = function (aSimple, bSimple) {\n return aSimple.dateFrom === bSimple.dateFrom && aSimple.dateTo === bSimple.dateTo && aSimple.type === bSimple.type;\n };\n\n DateFilter.prototype.getFilterType = function () {\n return 'date';\n };\n\n DateFilter.prototype.createCondition = function (position) {\n var type = this.getConditionTypes()[position];\n var model = {};\n var values = this.getValues(position);\n\n if (values.length > 0) {\n model.dateFrom = serialiseDate(values[0]);\n }\n\n if (values.length > 1) {\n model.dateTo = serialiseDate(values[1]);\n }\n\n return __assign$a({\n dateFrom: null,\n dateTo: null,\n filterType: this.getFilterType(),\n type: type\n }, model);\n };\n\n DateFilter.prototype.resetPlaceholder = function () {\n var globalTranslate = this.gridOptionsWrapper.getLocaleTextFunc();\n var placeholder = this.translate('dateFormatOoo');\n var ariaLabel = globalTranslate('ariaFilterValue', 'Filter Value');\n this.forEachInput(function (element) {\n element.setInputPlaceholder(placeholder);\n element.setInputAriaLabel(ariaLabel);\n });\n };\n\n DateFilter.prototype.getInputs = function () {\n return [[this.dateCondition1FromComp, this.dateCondition1ToComp], [this.dateCondition2FromComp, this.dateCondition2ToComp]];\n };\n\n DateFilter.prototype.getValues = function (position) {\n var result = [];\n this.forEachInput(function (element, index, elPosition, numberOfInputs) {\n if (position === elPosition && index < numberOfInputs) {\n result.push(element.getDate());\n }\n });\n return result;\n };\n\n DateFilter.DEFAULT_FILTER_OPTIONS = [ScalarFilter.EQUALS, ScalarFilter.GREATER_THAN, ScalarFilter.LESS_THAN, ScalarFilter.NOT_EQUAL, ScalarFilter.IN_RANGE, ScalarFilter.BLANK, ScalarFilter.NOT_BLANK];\n\n __decorate$2f([RefSelector('eCondition1PanelFrom')], DateFilter.prototype, \"eCondition1PanelFrom\", void 0);\n\n __decorate$2f([RefSelector('eCondition1PanelTo')], DateFilter.prototype, \"eCondition1PanelTo\", void 0);\n\n __decorate$2f([RefSelector('eCondition2PanelFrom')], DateFilter.prototype, \"eCondition2PanelFrom\", void 0);\n\n __decorate$2f([RefSelector('eCondition2PanelTo')], DateFilter.prototype, \"eCondition2PanelTo\", void 0);\n\n __decorate$2f([Autowired('userComponentFactory')], DateFilter.prototype, \"userComponentFactory\", void 0);\n\n return DateFilter;\n}(ScalarFilter);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2B = undefined && undefined.__extends || function () {\n var _extendStatics20 = function extendStatics(d, b) {\n _extendStatics20 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics20(d, b);\n };\n\n return function (d, b) {\n _extendStatics20(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar SimpleFloatingFilter =\n/** @class */\nfunction (_super) {\n __extends$2B(SimpleFloatingFilter, _super);\n\n function SimpleFloatingFilter() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n SimpleFloatingFilter.prototype.getDefaultDebounceMs = function () {\n return 0;\n }; // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n // so we need to override destroy() just to make the method public.\n\n\n SimpleFloatingFilter.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n }; // used by:\n // 1) NumberFloatingFilter & TextFloatingFilter: Always, for both when editable and read only.\n // 2) DateFloatingFilter: Only when read only (as we show text rather than a date picker when read only)\n\n\n SimpleFloatingFilter.prototype.getTextFromModel = function (model) {\n if (!model) {\n return null;\n }\n\n var isCombined = model.operator != null;\n\n if (isCombined) {\n var combinedModel = model;\n\n var _a = combinedModel || {},\n condition1 = _a.condition1,\n condition2 = _a.condition2;\n\n var customOption1 = this.optionsFactory.getCustomOption(condition1.type);\n var customOption2 = this.optionsFactory.getCustomOption(condition2.type);\n return [this.conditionToString(condition1, customOption1), combinedModel.operator, this.conditionToString(condition2, customOption2)].join(' ');\n } else {\n var condition = model;\n var customOption = this.optionsFactory.getCustomOption(condition.type); // For custom filter options we display the Name of the filter instead\n // of displaying the `from` value, as it wouldn't be relevant\n\n var _b = customOption || {},\n displayKey = _b.displayKey,\n displayName = _b.displayName,\n numberOfInputs = _b.numberOfInputs;\n\n if (displayKey && displayName && numberOfInputs === 0) {\n this.gridOptionsWrapper.getLocaleTextFunc()(displayKey, displayName);\n return displayName;\n }\n\n return this.conditionToString(condition, customOption);\n }\n };\n\n SimpleFloatingFilter.prototype.isEventFromFloatingFilter = function (event) {\n return event && event.afterFloatingFilter;\n };\n\n SimpleFloatingFilter.prototype.getLastType = function () {\n return this.lastType;\n };\n\n SimpleFloatingFilter.prototype.isReadOnly = function () {\n return this.readOnly;\n };\n\n SimpleFloatingFilter.prototype.setLastTypeFromModel = function (model) {\n // if no model provided by the parent filter use default\n if (!model) {\n this.lastType = this.optionsFactory.getDefaultOption();\n return;\n }\n\n var isCombined = model.operator;\n var condition;\n\n if (isCombined) {\n var combinedModel = model;\n condition = combinedModel.condition1;\n } else {\n condition = model;\n }\n\n this.lastType = condition.type;\n };\n\n SimpleFloatingFilter.prototype.canWeEditAfterModelFromParentFilter = function (model) {\n if (!model) {\n // if no model, then we can edit as long as the lastType is something we can edit, as this\n // is the type we will provide to the parent filter if the user decides to use the floating filter.\n return this.isTypeEditable(this.lastType);\n } // never allow editing if the filter is combined (ie has two parts)\n\n\n var isCombined = model.operator;\n\n if (isCombined) {\n return false;\n }\n\n var simpleModel = model;\n return this.isTypeEditable(simpleModel.type);\n };\n\n SimpleFloatingFilter.prototype.init = function (params) {\n this.optionsFactory = new OptionsFactory();\n this.optionsFactory.init(params.filterParams, this.getDefaultFilterOptions());\n this.lastType = this.optionsFactory.getDefaultOption(); // readOnly is a property of IProvidedFilterParams - we need to find a better (type-safe)\n // way to support reading this in the future.\n\n this.readOnly = !!params.filterParams.readOnly; // we are editable if:\n // 1) there is a type (user has configured filter wrong if not type)\n // AND\n // 2) the default type is not 'in range'\n\n var editable = this.isTypeEditable(this.lastType);\n this.setEditable(editable);\n };\n\n SimpleFloatingFilter.prototype.doesFilterHaveSingleInput = function (filterType) {\n var customFilterOption = this.optionsFactory.getCustomOption(filterType);\n var numberOfInputs = (customFilterOption || {}).numberOfInputs;\n return numberOfInputs == null || numberOfInputs == 1;\n };\n\n SimpleFloatingFilter.prototype.isTypeEditable = function (type) {\n var uneditableTypes = [SimpleFilter.IN_RANGE, SimpleFilter.EMPTY, SimpleFilter.BLANK, SimpleFilter.NOT_BLANK];\n return !!type && !this.isReadOnly() && this.doesFilterHaveSingleInput(type) && uneditableTypes.indexOf(type) < 0;\n };\n\n return SimpleFloatingFilter;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2A = undefined && undefined.__extends || function () {\n var _extendStatics21 = function extendStatics(d, b) {\n _extendStatics21 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics21(d, b);\n };\n\n return function (d, b) {\n _extendStatics21(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2e = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar DateFloatingFilter =\n/** @class */\nfunction (_super) {\n __extends$2A(DateFloatingFilter, _super);\n\n function DateFloatingFilter() {\n return _super.call(this,\n /* html */\n \"\\n
\\n \\n
\\n
\") || this;\n }\n\n DateFloatingFilter.prototype.getDefaultFilterOptions = function () {\n return DateFilter.DEFAULT_FILTER_OPTIONS;\n };\n\n DateFloatingFilter.prototype.conditionToString = function (condition, options) {\n var type = condition.type;\n var numberOfInputs = (options || {}).numberOfInputs;\n var isRange = type == SimpleFilter.IN_RANGE || numberOfInputs === 2;\n var dateFrom = parseDateTimeFromString(condition.dateFrom);\n var dateTo = parseDateTimeFromString(condition.dateTo);\n var format = this.filterParams.inRangeFloatingFilterDateFormat;\n\n if (isRange) {\n var formattedFrom = dateFrom !== null ? dateToFormattedString(dateFrom, format) : 'null';\n var formattedTo = dateTo !== null ? dateToFormattedString(dateTo, format) : 'null';\n return formattedFrom + \"-\" + formattedTo;\n }\n\n if (dateFrom != null) {\n return dateToFormattedString(dateFrom, format);\n } // cater for when the type doesn't need a value\n\n\n return \"\" + type;\n };\n\n DateFloatingFilter.prototype.init = function (params) {\n _super.prototype.init.call(this, params);\n\n this.params = params;\n this.filterParams = params.filterParams;\n this.createDateComponent();\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n this.eReadOnlyText.setDisabled(true).setInputAriaLabel(translate('ariaDateFilterInput', 'Date Filter Input'));\n };\n\n DateFloatingFilter.prototype.setEditable = function (editable) {\n setDisplayed(this.eDateWrapper, editable);\n setDisplayed(this.eReadOnlyText.getGui(), !editable);\n };\n\n DateFloatingFilter.prototype.onParentModelChanged = function (model, event) {\n // We don't want to update the floating filter if the floating filter caused the change,\n // because the UI is already in sync. if we didn't do this, the UI would behave strangely\n // as it would be updating as the user is typing\n if (this.isEventFromFloatingFilter(event)) {\n return;\n }\n\n _super.prototype.setLastTypeFromModel.call(this, model);\n\n var allowEditing = !this.isReadOnly() && this.canWeEditAfterModelFromParentFilter(model);\n this.setEditable(allowEditing);\n\n if (allowEditing) {\n if (model) {\n var dateModel = model;\n this.dateComp.setDate(parseDateTimeFromString(dateModel.dateFrom));\n } else {\n this.dateComp.setDate(null);\n }\n\n this.eReadOnlyText.setValue('');\n } else {\n this.eReadOnlyText.setValue(this.getTextFromModel(model));\n this.dateComp.setDate(null);\n }\n };\n\n DateFloatingFilter.prototype.onDateChanged = function () {\n var _this = this;\n\n var filterValueDate = this.dateComp.getDate();\n var filterValueText = serialiseDate(filterValueDate);\n this.params.parentFilterInstance(function (filterInstance) {\n if (filterInstance) {\n var date = parseDateTimeFromString(filterValueText);\n filterInstance.onFloatingFilterChanged(_this.getLastType() || null, date);\n }\n });\n };\n\n DateFloatingFilter.prototype.createDateComponent = function () {\n var _this = this;\n\n var debounceMs = ProvidedFilter.getDebounceMs(this.params.filterParams, this.getDefaultDebounceMs());\n var dateComponentParams = {\n onDateChanged: debounce(this.onDateChanged.bind(this), debounceMs),\n filterParams: this.params.column.getColDef().filterParams\n };\n this.dateComp = new DateCompWrapper(this.getContext(), this.userComponentFactory, dateComponentParams, this.eDateWrapper);\n this.addDestroyFunc(function () {\n return _this.dateComp.destroy();\n });\n };\n\n __decorate$2e([Autowired('userComponentFactory')], DateFloatingFilter.prototype, \"userComponentFactory\", void 0);\n\n __decorate$2e([RefSelector('eReadOnlyText')], DateFloatingFilter.prototype, \"eReadOnlyText\", void 0);\n\n __decorate$2e([RefSelector('eDateWrapper')], DateFloatingFilter.prototype, \"eDateWrapper\", void 0);\n\n return DateFloatingFilter;\n}(SimpleFloatingFilter);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2z = undefined && undefined.__extends || function () {\n var _extendStatics22 = function extendStatics(d, b) {\n _extendStatics22 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics22(d, b);\n };\n\n return function (d, b) {\n _extendStatics22(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2d = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar DefaultDateComponent =\n/** @class */\nfunction (_super) {\n __extends$2z(DefaultDateComponent, _super);\n\n function DefaultDateComponent() {\n return _super.call(this,\n /* html */\n \"\\n
\\n \\n
\") || this;\n } // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n // so we need to override destroy() just to make the method public.\n\n\n DefaultDateComponent.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n DefaultDateComponent.prototype.init = function (params) {\n var _this = this;\n\n var eDocument = this.gridOptionsWrapper.getDocument();\n var inputElement = this.eDateInput.getInputElement();\n\n if (this.shouldUseBrowserDatePicker(params)) {\n inputElement.type = 'date';\n } // ensures that the input element is focussed when a clear button is clicked\n\n\n this.addManagedListener(inputElement, 'mousedown', function () {\n if (_this.eDateInput.isDisabled()) {\n return;\n }\n\n inputElement.focus();\n });\n this.addManagedListener(inputElement, 'input', function (e) {\n if (e.target !== eDocument.activeElement) {\n return;\n }\n\n if (_this.eDateInput.isDisabled()) {\n return;\n }\n\n params.onDateChanged();\n });\n\n var _a = params.filterParams || {},\n minValidYear = _a.minValidYear,\n maxValidYear = _a.maxValidYear;\n\n if (minValidYear) {\n inputElement.min = minValidYear + \"-01-01\";\n }\n\n if (maxValidYear) {\n inputElement.max = maxValidYear + \"-12-31\";\n }\n };\n\n DefaultDateComponent.prototype.getDate = function () {\n return parseDateTimeFromString(this.eDateInput.getValue());\n };\n\n DefaultDateComponent.prototype.setDate = function (date) {\n this.eDateInput.setValue(serialiseDate(date, false));\n };\n\n DefaultDateComponent.prototype.setInputPlaceholder = function (placeholder) {\n this.eDateInput.setInputPlaceholder(placeholder);\n };\n\n DefaultDateComponent.prototype.setDisabled = function (disabled) {\n this.eDateInput.setDisabled(disabled);\n };\n\n DefaultDateComponent.prototype.afterGuiAttached = function (params) {\n if (!params || !params.suppressFocus) {\n this.eDateInput.getInputElement().focus();\n }\n };\n\n DefaultDateComponent.prototype.shouldUseBrowserDatePicker = function (params) {\n if (params.filterParams && params.filterParams.browserDatePicker != null) {\n return params.filterParams.browserDatePicker;\n }\n\n return isBrowserChrome() || isBrowserFirefox();\n };\n\n __decorate$2d([RefSelector('eDateInput')], DefaultDateComponent.prototype, \"eDateInput\", void 0);\n\n return DefaultDateComponent;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2y = undefined && undefined.__extends || function () {\n var _extendStatics23 = function extendStatics(d, b) {\n _extendStatics23 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics23(d, b);\n };\n\n return function (d, b) {\n _extendStatics23(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2c = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar NumberFilter =\n/** @class */\nfunction (_super) {\n __extends$2y(NumberFilter, _super);\n\n function NumberFilter() {\n return _super.call(this, 'numberFilter') || this;\n }\n\n NumberFilter.prototype.mapValuesFromModel = function (filterModel) {\n var _a = filterModel || {},\n filter = _a.filter,\n filterTo = _a.filterTo,\n type = _a.type;\n\n return [filter == null ? null : filter, filterTo == null ? null : filterTo].slice(0, this.getNumberOfInputs(type));\n };\n\n NumberFilter.prototype.getDefaultDebounceMs = function () {\n return 500;\n };\n\n NumberFilter.prototype.comparator = function () {\n return function (left, right) {\n if (left === right) {\n return 0;\n }\n\n return left < right ? 1 : -1;\n };\n };\n\n NumberFilter.prototype.setParams = function (params) {\n this.numberFilterParams = params;\n var allowedCharPattern = this.getAllowedCharPattern();\n\n if (allowedCharPattern) {\n var config = {\n allowedCharPattern: allowedCharPattern\n };\n this.resetTemplate({\n 'eValue-index0-1': config,\n 'eValue-index1-1': config,\n 'eValue-index0-2': config,\n 'eValue-index1-2': config\n });\n }\n\n _super.prototype.setParams.call(this, params);\n };\n\n NumberFilter.prototype.getDefaultFilterOptions = function () {\n return NumberFilter.DEFAULT_FILTER_OPTIONS;\n };\n\n NumberFilter.prototype.createValueTemplate = function (position) {\n var pos = position === ConditionPosition.One ? '1' : '2';\n var allowedCharPattern = this.getAllowedCharPattern();\n var agElementTag = allowedCharPattern ? 'ag-input-text-field' : 'ag-input-number-field';\n return (\n /* html */\n \"\\n
\\n <\" + agElementTag + \" class=\\\"ag-filter-from ag-filter-filter\\\" ref=\\\"eValue-index0-\" + pos + \"\\\">\\n <\" + agElementTag + \" class=\\\"ag-filter-to ag-filter-filter\\\" ref=\\\"eValue-index1-\" + pos + \"\\\">\\n
\"\n );\n };\n\n NumberFilter.prototype.getValues = function (position) {\n var _this = this;\n\n var result = [];\n this.forEachInput(function (element, index, elPosition, numberOfInputs) {\n if (position === elPosition && index < numberOfInputs) {\n result.push(_this.stringToFloat(element.getValue()));\n }\n });\n return result;\n };\n\n NumberFilter.prototype.areSimpleModelsEqual = function (aSimple, bSimple) {\n return aSimple.filter === bSimple.filter && aSimple.filterTo === bSimple.filterTo && aSimple.type === bSimple.type;\n };\n\n NumberFilter.prototype.getFilterType = function () {\n return 'number';\n };\n\n NumberFilter.prototype.stringToFloat = function (value) {\n if (typeof value === 'number') {\n return value;\n }\n\n var filterText = makeNull(value);\n\n if (filterText != null && filterText.trim() === '') {\n filterText = null;\n }\n\n if (this.numberFilterParams.numberParser) {\n return this.numberFilterParams.numberParser(filterText);\n }\n\n return filterText == null || filterText.trim() === '-' ? null : parseFloat(filterText);\n };\n\n NumberFilter.prototype.createCondition = function (position) {\n var type = this.getConditionTypes()[position];\n var model = {\n filterType: this.getFilterType(),\n type: type\n };\n var values = this.getValues(position);\n\n if (values.length > 0) {\n model.filter = values[0];\n }\n\n if (values.length > 1) {\n model.filterTo = values[1];\n }\n\n return model;\n };\n\n NumberFilter.prototype.getInputs = function () {\n return [[this.eValueFrom1, this.eValueTo1], [this.eValueFrom2, this.eValueTo2]];\n };\n\n NumberFilter.prototype.getAllowedCharPattern = function () {\n var allowedCharPattern = (this.numberFilterParams || {}).allowedCharPattern;\n\n if (allowedCharPattern) {\n return allowedCharPattern;\n }\n\n if (!isBrowserChrome() && !isBrowserEdge()) {\n // only Chrome and Edge support the HTML5 number field, so for other browsers we provide an equivalent\n // constraint instead\n return '\\\\d\\\\-\\\\.';\n }\n\n return null;\n };\n\n NumberFilter.DEFAULT_FILTER_OPTIONS = [ScalarFilter.EQUALS, ScalarFilter.NOT_EQUAL, ScalarFilter.LESS_THAN, ScalarFilter.LESS_THAN_OR_EQUAL, ScalarFilter.GREATER_THAN, ScalarFilter.GREATER_THAN_OR_EQUAL, ScalarFilter.IN_RANGE, ScalarFilter.BLANK, ScalarFilter.NOT_BLANK];\n\n __decorate$2c([RefSelector('eValue-index0-1')], NumberFilter.prototype, \"eValueFrom1\", void 0);\n\n __decorate$2c([RefSelector('eValue-index1-1')], NumberFilter.prototype, \"eValueTo1\", void 0);\n\n __decorate$2c([RefSelector('eValue-index0-2')], NumberFilter.prototype, \"eValueFrom2\", void 0);\n\n __decorate$2c([RefSelector('eValue-index1-2')], NumberFilter.prototype, \"eValueTo2\", void 0);\n\n return NumberFilter;\n}(ScalarFilter);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2x = undefined && undefined.__extends || function () {\n var _extendStatics24 = function extendStatics(d, b) {\n _extendStatics24 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics24(d, b);\n };\n\n return function (d, b) {\n _extendStatics24(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$9 = undefined && undefined.__assign || function () {\n __assign$9 = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$9.apply(this, arguments);\n};\n\nvar __decorate$2b = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar TextFilter =\n/** @class */\nfunction (_super) {\n __extends$2x(TextFilter, _super);\n\n function TextFilter() {\n return _super.call(this, 'textFilter') || this;\n }\n\n TextFilter.trimInput = function (value) {\n var trimmedInput = value && value.trim(); // trim the input, unless it is all whitespace (this is consistent with Excel behaviour)\n\n return trimmedInput === '' ? value : trimmedInput;\n };\n\n TextFilter.prototype.getDefaultDebounceMs = function () {\n return 500;\n };\n\n TextFilter.prototype.setParams = function (params) {\n _super.prototype.setParams.call(this, params);\n\n this.textFilterParams = params;\n this.matcher = this.getTextMatcher();\n this.formatter = this.textFilterParams.textFormatter || (this.textFilterParams.caseSensitive ? TextFilter.DEFAULT_FORMATTER : TextFilter.DEFAULT_LOWERCASE_FORMATTER);\n };\n\n TextFilter.prototype.getTextMatcher = function () {\n var legacyComparator = this.textFilterParams.textCustomComparator;\n\n if (legacyComparator) {\n _.doOnce(function () {\n return console.warn('AG Grid - textCustomComparator is deprecated, use textMatcher instead.');\n }, 'textCustomComparator.deprecated');\n\n return function (_a) {\n var filterOption = _a.filterOption,\n value = _a.value,\n filterText = _a.filterText;\n return legacyComparator(filterOption, value, filterText);\n };\n }\n\n return this.textFilterParams.textMatcher || TextFilter.DEFAULT_MATCHER;\n };\n\n TextFilter.prototype.createCondition = function (position) {\n var type = this.getConditionTypes()[position];\n var model = {\n filterType: this.getFilterType(),\n type: type\n };\n var values = this.getValues(position);\n\n if (values.length > 0) {\n model.filter = values[0];\n }\n\n if (values.length > 1) {\n model.filterTo = values[1];\n }\n\n return model;\n };\n\n TextFilter.prototype.getFilterType = function () {\n return 'text';\n };\n\n TextFilter.prototype.areSimpleModelsEqual = function (aSimple, bSimple) {\n return aSimple.filter === bSimple.filter && aSimple.filterTo === bSimple.filterTo && aSimple.type === bSimple.type;\n };\n\n TextFilter.prototype.getInputs = function () {\n return [[this.eValueFrom1, this.eValueTo1], [this.eValueFrom2, this.eValueTo2]];\n };\n\n TextFilter.prototype.getValues = function (position) {\n var _this = this;\n\n var result = [];\n this.forEachInput(function (element, index, elPosition, numberOfInputs) {\n if (position === elPosition && index < numberOfInputs) {\n var value = makeNull(element.getValue());\n var cleanValue = (_this.textFilterParams.trimInput ? TextFilter.trimInput(value) : value) || null;\n result.push(cleanValue);\n element.setValue(cleanValue, true); // ensure clean value is visible\n }\n });\n return result;\n };\n\n TextFilter.prototype.getDefaultFilterOptions = function () {\n return TextFilter.DEFAULT_FILTER_OPTIONS;\n };\n\n TextFilter.prototype.createValueTemplate = function (position) {\n var pos = position === ConditionPosition.One ? '1' : '2';\n return (\n /* html */\n \"\\n
\\n \\n \\n
\"\n );\n };\n\n TextFilter.prototype.mapValuesFromModel = function (filterModel) {\n var _a = filterModel || {},\n filter = _a.filter,\n filterTo = _a.filterTo,\n type = _a.type;\n\n return [filter || null, filterTo || null].slice(0, this.getNumberOfInputs(type));\n };\n\n TextFilter.prototype.evaluateNullValue = function (filterType) {\n var filterTypesAllowNulls = [SimpleFilter.NOT_EQUAL, SimpleFilter.NOT_CONTAINS, SimpleFilter.BLANK];\n return filterType ? filterTypesAllowNulls.indexOf(filterType) >= 0 : false;\n };\n\n TextFilter.prototype.evaluateNonNullValue = function (values, cellValue, filterModel, params) {\n var _this = this;\n\n var formattedValues = values.map(function (v) {\n return _this.formatter(v);\n }) || [];\n var cellValueFormatted = this.formatter(cellValue);\n var _a = this.textFilterParams,\n api = _a.api,\n colDef = _a.colDef,\n column = _a.column,\n columnApi = _a.columnApi,\n context = _a.context,\n textFormatter = _a.textFormatter;\n\n if (filterModel.type === SimpleFilter.BLANK) {\n return this.isBlank(cellValue);\n } else if (filterModel.type === SimpleFilter.NOT_BLANK) {\n return !this.isBlank(cellValue);\n }\n\n var matcherParams = {\n api: api,\n colDef: colDef,\n column: column,\n columnApi: columnApi,\n context: context,\n node: params.node,\n data: params.data,\n filterOption: filterModel.type,\n value: cellValueFormatted,\n textFormatter: textFormatter\n };\n return formattedValues.some(function (v) {\n return _this.matcher(__assign$9(__assign$9({}, matcherParams), {\n filterText: v\n }));\n });\n };\n\n TextFilter.DEFAULT_FILTER_OPTIONS = [SimpleFilter.CONTAINS, SimpleFilter.NOT_CONTAINS, SimpleFilter.EQUALS, SimpleFilter.NOT_EQUAL, SimpleFilter.STARTS_WITH, SimpleFilter.ENDS_WITH, SimpleFilter.BLANK, SimpleFilter.NOT_BLANK];\n\n TextFilter.DEFAULT_FORMATTER = function (from) {\n return from;\n };\n\n TextFilter.DEFAULT_LOWERCASE_FORMATTER = function (from) {\n return from == null ? null : from.toString().toLowerCase();\n };\n\n TextFilter.DEFAULT_MATCHER = function (_a) {\n var filterOption = _a.filterOption,\n value = _a.value,\n filterText = _a.filterText;\n\n if (filterText == null) {\n return false;\n }\n\n switch (filterOption) {\n case TextFilter.CONTAINS:\n return value.indexOf(filterText) >= 0;\n\n case TextFilter.NOT_CONTAINS:\n return value.indexOf(filterText) < 0;\n\n case TextFilter.EQUALS:\n return value === filterText;\n\n case TextFilter.NOT_EQUAL:\n return value != filterText;\n\n case TextFilter.STARTS_WITH:\n return value.indexOf(filterText) === 0;\n\n case TextFilter.ENDS_WITH:\n var index = value.lastIndexOf(filterText);\n return index >= 0 && index === value.length - filterText.length;\n\n default:\n return false;\n }\n };\n\n __decorate$2b([RefSelector('eValue-index0-1')], TextFilter.prototype, \"eValueFrom1\", void 0);\n\n __decorate$2b([RefSelector('eValue-index1-1')], TextFilter.prototype, \"eValueTo1\", void 0);\n\n __decorate$2b([RefSelector('eValue-index0-2')], TextFilter.prototype, \"eValueFrom2\", void 0);\n\n __decorate$2b([RefSelector('eValue-index1-2')], TextFilter.prototype, \"eValueTo2\", void 0);\n\n return TextFilter;\n}(SimpleFilter);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2w = undefined && undefined.__extends || function () {\n var _extendStatics25 = function extendStatics(d, b) {\n _extendStatics25 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics25(d, b);\n };\n\n return function (d, b) {\n _extendStatics25(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2a = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar TextInputFloatingFilter =\n/** @class */\nfunction (_super) {\n __extends$2w(TextInputFloatingFilter, _super);\n\n function TextInputFloatingFilter() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n TextInputFloatingFilter.prototype.postConstruct = function () {\n this.resetTemplate();\n };\n\n TextInputFloatingFilter.prototype.resetTemplate = function (paramsMap) {\n this.setTemplate(\n /* html */\n \"\\n
\\n \\n
\\n \", paramsMap);\n };\n\n TextInputFloatingFilter.prototype.getDefaultDebounceMs = function () {\n return 500;\n };\n\n TextInputFloatingFilter.prototype.onParentModelChanged = function (model, event) {\n if (this.isEventFromFloatingFilter(event)) {\n // if the floating filter triggered the change, it is already in sync\n return;\n }\n\n this.setLastTypeFromModel(model);\n this.eFloatingFilterInput.setValue(this.getTextFromModel(model));\n this.setEditable(this.canWeEditAfterModelFromParentFilter(model));\n };\n\n TextInputFloatingFilter.prototype.init = function (params) {\n _super.prototype.init.call(this, params);\n\n this.params = params;\n this.applyActive = ProvidedFilter.isUseApplyButton(this.params.filterParams);\n var allowedCharPattern = this.params.filterParams.allowedCharPattern;\n\n if (allowedCharPattern != null) {\n this.resetTemplate({\n eFloatingFilterInput: {\n allowedCharPattern: allowedCharPattern\n }\n });\n }\n\n if (!this.isReadOnly()) {\n var debounceMs = ProvidedFilter.getDebounceMs(this.params.filterParams, this.getDefaultDebounceMs());\n var toDebounce = debounce(this.syncUpWithParentFilter.bind(this), debounceMs);\n var filterGui = this.eFloatingFilterInput.getGui();\n this.addManagedListener(filterGui, 'input', toDebounce);\n this.addManagedListener(filterGui, 'keypress', toDebounce);\n this.addManagedListener(filterGui, 'keydown', toDebounce);\n }\n\n var columnDef = params.column.getDefinition();\n\n if (this.isReadOnly() || columnDef.filterParams && columnDef.filterParams.filterOptions && columnDef.filterParams.filterOptions.length === 1 && columnDef.filterParams.filterOptions[0] === 'inRange') {\n this.eFloatingFilterInput.setDisabled(true);\n }\n\n var displayName = this.columnModel.getDisplayNameForColumn(params.column, 'header', true);\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n this.eFloatingFilterInput.setInputAriaLabel(displayName + \" \" + translate('ariaFilterInput', 'Filter Input'));\n };\n\n TextInputFloatingFilter.prototype.syncUpWithParentFilter = function (e) {\n var _this = this;\n\n var enterKeyPressed = e.key === KeyCode.ENTER;\n\n if (this.applyActive && !enterKeyPressed) {\n return;\n }\n\n var value = this.eFloatingFilterInput.getValue();\n\n if (this.params.filterParams.trimInput) {\n value = TextFilter.trimInput(value);\n this.eFloatingFilterInput.setValue(value, true); // ensure visible value is trimmed\n }\n\n this.params.parentFilterInstance(function (filterInstance) {\n if (filterInstance) {\n filterInstance.onFloatingFilterChanged(_this.getLastType() || null, value || null);\n }\n });\n };\n\n TextInputFloatingFilter.prototype.conditionToString = function (condition, options) {\n var numberOfInputs = (options || {}).numberOfInputs;\n var isRange = condition.type == SimpleFilter.IN_RANGE || numberOfInputs === 2;\n\n if (isRange) {\n return condition.filter + \"-\" + condition.filterTo;\n } // cater for when the type doesn't need a value\n\n\n if (condition.filter != null) {\n return \"\" + condition.filter;\n }\n\n return \"\" + condition.type;\n };\n\n TextInputFloatingFilter.prototype.setEditable = function (editable) {\n this.eFloatingFilterInput.setDisabled(!editable);\n };\n\n __decorate$2a([Autowired('columnModel')], TextInputFloatingFilter.prototype, \"columnModel\", void 0);\n\n __decorate$2a([RefSelector('eFloatingFilterInput')], TextInputFloatingFilter.prototype, \"eFloatingFilterInput\", void 0);\n\n __decorate$2a([PostConstruct], TextInputFloatingFilter.prototype, \"postConstruct\", null);\n\n return TextInputFloatingFilter;\n}(SimpleFloatingFilter);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2v = undefined && undefined.__extends || function () {\n var _extendStatics26 = function extendStatics(d, b) {\n _extendStatics26 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics26(d, b);\n };\n\n return function (d, b) {\n _extendStatics26(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar NumberFloatingFilter =\n/** @class */\nfunction (_super) {\n __extends$2v(NumberFloatingFilter, _super);\n\n function NumberFloatingFilter() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n NumberFloatingFilter.prototype.getDefaultFilterOptions = function () {\n return NumberFilter.DEFAULT_FILTER_OPTIONS;\n };\n\n return NumberFloatingFilter;\n}(TextInputFloatingFilter);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2u = undefined && undefined.__extends || function () {\n var _extendStatics27 = function extendStatics(d, b) {\n _extendStatics27 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics27(d, b);\n };\n\n return function (d, b) {\n _extendStatics27(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar TextFloatingFilter =\n/** @class */\nfunction (_super) {\n __extends$2u(TextFloatingFilter, _super);\n\n function TextFloatingFilter() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n TextFloatingFilter.prototype.getDefaultFilterOptions = function () {\n return TextFilter.DEFAULT_FILTER_OPTIONS;\n };\n\n return TextFloatingFilter;\n}(TextInputFloatingFilter);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar TouchListener =\n/** @class */\nfunction () {\n function TouchListener(eElement, preventMouseClick) {\n var _this = this;\n\n if (preventMouseClick === void 0) {\n preventMouseClick = false;\n }\n\n this.destroyFuncs = [];\n this.touching = false;\n this.eventService = new EventService();\n this.eElement = eElement;\n this.preventMouseClick = preventMouseClick;\n var startListener = this.onTouchStart.bind(this);\n var moveListener = this.onTouchMove.bind(this);\n var endListener = this.onTouchEnd.bind(this);\n this.eElement.addEventListener(\"touchstart\", startListener, {\n passive: true\n });\n this.eElement.addEventListener(\"touchmove\", moveListener, {\n passive: true\n }); // we set passive=false, as we want to prevent default on this event\n\n this.eElement.addEventListener(\"touchend\", endListener, {\n passive: false\n });\n this.destroyFuncs.push(function () {\n _this.eElement.removeEventListener(\"touchstart\", startListener, {\n passive: true\n });\n\n _this.eElement.removeEventListener(\"touchmove\", moveListener, {\n passive: true\n });\n\n _this.eElement.removeEventListener(\"touchend\", endListener, {\n passive: false\n });\n });\n }\n\n TouchListener.prototype.getActiveTouch = function (touchList) {\n for (var i = 0; i < touchList.length; i++) {\n var matches = touchList[i].identifier === this.touchStart.identifier;\n\n if (matches) {\n return touchList[i];\n }\n }\n\n return null;\n };\n\n TouchListener.prototype.addEventListener = function (eventType, listener) {\n this.eventService.addEventListener(eventType, listener);\n };\n\n TouchListener.prototype.removeEventListener = function (eventType, listener) {\n this.eventService.removeEventListener(eventType, listener);\n };\n\n TouchListener.prototype.onTouchStart = function (touchEvent) {\n var _this = this; // only looking at one touch point at any time\n\n\n if (this.touching) {\n return;\n }\n\n this.touchStart = touchEvent.touches[0];\n this.touching = true;\n this.moved = false;\n var touchStartCopy = this.touchStart;\n window.setTimeout(function () {\n var touchesMatch = _this.touchStart === touchStartCopy;\n\n if (_this.touching && touchesMatch && !_this.moved) {\n _this.moved = true;\n var event_1 = {\n type: TouchListener.EVENT_LONG_TAP,\n touchStart: _this.touchStart,\n touchEvent: touchEvent\n };\n\n _this.eventService.dispatchEvent(event_1);\n }\n }, 500);\n };\n\n TouchListener.prototype.onTouchMove = function (touchEvent) {\n if (!this.touching) {\n return;\n }\n\n var touch = this.getActiveTouch(touchEvent.touches);\n\n if (!touch) {\n return;\n }\n\n var eventIsFarAway = !areEventsNear(touch, this.touchStart, 4);\n\n if (eventIsFarAway) {\n this.moved = true;\n }\n };\n\n TouchListener.prototype.onTouchEnd = function (touchEvent) {\n if (!this.touching) {\n return;\n }\n\n if (!this.moved) {\n var event_2 = {\n type: TouchListener.EVENT_TAP,\n touchStart: this.touchStart\n };\n this.eventService.dispatchEvent(event_2);\n this.checkForDoubleTap();\n } // stops the tap from also been processed as a mouse click\n\n\n if (this.preventMouseClick && touchEvent.cancelable) {\n touchEvent.preventDefault();\n }\n\n this.touching = false;\n };\n\n TouchListener.prototype.checkForDoubleTap = function () {\n var now = new Date().getTime();\n\n if (this.lastTapTime && this.lastTapTime > 0) {\n // if previous tap, see if duration is short enough to be considered double tap\n var interval = now - this.lastTapTime;\n\n if (interval > TouchListener.DOUBLE_TAP_MILLIS) {\n // dispatch double tap event\n var event_3 = {\n type: TouchListener.EVENT_DOUBLE_TAP,\n touchStart: this.touchStart\n };\n this.eventService.dispatchEvent(event_3); // this stops a tripple tap ending up as two double taps\n\n this.lastTapTime = null;\n } else {\n this.lastTapTime = now;\n }\n } else {\n this.lastTapTime = now;\n }\n };\n\n TouchListener.prototype.destroy = function () {\n this.destroyFuncs.forEach(function (func) {\n return func();\n });\n };\n\n TouchListener.EVENT_TAP = \"tap\";\n TouchListener.EVENT_DOUBLE_TAP = \"doubleTap\";\n TouchListener.EVENT_LONG_TAP = \"longTap\";\n TouchListener.DOUBLE_TAP_MILLIS = 500;\n return TouchListener;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2t = undefined && undefined.__extends || function () {\n var _extendStatics28 = function extendStatics(d, b) {\n _extendStatics28 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics28(d, b);\n };\n\n return function (d, b) {\n _extendStatics28(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$29 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SortIndicatorComp =\n/** @class */\nfunction (_super) {\n __extends$2t(SortIndicatorComp, _super);\n\n function SortIndicatorComp(skipTemplate) {\n var _this = _super.call(this) || this;\n\n if (!skipTemplate) {\n _this.setTemplate(SortIndicatorComp.TEMPLATE);\n }\n\n return _this;\n }\n\n SortIndicatorComp.prototype.attachCustomElements = function (eSortOrder, eSortAsc, eSortDesc, eSortMixed, eSortNone) {\n this.eSortOrder = eSortOrder;\n this.eSortAsc = eSortAsc;\n this.eSortDesc = eSortDesc;\n this.eSortMixed = eSortMixed;\n this.eSortNone = eSortNone;\n };\n\n SortIndicatorComp.prototype.setupSort = function (column, suppressOrder) {\n var _this = this;\n\n if (suppressOrder === void 0) {\n suppressOrder = false;\n }\n\n this.column = column;\n this.suppressOrder = suppressOrder;\n this.setupMultiSortIndicator();\n var canSort = !!this.column.getColDef().sortable;\n\n if (!canSort) {\n return;\n }\n\n this.addInIcon('sortAscending', this.eSortAsc, column);\n this.addInIcon('sortDescending', this.eSortDesc, column);\n this.addInIcon('sortUnSort', this.eSortNone, column); // Watch global events, as row group columns can effect their display column.\n\n this.addManagedListener(this.eventService, Events.EVENT_SORT_CHANGED, function () {\n return _this.onSortChanged();\n }); // when grouping changes so can sort indexes and icons\n\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, function () {\n return _this.onSortChanged();\n });\n this.onSortChanged();\n };\n\n SortIndicatorComp.prototype.addInIcon = function (iconName, eParent, column) {\n if (eParent == null) {\n return;\n }\n\n var eIcon = createIconNoSpan(iconName, this.gridOptionsWrapper, column);\n\n if (eIcon) {\n eParent.appendChild(eIcon);\n }\n };\n\n SortIndicatorComp.prototype.onSortChanged = function () {\n this.updateIcons();\n\n if (!this.suppressOrder) {\n this.updateSortOrder();\n }\n };\n\n SortIndicatorComp.prototype.updateIcons = function () {\n var sortDirection = this.sortController.getDisplaySortForColumn(this.column);\n\n if (this.eSortAsc) {\n var isAscending = sortDirection === 'asc';\n this.eSortAsc.classList.toggle('ag-hidden', !isAscending);\n }\n\n if (this.eSortDesc) {\n var isDescending = sortDirection === 'desc';\n this.eSortDesc.classList.toggle('ag-hidden', !isDescending);\n }\n\n if (this.eSortNone) {\n var alwaysHideNoSort = !this.column.getColDef().unSortIcon && !this.gridOptionsWrapper.isUnSortIcon();\n var isNone = sortDirection === null || sortDirection === undefined;\n this.eSortNone.classList.toggle('ag-hidden', alwaysHideNoSort || !isNone);\n }\n };\n\n SortIndicatorComp.prototype.setupMultiSortIndicator = function () {\n var _this = this;\n\n this.addInIcon('sortUnSort', this.eSortMixed, this.column);\n var isColumnShowingRowGroup = this.column.getColDef().showRowGroup;\n var areGroupsCoupled = this.gridOptionsWrapper.isColumnsSortingCoupledToGroup();\n\n if (areGroupsCoupled && isColumnShowingRowGroup) {\n // Watch global events, as row group columns can effect their display column.\n this.addManagedListener(this.eventService, Events.EVENT_SORT_CHANGED, function () {\n return _this.updateMultiSortIndicator();\n }); // when grouping changes so can sort indexes and icons\n\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, function () {\n return _this.updateMultiSortIndicator();\n });\n this.updateMultiSortIndicator();\n }\n };\n\n SortIndicatorComp.prototype.updateMultiSortIndicator = function () {\n if (this.eSortMixed) {\n var isMixedSort = this.sortController.getDisplaySortForColumn(this.column) === 'mixed';\n this.eSortMixed.classList.toggle('ag-hidden', !isMixedSort);\n }\n }; // we listen here for global sort events, NOT column sort events, as we want to do this\n // when sorting has been set on all column (if we listened just for our col (where we\n // set the asc / desc icons) then it's possible other cols are yet to get their sorting state.\n\n\n SortIndicatorComp.prototype.updateSortOrder = function () {\n var _this = this;\n\n var _a;\n\n if (!this.eSortOrder) {\n return;\n }\n\n var allColumnsWithSorting = this.sortController.getColumnsWithSortingOrdered();\n var indexThisCol = (_a = this.sortController.getDisplaySortIndexForColumn(this.column), _a !== null && _a !== void 0 ? _a : -1);\n var moreThanOneColSorting = allColumnsWithSorting.some(function (col) {\n var _a;\n\n return _a = _this.sortController.getDisplaySortIndexForColumn(col), _a !== null && _a !== void 0 ? _a : -1 >= 1;\n });\n var showIndex = indexThisCol >= 0 && moreThanOneColSorting;\n setDisplayed(this.eSortOrder, showIndex);\n\n if (indexThisCol >= 0) {\n this.eSortOrder.innerHTML = (indexThisCol + 1).toString();\n } else {\n clearElement(this.eSortOrder);\n }\n };\n\n SortIndicatorComp.TEMPLATE = \"\\n \\n \\n \\n \\n \\n \";\n\n __decorate$29([RefSelector('eSortOrder')], SortIndicatorComp.prototype, \"eSortOrder\", void 0);\n\n __decorate$29([RefSelector('eSortAsc')], SortIndicatorComp.prototype, \"eSortAsc\", void 0);\n\n __decorate$29([RefSelector('eSortDesc')], SortIndicatorComp.prototype, \"eSortDesc\", void 0);\n\n __decorate$29([RefSelector('eSortMixed')], SortIndicatorComp.prototype, \"eSortMixed\", void 0);\n\n __decorate$29([RefSelector('eSortNone')], SortIndicatorComp.prototype, \"eSortNone\", void 0);\n\n __decorate$29([Autowired('columnModel')], SortIndicatorComp.prototype, \"columnModel\", void 0);\n\n __decorate$29([Autowired('sortController')], SortIndicatorComp.prototype, \"sortController\", void 0);\n\n return SortIndicatorComp;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2s = undefined && undefined.__extends || function () {\n var _extendStatics29 = function extendStatics(d, b) {\n _extendStatics29 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics29(d, b);\n };\n\n return function (d, b) {\n _extendStatics29(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$28 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar HeaderComp =\n/** @class */\nfunction (_super) {\n __extends$2s(HeaderComp, _super);\n\n function HeaderComp() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.lastMovingChanged = 0;\n return _this;\n } // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n // so we need to override destroy() just to make the method public.\n\n\n HeaderComp.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n HeaderComp.prototype.refresh = function (params) {\n this.params = params; // if template changed, then recreate the whole comp, the code required to manage\n // a changing template is to difficult for what it's worth.\n\n if (this.workOutTemplate() != this.currentTemplate) {\n return false;\n }\n\n if (this.workOutShowMenu() != this.currentShowMenu) {\n return false;\n }\n\n if (this.workOutSort() != this.currentSort) {\n return false;\n }\n\n this.setDisplayName(params);\n return true;\n };\n\n HeaderComp.prototype.workOutTemplate = function () {\n var template = firstExistingValue(this.params.template, HeaderComp.TEMPLATE); // take account of any newlines & whitespace before/after the actual template\n\n template = template && template.trim ? template.trim() : template;\n return template;\n };\n\n HeaderComp.prototype.init = function (params) {\n this.params = params;\n this.currentTemplate = this.workOutTemplate();\n this.setTemplate(this.currentTemplate);\n this.setupTap();\n this.setupIcons(params.column);\n this.setMenu();\n this.setupSort();\n this.setupFilterIcon();\n this.setDisplayName(params);\n };\n\n HeaderComp.prototype.setDisplayName = function (params) {\n if (this.currentDisplayName != params.displayName) {\n this.currentDisplayName = params.displayName;\n var displayNameSanitised = escapeString(this.currentDisplayName);\n\n if (this.eText) {\n this.eText.innerHTML = displayNameSanitised;\n }\n }\n };\n\n HeaderComp.prototype.setupIcons = function (column) {\n this.addInIcon('menu', this.eMenu, column);\n this.addInIcon('filter', this.eFilter, column);\n };\n\n HeaderComp.prototype.addInIcon = function (iconName, eParent, column) {\n if (eParent == null) {\n return;\n }\n\n var eIcon = createIconNoSpan(iconName, this.gridOptionsWrapper, column);\n\n if (eIcon) {\n eParent.appendChild(eIcon);\n }\n };\n\n HeaderComp.prototype.setupTap = function () {\n var _this = this;\n\n var options = this.gridOptionsWrapper;\n\n if (options.isSuppressTouch()) {\n return;\n }\n\n var touchListener = new TouchListener(this.getGui(), true);\n var suppressMenuHide = options.isSuppressMenuHide();\n var tapMenuButton = suppressMenuHide && exists(this.eMenu);\n var menuTouchListener = tapMenuButton ? new TouchListener(this.eMenu, true) : touchListener;\n\n if (this.params.enableMenu) {\n var eventType = tapMenuButton ? 'EVENT_TAP' : 'EVENT_LONG_TAP';\n\n var showMenuFn = function showMenuFn(event) {\n options.getApi().showColumnMenuAfterMouseClick(_this.params.column, event.touchStart);\n };\n\n this.addManagedListener(menuTouchListener, TouchListener[eventType], showMenuFn);\n }\n\n if (this.params.enableSorting) {\n var tapListener = function tapListener(event) {\n var target = event.touchStart.target; // When suppressMenuHide is true, a tap on the menu icon will bubble up\n // to the header container, in that case we should not sort\n\n if (suppressMenuHide && _this.eMenu.contains(target)) {\n return;\n }\n\n _this.sortController.progressSort(_this.params.column, false, \"uiColumnSorted\");\n };\n\n this.addManagedListener(touchListener, TouchListener.EVENT_TAP, tapListener);\n } // if tapMenuButton is true `touchListener` and `menuTouchListener` are different\n // so we need to make sure to destroy both listeners here\n\n\n this.addDestroyFunc(function () {\n return touchListener.destroy();\n });\n\n if (tapMenuButton) {\n this.addDestroyFunc(function () {\n return menuTouchListener.destroy();\n });\n }\n };\n\n HeaderComp.prototype.workOutShowMenu = function () {\n // we don't show the menu if on an iPad/iPhone, as the user cannot have a pointer device/\n // However if suppressMenuHide is set to true the menu will be displayed alwasys, so it's ok\n // to show it on iPad in this case (as hover isn't needed). If suppressMenuHide\n // is false (default) user will need to use longpress to display the menu.\n var menuHides = !this.gridOptionsWrapper.isSuppressMenuHide();\n var onIpadAndMenuHides = isIOSUserAgent() && menuHides;\n var showMenu = this.params.enableMenu && !onIpadAndMenuHides;\n return showMenu;\n };\n\n HeaderComp.prototype.setMenu = function () {\n var _this = this; // if no menu provided in template, do nothing\n\n\n if (!this.eMenu) {\n return;\n }\n\n this.currentShowMenu = this.workOutShowMenu();\n\n if (!this.currentShowMenu) {\n removeFromParent(this.eMenu);\n return;\n }\n\n var suppressMenuHide = this.gridOptionsWrapper.isSuppressMenuHide();\n this.addManagedListener(this.eMenu, 'click', function () {\n return _this.showMenu(_this.eMenu);\n });\n this.eMenu.classList.toggle('ag-header-menu-always-show', suppressMenuHide);\n };\n\n HeaderComp.prototype.showMenu = function (eventSource) {\n if (!eventSource) {\n eventSource = this.eMenu;\n }\n\n this.menuFactory.showMenuAfterButtonClick(this.params.column, eventSource, 'columnMenu');\n };\n\n HeaderComp.prototype.workOutSort = function () {\n return this.params.enableSorting;\n };\n\n HeaderComp.prototype.setupSort = function () {\n var _this = this;\n\n this.currentSort = this.params.enableSorting; // eSortIndicator will not be present when customers provided custom header\n // templates, in that case, we need to look for provided sort elements and\n // manually create eSortIndicator.\n\n if (!this.eSortIndicator) {\n this.eSortIndicator = this.context.createBean(new SortIndicatorComp(true));\n this.eSortIndicator.attachCustomElements(this.eSortOrder, this.eSortAsc, this.eSortDesc, this.eSortMixed, this.eSortNone);\n }\n\n this.eSortIndicator.setupSort(this.params.column); // we set up the indicator prior to the check for whether this column is sortable, as it allows the indicator to\n // set up the multi sort indicator which can appear irrelevant of whether this column can itself be sorted.\n // this can occur in the case of a non-sortable group display column.\n\n if (!this.currentSort) {\n return;\n }\n\n var sortUsingCtrl = this.gridOptionsWrapper.isMultiSortKeyCtrl(); // keep track of last time the moving changed flag was set\n\n this.addManagedListener(this.params.column, Column.EVENT_MOVING_CHANGED, function () {\n _this.lastMovingChanged = new Date().getTime();\n }); // add the event on the header, so when clicked, we do sorting\n\n if (this.eLabel) {\n this.addManagedListener(this.eLabel, 'click', function (event) {\n // sometimes when moving a column via dragging, this was also firing a clicked event.\n // here is issue raised by user: https://ag-grid.zendesk.com/agent/tickets/1076\n // this check stops sort if a) column is moving or b) column moved less than 200ms ago (so caters for race condition)\n var moving = _this.params.column.isMoving();\n\n var nowTime = new Date().getTime(); // typically there is <2ms if moving flag was set recently, as it would be done in same VM turn\n\n var movedRecently = nowTime - _this.lastMovingChanged < 50;\n var columnMoving = moving || movedRecently;\n\n if (!columnMoving) {\n var multiSort = sortUsingCtrl ? event.ctrlKey || event.metaKey : event.shiftKey;\n\n _this.params.progressSort(multiSort);\n }\n });\n }\n\n var onSortingChanged = function onSortingChanged() {\n var _a;\n\n _this.addOrRemoveCssClass('ag-header-cell-sorted-asc', _this.params.column.isSortAscending());\n\n _this.addOrRemoveCssClass('ag-header-cell-sorted-desc', _this.params.column.isSortDescending());\n\n _this.addOrRemoveCssClass('ag-header-cell-sorted-none', _this.params.column.isSortNone());\n\n if (_this.params.column.getColDef().showRowGroup) {\n var sourceColumns = _this.columnModel.getSourceColumnsForGroupColumn(_this.params.column); // this == is intentional, as it allows null and undefined to match, which are both unsorted states\n\n\n var sortDirectionsMatch = (_a = sourceColumns) === null || _a === void 0 ? void 0 : _a.every(function (sourceCol) {\n return _this.params.column.getSort() == sourceCol.getSort();\n });\n var isMultiSorting = !sortDirectionsMatch;\n\n _this.addOrRemoveCssClass('ag-header-cell-sorted-mixed', isMultiSorting);\n }\n };\n\n this.addManagedListener(this.eventService, Events.EVENT_SORT_CHANGED, onSortingChanged);\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, onSortingChanged);\n };\n\n HeaderComp.prototype.setupFilterIcon = function () {\n if (!this.eFilter) {\n return;\n }\n\n this.addManagedListener(this.params.column, Column.EVENT_FILTER_CHANGED, this.onFilterChanged.bind(this));\n this.onFilterChanged();\n };\n\n HeaderComp.prototype.onFilterChanged = function () {\n var filterPresent = this.params.column.isFilterActive();\n this.eFilter.classList.toggle('ag-hidden', !filterPresent);\n };\n\n HeaderComp.TEMPLATE = \"
\\n \\n
\\n \\n \\n \\n
\\n
\";\n\n __decorate$28([Autowired('sortController')], HeaderComp.prototype, \"sortController\", void 0);\n\n __decorate$28([Autowired('menuFactory')], HeaderComp.prototype, \"menuFactory\", void 0);\n\n __decorate$28([Autowired('columnModel')], HeaderComp.prototype, \"columnModel\", void 0);\n\n __decorate$28([RefSelector('eFilter')], HeaderComp.prototype, \"eFilter\", void 0);\n\n __decorate$28([RefSelector('eSortIndicator')], HeaderComp.prototype, \"eSortIndicator\", void 0);\n\n __decorate$28([RefSelector('eMenu')], HeaderComp.prototype, \"eMenu\", void 0);\n\n __decorate$28([RefSelector('eLabel')], HeaderComp.prototype, \"eLabel\", void 0);\n\n __decorate$28([RefSelector('eText')], HeaderComp.prototype, \"eText\", void 0);\n\n __decorate$28([RefSelector('eSortOrder')], HeaderComp.prototype, \"eSortOrder\", void 0);\n\n __decorate$28([RefSelector('eSortAsc')], HeaderComp.prototype, \"eSortAsc\", void 0);\n\n __decorate$28([RefSelector('eSortDesc')], HeaderComp.prototype, \"eSortDesc\", void 0);\n\n __decorate$28([RefSelector('eSortMixed')], HeaderComp.prototype, \"eSortMixed\", void 0);\n\n __decorate$28([RefSelector('eSortNone')], HeaderComp.prototype, \"eSortNone\", void 0);\n\n return HeaderComp;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2r = undefined && undefined.__extends || function () {\n var _extendStatics30 = function extendStatics(d, b) {\n _extendStatics30 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics30(d, b);\n };\n\n return function (d, b) {\n _extendStatics30(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$27 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar HeaderGroupComp =\n/** @class */\nfunction (_super) {\n __extends$2r(HeaderGroupComp, _super);\n\n function HeaderGroupComp() {\n return _super.call(this, HeaderGroupComp.TEMPLATE) || this;\n } // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n // so we need to override destroy() just to make the method public.\n\n\n HeaderGroupComp.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n HeaderGroupComp.prototype.init = function (params) {\n this.params = params;\n this.checkWarnings();\n this.setupLabel();\n this.addGroupExpandIcon();\n this.setupExpandIcons();\n };\n\n HeaderGroupComp.prototype.checkWarnings = function () {\n var paramsAny = this.params;\n\n if (paramsAny.template) {\n var message_1 = \"AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)\";\n doOnce(function () {\n return console.warn(message_1);\n }, 'HeaderGroupComp.templateNotSupported');\n }\n };\n\n HeaderGroupComp.prototype.setupExpandIcons = function () {\n var _this = this;\n\n this.addInIcon(\"columnGroupOpened\", \"agOpened\");\n this.addInIcon(\"columnGroupClosed\", \"agClosed\");\n\n var expandAction = function expandAction(event) {\n if (isStopPropagationForAgGrid(event)) {\n return;\n }\n\n var newExpandedValue = !_this.params.columnGroup.isExpanded();\n\n _this.columnModel.setColumnGroupOpened(_this.params.columnGroup.getProvidedColumnGroup(), newExpandedValue, \"uiColumnExpanded\");\n };\n\n this.addTouchAndClickListeners(this.eCloseIcon, expandAction);\n this.addTouchAndClickListeners(this.eOpenIcon, expandAction);\n\n var stopPropagationAction = function stopPropagationAction(event) {\n stopPropagationForAgGrid(event);\n }; // adding stopPropagation to the double click for the icons prevents double click action happening\n // when the icons are clicked. if the icons are double clicked, then the groups should open and\n // then close again straight away. if we also listened to double click, then the group would open,\n // close, then open, which is not what we want. double click should only action if the user double\n // clicks outside of the icons.\n\n\n this.addManagedListener(this.eCloseIcon, \"dblclick\", stopPropagationAction);\n this.addManagedListener(this.eOpenIcon, \"dblclick\", stopPropagationAction);\n this.addManagedListener(this.getGui(), \"dblclick\", expandAction);\n this.updateIconVisibility();\n var providedColumnGroup = this.params.columnGroup.getProvidedColumnGroup();\n this.addManagedListener(providedColumnGroup, ProvidedColumnGroup.EVENT_EXPANDED_CHANGED, this.updateIconVisibility.bind(this));\n this.addManagedListener(providedColumnGroup, ProvidedColumnGroup.EVENT_EXPANDABLE_CHANGED, this.updateIconVisibility.bind(this));\n };\n\n HeaderGroupComp.prototype.addTouchAndClickListeners = function (eElement, action) {\n var touchListener = new TouchListener(eElement, true);\n this.addManagedListener(touchListener, TouchListener.EVENT_TAP, action);\n this.addDestroyFunc(function () {\n return touchListener.destroy();\n });\n this.addManagedListener(eElement, \"click\", action);\n };\n\n HeaderGroupComp.prototype.updateIconVisibility = function () {\n var columnGroup = this.params.columnGroup;\n\n if (columnGroup.isExpandable()) {\n var expanded = this.params.columnGroup.isExpanded();\n setDisplayed(this.eOpenIcon, expanded);\n setDisplayed(this.eCloseIcon, !expanded);\n } else {\n setDisplayed(this.eOpenIcon, false);\n setDisplayed(this.eCloseIcon, false);\n }\n };\n\n HeaderGroupComp.prototype.addInIcon = function (iconName, refName) {\n var eIcon = createIconNoSpan(iconName, this.gridOptionsWrapper, null);\n\n if (eIcon) {\n this.getRefElement(refName).appendChild(eIcon);\n }\n };\n\n HeaderGroupComp.prototype.addGroupExpandIcon = function () {\n if (!this.params.columnGroup.isExpandable()) {\n setDisplayed(this.eOpenIcon, false);\n setDisplayed(this.eCloseIcon, false);\n return;\n }\n };\n\n HeaderGroupComp.prototype.setupLabel = function () {\n // no renderer, default text render\n var displayName = this.params.displayName;\n\n if (exists(displayName)) {\n var displayNameSanitised = escapeString(displayName);\n this.getRefElement('agLabel').innerHTML = displayNameSanitised;\n }\n };\n\n HeaderGroupComp.TEMPLATE = \"
\\n \\n \\n \\n
\";\n\n __decorate$27([Autowired(\"columnModel\")], HeaderGroupComp.prototype, \"columnModel\", void 0);\n\n __decorate$27([RefSelector(\"agOpened\")], HeaderGroupComp.prototype, \"eOpenIcon\", void 0);\n\n __decorate$27([RefSelector(\"agClosed\")], HeaderGroupComp.prototype, \"eCloseIcon\", void 0);\n\n return HeaderGroupComp;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2q = undefined && undefined.__extends || function () {\n var _extendStatics31 = function extendStatics(d, b) {\n _extendStatics31 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics31(d, b);\n };\n\n return function (d, b) {\n _extendStatics31(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar PopupComponent =\n/** @class */\nfunction (_super) {\n __extends$2q(PopupComponent, _super);\n\n function PopupComponent() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n PopupComponent.prototype.isPopup = function () {\n return true;\n };\n\n PopupComponent.prototype.setParentComponent = function (container) {\n container.addCssClass('ag-has-popup');\n\n _super.prototype.setParentComponent.call(this, container);\n };\n\n PopupComponent.prototype.destroy = function () {\n var parentComp = this.parentComponent;\n var hasParent = parentComp && parentComp.isAlive();\n\n if (hasParent) {\n parentComp.getGui().classList.remove('ag-has-popup');\n }\n\n _super.prototype.destroy.call(this);\n };\n\n return PopupComponent;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2p = undefined && undefined.__extends || function () {\n var _extendStatics32 = function extendStatics(d, b) {\n _extendStatics32 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics32(d, b);\n };\n\n return function (d, b) {\n _extendStatics32(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$26 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar LargeTextCellEditor =\n/** @class */\nfunction (_super) {\n __extends$2p(LargeTextCellEditor, _super);\n\n function LargeTextCellEditor() {\n return _super.call(this, LargeTextCellEditor.TEMPLATE) || this;\n }\n\n LargeTextCellEditor.prototype.init = function (params) {\n this.params = params;\n this.focusAfterAttached = params.cellStartedEdit;\n this.eTextArea.setMaxLength(params.maxLength || 200).setCols(params.cols || 60).setRows(params.rows || 10);\n\n if (exists(params.value)) {\n this.eTextArea.setValue(params.value.toString(), true);\n }\n\n this.addGuiEventListener('keydown', this.onKeyDown.bind(this));\n };\n\n LargeTextCellEditor.prototype.onKeyDown = function (event) {\n var key = event.key;\n\n if (key === KeyCode.LEFT || key === KeyCode.UP || key === KeyCode.RIGHT || key === KeyCode.DOWN || event.shiftKey && key === KeyCode.ENTER) {\n // shift+enter allows for newlines\n event.stopPropagation();\n }\n };\n\n LargeTextCellEditor.prototype.afterGuiAttached = function () {\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n this.eTextArea.setInputAriaLabel(translate('ariaInputEditor', 'Input Editor'));\n\n if (this.focusAfterAttached) {\n this.eTextArea.getFocusableElement().focus();\n }\n };\n\n LargeTextCellEditor.prototype.getValue = function () {\n return this.params.parseValue(this.eTextArea.getValue());\n };\n\n LargeTextCellEditor.TEMPLATE = \"
\\n \\n
\";\n\n __decorate$26([RefSelector(\"eTextArea\")], LargeTextCellEditor.prototype, \"eTextArea\", void 0);\n\n return LargeTextCellEditor;\n}(PopupComponent);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2o = undefined && undefined.__extends || function () {\n var _extendStatics33 = function extendStatics(d, b) {\n _extendStatics33 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics33(d, b);\n };\n\n return function (d, b) {\n _extendStatics33(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$25 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SelectCellEditor =\n/** @class */\nfunction (_super) {\n __extends$2o(SelectCellEditor, _super);\n\n function SelectCellEditor() {\n var _this = _super.call(this, '
') || this;\n\n _this.startedByEnter = false;\n return _this;\n }\n\n SelectCellEditor.prototype.init = function (params) {\n var _this = this;\n\n this.focusAfterAttached = params.cellStartedEdit;\n\n if (missing(params.values)) {\n console.warn('AG Grid: no values found for select cellEditor');\n return;\n }\n\n this.startedByEnter = params.eventKey != null ? params.eventKey === KeyCode.ENTER : false;\n var hasValue = false;\n params.values.forEach(function (value) {\n var option = {\n value: value\n };\n\n var valueFormatted = _this.valueFormatterService.formatValue(params.column, null, value);\n\n var valueFormattedExits = valueFormatted !== null && valueFormatted !== undefined;\n option.text = valueFormattedExits ? valueFormatted : value;\n\n _this.eSelect.addOption(option);\n\n hasValue = hasValue || params.value === value;\n });\n\n if (hasValue) {\n this.eSelect.setValue(params.value, true);\n } else if (params.values.length) {\n this.eSelect.setValue(params.values[0], true);\n } // we don't want to add this if full row editing, otherwise selecting will stop the\n // full row editing.\n\n\n if (!this.gridOptionsWrapper.isFullRowEdit()) {\n this.eSelect.onValueChange(function () {\n return params.stopEditing();\n });\n }\n };\n\n SelectCellEditor.prototype.afterGuiAttached = function () {\n if (this.focusAfterAttached) {\n this.eSelect.getFocusableElement().focus();\n }\n\n if (this.startedByEnter) {\n this.eSelect.showPicker();\n }\n };\n\n SelectCellEditor.prototype.focusIn = function () {\n this.eSelect.getFocusableElement().focus();\n };\n\n SelectCellEditor.prototype.getValue = function () {\n return this.eSelect.getValue();\n };\n\n SelectCellEditor.prototype.isPopup = function () {\n return false;\n };\n\n __decorate$25([Autowired('valueFormatterService')], SelectCellEditor.prototype, \"valueFormatterService\", void 0);\n\n __decorate$25([RefSelector('eSelect')], SelectCellEditor.prototype, \"eSelect\", void 0);\n\n return SelectCellEditor;\n}(PopupComponent);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2n = undefined && undefined.__extends || function () {\n var _extendStatics34 = function extendStatics(d, b) {\n _extendStatics34 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics34(d, b);\n };\n\n return function (d, b) {\n _extendStatics34(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar PopupSelectCellEditor =\n/** @class */\nfunction (_super) {\n __extends$2n(PopupSelectCellEditor, _super);\n\n function PopupSelectCellEditor() {\n var _this = _super.call(this) || this;\n\n doOnce(function () {\n return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: \"agSelectCellEditor\", cellEditorPopup: true} ');\n }, 'PopupSelectCellEditor.deprecated');\n return _this;\n }\n\n PopupSelectCellEditor.prototype.isPopup = function () {\n return true;\n };\n\n return PopupSelectCellEditor;\n}(SelectCellEditor);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2m = undefined && undefined.__extends || function () {\n var _extendStatics35 = function extendStatics(d, b) {\n _extendStatics35 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics35(d, b);\n };\n\n return function (d, b) {\n _extendStatics35(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$24 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar TextCellEditor =\n/** @class */\nfunction (_super) {\n __extends$2m(TextCellEditor, _super);\n\n function TextCellEditor() {\n return _super.call(this, TextCellEditor.TEMPLATE) || this;\n }\n\n TextCellEditor.prototype.init = function (params) {\n this.params = params;\n var eInput = this.eInput;\n var startValue; // cellStartedEdit is only false if we are doing fullRow editing\n\n if (params.cellStartedEdit) {\n this.focusAfterAttached = true;\n\n if (params.eventKey === KeyCode.BACKSPACE || params.eventKey === KeyCode.DELETE) {\n startValue = '';\n } else if (params.charPress) {\n startValue = params.charPress;\n } else {\n startValue = this.getStartValue(params);\n\n if (params.eventKey !== KeyCode.F2) {\n this.highlightAllOnFocus = true;\n }\n }\n } else {\n this.focusAfterAttached = false;\n startValue = this.getStartValue(params);\n }\n\n if (startValue != null) {\n eInput.setValue(startValue, true);\n }\n\n this.addManagedListener(eInput.getGui(), 'keydown', function (event) {\n var key = event.key;\n\n if (key === KeyCode.PAGE_UP || key === KeyCode.PAGE_DOWN) {\n event.preventDefault();\n }\n });\n };\n\n TextCellEditor.prototype.afterGuiAttached = function () {\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var eInput = this.eInput;\n eInput.setInputAriaLabel(translate('ariaInputEditor', 'Input Editor'));\n\n if (!this.focusAfterAttached) {\n return;\n } // Added for AG-3238. We can't remove this explicit focus() because Chrome requires an input\n // to be focused before setSelectionRange will work. But it triggers a bug in Safari where\n // explicitly focusing then blurring an empty field will cause the parent container to scroll.\n\n\n if (!isBrowserSafari()) {\n eInput.getFocusableElement().focus();\n }\n\n var inputEl = eInput.getInputElement();\n\n if (this.highlightAllOnFocus) {\n inputEl.select();\n } else {\n // when we started editing, we want the caret at the end, not the start.\n // this comes into play in two scenarios:\n // a) when user hits F2\n // b) when user hits a printable character\n var value = eInput.getValue();\n var len = exists(value) && value.length || 0;\n\n if (len) {\n inputEl.setSelectionRange(len, len);\n }\n }\n }; // gets called when tabbing trough cells and in full row edit mode\n\n\n TextCellEditor.prototype.focusIn = function () {\n var eInput = this.eInput;\n var focusEl = eInput.getFocusableElement();\n var inputEl = eInput.getInputElement();\n focusEl.focus();\n inputEl.select();\n };\n\n TextCellEditor.prototype.getValue = function () {\n var eInput = this.eInput;\n return this.params.parseValue(eInput.getValue());\n };\n\n TextCellEditor.prototype.getStartValue = function (params) {\n var formatValue = params.useFormatter || params.column.getColDef().refData;\n return formatValue ? params.formatValue(params.value) : params.value;\n };\n\n TextCellEditor.prototype.isPopup = function () {\n return false;\n };\n\n TextCellEditor.TEMPLATE = '
';\n\n __decorate$24([RefSelector('eInput')], TextCellEditor.prototype, \"eInput\", void 0);\n\n return TextCellEditor;\n}(PopupComponent);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2l = undefined && undefined.__extends || function () {\n var _extendStatics36 = function extendStatics(d, b) {\n _extendStatics36 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics36(d, b);\n };\n\n return function (d, b) {\n _extendStatics36(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar PopupTextCellEditor =\n/** @class */\nfunction (_super) {\n __extends$2l(PopupTextCellEditor, _super);\n\n function PopupTextCellEditor() {\n var _this = _super.call(this) || this;\n\n doOnce(function () {\n return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: \"agTextCellEditor\", cellEditorPopup: true} ');\n }, 'PopupTextCellEditor.deprecated');\n return _this;\n }\n\n PopupTextCellEditor.prototype.isPopup = function () {\n return true;\n };\n\n return PopupTextCellEditor;\n}(TextCellEditor);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2k = undefined && undefined.__extends || function () {\n var _extendStatics37 = function extendStatics(d, b) {\n _extendStatics37 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics37(d, b);\n };\n\n return function (d, b) {\n _extendStatics37(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$23 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ARROW_UP = \"\\u2191\";\nvar ARROW_DOWN = \"\\u2193\";\n\nvar AnimateShowChangeCellRenderer =\n/** @class */\nfunction (_super) {\n __extends$2k(AnimateShowChangeCellRenderer, _super);\n\n function AnimateShowChangeCellRenderer() {\n var _this = _super.call(this, AnimateShowChangeCellRenderer.TEMPLATE) || this;\n\n _this.refreshCount = 0;\n return _this;\n }\n\n AnimateShowChangeCellRenderer.prototype.init = function (params) {\n // this.params = params;\n this.eValue = this.queryForHtmlElement('.ag-value-change-value');\n this.eDelta = this.queryForHtmlElement('.ag-value-change-delta');\n this.refresh(params);\n };\n\n AnimateShowChangeCellRenderer.prototype.showDelta = function (params, delta) {\n var absDelta = Math.abs(delta);\n var valueFormatted = params.formatValue(absDelta);\n var valueToUse = exists(valueFormatted) ? valueFormatted : absDelta;\n var deltaUp = delta >= 0;\n\n if (deltaUp) {\n this.eDelta.innerHTML = ARROW_UP + valueToUse;\n } else {\n // because negative, use ABS to remove sign\n this.eDelta.innerHTML = ARROW_DOWN + valueToUse;\n }\n\n this.eDelta.classList.toggle('ag-value-change-delta-up', deltaUp);\n this.eDelta.classList.toggle('ag-value-change-delta-down', !deltaUp);\n };\n\n AnimateShowChangeCellRenderer.prototype.setTimerToRemoveDelta = function () {\n var _this = this; // the refreshCount makes sure that if the value updates again while\n // the below timer is waiting, then the below timer will realise it\n // is not the most recent and will not try to remove the delta value.\n\n\n this.refreshCount++;\n var refreshCountCopy = this.refreshCount;\n window.setTimeout(function () {\n if (refreshCountCopy === _this.refreshCount) {\n _this.hideDeltaValue();\n }\n }, 2000);\n };\n\n AnimateShowChangeCellRenderer.prototype.hideDeltaValue = function () {\n this.eValue.classList.remove('ag-value-change-value-highlight');\n clearElement(this.eDelta);\n };\n\n AnimateShowChangeCellRenderer.prototype.refresh = function (params) {\n var value = params.value;\n\n if (value === this.lastValue) {\n return false;\n }\n\n if (exists(params.valueFormatted)) {\n this.eValue.innerHTML = params.valueFormatted;\n } else if (exists(params.value)) {\n this.eValue.innerHTML = value;\n } else {\n clearElement(this.eValue);\n } // we don't show the delta if we are in the middle of a filter. see comment on FilterManager\n // with regards processingFilterChange\n\n\n if (this.filterManager.isSuppressFlashingCellsBecauseFiltering()) {\n return false;\n }\n\n if (typeof value === 'number' && typeof this.lastValue === 'number') {\n var delta = value - this.lastValue;\n this.showDelta(params, delta);\n } // highlight the current value, but only if it's not new, otherwise it\n // would get highlighted first time the value is shown\n\n\n if (this.lastValue) {\n this.eValue.classList.add('ag-value-change-value-highlight');\n }\n\n this.setTimerToRemoveDelta();\n this.lastValue = value;\n return true;\n };\n\n AnimateShowChangeCellRenderer.TEMPLATE = '' + '' + '' + '';\n\n __decorate$23([Autowired('filterManager')], AnimateShowChangeCellRenderer.prototype, \"filterManager\", void 0);\n\n return AnimateShowChangeCellRenderer;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2j = undefined && undefined.__extends || function () {\n var _extendStatics38 = function extendStatics(d, b) {\n _extendStatics38 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics38(d, b);\n };\n\n return function (d, b) {\n _extendStatics38(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$22 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AnimateSlideCellRenderer =\n/** @class */\nfunction (_super) {\n __extends$2j(AnimateSlideCellRenderer, _super);\n\n function AnimateSlideCellRenderer() {\n var _this = _super.call(this, AnimateSlideCellRenderer.TEMPLATE) || this;\n\n _this.refreshCount = 0;\n _this.eCurrent = _this.queryForHtmlElement('.ag-value-slide-current');\n return _this;\n }\n\n AnimateSlideCellRenderer.prototype.init = function (params) {\n this.refresh(params);\n };\n\n AnimateSlideCellRenderer.prototype.addSlideAnimation = function () {\n var _this = this;\n\n this.refreshCount++; // below we keep checking this, and stop working on the animation\n // if it no longer matches - this means another animation has started\n // and this one is stale.\n\n var refreshCountCopy = this.refreshCount; // if old animation, remove it\n\n if (this.ePrevious) {\n this.getGui().removeChild(this.ePrevious);\n }\n\n this.ePrevious = loadTemplate('');\n this.ePrevious.innerHTML = this.eCurrent.innerHTML;\n this.getGui().insertBefore(this.ePrevious, this.eCurrent); // having timeout of 0 allows use to skip to the next css turn,\n // so we know the previous css classes have been applied. so the\n // complex set of setTimeout below creates the animation\n\n window.setTimeout(function () {\n if (refreshCountCopy !== _this.refreshCount) {\n return;\n }\n\n _this.ePrevious.classList.add('ag-value-slide-out-end');\n }, 50);\n window.setTimeout(function () {\n if (refreshCountCopy !== _this.refreshCount) {\n return;\n }\n\n _this.getGui().removeChild(_this.ePrevious);\n\n _this.ePrevious = null;\n }, 3000);\n };\n\n AnimateSlideCellRenderer.prototype.refresh = function (params) {\n var value = params.value;\n\n if (missing(value)) {\n value = '';\n }\n\n if (value === this.lastValue) {\n return false;\n } // we don't show the delta if we are in the middle of a filter. see comment on FilterManager\n // with regards processingFilterChange\n\n\n if (this.filterManager.isSuppressFlashingCellsBecauseFiltering()) {\n return false;\n }\n\n this.addSlideAnimation();\n this.lastValue = value;\n\n if (exists(params.valueFormatted)) {\n this.eCurrent.innerHTML = params.valueFormatted;\n } else if (exists(params.value)) {\n this.eCurrent.innerHTML = value;\n } else {\n clearElement(this.eCurrent);\n }\n\n return true;\n };\n\n AnimateSlideCellRenderer.TEMPLATE = \"\\n \\n \";\n\n __decorate$22([Autowired('filterManager')], AnimateSlideCellRenderer.prototype, \"filterManager\", void 0);\n\n return AnimateSlideCellRenderer;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar RowHighlightPosition;\n\n(function (RowHighlightPosition) {\n RowHighlightPosition[RowHighlightPosition[\"Above\"] = 0] = \"Above\";\n RowHighlightPosition[RowHighlightPosition[\"Below\"] = 1] = \"Below\";\n})(RowHighlightPosition || (RowHighlightPosition = {}));\n\nvar RowNode =\n/** @class */\nfunction () {\n function RowNode(beans) {\n /** The current row index. If the row is filtered out or in a collapsed group, this value will be `null`. */\n this.rowIndex = null;\n /** The key for the group eg Ireland, UK, USA */\n\n this.key = null;\n /** Children mapped by the pivot columns. */\n\n this.childrenMapped = {};\n /**\n * This will be `true` if it has a rowIndex assigned, otherwise `false`.\n */\n\n this.displayed = false;\n /** The row top position in pixels. */\n\n this.rowTop = null;\n /** The top pixel for this row last time, makes sense if data set was ordered or filtered,\n * it is used so new rows can animate in from their old position. */\n\n this.oldRowTop = null;\n /** `true` by default - can be overridden via gridOptions.isRowSelectable(rowNode) */\n\n this.selectable = true;\n /** Used by sorting service - to give deterministic sort to groups. Previously we\n * just id for this, however id is a string and had slower sorting compared to numbers. */\n\n this.__objectId = RowNode.OBJECT_ID_SEQUENCE++;\n /** When one or more Columns are using autoHeight, this keeps track of height of each autoHeight Cell,\n * indexed by the Column ID. */\n\n this.__autoHeights = {};\n /** `true` when nodes with the same id are being removed and added as part of the same batch transaction */\n\n this.alreadyRendered = false;\n this.highlighted = null;\n this.selected = false;\n this.onRowHeightChangedDebounced = debounce(this.onRowHeightChanged.bind(this), 100);\n this.beans = beans;\n }\n /** Replaces the data on the `rowNode`. When complete, the grid will refresh the the entire rendered row if it is showing. */\n\n\n RowNode.prototype.setData = function (data) {\n this.setDataCommon(data, false);\n }; // similar to setRowData, however it is expected that the data is the same data item. this\n // is intended to be used with Redux type stores, where the whole data can be changed. we are\n // guaranteed that the data is the same entity (so grid doesn't need to worry about the id of the\n // underlying data changing, hence doesn't need to worry about selection). the grid, upon receiving\n // dataChanged event, will refresh the cells rather than rip them all out (so user can show transitions).\n\n\n RowNode.prototype.updateData = function (data) {\n this.setDataCommon(data, true);\n };\n\n RowNode.prototype.setDataCommon = function (data, update) {\n var oldData = this.data;\n this.data = data;\n this.beans.valueCache.onDataChanged();\n this.updateDataOnDetailNode();\n this.checkRowSelectable();\n var event = this.createDataChangedEvent(data, oldData, update);\n this.dispatchLocalEvent(event);\n }; // when we are doing master / detail, the detail node is lazy created, but then kept around.\n // so if we show / hide the detail, the same detail rowNode is used. so we need to keep the data\n // in sync, otherwise expand/collapse of the detail would still show the old values.\n\n\n RowNode.prototype.updateDataOnDetailNode = function () {\n if (this.detailNode) {\n this.detailNode.data = this.data;\n }\n };\n\n RowNode.prototype.createDataChangedEvent = function (newData, oldData, update) {\n return {\n type: RowNode.EVENT_DATA_CHANGED,\n node: this,\n oldData: oldData,\n newData: newData,\n update: update\n };\n };\n\n RowNode.prototype.createLocalRowEvent = function (type) {\n return {\n type: type,\n node: this\n };\n };\n\n RowNode.prototype.getRowIndexString = function () {\n if (this.rowPinned === Constants.PINNED_TOP) {\n return 't-' + this.rowIndex;\n }\n\n if (this.rowPinned === Constants.PINNED_BOTTOM) {\n return 'b-' + this.rowIndex;\n }\n\n return this.rowIndex.toString();\n };\n\n RowNode.prototype.createDaemonNode = function () {\n var oldNode = new RowNode(this.beans); // just copy the id and data, this is enough for the node to be used\n // in the selection controller (the selection controller is the only\n // place where daemon nodes can live).\n\n oldNode.id = this.id;\n oldNode.data = this.data;\n oldNode.daemon = true;\n oldNode.selected = this.selected;\n oldNode.level = this.level;\n return oldNode;\n };\n\n RowNode.prototype.setDataAndId = function (data, id) {\n var oldNode = exists(this.id) ? this.createDaemonNode() : null;\n var oldData = this.data;\n this.data = data;\n this.updateDataOnDetailNode();\n this.setId(id);\n this.beans.selectionService.syncInRowNode(this, oldNode);\n this.checkRowSelectable();\n var event = this.createDataChangedEvent(data, oldData, false);\n this.dispatchLocalEvent(event);\n };\n\n RowNode.prototype.checkRowSelectable = function () {\n var isRowSelectableFunc = this.beans.gridOptionsWrapper.getIsRowSelectableFunc();\n this.setRowSelectable(isRowSelectableFunc ? isRowSelectableFunc(this) : true);\n };\n\n RowNode.prototype.setRowSelectable = function (newVal) {\n if (this.selectable !== newVal) {\n this.selectable = newVal;\n\n if (this.eventService) {\n this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_SELECTABLE_CHANGED));\n }\n\n var isGroupSelectsChildren = this.beans.gridOptionsWrapper.isGroupSelectsChildren();\n\n if (isGroupSelectsChildren) {\n var selected = this.calculateSelectedFromChildren();\n this.setSelected(selected !== null && selected !== void 0 ? selected : false);\n }\n }\n };\n\n RowNode.prototype.setId = function (id) {\n // see if user is providing the id's\n var getRowIdFunc = this.beans.gridOptionsWrapper.getRowIdFunc();\n\n if (getRowIdFunc) {\n // if user is providing the id's, then we set the id only after the data has been set.\n // this is important for virtual pagination and viewport, where empty rows exist.\n if (this.data) {\n // we pass 'true' as we skip this level when generating keys,\n // as we don't always have the key for this level (eg when updating\n // data via transaction on SSRM, we are getting key to look up the\n // RowNode, don't have the RowNode yet, thus no way to get the current key)\n var parentKeys = this.getGroupKeys(true);\n this.id = getRowIdFunc({\n data: this.data,\n parentKeys: parentKeys.length > 0 ? parentKeys : undefined,\n level: this.level\n }); // make sure id provided doesn't start with 'row-group-' as this is reserved. also check that\n // it has 'startsWith' in case the user provided a number.\n\n if (this.id !== null && typeof this.id === 'string' && this.id.startsWith(RowNode.ID_PREFIX_ROW_GROUP)) {\n console.error(\"AG Grid: Row IDs cannot start with \" + RowNode.ID_PREFIX_ROW_GROUP + \", this is a reserved prefix for AG Grid's row grouping feature.\");\n } // force id to be a string\n\n\n if (this.id !== null && typeof this.id !== 'string') {\n this.id = '' + this.id;\n }\n } else {\n // this can happen if user has set blank into the rowNode after the row previously\n // having data. this happens in virtual page row model, when data is delete and\n // the page is refreshed.\n this.id = undefined;\n }\n } else {\n this.id = id;\n }\n };\n\n RowNode.prototype.getGroupKeys = function (excludeSelf) {\n if (excludeSelf === void 0) {\n excludeSelf = false;\n }\n\n var keys = [];\n var pointer = this;\n\n if (excludeSelf) {\n pointer = pointer.parent;\n }\n\n while (pointer && pointer.level >= 0) {\n keys.push(pointer.key);\n pointer = pointer.parent;\n }\n\n keys.reverse();\n return keys;\n };\n\n RowNode.prototype.isPixelInRange = function (pixel) {\n if (!exists(this.rowTop) || !exists(this.rowHeight)) {\n return false;\n }\n\n return pixel >= this.rowTop && pixel < this.rowTop + this.rowHeight;\n };\n\n RowNode.prototype.setFirstChild = function (firstChild) {\n if (this.firstChild === firstChild) {\n return;\n }\n\n this.firstChild = firstChild;\n\n if (this.eventService) {\n this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_FIRST_CHILD_CHANGED));\n }\n };\n\n RowNode.prototype.setLastChild = function (lastChild) {\n if (this.lastChild === lastChild) {\n return;\n }\n\n this.lastChild = lastChild;\n\n if (this.eventService) {\n this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_LAST_CHILD_CHANGED));\n }\n };\n\n RowNode.prototype.setChildIndex = function (childIndex) {\n if (this.childIndex === childIndex) {\n return;\n }\n\n this.childIndex = childIndex;\n\n if (this.eventService) {\n this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_CHILD_INDEX_CHANGED));\n }\n };\n\n RowNode.prototype.setRowTop = function (rowTop) {\n this.oldRowTop = this.rowTop;\n\n if (this.rowTop === rowTop) {\n return;\n }\n\n this.rowTop = rowTop;\n\n if (this.eventService) {\n this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_TOP_CHANGED));\n }\n\n this.setDisplayed(rowTop !== null);\n };\n\n RowNode.prototype.clearRowTopAndRowIndex = function () {\n this.oldRowTop = null;\n this.setRowTop(null);\n this.setRowIndex(null);\n };\n\n RowNode.prototype.setDisplayed = function (displayed) {\n if (this.displayed === displayed) {\n return;\n }\n\n this.displayed = displayed;\n\n if (this.eventService) {\n this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_DISPLAYED_CHANGED));\n }\n };\n\n RowNode.prototype.setDragging = function (dragging) {\n if (this.dragging === dragging) {\n return;\n }\n\n this.dragging = dragging;\n\n if (this.eventService) {\n this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_DRAGGING_CHANGED));\n }\n };\n\n RowNode.prototype.setHighlighted = function (highlighted) {\n if (highlighted === this.highlighted) {\n return;\n }\n\n this.highlighted = highlighted;\n\n if (this.eventService) {\n this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_HIGHLIGHT_CHANGED));\n }\n };\n\n RowNode.prototype.setAllChildrenCount = function (allChildrenCount) {\n if (this.allChildrenCount === allChildrenCount) {\n return;\n }\n\n this.allChildrenCount = allChildrenCount;\n\n if (this.eventService) {\n this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED));\n }\n };\n\n RowNode.prototype.setMaster = function (master) {\n if (this.master === master) {\n return;\n } // if changing AWAY from master, then unexpand, otherwise\n // next time it's shown it is expanded again\n\n\n if (this.master && !master) {\n this.expanded = false;\n }\n\n this.master = master;\n\n if (this.eventService) {\n this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_MASTER_CHANGED));\n }\n };\n\n RowNode.prototype.setGroup = function (group) {\n if (this.group === group) {\n return;\n } // if we used to be a group, and no longer, then close the node\n\n\n if (this.group && !group) {\n this.expanded = false;\n }\n\n this.group = group;\n this.updateHasChildren();\n\n if (this.eventService) {\n this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_GROUP_CHANGED));\n }\n };\n /**\n * Sets the row height.\n * Call if you want to change the height initially assigned to the row.\n * After calling, you must call `api.onRowHeightChanged()` so the grid knows it needs to work out the placement of the rows. */\n\n\n RowNode.prototype.setRowHeight = function (rowHeight, estimated) {\n if (estimated === void 0) {\n estimated = false;\n }\n\n this.rowHeight = rowHeight;\n this.rowHeightEstimated = estimated;\n\n if (this.eventService) {\n this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_HEIGHT_CHANGED));\n }\n };\n\n RowNode.prototype.setRowAutoHeight = function (cellHeight, column) {\n if (!this.__autoHeights) {\n this.__autoHeights = {};\n }\n\n var autoHeights = this.__autoHeights;\n autoHeights[column.getId()] = cellHeight;\n\n if (cellHeight != null) {\n if (this.checkAutoHeightsDebounced == null) {\n this.checkAutoHeightsDebounced = debounce(this.checkAutoHeights.bind(this), 1);\n }\n\n this.checkAutoHeightsDebounced();\n }\n };\n\n RowNode.prototype.checkAutoHeights = function () {\n var notAllPresent = false;\n var nonePresent = true;\n var newRowHeight = 0;\n var autoHeights = this.__autoHeights;\n\n if (autoHeights == null) {\n return;\n }\n\n var displayedAutoHeightCols = this.beans.columnModel.getAllDisplayedAutoHeightCols();\n displayedAutoHeightCols.forEach(function (col) {\n var cellHeight = autoHeights[col.getId()];\n\n if (cellHeight == null) {\n notAllPresent = true;\n return;\n }\n\n nonePresent = false;\n\n if (cellHeight > newRowHeight) {\n newRowHeight = cellHeight;\n }\n });\n\n if (notAllPresent) {\n return;\n } // we take min of 10, so we don't adjust for empty rows. if <10, we put to default.\n // this prevents the row starting very small when waiting for async components,\n // which would then mean the grid squashes in far to many rows (as small heights\n // means more rows fit in) which looks crap. so best ignore small values and assume\n // we are still waiting for values to render.\n\n\n if (nonePresent || newRowHeight < 10) {\n newRowHeight = this.beans.gridOptionsWrapper.getRowHeightForNode(this).height;\n }\n\n if (newRowHeight == this.rowHeight) {\n return;\n }\n\n this.setRowHeight(newRowHeight);\n this.onRowHeightChangedDebounced();\n };\n /** This method is debounced. It is used for row auto-height. If we don't debounce,\n * then the Row Models will end up recalculating each row position\n * for each row height change and result in the Row Renderer laying out rows.\n * This is particularly bad if using print layout, and showing eg 1,000 rows,\n * each row will change it's height, causing Row Model to update 1,000 times.\n */\n\n\n RowNode.prototype.onRowHeightChanged = function () {\n var rowModel = this.beans.rowModel;\n\n if (rowModel.onRowHeightChanged) {\n rowModel.onRowHeightChanged();\n }\n };\n\n RowNode.prototype.setRowIndex = function (rowIndex) {\n if (this.rowIndex === rowIndex) {\n return;\n }\n\n this.rowIndex = rowIndex;\n\n if (this.eventService) {\n this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_ROW_INDEX_CHANGED));\n }\n };\n\n RowNode.prototype.setUiLevel = function (uiLevel) {\n if (this.uiLevel === uiLevel) {\n return;\n }\n\n this.uiLevel = uiLevel;\n\n if (this.eventService) {\n this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_UI_LEVEL_CHANGED));\n }\n };\n /**\n * Set the expanded state of this rowNode. Pass `true` to expand and `false` to collapse.\n */\n\n\n RowNode.prototype.setExpanded = function (expanded, e) {\n if (this.expanded === expanded) {\n return;\n }\n\n this.expanded = expanded;\n\n if (this.eventService) {\n this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_EXPANDED_CHANGED));\n }\n\n var event = Object.assign({}, this.createGlobalRowEvent(Events.EVENT_ROW_GROUP_OPENED), {\n expanded: expanded,\n event: e || null\n });\n this.beans.rowNodeEventThrottle.dispatchExpanded(event); // when using footers we need to refresh the group row, as the aggregation\n // values jump between group and footer\n\n if (this.beans.gridOptionsWrapper.isGroupIncludeFooter()) {\n this.beans.rowRenderer.refreshCells({\n rowNodes: [this]\n });\n }\n };\n\n RowNode.prototype.createGlobalRowEvent = function (type) {\n return {\n type: type,\n node: this,\n data: this.data,\n rowIndex: this.rowIndex,\n rowPinned: this.rowPinned,\n context: this.beans.gridOptionsWrapper.getContext(),\n api: this.beans.gridOptionsWrapper.getApi(),\n columnApi: this.beans.gridOptionsWrapper.getColumnApi()\n };\n };\n\n RowNode.prototype.dispatchLocalEvent = function (event) {\n if (this.eventService) {\n this.eventService.dispatchEvent(event);\n }\n };\n /**\n * Replaces the value on the `rowNode` for the specified column. When complete,\n * the grid will refresh the rendered cell on the required row only.\n *\n * @param colKey The column where the value should be updated\n * @param newValue The new value\n * @param eventSource The source of the event\n * @returns `True` if the value was changed, otherwise `False`.\n */\n\n\n RowNode.prototype.setDataValue = function (colKey, newValue, eventSource) {\n // When it is done via the editors, no 'cell changed' event gets fired, as it's assumed that\n // the cell knows about the change given it's in charge of the editing.\n // this method is for the client to call, so the cell listens for the change\n // event, and also flashes the cell when the change occurs.\n var column = this.beans.columnModel.getPrimaryColumn(colKey);\n var oldValue = this.beans.valueService.getValue(column, this);\n var valueChanged = this.beans.valueService.setValue(this, column, newValue, eventSource);\n this.dispatchCellChangedEvent(column, newValue, oldValue);\n this.checkRowSelectable();\n return valueChanged;\n };\n\n RowNode.prototype.setGroupValue = function (colKey, newValue) {\n var column = this.beans.columnModel.getGridColumn(colKey);\n\n if (missing(this.groupData)) {\n this.groupData = {};\n }\n\n var columnId = column.getColId();\n var oldValue = this.groupData[columnId];\n\n if (oldValue === newValue) {\n return;\n }\n\n this.groupData[columnId] = newValue;\n this.dispatchCellChangedEvent(column, newValue, oldValue);\n }; // sets the data for an aggregation\n\n\n RowNode.prototype.setAggData = function (newAggData) {\n var _this = this; // find out all keys that could potentially change\n\n\n var colIds = getAllKeysInObjects([this.aggData, newAggData]);\n var oldAggData = this.aggData;\n this.aggData = newAggData; // if no event service, nobody has registered for events, so no need fire event\n\n if (this.eventService) {\n colIds.forEach(function (colId) {\n var column = _this.beans.columnModel.getGridColumn(colId);\n\n var value = _this.aggData ? _this.aggData[colId] : undefined;\n var oldValue = oldAggData ? oldAggData[colId] : undefined;\n\n _this.dispatchCellChangedEvent(column, value, oldValue);\n });\n }\n };\n\n RowNode.prototype.updateHasChildren = function () {\n // we need to return true when this.group=true, as this is used by server side row model\n // (as children are lazy loaded and stored in a cache anyway). otherwise we return true\n // if children exist.\n var newValue = this.group && !this.footer || this.childrenAfterGroup && this.childrenAfterGroup.length > 0;\n\n if (newValue !== this.__hasChildren) {\n this.__hasChildren = !!newValue;\n\n if (this.eventService) {\n this.eventService.dispatchEvent(this.createLocalRowEvent(RowNode.EVENT_HAS_CHILDREN_CHANGED));\n }\n }\n };\n\n RowNode.prototype.hasChildren = function () {\n if (this.__hasChildren == null) {\n this.updateHasChildren();\n }\n\n return this.__hasChildren;\n };\n\n RowNode.prototype.isEmptyRowGroupNode = function () {\n return this.group && missingOrEmpty(this.childrenAfterGroup);\n };\n\n RowNode.prototype.dispatchCellChangedEvent = function (column, newValue, oldValue) {\n var cellChangedEvent = {\n type: RowNode.EVENT_CELL_CHANGED,\n node: this,\n column: column,\n newValue: newValue,\n oldValue: oldValue\n };\n this.dispatchLocalEvent(cellChangedEvent);\n };\n /**\n * The first time `quickFilter` runs, the grid creates a one-off string representation of the row.\n * This string is then used for the quick filter instead of hitting each column separately.\n * When you edit, using grid editing, this string gets cleared down.\n * However if you edit without using grid editing, you will need to clear this string down for the row to be updated with the new values.\n * Otherwise new values will not work with the `quickFilter`. */\n\n\n RowNode.prototype.resetQuickFilterAggregateText = function () {\n this.quickFilterAggregateText = null;\n };\n\n RowNode.prototype.isExpandable = function () {\n return this.hasChildren() && !this.footer || this.master ? true : false;\n };\n /** Returns:\n * - `true` if node is selected,\n * - `false` if the node isn't selected\n * - `undefined` if it's partially selected (group where not all children are selected). */\n\n\n RowNode.prototype.isSelected = function () {\n // for footers, we just return what our sibling selected state is, as cannot select a footer\n if (this.footer) {\n return this.sibling.isSelected();\n }\n\n return this.selected;\n };\n /** Perform a depth-first search of this node and its children. */\n\n\n RowNode.prototype.depthFirstSearch = function (callback) {\n if (this.childrenAfterGroup) {\n this.childrenAfterGroup.forEach(function (child) {\n return child.depthFirstSearch(callback);\n });\n }\n\n callback(this);\n }; // + selectionController.calculatedSelectedForAllGroupNodes()\n\n\n RowNode.prototype.calculateSelectedFromChildren = function () {\n var _a;\n\n var atLeastOneSelected = false;\n var atLeastOneDeSelected = false;\n var atLeastOneMixed = false;\n\n if (!((_a = this.childrenAfterGroup) === null || _a === void 0 ? void 0 : _a.length)) {\n return this.selectable ? this.selected : null;\n }\n\n for (var i = 0; i < this.childrenAfterGroup.length; i++) {\n var child = this.childrenAfterGroup[i];\n var childState = child.isSelected(); // non-selectable nodes must be calculated from their children, or ignored if no value results.\n\n if (!child.selectable) {\n var selectable = child.calculateSelectedFromChildren();\n\n if (selectable === null) {\n continue;\n }\n\n childState = selectable;\n }\n\n switch (childState) {\n case true:\n atLeastOneSelected = true;\n break;\n\n case false:\n atLeastOneDeSelected = true;\n break;\n\n default:\n atLeastOneMixed = true;\n break;\n }\n }\n\n if (atLeastOneMixed || atLeastOneSelected && atLeastOneDeSelected) {\n return undefined;\n } else if (atLeastOneSelected) {\n return true;\n } else if (atLeastOneDeSelected) {\n return false;\n } else if (!this.selectable) {\n return null;\n } else {\n return this.selected;\n }\n };\n\n RowNode.prototype.setSelectedInitialValue = function (selected) {\n this.selected = selected;\n };\n /**\n * Select (or deselect) the node.\n * @param newValue -`true` for selection, `false` for deselection.\n * @param clearSelection - If selecting, then passing `true` will select the node exclusively (i.e. NOT do multi select). If doing deselection, `clearSelection` has no impact.\n * @param suppressFinishActions - Pass `true` to prevent the `selectionChanged` from being fired. Note that the `rowSelected` event will still be fired.\n */\n\n\n RowNode.prototype.setSelected = function (newValue, clearSelection, suppressFinishActions) {\n if (clearSelection === void 0) {\n clearSelection = false;\n }\n\n if (suppressFinishActions === void 0) {\n suppressFinishActions = false;\n }\n\n this.setSelectedParams({\n newValue: newValue,\n clearSelection: clearSelection,\n suppressFinishActions: suppressFinishActions,\n rangeSelect: false\n });\n };\n\n RowNode.prototype.isRowPinned = function () {\n return this.rowPinned === Constants.PINNED_TOP || this.rowPinned === Constants.PINNED_BOTTOM;\n }; // to make calling code more readable, this is the same method as setSelected except it takes names parameters\n\n\n RowNode.prototype.setSelectedParams = function (params) {\n var _a;\n\n var groupSelectsChildren = this.beans.gridOptionsWrapper.isGroupSelectsChildren();\n var newValue = params.newValue === true;\n var clearSelection = params.clearSelection === true;\n var suppressFinishActions = params.suppressFinishActions === true;\n var rangeSelect = params.rangeSelect === true; // groupSelectsFiltered only makes sense when group selects children\n\n var groupSelectsFiltered = groupSelectsChildren && params.groupSelectsFiltered === true;\n\n if (this.id === undefined) {\n console.warn('AG Grid: cannot select node until id for node is known');\n return 0;\n }\n\n if (this.rowPinned) {\n console.warn('AG Grid: cannot select pinned rows');\n return 0;\n } // if we are a footer, we don't do selection, just pass the info\n // to the sibling (the parent of the group)\n\n\n if (this.footer) {\n return this.sibling.setSelectedParams(params);\n }\n\n if (rangeSelect && this.beans.selectionService.getLastSelectedNode()) {\n var newRowClicked = this.beans.selectionService.getLastSelectedNode() !== this;\n var allowMultiSelect = this.beans.gridOptionsWrapper.isRowSelectionMulti();\n\n if (newRowClicked && allowMultiSelect) {\n var nodesChanged = this.doRowRangeSelection(params.newValue);\n this.beans.selectionService.setLastSelectedNode(this);\n return nodesChanged;\n }\n }\n\n var updatedCount = 0; // when groupSelectsFiltered, then this node may end up intermediate despite\n // trying to set it to true / false. this group will be calculated further on\n // down when we call calculatedSelectedForAllGroupNodes(). we need to skip it\n // here, otherwise the updatedCount would include it.\n\n var skipThisNode = groupSelectsFiltered && this.group;\n\n if (!skipThisNode) {\n var thisNodeWasSelected = this.selectThisNode(newValue, params.event);\n\n if (thisNodeWasSelected) {\n updatedCount++;\n }\n }\n\n if (groupSelectsChildren && ((_a = this.childrenAfterGroup) === null || _a === void 0 ? void 0 : _a.length)) {\n updatedCount += this.selectChildNodes(newValue, groupSelectsFiltered);\n } // clear other nodes if not doing multi select\n\n\n if (!suppressFinishActions) {\n var clearOtherNodes = newValue && (clearSelection || !this.beans.gridOptionsWrapper.isRowSelectionMulti());\n\n if (clearOtherNodes) {\n updatedCount += this.beans.selectionService.clearOtherNodes(this);\n } // only if we selected something, then update groups and fire events\n\n\n if (updatedCount > 0) {\n this.beans.selectionService.updateGroupsFromChildrenSelections(); // this is the very end of the 'action node', so we are finished all the updates,\n // include any parent / child changes that this method caused\n\n var event_1 = {\n type: Events.EVENT_SELECTION_CHANGED\n };\n this.beans.eventService.dispatchEvent(event_1);\n } // so if user next does shift-select, we know where to start the selection from\n\n\n if (newValue) {\n this.beans.selectionService.setLastSelectedNode(this);\n }\n }\n\n return updatedCount;\n }; // selects all rows between this node and the last selected node (or the top if this is the first selection).\n // not to be mixed up with 'cell range selection' where you drag the mouse, this is row range selection, by\n // holding down 'shift'.\n\n\n RowNode.prototype.doRowRangeSelection = function (value) {\n var _this = this;\n\n if (value === void 0) {\n value = true;\n }\n\n var groupsSelectChildren = this.beans.gridOptionsWrapper.isGroupSelectsChildren();\n var lastSelectedNode = this.beans.selectionService.getLastSelectedNode();\n var nodesToSelect = this.beans.rowModel.getNodesInRangeForSelection(this, lastSelectedNode);\n var updatedCount = 0;\n nodesToSelect.forEach(function (rowNode) {\n if (rowNode.group && groupsSelectChildren || value === false && _this === rowNode) {\n return;\n }\n\n var nodeWasSelected = rowNode.selectThisNode(value);\n\n if (nodeWasSelected) {\n updatedCount++;\n }\n });\n this.beans.selectionService.updateGroupsFromChildrenSelections();\n var event = {\n type: Events.EVENT_SELECTION_CHANGED\n };\n this.beans.eventService.dispatchEvent(event);\n return updatedCount;\n };\n\n RowNode.prototype.isParentOfNode = function (potentialParent) {\n var parentNode = this.parent;\n\n while (parentNode) {\n if (parentNode === potentialParent) {\n return true;\n }\n\n parentNode = parentNode.parent;\n }\n\n return false;\n };\n\n RowNode.prototype.selectThisNode = function (newValue, e) {\n // we only check selectable when newValue=true (ie selecting) to allow unselecting values,\n // as selectable is dynamic, need a way to unselect rows when selectable becomes false.\n var selectionNotAllowed = !this.selectable && newValue;\n var selectionNotChanged = this.selected === newValue;\n\n if (selectionNotAllowed || selectionNotChanged) {\n return false;\n }\n\n this.selected = newValue;\n\n if (this.eventService) {\n this.dispatchLocalEvent(this.createLocalRowEvent(RowNode.EVENT_ROW_SELECTED));\n }\n\n var event = Object.assign({}, this.createGlobalRowEvent(Events.EVENT_ROW_SELECTED), {\n event: e || null\n });\n this.beans.eventService.dispatchEvent(event);\n return true;\n };\n\n RowNode.prototype.selectChildNodes = function (newValue, groupSelectsFiltered) {\n var children = groupSelectsFiltered ? this.childrenAfterAggFilter : this.childrenAfterGroup;\n\n if (missing(children)) {\n return 0;\n }\n\n var updatedCount = 0;\n\n for (var i = 0; i < children.length; i++) {\n updatedCount += children[i].setSelectedParams({\n newValue: newValue,\n clearSelection: false,\n suppressFinishActions: true,\n groupSelectsFiltered: groupSelectsFiltered\n });\n }\n\n return updatedCount;\n };\n /** Add an event listener. */\n\n\n RowNode.prototype.addEventListener = function (eventType, listener) {\n if (!this.eventService) {\n this.eventService = new EventService();\n }\n\n this.eventService.addEventListener(eventType, listener);\n };\n /** Remove event listener. */\n\n\n RowNode.prototype.removeEventListener = function (eventType, listener) {\n if (!this.eventService) {\n return;\n }\n\n this.eventService.removeEventListener(eventType, listener);\n\n if (this.eventService.noRegisteredListenersExist()) {\n this.eventService = null;\n }\n };\n\n RowNode.prototype.onMouseEnter = function () {\n this.dispatchLocalEvent(this.createLocalRowEvent(RowNode.EVENT_MOUSE_ENTER));\n };\n\n RowNode.prototype.onMouseLeave = function () {\n this.dispatchLocalEvent(this.createLocalRowEvent(RowNode.EVENT_MOUSE_LEAVE));\n };\n\n RowNode.prototype.getFirstChildOfFirstChild = function (rowGroupColumn) {\n var currentRowNode = this;\n var isCandidate = true;\n var foundFirstChildPath = false;\n var nodeToSwapIn = null; // if we are hiding groups, then if we are the first child, of the first child,\n // all the way up to the column we are interested in, then we show the group cell.\n\n while (isCandidate && !foundFirstChildPath) {\n var parentRowNode = currentRowNode.parent;\n var firstChild = exists(parentRowNode) && currentRowNode.firstChild;\n\n if (firstChild) {\n if (parentRowNode.rowGroupColumn === rowGroupColumn) {\n foundFirstChildPath = true;\n nodeToSwapIn = parentRowNode;\n }\n } else {\n isCandidate = false;\n }\n\n currentRowNode = parentRowNode;\n }\n\n return foundFirstChildPath ? nodeToSwapIn : null;\n };\n\n RowNode.prototype.isFullWidthCell = function () {\n var isFullWidthCellFunc = this.beans.gridOptionsWrapper.getIsFullWidthCellFunc();\n return isFullWidthCellFunc ? isFullWidthCellFunc({\n rowNode: this\n }) : false;\n };\n /**\n * Returns the route of the row node. If the Row Node is a group, it returns the route to that Row Node.\n * If the Row Node is not a group, it returns `undefined`.\n */\n\n\n RowNode.prototype.getRoute = function () {\n if (this.key == null) {\n return;\n }\n\n var res = [];\n var pointer = this;\n\n while (pointer.key != null) {\n res.push(pointer.key);\n pointer = pointer.parent;\n }\n\n return res.reverse();\n };\n\n RowNode.ID_PREFIX_ROW_GROUP = 'row-group-';\n RowNode.ID_PREFIX_TOP_PINNED = 't-';\n RowNode.ID_PREFIX_BOTTOM_PINNED = 'b-';\n RowNode.OBJECT_ID_SEQUENCE = 0;\n RowNode.EVENT_ROW_SELECTED = 'rowSelected';\n RowNode.EVENT_DATA_CHANGED = 'dataChanged';\n RowNode.EVENT_CELL_CHANGED = 'cellChanged';\n RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED = 'allChildrenCountChanged';\n RowNode.EVENT_MASTER_CHANGED = 'masterChanged';\n RowNode.EVENT_GROUP_CHANGED = 'groupChanged';\n RowNode.EVENT_MOUSE_ENTER = 'mouseEnter';\n RowNode.EVENT_MOUSE_LEAVE = 'mouseLeave';\n RowNode.EVENT_HEIGHT_CHANGED = 'heightChanged';\n RowNode.EVENT_TOP_CHANGED = 'topChanged';\n RowNode.EVENT_DISPLAYED_CHANGED = 'displayedChanged';\n RowNode.EVENT_FIRST_CHILD_CHANGED = 'firstChildChanged';\n RowNode.EVENT_LAST_CHILD_CHANGED = 'lastChildChanged';\n RowNode.EVENT_CHILD_INDEX_CHANGED = 'childIndexChanged';\n RowNode.EVENT_ROW_INDEX_CHANGED = 'rowIndexChanged';\n RowNode.EVENT_EXPANDED_CHANGED = 'expandedChanged';\n RowNode.EVENT_HAS_CHILDREN_CHANGED = 'hasChildrenChanged';\n RowNode.EVENT_SELECTABLE_CHANGED = 'selectableChanged';\n RowNode.EVENT_UI_LEVEL_CHANGED = 'uiLevelChanged';\n RowNode.EVENT_HIGHLIGHT_CHANGED = 'rowHighlightChanged';\n RowNode.EVENT_DRAGGING_CHANGED = 'draggingChanged';\n return RowNode;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2i = undefined && undefined.__extends || function () {\n var _extendStatics39 = function extendStatics(d, b) {\n _extendStatics39 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics39(d, b);\n };\n\n return function (d, b) {\n _extendStatics39(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$8 = undefined && undefined.__assign || function () {\n __assign$8 = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$8.apply(this, arguments);\n};\n\nvar __decorate$21 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar CheckboxSelectionComponent =\n/** @class */\nfunction (_super) {\n __extends$2i(CheckboxSelectionComponent, _super);\n\n function CheckboxSelectionComponent() {\n return _super.call(this,\n /* html*/\n \"\\n
\\n \\n
\") || this;\n }\n\n CheckboxSelectionComponent.prototype.postConstruct = function () {\n this.eCheckbox.setPassive(true);\n };\n\n CheckboxSelectionComponent.prototype.getCheckboxId = function () {\n return this.eCheckbox.getInputElement().id;\n };\n\n CheckboxSelectionComponent.prototype.onDataChanged = function () {\n // when rows are loaded for the second time, this can impact the selection, as a row\n // could be loaded as already selected (if user scrolls down, and then up again).\n this.onSelectionChanged();\n };\n\n CheckboxSelectionComponent.prototype.onSelectableChanged = function () {\n this.showOrHideSelect();\n };\n\n CheckboxSelectionComponent.prototype.onSelectionChanged = function () {\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var state = this.rowNode.isSelected();\n var stateName = state === undefined ? translate('ariaIndeterminate', 'indeterminate') : state === true ? translate('ariaChecked', 'checked') : translate('ariaUnchecked', 'unchecked');\n var ariaLabel = translate('ariaRowToggleSelection', 'Press Space to toggle row selection');\n this.eCheckbox.setValue(state, true);\n this.eCheckbox.setInputAriaLabel(ariaLabel + \" (\" + stateName + \")\");\n };\n\n CheckboxSelectionComponent.prototype.onCheckedClicked = function (event) {\n var groupSelectsFiltered = this.gridOptionsWrapper.isGroupSelectsFiltered();\n var updatedCount = this.rowNode.setSelectedParams({\n newValue: false,\n rangeSelect: event.shiftKey,\n groupSelectsFiltered: groupSelectsFiltered\n });\n return updatedCount;\n };\n\n CheckboxSelectionComponent.prototype.onUncheckedClicked = function (event) {\n var groupSelectsFiltered = this.gridOptionsWrapper.isGroupSelectsFiltered();\n var updatedCount = this.rowNode.setSelectedParams({\n newValue: true,\n rangeSelect: event.shiftKey,\n groupSelectsFiltered: groupSelectsFiltered\n });\n return updatedCount;\n };\n\n CheckboxSelectionComponent.prototype.init = function (params) {\n var _this = this;\n\n this.rowNode = params.rowNode;\n this.column = params.column;\n this.overrides = params.overrides;\n this.onSelectionChanged(); // we don't want the row clicked event to fire when selecting the checkbox, otherwise the row\n // would possibly get selected twice\n\n this.addGuiEventListener('click', function (event) {\n return stopPropagationForAgGrid(event);\n }); // likewise we don't want double click on this icon to open a group\n\n this.addGuiEventListener('dblclick', function (event) {\n return stopPropagationForAgGrid(event);\n });\n this.addManagedListener(this.eCheckbox.getInputElement(), 'click', function (event) {\n var isSelected = _this.eCheckbox.getValue();\n\n var previousValue = _this.eCheckbox.getPreviousValue();\n\n if (previousValue === undefined || isSelected === undefined) {\n // Indeterminate state - try toggling children to determine action.\n var result = _this.onUncheckedClicked(event || {});\n\n if (result === 0) {\n _this.onCheckedClicked(event);\n }\n } else if (isSelected) {\n _this.onCheckedClicked(event);\n } else {\n _this.onUncheckedClicked(event || {});\n }\n });\n this.addManagedListener(this.rowNode, RowNode.EVENT_ROW_SELECTED, this.onSelectionChanged.bind(this));\n this.addManagedListener(this.rowNode, RowNode.EVENT_DATA_CHANGED, this.onDataChanged.bind(this));\n this.addManagedListener(this.rowNode, RowNode.EVENT_SELECTABLE_CHANGED, this.onSelectableChanged.bind(this));\n var isRowSelectableFunc = this.gridOptionsWrapper.getIsRowSelectableFunc();\n var checkboxVisibleIsDynamic = isRowSelectableFunc || typeof this.getIsVisible() === 'function';\n\n if (checkboxVisibleIsDynamic) {\n var showOrHideSelectListener = this.showOrHideSelect.bind(this);\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, showOrHideSelectListener);\n this.addManagedListener(this.rowNode, RowNode.EVENT_DATA_CHANGED, showOrHideSelectListener);\n this.addManagedListener(this.rowNode, RowNode.EVENT_CELL_CHANGED, showOrHideSelectListener);\n this.showOrHideSelect();\n }\n\n this.eCheckbox.getInputElement().setAttribute('tabindex', '-1');\n };\n\n CheckboxSelectionComponent.prototype.showOrHideSelect = function () {\n var _a, _b, _c, _d; // if the isRowSelectable() is not provided the row node is selectable by default\n\n\n var selectable = this.rowNode.selectable; // checkboxSelection callback is deemed a legacy solution however we will still consider it's result.\n // If selectable, then also check the colDef callback. if not selectable, this it short circuits - no need\n // to call the colDef callback.\n\n var isVisible = this.getIsVisible();\n\n if (selectable) {\n if (typeof isVisible === 'function') {\n var extraParams = (_a = this.overrides) === null || _a === void 0 ? void 0 : _a.callbackParams;\n var params = (_b = this.column) === null || _b === void 0 ? void 0 : _b.createColumnFunctionCallbackParams(this.rowNode);\n selectable = params ? isVisible(__assign$8(__assign$8({}, extraParams), params)) : false;\n } else {\n selectable = isVisible !== null && isVisible !== void 0 ? isVisible : false;\n }\n }\n\n var disableInsteadOfHide = (_c = this.column) === null || _c === void 0 ? void 0 : _c.getColDef().showDisabledCheckboxes;\n\n if (disableInsteadOfHide) {\n this.eCheckbox.setDisabled(!selectable);\n this.setVisible(true);\n this.setDisplayed(true);\n return;\n }\n\n if ((_d = this.overrides) === null || _d === void 0 ? void 0 : _d.removeHidden) {\n this.setDisplayed(selectable);\n return;\n }\n\n this.setVisible(selectable);\n };\n\n CheckboxSelectionComponent.prototype.getIsVisible = function () {\n var _a, _b;\n\n if (this.overrides) {\n return this.overrides.isVisible;\n } // column will be missing if groupUseEntireRow=true\n\n\n return (_b = (_a = this.column) === null || _a === void 0 ? void 0 : _a.getColDef()) === null || _b === void 0 ? void 0 : _b.checkboxSelection;\n };\n\n __decorate$21([RefSelector('eCheckbox')], CheckboxSelectionComponent.prototype, \"eCheckbox\", void 0);\n\n __decorate$21([PostConstruct], CheckboxSelectionComponent.prototype, \"postConstruct\", null);\n\n return CheckboxSelectionComponent;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2h = undefined && undefined.__extends || function () {\n var _extendStatics40 = function extendStatics(d, b) {\n _extendStatics40 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics40(d, b);\n };\n\n return function (d, b) {\n _extendStatics40(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$20 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __values$3 = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar DragSourceType;\n\n(function (DragSourceType) {\n DragSourceType[DragSourceType[\"ToolPanel\"] = 0] = \"ToolPanel\";\n DragSourceType[DragSourceType[\"HeaderCell\"] = 1] = \"HeaderCell\";\n DragSourceType[DragSourceType[\"RowDrag\"] = 2] = \"RowDrag\";\n DragSourceType[DragSourceType[\"ChartPanel\"] = 3] = \"ChartPanel\";\n})(DragSourceType || (DragSourceType = {}));\n\nvar VerticalDirection;\n\n(function (VerticalDirection) {\n VerticalDirection[VerticalDirection[\"Up\"] = 0] = \"Up\";\n VerticalDirection[VerticalDirection[\"Down\"] = 1] = \"Down\";\n})(VerticalDirection || (VerticalDirection = {}));\n\nvar HorizontalDirection;\n\n(function (HorizontalDirection) {\n HorizontalDirection[HorizontalDirection[\"Left\"] = 0] = \"Left\";\n HorizontalDirection[HorizontalDirection[\"Right\"] = 1] = \"Right\";\n})(HorizontalDirection || (HorizontalDirection = {}));\n\nvar DragAndDropService =\n/** @class */\nfunction (_super) {\n __extends$2h(DragAndDropService, _super);\n\n function DragAndDropService() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.dragSourceAndParamsList = [];\n _this.dropTargets = [];\n return _this;\n }\n\n DragAndDropService_1 = DragAndDropService;\n\n DragAndDropService.prototype.init = function () {\n this.ePinnedIcon = createIcon('columnMovePin', this.gridOptionsWrapper, null);\n this.eHideIcon = createIcon('columnMoveHide', this.gridOptionsWrapper, null);\n this.eMoveIcon = createIcon('columnMoveMove', this.gridOptionsWrapper, null);\n this.eLeftIcon = createIcon('columnMoveLeft', this.gridOptionsWrapper, null);\n this.eRightIcon = createIcon('columnMoveRight', this.gridOptionsWrapper, null);\n this.eGroupIcon = createIcon('columnMoveGroup', this.gridOptionsWrapper, null);\n this.eAggregateIcon = createIcon('columnMoveValue', this.gridOptionsWrapper, null);\n this.ePivotIcon = createIcon('columnMovePivot', this.gridOptionsWrapper, null);\n this.eDropNotAllowedIcon = createIcon('dropNotAllowed', this.gridOptionsWrapper, null);\n };\n\n DragAndDropService.prototype.addDragSource = function (dragSource, allowTouch) {\n if (allowTouch === void 0) {\n allowTouch = false;\n }\n\n var params = {\n eElement: dragSource.eElement,\n dragStartPixels: dragSource.dragStartPixels,\n onDragStart: this.onDragStart.bind(this, dragSource),\n onDragStop: this.onDragStop.bind(this),\n onDragging: this.onDragging.bind(this)\n };\n this.dragSourceAndParamsList.push({\n params: params,\n dragSource: dragSource\n });\n this.dragService.addDragSource(params, allowTouch);\n };\n\n DragAndDropService.prototype.removeDragSource = function (dragSource) {\n var sourceAndParams = this.dragSourceAndParamsList.find(function (item) {\n return item.dragSource === dragSource;\n });\n\n if (sourceAndParams) {\n this.dragService.removeDragSource(sourceAndParams.params);\n removeFromArray(this.dragSourceAndParamsList, sourceAndParams);\n }\n };\n\n DragAndDropService.prototype.clearDragSourceParamsList = function () {\n var _this = this;\n\n this.dragSourceAndParamsList.forEach(function (sourceAndParams) {\n return _this.dragService.removeDragSource(sourceAndParams.params);\n });\n this.dragSourceAndParamsList.length = 0;\n };\n\n DragAndDropService.prototype.nudge = function () {\n if (this.dragging) {\n this.onDragging(this.eventLastTime, true);\n }\n };\n\n DragAndDropService.prototype.onDragStart = function (dragSource, mouseEvent) {\n this.dragging = true;\n this.dragSource = dragSource;\n this.eventLastTime = mouseEvent;\n this.dragItem = this.dragSource.getDragItem();\n this.lastDropTarget = this.dragSource.dragSourceDropTarget;\n\n if (this.dragSource.onDragStarted) {\n this.dragSource.onDragStarted();\n }\n\n this.createGhost();\n };\n\n DragAndDropService.prototype.onDragStop = function (mouseEvent) {\n this.eventLastTime = null;\n this.dragging = false;\n\n if (this.dragSource.onDragStopped) {\n this.dragSource.onDragStopped();\n }\n\n if (this.lastDropTarget && this.lastDropTarget.onDragStop) {\n var draggingEvent = this.createDropTargetEvent(this.lastDropTarget, mouseEvent, null, null, false);\n this.lastDropTarget.onDragStop(draggingEvent);\n }\n\n this.lastDropTarget = null;\n this.dragItem = null;\n this.removeGhost();\n };\n\n DragAndDropService.prototype.onDragging = function (mouseEvent, fromNudge) {\n var _this = this;\n\n var _a, _b, _c, _d;\n\n var hDirection = this.getHorizontalDirection(mouseEvent);\n var vDirection = this.getVerticalDirection(mouseEvent);\n this.eventLastTime = mouseEvent;\n this.positionGhost(mouseEvent); // check if mouseEvent intersects with any of the drop targets\n\n var validDropTargets = this.dropTargets.filter(function (target) {\n return _this.isMouseOnDropTarget(mouseEvent, target);\n });\n var dropTarget = this.findCurrentDropTarget(mouseEvent, validDropTargets);\n\n if (dropTarget !== this.lastDropTarget) {\n this.leaveLastTargetIfExists(mouseEvent, hDirection, vDirection, fromNudge);\n\n if (this.lastDropTarget !== null && dropTarget === null) {\n (_b = (_a = this.dragSource).onGridExit) === null || _b === void 0 ? void 0 : _b.call(_a, this.dragItem);\n }\n\n if (this.lastDropTarget === null && dropTarget !== null) {\n (_d = (_c = this.dragSource).onGridEnter) === null || _d === void 0 ? void 0 : _d.call(_c, this.dragItem);\n }\n\n this.enterDragTargetIfExists(dropTarget, mouseEvent, hDirection, vDirection, fromNudge);\n this.lastDropTarget = dropTarget;\n } else if (dropTarget && dropTarget.onDragging) {\n var draggingEvent = this.createDropTargetEvent(dropTarget, mouseEvent, hDirection, vDirection, fromNudge);\n dropTarget.onDragging(draggingEvent);\n }\n };\n\n DragAndDropService.prototype.getAllContainersFromDropTarget = function (dropTarget) {\n var secondaryContainers = dropTarget.getSecondaryContainers ? dropTarget.getSecondaryContainers() : null;\n var containers = [[dropTarget.getContainer()]];\n return secondaryContainers ? containers.concat(secondaryContainers) : containers;\n };\n\n DragAndDropService.prototype.allContainersIntersect = function (mouseEvent, containers) {\n var e_1, _a;\n\n try {\n for (var containers_1 = __values$3(containers), containers_1_1 = containers_1.next(); !containers_1_1.done; containers_1_1 = containers_1.next()) {\n var container = containers_1_1.value;\n var rect = container.getBoundingClientRect(); // if element is not visible, then width and height are zero\n\n if (rect.width === 0 || rect.height === 0) {\n return false;\n }\n\n var horizontalFit = mouseEvent.clientX >= rect.left && mouseEvent.clientX < rect.right;\n var verticalFit = mouseEvent.clientY >= rect.top && mouseEvent.clientY < rect.bottom;\n\n if (!horizontalFit || !verticalFit) {\n return false;\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (containers_1_1 && !containers_1_1.done && (_a = containers_1.return)) _a.call(containers_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n return true;\n }; // checks if the mouse is on the drop target. it checks eContainer and eSecondaryContainers\n\n\n DragAndDropService.prototype.isMouseOnDropTarget = function (mouseEvent, dropTarget) {\n var e_2, _a;\n\n var allContainersFromDropTarget = this.getAllContainersFromDropTarget(dropTarget);\n var mouseOverTarget = false;\n\n try {\n for (var allContainersFromDropTarget_1 = __values$3(allContainersFromDropTarget), allContainersFromDropTarget_1_1 = allContainersFromDropTarget_1.next(); !allContainersFromDropTarget_1_1.done; allContainersFromDropTarget_1_1 = allContainersFromDropTarget_1.next()) {\n var currentContainers = allContainersFromDropTarget_1_1.value;\n\n if (this.allContainersIntersect(mouseEvent, currentContainers)) {\n mouseOverTarget = true;\n break;\n }\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally {\n try {\n if (allContainersFromDropTarget_1_1 && !allContainersFromDropTarget_1_1.done && (_a = allContainersFromDropTarget_1.return)) _a.call(allContainersFromDropTarget_1);\n } finally {\n if (e_2) throw e_2.error;\n }\n }\n\n if (dropTarget.targetContainsSource && !dropTarget.getContainer().contains(this.dragSource.eElement)) {\n return false;\n }\n\n return mouseOverTarget && dropTarget.isInterestedIn(this.dragSource.type, this.dragSource.eElement);\n };\n\n DragAndDropService.prototype.findCurrentDropTarget = function (mouseEvent, validDropTargets) {\n var e_3, _a, e_4, _b;\n\n var len = validDropTargets.length;\n\n if (len === 0) {\n return null;\n }\n\n if (len === 1) {\n return validDropTargets[0];\n }\n\n var eDocument = this.gridOptionsWrapper.getDocument(); // elementsFromPoint return a list of elements under\n // the mouseEvent sorted from topMost to bottomMost\n\n var elementStack = eDocument.elementsFromPoint(mouseEvent.clientX, mouseEvent.clientY);\n\n try {\n // loop over the sorted elementStack to find which dropTarget comes first\n for (var elementStack_1 = __values$3(elementStack), elementStack_1_1 = elementStack_1.next(); !elementStack_1_1.done; elementStack_1_1 = elementStack_1.next()) {\n var el = elementStack_1_1.value;\n\n try {\n for (var validDropTargets_1 = (e_4 = void 0, __values$3(validDropTargets)), validDropTargets_1_1 = validDropTargets_1.next(); !validDropTargets_1_1.done; validDropTargets_1_1 = validDropTargets_1.next()) {\n var dropTarget = validDropTargets_1_1.value;\n var containers = flatten(this.getAllContainersFromDropTarget(dropTarget));\n\n if (containers.indexOf(el) !== -1) {\n return dropTarget;\n }\n }\n } catch (e_4_1) {\n e_4 = {\n error: e_4_1\n };\n } finally {\n try {\n if (validDropTargets_1_1 && !validDropTargets_1_1.done && (_b = validDropTargets_1.return)) _b.call(validDropTargets_1);\n } finally {\n if (e_4) throw e_4.error;\n }\n }\n }\n } catch (e_3_1) {\n e_3 = {\n error: e_3_1\n };\n } finally {\n try {\n if (elementStack_1_1 && !elementStack_1_1.done && (_a = elementStack_1.return)) _a.call(elementStack_1);\n } finally {\n if (e_3) throw e_3.error;\n }\n } // we should never hit this point of the code because only\n // valid dropTargets should be provided to this method.\n\n\n return null;\n };\n\n DragAndDropService.prototype.enterDragTargetIfExists = function (dropTarget, mouseEvent, hDirection, vDirection, fromNudge) {\n if (!dropTarget) {\n return;\n }\n\n if (dropTarget.onDragEnter) {\n var dragEnterEvent = this.createDropTargetEvent(dropTarget, mouseEvent, hDirection, vDirection, fromNudge);\n dropTarget.onDragEnter(dragEnterEvent);\n }\n\n this.setGhostIcon(dropTarget.getIconName ? dropTarget.getIconName() : null);\n };\n\n DragAndDropService.prototype.leaveLastTargetIfExists = function (mouseEvent, hDirection, vDirection, fromNudge) {\n if (!this.lastDropTarget) {\n return;\n }\n\n if (this.lastDropTarget.onDragLeave) {\n var dragLeaveEvent = this.createDropTargetEvent(this.lastDropTarget, mouseEvent, hDirection, vDirection, fromNudge);\n this.lastDropTarget.onDragLeave(dragLeaveEvent);\n }\n\n this.setGhostIcon(null);\n };\n\n DragAndDropService.prototype.addDropTarget = function (dropTarget) {\n this.dropTargets.push(dropTarget);\n };\n\n DragAndDropService.prototype.removeDropTarget = function (dropTarget) {\n this.dropTargets = this.dropTargets.filter(function (target) {\n return target.getContainer() !== dropTarget.getContainer();\n });\n };\n\n DragAndDropService.prototype.hasExternalDropZones = function () {\n return this.dropTargets.some(function (zones) {\n return zones.external;\n });\n };\n\n DragAndDropService.prototype.findExternalZone = function (params) {\n var externalTargets = this.dropTargets.filter(function (target) {\n return target.external;\n });\n return externalTargets.find(function (zone) {\n return zone.getContainer() === params.getContainer();\n }) || null;\n };\n\n DragAndDropService.prototype.getHorizontalDirection = function (event) {\n var clientX = this.eventLastTime && this.eventLastTime.clientX;\n var eClientX = event.clientX;\n\n if (clientX === eClientX) {\n return null;\n }\n\n return clientX > eClientX ? HorizontalDirection.Left : HorizontalDirection.Right;\n };\n\n DragAndDropService.prototype.getVerticalDirection = function (event) {\n var clientY = this.eventLastTime && this.eventLastTime.clientY;\n var eClientY = event.clientY;\n\n if (clientY === eClientY) {\n return null;\n }\n\n return clientY > eClientY ? VerticalDirection.Up : VerticalDirection.Down;\n };\n\n DragAndDropService.prototype.createDropTargetEvent = function (dropTarget, event, hDirection, vDirection, fromNudge) {\n // localise x and y to the target\n var dropZoneTarget = dropTarget.getContainer();\n var rect = dropZoneTarget.getBoundingClientRect();\n\n var _a = this,\n api = _a.gridApi,\n columnApi = _a.columnApi,\n dragItem = _a.dragItem,\n dragSource = _a.dragSource;\n\n var x = event.clientX - rect.left;\n var y = event.clientY - rect.top;\n return {\n event: event,\n x: x,\n y: y,\n vDirection: vDirection,\n hDirection: hDirection,\n dragSource: dragSource,\n fromNudge: fromNudge,\n dragItem: dragItem,\n api: api,\n columnApi: columnApi,\n dropZoneTarget: dropZoneTarget\n };\n };\n\n DragAndDropService.prototype.positionGhost = function (event) {\n var ghost = this.eGhost;\n\n if (!ghost) {\n return;\n }\n\n var ghostRect = ghost.getBoundingClientRect();\n var ghostHeight = ghostRect.height; // for some reason, without the '-2', it still overlapped by 1 or 2 pixels, which\n // then brought in scrollbars to the browser. no idea why, but putting in -2 here\n // works around it which is good enough for me.\n\n var browserWidth = getBodyWidth() - 2;\n var browserHeight = getBodyHeight() - 2;\n var top = event.pageY - ghostHeight / 2;\n var left = event.pageX - 10;\n var eDocument = this.gridOptionsWrapper.getDocument();\n var win = eDocument.defaultView || window;\n var windowScrollY = win.pageYOffset || eDocument.documentElement.scrollTop;\n var windowScrollX = win.pageXOffset || eDocument.documentElement.scrollLeft; // check ghost is not positioned outside of the browser\n\n if (browserWidth > 0 && left + ghost.clientWidth > browserWidth + windowScrollX) {\n left = browserWidth + windowScrollX - ghost.clientWidth;\n }\n\n if (left < 0) {\n left = 0;\n }\n\n if (browserHeight > 0 && top + ghost.clientHeight > browserHeight + windowScrollY) {\n top = browserHeight + windowScrollY - ghost.clientHeight;\n }\n\n if (top < 0) {\n top = 0;\n }\n\n ghost.style.left = left + \"px\";\n ghost.style.top = top + \"px\";\n };\n\n DragAndDropService.prototype.removeGhost = function () {\n if (this.eGhost && this.eGhostParent) {\n this.eGhostParent.removeChild(this.eGhost);\n }\n\n this.eGhost = null;\n };\n\n DragAndDropService.prototype.createGhost = function () {\n this.eGhost = loadTemplate(DragAndDropService_1.GHOST_TEMPLATE);\n this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);\n var theme = this.environment.getTheme().theme;\n\n if (theme) {\n this.eGhost.classList.add(theme);\n }\n\n this.eGhostIcon = this.eGhost.querySelector('.ag-dnd-ghost-icon');\n this.setGhostIcon(null);\n var eText = this.eGhost.querySelector('.ag-dnd-ghost-label');\n var dragItemName = this.dragSource.dragItemName;\n\n if (isFunction(dragItemName)) {\n dragItemName = dragItemName();\n }\n\n eText.innerHTML = escapeString(dragItemName) || '';\n this.eGhost.style.height = '25px';\n this.eGhost.style.top = '20px';\n this.eGhost.style.left = '20px';\n var eDocument = this.gridOptionsWrapper.getDocument();\n var targetEl = null;\n\n try {\n targetEl = eDocument.fullscreenElement;\n } catch (e) {// some environments like SalesForce will throw errors\n // simply by trying to read the fullscreenElement property\n } finally {\n if (!targetEl) {\n targetEl = eDocument.querySelector('body');\n }\n }\n\n this.eGhostParent = targetEl;\n\n if (!this.eGhostParent) {\n console.warn('AG Grid: could not find document body, it is needed for dragging columns');\n } else {\n this.eGhostParent.appendChild(this.eGhost);\n }\n };\n\n DragAndDropService.prototype.setGhostIcon = function (iconName, shake) {\n if (shake === void 0) {\n shake = false;\n }\n\n clearElement(this.eGhostIcon);\n var eIcon = null;\n\n if (!iconName) {\n iconName = this.dragSource.defaultIconName || DragAndDropService_1.ICON_NOT_ALLOWED;\n }\n\n switch (iconName) {\n case DragAndDropService_1.ICON_PINNED:\n eIcon = this.ePinnedIcon;\n break;\n\n case DragAndDropService_1.ICON_MOVE:\n eIcon = this.eMoveIcon;\n break;\n\n case DragAndDropService_1.ICON_LEFT:\n eIcon = this.eLeftIcon;\n break;\n\n case DragAndDropService_1.ICON_RIGHT:\n eIcon = this.eRightIcon;\n break;\n\n case DragAndDropService_1.ICON_GROUP:\n eIcon = this.eGroupIcon;\n break;\n\n case DragAndDropService_1.ICON_AGGREGATE:\n eIcon = this.eAggregateIcon;\n break;\n\n case DragAndDropService_1.ICON_PIVOT:\n eIcon = this.ePivotIcon;\n break;\n\n case DragAndDropService_1.ICON_NOT_ALLOWED:\n eIcon = this.eDropNotAllowedIcon;\n break;\n\n case DragAndDropService_1.ICON_HIDE:\n eIcon = this.eHideIcon;\n break;\n }\n\n this.eGhostIcon.classList.toggle('ag-shake-left-to-right', shake);\n\n if (eIcon === this.eHideIcon && this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()) {\n return;\n }\n\n if (eIcon) {\n this.eGhostIcon.appendChild(eIcon);\n }\n };\n\n var DragAndDropService_1;\n DragAndDropService.ICON_PINNED = 'pinned';\n DragAndDropService.ICON_MOVE = 'move';\n DragAndDropService.ICON_LEFT = 'left';\n DragAndDropService.ICON_RIGHT = 'right';\n DragAndDropService.ICON_GROUP = 'group';\n DragAndDropService.ICON_AGGREGATE = 'aggregate';\n DragAndDropService.ICON_PIVOT = 'pivot';\n DragAndDropService.ICON_NOT_ALLOWED = 'notAllowed';\n DragAndDropService.ICON_HIDE = 'hide';\n DragAndDropService.GHOST_TEMPLATE = \"
\\n \\n
\\n
\";\n\n __decorate$20([Autowired('dragService')], DragAndDropService.prototype, \"dragService\", void 0);\n\n __decorate$20([Autowired('mouseEventService')], DragAndDropService.prototype, \"mouseEventService\", void 0);\n\n __decorate$20([Autowired('environment')], DragAndDropService.prototype, \"environment\", void 0);\n\n __decorate$20([Autowired('columnApi')], DragAndDropService.prototype, \"columnApi\", void 0);\n\n __decorate$20([Autowired('gridApi')], DragAndDropService.prototype, \"gridApi\", void 0);\n\n __decorate$20([PostConstruct], DragAndDropService.prototype, \"init\", null);\n\n __decorate$20([PreDestroy], DragAndDropService.prototype, \"clearDragSourceParamsList\", null);\n\n DragAndDropService = DragAndDropService_1 = __decorate$20([Bean('dragAndDropService')], DragAndDropService);\n return DragAndDropService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2g = undefined && undefined.__extends || function () {\n var _extendStatics41 = function extendStatics(d, b) {\n _extendStatics41 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics41(d, b);\n };\n\n return function (d, b) {\n _extendStatics41(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar RowDragComp =\n/** @class */\nfunction (_super) {\n __extends$2g(RowDragComp, _super);\n\n function RowDragComp(cellValueFn, rowNode, column, customGui, dragStartPixels, suppressVisibilityChange) {\n var _this = _super.call(this) || this;\n\n _this.cellValueFn = cellValueFn;\n _this.rowNode = rowNode;\n _this.column = column;\n _this.customGui = customGui;\n _this.dragStartPixels = dragStartPixels;\n _this.suppressVisibilityChange = suppressVisibilityChange;\n _this.dragSource = null;\n return _this;\n }\n\n RowDragComp.prototype.isCustomGui = function () {\n return this.customGui != null;\n };\n\n RowDragComp.prototype.postConstruct = function () {\n if (!this.customGui) {\n this.setTemplate(\n /* html */\n \"
\");\n this.getGui().appendChild(createIconNoSpan('rowDrag', this.beans.gridOptionsWrapper, null));\n this.addDragSource();\n } else {\n this.setDragElement(this.customGui, this.dragStartPixels);\n }\n\n this.checkCompatibility();\n\n if (!this.suppressVisibilityChange) {\n var strategy = this.beans.gridOptionsWrapper.isRowDragManaged() ? new ManagedVisibilityStrategy(this, this.beans, this.rowNode, this.column) : new NonManagedVisibilityStrategy(this, this.beans, this.rowNode, this.column);\n this.createManagedBean(strategy, this.beans.context);\n }\n };\n\n RowDragComp.prototype.setDragElement = function (dragElement, dragStartPixels) {\n this.setTemplateFromElement(dragElement);\n this.addDragSource(dragStartPixels);\n };\n\n RowDragComp.prototype.getSelectedNodes = function () {\n var isRowDragMultiRow = this.beans.gridOptionsWrapper.isRowDragMultiRow();\n\n if (!isRowDragMultiRow) {\n return [this.rowNode];\n }\n\n var selection = this.beans.selectionService.getSelectedNodes();\n return selection.indexOf(this.rowNode) !== -1 ? selection : [this.rowNode];\n }; // returns true if all compatibility items work out\n\n\n RowDragComp.prototype.checkCompatibility = function () {\n var managed = this.beans.gridOptionsWrapper.isRowDragManaged();\n var treeData = this.beans.gridOptionsWrapper.isTreeData();\n\n if (treeData && managed) {\n doOnce(function () {\n return console.warn('AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true');\n }, 'RowDragComp.managedAndTreeData');\n }\n };\n\n RowDragComp.prototype.getDragItem = function () {\n return {\n rowNode: this.rowNode,\n rowNodes: this.getSelectedNodes(),\n columns: this.column ? [this.column] : undefined,\n defaultTextValue: this.cellValueFn()\n };\n };\n\n RowDragComp.prototype.addDragSource = function (dragStartPixels) {\n var _this = this;\n\n if (dragStartPixels === void 0) {\n dragStartPixels = 4;\n } // if this is changing the drag element, delete the previous dragSource\n\n\n if (this.dragSource) {\n this.removeDragSource();\n }\n\n var rowDragText = this.column && this.column.getColDef().rowDragText;\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n this.dragSource = {\n type: DragSourceType.RowDrag,\n eElement: this.getGui(),\n dragItemName: function dragItemName() {\n var _a;\n\n var dragItem = _this.getDragItem();\n\n var dragItemCount = ((_a = dragItem.rowNodes) === null || _a === void 0 ? void 0 : _a.length) || 1;\n\n if (rowDragText) {\n return rowDragText(dragItem, dragItemCount);\n }\n\n return dragItemCount === 1 ? _this.cellValueFn() : dragItemCount + \" \" + translate('rowDragRows', 'rows');\n },\n getDragItem: function getDragItem() {\n return _this.getDragItem();\n },\n dragStartPixels: dragStartPixels,\n dragSourceDomDataKey: this.beans.gridOptionsWrapper.getDomDataKey()\n };\n this.beans.dragAndDropService.addDragSource(this.dragSource, true);\n };\n\n RowDragComp.prototype.removeDragSource = function () {\n if (this.dragSource) {\n this.beans.dragAndDropService.removeDragSource(this.dragSource);\n }\n\n this.dragSource = null;\n };\n\n __decorate$1$([Autowired('beans')], RowDragComp.prototype, \"beans\", void 0);\n\n __decorate$1$([PostConstruct], RowDragComp.prototype, \"postConstruct\", null);\n\n __decorate$1$([PreDestroy], RowDragComp.prototype, \"removeDragSource\", null);\n\n return RowDragComp;\n}(Component);\n\nvar VisibilityStrategy =\n/** @class */\nfunction (_super) {\n __extends$2g(VisibilityStrategy, _super);\n\n function VisibilityStrategy(parent, rowNode, column) {\n var _this = _super.call(this) || this;\n\n _this.parent = parent;\n _this.rowNode = rowNode;\n _this.column = column;\n return _this;\n }\n\n VisibilityStrategy.prototype.setDisplayedOrVisible = function (neverDisplayed) {\n if (neverDisplayed) {\n this.parent.setDisplayed(false);\n } else {\n var shown = true;\n var isShownSometimes = false;\n\n if (this.column) {\n shown = this.column.isRowDrag(this.rowNode) || this.parent.isCustomGui();\n isShownSometimes = isFunction(this.column.getColDef().rowDrag);\n } // if shown sometimes, them some rows can have drag handle while other don't,\n // so we use setVisible to keep the handles horizontally aligned (as setVisible\n // keeps the empty space, whereas setDisplayed looses the space)\n\n\n if (isShownSometimes) {\n this.parent.setDisplayed(true);\n this.parent.setVisible(shown);\n } else {\n this.parent.setDisplayed(shown);\n this.parent.setVisible(true);\n }\n }\n };\n\n return VisibilityStrategy;\n}(BeanStub); // when non managed, the visibility depends on suppressRowDrag property only\n\n\nvar NonManagedVisibilityStrategy =\n/** @class */\nfunction (_super) {\n __extends$2g(NonManagedVisibilityStrategy, _super);\n\n function NonManagedVisibilityStrategy(parent, beans, rowNode, column) {\n var _this = _super.call(this, parent, rowNode, column) || this;\n\n _this.beans = beans;\n return _this;\n }\n\n NonManagedVisibilityStrategy.prototype.postConstruct = function () {\n this.addManagedListener(this.beans.gridOptionsWrapper, 'suppressRowDrag', this.onSuppressRowDrag.bind(this)); // in case data changes, then we need to update visibility of drag item\n\n this.addManagedListener(this.rowNode, RowNode.EVENT_DATA_CHANGED, this.workOutVisibility.bind(this));\n this.addManagedListener(this.rowNode, RowNode.EVENT_CELL_CHANGED, this.workOutVisibility.bind(this));\n this.addManagedListener(this.rowNode, RowNode.EVENT_CELL_CHANGED, this.workOutVisibility.bind(this));\n this.addManagedListener(this.beans.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.workOutVisibility.bind(this));\n this.workOutVisibility();\n };\n\n NonManagedVisibilityStrategy.prototype.onSuppressRowDrag = function () {\n this.workOutVisibility();\n };\n\n NonManagedVisibilityStrategy.prototype.workOutVisibility = function () {\n // only show the drag if both sort and filter are not present\n var neverDisplayed = this.beans.gridOptionsWrapper.isSuppressRowDrag();\n this.setDisplayedOrVisible(neverDisplayed);\n };\n\n __decorate$1$([PostConstruct], NonManagedVisibilityStrategy.prototype, \"postConstruct\", null);\n\n return NonManagedVisibilityStrategy;\n}(VisibilityStrategy); // when managed, the visibility depends on sort, filter and row group, as well as suppressRowDrag property\n\n\nvar ManagedVisibilityStrategy =\n/** @class */\nfunction (_super) {\n __extends$2g(ManagedVisibilityStrategy, _super);\n\n function ManagedVisibilityStrategy(parent, beans, rowNode, column) {\n var _this = _super.call(this, parent, rowNode, column) || this;\n\n _this.beans = beans;\n return _this;\n }\n\n ManagedVisibilityStrategy.prototype.postConstruct = function () {\n // we do not show the component if sort, filter or grouping is active\n this.addManagedListener(this.beans.eventService, Events.EVENT_SORT_CHANGED, this.workOutVisibility.bind(this));\n this.addManagedListener(this.beans.eventService, Events.EVENT_FILTER_CHANGED, this.workOutVisibility.bind(this));\n this.addManagedListener(this.beans.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.workOutVisibility.bind(this));\n this.addManagedListener(this.beans.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.workOutVisibility.bind(this)); // in case data changes, then we need to update visibility of drag item\n\n this.addManagedListener(this.rowNode, RowNode.EVENT_DATA_CHANGED, this.workOutVisibility.bind(this));\n this.addManagedListener(this.rowNode, RowNode.EVENT_CELL_CHANGED, this.workOutVisibility.bind(this));\n this.addManagedListener(this.beans.gridOptionsWrapper, 'suppressRowDrag', this.onSuppressRowDrag.bind(this));\n this.workOutVisibility();\n };\n\n ManagedVisibilityStrategy.prototype.onSuppressRowDrag = function () {\n this.workOutVisibility();\n };\n\n ManagedVisibilityStrategy.prototype.workOutVisibility = function () {\n // only show the drag if both sort and filter are not present\n var gridBodyCon = this.beans.ctrlsService.getGridBodyCtrl();\n var rowDragFeature = gridBodyCon.getRowDragFeature();\n var shouldPreventRowMove = rowDragFeature && rowDragFeature.shouldPreventRowMove();\n var suppressRowDrag = this.beans.gridOptionsWrapper.isSuppressRowDrag();\n var hasExternalDropZones = this.beans.dragAndDropService.hasExternalDropZones();\n var neverDisplayed = shouldPreventRowMove && !hasExternalDropZones || suppressRowDrag;\n this.setDisplayedOrVisible(neverDisplayed);\n };\n\n __decorate$1$([PostConstruct], ManagedVisibilityStrategy.prototype, \"postConstruct\", null);\n\n return ManagedVisibilityStrategy;\n}(VisibilityStrategy);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2f = undefined && undefined.__extends || function () {\n var _extendStatics42 = function extendStatics(d, b) {\n _extendStatics42 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics42(d, b);\n };\n\n return function (d, b) {\n _extendStatics42(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$7 = undefined && undefined.__assign || function () {\n __assign$7 = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$7.apply(this, arguments);\n};\n\nvar __decorate$1_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar GroupCellRendererCtrl =\n/** @class */\nfunction (_super) {\n __extends$2f(GroupCellRendererCtrl, _super);\n\n function GroupCellRendererCtrl() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n GroupCellRendererCtrl.prototype.init = function (comp, eGui, eCheckbox, eExpanded, eContracted, compClass, params) {\n this.params = params;\n this.eGui = eGui;\n this.eCheckbox = eCheckbox;\n this.eExpanded = eExpanded;\n this.eContracted = eContracted;\n this.comp = comp;\n this.compClass = compClass;\n var topLevelFooter = this.isTopLevelFooter();\n var embeddedRowMismatch = this.isEmbeddedRowMismatch(); // This allows for empty strings to appear as groups since\n // it will only return for null or undefined.\n\n var nullValue = params.value == null;\n var skipCell = false; // if the groupCellRenderer is inside of a footer and groupHideOpenParents is true\n // we should only display the groupCellRenderer if the current column is the rowGroupedColumn\n\n if (this.gridOptionsWrapper.isGroupIncludeFooter() && this.gridOptionsWrapper.isGroupHideOpenParents()) {\n var node = params.node;\n\n if (node.footer) {\n var showRowGroup = params.colDef && params.colDef.showRowGroup;\n var rowGroupColumnId = node.rowGroupColumn && node.rowGroupColumn.getColId();\n skipCell = showRowGroup !== rowGroupColumnId;\n }\n }\n\n this.cellIsBlank = topLevelFooter ? false : embeddedRowMismatch || nullValue || skipCell;\n\n if (this.cellIsBlank) {\n return;\n }\n\n this.setupShowingValueForOpenedParent();\n this.findDisplayedGroupNode();\n this.addFullWidthRowDraggerIfNeeded();\n this.addExpandAndContract();\n this.addCheckboxIfNeeded();\n this.addValueElement();\n this.setupIndent();\n this.refreshAriaExpanded();\n };\n\n GroupCellRendererCtrl.prototype.destroy = function () {\n _super.prototype.destroy.call(this); // property cleanup to avoid memory leaks\n\n\n this.expandListener = null;\n };\n\n GroupCellRendererCtrl.prototype.refreshAriaExpanded = function () {\n var _a = this.params,\n node = _a.node,\n eParentOfValue = _a.eParentOfValue;\n\n if (this.expandListener) {\n this.expandListener = this.expandListener();\n }\n\n if (!this.isExpandable()) {\n removeAriaExpanded(eParentOfValue);\n return;\n }\n\n var listener = function listener() {\n // for react, we don't use JSX, as setting attributes via jsx is slower\n setAriaExpanded(eParentOfValue, !!node.expanded);\n };\n\n this.expandListener = this.addManagedListener(node, RowNode.EVENT_EXPANDED_CHANGED, listener) || null;\n listener();\n };\n\n GroupCellRendererCtrl.prototype.isTopLevelFooter = function () {\n if (!this.gridOptionsWrapper.isGroupIncludeTotalFooter()) {\n return false;\n }\n\n if (this.params.value != null || this.params.node.level != -1) {\n return false;\n } // at this point, we know it's the root node and there is no value present, so it's a footer cell.\n // the only thing to work out is if we are displaying groups across multiple\n // columns (groupMultiAutoColumn=true), we only want 'total' to appear in the first column.\n\n\n var colDef = this.params.colDef;\n var doingFullWidth = colDef == null;\n\n if (doingFullWidth) {\n return true;\n }\n\n if (colDef.showRowGroup === true) {\n return true;\n }\n\n var rowGroupCols = this.columnModel.getRowGroupColumns(); // this is a sanity check, rowGroupCols should always be present\n\n if (!rowGroupCols || rowGroupCols.length === 0) {\n return true;\n }\n\n var firstRowGroupCol = rowGroupCols[0];\n return firstRowGroupCol.getId() === colDef.showRowGroup;\n }; // if we are doing embedded full width rows, we only show the renderer when\n // in the body, or if pinning in the pinned section, or if pinning and RTL,\n // in the right section. otherwise we would have the cell repeated in each section.\n\n\n GroupCellRendererCtrl.prototype.isEmbeddedRowMismatch = function () {\n if (!this.params.fullWidth || !this.gridOptionsWrapper.isEmbedFullWidthRows()) {\n return false;\n }\n\n var pinnedLeftCell = this.params.pinned === Constants.PINNED_LEFT;\n var pinnedRightCell = this.params.pinned === Constants.PINNED_RIGHT;\n var bodyCell = !pinnedLeftCell && !pinnedRightCell;\n\n if (this.gridOptionsWrapper.isEnableRtl()) {\n if (this.columnModel.isPinningLeft()) {\n return !pinnedRightCell;\n }\n\n return !bodyCell;\n }\n\n if (this.columnModel.isPinningLeft()) {\n return !pinnedLeftCell;\n }\n\n return !bodyCell;\n };\n\n GroupCellRendererCtrl.prototype.findDisplayedGroupNode = function () {\n var column = this.params.column;\n var rowNode = this.params.node;\n\n if (this.showingValueForOpenedParent) {\n var pointer = rowNode.parent;\n\n while (pointer != null) {\n if (pointer.rowGroupColumn && column.isRowGroupDisplayed(pointer.rowGroupColumn.getId())) {\n this.displayedGroupNode = pointer;\n break;\n }\n\n pointer = pointer.parent;\n }\n } // if we didn't find a displayed group, set it to the row node\n\n\n if (missing(this.displayedGroupNode)) {\n this.displayedGroupNode = rowNode;\n }\n };\n\n GroupCellRendererCtrl.prototype.setupShowingValueForOpenedParent = function () {\n // note - this code depends on sortService.updateGroupDataForHiddenOpenParents, where group data\n // is updated to reflect the dragged down parents\n var rowNode = this.params.node;\n var column = this.params.column;\n\n if (!this.gridOptionsWrapper.isGroupHideOpenParents()) {\n this.showingValueForOpenedParent = false;\n return;\n } // hideOpenParents means rowNode.groupData can have data for the group this column is displaying, even though\n // this rowNode isn't grouping by the column we are displaying\n // if no groupData at all, we are not showing a parent value\n\n\n if (!rowNode.groupData) {\n this.showingValueForOpenedParent = false;\n return;\n } // this is the normal case, in that we are showing a group for which this column is configured. note that\n // this means the Row Group is closed (if it was open, we would not be displaying it)\n\n\n var showingGroupNode = rowNode.rowGroupColumn != null;\n\n if (showingGroupNode) {\n var keyOfGroupingColumn = rowNode.rowGroupColumn.getId();\n var configuredToShowThisGroupLevel = column.isRowGroupDisplayed(keyOfGroupingColumn); // if showing group as normal, we didn't take group info from parent\n\n if (configuredToShowThisGroupLevel) {\n this.showingValueForOpenedParent = false;\n return;\n }\n } // see if we are showing a Group Value for the Displayed Group. if we are showing a group value, and this Row Node\n // is not grouping by this Displayed Group, we must of gotten the value from a parent node\n\n\n var valPresent = rowNode.groupData[column.getId()] != null;\n this.showingValueForOpenedParent = valPresent;\n };\n\n GroupCellRendererCtrl.prototype.addValueElement = function () {\n if (this.displayedGroupNode.footer) {\n this.addFooterValue();\n } else {\n this.addGroupValue();\n this.addChildCount();\n }\n };\n\n GroupCellRendererCtrl.prototype.addGroupValue = function () {\n // we try and use the cellRenderer of the column used for the grouping if we can\n var paramsAdjusted = this.adjustParamsWithDetailsFromRelatedColumn();\n var innerCompDetails = this.getInnerCompDetails(paramsAdjusted);\n var valueFormatted = paramsAdjusted.valueFormatted,\n value = paramsAdjusted.value;\n var valueWhenNoRenderer = valueFormatted != null ? valueFormatted : value;\n this.comp.setInnerRenderer(innerCompDetails, valueWhenNoRenderer);\n };\n\n GroupCellRendererCtrl.prototype.adjustParamsWithDetailsFromRelatedColumn = function () {\n var relatedColumn = this.displayedGroupNode.rowGroupColumn;\n var column = this.params.column;\n\n if (!relatedColumn) {\n return this.params;\n }\n\n var notFullWidth = column != null;\n\n if (notFullWidth) {\n var showingThisRowGroup = column.isRowGroupDisplayed(relatedColumn.getId());\n\n if (!showingThisRowGroup) {\n return this.params;\n }\n }\n\n var params = this.params;\n var _a = this.params,\n value = _a.value,\n node = _a.node;\n var valueFormatted = this.valueFormatterService.formatValue(relatedColumn, node, value); // we don't update the original params, as they could of come through React,\n // as react has RowGroupCellRenderer, which means the params could be props which\n // would be read only\n\n var paramsAdjusted = __assign$7(__assign$7({}, params), {\n valueFormatted: valueFormatted\n });\n\n return paramsAdjusted;\n };\n\n GroupCellRendererCtrl.prototype.addFooterValue = function () {\n var footerValueGetter = this.params.footerValueGetter;\n var footerValue = '';\n\n if (footerValueGetter) {\n // params is same as we were given, except we set the value as the item to display\n var paramsClone = cloneObject(this.params);\n paramsClone.value = this.params.value;\n\n if (typeof footerValueGetter === 'function') {\n footerValue = footerValueGetter(paramsClone);\n } else if (typeof footerValueGetter === 'string') {\n footerValue = this.expressionService.evaluate(footerValueGetter, paramsClone);\n } else {\n console.warn('AG Grid: footerValueGetter should be either a function or a string (expression)');\n }\n } else {\n footerValue = 'Total ' + (this.params.value != null ? this.params.value : '');\n }\n\n var innerCompDetails = this.getInnerCompDetails(this.params);\n this.comp.setInnerRenderer(innerCompDetails, footerValue);\n };\n\n GroupCellRendererCtrl.prototype.getInnerCompDetails = function (params) {\n var _this = this; // for full width rows, we don't do any of the below\n\n\n if (params.fullWidth) {\n return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptions.groupRowRendererParams, params);\n } // when grouping, the normal case is we use the cell renderer of the grouped column. eg if grouping by country\n // and then rating, we will use the country cell renderer for each country group row and likewise the rating\n // cell renderer for each rating group row.\n //\n // however if the user has innerCellRenderer defined, this gets preference and we don't use cell renderers\n // of the grouped columns.\n //\n // so we check and use in the following order:\n //\n // 1) thisColDef.cellRendererParams.innerRenderer of the column showing the groups (eg auto group column)\n // 2) groupedColDef.cellRenderer of the grouped column\n // 3) groupedColDef.cellRendererParams.innerRenderer\n // we check if cell renderer provided for the group cell renderer, eg colDef.cellRendererParams.innerRenderer\n\n\n var innerCompDetails = this.userComponentFactory.getInnerRendererDetails(params, params); // avoid using GroupCellRenderer again, otherwise stack overflow, as we insert same renderer again and again.\n // this covers off chance user is grouping by a column that is also configured with GroupCellRenderer\n\n var isGroupRowRenderer = function isGroupRowRenderer(details) {\n return details && details.componentClass == _this.compClass;\n };\n\n if (innerCompDetails && !isGroupRowRenderer(innerCompDetails)) {\n // use the renderer defined in cellRendererParams.innerRenderer\n return innerCompDetails;\n }\n\n var relatedColumn = this.displayedGroupNode.rowGroupColumn;\n var relatedColDef = relatedColumn ? relatedColumn.getColDef() : undefined;\n\n if (!relatedColDef) {\n return;\n } // otherwise see if we can use the cellRenderer of the column we are grouping by\n\n\n var relatedCompDetails = this.userComponentFactory.getCellRendererDetails(relatedColDef, params);\n\n if (relatedCompDetails && !isGroupRowRenderer(relatedCompDetails)) {\n // Only if the original column is using a specific renderer, it it is a using a DEFAULT one ignore it\n return relatedCompDetails;\n }\n\n if (isGroupRowRenderer(relatedCompDetails) && relatedColDef.cellRendererParams && relatedColDef.cellRendererParams.innerRenderer) {\n // edge case - this comes from a column which has been grouped dynamically, that has a renderer 'group'\n // and has an inner cell renderer\n var res = this.userComponentFactory.getInnerRendererDetails(relatedColDef.cellRendererParams, params);\n return res;\n }\n };\n\n GroupCellRendererCtrl.prototype.addChildCount = function () {\n // only include the child count if it's included, eg if user doing custom aggregation,\n // then this could be left out, or set to -1, ie no child count\n if (this.params.suppressCount) {\n return;\n }\n\n this.addManagedListener(this.displayedGroupNode, RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED, this.updateChildCount.bind(this)); // filtering changes the child count, so need to cater for it\n\n this.updateChildCount();\n };\n\n GroupCellRendererCtrl.prototype.updateChildCount = function () {\n var allChildrenCount = this.displayedGroupNode.allChildrenCount;\n var showingGroupForThisNode = this.isShowRowGroupForThisRow();\n var showCount = showingGroupForThisNode && allChildrenCount != null && allChildrenCount >= 0;\n var countString = showCount ? \"(\" + allChildrenCount + \")\" : \"\";\n this.comp.setChildCount(countString);\n };\n\n GroupCellRendererCtrl.prototype.isShowRowGroupForThisRow = function () {\n if (this.gridOptionsWrapper.isTreeData()) {\n return true;\n }\n\n var rowGroupColumn = this.displayedGroupNode.rowGroupColumn;\n\n if (!rowGroupColumn) {\n return false;\n } // column is null for fullWidthRows\n\n\n var column = this.params.column;\n var thisColumnIsInterested = column == null || column.isRowGroupDisplayed(rowGroupColumn.getId());\n return thisColumnIsInterested;\n };\n\n GroupCellRendererCtrl.prototype.addExpandAndContract = function () {\n var params = this.params;\n var eExpandedIcon = createIconNoSpan('groupExpanded', this.gridOptionsWrapper, null);\n var eContractedIcon = createIconNoSpan('groupContracted', this.gridOptionsWrapper, null);\n\n if (eExpandedIcon) {\n this.eExpanded.appendChild(eExpandedIcon);\n }\n\n if (eContractedIcon) {\n this.eContracted.appendChild(eContractedIcon);\n }\n\n var eGroupCell = params.eGridCell; // if editing groups, then double click is to start editing\n\n if (!this.gridOptionsWrapper.isEnableGroupEdit() && this.isExpandable() && !params.suppressDoubleClickExpand) {\n this.addManagedListener(eGroupCell, 'dblclick', this.onCellDblClicked.bind(this));\n }\n\n this.addManagedListener(this.eExpanded, 'click', this.onExpandClicked.bind(this));\n this.addManagedListener(this.eContracted, 'click', this.onExpandClicked.bind(this)); // expand / contract as the user hits enter\n\n this.addManagedListener(eGroupCell, 'keydown', this.onKeyDown.bind(this));\n this.addManagedListener(params.node, RowNode.EVENT_EXPANDED_CHANGED, this.showExpandAndContractIcons.bind(this));\n this.showExpandAndContractIcons(); // because we don't show the expand / contract when there are no children, we need to check every time\n // the number of children change.\n\n var expandableChangedListener = this.onRowNodeIsExpandableChanged.bind(this);\n this.addManagedListener(this.displayedGroupNode, RowNode.EVENT_ALL_CHILDREN_COUNT_CHANGED, expandableChangedListener);\n this.addManagedListener(this.displayedGroupNode, RowNode.EVENT_MASTER_CHANGED, expandableChangedListener);\n this.addManagedListener(this.displayedGroupNode, RowNode.EVENT_GROUP_CHANGED, expandableChangedListener);\n this.addManagedListener(this.displayedGroupNode, RowNode.EVENT_HAS_CHILDREN_CHANGED, expandableChangedListener);\n };\n\n GroupCellRendererCtrl.prototype.onExpandClicked = function (mouseEvent) {\n if (isStopPropagationForAgGrid(mouseEvent)) {\n return;\n } // so if we expand a node, it does not also get selected.\n\n\n stopPropagationForAgGrid(mouseEvent);\n this.onExpandOrContract(mouseEvent);\n };\n\n GroupCellRendererCtrl.prototype.onExpandOrContract = function (e) {\n // must use the displayedGroup, so if data was dragged down, we expand the parent, not this row\n var rowNode = this.displayedGroupNode;\n var nextExpandState = !rowNode.expanded;\n\n if (!nextExpandState && rowNode.sticky) {\n this.scrollToStickyNode(rowNode);\n }\n\n rowNode.setExpanded(nextExpandState, e);\n };\n\n GroupCellRendererCtrl.prototype.scrollToStickyNode = function (rowNode) {\n var gridBodyCtrl = this.ctrlsService.getGridBodyCtrl();\n var scrollFeature = gridBodyCtrl.getScrollFeature();\n scrollFeature.setVerticalScrollPosition(rowNode.rowTop - rowNode.stickyRowTop);\n };\n\n GroupCellRendererCtrl.prototype.isExpandable = function () {\n if (this.showingValueForOpenedParent) {\n return true;\n }\n\n var rowNode = this.displayedGroupNode;\n var reducedLeafNode = this.columnModel.isPivotMode() && rowNode.leafGroup;\n var expandableGroup = rowNode.isExpandable() && !rowNode.footer && !reducedLeafNode;\n\n if (!expandableGroup) {\n return false;\n } // column is null for fullWidthRows\n\n\n var column = this.params.column;\n var displayingForOneColumnOnly = column != null && typeof column.getColDef().showRowGroup === 'string';\n\n if (displayingForOneColumnOnly) {\n var showing = this.isShowRowGroupForThisRow();\n return showing;\n }\n\n return true;\n };\n\n GroupCellRendererCtrl.prototype.showExpandAndContractIcons = function () {\n var _a = this,\n params = _a.params,\n displayedGroup = _a.displayedGroupNode,\n columnModel = _a.columnModel;\n\n var node = params.node;\n var isExpandable = this.isExpandable();\n\n if (isExpandable) {\n // if expandable, show one based on expand state.\n // if we were dragged down, means our parent is always expanded\n var expanded = this.showingValueForOpenedParent ? true : node.expanded;\n this.comp.setExpandedDisplayed(expanded);\n this.comp.setContractedDisplayed(!expanded);\n } else {\n // it not expandable, show neither\n this.comp.setExpandedDisplayed(false);\n this.comp.setContractedDisplayed(false);\n } // compensation padding for leaf nodes, so there is blank space instead of the expand icon\n\n\n var pivotMode = columnModel.isPivotMode();\n var pivotModeAndLeafGroup = pivotMode && displayedGroup.leafGroup;\n var addExpandableCss = isExpandable && !pivotModeAndLeafGroup;\n var isTotalFooterNode = node.footer && node.level === -1;\n this.comp.addOrRemoveCssClass('ag-cell-expandable', addExpandableCss);\n this.comp.addOrRemoveCssClass('ag-row-group', addExpandableCss);\n\n if (pivotMode) {\n this.comp.addOrRemoveCssClass('ag-pivot-leaf-group', pivotModeAndLeafGroup);\n } else if (!isTotalFooterNode) {\n this.comp.addOrRemoveCssClass('ag-row-group-leaf-indent', !addExpandableCss);\n }\n };\n\n GroupCellRendererCtrl.prototype.onRowNodeIsExpandableChanged = function () {\n // maybe if no children now, we should hide the expand / contract icons\n this.showExpandAndContractIcons(); // if we have no children, this impacts the indent\n\n this.setIndent();\n this.refreshAriaExpanded();\n };\n\n GroupCellRendererCtrl.prototype.setupIndent = function () {\n // only do this if an indent - as this overwrites the padding that\n // the theme set, which will make things look 'not aligned' for the\n // first group level.\n var node = this.params.node;\n var suppressPadding = this.params.suppressPadding;\n\n if (!suppressPadding) {\n this.addManagedListener(node, RowNode.EVENT_UI_LEVEL_CHANGED, this.setIndent.bind(this));\n this.setIndent();\n }\n };\n\n GroupCellRendererCtrl.prototype.setIndent = function () {\n if (this.gridOptionsWrapper.isGroupHideOpenParents()) {\n return;\n }\n\n var params = this.params;\n var rowNode = params.node; // if we are only showing one group column, we don't want to be indenting based on level\n\n var fullWithRow = !!params.colDef;\n var treeData = this.gridOptionsWrapper.isTreeData();\n var manyDimensionThisColumn = !fullWithRow || treeData || params.colDef.showRowGroup === true;\n var paddingCount = manyDimensionThisColumn ? rowNode.uiLevel : 0;\n var userProvidedPaddingPixelsTheDeprecatedWay = params.padding >= 0;\n\n if (userProvidedPaddingPixelsTheDeprecatedWay) {\n doOnce(function () {\n return console.warn('AG Grid: cellRendererParams.padding no longer works, it was deprecated in since v14.2 and removed in v26, 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.');\n }, 'groupCellRenderer->doDeprecatedWay');\n }\n\n if (this.indentClass) {\n this.comp.addOrRemoveCssClass(this.indentClass, false);\n }\n\n this.indentClass = 'ag-row-group-indent-' + paddingCount;\n this.comp.addOrRemoveCssClass(this.indentClass, true);\n };\n\n GroupCellRendererCtrl.prototype.addFullWidthRowDraggerIfNeeded = function () {\n var _this = this;\n\n if (!this.params.fullWidth || !this.params.rowDrag) {\n return;\n }\n\n var rowDragComp = new RowDragComp(function () {\n return _this.params.value;\n }, this.params.node);\n this.createManagedBean(rowDragComp, this.context);\n this.eGui.insertAdjacentElement('afterbegin', rowDragComp.getGui());\n };\n\n GroupCellRendererCtrl.prototype.isUserWantsSelected = function () {\n var paramsCheckbox = this.params.checkbox; // if a function, we always return true as change detection can show or hide the checkbox.\n\n return typeof paramsCheckbox === 'function' || paramsCheckbox === true;\n };\n\n GroupCellRendererCtrl.prototype.addCheckboxIfNeeded = function () {\n var _this = this;\n\n var rowNode = this.displayedGroupNode;\n var checkboxNeeded = this.isUserWantsSelected() && // footers cannot be selected\n !rowNode.footer && // pinned rows cannot be selected\n !rowNode.rowPinned && // details cannot be selected\n !rowNode.detail;\n\n if (checkboxNeeded) {\n var cbSelectionComponent_1 = new CheckboxSelectionComponent();\n this.getContext().createBean(cbSelectionComponent_1);\n cbSelectionComponent_1.init({\n rowNode: rowNode,\n column: this.params.column,\n overrides: {\n isVisible: this.params.checkbox,\n callbackParams: this.params,\n removeHidden: true\n }\n });\n this.eCheckbox.appendChild(cbSelectionComponent_1.getGui());\n this.addDestroyFunc(function () {\n return _this.getContext().destroyBean(cbSelectionComponent_1);\n });\n }\n\n this.comp.setCheckboxVisible(checkboxNeeded);\n };\n\n GroupCellRendererCtrl.prototype.onKeyDown = function (event) {\n var enterKeyPressed = event.key === KeyCode.ENTER;\n\n if (!enterKeyPressed || this.params.suppressEnterExpand) {\n return;\n }\n\n var cellEditable = this.params.column && this.params.column.isCellEditable(this.params.node);\n\n if (cellEditable) {\n return;\n }\n\n this.onExpandOrContract(event);\n };\n\n GroupCellRendererCtrl.prototype.onCellDblClicked = function (mouseEvent) {\n if (isStopPropagationForAgGrid(mouseEvent)) {\n return;\n } // we want to avoid acting on double click events on the expand / contract icon,\n // as that icons already has expand / collapse functionality on it. otherwise if\n // the icon was double clicked, we would get 'click', 'click', 'dblclick' which\n // is open->close->open, however double click should be open->close only.\n\n\n var targetIsExpandIcon = isElementInEventPath(this.eExpanded, mouseEvent) || isElementInEventPath(this.eContracted, mouseEvent);\n\n if (!targetIsExpandIcon) {\n this.onExpandOrContract(mouseEvent);\n }\n };\n\n __decorate$1_([Autowired('expressionService')], GroupCellRendererCtrl.prototype, \"expressionService\", void 0);\n\n __decorate$1_([Autowired('valueFormatterService')], GroupCellRendererCtrl.prototype, \"valueFormatterService\", void 0);\n\n __decorate$1_([Autowired('columnModel')], GroupCellRendererCtrl.prototype, \"columnModel\", void 0);\n\n __decorate$1_([Autowired('userComponentFactory')], GroupCellRendererCtrl.prototype, \"userComponentFactory\", void 0);\n\n __decorate$1_([Autowired('gridOptions')], GroupCellRendererCtrl.prototype, \"gridOptions\", void 0);\n\n __decorate$1_([Autowired(\"ctrlsService\")], GroupCellRendererCtrl.prototype, \"ctrlsService\", void 0);\n\n return GroupCellRendererCtrl;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2e = undefined && undefined.__extends || function () {\n var _extendStatics43 = function extendStatics(d, b) {\n _extendStatics43 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics43(d, b);\n };\n\n return function (d, b) {\n _extendStatics43(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar GroupCellRenderer =\n/** @class */\nfunction (_super) {\n __extends$2e(GroupCellRenderer, _super);\n\n function GroupCellRenderer() {\n return _super.call(this, GroupCellRenderer.TEMPLATE) || this;\n }\n\n GroupCellRenderer.prototype.init = function (params) {\n var _this = this;\n\n var compProxy = {\n setInnerRenderer: function setInnerRenderer(compDetails, valueToDisplay) {\n return _this.setRenderDetails(compDetails, valueToDisplay);\n },\n setChildCount: function setChildCount(count) {\n return _this.eChildCount.innerHTML = count;\n },\n addOrRemoveCssClass: function addOrRemoveCssClass(cssClass, value) {\n return _this.addOrRemoveCssClass(cssClass, value);\n },\n setContractedDisplayed: function setContractedDisplayed(expanded) {\n return setDisplayed(_this.eContracted, expanded);\n },\n setExpandedDisplayed: function setExpandedDisplayed(expanded) {\n return setDisplayed(_this.eExpanded, expanded);\n },\n setCheckboxVisible: function setCheckboxVisible(visible) {\n return _this.eCheckbox.classList.toggle('ag-invisible', !visible);\n }\n };\n var ctrl = this.createManagedBean(new GroupCellRendererCtrl());\n var fullWidth = !params.colDef;\n var eGui = this.getGui();\n ctrl.init(compProxy, eGui, this.eCheckbox, this.eExpanded, this.eContracted, this.constructor, params);\n\n if (fullWidth) {\n setAriaRole(eGui, 'gridcell');\n }\n };\n\n GroupCellRenderer.prototype.setRenderDetails = function (compDetails, valueToDisplay) {\n var _this = this;\n\n if (compDetails) {\n var componentPromise = compDetails.newAgStackInstance();\n\n if (!componentPromise) {\n return;\n }\n\n componentPromise.then(function (comp) {\n if (!comp) {\n return;\n }\n\n var destroyComp = function destroyComp() {\n return _this.context.destroyBean(comp);\n };\n\n if (_this.isAlive()) {\n _this.eValue.appendChild(comp.getGui());\n\n _this.addDestroyFunc(destroyComp);\n } else {\n destroyComp();\n }\n });\n } else {\n this.eValue.innerText = valueToDisplay;\n }\n }; // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n // so we need to have public here instead of private or protected\n\n\n GroupCellRenderer.prototype.destroy = function () {\n this.getContext().destroyBean(this.innerCellRenderer);\n\n _super.prototype.destroy.call(this);\n };\n\n GroupCellRenderer.prototype.refresh = function () {\n return false;\n };\n\n GroupCellRenderer.TEMPLATE = \"\\n \\n \\n \\n \\n \\n \";\n\n __decorate$1Z([RefSelector('eExpanded')], GroupCellRenderer.prototype, \"eExpanded\", void 0);\n\n __decorate$1Z([RefSelector('eContracted')], GroupCellRenderer.prototype, \"eContracted\", void 0);\n\n __decorate$1Z([RefSelector('eCheckbox')], GroupCellRenderer.prototype, \"eCheckbox\", void 0);\n\n __decorate$1Z([RefSelector('eValue')], GroupCellRenderer.prototype, \"eValue\", void 0);\n\n __decorate$1Z([RefSelector('eChildCount')], GroupCellRenderer.prototype, \"eChildCount\", void 0);\n\n return GroupCellRenderer;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2d = undefined && undefined.__extends || function () {\n var _extendStatics44 = function extendStatics(d, b) {\n _extendStatics44 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics44(d, b);\n };\n\n return function (d, b) {\n _extendStatics44(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar LoadingCellRenderer =\n/** @class */\nfunction (_super) {\n __extends$2d(LoadingCellRenderer, _super);\n\n function LoadingCellRenderer() {\n return _super.call(this, LoadingCellRenderer.TEMPLATE) || this;\n }\n\n LoadingCellRenderer.prototype.init = function (params) {\n params.node.failedLoad ? this.setupFailed() : this.setupLoading();\n };\n\n LoadingCellRenderer.prototype.setupFailed = function () {\n this.eLoadingText.innerText = 'ERR';\n };\n\n LoadingCellRenderer.prototype.setupLoading = function () {\n var eLoadingIcon = createIconNoSpan('groupLoading', this.gridOptionsWrapper, null);\n\n if (eLoadingIcon) {\n this.eLoadingIcon.appendChild(eLoadingIcon);\n }\n\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n this.eLoadingText.innerText = localeTextFunc('loadingOoo', 'Loading');\n };\n\n LoadingCellRenderer.prototype.refresh = function (params) {\n return false;\n }; // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n // so we need to override destroy() just to make the method public.\n\n\n LoadingCellRenderer.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n LoadingCellRenderer.TEMPLATE = \"
\\n \\n \\n
\";\n\n __decorate$1Y([RefSelector('eLoadingIcon')], LoadingCellRenderer.prototype, \"eLoadingIcon\", void 0);\n\n __decorate$1Y([RefSelector('eLoadingText')], LoadingCellRenderer.prototype, \"eLoadingText\", void 0);\n\n return LoadingCellRenderer;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2c = undefined && undefined.__extends || function () {\n var _extendStatics45 = function extendStatics(d, b) {\n _extendStatics45 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics45(d, b);\n };\n\n return function (d, b) {\n _extendStatics45(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar LoadingOverlayComponent$1 =\n/** @class */\nfunction (_super) {\n __extends$2c(LoadingOverlayComponent, _super);\n\n function LoadingOverlayComponent() {\n return _super.call(this) || this;\n } // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n // so we need to override destroy() just to make the method public.\n\n\n LoadingOverlayComponent.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n LoadingOverlayComponent.prototype.init = function (params) {\n var template = this.gridOptionsWrapper.getOverlayLoadingTemplate() ? this.gridOptionsWrapper.getOverlayLoadingTemplate() : LoadingOverlayComponent.DEFAULT_LOADING_OVERLAY_TEMPLATE;\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n var localisedTemplate = template.replace('[LOADING...]', localeTextFunc('loadingOoo', 'Loading...'));\n this.setTemplate(localisedTemplate);\n };\n\n LoadingOverlayComponent.DEFAULT_LOADING_OVERLAY_TEMPLATE = '[LOADING...]';\n return LoadingOverlayComponent;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2b = undefined && undefined.__extends || function () {\n var _extendStatics46 = function extendStatics(d, b) {\n _extendStatics46 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics46(d, b);\n };\n\n return function (d, b) {\n _extendStatics46(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar NoRowsOverlayComponent$1 =\n/** @class */\nfunction (_super) {\n __extends$2b(NoRowsOverlayComponent, _super);\n\n function NoRowsOverlayComponent() {\n return _super.call(this) || this;\n } // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n // so we need to override destroy() just to make the method public.\n\n\n NoRowsOverlayComponent.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n NoRowsOverlayComponent.prototype.init = function (params) {\n var template = this.gridOptionsWrapper.getOverlayNoRowsTemplate() ? this.gridOptionsWrapper.getOverlayNoRowsTemplate() : NoRowsOverlayComponent.DEFAULT_NO_ROWS_TEMPLATE;\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n var localisedTemplate = template.replace('[NO_ROWS_TO_SHOW]', localeTextFunc('noRowsToShow', 'No Rows To Show'));\n this.setTemplate(localisedTemplate);\n };\n\n NoRowsOverlayComponent.DEFAULT_NO_ROWS_TEMPLATE = '[NO_ROWS_TO_SHOW]';\n return NoRowsOverlayComponent;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$2a = undefined && undefined.__extends || function () {\n var _extendStatics47 = function extendStatics(d, b) {\n _extendStatics47 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics47(d, b);\n };\n\n return function (d, b) {\n _extendStatics47(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar TooltipComponent$1 =\n/** @class */\nfunction (_super) {\n __extends$2a(TooltipComponent, _super);\n\n function TooltipComponent() {\n return _super.call(this,\n /* html */\n \"
\") || this;\n } // will need to type params\n\n\n TooltipComponent.prototype.init = function (params) {\n var value = params.value;\n this.getGui().innerHTML = escapeString(value);\n };\n\n return TooltipComponent;\n}(PopupComponent);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$29 = undefined && undefined.__extends || function () {\n var _extendStatics48 = function extendStatics(d, b) {\n _extendStatics48 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics48(d, b);\n };\n\n return function (d, b) {\n _extendStatics48(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1X = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar UserComponentRegistry =\n/** @class */\nfunction (_super) {\n __extends$29(UserComponentRegistry, _super);\n\n function UserComponentRegistry() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.agGridDefaults = {\n //date\n agDateInput: DefaultDateComponent,\n //header\n agColumnHeader: HeaderComp,\n agColumnGroupHeader: HeaderGroupComp,\n agSortIndicator: SortIndicatorComp,\n //floating filters\n agTextColumnFloatingFilter: TextFloatingFilter,\n agNumberColumnFloatingFilter: NumberFloatingFilter,\n agDateColumnFloatingFilter: DateFloatingFilter,\n agReadOnlyFloatingFilter: ReadOnlyFloatingFilter,\n // renderers\n agAnimateShowChangeCellRenderer: AnimateShowChangeCellRenderer,\n agAnimateSlideCellRenderer: AnimateSlideCellRenderer,\n agGroupCellRenderer: GroupCellRenderer,\n agGroupRowRenderer: GroupCellRenderer,\n agLoadingCellRenderer: LoadingCellRenderer,\n //editors\n agCellEditor: TextCellEditor,\n agTextCellEditor: TextCellEditor,\n agSelectCellEditor: SelectCellEditor,\n agPopupTextCellEditor: PopupTextCellEditor,\n agPopupSelectCellEditor: PopupSelectCellEditor,\n agLargeTextCellEditor: LargeTextCellEditor,\n //filter\n agTextColumnFilter: TextFilter,\n agNumberColumnFilter: NumberFilter,\n agDateColumnFilter: DateFilter,\n //overlays\n agLoadingOverlay: LoadingOverlayComponent$1,\n agNoRowsOverlay: NoRowsOverlayComponent$1,\n // tooltips\n agTooltipComponent: TooltipComponent$1\n };\n _this.agDeprecatedNames = {\n set: {\n newComponentName: 'agSetColumnFilter',\n propertyHolder: 'filter'\n },\n text: {\n newComponentName: 'agTextColumnFilter',\n propertyHolder: 'filter'\n },\n number: {\n newComponentName: 'agNumberColumnFilter',\n propertyHolder: 'filter'\n },\n date: {\n newComponentName: 'agDateColumnFilter',\n propertyHolder: 'filter'\n },\n group: {\n newComponentName: 'agGroupCellRenderer',\n propertyHolder: 'cellRenderer'\n },\n animateShowChange: {\n newComponentName: 'agAnimateShowChangeCellRenderer',\n propertyHolder: 'cellRenderer'\n },\n animateSlide: {\n newComponentName: 'agAnimateSlideCellRenderer',\n propertyHolder: 'cellRenderer'\n },\n select: {\n newComponentName: 'agSelectCellEditor',\n propertyHolder: 'cellEditor'\n },\n largeText: {\n newComponentName: 'agLargeTextCellEditor',\n propertyHolder: 'cellEditor'\n },\n popupSelect: {\n newComponentName: 'agPopupSelectCellEditor',\n propertyHolder: 'cellEditor'\n },\n popupText: {\n newComponentName: 'agPopupTextCellEditor',\n propertyHolder: 'cellEditor'\n },\n richSelect: {\n newComponentName: 'agRichSelectCellEditor',\n propertyHolder: 'cellEditor'\n },\n headerComponent: {\n newComponentName: 'agColumnHeader',\n propertyHolder: 'headerComponent'\n }\n };\n _this.jsComps = {};\n _this.fwComps = {};\n return _this;\n }\n\n UserComponentRegistry.prototype.init = function () {\n var _this = this;\n\n if (this.gridOptions.components != null) {\n iterateObject(this.gridOptions.components, function (key, component) {\n return _this.registerJsComponent(key, component);\n });\n }\n\n if (this.gridOptions.frameworkComponents != null) {\n iterateObject(this.gridOptions.frameworkComponents, function (key, component) {\n return _this.registerFwComponent(key, component);\n });\n }\n };\n\n UserComponentRegistry.prototype.registerDefaultComponent = function (rawName, component) {\n var name = this.translateIfDeprecated(rawName);\n\n if (this.agGridDefaults[name]) {\n console.error(\"Trying to overwrite a default component. You should call registerComponent\");\n return;\n }\n\n this.agGridDefaults[name] = component;\n };\n\n UserComponentRegistry.prototype.registerJsComponent = function (rawName, component) {\n var name = this.translateIfDeprecated(rawName);\n\n if (this.fwComps[name]) {\n console.error(\"Trying to register a component that you have already registered for frameworks: \" + name);\n return;\n }\n\n this.jsComps[name] = component;\n };\n /**\n * B the business interface (ie IHeader)\n * A the agGridComponent interface (ie IHeaderComp). The final object acceptable by ag-grid\n */\n\n\n UserComponentRegistry.prototype.registerFwComponent = function (rawName, component) {\n var warningMessage = \"AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.\";\n doOnce(function () {\n return console.warn(warningMessage);\n }, \"UserComponentRegistry.frameworkComponentsDeprecated\");\n var name = this.translateIfDeprecated(rawName);\n this.fwComps[name] = component;\n };\n\n UserComponentRegistry.prototype.retrieve = function (rawName) {\n var name = this.translateIfDeprecated(rawName);\n\n var createResult = function createResult(component, componentFromFramework) {\n return {\n componentFromFramework: componentFromFramework,\n component: component\n };\n }; // FrameworkOverrides.frameworkComponent() is used in two locations:\n // 1) for Vue, user provided components get registered via a framework specific way.\n // 2) for React, it's how the React UI provides alternative default components (eg GroupCellRenderer and DetailCellRenderer)\n\n\n var registeredViaFrameworkComp = this.getFrameworkOverrides().frameworkComponent(name, this.gridOptions.components);\n\n if (registeredViaFrameworkComp != null) {\n return createResult(registeredViaFrameworkComp, true);\n }\n\n var frameworkComponent = this.fwComps[name];\n\n if (frameworkComponent) {\n return createResult(frameworkComponent, true);\n }\n\n var jsComponent = this.jsComps[name];\n\n if (jsComponent) {\n var isFwkComp = this.getFrameworkOverrides().isFrameworkComponent(jsComponent);\n return createResult(jsComponent, isFwkComp);\n }\n\n var defaultComponent = this.agGridDefaults[name];\n\n if (defaultComponent) {\n return createResult(defaultComponent, false);\n }\n\n if (Object.keys(this.agGridDefaults).indexOf(name) < 0) {\n console.warn(\"AG Grid: Looking for component [\" + name + \"] but it wasn't found.\");\n }\n\n return null;\n };\n\n UserComponentRegistry.prototype.translateIfDeprecated = function (raw) {\n var deprecatedInfo = this.agDeprecatedNames[raw];\n\n if (deprecatedInfo != null) {\n doOnce(function () {\n console.warn(\"ag-grid. Since v15.0 component names have been renamed to be namespaced. You should rename \" + deprecatedInfo.propertyHolder + \":\" + raw + \" to \" + deprecatedInfo.propertyHolder + \":\" + deprecatedInfo.newComponentName);\n }, 'DEPRECATE_COMPONENT_' + raw);\n return deprecatedInfo.newComponentName;\n }\n\n return raw;\n };\n\n __decorate$1X([Autowired('gridOptions')], UserComponentRegistry.prototype, \"gridOptions\", void 0);\n\n __decorate$1X([Autowired('agComponentUtils')], UserComponentRegistry.prototype, \"agComponentUtils\", void 0);\n\n __decorate$1X([PostConstruct], UserComponentRegistry.prototype, \"init\", null);\n\n UserComponentRegistry = __decorate$1X([Bean('userComponentRegistry')], UserComponentRegistry);\n return UserComponentRegistry;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar DateComponent = {\n propertyName: 'dateComponent',\n cellRenderer: false\n};\nvar HeaderComponent = {\n propertyName: 'headerComponent',\n cellRenderer: false\n};\nvar HeaderGroupComponent = {\n propertyName: 'headerGroupComponent',\n cellRenderer: false\n};\nvar CellRendererComponent = {\n propertyName: 'cellRenderer',\n cellRenderer: true\n};\nvar CellEditorComponent = {\n propertyName: 'cellEditor',\n cellRenderer: false\n};\nvar InnerRendererComponent = {\n propertyName: 'innerRenderer',\n cellRenderer: true\n};\nvar LoadingOverlayComponent = {\n propertyName: 'loadingOverlayComponent',\n cellRenderer: false\n};\nvar NoRowsOverlayComponent = {\n propertyName: 'noRowsOverlayComponent',\n cellRenderer: false\n};\nvar TooltipComponent = {\n propertyName: 'tooltipComponent',\n cellRenderer: false\n};\nvar FilterComponent = {\n propertyName: 'filter',\n cellRenderer: false\n};\nvar FloatingFilterComponent = {\n propertyName: 'floatingFilterComponent',\n cellRenderer: false\n};\nvar ToolPanelComponent = {\n propertyName: 'toolPanel',\n cellRenderer: false\n};\nvar StatusPanelComponent = {\n propertyName: 'statusPanel',\n cellRenderer: false\n};\nvar FullWidth = {\n propertyName: 'fullWidthCellRenderer',\n cellRenderer: true\n};\nvar FullWidthLoading = {\n propertyName: 'loadingCellRenderer',\n cellRenderer: true\n};\nvar FullWidthGroup = {\n propertyName: 'groupRowRenderer',\n cellRenderer: true\n};\nvar FullWidthDetail = {\n propertyName: 'detailCellRenderer',\n cellRenderer: true\n};\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\nvar FloatingFilterMapper =\n/** @class */\nfunction () {\n function FloatingFilterMapper() {}\n\n FloatingFilterMapper.getFloatingFilterType = function (filterType) {\n return this.filterToFloatingFilterMapping[filterType];\n };\n\n FloatingFilterMapper.filterToFloatingFilterMapping = {\n set: 'agSetColumnFloatingFilter',\n agSetColumnFilter: 'agSetColumnFloatingFilter',\n multi: 'agMultiColumnFloatingFilter',\n agMultiColumnFilter: 'agMultiColumnFloatingFilter',\n number: 'agNumberColumnFloatingFilter',\n agNumberColumnFilter: 'agNumberColumnFloatingFilter',\n date: 'agDateColumnFloatingFilter',\n agDateColumnFilter: 'agDateColumnFloatingFilter',\n text: 'agTextColumnFloatingFilter',\n agTextColumnFilter: 'agTextColumnFloatingFilter'\n };\n return FloatingFilterMapper;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$28 = undefined && undefined.__extends || function () {\n var _extendStatics49 = function extendStatics(d, b) {\n _extendStatics49 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics49(d, b);\n };\n\n return function (d, b) {\n _extendStatics49(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1W = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar UserComponentFactory =\n/** @class */\nfunction (_super) {\n __extends$28(UserComponentFactory, _super);\n\n function UserComponentFactory() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n UserComponentFactory.prototype.getHeaderCompDetails = function (colDef, params) {\n return this.getCompDetails(colDef, HeaderComponent, 'agColumnHeader', params);\n };\n\n UserComponentFactory.prototype.getHeaderGroupCompDetails = function (params) {\n var colGroupDef = params.columnGroup.getColGroupDef();\n return this.getCompDetails(colGroupDef, HeaderGroupComponent, 'agColumnGroupHeader', params);\n }; // this one is unusual, as it can be LoadingCellRenderer, DetailCellRenderer, FullWidthCellRenderer or GroupRowRenderer.\n // so we have to pass the type in.\n\n\n UserComponentFactory.prototype.getFullWidthCellRendererDetails = function (params) {\n return this.getCompDetails(this.gridOptions, FullWidth, null, params, true);\n };\n\n UserComponentFactory.prototype.getFullWidthLoadingCellRendererDetails = function (params) {\n return this.getCompDetails(this.gridOptions, FullWidthLoading, 'agLoadingCellRenderer', params, true);\n };\n\n UserComponentFactory.prototype.getFullWidthGroupCellRendererDetails = function (params) {\n return this.getCompDetails(this.gridOptions, FullWidthGroup, 'agGroupRowRenderer', params, true);\n };\n\n UserComponentFactory.prototype.getFullWidthDetailCellRendererDetails = function (params) {\n return this.getCompDetails(this.gridOptions, FullWidthDetail, 'agDetailCellRenderer', params, true);\n }; // CELL RENDERER\n\n\n UserComponentFactory.prototype.getInnerRendererDetails = function (def, params) {\n return this.getCompDetails(def, InnerRendererComponent, null, params);\n };\n\n UserComponentFactory.prototype.getFullWidthGroupRowInnerCellRenderer = function (def, params) {\n return this.getCompDetails(def, InnerRendererComponent, null, params);\n };\n\n UserComponentFactory.prototype.getCellRendererDetails = function (def, params) {\n return this.getCompDetails(def, CellRendererComponent, null, params);\n }; // CELL EDITOR\n\n\n UserComponentFactory.prototype.getCellEditorDetails = function (def, params) {\n return this.getCompDetails(def, CellEditorComponent, 'agCellEditor', params, true);\n }; // FILTER\n\n\n UserComponentFactory.prototype.getFilterDetails = function (def, params, defaultFilter) {\n return this.getCompDetails(def, FilterComponent, defaultFilter, params, true);\n };\n\n UserComponentFactory.prototype.getDateCompDetails = function (params) {\n return this.getCompDetails(this.gridOptions, DateComponent, 'agDateInput', params, true);\n };\n\n UserComponentFactory.prototype.getLoadingOverlayCompDetails = function (params) {\n return this.getCompDetails(this.gridOptions, LoadingOverlayComponent, 'agLoadingOverlay', params, true);\n };\n\n UserComponentFactory.prototype.getNoRowsOverlayCompDetails = function (params) {\n return this.getCompDetails(this.gridOptions, NoRowsOverlayComponent, 'agNoRowsOverlay', params, true);\n };\n\n UserComponentFactory.prototype.getTooltipCompDetails = function (params) {\n return this.getCompDetails(params.colDef, TooltipComponent, 'agTooltipComponent', params, true);\n };\n\n UserComponentFactory.prototype.getSetFilterCellRendererDetails = function (def, params) {\n return this.getCompDetails(def, CellRendererComponent, null, params);\n };\n\n UserComponentFactory.prototype.getFloatingFilterCompDetails = function (def, params, defaultFloatingFilter) {\n return this.getCompDetails(def, FloatingFilterComponent, defaultFloatingFilter, params);\n };\n\n UserComponentFactory.prototype.getToolPanelCompDetails = function (toolPanelDef, params) {\n return this.getCompDetails(toolPanelDef, ToolPanelComponent, null, params, true);\n };\n\n UserComponentFactory.prototype.getStatusPanelCompDetails = function (def, params) {\n return this.getCompDetails(def, StatusPanelComponent, null, params, true);\n };\n\n UserComponentFactory.prototype.getCompDetails = function (defObject, type, defaultName, params, mandatory) {\n var _this = this;\n\n if (mandatory === void 0) {\n mandatory = false;\n }\n\n var propertyName = type.propertyName,\n cellRenderer = type.cellRenderer;\n\n var _a = this.getCompKeys(defObject, type, params),\n compName = _a.compName,\n jsComp = _a.jsComp,\n fwComp = _a.fwComp,\n paramsFromSelector = _a.paramsFromSelector,\n popupFromSelector = _a.popupFromSelector,\n popupPositionFromSelector = _a.popupPositionFromSelector;\n\n var lookupFromRegistry = function lookupFromRegistry(key) {\n var item = _this.userComponentRegistry.retrieve(key);\n\n if (item) {\n jsComp = !item.componentFromFramework ? item.component : undefined;\n fwComp = item.componentFromFramework ? item.component : undefined;\n }\n }; // if compOption is a string, means we need to look the item up\n\n\n if (compName != null) {\n lookupFromRegistry(compName);\n } // if lookup brought nothing back, and we have a default, lookup the default\n\n\n if (jsComp == null && fwComp == null && defaultName != null) {\n lookupFromRegistry(defaultName);\n } // if we have a comp option, and it's a function, replace it with an object equivalent adaptor\n\n\n if (jsComp && cellRenderer && !this.agComponentUtils.doesImplementIComponent(jsComp)) {\n jsComp = this.agComponentUtils.adaptFunction(propertyName, jsComp);\n }\n\n if (!jsComp && !fwComp) {\n if (mandatory) {\n console.error(\"Could not find component \" + compName + \", did you forget to configure this component?\");\n }\n\n return;\n }\n\n var paramsMerged = this.mergeParamsWithApplicationProvidedParams(defObject, type, params, paramsFromSelector);\n var componentFromFramework = jsComp == null;\n var componentClass = jsComp ? jsComp : fwComp;\n return {\n componentFromFramework: componentFromFramework,\n componentClass: componentClass,\n params: paramsMerged,\n type: type,\n popupFromSelector: popupFromSelector,\n popupPositionFromSelector: popupPositionFromSelector,\n newAgStackInstance: function newAgStackInstance() {\n return _this.newAgStackInstance(componentClass, componentFromFramework, paramsMerged, type);\n }\n };\n };\n\n UserComponentFactory.prototype.getCompKeys = function (defObject, type, params) {\n var _this = this;\n\n var propertyName = type.propertyName;\n var compName;\n var jsComp;\n var fwComp;\n var paramsFromSelector;\n var popupFromSelector;\n var popupPositionFromSelector; // there are two types of js comps, class based and func based. we can only check for\n // class based, by checking if getGui() exists. no way to differentiate js func based vs eg react func based\n // const isJsClassComp = (comp: any) => this.agComponentUtils.doesImplementIComponent(comp);\n // const fwActive = this.frameworkComponentWrapper != null;\n // pull from defObject if available\n\n if (defObject) {\n var defObjectAny = defObject; // if selector, use this\n\n var selectorFunc = defObjectAny[propertyName + 'Selector'];\n var selectorRes = selectorFunc ? selectorFunc(params) : null;\n\n var assignComp = function assignComp(providedJsComp, providedFwComp) {\n var xxxFrameworkDeprecatedWarn = function xxxFrameworkDeprecatedWarn() {\n var warningMessage = \"AG Grid: As of v27, the property \" + propertyName + \"Framework is deprecated. The property \" + propertyName + \" can now be used for JavaScript AND Framework Components.\";\n doOnce(function () {\n return console.warn(warningMessage);\n }, \"UserComponentFactory.\" + propertyName + \"FrameworkDeprecated\");\n };\n\n if (typeof providedJsComp === 'string') {\n compName = providedJsComp;\n } else if (typeof providedFwComp === 'string') {\n xxxFrameworkDeprecatedWarn();\n compName = providedFwComp; // comp===true for filters, which means use the default comp\n } else if (providedJsComp != null && providedJsComp !== true) {\n var isFwkComp = _this.getFrameworkOverrides().isFrameworkComponent(providedJsComp);\n\n if (isFwkComp) {\n fwComp = providedJsComp;\n } else {\n jsComp = providedJsComp;\n }\n } else if (providedFwComp != null) {\n xxxFrameworkDeprecatedWarn();\n fwComp = providedFwComp;\n }\n };\n\n if (selectorRes) {\n if (selectorRes.frameworkComponent != null) {\n var warningMessage_1 = \"AG Grid: As of v27, the return for \" + propertyName + \"Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.\";\n doOnce(function () {\n return console.warn(warningMessage_1);\n }, \"UserComponentFactory.\" + propertyName + \"FrameworkSelectorDeprecated\");\n assignComp(selectorRes.frameworkComponent, undefined);\n } else {\n assignComp(selectorRes.component, undefined);\n }\n\n paramsFromSelector = selectorRes.params;\n popupFromSelector = selectorRes.popup;\n popupPositionFromSelector = selectorRes.popupPosition;\n } else {\n // if no selector, or result of selector is empty, take from defObject\n assignComp(defObjectAny[propertyName], defObjectAny[propertyName + 'Framework']);\n }\n }\n\n return {\n compName: compName,\n jsComp: jsComp,\n fwComp: fwComp,\n paramsFromSelector: paramsFromSelector,\n popupFromSelector: popupFromSelector,\n popupPositionFromSelector: popupPositionFromSelector\n };\n };\n\n UserComponentFactory.prototype.newAgStackInstance = function (ComponentClass, componentFromFramework, params, type) {\n var propertyName = type.propertyName;\n var jsComponent = !componentFromFramework; // using javascript component\n\n var instance;\n\n if (jsComponent) {\n instance = new ComponentClass();\n } else {\n // Using framework component\n var thisComponentConfig = this.componentMetadataProvider.retrieve(propertyName);\n instance = this.frameworkComponentWrapper.wrap(ComponentClass, thisComponentConfig.mandatoryMethodList, thisComponentConfig.optionalMethodList, type);\n }\n\n var deferredInit = this.initComponent(instance, params);\n\n if (deferredInit == null) {\n return AgPromise.resolve(instance);\n }\n\n return deferredInit.then(function () {\n return instance;\n });\n }; // used by Floating Filter\n\n\n UserComponentFactory.prototype.mergeParamsWithApplicationProvidedParams = function (defObject, type, paramsFromGrid, paramsFromSelector) {\n if (paramsFromSelector === void 0) {\n paramsFromSelector = null;\n }\n\n var params = {\n context: this.gridOptionsWrapper.getContext(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n api: this.gridOptionsWrapper.getApi()\n };\n mergeDeep(params, paramsFromGrid); // pull user params from either the old prop name and new prop name\n // eg either cellRendererParams and cellCompParams\n\n var defObjectAny = defObject;\n var userParams = defObjectAny && defObjectAny[type.propertyName + 'Params'];\n\n if (typeof userParams === 'function') {\n var userParamsFromFunc = userParams(paramsFromGrid);\n mergeDeep(params, userParamsFromFunc);\n } else if (typeof userParams === 'object') {\n mergeDeep(params, userParams);\n }\n\n mergeDeep(params, paramsFromSelector);\n return params;\n };\n\n UserComponentFactory.prototype.initComponent = function (component, params) {\n this.context.createBean(component);\n\n if (component.init == null) {\n return;\n }\n\n return component.init(params);\n };\n\n UserComponentFactory.prototype.getDefaultFloatingFilterType = function (def) {\n if (def == null) {\n return null;\n }\n\n var defaultFloatingFilterType = null;\n\n var _a = this.getCompKeys(def, FilterComponent),\n compName = _a.compName,\n jsComp = _a.jsComp,\n fwComp = _a.fwComp;\n\n if (compName) {\n // will be undefined if not in the map\n defaultFloatingFilterType = FloatingFilterMapper.getFloatingFilterType(compName);\n } else {\n var usingDefaultFilter = jsComp == null && fwComp == null && def.filter === true;\n\n if (usingDefaultFilter) {\n var setFilterModuleLoaded = ModuleRegistry.isRegistered(ModuleNames.SetFilterModule);\n defaultFloatingFilterType = setFilterModuleLoaded ? 'agSetColumnFloatingFilter' : 'agTextColumnFloatingFilter';\n }\n }\n\n return defaultFloatingFilterType;\n };\n\n __decorate$1W([Autowired('gridOptions')], UserComponentFactory.prototype, \"gridOptions\", void 0);\n\n __decorate$1W([Autowired('agComponentUtils')], UserComponentFactory.prototype, \"agComponentUtils\", void 0);\n\n __decorate$1W([Autowired('componentMetadataProvider')], UserComponentFactory.prototype, \"componentMetadataProvider\", void 0);\n\n __decorate$1W([Autowired('userComponentRegistry')], UserComponentFactory.prototype, \"userComponentRegistry\", void 0);\n\n __decorate$1W([Optional('frameworkComponentWrapper')], UserComponentFactory.prototype, \"frameworkComponentWrapper\", void 0);\n\n UserComponentFactory = __decorate$1W([Bean('userComponentFactory')], UserComponentFactory);\n return UserComponentFactory;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n// Excel Export\n\n\nvar ExcelFactoryMode;\n\n(function (ExcelFactoryMode) {\n ExcelFactoryMode[ExcelFactoryMode[\"SINGLE_SHEET\"] = 0] = \"SINGLE_SHEET\";\n ExcelFactoryMode[ExcelFactoryMode[\"MULTI_SHEET\"] = 1] = \"MULTI_SHEET\";\n})(ExcelFactoryMode || (ExcelFactoryMode = {}));\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$27 = undefined && undefined.__extends || function () {\n var _extendStatics50 = function extendStatics(d, b) {\n _extendStatics50 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics50(d, b);\n };\n\n return function (d, b) {\n _extendStatics50(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1V = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n/** Adds drag listening onto an element. In AG Grid this is used twice, first is resizing columns,\n * second is moving the columns and column groups around (ie the 'drag' part of Drag and Drop. */\n\n\nvar DragService =\n/** @class */\nfunction (_super) {\n __extends$27(DragService, _super);\n\n function DragService() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.dragEndFunctions = [];\n _this.dragSources = [];\n return _this;\n }\n\n DragService.prototype.init = function () {\n this.logger = this.loggerFactory.create('DragService');\n };\n\n DragService.prototype.removeAllListeners = function () {\n this.dragSources.forEach(this.removeListener.bind(this));\n this.dragSources.length = 0;\n };\n\n DragService.prototype.removeListener = function (dragSourceAndListener) {\n var element = dragSourceAndListener.dragSource.eElement;\n var mouseDownListener = dragSourceAndListener.mouseDownListener;\n element.removeEventListener('mousedown', mouseDownListener); // remove touch listener only if it exists\n\n if (dragSourceAndListener.touchEnabled) {\n var touchStartListener = dragSourceAndListener.touchStartListener;\n element.removeEventListener('touchstart', touchStartListener, {\n passive: true\n });\n }\n };\n\n DragService.prototype.removeDragSource = function (params) {\n var dragSourceAndListener = this.dragSources.find(function (item) {\n return item.dragSource === params;\n });\n\n if (!dragSourceAndListener) {\n return;\n }\n\n this.removeListener(dragSourceAndListener);\n removeFromArray(this.dragSources, dragSourceAndListener);\n };\n\n DragService.prototype.isDragging = function () {\n return this.dragging;\n };\n\n DragService.prototype.addDragSource = function (params, includeTouch) {\n var _this = this;\n\n if (includeTouch === void 0) {\n includeTouch = false;\n }\n\n var mouseListener = this.onMouseDown.bind(this, params);\n params.eElement.addEventListener('mousedown', mouseListener);\n var touchListener = null;\n var suppressTouch = this.gridOptionsWrapper.isSuppressTouch();\n\n if (includeTouch && !suppressTouch) {\n touchListener = function touchListener(touchEvent) {\n if (touchEvent.cancelable) {\n touchEvent.preventDefault();\n }\n\n _this.onTouchStart(params, touchEvent);\n }; // we set passive=false, as we want to prevent default on this event\n\n\n params.eElement.addEventListener('touchstart', touchListener, {\n passive: false\n });\n }\n\n this.dragSources.push({\n dragSource: params,\n mouseDownListener: mouseListener,\n touchStartListener: touchListener,\n touchEnabled: includeTouch\n });\n }; // gets called whenever mouse down on any drag source\n\n\n DragService.prototype.onTouchStart = function (params, touchEvent) {\n var _this = this;\n\n this.currentDragParams = params;\n this.dragging = false;\n var touch = touchEvent.touches[0];\n this.touchLastTime = touch;\n this.touchStart = touch;\n\n var touchMoveEvent = function touchMoveEvent(e) {\n return _this.onTouchMove(e, params.eElement);\n };\n\n var touchEndEvent = function touchEndEvent(e) {\n return _this.onTouchUp(e, params.eElement);\n };\n\n var documentTouchMove = function documentTouchMove(e) {\n if (e.cancelable) {\n e.preventDefault();\n }\n };\n\n var target = touchEvent.target;\n var events = [// Prevents the page document from moving while we are dragging items around.\n // preventDefault needs to be called in the touchmove listener and never inside the\n // touchstart, because using touchstart causes the click event to be cancelled on touch devices.\n {\n target: document,\n type: 'touchmove',\n listener: documentTouchMove,\n options: {\n passive: false\n }\n }, {\n target: target,\n type: 'touchmove',\n listener: touchMoveEvent,\n options: {\n passive: true\n }\n }, {\n target: target,\n type: 'touchend',\n listener: touchEndEvent,\n options: {\n passive: true\n }\n }, {\n target: target,\n type: 'touchcancel',\n listener: touchEndEvent,\n options: {\n passive: true\n }\n }]; // temporally add these listeners, for the duration of the drag\n\n this.addTemporaryEvents(events); // see if we want to start dragging straight away\n\n if (params.dragStartPixels === 0) {\n this.onCommonMove(touch, this.touchStart, params.eElement);\n }\n }; // gets called whenever mouse down on any drag source\n\n\n DragService.prototype.onMouseDown = function (params, mouseEvent) {\n var _this = this;\n\n var e = mouseEvent;\n\n if (params.skipMouseEvent && params.skipMouseEvent(mouseEvent)) {\n return;\n } // if there are two elements with parent / child relationship, and both are draggable,\n // when we drag the child, we should NOT drag the parent. an example of this is row moving\n // and range selection - row moving should get preference when use drags the rowDrag component.\n\n\n if (e._alreadyProcessedByDragService) {\n return;\n }\n\n e._alreadyProcessedByDragService = true; // only interested in left button clicks\n\n if (mouseEvent.button !== 0) {\n return;\n }\n\n this.currentDragParams = params;\n this.dragging = false;\n this.mouseStartEvent = mouseEvent;\n var eDocument = this.gridOptionsWrapper.getDocument();\n\n var mouseMoveEvent = function mouseMoveEvent(event) {\n return _this.onMouseMove(event, params.eElement);\n };\n\n var mouseUpEvent = function mouseUpEvent(event) {\n return _this.onMouseUp(event, params.eElement);\n };\n\n var contextEvent = function contextEvent(event) {\n return event.preventDefault();\n };\n\n var target = eDocument;\n var events = [{\n target: target,\n type: 'mousemove',\n listener: mouseMoveEvent\n }, {\n target: target,\n type: 'mouseup',\n listener: mouseUpEvent\n }, {\n target: target,\n type: 'contextmenu',\n listener: contextEvent\n }]; // temporally add these listeners, for the duration of the drag\n\n this.addTemporaryEvents(events); //see if we want to start dragging straight away\n\n if (params.dragStartPixels === 0) {\n this.onMouseMove(mouseEvent, params.eElement);\n }\n };\n\n DragService.prototype.addTemporaryEvents = function (events) {\n events.forEach(function (currentEvent) {\n var target = currentEvent.target,\n type = currentEvent.type,\n listener = currentEvent.listener,\n options = currentEvent.options;\n target.addEventListener(type, listener, options);\n });\n this.dragEndFunctions.push(function () {\n events.forEach(function (currentEvent) {\n var target = currentEvent.target,\n type = currentEvent.type,\n listener = currentEvent.listener,\n options = currentEvent.options;\n target.removeEventListener(type, listener, options);\n });\n });\n }; // returns true if the event is close to the original event by X pixels either vertically or horizontally.\n // we only start dragging after X pixels so this allows us to know if we should start dragging yet.\n\n\n DragService.prototype.isEventNearStartEvent = function (currentEvent, startEvent) {\n // by default, we wait 4 pixels before starting the drag\n var dragStartPixels = this.currentDragParams.dragStartPixels;\n var requiredPixelDiff = exists(dragStartPixels) ? dragStartPixels : 4;\n return areEventsNear(currentEvent, startEvent, requiredPixelDiff);\n };\n\n DragService.prototype.getFirstActiveTouch = function (touchList) {\n for (var i = 0; i < touchList.length; i++) {\n if (touchList[i].identifier === this.touchStart.identifier) {\n return touchList[i];\n }\n }\n\n return null;\n };\n\n DragService.prototype.onCommonMove = function (currentEvent, startEvent, el) {\n if (!this.dragging) {\n // if mouse hasn't travelled from the start position enough, do nothing\n if (!this.dragging && this.isEventNearStartEvent(currentEvent, startEvent)) {\n return;\n }\n\n this.dragging = true;\n var event_1 = {\n type: Events.EVENT_DRAG_STARTED,\n target: el\n };\n this.eventService.dispatchEvent(event_1);\n this.currentDragParams.onDragStart(startEvent); // we need ONE drag action at the startEvent, so that we are guaranteed the drop target\n // at the start gets notified. this is because the drag can start outside of the element\n // that started it, as the mouse is allowed drag away from the mouse down before it's\n // considered a drag (the isEventNearStartEvent() above). if we didn't do this, then\n // it would be possible to click a column by the edge, then drag outside of the drop zone\n // in less than 4 pixels and the drag officially starts outside of the header but the header\n // wouldn't be notified of the dragging.\n\n this.currentDragParams.onDragging(startEvent);\n }\n\n this.currentDragParams.onDragging(currentEvent);\n };\n\n DragService.prototype.onTouchMove = function (touchEvent, el) {\n var touch = this.getFirstActiveTouch(touchEvent.touches);\n\n if (!touch) {\n return;\n } // this.___statusPanel.setInfoText(Math.random() + ' onTouchMove preventDefault stopPropagation');\n\n\n this.onCommonMove(touch, this.touchStart, el);\n }; // only gets called after a mouse down - as this is only added after mouseDown\n // and is removed when mouseUp happens\n\n\n DragService.prototype.onMouseMove = function (mouseEvent, el) {\n // when `isEnableCellTextSelect` is `true`, we need to preventDefault on mouseMove\n // to avoid the grid text being selected while dragging components.\n // Note: Safari also has an issue, where `user-select: none` is not being respected.\n if ((this.gridOptionsWrapper.isEnableCellTextSelect() || isBrowserSafari()) && // The event type can be `mousedown` when `dragStartPixels=0`\n // we should only preventDefault on `mousemove`.\n mouseEvent.type === 'mousemove' && mouseEvent.cancelable && this.mouseEventService.isEventFromThisGrid(mouseEvent) && // we should not prevent mouseMove when above a form field\n // as that would prevent the text in the field from being selected\n !this.isOverFormFieldElement(mouseEvent)) {\n mouseEvent.preventDefault();\n }\n\n this.onCommonMove(mouseEvent, this.mouseStartEvent, el);\n };\n\n DragService.prototype.isOverFormFieldElement = function (mouseEvent) {\n var _a, _b;\n\n var el = mouseEvent.target;\n var tagName = (_a = el) === null || _a === void 0 ? void 0 : _a.tagName.toLocaleLowerCase();\n return !!((_b = tagName) === null || _b === void 0 ? void 0 : _b.match('^a$|textarea|input|select|button'));\n };\n\n DragService.prototype.onTouchUp = function (touchEvent, el) {\n var touch = this.getFirstActiveTouch(touchEvent.changedTouches); // i haven't worked this out yet, but there is no matching touch\n // when we get the touch up event. to get around this, we swap in\n // the last touch. this is a hack to 'get it working' while we\n // figure out what's going on, why we are not getting a touch in\n // current event.\n\n if (!touch) {\n touch = this.touchLastTime;\n } // if mouse was left up before we started to move, then this is a tap.\n // we check this before onUpCommon as onUpCommon resets the dragging\n // let tap = !this.dragging;\n // let tapTarget = this.currentDragParams.eElement;\n\n\n this.onUpCommon(touch, el); // if tap, tell user\n // console.log(`${Math.random()} tap = ${tap}`);\n // if (tap) {\n // tapTarget.click();\n // }\n };\n\n DragService.prototype.onMouseUp = function (mouseEvent, el) {\n this.onUpCommon(mouseEvent, el);\n };\n\n DragService.prototype.onUpCommon = function (eventOrTouch, el) {\n if (this.dragging) {\n this.dragging = false;\n this.currentDragParams.onDragStop(eventOrTouch);\n var event_2 = {\n type: Events.EVENT_DRAG_STOPPED,\n target: el\n };\n this.eventService.dispatchEvent(event_2);\n }\n\n this.mouseStartEvent = null;\n this.touchStart = null;\n this.touchLastTime = null;\n this.currentDragParams = null;\n this.dragEndFunctions.forEach(function (func) {\n return func();\n });\n this.dragEndFunctions.length = 0;\n };\n\n __decorate$1V([Autowired('loggerFactory')], DragService.prototype, \"loggerFactory\", void 0);\n\n __decorate$1V([Autowired('mouseEventService')], DragService.prototype, \"mouseEventService\", void 0);\n\n __decorate$1V([PostConstruct], DragService.prototype, \"init\", null);\n\n __decorate$1V([PreDestroy], DragService.prototype, \"removeAllListeners\", null);\n\n DragService = __decorate$1V([Bean('dragService')], DragService);\n return DragService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$26 = undefined && undefined.__extends || function () {\n var _extendStatics51 = function extendStatics(d, b) {\n _extendStatics51 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics51(d, b);\n };\n\n return function (d, b) {\n _extendStatics51(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$6 = undefined && undefined.__assign || function () {\n __assign$6 = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$6.apply(this, arguments);\n};\n\nvar __decorate$1U = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar FilterManager =\n/** @class */\nfunction (_super) {\n __extends$26(FilterManager, _super);\n\n function FilterManager() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.allColumnFilters = new Map();\n _this.activeAggregateFilters = [];\n _this.activeColumnFilters = [];\n _this.quickFilter = null;\n _this.quickFilterParts = null; // this is true when the grid is processing the filter change. this is used by the cell comps, so that they\n // don't flash when data changes due to filter changes. there is no need to flash when filter changes as the\n // user is in control, so doesn't make sense to show flashing changes. for example, go to main demo where\n // this feature is turned off (hack code to always return false for isSuppressFlashingCellsBecauseFiltering(), put in)\n // 100,000 rows and group by country. then do some filtering. all the cells flash, which is silly.\n\n _this.processingFilterChange = false;\n return _this;\n }\n\n FilterManager_1 = FilterManager;\n\n FilterManager.prototype.init = function () {\n var _this = this;\n\n this.addManagedListener(this.eventService, Events.EVENT_GRID_COLUMNS_CHANGED, function () {\n return _this.onColumnsChanged();\n });\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_VALUE_CHANGED, function () {\n return _this.refreshFiltersForAggregations();\n });\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_CHANGED, function () {\n return _this.refreshFiltersForAggregations();\n });\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, function () {\n return _this.refreshFiltersForAggregations();\n });\n this.quickFilter = this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText());\n this.setQuickFilterParts();\n this.allowShowChangeAfterFilter = this.gridOptionsWrapper.isAllowShowChangeAfterFilter();\n this.externalFilterPresent = this.gridOptionsWrapper.isExternalFilterPresent();\n };\n\n FilterManager.prototype.setQuickFilterParts = function () {\n this.quickFilterParts = this.quickFilter ? this.quickFilter.split(' ') : null;\n };\n\n FilterManager.prototype.setFilterModel = function (model) {\n var _this = this;\n\n var allPromises = [];\n var previousModel = this.getFilterModel();\n\n if (model) {\n // mark the filters as we set them, so any active filters left over we stop\n var modelKeys_1 = convertToSet(Object.keys(model));\n this.allColumnFilters.forEach(function (filterWrapper, colId) {\n var newModel = model[colId];\n allPromises.push(_this.setModelOnFilterWrapper(filterWrapper.filterPromise, newModel));\n modelKeys_1.delete(colId);\n }); // at this point, processedFields contains data for which we don't have a filter working yet\n\n modelKeys_1.forEach(function (colId) {\n var column = _this.columnModel.getPrimaryColumn(colId) || _this.columnModel.getGridColumn(colId);\n\n if (!column) {\n console.warn('AG Grid: setFilterModel() - no column found for colId: ' + colId);\n return;\n }\n\n if (!column.isFilterAllowed()) {\n console.warn('AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: ' + colId);\n return;\n }\n\n var filterWrapper = _this.getOrCreateFilterWrapper(column, 'NO_UI');\n\n if (!filterWrapper) {\n console.warn('AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: ' + colId);\n return;\n }\n\n allPromises.push(_this.setModelOnFilterWrapper(filterWrapper.filterPromise, model[colId]));\n });\n } else {\n this.allColumnFilters.forEach(function (filterWrapper) {\n allPromises.push(_this.setModelOnFilterWrapper(filterWrapper.filterPromise, null));\n });\n }\n\n AgPromise.all(allPromises).then(function () {\n var currentModel = _this.getFilterModel();\n\n var columns = [];\n\n _this.allColumnFilters.forEach(function (filterWrapper, colId) {\n var before = previousModel ? previousModel[colId] : null;\n var after = currentModel ? currentModel[colId] : null;\n\n if (!_.jsonEquals(before, after)) {\n columns.push(filterWrapper.column);\n }\n });\n\n if (columns.length > 0) {\n _this.onFilterChanged({\n columns: columns\n });\n }\n });\n };\n\n FilterManager.prototype.setModelOnFilterWrapper = function (filterPromise, newModel) {\n return new AgPromise(function (resolve) {\n filterPromise.then(function (filter) {\n if (typeof filter.setModel !== 'function') {\n console.warn('AG Grid: filter missing setModel method, which is needed for setFilterModel');\n resolve();\n }\n\n (filter.setModel(newModel) || AgPromise.resolve()).then(function () {\n return resolve();\n });\n });\n });\n };\n\n FilterManager.prototype.getFilterModel = function () {\n var result = {};\n this.allColumnFilters.forEach(function (filterWrapper, key) {\n // because user can provide filters, we provide useful error checking and messages\n var filterPromise = filterWrapper.filterPromise;\n var filter = filterPromise.resolveNow(null, function (promiseFilter) {\n return promiseFilter;\n });\n\n if (filter == null) {\n return null;\n }\n\n if (typeof filter.getModel !== 'function') {\n console.warn('AG Grid: filter API missing getModel method, which is needed for getFilterModel');\n return;\n }\n\n var model = filter.getModel();\n\n if (exists(model)) {\n result[key] = model;\n }\n });\n return result;\n };\n\n FilterManager.prototype.isColumnFilterPresent = function () {\n return this.activeColumnFilters.length > 0;\n };\n\n FilterManager.prototype.isAggregateFilterPresent = function () {\n return !!this.activeAggregateFilters.length;\n };\n\n FilterManager.prototype.isExternalFilterPresent = function () {\n return this.externalFilterPresent;\n };\n\n FilterManager.prototype.doAggregateFiltersPass = function (node, filterToSkip) {\n return this.doColumnFiltersPass(node, filterToSkip, true);\n }; // called by:\n // 1) onFilterChanged()\n // 2) onNewRowsLoaded()\n\n\n FilterManager.prototype.updateActiveFilters = function () {\n var _this = this;\n\n this.activeColumnFilters.length = 0;\n this.activeAggregateFilters.length = 0;\n\n var isFilterActive = function isFilterActive(filter) {\n if (!filter) {\n return false;\n } // this never happens, including to avoid compile error\n\n\n if (!filter.isFilterActive) {\n console.warn('AG Grid: Filter is missing isFilterActive() method');\n return false;\n }\n\n return filter.isFilterActive();\n };\n\n var groupFilterEnabled = !!this.gridOptionsWrapper.getGroupAggFiltering();\n\n var isAggFilter = function isAggFilter(column) {\n var isSecondary = !column.isPrimary(); // the only filters that can appear on secondary columns are groupAgg filters\n\n if (isSecondary) {\n return true;\n }\n\n var isShowingPrimaryColumns = !_this.columnModel.isPivotActive();\n var isValueActive = column.isValueActive(); // primary columns are only ever groupAgg filters if a) value is active and b) showing primary columns\n\n if (!isValueActive || !isShowingPrimaryColumns) {\n return false;\n } // from here on we know: isPrimary=true, isValueActive=true, isShowingPrimaryColumns=true\n\n\n if (_this.columnModel.isPivotMode()) {\n // primary column is pretending to be a pivot column, ie pivotMode=true, but we are\n // still showing primary columns\n return true;\n } else {\n // we are not pivoting, so we groupFilter when it's an agg column\n return groupFilterEnabled;\n }\n };\n\n this.allColumnFilters.forEach(function (filterWrapper) {\n if (filterWrapper.filterPromise.resolveNow(false, isFilterActive)) {\n var filterComp = filterWrapper.filterPromise.resolveNow(null, function (filter) {\n return filter;\n });\n\n if (isAggFilter(filterWrapper.column)) {\n _this.activeAggregateFilters.push(filterComp);\n } else {\n _this.activeColumnFilters.push(filterComp);\n }\n }\n });\n };\n\n FilterManager.prototype.updateFilterFlagInColumns = function (source, additionalEventAttributes) {\n this.allColumnFilters.forEach(function (filterWrapper) {\n var isFilterActive = filterWrapper.filterPromise.resolveNow(false, function (filter) {\n return filter.isFilterActive();\n });\n filterWrapper.column.setFilterActive(isFilterActive, source, additionalEventAttributes);\n });\n };\n\n FilterManager.prototype.isAnyFilterPresent = function () {\n return this.isQuickFilterPresent() || this.isColumnFilterPresent() || this.isAggregateFilterPresent() || this.isExternalFilterPresent();\n };\n\n FilterManager.prototype.doColumnFiltersPass = function (node, filterToSkip, targetAggregates) {\n var data = node.data,\n aggData = node.aggData;\n var targetedFilters = targetAggregates ? this.activeAggregateFilters : this.activeColumnFilters;\n var targetedData = targetAggregates ? aggData : data;\n\n for (var i = 0; i < targetedFilters.length; i++) {\n var filter = targetedFilters[i];\n\n if (filter == null || filter === filterToSkip) {\n continue;\n }\n\n if (typeof filter.doesFilterPass !== 'function') {\n // because users can do custom filters, give nice error message\n throw new Error('Filter is missing method doesFilterPass');\n }\n\n if (!filter.doesFilterPass({\n node: node,\n data: targetedData\n })) {\n return false;\n }\n }\n\n return true;\n };\n\n FilterManager.prototype.parseQuickFilter = function (newFilter) {\n if (!exists(newFilter)) {\n return null;\n }\n\n if (!this.gridOptionsWrapper.isRowModelDefault()) {\n console.warn('AG Grid - Quick filtering only works with the Client-Side Row Model');\n return null;\n }\n\n return newFilter.toUpperCase();\n };\n\n FilterManager.prototype.setQuickFilter = function (newFilter) {\n if (newFilter != null && typeof newFilter !== 'string') {\n console.warn(\"AG Grid - setQuickFilter() only supports string inputs, received: \" + typeof newFilter);\n return;\n }\n\n var parsedFilter = this.parseQuickFilter(newFilter);\n\n if (this.quickFilter !== parsedFilter) {\n this.quickFilter = parsedFilter;\n this.setQuickFilterParts();\n this.onFilterChanged();\n }\n };\n\n FilterManager.prototype.refreshFiltersForAggregations = function () {\n var isAggFiltering = this.gridOptionsWrapper.getGroupAggFiltering();\n\n if (isAggFiltering) {\n this.onFilterChanged();\n }\n }; // sometimes (especially in React) the filter can call onFilterChanged when we are in the middle\n // of a render cycle. this would be bad, so we wait for render cycle to complete when this happens.\n // this happens in react when we change React State in the grid (eg setting RowCtrl's in RowContainer)\n // which results in React State getting applied in the main application, triggering a useEffect() to\n // be kicked off adn then the application calling the grid's API. in AG-6554, the custom filter was\n // getting it's useEffect() triggered in this way.\n\n\n FilterManager.prototype.callOnFilterChangedOutsideRenderCycle = function (params) {\n var _this = this;\n\n if (params === void 0) {\n params = {};\n }\n\n var action = function action() {\n return _this.onFilterChanged(params);\n };\n\n if (this.rowRenderer.isRefreshInProgress()) {\n setTimeout(action, 0);\n } else {\n action();\n }\n };\n\n FilterManager.prototype.onFilterChanged = function (params) {\n if (params === void 0) {\n params = {};\n }\n\n var filterInstance = params.filterInstance,\n additionalEventAttributes = params.additionalEventAttributes,\n columns = params.columns;\n this.updateActiveFilters();\n this.updateFilterFlagInColumns('filterChanged', additionalEventAttributes);\n this.externalFilterPresent = this.gridOptionsWrapper.isExternalFilterPresent();\n this.allColumnFilters.forEach(function (filterWrapper) {\n if (!filterWrapper.filterPromise) {\n return;\n }\n\n filterWrapper.filterPromise.then(function (filter) {\n if (filter && filter !== filterInstance && filter.onAnyFilterChanged) {\n filter.onAnyFilterChanged();\n }\n });\n });\n var filterChangedEvent = {\n type: Events.EVENT_FILTER_CHANGED,\n columns: columns || []\n };\n\n if (additionalEventAttributes) {\n mergeDeep(filterChangedEvent, additionalEventAttributes);\n } // because internal events are not async in ag-grid, when the dispatchEvent\n // method comes back, we know all listeners have finished executing.\n\n\n this.processingFilterChange = true;\n this.eventService.dispatchEvent(filterChangedEvent);\n this.processingFilterChange = false;\n };\n\n FilterManager.prototype.isSuppressFlashingCellsBecauseFiltering = function () {\n // if user has elected to always flash cell changes, then always return false, otherwise we suppress flashing\n // changes when filtering\n return !this.allowShowChangeAfterFilter && this.processingFilterChange;\n };\n\n FilterManager.prototype.isQuickFilterPresent = function () {\n return this.quickFilter !== null;\n };\n\n FilterManager.prototype.doesRowPassOtherFilters = function (filterToSkip, node) {\n return this.doesRowPassFilter({\n rowNode: node,\n filterInstanceToSkip: filterToSkip\n });\n };\n\n FilterManager.prototype.doesRowPassQuickFilterNoCache = function (node, filterPart) {\n var _this = this;\n\n var columns = this.columnModel.getAllColumnsForQuickFilter();\n return columns.some(function (column) {\n var part = _this.getQuickFilterTextForColumn(column, node);\n\n return exists(part) && part.indexOf(filterPart) >= 0;\n });\n };\n\n FilterManager.prototype.doesRowPassQuickFilterCache = function (node, filterPart) {\n if (!node.quickFilterAggregateText) {\n this.aggregateRowForQuickFilter(node);\n }\n\n return node.quickFilterAggregateText.indexOf(filterPart) >= 0;\n };\n\n FilterManager.prototype.doesRowPassQuickFilter = function (node) {\n var _this = this;\n\n var usingCache = this.gridOptionsWrapper.isCacheQuickFilter(); // each part must pass, if any fails, then the whole filter fails\n\n return this.quickFilterParts.every(function (part) {\n return usingCache ? _this.doesRowPassQuickFilterCache(node, part) : _this.doesRowPassQuickFilterNoCache(node, part);\n });\n };\n\n FilterManager.prototype.doesRowPassAggregateFilters = function (params) {\n if (this.isAggregateFilterPresent() && !this.doAggregateFiltersPass(params.rowNode, params.filterInstanceToSkip)) {\n return false;\n } // got this far, all filters pass\n\n\n return true;\n };\n\n FilterManager.prototype.doesRowPassFilter = function (params) {\n // the row must pass ALL of the filters, so if any of them fail,\n // we return true. that means if a row passes the quick filter,\n // but fails the column filter, it fails overall\n // first up, check quick filter\n if (this.isQuickFilterPresent() && !this.doesRowPassQuickFilter(params.rowNode)) {\n return false;\n } // secondly, give the client a chance to reject this row\n\n\n if (this.isExternalFilterPresent() && !this.gridOptionsWrapper.doesExternalFilterPass(params.rowNode)) {\n return false;\n } // lastly, check column filter\n\n\n if (this.isColumnFilterPresent() && !this.doColumnFiltersPass(params.rowNode, params.filterInstanceToSkip)) {\n return false;\n } // got this far, all filters pass\n\n\n return true;\n };\n\n FilterManager.prototype.getQuickFilterTextForColumn = function (column, node) {\n var value = this.valueService.getValue(column, node, true);\n var colDef = column.getColDef();\n\n if (colDef.getQuickFilterText) {\n var params = {\n value: value,\n node: node,\n data: node.data,\n column: column,\n colDef: colDef,\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n context: this.gridOptionsWrapper.getContext()\n };\n value = colDef.getQuickFilterText(params);\n }\n\n return exists(value) ? value.toString().toUpperCase() : null;\n };\n\n FilterManager.prototype.aggregateRowForQuickFilter = function (node) {\n var _this = this;\n\n var stringParts = [];\n var columns = this.columnModel.getAllColumnsForQuickFilter();\n columns.forEach(function (column) {\n var part = _this.getQuickFilterTextForColumn(column, node);\n\n if (exists(part)) {\n stringParts.push(part);\n }\n });\n node.quickFilterAggregateText = stringParts.join(FilterManager_1.QUICK_FILTER_SEPARATOR);\n };\n\n FilterManager.prototype.onNewRowsLoaded = function (source) {\n this.allColumnFilters.forEach(function (filterWrapper) {\n filterWrapper.filterPromise.then(function (filter) {\n if (filter.onNewRowsLoaded) {\n filter.onNewRowsLoaded();\n }\n });\n });\n this.updateFilterFlagInColumns(source);\n this.updateActiveFilters();\n };\n\n FilterManager.prototype.createValueGetter = function (column) {\n var _this = this;\n\n return function (_a) {\n var node = _a.node;\n return _this.valueService.getValue(column, node, true);\n };\n };\n\n FilterManager.prototype.getFilterComponent = function (column, source, createIfDoesNotExist) {\n if (createIfDoesNotExist === void 0) {\n createIfDoesNotExist = true;\n }\n\n var _a;\n\n if (createIfDoesNotExist) {\n return ((_a = this.getOrCreateFilterWrapper(column, source)) === null || _a === void 0 ? void 0 : _a.filterPromise) || null;\n }\n\n var filterWrapper = this.cachedFilter(column);\n return filterWrapper ? filterWrapper.filterPromise : null;\n };\n\n FilterManager.prototype.isFilterActive = function (column) {\n var filterWrapper = this.cachedFilter(column);\n return !!filterWrapper && filterWrapper.filterPromise.resolveNow(false, function (filter) {\n return filter.isFilterActive();\n });\n };\n\n FilterManager.prototype.getOrCreateFilterWrapper = function (column, source) {\n if (!column.isFilterAllowed()) {\n return null;\n }\n\n var filterWrapper = this.cachedFilter(column);\n\n if (!filterWrapper) {\n filterWrapper = this.createFilterWrapper(column, source);\n this.allColumnFilters.set(column.getColId(), filterWrapper);\n } else if (source !== 'NO_UI') {\n this.putIntoGui(filterWrapper, source);\n }\n\n return filterWrapper;\n };\n\n FilterManager.prototype.cachedFilter = function (column) {\n return this.allColumnFilters.get(column.getColId());\n };\n\n FilterManager.prototype.createFilterInstance = function (column) {\n var _this = this;\n\n var defaultFilter = ModuleRegistry.isRegistered(ModuleNames.SetFilterModule) ? 'agSetColumnFilter' : 'agTextColumnFilter';\n var colDef = column.getColDef();\n var filterInstance;\n\n var params = __assign$6(__assign$6({}, this.createFilterParams(column, colDef)), {\n filterModifiedCallback: function filterModifiedCallback() {\n var event = {\n type: Events.EVENT_FILTER_MODIFIED,\n column: column,\n filterInstance: filterInstance\n };\n\n _this.eventService.dispatchEvent(event);\n },\n filterChangedCallback: function filterChangedCallback(additionalEventAttributes) {\n var params = {\n filterInstance: filterInstance,\n additionalEventAttributes: additionalEventAttributes,\n columns: [column]\n };\n\n _this.callOnFilterChangedOutsideRenderCycle(params);\n },\n doesRowPassOtherFilter: function doesRowPassOtherFilter(node) {\n return _this.doesRowPassOtherFilters(filterInstance, node);\n }\n });\n\n var compDetails = this.userComponentFactory.getFilterDetails(colDef, params, defaultFilter);\n\n if (!compDetails) {\n return null;\n }\n\n var componentPromise = compDetails.newAgStackInstance();\n\n if (componentPromise) {\n componentPromise.then(function (r) {\n return filterInstance = r;\n });\n }\n\n return componentPromise;\n };\n\n FilterManager.prototype.createFilterParams = function (column, colDef) {\n var params = {\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n column: column,\n colDef: cloneObject(colDef),\n rowModel: this.rowModel,\n filterChangedCallback: function filterChangedCallback() {},\n filterModifiedCallback: function filterModifiedCallback() {},\n valueGetter: this.createValueGetter(column),\n context: this.gridOptionsWrapper.getContext(),\n doesRowPassOtherFilter: function doesRowPassOtherFilter() {\n return true;\n }\n };\n return params;\n };\n\n FilterManager.prototype.createFilterWrapper = function (column, source) {\n var filterWrapper = {\n column: column,\n filterPromise: null,\n compiledElement: null,\n guiPromise: AgPromise.resolve(null)\n };\n filterWrapper.filterPromise = this.createFilterInstance(column);\n\n if (filterWrapper.filterPromise) {\n this.putIntoGui(filterWrapper, source);\n }\n\n return filterWrapper;\n };\n\n FilterManager.prototype.putIntoGui = function (filterWrapper, source) {\n var _this = this;\n\n var eFilterGui = document.createElement('div');\n eFilterGui.className = 'ag-filter';\n filterWrapper.guiPromise = new AgPromise(function (resolve) {\n filterWrapper.filterPromise.then(function (filter) {\n var guiFromFilter = filter.getGui();\n\n if (!exists(guiFromFilter)) {\n console.warn(\"AG Grid: getGui method from filter returned \" + guiFromFilter + \", it should be a DOM element or an HTML template string.\");\n } // for backwards compatibility with Angular 1 - we\n // used to allow providing back HTML from getGui().\n // once we move away from supporting Angular 1\n // directly, we can change this.\n\n\n if (typeof guiFromFilter === 'string') {\n guiFromFilter = loadTemplate(guiFromFilter);\n }\n\n eFilterGui.appendChild(guiFromFilter);\n resolve(eFilterGui);\n var event = {\n type: Events.EVENT_FILTER_OPENED,\n column: filterWrapper.column,\n source: source,\n eGui: eFilterGui\n };\n\n _this.eventService.dispatchEvent(event);\n });\n });\n };\n\n FilterManager.prototype.onColumnsChanged = function () {\n var _this = this;\n\n var columns = [];\n this.allColumnFilters.forEach(function (wrapper, colId) {\n var currentColumn;\n\n if (wrapper.column.isPrimary()) {\n currentColumn = _this.columnModel.getPrimaryColumn(colId);\n } else {\n currentColumn = _this.columnModel.getGridColumn(colId);\n }\n\n if (currentColumn) {\n return;\n }\n\n columns.push(wrapper.column);\n\n _this.disposeFilterWrapper(wrapper, 'filterDestroyed');\n });\n\n if (columns.length > 0) {\n this.onFilterChanged({\n columns: columns\n });\n }\n }; // destroys the filter, so it not longer takes part\n\n\n FilterManager.prototype.destroyFilter = function (column, source) {\n if (source === void 0) {\n source = 'api';\n }\n\n var filterWrapper = this.allColumnFilters.get(column.getColId());\n\n if (filterWrapper) {\n this.disposeFilterWrapper(filterWrapper, source);\n this.onFilterChanged({\n columns: [column]\n });\n }\n };\n\n FilterManager.prototype.disposeFilterWrapper = function (filterWrapper, source) {\n var _this = this;\n\n filterWrapper.filterPromise.then(function (filter) {\n (filter.setModel(null) || AgPromise.resolve()).then(function () {\n _this.getContext().destroyBean(filter);\n\n filterWrapper.column.setFilterActive(false, source);\n\n _this.allColumnFilters.delete(filterWrapper.column.getColId());\n });\n });\n };\n\n FilterManager.prototype.destroy = function () {\n var _this = this;\n\n _super.prototype.destroy.call(this);\n\n this.allColumnFilters.forEach(function (filterWrapper) {\n return _this.disposeFilterWrapper(filterWrapper, 'filterDestroyed');\n });\n };\n\n var FilterManager_1;\n FilterManager.QUICK_FILTER_SEPARATOR = '\\n';\n\n __decorate$1U([Autowired('valueService')], FilterManager.prototype, \"valueService\", void 0);\n\n __decorate$1U([Autowired('columnModel')], FilterManager.prototype, \"columnModel\", void 0);\n\n __decorate$1U([Autowired('rowModel')], FilterManager.prototype, \"rowModel\", void 0);\n\n __decorate$1U([Autowired('userComponentFactory')], FilterManager.prototype, \"userComponentFactory\", void 0);\n\n __decorate$1U([Autowired('rowRenderer')], FilterManager.prototype, \"rowRenderer\", void 0);\n\n __decorate$1U([PostConstruct], FilterManager.prototype, \"init\", null);\n\n __decorate$1U([PreDestroy], FilterManager.prototype, \"destroy\", null);\n\n FilterManager = FilterManager_1 = __decorate$1U([Bean('filterManager')], FilterManager);\n return FilterManager;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$25 = undefined && undefined.__extends || function () {\n var _extendStatics52 = function extendStatics(d, b) {\n _extendStatics52 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics52(d, b);\n };\n\n return function (d, b) {\n _extendStatics52(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar AbstractHeaderCellComp =\n/** @class */\nfunction (_super) {\n __extends$25(AbstractHeaderCellComp, _super);\n\n function AbstractHeaderCellComp(template, ctrl) {\n var _this = _super.call(this, template) || this;\n\n _this.ctrl = ctrl;\n return _this;\n }\n\n AbstractHeaderCellComp.prototype.getCtrl = function () {\n return this.ctrl;\n };\n\n return AbstractHeaderCellComp;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$24 = undefined && undefined.__extends || function () {\n var _extendStatics53 = function extendStatics(d, b) {\n _extendStatics53 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics53(d, b);\n };\n\n return function (d, b) {\n _extendStatics53(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1T = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar HeaderFilterCellComp =\n/** @class */\nfunction (_super) {\n __extends$24(HeaderFilterCellComp, _super);\n\n function HeaderFilterCellComp(ctrl) {\n return _super.call(this, HeaderFilterCellComp.TEMPLATE, ctrl) || this;\n }\n\n HeaderFilterCellComp.prototype.postConstruct = function () {\n var _this = this;\n\n var eGui = this.getGui();\n var compProxy = {\n addOrRemoveCssClass: function addOrRemoveCssClass(cssClassName, on) {\n return _this.addOrRemoveCssClass(cssClassName, on);\n },\n addOrRemoveBodyCssClass: function addOrRemoveBodyCssClass(cssClassName, on) {\n return _this.eFloatingFilterBody.classList.toggle(cssClassName, on);\n },\n addOrRemoveButtonWrapperCssClass: function addOrRemoveButtonWrapperCssClass(cssClassName, on) {\n return _this.eButtonWrapper.classList.toggle(cssClassName, on);\n },\n setCompDetails: function setCompDetails(compDetails) {\n return _this.setCompDetails(compDetails);\n },\n getFloatingFilterComp: function getFloatingFilterComp() {\n return _this.compPromise;\n },\n setWidth: function setWidth(width) {\n return eGui.style.width = width;\n },\n setMenuIcon: function setMenuIcon(eIcon) {\n return _this.eButtonShowMainFilter.appendChild(eIcon);\n }\n };\n this.ctrl.setComp(compProxy, eGui, this.eButtonShowMainFilter, this.eFloatingFilterBody);\n };\n\n HeaderFilterCellComp.prototype.setCompDetails = function (compDetails) {\n var _this = this; // because we are providing defaultFloatingFilterType, we know it will never be undefined;\n\n\n this.compPromise = compDetails.newAgStackInstance();\n this.compPromise.then(function (comp) {\n return _this.afterCompCreated(comp);\n });\n };\n\n HeaderFilterCellComp.prototype.afterCompCreated = function (comp) {\n var _this = this;\n\n if (!comp) {\n return;\n }\n\n this.addDestroyFunc(function () {\n return _this.context.destroyBean(comp);\n });\n\n if (!this.isAlive()) {\n return;\n }\n\n this.eFloatingFilterBody.appendChild(comp.getGui());\n\n if (comp.afterGuiAttached) {\n comp.afterGuiAttached();\n }\n };\n\n HeaderFilterCellComp.TEMPLATE = \"
\\n
\\n
\\n \\n
\\n
\";\n\n __decorate$1T([RefSelector('eFloatingFilterBody')], HeaderFilterCellComp.prototype, \"eFloatingFilterBody\", void 0);\n\n __decorate$1T([RefSelector('eButtonWrapper')], HeaderFilterCellComp.prototype, \"eButtonWrapper\", void 0);\n\n __decorate$1T([RefSelector('eButtonShowMainFilter')], HeaderFilterCellComp.prototype, \"eButtonShowMainFilter\", void 0);\n\n __decorate$1T([PostConstruct], HeaderFilterCellComp.prototype, \"postConstruct\", null);\n\n return HeaderFilterCellComp;\n}(AbstractHeaderCellComp);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$23 = undefined && undefined.__extends || function () {\n var _extendStatics54 = function extendStatics(d, b) {\n _extendStatics54 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics54(d, b);\n };\n\n return function (d, b) {\n _extendStatics54(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1S = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar LayoutCssClasses;\n\n(function (LayoutCssClasses) {\n LayoutCssClasses[\"AUTO_HEIGHT\"] = \"ag-layout-auto-height\";\n LayoutCssClasses[\"NORMAL\"] = \"ag-layout-normal\";\n LayoutCssClasses[\"PRINT\"] = \"ag-layout-print\";\n})(LayoutCssClasses || (LayoutCssClasses = {}));\n\nvar LayoutFeature =\n/** @class */\nfunction (_super) {\n __extends$23(LayoutFeature, _super);\n\n function LayoutFeature(view) {\n var _this = _super.call(this) || this;\n\n _this.view = view;\n return _this;\n }\n\n LayoutFeature.prototype.postConstruct = function () {\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_DOM_LAYOUT, this.updateLayoutClasses.bind(this));\n this.updateLayoutClasses();\n };\n\n LayoutFeature.prototype.updateLayoutClasses = function () {\n var domLayout = this.gridOptionsWrapper.getDomLayout();\n var params = {\n autoHeight: domLayout === Constants.DOM_LAYOUT_AUTO_HEIGHT,\n normal: domLayout === Constants.DOM_LAYOUT_NORMAL,\n print: domLayout === Constants.DOM_LAYOUT_PRINT\n };\n var cssClass = params.autoHeight ? LayoutCssClasses.AUTO_HEIGHT : params.print ? LayoutCssClasses.PRINT : LayoutCssClasses.NORMAL;\n this.view.updateLayoutClasses(cssClass, params);\n };\n\n __decorate$1S([Autowired('gridOptionsWrapper')], LayoutFeature.prototype, \"gridOptionsWrapper\", void 0);\n\n __decorate$1S([PostConstruct], LayoutFeature.prototype, \"postConstruct\", null);\n\n return LayoutFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$22 = undefined && undefined.__extends || function () {\n var _extendStatics55 = function extendStatics(d, b) {\n _extendStatics55 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics55(d, b);\n };\n\n return function (d, b) {\n _extendStatics55(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1R = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar GridBodyScrollFeature =\n/** @class */\nfunction (_super) {\n __extends$22(GridBodyScrollFeature, _super);\n\n function GridBodyScrollFeature(eBodyViewport) {\n var _this = _super.call(this) || this;\n\n _this.scrollLeft = -1;\n _this.nextScrollTop = -1;\n _this.scrollTop = -1;\n _this.eBodyViewport = eBodyViewport;\n _this.resetLastHorizontalScrollElementDebounced = debounce(_this.resetLastHorizontalScrollElement.bind(_this), 500);\n return _this;\n }\n\n GridBodyScrollFeature.prototype.postConstruct = function () {\n var _this = this;\n\n this.enableRtl = this.gridOptionsWrapper.isEnableRtl();\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, this.onDisplayedColumnsWidthChanged.bind(this));\n this.ctrlsService.whenReady(function (p) {\n _this.centerRowContainerCtrl = p.centerRowContainerCtrl;\n\n _this.onDisplayedColumnsWidthChanged();\n\n _this.addScrollListener();\n });\n };\n\n GridBodyScrollFeature.prototype.addScrollListener = function () {\n var fakeHScroll = this.ctrlsService.getFakeHScrollCtrl();\n this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(), 'scroll', this.onCenterViewportScroll.bind(this));\n this.addManagedListener(fakeHScroll.getViewport(), 'scroll', this.onFakeHorizontalScroll.bind(this));\n var onVerticalScroll = this.gridOptionsWrapper.isDebounceVerticalScrollbar() ? debounce(this.onVerticalScroll.bind(this), 100) : this.onVerticalScroll.bind(this);\n this.addManagedListener(this.eBodyViewport, 'scroll', onVerticalScroll);\n };\n\n GridBodyScrollFeature.prototype.onDisplayedColumnsWidthChanged = function () {\n if (this.enableRtl) {\n // because RTL is all backwards, a change in the width of the row\n // can cause a change in the scroll position, without a scroll event,\n // because the scroll position in RTL is a function that depends on\n // the width. to be convinced of this, take out this line, enable RTL,\n // scroll all the way to the left and then resize a column\n this.horizontallyScrollHeaderCenterAndFloatingCenter();\n }\n };\n\n GridBodyScrollFeature.prototype.horizontallyScrollHeaderCenterAndFloatingCenter = function (scrollLeft) {\n // when doing RTL, this method gets called once prematurely\n var notYetInitialised = this.centerRowContainerCtrl == null;\n\n if (notYetInitialised) {\n return;\n }\n\n if (scrollLeft === undefined) {\n scrollLeft = this.centerRowContainerCtrl.getCenterViewportScrollLeft();\n }\n\n var offset = this.enableRtl ? scrollLeft : -scrollLeft;\n var topCenterContainer = this.ctrlsService.getTopCenterRowContainerCtrl();\n var stickyTopCenterContainer = this.ctrlsService.getStickyTopCenterRowContainerCtrl();\n var bottomCenterContainer = this.ctrlsService.getBottomCenterRowContainerCtrl();\n var fakeHScroll = this.ctrlsService.getFakeHScrollCtrl();\n var centerHeaderContainer = this.ctrlsService.getHeaderRowContainerCtrl();\n centerHeaderContainer.setHorizontalScroll(offset);\n bottomCenterContainer.setContainerTranslateX(offset);\n topCenterContainer.setContainerTranslateX(offset);\n stickyTopCenterContainer.setContainerTranslateX(offset);\n var centerViewport = this.centerRowContainerCtrl.getViewportElement();\n var isCenterViewportLastHorizontal = this.lastHorizontalScrollElement === centerViewport;\n var partner = isCenterViewportLastHorizontal ? fakeHScroll.getViewport() : this.centerRowContainerCtrl.getViewportElement();\n setScrollLeft(partner, Math.abs(scrollLeft), this.enableRtl);\n };\n\n GridBodyScrollFeature.prototype.isControllingScroll = function (eDiv) {\n if (!this.lastHorizontalScrollElement) {\n this.lastHorizontalScrollElement = eDiv;\n return true;\n }\n\n return eDiv === this.lastHorizontalScrollElement;\n };\n\n GridBodyScrollFeature.prototype.onFakeHorizontalScroll = function () {\n var fakeHScrollViewport = this.ctrlsService.getFakeHScrollCtrl().getViewport();\n\n if (!this.isControllingScroll(fakeHScrollViewport)) {\n return;\n }\n\n this.onBodyHorizontalScroll(fakeHScrollViewport);\n };\n\n GridBodyScrollFeature.prototype.onCenterViewportScroll = function () {\n var centerContainerViewport = this.centerRowContainerCtrl.getViewportElement();\n\n if (!this.isControllingScroll(centerContainerViewport)) {\n return;\n }\n\n this.onBodyHorizontalScroll(centerContainerViewport);\n };\n\n GridBodyScrollFeature.prototype.onBodyHorizontalScroll = function (eSource) {\n var centerContainerViewport = this.centerRowContainerCtrl.getViewportElement();\n var scrollLeft = centerContainerViewport.scrollLeft;\n\n if (this.shouldBlockScrollUpdate('horizontal', scrollLeft, true)) {\n return;\n } // we do Math.round() rather than Math.floor(), to mirror how scroll values are applied.\n // eg if a scale is applied (ie user has zoomed the browser), then applying scroll=200\n // could result in 199.88, which then floor(199.88) = 199, however round(199.88) = 200.\n // initially Math.floor() was used, however this caused (almost) infinite loop with aligned grids,\n // as the scroll would move 1px at at time bouncing from one grid to the next (eg one grid would cause\n // scroll to 200px, the next to 199px, then the first back to 198px and so on).\n\n\n this.doHorizontalScroll(Math.round(getScrollLeft(eSource, this.enableRtl)));\n this.resetLastHorizontalScrollElementDebounced();\n };\n\n GridBodyScrollFeature.prototype.onVerticalScroll = function () {\n var scrollTop = this.eBodyViewport.scrollTop;\n\n if (this.shouldBlockScrollUpdate('vertical', scrollTop, true)) {\n return;\n }\n\n this.animationFrameService.setScrollTop(scrollTop);\n this.nextScrollTop = scrollTop;\n\n if (this.gridOptionsWrapper.isSuppressAnimationFrame()) {\n this.scrollTop = this.nextScrollTop;\n this.redrawRowsAfterScroll();\n } else {\n this.animationFrameService.schedule();\n }\n };\n\n GridBodyScrollFeature.prototype.resetLastHorizontalScrollElement = function () {\n this.lastHorizontalScrollElement = null;\n };\n\n GridBodyScrollFeature.prototype.doHorizontalScroll = function (scrollLeft) {\n var fakeHScrollViewport = this.ctrlsService.getFakeHScrollCtrl().getViewport();\n var fakeScrollLeft = getScrollLeft(fakeHScrollViewport, this.enableRtl);\n\n if (this.scrollLeft === scrollLeft && scrollLeft === fakeScrollLeft) {\n return;\n }\n\n this.scrollLeft = scrollLeft;\n this.fireScrollEvent('horizontal');\n this.horizontallyScrollHeaderCenterAndFloatingCenter(scrollLeft);\n this.onHorizontalViewportChanged();\n };\n\n GridBodyScrollFeature.prototype.fireScrollEvent = function (direction) {\n var _this = this;\n\n var bodyScrollEvent = {\n type: Events.EVENT_BODY_SCROLL,\n direction: direction,\n left: this.scrollLeft,\n top: this.scrollTop\n };\n this.eventService.dispatchEvent(bodyScrollEvent);\n window.clearTimeout(this.scrollTimer);\n this.scrollTimer = undefined;\n this.scrollTimer = window.setTimeout(function () {\n var bodyScrollEndEvent = Object.assign({}, bodyScrollEvent, {\n type: Events.EVENT_BODY_SCROLL_END\n });\n\n _this.eventService.dispatchEvent(bodyScrollEndEvent);\n }, 100);\n };\n\n GridBodyScrollFeature.prototype.shouldBlockScrollUpdate = function (direction, scrollTo, touchOnly) {\n // touch devices allow elastic scroll - which temporally scrolls the panel outside of the viewport\n // (eg user uses touch to go to the left of the grid, but drags past the left, the rows will actually\n // scroll past the left until the user releases the mouse). when this happens, we want ignore the scroll,\n // as otherwise it was causing the rows and header to flicker.\n if (touchOnly === void 0) {\n touchOnly = false;\n } // sometimes when scrolling, we got values that extended the maximum scroll allowed. we used to\n // ignore these scrolls. problem is the max scroll position could be skipped (eg the previous scroll event\n // could be 10px before the max position, and then current scroll event could be 20px after the max position).\n // if we just ignored the last event, we would be setting the scroll to 10px before the max position, when in\n // actual fact the user has exceeded the max scroll and thus scroll should be set to the max.\n\n\n if (touchOnly && !isIOSUserAgent()) {\n return false;\n }\n\n if (direction === 'vertical') {\n var clientHeight = getInnerHeight(this.eBodyViewport);\n var scrollHeight = this.eBodyViewport.scrollHeight;\n\n if (scrollTo < 0 || scrollTo + clientHeight > scrollHeight) {\n return true;\n }\n }\n\n if (direction === 'horizontal') {\n var clientWidth = this.centerRowContainerCtrl.getCenterWidth();\n var scrollWidth = this.centerRowContainerCtrl.getViewportElement().scrollWidth;\n\n if (this.enableRtl && isRtlNegativeScroll()) {\n if (scrollTo > 0) {\n return true;\n }\n } else if (scrollTo < 0) {\n return true;\n }\n\n if (Math.abs(scrollTo) + clientWidth > scrollWidth) {\n return true;\n }\n }\n\n return false;\n };\n\n GridBodyScrollFeature.prototype.redrawRowsAfterScroll = function () {\n this.fireScrollEvent('vertical');\n };\n\n GridBodyScrollFeature.prototype.onHorizontalViewportChanged = function () {\n this.centerRowContainerCtrl.onHorizontalViewportChanged();\n }; // this is to cater for AG-3274, where grid is removed from the dom and then inserted back in again.\n // (which happens with some implementations of tabbing). this can result in horizontal scroll getting\n // reset back to the left, however no scroll event is fired. so we need to get header to also scroll\n // back to the left to be kept in sync.\n // adding and removing the grid from the DOM both resets the scroll position and\n // triggers a resize event, so notify listeners if the scroll position has changed\n\n\n GridBodyScrollFeature.prototype.checkScrollLeft = function () {\n if (this.scrollLeft !== this.centerRowContainerCtrl.getCenterViewportScrollLeft()) {\n this.onBodyHorizontalScroll(this.centerRowContainerCtrl.getViewportElement());\n }\n };\n\n GridBodyScrollFeature.prototype.executeAnimationFrameScroll = function () {\n var frameNeeded = this.scrollTop != this.nextScrollTop;\n\n if (frameNeeded) {\n this.scrollTop = this.nextScrollTop;\n this.redrawRowsAfterScroll();\n }\n\n return frameNeeded;\n }; // called by scrollHorizontally method and alignedGridsService\n\n\n GridBodyScrollFeature.prototype.setHorizontalScrollPosition = function (hScrollPosition) {\n var minScrollLeft = 0;\n var maxScrollLeft = this.centerRowContainerCtrl.getViewportElement().scrollWidth - this.centerRowContainerCtrl.getCenterWidth();\n\n if (this.shouldBlockScrollUpdate('horizontal', hScrollPosition)) {\n if (this.enableRtl && isRtlNegativeScroll()) {\n hScrollPosition = hScrollPosition > 0 ? 0 : maxScrollLeft;\n } else {\n hScrollPosition = Math.min(Math.max(hScrollPosition, minScrollLeft), maxScrollLeft);\n }\n }\n\n setScrollLeft(this.centerRowContainerCtrl.getViewportElement(), Math.abs(hScrollPosition), this.enableRtl); // we need to manually do the event handling (rather than wait for the event)\n // for the alignedGridsService, as if we don't, the aligned grid service gets\n // notified async, and then it's 'consuming' flag doesn't get used right, and\n // we can end up with an infinite loop\n\n this.doHorizontalScroll(hScrollPosition);\n };\n\n GridBodyScrollFeature.prototype.setVerticalScrollPosition = function (vScrollPosition) {\n this.eBodyViewport.scrollTop = vScrollPosition;\n };\n\n GridBodyScrollFeature.prototype.getVScrollPosition = function () {\n var result = {\n top: this.eBodyViewport.scrollTop,\n bottom: this.eBodyViewport.scrollTop + this.eBodyViewport.offsetHeight\n };\n return result;\n };\n\n GridBodyScrollFeature.prototype.getHScrollPosition = function () {\n return this.centerRowContainerCtrl.getHScrollPosition();\n };\n\n GridBodyScrollFeature.prototype.isHorizontalScrollShowing = function () {\n return this.centerRowContainerCtrl.isHorizontalScrollShowing();\n }; // called by the headerRootComp and moveColumnController\n\n\n GridBodyScrollFeature.prototype.scrollHorizontally = function (pixels) {\n var oldScrollPosition = this.centerRowContainerCtrl.getViewportElement().scrollLeft;\n this.setHorizontalScrollPosition(oldScrollPosition + pixels);\n return this.centerRowContainerCtrl.getViewportElement().scrollLeft - oldScrollPosition;\n }; // gets called by rowRenderer when new data loaded, as it will want to scroll to the top\n\n\n GridBodyScrollFeature.prototype.scrollToTop = function () {\n this.eBodyViewport.scrollTop = 0;\n }; // Valid values for position are bottom, middle and top\n\n\n GridBodyScrollFeature.prototype.ensureNodeVisible = function (comparator, position) {\n if (position === void 0) {\n position = null;\n } // look for the node index we want to display\n\n\n var rowCount = this.rowModel.getRowCount();\n var indexToSelect = -1; // go through all the nodes, find the one we want to show\n\n for (var i = 0; i < rowCount; i++) {\n var node = this.rowModel.getRow(i);\n\n if (typeof comparator === 'function') {\n // Have to assert type here, as type could be TData & Function\n var predicate = comparator;\n\n if (node && predicate(node)) {\n indexToSelect = i;\n break;\n }\n } else {\n // check object equality against node and data\n if (comparator === node || comparator === node.data) {\n indexToSelect = i;\n break;\n }\n }\n }\n\n if (indexToSelect >= 0) {\n this.ensureIndexVisible(indexToSelect, position);\n }\n }; // Valid values for position are bottom, middle and top\n // position should be {'top','middle','bottom', or undefined/null}.\n // if undefined/null, then the grid will to the minimal amount of scrolling,\n // eg if grid needs to scroll up, it scrolls until row is on top,\n // if grid needs to scroll down, it scrolls until row is on bottom,\n // if row is already in view, grid does not scroll\n\n\n GridBodyScrollFeature.prototype.ensureIndexVisible = function (index, position) {\n // if for print or auto height, everything is always visible\n if (this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_PRINT) {\n return;\n }\n\n var rowCount = this.paginationProxy.getRowCount();\n\n if (typeof index !== 'number' || index < 0 || index >= rowCount) {\n console.warn('invalid row index for ensureIndexVisible: ' + index);\n return;\n }\n\n var isPaging = this.gridOptionsWrapper.isPagination();\n var paginationPanelEnabled = isPaging && !this.gridOptionsWrapper.isSuppressPaginationPanel();\n\n if (!paginationPanelEnabled) {\n this.paginationProxy.goToPageWithIndex(index);\n }\n\n var gridBodyCtrl = this.ctrlsService.getGridBodyCtrl();\n var stickyTopHeight = gridBodyCtrl.getStickyTopHeight();\n var rowNode = this.paginationProxy.getRow(index);\n var rowGotShiftedDuringOperation;\n\n do {\n var startingRowTop = rowNode.rowTop;\n var startingRowHeight = rowNode.rowHeight;\n var paginationOffset = this.paginationProxy.getPixelOffset();\n var rowTopPixel = rowNode.rowTop - paginationOffset;\n var rowBottomPixel = rowTopPixel + rowNode.rowHeight;\n var scrollPosition = this.getVScrollPosition();\n var heightOffset = this.heightScaler.getDivStretchOffset();\n var vScrollTop = scrollPosition.top + heightOffset;\n var vScrollBottom = scrollPosition.bottom + heightOffset;\n var viewportHeight = vScrollBottom - vScrollTop; // work out the pixels for top, middle and bottom up front,\n // make the if/else below easier to read\n\n var pxTop = this.heightScaler.getScrollPositionForPixel(rowTopPixel);\n var pxBottom = this.heightScaler.getScrollPositionForPixel(rowBottomPixel - viewportHeight); // make sure if middle, the row is not outside the top of the grid\n\n var pxMiddle = Math.min((pxTop + pxBottom) / 2, rowTopPixel);\n var rowAboveViewport = vScrollTop + stickyTopHeight > rowTopPixel;\n var rowBelowViewport = vScrollBottom < rowBottomPixel;\n var newScrollPosition = null;\n\n if (position === 'top') {\n newScrollPosition = pxTop;\n } else if (position === 'bottom') {\n newScrollPosition = pxBottom;\n } else if (position === 'middle') {\n newScrollPosition = pxMiddle;\n } else if (rowAboveViewport) {\n // if row is before, scroll up with row at top\n newScrollPosition = pxTop - stickyTopHeight;\n } else if (rowBelowViewport) {\n // if row is after, scroll down with row at bottom\n newScrollPosition = pxBottom;\n }\n\n if (newScrollPosition !== null) {\n this.eBodyViewport.scrollTop = newScrollPosition;\n this.rowRenderer.redrawAfterScroll();\n } // the row can get shifted if during the rendering (during rowRenderer.redrawAfterScroll()),\n // the height of a row changes due to lazy calculation of row heights when using\n // colDef.autoHeight or gridOptions.getRowHeight.\n // if row was shifted, then the position we scrolled to is incorrect.\n\n\n rowGotShiftedDuringOperation = startingRowTop !== rowNode.rowTop || startingRowHeight !== rowNode.rowHeight;\n } while (rowGotShiftedDuringOperation); // so when we return back to user, the cells have rendered\n\n\n this.animationFrameService.flushAllFrames();\n };\n\n GridBodyScrollFeature.prototype.ensureColumnVisible = function (key, position) {\n if (position === void 0) {\n position = 'auto';\n }\n\n var column = this.columnModel.getGridColumn(key);\n\n if (!column) {\n return;\n } // calling ensureColumnVisible on a pinned column doesn't make sense\n\n\n if (column.isPinned()) {\n return;\n } // defensive\n\n\n if (!this.columnModel.isColumnDisplayed(column)) {\n return;\n }\n\n var newHorizontalScroll = this.getPositionedHorizontalScroll(column, position);\n\n if (newHorizontalScroll !== null) {\n this.centerRowContainerCtrl.setCenterViewportScrollLeft(newHorizontalScroll);\n } // this will happen anyway, as the move will cause a 'scroll' event on the body, however\n // it is possible that the ensureColumnVisible method is called from within AG Grid and\n // the caller will need to have the columns rendered to continue, which will be before\n // the event has been worked on (which is the case for cell navigation).\n\n\n this.centerRowContainerCtrl.onHorizontalViewportChanged(); // so when we return back to user, the cells have rendered\n\n this.animationFrameService.flushAllFrames();\n };\n\n GridBodyScrollFeature.prototype.getPositionedHorizontalScroll = function (column, position) {\n var _a = this.isColumnOutsideViewport(column),\n columnBeforeStart = _a.columnBeforeStart,\n columnAfterEnd = _a.columnAfterEnd;\n\n var viewportTooSmallForColumn = this.centerRowContainerCtrl.getCenterWidth() < column.getActualWidth();\n var viewportWidth = this.centerRowContainerCtrl.getCenterWidth();\n var isRtl = this.enableRtl;\n var alignColToStart = (isRtl ? columnBeforeStart : columnAfterEnd) || viewportTooSmallForColumn;\n var alignColToEnd = isRtl ? columnAfterEnd : columnBeforeStart;\n\n if (position !== 'auto') {\n alignColToStart = position === 'start';\n alignColToEnd = position === 'end';\n }\n\n var isMiddle = position === 'middle';\n\n if (alignColToStart || alignColToEnd || isMiddle) {\n var _b = this.getColumnBounds(column),\n colLeft = _b.colLeft,\n colMiddle = _b.colMiddle,\n colRight = _b.colRight;\n\n if (isMiddle) {\n return colMiddle - viewportWidth / 2;\n }\n\n if (alignColToStart) {\n return isRtl ? colRight : colLeft;\n }\n\n return isRtl ? colLeft - viewportWidth : colRight - viewportWidth;\n }\n\n return null;\n };\n\n GridBodyScrollFeature.prototype.isColumnOutsideViewport = function (column) {\n var _a = this.getViewportBounds(),\n viewportStart = _a.start,\n viewportEnd = _a.end;\n\n var _b = this.getColumnBounds(column),\n colLeft = _b.colLeft,\n colRight = _b.colRight;\n\n var isRtl = this.enableRtl;\n var columnBeforeStart = isRtl ? viewportStart > colRight : viewportEnd < colRight;\n var columnAfterEnd = isRtl ? viewportEnd < colLeft : viewportStart > colLeft;\n return {\n columnBeforeStart: columnBeforeStart,\n columnAfterEnd: columnAfterEnd\n };\n };\n\n GridBodyScrollFeature.prototype.getColumnBounds = function (column) {\n var isRtl = this.enableRtl;\n var bodyWidth = this.columnModel.getBodyContainerWidth();\n var colWidth = column.getActualWidth();\n var colLeft = column.getLeft();\n var multiplier = isRtl ? -1 : 1;\n var colLeftPixel = isRtl ? bodyWidth - colLeft : colLeft;\n var colRightPixel = colLeftPixel + colWidth * multiplier;\n var colMidPixel = colLeftPixel + colWidth / 2 * multiplier;\n return {\n colLeft: colLeftPixel,\n colMiddle: colMidPixel,\n colRight: colRightPixel\n };\n };\n\n GridBodyScrollFeature.prototype.getViewportBounds = function () {\n var viewportWidth = this.centerRowContainerCtrl.getCenterWidth();\n var scrollPosition = this.centerRowContainerCtrl.getCenterViewportScrollLeft();\n var viewportStartPixel = scrollPosition;\n var viewportEndPixel = viewportWidth + scrollPosition;\n return {\n start: viewportStartPixel,\n end: viewportEndPixel,\n width: viewportWidth\n };\n };\n\n __decorate$1R([Autowired('ctrlsService')], GridBodyScrollFeature.prototype, \"ctrlsService\", void 0);\n\n __decorate$1R([Autowired('animationFrameService')], GridBodyScrollFeature.prototype, \"animationFrameService\", void 0);\n\n __decorate$1R([Autowired('paginationProxy')], GridBodyScrollFeature.prototype, \"paginationProxy\", void 0);\n\n __decorate$1R([Autowired('rowModel')], GridBodyScrollFeature.prototype, \"rowModel\", void 0);\n\n __decorate$1R([Autowired('rowContainerHeightService')], GridBodyScrollFeature.prototype, \"heightScaler\", void 0);\n\n __decorate$1R([Autowired('rowRenderer')], GridBodyScrollFeature.prototype, \"rowRenderer\", void 0);\n\n __decorate$1R([Autowired('columnModel')], GridBodyScrollFeature.prototype, \"columnModel\", void 0);\n\n __decorate$1R([PostConstruct], GridBodyScrollFeature.prototype, \"postConstruct\", null);\n\n return GridBodyScrollFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar AutoScrollService =\n/** @class */\nfunction () {\n function AutoScrollService(params) {\n this.tickingInterval = null;\n this.onScrollCallback = null;\n this.scrollContainer = params.scrollContainer;\n this.scrollHorizontally = params.scrollAxis.indexOf('x') !== -1;\n this.scrollVertically = params.scrollAxis.indexOf('y') !== -1;\n this.scrollByTick = params.scrollByTick != null ? params.scrollByTick : 20;\n\n if (params.onScrollCallback) {\n this.onScrollCallback = params.onScrollCallback;\n }\n\n if (this.scrollVertically) {\n this.getVerticalPosition = params.getVerticalPosition;\n this.setVerticalPosition = params.setVerticalPosition;\n }\n\n if (this.scrollHorizontally) {\n this.getHorizontalPosition = params.getHorizontalPosition;\n this.setHorizontalPosition = params.setHorizontalPosition;\n }\n\n this.shouldSkipVerticalScroll = params.shouldSkipVerticalScroll || function () {\n return false;\n };\n\n this.shouldSkipHorizontalScroll = params.shouldSkipHorizontalScroll || function () {\n return false;\n };\n }\n\n AutoScrollService.prototype.check = function (mouseEvent, forceSkipVerticalScroll) {\n if (forceSkipVerticalScroll === void 0) {\n forceSkipVerticalScroll = false;\n }\n\n var skipVerticalScroll = forceSkipVerticalScroll || this.shouldSkipVerticalScroll();\n\n if (skipVerticalScroll && this.shouldSkipHorizontalScroll()) {\n return;\n }\n\n var rect = this.scrollContainer.getBoundingClientRect();\n var scrollTick = this.scrollByTick;\n this.tickLeft = mouseEvent.clientX < rect.left + scrollTick;\n this.tickRight = mouseEvent.clientX > rect.right - scrollTick;\n this.tickUp = mouseEvent.clientY < rect.top + scrollTick && !skipVerticalScroll;\n this.tickDown = mouseEvent.clientY > rect.bottom - scrollTick && !skipVerticalScroll;\n\n if (this.tickLeft || this.tickRight || this.tickUp || this.tickDown) {\n this.ensureTickingStarted();\n } else {\n this.ensureCleared();\n }\n };\n\n AutoScrollService.prototype.ensureTickingStarted = function () {\n if (this.tickingInterval === null) {\n this.tickingInterval = window.setInterval(this.doTick.bind(this), 100);\n this.tickCount = 0;\n }\n };\n\n AutoScrollService.prototype.doTick = function () {\n this.tickCount++;\n var tickAmount;\n tickAmount = this.tickCount > 20 ? 200 : this.tickCount > 10 ? 80 : 40;\n\n if (this.scrollVertically) {\n var vScrollPosition = this.getVerticalPosition();\n\n if (this.tickUp) {\n this.setVerticalPosition(vScrollPosition - tickAmount);\n }\n\n if (this.tickDown) {\n this.setVerticalPosition(vScrollPosition + tickAmount);\n }\n }\n\n if (this.scrollHorizontally) {\n var hScrollPosition = this.getHorizontalPosition();\n\n if (this.tickLeft) {\n this.setHorizontalPosition(hScrollPosition - tickAmount);\n }\n\n if (this.tickRight) {\n this.setHorizontalPosition(hScrollPosition + tickAmount);\n }\n }\n\n if (this.onScrollCallback) {\n this.onScrollCallback();\n }\n };\n\n AutoScrollService.prototype.ensureCleared = function () {\n if (this.tickingInterval) {\n window.clearInterval(this.tickingInterval);\n this.tickingInterval = null;\n }\n };\n\n return AutoScrollService;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$21 = undefined && undefined.__extends || function () {\n var _extendStatics56 = function extendStatics(d, b) {\n _extendStatics56 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics56(d, b);\n };\n\n return function (d, b) {\n _extendStatics56(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$5 = undefined && undefined.__assign || function () {\n __assign$5 = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$5.apply(this, arguments);\n};\n\nvar __decorate$1Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$h = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$d = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$h(arguments[i]));\n }\n\n return ar;\n};\n\nvar RowDragFeature =\n/** @class */\nfunction (_super) {\n __extends$21(RowDragFeature, _super);\n\n function RowDragFeature(eContainer) {\n var _this = _super.call(this) || this;\n\n _this.isMultiRowDrag = false;\n _this.isGridSorted = false;\n _this.isGridFiltered = false;\n _this.isRowGroupActive = false;\n _this.eContainer = eContainer;\n return _this;\n }\n\n RowDragFeature.prototype.postConstruct = function () {\n var _this = this;\n\n if (this.gridOptionsWrapper.isRowModelDefault()) {\n this.clientSideRowModel = this.rowModel;\n }\n\n var refreshStatus = function refreshStatus() {\n _this.onSortChanged();\n\n _this.onFilterChanged();\n\n _this.onRowGroupChanged();\n };\n\n this.addManagedListener(this.eventService, Events.EVENT_SORT_CHANGED, this.onSortChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_FILTER_CHANGED, this.onFilterChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.onRowGroupChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_MODEL_UPDATED, function () {\n refreshStatus();\n });\n refreshStatus();\n this.ctrlsService.whenReady(function () {\n var gridBodyCon = _this.ctrlsService.getGridBodyCtrl();\n\n _this.autoScrollService = new AutoScrollService({\n scrollContainer: gridBodyCon.getBodyViewportElement(),\n scrollAxis: 'y',\n getVerticalPosition: function getVerticalPosition() {\n return gridBodyCon.getScrollFeature().getVScrollPosition().top;\n },\n setVerticalPosition: function setVerticalPosition(position) {\n return gridBodyCon.getScrollFeature().setVerticalScrollPosition(position);\n },\n onScrollCallback: function onScrollCallback() {\n _this.onDragging(_this.lastDraggingEvent);\n }\n });\n });\n };\n\n RowDragFeature.prototype.onSortChanged = function () {\n this.isGridSorted = this.sortController.isSortActive();\n };\n\n RowDragFeature.prototype.onFilterChanged = function () {\n this.isGridFiltered = this.filterManager.isAnyFilterPresent();\n };\n\n RowDragFeature.prototype.onRowGroupChanged = function () {\n var rowGroups = this.columnModel.getRowGroupColumns();\n this.isRowGroupActive = !missingOrEmpty(rowGroups);\n };\n\n RowDragFeature.prototype.getContainer = function () {\n return this.eContainer;\n };\n\n RowDragFeature.prototype.isInterestedIn = function (type) {\n return type === DragSourceType.RowDrag;\n };\n\n RowDragFeature.prototype.getIconName = function () {\n var managedDrag = this.gridOptionsWrapper.isRowDragManaged();\n\n if (managedDrag && this.shouldPreventRowMove()) {\n return DragAndDropService.ICON_NOT_ALLOWED;\n }\n\n return DragAndDropService.ICON_MOVE;\n };\n\n RowDragFeature.prototype.shouldPreventRowMove = function () {\n return this.isGridSorted || this.isGridFiltered || this.isRowGroupActive;\n };\n\n RowDragFeature.prototype.getRowNodes = function (draggingEvent) {\n var _this = this;\n\n if (!this.isFromThisGrid(draggingEvent)) {\n return draggingEvent.dragItem.rowNodes || [];\n }\n\n var isRowDragMultiRow = this.gridOptionsWrapper.isRowDragMultiRow();\n\n var selectedNodes = __spread$d(this.selectionService.getSelectedNodes()).sort(function (a, b) {\n if (a.rowIndex == null || b.rowIndex == null) {\n return 0;\n }\n\n return _this.getRowIndexNumber(a) - _this.getRowIndexNumber(b);\n });\n\n var currentNode = draggingEvent.dragItem.rowNode;\n\n if (isRowDragMultiRow && selectedNodes.indexOf(currentNode) !== -1) {\n this.isMultiRowDrag = true;\n return selectedNodes;\n }\n\n this.isMultiRowDrag = false;\n return [currentNode];\n };\n\n RowDragFeature.prototype.onDragEnter = function (draggingEvent) {\n // builds a lits of all rows being dragged before firing events\n draggingEvent.dragItem.rowNodes = this.getRowNodes(draggingEvent); // when entering, we fire the enter event, then in onEnterOrDragging,\n // we also fire the move event. so we get both events when entering.\n\n this.dispatchGridEvent(Events.EVENT_ROW_DRAG_ENTER, draggingEvent);\n this.getRowNodes(draggingEvent).forEach(function (rowNode) {\n rowNode.setDragging(true);\n });\n this.onEnterOrDragging(draggingEvent);\n };\n\n RowDragFeature.prototype.onDragging = function (draggingEvent) {\n this.onEnterOrDragging(draggingEvent);\n };\n\n RowDragFeature.prototype.isFromThisGrid = function (draggingEvent) {\n var dragSourceDomDataKey = draggingEvent.dragSource.dragSourceDomDataKey;\n return dragSourceDomDataKey === this.gridOptionsWrapper.getDomDataKey();\n };\n\n RowDragFeature.prototype.isDropZoneWithinThisGrid = function (draggingEvent) {\n var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n var gridGui = gridBodyCon.getGui();\n var dropZoneTarget = draggingEvent.dropZoneTarget;\n return !gridGui.contains(dropZoneTarget);\n };\n\n RowDragFeature.prototype.onEnterOrDragging = function (draggingEvent) {\n // this event is fired for enter and move\n this.dispatchGridEvent(Events.EVENT_ROW_DRAG_MOVE, draggingEvent);\n this.lastDraggingEvent = draggingEvent;\n var pixel = this.mouseEventService.getNormalisedPosition(draggingEvent).y;\n var managedDrag = this.gridOptionsWrapper.isRowDragManaged();\n\n if (managedDrag) {\n this.doManagedDrag(draggingEvent, pixel);\n }\n\n this.autoScrollService.check(draggingEvent.event);\n };\n\n RowDragFeature.prototype.doManagedDrag = function (draggingEvent, pixel) {\n var isFromThisGrid = this.isFromThisGrid(draggingEvent);\n var managedDrag = this.gridOptionsWrapper.isRowDragManaged();\n var rowNodes = draggingEvent.dragItem.rowNodes;\n\n if (managedDrag && this.shouldPreventRowMove()) {\n return;\n }\n\n if (this.gridOptionsWrapper.isSuppressMoveWhenRowDragging() || !isFromThisGrid) {\n if (!this.isDropZoneWithinThisGrid(draggingEvent)) {\n this.clientSideRowModel.highlightRowAtPixel(rowNodes[0], pixel);\n }\n } else {\n this.moveRows(rowNodes, pixel);\n }\n };\n\n RowDragFeature.prototype.getRowIndexNumber = function (rowNode) {\n return parseInt(last(rowNode.getRowIndexString().split('-')), 10);\n };\n\n RowDragFeature.prototype.moveRowAndClearHighlight = function (draggingEvent) {\n var _this = this;\n\n var lastHighlightedRowNode = this.clientSideRowModel.getLastHighlightedRowNode();\n var isBelow = lastHighlightedRowNode && lastHighlightedRowNode.highlighted === RowHighlightPosition.Below;\n var pixel = this.mouseEventService.getNormalisedPosition(draggingEvent).y;\n var rowNodes = draggingEvent.dragItem.rowNodes;\n var increment = isBelow ? 1 : 0;\n\n if (this.isFromThisGrid(draggingEvent)) {\n rowNodes.forEach(function (rowNode) {\n if (rowNode.rowTop < pixel) {\n increment -= 1;\n }\n });\n this.moveRows(rowNodes, pixel, increment);\n } else {\n var getRowIdFunc_1 = this.gridOptionsWrapper.getRowIdFunc();\n var addIndex = this.clientSideRowModel.getRowIndexAtPixel(pixel) + 1;\n\n if (this.clientSideRowModel.getHighlightPosition(pixel) === RowHighlightPosition.Above) {\n addIndex--;\n }\n\n this.clientSideRowModel.updateRowData({\n add: rowNodes.map(function (node) {\n return node.data;\n }).filter(function (data) {\n return !_this.clientSideRowModel.getRowNode(getRowIdFunc_1 ? getRowIdFunc_1({\n data: data,\n level: 0\n }) : data.id);\n }),\n addIndex: addIndex\n });\n }\n\n this.clearRowHighlight();\n };\n\n RowDragFeature.prototype.clearRowHighlight = function () {\n this.clientSideRowModel.highlightRowAtPixel(null);\n };\n\n RowDragFeature.prototype.moveRows = function (rowNodes, pixel, increment) {\n if (increment === void 0) {\n increment = 0;\n }\n\n var rowWasMoved = this.clientSideRowModel.ensureRowsAtPixel(rowNodes, pixel, increment);\n\n if (rowWasMoved) {\n this.focusService.clearFocusedCell();\n\n if (this.rangeService) {\n this.rangeService.removeAllCellRanges();\n }\n }\n };\n\n RowDragFeature.prototype.addRowDropZone = function (params) {\n var _this = this;\n\n if (!params.getContainer()) {\n doOnce(function () {\n return console.warn('AG Grid: addRowDropZone - A container target needs to be provided');\n }, 'add-drop-zone-empty-target');\n return;\n }\n\n if (this.dragAndDropService.findExternalZone(params)) {\n console.warn('AG Grid: addRowDropZone - target already exists in the list of DropZones. Use `removeRowDropZone` before adding it again.');\n return;\n }\n\n var processedParams = {\n getContainer: params.getContainer\n };\n\n if (params.fromGrid) {\n params.fromGrid = undefined;\n processedParams = params;\n } else {\n if (params.onDragEnter) {\n processedParams.onDragEnter = function (e) {\n params.onDragEnter(_this.draggingToRowDragEvent(Events.EVENT_ROW_DRAG_ENTER, e));\n };\n }\n\n if (params.onDragLeave) {\n processedParams.onDragLeave = function (e) {\n params.onDragLeave(_this.draggingToRowDragEvent(Events.EVENT_ROW_DRAG_LEAVE, e));\n };\n }\n\n if (params.onDragging) {\n processedParams.onDragging = function (e) {\n params.onDragging(_this.draggingToRowDragEvent(Events.EVENT_ROW_DRAG_MOVE, e));\n };\n }\n\n if (params.onDragStop) {\n processedParams.onDragStop = function (e) {\n params.onDragStop(_this.draggingToRowDragEvent(Events.EVENT_ROW_DRAG_END, e));\n };\n }\n }\n\n this.dragAndDropService.addDropTarget(__assign$5({\n isInterestedIn: function isInterestedIn(type) {\n return type === DragSourceType.RowDrag;\n },\n getIconName: function getIconName() {\n return DragAndDropService.ICON_MOVE;\n },\n external: true\n }, processedParams));\n };\n\n RowDragFeature.prototype.getRowDropZone = function (events) {\n var _this = this;\n\n var getContainer = this.getContainer.bind(this);\n var onDragEnter = this.onDragEnter.bind(this);\n var onDragLeave = this.onDragLeave.bind(this);\n var onDragging = this.onDragging.bind(this);\n var onDragStop = this.onDragStop.bind(this);\n\n if (!events) {\n return {\n getContainer: getContainer,\n onDragEnter: onDragEnter,\n onDragLeave: onDragLeave,\n onDragging: onDragging,\n onDragStop: onDragStop,\n\n /* @private */\n fromGrid: true\n };\n }\n\n return {\n getContainer: getContainer,\n onDragEnter: events.onDragEnter ? function (e) {\n onDragEnter(e);\n events.onDragEnter(_this.draggingToRowDragEvent(Events.EVENT_ROW_DRAG_ENTER, e));\n } : onDragEnter,\n onDragLeave: events.onDragLeave ? function (e) {\n onDragLeave(e);\n events.onDragLeave(_this.draggingToRowDragEvent(Events.EVENT_ROW_DRAG_LEAVE, e));\n } : onDragLeave,\n onDragging: events.onDragging ? function (e) {\n onDragging(e);\n events.onDragging(_this.draggingToRowDragEvent(Events.EVENT_ROW_DRAG_MOVE, e));\n } : onDragging,\n onDragStop: events.onDragStop ? function (e) {\n onDragStop(e);\n events.onDragStop(_this.draggingToRowDragEvent(Events.EVENT_ROW_DRAG_END, e));\n } : onDragStop,\n fromGrid: true\n /* @private */\n\n };\n };\n\n RowDragFeature.prototype.draggingToRowDragEvent = function (type, draggingEvent) {\n var yNormalised = this.mouseEventService.getNormalisedPosition(draggingEvent).y;\n var mouseIsPastLastRow = yNormalised > this.paginationProxy.getCurrentPageHeight();\n var overIndex = -1;\n var overNode;\n\n if (!mouseIsPastLastRow) {\n overIndex = this.rowModel.getRowIndexAtPixel(yNormalised);\n overNode = this.rowModel.getRow(overIndex);\n }\n\n var vDirectionString;\n\n switch (draggingEvent.vDirection) {\n case VerticalDirection.Down:\n vDirectionString = 'down';\n break;\n\n case VerticalDirection.Up:\n vDirectionString = 'up';\n break;\n\n default:\n vDirectionString = null;\n break;\n }\n\n var event = {\n type: type,\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n context: this.gridOptionsWrapper.getContext(),\n event: draggingEvent.event,\n node: draggingEvent.dragItem.rowNode,\n nodes: draggingEvent.dragItem.rowNodes,\n overIndex: overIndex,\n overNode: overNode,\n y: yNormalised,\n vDirection: vDirectionString\n };\n return event;\n };\n\n RowDragFeature.prototype.dispatchGridEvent = function (type, draggingEvent) {\n var event = this.draggingToRowDragEvent(type, draggingEvent);\n this.eventService.dispatchEvent(event);\n };\n\n RowDragFeature.prototype.onDragLeave = function (draggingEvent) {\n this.dispatchGridEvent(Events.EVENT_ROW_DRAG_LEAVE, draggingEvent);\n this.stopDragging(draggingEvent);\n\n if (this.gridOptionsWrapper.isRowDragManaged()) {\n this.clearRowHighlight();\n }\n\n if (this.isFromThisGrid(draggingEvent)) {\n this.isMultiRowDrag = false;\n }\n };\n\n RowDragFeature.prototype.onDragStop = function (draggingEvent) {\n this.dispatchGridEvent(Events.EVENT_ROW_DRAG_END, draggingEvent);\n this.stopDragging(draggingEvent);\n\n if (this.gridOptionsWrapper.isRowDragManaged() && (this.gridOptionsWrapper.isSuppressMoveWhenRowDragging() || !this.isFromThisGrid(draggingEvent)) && !this.isDropZoneWithinThisGrid(draggingEvent)) {\n this.moveRowAndClearHighlight(draggingEvent);\n }\n };\n\n RowDragFeature.prototype.stopDragging = function (draggingEvent) {\n this.autoScrollService.ensureCleared();\n this.getRowNodes(draggingEvent).forEach(function (rowNode) {\n rowNode.setDragging(false);\n });\n };\n\n __decorate$1Q([Autowired('dragAndDropService')], RowDragFeature.prototype, \"dragAndDropService\", void 0);\n\n __decorate$1Q([Autowired('rowModel')], RowDragFeature.prototype, \"rowModel\", void 0);\n\n __decorate$1Q([Autowired('paginationProxy')], RowDragFeature.prototype, \"paginationProxy\", void 0);\n\n __decorate$1Q([Autowired('columnModel')], RowDragFeature.prototype, \"columnModel\", void 0);\n\n __decorate$1Q([Autowired('focusService')], RowDragFeature.prototype, \"focusService\", void 0);\n\n __decorate$1Q([Autowired('sortController')], RowDragFeature.prototype, \"sortController\", void 0);\n\n __decorate$1Q([Autowired('filterManager')], RowDragFeature.prototype, \"filterManager\", void 0);\n\n __decorate$1Q([Autowired('selectionService')], RowDragFeature.prototype, \"selectionService\", void 0);\n\n __decorate$1Q([Autowired('mouseEventService')], RowDragFeature.prototype, \"mouseEventService\", void 0);\n\n __decorate$1Q([Autowired('ctrlsService')], RowDragFeature.prototype, \"ctrlsService\", void 0);\n\n __decorate$1Q([Optional('rangeService')], RowDragFeature.prototype, \"rangeService\", void 0);\n\n __decorate$1Q([PostConstruct], RowDragFeature.prototype, \"postConstruct\", null);\n\n return RowDragFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$20 = undefined && undefined.__extends || function () {\n var _extendStatics57 = function extendStatics(d, b) {\n _extendStatics57 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics57(d, b);\n };\n\n return function (d, b) {\n _extendStatics57(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1P = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar RowAnimationCssClasses;\n\n(function (RowAnimationCssClasses) {\n RowAnimationCssClasses[\"ANIMATION_ON\"] = \"ag-row-animation\";\n RowAnimationCssClasses[\"ANIMATION_OFF\"] = \"ag-row-no-animation\";\n})(RowAnimationCssClasses || (RowAnimationCssClasses = {}));\n\nvar CSS_CLASS_CELL_SELECTABLE = 'ag-selectable';\nvar CSS_CLASS_FORCE_VERTICAL_SCROLL = 'ag-force-vertical-scroll';\nvar CSS_CLASS_COLUMN_MOVING = 'ag-column-moving';\n\nvar GridBodyCtrl =\n/** @class */\nfunction (_super) {\n __extends$20(GridBodyCtrl, _super);\n\n function GridBodyCtrl() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.stickyTopHeight = 0;\n return _this;\n }\n\n GridBodyCtrl.prototype.getScrollFeature = function () {\n return this.bodyScrollFeature;\n };\n\n GridBodyCtrl.prototype.getBodyViewportElement = function () {\n return this.eBodyViewport;\n };\n\n GridBodyCtrl.prototype.setComp = function (comp, eGridBody, eBodyViewport, eTop, eBottom, eStickyTop) {\n this.comp = comp;\n this.eGridBody = eGridBody;\n this.eBodyViewport = eBodyViewport;\n this.eTop = eTop;\n this.eBottom = eBottom;\n this.eStickyTop = eStickyTop;\n this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect());\n this.createManagedBean(new LayoutFeature(this.comp));\n this.bodyScrollFeature = this.createManagedBean(new GridBodyScrollFeature(this.eBodyViewport));\n this.addRowDragListener();\n this.setupRowAnimationCssClass();\n this.addEventListeners();\n this.addFocusListeners([eTop, eBodyViewport, eBottom, eStickyTop]);\n this.onGridColumnsChanged();\n this.addBodyViewportListener();\n this.setFloatingHeights();\n this.disableBrowserDragging();\n this.addStopEditingWhenGridLosesFocus();\n this.ctrlsService.registerGridBodyCtrl(this);\n };\n\n GridBodyCtrl.prototype.getComp = function () {\n return this.comp;\n };\n\n GridBodyCtrl.prototype.addEventListeners = function () {\n this.addManagedListener(this.eventService, Events.EVENT_GRID_COLUMNS_CHANGED, this.onGridColumnsChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_SCROLL_VISIBILITY_CHANGED, this.onScrollVisibilityChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_PINNED_ROW_DATA_CHANGED, this.onPinnedRowDataChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_HEADER_HEIGHT_CHANGED, this.onHeaderHeightChanged.bind(this));\n };\n\n GridBodyCtrl.prototype.addFocusListeners = function (elements) {\n var _this = this;\n\n elements.forEach(function (element) {\n _this.addManagedListener(element, 'focusin', function (e) {\n var target = e.target; // element being focused is nested?\n\n var isFocusedElementNested = isElementChildOfClass(target, 'ag-root', element);\n element.classList.toggle('ag-has-focus', !isFocusedElementNested);\n });\n\n _this.addManagedListener(element, 'focusout', function (e) {\n var target = e.target,\n relatedTarget = e.relatedTarget;\n var gridContainRelatedTarget = element.contains(relatedTarget);\n var isNestedRelatedTarget = isElementChildOfClass(relatedTarget, 'ag-root', element);\n var isNestedTarget = isElementChildOfClass(target, 'ag-root', element); // element losing focus belongs to a nested grid,\n // it should not be handled here.\n\n if (isNestedTarget) {\n return;\n } // the grid does not contain, or the focus element is within\n // a nested grid\n\n\n if (!gridContainRelatedTarget || isNestedRelatedTarget) {\n element.classList.remove('ag-has-focus');\n }\n });\n });\n }; // used by ColumnAnimationService\n\n\n GridBodyCtrl.prototype.setColumnMovingCss = function (moving) {\n this.comp.setColumnMovingCss(moving ? CSS_CLASS_COLUMN_MOVING : null, moving);\n };\n\n GridBodyCtrl.prototype.setCellTextSelection = function (selectable) {\n if (selectable === void 0) {\n selectable = false;\n }\n\n var cssClass = selectable ? CSS_CLASS_CELL_SELECTABLE : null;\n this.comp.setCellSelectableCss(cssClass, selectable);\n };\n\n GridBodyCtrl.prototype.onScrollVisibilityChanged = function () {\n var visible = this.scrollVisibleService.isVerticalScrollShowing();\n this.setVerticalScrollPaddingVisible(visible);\n this.setStickyTopWidth(visible);\n };\n\n GridBodyCtrl.prototype.onGridColumnsChanged = function () {\n var columns = this.columnModel.getAllGridColumns();\n this.comp.setColumnCount(columns ? columns.length : 0);\n }; // if we do not do this, then the user can select a pic in the grid (eg an image in a custom cell renderer)\n // and then that will start the browser native drag n' drop, which messes up with our own drag and drop.\n\n\n GridBodyCtrl.prototype.disableBrowserDragging = function () {\n this.addManagedListener(this.eGridBody, 'dragstart', function (event) {\n if (event.target instanceof HTMLImageElement) {\n event.preventDefault();\n return false;\n }\n });\n };\n\n GridBodyCtrl.prototype.addStopEditingWhenGridLosesFocus = function () {\n var _this = this;\n\n if (!this.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus()) {\n return;\n }\n\n var focusOutListener = function focusOutListener(event) {\n // this is the element the focus is moving to\n var elementWithFocus = event.relatedTarget;\n\n if (getTabIndex(elementWithFocus) === null) {\n _this.rowRenderer.stopEditing();\n\n return;\n }\n\n var clickInsideGrid = // see if click came from inside the viewports\n viewports.some(function (viewport) {\n return viewport.contains(elementWithFocus);\n }) // and also that it's not from a detail grid\n && _this.mouseEventService.isElementInThisGrid(elementWithFocus);\n\n if (!clickInsideGrid) {\n var popupService = _this.popupService;\n clickInsideGrid = popupService.getActivePopups().some(function (popup) {\n return popup.contains(elementWithFocus);\n }) || popupService.isElementWithinCustomPopup(elementWithFocus);\n }\n\n if (!clickInsideGrid) {\n _this.rowRenderer.stopEditing();\n }\n };\n\n var viewports = [this.eBodyViewport, this.eBottom, this.eTop, this.eStickyTop];\n viewports.forEach(function (viewport) {\n return _this.addManagedListener(viewport, 'focusout', focusOutListener);\n });\n };\n\n GridBodyCtrl.prototype.updateRowCount = function () {\n var headerCount = this.headerNavigationService.getHeaderRowCount();\n var rowCount = this.rowModel.isLastRowIndexKnown() ? this.rowModel.getRowCount() : -1;\n var total = rowCount === -1 ? -1 : headerCount + rowCount;\n this.comp.setRowCount(total);\n };\n\n GridBodyCtrl.prototype.registerBodyViewportResizeListener = function (listener) {\n this.comp.registerBodyViewportResizeListener(listener);\n };\n\n GridBodyCtrl.prototype.setVerticalScrollPaddingVisible = function (visible) {\n var overflowY = visible ? 'scroll' : 'hidden';\n this.comp.setPinnedTopBottomOverflowY(overflowY);\n };\n\n GridBodyCtrl.prototype.isVerticalScrollShowing = function () {\n var show = this.gridOptionsWrapper.isAlwaysShowVerticalScroll();\n var cssClass = show ? CSS_CLASS_FORCE_VERTICAL_SCROLL : null;\n var allowVerticalScroll = this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_NORMAL;\n this.comp.setAlwaysVerticalScrollClass(cssClass, show);\n return show || allowVerticalScroll && isVerticalScrollShowing(this.eBodyViewport);\n };\n\n GridBodyCtrl.prototype.setupRowAnimationCssClass = function () {\n var _this = this;\n\n var listener = function listener() {\n // we don't want to use row animation if scaling, as rows jump strangely as you scroll,\n // when scaling and doing row animation.\n var animateRows = _this.gridOptionsWrapper.isAnimateRows() && !_this.rowContainerHeightService.isStretching();\n var animateRowsCssClass = animateRows ? RowAnimationCssClasses.ANIMATION_ON : RowAnimationCssClasses.ANIMATION_OFF;\n\n _this.comp.setRowAnimationCssOnBodyViewport(animateRowsCssClass, animateRows);\n };\n\n listener();\n this.addManagedListener(this.eventService, Events.EVENT_HEIGHT_SCALE_CHANGED, listener);\n };\n\n GridBodyCtrl.prototype.getGridBodyElement = function () {\n return this.eGridBody;\n };\n\n GridBodyCtrl.prototype.addBodyViewportListener = function () {\n var _this = this; // we want to listen for clicks directly on the eBodyViewport, so the user has a way of showing\n // the context menu if no rows or columns are displayed, or user simply clicks outside of a cell\n\n\n var listener = function listener(mouseEvent) {\n if (_this.gridOptionsWrapper.isPreventDefaultOnContextMenu()) {\n mouseEvent.preventDefault();\n }\n\n var target = mouseEvent.target;\n\n if (target === _this.eBodyViewport || target === _this.ctrlsService.getCenterRowContainerCtrl().getViewportElement()) {\n // show it\n if (_this.contextMenuFactory) {\n _this.contextMenuFactory.onContextMenu(mouseEvent, null, null, null, null, _this.eGridBody);\n }\n }\n };\n\n this.addManagedListener(this.eBodyViewport, 'contextmenu', listener);\n this.addManagedListener(this.eBodyViewport, 'wheel', this.onBodyViewportWheel.bind(this));\n this.addManagedListener(this.eStickyTop, 'wheel', this.onStickyTopWheel.bind(this));\n };\n\n GridBodyCtrl.prototype.onBodyViewportWheel = function (e) {\n if (!this.gridOptionsWrapper.isSuppressScrollWhenPopupsAreOpen()) {\n return;\n }\n\n if (this.popupService.hasAnchoredPopup()) {\n e.preventDefault();\n }\n };\n\n GridBodyCtrl.prototype.onStickyTopWheel = function (e) {\n e.preventDefault();\n\n if (e.offsetY) {\n this.scrollVertically(e.deltaY);\n }\n };\n\n GridBodyCtrl.prototype.getGui = function () {\n return this.eGridBody;\n }; // called by rowDragFeature\n\n\n GridBodyCtrl.prototype.scrollVertically = function (pixels) {\n var oldScrollPosition = this.eBodyViewport.scrollTop;\n this.bodyScrollFeature.setVerticalScrollPosition(oldScrollPosition + pixels);\n return this.eBodyViewport.scrollTop - oldScrollPosition;\n };\n\n GridBodyCtrl.prototype.addRowDragListener = function () {\n this.rowDragFeature = this.createManagedBean(new RowDragFeature(this.eBodyViewport));\n this.dragAndDropService.addDropTarget(this.rowDragFeature);\n };\n\n GridBodyCtrl.prototype.getRowDragFeature = function () {\n return this.rowDragFeature;\n };\n\n GridBodyCtrl.prototype.onPinnedRowDataChanged = function () {\n this.setFloatingHeights();\n };\n\n GridBodyCtrl.prototype.setFloatingHeights = function () {\n var pinnedRowModel = this.pinnedRowModel;\n var floatingTopHeight = pinnedRowModel.getPinnedTopTotalHeight();\n\n if (floatingTopHeight) {\n // adding 1px for cell bottom border\n floatingTopHeight += 1;\n }\n\n var floatingBottomHeight = pinnedRowModel.getPinnedBottomTotalHeight();\n\n if (floatingBottomHeight) {\n // adding 1px for cell bottom border\n floatingBottomHeight += 1;\n }\n\n this.comp.setTopHeight(floatingTopHeight);\n this.comp.setBottomHeight(floatingBottomHeight);\n this.comp.setTopDisplay(floatingTopHeight ? 'inherit' : 'none');\n this.comp.setBottomDisplay(floatingBottomHeight ? 'inherit' : 'none');\n this.setStickyTopOffsetTop();\n };\n\n GridBodyCtrl.prototype.setStickyTopHeight = function (height) {\n if (height === void 0) {\n height = 0;\n } // console.log('setting sticky top height ' + height);\n\n\n this.comp.setStickyTopHeight(height + \"px\");\n this.stickyTopHeight = height;\n };\n\n GridBodyCtrl.prototype.getStickyTopHeight = function () {\n return this.stickyTopHeight;\n };\n\n GridBodyCtrl.prototype.setStickyTopWidth = function (vScrollVisible) {\n if (!vScrollVisible) {\n this.comp.setStickyTopWidth('100%');\n } else {\n var scrollbarWidth = this.gridOptionsWrapper.getScrollbarWidth();\n this.comp.setStickyTopWidth(\"calc(100% - \" + scrollbarWidth + \"px)\");\n }\n };\n\n GridBodyCtrl.prototype.onHeaderHeightChanged = function () {\n this.setStickyTopOffsetTop();\n };\n\n GridBodyCtrl.prototype.setStickyTopOffsetTop = function () {\n var headerCtrl = this.ctrlsService.getGridHeaderCtrl();\n var headerHeight = headerCtrl.getHeaderHeight();\n var pinnedTopHeight = this.pinnedRowModel.getPinnedTopTotalHeight();\n var height = 0;\n\n if (headerHeight > 0) {\n height += headerHeight + 1;\n }\n\n if (pinnedTopHeight > 0) {\n height += pinnedTopHeight + 1;\n }\n\n this.comp.setStickyTopTop(height + \"px\");\n }; // method will call itself if no available width. this covers if the grid\n // isn't visible, but is just about to be visible.\n\n\n GridBodyCtrl.prototype.sizeColumnsToFit = function (params, nextTimeout) {\n var _this = this;\n\n var removeScrollWidth = this.isVerticalScrollShowing();\n var scrollWidthToRemove = removeScrollWidth ? this.gridOptionsWrapper.getScrollbarWidth() : 0;\n var bodyViewportWidth = getInnerWidth(this.eBodyViewport);\n var availableWidth = bodyViewportWidth - scrollWidthToRemove;\n\n if (availableWidth > 0) {\n this.columnModel.sizeColumnsToFit(availableWidth, \"sizeColumnsToFit\", false, params);\n return;\n }\n\n if (nextTimeout === undefined) {\n window.setTimeout(function () {\n _this.sizeColumnsToFit(params, 100);\n }, 0);\n } else if (nextTimeout === 100) {\n window.setTimeout(function () {\n _this.sizeColumnsToFit(params, 500);\n }, 100);\n } else if (nextTimeout === 500) {\n window.setTimeout(function () {\n _this.sizeColumnsToFit(params, -1);\n }, 500);\n } else {\n 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?');\n }\n }; // + rangeService\n\n\n GridBodyCtrl.prototype.addScrollEventListener = function (listener) {\n this.eBodyViewport.addEventListener('scroll', listener);\n }; // + focusService\n\n\n GridBodyCtrl.prototype.removeScrollEventListener = function (listener) {\n this.eBodyViewport.removeEventListener('scroll', listener);\n };\n\n __decorate$1P([Autowired('rowContainerHeightService')], GridBodyCtrl.prototype, \"rowContainerHeightService\", void 0);\n\n __decorate$1P([Autowired('ctrlsService')], GridBodyCtrl.prototype, \"ctrlsService\", void 0);\n\n __decorate$1P([Autowired('columnModel')], GridBodyCtrl.prototype, \"columnModel\", void 0);\n\n __decorate$1P([Autowired('scrollVisibleService')], GridBodyCtrl.prototype, \"scrollVisibleService\", void 0);\n\n __decorate$1P([Optional('contextMenuFactory')], GridBodyCtrl.prototype, \"contextMenuFactory\", void 0);\n\n __decorate$1P([Autowired('headerNavigationService')], GridBodyCtrl.prototype, \"headerNavigationService\", void 0);\n\n __decorate$1P([Autowired('dragAndDropService')], GridBodyCtrl.prototype, \"dragAndDropService\", void 0);\n\n __decorate$1P([Autowired('pinnedRowModel')], GridBodyCtrl.prototype, \"pinnedRowModel\", void 0);\n\n __decorate$1P([Autowired('rowRenderer')], GridBodyCtrl.prototype, \"rowRenderer\", void 0);\n\n __decorate$1P([Autowired('popupService')], GridBodyCtrl.prototype, \"popupService\", void 0);\n\n __decorate$1P([Autowired('mouseEventService')], GridBodyCtrl.prototype, \"mouseEventService\", void 0);\n\n __decorate$1P([Autowired('rowModel')], GridBodyCtrl.prototype, \"rowModel\", void 0);\n\n return GridBodyCtrl;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar SelectionHandleType;\n\n(function (SelectionHandleType) {\n SelectionHandleType[SelectionHandleType[\"FILL\"] = 0] = \"FILL\";\n SelectionHandleType[SelectionHandleType[\"RANGE\"] = 1] = \"RANGE\";\n})(SelectionHandleType || (SelectionHandleType = {}));\n\nvar CellRangeType;\n\n(function (CellRangeType) {\n CellRangeType[CellRangeType[\"VALUE\"] = 0] = \"VALUE\";\n CellRangeType[CellRangeType[\"DIMENSION\"] = 1] = \"DIMENSION\";\n})(CellRangeType || (CellRangeType = {}));\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar CSS_CELL_RANGE_SELECTED = 'ag-cell-range-selected';\nvar CSS_CELL_RANGE_CHART = 'ag-cell-range-chart';\nvar CSS_CELL_RANGE_SINGLE_CELL = 'ag-cell-range-single-cell';\nvar CSS_CELL_RANGE_CHART_CATEGORY = 'ag-cell-range-chart-category';\nvar CSS_CELL_RANGE_HANDLE = 'ag-cell-range-handle';\nvar CSS_CELL_RANGE_TOP = 'ag-cell-range-top';\nvar CSS_CELL_RANGE_RIGHT = 'ag-cell-range-right';\nvar CSS_CELL_RANGE_BOTTOM = 'ag-cell-range-bottom';\nvar CSS_CELL_RANGE_LEFT = 'ag-cell-range-left';\n\nvar CellRangeFeature =\n/** @class */\nfunction () {\n function CellRangeFeature(beans, ctrl) {\n this.beans = beans;\n this.cellCtrl = ctrl;\n }\n\n CellRangeFeature.prototype.setComp = function (cellComp, eGui) {\n this.cellComp = cellComp;\n this.eGui = eGui;\n this.onRangeSelectionChanged();\n };\n\n CellRangeFeature.prototype.onRangeSelectionChanged = function () {\n // when using reactUi, given UI is async, it's possible this method is called before the comp is registered\n if (!this.cellComp) {\n return;\n }\n\n this.rangeCount = this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition());\n this.hasChartRange = this.getHasChartRange();\n this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_SELECTED, this.rangeCount !== 0);\n this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_SELECTED + \"-1\", this.rangeCount === 1);\n this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_SELECTED + \"-2\", this.rangeCount === 2);\n this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_SELECTED + \"-3\", this.rangeCount === 3);\n this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_SELECTED + \"-4\", this.rangeCount >= 4);\n this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_CHART, this.hasChartRange);\n setAriaSelected(this.eGui, this.rangeCount > 0 ? true : undefined);\n this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_SINGLE_CELL, this.isSingleCell());\n this.updateRangeBorders();\n this.refreshHandle();\n };\n\n CellRangeFeature.prototype.updateRangeBorders = function () {\n var rangeBorders = this.getRangeBorders();\n var isSingleCell = this.isSingleCell();\n var isTop = !isSingleCell && rangeBorders.top;\n var isRight = !isSingleCell && rangeBorders.right;\n var isBottom = !isSingleCell && rangeBorders.bottom;\n var isLeft = !isSingleCell && rangeBorders.left;\n this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_TOP, isTop);\n this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_RIGHT, isRight);\n this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_BOTTOM, isBottom);\n this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_LEFT, isLeft);\n };\n\n CellRangeFeature.prototype.isSingleCell = function () {\n var rangeService = this.beans.rangeService;\n return this.rangeCount === 1 && rangeService && !rangeService.isMoreThanOneCell();\n };\n\n CellRangeFeature.prototype.getHasChartRange = function () {\n var rangeService = this.beans.rangeService;\n\n if (!this.rangeCount || !rangeService) {\n return false;\n }\n\n var cellRanges = rangeService.getCellRanges();\n return cellRanges.length > 0 && cellRanges.every(function (range) {\n return includes([CellRangeType.DIMENSION, CellRangeType.VALUE], range.type);\n });\n };\n\n CellRangeFeature.prototype.updateRangeBordersIfRangeCount = function () {\n // we only need to update range borders if we are in a range\n if (this.rangeCount > 0) {\n this.updateRangeBorders();\n this.refreshHandle();\n }\n };\n\n CellRangeFeature.prototype.getRangeBorders = function () {\n var _this = this;\n\n var isRtl = this.beans.gridOptionsWrapper.isEnableRtl();\n var top = false;\n var right = false;\n var bottom = false;\n var left = false;\n var thisCol = this.cellCtrl.getCellPosition().column;\n var _a = this.beans,\n rangeService = _a.rangeService,\n columnModel = _a.columnModel;\n var leftCol;\n var rightCol;\n\n if (isRtl) {\n leftCol = columnModel.getDisplayedColAfter(thisCol);\n rightCol = columnModel.getDisplayedColBefore(thisCol);\n } else {\n leftCol = columnModel.getDisplayedColBefore(thisCol);\n rightCol = columnModel.getDisplayedColAfter(thisCol);\n }\n\n var ranges = rangeService.getCellRanges().filter(function (range) {\n return rangeService.isCellInSpecificRange(_this.cellCtrl.getCellPosition(), range);\n }); // this means we are the first column in the grid\n\n if (!leftCol) {\n left = true;\n } // this means we are the last column in the grid\n\n\n if (!rightCol) {\n right = true;\n }\n\n for (var i = 0; i < ranges.length; i++) {\n if (top && right && bottom && left) {\n break;\n }\n\n var range = ranges[i];\n var startRow = rangeService.getRangeStartRow(range);\n var endRow = rangeService.getRangeEndRow(range);\n\n if (!top && this.beans.rowPositionUtils.sameRow(startRow, this.cellCtrl.getCellPosition())) {\n top = true;\n }\n\n if (!bottom && this.beans.rowPositionUtils.sameRow(endRow, this.cellCtrl.getCellPosition())) {\n bottom = true;\n }\n\n if (!left && leftCol && range.columns.indexOf(leftCol) < 0) {\n left = true;\n }\n\n if (!right && rightCol && range.columns.indexOf(rightCol) < 0) {\n right = true;\n }\n }\n\n return {\n top: top,\n right: right,\n bottom: bottom,\n left: left\n };\n };\n\n CellRangeFeature.prototype.refreshHandle = function () {\n if (!this.beans.rangeService) {\n return;\n }\n\n var shouldHaveSelectionHandle = this.shouldHaveSelectionHandle();\n\n if (this.selectionHandle && !shouldHaveSelectionHandle) {\n this.selectionHandle = this.beans.context.destroyBean(this.selectionHandle);\n }\n\n if (shouldHaveSelectionHandle) {\n this.addSelectionHandle();\n }\n\n this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_HANDLE, !!this.selectionHandle);\n };\n\n CellRangeFeature.prototype.shouldHaveSelectionHandle = function () {\n var _a = this.beans,\n gridOptionsWrapper = _a.gridOptionsWrapper,\n rangeService = _a.rangeService;\n var cellRanges = rangeService.getCellRanges();\n var rangesLen = cellRanges.length;\n\n if (this.rangeCount < 1 || rangesLen < 1) {\n return false;\n }\n\n var cellRange = last(cellRanges);\n var cellPosition = this.cellCtrl.getCellPosition();\n var isFillHandleAvailable = gridOptionsWrapper.isEnableFillHandle() && !this.cellCtrl.isSuppressFillHandle();\n var isRangeHandleAvailable = gridOptionsWrapper.isEnableRangeHandle();\n var handleIsAvailable = rangesLen === 1 && !this.cellCtrl.isEditing() && (isFillHandleAvailable || isRangeHandleAvailable);\n\n if (this.hasChartRange) {\n var hasCategoryRange = cellRanges[0].type === CellRangeType.DIMENSION;\n var isCategoryCell = hasCategoryRange && rangeService.isCellInSpecificRange(cellPosition, cellRanges[0]);\n this.cellComp.addOrRemoveCssClass(CSS_CELL_RANGE_CHART_CATEGORY, isCategoryCell);\n handleIsAvailable = cellRange.type === CellRangeType.VALUE;\n }\n\n return handleIsAvailable && cellRange.endRow != null && rangeService.isContiguousRange(cellRange) && rangeService.isBottomRightCell(cellRange, cellPosition);\n };\n\n CellRangeFeature.prototype.addSelectionHandle = function () {\n var _a = this.beans,\n gridOptionsWrapper = _a.gridOptionsWrapper,\n rangeService = _a.rangeService;\n var cellRangeType = last(rangeService.getCellRanges()).type;\n var selectionHandleFill = gridOptionsWrapper.isEnableFillHandle() && missing(cellRangeType);\n var type = selectionHandleFill ? SelectionHandleType.FILL : SelectionHandleType.RANGE;\n\n if (this.selectionHandle && this.selectionHandle.getType() !== type) {\n this.selectionHandle = this.beans.context.destroyBean(this.selectionHandle);\n }\n\n if (!this.selectionHandle) {\n this.selectionHandle = this.beans.selectionHandleFactory.createSelectionHandle(type);\n }\n\n this.selectionHandle.refresh(this.cellCtrl);\n };\n\n CellRangeFeature.prototype.destroy = function () {\n this.beans.context.destroyBean(this.selectionHandle);\n };\n\n return CellRangeFeature;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1$ = undefined && undefined.__extends || function () {\n var _extendStatics58 = function extendStatics(d, b) {\n _extendStatics58 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics58(d, b);\n };\n\n return function (d, b) {\n _extendStatics58(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n/**\n * Takes care of:\n * #) Cell Width (including when doing cell spanning, which makes width cover many columns)\n * #) Cell Height (when doing row span, otherwise we don't touch the height as it's just row height)\n * #) Cell Left (the horizontal positioning of the cell, the vertical positioning is on the row)\n */\n\n\nvar CellPositionFeature =\n/** @class */\nfunction (_super) {\n __extends$1$(CellPositionFeature, _super);\n\n function CellPositionFeature(ctrl, beans) {\n var _this = _super.call(this) || this;\n\n _this.cellCtrl = ctrl;\n _this.beans = beans;\n _this.column = ctrl.getColumn();\n _this.rowNode = ctrl.getRowNode();\n\n _this.setupColSpan();\n\n _this.setupRowSpan();\n\n return _this;\n }\n\n CellPositionFeature.prototype.setupRowSpan = function () {\n this.rowSpan = this.column.getRowSpan(this.rowNode);\n };\n\n CellPositionFeature.prototype.setComp = function (eGui) {\n this.eGui = eGui;\n this.onLeftChanged();\n this.onWidthChanged();\n this.applyRowSpan();\n };\n\n CellPositionFeature.prototype.onDisplayColumnsChanged = function () {\n var colsSpanning = this.getColSpanningList();\n\n if (!areEqual(this.colsSpanning, colsSpanning)) {\n this.colsSpanning = colsSpanning;\n this.onWidthChanged();\n this.onLeftChanged(); // left changes when doing RTL\n }\n };\n\n CellPositionFeature.prototype.setupColSpan = function () {\n // if no col span is active, then we don't set it up, as it would be wasteful of CPU\n if (this.column.getColDef().colSpan == null) {\n return;\n }\n\n this.colsSpanning = this.getColSpanningList(); // because we are col spanning, a reorder of the cols can change what cols we are spanning over\n\n this.addManagedListener(this.beans.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayColumnsChanged.bind(this)); // because we are spanning over multiple cols, we check for width any time any cols width changes.\n // this is expensive - really we should be explicitly checking only the cols we are spanning over\n // instead of every col, however it would be tricky code to track the cols we are spanning over, so\n // because hardly anyone will be using colSpan, am favouring this easier way for more maintainable code.\n\n this.addManagedListener(this.beans.eventService, Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, this.onWidthChanged.bind(this));\n };\n\n CellPositionFeature.prototype.onWidthChanged = function () {\n if (!this.eGui) {\n return;\n }\n\n var width = this.getCellWidth();\n this.eGui.style.width = width + \"px\";\n };\n\n CellPositionFeature.prototype.getCellWidth = function () {\n if (!this.colsSpanning) {\n return this.column.getActualWidth();\n }\n\n return this.colsSpanning.reduce(function (width, col) {\n return width + col.getActualWidth();\n }, 0);\n };\n\n CellPositionFeature.prototype.getColSpanningList = function () {\n var colSpan = this.column.getColSpan(this.rowNode);\n var colsSpanning = []; // if just one col, the col span is just the column we are in\n\n if (colSpan === 1) {\n colsSpanning.push(this.column);\n } else {\n var pointer = this.column;\n var pinned = this.column.getPinned();\n\n for (var i = 0; pointer && i < colSpan; i++) {\n colsSpanning.push(pointer);\n pointer = this.beans.columnModel.getDisplayedColAfter(pointer);\n\n if (!pointer || missing(pointer)) {\n break;\n } // we do not allow col spanning to span outside of pinned areas\n\n\n if (pinned !== pointer.getPinned()) {\n break;\n }\n }\n }\n\n return colsSpanning;\n };\n\n CellPositionFeature.prototype.onLeftChanged = function () {\n if (!this.eGui) {\n return;\n }\n\n var left = this.modifyLeftForPrintLayout(this.getCellLeft());\n this.eGui.style.left = left + 'px';\n };\n\n CellPositionFeature.prototype.getCellLeft = function () {\n var mostLeftCol;\n\n if (this.beans.gridOptionsWrapper.isEnableRtl() && this.colsSpanning) {\n mostLeftCol = last(this.colsSpanning);\n } else {\n mostLeftCol = this.column;\n }\n\n return mostLeftCol.getLeft();\n };\n\n CellPositionFeature.prototype.modifyLeftForPrintLayout = function (leftPosition) {\n if (!this.cellCtrl.isPrintLayout() || this.column.getPinned() === Constants.PINNED_LEFT) {\n return leftPosition;\n }\n\n var leftWidth = this.beans.columnModel.getDisplayedColumnsLeftWidth();\n\n if (this.column.getPinned() === Constants.PINNED_RIGHT) {\n var bodyWidth = this.beans.columnModel.getBodyContainerWidth();\n return leftWidth + bodyWidth + (leftPosition || 0);\n } // is in body\n\n\n return leftWidth + (leftPosition || 0);\n };\n\n CellPositionFeature.prototype.applyRowSpan = function () {\n if (this.rowSpan === 1) {\n return;\n }\n\n var singleRowHeight = this.beans.gridOptionsWrapper.getRowHeightAsNumber();\n var totalRowHeight = singleRowHeight * this.rowSpan;\n this.eGui.style.height = totalRowHeight + \"px\";\n this.eGui.style.zIndex = '1';\n }; // overriding to make public, as we don't dispose this bean via context\n\n\n CellPositionFeature.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n return CellPositionFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1_ = undefined && undefined.__extends || function () {\n var _extendStatics59 = function extendStatics(d, b) {\n _extendStatics59 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics59(d, b);\n };\n\n return function (d, b) {\n _extendStatics59(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar CellCustomStyleFeature =\n/** @class */\nfunction (_super) {\n __extends$1_(CellCustomStyleFeature, _super);\n\n function CellCustomStyleFeature(ctrl, beans) {\n var _this = _super.call(this) || this;\n\n _this.staticClasses = [];\n _this.cellCtrl = ctrl;\n _this.beans = beans;\n _this.column = ctrl.getColumn();\n _this.rowNode = ctrl.getRowNode();\n return _this;\n }\n\n CellCustomStyleFeature.prototype.setComp = function (comp) {\n this.cellComp = comp;\n this.applyUserStyles();\n this.applyCellClassRules();\n this.applyClassesFromColDef();\n };\n\n CellCustomStyleFeature.prototype.applyCellClassRules = function () {\n var _this = this;\n\n var colDef = this.column.getColDef();\n var cellClassParams = {\n value: this.cellCtrl.getValue(),\n data: this.rowNode.data,\n node: this.rowNode,\n colDef: colDef,\n column: this.column,\n rowIndex: this.rowNode.rowIndex,\n api: this.beans.gridOptionsWrapper.getApi(),\n columnApi: this.beans.gridOptionsWrapper.getColumnApi(),\n context: this.beans.gridOptionsWrapper.getContext()\n };\n this.beans.stylingService.processClassRules(colDef.cellClassRules, cellClassParams, function (className) {\n return _this.cellComp.addOrRemoveCssClass(className, true);\n }, function (className) {\n return _this.cellComp.addOrRemoveCssClass(className, false);\n });\n };\n\n CellCustomStyleFeature.prototype.applyUserStyles = function () {\n var colDef = this.column.getColDef();\n\n if (!colDef.cellStyle) {\n return;\n }\n\n var styles;\n\n if (typeof colDef.cellStyle === 'function') {\n var cellStyleParams = {\n column: this.column,\n value: this.cellCtrl.getValue(),\n colDef: colDef,\n data: this.rowNode.data,\n node: this.rowNode,\n rowIndex: this.rowNode.rowIndex,\n api: this.beans.gridOptionsWrapper.getApi(),\n columnApi: this.beans.gridOptionsWrapper.getColumnApi(),\n context: this.beans.gridOptionsWrapper.getContext()\n };\n var cellStyleFunc = colDef.cellStyle;\n styles = cellStyleFunc(cellStyleParams);\n } else {\n styles = colDef.cellStyle;\n }\n\n this.cellComp.setUserStyles(styles);\n };\n\n CellCustomStyleFeature.prototype.applyClassesFromColDef = function () {\n var _this = this;\n\n var colDef = this.column.getColDef();\n var cellClassParams = {\n value: this.cellCtrl.getValue(),\n data: this.rowNode.data,\n node: this.rowNode,\n column: this.column,\n colDef: colDef,\n rowIndex: this.rowNode.rowIndex,\n api: this.beans.gridOptionsWrapper.getApi(),\n columnApi: this.beans.gridOptionsWrapper.getColumnApi(),\n context: this.beans.gridOptionsWrapper.getContext()\n };\n\n if (this.staticClasses.length) {\n this.staticClasses.forEach(function (className) {\n return _this.cellComp.addOrRemoveCssClass(className, false);\n });\n }\n\n this.staticClasses = this.beans.stylingService.getStaticCellClasses(colDef, cellClassParams);\n\n if (this.staticClasses.length) {\n this.staticClasses.forEach(function (className) {\n return _this.cellComp.addOrRemoveCssClass(className, true);\n });\n }\n }; // overriding to make public, as we don't dispose this bean via context\n\n\n CellCustomStyleFeature.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n return CellCustomStyleFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1Z = undefined && undefined.__extends || function () {\n var _extendStatics60 = function extendStatics(d, b) {\n _extendStatics60 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics60(d, b);\n };\n\n return function (d, b) {\n _extendStatics60(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar TooltipFeature =\n/** @class */\nfunction (_super) {\n __extends$1Z(TooltipFeature, _super);\n\n function TooltipFeature(ctrl, beans) {\n var _this = _super.call(this) || this;\n\n _this.ctrl = ctrl;\n _this.beans = beans;\n return _this;\n }\n\n TooltipFeature.prototype.setComp = function (comp) {\n this.comp = comp;\n this.setupTooltip();\n };\n\n TooltipFeature.prototype.setupTooltip = function () {\n this.browserTooltips = this.beans.gridOptionsWrapper.isEnableBrowserTooltips();\n this.updateTooltipText();\n\n if (this.browserTooltips) {\n this.comp.setTitle(this.tooltip != null ? this.tooltip : undefined);\n } else {\n this.createTooltipFeatureIfNeeded();\n }\n };\n\n TooltipFeature.prototype.updateTooltipText = function () {\n this.tooltip = this.ctrl.getTooltipValue();\n };\n\n TooltipFeature.prototype.createTooltipFeatureIfNeeded = function () {\n var _this = this;\n\n if (this.genericTooltipFeature != null) {\n return;\n }\n\n var parent = {\n getTooltipParams: function getTooltipParams() {\n return _this.getTooltipParams();\n },\n getGui: function getGui() {\n return _this.ctrl.getGui();\n }\n };\n this.genericTooltipFeature = this.createManagedBean(new CustomTooltipFeature(parent), this.beans.context);\n };\n\n TooltipFeature.prototype.refreshToolTip = function () {\n this.updateTooltipText();\n\n if (this.browserTooltips) {\n this.comp.setTitle(this.tooltip != null ? this.tooltip : undefined);\n }\n };\n\n TooltipFeature.prototype.getTooltipParams = function () {\n var ctrl = this.ctrl;\n var column = ctrl.getColumn ? ctrl.getColumn() : undefined;\n var colDef = ctrl.getColDef ? ctrl.getColDef() : undefined;\n var rowNode = ctrl.getRowNode ? ctrl.getRowNode() : undefined;\n return {\n location: ctrl.getLocation(),\n colDef: colDef,\n column: column,\n rowIndex: ctrl.getRowIndex ? ctrl.getRowIndex() : undefined,\n node: rowNode,\n data: rowNode ? rowNode.data : undefined,\n value: this.getTooltipText(),\n valueFormatted: ctrl.getValueFormatted ? ctrl.getValueFormatted() : undefined\n };\n };\n\n TooltipFeature.prototype.getTooltipText = function () {\n return this.tooltip;\n }; // overriding to make public, as we don't dispose this bean via context\n\n\n TooltipFeature.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n return TooltipFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __decorate$1O = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n/** Using the IoC has a slight performance consideration, which is no problem most of the\n * time, unless we are trashing objects - which is the case when scrolling and rowComp\n * and cellComp. So for performance reasons, RowComp and CellComp do not get autowired\n * with the IoC. Instead they get passed this object which is all the beans the RowComp\n * and CellComp need. Not autowiring all the cells gives performance improvement. */\n\n\nvar Beans =\n/** @class */\nfunction () {\n function Beans() {}\n\n Beans.prototype.postConstruct = function () {\n this.doingMasterDetail = this.gridOptionsWrapper.isMasterDetail();\n\n if (this.gridOptionsWrapper.isRowModelDefault()) {\n this.clientSideRowModel = this.rowModel;\n }\n\n if (this.gridOptionsWrapper.isRowModelServerSide()) {\n this.serverSideRowModel = this.rowModel;\n }\n };\n\n __decorate$1O([Autowired('resizeObserverService')], Beans.prototype, \"resizeObserverService\", void 0);\n\n __decorate$1O([Autowired('paginationProxy')], Beans.prototype, \"paginationProxy\", void 0);\n\n __decorate$1O([Autowired('context')], Beans.prototype, \"context\", void 0);\n\n __decorate$1O([Autowired('columnApi')], Beans.prototype, \"columnApi\", void 0);\n\n __decorate$1O([Autowired('gridApi')], Beans.prototype, \"gridApi\", void 0);\n\n __decorate$1O([Autowired('gridOptionsWrapper')], Beans.prototype, \"gridOptionsWrapper\", void 0);\n\n __decorate$1O([Autowired('expressionService')], Beans.prototype, \"expressionService\", void 0);\n\n __decorate$1O([Autowired('rowRenderer')], Beans.prototype, \"rowRenderer\", void 0);\n\n __decorate$1O([Autowired('templateService')], Beans.prototype, \"templateService\", void 0);\n\n __decorate$1O([Autowired('valueService')], Beans.prototype, \"valueService\", void 0);\n\n __decorate$1O([Autowired('eventService')], Beans.prototype, \"eventService\", void 0);\n\n __decorate$1O([Autowired('columnModel')], Beans.prototype, \"columnModel\", void 0);\n\n __decorate$1O([Autowired('headerNavigationService')], Beans.prototype, \"headerNavigationService\", void 0);\n\n __decorate$1O([Autowired('navigationService')], Beans.prototype, \"navigationService\", void 0);\n\n __decorate$1O([Autowired('columnAnimationService')], Beans.prototype, \"columnAnimationService\", void 0);\n\n __decorate$1O([Optional('rangeService')], Beans.prototype, \"rangeService\", void 0);\n\n __decorate$1O([Autowired('focusService')], Beans.prototype, \"focusService\", void 0);\n\n __decorate$1O([Optional('contextMenuFactory')], Beans.prototype, \"contextMenuFactory\", void 0);\n\n __decorate$1O([Autowired('popupService')], Beans.prototype, \"popupService\", void 0);\n\n __decorate$1O([Autowired('valueFormatterService')], Beans.prototype, \"valueFormatterService\", void 0);\n\n __decorate$1O([Autowired('stylingService')], Beans.prototype, \"stylingService\", void 0);\n\n __decorate$1O([Autowired('columnHoverService')], Beans.prototype, \"columnHoverService\", void 0);\n\n __decorate$1O([Autowired('userComponentFactory')], Beans.prototype, \"userComponentFactory\", void 0);\n\n __decorate$1O([Autowired('userComponentRegistry')], Beans.prototype, \"userComponentRegistry\", void 0);\n\n __decorate$1O([Autowired('animationFrameService')], Beans.prototype, \"animationFrameService\", void 0);\n\n __decorate$1O([Autowired('dragAndDropService')], Beans.prototype, \"dragAndDropService\", void 0);\n\n __decorate$1O([Autowired('sortController')], Beans.prototype, \"sortController\", void 0);\n\n __decorate$1O([Autowired('filterManager')], Beans.prototype, \"filterManager\", void 0);\n\n __decorate$1O([Autowired('rowContainerHeightService')], Beans.prototype, \"rowContainerHeightService\", void 0);\n\n __decorate$1O([Autowired('frameworkOverrides')], Beans.prototype, \"frameworkOverrides\", void 0);\n\n __decorate$1O([Autowired('cellPositionUtils')], Beans.prototype, \"cellPositionUtils\", void 0);\n\n __decorate$1O([Autowired('rowPositionUtils')], Beans.prototype, \"rowPositionUtils\", void 0);\n\n __decorate$1O([Autowired('selectionService')], Beans.prototype, \"selectionService\", void 0);\n\n __decorate$1O([Optional('selectionHandleFactory')], Beans.prototype, \"selectionHandleFactory\", void 0);\n\n __decorate$1O([Autowired('rowCssClassCalculator')], Beans.prototype, \"rowCssClassCalculator\", void 0);\n\n __decorate$1O([Autowired('rowModel')], Beans.prototype, \"rowModel\", void 0);\n\n __decorate$1O([Autowired('ctrlsService')], Beans.prototype, \"ctrlsService\", void 0);\n\n __decorate$1O([Autowired('ctrlsFactory')], Beans.prototype, \"ctrlsFactory\", void 0);\n\n __decorate$1O([Autowired('agStackComponentsRegistry')], Beans.prototype, \"agStackComponentsRegistry\", void 0);\n\n __decorate$1O([Autowired('valueCache')], Beans.prototype, \"valueCache\", void 0);\n\n __decorate$1O([Autowired('rowNodeEventThrottle')], Beans.prototype, \"rowNodeEventThrottle\", void 0);\n\n __decorate$1O([PostConstruct], Beans.prototype, \"postConstruct\", null);\n\n Beans = __decorate$1O([Bean('beans')], Beans);\n return Beans;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1Y = undefined && undefined.__extends || function () {\n var _extendStatics61 = function extendStatics(d, b) {\n _extendStatics61 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics61(d, b);\n };\n\n return function (d, b) {\n _extendStatics61(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar CellMouseListenerFeature =\n/** @class */\nfunction (_super) {\n __extends$1Y(CellMouseListenerFeature, _super);\n\n function CellMouseListenerFeature(ctrl, beans, column) {\n var _this = _super.call(this) || this;\n\n _this.cellCtrl = ctrl;\n _this.beans = beans;\n _this.column = column;\n return _this;\n }\n\n CellMouseListenerFeature.prototype.onMouseEvent = function (eventName, mouseEvent) {\n if (isStopPropagationForAgGrid(mouseEvent)) {\n return;\n }\n\n switch (eventName) {\n case 'click':\n this.onCellClicked(mouseEvent);\n break;\n\n case 'mousedown':\n case 'touchstart':\n this.onMouseDown(mouseEvent);\n break;\n\n case 'dblclick':\n this.onCellDoubleClicked(mouseEvent);\n break;\n\n case 'mouseout':\n this.onMouseOut(mouseEvent);\n break;\n\n case 'mouseover':\n this.onMouseOver(mouseEvent);\n break;\n }\n };\n\n CellMouseListenerFeature.prototype.onCellClicked = function (mouseEvent) {\n // iPad doesn't have double click - so we need to mimic it to enable editing for iPad.\n if (this.isDoubleClickOnIPad()) {\n this.onCellDoubleClicked(mouseEvent);\n mouseEvent.preventDefault(); // if we don't do this, then iPad zooms in\n\n return;\n }\n\n var _a = this.beans,\n eventService = _a.eventService,\n rangeService = _a.rangeService,\n gridOptionsWrapper = _a.gridOptionsWrapper;\n var multiKeyPressed = mouseEvent.ctrlKey || mouseEvent.metaKey;\n\n if (rangeService && multiKeyPressed) {\n // the mousedown event has created the range already, so we only intersect if there is more than one\n // range on this cell\n if (rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()) > 1) {\n rangeService.intersectLastRange(true);\n }\n }\n\n var cellClickedEvent = this.cellCtrl.createEvent(mouseEvent, Events.EVENT_CELL_CLICKED);\n eventService.dispatchEvent(cellClickedEvent);\n var colDef = this.column.getColDef();\n\n if (colDef.onCellClicked) {\n // to make callback async, do in a timeout\n window.setTimeout(function () {\n return colDef.onCellClicked(cellClickedEvent);\n }, 0);\n }\n\n var editOnSingleClick = (gridOptionsWrapper.isSingleClickEdit() || colDef.singleClickEdit) && !gridOptionsWrapper.isSuppressClickEdit();\n\n if (editOnSingleClick) {\n this.cellCtrl.startRowOrCellEdit();\n }\n }; // returns true if on iPad and this is second 'click' event in 200ms\n\n\n CellMouseListenerFeature.prototype.isDoubleClickOnIPad = function () {\n if (!isIOSUserAgent() || isEventSupported('dblclick')) {\n return false;\n }\n\n var nowMillis = new Date().getTime();\n var res = nowMillis - this.lastIPadMouseClickEvent < 200;\n this.lastIPadMouseClickEvent = nowMillis;\n return res;\n };\n\n CellMouseListenerFeature.prototype.onCellDoubleClicked = function (mouseEvent) {\n var colDef = this.column.getColDef(); // always dispatch event to eventService\n\n var cellDoubleClickedEvent = this.cellCtrl.createEvent(mouseEvent, Events.EVENT_CELL_DOUBLE_CLICKED);\n this.beans.eventService.dispatchEvent(cellDoubleClickedEvent); // check if colDef also wants to handle event\n\n if (typeof colDef.onCellDoubleClicked === 'function') {\n // to make the callback async, do in a timeout\n window.setTimeout(function () {\n return colDef.onCellDoubleClicked(cellDoubleClickedEvent);\n }, 0);\n }\n\n var editOnDoubleClick = !this.beans.gridOptionsWrapper.isSingleClickEdit() && !this.beans.gridOptionsWrapper.isSuppressClickEdit();\n\n if (editOnDoubleClick) {\n this.cellCtrl.startRowOrCellEdit(null, null, mouseEvent);\n }\n };\n\n CellMouseListenerFeature.prototype.onMouseDown = function (mouseEvent) {\n var ctrlKey = mouseEvent.ctrlKey,\n metaKey = mouseEvent.metaKey,\n shiftKey = mouseEvent.shiftKey;\n var target = mouseEvent.target;\n var _a = this.beans,\n eventService = _a.eventService,\n rangeService = _a.rangeService; // do not change the range for right-clicks inside an existing range\n\n if (this.isRightClickInExistingRange(mouseEvent)) {\n return;\n }\n\n var ranges = rangeService && rangeService.getCellRanges().length != 0;\n\n if (!shiftKey || !ranges) {\n // We only need to pass true to focusCell when the browser is IE/Edge and we are trying\n // to focus the cell itself. This should never be true if the mousedown was triggered\n // due to a click on a cell editor for example.\n var forceBrowserFocus = isBrowserEdge() && !this.cellCtrl.isEditing() && !isFocusableFormField(target);\n this.cellCtrl.focusCell(forceBrowserFocus);\n } // if shift clicking, and a range exists, we keep the focus on the cell that started the\n // range as the user then changes the range selection.\n\n\n if (shiftKey && ranges) {\n // this stops the cell from getting focused\n mouseEvent.preventDefault();\n } // if we are clicking on a checkbox, we need to make sure the cell wrapping that checkbox\n // is focused but we don't want to change the range selection, so return here.\n\n\n if (this.containsWidget(target)) {\n return;\n }\n\n if (rangeService) {\n var thisCell = this.cellCtrl.getCellPosition();\n\n if (shiftKey) {\n rangeService.extendLatestRangeToCell(thisCell);\n } else {\n var ctrlKeyPressed = ctrlKey || metaKey;\n rangeService.setRangeToCell(thisCell, ctrlKeyPressed);\n }\n }\n\n eventService.dispatchEvent(this.cellCtrl.createEvent(mouseEvent, Events.EVENT_CELL_MOUSE_DOWN));\n };\n\n CellMouseListenerFeature.prototype.isRightClickInExistingRange = function (mouseEvent) {\n var rangeService = this.beans.rangeService;\n\n if (rangeService) {\n var cellInRange = rangeService.isCellInAnyRange(this.cellCtrl.getCellPosition());\n\n if (cellInRange && mouseEvent.button === 2) {\n return true;\n }\n }\n\n return false;\n };\n\n CellMouseListenerFeature.prototype.containsWidget = function (target) {\n return isElementChildOfClass(target, 'ag-selection-checkbox', 3);\n };\n\n CellMouseListenerFeature.prototype.onMouseOut = function (mouseEvent) {\n if (this.mouseStayingInsideCell(mouseEvent)) {\n return;\n }\n\n var cellMouseOutEvent = this.cellCtrl.createEvent(mouseEvent, Events.EVENT_CELL_MOUSE_OUT);\n this.beans.eventService.dispatchEvent(cellMouseOutEvent);\n this.beans.columnHoverService.clearMouseOver();\n };\n\n CellMouseListenerFeature.prototype.onMouseOver = function (mouseEvent) {\n if (this.mouseStayingInsideCell(mouseEvent)) {\n return;\n }\n\n var cellMouseOverEvent = this.cellCtrl.createEvent(mouseEvent, Events.EVENT_CELL_MOUSE_OVER);\n this.beans.eventService.dispatchEvent(cellMouseOverEvent);\n this.beans.columnHoverService.setMouseOver([this.column]);\n };\n\n CellMouseListenerFeature.prototype.mouseStayingInsideCell = function (e) {\n if (!e.target || !e.relatedTarget) {\n return false;\n }\n\n var eGui = this.cellCtrl.getGui();\n var cellContainsTarget = eGui.contains(e.target);\n var cellContainsRelatedTarget = eGui.contains(e.relatedTarget);\n return cellContainsTarget && cellContainsRelatedTarget;\n };\n\n CellMouseListenerFeature.prototype.destroy = function () {};\n\n return CellMouseListenerFeature;\n}(Beans);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1X = undefined && undefined.__extends || function () {\n var _extendStatics62 = function extendStatics(d, b) {\n _extendStatics62 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics62(d, b);\n };\n\n return function (d, b) {\n _extendStatics62(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar CellKeyboardListenerFeature =\n/** @class */\nfunction (_super) {\n __extends$1X(CellKeyboardListenerFeature, _super);\n\n function CellKeyboardListenerFeature(ctrl, beans, column, rowNode, rowCtrl) {\n var _this = _super.call(this) || this;\n\n _this.cellCtrl = ctrl;\n _this.beans = beans;\n _this.rowNode = rowNode;\n _this.rowCtrl = rowCtrl;\n return _this;\n }\n\n CellKeyboardListenerFeature.prototype.setComp = function (eGui) {\n this.eGui = eGui;\n };\n\n CellKeyboardListenerFeature.prototype.onKeyDown = function (event) {\n var key = event.key;\n\n switch (key) {\n case KeyCode.ENTER:\n this.onEnterKeyDown(event);\n break;\n\n case KeyCode.F2:\n this.onF2KeyDown(event);\n break;\n\n case KeyCode.ESCAPE:\n this.onEscapeKeyDown(event);\n break;\n\n case KeyCode.TAB:\n this.onTabKeyDown(event);\n break;\n\n case KeyCode.BACKSPACE:\n case KeyCode.DELETE:\n this.onBackspaceOrDeleteKeyPressed(key, event);\n break;\n\n case KeyCode.DOWN:\n case KeyCode.UP:\n case KeyCode.RIGHT:\n case KeyCode.LEFT:\n this.onNavigationKeyPressed(event, key);\n break;\n }\n };\n\n CellKeyboardListenerFeature.prototype.onNavigationKeyPressed = function (event, key) {\n if (this.cellCtrl.isEditing()) {\n return;\n }\n\n if (event.shiftKey && this.cellCtrl.isRangeSelectionEnabled()) {\n this.onShiftRangeSelect(event);\n } else {\n this.beans.navigationService.navigateToNextCell(event, key, this.cellCtrl.getCellPosition(), true);\n } // if we don't prevent default, the grid will scroll with the navigation keys\n\n\n event.preventDefault();\n };\n\n CellKeyboardListenerFeature.prototype.onShiftRangeSelect = function (event) {\n if (!this.beans.rangeService) {\n return;\n }\n\n var endCell = this.beans.rangeService.extendLatestRangeInDirection(event);\n\n if (endCell) {\n this.beans.navigationService.ensureCellVisible(endCell);\n }\n };\n\n CellKeyboardListenerFeature.prototype.onTabKeyDown = function (event) {\n this.beans.navigationService.onTabKeyDown(this.cellCtrl, event);\n };\n\n CellKeyboardListenerFeature.prototype.onBackspaceOrDeleteKeyPressed = function (key, event) {\n if (!this.cellCtrl.isEditing()) {\n this.cellCtrl.startRowOrCellEdit(key, undefined, event);\n }\n };\n\n CellKeyboardListenerFeature.prototype.onEnterKeyDown = function (e) {\n if (this.cellCtrl.isEditing() || this.rowCtrl.isEditing()) {\n this.cellCtrl.stopEditingAndFocus();\n } else {\n if (this.beans.gridOptionsWrapper.isEnterMovesDown()) {\n this.beans.navigationService.navigateToNextCell(null, KeyCode.DOWN, this.cellCtrl.getCellPosition(), false);\n } else {\n this.cellCtrl.startRowOrCellEdit(KeyCode.ENTER, undefined, e);\n\n if (this.cellCtrl.isEditing()) {\n // if we started editing, then we need to prevent default, otherwise the Enter action can get\n // applied to the cell editor. this happened, for example, with largeTextCellEditor where not\n // preventing default results in a 'new line' character getting inserted in the text area\n // when the editing was started\n e.preventDefault();\n }\n }\n }\n };\n\n CellKeyboardListenerFeature.prototype.onF2KeyDown = function (event) {\n if (!this.cellCtrl.isEditing()) {\n this.cellCtrl.startRowOrCellEdit(KeyCode.F2, undefined, event);\n }\n };\n\n CellKeyboardListenerFeature.prototype.onEscapeKeyDown = function (event) {\n if (this.cellCtrl.isEditing()) {\n this.cellCtrl.stopRowOrCellEdit(true);\n this.cellCtrl.focusCell(true);\n }\n };\n\n CellKeyboardListenerFeature.prototype.onKeyPress = function (event) {\n // check this, in case focus is on a (for example) a text field inside the cell,\n // in which cse we should not be listening for these key pressed\n var eventTarget = event.target;\n var eventOnChildComponent = eventTarget !== this.eGui;\n\n if (eventOnChildComponent || this.cellCtrl.isEditing()) {\n return;\n }\n\n var pressedChar = String.fromCharCode(event.charCode);\n\n if (pressedChar === ' ') {\n this.onSpaceKeyPressed(event);\n } else if (isEventFromPrintableCharacter(event)) {\n this.cellCtrl.startRowOrCellEdit(null, pressedChar, event); // if we don't prevent default, then the keypress also gets applied to the text field\n // (at least when doing the default editor), but we need to allow the editor to decide\n // what it wants to do. we only do this IF editing was started - otherwise it messes\n // up when the use is not doing editing, but using rendering with text fields in cellRenderer\n // (as it would block the the user from typing into text fields).\n\n event.preventDefault();\n }\n };\n\n CellKeyboardListenerFeature.prototype.onSpaceKeyPressed = function (event) {\n var gridOptionsWrapper = this.beans.gridOptionsWrapper;\n\n if (!this.cellCtrl.isEditing() && gridOptionsWrapper.isRowSelection()) {\n var currentSelection = this.rowNode.isSelected();\n var newSelection = !currentSelection;\n\n if (newSelection || !gridOptionsWrapper.isSuppressRowDeselection()) {\n var groupSelectsFiltered = this.beans.gridOptionsWrapper.isGroupSelectsFiltered();\n var updatedCount = this.rowNode.setSelectedParams({\n newValue: newSelection,\n rangeSelect: event.shiftKey,\n groupSelectsFiltered: groupSelectsFiltered\n });\n\n if (currentSelection === undefined && updatedCount === 0) {\n this.rowNode.setSelectedParams({\n newValue: false,\n rangeSelect: event.shiftKey,\n groupSelectsFiltered: groupSelectsFiltered\n });\n }\n }\n } // prevent default as space key, by default, moves browser scroll down\n\n\n event.preventDefault();\n };\n\n CellKeyboardListenerFeature.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n return CellKeyboardListenerFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1W = undefined && undefined.__extends || function () {\n var _extendStatics63 = function extendStatics(d, b) {\n _extendStatics63 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics63(d, b);\n };\n\n return function (d, b) {\n _extendStatics63(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1N = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar DndSourceComp =\n/** @class */\nfunction (_super) {\n __extends$1W(DndSourceComp, _super);\n\n function DndSourceComp(rowNode, column, beans, eCell) {\n var _this = _super.call(this, \"
\") || this;\n\n _this.rowNode = rowNode;\n _this.column = column;\n _this.beans = beans;\n _this.eCell = eCell;\n return _this;\n }\n\n DndSourceComp.prototype.postConstruct = function () {\n var eGui = this.getGui();\n eGui.appendChild(createIconNoSpan('rowDrag', this.beans.gridOptionsWrapper, null)); // we need to stop the event propagation here to avoid starting a range selection while dragging\n\n this.addGuiEventListener('mousedown', function (e) {\n e.stopPropagation();\n });\n this.addDragSource();\n this.checkVisibility();\n };\n\n DndSourceComp.prototype.addDragSource = function () {\n this.addGuiEventListener('dragstart', this.onDragStart.bind(this));\n };\n\n DndSourceComp.prototype.onDragStart = function (dragEvent) {\n var _this = this;\n\n var providedOnRowDrag = this.column.getColDef().dndSourceOnRowDrag;\n dragEvent.dataTransfer.setDragImage(this.eCell, 0, 0); // default behaviour is to convert data to json and set into drag component\n\n var defaultOnRowDrag = function defaultOnRowDrag() {\n try {\n var jsonData = JSON.stringify(_this.rowNode.data);\n dragEvent.dataTransfer.setData('application/json', jsonData);\n dragEvent.dataTransfer.setData('text/plain', jsonData);\n } catch (e) {// if we cannot convert the data to json, then we do not set the type\n }\n };\n\n if (providedOnRowDrag) {\n var params = {\n rowNode: this.rowNode,\n dragEvent: dragEvent,\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n context: this.gridOptionsWrapper.getContext()\n };\n providedOnRowDrag(params);\n } else {\n defaultOnRowDrag();\n }\n };\n\n DndSourceComp.prototype.checkVisibility = function () {\n var visible = this.column.isDndSource(this.rowNode);\n this.setDisplayed(visible);\n };\n\n __decorate$1N([PostConstruct], DndSourceComp.prototype, \"postConstruct\", null);\n\n return DndSourceComp;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1V = undefined && undefined.__extends || function () {\n var _extendStatics64 = function extendStatics(d, b) {\n _extendStatics64 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics64(d, b);\n };\n\n return function (d, b) {\n _extendStatics64(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$4 = undefined && undefined.__assign || function () {\n __assign$4 = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$4.apply(this, arguments);\n};\n\nvar CSS_CELL = 'ag-cell';\nvar CSS_AUTO_HEIGHT = 'ag-cell-auto-height';\nvar CSS_NORMAL_HEIGHT = 'ag-cell-normal-height';\nvar CSS_CELL_FOCUS = 'ag-cell-focus';\nvar CSS_CELL_FIRST_RIGHT_PINNED = 'ag-cell-first-right-pinned';\nvar CSS_CELL_LAST_LEFT_PINNED = 'ag-cell-last-left-pinned';\nvar CSS_CELL_NOT_INLINE_EDITING = 'ag-cell-not-inline-editing';\nvar CSS_CELL_INLINE_EDITING = 'ag-cell-inline-editing';\nvar CSS_CELL_POPUP_EDITING = 'ag-cell-popup-editing';\nvar CSS_COLUMN_HOVER = 'ag-column-hover';\nvar CSS_CELL_WRAP_TEXT = 'ag-cell-wrap-text';\nvar instanceIdSequence$3 = 0;\n\nvar CellCtrl =\n/** @class */\nfunction (_super) {\n __extends$1V(CellCtrl, _super);\n\n function CellCtrl(column, rowNode, beans, rowCtrl) {\n var _this = _super.call(this) || this;\n\n _this.suppressRefreshCell = false;\n _this.onCellCompAttachedFuncs = [];\n _this.column = column;\n _this.rowNode = rowNode;\n _this.beans = beans;\n _this.rowCtrl = rowCtrl; // unique id to this instance, including the column ID to help with debugging in React as it's used in 'key'\n\n _this.instanceId = column.getId() + '-' + instanceIdSequence$3++;\n\n _this.createCellPosition();\n\n _this.addFeatures();\n\n return _this;\n }\n\n CellCtrl.prototype.addFeatures = function () {\n var _this = this;\n\n this.cellPositionFeature = new CellPositionFeature(this, this.beans);\n this.addDestroyFunc(function () {\n return _this.cellPositionFeature.destroy();\n });\n this.cellCustomStyleFeature = new CellCustomStyleFeature(this, this.beans);\n this.addDestroyFunc(function () {\n return _this.cellCustomStyleFeature.destroy();\n });\n this.cellMouseListenerFeature = new CellMouseListenerFeature(this, this.beans, this.column);\n this.addDestroyFunc(function () {\n return _this.cellMouseListenerFeature.destroy();\n });\n this.cellKeyboardListenerFeature = new CellKeyboardListenerFeature(this, this.beans, this.column, this.rowNode, this.rowCtrl);\n this.addDestroyFunc(function () {\n return _this.cellKeyboardListenerFeature.destroy();\n });\n var rangeSelectionEnabled = this.beans.rangeService && this.beans.gridOptionsWrapper.isEnableRangeSelection();\n\n if (rangeSelectionEnabled) {\n this.cellRangeFeature = new CellRangeFeature(this.beans, this);\n this.addDestroyFunc(function () {\n return _this.cellRangeFeature.destroy();\n });\n }\n\n this.addTooltipFeature();\n };\n\n CellCtrl.prototype.addTooltipFeature = function () {\n var _this = this;\n\n var getTooltipValue = function getTooltipValue() {\n var colDef = _this.column.getColDef();\n\n var data = _this.rowNode.data;\n\n if (colDef.tooltipField && exists(data)) {\n return getValueUsingField(data, colDef.tooltipField, _this.column.isTooltipFieldContainsDots());\n }\n\n var valueGetter = colDef.tooltipValueGetter;\n\n if (valueGetter) {\n return valueGetter({\n location: 'cell',\n api: _this.beans.gridOptionsWrapper.getApi(),\n columnApi: _this.beans.gridOptionsWrapper.getColumnApi(),\n context: _this.beans.gridOptionsWrapper.getContext(),\n colDef: _this.column.getColDef(),\n column: _this.column,\n rowIndex: _this.cellPosition.rowIndex,\n node: _this.rowNode,\n data: _this.rowNode.data,\n value: _this.value,\n valueFormatted: _this.valueFormatted\n });\n }\n\n return null;\n };\n\n var tooltipCtrl = {\n getColumn: function getColumn() {\n return _this.column;\n },\n getColDef: function getColDef() {\n return _this.column.getColDef();\n },\n getRowIndex: function getRowIndex() {\n return _this.cellPosition.rowIndex;\n },\n getRowNode: function getRowNode() {\n return _this.rowNode;\n },\n getGui: function getGui() {\n return _this.getGui();\n },\n getLocation: function getLocation() {\n return 'cell';\n },\n getTooltipValue: getTooltipValue,\n // this makes no sense, why is the cell formatted value passed to the tooltip???\n getValueFormatted: function getValueFormatted() {\n return _this.valueFormatted;\n }\n };\n this.tooltipFeature = new TooltipFeature(tooltipCtrl, this.beans);\n this.addDestroyFunc(function () {\n return _this.tooltipFeature.destroy();\n });\n };\n\n CellCtrl.prototype.setComp = function (comp, eGui, eCellWrapper, printLayout, startEditing) {\n this.cellComp = comp;\n this.gow = this.beans.gridOptionsWrapper;\n this.eGui = eGui;\n this.eCellWrapper = eCellWrapper;\n this.printLayout = printLayout; // we force to make sure formatter gets called at least once,\n // even if value has not changed (is is undefined)\n\n this.updateAndFormatValue(true);\n this.addDomData();\n this.onCellFocused();\n this.applyStaticCssClasses();\n this.setWrapText();\n this.onFirstRightPinnedChanged();\n this.onLastLeftPinnedChanged();\n this.onColumnHover();\n this.setupControlComps();\n this.setupAutoHeight();\n this.setAriaColIndex();\n\n if (!this.gow.isSuppressCellFocus()) {\n this.cellComp.setTabIndex(-1);\n }\n\n var colIdSanitised = escapeString(this.column.getId());\n this.cellComp.setColId(colIdSanitised);\n this.cellComp.setRole('gridcell');\n this.cellPositionFeature.setComp(eGui);\n this.cellCustomStyleFeature.setComp(comp);\n this.tooltipFeature.setComp(comp);\n this.cellKeyboardListenerFeature.setComp(this.eGui);\n\n if (this.cellRangeFeature) {\n this.cellRangeFeature.setComp(comp, eGui);\n }\n\n if (startEditing && this.isCellEditable()) {\n this.startEditing();\n } else {\n this.showValue();\n }\n\n if (this.onCellCompAttachedFuncs.length) {\n this.onCellCompAttachedFuncs.forEach(function (func) {\n return func();\n });\n this.onCellCompAttachedFuncs = [];\n }\n };\n\n CellCtrl.prototype.setupAutoHeight = function () {\n var _this = this;\n\n if (!this.column.isAutoHeight()) {\n return;\n }\n\n var eAutoHeightContainer = this.eCellWrapper;\n var eParentCell = eAutoHeightContainer.parentElement; // taking minRowHeight from getRowHeightForNode means the getRowHeight() callback is used,\n // thus allowing different min heights for different rows.\n\n var minRowHeight = this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height;\n\n var measureHeight = function measureHeight(timesCalled) {\n if (_this.editing) {\n return;\n } // because of the retry's below, it's possible the retry's go beyond\n // the rows life.\n\n\n if (!_this.isAlive()) {\n return;\n }\n\n var _a = getElementSize(eParentCell),\n paddingTop = _a.paddingTop,\n paddingBottom = _a.paddingBottom;\n\n var wrapperHeight = eAutoHeightContainer.offsetHeight;\n var autoHeight = wrapperHeight + paddingTop + paddingBottom;\n\n if (timesCalled < 5) {\n // if not in doc yet, means framework not yet inserted, so wait for next VM turn,\n // maybe it will be ready next VM turn\n var doc = _this.beans.gridOptionsWrapper.getDocument();\n\n var notYetInDom = !doc || !doc.contains(eAutoHeightContainer); // this happens in React, where React hasn't put any content in. we say 'possibly'\n // as a) may not be React and b) the cell could be empty anyway\n\n var possiblyNoContentYet = autoHeight == 0;\n\n if (notYetInDom || possiblyNoContentYet) {\n _this.beans.frameworkOverrides.setTimeout(function () {\n return measureHeight(timesCalled + 1);\n }, 0);\n\n return;\n }\n }\n\n var newHeight = Math.max(autoHeight, minRowHeight);\n\n _this.rowNode.setRowAutoHeight(newHeight, _this.column);\n };\n\n var listener = function listener() {\n return measureHeight(0);\n }; // do once to set size in case size doesn't change, common when cell is blank\n\n\n listener();\n var destroyResizeObserver = this.beans.resizeObserverService.observeResize(eAutoHeightContainer, listener);\n this.addDestroyFunc(function () {\n destroyResizeObserver();\n\n _this.rowNode.setRowAutoHeight(undefined, _this.column);\n });\n };\n\n CellCtrl.prototype.getInstanceId = function () {\n return this.instanceId;\n };\n\n CellCtrl.prototype.showValue = function (forceNewCellRendererInstance) {\n if (forceNewCellRendererInstance === void 0) {\n forceNewCellRendererInstance = false;\n }\n\n var valueToDisplay = this.valueFormatted != null ? this.valueFormatted : this.value;\n var params = this.createCellRendererParams();\n var compDetails = this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(), params);\n this.cellComp.setRenderDetails(compDetails, valueToDisplay, forceNewCellRendererInstance);\n this.refreshHandle();\n };\n\n CellCtrl.prototype.setupControlComps = function () {\n var colDef = this.column.getColDef();\n this.includeSelection = this.isIncludeControl(colDef.checkboxSelection);\n this.includeRowDrag = this.isIncludeControl(colDef.rowDrag);\n this.includeDndSource = this.isIncludeControl(colDef.dndSource);\n this.cellComp.setIncludeSelection(this.includeSelection);\n this.cellComp.setIncludeDndSource(this.includeDndSource);\n this.cellComp.setIncludeRowDrag(this.includeRowDrag);\n };\n\n CellCtrl.prototype.isForceWrapper = function () {\n // text selection requires the value to be wrapped in another element\n var forceWrapper = this.beans.gridOptionsWrapper.isEnableCellTextSelection() || this.column.isAutoHeight();\n return forceWrapper;\n };\n\n CellCtrl.prototype.isIncludeControl = function (value) {\n var rowNodePinned = this.rowNode.rowPinned != null;\n var isFunc = typeof value === 'function';\n var res = rowNodePinned ? false : isFunc || value === true;\n return res;\n };\n\n CellCtrl.prototype.refreshShouldDestroy = function () {\n var colDef = this.column.getColDef();\n var selectionChanged = this.includeSelection != this.isIncludeControl(colDef.checkboxSelection);\n var rowDragChanged = this.includeRowDrag != this.isIncludeControl(colDef.rowDrag);\n var dndSourceChanged = this.includeDndSource != this.isIncludeControl(colDef.dndSource);\n return selectionChanged || rowDragChanged || dndSourceChanged;\n }; // either called internally if single cell editing, or called by rowRenderer if row editing\n\n\n CellCtrl.prototype.startEditing = function (key, charPress, cellStartedEdit, event) {\n var _this = this;\n\n if (key === void 0) {\n key = null;\n }\n\n if (charPress === void 0) {\n charPress = null;\n }\n\n if (cellStartedEdit === void 0) {\n cellStartedEdit = false;\n }\n\n if (event === void 0) {\n event = null;\n }\n\n var _a, _b;\n\n if (!this.isCellEditable() || this.editing) {\n return;\n } // because of async in React, the cellComp may not be set yet, if no cellComp then we are\n // yet to initialise the cell, so we re-schedule this operation for when celLComp is attached\n\n\n if (!this.cellComp) {\n this.onCellCompAttachedFuncs.push(function () {\n _this.startEditing(key, charPress, cellStartedEdit, event);\n });\n return;\n }\n\n var editorParams = this.createCellEditorParams(key, charPress, cellStartedEdit);\n var colDef = this.column.getColDef();\n var compDetails = this.beans.userComponentFactory.getCellEditorDetails(colDef, editorParams); // if cellEditorSelector was used, we give preference to popup and popupPosition from the selector\n\n var popup = ((_a = compDetails) === null || _a === void 0 ? void 0 : _a.popupFromSelector) != null ? compDetails.popupFromSelector : !!colDef.cellEditorPopup;\n var position = ((_b = compDetails) === null || _b === void 0 ? void 0 : _b.popupPositionFromSelector) != null ? compDetails.popupPositionFromSelector : colDef.cellEditorPopupPosition;\n this.setEditing(true, popup);\n this.cellComp.setEditDetails(compDetails, popup, position);\n var e = this.createEvent(event, Events.EVENT_CELL_EDITING_STARTED);\n this.beans.eventService.dispatchEvent(e);\n };\n\n CellCtrl.prototype.setEditing = function (editing, inPopup) {\n if (inPopup === void 0) {\n inPopup = false;\n }\n\n if (this.editing === editing) {\n return;\n }\n\n this.editing = editing;\n this.editingInPopup = inPopup;\n this.setInlineEditingClass();\n this.refreshHandle();\n }; // pass in 'true' to cancel the editing.\n\n\n CellCtrl.prototype.stopRowOrCellEdit = function (cancel) {\n if (cancel === void 0) {\n cancel = false;\n }\n\n if (this.beans.gridOptionsWrapper.isFullRowEdit()) {\n this.rowCtrl.stopRowEditing(cancel);\n } else {\n this.stopEditing(cancel);\n }\n };\n\n CellCtrl.prototype.onPopupEditorClosed = function () {\n if (!this.isEditing()) {\n return;\n } // note: this happens because of a click outside of the grid or if the popupEditor\n // is closed with `Escape` key. if another cell was clicked, then the editing will\n // have already stopped and returned on the conditional above.\n\n\n this.stopEditingAndFocus();\n };\n\n CellCtrl.prototype.takeValueFromCellEditor = function (cancel) {\n var noValueResult = {\n newValueExists: false\n };\n\n if (cancel) {\n return noValueResult;\n }\n\n var cellEditor = this.cellComp.getCellEditor();\n\n if (!cellEditor) {\n return noValueResult;\n }\n\n var userWantsToCancel = cellEditor.isCancelAfterEnd && cellEditor.isCancelAfterEnd();\n\n if (userWantsToCancel) {\n return noValueResult;\n }\n\n var newValue = cellEditor.getValue();\n return {\n newValue: newValue,\n newValueExists: true\n };\n };\n /**\n * @returns `True` if the value changes, otherwise `False`.\n */\n\n\n CellCtrl.prototype.saveNewValue = function (oldValue, newValue) {\n if (newValue === oldValue) {\n return false;\n }\n\n if (this.beans.gridOptionsWrapper.isReadOnlyEdit()) {\n this.dispatchEventForSaveValueReadOnly(oldValue, newValue);\n return false;\n } // we suppressRefreshCell because the call to rowNode.setDataValue() results in change detection\n // getting triggered, which results in all cells getting refreshed. we do not want this refresh\n // to happen on this call as we want to call it explicitly below. otherwise refresh gets called twice.\n // if we only did this refresh (and not the one below) then the cell would flash and not be forced.\n\n\n this.suppressRefreshCell = true;\n var valueChanged = this.rowNode.setDataValue(this.column, newValue);\n this.suppressRefreshCell = false;\n return valueChanged;\n };\n\n CellCtrl.prototype.dispatchEventForSaveValueReadOnly = function (oldValue, newValue) {\n var rowNode = this.rowNode;\n var event = {\n type: Events.EVENT_CELL_EDIT_REQUEST,\n event: null,\n rowIndex: rowNode.rowIndex,\n rowPinned: rowNode.rowPinned,\n column: this.column,\n api: this.beans.gridApi,\n columnApi: this.beans.columnApi,\n colDef: this.column.getColDef(),\n context: this.beans.gridOptionsWrapper.getContext(),\n data: rowNode.data,\n node: rowNode,\n oldValue: oldValue,\n newValue: newValue,\n value: newValue,\n source: undefined\n };\n this.beans.eventService.dispatchEvent(event);\n };\n /**\n * Ends the Cell Editing\n * @param cancel `True` if the edit process is being canceled.\n * @returns `True` if the value of the `GridCell` has been updated, otherwise `False`.\n */\n\n\n CellCtrl.prototype.stopEditing = function (cancel) {\n if (cancel === void 0) {\n cancel = false;\n }\n\n if (!this.editing) {\n return false;\n }\n\n var _a = this.takeValueFromCellEditor(cancel),\n newValue = _a.newValue,\n newValueExists = _a.newValueExists;\n\n var oldValue = this.getValueFromValueService();\n var valueChanged = false;\n\n if (newValueExists) {\n valueChanged = this.saveNewValue(oldValue, newValue);\n }\n\n this.setEditing(false);\n this.cellComp.setEditDetails(); // passing nothing stops editing\n\n this.updateAndFormatValue();\n this.refreshCell({\n forceRefresh: true,\n suppressFlash: true\n });\n this.dispatchEditingStoppedEvent(oldValue, newValue);\n return valueChanged;\n };\n\n CellCtrl.prototype.dispatchEditingStoppedEvent = function (oldValue, newValue) {\n var editingStoppedEvent = __assign$4(__assign$4({}, this.createEvent(null, Events.EVENT_CELL_EDITING_STOPPED)), {\n oldValue: oldValue,\n newValue: newValue\n });\n\n this.beans.eventService.dispatchEvent(editingStoppedEvent);\n }; // if we are editing inline, then we don't have the padding in the cell (set in the themes)\n // to allow the text editor full access to the entire cell\n\n\n CellCtrl.prototype.setInlineEditingClass = function () {\n var _this = this;\n\n if (!this.isAlive()) {\n return;\n } // because of async in React, the cellComp may not be set yet, if no cellComp then we are\n // yet to initialise the cell, so we re-schedule this operation for when celLComp is attached\n\n\n if (!this.cellComp) {\n this.onCellCompAttachedFuncs.push(function () {\n _this.setInlineEditingClass();\n });\n return;\n } // ag-cell-inline-editing - appears when user is inline editing\n // ag-cell-not-inline-editing - appears when user is no inline editing\n // ag-cell-popup-editing - appears when user is editing cell in popup (appears on the cell, not on the popup)\n // note: one of {ag-cell-inline-editing, ag-cell-not-inline-editing} is always present, they toggle.\n // however {ag-cell-popup-editing} shows when popup, so you have both {ag-cell-popup-editing}\n // and {ag-cell-not-inline-editing} showing at the same time.\n\n\n var editingInline = this.editing && !this.editingInPopup;\n var popupEditorShowing = this.editing && this.editingInPopup;\n this.cellComp.addOrRemoveCssClass(CSS_CELL_INLINE_EDITING, editingInline);\n this.cellComp.addOrRemoveCssClass(CSS_CELL_NOT_INLINE_EDITING, !editingInline);\n this.cellComp.addOrRemoveCssClass(CSS_CELL_POPUP_EDITING, popupEditorShowing);\n this.rowCtrl.setInlineEditingCss(this.editing);\n }; // this is needed as the JS CellComp still allows isPopup() on the CellEditor class, so\n // it's possible the editor is in a popup even though it's not configured via the colDef as so\n\n\n CellCtrl.prototype.hackSayEditingInPopup = function () {\n if (this.editingInPopup) {\n return;\n }\n\n this.editingInPopup = true;\n this.setInlineEditingClass();\n };\n\n CellCtrl.prototype.createCellEditorParams = function (key, charPress, cellStartedEdit) {\n var res = {\n value: this.getValueFromValueService(),\n key: key,\n eventKey: key,\n charPress: charPress,\n column: this.column,\n colDef: this.column.getColDef(),\n rowIndex: this.getCellPosition().rowIndex,\n node: this.rowNode,\n data: this.rowNode.data,\n api: this.beans.gridOptionsWrapper.getApi(),\n cellStartedEdit: cellStartedEdit,\n columnApi: this.beans.gridOptionsWrapper.getColumnApi(),\n context: this.beans.gridOptionsWrapper.getContext(),\n onKeyDown: this.onKeyDown.bind(this),\n stopEditing: this.stopEditingAndFocus.bind(this),\n eGridCell: this.getGui(),\n parseValue: this.parseValue.bind(this),\n formatValue: this.formatValue.bind(this)\n };\n return res;\n };\n\n CellCtrl.prototype.createCellRendererParams = function () {\n var _this = this;\n\n var addRowCompListener = function addRowCompListener(eventType, listener) {\n console.warn('AG Grid: since AG Grid v26, params.addRowCompListener() is deprecated. If you need this functionality, please contact AG Grid support and advise why so that we can revert with an appropriate workaround, as we dont have any valid use cases for it. This method was originally provided as a work around to know when cells were destroyed in AG Grid before custom Cell Renderers could be provided.');\n\n _this.rowCtrl.addEventListener(eventType, listener);\n };\n\n var res = {\n value: this.value,\n valueFormatted: this.valueFormatted,\n getValue: this.getValueFromValueService.bind(this),\n setValue: function setValue(value) {\n return _this.beans.valueService.setValue(_this.rowNode, _this.column, value);\n },\n formatValue: this.formatValue.bind(this),\n data: this.rowNode.data,\n node: this.rowNode,\n pinned: this.column.getPinned(),\n colDef: this.column.getColDef(),\n column: this.column,\n rowIndex: this.getCellPosition().rowIndex,\n api: this.beans.gridOptionsWrapper.getApi(),\n columnApi: this.beans.gridOptionsWrapper.getColumnApi(),\n context: this.beans.gridOptionsWrapper.getContext(),\n refreshCell: this.refreshCell.bind(this),\n eGridCell: this.getGui(),\n eParentOfValue: this.cellComp.getParentOfValue(),\n registerRowDragger: function registerRowDragger(rowDraggerElement, dragStartPixels, value, suppressVisibilityChange) {\n return _this.registerRowDragger(rowDraggerElement, dragStartPixels, suppressVisibilityChange);\n },\n // this function is not documented anywhere, so we could drop it\n // it was in the olden days to allow user to register for when rendered\n // row was removed (the row comp was removed), however now that the user\n // can provide components for cells, the destroy method gets call when this\n // happens so no longer need to fire event.\n addRowCompListener: addRowCompListener\n };\n return res;\n };\n\n CellCtrl.prototype.parseValue = function (newValue) {\n var colDef = this.column.getColDef();\n var params = {\n node: this.rowNode,\n data: this.rowNode.data,\n oldValue: this.getValue(),\n newValue: newValue,\n colDef: colDef,\n column: this.column,\n api: this.beans.gridOptionsWrapper.getApi(),\n columnApi: this.beans.gridOptionsWrapper.getColumnApi(),\n context: this.beans.gridOptionsWrapper.getContext()\n };\n var valueParser = colDef.valueParser;\n return exists(valueParser) ? this.beans.expressionService.evaluate(valueParser, params) : newValue;\n };\n\n CellCtrl.prototype.setFocusOutOnEditor = function () {\n if (!this.editing) {\n return;\n }\n\n var cellEditor = this.cellComp.getCellEditor();\n\n if (cellEditor && cellEditor.focusOut) {\n cellEditor.focusOut();\n }\n };\n\n CellCtrl.prototype.setFocusInOnEditor = function () {\n if (!this.editing) {\n return;\n }\n\n var cellEditor = this.cellComp.getCellEditor();\n\n if (cellEditor && cellEditor.focusIn) {\n // if the editor is present, then we just focus it\n cellEditor.focusIn();\n } else {\n // if the editor is not present, it means async cell editor (eg React fibre)\n // and we are trying to set focus before the cell editor is present, so we\n // focus the cell instead\n this.focusCell(true);\n }\n };\n\n CellCtrl.prototype.onCellChanged = function (event) {\n // because of async in React, the cellComp may not be set yet, if no cellComp then we are\n // yet to initialise the cell, so no need to refresh.\n if (!this.cellComp) {\n return;\n }\n\n var eventImpactsThisCell = event.column === this.column;\n\n if (eventImpactsThisCell) {\n this.refreshCell({});\n }\n }; // + stop editing {forceRefresh: true, suppressFlash: true}\n // + event cellChanged {}\n // + cellRenderer.params.refresh() {} -> method passes 'as is' to the cellRenderer, so params could be anything\n // + rowCtrl: event dataChanged {suppressFlash: !update, newData: !update}\n // + rowCtrl: api refreshCells() {animate: true/false}\n // + rowRenderer: api softRefreshView() {}\n\n\n CellCtrl.prototype.refreshCell = function (params) {\n // if we are in the middle of 'stopEditing', then we don't refresh here, as refresh gets called explicitly\n if (this.suppressRefreshCell || this.editing) {\n return;\n } // In React, due to async, it's possible a refresh was asked for before the CellComp\n // has been set. If this happens, we skip the refresh, as the cell is going to be\n // initialised anyway once the CellComp is set.\n\n\n if (!this.cellComp) {\n return;\n }\n\n var colDef = this.column.getColDef();\n var newData = params != null && !!params.newData;\n var suppressFlash = params != null && !!params.suppressFlash || !!colDef.suppressCellFlash; // we always refresh if cell has no value - this can happen when user provides Cell Renderer and the\n // cell renderer doesn't rely on a value, instead it could be looking directly at the data, or maybe\n // printing the current time (which would be silly)???. Generally speaking\n // non of {field, valueGetter, showRowGroup} is bad in the users application, however for this edge case, it's\n // best always refresh and take the performance hit rather than never refresh and users complaining in support\n // that cells are not updating.\n\n var noValueProvided = colDef.field == null && colDef.valueGetter == null && colDef.showRowGroup == null;\n var forceRefresh = params && params.forceRefresh || noValueProvided || newData;\n var valuesDifferent = this.updateAndFormatValue();\n var dataNeedsUpdating = forceRefresh || valuesDifferent;\n\n if (dataNeedsUpdating) {\n // if it's 'new data', then we don't refresh the cellRenderer, even if refresh method is available.\n // this is because if the whole data is new (ie we are showing stock price 'BBA' now and not 'SSD')\n // then we are not showing a movement in the stock price, rather we are showing different stock.\n this.showValue(newData); // we don't want to flash the cells when processing a filter change, as otherwise the UI would\n // be to busy. see comment in FilterManager with regards processingFilterChange\n\n var processingFilterChange = this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();\n var flashCell = !suppressFlash && !processingFilterChange && (this.beans.gridOptionsWrapper.isEnableCellChangeFlash() || colDef.enableCellChangeFlash);\n\n if (flashCell) {\n this.flashCell();\n }\n\n this.cellCustomStyleFeature.applyUserStyles();\n this.cellCustomStyleFeature.applyClassesFromColDef();\n }\n\n this.refreshToolTip(); // we do cellClassRules even if the value has not changed, so that users who have rules that\n // look at other parts of the row (where the other part of the row might of changed) will work.\n\n this.cellCustomStyleFeature.applyCellClassRules();\n }; // cell editors call this, when they want to stop for reasons other\n // than what we pick up on. eg selecting from a dropdown ends editing.\n\n\n CellCtrl.prototype.stopEditingAndFocus = function (suppressNavigateAfterEdit) {\n if (suppressNavigateAfterEdit === void 0) {\n suppressNavigateAfterEdit = false;\n }\n\n this.stopRowOrCellEdit();\n this.focusCell(true);\n\n if (!suppressNavigateAfterEdit) {\n this.navigateAfterEdit();\n }\n };\n\n CellCtrl.prototype.navigateAfterEdit = function () {\n var fullRowEdit = this.beans.gridOptionsWrapper.isFullRowEdit();\n\n if (fullRowEdit) {\n return;\n }\n\n var enterMovesDownAfterEdit = this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit();\n\n if (enterMovesDownAfterEdit) {\n this.beans.navigationService.navigateToNextCell(null, KeyCode.DOWN, this.getCellPosition(), false);\n }\n }; // user can also call this via API\n\n\n CellCtrl.prototype.flashCell = function (delays) {\n var flashDelay = delays && delays.flashDelay;\n var fadeDelay = delays && delays.fadeDelay;\n this.animateCell('data-changed', flashDelay, fadeDelay);\n };\n\n CellCtrl.prototype.animateCell = function (cssName, flashDelay, fadeDelay) {\n var _this = this;\n\n var fullName = \"ag-cell-\" + cssName;\n var animationFullName = \"ag-cell-\" + cssName + \"-animation\";\n var gridOptionsWrapper = this.beans.gridOptionsWrapper;\n\n if (!flashDelay) {\n flashDelay = gridOptionsWrapper.getCellFlashDelay();\n }\n\n if (!exists(fadeDelay)) {\n fadeDelay = gridOptionsWrapper.getCellFadeDelay();\n } // we want to highlight the cells, without any animation\n\n\n this.cellComp.addOrRemoveCssClass(fullName, true);\n this.cellComp.addOrRemoveCssClass(animationFullName, false); // then once that is applied, we remove the highlight with animation\n\n window.setTimeout(function () {\n if (!_this.isAlive()) {\n return;\n }\n\n _this.cellComp.addOrRemoveCssClass(fullName, false);\n\n _this.cellComp.addOrRemoveCssClass(animationFullName, true);\n\n _this.eGui.style.transition = \"background-color \" + fadeDelay + \"ms\";\n window.setTimeout(function () {\n if (!_this.isAlive()) {\n return;\n } // and then to leave things as we got them, we remove the animation\n\n\n _this.cellComp.addOrRemoveCssClass(animationFullName, false);\n\n _this.eGui.style.transition = '';\n }, fadeDelay);\n }, flashDelay);\n };\n\n CellCtrl.prototype.onFlashCells = function (event) {\n if (!this.cellComp) {\n return;\n }\n\n var cellId = this.beans.cellPositionUtils.createId(this.getCellPosition());\n var shouldFlash = event.cells[cellId];\n\n if (shouldFlash) {\n this.animateCell('highlight');\n }\n };\n\n CellCtrl.prototype.isCellEditable = function () {\n return this.column.isCellEditable(this.rowNode);\n };\n\n CellCtrl.prototype.isSuppressFillHandle = function () {\n return this.column.isSuppressFillHandle();\n };\n\n CellCtrl.prototype.formatValue = function (value) {\n var res = this.callValueFormatter(value);\n return res != null ? res : value;\n };\n\n CellCtrl.prototype.callValueFormatter = function (value) {\n return this.beans.valueFormatterService.formatValue(this.column, this.rowNode, value);\n };\n\n CellCtrl.prototype.updateAndFormatValue = function (force) {\n if (force === void 0) {\n force = false;\n }\n\n var oldValue = this.value;\n var oldValueFormatted = this.valueFormatted;\n this.value = this.getValueFromValueService();\n this.valueFormatted = this.callValueFormatter(this.value);\n var valuesDifferent = force ? true : !this.valuesAreEqual(oldValue, this.value) || this.valueFormatted != oldValueFormatted;\n return valuesDifferent;\n };\n\n CellCtrl.prototype.valuesAreEqual = function (val1, val2) {\n // if the user provided an equals method, use that, otherwise do simple comparison\n var colDef = this.column.getColDef();\n return colDef.equals ? colDef.equals(val1, val2) : val1 === val2;\n };\n\n CellCtrl.prototype.getComp = function () {\n return this.cellComp;\n };\n\n CellCtrl.prototype.getValueFromValueService = function () {\n // if we don't check this, then the grid will render leaf groups as open even if we are not\n // allowing the user to open leaf groups. confused? remember for pivot mode we don't allow\n // opening leaf groups, so we have to force leafGroups to be closed in case the user expanded\n // them via the API, or user user expanded them in the UI before turning on pivot mode\n var lockedClosedGroup = this.rowNode.leafGroup && this.beans.columnModel.isPivotMode();\n var isOpenGroup = this.rowNode.group && this.rowNode.expanded && !this.rowNode.footer && !lockedClosedGroup; // are we showing group footers\n\n var groupFootersEnabled = this.beans.gridOptionsWrapper.isGroupIncludeFooter(); // if doing footers, we normally don't show agg data at group level when group is open\n\n var groupAlwaysShowAggData = this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(); // if doing grouping and footers, we don't want to include the agg value\n // in the header when the group is open\n\n var ignoreAggData = isOpenGroup && groupFootersEnabled && !groupAlwaysShowAggData;\n var value = this.beans.valueService.getValue(this.column, this.rowNode, false, ignoreAggData);\n return value;\n };\n\n CellCtrl.prototype.getValue = function () {\n return this.value;\n };\n\n CellCtrl.prototype.getValueFormatted = function () {\n return this.valueFormatted;\n };\n\n CellCtrl.prototype.addDomData = function () {\n var _this = this;\n\n var element = this.getGui();\n this.beans.gridOptionsWrapper.setDomData(element, CellCtrl.DOM_DATA_KEY_CELL_CTRL, this);\n this.addDestroyFunc(function () {\n return _this.beans.gridOptionsWrapper.setDomData(element, CellCtrl.DOM_DATA_KEY_CELL_CTRL, null);\n });\n };\n\n CellCtrl.prototype.createEvent = function (domEvent, eventType) {\n var event = {\n type: eventType,\n node: this.rowNode,\n data: this.rowNode.data,\n value: this.value,\n column: this.column,\n colDef: this.column.getColDef(),\n context: this.beans.gridOptionsWrapper.getContext(),\n api: this.beans.gridApi,\n columnApi: this.beans.columnApi,\n rowPinned: this.rowNode.rowPinned,\n event: domEvent,\n rowIndex: this.rowNode.rowIndex\n };\n return event;\n };\n\n CellCtrl.prototype.onKeyPress = function (event) {\n this.cellKeyboardListenerFeature.onKeyPress(event);\n };\n\n CellCtrl.prototype.onKeyDown = function (event) {\n this.cellKeyboardListenerFeature.onKeyDown(event);\n };\n\n CellCtrl.prototype.onMouseEvent = function (eventName, mouseEvent) {\n this.cellMouseListenerFeature.onMouseEvent(eventName, mouseEvent);\n };\n\n CellCtrl.prototype.getGui = function () {\n return this.eGui;\n };\n\n CellCtrl.prototype.refreshToolTip = function () {\n this.tooltipFeature.refreshToolTip();\n };\n\n CellCtrl.prototype.getColSpanningList = function () {\n return this.cellPositionFeature.getColSpanningList();\n };\n\n CellCtrl.prototype.onLeftChanged = function () {\n if (!this.cellComp) {\n return;\n }\n\n this.cellPositionFeature.onLeftChanged();\n };\n\n CellCtrl.prototype.onDisplayedColumnsChanged = function () {\n if (!this.eGui) {\n return;\n }\n\n this.setAriaColIndex();\n };\n\n CellCtrl.prototype.setAriaColIndex = function () {\n var colIdx = this.beans.columnModel.getAriaColumnIndex(this.column);\n setAriaColIndex(this.getGui(), colIdx); // for react, we don't use JSX, as it slowed down column moving\n };\n\n CellCtrl.prototype.isSuppressNavigable = function () {\n return this.column.isSuppressNavigable(this.rowNode);\n };\n\n CellCtrl.prototype.onWidthChanged = function () {\n return this.cellPositionFeature.onWidthChanged();\n };\n\n CellCtrl.prototype.getColumn = function () {\n return this.column;\n };\n\n CellCtrl.prototype.getRowNode = function () {\n return this.rowNode;\n };\n\n CellCtrl.prototype.getBeans = function () {\n return this.beans;\n };\n\n CellCtrl.prototype.isPrintLayout = function () {\n return this.printLayout;\n };\n\n CellCtrl.prototype.appendChild = function (htmlElement) {\n this.eGui.appendChild(htmlElement);\n };\n\n CellCtrl.prototype.refreshHandle = function () {\n if (this.cellRangeFeature) {\n this.cellRangeFeature.refreshHandle();\n }\n };\n\n CellCtrl.prototype.getCellPosition = function () {\n return this.cellPosition;\n };\n\n CellCtrl.prototype.isEditing = function () {\n return this.editing;\n }; // called by rowRenderer when user navigates via tab key\n\n\n CellCtrl.prototype.startRowOrCellEdit = function (key, charPress, event) {\n if (event === void 0) {\n event = null;\n }\n\n if (!this.cellComp) {\n return;\n }\n\n if (this.beans.gridOptionsWrapper.isFullRowEdit()) {\n this.rowCtrl.startRowEditing(key, charPress, this);\n } else {\n this.startEditing(key, charPress, true, event);\n }\n };\n\n CellCtrl.prototype.getRowCtrl = function () {\n return this.rowCtrl;\n };\n\n CellCtrl.prototype.getRowPosition = function () {\n return {\n rowIndex: this.cellPosition.rowIndex,\n rowPinned: this.cellPosition.rowPinned\n };\n };\n\n CellCtrl.prototype.updateRangeBordersIfRangeCount = function () {\n if (!this.cellComp) {\n return;\n }\n\n if (this.cellRangeFeature) {\n this.cellRangeFeature.updateRangeBordersIfRangeCount();\n }\n };\n\n CellCtrl.prototype.onRangeSelectionChanged = function () {\n if (!this.cellComp) {\n return;\n }\n\n if (this.cellRangeFeature) {\n this.cellRangeFeature.onRangeSelectionChanged();\n }\n };\n\n CellCtrl.prototype.isRangeSelectionEnabled = function () {\n return this.cellRangeFeature != null;\n };\n\n CellCtrl.prototype.focusCell = function (forceBrowserFocus) {\n if (forceBrowserFocus === void 0) {\n forceBrowserFocus = false;\n }\n\n this.beans.focusService.setFocusedCell({\n rowIndex: this.getCellPosition().rowIndex,\n column: this.column,\n rowPinned: this.rowNode.rowPinned,\n forceBrowserFocus: forceBrowserFocus\n });\n };\n\n CellCtrl.prototype.onRowIndexChanged = function () {\n // when index changes, this influences items that need the index, so we update the\n // grid cell so they are working off the new index.\n this.createCellPosition(); // when the index of the row changes, ie means the cell may have lost or gained focus\n\n this.onCellFocused(); // check range selection\n\n if (this.cellRangeFeature) {\n this.cellRangeFeature.onRangeSelectionChanged();\n }\n };\n\n CellCtrl.prototype.onFirstRightPinnedChanged = function () {\n if (!this.cellComp) {\n return;\n }\n\n var firstRightPinned = this.column.isFirstRightPinned();\n this.cellComp.addOrRemoveCssClass(CSS_CELL_FIRST_RIGHT_PINNED, firstRightPinned);\n };\n\n CellCtrl.prototype.onLastLeftPinnedChanged = function () {\n if (!this.cellComp) {\n return;\n }\n\n var lastLeftPinned = this.column.isLastLeftPinned();\n this.cellComp.addOrRemoveCssClass(CSS_CELL_LAST_LEFT_PINNED, lastLeftPinned);\n };\n\n CellCtrl.prototype.onCellFocused = function (event) {\n if (!this.cellComp || this.gow.isSuppressCellFocus()) {\n return;\n }\n\n var cellFocused = this.beans.focusService.isCellFocused(this.cellPosition);\n this.cellComp.addOrRemoveCssClass(CSS_CELL_FOCUS, cellFocused); // see if we need to force browser focus - this can happen if focus is programmatically set\n\n if (cellFocused && event && event.forceBrowserFocus) {\n var focusEl = this.cellComp.getFocusableElement();\n focusEl.focus({\n preventScroll: !!event.preventScrollOnBrowserFocus\n });\n } // if another cell was focused, and we are editing, then stop editing\n\n\n var fullRowEdit = this.beans.gridOptionsWrapper.isFullRowEdit();\n\n if (!cellFocused && !fullRowEdit && this.editing) {\n this.stopRowOrCellEdit();\n }\n };\n\n CellCtrl.prototype.createCellPosition = function () {\n this.cellPosition = {\n rowIndex: this.rowNode.rowIndex,\n rowPinned: makeNull(this.rowNode.rowPinned),\n column: this.column\n };\n }; // CSS Classes that only get applied once, they never change\n\n\n CellCtrl.prototype.applyStaticCssClasses = function () {\n this.cellComp.addOrRemoveCssClass(CSS_CELL, true);\n this.cellComp.addOrRemoveCssClass(CSS_CELL_NOT_INLINE_EDITING, true); // normal cells fill the height of the row. autoHeight cells have no height to let them\n // fit the height of content.\n\n var autoHeight = this.column.isAutoHeight() == true;\n this.cellComp.addOrRemoveCssClass(CSS_AUTO_HEIGHT, autoHeight);\n this.cellComp.addOrRemoveCssClass(CSS_NORMAL_HEIGHT, !autoHeight);\n };\n\n CellCtrl.prototype.onColumnHover = function () {\n if (!this.cellComp) {\n return;\n }\n\n if (!this.beans.gridOptionsWrapper.isColumnHoverHighlight()) {\n return;\n }\n\n var isHovered = this.beans.columnHoverService.isHovered(this.column);\n this.cellComp.addOrRemoveCssClass(CSS_COLUMN_HOVER, isHovered);\n };\n\n CellCtrl.prototype.onColDefChanged = function () {\n if (!this.cellComp) {\n return;\n }\n\n this.setWrapText();\n\n if (!this.editing) {\n this.refreshCell({\n forceRefresh: true,\n suppressFlash: true\n });\n }\n };\n\n CellCtrl.prototype.setWrapText = function () {\n var value = this.column.getColDef().wrapText == true;\n this.cellComp.addOrRemoveCssClass(CSS_CELL_WRAP_TEXT, value);\n };\n\n CellCtrl.prototype.dispatchCellContextMenuEvent = function (event) {\n var colDef = this.column.getColDef();\n var cellContextMenuEvent = this.createEvent(event, Events.EVENT_CELL_CONTEXT_MENU);\n this.beans.eventService.dispatchEvent(cellContextMenuEvent);\n\n if (colDef.onCellContextMenu) {\n // to make the callback async, do in a timeout\n window.setTimeout(function () {\n return colDef.onCellContextMenu(cellContextMenuEvent);\n }, 0);\n }\n };\n\n CellCtrl.prototype.getCellRenderer = function () {\n return this.cellComp ? this.cellComp.getCellRenderer() : null;\n };\n\n CellCtrl.prototype.getCellEditor = function () {\n return this.cellComp ? this.cellComp.getCellEditor() : null;\n };\n\n CellCtrl.prototype.destroy = function () {\n this.onCellCompAttachedFuncs = [];\n\n _super.prototype.destroy.call(this);\n };\n\n CellCtrl.prototype.createSelectionCheckbox = function () {\n var cbSelectionComponent = new CheckboxSelectionComponent();\n this.beans.context.createBean(cbSelectionComponent);\n cbSelectionComponent.init({\n rowNode: this.rowNode,\n column: this.column\n }); // put the checkbox in before the value\n\n return cbSelectionComponent;\n };\n\n CellCtrl.prototype.createDndSource = function () {\n var dndSourceComp = new DndSourceComp(this.rowNode, this.column, this.beans, this.eGui);\n this.beans.context.createBean(dndSourceComp);\n return dndSourceComp;\n };\n\n CellCtrl.prototype.registerRowDragger = function (customElement, dragStartPixels, suppressVisibilityChange) {\n var _this = this; // if previously existed, then we are only updating\n\n\n if (this.customRowDragComp) {\n this.customRowDragComp.setDragElement(customElement, dragStartPixels);\n return;\n }\n\n var newComp = this.createRowDragComp(customElement, dragStartPixels, suppressVisibilityChange);\n\n if (newComp) {\n this.customRowDragComp = newComp;\n this.addDestroyFunc(function () {\n return _this.beans.context.destroyBean(newComp);\n });\n }\n };\n\n CellCtrl.prototype.createRowDragComp = function (customElement, dragStartPixels, suppressVisibilityChange) {\n var _this = this;\n\n var pagination = this.beans.gridOptionsWrapper.isPagination();\n var rowDragManaged = this.beans.gridOptionsWrapper.isRowDragManaged();\n var clientSideRowModelActive = this.beans.gridOptionsWrapper.isRowModelDefault();\n\n if (rowDragManaged) {\n // row dragging only available in default row model\n if (!clientSideRowModelActive) {\n doOnce(function () {\n return console.warn('AG Grid: managed row dragging is only allowed in the Client Side Row Model');\n }, 'CellComp.addRowDragging');\n return;\n }\n\n if (pagination) {\n doOnce(function () {\n return console.warn('AG Grid: managed row dragging is not possible when doing pagination');\n }, 'CellComp.addRowDragging');\n return;\n }\n } // otherwise (normal case) we are creating a RowDraggingComp for the first time\n\n\n var rowDragComp = new RowDragComp(function () {\n return _this.value;\n }, this.rowNode, this.column, customElement, dragStartPixels, suppressVisibilityChange);\n this.beans.context.createBean(rowDragComp);\n return rowDragComp;\n };\n\n CellCtrl.DOM_DATA_KEY_CELL_CTRL = 'cellCtrl';\n return CellCtrl;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1U = undefined && undefined.__extends || function () {\n var _extendStatics65 = function extendStatics(d, b) {\n _extendStatics65 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics65(d, b);\n };\n\n return function (d, b) {\n _extendStatics65(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __values$2 = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar __read$g = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$c = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$g(arguments[i]));\n }\n\n return ar;\n};\n\nvar RowType$1;\n\n(function (RowType) {\n RowType[\"Normal\"] = \"Normal\";\n RowType[\"FullWidth\"] = \"FullWidth\";\n RowType[\"FullWidthLoading\"] = \"FullWidthLoading\";\n RowType[\"FullWidthGroup\"] = \"FullWidthGroup\";\n RowType[\"FullWidthDetail\"] = \"FullWidthDetail\";\n})(RowType$1 || (RowType$1 = {}));\n\nvar instanceIdSequence$2 = 0;\n\nvar RowCtrl =\n/** @class */\nfunction (_super) {\n __extends$1U(RowCtrl, _super);\n\n function RowCtrl(rowNode, beans, animateIn, useAnimationFrameForCreate, printLayout) {\n var _this = _super.call(this) || this;\n\n _this.allRowGuis = [];\n _this.active = true;\n _this.centerCellCtrls = {\n list: [],\n map: {}\n };\n _this.leftCellCtrls = {\n list: [],\n map: {}\n };\n _this.rightCellCtrls = {\n list: [],\n map: {}\n };\n _this.lastMouseDownOnDragger = false;\n _this.updateColumnListsPending = false;\n _this.beans = beans;\n _this.rowNode = rowNode;\n _this.paginationPage = _this.beans.paginationProxy.getCurrentPage();\n _this.useAnimationFrameForCreate = useAnimationFrameForCreate;\n _this.printLayout = printLayout;\n _this.instanceId = rowNode.id + '-' + instanceIdSequence$2++;\n\n _this.setAnimateFlags(animateIn);\n\n _this.rowFocused = _this.beans.focusService.isRowFocused(_this.rowNode.rowIndex, _this.rowNode.rowPinned);\n _this.rowLevel = _this.beans.rowCssClassCalculator.calculateRowLevel(_this.rowNode);\n\n _this.setRowType();\n\n _this.addListeners();\n\n return _this;\n }\n\n RowCtrl.prototype.isSticky = function () {\n return this.rowNode.sticky;\n };\n\n RowCtrl.prototype.getBeans = function () {\n return this.beans;\n };\n\n RowCtrl.prototype.getInstanceId = function () {\n return this.instanceId;\n };\n\n RowCtrl.prototype.setComp = function (rowComp, element, containerType) {\n var gui = {\n rowComp: rowComp,\n element: element,\n containerType: containerType\n };\n this.allRowGuis.push(gui);\n\n if (containerType === RowContainerType.LEFT) {\n this.leftGui = gui;\n } else if (containerType === RowContainerType.RIGHT) {\n this.rightGui = gui;\n } else if (containerType === RowContainerType.FULL_WIDTH) {\n this.fullWidthGui = gui;\n } else {\n this.centerGui = gui;\n }\n\n var allNormalPresent = this.leftGui != null && this.rightGui != null && this.centerGui != null;\n var fullWidthPresent = this.fullWidthGui != null;\n\n if (allNormalPresent || fullWidthPresent) {\n this.initialiseRowComps();\n }\n\n if (this.rowType !== 'FullWidthLoading') {\n // this is fired within setComp as we know that the component renderer is now trying to render.\n // linked with the fact the function implementation queues behind requestAnimationFrame should allow\n // us to be certain that all rendering is done by the time the event fires.\n this.beans.rowRenderer.dispatchFirstDataRenderedEvent();\n }\n };\n\n RowCtrl.prototype.isCacheable = function () {\n return this.rowType === RowType$1.FullWidthDetail && this.beans.gridOptionsWrapper.isKeepDetailRows();\n };\n\n RowCtrl.prototype.setCached = function (cached) {\n var displayValue = cached ? 'none' : '';\n this.allRowGuis.forEach(function (rg) {\n return rg.element.style.display = displayValue;\n });\n };\n\n RowCtrl.prototype.initialiseRowComps = function () {\n var _this = this;\n\n var gow = this.beans.gridOptionsWrapper;\n this.onRowHeightChanged();\n this.updateRowIndexes();\n this.setFocusedClasses();\n this.setStylesFromGridOptions();\n\n if (gow.isRowSelection() && this.rowNode.selectable) {\n this.onRowSelected();\n }\n\n this.updateColumnLists(!this.useAnimationFrameForCreate);\n\n if (this.slideRowIn) {\n executeNextVMTurn(this.onTopChanged.bind(this));\n }\n\n if (this.fadeRowIn) {\n executeNextVMTurn(function () {\n _this.allRowGuis.forEach(function (gui) {\n return gui.rowComp.addOrRemoveCssClass('ag-opacity-zero', false);\n });\n });\n }\n\n var businessKey = this.getRowBusinessKey();\n var rowIdSanitised = escapeString(this.rowNode.id);\n var businessKeySanitised = escapeString(businessKey);\n this.allRowGuis.forEach(function (gui) {\n var comp = gui.rowComp;\n comp.setRole('row');\n\n var initialRowClasses = _this.getInitialRowClasses(gui.containerType);\n\n initialRowClasses.forEach(function (name) {\n return comp.addOrRemoveCssClass(name, true);\n });\n\n if (_this.rowNode.group) {\n setAriaExpanded(gui.element, _this.rowNode.expanded == true);\n }\n\n if (rowIdSanitised != null) {\n comp.setRowId(rowIdSanitised);\n }\n\n if (businessKeySanitised != null) {\n comp.setRowBusinessKey(businessKeySanitised);\n }\n\n if (_this.isFullWidth() && !_this.beans.gridOptionsWrapper.isSuppressCellFocus()) {\n comp.setTabIndex(-1);\n } // DOM DATA\n\n\n gow.setDomData(gui.element, RowCtrl.DOM_DATA_KEY_ROW_CTRL, _this);\n\n _this.addDestroyFunc(function () {\n return gow.setDomData(gui.element, RowCtrl.DOM_DATA_KEY_ROW_CTRL, null);\n }); // adding hover functionality adds listener to this row, so we\n // do it lazily in an animation frame\n\n\n if (_this.useAnimationFrameForCreate) {\n _this.beans.animationFrameService.createTask(_this.addHoverFunctionality.bind(_this, gui.element), _this.rowNode.rowIndex, 'createTasksP2');\n } else {\n _this.addHoverFunctionality(gui.element);\n }\n\n if (_this.isFullWidth()) {\n _this.setupFullWidth(gui);\n }\n\n if (gow.isRowDragEntireRow()) {\n _this.addRowDraggerToRow(gui);\n }\n\n if (_this.useAnimationFrameForCreate) {\n // the height animation we only want active after the row is alive for 1 second.\n // this stops the row animation working when rows are initially crated. otherwise\n // auto-height rows get inserted into the dom and resized immediately, which gives\n // very bad UX (eg 10 rows get inserted, then all 10 expand, look particularly bad\n // when scrolling). so this makes sure when rows are shown for the first time, they\n // are resized immediately without animation.\n _this.beans.animationFrameService.addDestroyTask(function () {\n if (!_this.isAlive()) {\n return;\n }\n\n gui.rowComp.addOrRemoveCssClass('ag-after-created', true);\n });\n }\n });\n this.executeProcessRowPostCreateFunc();\n };\n\n RowCtrl.prototype.addRowDraggerToRow = function (gui) {\n var gow = this.beans.gridOptionsWrapper;\n\n if (gow.isEnableRangeSelection()) {\n doOnce(function () {\n console.warn('AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn\\'t work with `enableRangeSelection: true`');\n }, 'rowDragAndRangeSelectionEnabled');\n return;\n }\n\n var rowDragComp = new RowDragComp(function () {\n return '1 row';\n }, this.rowNode, undefined, gui.element, undefined, true);\n this.createManagedBean(rowDragComp, this.beans.context);\n };\n\n RowCtrl.prototype.setupFullWidth = function (gui) {\n var pinned = this.getPinnedForContainer(gui.containerType);\n var params = this.createFullWidthParams(gui.element, pinned);\n var masterDetailModuleLoaded = ModuleRegistry.isRegistered(ModuleNames.MasterDetailModule);\n\n if (this.rowType == RowType$1.FullWidthDetail && !masterDetailModuleLoaded) {\n if (ModuleRegistry.isPackageBased()) {\n console.warn(\"AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with ag-grid-enterprise package.\");\n } else {\n console.warn(\"AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with AG Grid Enterprise Module \" + ModuleNames.MasterDetailModule);\n }\n\n return;\n }\n\n var compDetails;\n\n switch (this.rowType) {\n case RowType$1.FullWidthDetail:\n compDetails = this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(params);\n break;\n\n case RowType$1.FullWidthGroup:\n compDetails = this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(params);\n break;\n\n case RowType$1.FullWidthLoading:\n compDetails = this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(params);\n break;\n\n default:\n compDetails = this.beans.userComponentFactory.getFullWidthCellRendererDetails(params);\n break;\n }\n\n gui.rowComp.showFullWidth(compDetails);\n };\n\n RowCtrl.prototype.isPrintLayout = function () {\n return this.printLayout;\n }; // use by autoWidthCalculator, as it clones the elements\n\n\n RowCtrl.prototype.getCellElement = function (column) {\n var cellCtrl = this.getCellCtrl(column);\n return cellCtrl ? cellCtrl.getGui() : null;\n };\n\n RowCtrl.prototype.executeProcessRowPostCreateFunc = function () {\n var func = this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();\n\n if (!func) {\n return;\n }\n\n var params = {\n eRow: this.centerGui ? this.centerGui.element : undefined,\n ePinnedLeftRow: this.leftGui ? this.leftGui.element : undefined,\n ePinnedRightRow: this.rightGui ? this.rightGui.element : undefined,\n node: this.rowNode,\n rowIndex: this.rowNode.rowIndex,\n addRenderedRowListener: this.addEventListener.bind(this)\n };\n func(params);\n };\n\n RowCtrl.prototype.setRowType = function () {\n var isStub = this.rowNode.stub;\n var isFullWidthCell = this.rowNode.isFullWidthCell();\n var isDetailCell = this.beans.doingMasterDetail && this.rowNode.detail;\n var pivotMode = this.beans.columnModel.isPivotMode(); // we only use full width for groups, not footers. it wouldn't make sense to include footers if not looking\n // for totals. if users complain about this, then we should introduce a new property 'footerUseEntireRow'\n // so each can be set independently (as a customer complained about footers getting full width, hence\n // introducing this logic)\n\n var isGroupRow = !!this.rowNode.group && !this.rowNode.footer;\n var isFullWidthGroup = isGroupRow && this.beans.gridOptionsWrapper.isGroupUseEntireRow(pivotMode);\n\n if (isStub) {\n this.rowType = RowType$1.FullWidthLoading;\n } else if (isDetailCell) {\n this.rowType = RowType$1.FullWidthDetail;\n } else if (isFullWidthCell) {\n this.rowType = RowType$1.FullWidth;\n } else if (isFullWidthGroup) {\n this.rowType = RowType$1.FullWidthGroup;\n } else {\n this.rowType = RowType$1.Normal;\n }\n };\n\n RowCtrl.prototype.updateColumnLists = function (suppressAnimationFrame) {\n var _this = this;\n\n if (suppressAnimationFrame === void 0) {\n suppressAnimationFrame = false;\n }\n\n if (this.isFullWidth()) {\n return;\n }\n\n var noAnimation = suppressAnimationFrame || this.beans.gridOptionsWrapper.isSuppressAnimationFrame() || this.printLayout;\n\n if (noAnimation) {\n this.updateColumnListsImpl();\n return;\n }\n\n if (this.updateColumnListsPending) {\n return;\n }\n\n this.beans.animationFrameService.createTask(function () {\n if (!_this.active) {\n return;\n }\n\n _this.updateColumnListsImpl();\n }, this.rowNode.rowIndex, 'createTasksP1');\n this.updateColumnListsPending = true;\n };\n\n RowCtrl.prototype.createCellCtrls = function (prev, cols, pinned) {\n var _this = this;\n\n if (pinned === void 0) {\n pinned = null;\n }\n\n var res = {\n list: [],\n map: {}\n };\n\n var addCell = function addCell(colInstanceId, cellCtrl) {\n res.list.push(cellCtrl);\n res.map[colInstanceId] = cellCtrl;\n };\n\n cols.forEach(function (col) {\n // we use instanceId's rather than colId as it's possible there is a Column with same Id,\n // but it's referring to a different column instance. Happens a lot with pivot, as pivot col id's are\n // reused eg pivot_0, pivot_1 etc\n var colInstanceId = col.getInstanceId();\n var cellCtrl = prev.map[colInstanceId];\n\n if (!cellCtrl) {\n cellCtrl = new CellCtrl(col, _this.rowNode, _this.beans, _this);\n }\n\n addCell(colInstanceId, cellCtrl);\n });\n prev.list.forEach(function (prevCellCtrl) {\n var cellInResult = res.map[prevCellCtrl.getColumn().getInstanceId()] != null;\n\n if (cellInResult) {\n return;\n }\n\n var keepCell = !_this.isCellEligibleToBeRemoved(prevCellCtrl, pinned);\n\n if (keepCell) {\n addCell(prevCellCtrl.getColumn().getInstanceId(), prevCellCtrl);\n return;\n }\n\n prevCellCtrl.destroy();\n });\n return res;\n };\n\n RowCtrl.prototype.updateColumnListsImpl = function () {\n var _this = this;\n\n this.updateColumnListsPending = false;\n var columnModel = this.beans.columnModel;\n\n if (this.printLayout) {\n this.centerCellCtrls = this.createCellCtrls(this.centerCellCtrls, columnModel.getAllDisplayedColumns());\n this.leftCellCtrls = {\n list: [],\n map: {}\n };\n this.rightCellCtrls = {\n list: [],\n map: {}\n };\n } else {\n var centerCols = columnModel.getViewportCenterColumnsForRow(this.rowNode);\n this.centerCellCtrls = this.createCellCtrls(this.centerCellCtrls, centerCols);\n var leftCols = columnModel.getDisplayedLeftColumnsForRow(this.rowNode);\n this.leftCellCtrls = this.createCellCtrls(this.leftCellCtrls, leftCols, Constants.PINNED_LEFT);\n var rightCols = columnModel.getDisplayedRightColumnsForRow(this.rowNode);\n this.rightCellCtrls = this.createCellCtrls(this.rightCellCtrls, rightCols, Constants.PINNED_RIGHT);\n }\n\n this.allRowGuis.forEach(function (item) {\n var cellControls = item.containerType === RowContainerType.LEFT ? _this.leftCellCtrls : item.containerType === RowContainerType.RIGHT ? _this.rightCellCtrls : _this.centerCellCtrls;\n item.rowComp.setCellCtrls(cellControls.list);\n });\n };\n\n RowCtrl.prototype.isCellEligibleToBeRemoved = function (cellCtrl, nextContainerPinned) {\n var REMOVE_CELL = true;\n var KEEP_CELL = false; // always remove the cell if it's not rendered or if it's in the wrong pinned location\n\n var column = cellCtrl.getColumn();\n\n if (column.getPinned() != nextContainerPinned) {\n return REMOVE_CELL;\n } // we want to try and keep editing and focused cells\n\n\n var editing = cellCtrl.isEditing();\n var focused = this.beans.focusService.isCellFocused(cellCtrl.getCellPosition());\n var mightWantToKeepCell = editing || focused;\n\n if (mightWantToKeepCell) {\n var column_1 = cellCtrl.getColumn();\n var displayedColumns = this.beans.columnModel.getAllDisplayedColumns();\n var cellStillDisplayed = displayedColumns.indexOf(column_1) >= 0;\n return cellStillDisplayed ? KEEP_CELL : REMOVE_CELL;\n }\n\n return REMOVE_CELL;\n };\n\n RowCtrl.prototype.setAnimateFlags = function (animateIn) {\n if (!this.isSticky() && animateIn) {\n var oldRowTopExists = exists(this.rowNode.oldRowTop); // if the row had a previous position, we slide it in (animate row top)\n\n this.slideRowIn = oldRowTopExists; // if the row had no previous position, we fade it in (animate\n\n this.fadeRowIn = !oldRowTopExists;\n } else {\n this.slideRowIn = false;\n this.fadeRowIn = false;\n }\n };\n\n RowCtrl.prototype.isEditing = function () {\n return this.editingRow;\n };\n\n RowCtrl.prototype.stopRowEditing = function (cancel) {\n this.stopEditing(cancel);\n };\n\n RowCtrl.prototype.isFullWidth = function () {\n return this.rowType !== RowType$1.Normal;\n };\n\n RowCtrl.prototype.getRowType = function () {\n return this.rowType;\n };\n\n RowCtrl.prototype.refreshFullWidth = function () {\n var _this = this; // returns 'true' if refresh succeeded\n\n\n var tryRefresh = function tryRefresh(gui, pinned) {\n if (!gui) {\n return true;\n } // no refresh needed\n\n\n var cellRenderer = gui.rowComp.getFullWidthCellRenderer(); // no cell renderer, either means comp not yet ready, or comp ready but now reference\n // to it (happens in react when comp is stateless). if comp not ready, we don't need to\n // refresh, however we don't know which one, so we refresh to cover the case where it's\n // react comp without reference so need to force a refresh\n\n if (!cellRenderer) {\n return false;\n } // no refresh method present, so can't refresh, hard refresh needed\n\n\n if (!cellRenderer.refresh) {\n return false;\n }\n\n var params = _this.createFullWidthParams(gui.element, pinned);\n\n var refreshSucceeded = cellRenderer.refresh(params);\n return refreshSucceeded;\n };\n\n var fullWidthSuccess = tryRefresh(this.fullWidthGui, null);\n var centerSuccess = tryRefresh(this.centerGui, null);\n var leftSuccess = tryRefresh(this.leftGui, Constants.PINNED_LEFT);\n var rightSuccess = tryRefresh(this.rightGui, Constants.PINNED_RIGHT);\n var allFullWidthRowsRefreshed = fullWidthSuccess && centerSuccess && leftSuccess && rightSuccess;\n return allFullWidthRowsRefreshed;\n };\n\n RowCtrl.prototype.addListeners = function () {\n this.addManagedListener(this.rowNode, RowNode.EVENT_HEIGHT_CHANGED, this.onRowHeightChanged.bind(this));\n this.addManagedListener(this.rowNode, RowNode.EVENT_ROW_SELECTED, this.onRowSelected.bind(this));\n this.addManagedListener(this.rowNode, RowNode.EVENT_ROW_INDEX_CHANGED, this.onRowIndexChanged.bind(this));\n this.addManagedListener(this.rowNode, RowNode.EVENT_TOP_CHANGED, this.onTopChanged.bind(this));\n this.addManagedListener(this.rowNode, RowNode.EVENT_EXPANDED_CHANGED, this.updateExpandedCss.bind(this));\n this.addManagedListener(this.rowNode, RowNode.EVENT_HAS_CHILDREN_CHANGED, this.updateExpandedCss.bind(this));\n this.addManagedListener(this.rowNode, RowNode.EVENT_DATA_CHANGED, this.onRowNodeDataChanged.bind(this));\n this.addManagedListener(this.rowNode, RowNode.EVENT_CELL_CHANGED, this.onRowNodeCellChanged.bind(this));\n this.addManagedListener(this.rowNode, RowNode.EVENT_HIGHLIGHT_CHANGED, this.onRowNodeHighlightChanged.bind(this));\n this.addManagedListener(this.rowNode, RowNode.EVENT_DRAGGING_CHANGED, this.onRowNodeDraggingChanged.bind(this));\n this.addManagedListener(this.rowNode, RowNode.EVENT_UI_LEVEL_CHANGED, this.onUiLevelChanged.bind(this));\n var eventService = this.beans.eventService;\n this.addManagedListener(eventService, Events.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED, this.onPaginationPixelOffsetChanged.bind(this));\n this.addManagedListener(eventService, Events.EVENT_HEIGHT_SCALE_CHANGED, this.onTopChanged.bind(this));\n this.addManagedListener(eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayedColumnsChanged.bind(this));\n this.addManagedListener(eventService, Events.EVENT_VIRTUAL_COLUMNS_CHANGED, this.onVirtualColumnsChanged.bind(this));\n this.addManagedListener(eventService, Events.EVENT_CELL_FOCUSED, this.onCellFocusChanged.bind(this));\n this.addManagedListener(eventService, Events.EVENT_PAGINATION_CHANGED, this.onPaginationChanged.bind(this));\n this.addManagedListener(eventService, Events.EVENT_MODEL_UPDATED, this.onModelUpdated.bind(this));\n this.addManagedListener(eventService, Events.EVENT_COLUMN_MOVED, this.onColumnMoved.bind(this));\n this.addListenersForCellComps();\n };\n\n RowCtrl.prototype.onColumnMoved = function () {\n this.updateColumnLists();\n };\n\n RowCtrl.prototype.addListenersForCellComps = function () {\n var _this = this;\n\n this.addManagedListener(this.rowNode, RowNode.EVENT_ROW_INDEX_CHANGED, function () {\n _this.getAllCellCtrls().forEach(function (cellCtrl) {\n return cellCtrl.onRowIndexChanged();\n });\n });\n this.addManagedListener(this.rowNode, RowNode.EVENT_CELL_CHANGED, function (event) {\n _this.getAllCellCtrls().forEach(function (cellCtrl) {\n return cellCtrl.onCellChanged(event);\n });\n });\n };\n\n RowCtrl.prototype.onRowNodeDataChanged = function (event) {\n // if this is an update, we want to refresh, as this will allow the user to put in a transition\n // into the cellRenderer refresh method. otherwise this might be completely new data, in which case\n // we will want to completely replace the cells\n this.getAllCellCtrls().forEach(function (cellCtrl) {\n return cellCtrl.refreshCell({\n suppressFlash: !event.update,\n newData: !event.update\n });\n }); // check for selected also, as this could be after lazy loading of the row data, in which case\n // the id might of just gotten set inside the row and the row selected state may of changed\n // as a result. this is what happens when selected rows are loaded in virtual pagination.\n // - niall note - since moving to the stub component, this may no longer be true, as replacing\n // the stub component now replaces the entire row\n\n this.onRowSelected(); // as data has changed, then the style and class needs to be recomputed\n\n this.postProcessCss();\n };\n\n RowCtrl.prototype.onRowNodeCellChanged = function () {\n // as data has changed, then the style and class needs to be recomputed\n this.postProcessCss();\n };\n\n RowCtrl.prototype.postProcessCss = function () {\n this.setStylesFromGridOptions();\n this.postProcessClassesFromGridOptions();\n this.postProcessRowClassRules();\n this.postProcessRowDragging();\n };\n\n RowCtrl.prototype.onRowNodeHighlightChanged = function () {\n var highlighted = this.rowNode.highlighted;\n this.allRowGuis.forEach(function (gui) {\n var aboveOn = highlighted === RowHighlightPosition.Above;\n var belowOn = highlighted === RowHighlightPosition.Below;\n gui.rowComp.addOrRemoveCssClass('ag-row-highlight-above', aboveOn);\n gui.rowComp.addOrRemoveCssClass('ag-row-highlight-below', belowOn);\n });\n };\n\n RowCtrl.prototype.onRowNodeDraggingChanged = function () {\n this.postProcessRowDragging();\n };\n\n RowCtrl.prototype.postProcessRowDragging = function () {\n var dragging = this.rowNode.dragging;\n this.allRowGuis.forEach(function (gui) {\n return gui.rowComp.addOrRemoveCssClass('ag-row-dragging', dragging);\n });\n };\n\n RowCtrl.prototype.updateExpandedCss = function () {\n var expandable = this.rowNode.isExpandable();\n var expanded = this.rowNode.expanded == true;\n this.allRowGuis.forEach(function (gui) {\n gui.rowComp.addOrRemoveCssClass('ag-row-group', expandable);\n gui.rowComp.addOrRemoveCssClass('ag-row-group-expanded', expandable && expanded);\n gui.rowComp.addOrRemoveCssClass('ag-row-group-contracted', expandable && !expanded);\n setAriaExpanded(gui.element, expandable && expanded);\n });\n };\n\n RowCtrl.prototype.onDisplayedColumnsChanged = function () {\n // we skip animations for onDisplayedColumnChanged, as otherwise the client could remove columns and\n // then set data, and any old valueGetter's (ie from cols that were removed) would still get called.\n this.updateColumnLists(true);\n\n if (this.beans.columnModel.wasAutoRowHeightEverActive()) {\n this.rowNode.checkAutoHeights();\n }\n };\n\n RowCtrl.prototype.onVirtualColumnsChanged = function () {\n this.updateColumnLists();\n };\n\n RowCtrl.prototype.getRowPosition = function () {\n return {\n rowPinned: makeNull(this.rowNode.rowPinned),\n rowIndex: this.rowNode.rowIndex\n };\n };\n\n RowCtrl.prototype.onKeyboardNavigate = function (keyboardEvent) {\n var currentFullWidthComp = this.allRowGuis.find(function (c) {\n return c.element.contains(keyboardEvent.target);\n });\n var currentFullWidthContainer = currentFullWidthComp ? currentFullWidthComp.element : null;\n var isFullWidthContainerFocused = currentFullWidthContainer === keyboardEvent.target;\n\n if (!isFullWidthContainerFocused) {\n return;\n }\n\n var node = this.rowNode;\n var lastFocusedCell = this.beans.focusService.getFocusedCell();\n var cellPosition = {\n rowIndex: node.rowIndex,\n rowPinned: node.rowPinned,\n column: lastFocusedCell && lastFocusedCell.column\n };\n this.beans.navigationService.navigateToNextCell(keyboardEvent, keyboardEvent.key, cellPosition, true);\n keyboardEvent.preventDefault();\n };\n\n RowCtrl.prototype.onTabKeyDown = function (keyboardEvent) {\n if (keyboardEvent.defaultPrevented || isStopPropagationForAgGrid(keyboardEvent)) {\n return;\n }\n\n var currentFullWidthComp = this.allRowGuis.find(function (c) {\n return c.element.contains(keyboardEvent.target);\n });\n var currentFullWidthContainer = currentFullWidthComp ? currentFullWidthComp.element : null;\n var isFullWidthContainerFocused = currentFullWidthContainer === keyboardEvent.target;\n var nextEl = null;\n\n if (!isFullWidthContainerFocused) {\n nextEl = this.beans.focusService.findNextFocusableElement(currentFullWidthContainer, false, keyboardEvent.shiftKey);\n }\n\n if (this.isFullWidth() && isFullWidthContainerFocused || !nextEl) {\n this.beans.navigationService.onTabKeyDown(this, keyboardEvent);\n }\n };\n\n RowCtrl.prototype.onFullWidthRowFocused = function (event) {\n var _a;\n\n var node = this.rowNode;\n var isFocused = this.isFullWidth() && event.rowIndex === node.rowIndex && event.rowPinned == node.rowPinned;\n var element = this.fullWidthGui ? this.fullWidthGui.element : (_a = this.centerGui) === null || _a === void 0 ? void 0 : _a.element;\n\n if (!element) {\n return;\n } // can happen with react ui, comp not yet ready\n\n\n element.classList.toggle('ag-full-width-focus', isFocused);\n\n if (isFocused) {\n // we don't scroll normal rows into view when we focus them, so we don't want\n // to scroll Full Width rows either.\n element.focus({\n preventScroll: true\n });\n }\n };\n\n RowCtrl.prototype.refreshCell = function (cellCtrl) {\n this.centerCellCtrls = this.removeCellCtrl(this.centerCellCtrls, cellCtrl);\n this.leftCellCtrls = this.removeCellCtrl(this.leftCellCtrls, cellCtrl);\n this.rightCellCtrls = this.removeCellCtrl(this.rightCellCtrls, cellCtrl);\n this.updateColumnLists();\n };\n\n RowCtrl.prototype.removeCellCtrl = function (prev, cellCtrlToRemove) {\n var res = {\n list: [],\n map: {}\n };\n prev.list.forEach(function (cellCtrl) {\n if (cellCtrl === cellCtrlToRemove) {\n return;\n }\n\n res.list.push(cellCtrl);\n res.map[cellCtrl.getInstanceId()] = cellCtrl;\n });\n return res;\n };\n\n RowCtrl.prototype.onMouseEvent = function (eventName, mouseEvent) {\n switch (eventName) {\n case 'dblclick':\n this.onRowDblClick(mouseEvent);\n break;\n\n case 'click':\n this.onRowClick(mouseEvent);\n break;\n\n case 'touchstart':\n case 'mousedown':\n this.onRowMouseDown(mouseEvent);\n break;\n }\n };\n\n RowCtrl.prototype.createRowEvent = function (type, domEvent) {\n return {\n type: type,\n node: this.rowNode,\n data: this.rowNode.data,\n rowIndex: this.rowNode.rowIndex,\n rowPinned: this.rowNode.rowPinned,\n context: this.beans.gridOptionsWrapper.getContext(),\n api: this.beans.gridOptionsWrapper.getApi(),\n columnApi: this.beans.gridOptionsWrapper.getColumnApi(),\n event: domEvent\n };\n };\n\n RowCtrl.prototype.createRowEventWithSource = function (type, domEvent) {\n var event = this.createRowEvent(type, domEvent); // when first developing this, we included the rowComp in the event.\n // this seems very weird. so when introducing the event types, i left the 'source'\n // out of the type, and just include the source in the two places where this event\n // was fired (rowClicked and rowDoubleClicked). it doesn't make sense for any\n // users to be using this, as the rowComp isn't an object we expose, so would be\n // very surprising if a user was using it.\n\n event.source = this;\n return event;\n };\n\n RowCtrl.prototype.onRowDblClick = function (mouseEvent) {\n if (isStopPropagationForAgGrid(mouseEvent)) {\n return;\n }\n\n var agEvent = this.createRowEventWithSource(Events.EVENT_ROW_DOUBLE_CLICKED, mouseEvent);\n this.beans.eventService.dispatchEvent(agEvent);\n };\n\n RowCtrl.prototype.onRowMouseDown = function (mouseEvent) {\n this.lastMouseDownOnDragger = isElementChildOfClass(mouseEvent.target, 'ag-row-drag', 3);\n\n if (!this.isFullWidth()) {\n return;\n }\n\n var node = this.rowNode;\n var columnModel = this.beans.columnModel;\n\n if (this.beans.rangeService) {\n this.beans.rangeService.removeAllCellRanges();\n }\n\n this.beans.focusService.setFocusedCell({\n rowIndex: node.rowIndex,\n column: columnModel.getAllDisplayedColumns()[0],\n rowPinned: node.rowPinned,\n forceBrowserFocus: true\n });\n };\n\n RowCtrl.prototype.onRowClick = function (mouseEvent) {\n var stop = isStopPropagationForAgGrid(mouseEvent) || this.lastMouseDownOnDragger;\n\n if (stop) {\n return;\n }\n\n var agEvent = this.createRowEventWithSource(Events.EVENT_ROW_CLICKED, mouseEvent);\n this.beans.eventService.dispatchEvent(agEvent); // ctrlKey for windows, metaKey for Apple\n\n var multiSelectKeyPressed = mouseEvent.ctrlKey || mouseEvent.metaKey;\n var shiftKeyPressed = mouseEvent.shiftKey; // we do not allow selecting the group by clicking, when groupSelectChildren, as the logic to\n // handle this is broken. to observe, change the logic below and allow groups to be selected.\n // you will see the group gets selected, then all children get selected, then the grid unselects\n // the children (as the default behaviour when clicking is to unselect other rows) which results\n // in the group getting unselected (as all children are unselected). the correct thing would be\n // to change this, so that children of the selected group are not then subsequenly un-selected.\n\n var groupSelectsChildren = this.beans.gridOptionsWrapper.isGroupSelectsChildren();\n\n if ( // we do not allow selecting groups by clicking (as the click here expands the group), or if it's a detail row,\n // so return if it's a group row\n groupSelectsChildren && this.rowNode.group || // this is needed so we don't unselect other rows when we click this row, eg if this row is not selectable,\n // and we click it, the selection should not change (ie any currently selected row should stay selected)\n !this.rowNode.selectable || // we also don't allow selection of pinned rows\n this.rowNode.rowPinned || // if no selection method enabled, do nothing\n !this.beans.gridOptionsWrapper.isRowSelection() || // if click selection suppressed, do nothing\n this.beans.gridOptionsWrapper.isSuppressRowClickSelection()) {\n return;\n }\n\n var multiSelectOnClick = this.beans.gridOptionsWrapper.isRowMultiSelectWithClick();\n var rowDeselectionWithCtrl = !this.beans.gridOptionsWrapper.isSuppressRowDeselection();\n\n if (this.rowNode.isSelected()) {\n if (multiSelectOnClick) {\n this.rowNode.setSelectedParams({\n newValue: false,\n event: mouseEvent\n });\n } else if (multiSelectKeyPressed) {\n if (rowDeselectionWithCtrl) {\n this.rowNode.setSelectedParams({\n newValue: false,\n event: mouseEvent\n });\n }\n } else {\n // selected with no multi key, must make sure anything else is unselected\n this.rowNode.setSelectedParams({\n newValue: true,\n clearSelection: !shiftKeyPressed,\n rangeSelect: shiftKeyPressed,\n event: mouseEvent\n });\n }\n } else {\n var clearSelection = multiSelectOnClick ? false : !multiSelectKeyPressed;\n this.rowNode.setSelectedParams({\n newValue: true,\n clearSelection: clearSelection,\n rangeSelect: shiftKeyPressed,\n event: mouseEvent\n });\n }\n };\n\n RowCtrl.prototype.setupDetailRowAutoHeight = function (eDetailGui) {\n var _this = this;\n\n if (this.rowType !== RowType$1.FullWidthDetail) {\n return;\n }\n\n if (!this.beans.gridOptionsWrapper.isDetailRowAutoHeight()) {\n return;\n }\n\n var checkRowSizeFunc = function checkRowSizeFunc() {\n var clientHeight = eDetailGui.clientHeight; // if the UI is not ready, the height can be 0, which we ignore, as otherwise a flicker will occur\n // as UI goes from the default height, to 0, then to the real height as UI becomes ready. this means\n // it's not possible for have 0 as auto-height, however this is an improbable use case, as even an\n // empty detail grid would still have some styling around it giving at least a few pixels.\n\n if (clientHeight != null && clientHeight > 0) {\n // we do the update in a timeout, to make sure we are not calling from inside the grid\n // doing another update\n var updateRowHeightFunc = function updateRowHeightFunc() {\n _this.rowNode.setRowHeight(clientHeight);\n\n if (_this.beans.clientSideRowModel) {\n _this.beans.clientSideRowModel.onRowHeightChanged();\n } else if (_this.beans.serverSideRowModel) {\n _this.beans.serverSideRowModel.onRowHeightChanged();\n }\n };\n\n _this.beans.frameworkOverrides.setTimeout(updateRowHeightFunc, 0);\n }\n };\n\n var resizeObserverDestroyFunc = this.beans.resizeObserverService.observeResize(eDetailGui, checkRowSizeFunc);\n this.addDestroyFunc(resizeObserverDestroyFunc);\n checkRowSizeFunc();\n };\n\n RowCtrl.prototype.createFullWidthParams = function (eRow, pinned) {\n var _this = this;\n\n var params = {\n fullWidth: true,\n data: this.rowNode.data,\n node: this.rowNode,\n value: this.rowNode.key,\n valueFormatted: this.rowNode.key,\n rowIndex: this.rowNode.rowIndex,\n api: this.beans.gridOptionsWrapper.getApi(),\n columnApi: this.beans.gridOptionsWrapper.getColumnApi(),\n context: this.beans.gridOptionsWrapper.getContext(),\n // these need to be taken out, as part of 'afterAttached' now\n eGridCell: eRow,\n eParentOfValue: eRow,\n pinned: pinned,\n addRenderedRowListener: this.addEventListener.bind(this),\n registerRowDragger: function registerRowDragger(rowDraggerElement, dragStartPixels, value, suppressVisibilityChange) {\n return _this.addFullWidthRowDragging(rowDraggerElement, dragStartPixels, value, suppressVisibilityChange);\n }\n };\n return params;\n };\n\n RowCtrl.prototype.addFullWidthRowDragging = function (rowDraggerElement, dragStartPixels, value, suppressVisibilityChange) {\n if (value === void 0) {\n value = '';\n }\n\n if (!this.isFullWidth()) {\n return;\n }\n\n var rowDragComp = new RowDragComp(function () {\n return value;\n }, this.rowNode, undefined, rowDraggerElement, dragStartPixels, suppressVisibilityChange);\n this.createManagedBean(rowDragComp, this.beans.context);\n };\n\n RowCtrl.prototype.onUiLevelChanged = function () {\n var newLevel = this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);\n\n if (this.rowLevel != newLevel) {\n var classToAdd_1 = 'ag-row-level-' + newLevel;\n var classToRemove_1 = 'ag-row-level-' + this.rowLevel;\n this.allRowGuis.forEach(function (gui) {\n gui.rowComp.addOrRemoveCssClass(classToAdd_1, true);\n gui.rowComp.addOrRemoveCssClass(classToRemove_1, false);\n });\n }\n\n this.rowLevel = newLevel;\n };\n\n RowCtrl.prototype.isFirstRowOnPage = function () {\n return this.rowNode.rowIndex === this.beans.paginationProxy.getPageFirstRow();\n };\n\n RowCtrl.prototype.isLastRowOnPage = function () {\n return this.rowNode.rowIndex === this.beans.paginationProxy.getPageLastRow();\n };\n\n RowCtrl.prototype.onModelUpdated = function () {\n this.refreshFirstAndLastRowStyles();\n };\n\n RowCtrl.prototype.refreshFirstAndLastRowStyles = function () {\n var newFirst = this.isFirstRowOnPage();\n var newLast = this.isLastRowOnPage();\n\n if (this.firstRowOnPage !== newFirst) {\n this.firstRowOnPage = newFirst;\n this.allRowGuis.forEach(function (gui) {\n return gui.rowComp.addOrRemoveCssClass('ag-row-first', newFirst);\n });\n }\n\n if (this.lastRowOnPage !== newLast) {\n this.lastRowOnPage = newLast;\n this.allRowGuis.forEach(function (gui) {\n return gui.rowComp.addOrRemoveCssClass('ag-row-last', newLast);\n });\n }\n };\n\n RowCtrl.prototype.stopEditing = function (cancel) {\n var e_1, _a;\n\n if (cancel === void 0) {\n cancel = false;\n } // if we are already stopping row edit, there is\n // no need to start this process again.\n\n\n if (this.stoppingRowEdit) {\n return;\n }\n\n var cellControls = this.getAllCellCtrls();\n var isRowEdit = this.editingRow;\n this.stoppingRowEdit = true;\n var fireRowEditEvent = false;\n\n try {\n for (var cellControls_1 = __values$2(cellControls), cellControls_1_1 = cellControls_1.next(); !cellControls_1_1.done; cellControls_1_1 = cellControls_1.next()) {\n var ctrl = cellControls_1_1.value;\n var valueChanged = ctrl.stopEditing(cancel);\n\n if (isRowEdit && !cancel && !fireRowEditEvent && valueChanged) {\n fireRowEditEvent = true;\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (cellControls_1_1 && !cellControls_1_1.done && (_a = cellControls_1.return)) _a.call(cellControls_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n if (fireRowEditEvent) {\n var event_1 = this.createRowEvent(Events.EVENT_ROW_VALUE_CHANGED);\n this.beans.eventService.dispatchEvent(event_1);\n }\n\n if (isRowEdit) {\n this.setEditingRow(false);\n }\n\n this.stoppingRowEdit = false;\n };\n\n RowCtrl.prototype.setInlineEditingCss = function (editing) {\n this.allRowGuis.forEach(function (gui) {\n gui.rowComp.addOrRemoveCssClass(\"ag-row-inline-editing\", editing);\n gui.rowComp.addOrRemoveCssClass(\"ag-row-not-inline-editing\", !editing);\n });\n };\n\n RowCtrl.prototype.setEditingRow = function (value) {\n this.editingRow = value;\n this.allRowGuis.forEach(function (gui) {\n return gui.rowComp.addOrRemoveCssClass('ag-row-editing', value);\n });\n var event = value ? this.createRowEvent(Events.EVENT_ROW_EDITING_STARTED) : this.createRowEvent(Events.EVENT_ROW_EDITING_STOPPED);\n this.beans.eventService.dispatchEvent(event);\n };\n\n RowCtrl.prototype.startRowEditing = function (key, charPress, sourceRenderedCell, event) {\n if (key === void 0) {\n key = null;\n }\n\n if (charPress === void 0) {\n charPress = null;\n }\n\n if (sourceRenderedCell === void 0) {\n sourceRenderedCell = null;\n }\n\n if (event === void 0) {\n event = null;\n } // don't do it if already editing\n\n\n if (this.editingRow) {\n return;\n }\n\n this.getAllCellCtrls().forEach(function (cellCtrl) {\n var cellStartedEdit = cellCtrl === sourceRenderedCell;\n\n if (cellStartedEdit) {\n cellCtrl.startEditing(key, charPress, cellStartedEdit, event);\n } else {\n cellCtrl.startEditing(null, null, cellStartedEdit, event);\n }\n });\n this.setEditingRow(true);\n };\n\n RowCtrl.prototype.getAllCellCtrls = function () {\n var res = __spread$c(this.centerCellCtrls.list, this.leftCellCtrls.list, this.rightCellCtrls.list);\n\n return res;\n };\n\n RowCtrl.prototype.postProcessClassesFromGridOptions = function () {\n var _this = this;\n\n var cssClasses = this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);\n\n if (!cssClasses || !cssClasses.length) {\n return;\n }\n\n cssClasses.forEach(function (classStr) {\n _this.allRowGuis.forEach(function (c) {\n return c.rowComp.addOrRemoveCssClass(classStr, true);\n });\n });\n };\n\n RowCtrl.prototype.postProcessRowClassRules = function () {\n var _this = this;\n\n this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode, function (className) {\n _this.allRowGuis.forEach(function (gui) {\n return gui.rowComp.addOrRemoveCssClass(className, true);\n });\n }, function (className) {\n _this.allRowGuis.forEach(function (gui) {\n return gui.rowComp.addOrRemoveCssClass(className, false);\n });\n });\n };\n\n RowCtrl.prototype.setStylesFromGridOptions = function () {\n var rowStyles = this.processStylesFromGridOptions();\n this.allRowGuis.forEach(function (gui) {\n return gui.rowComp.setUserStyles(rowStyles);\n });\n };\n\n RowCtrl.prototype.getRowBusinessKey = function () {\n var businessKeyForNodeFunc = this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();\n\n if (typeof businessKeyForNodeFunc !== 'function') {\n return;\n }\n\n return businessKeyForNodeFunc(this.rowNode);\n };\n\n RowCtrl.prototype.getPinnedForContainer = function (rowContainerType) {\n var pinned = rowContainerType === RowContainerType.LEFT ? Constants.PINNED_LEFT : rowContainerType === RowContainerType.RIGHT ? Constants.PINNED_RIGHT : null;\n return pinned;\n };\n\n RowCtrl.prototype.getInitialRowClasses = function (rowContainerType) {\n var pinned = this.getPinnedForContainer(rowContainerType);\n var params = {\n rowNode: this.rowNode,\n rowFocused: this.rowFocused,\n fadeRowIn: this.fadeRowIn,\n rowIsEven: this.rowNode.rowIndex % 2 === 0,\n rowLevel: this.rowLevel,\n fullWidthRow: this.isFullWidth(),\n firstRowOnPage: this.isFirstRowOnPage(),\n lastRowOnPage: this.isLastRowOnPage(),\n printLayout: this.printLayout,\n expandable: this.rowNode.isExpandable(),\n pinned: pinned\n };\n return this.beans.rowCssClassCalculator.getInitialRowClasses(params);\n };\n\n RowCtrl.prototype.processStylesFromGridOptions = function () {\n // part 1 - rowStyle\n var rowStyle = this.beans.gridOptionsWrapper.getRowStyle();\n\n if (rowStyle && typeof rowStyle === 'function') {\n console.warn('AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead');\n return;\n } // part 1 - rowStyleFunc\n\n\n var rowStyleFunc = this.beans.gridOptionsWrapper.getRowStyleFunc();\n var rowStyleFuncResult;\n\n if (rowStyleFunc) {\n var params = {\n data: this.rowNode.data,\n node: this.rowNode,\n rowIndex: this.rowNode.rowIndex\n };\n rowStyleFuncResult = rowStyleFunc(params);\n }\n\n return Object.assign({}, rowStyle, rowStyleFuncResult);\n };\n\n RowCtrl.prototype.onRowSelected = function () {\n var _this = this; // Treat undefined as false, if we pass undefined down it gets treated as toggle class, rather than explicitly\n // setting the required value\n\n\n var selected = !!this.rowNode.isSelected();\n this.allRowGuis.forEach(function (gui) {\n gui.rowComp.addOrRemoveCssClass('ag-row-selected', selected);\n setAriaSelected(gui.element, selected ? true : undefined);\n\n var ariaLabel = _this.createAriaLabel();\n\n setAriaLabel(gui.element, ariaLabel == null ? '' : ariaLabel);\n });\n };\n\n RowCtrl.prototype.createAriaLabel = function () {\n var selected = this.rowNode.isSelected();\n\n if (selected && this.beans.gridOptionsWrapper.isSuppressRowDeselection()) {\n return undefined;\n }\n\n var translate = this.beans.gridOptionsWrapper.getLocaleTextFunc();\n var label = translate(selected ? 'ariaRowDeselect' : 'ariaRowSelect', \"Press SPACE to \" + (selected ? 'deselect' : 'select') + \" this row.\");\n return label;\n };\n\n RowCtrl.prototype.isUseAnimationFrameForCreate = function () {\n return this.useAnimationFrameForCreate;\n };\n\n RowCtrl.prototype.addHoverFunctionality = function (eRow) {\n var _this = this; // because we use animation frames to do this, it's possible the row no longer exists\n // by the time we get to add it\n\n\n if (!this.active) {\n return;\n } // because mouseenter and mouseleave do not propagate, we cannot listen on the gridPanel\n // like we do for all the other mouse events.\n // because of the pinning, we cannot simply add / remove the class based on the eRow. we\n // have to check all eRow's (body & pinned). so the trick is if any of the rows gets a\n // mouse hover, it sets such in the rowNode, and then all three reflect the change as\n // all are listening for event on the row node.\n // step 1 - add listener, to set flag on row node\n\n\n this.addManagedListener(eRow, 'mouseenter', function () {\n return _this.rowNode.onMouseEnter();\n });\n this.addManagedListener(eRow, 'mouseleave', function () {\n return _this.rowNode.onMouseLeave();\n }); // step 2 - listen for changes on row node (which any eRow can trigger)\n\n this.addManagedListener(this.rowNode, RowNode.EVENT_MOUSE_ENTER, function () {\n // if hover turned off, we don't add the class. we do this here so that if the application\n // toggles this property mid way, we remove the hover form the last row, but we stop\n // adding hovers from that point onwards.\n if (!_this.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()) {\n eRow.classList.add('ag-row-hover');\n }\n });\n this.addManagedListener(this.rowNode, RowNode.EVENT_MOUSE_LEAVE, function () {\n eRow.classList.remove('ag-row-hover');\n });\n }; // for animation, we don't want to animate entry or exit to a very far away pixel,\n // otherwise the row would move so fast, it would appear to disappear. so this method\n // moves the row closer to the viewport if it is far away, so the row slide in / out\n // at a speed the user can see.\n\n\n RowCtrl.prototype.roundRowTopToBounds = function (rowTop) {\n var gridBodyCon = this.beans.ctrlsService.getGridBodyCtrl();\n var range = gridBodyCon.getScrollFeature().getVScrollPosition();\n var minPixel = this.applyPaginationOffset(range.top, true) - 100;\n var maxPixel = this.applyPaginationOffset(range.bottom, true) + 100;\n return Math.min(Math.max(minPixel, rowTop), maxPixel);\n };\n\n RowCtrl.prototype.getFrameworkOverrides = function () {\n return this.beans.frameworkOverrides;\n };\n\n RowCtrl.prototype.onRowHeightChanged = function () {\n // check for exists first - if the user is resetting the row height, then\n // it will be null (or undefined) momentarily until the next time the flatten\n // stage is called where the row will then update again with a new height\n if (this.rowNode.rowHeight == null) {\n return;\n }\n\n var rowHeight = this.rowNode.rowHeight;\n var defaultRowHeight = this.beans.gridOptionsWrapper.getDefaultRowHeight();\n var isHeightFromFunc = this.beans.gridOptionsWrapper.isGetRowHeightFunction();\n var heightFromFunc = isHeightFromFunc ? this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height : undefined;\n var lineHeight = heightFromFunc ? Math.min(defaultRowHeight, heightFromFunc) - 2 + \"px\" : undefined;\n this.allRowGuis.forEach(function (gui) {\n gui.element.style.height = rowHeight + \"px\"; // If the row height is coming from a function, this means some rows can\n // be smaller than the theme had intended. so we set --ag-line-height on\n // the row, which is picked up by the theme CSS and is used in a calc\n // for the CSS line-height property, which makes sure the line-height is\n // not bigger than the row height, otherwise the row text would not fit.\n // We do not use rowNode.rowHeight here, as this could be the result of autoHeight,\n // and we found using the autoHeight result causes a loop, where changing the\n // line-height them impacts the cell height, resulting in a new autoHeight,\n // resulting in a new line-height and so on loop.\n // const heightFromFunc = this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height;\n\n if (lineHeight) {\n gui.element.style.setProperty('--ag-line-height', lineHeight);\n }\n });\n };\n\n RowCtrl.prototype.addEventListener = function (eventType, listener) {\n if (eventType === 'renderedRowRemoved' || eventType === 'rowRemoved') {\n eventType = Events.EVENT_VIRTUAL_ROW_REMOVED;\n console.warn('AG Grid: Since version 11, event renderedRowRemoved is now called ' + Events.EVENT_VIRTUAL_ROW_REMOVED);\n }\n\n _super.prototype.addEventListener.call(this, eventType, listener);\n };\n\n RowCtrl.prototype.removeEventListener = function (eventType, listener) {\n if (eventType === 'renderedRowRemoved' || eventType === 'rowRemoved') {\n eventType = Events.EVENT_VIRTUAL_ROW_REMOVED;\n console.warn('AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called ' + Events.EVENT_VIRTUAL_ROW_REMOVED);\n }\n\n _super.prototype.removeEventListener.call(this, eventType, listener);\n }; // note - this is NOT called by context, as we don't wire / unwire the CellComp for performance reasons.\n\n\n RowCtrl.prototype.destroyFirstPass = function () {\n this.active = false; // why do we have this method? shouldn't everything below be added as a destroy func beside\n // the corresponding create logic?\n\n this.setupRemoveAnimation();\n var event = this.createRowEvent(Events.EVENT_VIRTUAL_ROW_REMOVED);\n this.dispatchEvent(event);\n this.beans.eventService.dispatchEvent(event);\n\n _super.prototype.destroy.call(this);\n };\n\n RowCtrl.prototype.setupRemoveAnimation = function () {\n // we don't animate sticky rows\n if (this.isSticky()) {\n return;\n }\n\n var rowStillVisibleJustNotInViewport = this.rowNode.rowTop != null;\n\n if (rowStillVisibleJustNotInViewport) {\n // if the row is not rendered, but in viewport, it means it has moved,\n // so we animate the row out. if the new location is very far away,\n // the animation will be so fast the row will look like it's just disappeared,\n // so instead we animate to a position just outside the viewport.\n var rowTop = this.roundRowTopToBounds(this.rowNode.rowTop);\n this.setRowTop(rowTop);\n } else {\n this.allRowGuis.forEach(function (gui) {\n return gui.rowComp.addOrRemoveCssClass('ag-opacity-zero', true);\n });\n }\n };\n\n RowCtrl.prototype.destroySecondPass = function () {\n this.allRowGuis.length = 0;\n\n var destroyCellCtrls = function destroyCellCtrls(ctrls) {\n ctrls.list.forEach(function (c) {\n return c.destroy();\n });\n return {\n list: [],\n map: {}\n };\n };\n\n this.centerCellCtrls = destroyCellCtrls(this.centerCellCtrls);\n this.leftCellCtrls = destroyCellCtrls(this.leftCellCtrls);\n this.rightCellCtrls = destroyCellCtrls(this.rightCellCtrls);\n };\n\n RowCtrl.prototype.setFocusedClasses = function () {\n var _this = this;\n\n this.allRowGuis.forEach(function (gui) {\n gui.rowComp.addOrRemoveCssClass('ag-row-focus', _this.rowFocused);\n gui.rowComp.addOrRemoveCssClass('ag-row-no-focus', !_this.rowFocused);\n });\n };\n\n RowCtrl.prototype.onCellFocusChanged = function () {\n var rowFocused = this.beans.focusService.isRowFocused(this.rowNode.rowIndex, this.rowNode.rowPinned);\n\n if (rowFocused !== this.rowFocused) {\n this.rowFocused = rowFocused;\n this.setFocusedClasses();\n } // if we are editing, then moving the focus out of a row will stop editing\n\n\n if (!rowFocused && this.editingRow) {\n this.stopEditing(false);\n }\n };\n\n RowCtrl.prototype.onPaginationChanged = function () {\n var currentPage = this.beans.paginationProxy.getCurrentPage(); // it is possible this row is in the new page, but the page number has changed, which means\n // it needs to reposition itself relative to the new page\n\n if (this.paginationPage !== currentPage) {\n this.paginationPage = currentPage;\n this.onTopChanged();\n }\n\n this.refreshFirstAndLastRowStyles();\n };\n\n RowCtrl.prototype.onTopChanged = function () {\n this.setRowTop(this.rowNode.rowTop);\n };\n\n RowCtrl.prototype.onPaginationPixelOffsetChanged = function () {\n // the pixel offset is used when calculating rowTop to set on the row DIV\n this.onTopChanged();\n }; // applies pagination offset, eg if on second page, and page height is 500px, then removes\n // 500px from the top position, so a row with rowTop 600px is displayed at location 100px.\n // reverse will take the offset away rather than add.\n\n\n RowCtrl.prototype.applyPaginationOffset = function (topPx, reverse) {\n if (reverse === void 0) {\n reverse = false;\n }\n\n if (this.rowNode.isRowPinned()) {\n return topPx;\n }\n\n var pixelOffset = this.beans.paginationProxy.getPixelOffset();\n var multiplier = reverse ? 1 : -1;\n return topPx + pixelOffset * multiplier;\n };\n\n RowCtrl.prototype.setRowTop = function (pixels) {\n // print layout uses normal flow layout for row positioning\n if (this.printLayout) {\n return;\n } // need to make sure rowTop is not null, as this can happen if the node was once\n // visible (ie parent group was expanded) but is now not visible\n\n\n if (exists(pixels)) {\n var afterPaginationPixels = this.applyPaginationOffset(pixels);\n var afterScalingPixels = this.rowNode.isRowPinned() ? afterPaginationPixels : this.beans.rowContainerHeightService.getRealPixelPosition(afterPaginationPixels);\n var topPx = afterScalingPixels + \"px\";\n this.setRowTopStyle(topPx);\n }\n }; // the top needs to be set into the DOM element when the element is created, not updated afterwards.\n // otherwise the transition would not work, as it would be transitioning from zero (the unset value).\n // for example, suppose a row that is outside the viewport, then user does a filter to remove other rows\n // and this row now appears in the viewport, and the row moves up (ie it was under the viewport and not rendered,\n // but now is in the viewport) then a new RowComp is created, however it should have it's position initialised\n // to below the viewport, so the row will appear to animate up. if we didn't set the initial position at creation\n // time, the row would animate down (ie from position zero).\n\n\n RowCtrl.prototype.getInitialRowTop = function () {\n var suppressRowTransform = this.beans.gridOptionsWrapper.isSuppressRowTransform();\n return suppressRowTransform ? this.getInitialRowTopShared() : undefined;\n };\n\n RowCtrl.prototype.getInitialTransform = function () {\n var suppressRowTransform = this.beans.gridOptionsWrapper.isSuppressRowTransform();\n return suppressRowTransform ? undefined : \"translateY(\" + this.getInitialRowTopShared() + \")\";\n };\n\n RowCtrl.prototype.getInitialRowTopShared = function () {\n // print layout uses normal flow layout for row positioning\n if (this.printLayout) {\n return '';\n }\n\n var rowTop;\n\n if (this.isSticky()) {\n rowTop = this.rowNode.stickyRowTop;\n } else {\n // if sliding in, we take the old row top. otherwise we just set the current row top.\n var pixels = this.slideRowIn ? this.roundRowTopToBounds(this.rowNode.oldRowTop) : this.rowNode.rowTop;\n var afterPaginationPixels = this.applyPaginationOffset(pixels); // we don't apply scaling if row is pinned\n\n rowTop = this.rowNode.isRowPinned() ? afterPaginationPixels : this.beans.rowContainerHeightService.getRealPixelPosition(afterPaginationPixels);\n }\n\n return rowTop + 'px';\n };\n\n RowCtrl.prototype.setRowTopStyle = function (topPx) {\n var suppressRowTransform = this.beans.gridOptionsWrapper.isSuppressRowTransform();\n this.allRowGuis.forEach(function (gui) {\n return suppressRowTransform ? gui.rowComp.setTop(topPx) : gui.rowComp.setTransform(\"translateY(\" + topPx + \")\");\n });\n };\n\n RowCtrl.prototype.getRowNode = function () {\n return this.rowNode;\n };\n\n RowCtrl.prototype.getCellCtrl = function (column) {\n // first up, check for cell directly linked to this column\n var res = null;\n this.getAllCellCtrls().forEach(function (cellCtrl) {\n if (cellCtrl.getColumn() == column) {\n res = cellCtrl;\n }\n });\n\n if (res != null) {\n return res;\n } // second up, if not found, then check for spanned cols.\n // we do this second (and not at the same time) as this is\n // more expensive, as spanning cols is a\n // infrequently used feature so we don't need to do this most\n // of the time\n\n\n this.getAllCellCtrls().forEach(function (cellCtrl) {\n if (cellCtrl.getColSpanningList().indexOf(column) >= 0) {\n res = cellCtrl;\n }\n });\n return res;\n };\n\n RowCtrl.prototype.onRowIndexChanged = function () {\n // we only bother updating if the rowIndex is present. if it is not present, it means this row\n // is child of a group node, and the group node was closed, it's the only way to have no row index.\n // when this happens, row is about to be de-rendered, so we don't care, rowComp is about to die!\n if (this.rowNode.rowIndex != null) {\n this.onCellFocusChanged();\n this.updateRowIndexes();\n this.postProcessCss();\n }\n };\n\n RowCtrl.prototype.updateRowIndexes = function () {\n var rowIndexStr = this.rowNode.getRowIndexString();\n var headerRowCount = this.beans.headerNavigationService.getHeaderRowCount();\n var rowIsEven = this.rowNode.rowIndex % 2 === 0;\n var ariaRowIndex = headerRowCount + this.rowNode.rowIndex + 1;\n this.allRowGuis.forEach(function (c) {\n c.rowComp.setRowIndex(rowIndexStr);\n c.rowComp.addOrRemoveCssClass('ag-row-even', rowIsEven);\n c.rowComp.addOrRemoveCssClass('ag-row-odd', !rowIsEven);\n\n _setAriaRowIndex(c.element, ariaRowIndex);\n });\n }; // returns the pinned left container, either the normal one, or the embedded full with one if exists\n\n\n RowCtrl.prototype.getPinnedLeftRowElement = function () {\n return this.leftGui ? this.leftGui.element : undefined;\n }; // returns the pinned right container, either the normal one, or the embedded full with one if exists\n\n\n RowCtrl.prototype.getPinnedRightRowElement = function () {\n return this.rightGui ? this.rightGui.element : undefined;\n }; // returns the body container, either the normal one, or the embedded full with one if exists\n\n\n RowCtrl.prototype.getBodyRowElement = function () {\n return this.centerGui ? this.centerGui.element : undefined;\n }; // returns the full width container\n\n\n RowCtrl.prototype.getFullWidthRowElement = function () {\n return this.fullWidthGui ? this.fullWidthGui.element : undefined;\n };\n\n RowCtrl.DOM_DATA_KEY_ROW_CTRL = 'renderedRow';\n return RowCtrl;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1T = undefined && undefined.__extends || function () {\n var _extendStatics66 = function extendStatics(d, b) {\n _extendStatics66 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics66(d, b);\n };\n\n return function (d, b) {\n _extendStatics66(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1M = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$f = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar RowContainerEventsFeature =\n/** @class */\nfunction (_super) {\n __extends$1T(RowContainerEventsFeature, _super);\n\n function RowContainerEventsFeature(element) {\n var _this = _super.call(this) || this;\n\n _this.element = element;\n return _this;\n }\n\n RowContainerEventsFeature.prototype.postConstruct = function () {\n this.addMouseListeners();\n this.mockContextMenuForIPad();\n this.addKeyboardEvents();\n };\n\n RowContainerEventsFeature.prototype.addKeyboardEvents = function () {\n var _this = this;\n\n var eventNames = ['keydown', 'keypress'];\n eventNames.forEach(function (eventName) {\n var listener = _this.processKeyboardEvent.bind(_this, eventName);\n\n _this.addManagedListener(_this.element, eventName, listener);\n });\n };\n\n RowContainerEventsFeature.prototype.addMouseListeners = function () {\n var _this = this;\n\n var mouseDownEvent = isEventSupported('touchstart') ? 'touchstart' : 'mousedown';\n var eventNames = ['dblclick', 'contextmenu', 'mouseover', 'mouseout', 'click', mouseDownEvent];\n eventNames.forEach(function (eventName) {\n var listener = _this.processMouseEvent.bind(_this, eventName);\n\n _this.addManagedListener(_this.element, eventName, listener);\n });\n };\n\n RowContainerEventsFeature.prototype.processMouseEvent = function (eventName, mouseEvent) {\n if (!this.mouseEventService.isEventFromThisGrid(mouseEvent) || isStopPropagationForAgGrid(mouseEvent)) {\n return;\n }\n\n var rowComp = this.getRowForEvent(mouseEvent);\n var cellCtrl = this.mouseEventService.getRenderedCellForEvent(mouseEvent);\n\n if (eventName === \"contextmenu\") {\n this.handleContextMenuMouseEvent(mouseEvent, null, rowComp, cellCtrl);\n } else {\n if (cellCtrl) {\n cellCtrl.onMouseEvent(eventName, mouseEvent);\n }\n\n if (rowComp) {\n rowComp.onMouseEvent(eventName, mouseEvent);\n }\n }\n };\n\n RowContainerEventsFeature.prototype.mockContextMenuForIPad = function () {\n var _this = this; // we do NOT want this when not in iPad, otherwise we will be doing\n\n\n if (!isIOSUserAgent()) {\n return;\n }\n\n var touchListener = new TouchListener(this.element);\n\n var longTapListener = function longTapListener(event) {\n var rowComp = _this.getRowForEvent(event.touchEvent);\n\n var cellComp = _this.mouseEventService.getRenderedCellForEvent(event.touchEvent);\n\n _this.handleContextMenuMouseEvent(null, event.touchEvent, rowComp, cellComp);\n };\n\n this.addManagedListener(touchListener, TouchListener.EVENT_LONG_TAP, longTapListener);\n this.addDestroyFunc(function () {\n return touchListener.destroy();\n });\n };\n\n RowContainerEventsFeature.prototype.getRowForEvent = function (event) {\n var sourceElement = event.target;\n\n while (sourceElement) {\n var rowCon = this.gridOptionsWrapper.getDomData(sourceElement, RowCtrl.DOM_DATA_KEY_ROW_CTRL);\n\n if (rowCon) {\n return rowCon;\n }\n\n sourceElement = sourceElement.parentElement;\n }\n\n return null;\n };\n\n RowContainerEventsFeature.prototype.handleContextMenuMouseEvent = function (mouseEvent, touchEvent, rowComp, cellCtrl) {\n var rowNode = rowComp ? rowComp.getRowNode() : null;\n var column = cellCtrl ? cellCtrl.getColumn() : null;\n var value = null;\n\n if (column) {\n var event_1 = mouseEvent ? mouseEvent : touchEvent;\n cellCtrl.dispatchCellContextMenuEvent(event_1);\n value = this.valueService.getValue(column, rowNode);\n } // if user clicked on a cell, anchor to that cell, otherwise anchor to the grid panel\n\n\n var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n var anchorToElement = cellCtrl ? cellCtrl.getGui() : gridBodyCon.getGridBodyElement();\n\n if (this.contextMenuFactory) {\n this.contextMenuFactory.onContextMenu(mouseEvent, touchEvent, rowNode, column, value, anchorToElement);\n }\n };\n\n RowContainerEventsFeature.prototype.processKeyboardEvent = function (eventName, keyboardEvent) {\n var cellComp = getCtrlForEvent(this.gridOptionsWrapper, keyboardEvent, CellCtrl.DOM_DATA_KEY_CELL_CTRL);\n var rowComp = getCtrlForEvent(this.gridOptionsWrapper, keyboardEvent, RowCtrl.DOM_DATA_KEY_ROW_CTRL);\n\n if (keyboardEvent.defaultPrevented) {\n return;\n }\n\n if (cellComp) {\n this.processCellKeyboardEvent(cellComp, eventName, keyboardEvent);\n } else if (rowComp && rowComp.isFullWidth()) {\n this.processFullWidthRowKeyboardEvent(rowComp, eventName, keyboardEvent);\n }\n };\n\n RowContainerEventsFeature.prototype.processCellKeyboardEvent = function (cellCtrl, eventName, keyboardEvent) {\n var rowNode = cellCtrl.getRowNode();\n var column = cellCtrl.getColumn();\n var editing = cellCtrl.isEditing();\n var gridProcessingAllowed = !isUserSuppressingKeyboardEvent(this.gridOptionsWrapper, keyboardEvent, rowNode, column, editing);\n\n if (gridProcessingAllowed) {\n switch (eventName) {\n case 'keydown':\n // first see if it's a scroll key, page up / down, home / end etc\n var wasScrollKey = !editing && this.navigationService.handlePageScrollingKey(keyboardEvent); // if not a scroll key, then we pass onto cell\n\n if (!wasScrollKey) {\n cellCtrl.onKeyDown(keyboardEvent);\n } // perform clipboard and undo / redo operations\n\n\n this.doGridOperations(keyboardEvent, cellCtrl.isEditing());\n break;\n\n case 'keypress':\n cellCtrl.onKeyPress(keyboardEvent);\n break;\n }\n }\n\n if (eventName === 'keydown') {\n var cellKeyDownEvent = cellCtrl.createEvent(keyboardEvent, Events.EVENT_CELL_KEY_DOWN);\n this.eventService.dispatchEvent(cellKeyDownEvent);\n }\n\n if (eventName === 'keypress') {\n var cellKeyPressEvent = cellCtrl.createEvent(keyboardEvent, Events.EVENT_CELL_KEY_PRESS);\n this.eventService.dispatchEvent(cellKeyPressEvent);\n }\n };\n\n RowContainerEventsFeature.prototype.processFullWidthRowKeyboardEvent = function (rowComp, eventName, keyboardEvent) {\n var rowNode = rowComp.getRowNode();\n var focusedCell = this.focusService.getFocusedCell();\n var column = focusedCell && focusedCell.column;\n var gridProcessingAllowed = !isUserSuppressingKeyboardEvent(this.gridOptionsWrapper, keyboardEvent, rowNode, column, false);\n\n if (gridProcessingAllowed) {\n var key = keyboardEvent.key;\n\n if (eventName === 'keydown') {\n switch (key) {\n case KeyCode.UP:\n case KeyCode.DOWN:\n rowComp.onKeyboardNavigate(keyboardEvent);\n break;\n\n case KeyCode.TAB:\n rowComp.onTabKeyDown(keyboardEvent);\n }\n }\n }\n\n if (eventName === 'keydown') {\n var cellKeyDownEvent = rowComp.createRowEvent(Events.EVENT_CELL_KEY_DOWN, keyboardEvent);\n this.eventService.dispatchEvent(cellKeyDownEvent);\n }\n\n if (eventName === 'keypress') {\n var cellKeyPressEvent = rowComp.createRowEvent(Events.EVENT_CELL_KEY_PRESS, keyboardEvent);\n this.eventService.dispatchEvent(cellKeyPressEvent);\n }\n };\n\n RowContainerEventsFeature.prototype.doGridOperations = function (keyboardEvent, editing) {\n // check if ctrl or meta key pressed\n if (!keyboardEvent.ctrlKey && !keyboardEvent.metaKey) {\n return;\n } // if the cell the event came from is editing, then we do not\n // want to do the default shortcut keys, otherwise the editor\n // (eg a text field) would not be able to do the normal cut/copy/paste\n\n\n if (editing) {\n return;\n } // for copy / paste, we don't want to execute when the event\n // was from a child grid (happens in master detail)\n\n\n if (!this.mouseEventService.isEventFromThisGrid(keyboardEvent)) {\n return;\n }\n\n var keyCode = normaliseQwertyAzerty(keyboardEvent);\n\n if (keyCode === KeyCode.A) {\n return this.onCtrlAndA(keyboardEvent);\n }\n\n if (keyCode === KeyCode.C) {\n return this.onCtrlAndC(keyboardEvent);\n }\n\n if (keyCode === KeyCode.V) {\n return this.onCtrlAndV();\n }\n\n if (keyCode === KeyCode.D) {\n return this.onCtrlAndD(keyboardEvent);\n }\n\n if (keyCode === KeyCode.Z) {\n return keyboardEvent.shiftKey ? this.undoRedoService.redo() : this.undoRedoService.undo();\n }\n\n if (keyCode === KeyCode.Y) {\n return this.undoRedoService.redo();\n }\n };\n\n RowContainerEventsFeature.prototype.onCtrlAndA = function (event) {\n var _a = this,\n pinnedRowModel = _a.pinnedRowModel,\n paginationProxy = _a.paginationProxy,\n rangeService = _a.rangeService;\n\n var PINNED_BOTTOM = Constants.PINNED_BOTTOM,\n PINNED_TOP = Constants.PINNED_TOP;\n\n if (rangeService && paginationProxy.isRowsToRender()) {\n var _b = __read$f([pinnedRowModel.isEmpty(PINNED_TOP), pinnedRowModel.isEmpty(PINNED_BOTTOM)], 2),\n isEmptyPinnedTop = _b[0],\n isEmptyPinnedBottom = _b[1];\n\n var floatingStart = isEmptyPinnedTop ? null : PINNED_TOP;\n var floatingEnd = void 0;\n var rowEnd = void 0;\n\n if (isEmptyPinnedBottom) {\n floatingEnd = null;\n rowEnd = this.paginationProxy.getRowCount() - 1;\n } else {\n floatingEnd = PINNED_BOTTOM;\n rowEnd = pinnedRowModel.getPinnedBottomRowData().length - 1;\n }\n\n var allDisplayedColumns = this.columnModel.getAllDisplayedColumns();\n\n if (missingOrEmpty(allDisplayedColumns)) {\n return;\n }\n\n rangeService.setCellRange({\n rowStartIndex: 0,\n rowStartPinned: floatingStart,\n rowEndIndex: rowEnd,\n rowEndPinned: floatingEnd,\n columnStart: allDisplayedColumns[0],\n columnEnd: last(allDisplayedColumns)\n });\n }\n\n event.preventDefault();\n };\n\n RowContainerEventsFeature.prototype.onCtrlAndC = function (event) {\n if (!this.clipboardService || this.gridOptionsWrapper.isEnableCellTextSelection()) {\n return;\n }\n\n this.clipboardService.copyToClipboard();\n event.preventDefault();\n };\n\n RowContainerEventsFeature.prototype.onCtrlAndV = function () {\n if (ModuleRegistry.isRegistered(ModuleNames.ClipboardModule) && !this.gridOptionsWrapper.isSuppressClipboardPaste()) {\n this.clipboardService.pasteFromClipboard();\n }\n };\n\n RowContainerEventsFeature.prototype.onCtrlAndD = function (event) {\n if (ModuleRegistry.isRegistered(ModuleNames.ClipboardModule) && !this.gridOptionsWrapper.isSuppressClipboardPaste()) {\n this.clipboardService.copyRangeDown();\n }\n\n event.preventDefault();\n };\n\n __decorate$1M([Autowired('mouseEventService')], RowContainerEventsFeature.prototype, \"mouseEventService\", void 0);\n\n __decorate$1M([Autowired('valueService')], RowContainerEventsFeature.prototype, \"valueService\", void 0);\n\n __decorate$1M([Optional('contextMenuFactory')], RowContainerEventsFeature.prototype, \"contextMenuFactory\", void 0);\n\n __decorate$1M([Autowired('ctrlsService')], RowContainerEventsFeature.prototype, \"ctrlsService\", void 0);\n\n __decorate$1M([Autowired('navigationService')], RowContainerEventsFeature.prototype, \"navigationService\", void 0);\n\n __decorate$1M([Autowired('focusService')], RowContainerEventsFeature.prototype, \"focusService\", void 0);\n\n __decorate$1M([Autowired('undoRedoService')], RowContainerEventsFeature.prototype, \"undoRedoService\", void 0);\n\n __decorate$1M([Autowired('columnModel')], RowContainerEventsFeature.prototype, \"columnModel\", void 0);\n\n __decorate$1M([Autowired('paginationProxy')], RowContainerEventsFeature.prototype, \"paginationProxy\", void 0);\n\n __decorate$1M([Autowired('pinnedRowModel')], RowContainerEventsFeature.prototype, \"pinnedRowModel\", void 0);\n\n __decorate$1M([Optional('rangeService')], RowContainerEventsFeature.prototype, \"rangeService\", void 0);\n\n __decorate$1M([Optional('clipboardService')], RowContainerEventsFeature.prototype, \"clipboardService\", void 0);\n\n __decorate$1M([PostConstruct], RowContainerEventsFeature.prototype, \"postConstruct\", null);\n\n return RowContainerEventsFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1S = undefined && undefined.__extends || function () {\n var _extendStatics67 = function extendStatics(d, b) {\n _extendStatics67 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics67(d, b);\n };\n\n return function (d, b) {\n _extendStatics67(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1L = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}; // listens to changes in the center viewport size, for column and row virtualisation,\n// and adjusts grid as necessary. there are two viewports, one for horizontal and one for\n// vertical scrolling.\n\n\nvar ViewportSizeFeature =\n/** @class */\nfunction (_super) {\n __extends$1S(ViewportSizeFeature, _super);\n\n function ViewportSizeFeature(centerContainerCtrl) {\n var _this = _super.call(this) || this;\n\n _this.centerContainerCtrl = centerContainerCtrl;\n return _this;\n }\n\n ViewportSizeFeature.prototype.postConstruct = function () {\n var _this = this;\n\n this.ctrlsService.whenReady(function () {\n _this.gridBodyCtrl = _this.ctrlsService.getGridBodyCtrl();\n\n _this.listenForResize();\n });\n this.addManagedListener(this.eventService, Events.EVENT_SCROLLBAR_WIDTH_CHANGED, this.onScrollbarWidthChanged.bind(this));\n };\n\n ViewportSizeFeature.prototype.listenForResize = function () {\n var _this = this;\n\n var listener = function listener() {\n return _this.onCenterViewportResized();\n }; // centerContainer gets horizontal resizes\n\n\n this.centerContainerCtrl.registerViewportResizeListener(listener); // eBodyViewport gets vertical resizes\n\n this.gridBodyCtrl.registerBodyViewportResizeListener(listener);\n };\n\n ViewportSizeFeature.prototype.onScrollbarWidthChanged = function () {\n this.checkViewportAndScrolls();\n };\n\n ViewportSizeFeature.prototype.onCenterViewportResized = function () {\n if (this.centerContainerCtrl.isViewportVisible()) {\n this.checkViewportAndScrolls();\n var newWidth = this.centerContainerCtrl.getCenterWidth();\n\n if (newWidth !== this.centerWidth) {\n this.centerWidth = newWidth;\n this.columnModel.refreshFlexedColumns({\n viewportWidth: this.centerWidth,\n updateBodyWidths: true,\n fireResizedEvent: true\n });\n }\n } else {\n this.bodyHeight = 0;\n }\n }; // gets called every time the viewport size changes. we use this to check visibility of scrollbars\n // in the grid panel, and also to check size and position of viewport for row and column virtualisation.\n\n\n ViewportSizeFeature.prototype.checkViewportAndScrolls = function () {\n // results in updating anything that depends on scroll showing\n this.updateScrollVisibleService(); // fires event if height changes, used by PaginationService, HeightScalerService, RowRenderer\n\n this.checkBodyHeight(); // check for virtual columns for ColumnController\n\n this.onHorizontalViewportChanged();\n this.gridBodyCtrl.getScrollFeature().checkScrollLeft();\n };\n\n ViewportSizeFeature.prototype.getBodyHeight = function () {\n return this.bodyHeight;\n };\n\n ViewportSizeFeature.prototype.checkBodyHeight = function () {\n var eBodyViewport = this.gridBodyCtrl.getBodyViewportElement();\n var bodyHeight = getInnerHeight(eBodyViewport);\n\n if (this.bodyHeight !== bodyHeight) {\n this.bodyHeight = bodyHeight;\n var event_1 = {\n type: Events.EVENT_BODY_HEIGHT_CHANGED\n };\n this.eventService.dispatchEvent(event_1);\n }\n };\n\n ViewportSizeFeature.prototype.updateScrollVisibleService = function () {\n // because of column animation (which takes 200ms), we have to do this twice.\n // eg if user removes cols anywhere except at the RHS, then the cols on the RHS\n // will animate to the left to fill the gap. this animation means just after\n // the cols are removed, the remaining cols are still in the original location\n // at the start of the animation, so pre animation the H scrollbar is still needed,\n // but post animation it is not.\n this.updateScrollVisibleServiceImpl();\n setTimeout(this.updateScrollVisibleServiceImpl.bind(this), 500);\n };\n\n ViewportSizeFeature.prototype.updateScrollVisibleServiceImpl = function () {\n var params = {\n horizontalScrollShowing: this.isHorizontalScrollShowing(),\n verticalScrollShowing: this.gridBodyCtrl.isVerticalScrollShowing()\n };\n this.scrollVisibleService.setScrollsVisible(params); // fix - gridComp should just listen to event from above\n\n this.gridBodyCtrl.setVerticalScrollPaddingVisible(params.verticalScrollShowing);\n };\n\n ViewportSizeFeature.prototype.isHorizontalScrollShowing = function () {\n var isAlwaysShowHorizontalScroll = this.gridOptionsWrapper.isAlwaysShowHorizontalScroll();\n return isAlwaysShowHorizontalScroll || this.centerContainerCtrl.isViewportHScrollShowing();\n }; // this gets called whenever a change in the viewport, so we can inform column controller it has to work\n // out the virtual columns again. gets called from following locations:\n // + ensureColVisible, scroll, init, layoutChanged, displayedColumnsChanged, API (doLayout)\n\n\n ViewportSizeFeature.prototype.onHorizontalViewportChanged = function () {\n var scrollWidth = this.centerContainerCtrl.getCenterWidth();\n var scrollPosition = this.centerContainerCtrl.getViewportScrollLeft();\n this.columnModel.setViewportPosition(scrollWidth, scrollPosition);\n };\n\n __decorate$1L([Autowired('ctrlsService')], ViewportSizeFeature.prototype, \"ctrlsService\", void 0);\n\n __decorate$1L([Autowired('columnModel')], ViewportSizeFeature.prototype, \"columnModel\", void 0);\n\n __decorate$1L([Autowired('scrollVisibleService')], ViewportSizeFeature.prototype, \"scrollVisibleService\", void 0);\n\n __decorate$1L([PostConstruct], ViewportSizeFeature.prototype, \"postConstruct\", null);\n\n return ViewportSizeFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1R = undefined && undefined.__extends || function () {\n var _extendStatics68 = function extendStatics(d, b) {\n _extendStatics68 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics68(d, b);\n };\n\n return function (d, b) {\n _extendStatics68(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1K = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SetPinnedLeftWidthFeature =\n/** @class */\nfunction (_super) {\n __extends$1R(SetPinnedLeftWidthFeature, _super);\n\n function SetPinnedLeftWidthFeature(element) {\n var _this = _super.call(this) || this;\n\n _this.element = element;\n return _this;\n }\n\n SetPinnedLeftWidthFeature.prototype.postConstruct = function () {\n this.addManagedListener(this.eventService, Events.EVENT_LEFT_PINNED_WIDTH_CHANGED, this.onPinnedLeftWidthChanged.bind(this));\n };\n\n SetPinnedLeftWidthFeature.prototype.onPinnedLeftWidthChanged = function () {\n var leftWidth = this.pinnedWidthService.getPinnedLeftWidth();\n var displayed = leftWidth > 0;\n setDisplayed(this.element, displayed);\n\n if (displayed) {\n setFixedWidth(this.element, leftWidth);\n }\n };\n\n __decorate$1K([Autowired('pinnedWidthService')], SetPinnedLeftWidthFeature.prototype, \"pinnedWidthService\", void 0);\n\n __decorate$1K([PostConstruct], SetPinnedLeftWidthFeature.prototype, \"postConstruct\", null);\n\n return SetPinnedLeftWidthFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1Q = undefined && undefined.__extends || function () {\n var _extendStatics69 = function extendStatics(d, b) {\n _extendStatics69 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics69(d, b);\n };\n\n return function (d, b) {\n _extendStatics69(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1J = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SetPinnedRightWidthFeature =\n/** @class */\nfunction (_super) {\n __extends$1Q(SetPinnedRightWidthFeature, _super);\n\n function SetPinnedRightWidthFeature(element) {\n var _this = _super.call(this) || this;\n\n _this.element = element;\n return _this;\n }\n\n SetPinnedRightWidthFeature.prototype.postConstruct = function () {\n this.addManagedListener(this.eventService, Events.EVENT_RIGHT_PINNED_WIDTH_CHANGED, this.onPinnedRightWidthChanged.bind(this));\n };\n\n SetPinnedRightWidthFeature.prototype.onPinnedRightWidthChanged = function () {\n var rightWidth = this.pinnedWidthService.getPinnedRightWidth();\n var displayed = rightWidth > 0;\n setDisplayed(this.element, displayed);\n\n if (displayed) {\n setFixedWidth(this.element, rightWidth);\n }\n };\n\n __decorate$1J([Autowired('pinnedWidthService')], SetPinnedRightWidthFeature.prototype, \"pinnedWidthService\", void 0);\n\n __decorate$1J([PostConstruct], SetPinnedRightWidthFeature.prototype, \"postConstruct\", null);\n\n return SetPinnedRightWidthFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1P = undefined && undefined.__extends || function () {\n var _extendStatics70 = function extendStatics(d, b) {\n _extendStatics70 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics70(d, b);\n };\n\n return function (d, b) {\n _extendStatics70(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1I = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SetHeightFeature =\n/** @class */\nfunction (_super) {\n __extends$1P(SetHeightFeature, _super);\n\n function SetHeightFeature(eContainer, eWrapper) {\n var _this = _super.call(this) || this;\n\n _this.eContainer = eContainer;\n _this.eWrapper = eWrapper;\n return _this;\n }\n\n SetHeightFeature.prototype.postConstruct = function () {\n this.addManagedListener(this.eventService, Events.EVENT_ROW_CONTAINER_HEIGHT_CHANGED, this.onHeightChanged.bind(this));\n };\n\n SetHeightFeature.prototype.onHeightChanged = function () {\n var height = this.maxDivHeightScaler.getUiContainerHeight();\n var heightString = height != null ? height + \"px\" : \"\";\n this.eContainer.style.height = heightString;\n\n if (this.eWrapper) {\n this.eWrapper.style.height = heightString;\n }\n };\n\n __decorate$1I([Autowired(\"rowContainerHeightService\")], SetHeightFeature.prototype, \"maxDivHeightScaler\", void 0);\n\n __decorate$1I([PostConstruct], SetHeightFeature.prototype, \"postConstruct\", null);\n\n return SetHeightFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1O = undefined && undefined.__extends || function () {\n var _extendStatics71 = function extendStatics(d, b) {\n _extendStatics71 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics71(d, b);\n };\n\n return function (d, b) {\n _extendStatics71(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1H = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar DragListenerFeature =\n/** @class */\nfunction (_super) {\n __extends$1O(DragListenerFeature, _super);\n\n function DragListenerFeature(eContainer) {\n var _this = _super.call(this) || this;\n\n _this.eContainer = eContainer;\n return _this;\n }\n\n DragListenerFeature.prototype.postConstruct = function () {\n var _this = this;\n\n if (!this.gridOptionsWrapper.isEnableRangeSelection() || // no range selection if no property\n missing(this.rangeService) // no range selection if not enterprise version\n ) {\n return;\n }\n\n var params = {\n eElement: this.eContainer,\n onDragStart: this.rangeService.onDragStart.bind(this.rangeService),\n onDragStop: this.rangeService.onDragStop.bind(this.rangeService),\n onDragging: this.rangeService.onDragging.bind(this.rangeService)\n };\n this.dragService.addDragSource(params);\n this.addDestroyFunc(function () {\n return _this.dragService.removeDragSource(params);\n });\n };\n\n __decorate$1H([Optional('rangeService')], DragListenerFeature.prototype, \"rangeService\", void 0);\n\n __decorate$1H([Autowired('dragService')], DragListenerFeature.prototype, \"dragService\", void 0);\n\n __decorate$1H([PostConstruct], DragListenerFeature.prototype, \"postConstruct\", null);\n\n return DragListenerFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1N = undefined && undefined.__extends || function () {\n var _extendStatics72 = function extendStatics(d, b) {\n _extendStatics72 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics72(d, b);\n };\n\n return function (d, b) {\n _extendStatics72(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar CenterWidthFeature =\n/** @class */\nfunction (_super) {\n __extends$1N(CenterWidthFeature, _super);\n\n function CenterWidthFeature(callback) {\n var _this = _super.call(this) || this;\n\n _this.callback = callback;\n return _this;\n }\n\n CenterWidthFeature.prototype.postConstruct = function () {\n var listener = this.setWidth.bind(this);\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_DOM_LAYOUT, listener);\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, listener);\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, listener);\n this.setWidth();\n };\n\n CenterWidthFeature.prototype.setWidth = function () {\n var columnModel = this.columnModel;\n var printLayout = this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_PRINT;\n var centerWidth = columnModel.getBodyContainerWidth();\n var leftWidth = columnModel.getDisplayedColumnsLeftWidth();\n var rightWidth = columnModel.getDisplayedColumnsRightWidth();\n var totalWidth = printLayout ? centerWidth + leftWidth + rightWidth : centerWidth;\n this.callback(totalWidth);\n };\n\n __decorate$1G([Autowired('columnModel')], CenterWidthFeature.prototype, \"columnModel\", void 0);\n\n __decorate$1G([PostConstruct], CenterWidthFeature.prototype, \"postConstruct\", null);\n\n return CenterWidthFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1M = undefined && undefined.__extends || function () {\n var _extendStatics73 = function extendStatics(d, b) {\n _extendStatics73 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics73(d, b);\n };\n\n return function (d, b) {\n _extendStatics73(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$e = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$b = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$e(arguments[i]));\n }\n\n return ar;\n};\n\nvar RowContainerName;\n\n(function (RowContainerName) {\n RowContainerName[\"LEFT\"] = \"left\";\n RowContainerName[\"RIGHT\"] = \"right\";\n RowContainerName[\"CENTER\"] = \"center\";\n RowContainerName[\"FULL_WIDTH\"] = \"fullWidth\";\n RowContainerName[\"TOP_LEFT\"] = \"topLeft\";\n RowContainerName[\"TOP_RIGHT\"] = \"topRight\";\n RowContainerName[\"TOP_CENTER\"] = \"topCenter\";\n RowContainerName[\"TOP_FULL_WIDTH\"] = \"topFullWidth\";\n RowContainerName[\"STICKY_TOP_LEFT\"] = \"stickyTopLeft\";\n RowContainerName[\"STICKY_TOP_RIGHT\"] = \"stickyTopRight\";\n RowContainerName[\"STICKY_TOP_CENTER\"] = \"stickyTopCenter\";\n RowContainerName[\"STICKY_TOP_FULL_WIDTH\"] = \"stickyTopFullWidth\";\n RowContainerName[\"BOTTOM_LEFT\"] = \"bottomLeft\";\n RowContainerName[\"BOTTOM_RIGHT\"] = \"bottomRight\";\n RowContainerName[\"BOTTOM_CENTER\"] = \"bottomCenter\";\n RowContainerName[\"BOTTOM_FULL_WIDTH\"] = \"bottomFullWidth\";\n})(RowContainerName || (RowContainerName = {}));\n\nvar RowContainerType;\n\n(function (RowContainerType) {\n RowContainerType[\"LEFT\"] = \"left\";\n RowContainerType[\"RIGHT\"] = \"right\";\n RowContainerType[\"CENTER\"] = \"center\";\n RowContainerType[\"FULL_WIDTH\"] = \"fullWidth\";\n})(RowContainerType || (RowContainerType = {}));\n\nfunction getRowContainerTypeForName(name) {\n switch (name) {\n case RowContainerName.CENTER:\n case RowContainerName.TOP_CENTER:\n case RowContainerName.STICKY_TOP_CENTER:\n case RowContainerName.BOTTOM_CENTER:\n return RowContainerType.CENTER;\n\n case RowContainerName.LEFT:\n case RowContainerName.TOP_LEFT:\n case RowContainerName.STICKY_TOP_LEFT:\n case RowContainerName.BOTTOM_LEFT:\n return RowContainerType.LEFT;\n\n case RowContainerName.RIGHT:\n case RowContainerName.TOP_RIGHT:\n case RowContainerName.STICKY_TOP_RIGHT:\n case RowContainerName.BOTTOM_RIGHT:\n return RowContainerType.RIGHT;\n\n case RowContainerName.FULL_WIDTH:\n case RowContainerName.TOP_FULL_WIDTH:\n case RowContainerName.STICKY_TOP_FULL_WIDTH:\n case RowContainerName.BOTTOM_FULL_WIDTH:\n return RowContainerType.FULL_WIDTH;\n\n default:\n throw Error('Invalid Row Container Type');\n }\n}\n\nvar ContainerCssClasses = convertToMap([[RowContainerName.CENTER, 'ag-center-cols-container'], [RowContainerName.LEFT, 'ag-pinned-left-cols-container'], [RowContainerName.RIGHT, 'ag-pinned-right-cols-container'], [RowContainerName.FULL_WIDTH, 'ag-full-width-container'], [RowContainerName.TOP_CENTER, 'ag-floating-top-container'], [RowContainerName.TOP_LEFT, 'ag-pinned-left-floating-top'], [RowContainerName.TOP_RIGHT, 'ag-pinned-right-floating-top'], [RowContainerName.TOP_FULL_WIDTH, 'ag-floating-top-full-width-container'], [RowContainerName.STICKY_TOP_CENTER, 'ag-sticky-top-container'], [RowContainerName.STICKY_TOP_LEFT, 'ag-pinned-left-sticky-top'], [RowContainerName.STICKY_TOP_RIGHT, 'ag-pinned-right-sticky-top'], [RowContainerName.STICKY_TOP_FULL_WIDTH, 'ag-sticky-top-full-width-container'], [RowContainerName.BOTTOM_CENTER, 'ag-floating-bottom-container'], [RowContainerName.BOTTOM_LEFT, 'ag-pinned-left-floating-bottom'], [RowContainerName.BOTTOM_RIGHT, 'ag-pinned-right-floating-bottom'], [RowContainerName.BOTTOM_FULL_WIDTH, 'ag-floating-bottom-full-width-container']]);\nvar ViewportCssClasses = convertToMap([[RowContainerName.CENTER, 'ag-center-cols-viewport'], [RowContainerName.TOP_CENTER, 'ag-floating-top-viewport'], [RowContainerName.STICKY_TOP_CENTER, 'ag-sticky-top-viewport'], [RowContainerName.BOTTOM_CENTER, 'ag-floating-bottom-viewport']]);\nvar WrapperCssClasses = convertToMap([[RowContainerName.CENTER, 'ag-center-cols-clipper']]);\n\nvar RowContainerCtrl =\n/** @class */\nfunction (_super) {\n __extends$1M(RowContainerCtrl, _super);\n\n function RowContainerCtrl(name) {\n var _this = _super.call(this) || this;\n\n _this.name = name;\n return _this;\n }\n\n RowContainerCtrl.getRowContainerCssClasses = function (name) {\n var containerClass = ContainerCssClasses.get(name);\n var viewportClass = ViewportCssClasses.get(name);\n var wrapperClass = WrapperCssClasses.get(name);\n return {\n container: containerClass,\n viewport: viewportClass,\n wrapper: wrapperClass\n };\n };\n\n RowContainerCtrl.getPinned = function (name) {\n switch (name) {\n case RowContainerName.BOTTOM_LEFT:\n case RowContainerName.TOP_LEFT:\n case RowContainerName.STICKY_TOP_LEFT:\n case RowContainerName.LEFT:\n return Constants.PINNED_LEFT;\n\n case RowContainerName.BOTTOM_RIGHT:\n case RowContainerName.TOP_RIGHT:\n case RowContainerName.STICKY_TOP_RIGHT:\n case RowContainerName.RIGHT:\n return Constants.PINNED_RIGHT;\n\n default:\n return null;\n }\n };\n\n RowContainerCtrl.prototype.postConstruct = function () {\n var _this = this;\n\n this.enableRtl = this.gridOptionsWrapper.isEnableRtl();\n this.embedFullWidthRows = this.gridOptionsWrapper.isEmbedFullWidthRows();\n this.forContainers([RowContainerName.CENTER], function () {\n return _this.viewportSizeFeature = _this.createManagedBean(new ViewportSizeFeature(_this));\n });\n };\n\n RowContainerCtrl.prototype.registerWithCtrlsService = function () {\n switch (this.name) {\n case RowContainerName.CENTER:\n this.ctrlsService.registerCenterRowContainerCtrl(this);\n break;\n\n case RowContainerName.LEFT:\n this.ctrlsService.registerLeftRowContainerCtrl(this);\n break;\n\n case RowContainerName.RIGHT:\n this.ctrlsService.registerRightRowContainerCtrl(this);\n break;\n\n case RowContainerName.TOP_CENTER:\n this.ctrlsService.registerTopCenterRowContainerCtrl(this);\n break;\n\n case RowContainerName.TOP_LEFT:\n this.ctrlsService.registerTopLeftRowContainerCon(this);\n break;\n\n case RowContainerName.TOP_RIGHT:\n this.ctrlsService.registerTopRightRowContainerCtrl(this);\n break;\n\n case RowContainerName.STICKY_TOP_CENTER:\n this.ctrlsService.registerStickyTopCenterRowContainerCtrl(this);\n break;\n\n case RowContainerName.STICKY_TOP_LEFT:\n this.ctrlsService.registerStickyTopLeftRowContainerCon(this);\n break;\n\n case RowContainerName.STICKY_TOP_RIGHT:\n this.ctrlsService.registerStickyTopRightRowContainerCtrl(this);\n break;\n\n case RowContainerName.BOTTOM_CENTER:\n this.ctrlsService.registerBottomCenterRowContainerCtrl(this);\n break;\n\n case RowContainerName.BOTTOM_LEFT:\n this.ctrlsService.registerBottomLeftRowContainerCtrl(this);\n break;\n\n case RowContainerName.BOTTOM_RIGHT:\n this.ctrlsService.registerBottomRightRowContainerCtrl(this);\n break;\n }\n };\n\n RowContainerCtrl.prototype.forContainers = function (names, callback) {\n if (names.indexOf(this.name) >= 0) {\n callback();\n }\n };\n\n RowContainerCtrl.prototype.getContainerElement = function () {\n return this.eContainer;\n };\n\n RowContainerCtrl.prototype.getViewportSizeFeature = function () {\n return this.viewportSizeFeature;\n };\n\n RowContainerCtrl.prototype.setComp = function (view, eContainer, eViewport, eWrapper) {\n var _this = this;\n\n this.comp = view;\n this.eContainer = eContainer;\n this.eViewport = eViewport;\n this.eWrapper = eWrapper;\n this.createManagedBean(new RowContainerEventsFeature(this.eContainer));\n this.addPreventScrollWhileDragging();\n this.listenOnDomOrder();\n this.stopHScrollOnPinnedRows();\n var allTopNoFW = [RowContainerName.TOP_CENTER, RowContainerName.TOP_LEFT, RowContainerName.TOP_RIGHT];\n var allStickyTopNoFW = [RowContainerName.STICKY_TOP_CENTER, RowContainerName.STICKY_TOP_LEFT, RowContainerName.STICKY_TOP_RIGHT];\n var allBottomNoFW = [RowContainerName.BOTTOM_CENTER, RowContainerName.BOTTOM_LEFT, RowContainerName.BOTTOM_RIGHT];\n var allMiddleNoFW = [RowContainerName.CENTER, RowContainerName.LEFT, RowContainerName.RIGHT];\n\n var allNoFW = __spread$b(allTopNoFW, allBottomNoFW, allMiddleNoFW, allStickyTopNoFW);\n\n var allMiddle = [RowContainerName.CENTER, RowContainerName.LEFT, RowContainerName.RIGHT, RowContainerName.FULL_WIDTH];\n var allCenter = [RowContainerName.CENTER, RowContainerName.TOP_CENTER, RowContainerName.STICKY_TOP_CENTER, RowContainerName.BOTTOM_CENTER];\n var allLeft = [RowContainerName.LEFT, RowContainerName.BOTTOM_LEFT, RowContainerName.TOP_LEFT, RowContainerName.STICKY_TOP_LEFT];\n var allRight = [RowContainerName.RIGHT, RowContainerName.BOTTOM_RIGHT, RowContainerName.TOP_RIGHT, RowContainerName.STICKY_TOP_RIGHT];\n this.forContainers(allLeft, function () {\n return _this.createManagedBean(new SetPinnedLeftWidthFeature(_this.eContainer));\n });\n this.forContainers(allRight, function () {\n return _this.createManagedBean(new SetPinnedRightWidthFeature(_this.eContainer));\n });\n this.forContainers(allMiddle, function () {\n return _this.createManagedBean(new SetHeightFeature(_this.eContainer, _this.eWrapper));\n });\n this.forContainers(allNoFW, function () {\n return _this.createManagedBean(new DragListenerFeature(_this.eContainer));\n });\n this.forContainers(allCenter, function () {\n return _this.createManagedBean(new CenterWidthFeature(function (width) {\n return _this.comp.setContainerWidth(width + \"px\");\n }));\n });\n this.addListeners();\n this.registerWithCtrlsService();\n };\n\n RowContainerCtrl.prototype.addListeners = function () {\n var _this = this;\n\n this.addManagedListener(this.eventService, Events.EVENT_SCROLL_VISIBILITY_CHANGED, function () {\n return _this.onScrollVisibilityChanged();\n });\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, function () {\n return _this.onDisplayedColumnsChanged();\n });\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, function () {\n return _this.onDisplayedColumnsWidthChanged();\n });\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_ROWS_CHANGED, function () {\n return _this.onDisplayedRowsChanged();\n });\n this.onScrollVisibilityChanged();\n this.onDisplayedColumnsChanged();\n this.onDisplayedColumnsWidthChanged();\n this.onDisplayedRowsChanged();\n };\n\n RowContainerCtrl.prototype.listenOnDomOrder = function () {\n var _this = this; // sticky section must show rows in set order\n\n\n var allStickyContainers = [RowContainerName.STICKY_TOP_CENTER, RowContainerName.STICKY_TOP_LEFT, RowContainerName.STICKY_TOP_RIGHT, RowContainerName.STICKY_TOP_FULL_WIDTH];\n var isStickContainer = allStickyContainers.indexOf(this.name) >= 0;\n\n if (isStickContainer) {\n this.comp.setDomOrder(true);\n return;\n }\n\n var listener = function listener() {\n return _this.comp.setDomOrder(_this.gridOptionsWrapper.isEnsureDomOrder());\n };\n\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_DOM_LAYOUT, listener);\n listener();\n }; // when editing a pinned row, if the cell is half outside the scrollable area, the browser can\n // scroll the column into view. we do not want this, the pinned sections should never scroll.\n // so we listen to scrolls on these containers and reset the scroll if we find one.\n\n\n RowContainerCtrl.prototype.stopHScrollOnPinnedRows = function () {\n var _this = this;\n\n this.forContainers([RowContainerName.TOP_CENTER, RowContainerName.STICKY_TOP_CENTER, RowContainerName.BOTTOM_CENTER], function () {\n var resetScrollLeft = function resetScrollLeft() {\n return _this.eViewport.scrollLeft = 0;\n };\n\n _this.addManagedListener(_this.eViewport, 'scroll', resetScrollLeft);\n });\n };\n\n RowContainerCtrl.prototype.onDisplayedColumnsChanged = function () {\n var _this = this;\n\n this.forContainers([RowContainerName.CENTER], function () {\n return _this.onHorizontalViewportChanged();\n });\n };\n\n RowContainerCtrl.prototype.onDisplayedColumnsWidthChanged = function () {\n var _this = this;\n\n this.forContainers([RowContainerName.CENTER], function () {\n return _this.onHorizontalViewportChanged();\n });\n };\n\n RowContainerCtrl.prototype.onScrollVisibilityChanged = function () {\n if (this.name !== RowContainerName.CENTER) {\n return;\n }\n\n var visible = this.scrollVisibleService.isHorizontalScrollShowing();\n var scrollbarWidth = visible ? this.gridOptionsWrapper.getScrollbarWidth() || 0 : 0;\n var height = scrollbarWidth == 0 ? '100%' : \"calc(100% + \" + scrollbarWidth + \"px)\";\n this.comp.setViewportHeight(height);\n }; // this methods prevents the grid views from being scrolled while the dragService is being used\n // eg. the view should not scroll up and down while dragging rows using the rowDragComp.\n\n\n RowContainerCtrl.prototype.addPreventScrollWhileDragging = function () {\n var _this = this;\n\n var preventScroll = function preventScroll(e) {\n if (_this.dragService.isDragging()) {\n if (e.cancelable) {\n e.preventDefault();\n }\n }\n };\n\n this.eContainer.addEventListener('touchmove', preventScroll, {\n passive: false\n });\n this.addDestroyFunc(function () {\n return _this.eContainer.removeEventListener('touchmove', preventScroll);\n });\n }; // this gets called whenever a change in the viewport, so we can inform column controller it has to work\n // out the virtual columns again. gets called from following locations:\n // + ensureColVisible, scroll, init, layoutChanged, displayedColumnsChanged, API (doLayout)\n\n\n RowContainerCtrl.prototype.onHorizontalViewportChanged = function () {\n var scrollWidth = this.getCenterWidth();\n var scrollPosition = this.getCenterViewportScrollLeft();\n this.columnModel.setViewportPosition(scrollWidth, scrollPosition);\n };\n\n RowContainerCtrl.prototype.getCenterWidth = function () {\n return getInnerWidth(this.eViewport);\n };\n\n RowContainerCtrl.prototype.getCenterViewportScrollLeft = function () {\n // we defer to a util, as how you calculated scrollLeft when doing RTL depends on the browser\n return getScrollLeft(this.eViewport, this.enableRtl);\n };\n\n RowContainerCtrl.prototype.registerViewportResizeListener = function (listener) {\n var unsubscribeFromResize = this.resizeObserverService.observeResize(this.eViewport, listener);\n this.addDestroyFunc(function () {\n return unsubscribeFromResize();\n });\n };\n\n RowContainerCtrl.prototype.isViewportVisible = function () {\n return isVisible(this.eViewport);\n };\n\n RowContainerCtrl.prototype.isViewportHScrollShowing = function () {\n return isHorizontalScrollShowing(this.eViewport);\n };\n\n RowContainerCtrl.prototype.getViewportScrollLeft = function () {\n return getScrollLeft(this.eViewport, this.enableRtl);\n };\n\n RowContainerCtrl.prototype.isHorizontalScrollShowing = function () {\n var isAlwaysShowHorizontalScroll = this.gridOptionsWrapper.isAlwaysShowHorizontalScroll();\n return isAlwaysShowHorizontalScroll || isHorizontalScrollShowing(this.eViewport);\n };\n\n RowContainerCtrl.prototype.getViewportElement = function () {\n return this.eViewport;\n };\n\n RowContainerCtrl.prototype.setContainerTranslateX = function (amount) {\n this.eContainer.style.transform = \"translateX(\" + amount + \"px)\";\n };\n\n RowContainerCtrl.prototype.getHScrollPosition = function () {\n var res = {\n left: this.eViewport.scrollLeft,\n right: this.eViewport.scrollLeft + this.eViewport.offsetWidth\n };\n return res;\n };\n\n RowContainerCtrl.prototype.setCenterViewportScrollLeft = function (value) {\n // we defer to a util, as how you calculated scrollLeft when doing RTL depends on the browser\n setScrollLeft(this.eViewport, value, this.enableRtl);\n };\n\n RowContainerCtrl.prototype.onDisplayedRowsChanged = function () {\n var _this = this;\n\n var fullWithContainer = this.name === RowContainerName.TOP_FULL_WIDTH || this.name === RowContainerName.STICKY_TOP_FULL_WIDTH || this.name === RowContainerName.BOTTOM_FULL_WIDTH || this.name === RowContainerName.FULL_WIDTH;\n\n var doesRowMatch = function doesRowMatch(rowCtrl) {\n var fullWidthRow = rowCtrl.isFullWidth();\n var printLayout = _this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_PRINT;\n var embedFW = _this.embedFullWidthRows || printLayout;\n var match = fullWithContainer ? !embedFW && fullWidthRow : embedFW || !fullWidthRow;\n return match;\n }; // this list contains either all pinned top, center or pinned bottom rows\n\n\n var allRowsRegardlessOfFullWidth = this.getRowCtrls(); // this filters out rows not for this container, eg if it's a full with row, but we are not full with container\n\n var rowsThisContainer = allRowsRegardlessOfFullWidth.filter(doesRowMatch);\n this.comp.setRowCtrls(rowsThisContainer);\n };\n\n RowContainerCtrl.prototype.getRowCtrls = function () {\n switch (this.name) {\n case RowContainerName.TOP_CENTER:\n case RowContainerName.TOP_LEFT:\n case RowContainerName.TOP_RIGHT:\n case RowContainerName.TOP_FULL_WIDTH:\n return this.rowRenderer.getTopRowCtrls();\n\n case RowContainerName.STICKY_TOP_CENTER:\n case RowContainerName.STICKY_TOP_LEFT:\n case RowContainerName.STICKY_TOP_RIGHT:\n case RowContainerName.STICKY_TOP_FULL_WIDTH:\n return this.rowRenderer.getStickyTopRowCtrls();\n\n case RowContainerName.BOTTOM_CENTER:\n case RowContainerName.BOTTOM_LEFT:\n case RowContainerName.BOTTOM_RIGHT:\n case RowContainerName.BOTTOM_FULL_WIDTH:\n return this.rowRenderer.getBottomRowCtrls();\n\n default:\n return this.rowRenderer.getRowCtrls();\n }\n };\n\n __decorate$1F([Autowired('scrollVisibleService')], RowContainerCtrl.prototype, \"scrollVisibleService\", void 0);\n\n __decorate$1F([Autowired('dragService')], RowContainerCtrl.prototype, \"dragService\", void 0);\n\n __decorate$1F([Autowired('ctrlsService')], RowContainerCtrl.prototype, \"ctrlsService\", void 0);\n\n __decorate$1F([Autowired('columnModel')], RowContainerCtrl.prototype, \"columnModel\", void 0);\n\n __decorate$1F([Autowired('resizeObserverService')], RowContainerCtrl.prototype, \"resizeObserverService\", void 0);\n\n __decorate$1F([Autowired('rowRenderer')], RowContainerCtrl.prototype, \"rowRenderer\", void 0);\n\n __decorate$1F([PostConstruct], RowContainerCtrl.prototype, \"postConstruct\", null);\n\n return RowContainerCtrl;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1L = undefined && undefined.__extends || function () {\n var _extendStatics74 = function extendStatics(d, b) {\n _extendStatics74 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics74(d, b);\n };\n\n return function (d, b) {\n _extendStatics74(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar GRID_BODY_TEMPLATE =\n/* html */\n\"
\\n \\n
\\n \\n \\n \\n \\n
\\n
\\n \\n \\n \\n \\n
\\n
\\n \\n \\n \\n \\n
\\n
\\n \\n \\n \\n \\n
\\n \\n \\n
\";\n\nvar GridBodyComp =\n/** @class */\nfunction (_super) {\n __extends$1L(GridBodyComp, _super);\n\n function GridBodyComp() {\n return _super.call(this, GRID_BODY_TEMPLATE) || this;\n }\n\n GridBodyComp.prototype.init = function () {\n var _this = this;\n\n var setHeight = function setHeight(height, element) {\n var heightString = height + \"px\";\n element.style.minHeight = heightString;\n element.style.height = heightString;\n };\n\n var compProxy = {\n setRowAnimationCssOnBodyViewport: function setRowAnimationCssOnBodyViewport(cssClass, animate) {\n return _this.setRowAnimationCssOnBodyViewport(cssClass, animate);\n },\n setColumnCount: function setColumnCount(count) {\n return setAriaColCount(_this.getGui(), count);\n },\n setRowCount: function setRowCount(count) {\n return setAriaRowCount(_this.getGui(), count);\n },\n setTopHeight: function setTopHeight(height) {\n return setHeight(height, _this.eTop);\n },\n setBottomHeight: function setBottomHeight(height) {\n return setHeight(height, _this.eBottom);\n },\n setTopDisplay: function setTopDisplay(display) {\n return _this.eTop.style.display = display;\n },\n setBottomDisplay: function setBottomDisplay(display) {\n return _this.eBottom.style.display = display;\n },\n setStickyTopHeight: function setStickyTopHeight(height) {\n return _this.eStickyTop.style.height = height;\n },\n setStickyTopTop: function setStickyTopTop(top) {\n return _this.eStickyTop.style.top = top;\n },\n setStickyTopWidth: function setStickyTopWidth(width) {\n return _this.eStickyTop.style.width = width;\n },\n setColumnMovingCss: function setColumnMovingCss(cssClass, flag) {\n return _this.addOrRemoveCssClass(CSS_CLASS_COLUMN_MOVING, flag);\n },\n updateLayoutClasses: function updateLayoutClasses(cssClass, params) {\n var bodyViewportClassList = _this.eBodyViewport.classList;\n bodyViewportClassList.toggle(LayoutCssClasses.AUTO_HEIGHT, params.autoHeight);\n bodyViewportClassList.toggle(LayoutCssClasses.NORMAL, params.normal);\n bodyViewportClassList.toggle(LayoutCssClasses.PRINT, params.print);\n\n _this.addOrRemoveCssClass(LayoutCssClasses.AUTO_HEIGHT, params.autoHeight);\n\n _this.addOrRemoveCssClass(LayoutCssClasses.NORMAL, params.normal);\n\n _this.addOrRemoveCssClass(LayoutCssClasses.PRINT, params.print);\n },\n setAlwaysVerticalScrollClass: function setAlwaysVerticalScrollClass(cssClass, on) {\n return _this.eBodyViewport.classList.toggle(CSS_CLASS_FORCE_VERTICAL_SCROLL, on);\n },\n registerBodyViewportResizeListener: function registerBodyViewportResizeListener(listener) {\n var unsubscribeFromResize = _this.resizeObserverService.observeResize(_this.eBodyViewport, listener);\n\n _this.addDestroyFunc(function () {\n return unsubscribeFromResize();\n });\n },\n setPinnedTopBottomOverflowY: function setPinnedTopBottomOverflowY(overflow) {\n return _this.eTop.style.overflowY = _this.eBottom.style.overflowY = overflow;\n },\n setCellSelectableCss: function setCellSelectableCss(cssClass, selectable) {\n [_this.eTop, _this.eBodyViewport, _this.eBottom].forEach(function (ct) {\n return ct.classList.toggle(CSS_CLASS_CELL_SELECTABLE, selectable);\n });\n }\n };\n this.ctrl = this.createManagedBean(new GridBodyCtrl());\n this.ctrl.setComp(compProxy, this.getGui(), this.eBodyViewport, this.eTop, this.eBottom, this.eStickyTop);\n\n if (this.rangeService || this.gridOptionsWrapper.isRowSelectionMulti()) {\n setAriaMultiSelectable(this.getGui(), true);\n }\n };\n\n GridBodyComp.prototype.setRowAnimationCssOnBodyViewport = function (cssClass, animateRows) {\n var bodyViewportClassList = this.eBodyViewport.classList;\n bodyViewportClassList.toggle(RowAnimationCssClasses.ANIMATION_ON, animateRows);\n bodyViewportClassList.toggle(RowAnimationCssClasses.ANIMATION_OFF, !animateRows);\n };\n\n GridBodyComp.prototype.getFloatingTopBottom = function () {\n return [this.eTop, this.eBottom];\n };\n\n __decorate$1E([Autowired('resizeObserverService')], GridBodyComp.prototype, \"resizeObserverService\", void 0);\n\n __decorate$1E([Optional('rangeService')], GridBodyComp.prototype, \"rangeService\", void 0);\n\n __decorate$1E([RefSelector('eBodyViewport')], GridBodyComp.prototype, \"eBodyViewport\", void 0);\n\n __decorate$1E([RefSelector('eStickyTop')], GridBodyComp.prototype, \"eStickyTop\", void 0);\n\n __decorate$1E([RefSelector('eTop')], GridBodyComp.prototype, \"eTop\", void 0);\n\n __decorate$1E([RefSelector('eBottom')], GridBodyComp.prototype, \"eBottom\", void 0);\n\n __decorate$1E([RefSelector('gridHeader')], GridBodyComp.prototype, \"headerRootComp\", void 0);\n\n __decorate$1E([PostConstruct], GridBodyComp.prototype, \"init\", null);\n\n return GridBodyComp;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1K = undefined && undefined.__extends || function () {\n var _extendStatics75 = function extendStatics(d, b) {\n _extendStatics75 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics75(d, b);\n };\n\n return function (d, b) {\n _extendStatics75(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ScrollVisibleService =\n/** @class */\nfunction (_super) {\n __extends$1K(ScrollVisibleService, _super);\n\n function ScrollVisibleService() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n ScrollVisibleService.prototype.postConstruct = function () {\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayedColumnsChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, this.onDisplayedColumnsWidthChanged.bind(this));\n };\n\n ScrollVisibleService.prototype.onDisplayedColumnsChanged = function () {\n this.update();\n };\n\n ScrollVisibleService.prototype.onDisplayedColumnsWidthChanged = function () {\n this.update();\n };\n\n ScrollVisibleService.prototype.update = function () {\n // because of column animation (which takes 200ms), we have to do this twice.\n // eg if user removes cols anywhere except at the RHS, then the cols on the RHS\n // will animate to the left to fill the gap. this animation means just after\n // the cols are removed, the remaining cols are still in the original location\n // at the start of the animation, so pre animation the H scrollbar is still needed,\n // but post animation it is not.\n this.updateImpl();\n setTimeout(this.updateImpl.bind(this), 500);\n };\n\n ScrollVisibleService.prototype.updateImpl = function () {\n var centerRowCtrl = this.ctrlsService.getCenterRowContainerCtrl();\n\n if (!centerRowCtrl) {\n return;\n }\n\n var params = {\n horizontalScrollShowing: centerRowCtrl.isHorizontalScrollShowing(),\n verticalScrollShowing: this.isVerticalScrollShowing()\n };\n this.setScrollsVisible(params);\n };\n\n ScrollVisibleService.prototype.setScrollsVisible = function (params) {\n var atLeastOneDifferent = this.horizontalScrollShowing !== params.horizontalScrollShowing || this.verticalScrollShowing !== params.verticalScrollShowing;\n\n if (atLeastOneDifferent) {\n this.horizontalScrollShowing = params.horizontalScrollShowing;\n this.verticalScrollShowing = params.verticalScrollShowing;\n var event_1 = {\n type: Events.EVENT_SCROLL_VISIBILITY_CHANGED\n };\n this.eventService.dispatchEvent(event_1);\n }\n }; // used by pagination service - to know page height\n\n\n ScrollVisibleService.prototype.isHorizontalScrollShowing = function () {\n return this.horizontalScrollShowing;\n }; // used by header container\n\n\n ScrollVisibleService.prototype.isVerticalScrollShowing = function () {\n return this.verticalScrollShowing;\n };\n\n __decorate$1D([Autowired('ctrlsService')], ScrollVisibleService.prototype, \"ctrlsService\", void 0);\n\n __decorate$1D([PostConstruct], ScrollVisibleService.prototype, \"postConstruct\", null);\n\n ScrollVisibleService = __decorate$1D([Bean('scrollVisibleService')], ScrollVisibleService);\n return ScrollVisibleService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1J = undefined && undefined.__extends || function () {\n var _extendStatics76 = function extendStatics(d, b) {\n _extendStatics76 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics76(d, b);\n };\n\n return function (d, b) {\n _extendStatics76(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar MouseEventService =\n/** @class */\nfunction (_super) {\n __extends$1J(MouseEventService, _super);\n\n function MouseEventService() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.gridInstanceId = MouseEventService_1.gridInstanceSequence.next();\n return _this;\n }\n\n MouseEventService_1 = MouseEventService; // we put the instance id onto the main DOM element. this is used for events, when grids are inside grids,\n // so the grid can work out if the even came from this grid or a grid inside this one. see the ctrl+v logic\n // for where this is used.\n\n MouseEventService.prototype.stampTopLevelGridCompWithGridInstance = function (eGridDiv) {\n eGridDiv[MouseEventService_1.GRID_DOM_KEY] = this.gridInstanceId;\n };\n\n MouseEventService.prototype.getRenderedCellForEvent = function (event) {\n return getCtrlForEvent(this.gridOptionsWrapper, event, CellCtrl.DOM_DATA_KEY_CELL_CTRL);\n }; // walks the path of the event, and returns true if this grid is the first one that it finds. if doing\n // master / detail grids, and a child grid is found, then it returns false. this stops things like copy/paste\n // getting executed on many grids at the same time.\n\n\n MouseEventService.prototype.isEventFromThisGrid = function (event) {\n var res = this.isElementInThisGrid(event.target);\n return res;\n };\n\n MouseEventService.prototype.isElementInThisGrid = function (element) {\n var pointer = element;\n\n while (pointer) {\n var instanceId = pointer[MouseEventService_1.GRID_DOM_KEY];\n\n if (exists(instanceId)) {\n var eventFromThisGrid = instanceId === this.gridInstanceId;\n return eventFromThisGrid;\n }\n\n pointer = pointer.parentElement;\n }\n\n return false;\n };\n\n MouseEventService.prototype.getCellPositionForEvent = function (event) {\n var cellComp = this.getRenderedCellForEvent(event);\n return cellComp ? cellComp.getCellPosition() : null;\n };\n\n MouseEventService.prototype.getNormalisedPosition = function (event) {\n var gridPanelHasScrolls = this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_NORMAL;\n var e = event;\n var x;\n var y;\n\n if (e.clientX != null || e.clientY != null) {\n x = e.clientX;\n y = e.clientY;\n } else {\n x = e.x;\n y = e.y;\n }\n\n if (gridPanelHasScrolls) {\n var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n var vRange = gridBodyCon.getScrollFeature().getVScrollPosition();\n var hRange = gridBodyCon.getScrollFeature().getHScrollPosition();\n x += hRange.left;\n y += vRange.top;\n }\n\n return {\n x: x,\n y: y\n };\n };\n\n var MouseEventService_1;\n MouseEventService.gridInstanceSequence = new NumberSequence();\n MouseEventService.GRID_DOM_KEY = '__ag_grid_instance';\n\n __decorate$1C([Autowired('ctrlsService')], MouseEventService.prototype, \"ctrlsService\", void 0);\n\n MouseEventService = MouseEventService_1 = __decorate$1C([Bean('mouseEventService')], MouseEventService);\n return MouseEventService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1I = undefined && undefined.__extends || function () {\n var _extendStatics77 = function extendStatics(d, b) {\n _extendStatics77 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics77(d, b);\n };\n\n return function (d, b) {\n _extendStatics77(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$3 = undefined && undefined.__assign || function () {\n __assign$3 = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$3.apply(this, arguments);\n};\n\nvar __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar NavigationService =\n/** @class */\nfunction (_super) {\n __extends$1I(NavigationService, _super);\n\n function NavigationService() {\n var _this = _super.call(this) || this;\n\n _this.onPageDown = throttle(_this.onPageDown, 100);\n _this.onPageUp = throttle(_this.onPageUp, 100);\n return _this;\n }\n\n NavigationService.prototype.postConstruct = function () {\n var _this = this;\n\n this.ctrlsService.whenReady(function (p) {\n _this.gridBodyCon = p.gridBodyCtrl;\n });\n };\n\n NavigationService.prototype.handlePageScrollingKey = function (event) {\n var key = event.key;\n var alt = event.altKey;\n var ctrl = event.ctrlKey || event.metaKey;\n var rangeServiceShouldHandleShift = !!this.rangeService && event.shiftKey;\n var currentCell = this.mouseEventService.getCellPositionForEvent(event);\n\n if (!currentCell) {\n return false;\n }\n\n var processed = false;\n\n switch (key) {\n case KeyCode.PAGE_HOME:\n case KeyCode.PAGE_END:\n // handle home and end when ctrl & alt are NOT pressed\n if (!ctrl && !alt) {\n this.onHomeOrEndKey(key);\n processed = true;\n }\n\n break;\n\n case KeyCode.LEFT:\n case KeyCode.RIGHT:\n case KeyCode.UP:\n case KeyCode.DOWN:\n // handle when ctrl is pressed only, if shift is pressed\n // it will be handled by the rangeService\n if (ctrl && !alt && !rangeServiceShouldHandleShift) {\n this.onCtrlUpDownLeftRight(key, currentCell);\n processed = true;\n }\n\n break;\n\n case KeyCode.PAGE_DOWN:\n // handle page up and page down when ctrl & alt are NOT pressed\n if (!ctrl && !alt) {\n this.onPageDown(currentCell);\n processed = true;\n }\n\n break;\n\n case KeyCode.PAGE_UP:\n // handle page up and page down when ctrl & alt are NOT pressed\n if (!ctrl && !alt) {\n this.onPageUp(currentCell);\n processed = true;\n }\n\n break;\n }\n\n if (processed) {\n event.preventDefault();\n }\n\n return processed;\n };\n\n NavigationService.prototype.navigateTo = function (navigateParams) {\n var scrollIndex = navigateParams.scrollIndex,\n scrollType = navigateParams.scrollType,\n scrollColumn = navigateParams.scrollColumn,\n focusIndex = navigateParams.focusIndex,\n focusColumn = navigateParams.focusColumn;\n\n if (exists(scrollColumn) && !scrollColumn.isPinned()) {\n this.gridBodyCon.getScrollFeature().ensureColumnVisible(scrollColumn);\n }\n\n if (exists(scrollIndex)) {\n this.gridBodyCon.getScrollFeature().ensureIndexVisible(scrollIndex, scrollType);\n } // setFocusedCell relies on the browser default focus behavior to scroll the focused cell into view,\n // however, this behavior will cause the cell border to be cut off, or if we have sticky rows, the\n // cell will be completely hidden, so we call ensureIndexVisible without a position to guarantee\n // minimal scroll to get the row into view.\n\n\n if (!navigateParams.isAsync) {\n this.gridBodyCon.getScrollFeature().ensureIndexVisible(focusIndex);\n } // if we don't do this, the range will be left on the last cell, which will leave the last focused cell\n // highlighted.\n\n\n this.focusService.setFocusedCell({\n rowIndex: focusIndex,\n column: focusColumn,\n rowPinned: null,\n forceBrowserFocus: true\n });\n\n if (this.rangeService) {\n var cellPosition = {\n rowIndex: focusIndex,\n rowPinned: null,\n column: focusColumn\n };\n this.rangeService.setRangeToCell(cellPosition);\n }\n };\n\n NavigationService.prototype.onPageDown = function (gridCell) {\n var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n var scrollPosition = gridBodyCon.getScrollFeature().getVScrollPosition();\n var pixelsInOnePage = this.getViewportHeight();\n var pagingPixelOffset = this.paginationProxy.getPixelOffset();\n var currentPageBottomPixel = scrollPosition.top + pixelsInOnePage;\n var currentPageBottomRow = this.paginationProxy.getRowIndexAtPixel(currentPageBottomPixel + pagingPixelOffset);\n\n if (this.columnModel.isAutoRowHeightActive()) {\n this.navigateToNextPageWithAutoHeight(gridCell, currentPageBottomRow);\n } else {\n this.navigateToNextPage(gridCell, currentPageBottomRow);\n }\n };\n\n NavigationService.prototype.onPageUp = function (gridCell) {\n var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n var scrollPosition = gridBodyCon.getScrollFeature().getVScrollPosition();\n var pagingPixelOffset = this.paginationProxy.getPixelOffset();\n var currentPageTopPixel = scrollPosition.top;\n var currentPageTopRow = this.paginationProxy.getRowIndexAtPixel(currentPageTopPixel + pagingPixelOffset);\n\n if (this.columnModel.isAutoRowHeightActive()) {\n this.navigateToNextPageWithAutoHeight(gridCell, currentPageTopRow, true);\n } else {\n this.navigateToNextPage(gridCell, currentPageTopRow, true);\n }\n };\n\n NavigationService.prototype.navigateToNextPage = function (gridCell, scrollIndex, up) {\n if (up === void 0) {\n up = false;\n }\n\n var _a, _b;\n\n var pixelsInOnePage = this.getViewportHeight();\n var firstRow = this.paginationProxy.getPageFirstRow();\n var lastRow = this.paginationProxy.getPageLastRow();\n var pagingPixelOffset = this.paginationProxy.getPixelOffset();\n var currentRowNode = this.paginationProxy.getRow(gridCell.rowIndex);\n var rowPixelDiff = up ? ((_a = currentRowNode) === null || _a === void 0 ? void 0 : _a.rowHeight) - pixelsInOnePage - pagingPixelOffset : pixelsInOnePage - pagingPixelOffset;\n var nextCellPixel = ((_b = currentRowNode) === null || _b === void 0 ? void 0 : _b.rowTop) + rowPixelDiff;\n var focusIndex = this.paginationProxy.getRowIndexAtPixel(nextCellPixel + pagingPixelOffset);\n\n if (focusIndex === gridCell.rowIndex) {\n var diff = up ? -1 : 1;\n scrollIndex = focusIndex = gridCell.rowIndex + diff;\n }\n\n var scrollType;\n\n if (up) {\n scrollType = 'bottom';\n\n if (focusIndex < firstRow) {\n focusIndex = firstRow;\n }\n\n if (scrollIndex < firstRow) {\n scrollIndex = firstRow;\n }\n } else {\n scrollType = 'top';\n\n if (focusIndex > lastRow) {\n focusIndex = lastRow;\n }\n\n if (scrollIndex > lastRow) {\n scrollIndex = lastRow;\n }\n }\n\n if (this.isRowTallerThanView(focusIndex)) {\n scrollIndex = focusIndex;\n scrollType = 'top';\n }\n\n this.navigateTo({\n scrollIndex: scrollIndex,\n scrollType: scrollType,\n scrollColumn: null,\n focusIndex: focusIndex,\n focusColumn: gridCell.column\n });\n };\n\n NavigationService.prototype.navigateToNextPageWithAutoHeight = function (gridCell, scrollIndex, up) {\n var _this = this;\n\n if (up === void 0) {\n up = false;\n } // because autoHeight will calculate the height of rows after scroll\n // first we scroll towards the required point, then we add a small\n // delay to allow the height to be recalculated, check which index\n // should be focused and then finally navigate to that index.\n // TODO: we should probably have an event fired once to scrollbar has\n // settled and all rowHeights have been calculated instead of relying\n // on a setTimeout of 50ms.\n\n\n this.navigateTo({\n scrollIndex: scrollIndex,\n scrollType: up ? 'bottom' : 'top',\n scrollColumn: null,\n focusIndex: scrollIndex,\n focusColumn: gridCell.column\n });\n setTimeout(function () {\n var focusIndex = _this.getNextFocusIndexForAutoHeight(gridCell, up);\n\n _this.navigateTo({\n scrollIndex: scrollIndex,\n scrollType: up ? 'bottom' : 'top',\n scrollColumn: null,\n focusIndex: focusIndex,\n focusColumn: gridCell.column,\n isAsync: true\n });\n }, 50);\n };\n\n NavigationService.prototype.getNextFocusIndexForAutoHeight = function (gridCell, up) {\n if (up === void 0) {\n up = false;\n }\n\n var _a;\n\n var step = up ? -1 : 1;\n var pixelsInOnePage = this.getViewportHeight();\n var lastRowIndex = this.paginationProxy.getPageLastRow();\n var pixelSum = 0;\n var currentIndex = gridCell.rowIndex;\n\n while (currentIndex >= 0 && currentIndex <= lastRowIndex) {\n var currentCell = this.paginationProxy.getRow(currentIndex);\n\n if (currentCell) {\n var currentCellHeight = (_a = currentCell.rowHeight, _a !== null && _a !== void 0 ? _a : 0);\n\n if (pixelSum + currentCellHeight > pixelsInOnePage) {\n break;\n }\n\n pixelSum += currentCellHeight;\n }\n\n currentIndex += step;\n }\n\n return Math.max(0, Math.min(currentIndex, lastRowIndex));\n };\n\n NavigationService.prototype.getViewportHeight = function () {\n var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n var scrollPosition = gridBodyCon.getScrollFeature().getVScrollPosition();\n var scrollbarWidth = this.gridOptionsWrapper.getScrollbarWidth();\n var pixelsInOnePage = scrollPosition.bottom - scrollPosition.top;\n\n if (this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()) {\n pixelsInOnePage -= scrollbarWidth;\n }\n\n return pixelsInOnePage;\n };\n\n NavigationService.prototype.isRowTallerThanView = function (rowIndex) {\n var rowNode = this.paginationProxy.getRow(rowIndex);\n\n if (!rowNode) {\n return false;\n }\n\n var rowHeight = rowNode.rowHeight;\n\n if (typeof rowHeight !== 'number') {\n return false;\n }\n\n return rowHeight > this.getViewportHeight();\n };\n\n NavigationService.prototype.onCtrlUpDownLeftRight = function (key, gridCell) {\n var cellToFocus = this.cellNavigationService.getNextCellToFocus(key, gridCell, true);\n var rowIndex = cellToFocus.rowIndex,\n column = cellToFocus.column;\n this.navigateTo({\n scrollIndex: rowIndex,\n scrollType: null,\n scrollColumn: column,\n focusIndex: rowIndex,\n focusColumn: column\n });\n }; // home brings focus to top left cell, end brings focus to bottom right, grid scrolled to bring\n // same cell into view (which means either scroll all the way up, or all the way down).\n\n\n NavigationService.prototype.onHomeOrEndKey = function (key) {\n var homeKey = key === KeyCode.PAGE_HOME;\n var allColumns = this.columnModel.getAllDisplayedColumns();\n var columnToSelect = homeKey ? allColumns[0] : last(allColumns);\n var scrollIndex = homeKey ? this.paginationProxy.getPageFirstRow() : this.paginationProxy.getPageLastRow();\n this.navigateTo({\n scrollIndex: scrollIndex,\n scrollType: null,\n scrollColumn: columnToSelect,\n focusIndex: scrollIndex,\n focusColumn: columnToSelect\n });\n }; // result of keyboard event\n\n\n NavigationService.prototype.onTabKeyDown = function (previous, keyboardEvent) {\n var backwards = keyboardEvent.shiftKey;\n var movedToNextCell = this.tabToNextCellCommon(previous, backwards, keyboardEvent);\n\n if (movedToNextCell) {\n // only prevent default if we found a cell. so if user is on last cell and hits tab, then we default\n // to the normal tabbing so user can exit the grid.\n keyboardEvent.preventDefault();\n return;\n } // if we didn't move to next cell, then need to tab out of the cells, ie to the header (if going\n // backwards)\n\n\n if (backwards) {\n var _a = previous.getRowPosition(),\n rowIndex = _a.rowIndex,\n rowPinned = _a.rowPinned;\n\n var firstRow = rowPinned ? rowIndex === 0 : rowIndex === this.paginationProxy.getPageFirstRow();\n\n if (firstRow) {\n keyboardEvent.preventDefault();\n this.focusService.focusLastHeader(keyboardEvent);\n }\n } else {\n // if the case it's a popup editor, the focus is on the editor and not the previous cell.\n // in order for the tab navigation to work, we need to focus the browser back onto the\n // previous cell.\n if (previous instanceof CellCtrl) {\n previous.focusCell(true);\n }\n\n if (this.focusService.focusNextGridCoreContainer(backwards)) {\n keyboardEvent.preventDefault();\n }\n }\n }; // comes from API\n\n\n NavigationService.prototype.tabToNextCell = function (backwards, event) {\n var focusedCell = this.focusService.getFocusedCell(); // if no focus, then cannot navigate\n\n if (!focusedCell) {\n return false;\n }\n\n var cellOrRow = this.getCellByPosition(focusedCell); // if cell is not rendered, means user has scrolled away from the cell\n // or that the focusedCell is a Full Width Row\n\n if (!cellOrRow) {\n cellOrRow = this.rowRenderer.getRowByPosition(focusedCell);\n\n if (!cellOrRow || !cellOrRow.isFullWidth()) {\n return false;\n }\n }\n\n return this.tabToNextCellCommon(cellOrRow, backwards, event);\n };\n\n NavigationService.prototype.tabToNextCellCommon = function (previous, backwards, event) {\n var editing = previous.isEditing(); // if cell is not editing, there is still chance row is editing if it's Full Row Editing\n\n if (!editing && previous instanceof CellCtrl) {\n var cell = previous;\n var row = cell.getRowCtrl();\n\n if (row) {\n editing = row.isEditing();\n }\n }\n\n var res;\n\n if (editing) {\n // if we are editing, we know it's not a Full Width Row (RowComp)\n if (this.gridOptionsWrapper.isFullRowEdit()) {\n res = this.moveToNextEditingRow(previous, backwards, event);\n } else {\n res = this.moveToNextEditingCell(previous, backwards, event);\n }\n } else {\n res = this.moveToNextCellNotEditing(previous, backwards);\n } // if a cell wasn't found, it's possible that focus was moved to the header\n\n\n return res || !!this.focusService.getFocusedHeader();\n };\n\n NavigationService.prototype.moveToNextEditingCell = function (previousCell, backwards, event) {\n if (event === void 0) {\n event = null;\n }\n\n var previousPos = previousCell.getCellPosition(); // before we stop editing, we need to focus the cell element\n // so the grid doesn't detect that focus has left the grid\n\n previousCell.getGui().focus(); // need to do this before getting next cell to edit, in case the next cell\n // has editable function (eg colDef.editable=func() ) and it depends on the\n // result of this cell, so need to save updates from the first edit, in case\n // the value is referenced in the function.\n\n previousCell.stopEditing(); // find the next cell to start editing\n\n var nextCell = this.findNextCellToFocusOn(previousPos, backwards, true);\n\n if (nextCell == null) {\n return false;\n } // only prevent default if we found a cell. so if user is on last cell and hits tab, then we default\n // to the normal tabbing so user can exit the grid.\n\n\n nextCell.startEditing(null, null, true, event);\n nextCell.focusCell(false);\n return true;\n };\n\n NavigationService.prototype.moveToNextEditingRow = function (previousCell, backwards, event) {\n if (event === void 0) {\n event = null;\n }\n\n var previousPos = previousCell.getCellPosition(); // find the next cell to start editing\n\n var nextCell = this.findNextCellToFocusOn(previousPos, backwards, true);\n\n if (nextCell == null) {\n return false;\n }\n\n var nextPos = nextCell.getCellPosition();\n var previousEditable = this.isCellEditable(previousPos);\n var nextEditable = this.isCellEditable(nextPos);\n var rowsMatch = nextPos && previousPos.rowIndex === nextPos.rowIndex && previousPos.rowPinned === nextPos.rowPinned;\n\n if (previousEditable) {\n previousCell.setFocusOutOnEditor();\n }\n\n if (!rowsMatch) {\n var pRow = previousCell.getRowCtrl();\n pRow.stopEditing();\n var nRow = nextCell.getRowCtrl();\n nRow.startRowEditing(undefined, undefined, undefined, event);\n }\n\n if (nextEditable) {\n nextCell.setFocusInOnEditor();\n nextCell.focusCell();\n } else {\n nextCell.focusCell(true);\n }\n\n return true;\n };\n\n NavigationService.prototype.moveToNextCellNotEditing = function (previousCell, backwards) {\n var displayedColumns = this.columnModel.getAllDisplayedColumns();\n var cellPos;\n\n if (previousCell instanceof RowCtrl) {\n cellPos = __assign$3(__assign$3({}, previousCell.getRowPosition()), {\n column: backwards ? displayedColumns[0] : last(displayedColumns)\n });\n } else {\n cellPos = previousCell.getCellPosition();\n } // find the next cell to start editing\n\n\n var nextCell = this.findNextCellToFocusOn(cellPos, backwards, false); // only prevent default if we found a cell. so if user is on last cell and hits tab, then we default\n // to the normal tabbing so user can exit the grid.\n\n if (nextCell instanceof CellCtrl) {\n nextCell.focusCell(true);\n } else if (nextCell) {\n return this.tryToFocusFullWidthRow(nextCell.getRowPosition(), backwards);\n }\n\n return exists(nextCell);\n }; // called by the cell, when tab is pressed while editing.\n // @return: RenderedCell when navigation successful, otherwise null\n\n\n NavigationService.prototype.findNextCellToFocusOn = function (previousPosition, backwards, startEditing) {\n var nextPosition = previousPosition;\n\n while (true) {\n if (previousPosition !== nextPosition) {\n previousPosition = nextPosition;\n }\n\n if (!backwards) {\n nextPosition = this.getLastCellOfColSpan(nextPosition);\n }\n\n nextPosition = this.cellNavigationService.getNextTabbedCell(nextPosition, backwards); // allow user to override what cell to go to next\n\n var userFunc = this.gridOptionsWrapper.getTabToNextCellFunc();\n\n if (exists(userFunc)) {\n var params = {\n backwards: backwards,\n editing: startEditing,\n previousCellPosition: previousPosition,\n nextCellPosition: nextPosition ? nextPosition : null\n };\n var userCell = userFunc(params);\n\n if (exists(userCell)) {\n if (userCell.floating) {\n doOnce(function () {\n console.warn(\"AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?\");\n }, 'no floating in userCell');\n userCell.rowPinned = userCell.floating;\n }\n\n nextPosition = {\n rowIndex: userCell.rowIndex,\n column: userCell.column,\n rowPinned: userCell.rowPinned\n };\n } else {\n nextPosition = null;\n }\n } // if no 'next cell', means we have got to last cell of grid, so nothing to move to,\n // so bottom right cell going forwards, or top left going backwards\n\n\n if (!nextPosition) {\n return null;\n }\n\n if (nextPosition.rowIndex < 0) {\n var headerLen = this.headerNavigationService.getHeaderRowCount();\n this.focusService.focusHeaderPosition({\n headerPosition: {\n headerRowIndex: headerLen + nextPosition.rowIndex,\n column: nextPosition.column\n }\n });\n return null;\n } // if editing, but cell not editable, skip cell. we do this before we do all of\n // the 'ensure index visible' and 'flush all frames', otherwise if we are skipping\n // a bunch of cells (eg 10 rows) then all the work on ensuring cell visible is useless\n // (except for the last one) which causes grid to stall for a while.\n // note - for full row edit, we do focus non-editable cells, as the row stays in edit mode.\n\n\n var fullRowEdit = this.gridOptionsWrapper.isFullRowEdit();\n\n if (startEditing && !fullRowEdit) {\n var cellIsEditable = this.isCellEditable(nextPosition);\n\n if (!cellIsEditable) {\n continue;\n }\n }\n\n this.ensureCellVisible(nextPosition); // we have to call this after ensureColumnVisible - otherwise it could be a virtual column\n // or row that is not currently in view, hence the renderedCell would not exist\n\n var nextCell = this.getCellByPosition(nextPosition); // if next cell is fullWidth row, then no rendered cell,\n // as fullWidth rows have no cells, so we skip it\n\n if (!nextCell) {\n var row = this.rowRenderer.getRowByPosition(nextPosition);\n\n if (!row || !row.isFullWidth()) {\n continue;\n } else {\n return row;\n }\n }\n\n if (nextCell.isSuppressNavigable()) {\n continue;\n } // by default, when we click a cell, it gets selected into a range, so to keep keyboard navigation\n // consistent, we set into range here also.\n\n\n if (this.rangeService) {\n this.rangeService.setRangeToCell(nextPosition);\n } // we successfully tabbed onto a grid cell, so return true\n\n\n return nextCell;\n }\n };\n\n NavigationService.prototype.isCellEditable = function (cell) {\n var rowNode = this.lookupRowNodeForCell(cell);\n\n if (rowNode) {\n return cell.column.isCellEditable(rowNode);\n }\n\n return false;\n };\n\n NavigationService.prototype.getCellByPosition = function (cellPosition) {\n var rowCtrl = this.rowRenderer.getRowByPosition(cellPosition);\n\n if (!rowCtrl) {\n return null;\n }\n\n return rowCtrl.getCellCtrl(cellPosition.column);\n };\n\n NavigationService.prototype.lookupRowNodeForCell = function (cell) {\n if (cell.rowPinned === Constants.PINNED_TOP) {\n return this.pinnedRowModel.getPinnedTopRow(cell.rowIndex);\n }\n\n if (cell.rowPinned === Constants.PINNED_BOTTOM) {\n return this.pinnedRowModel.getPinnedBottomRow(cell.rowIndex);\n }\n\n return this.paginationProxy.getRow(cell.rowIndex);\n }; // we use index for rows, but column object for columns, as the next column (by index) might not\n // be visible (header grouping) so it's not reliable, so using the column object instead.\n\n\n NavigationService.prototype.navigateToNextCell = function (event, key, currentCell, allowUserOverride) {\n // we keep searching for a next cell until we find one. this is how the group rows get skipped\n var nextCell = currentCell;\n var hitEdgeOfGrid = false;\n\n while (nextCell && (nextCell === currentCell || !this.isValidNavigateCell(nextCell))) {\n // if the current cell is spanning across multiple columns, we need to move\n // our current position to be the last cell on the right before finding the\n // the next target.\n if (this.gridOptionsWrapper.isEnableRtl()) {\n if (key === KeyCode.LEFT) {\n nextCell = this.getLastCellOfColSpan(nextCell);\n }\n } else if (key === KeyCode.RIGHT) {\n nextCell = this.getLastCellOfColSpan(nextCell);\n }\n\n nextCell = this.cellNavigationService.getNextCellToFocus(key, nextCell); // eg if going down, and nextCell=undefined, means we are gone past the last row\n\n hitEdgeOfGrid = missing(nextCell);\n }\n\n if (hitEdgeOfGrid && event && event.key === KeyCode.UP) {\n nextCell = {\n rowIndex: -1,\n rowPinned: null,\n column: currentCell.column\n };\n } // allow user to override what cell to go to next. when doing normal cell navigation (with keys)\n // we allow this, however if processing 'enter after edit' we don't allow override\n\n\n if (allowUserOverride) {\n var userFunc = this.gridOptionsWrapper.getNavigateToNextCellFunc();\n\n if (exists(userFunc)) {\n var params = {\n key: key,\n previousCellPosition: currentCell,\n nextCellPosition: nextCell ? nextCell : null,\n event: event\n };\n var userCell = userFunc(params);\n\n if (exists(userCell)) {\n if (userCell.floating) {\n doOnce(function () {\n console.warn(\"AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?\");\n }, 'no floating in userCell');\n userCell.rowPinned = userCell.floating;\n }\n\n nextCell = {\n rowPinned: userCell.rowPinned,\n rowIndex: userCell.rowIndex,\n column: userCell.column\n };\n } else {\n nextCell = null;\n }\n }\n } // no next cell means we have reached a grid boundary, eg left, right, top or bottom of grid\n\n\n if (!nextCell) {\n return;\n }\n\n if (nextCell.rowIndex < 0) {\n var headerLen = this.headerNavigationService.getHeaderRowCount();\n this.focusService.focusHeaderPosition({\n headerPosition: {\n headerRowIndex: headerLen + nextCell.rowIndex,\n column: currentCell.column\n },\n event: event || undefined\n });\n return;\n } // in case we have col spanning we get the cellComp and use it to get the\n // position. This was we always focus the first cell inside the spanning.\n\n\n var normalisedPosition = this.getNormalisedPosition(nextCell);\n\n if (normalisedPosition) {\n this.focusPosition(normalisedPosition);\n } else {\n this.tryToFocusFullWidthRow(nextCell);\n }\n };\n\n NavigationService.prototype.getNormalisedPosition = function (cellPosition) {\n // ensureCellVisible first, to make sure cell at position is rendered.\n this.ensureCellVisible(cellPosition);\n var cellCtrl = this.getCellByPosition(cellPosition); // not guaranteed to have a cellComp when using the SSRM as blocks are loading.\n\n if (!cellCtrl) {\n return null;\n }\n\n cellPosition = cellCtrl.getCellPosition(); // we call this again, as nextCell can be different to it's previous value due to Column Spanning\n // (ie if cursor moving from right to left, and cell is spanning columns, then nextCell was the\n // last column in the group, however now it's the first column in the group). if we didn't do\n // ensureCellVisible again, then we could only be showing the last portion (last column) of the\n // merged cells.\n\n this.ensureCellVisible(cellPosition);\n return cellPosition;\n };\n\n NavigationService.prototype.tryToFocusFullWidthRow = function (position, backwards) {\n if (backwards === void 0) {\n backwards = false;\n }\n\n var displayedColumns = this.columnModel.getAllDisplayedColumns();\n var rowComp = this.rowRenderer.getRowByPosition(position);\n\n if (!rowComp || !rowComp.isFullWidth()) {\n return false;\n }\n\n var currentCellFocused = this.focusService.getFocusedCell();\n var cellPosition = {\n rowIndex: position.rowIndex,\n rowPinned: position.rowPinned,\n column: position.column || (backwards ? last(displayedColumns) : displayedColumns[0])\n };\n this.focusPosition(cellPosition);\n var fromBelow = currentCellFocused != null ? this.rowPositionUtils.before(cellPosition, currentCellFocused) : false;\n var focusEvent = {\n type: Events.EVENT_FULL_WIDTH_ROW_FOCUSED,\n rowIndex: cellPosition.rowIndex,\n rowPinned: cellPosition.rowPinned,\n column: cellPosition.column,\n isFullWidthCell: true,\n floating: cellPosition.rowPinned,\n fromBelow: fromBelow\n };\n this.eventService.dispatchEvent(focusEvent);\n return true;\n };\n\n NavigationService.prototype.focusPosition = function (cellPosition) {\n this.focusService.setFocusedCell({\n rowIndex: cellPosition.rowIndex,\n column: cellPosition.column,\n rowPinned: cellPosition.rowPinned,\n forceBrowserFocus: true\n });\n\n if (this.rangeService) {\n this.rangeService.setRangeToCell(cellPosition);\n }\n };\n\n NavigationService.prototype.isValidNavigateCell = function (cell) {\n var rowNode = this.rowPositionUtils.getRowNode(cell); // we do not allow focusing on detail rows and full width rows\n\n return !!rowNode;\n };\n\n NavigationService.prototype.getLastCellOfColSpan = function (cell) {\n var cellCtrl = this.getCellByPosition(cell);\n\n if (!cellCtrl) {\n return cell;\n }\n\n var colSpanningList = cellCtrl.getColSpanningList();\n\n if (colSpanningList.length === 1) {\n return cell;\n }\n\n return {\n rowIndex: cell.rowIndex,\n column: last(colSpanningList),\n rowPinned: cell.rowPinned\n };\n };\n\n NavigationService.prototype.ensureCellVisible = function (gridCell) {\n var _a;\n\n var isGroupStickyEnabled = this.gridOptionsWrapper.isGroupRowsSticky();\n var rowNode = this.rowModel.getRow(gridCell.rowIndex); // sticky rows are always visible, so the grid shouldn't scroll to focus them.\n\n var skipScrollToRow = isGroupStickyEnabled && ((_a = rowNode) === null || _a === void 0 ? void 0 : _a.sticky); // this scrolls the row into view\n\n if (!skipScrollToRow && missing(gridCell.rowPinned)) {\n this.gridBodyCon.getScrollFeature().ensureIndexVisible(gridCell.rowIndex);\n }\n\n if (!gridCell.column.isPinned()) {\n this.gridBodyCon.getScrollFeature().ensureColumnVisible(gridCell.column);\n }\n };\n\n __decorate$1B([Autowired('mouseEventService')], NavigationService.prototype, \"mouseEventService\", void 0);\n\n __decorate$1B([Autowired('paginationProxy')], NavigationService.prototype, \"paginationProxy\", void 0);\n\n __decorate$1B([Autowired('focusService')], NavigationService.prototype, \"focusService\", void 0);\n\n __decorate$1B([Optional('rangeService')], NavigationService.prototype, \"rangeService\", void 0);\n\n __decorate$1B([Autowired('columnModel')], NavigationService.prototype, \"columnModel\", void 0);\n\n __decorate$1B([Autowired('rowModel')], NavigationService.prototype, \"rowModel\", void 0);\n\n __decorate$1B([Autowired('ctrlsService')], NavigationService.prototype, \"ctrlsService\", void 0);\n\n __decorate$1B([Autowired('rowRenderer')], NavigationService.prototype, \"rowRenderer\", void 0);\n\n __decorate$1B([Autowired('headerNavigationService')], NavigationService.prototype, \"headerNavigationService\", void 0);\n\n __decorate$1B([Autowired(\"rowPositionUtils\")], NavigationService.prototype, \"rowPositionUtils\", void 0);\n\n __decorate$1B([Autowired(\"cellNavigationService\")], NavigationService.prototype, \"cellNavigationService\", void 0);\n\n __decorate$1B([Autowired(\"pinnedRowModel\")], NavigationService.prototype, \"pinnedRowModel\", void 0);\n\n __decorate$1B([PostConstruct], NavigationService.prototype, \"postConstruct\", null);\n\n NavigationService = __decorate$1B([Bean('navigationService')], NavigationService);\n return NavigationService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1H = undefined && undefined.__extends || function () {\n var _extendStatics78 = function extendStatics(d, b) {\n _extendStatics78 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics78(d, b);\n };\n\n return function (d, b) {\n _extendStatics78(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar PopupEditorWrapper =\n/** @class */\nfunction (_super) {\n __extends$1H(PopupEditorWrapper, _super);\n\n function PopupEditorWrapper(params) {\n var _this = _super.call(this,\n /* html */\n \"
\") || this;\n\n _this.params = params;\n return _this;\n }\n\n PopupEditorWrapper.prototype.postConstruct = function () {\n this.gridOptionsWrapper.setDomData(this.getGui(), PopupEditorWrapper.DOM_KEY_POPUP_EDITOR_WRAPPER, true);\n this.addKeyDownListener();\n };\n\n PopupEditorWrapper.prototype.addKeyDownListener = function () {\n var _this = this;\n\n var eGui = this.getGui();\n var params = this.params;\n\n var listener = function listener(event) {\n if (!isUserSuppressingKeyboardEvent(_this.gridOptionsWrapper, event, params.node, params.column, true)) {\n params.onKeyDown(event);\n }\n };\n\n this.addManagedListener(eGui, 'keydown', listener);\n };\n\n PopupEditorWrapper.DOM_KEY_POPUP_EDITOR_WRAPPER = 'popupEditorWrapper';\n\n __decorate$1A([PostConstruct], PopupEditorWrapper.prototype, \"postConstruct\", null);\n\n return PopupEditorWrapper;\n}(PopupComponent);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1G = undefined && undefined.__extends || function () {\n var _extendStatics79 = function extendStatics(d, b) {\n _extendStatics79 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics79(d, b);\n };\n\n return function (d, b) {\n _extendStatics79(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar CellComp =\n/** @class */\nfunction (_super) {\n __extends$1G(CellComp, _super);\n\n function CellComp(beans, cellCtrl, printLayout, eRow, editingRow) {\n var _this = _super.call(this) || this; // every time we go into edit mode, or back again, this gets incremented.\n // it's the components way of dealing with the async nature of framework components,\n // so if a framework component takes a while to be created, we know if the object\n // is still relevant when creating is finished. eg we could click edit / un-edit 20\n // times before the first React edit component comes back - we should discard\n // the first 19.\n\n\n _this.rendererVersion = 0;\n _this.editorVersion = 0;\n _this.beans = beans;\n _this.column = cellCtrl.getColumn();\n _this.rowNode = cellCtrl.getRowNode();\n _this.rowCtrl = cellCtrl.getRowCtrl();\n _this.eRow = eRow;\n\n _this.setTemplate(\n /* html */\n \"
\");\n\n var eGui = _this.getGui();\n\n _this.forceWrapper = cellCtrl.isForceWrapper();\n\n _this.refreshWrapper(false);\n\n var setAttribute = function setAttribute(name, value, element) {\n var actualElement = element ? element : eGui;\n\n if (value != null && value != '') {\n actualElement.setAttribute(name, value);\n } else {\n actualElement.removeAttribute(name);\n }\n };\n\n var compProxy = {\n addOrRemoveCssClass: function addOrRemoveCssClass(cssClassName, on) {\n return _this.addOrRemoveCssClass(cssClassName, on);\n },\n setUserStyles: function setUserStyles(styles) {\n return addStylesToElement(eGui, styles);\n },\n getFocusableElement: function getFocusableElement() {\n return _this.getFocusableElement();\n },\n setTabIndex: function setTabIndex(tabIndex) {\n return setAttribute('tabindex', tabIndex.toString());\n },\n setRole: function setRole(role) {\n return setAriaRole(eGui, role);\n },\n setColId: function setColId(colId) {\n return setAttribute('col-id', colId);\n },\n setTitle: function setTitle(title) {\n return setAttribute('title', title);\n },\n setIncludeSelection: function setIncludeSelection(include) {\n return _this.includeSelection = include;\n },\n setIncludeRowDrag: function setIncludeRowDrag(include) {\n return _this.includeRowDrag = include;\n },\n setIncludeDndSource: function setIncludeDndSource(include) {\n return _this.includeDndSource = include;\n },\n setRenderDetails: function setRenderDetails(compDetails, valueToDisplay, force) {\n return _this.setRenderDetails(compDetails, valueToDisplay, force);\n },\n setEditDetails: function setEditDetails(compDetails, popup, position) {\n return _this.setEditDetails(compDetails, popup, position);\n },\n getCellEditor: function getCellEditor() {\n return _this.cellEditor || null;\n },\n getCellRenderer: function getCellRenderer() {\n return _this.cellRenderer || null;\n },\n getParentOfValue: function getParentOfValue() {\n return _this.getParentOfValue();\n }\n };\n _this.cellCtrl = cellCtrl;\n cellCtrl.setComp(compProxy, _this.getGui(), _this.eCellWrapper, printLayout, editingRow);\n return _this;\n }\n\n CellComp.prototype.getParentOfValue = function () {\n if (this.eCellValue) {\n // if not editing, and using wrapper, then value goes in eCellValue\n return this.eCellValue;\n }\n\n if (this.eCellWrapper) {\n // if editing, and using wrapper, value (cell editor) goes in eCellWrapper\n return this.eCellWrapper;\n } // if editing or rendering, and not using wrapper, value (or comp) is directly inside cell\n\n\n return this.getGui();\n };\n\n CellComp.prototype.setRenderDetails = function (compDetails, valueToDisplay, forceNewCellRendererInstance) {\n // this can happen if the users asks for the cell to refresh, but we are not showing the vale as we are editing\n var isInlineEditing = this.cellEditor && !this.cellEditorPopupWrapper;\n\n if (isInlineEditing) {\n return;\n } // this means firstRender will be true for one pass only, as it's initialised to undefined\n\n\n this.firstRender = this.firstRender == null; // if display template has changed, means any previous Cell Renderer is in the wrong location\n\n var controlWrapperChanged = this.refreshWrapper(false); // all of these have dependencies on the eGui, so only do them after eGui is set\n\n if (compDetails) {\n var neverRefresh = forceNewCellRendererInstance || controlWrapperChanged;\n var cellRendererRefreshSuccessful = neverRefresh ? false : this.refreshCellRenderer(compDetails);\n\n if (!cellRendererRefreshSuccessful) {\n this.destroyRenderer();\n this.createCellRendererInstance(compDetails);\n }\n } else {\n this.destroyRenderer();\n this.insertValueWithoutCellRenderer(valueToDisplay);\n }\n };\n\n CellComp.prototype.setEditDetails = function (compDetails, popup, position) {\n if (compDetails) {\n this.createCellEditorInstance(compDetails, popup, position);\n } else {\n this.destroyEditor();\n }\n };\n\n CellComp.prototype.removeControls = function () {\n this.checkboxSelectionComp = this.beans.context.destroyBean(this.checkboxSelectionComp);\n this.dndSourceComp = this.beans.context.destroyBean(this.dndSourceComp);\n this.rowDraggingComp = this.beans.context.destroyBean(this.rowDraggingComp);\n }; // returns true if wrapper was changed\n\n\n CellComp.prototype.refreshWrapper = function (editing) {\n var providingControls = this.includeRowDrag || this.includeDndSource || this.includeSelection;\n var usingWrapper = providingControls || this.forceWrapper;\n var putWrapperIn = usingWrapper && this.eCellWrapper == null;\n\n if (putWrapperIn) {\n this.eCellWrapper = loadTemplate(\"
\");\n this.getGui().appendChild(this.eCellWrapper);\n }\n\n var takeWrapperOut = !usingWrapper && this.eCellWrapper != null;\n\n if (takeWrapperOut) {\n removeFromParent(this.eCellWrapper);\n this.eCellWrapper = undefined;\n }\n\n this.addOrRemoveCssClass('ag-cell-value', !usingWrapper);\n var usingCellValue = !editing && usingWrapper;\n var putCellValueIn = usingCellValue && this.eCellValue == null;\n\n if (putCellValueIn) {\n this.eCellValue = loadTemplate(\"\");\n this.eCellWrapper.appendChild(this.eCellValue);\n }\n\n var takeCellValueOut = !usingCellValue && this.eCellValue != null;\n\n if (takeCellValueOut) {\n removeFromParent(this.eCellValue);\n this.eCellValue = undefined;\n }\n\n var templateChanged = putWrapperIn || takeWrapperOut || putCellValueIn || takeCellValueOut;\n\n if (templateChanged) {\n this.removeControls();\n }\n\n if (!editing && providingControls) {\n this.addControls();\n }\n\n return templateChanged;\n };\n\n CellComp.prototype.addControls = function () {\n var id = this.eCellValue.id = \"cell-\" + this.getCompId();\n var describedByIds = [];\n\n if (this.includeRowDrag) {\n if (this.rowDraggingComp == null) {\n this.rowDraggingComp = this.cellCtrl.createRowDragComp();\n\n if (this.rowDraggingComp) {\n // put the checkbox in before the value\n this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(), this.eCellValue);\n }\n }\n }\n\n if (this.includeDndSource) {\n if (this.dndSourceComp == null) {\n this.dndSourceComp = this.cellCtrl.createDndSource(); // put the checkbox in before the value\n\n this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(), this.eCellValue);\n }\n }\n\n if (this.includeSelection) {\n if (this.checkboxSelectionComp == null) {\n this.checkboxSelectionComp = this.cellCtrl.createSelectionCheckbox();\n this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(), this.eCellValue);\n }\n\n describedByIds.push(this.checkboxSelectionComp.getCheckboxId());\n }\n\n describedByIds.push(id);\n setAriaDescribedBy(this.getGui(), describedByIds.join(' '));\n };\n\n CellComp.prototype.createCellEditorInstance = function (compDetails, popup, position) {\n var _this = this;\n\n var versionCopy = this.editorVersion;\n var cellEditorPromise = compDetails.newAgStackInstance();\n\n if (!cellEditorPromise) {\n return;\n } // if empty, userComponentFactory already did a console message\n\n\n var params = compDetails.params;\n cellEditorPromise.then(function (c) {\n return _this.afterCellEditorCreated(versionCopy, c, params, popup, position);\n }); // if we don't do this, and editor component is async, then there will be a period\n // when the component isn't present and keyboard navigation won't work - so example\n // of user hitting tab quickly (more quickly than renderers getting created) won't work\n\n var cellEditorAsync = missing(this.cellEditor);\n\n if (cellEditorAsync && params.cellStartedEdit) {\n this.cellCtrl.focusCell(true);\n }\n };\n\n CellComp.prototype.insertValueWithoutCellRenderer = function (valueToDisplay) {\n var eParent = this.getParentOfValue();\n clearElement(eParent);\n var escapedValue = valueToDisplay != null ? escapeString(valueToDisplay) : null;\n\n if (escapedValue != null) {\n eParent.innerHTML = escapedValue;\n }\n };\n\n CellComp.prototype.destroyEditorAndRenderer = function () {\n this.destroyRenderer();\n this.destroyEditor();\n };\n\n CellComp.prototype.destroyRenderer = function () {\n var context = this.beans.context;\n this.cellRenderer = context.destroyBean(this.cellRenderer);\n removeFromParent(this.cellRendererGui);\n this.cellRendererGui = null;\n this.rendererVersion++;\n };\n\n CellComp.prototype.destroyEditor = function () {\n var context = this.beans.context;\n\n if (this.hideEditorPopup) {\n this.hideEditorPopup();\n }\n\n this.hideEditorPopup = undefined;\n this.cellEditor = context.destroyBean(this.cellEditor);\n this.cellEditorPopupWrapper = context.destroyBean(this.cellEditorPopupWrapper);\n removeFromParent(this.cellEditorGui);\n this.cellEditorGui = null;\n this.editorVersion++;\n };\n\n CellComp.prototype.refreshCellRenderer = function (compClassAndParams) {\n if (this.cellRenderer == null || this.cellRenderer.refresh == null) {\n return false;\n } // if different Cell Renderer configured this time (eg user is using selector, and\n // returns different component) then don't refresh, force recreate of Cell Renderer\n\n\n if (this.cellRendererClass !== compClassAndParams.componentClass) {\n return false;\n } // take any custom params off of the user\n\n\n var result = this.cellRenderer.refresh(compClassAndParams.params); // NOTE on undefined: previous version of the cellRenderer.refresh() interface\n // returned nothing, if the method existed, we assumed it refreshed. so for\n // backwards compatibility, we assume if method exists and returns nothing,\n // that it was successful.\n\n return result === true || result === undefined;\n };\n\n CellComp.prototype.createCellRendererInstance = function (compDetails) {\n var _this = this; // never use task service if angularCompileRows=true, as that assume the cell renderers\n // are finished when the row is created. also we never use it if animation frame service\n // is turned off.\n // and lastly we never use it if doing auto-height, as the auto-height service checks the\n // row height directly after the cell is created, it doesn't wait around for the tasks to complete\n\n\n var angularCompileRows = this.beans.gridOptionsWrapper.isAngularCompileRows();\n var suppressAnimationFrame = this.beans.gridOptionsWrapper.isSuppressAnimationFrame();\n var useTaskService = !angularCompileRows && !suppressAnimationFrame;\n var displayComponentVersionCopy = this.rendererVersion;\n var componentClass = compDetails.componentClass;\n\n var createCellRendererFunc = function createCellRendererFunc() {\n var staleTask = _this.rendererVersion !== displayComponentVersionCopy || !_this.isAlive();\n\n if (staleTask) {\n return;\n } // this can return null in the event that the user has switched from a renderer component to nothing, for example\n // when using a cellRendererSelect to return a component or null depending on row data etc\n\n\n var componentPromise = compDetails.newAgStackInstance();\n\n var callback = _this.afterCellRendererCreated.bind(_this, displayComponentVersionCopy, componentClass);\n\n if (componentPromise) {\n componentPromise.then(callback);\n }\n }; // we only use task service when rendering for first time, which means it is not used when doing edits.\n // if we changed this (always use task service) would make sense, however it would break tests, possibly\n // test of users.\n\n\n if (useTaskService && this.firstRender) {\n this.beans.animationFrameService.createTask(createCellRendererFunc, this.rowNode.rowIndex, 'createTasksP2');\n } else {\n createCellRendererFunc();\n }\n };\n\n CellComp.prototype.getCtrl = function () {\n return this.cellCtrl;\n };\n\n CellComp.prototype.getRowCtrl = function () {\n return this.rowCtrl;\n };\n\n CellComp.prototype.getCellRenderer = function () {\n return this.cellRenderer;\n };\n\n CellComp.prototype.getCellEditor = function () {\n return this.cellEditor;\n };\n\n CellComp.prototype.afterCellRendererCreated = function (cellRendererVersion, cellRendererClass, cellRenderer) {\n var staleTask = !this.isAlive() || cellRendererVersion !== this.rendererVersion;\n\n if (staleTask) {\n this.beans.context.destroyBean(cellRenderer);\n return;\n }\n\n this.cellRenderer = cellRenderer;\n this.cellRendererClass = cellRendererClass;\n this.cellRendererGui = this.cellRenderer.getGui();\n\n if (this.cellRendererGui != null) {\n var eParent = this.getParentOfValue();\n clearElement(eParent);\n eParent.appendChild(this.cellRendererGui);\n }\n };\n\n CellComp.prototype.afterCellEditorCreated = function (requestVersion, cellEditor, params, popup, position) {\n // if editingCell=false, means user cancelled the editor before component was ready.\n // if versionMismatch, then user cancelled the edit, then started the edit again, and this\n // is the first editor which is now stale.\n var staleComp = requestVersion !== this.editorVersion;\n\n if (staleComp) {\n this.beans.context.destroyBean(cellEditor);\n return;\n }\n\n var editingCancelledByUserComp = cellEditor.isCancelBeforeStart && cellEditor.isCancelBeforeStart();\n\n if (editingCancelledByUserComp) {\n this.beans.context.destroyBean(cellEditor);\n this.cellCtrl.stopEditing();\n return;\n }\n\n if (!cellEditor.getGui) {\n console.warn(\"AG Grid: cellEditor for column \" + this.column.getId() + \" is missing getGui() method\");\n this.beans.context.destroyBean(cellEditor);\n return;\n }\n\n this.cellEditor = cellEditor;\n this.cellEditorGui = cellEditor.getGui();\n var cellEditorInPopup = popup || cellEditor.isPopup !== undefined && cellEditor.isPopup();\n\n if (cellEditorInPopup) {\n if (!popup) {\n this.cellCtrl.hackSayEditingInPopup();\n }\n\n this.addPopupCellEditor(params, position);\n } else {\n this.addInCellEditor();\n }\n\n if (cellEditor.afterGuiAttached) {\n cellEditor.afterGuiAttached();\n }\n };\n\n CellComp.prototype.addInCellEditor = function () {\n var eGui = this.getGui(); // if focus is inside the cell, we move focus to the cell itself\n // before removing it's contents, otherwise errors could be thrown.\n\n var eDocument = this.beans.gridOptionsWrapper.getDocument();\n\n if (eGui.contains(eDocument.activeElement)) {\n eGui.focus();\n }\n\n this.destroyRenderer();\n this.refreshWrapper(true);\n this.clearParentOfValue();\n\n if (this.cellEditorGui) {\n var eParent = this.getParentOfValue();\n eParent.appendChild(this.cellEditorGui);\n }\n };\n\n CellComp.prototype.addPopupCellEditor = function (params, position) {\n var _this = this;\n\n if (this.beans.gridOptionsWrapper.isFullRowEdit()) {\n 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.');\n }\n\n var cellEditor = this.cellEditor; // if a popup, then we wrap in a popup editor and return the popup\n\n this.cellEditorPopupWrapper = this.beans.context.createBean(new PopupEditorWrapper(params));\n var ePopupGui = this.cellEditorPopupWrapper.getGui();\n\n if (this.cellEditorGui) {\n ePopupGui.appendChild(this.cellEditorGui);\n }\n\n var popupService = this.beans.popupService;\n var useModelPopup = this.beans.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus(); // see if position provided by colDef, if not then check old way of method on cellComp\n\n var positionToUse = position != null ? position : cellEditor.getPopupPosition ? cellEditor.getPopupPosition() : 'over';\n var positionParams = {\n column: this.column,\n rowNode: this.rowNode,\n type: 'popupCellEditor',\n eventSource: this.getGui(),\n ePopup: ePopupGui,\n keepWithinBounds: true\n };\n var positionCallback = positionToUse === 'under' ? popupService.positionPopupUnderComponent.bind(popupService, positionParams) : popupService.positionPopupOverComponent.bind(popupService, positionParams);\n var translate = this.beans.gridOptionsWrapper.getLocaleTextFunc();\n var addPopupRes = popupService.addPopup({\n modal: useModelPopup,\n eChild: ePopupGui,\n closeOnEsc: true,\n closedCallback: function closedCallback() {\n _this.cellCtrl.onPopupEditorClosed();\n },\n anchorToElement: this.getGui(),\n positionCallback: positionCallback,\n ariaLabel: translate('ariaLabelCellEditor', 'Cell Editor')\n });\n\n if (addPopupRes) {\n this.hideEditorPopup = addPopupRes.hideFunc;\n }\n };\n\n CellComp.prototype.detach = function () {\n this.eRow.removeChild(this.getGui());\n }; // if the row is also getting destroyed, then we don't need to remove from dom,\n // as the row will also get removed, so no need to take out the cells from the row\n // if the row is going (removing is an expensive operation, so only need to remove\n // the top part)\n //\n // note - this is NOT called by context, as we don't wire / unwire the CellComp for performance reasons.\n\n\n CellComp.prototype.destroy = function () {\n this.cellCtrl.stopEditing();\n this.destroyEditorAndRenderer();\n this.removeControls();\n\n _super.prototype.destroy.call(this);\n };\n\n CellComp.prototype.clearParentOfValue = function () {\n var eGui = this.getGui(); // if focus is inside the cell, we move focus to the cell itself\n // before removing it's contents, otherwise errors could be thrown.\n\n var eDocument = this.beans.gridOptionsWrapper.getDocument();\n\n if (eGui.contains(eDocument.activeElement) && browserSupportsPreventScroll()) {\n eGui.focus({\n preventScroll: true\n });\n }\n\n clearElement(this.getParentOfValue());\n };\n\n return CellComp;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1F = undefined && undefined.__extends || function () {\n var _extendStatics80 = function extendStatics(d, b) {\n _extendStatics80 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics80(d, b);\n };\n\n return function (d, b) {\n _extendStatics80(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar RowComp =\n/** @class */\nfunction (_super) {\n __extends$1F(RowComp, _super);\n\n function RowComp(ctrl, beans, containerType) {\n var _this = _super.call(this) || this;\n\n _this.cellComps = {};\n _this.beans = beans;\n _this.rowCtrl = ctrl;\n\n _this.setTemplate(\n /* html */\n \"
\");\n\n var eGui = _this.getGui();\n\n var style = eGui.style;\n var compProxy = {\n setDomOrder: function setDomOrder(domOrder) {\n return _this.domOrder = domOrder;\n },\n setCellCtrls: function setCellCtrls(cellCtrls) {\n return _this.setCellCtrls(cellCtrls);\n },\n showFullWidth: function showFullWidth(compDetails) {\n return _this.showFullWidth(compDetails);\n },\n getFullWidthCellRenderer: function getFullWidthCellRenderer() {\n return _this.getFullWidthCellRenderer();\n },\n addOrRemoveCssClass: function addOrRemoveCssClass(name, on) {\n return _this.addOrRemoveCssClass(name, on);\n },\n setUserStyles: function setUserStyles(styles) {\n return addStylesToElement(eGui, styles);\n },\n setTop: function setTop(top) {\n return style.top = top;\n },\n setTransform: function setTransform(transform) {\n return style.transform = transform;\n },\n setRowIndex: function setRowIndex(rowIndex) {\n return eGui.setAttribute('row-index', rowIndex);\n },\n setRole: function setRole(role) {\n return setAriaRole(eGui, role);\n },\n setRowId: function setRowId(rowId) {\n return eGui.setAttribute('row-id', rowId);\n },\n setRowBusinessKey: function setRowBusinessKey(businessKey) {\n return eGui.setAttribute('row-business-key', businessKey);\n },\n setTabIndex: function setTabIndex(tabIndex) {\n return eGui.setAttribute('tabindex', tabIndex.toString());\n }\n };\n ctrl.setComp(compProxy, _this.getGui(), containerType);\n return _this;\n }\n\n RowComp.prototype.getInitialStyle = function () {\n var transform = this.rowCtrl.getInitialTransform();\n var top = this.rowCtrl.getInitialRowTop();\n return transform ? \"transform: \" + transform : \"top: \" + top;\n };\n\n RowComp.prototype.showFullWidth = function (compDetails) {\n var _this = this;\n\n var callback = function callback(cellRenderer) {\n if (_this.isAlive()) {\n var eGui = cellRenderer.getGui();\n\n _this.getGui().appendChild(eGui);\n\n _this.rowCtrl.setupDetailRowAutoHeight(eGui);\n\n _this.setFullWidthRowComp(cellRenderer);\n } else {\n _this.beans.context.destroyBean(cellRenderer);\n }\n }; // if not in cache, create new one\n\n\n var res = compDetails.newAgStackInstance();\n\n if (!res) {\n return;\n }\n\n res.then(callback);\n };\n\n RowComp.prototype.setCellCtrls = function (cellCtrls) {\n var _this = this;\n\n var cellsToRemove = Object.assign({}, this.cellComps);\n cellCtrls.forEach(function (cellCtrl) {\n var key = cellCtrl.getInstanceId();\n var existingCellComp = _this.cellComps[key];\n\n if (existingCellComp == null) {\n _this.newCellComp(cellCtrl);\n } else {\n cellsToRemove[key] = null;\n }\n });\n var cellCompsToRemove = getAllValuesInObject(cellsToRemove).filter(function (cellComp) {\n return cellComp != null;\n });\n this.destroyCells(cellCompsToRemove);\n this.ensureDomOrder(cellCtrls);\n };\n\n RowComp.prototype.ensureDomOrder = function (cellCtrls) {\n var _this = this;\n\n if (!this.domOrder) {\n return;\n }\n\n var elementsInOrder = [];\n cellCtrls.forEach(function (cellCtrl) {\n var cellComp = _this.cellComps[cellCtrl.getInstanceId()];\n\n if (cellComp) {\n elementsInOrder.push(cellComp.getGui());\n }\n });\n setDomChildOrder(this.getGui(), elementsInOrder);\n };\n\n RowComp.prototype.newCellComp = function (cellCtrl) {\n var cellComp = new CellComp(this.beans, cellCtrl, this.rowCtrl.isPrintLayout(), this.getGui(), this.rowCtrl.isEditing());\n this.cellComps[cellCtrl.getInstanceId()] = cellComp;\n this.getGui().appendChild(cellComp.getGui());\n };\n\n RowComp.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n\n this.destroyAllCells();\n };\n\n RowComp.prototype.destroyAllCells = function () {\n var cellsToDestroy = getAllValuesInObject(this.cellComps).filter(function (cp) {\n return cp != null;\n });\n this.destroyCells(cellsToDestroy);\n };\n\n RowComp.prototype.setFullWidthRowComp = function (fullWidthRowComponent) {\n var _this = this;\n\n if (this.fullWidthCellRenderer) {\n console.error('AG Grid - should not be setting fullWidthRowComponent twice');\n }\n\n this.fullWidthCellRenderer = fullWidthRowComponent;\n this.addDestroyFunc(function () {\n _this.fullWidthCellRenderer = _this.beans.context.destroyBean(_this.fullWidthCellRenderer);\n });\n };\n\n RowComp.prototype.getFullWidthCellRenderer = function () {\n return this.fullWidthCellRenderer;\n };\n\n RowComp.prototype.destroyCells = function (cellComps) {\n var _this = this;\n\n cellComps.forEach(function (cellComp) {\n // could be old reference, ie removed cell\n if (!cellComp) {\n return;\n } // check cellComp belongs in this container\n\n\n var instanceId = cellComp.getCtrl().getInstanceId();\n\n if (_this.cellComps[instanceId] !== cellComp) {\n return;\n }\n\n cellComp.detach();\n cellComp.destroy();\n _this.cellComps[instanceId] = null;\n });\n };\n\n return RowComp;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1E = undefined && undefined.__extends || function () {\n var _extendStatics81 = function extendStatics(d, b) {\n _extendStatics81 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics81(d, b);\n };\n\n return function (d, b) {\n _extendStatics81(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$2 = undefined && undefined.__assign || function () {\n __assign$2 = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$2.apply(this, arguments);\n};\n\nvar __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nfunction templateFactory() {\n var name = Component.elementGettingCreated.getAttribute('name');\n var cssClasses = RowContainerCtrl.getRowContainerCssClasses(name);\n var res;\n var template1 = name === RowContainerName.CENTER;\n var template2 = name === RowContainerName.TOP_CENTER || name === RowContainerName.STICKY_TOP_CENTER || name === RowContainerName.BOTTOM_CENTER;\n\n if (template1) {\n res =\n /* html */\n \"
\\n
\\n
\\n
\\n
\";\n } else if (template2) {\n res =\n /* html */\n \"
\\n
\\n
\";\n } else {\n res =\n /* html */\n \"
\";\n }\n\n return res;\n}\n\nvar RowContainerComp =\n/** @class */\nfunction (_super) {\n __extends$1E(RowContainerComp, _super);\n\n function RowContainerComp() {\n var _this = _super.call(this, templateFactory()) || this;\n\n _this.rowComps = {};\n _this.name = Component.elementGettingCreated.getAttribute('name');\n _this.type = getRowContainerTypeForName(_this.name);\n return _this;\n }\n\n RowContainerComp.prototype.postConstruct = function () {\n var _this = this;\n\n var compProxy = {\n setViewportHeight: function setViewportHeight(height) {\n return _this.eViewport.style.height = height;\n },\n setRowCtrls: function setRowCtrls(rowCtrls) {\n return _this.setRowCtrls(rowCtrls);\n },\n setDomOrder: function setDomOrder(domOrder) {\n _this.domOrder = domOrder;\n },\n setContainerWidth: function setContainerWidth(width) {\n return _this.eContainer.style.width = width;\n }\n };\n var ctrl = this.createManagedBean(new RowContainerCtrl(this.name));\n ctrl.setComp(compProxy, this.eContainer, this.eViewport, this.eWrapper);\n };\n\n RowContainerComp.prototype.preDestroy = function () {\n // destroys all row comps\n this.setRowCtrls([]);\n };\n\n RowContainerComp.prototype.setRowCtrls = function (rowCtrls) {\n var _this = this;\n\n var oldRows = __assign$2({}, this.rowComps);\n\n this.rowComps = {};\n this.lastPlacedElement = null;\n\n var processRow = function processRow(rowCon) {\n var instanceId = rowCon.getInstanceId();\n var existingRowComp = oldRows[instanceId];\n\n if (existingRowComp) {\n _this.rowComps[instanceId] = existingRowComp;\n delete oldRows[instanceId];\n\n _this.ensureDomOrder(existingRowComp.getGui());\n } else {\n var rowComp = _this.newRowComp(rowCon);\n\n _this.rowComps[instanceId] = rowComp;\n\n _this.appendRow(rowComp.getGui());\n }\n };\n\n rowCtrls.forEach(processRow);\n getAllValuesInObject(oldRows).forEach(function (oldRowComp) {\n _this.eContainer.removeChild(oldRowComp.getGui());\n\n oldRowComp.destroy();\n });\n setAriaRole(this.eContainer, rowCtrls.length ? \"rowgroup\" : \"presentation\");\n };\n\n RowContainerComp.prototype.appendRow = function (element) {\n if (this.domOrder) {\n insertWithDomOrder(this.eContainer, element, this.lastPlacedElement);\n } else {\n this.eContainer.appendChild(element);\n }\n\n this.lastPlacedElement = element;\n };\n\n RowContainerComp.prototype.ensureDomOrder = function (eRow) {\n if (this.domOrder) {\n ensureDomOrder(this.eContainer, eRow, this.lastPlacedElement);\n this.lastPlacedElement = eRow;\n }\n };\n\n RowContainerComp.prototype.newRowComp = function (rowCtrl) {\n RowContainerCtrl.getPinned(this.name);\n var res = new RowComp(rowCtrl, this.beans, this.type);\n return res;\n };\n\n __decorate$1z([Autowired('beans')], RowContainerComp.prototype, \"beans\", void 0);\n\n __decorate$1z([RefSelector('eViewport')], RowContainerComp.prototype, \"eViewport\", void 0);\n\n __decorate$1z([RefSelector('eContainer')], RowContainerComp.prototype, \"eContainer\", void 0);\n\n __decorate$1z([RefSelector('eWrapper')], RowContainerComp.prototype, \"eWrapper\", void 0);\n\n __decorate$1z([PostConstruct], RowContainerComp.prototype, \"postConstruct\", null);\n\n __decorate$1z([PreDestroy], RowContainerComp.prototype, \"preDestroy\", null);\n\n return RowContainerComp;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar BodyDropPivotTarget =\n/** @class */\nfunction () {\n function BodyDropPivotTarget(pinned) {\n this.columnsToAggregate = [];\n this.columnsToGroup = [];\n this.columnsToPivot = [];\n this.pinned = pinned;\n }\n /** Callback for when drag enters */\n\n\n BodyDropPivotTarget.prototype.onDragEnter = function (draggingEvent) {\n var _this = this;\n\n this.clearColumnsList(); // in pivot mode, we don't accept any drops if functions are read only\n\n if (this.gridOptionsWrapper.isFunctionsReadOnly()) {\n return;\n }\n\n var dragColumns = draggingEvent.dragItem.columns;\n\n if (!dragColumns) {\n return;\n }\n\n dragColumns.forEach(function (column) {\n // we don't allow adding secondary columns\n if (!column.isPrimary()) {\n return;\n }\n\n if (column.isAnyFunctionActive()) {\n return;\n }\n\n if (column.isAllowValue()) {\n _this.columnsToAggregate.push(column);\n } else if (column.isAllowRowGroup()) {\n _this.columnsToGroup.push(column);\n } else if (column.isAllowPivot()) {\n _this.columnsToPivot.push(column);\n }\n });\n };\n\n BodyDropPivotTarget.prototype.getIconName = function () {\n var totalColumns = this.columnsToAggregate.length + this.columnsToGroup.length + this.columnsToPivot.length;\n\n if (totalColumns > 0) {\n return this.pinned ? DragAndDropService.ICON_PINNED : DragAndDropService.ICON_MOVE;\n }\n\n return null;\n };\n /** Callback for when drag leaves */\n\n\n BodyDropPivotTarget.prototype.onDragLeave = function (draggingEvent) {\n // if we are taking columns out of the center, then we remove them from the report\n this.clearColumnsList();\n };\n\n BodyDropPivotTarget.prototype.clearColumnsList = function () {\n this.columnsToAggregate.length = 0;\n this.columnsToGroup.length = 0;\n this.columnsToPivot.length = 0;\n };\n /** Callback for when dragging */\n\n\n BodyDropPivotTarget.prototype.onDragging = function (draggingEvent) {};\n /** Callback for when drag stops */\n\n\n BodyDropPivotTarget.prototype.onDragStop = function (draggingEvent) {\n if (this.columnsToAggregate.length > 0) {\n this.columnModel.addValueColumns(this.columnsToAggregate, \"toolPanelDragAndDrop\");\n }\n\n if (this.columnsToGroup.length > 0) {\n this.columnModel.addRowGroupColumns(this.columnsToGroup, \"toolPanelDragAndDrop\");\n }\n\n if (this.columnsToPivot.length > 0) {\n this.columnModel.addPivotColumns(this.columnsToPivot, \"toolPanelDragAndDrop\");\n }\n };\n\n __decorate$1y([Autowired('columnModel')], BodyDropPivotTarget.prototype, \"columnModel\", void 0);\n\n __decorate$1y([Autowired('gridOptionsWrapper')], BodyDropPivotTarget.prototype, \"gridOptionsWrapper\", void 0);\n\n return BodyDropPivotTarget;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$d = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar MoveColumnFeature =\n/** @class */\nfunction () {\n function MoveColumnFeature(pinned, eContainer) {\n this.needToMoveLeft = false;\n this.needToMoveRight = false;\n this.pinned = pinned;\n this.eContainer = eContainer;\n this.centerContainer = !exists(pinned);\n }\n\n MoveColumnFeature.prototype.init = function () {\n var _this = this;\n\n this.ctrlsService.whenReady(function () {\n _this.gridBodyCon = _this.ctrlsService.getGridBodyCtrl();\n });\n };\n\n MoveColumnFeature.prototype.getIconName = function () {\n return this.pinned ? DragAndDropService.ICON_PINNED : DragAndDropService.ICON_MOVE;\n };\n\n MoveColumnFeature.prototype.onDragEnter = function (draggingEvent) {\n // we do dummy drag, so make sure column appears in the right location when first placed\n var columns = draggingEvent.dragItem.columns;\n var dragCameFromToolPanel = draggingEvent.dragSource.type === DragSourceType.ToolPanel;\n\n if (dragCameFromToolPanel) {\n // the if statement doesn't work if drag leaves grid, then enters again\n this.setColumnsVisible(columns, true, \"uiColumnDragged\");\n } else {\n // restore previous state of visible columns upon re-entering. this means if the user drags\n // a group out, and then drags the group back in, only columns that were originally visible\n // will be visible again. otherwise a group with three columns (but only two visible) could\n // be dragged out, then when it's dragged in again, all three are visible. this stops that.\n var visibleState_1 = draggingEvent.dragItem.visibleState;\n var visibleColumns = (columns || []).filter(function (column) {\n return visibleState_1[column.getId()];\n });\n this.setColumnsVisible(visibleColumns, true, \"uiColumnDragged\");\n }\n\n this.setColumnsPinned(columns, this.pinned, \"uiColumnDragged\");\n this.onDragging(draggingEvent, true, true);\n };\n\n MoveColumnFeature.prototype.onDragLeave = function (draggingEvent) {\n this.ensureIntervalCleared();\n };\n\n MoveColumnFeature.prototype.setColumnsVisible = function (columns, visible, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (columns) {\n var allowedCols = columns.filter(function (c) {\n return !c.getColDef().lockVisible;\n });\n this.columnModel.setColumnsVisible(allowedCols, visible, source);\n }\n };\n\n MoveColumnFeature.prototype.setColumnsPinned = function (columns, pinned, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (columns) {\n var allowedCols = columns.filter(function (c) {\n return !c.getColDef().lockPinned;\n });\n this.columnModel.setColumnsPinned(allowedCols, pinned, source);\n }\n };\n\n MoveColumnFeature.prototype.onDragStop = function () {\n this.ensureIntervalCleared();\n };\n\n MoveColumnFeature.prototype.normaliseX = function (x) {\n // flip the coordinate if doing RTL\n if (this.gridOptionsWrapper.isEnableRtl()) {\n var clientWidth = this.eContainer.clientWidth;\n x = clientWidth - x;\n } // adjust for scroll only if centre container (the pinned containers don't scroll)\n\n\n if (this.centerContainer) {\n x += this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft();\n }\n\n return x;\n };\n\n MoveColumnFeature.prototype.checkCenterForScrolling = function (xAdjustedForScroll) {\n if (this.centerContainer) {\n // scroll if the mouse has gone outside the grid (or just outside the scrollable part if pinning)\n // putting in 50 buffer, so even if user gets to edge of grid, a scroll will happen\n var firstVisiblePixel = this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft();\n var lastVisiblePixel = firstVisiblePixel + this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();\n\n if (this.gridOptionsWrapper.isEnableRtl()) {\n this.needToMoveRight = xAdjustedForScroll < firstVisiblePixel + 50;\n this.needToMoveLeft = xAdjustedForScroll > lastVisiblePixel - 50;\n } else {\n this.needToMoveLeft = xAdjustedForScroll < firstVisiblePixel + 50;\n this.needToMoveRight = xAdjustedForScroll > lastVisiblePixel - 50;\n }\n\n if (this.needToMoveLeft || this.needToMoveRight) {\n this.ensureIntervalStarted();\n } else {\n this.ensureIntervalCleared();\n }\n }\n };\n\n MoveColumnFeature.prototype.onDragging = function (draggingEvent, fromEnter, fakeEvent) {\n var _this = this;\n\n if (fromEnter === void 0) {\n fromEnter = false;\n }\n\n if (fakeEvent === void 0) {\n fakeEvent = false;\n }\n\n this.lastDraggingEvent = draggingEvent; // if moving up or down (ie not left or right) then do nothing\n\n if (missing(draggingEvent.hDirection)) {\n return;\n }\n\n var mouseXNormalised = this.normaliseX(draggingEvent.x); // if the user is dragging into the panel, ie coming from the side panel into the main grid,\n // we don't want to scroll the grid this time, it would appear like the table is jumping\n // each time a column is dragged in.\n\n if (!fromEnter) {\n this.checkCenterForScrolling(mouseXNormalised);\n }\n\n var hDirectionNormalised = this.normaliseDirection(draggingEvent.hDirection);\n var dragSourceType = draggingEvent.dragSource.type;\n var columnsToMove = draggingEvent.dragSource.getDragItem().columns;\n columnsToMove = columnsToMove.filter(function (col) {\n if (col.getColDef().lockPinned) {\n // if locked return true only if both col and container are same pin type.\n // double equals (==) here on purpose so that null==undefined is true (for not pinned options)\n return col.getPinned() == _this.pinned;\n } // if not pin locked, then always allowed to be in this container\n\n\n return true;\n });\n this.attemptMoveColumns(dragSourceType, columnsToMove, hDirectionNormalised, mouseXNormalised, fromEnter, fakeEvent);\n };\n\n MoveColumnFeature.prototype.normaliseDirection = function (hDirection) {\n if (this.gridOptionsWrapper.isEnableRtl()) {\n switch (hDirection) {\n case HorizontalDirection.Left:\n return HorizontalDirection.Right;\n\n case HorizontalDirection.Right:\n return HorizontalDirection.Left;\n\n default:\n console.error(\"AG Grid: Unknown direction \" + hDirection);\n }\n } else {\n return hDirection;\n }\n }; // returns the index of the first column in the list ONLY if the cols are all beside\n // each other. if the cols are not beside each other, then returns null\n\n\n MoveColumnFeature.prototype.calculateOldIndex = function (movingCols) {\n var gridCols = this.columnModel.getAllGridColumns();\n var indexes = sortNumerically(movingCols.map(function (col) {\n return gridCols.indexOf(col);\n }));\n var firstIndex = indexes[0];\n var lastIndex = last(indexes);\n var spread = lastIndex - firstIndex;\n var gapsExist = spread !== indexes.length - 1;\n return gapsExist ? null : firstIndex;\n };\n\n MoveColumnFeature.prototype.attemptMoveColumns = function (dragSourceType, allMovingColumns, hDirection, mouseX, fromEnter, fakeEvent) {\n var draggingLeft = hDirection === HorizontalDirection.Left;\n var draggingRight = hDirection === HorizontalDirection.Right;\n\n if (dragSourceType === DragSourceType.HeaderCell) {\n // If the columns we're dragging are the only visible columns of their group, move the hidden ones too\n var newCols_1 = [];\n allMovingColumns.forEach(function (col) {\n var movingGroup = null;\n var parent = col.getParent();\n\n while (parent != null && parent.getDisplayedLeafColumns().length === 1) {\n movingGroup = parent;\n parent = parent.getParent();\n }\n\n if (movingGroup != null) {\n movingGroup.getLeafColumns().forEach(function (newCol) {\n if (!newCols_1.includes(newCol)) {\n newCols_1.push(newCol);\n }\n });\n } else if (!newCols_1.includes(col)) {\n newCols_1.push(col);\n }\n });\n allMovingColumns = newCols_1;\n } // it is important to sort the moving columns as they are in grid columns, as the list of moving columns\n // could themselves be part of 'married children' groups, which means we need to maintain the order within\n // the moving list.\n\n\n var allMovingColumnsOrdered = allMovingColumns.slice();\n this.columnModel.sortColumnsLikeGridColumns(allMovingColumnsOrdered);\n var validMoves = this.calculateValidMoves(allMovingColumnsOrdered, draggingRight, mouseX); // if cols are not adjacent, then this returns null. when moving, we constrain the direction of the move\n // (ie left or right) to the mouse direction. however\n\n var oldIndex = this.calculateOldIndex(allMovingColumnsOrdered);\n\n if (validMoves.length === 0) {\n return;\n }\n\n var firstValidMove = validMoves[0]; // the two check below stop an error when the user grabs a group my a middle column, then\n // it is possible the mouse pointer is to the right of a column while been dragged left.\n // so we need to make sure that the mouse pointer is actually left of the left most column\n // if moving left, and right of the right most column if moving right\n // we check 'fromEnter' below so we move the column to the new spot if the mouse is coming from\n // outside the grid, eg if the column is moving from side panel, mouse is moving left, then we should\n // place the column to the RHS even if the mouse is moving left and the column is already on\n // the LHS. otherwise we stick to the rule described above.\n\n var constrainDirection = oldIndex !== null && !fromEnter; // don't consider 'fromEnter' when dragging header cells, otherwise group can jump to opposite direction of drag\n\n if (dragSourceType == DragSourceType.HeaderCell) {\n constrainDirection = oldIndex !== null;\n } // if the event was faked by a change in column pin state, then the original location of the column\n // is not reliable for dictating where the column may now be placed.\n\n\n if (constrainDirection && !fakeEvent) {\n // only allow left drag if this column is moving left\n if (draggingLeft && firstValidMove >= oldIndex) {\n return;\n } // only allow right drag if this column is moving right\n\n\n if (draggingRight && firstValidMove <= oldIndex) {\n return;\n }\n } // From when we find a move that passes all the rules\n // Remember what that move would look like in terms of displayed cols\n // keep going with further moves until we find a different result in displayed output\n // In this way potentialMoves contains all potential moves over 'hidden' columns\n\n\n var displayedCols = this.columnModel.getAllDisplayedColumns();\n var potentialMoves = [];\n var targetOrder = null;\n\n for (var i = 0; i < validMoves.length; i++) {\n var move = validMoves[i];\n var order = this.columnModel.getProposedColumnOrder(allMovingColumnsOrdered, move);\n\n if (!this.columnModel.doesOrderPassRules(order)) {\n continue;\n }\n\n var displayedOrder = order.filter(function (col) {\n return displayedCols.includes(col);\n });\n\n if (targetOrder === null) {\n targetOrder = displayedOrder;\n } else if (!_.areEqual(displayedOrder, targetOrder)) {\n break; // Stop looking for potential moves if the displayed result changes from the target\n }\n\n var fragCount = this.groupFragCount(order);\n potentialMoves.push({\n move: move,\n fragCount: fragCount\n });\n }\n\n if (potentialMoves.length === 0) {\n return;\n } // The best move is the move with least group fragmentation\n\n\n potentialMoves.sort(function (a, b) {\n return a.fragCount - b.fragCount;\n });\n var bestMove = potentialMoves[0].move;\n this.columnModel.moveColumns(allMovingColumnsOrdered, bestMove, \"uiColumnDragged\");\n }; // A measure of how fragmented in terms of groups an order of columns is\n\n\n MoveColumnFeature.prototype.groupFragCount = function (columns) {\n function parents(col) {\n var result = [];\n var parent = col.getOriginalParent();\n\n while (parent != null) {\n result.push(parent);\n parent = parent.getOriginalParent();\n }\n\n return result;\n }\n\n var count = 0;\n\n var _loop_1 = function _loop_1(i) {\n var _a;\n\n var a = parents(columns[i]);\n var b = parents(columns[i + 1]); // iterate over the longest one\n\n _a = __read$d(a.length > b.length ? [a, b] : [b, a], 2), a = _a[0], b = _a[1];\n a.forEach(function (parent) {\n if (b.indexOf(parent) === -1) {\n count++; // More fragmented if other column doesn't share the parent\n }\n });\n };\n\n for (var i = 0; i < columns.length - 1; i++) {\n _loop_1(i);\n }\n\n return count;\n };\n\n MoveColumnFeature.prototype.calculateValidMoves = function (movingCols, draggingRight, mouseX) {\n var isMoveBlocked = this.gridOptionsWrapper.isSuppressMovableColumns() || movingCols.some(function (col) {\n return col.getColDef().suppressMovable;\n });\n\n if (isMoveBlocked) {\n return [];\n } // this is the list of cols on the screen, so it's these we use when comparing the x mouse position\n\n\n var allDisplayedCols = this.columnModel.getDisplayedColumns(this.pinned); // but this list is the list of all cols, when we move a col it's the index within this list that gets used,\n // so the result we return has to be and index location for this list\n\n var allGridCols = this.columnModel.getAllGridColumns();\n var movingDisplayedCols = allDisplayedCols.filter(function (col) {\n return includes(movingCols, col);\n });\n var otherDisplayedCols = allDisplayedCols.filter(function (col) {\n return !includes(movingCols, col);\n });\n var otherGridCols = allGridCols.filter(function (col) {\n return !includes(movingCols, col);\n }); // work out how many DISPLAYED columns fit before the 'x' position. this gives us the displayIndex.\n // for example, if cols are a,b,c,d and we find a,b fit before 'x', then we want to place the moving\n // col between b and c (so that it is under the mouse position).\n\n var displayIndex = 0;\n var availableWidth = mouseX; // if we are dragging right, then the columns will be to the left of the mouse, so we also want to\n // include the width of the moving columns\n\n if (draggingRight) {\n var widthOfMovingDisplayedCols_1 = 0;\n movingDisplayedCols.forEach(function (col) {\n return widthOfMovingDisplayedCols_1 += col.getActualWidth();\n });\n availableWidth -= widthOfMovingDisplayedCols_1;\n }\n\n if (availableWidth > 0) {\n // now count how many of the displayed columns will fit to the left\n for (var i = 0; i < otherDisplayedCols.length; i++) {\n var col = otherDisplayedCols[i];\n availableWidth -= col.getActualWidth();\n\n if (availableWidth < 0) {\n break;\n }\n\n displayIndex++;\n } // trial and error, if going right, we adjust by one, i didn't manage to quantify why, but it works\n\n\n if (draggingRight) {\n displayIndex++;\n }\n } // the display index is with respect to all the showing columns, however when we move, it's with\n // respect to all grid columns, so we need to translate from display index to grid index\n\n\n var firstValidMove;\n\n if (displayIndex > 0) {\n var leftColumn = otherDisplayedCols[displayIndex - 1];\n firstValidMove = otherGridCols.indexOf(leftColumn) + 1;\n } else {\n firstValidMove = otherGridCols.indexOf(otherDisplayedCols[0]);\n\n if (firstValidMove === -1) {\n firstValidMove = 0;\n }\n }\n\n var validMoves = [firstValidMove];\n\n var numberComparator = function numberComparator(a, b) {\n return a - b;\n }; // add in other valid moves due to hidden columns and married children. for example, a particular\n // move might break a group that has married children (so move isn't valid), however there could\n // be hidden columns (not displayed) that we could jump over to make the move valid. because\n // they are hidden, user doesn't see any different, however it allows moves that would otherwise\n // not work. for example imagine a group with 9 columns and all columns are hidden except the\n // middle one (so 4 hidden to left, 4 hidden to right), then when moving 'firstValidMove' will\n // be relative to the not-shown column, however we need to consider the move jumping over all the\n // hidden children. if we didn't do this, then if the group just described was at the end (RHS) of the\n // grid, there would be no way to put a column after it (as the grid would only consider beside the\n // visible column, which would fail valid move rules).\n\n\n if (draggingRight) {\n // if dragging right, then we add all the additional moves to the right. so in other words\n // if the next move is not valid, find the next move to the right that is valid.\n var pointer = firstValidMove + 1;\n var lastIndex = allGridCols.length - 1;\n\n while (pointer <= lastIndex) {\n validMoves.push(pointer);\n pointer++;\n } // adding columns here means the order is now messed up\n\n\n validMoves.sort(numberComparator);\n } else {\n // if dragging left we do the reverse of dragging right, we add in all the valid moves to the\n // left. however we also have to consider moves to the right for all hidden columns first.\n // (this logic is hard to reason with, it was worked out with trial and error,\n // more observation rather than science).\n // add moves to the right\n var pointer = firstValidMove;\n var lastIndex = allGridCols.length - 1;\n var displacedCol = allGridCols[pointer];\n\n while (pointer <= lastIndex && this.isColumnHidden(allDisplayedCols, displacedCol)) {\n pointer++;\n validMoves.push(pointer);\n displacedCol = allGridCols[pointer];\n } // add moves to the left\n\n\n pointer = firstValidMove - 1;\n var firstDisplayIndex = 0;\n\n while (pointer >= firstDisplayIndex) {\n validMoves.push(pointer);\n pointer--;\n } // adding columns here means the order is now messed up\n\n\n validMoves.sort(numberComparator).reverse();\n }\n\n return validMoves;\n }; // isHidden takes into account visible=false and group=closed, ie it is not displayed\n\n\n MoveColumnFeature.prototype.isColumnHidden = function (displayedColumns, col) {\n return displayedColumns.indexOf(col) < 0;\n };\n\n MoveColumnFeature.prototype.ensureIntervalStarted = function () {\n if (!this.movingIntervalId) {\n this.intervalCount = 0;\n this.failedMoveAttempts = 0;\n this.movingIntervalId = window.setInterval(this.moveInterval.bind(this), 100);\n\n if (this.needToMoveLeft) {\n this.dragAndDropService.setGhostIcon(DragAndDropService.ICON_LEFT, true);\n } else {\n this.dragAndDropService.setGhostIcon(DragAndDropService.ICON_RIGHT, true);\n }\n }\n };\n\n MoveColumnFeature.prototype.ensureIntervalCleared = function () {\n if (this.movingIntervalId) {\n window.clearInterval(this.movingIntervalId);\n this.movingIntervalId = null;\n this.dragAndDropService.setGhostIcon(DragAndDropService.ICON_MOVE);\n }\n };\n\n MoveColumnFeature.prototype.moveInterval = function () {\n // the amounts we move get bigger at each interval, so the speed accelerates, starting a bit slow\n // and getting faster. this is to give smoother user experience. we max at 100px to limit the speed.\n var pixelsToMove;\n this.intervalCount++;\n pixelsToMove = 10 + this.intervalCount * 5;\n\n if (pixelsToMove > 100) {\n pixelsToMove = 100;\n }\n\n var pixelsMoved = null;\n var scrollFeature = this.gridBodyCon.getScrollFeature();\n\n if (this.needToMoveLeft) {\n pixelsMoved = scrollFeature.scrollHorizontally(-pixelsToMove);\n } else if (this.needToMoveRight) {\n pixelsMoved = scrollFeature.scrollHorizontally(pixelsToMove);\n }\n\n if (pixelsMoved !== 0) {\n this.onDragging(this.lastDraggingEvent);\n this.failedMoveAttempts = 0;\n } else {\n // we count the failed move attempts. if we fail to move 7 times, then we pin the column.\n // this is how we achieve pining by dragging the column to the edge of the grid.\n this.failedMoveAttempts++;\n var columns = this.lastDraggingEvent.dragItem.columns;\n var columnsThatCanPin = columns.filter(function (c) {\n return !c.getColDef().lockPinned;\n });\n\n if (columnsThatCanPin.length > 0) {\n this.dragAndDropService.setGhostIcon(DragAndDropService.ICON_PINNED);\n\n if (this.failedMoveAttempts > 7) {\n var pinType = this.needToMoveLeft ? Constants.PINNED_LEFT : Constants.PINNED_RIGHT;\n this.setColumnsPinned(columnsThatCanPin, pinType, \"uiColumnDragged\");\n this.dragAndDropService.nudge();\n }\n }\n }\n };\n\n __decorate$1x([Autowired('columnModel')], MoveColumnFeature.prototype, \"columnModel\", void 0);\n\n __decorate$1x([Autowired('dragAndDropService')], MoveColumnFeature.prototype, \"dragAndDropService\", void 0);\n\n __decorate$1x([Autowired('gridOptionsWrapper')], MoveColumnFeature.prototype, \"gridOptionsWrapper\", void 0);\n\n __decorate$1x([Autowired('ctrlsService')], MoveColumnFeature.prototype, \"ctrlsService\", void 0);\n\n __decorate$1x([PostConstruct], MoveColumnFeature.prototype, \"init\", null);\n\n return MoveColumnFeature;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1D = undefined && undefined.__extends || function () {\n var _extendStatics82 = function extendStatics(d, b) {\n _extendStatics82 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics82(d, b);\n };\n\n return function (d, b) {\n _extendStatics82(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar BodyDropTarget =\n/** @class */\nfunction (_super) {\n __extends$1D(BodyDropTarget, _super);\n\n function BodyDropTarget(pinned, eContainer) {\n var _this = _super.call(this) || this;\n\n _this.pinned = pinned;\n _this.eContainer = eContainer;\n return _this;\n }\n\n BodyDropTarget.prototype.postConstruct = function () {\n var _this = this;\n\n this.ctrlsService.whenReady(function (p) {\n switch (_this.pinned) {\n case Constants.PINNED_LEFT:\n _this.eSecondaryContainers = [[p.gridBodyCtrl.getBodyViewportElement(), p.leftRowContainerCtrl.getContainerElement()], [p.bottomLeftRowContainerCtrl.getContainerElement()], [p.topLeftRowContainerCtrl.getContainerElement()]];\n break;\n\n case Constants.PINNED_RIGHT:\n _this.eSecondaryContainers = [[p.gridBodyCtrl.getBodyViewportElement(), p.rightRowContainerCtrl.getContainerElement()], [p.bottomRightRowContainerCtrl.getContainerElement()], [p.topRightRowContainerCtrl.getContainerElement()]];\n break;\n\n default:\n _this.eSecondaryContainers = [[p.gridBodyCtrl.getBodyViewportElement(), p.centerRowContainerCtrl.getViewportElement()], [p.bottomCenterRowContainerCtrl.getViewportElement()], [p.topCenterRowContainerCtrl.getViewportElement()]];\n break;\n }\n });\n };\n\n BodyDropTarget.prototype.isInterestedIn = function (type) {\n return type === DragSourceType.HeaderCell || type === DragSourceType.ToolPanel && this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel();\n };\n\n BodyDropTarget.prototype.getSecondaryContainers = function () {\n return this.eSecondaryContainers;\n };\n\n BodyDropTarget.prototype.getContainer = function () {\n return this.eContainer;\n };\n\n BodyDropTarget.prototype.init = function () {\n this.moveColumnFeature = this.createManagedBean(new MoveColumnFeature(this.pinned, this.eContainer));\n this.bodyDropPivotTarget = this.createManagedBean(new BodyDropPivotTarget(this.pinned));\n this.dragAndDropService.addDropTarget(this);\n };\n\n BodyDropTarget.prototype.getIconName = function () {\n return this.currentDropListener.getIconName();\n }; // we want to use the bodyPivotTarget if the user is dragging columns in from the toolPanel\n // and we are in pivot mode, as it has to logic to set pivot/value/group on the columns when\n // dropped into the grid's body.\n\n\n BodyDropTarget.prototype.isDropColumnInPivotMode = function (draggingEvent) {\n // in pivot mode, then if moving a column (ie didn't come from toolpanel) then it's\n // a standard column move, however if it came from the toolpanel, then we are introducing\n // dimensions or values to the grid\n return this.columnModel.isPivotMode() && draggingEvent.dragSource.type === DragSourceType.ToolPanel;\n };\n\n BodyDropTarget.prototype.onDragEnter = function (draggingEvent) {\n // we pick the drop listener depending on whether we are in pivot mode are not. if we are\n // in pivot mode, then dropping cols changes the row group, pivot, value stats. otherwise\n // we change visibility state and position.\n this.currentDropListener = this.isDropColumnInPivotMode(draggingEvent) ? this.bodyDropPivotTarget : this.moveColumnFeature;\n this.currentDropListener.onDragEnter(draggingEvent);\n };\n\n BodyDropTarget.prototype.onDragLeave = function (params) {\n this.currentDropListener.onDragLeave(params);\n };\n\n BodyDropTarget.prototype.onDragging = function (params) {\n this.currentDropListener.onDragging(params);\n };\n\n BodyDropTarget.prototype.onDragStop = function (params) {\n this.currentDropListener.onDragStop(params);\n };\n\n __decorate$1w([Autowired('dragAndDropService')], BodyDropTarget.prototype, \"dragAndDropService\", void 0);\n\n __decorate$1w([Autowired('columnModel')], BodyDropTarget.prototype, \"columnModel\", void 0);\n\n __decorate$1w([Autowired('ctrlsService')], BodyDropTarget.prototype, \"ctrlsService\", void 0);\n\n __decorate$1w([PostConstruct], BodyDropTarget.prototype, \"postConstruct\", null);\n\n __decorate$1w([PostConstruct], BodyDropTarget.prototype, \"init\", null);\n\n return BodyDropTarget;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __read$c = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$a = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$c(arguments[i]));\n }\n\n return ar;\n};\n\nvar CssClassApplier =\n/** @class */\nfunction () {\n function CssClassApplier() {}\n\n CssClassApplier.getHeaderClassesFromColDef = function (abstractColDef, gridOptionsWrapper, column, columnGroup) {\n if (missing(abstractColDef)) {\n return [];\n }\n\n return this.getColumnClassesFromCollDef(abstractColDef.headerClass, abstractColDef, gridOptionsWrapper, column, columnGroup);\n };\n\n CssClassApplier.getToolPanelClassesFromColDef = function (abstractColDef, gridOptionsWrapper, column, columnGroup) {\n if (missing(abstractColDef)) {\n return [];\n }\n\n return this.getColumnClassesFromCollDef(abstractColDef.toolPanelClass, abstractColDef, gridOptionsWrapper, column, columnGroup);\n };\n\n CssClassApplier.getClassParams = function (abstractColDef, gridOptionsWrapper, column, columnGroup) {\n return {\n // bad naming, as colDef here can be a group or a column,\n // however most people won't appreciate the difference,\n // so keeping it as colDef to avoid confusion.\n colDef: abstractColDef,\n column: column,\n columnGroup: columnGroup,\n api: gridOptionsWrapper.getApi(),\n columnApi: gridOptionsWrapper.getColumnApi(),\n context: gridOptionsWrapper.getContext()\n };\n };\n\n CssClassApplier.getColumnClassesFromCollDef = function (classesOrFunc, abstractColDef, gridOptionsWrapper, column, columnGroup) {\n if (missing(classesOrFunc)) {\n return [];\n }\n\n var classToUse;\n\n if (typeof classesOrFunc === 'function') {\n var params = this.getClassParams(abstractColDef, gridOptionsWrapper, column, columnGroup);\n classToUse = classesOrFunc(params);\n } else {\n classToUse = classesOrFunc;\n }\n\n if (typeof classToUse === 'string') {\n return [classToUse];\n }\n\n if (Array.isArray(classToUse)) {\n return __spread$a(classToUse);\n }\n\n return [];\n };\n\n return CssClassApplier;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1C = undefined && undefined.__extends || function () {\n var _extendStatics83 = function extendStatics(d, b) {\n _extendStatics83 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics83(d, b);\n };\n\n return function (d, b) {\n _extendStatics83(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar HeaderCellComp =\n/** @class */\nfunction (_super) {\n __extends$1C(HeaderCellComp, _super);\n\n function HeaderCellComp(ctrl) {\n var _this = _super.call(this, HeaderCellComp.TEMPLATE, ctrl) || this;\n\n _this.headerCompVersion = 0;\n _this.column = ctrl.getColumnGroupChild();\n _this.pinned = ctrl.getPinned();\n return _this;\n }\n\n HeaderCellComp.prototype.postConstruct = function () {\n var _this = this;\n\n var eGui = this.getGui();\n\n var setAttribute = function setAttribute(name, value, element) {\n var actualElement = element ? element : eGui;\n\n if (value != null && value != '') {\n actualElement.setAttribute(name, value);\n } else {\n actualElement.removeAttribute(name);\n }\n };\n\n var compProxy = {\n setWidth: function setWidth(width) {\n return eGui.style.width = width;\n },\n addOrRemoveCssClass: function addOrRemoveCssClass(cssClassName, on) {\n return _this.addOrRemoveCssClass(cssClassName, on);\n },\n setColId: function setColId(id) {\n return setAttribute('col-id', id);\n },\n setTitle: function setTitle(title) {\n return setAttribute('title', title);\n },\n setAriaDescription: function setAriaDescription(label) {\n return _setAriaDescription(eGui, label);\n },\n setAriaSort: function setAriaSort(sort) {\n return sort ? _setAriaSort(eGui, sort) : removeAriaSort(eGui);\n },\n setUserCompDetails: function setUserCompDetails(compDetails) {\n return _this.setUserCompDetails(compDetails);\n },\n getUserCompInstance: function getUserCompInstance() {\n return _this.headerComp;\n }\n };\n this.ctrl.setComp(compProxy, this.getGui(), this.eResize, this.eHeaderCompWrapper);\n var selectAllGui = this.ctrl.getSelectAllGui();\n this.eResize.insertAdjacentElement('afterend', selectAllGui);\n };\n\n HeaderCellComp.prototype.destroyHeaderComp = function () {\n if (this.headerComp) {\n this.eHeaderCompWrapper.removeChild(this.headerCompGui);\n this.headerComp = this.destroyBean(this.headerComp);\n this.headerCompGui = undefined;\n }\n };\n\n HeaderCellComp.prototype.setUserCompDetails = function (compDetails) {\n var _this = this;\n\n this.headerCompVersion++;\n var versionCopy = this.headerCompVersion;\n compDetails.newAgStackInstance().then(function (comp) {\n return _this.afterCompCreated(versionCopy, comp);\n });\n };\n\n HeaderCellComp.prototype.afterCompCreated = function (version, headerComp) {\n if (version != this.headerCompVersion || !this.isAlive()) {\n this.destroyBean(headerComp);\n return;\n }\n\n this.destroyHeaderComp();\n this.headerComp = headerComp;\n this.headerCompGui = headerComp.getGui();\n this.eHeaderCompWrapper.appendChild(this.headerCompGui);\n this.ctrl.setDragSource(this.getGui());\n };\n\n HeaderCellComp.TEMPLATE = \"
\\n
\\n
\\n
\";\n\n __decorate$1v([RefSelector('eResize')], HeaderCellComp.prototype, \"eResize\", void 0);\n\n __decorate$1v([RefSelector('eHeaderCompWrapper')], HeaderCellComp.prototype, \"eHeaderCompWrapper\", void 0);\n\n __decorate$1v([PostConstruct], HeaderCellComp.prototype, \"postConstruct\", null);\n\n __decorate$1v([PreDestroy], HeaderCellComp.prototype, \"destroyHeaderComp\", null);\n\n return HeaderCellComp;\n}(AbstractHeaderCellComp);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1B = undefined && undefined.__extends || function () {\n var _extendStatics84 = function extendStatics(d, b) {\n _extendStatics84 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics84(d, b);\n };\n\n return function (d, b) {\n _extendStatics84(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar HeaderGroupCellComp =\n/** @class */\nfunction (_super) {\n __extends$1B(HeaderGroupCellComp, _super);\n\n function HeaderGroupCellComp(ctrl) {\n return _super.call(this, HeaderGroupCellComp.TEMPLATE, ctrl) || this;\n }\n\n HeaderGroupCellComp.prototype.postConstruct = function () {\n var _this = this;\n\n var eGui = this.getGui();\n\n var setAttribute = function setAttribute(key, value) {\n return value != undefined ? eGui.setAttribute(key, value) : eGui.removeAttribute(key);\n };\n\n var compProxy = {\n addOrRemoveCssClass: function addOrRemoveCssClass(cssClassName, on) {\n return _this.addOrRemoveCssClass(cssClassName, on);\n },\n addOrRemoveResizableCssClass: function addOrRemoveResizableCssClass(cssClassName, on) {\n return _this.eResize.classList.toggle(cssClassName, on);\n },\n setWidth: function setWidth(width) {\n return eGui.style.width = width;\n },\n setColId: function setColId(id) {\n return eGui.setAttribute(\"col-id\", id);\n },\n setAriaExpanded: function setAriaExpanded(expanded) {\n return setAttribute('aria-expanded', expanded);\n },\n setTitle: function setTitle(title) {\n return setAttribute(\"title\", title);\n },\n setUserCompDetails: function setUserCompDetails(details) {\n return _this.setUserCompDetails(details);\n }\n };\n this.ctrl.setComp(compProxy, eGui, this.eResize);\n };\n\n HeaderGroupCellComp.prototype.setUserCompDetails = function (details) {\n var _this = this;\n\n details.newAgStackInstance().then(function (comp) {\n return _this.afterHeaderCompCreated(comp);\n });\n };\n\n HeaderGroupCellComp.prototype.afterHeaderCompCreated = function (headerGroupComp) {\n var _this = this;\n\n var destroyFunc = function destroyFunc() {\n return _this.destroyBean(headerGroupComp);\n };\n\n if (!this.isAlive()) {\n destroyFunc();\n return;\n }\n\n this.getGui().appendChild(headerGroupComp.getGui());\n this.addDestroyFunc(destroyFunc);\n this.ctrl.setDragSource(headerGroupComp.getGui());\n };\n\n HeaderGroupCellComp.TEMPLATE = \"
\\n
\\n
\";\n\n __decorate$1u([Autowired('userComponentFactory')], HeaderGroupCellComp.prototype, \"userComponentFactory\", void 0);\n\n __decorate$1u([RefSelector('eResize')], HeaderGroupCellComp.prototype, \"eResize\", void 0);\n\n __decorate$1u([PostConstruct], HeaderGroupCellComp.prototype, \"postConstruct\", null);\n\n return HeaderGroupCellComp;\n}(AbstractHeaderCellComp);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1A = undefined && undefined.__extends || function () {\n var _extendStatics85 = function extendStatics(d, b) {\n _extendStatics85 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics85(d, b);\n };\n\n return function (d, b) {\n _extendStatics85(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar HeaderRowType;\n\n(function (HeaderRowType) {\n HeaderRowType[\"COLUMN_GROUP\"] = \"group\";\n HeaderRowType[\"COLUMN\"] = \"column\";\n HeaderRowType[\"FLOATING_FILTER\"] = \"filter\";\n})(HeaderRowType || (HeaderRowType = {}));\n\nvar HeaderRowComp =\n/** @class */\nfunction (_super) {\n __extends$1A(HeaderRowComp, _super);\n\n function HeaderRowComp(ctrl) {\n var _this = _super.call(this) || this;\n\n _this.headerComps = {};\n var extraClass = ctrl.getType() == HeaderRowType.COLUMN_GROUP ? \"ag-header-row-column-group\" : ctrl.getType() == HeaderRowType.FLOATING_FILTER ? \"ag-header-row-column-filter\" : \"ag-header-row-column\";\n\n _this.setTemplate(\n /* html */\n \"
\");\n\n _this.ctrl = ctrl;\n return _this;\n } //noinspection JSUnusedLocalSymbols\n\n\n HeaderRowComp.prototype.init = function () {\n var _this = this;\n\n var compProxy = {\n setTransform: function setTransform(transform) {\n return _this.getGui().style.transform = transform;\n },\n setHeight: function setHeight(height) {\n return _this.getGui().style.height = height;\n },\n setTop: function setTop(top) {\n return _this.getGui().style.top = top;\n },\n setHeaderCtrls: function setHeaderCtrls(ctrls) {\n return _this.setHeaderCtrls(ctrls);\n },\n setWidth: function setWidth(width) {\n return _this.getGui().style.width = width;\n },\n setAriaRowIndex: function setAriaRowIndex(rowIndex) {\n return _setAriaRowIndex(_this.getGui(), rowIndex);\n }\n };\n this.ctrl.setComp(compProxy);\n };\n\n HeaderRowComp.prototype.destroyHeaderCtrls = function () {\n this.setHeaderCtrls([]);\n };\n\n HeaderRowComp.prototype.setHeaderCtrls = function (ctrls) {\n var _this = this;\n\n if (!this.isAlive()) {\n return;\n }\n\n var oldComps = this.headerComps;\n this.headerComps = {};\n ctrls.forEach(function (ctrl) {\n var id = ctrl.getInstanceId();\n var comp = oldComps[id];\n delete oldComps[id];\n\n if (comp == null) {\n comp = _this.createHeaderComp(ctrl);\n\n _this.getGui().appendChild(comp.getGui());\n }\n\n _this.headerComps[id] = comp;\n });\n iterateObject(oldComps, function (id, comp) {\n _this.getGui().removeChild(comp.getGui());\n\n _this.destroyBean(comp);\n });\n var ensureDomOrder = this.gridOptionsWrapper.isEnsureDomOrder();\n\n if (ensureDomOrder) {\n var comps = getAllValuesInObject(this.headerComps); // ordering the columns by left position orders them in the order they appear on the screen\n\n comps.sort(function (a, b) {\n var leftA = a.getCtrl().getColumnGroupChild().getLeft();\n var leftB = b.getCtrl().getColumnGroupChild().getLeft();\n return leftA - leftB;\n });\n var elementsInOrder = comps.map(function (c) {\n return c.getGui();\n });\n setDomChildOrder(this.getGui(), elementsInOrder);\n }\n };\n\n HeaderRowComp.prototype.createHeaderComp = function (headerCtrl) {\n var result;\n\n switch (this.ctrl.getType()) {\n case HeaderRowType.COLUMN_GROUP:\n result = new HeaderGroupCellComp(headerCtrl);\n break;\n\n case HeaderRowType.FLOATING_FILTER:\n result = new HeaderFilterCellComp(headerCtrl);\n break;\n\n default:\n result = new HeaderCellComp(headerCtrl);\n break;\n }\n\n this.createBean(result);\n result.setParentComponent(this);\n return result;\n };\n\n __decorate$1t([PostConstruct], HeaderRowComp.prototype, \"init\", null);\n\n __decorate$1t([PreDestroy], HeaderRowComp.prototype, \"destroyHeaderCtrls\", null);\n\n return HeaderRowComp;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1z = undefined && undefined.__extends || function () {\n var _extendStatics86 = function extendStatics(d, b) {\n _extendStatics86 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics86(d, b);\n };\n\n return function (d, b) {\n _extendStatics86(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar instanceIdSequence$1 = 0;\n\nvar AbstractHeaderCellCtrl =\n/** @class */\nfunction (_super) {\n __extends$1z(AbstractHeaderCellCtrl, _super);\n\n function AbstractHeaderCellCtrl(columnGroupChild, parentRowCtrl) {\n var _this = _super.call(this) || this;\n\n _this.lastFocusEvent = null;\n _this.columnGroupChild = columnGroupChild;\n _this.parentRowCtrl = parentRowCtrl; // unique id to this instance, including the column ID to help with debugging in React as it's used in 'key'\n\n _this.instanceId = columnGroupChild.getUniqueId() + '-' + instanceIdSequence$1++;\n return _this;\n }\n\n AbstractHeaderCellCtrl.prototype.shouldStopEventPropagation = function (e) {\n var _a = this.focusService.getFocusedHeader(),\n headerRowIndex = _a.headerRowIndex,\n column = _a.column;\n\n return isUserSuppressingHeaderKeyboardEvent(this.gridOptionsWrapper, e, headerRowIndex, column);\n };\n\n AbstractHeaderCellCtrl.prototype.getWrapperHasFocus = function () {\n var eDocument = this.gridOptionsWrapper.getDocument();\n var activeEl = eDocument.activeElement;\n return activeEl === this.eGui;\n };\n\n AbstractHeaderCellCtrl.prototype.setGui = function (eGui) {\n this.eGui = eGui;\n this.addDomData();\n };\n\n AbstractHeaderCellCtrl.prototype.handleKeyDown = function (e) {\n var wrapperHasFocus = this.getWrapperHasFocus();\n\n switch (e.key) {\n case KeyCode.PAGE_DOWN:\n case KeyCode.PAGE_UP:\n case KeyCode.PAGE_HOME:\n case KeyCode.PAGE_END:\n if (wrapperHasFocus) {\n e.preventDefault();\n }\n\n }\n };\n\n AbstractHeaderCellCtrl.prototype.addDomData = function () {\n var _this = this;\n\n var key = AbstractHeaderCellCtrl.DOM_DATA_KEY_HEADER_CTRL;\n this.gridOptionsWrapper.setDomData(this.eGui, key, this);\n this.addDestroyFunc(function () {\n return _this.gridOptionsWrapper.setDomData(_this.eGui, key, null);\n });\n };\n\n AbstractHeaderCellCtrl.prototype.getGui = function () {\n return this.eGui;\n };\n\n AbstractHeaderCellCtrl.prototype.focus = function (event) {\n if (!this.eGui) {\n return false;\n }\n\n this.lastFocusEvent = event || null;\n this.eGui.focus();\n return true;\n };\n\n AbstractHeaderCellCtrl.prototype.getRowIndex = function () {\n return this.parentRowCtrl.getRowIndex();\n };\n\n AbstractHeaderCellCtrl.prototype.getParentRowCtrl = function () {\n return this.parentRowCtrl;\n };\n\n AbstractHeaderCellCtrl.prototype.getPinned = function () {\n return this.parentRowCtrl.getPinned();\n };\n\n AbstractHeaderCellCtrl.prototype.getInstanceId = function () {\n return this.instanceId;\n };\n\n AbstractHeaderCellCtrl.prototype.getColumnGroupChild = function () {\n return this.columnGroupChild;\n };\n\n AbstractHeaderCellCtrl.DOM_DATA_KEY_HEADER_CTRL = 'headerCtrl';\n\n __decorate$1s([Autowired('focusService')], AbstractHeaderCellCtrl.prototype, \"focusService\", void 0);\n\n __decorate$1s([Autowired('beans')], AbstractHeaderCellCtrl.prototype, \"beans\", void 0);\n\n __decorate$1s([Autowired('userComponentFactory')], AbstractHeaderCellCtrl.prototype, \"userComponentFactory\", void 0);\n\n return AbstractHeaderCellCtrl;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar ClientSideRowModelSteps;\n\n(function (ClientSideRowModelSteps) {\n ClientSideRowModelSteps[\"EVERYTHING\"] = \"group\";\n ClientSideRowModelSteps[\"FILTER\"] = \"filter\";\n ClientSideRowModelSteps[\"SORT\"] = \"sort\";\n ClientSideRowModelSteps[\"MAP\"] = \"map\";\n ClientSideRowModelSteps[\"AGGREGATE\"] = \"aggregate\";\n ClientSideRowModelSteps[\"FILTER_AGGREGATES\"] = \"filter_aggregates\";\n ClientSideRowModelSteps[\"PIVOT\"] = \"pivot\";\n ClientSideRowModelSteps[\"NOTHING\"] = \"nothing\";\n})(ClientSideRowModelSteps || (ClientSideRowModelSteps = {}));\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nfunction unwrapUserComp(comp) {\n var compAsAny = comp;\n var isProxy = compAsAny != null && compAsAny.getFrameworkComponentInstance != null;\n return isProxy ? compAsAny.getFrameworkComponentInstance() : comp;\n}\n\nvar GridApi =\n/** @class */\nfunction () {\n function GridApi() {\n this.detailGridInfoMap = {};\n this.destroyCalled = false;\n }\n\n GridApi.prototype.registerOverlayWrapperComp = function (overlayWrapperComp) {\n this.overlayWrapperComp = overlayWrapperComp;\n };\n\n GridApi.prototype.registerSideBarComp = function (sideBarComp) {\n this.sideBarComp = sideBarComp;\n };\n\n GridApi.prototype.init = function () {\n var _this = this;\n\n switch (this.rowModel.getType()) {\n case Constants.ROW_MODEL_TYPE_CLIENT_SIDE:\n this.clientSideRowModel = this.rowModel;\n break;\n\n case Constants.ROW_MODEL_TYPE_INFINITE:\n this.infiniteRowModel = this.rowModel;\n break;\n\n case Constants.ROW_MODEL_TYPE_SERVER_SIDE:\n this.serverSideRowModel = this.rowModel;\n break;\n }\n\n this.ctrlsService.whenReady(function () {\n _this.gridBodyCtrl = _this.ctrlsService.getGridBodyCtrl();\n });\n };\n /** Used internally by grid. Not intended to be used by the client. Interface may change between releases. */\n\n\n GridApi.prototype.__getAlignedGridService = function () {\n return this.alignedGridsService;\n };\n /** Used internally by grid. Not intended to be used by the client. Interface may change between releases. */\n\n\n GridApi.prototype.__getContext = function () {\n return this.context;\n };\n /** Register a detail grid with the master grid when it is created. */\n\n\n GridApi.prototype.addDetailGridInfo = function (id, gridInfo) {\n this.detailGridInfoMap[id] = gridInfo;\n };\n /** Unregister a detail grid from the master grid when it is destroyed. */\n\n\n GridApi.prototype.removeDetailGridInfo = function (id) {\n this.detailGridInfoMap[id] = undefined;\n };\n /** Returns the `DetailGridInfo` corresponding to the supplied `detailGridId`. */\n\n\n GridApi.prototype.getDetailGridInfo = function (id) {\n return this.detailGridInfoMap[id];\n };\n /** Iterates through each `DetailGridInfo` in the grid and calls the supplied callback on each. */\n\n\n GridApi.prototype.forEachDetailGridInfo = function (callback) {\n var index = 0;\n iterateObject(this.detailGridInfoMap, function (id, gridInfo) {\n // check for undefined, as old references will still be lying around\n if (exists(gridInfo)) {\n callback(gridInfo, index);\n index++;\n }\n });\n };\n /** Similar to `exportDataAsCsv`, except returns the result as a string rather than download it. */\n\n\n GridApi.prototype.getDataAsCsv = function (params) {\n if (ModuleRegistry.assertRegistered(ModuleNames.CsvExportModule, 'api.getDataAsCsv')) {\n return this.csvCreator.getDataAsCsv(params);\n }\n };\n /** Downloads a CSV export of the grid's data. */\n\n\n GridApi.prototype.exportDataAsCsv = function (params) {\n if (ModuleRegistry.assertRegistered(ModuleNames.CsvExportModule, 'api.exportDataAsCSv')) {\n this.csvCreator.exportDataAsCsv(params);\n }\n };\n\n GridApi.prototype.getExcelExportMode = function (params) {\n var baseParams = this.gridOptionsWrapper.getDefaultExportParams('excel');\n var mergedParams = Object.assign({\n exportMode: 'xlsx'\n }, baseParams, params);\n return mergedParams.exportMode;\n };\n /** Similar to `exportDataAsExcel`, except instead of downloading a file, it will return a [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) to be processed by the user. */\n\n\n GridApi.prototype.getDataAsExcel = function (params) {\n if (!ModuleRegistry.assertRegistered(ModuleNames.ExcelExportModule, 'api.getDataAsExcel')) {\n return;\n }\n\n var exportMode = this.getExcelExportMode(params);\n\n if (this.excelCreator.getFactoryMode(exportMode) === ExcelFactoryMode.MULTI_SHEET) {\n console.warn('AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`');\n return;\n }\n\n return this.excelCreator.getDataAsExcel(params);\n };\n /** Downloads an Excel export of the grid's data. */\n\n\n GridApi.prototype.exportDataAsExcel = function (params) {\n if (!ModuleRegistry.assertRegistered(ModuleNames.ExcelExportModule, 'api.exportDataAsExcel')) {\n return;\n }\n\n var exportMode = this.getExcelExportMode(params);\n\n if (this.excelCreator.getFactoryMode(exportMode) === ExcelFactoryMode.MULTI_SHEET) {\n console.warn('AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`');\n return;\n }\n\n this.excelCreator.exportDataAsExcel(params);\n };\n /** This is method to be used to get the grid's data as a sheet, that will later be exported either by `getMultipleSheetsAsExcel()` or `exportMultipleSheetsAsExcel()`. */\n\n\n GridApi.prototype.getSheetDataForExcel = function (params) {\n if (!ModuleRegistry.assertRegistered(ModuleNames.ExcelExportModule, 'api.getSheetDataForExcel')) {\n return;\n }\n\n var exportMode = this.getExcelExportMode(params);\n this.excelCreator.setFactoryMode(ExcelFactoryMode.MULTI_SHEET, exportMode);\n return this.excelCreator.getSheetDataForExcel(params);\n };\n /** Similar to `exportMultipleSheetsAsExcel`, except instead of downloading a file, it will return a [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) to be processed by the user. */\n\n\n GridApi.prototype.getMultipleSheetsAsExcel = function (params) {\n if (ModuleRegistry.assertRegistered(ModuleNames.ExcelExportModule, 'api.getMultipleSheetsAsExcel')) {\n return this.excelCreator.getMultipleSheetsAsExcel(params);\n }\n };\n /** Downloads an Excel export of multiple sheets in one file. */\n\n\n GridApi.prototype.exportMultipleSheetsAsExcel = function (params) {\n if (ModuleRegistry.assertRegistered(ModuleNames.ExcelExportModule, 'api.exportMultipleSheetsAsExcel')) {\n return this.excelCreator.exportMultipleSheetsAsExcel(params);\n }\n };\n /** @deprecated */\n\n\n GridApi.prototype.setEnterpriseDatasource = function (datasource) {\n console.warn(\"AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()\");\n this.setServerSideDatasource(datasource);\n };\n /**\n * Sets an ARIA property in the grid panel (element with `role=\\\"grid\\\"`), and removes an ARIA property when the value is null.\n *\n * Example: `api.setGridAriaProperty('label', 'my grid')` will set `aria-label=\\\"my grid\\\"`.\n *\n * `api.setGridAriaProperty('label', null)` will remove the `aria-label` attribute from the grid element.\n */\n\n\n GridApi.prototype.setGridAriaProperty = function (property, value) {\n if (!property) {\n return;\n }\n\n var eGrid = this.ctrlsService.getGridBodyCtrl().getGui();\n var ariaProperty = \"aria-\" + property;\n\n if (value === null) {\n eGrid.removeAttribute(ariaProperty);\n } else {\n eGrid.setAttribute(ariaProperty, value);\n }\n };\n /** Set new datasource for Server-Side Row Model. */\n\n\n GridApi.prototype.setServerSideDatasource = function (datasource) {\n if (this.serverSideRowModel) {\n // should really have an IEnterpriseRowModel interface, so we are not casting to any\n this.serverSideRowModel.setDatasource(datasource);\n } else {\n console.warn(\"AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '\" + Constants.ROW_MODEL_TYPE_SERVER_SIDE + \"'\");\n }\n };\n /**\n * Updates the `cacheBlockSize` used by `serverSideInfiniteScroll` when requesting data from the server.\n *\n * Note this purges all the cached data and reloads all the rows of the grid.\n * */\n\n\n GridApi.prototype.setCacheBlockSize = function (blockSize) {\n if (!this.serverSideRowModel) {\n console.warn(\"AG Grid: you can only set cacheBlockSize with gridOptions.rowModelType '\" + Constants.ROW_MODEL_TYPE_SERVER_SIDE + \"'\");\n return;\n }\n\n this.gridOptionsWrapper.setProperty('cacheBlockSize', blockSize);\n this.serverSideRowModel.resetRootStore();\n };\n /** Set new datasource for Infinite Row Model. */\n\n\n GridApi.prototype.setDatasource = function (datasource) {\n if (this.gridOptionsWrapper.isRowModelInfinite()) {\n this.rowModel.setDatasource(datasource);\n } else {\n console.warn(\"AG Grid: you can only use a datasource when gridOptions.rowModelType is '\" + Constants.ROW_MODEL_TYPE_INFINITE + \"'\");\n }\n };\n /** Set new datasource for Viewport Row Model. */\n\n\n GridApi.prototype.setViewportDatasource = function (viewportDatasource) {\n if (this.gridOptionsWrapper.isRowModelViewport()) {\n // this is bad coding, because it's using an interface that's exposed in the enterprise.\n // really we should create an interface in the core for viewportDatasource and let\n // the enterprise implement it, rather than casting to 'any' here\n this.rowModel.setViewportDatasource(viewportDatasource);\n } else {\n console.warn(\"AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '\" + Constants.ROW_MODEL_TYPE_VIEWPORT + \"'\");\n }\n };\n /** Set the row data. */\n\n\n GridApi.prototype.setRowData = function (rowData) {\n // immutable service is part of the CSRM module, if missing, no CSRM\n var missingImmutableService = this.immutableService == null;\n\n if (missingImmutableService) {\n console.warn('AG Grid: you can only set rowData when using the Client Side Row Model');\n return;\n } // if no keys provided provided for rows, then we can tread the operation as Immutable\n\n\n if (this.immutableService.isActive()) {\n this.immutableService.setRowData(rowData);\n } else {\n this.selectionService.reset();\n this.clientSideRowModel.setRowData(rowData);\n }\n };\n /** @deprecated */\n\n\n GridApi.prototype.setFloatingTopRowData = function (rows) {\n console.warn('AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()');\n this.setPinnedTopRowData(rows);\n };\n /** @deprecated */\n\n\n GridApi.prototype.setFloatingBottomRowData = function (rows) {\n console.warn('AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()');\n this.setPinnedBottomRowData(rows);\n };\n /** @deprecated */\n\n\n GridApi.prototype.getFloatingTopRowCount = function () {\n console.warn('AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()');\n return this.getPinnedTopRowCount();\n };\n /** @deprecated */\n\n\n GridApi.prototype.getFloatingBottomRowCount = function () {\n console.warn('AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()');\n return this.getPinnedBottomRowCount();\n };\n /** @deprecated */\n\n\n GridApi.prototype.getFloatingTopRow = function (index) {\n console.warn('AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()');\n return this.getPinnedTopRow(index);\n };\n /** @deprecated */\n\n\n GridApi.prototype.getFloatingBottomRow = function (index) {\n console.warn('AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()');\n return this.getPinnedBottomRow(index);\n };\n /** Set the top pinned rows. Call with no rows / undefined to clear top pinned rows. */\n\n\n GridApi.prototype.setPinnedTopRowData = function (rows) {\n this.pinnedRowModel.setPinnedTopRowData(rows);\n };\n /** Set the bottom pinned rows. Call with no rows / undefined to clear bottom pinned rows. */\n\n\n GridApi.prototype.setPinnedBottomRowData = function (rows) {\n this.pinnedRowModel.setPinnedBottomRowData(rows);\n };\n /** Gets the number of top pinned rows. */\n\n\n GridApi.prototype.getPinnedTopRowCount = function () {\n return this.pinnedRowModel.getPinnedTopRowCount();\n };\n /** Gets the number of bottom pinned rows. */\n\n\n GridApi.prototype.getPinnedBottomRowCount = function () {\n return this.pinnedRowModel.getPinnedBottomRowCount();\n };\n /** Gets the top pinned row with the specified index. */\n\n\n GridApi.prototype.getPinnedTopRow = function (index) {\n return this.pinnedRowModel.getPinnedTopRow(index);\n };\n /** Gets the top pinned row with the specified index. */\n\n\n GridApi.prototype.getPinnedBottomRow = function (index) {\n return this.pinnedRowModel.getPinnedBottomRow(index);\n };\n /**\n * Call to set new column definitions. The grid will redraw all the column headers, and then redraw all of the rows.\n */\n\n\n GridApi.prototype.setColumnDefs = function (colDefs, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n this.columnModel.setColumnDefs(colDefs, source);\n };\n /** Call to set new auto group column definition. The grid will recreate any auto-group columns if present. */\n\n\n GridApi.prototype.setAutoGroupColumnDef = function (colDef, source) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_AUTO_GROUP_COLUMN_DEF, colDef, true);\n };\n /** Call to set new Default Column Definition. */\n\n\n GridApi.prototype.setDefaultColDef = function (colDef, source) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_DEFAULT_COL_DEF, colDef, true);\n };\n\n GridApi.prototype.expireValueCache = function () {\n this.valueCache.expire();\n };\n /**\n * Returns an object with two properties:\n * - `top`: The top pixel position of the current scroll in the grid\n * - `bottom`: The bottom pixel position of the current scroll in the grid\n */\n\n\n GridApi.prototype.getVerticalPixelRange = function () {\n return this.gridBodyCtrl.getScrollFeature().getVScrollPosition();\n };\n /**\n * Returns an object with two properties:\n * - `left`: The left pixel position of the current scroll in the grid\n * - `right`: The right pixel position of the current scroll in the grid\n */\n\n\n GridApi.prototype.getHorizontalPixelRange = function () {\n return this.gridBodyCtrl.getScrollFeature().getHScrollPosition();\n };\n /** If `true`, the horizontal scrollbar will always be present, even if not required. Otherwise, it will only be displayed when necessary. */\n\n\n GridApi.prototype.setAlwaysShowHorizontalScroll = function (show) {\n this.gridOptionsWrapper.setProperty('alwaysShowHorizontalScroll', show);\n };\n /** If `true`, the vertical scrollbar will always be present, even if not required. Otherwise it will only be displayed when necessary. */\n\n\n GridApi.prototype.setAlwaysShowVerticalScroll = function (show) {\n this.gridOptionsWrapper.setProperty('alwaysShowVerticalScroll', show);\n };\n /** Force refresh all tool panels by calling their `refresh` method. */\n\n\n GridApi.prototype.refreshToolPanel = function () {\n if (!this.sideBarComp) {\n return;\n }\n\n this.sideBarComp.refresh();\n };\n /** Performs change detection on all cells, refreshing cells where required. */\n\n\n GridApi.prototype.refreshCells = function (params) {\n if (params === void 0) {\n params = {};\n }\n\n if (Array.isArray(params)) {\n // the old version of refreshCells() took an array of rowNodes for the first argument\n console.warn('since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation.');\n return;\n }\n\n this.rowRenderer.refreshCells(params);\n };\n /** Flash rows, columns or individual cells. */\n\n\n GridApi.prototype.flashCells = function (params) {\n if (params === void 0) {\n params = {};\n }\n\n this.rowRenderer.flashCells(params);\n };\n /** Remove row(s) from the DOM and recreate them again from scratch. */\n\n\n GridApi.prototype.redrawRows = function (params) {\n if (params === void 0) {\n params = {};\n }\n\n var rowNodes = params ? params.rowNodes : undefined;\n this.rowRenderer.redrawRows(rowNodes);\n };\n\n GridApi.prototype.setFunctionsReadOnly = function (readOnly) {\n this.gridOptionsWrapper.setProperty('functionsReadOnly', readOnly);\n };\n /** Redraws the header. Useful if a column name changes, or something else that changes how the column header is displayed. */\n\n\n GridApi.prototype.refreshHeader = function () {\n this.ctrlsService.getHeaderRowContainerCtrls().forEach(function (c) {\n return c.refresh();\n });\n };\n /** Returns `true` if any filter is set. This includes quick filter, advanced filter or external filter. */\n\n\n GridApi.prototype.isAnyFilterPresent = function () {\n return this.filterManager.isAnyFilterPresent();\n };\n /** Returns `true` if any column filter is set, otherwise `false`. */\n\n\n GridApi.prototype.isColumnFilterPresent = function () {\n return this.filterManager.isColumnFilterPresent() || this.filterManager.isAggregateFilterPresent();\n };\n /** Returns `true` if the quick filter is set, otherwise `false`. */\n\n\n GridApi.prototype.isQuickFilterPresent = function () {\n return this.filterManager.isQuickFilterPresent();\n };\n /**\n * Returns the row model inside the table.\n * From here you can see the original rows, rows after filter has been applied,\n * rows after aggregation has been applied, and the final set of 'to be displayed' rows.\n */\n\n\n GridApi.prototype.getModel = function () {\n return this.rowModel;\n };\n /** Expand or collapse a specific row node. */\n\n\n GridApi.prototype.setRowNodeExpanded = function (rowNode, expanded) {\n if (rowNode) {\n rowNode.setExpanded(expanded);\n }\n };\n /**\n * If after getting the model, you expand or collapse a group, call this method to inform the grid.\n * It will work out the final set of 'to be displayed' rows again (i.e. expand or collapse the group visually).\n */\n\n\n GridApi.prototype.onGroupExpandedOrCollapsed = function (deprecated_refreshFromIndex) {\n if (missing(this.clientSideRowModel)) {\n console.warn('AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model');\n }\n\n if (exists(deprecated_refreshFromIndex)) {\n console.warn('AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows');\n } // we don't really want the user calling this if only one rowNode was expanded, instead they should be\n // calling rowNode.setExpanded(boolean) - this way we do a 'keepRenderedRows=false' so that the whole\n // grid gets refreshed again - otherwise the row with the rowNodes that were changed won't get updated,\n // and thus the expand icon in the group cell won't get 'opened' or 'closed'.\n\n\n this.clientSideRowModel.refreshModel({\n step: ClientSideRowModelSteps.MAP\n });\n };\n\n GridApi.prototype.refreshInMemoryRowModel = function (step) {\n console.warn(\"ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()\");\n this.refreshClientSideRowModel(step);\n };\n /** Gets the Client-Side Row Model to refresh, executing the grouping, filtering and sorting again. */\n\n\n GridApi.prototype.refreshClientSideRowModel = function (step) {\n if (missing(this.clientSideRowModel)) {\n console.warn('cannot call refreshClientSideRowModel unless using normal row model');\n }\n\n var paramsStep = ClientSideRowModelSteps.EVERYTHING;\n var stepsMapped = {\n group: ClientSideRowModelSteps.EVERYTHING,\n filter: ClientSideRowModelSteps.FILTER,\n map: ClientSideRowModelSteps.MAP,\n aggregate: ClientSideRowModelSteps.AGGREGATE,\n sort: ClientSideRowModelSteps.SORT,\n pivot: ClientSideRowModelSteps.PIVOT\n };\n\n if (exists(step)) {\n paramsStep = stepsMapped[step];\n }\n\n if (missing(paramsStep)) {\n console.error(\"AG Grid: invalid step \" + step + \", available steps are \" + Object.keys(stepsMapped).join(', '));\n return;\n }\n\n var animate = !this.gridOptionsWrapper.isSuppressAnimationFrame();\n var modelParams = {\n step: paramsStep,\n keepRenderedRows: true,\n keepEditingRows: true,\n animate: animate\n };\n this.clientSideRowModel.refreshModel(modelParams);\n };\n /** Returns `true` when there are no more animation frames left to process. */\n\n\n GridApi.prototype.isAnimationFrameQueueEmpty = function () {\n return this.animationFrameService.isQueueEmpty();\n };\n\n GridApi.prototype.flushAllAnimationFrames = function () {\n this.animationFrameService.flushAllFrames();\n };\n /**\n * Returns the row node with the given ID.\n * The row node ID is the one you provide from the callback `getRowId(params)`,\n * otherwise the ID is a number (cast as string) auto-generated by the grid when\n * the row data is set.\n */\n\n\n GridApi.prototype.getRowNode = function (id) {\n return this.rowModel.getRowNode(id);\n };\n /**\n * Gets the sizes that various UI elements will be rendered at with the current theme.\n * If you override the row or header height using `gridOptions`, the override value you provided will be returned.\n */\n\n\n GridApi.prototype.getSizesForCurrentTheme = function () {\n return {\n rowHeight: this.gridOptionsWrapper.getRowHeightAsNumber(),\n headerHeight: this.gridOptionsWrapper.getHeaderHeight()\n };\n };\n /** Expand all groups. */\n\n\n GridApi.prototype.expandAll = function () {\n if (this.clientSideRowModel) {\n this.clientSideRowModel.expandOrCollapseAll(true);\n } else if (this.serverSideRowModel) {\n this.serverSideRowModel.expandAll(true);\n } else {\n console.warn('AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model');\n }\n };\n /** Collapse all groups. */\n\n\n GridApi.prototype.collapseAll = function () {\n if (this.clientSideRowModel) {\n this.clientSideRowModel.expandOrCollapseAll(false);\n } else if (this.serverSideRowModel) {\n this.serverSideRowModel.expandAll(false);\n } else {\n console.warn('AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model');\n }\n };\n /** Gets the tool panel instance corresponding to the supplied `id`. */\n\n\n GridApi.prototype.getToolPanelInstance = function (id) {\n if (!this.sideBarComp) {\n console.warn('AG Grid: toolPanel is only available in AG Grid Enterprise');\n return;\n }\n\n var comp = this.sideBarComp.getToolPanelInstance(id);\n return unwrapUserComp(comp);\n };\n\n GridApi.prototype.addVirtualRowListener = function (eventName, rowIndex, callback) {\n if (typeof eventName !== 'string') {\n console.warn('AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener.');\n }\n\n this.addRenderedRowListener(eventName, rowIndex, callback);\n };\n /**\n * Registers a callback to a virtual row.\n * A virtual row is a row that is visually rendered on the screen (rows that are not visible because of the scroll position are not rendered).\n * Unlike normal events, you do not need to unregister rendered row listeners.\n * When the rendered row is removed from the grid, all associated rendered row listeners will also be removed.\n * Currently supports only one event, `virtualRowRemoved`;\n * listen for this event if your `cellRenderer` needs to do cleanup when the row no longer exists.\n */\n\n\n GridApi.prototype.addRenderedRowListener = function (eventName, rowIndex, callback) {\n if (eventName === 'virtualRowSelected') {\n console.warn(\"AG Grid: event virtualRowSelected is deprecated, to register for individual row\\n selection events, add a listener directly to the row node.\");\n }\n\n this.rowRenderer.addRenderedRowListener(eventName, rowIndex, callback);\n };\n /** Pass a quick filter text into the grid for filtering. */\n\n\n GridApi.prototype.setQuickFilter = function (newFilter) {\n this.filterManager.setQuickFilter(newFilter);\n };\n\n GridApi.prototype.selectIndex = function (index, tryMulti, suppressEvents) {\n console.warn('AG Grid: do not use api for selection, call node.setSelected(value) instead');\n\n if (suppressEvents) {\n console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');\n }\n\n this.selectionService.selectIndex(index, tryMulti);\n };\n\n GridApi.prototype.deselectIndex = function (index, suppressEvents) {\n if (suppressEvents === void 0) {\n suppressEvents = false;\n }\n\n console.warn('AG Grid: do not use api for selection, call node.setSelected(value) instead');\n\n if (suppressEvents) {\n console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');\n }\n\n this.selectionService.deselectIndex(index);\n };\n\n GridApi.prototype.selectNode = function (node, tryMulti, suppressEvents) {\n if (tryMulti === void 0) {\n tryMulti = false;\n }\n\n if (suppressEvents === void 0) {\n suppressEvents = false;\n }\n\n console.warn('AG Grid: API for selection is deprecated, call node.setSelected(value) instead');\n\n if (suppressEvents) {\n console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');\n }\n\n node.setSelectedParams({\n newValue: true,\n clearSelection: !tryMulti\n });\n };\n\n GridApi.prototype.deselectNode = function (node, suppressEvents) {\n if (suppressEvents === void 0) {\n suppressEvents = false;\n }\n\n console.warn('AG Grid: API for selection is deprecated, call node.setSelected(value) instead');\n\n if (suppressEvents) {\n console.warn('AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it');\n }\n\n node.setSelectedParams({\n newValue: false\n });\n };\n /** Select all rows, regardless of filtering and rows that are not visible due to grouping being enabled and their groups not expanded. */\n\n\n GridApi.prototype.selectAll = function () {\n this.selectionService.selectAllRowNodes();\n };\n /** Clear all row selections, regardless of filtering. */\n\n\n GridApi.prototype.deselectAll = function () {\n this.selectionService.deselectAllRowNodes();\n };\n /** Select all filtered rows. */\n\n\n GridApi.prototype.selectAllFiltered = function () {\n this.selectionService.selectAllRowNodes(true);\n };\n /** Clear all filtered selections. */\n\n\n GridApi.prototype.deselectAllFiltered = function () {\n this.selectionService.deselectAllRowNodes(true);\n };\n\n GridApi.prototype.recomputeAggregates = function () {\n if (missing(this.clientSideRowModel)) {\n console.warn('cannot call recomputeAggregates unless using normal row model');\n }\n\n console.warn(\"recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead\");\n this.clientSideRowModel.refreshModel({\n step: ClientSideRowModelSteps.AGGREGATE\n });\n };\n /**\n * Sets columns to adjust in size to fit the grid horizontally.\n **/\n\n\n GridApi.prototype.sizeColumnsToFit = function (params) {\n this.gridBodyCtrl.sizeColumnsToFit(params);\n };\n /** Show the 'loading' overlay. */\n\n\n GridApi.prototype.showLoadingOverlay = function () {\n this.overlayWrapperComp.showLoadingOverlay();\n };\n /** Show the 'no rows' overlay. */\n\n\n GridApi.prototype.showNoRowsOverlay = function () {\n this.overlayWrapperComp.showNoRowsOverlay();\n };\n /** Hides the overlay if showing. */\n\n\n GridApi.prototype.hideOverlay = function () {\n this.overlayWrapperComp.hideOverlay();\n };\n\n GridApi.prototype.isNodeSelected = function (node) {\n console.warn('AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead');\n return node.isSelected();\n };\n\n GridApi.prototype.getSelectedNodesById = function () {\n console.error('AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead');\n return null;\n };\n /**\n * Returns an unsorted list of selected nodes.\n * Getting the underlying node (rather than the data) is useful when working with tree / aggregated data,\n * as the node can be traversed.\n */\n\n\n GridApi.prototype.getSelectedNodes = function () {\n return this.selectionService.getSelectedNodes();\n };\n /** Returns an unsorted list of selected rows (i.e. row data that you provided). */\n\n\n GridApi.prototype.getSelectedRows = function () {\n return this.selectionService.getSelectedRows();\n };\n /**\n * Returns a list of all selected nodes at 'best cost', a feature to be used with groups / trees.\n * If a group has all its children selected, then the group appears in the result, but not the children.\n * Designed for use with `'children'` as the group selection type, where groups don't actually appear in the selection normally.\n */\n\n\n GridApi.prototype.getBestCostNodeSelection = function () {\n return this.selectionService.getBestCostNodeSelection();\n };\n /** Retrieve rendered nodes. Due to virtualisation this will contain only the current visible rows and those in the buffer. */\n\n\n GridApi.prototype.getRenderedNodes = function () {\n return this.rowRenderer.getRenderedNodes();\n };\n\n GridApi.prototype.ensureColIndexVisible = function (index) {\n console.warn('AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.');\n };\n /**\n * Ensures the column is visible by scrolling the table if needed.\n *\n * This will have no effect before the firstDataRendered event has fired.\n *\n * @param key - The column to ensure visible\n * @param position - Where the column will be positioned.\n * - `auto` - Scrolls the minimum amount to make sure the column is visible.\n * - `start` - Scrolls the column to the start of the viewport.\n * - `middle` - Scrolls the column to the middle of the viewport.\n * - `end` - Scrolls the column to the end of the viewport.\n */\n\n\n GridApi.prototype.ensureColumnVisible = function (key, position) {\n if (position === void 0) {\n position = 'auto';\n }\n\n this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(key, position);\n };\n /**\n * Vertically scrolls the grid until the provided row index is inside the visible viewport.\n * If a position is provided, the grid will attempt to scroll until the row is at the given position within the viewport.\n * This will have no effect before the firstDataRendered event has fired.\n */\n\n\n GridApi.prototype.ensureIndexVisible = function (index, position) {\n this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(index, position);\n };\n /**\n * Vertically scrolls the grid until the provided row (or a row matching the provided comparator) is inside the visible viewport.\n * If a position is provided, the grid will attempt to scroll until the row is at the given position within the viewport.\n * This will have no effect before the firstDataRendered event has fired.\n */\n\n\n GridApi.prototype.ensureNodeVisible = function (nodeSelector, position) {\n if (position === void 0) {\n position = null;\n }\n\n this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(nodeSelector, position);\n };\n /**\n * Similar to `forEachNode`, except lists all the leaf nodes.\n * This effectively goes through all the data that you provided to the grid before the grid performed any grouping.\n * If using tree data, goes through all the nodes for the data you provided, including nodes that have children,\n * but excluding groups the grid created where gaps were missing in the hierarchy.\n */\n\n\n GridApi.prototype.forEachLeafNode = function (callback) {\n if (missing(this.clientSideRowModel)) {\n console.warn('cannot call forEachNode unless using normal row model');\n }\n\n this.clientSideRowModel.forEachLeafNode(callback);\n };\n /**\n * Iterates through each node (row) in the grid and calls the callback for each node.\n * This works similar to the `forEach` method on a JavaScript array.\n * This is called for every node, ignoring any filtering or sorting applied within the grid.\n * If using the Infinite Row Model, then this gets called for each page loaded in the page cache.\n */\n\n\n GridApi.prototype.forEachNode = function (callback) {\n this.rowModel.forEachNode(callback);\n };\n /** Similar to `forEachNode`, except skips any filtered out data. */\n\n\n GridApi.prototype.forEachNodeAfterFilter = function (callback) {\n if (missing(this.clientSideRowModel)) {\n console.warn('cannot call forEachNodeAfterFilter unless using normal row model');\n }\n\n this.clientSideRowModel.forEachNodeAfterFilter(callback);\n };\n /** Similar to `forEachNodeAfterFilter`, except the callbacks are called in the order the rows are displayed in the grid. */\n\n\n GridApi.prototype.forEachNodeAfterFilterAndSort = function (callback) {\n if (missing(this.clientSideRowModel)) {\n console.warn('cannot call forEachNodeAfterFilterAndSort unless using normal row model');\n }\n\n this.clientSideRowModel.forEachNodeAfterFilterAndSort(callback);\n };\n /**\n * Returns the filter component instance for a column.\n * `key` can be a string field name or a ColDef object (matches on object reference, useful if field names are not unique).\n * If your filter is created asynchronously, `getFilterInstance` will return `null` so you will need to use the `callback` to access the filter instance instead.\n */\n\n\n GridApi.prototype.getFilterInstance = function (key, callback) {\n var res = this.getFilterInstanceImpl(key, function (instance) {\n if (!callback) {\n return;\n }\n\n var unwrapped = unwrapUserComp(instance);\n callback(unwrapped);\n });\n var unwrapped = unwrapUserComp(res);\n return unwrapped;\n };\n\n GridApi.prototype.getFilterInstanceImpl = function (key, callback) {\n var column = this.columnModel.getPrimaryColumn(key);\n\n if (!column) {\n return undefined;\n }\n\n var filterPromise = this.filterManager.getFilterComponent(column, 'NO_UI');\n var currentValue = filterPromise && filterPromise.resolveNow(null, function (filterComp) {\n return filterComp;\n });\n\n if (currentValue) {\n setTimeout(callback, 0, currentValue);\n } else if (filterPromise) {\n filterPromise.then(function (comp) {\n callback(comp);\n });\n }\n\n return currentValue;\n };\n /** Destroys a filter. Useful to force a particular filter to be created from scratch again. */\n\n\n GridApi.prototype.destroyFilter = function (key) {\n var column = this.columnModel.getPrimaryColumn(key);\n\n if (column) {\n return this.filterManager.destroyFilter(column, \"filterDestroyed\");\n }\n };\n /** Gets the status panel instance corresponding to the supplied `id`. */\n\n\n GridApi.prototype.getStatusPanel = function (key) {\n if (!this.statusBarService) {\n return;\n }\n\n var comp = this.statusBarService.getStatusPanel(key);\n return unwrapUserComp(comp);\n };\n\n GridApi.prototype.getColumnDef = function (key) {\n var column = this.columnModel.getPrimaryColumn(key);\n\n if (column) {\n return column.getColDef();\n }\n\n return null;\n };\n /**\n * Returns the current column definitions.\n */\n\n\n GridApi.prototype.getColumnDefs = function () {\n return this.columnModel.getColumnDefs();\n };\n /** Informs the grid that a filter has changed. This is typically called after a filter change through one of the filter APIs. */\n\n\n GridApi.prototype.onFilterChanged = function () {\n this.filterManager.onFilterChanged();\n };\n /**\n * Gets the grid to act as if the sort was changed.\n * Useful if you update some values and want to get the grid to reorder them according to the new values.\n */\n\n\n GridApi.prototype.onSortChanged = function () {\n this.sortController.onSortChanged('api');\n };\n /** Sets the state of all the advanced filters. Provide it with what you get from `getFilterModel()` to restore filter state. */\n\n\n GridApi.prototype.setFilterModel = function (model) {\n this.filterManager.setFilterModel(model);\n };\n /** Gets the current state of all the advanced filters. Used for saving filter state. */\n\n\n GridApi.prototype.getFilterModel = function () {\n return this.filterManager.getFilterModel();\n };\n /** Returns the focused cell (or the last focused cell if the grid lost focus). */\n\n\n GridApi.prototype.getFocusedCell = function () {\n return this.focusService.getFocusedCell();\n };\n /** Clears the focused cell. */\n\n\n GridApi.prototype.clearFocusedCell = function () {\n return this.focusService.clearFocusedCell();\n };\n /** Sets the focus to the specified cell. `rowPinned` can be either 'top', 'bottom' or null (for not pinned). */\n\n\n GridApi.prototype.setFocusedCell = function (rowIndex, colKey, rowPinned) {\n this.focusService.setFocusedCell({\n rowIndex: rowIndex,\n column: colKey,\n rowPinned: rowPinned,\n forceBrowserFocus: true\n });\n };\n /** Sets the `suppressRowDrag` property. */\n\n\n GridApi.prototype.setSuppressRowDrag = function (value) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_SUPPRESS_ROW_DRAG, value);\n };\n /** Sets the `suppressMoveWhenRowDragging` property. */\n\n\n GridApi.prototype.setSuppressMoveWhenRowDragging = function (value) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG, value);\n };\n /** Sets the `suppressRowClickSelection` property. */\n\n\n GridApi.prototype.setSuppressRowClickSelection = function (value) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_SUPPRESS_ROW_CLICK_SELECTION, value);\n };\n /** Adds a drop zone outside of the grid where rows can be dropped. */\n\n\n GridApi.prototype.addRowDropZone = function (params) {\n this.gridBodyCtrl.getRowDragFeature().addRowDropZone(params);\n };\n /** Removes an external drop zone added by `addRowDropZone`. */\n\n\n GridApi.prototype.removeRowDropZone = function (params) {\n var activeDropTarget = this.dragAndDropService.findExternalZone(params);\n\n if (activeDropTarget) {\n this.dragAndDropService.removeDropTarget(activeDropTarget);\n }\n };\n /** Returns the `RowDropZoneParams` to be used by another grid's `addRowDropZone` method. */\n\n\n GridApi.prototype.getRowDropZoneParams = function (events) {\n return this.gridBodyCtrl.getRowDragFeature().getRowDropZone(events);\n };\n /** Sets the height in pixels for the row containing the column label header. */\n\n\n GridApi.prototype.setHeaderHeight = function (headerHeight) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_HEADER_HEIGHT, headerHeight);\n };\n /**\n * Switch between layout options: `normal`, `autoHeight`, `print`.\n * Defaults to `normal` if no domLayout provided.\n */\n\n\n GridApi.prototype.setDomLayout = function (domLayout) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_DOM_LAYOUT, domLayout);\n };\n /** Sets the `enableCellTextSelection` property. */\n\n\n GridApi.prototype.setEnableCellTextSelection = function (selectable) {\n this.gridBodyCtrl.setCellTextSelection(selectable);\n };\n /** Sets the preferred direction for the selection fill handle. */\n\n\n GridApi.prototype.setFillHandleDirection = function (direction) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_FILL_HANDLE_DIRECTION, direction);\n };\n /** Sets the height in pixels for the rows containing header column groups. */\n\n\n GridApi.prototype.setGroupHeaderHeight = function (headerHeight) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT, headerHeight);\n };\n /** Sets the height in pixels for the row containing the floating filters. */\n\n\n GridApi.prototype.setFloatingFiltersHeight = function (headerHeight) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT, headerHeight);\n };\n /** Sets the height in pixels for the row containing the columns when in pivot mode. */\n\n\n GridApi.prototype.setPivotHeaderHeight = function (headerHeight) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT, headerHeight);\n };\n /** Sets the height in pixels for the row containing header column groups when in pivot mode. */\n\n\n GridApi.prototype.setPivotGroupHeaderHeight = function (headerHeight) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT, headerHeight);\n };\n\n GridApi.prototype.setIsExternalFilterPresent = function (isExternalFilterPresentFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_IS_EXTERNAL_FILTER_PRESENT, isExternalFilterPresentFunc);\n };\n\n GridApi.prototype.setDoesExternalFilterPass = function (doesExternalFilterPassFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_DOES_EXTERNAL_FILTER_PASS, doesExternalFilterPassFunc);\n };\n\n GridApi.prototype.setNavigateToNextCell = function (navigateToNextCellFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_NAVIGATE_TO_NEXT_CELL, navigateToNextCellFunc);\n };\n\n GridApi.prototype.setTabToNextCell = function (tabToNextCellFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_TAB_TO_NEXT_CELL, tabToNextCellFunc);\n };\n\n GridApi.prototype.setTabToNextHeader = function (tabToNextHeaderFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_TAB_TO_NEXT_HEADER, tabToNextHeaderFunc);\n };\n\n GridApi.prototype.setNavigateToNextHeader = function (navigateToNextHeaderFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_NAVIGATE_TO_NEXT_HEADER, navigateToNextHeaderFunc);\n };\n\n GridApi.prototype.setGroupRowAggNodes = function (groupRowAggNodesFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GROUP_ROW_AGG_NODES, groupRowAggNodesFunc);\n };\n\n GridApi.prototype.setGetGroupRowAgg = function (getGroupRowAggFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_GROUP_ROW_AGG, getGroupRowAggFunc);\n };\n\n GridApi.prototype.setGetBusinessKeyForNode = function (getBusinessKeyForNodeFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_BUSINESS_KEY_FOR_NODE, getBusinessKeyForNodeFunc);\n };\n\n GridApi.prototype.setGetChildCount = function (getChildCountFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_CHILD_COUNT, getChildCountFunc);\n };\n\n GridApi.prototype.setProcessRowPostCreate = function (processRowPostCreateFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_PROCESS_ROW_POST_CREATE, processRowPostCreateFunc);\n };\n\n GridApi.prototype.setGetRowNodeId = function (getRowNodeIdFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_ROW_NODE_ID, getRowNodeIdFunc);\n };\n\n GridApi.prototype.setGetRowId = function (getRowIdFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_ROW_ID, getRowIdFunc);\n };\n\n GridApi.prototype.setGetRowClass = function (rowClassFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_ROW_CLASS, rowClassFunc);\n };\n\n GridApi.prototype.setIsFullWidthCell = function (isFullWidthCellFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_IS_FULL_WIDTH_CELL, isFullWidthCellFunc);\n };\n\n GridApi.prototype.setIsFullWidthRow = function (isFullWidthRowFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_IS_FULL_WIDTH_ROW, isFullWidthRowFunc);\n };\n\n GridApi.prototype.setIsRowSelectable = function (isRowSelectableFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_IS_ROW_SELECTABLE, isRowSelectableFunc);\n };\n\n GridApi.prototype.setIsRowMaster = function (isRowMasterFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_IS_ROW_MASTER, isRowMasterFunc);\n };\n\n GridApi.prototype.setPostSort = function (postSortFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_POST_SORT, postSortFunc);\n };\n\n GridApi.prototype.setPostSortRows = function (postSortRowsFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_POST_SORT_ROWS, postSortRowsFunc);\n };\n\n GridApi.prototype.setGetDocument = function (getDocumentFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_DOCUMENT, getDocumentFunc);\n };\n\n GridApi.prototype.setGetContextMenuItems = function (getContextMenuItemsFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_CONTEXT_MENU_ITEMS, getContextMenuItemsFunc);\n };\n\n GridApi.prototype.setGetMainMenuItems = function (getMainMenuItemsFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_MAIN_MENU_ITEMS, getMainMenuItemsFunc);\n };\n\n GridApi.prototype.setProcessCellForClipboard = function (processCellForClipboardFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_PROCESS_CELL_FOR_CLIPBOARD, processCellForClipboardFunc);\n };\n\n GridApi.prototype.setSendToClipboard = function (sendToClipboardFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_SEND_TO_CLIPBOARD, sendToClipboardFunc);\n };\n\n GridApi.prototype.setProcessCellFromClipboard = function (processCellFromClipboardFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_PROCESS_CELL_FROM_CLIPBOARD, processCellFromClipboardFunc);\n };\n /** @deprecated use `setProcessPivotResultColDef` instead */\n\n\n GridApi.prototype.setProcessSecondaryColDef = function (processSecondaryColDefFunc) {\n console.warn('AG Grid: since version 28.0.x setProcessSecondaryColDef has been renamed, please use setProcessPivotResultColDef instead');\n this.setProcessPivotResultColDef(processSecondaryColDefFunc);\n };\n /** @deprecated use `setProcessPivotResultColGroupDef` instead */\n\n\n GridApi.prototype.setProcessSecondaryColGroupDef = function (processSecondaryColGroupDefFunc) {\n console.warn('AG Grid: since version 28.0.x setProcessSecondaryColGroupDef has been renamed, please use setProcessPivotResultColGroupDef instead');\n this.setProcessPivotResultColGroupDef(processSecondaryColGroupDefFunc);\n };\n\n GridApi.prototype.setProcessPivotResultColDef = function (processPivotResultColDefFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_PROCESS_PIVOT_RESULT_COL_DEF, processPivotResultColDefFunc);\n };\n\n GridApi.prototype.setProcessPivotResultColGroupDef = function (processPivotResultColGroupDefFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_PROCESS_PIVOT_RESULT_COL_GROUP_DEF, processPivotResultColGroupDefFunc);\n };\n\n GridApi.prototype.setPostProcessPopup = function (postProcessPopupFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_POST_PROCESS_POPUP, postProcessPopupFunc);\n };\n\n GridApi.prototype.setDefaultGroupOrderComparator = function (defaultGroupOrderComparatorFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_DEFAULT_GROUP_ORDER_COMPARATOR, defaultGroupOrderComparatorFunc);\n };\n\n GridApi.prototype.setInitialGroupOrderComparator = function (initialGroupOrderComparatorFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_INITIAL_GROUP_ORDER_COMPARATOR, initialGroupOrderComparatorFunc);\n };\n\n GridApi.prototype.setGetChartToolbarItems = function (getChartToolbarItemsFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_CHART_TOOLBAR_ITEMS, getChartToolbarItemsFunc);\n };\n\n GridApi.prototype.setPaginationNumberFormatter = function (paginationNumberFormatterFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_PAGINATION_NUMBER_FORMATTER, paginationNumberFormatterFunc);\n };\n /** @deprecated\n * use setGetServerSideGroupLevelParams instead\n */\n\n\n GridApi.prototype.setGetServerSideStoreParams = function (getServerSideStoreParamsFunc) {\n this.setGetServerSideGroupLevelParams(getServerSideStoreParamsFunc);\n };\n\n GridApi.prototype.setGetServerSideGroupLevelParams = function (getServerSideGroupLevelParamsFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_SERVER_SIDE_GROUP_PARAMS, getServerSideGroupLevelParamsFunc);\n };\n\n GridApi.prototype.setIsServerSideGroupOpenByDefault = function (isServerSideGroupOpenByDefaultFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT, isServerSideGroupOpenByDefaultFunc);\n };\n\n GridApi.prototype.setIsApplyServerSideTransaction = function (isApplyServerSideTransactionFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION, isApplyServerSideTransactionFunc);\n };\n\n GridApi.prototype.setIsServerSideGroup = function (isServerSideGroupFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_IS_SERVER_SIDE_GROUP, isServerSideGroupFunc);\n };\n\n GridApi.prototype.setGetServerSideGroupKey = function (getServerSideGroupKeyFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_SERVER_SIDE_GROUP_KEY, getServerSideGroupKeyFunc);\n };\n\n GridApi.prototype.setGetRowStyle = function (rowStyleFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_ROW_STYLE, rowStyleFunc);\n };\n\n GridApi.prototype.setGetRowHeight = function (rowHeightFunc) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GET_ROW_HEIGHT, rowHeightFunc);\n };\n /** Returns `true` if the side bar is visible. */\n\n\n GridApi.prototype.isSideBarVisible = function () {\n return this.sideBarComp ? this.sideBarComp.isDisplayed() : false;\n };\n /** Show/hide the entire side bar, including any visible panel and the tab buttons. */\n\n\n GridApi.prototype.setSideBarVisible = function (show) {\n if (!this.sideBarComp) {\n if (show) {\n console.warn('AG Grid: sideBar is not loaded');\n }\n\n return;\n }\n\n this.sideBarComp.setDisplayed(show);\n };\n /** Sets the side bar position relative to the grid. Possible values are `'left'` or `'right'`. */\n\n\n GridApi.prototype.setSideBarPosition = function (position) {\n if (!this.sideBarComp) {\n console.warn('AG Grid: sideBar is not loaded');\n return;\n }\n\n this.sideBarComp.setSideBarPosition(position);\n };\n /** Opens a particular tool panel. Provide the ID of the tool panel to open. */\n\n\n GridApi.prototype.openToolPanel = function (key) {\n if (!this.sideBarComp) {\n console.warn('AG Grid: toolPanel is only available in AG Grid Enterprise');\n return;\n }\n\n this.sideBarComp.openToolPanel(key);\n };\n /** Closes the currently open tool panel (if any). */\n\n\n GridApi.prototype.closeToolPanel = function () {\n if (!this.sideBarComp) {\n console.warn('AG Grid: toolPanel is only available in AG Grid Enterprise');\n return;\n }\n\n this.sideBarComp.close();\n };\n /** Returns the ID of the currently shown tool panel if any, otherwise `null`. */\n\n\n GridApi.prototype.getOpenedToolPanel = function () {\n return this.sideBarComp ? this.sideBarComp.openedItem() : null;\n };\n /** Returns the current side bar configuration. If a shortcut was used, returns the detailed long form. */\n\n\n GridApi.prototype.getSideBar = function () {\n return this.gridOptionsWrapper.getSideBar();\n };\n /** Resets the side bar to the provided configuration. The parameter is the same as the sideBar grid property. The side bar is re-created from scratch with the new config. */\n\n\n GridApi.prototype.setSideBar = function (def) {\n this.gridOptionsWrapper.setProperty('sideBar', SideBarDefParser.parse(def));\n };\n\n GridApi.prototype.setSuppressClipboardPaste = function (value) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_SUPPRESS_CLIPBOARD_PASTE, value);\n };\n /** Returns `true` if the tool panel is showing, otherwise `false`. */\n\n\n GridApi.prototype.isToolPanelShowing = function () {\n return this.sideBarComp.isToolPanelShowing();\n };\n\n GridApi.prototype.doLayout = function () {\n var message = \"AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically\";\n doOnce(function () {\n return console.warn(message);\n }, 'doLayoutDeprecated');\n };\n /** Tells the grid to recalculate the row heights. */\n\n\n GridApi.prototype.resetRowHeights = function () {\n if (exists(this.clientSideRowModel)) {\n if (this.columnModel.isAutoRowHeightActive()) {\n console.warn('AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.');\n return;\n }\n\n this.clientSideRowModel.resetRowHeights();\n }\n };\n\n GridApi.prototype.setGroupRemoveSingleChildren = function (value) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GROUP_REMOVE_SINGLE_CHILDREN, value);\n };\n\n GridApi.prototype.setGroupRemoveLowestSingleChildren = function (value) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN, value);\n };\n\n GridApi.prototype.setGroupDisplayType = function (value) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_GROUP_DISPLAY_TYPE, value);\n };\n /** Tells the grid a row height has changed. To be used after calling `rowNode.setRowHeight(newHeight)`. */\n\n\n GridApi.prototype.onRowHeightChanged = function () {\n if (this.clientSideRowModel) {\n this.clientSideRowModel.onRowHeightChanged();\n } else if (this.serverSideRowModel) {\n this.serverSideRowModel.onRowHeightChanged();\n }\n };\n /**\n * Gets the value for a column for a particular `rowNode` (row).\n * This is useful if you want the raw value of a cell e.g. if implementing your own CSV export.\n */\n\n\n GridApi.prototype.getValue = function (colKey, rowNode) {\n var column = this.columnModel.getPrimaryColumn(colKey);\n\n if (missing(column)) {\n column = this.columnModel.getGridColumn(colKey);\n }\n\n if (missing(column)) {\n return null;\n }\n\n return this.valueService.getValue(column, rowNode);\n };\n /** Add an event listener for the specified `eventType`. Works similar to `addEventListener` for a browser DOM element. */\n\n\n GridApi.prototype.addEventListener = function (eventType, listener) {\n var async = this.gridOptionsWrapper.useAsyncEvents();\n this.eventService.addEventListener(eventType, listener, async);\n };\n /** Add an event listener for all event types coming from the grid. */\n\n\n GridApi.prototype.addGlobalListener = function (listener) {\n var async = this.gridOptionsWrapper.useAsyncEvents();\n this.eventService.addGlobalListener(listener, async);\n };\n /** Remove an event listener. */\n\n\n GridApi.prototype.removeEventListener = function (eventType, listener) {\n var async = this.gridOptionsWrapper.useAsyncEvents();\n this.eventService.removeEventListener(eventType, listener, async);\n };\n /** Remove a global event listener. */\n\n\n GridApi.prototype.removeGlobalListener = function (listener) {\n var async = this.gridOptionsWrapper.useAsyncEvents();\n this.eventService.removeGlobalListener(listener, async);\n };\n\n GridApi.prototype.dispatchEvent = function (event) {\n this.eventService.dispatchEvent(event);\n };\n /** Will destroy the grid and release resources. If you are using a framework you do not need to call this, as the grid links in with the framework lifecycle. However if you are using Web Components or native JavaScript, you do need to call this, to avoid a memory leak in your application. */\n\n\n GridApi.prototype.destroy = function () {\n // this is needed as GridAPI is a bean, and GridAPI.destroy() is called as part\n // of context.destroy(). so we need to stop the infinite loop.\n if (this.destroyCalled) {\n return;\n }\n\n this.destroyCalled = true; // destroy the UI first (as they use the services)\n\n var gridCtrl = this.ctrlsService.getGridCtrl();\n\n if (gridCtrl) {\n gridCtrl.destroyGridUi();\n } // destroy the services\n\n\n this.context.destroy();\n };\n\n GridApi.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid = function () {\n // some users were raising support issues with regards memory leaks. the problem was the customers applications\n // were keeping references to the API. trying to educate them all would be difficult, easier to just remove\n // all references in the API so at least the core grid can be garbage collected.\n //\n // wait about 100ms before clearing down the references, in case user has some cleanup to do,\n // and needs to deference the API first\n setTimeout(removeAllReferences.bind(window, this, 'Grid API'), 100);\n };\n\n GridApi.prototype.warnIfDestroyed = function (methodName) {\n if (this.destroyCalled) {\n console.warn(\"AG Grid: Grid API method \" + methodName + \" was called on a grid that was destroyed.\");\n }\n\n return this.destroyCalled;\n };\n /** Reset the quick filter cache text on every rowNode. */\n\n\n GridApi.prototype.resetQuickFilter = function () {\n if (this.warnIfDestroyed('resetQuickFilter')) {\n return;\n }\n\n this.rowModel.forEachNode(function (node) {\n return node.quickFilterAggregateText = null;\n });\n };\n\n GridApi.prototype.getRangeSelections = function () {\n 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.\");\n return null;\n };\n /** Returns the list of selected cell ranges. */\n\n\n GridApi.prototype.getCellRanges = function () {\n if (this.rangeService) {\n return this.rangeService.getCellRanges();\n }\n\n console.warn('AG Grid: cell range selection is only available in AG Grid Enterprise');\n return null;\n };\n\n GridApi.prototype.camelCaseToHumanReadable = function (camelCase) {\n return camelCaseToHumanText(camelCase);\n };\n\n GridApi.prototype.addRangeSelection = function (deprecatedNoLongerUsed) {\n 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()');\n };\n /** Adds the provided cell range to the selected ranges. */\n\n\n GridApi.prototype.addCellRange = function (params) {\n if (!this.rangeService) {\n console.warn('AG Grid: cell range selection is only available in AG Grid Enterprise');\n }\n\n this.rangeService.addCellRange(params);\n };\n /** Clears the selected ranges. */\n\n\n GridApi.prototype.clearRangeSelection = function () {\n if (!this.rangeService) {\n console.warn('AG Grid: cell range selection is only available in AG Grid Enterprise');\n }\n\n this.rangeService.removeAllCellRanges();\n };\n /** Reverts the last cell edit. */\n\n\n GridApi.prototype.undoCellEditing = function () {\n this.undoRedoService.undo();\n };\n /** Re-applies the most recently undone cell edit. */\n\n\n GridApi.prototype.redoCellEditing = function () {\n this.undoRedoService.redo();\n };\n /** Returns current number of available cell edit undo operations. */\n\n\n GridApi.prototype.getCurrentUndoSize = function () {\n return this.undoRedoService.getCurrentUndoStackSize();\n };\n /** Returns current number of available cell edit redo operations. */\n\n\n GridApi.prototype.getCurrentRedoSize = function () {\n return this.undoRedoService.getCurrentRedoStackSize();\n };\n /** Returns a list of models with information about the charts that are currently rendered from the grid. */\n\n\n GridApi.prototype.getChartModels = function () {\n if (ModuleRegistry.assertRegistered(ModuleNames.RangeSelectionModule, 'api.getChartModels') && ModuleRegistry.assertRegistered(ModuleNames.GridChartsModule, 'api.getChartModels')) {\n return this.chartService.getChartModels();\n }\n };\n /** Returns the `ChartRef` using the supplied `chartId`. */\n\n\n GridApi.prototype.getChartRef = function (chartId) {\n if (ModuleRegistry.assertRegistered(ModuleNames.RangeSelectionModule, 'api.getChartRef') && ModuleRegistry.assertRegistered(ModuleNames.GridChartsModule, 'api.getChartRef')) {\n return this.chartService.getChartRef(chartId);\n }\n };\n /** Returns a string containing the requested data URL which contains a representation of the chart image. */\n\n\n GridApi.prototype.getChartImageDataURL = function (params) {\n if (ModuleRegistry.assertRegistered(ModuleNames.RangeSelectionModule, 'api.getChartImageDataURL') && ModuleRegistry.assertRegistered(ModuleNames.GridChartsModule, 'api.getChartImageDataURL')) {\n return this.chartService.getChartImageDataURL(params);\n }\n };\n /** Used to programmatically create charts from a range. */\n\n\n GridApi.prototype.createRangeChart = function (params) {\n if (ModuleRegistry.assertRegistered(ModuleNames.RangeSelectionModule, 'api.createRangeChart') && ModuleRegistry.assertRegistered(ModuleNames.GridChartsModule, 'api.createRangeChart')) {\n return this.chartService.createRangeChart(params);\n }\n };\n /** Used to programmatically create cross filter charts from a range. */\n\n\n GridApi.prototype.createCrossFilterChart = function (params) {\n if (ModuleRegistry.assertRegistered(ModuleNames.RangeSelectionModule, 'api.createCrossFilterChart') && ModuleRegistry.assertRegistered(ModuleNames.GridChartsModule, 'api.createCrossFilterChart')) {\n return this.chartService.createCrossFilterChart(params);\n }\n };\n /** Restores a chart using the `ChartModel` that was previously obtained from `getChartModels()`. */\n\n\n GridApi.prototype.restoreChart = function (chartModel, chartContainer) {\n if (ModuleRegistry.assertRegistered(ModuleNames.RangeSelectionModule, 'api.restoreChart') && ModuleRegistry.assertRegistered(ModuleNames.GridChartsModule, 'api.restoreChart')) {\n return this.chartService.restoreChart(chartModel, chartContainer);\n }\n };\n /** Used to programmatically create pivot charts from a grid. */\n\n\n GridApi.prototype.createPivotChart = function (params) {\n if (ModuleRegistry.assertRegistered(ModuleNames.RangeSelectionModule, 'api.createPivotChart') && ModuleRegistry.assertRegistered(ModuleNames.GridChartsModule, 'api.createPivotChart')) {\n return this.chartService.createPivotChart(params);\n }\n };\n /** Copies the selected rows to the clipboard. */\n\n\n GridApi.prototype.copySelectedRowsToClipboard = function (params) {\n if (!this.clipboardService) {\n console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');\n }\n\n this.clipboardService.copySelectedRowsToClipboard(params);\n };\n /** Copies the selected ranges to the clipboard. */\n\n\n GridApi.prototype.copySelectedRangeToClipboard = function (params) {\n if (!this.clipboardService) {\n console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');\n }\n\n this.clipboardService.copySelectedRangeToClipboard(params);\n };\n /** Copies the selected range down, similar to `Ctrl + D` in Excel. */\n\n\n GridApi.prototype.copySelectedRangeDown = function () {\n if (!this.clipboardService) {\n console.warn('AG Grid: clipboard is only available in AG Grid Enterprise');\n }\n\n this.clipboardService.copyRangeDown();\n };\n /** Shows the column menu after and positions it relative to the provided button element. Use in conjunction with your own header template. */\n\n\n GridApi.prototype.showColumnMenuAfterButtonClick = function (colKey, buttonElement) {\n // use grid column so works with pivot mode\n var column = this.columnModel.getGridColumn(colKey);\n this.menuFactory.showMenuAfterButtonClick(column, buttonElement, 'columnMenu');\n };\n /** Shows the column menu after and positions it relative to the mouse event. Use in conjunction with your own header template. */\n\n\n GridApi.prototype.showColumnMenuAfterMouseClick = function (colKey, mouseEvent) {\n // use grid column so works with pivot mode\n var column = this.columnModel.getGridColumn(colKey);\n\n if (!column) {\n column = this.columnModel.getPrimaryColumn(colKey);\n }\n\n if (!column) {\n console.error(\"AG Grid: column '\" + colKey + \"' not found\");\n return;\n }\n\n this.menuFactory.showMenuAfterMouseEvent(column, mouseEvent);\n };\n /** Hides any visible context menu or column menu. */\n\n\n GridApi.prototype.hidePopupMenu = function () {\n // hide the context menu if in enterprise\n if (this.contextMenuFactory) {\n this.contextMenuFactory.hideActiveMenu();\n } // and hide the column menu always\n\n\n this.menuFactory.hideActiveMenu();\n };\n /** DOM element to use as the popup parent for grid popups (context menu, column menu etc). */\n\n\n GridApi.prototype.setPopupParent = function (ePopupParent) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_POPUP_PARENT, ePopupParent);\n };\n /** Navigates the grid focus to the next cell, as if tabbing. */\n\n\n GridApi.prototype.tabToNextCell = function (event) {\n return this.navigationService.tabToNextCell(false, event);\n };\n /** Navigates the grid focus to the previous cell, as if shift-tabbing. */\n\n\n GridApi.prototype.tabToPreviousCell = function (event) {\n return this.navigationService.tabToNextCell(true, event);\n };\n /** Returns the list of active cell renderer instances. */\n\n\n GridApi.prototype.getCellRendererInstances = function (params) {\n if (params === void 0) {\n params = {};\n }\n\n var res = this.rowRenderer.getCellRendererInstances(params);\n var unwrapped = res.map(unwrapUserComp);\n return unwrapped;\n };\n /** Returns the list of active cell editor instances. Optionally provide parameters to restrict to certain columns / row nodes. */\n\n\n GridApi.prototype.getCellEditorInstances = function (params) {\n if (params === void 0) {\n params = {};\n }\n\n var res = this.rowRenderer.getCellEditorInstances(params);\n var unwrapped = res.map(unwrapUserComp);\n return unwrapped;\n };\n /** If the grid is editing, returns back details of the editing cell(s). */\n\n\n GridApi.prototype.getEditingCells = function () {\n return this.rowRenderer.getEditingCells();\n };\n /** If a cell is editing, it stops the editing. Pass `true` if you want to cancel the editing (i.e. don't accept changes). */\n\n\n GridApi.prototype.stopEditing = function (cancel) {\n if (cancel === void 0) {\n cancel = false;\n }\n\n this.rowRenderer.stopEditing(cancel);\n };\n /** Start editing the provided cell. If another cell is editing, the editing will be stopped in that other cell. */\n\n\n GridApi.prototype.startEditingCell = function (params) {\n var column = this.columnModel.getGridColumn(params.colKey);\n\n if (!column) {\n console.warn(\"AG Grid: no column found for \" + params.colKey);\n return;\n }\n\n var cellPosition = {\n rowIndex: params.rowIndex,\n rowPinned: params.rowPinned || null,\n column: column\n };\n var notPinned = params.rowPinned == null;\n\n if (notPinned) {\n this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(params.rowIndex);\n }\n\n var cell = this.navigationService.getCellByPosition(cellPosition);\n\n if (!cell) {\n return;\n }\n\n cell.startRowOrCellEdit(params.key, params.charPress);\n };\n /** Add an aggregation function with the specified key. */\n\n\n GridApi.prototype.addAggFunc = function (key, aggFunc) {\n if (this.aggFuncService) {\n this.aggFuncService.addAggFunc(key, aggFunc);\n }\n };\n /** Add aggregations function with the specified keys. */\n\n\n GridApi.prototype.addAggFuncs = function (aggFuncs) {\n if (this.aggFuncService) {\n this.aggFuncService.addAggFuncs(aggFuncs);\n }\n };\n /** Clears all aggregation functions (including those provided by the grid). */\n\n\n GridApi.prototype.clearAggFuncs = function () {\n if (this.aggFuncService) {\n this.aggFuncService.clear();\n }\n };\n /** Apply transactions to the server side row model. */\n\n\n GridApi.prototype.applyServerSideTransaction = function (transaction) {\n if (!this.serverSideTransactionManager) {\n console.warn('AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.');\n return;\n }\n\n return this.serverSideTransactionManager.applyTransaction(transaction);\n };\n\n GridApi.prototype.applyServerSideTransactionAsync = function (transaction, callback) {\n if (!this.serverSideTransactionManager) {\n console.warn('AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.');\n return;\n }\n\n return this.serverSideTransactionManager.applyTransactionAsync(transaction, callback);\n };\n /** Gets all failed server side loads to retry. */\n\n\n GridApi.prototype.retryServerSideLoads = function () {\n if (!this.serverSideRowModel) {\n console.warn('AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.');\n return;\n }\n\n this.serverSideRowModel.retryLoads();\n };\n\n GridApi.prototype.flushServerSideAsyncTransactions = function () {\n if (!this.serverSideTransactionManager) {\n console.warn('AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.');\n return;\n }\n\n return this.serverSideTransactionManager.flushAsyncTransactions();\n };\n /** Update row data. Pass a transaction object with lists for `add`, `remove` and `update`. */\n\n\n GridApi.prototype.applyTransaction = function (rowDataTransaction) {\n if (!this.clientSideRowModel) {\n console.error('AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1');\n return;\n }\n\n var res = this.clientSideRowModel.updateRowData(rowDataTransaction); // refresh all the full width rows\n\n this.rowRenderer.refreshFullWidthRows(res.update); // do change detection for all present cells\n\n if (!this.gridOptionsWrapper.isSuppressChangeDetection()) {\n this.rowRenderer.refreshCells();\n }\n\n return res;\n };\n /** Sets the `deltaSort` property */\n\n\n GridApi.prototype.setDeltaSort = function (enable) {\n this.gridOptionsWrapper.setProperty('deltaSort', enable);\n };\n /** @deprecated */\n\n\n GridApi.prototype.updateRowData = function (rowDataTransaction) {\n var message = '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.';\n doOnce(function () {\n return console.warn(message);\n }, 'updateRowData deprecated');\n return this.applyTransaction(rowDataTransaction);\n };\n /** Same as `applyTransaction` except executes asynchronously for efficiency. */\n\n\n GridApi.prototype.applyTransactionAsync = function (rowDataTransaction, callback) {\n if (!this.clientSideRowModel) {\n console.error('AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.');\n return;\n }\n\n this.clientSideRowModel.batchUpdateRowData(rowDataTransaction, callback);\n };\n /** Executes any remaining asynchronous grid transactions, if any are waiting to be executed. */\n\n\n GridApi.prototype.flushAsyncTransactions = function () {\n if (!this.clientSideRowModel) {\n console.error('AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.');\n return;\n }\n\n this.clientSideRowModel.flushAsyncTransactions();\n };\n /** @deprecated */\n\n\n GridApi.prototype.batchUpdateRowData = function (rowDataTransaction, callback) {\n var message = '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.';\n doOnce(function () {\n return console.warn(message);\n }, 'batchUpdateRowData deprecated');\n this.applyTransactionAsync(rowDataTransaction, callback);\n };\n /** @deprecated */\n\n\n GridApi.prototype.insertItemsAtIndex = function (index, items, skipRefresh) {\n console.warn('AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead.');\n this.updateRowData({\n add: items,\n addIndex: index,\n update: null,\n remove: null\n });\n };\n /** @deprecated */\n\n\n GridApi.prototype.removeItems = function (rowNodes, skipRefresh) {\n console.warn('AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.');\n var dataToRemove = rowNodes.map(function (rowNode) {\n return rowNode.data;\n });\n this.updateRowData({\n add: null,\n addIndex: null,\n update: null,\n remove: dataToRemove\n });\n };\n /** @deprecated */\n\n\n GridApi.prototype.addItems = function (items, skipRefresh) {\n console.warn('AG Grid: addItems() is deprecated, use updateRowData(transaction) instead.');\n this.updateRowData({\n add: items,\n addIndex: null,\n update: null,\n remove: null\n });\n };\n /** @deprecated */\n\n\n GridApi.prototype.refreshVirtualPageCache = function () {\n console.warn('AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead');\n this.refreshInfiniteCache();\n };\n /** @deprecated */\n\n\n GridApi.prototype.refreshInfinitePageCache = function () {\n console.warn('AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead');\n this.refreshInfiniteCache();\n };\n /**\n * Marks all the currently loaded blocks in the cache for reload.\n * If you have 10 blocks in the cache, all 10 will be marked for reload.\n * The old data will continue to be displayed until the new data is loaded.\n */\n\n\n GridApi.prototype.refreshInfiniteCache = function () {\n if (this.infiniteRowModel) {\n this.infiniteRowModel.refreshCache();\n } else {\n console.warn(\"AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.\");\n }\n };\n /** @deprecated */\n\n\n GridApi.prototype.purgeVirtualPageCache = function () {\n console.warn('AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead');\n this.purgeInfinitePageCache();\n };\n /** @deprecated */\n\n\n GridApi.prototype.purgeInfinitePageCache = function () {\n console.warn('AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead');\n this.purgeInfiniteCache();\n };\n /**\n * Purges the cache.\n * The grid is then told to refresh. Only the blocks required to display the current data on screen are fetched (typically no more than 2).\n * The grid will display nothing while the new blocks are loaded.\n * Use this to immediately remove the old data from the user.\n */\n\n\n GridApi.prototype.purgeInfiniteCache = function () {\n if (this.infiniteRowModel) {\n this.infiniteRowModel.purgeCache();\n } else {\n console.warn(\"AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.\");\n }\n };\n /** @deprecated */\n\n\n GridApi.prototype.purgeEnterpriseCache = function (route) {\n console.warn(\"ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()\");\n this.purgeServerSideCache(route);\n };\n /** @deprecated */\n\n\n GridApi.prototype.purgeServerSideCache = function (route) {\n if (route === void 0) {\n route = [];\n }\n\n if (this.serverSideRowModel) {\n console.warn(\"AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSide({purge: true}) instead.\");\n this.refreshServerSide({\n route: route,\n purge: true\n });\n } else {\n console.warn(\"AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.\");\n }\n };\n /**\n * Refresh a server-side level.\n * If you pass no parameters, then the top level store is purged.\n * To purge a child level, pass in the string of keys to get to the desired level.\n */\n\n\n GridApi.prototype.refreshServerSide = function (params) {\n if (!this.serverSideRowModel) {\n console.warn(\"AG Grid: api.refreshServerSide is only available when rowModelType='serverSide'.\");\n }\n\n this.serverSideRowModel.refreshStore(params);\n };\n /** @deprecated use `refreshServerSide` instead */\n\n\n GridApi.prototype.refreshServerSideStore = function (params) {\n var message = \"AG Grid: Grid API refreshServerSideStore() was renamed to refreshServerSide() in v28.0\";\n doOnce(function () {\n return console.warn(message);\n }, 'refreshServerSideStore-renamed');\n return this.refreshServerSide(params);\n };\n /** @deprecated use `getServerSideGroupLevelState` instead */\n\n\n GridApi.prototype.getServerSideStoreState = function () {\n var message = \"AG Grid: Grid API getServerSideStoreState() was renamed to getServerSideGroupLevelState() in v28.0\";\n doOnce(function () {\n return console.warn(message);\n }, 'getServerSideStoreState-renamed');\n return this.getServerSideGroupLevelState();\n };\n /** Returns info on all server side group levels. */\n\n\n GridApi.prototype.getServerSideGroupLevelState = function () {\n if (!this.serverSideRowModel) {\n console.warn(\"AG Grid: api.getServerSideGroupLevelState is only available when rowModelType='serverSide'.\");\n return [];\n }\n\n return this.serverSideRowModel.getStoreState();\n };\n\n GridApi.prototype.getVirtualRowCount = function () {\n console.warn('AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead');\n return this.getInfiniteRowCount();\n };\n /** The row count defines how many rows the grid allows scrolling to. */\n\n\n GridApi.prototype.getInfiniteRowCount = function () {\n if (this.infiniteRowModel) {\n return this.infiniteRowModel.getRowCount();\n } else {\n console.warn(\"AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.\");\n }\n };\n\n GridApi.prototype.isMaxRowFound = function () {\n console.warn(\"AG Grid: api.isLastRowIndexKnown is deprecated, please use api.isLastRowIndexKnown()\");\n return this.isLastRowIndexKnown();\n };\n /** Returns `true` if grid allows for scrolling past the last row to load more rows, thus providing infinite scroll. */\n\n\n GridApi.prototype.isLastRowIndexKnown = function () {\n if (this.infiniteRowModel) {\n return this.infiniteRowModel.isLastRowIndexKnown();\n } else {\n console.warn(\"AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.\");\n }\n };\n\n GridApi.prototype.setVirtualRowCount = function (rowCount, maxRowFound) {\n console.warn('AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead');\n this.setRowCount(rowCount, maxRowFound);\n };\n\n GridApi.prototype.setInfiniteRowCount = function (rowCount, maxRowFound) {\n console.warn('AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead');\n this.setRowCount(rowCount, maxRowFound);\n };\n /**\n * Sets the `rowCount` and `lastRowIndexKnown` properties.\n * The second parameter, `lastRowIndexKnown`, is optional and if left out, only `rowCount` is set.\n * Set `rowCount` to adjust the height of the vertical scroll.\n * Set `lastRowIndexKnown` to enable / disable searching for more rows.\n * Use this method if you add or remove rows into the dataset and need to reset the number of rows or put the data back into 'look for data' mode.\n */\n\n\n GridApi.prototype.setRowCount = function (rowCount, maxRowFound) {\n if (this.infiniteRowModel) {\n this.infiniteRowModel.setRowCount(rowCount, maxRowFound);\n } else {\n console.warn(\"AG Grid: api.setRowCount is only available for Infinite Row Model.\");\n }\n };\n\n GridApi.prototype.getVirtualPageState = function () {\n console.warn('AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead');\n return this.getCacheBlockState();\n };\n\n GridApi.prototype.getInfinitePageState = function () {\n console.warn('AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead');\n return this.getCacheBlockState();\n };\n /**\n * Returns an object representing the state of the cache. This is useful for debugging and understanding how the cache is working.\n */\n\n\n GridApi.prototype.getCacheBlockState = function () {\n return this.rowNodeBlockLoader.getBlockState();\n };\n\n GridApi.prototype.checkGridSize = function () {\n console.warn(\"in AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything uesful.\");\n };\n\n GridApi.prototype.getFirstRenderedRow = function () {\n console.warn('in AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()');\n return this.getFirstDisplayedRow();\n };\n /** Get the index of the first displayed row due to scrolling (includes invisible rendered rows in the buffer). */\n\n\n GridApi.prototype.getFirstDisplayedRow = function () {\n return this.rowRenderer.getFirstVirtualRenderedRow();\n };\n\n GridApi.prototype.getLastRenderedRow = function () {\n console.warn('in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()');\n return this.getLastDisplayedRow();\n };\n /** Get the index of the last displayed row due to scrolling (includes invisible rendered rows in the buffer). */\n\n\n GridApi.prototype.getLastDisplayedRow = function () {\n return this.rowRenderer.getLastVirtualRenderedRow();\n };\n /** Returns the displayed `RowNode` at the given `index`. */\n\n\n GridApi.prototype.getDisplayedRowAtIndex = function (index) {\n return this.rowModel.getRow(index);\n };\n /** Returns the total number of displayed rows. */\n\n\n GridApi.prototype.getDisplayedRowCount = function () {\n return this.rowModel.getRowCount();\n };\n /**\n * Returns `true` when the last page is known.\n * This will always be `true` if you are using the Client-Side Row Model for pagination.\n * Returns `false` when the last page is not known; this only happens when using Infinite Row Model.\n */\n\n\n GridApi.prototype.paginationIsLastPageFound = function () {\n return this.paginationProxy.isLastPageFound();\n };\n /** Returns how many rows are being shown per page. */\n\n\n GridApi.prototype.paginationGetPageSize = function () {\n return this.paginationProxy.getPageSize();\n };\n /** Sets the `paginationPageSize`, then re-paginates the grid so the changes are applied immediately. */\n\n\n GridApi.prototype.paginationSetPageSize = function (size) {\n this.gridOptionsWrapper.setProperty('paginationPageSize', size);\n };\n /** Returns the 0-based index of the page which is showing. */\n\n\n GridApi.prototype.paginationGetCurrentPage = function () {\n return this.paginationProxy.getCurrentPage();\n };\n /** Returns the total number of pages. Returns `null` if `paginationIsLastPageFound() === false`. */\n\n\n GridApi.prototype.paginationGetTotalPages = function () {\n return this.paginationProxy.getTotalPages();\n };\n /** The total number of rows. Returns `null` if `paginationIsLastPageFound() === false`. */\n\n\n GridApi.prototype.paginationGetRowCount = function () {\n return this.paginationProxy.getMasterRowCount();\n };\n /** Navigates to the next page. */\n\n\n GridApi.prototype.paginationGoToNextPage = function () {\n this.paginationProxy.goToNextPage();\n };\n /** Navigates to the previous page. */\n\n\n GridApi.prototype.paginationGoToPreviousPage = function () {\n this.paginationProxy.goToPreviousPage();\n };\n /** Navigates to the first page. */\n\n\n GridApi.prototype.paginationGoToFirstPage = function () {\n this.paginationProxy.goToFirstPage();\n };\n /** Navigates to the last page. */\n\n\n GridApi.prototype.paginationGoToLastPage = function () {\n this.paginationProxy.goToLastPage();\n };\n /** Goes to the specified page. If the page requested doesn't exist, it will go to the last page. */\n\n\n GridApi.prototype.paginationGoToPage = function (page) {\n this.paginationProxy.goToPage(page);\n };\n\n GridApi.prototype.setRowClass = function (className) {\n this.gridOptionsWrapper.setProperty(GridOptionsWrapper.PROP_ROW_CLASS, className);\n };\n\n __decorate$1r([Optional('immutableService')], GridApi.prototype, \"immutableService\", void 0);\n\n __decorate$1r([Optional('csvCreator')], GridApi.prototype, \"csvCreator\", void 0);\n\n __decorate$1r([Optional('excelCreator')], GridApi.prototype, \"excelCreator\", void 0);\n\n __decorate$1r([Autowired('rowRenderer')], GridApi.prototype, \"rowRenderer\", void 0);\n\n __decorate$1r([Autowired('navigationService')], GridApi.prototype, \"navigationService\", void 0);\n\n __decorate$1r([Autowired('filterManager')], GridApi.prototype, \"filterManager\", void 0);\n\n __decorate$1r([Autowired('columnModel')], GridApi.prototype, \"columnModel\", void 0);\n\n __decorate$1r([Autowired('selectionService')], GridApi.prototype, \"selectionService\", void 0);\n\n __decorate$1r([Autowired('gridOptionsWrapper')], GridApi.prototype, \"gridOptionsWrapper\", void 0);\n\n __decorate$1r([Autowired('valueService')], GridApi.prototype, \"valueService\", void 0);\n\n __decorate$1r([Autowired('alignedGridsService')], GridApi.prototype, \"alignedGridsService\", void 0);\n\n __decorate$1r([Autowired('eventService')], GridApi.prototype, \"eventService\", void 0);\n\n __decorate$1r([Autowired('pinnedRowModel')], GridApi.prototype, \"pinnedRowModel\", void 0);\n\n __decorate$1r([Autowired('context')], GridApi.prototype, \"context\", void 0);\n\n __decorate$1r([Autowired('rowModel')], GridApi.prototype, \"rowModel\", void 0);\n\n __decorate$1r([Autowired('sortController')], GridApi.prototype, \"sortController\", void 0);\n\n __decorate$1r([Autowired('paginationProxy')], GridApi.prototype, \"paginationProxy\", void 0);\n\n __decorate$1r([Autowired('focusService')], GridApi.prototype, \"focusService\", void 0);\n\n __decorate$1r([Autowired('dragAndDropService')], GridApi.prototype, \"dragAndDropService\", void 0);\n\n __decorate$1r([Optional('rangeService')], GridApi.prototype, \"rangeService\", void 0);\n\n __decorate$1r([Optional('clipboardService')], GridApi.prototype, \"clipboardService\", void 0);\n\n __decorate$1r([Optional('aggFuncService')], GridApi.prototype, \"aggFuncService\", void 0);\n\n __decorate$1r([Autowired('menuFactory')], GridApi.prototype, \"menuFactory\", void 0);\n\n __decorate$1r([Optional('contextMenuFactory')], GridApi.prototype, \"contextMenuFactory\", void 0);\n\n __decorate$1r([Autowired('valueCache')], GridApi.prototype, \"valueCache\", void 0);\n\n __decorate$1r([Autowired('animationFrameService')], GridApi.prototype, \"animationFrameService\", void 0);\n\n __decorate$1r([Optional('statusBarService')], GridApi.prototype, \"statusBarService\", void 0);\n\n __decorate$1r([Optional('chartService')], GridApi.prototype, \"chartService\", void 0);\n\n __decorate$1r([Optional('undoRedoService')], GridApi.prototype, \"undoRedoService\", void 0);\n\n __decorate$1r([Optional('rowNodeBlockLoader')], GridApi.prototype, \"rowNodeBlockLoader\", void 0);\n\n __decorate$1r([Optional('ssrmTransactionManager')], GridApi.prototype, \"serverSideTransactionManager\", void 0);\n\n __decorate$1r([Autowired('ctrlsService')], GridApi.prototype, \"ctrlsService\", void 0);\n\n __decorate$1r([Optional('frameworkComponentWrapper')], GridApi.prototype, \"frameworkComponentWrapper\", void 0);\n\n __decorate$1r([PostConstruct], GridApi.prototype, \"init\", null);\n\n __decorate$1r([PreDestroy], GridApi.prototype, \"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid\", null);\n\n GridApi = __decorate$1r([Bean('gridApi')], GridApi);\n return GridApi;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1y = undefined && undefined.__extends || function () {\n var _extendStatics87 = function extendStatics(d, b) {\n _extendStatics87 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics87(d, b);\n };\n\n return function (d, b) {\n _extendStatics87(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SetLeftFeature =\n/** @class */\nfunction (_super) {\n __extends$1y(SetLeftFeature, _super);\n\n function SetLeftFeature(columnOrGroup, eCell, beans, colsSpanning) {\n var _this = _super.call(this) || this;\n\n _this.columnOrGroup = columnOrGroup;\n _this.eCell = eCell;\n _this.ariaEl = _this.eCell.querySelector('[role=columnheader]') || _this.eCell;\n _this.colsSpanning = colsSpanning;\n _this.beans = beans;\n return _this;\n }\n\n SetLeftFeature.prototype.setColsSpanning = function (colsSpanning) {\n this.colsSpanning = colsSpanning;\n this.onLeftChanged();\n };\n\n SetLeftFeature.prototype.getColumnOrGroup = function () {\n if (this.beans.gridOptionsWrapper.isEnableRtl() && this.colsSpanning) {\n return last(this.colsSpanning);\n }\n\n return this.columnOrGroup;\n };\n\n SetLeftFeature.prototype.postConstruct = function () {\n this.addManagedListener(this.columnOrGroup, Column.EVENT_LEFT_CHANGED, this.onLeftChanged.bind(this));\n this.setLeftFirstTime(); // when in print layout, the left position is also dependent on the width of the pinned sections.\n // so additionally update left if any column width changes.\n\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, this.onLeftChanged.bind(this)); // setting left has a dependency on print layout\n\n this.addManagedListener(this.beans.gridOptionsWrapper, GridOptionsWrapper.PROP_DOM_LAYOUT, this.onLeftChanged.bind(this));\n };\n\n SetLeftFeature.prototype.setLeftFirstTime = function () {\n var suppressMoveAnimation = this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation();\n var oldLeftExists = exists(this.columnOrGroup.getOldLeft());\n var animateColumnMove = this.beans.columnAnimationService.isActive() && oldLeftExists && !suppressMoveAnimation;\n\n if (animateColumnMove) {\n this.animateInLeft();\n } else {\n this.onLeftChanged();\n }\n };\n\n SetLeftFeature.prototype.animateInLeft = function () {\n var _this = this;\n\n var colOrGroup = this.getColumnOrGroup();\n var left = colOrGroup.getLeft();\n var oldLeft = colOrGroup.getOldLeft();\n var oldActualLeft = this.modifyLeftForPrintLayout(colOrGroup, oldLeft);\n var actualLeft = this.modifyLeftForPrintLayout(colOrGroup, left);\n this.setLeft(oldActualLeft); // we must keep track of the left we want to set to, as this would otherwise lead to a race\n // condition, if the user changed the left value many times in one VM turn, then we want to make\n // make sure the actualLeft we set in the timeout below (in the next VM turn) is the correct left\n // position. eg if user changes column position twice, then setLeft() below executes twice in next\n // VM turn, but only one (the correct one) should get applied.\n\n this.actualLeft = actualLeft;\n this.beans.columnAnimationService.executeNextVMTurn(function () {\n // test this left value is the latest one to be applied, and if not, do nothing\n if (_this.actualLeft === actualLeft) {\n _this.setLeft(actualLeft);\n }\n });\n };\n\n SetLeftFeature.prototype.onLeftChanged = function () {\n var colOrGroup = this.getColumnOrGroup();\n var left = colOrGroup.getLeft();\n this.actualLeft = this.modifyLeftForPrintLayout(colOrGroup, left);\n this.setLeft(this.actualLeft);\n };\n\n SetLeftFeature.prototype.modifyLeftForPrintLayout = function (colOrGroup, leftPosition) {\n var printLayout = this.beans.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_PRINT;\n\n if (!printLayout) {\n return leftPosition;\n }\n\n if (colOrGroup.getPinned() === Constants.PINNED_LEFT) {\n return leftPosition;\n }\n\n var leftWidth = this.beans.columnModel.getDisplayedColumnsLeftWidth();\n\n if (colOrGroup.getPinned() === Constants.PINNED_RIGHT) {\n var bodyWidth = this.beans.columnModel.getBodyContainerWidth();\n return leftWidth + bodyWidth + leftPosition;\n } // is in body\n\n\n return leftWidth + leftPosition;\n };\n\n SetLeftFeature.prototype.setLeft = function (value) {\n // if the value is null, then that means the column is no longer\n // displayed. there is logic in the rendering to fade these columns\n // out, so we don't try and change their left positions.\n if (exists(value)) {\n this.eCell.style.left = value + \"px\";\n }\n\n var indexColumn;\n\n if (this.columnOrGroup instanceof Column) {\n indexColumn = this.columnOrGroup;\n } else {\n var columnGroup = this.columnOrGroup;\n var children = columnGroup.getLeafColumns();\n\n if (!children.length) {\n return;\n }\n\n if (children.length > 1) {\n setAriaColSpan(this.ariaEl, children.length);\n }\n\n indexColumn = children[0];\n }\n\n var index = this.beans.columnModel.getAriaColumnIndex(indexColumn);\n setAriaColIndex(this.ariaEl, index);\n };\n\n __decorate$1q([PostConstruct], SetLeftFeature.prototype, \"postConstruct\", null);\n\n return SetLeftFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1x = undefined && undefined.__extends || function () {\n var _extendStatics88 = function extendStatics(d, b) {\n _extendStatics88 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics88(d, b);\n };\n\n return function (d, b) {\n _extendStatics88(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar HoverFeature =\n/** @class */\nfunction (_super) {\n __extends$1x(HoverFeature, _super);\n\n function HoverFeature(columns, element) {\n var _this = _super.call(this) || this;\n\n _this.columns = columns;\n _this.element = element;\n return _this;\n }\n\n HoverFeature.prototype.postConstruct = function () {\n if (this.gridOptionsWrapper.isColumnHoverHighlight()) {\n this.addMouseHoverListeners();\n }\n };\n\n HoverFeature.prototype.addMouseHoverListeners = function () {\n this.addManagedListener(this.element, 'mouseout', this.onMouseOut.bind(this));\n this.addManagedListener(this.element, 'mouseover', this.onMouseOver.bind(this));\n };\n\n HoverFeature.prototype.onMouseOut = function () {\n this.columnHoverService.clearMouseOver();\n };\n\n HoverFeature.prototype.onMouseOver = function () {\n this.columnHoverService.setMouseOver(this.columns);\n };\n\n __decorate$1p([Autowired('columnHoverService')], HoverFeature.prototype, \"columnHoverService\", void 0);\n\n __decorate$1p([PostConstruct], HoverFeature.prototype, \"postConstruct\", null);\n\n return HoverFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1w = undefined && undefined.__extends || function () {\n var _extendStatics89 = function extendStatics(d, b) {\n _extendStatics89 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics89(d, b);\n };\n\n return function (d, b) {\n _extendStatics89(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar HeaderFilterCellCtrl =\n/** @class */\nfunction (_super) {\n __extends$1w(HeaderFilterCellCtrl, _super);\n\n function HeaderFilterCellCtrl(column, parentRowCtrl) {\n var _this = _super.call(this, column, parentRowCtrl) || this;\n\n _this.column = column;\n return _this;\n }\n\n HeaderFilterCellCtrl.prototype.setComp = function (comp, eGui, eButtonShowMainFilter, eFloatingFilterBody) {\n _super.prototype.setGui.call(this, eGui);\n\n this.comp = comp;\n this.eButtonShowMainFilter = eButtonShowMainFilter;\n this.eFloatingFilterBody = eFloatingFilterBody;\n var colDef = this.column.getColDef();\n var filterExists = !!colDef.filter || !!colDef.filterFramework;\n var floatingFilterExists = !!colDef.floatingFilter;\n this.active = filterExists && floatingFilterExists;\n this.setupWidth();\n this.setupLeft();\n this.setupHover();\n this.setupFocus();\n this.setupUserComp();\n this.setupSyncWithFilter();\n this.setupUi();\n this.addManagedListener(this.eButtonShowMainFilter, 'click', this.showParentFilter.bind(this));\n };\n\n HeaderFilterCellCtrl.prototype.setupUi = function () {\n this.comp.addOrRemoveButtonWrapperCssClass('ag-hidden', !this.active || this.suppressFilterButton);\n\n if (!this.active) {\n return;\n }\n\n this.comp.addOrRemoveBodyCssClass('ag-floating-filter-full-body', this.suppressFilterButton);\n this.comp.addOrRemoveBodyCssClass('ag-floating-filter-body', !this.suppressFilterButton);\n var eMenuIcon = createIconNoSpan('filter', this.gridOptionsWrapper, this.column);\n\n if (eMenuIcon) {\n this.eButtonShowMainFilter.appendChild(eMenuIcon);\n }\n };\n\n HeaderFilterCellCtrl.prototype.setupFocus = function () {\n this.createManagedBean(new ManagedFocusFeature(this.eGui, {\n shouldStopEventPropagation: this.shouldStopEventPropagation.bind(this),\n onTabKeyDown: this.onTabKeyDown.bind(this),\n handleKeyDown: this.handleKeyDown.bind(this),\n onFocusIn: this.onFocusIn.bind(this)\n }));\n };\n\n HeaderFilterCellCtrl.prototype.onTabKeyDown = function (e) {\n var eDocument = this.gridOptionsWrapper.getDocument();\n var activeEl = eDocument.activeElement;\n var wrapperHasFocus = activeEl === this.eGui;\n\n if (wrapperHasFocus) {\n return;\n }\n\n var nextFocusableEl = this.focusService.findNextFocusableElement(this.eGui, null, e.shiftKey);\n\n if (nextFocusableEl) {\n this.beans.headerNavigationService.scrollToColumn(this.column);\n e.preventDefault();\n nextFocusableEl.focus();\n return;\n }\n\n var nextFocusableColumn = this.findNextColumnWithFloatingFilter(e.shiftKey);\n\n if (!nextFocusableColumn) {\n return;\n }\n\n if (this.focusService.focusHeaderPosition({\n headerPosition: {\n headerRowIndex: this.getParentRowCtrl().getRowIndex(),\n column: nextFocusableColumn\n },\n event: e\n })) {\n e.preventDefault();\n }\n };\n\n HeaderFilterCellCtrl.prototype.findNextColumnWithFloatingFilter = function (backwards) {\n var columModel = this.beans.columnModel;\n var nextCol = this.column;\n\n do {\n nextCol = backwards ? columModel.getDisplayedColBefore(nextCol) : columModel.getDisplayedColAfter(nextCol);\n\n if (!nextCol) {\n break;\n }\n } while (!nextCol.getColDef().filter || !nextCol.getColDef().floatingFilter);\n\n return nextCol;\n };\n\n HeaderFilterCellCtrl.prototype.handleKeyDown = function (e) {\n _super.prototype.handleKeyDown.call(this, e);\n\n var wrapperHasFocus = this.getWrapperHasFocus();\n\n switch (e.key) {\n case KeyCode.UP:\n case KeyCode.DOWN:\n if (!wrapperHasFocus) {\n e.preventDefault();\n }\n\n case KeyCode.LEFT:\n case KeyCode.RIGHT:\n if (wrapperHasFocus) {\n return;\n }\n\n e.stopPropagation();\n\n case KeyCode.ENTER:\n if (wrapperHasFocus) {\n if (this.focusService.focusInto(this.eGui)) {\n e.preventDefault();\n }\n }\n\n break;\n\n case KeyCode.ESCAPE:\n if (!wrapperHasFocus) {\n this.eGui.focus();\n }\n\n }\n };\n\n HeaderFilterCellCtrl.prototype.onFocusIn = function (e) {\n var isRelatedWithin = this.eGui.contains(e.relatedTarget); // when the focus is already within the component,\n // we default to the browser's behavior\n\n if (isRelatedWithin) {\n return;\n }\n\n var notFromHeaderWrapper = !!e.relatedTarget && !e.relatedTarget.classList.contains('ag-floating-filter');\n var fromWithinHeader = !!e.relatedTarget && isElementChildOfClass(e.relatedTarget, 'ag-floating-filter');\n\n if (notFromHeaderWrapper && fromWithinHeader && e.target === this.eGui) {\n var lastFocusEvent = this.lastFocusEvent;\n var fromTab = !!(lastFocusEvent && lastFocusEvent.key === KeyCode.TAB);\n\n if (lastFocusEvent && fromTab) {\n var shouldFocusLast = lastFocusEvent.shiftKey;\n this.focusService.focusInto(this.eGui, shouldFocusLast);\n }\n }\n\n var rowIndex = this.getRowIndex();\n this.beans.focusService.setFocusedHeader(rowIndex, this.column);\n };\n\n HeaderFilterCellCtrl.prototype.setupHover = function () {\n var _this = this;\n\n this.createManagedBean(new HoverFeature([this.column], this.eGui));\n\n var listener = function listener() {\n if (!_this.gridOptionsWrapper.isColumnHoverHighlight()) {\n return;\n }\n\n var hovered = _this.columnHoverService.isHovered(_this.column);\n\n _this.comp.addOrRemoveCssClass('ag-column-hover', hovered);\n };\n\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_HOVER_CHANGED, listener);\n listener();\n };\n\n HeaderFilterCellCtrl.prototype.setupLeft = function () {\n var setLeftFeature = new SetLeftFeature(this.column, this.eGui, this.beans);\n this.createManagedBean(setLeftFeature);\n };\n\n HeaderFilterCellCtrl.prototype.setupUserComp = function () {\n var _this = this;\n\n if (!this.active) {\n return;\n }\n\n var colDef = this.column.getColDef();\n var filterParams = this.filterManager.createFilterParams(this.column, colDef);\n var finalFilterParams = this.userComponentFactory.mergeParamsWithApplicationProvidedParams(colDef, FilterComponent, filterParams);\n var defaultFloatingFilterType = this.userComponentFactory.getDefaultFloatingFilterType(colDef);\n\n if (defaultFloatingFilterType == null) {\n defaultFloatingFilterType = 'agReadOnlyFloatingFilter';\n }\n\n var params = {\n column: this.column,\n filterParams: finalFilterParams,\n currentParentModel: function currentParentModel() {\n return _this.currentParentModel();\n },\n parentFilterInstance: function parentFilterInstance(cb) {\n return _this.parentFilterInstance(cb);\n },\n showParentFilter: function showParentFilter() {\n return _this.showParentFilter();\n },\n suppressFilterButton: false // This one might be overridden from the colDef\n\n }; // this is unusual - we need a params value OUTSIDE the component the params are for.\n // the params are for the floating filter component, but this property is actually for the wrapper.\n\n this.suppressFilterButton = colDef.floatingFilterComponentParams ? !!colDef.floatingFilterComponentParams.suppressFilterButton : false;\n var compDetails = this.userComponentFactory.getFloatingFilterCompDetails(colDef, params, defaultFloatingFilterType);\n\n if (compDetails) {\n this.comp.setCompDetails(compDetails);\n }\n };\n\n HeaderFilterCellCtrl.prototype.currentParentModel = function () {\n var filterComponent = this.getFilterComponent(false);\n return filterComponent ? filterComponent.resolveNow(null, function (filter) {\n return filter && filter.getModel();\n }) : null;\n };\n\n HeaderFilterCellCtrl.prototype.getFilterComponent = function (createIfDoesNotExist) {\n if (createIfDoesNotExist === void 0) {\n createIfDoesNotExist = true;\n }\n\n return this.filterManager.getFilterComponent(this.column, 'NO_UI', createIfDoesNotExist);\n };\n\n HeaderFilterCellCtrl.prototype.parentFilterInstance = function (callback) {\n var filterComponent = this.getFilterComponent();\n\n if (filterComponent == null) {\n return;\n }\n\n filterComponent.then(function (instance) {\n callback(unwrapUserComp(instance));\n });\n };\n\n HeaderFilterCellCtrl.prototype.showParentFilter = function () {\n var eventSource = this.suppressFilterButton ? this.eFloatingFilterBody : this.eButtonShowMainFilter;\n this.menuFactory.showMenuAfterButtonClick(this.column, eventSource, 'floatingFilter', 'filterMenuTab', ['filterMenuTab']);\n };\n\n HeaderFilterCellCtrl.prototype.setupSyncWithFilter = function () {\n var _this = this;\n\n if (!this.active) {\n return;\n }\n\n var syncWithFilter = function syncWithFilter(filterChangedEvent) {\n var compPromise = _this.comp.getFloatingFilterComp();\n\n if (!compPromise) {\n return;\n }\n\n var parentModel = _this.currentParentModel();\n\n compPromise.then(function (comp) {\n if (comp) {\n comp.onParentModelChanged(parentModel, filterChangedEvent);\n }\n });\n };\n\n this.addManagedListener(this.column, Column.EVENT_FILTER_CHANGED, syncWithFilter);\n\n if (this.filterManager.isFilterActive(this.column)) {\n syncWithFilter(null);\n }\n };\n\n HeaderFilterCellCtrl.prototype.setupWidth = function () {\n var _this = this;\n\n var listener = function listener() {\n var width = _this.column.getActualWidth() + \"px\";\n\n _this.comp.setWidth(width);\n };\n\n this.addManagedListener(this.column, Column.EVENT_WIDTH_CHANGED, listener);\n listener();\n };\n\n __decorate$1o([Autowired('filterManager')], HeaderFilterCellCtrl.prototype, \"filterManager\", void 0);\n\n __decorate$1o([Autowired('columnHoverService')], HeaderFilterCellCtrl.prototype, \"columnHoverService\", void 0);\n\n __decorate$1o([Autowired('menuFactory')], HeaderFilterCellCtrl.prototype, \"menuFactory\", void 0);\n\n return HeaderFilterCellCtrl;\n}(AbstractHeaderCellCtrl);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1v = undefined && undefined.__extends || function () {\n var _extendStatics90 = function extendStatics(d, b) {\n _extendStatics90 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics90(d, b);\n };\n\n return function (d, b) {\n _extendStatics90(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ResizeFeature =\n/** @class */\nfunction (_super) {\n __extends$1v(ResizeFeature, _super);\n\n function ResizeFeature(pinned, column, eResize, comp, ctrl) {\n var _this = _super.call(this) || this;\n\n _this.pinned = pinned;\n _this.column = column;\n _this.eResize = eResize;\n _this.comp = comp;\n _this.ctrl = ctrl;\n return _this;\n }\n\n ResizeFeature.prototype.postConstruct = function () {\n var _this = this;\n\n var colDef = this.column.getColDef();\n var destroyResizeFuncs = [];\n var canResize;\n var canAutosize;\n\n var addResize = function addResize() {\n setDisplayed(_this.eResize, canResize);\n\n if (!canResize) {\n return;\n }\n\n var finishedWithResizeFunc = _this.horizontalResizeService.addResizeBar({\n eResizeBar: _this.eResize,\n onResizeStart: _this.onResizeStart.bind(_this),\n onResizing: _this.onResizing.bind(_this, false),\n onResizeEnd: _this.onResizing.bind(_this, true)\n });\n\n destroyResizeFuncs.push(finishedWithResizeFunc);\n\n if (canAutosize) {\n var skipHeaderOnAutoSize_1 = _this.gridOptionsWrapper.isSkipHeaderOnAutoSize();\n\n var autoSizeColListener_1 = function autoSizeColListener_1() {\n _this.columnModel.autoSizeColumn(_this.column, skipHeaderOnAutoSize_1, \"uiColumnResized\");\n };\n\n _this.eResize.addEventListener('dblclick', autoSizeColListener_1);\n\n var touchListener_1 = new TouchListener(_this.eResize);\n touchListener_1.addEventListener(TouchListener.EVENT_DOUBLE_TAP, autoSizeColListener_1);\n\n _this.addDestroyFunc(function () {\n _this.eResize.removeEventListener('dblclick', autoSizeColListener_1);\n\n touchListener_1.removeEventListener(TouchListener.EVENT_DOUBLE_TAP, autoSizeColListener_1);\n touchListener_1.destroy();\n });\n }\n };\n\n var removeResize = function removeResize() {\n destroyResizeFuncs.forEach(function (f) {\n return f();\n });\n destroyResizeFuncs.length = 0;\n };\n\n var refresh = function refresh() {\n var resize = _this.column.isResizable();\n\n var autoSize = !_this.gridOptionsWrapper.isSuppressAutoSize() && !colDef.suppressAutoSize;\n var propertyChange = resize !== canResize || autoSize !== canAutosize;\n\n if (propertyChange) {\n canResize = resize;\n canAutosize = autoSize;\n removeResize();\n addResize();\n }\n };\n\n refresh();\n this.addDestroyFunc(removeResize);\n this.ctrl.addRefreshFunction(refresh);\n };\n\n ResizeFeature.prototype.onResizing = function (finished, resizeAmount) {\n var resizeAmountNormalised = this.normaliseResizeAmount(resizeAmount);\n var columnWidths = [{\n key: this.column,\n newWidth: this.resizeStartWidth + resizeAmountNormalised\n }];\n this.columnModel.setColumnWidths(columnWidths, this.resizeWithShiftKey, finished, \"uiColumnDragged\");\n\n if (finished) {\n this.comp.addOrRemoveCssClass('ag-column-resizing', false);\n }\n };\n\n ResizeFeature.prototype.onResizeStart = function (shiftKey) {\n this.resizeStartWidth = this.column.getActualWidth();\n this.resizeWithShiftKey = shiftKey;\n this.comp.addOrRemoveCssClass('ag-column-resizing', true);\n }; // optionally inverts the drag, depending on pinned and RTL\n // note - this method is duplicated in RenderedHeaderGroupCell - should refactor out?\n\n\n ResizeFeature.prototype.normaliseResizeAmount = function (dragChange) {\n var result = dragChange;\n var notPinningLeft = this.pinned !== Constants.PINNED_LEFT;\n var pinningRight = this.pinned === Constants.PINNED_RIGHT;\n\n if (this.gridOptionsWrapper.isEnableRtl()) {\n // for RTL, dragging left makes the col bigger, except when pinning left\n if (notPinningLeft) {\n result *= -1;\n }\n } else {\n // for LTR (ie normal), dragging left makes the col smaller, except when pinning right\n if (pinningRight) {\n result *= -1;\n }\n }\n\n return result;\n };\n\n __decorate$1n([Autowired('horizontalResizeService')], ResizeFeature.prototype, \"horizontalResizeService\", void 0);\n\n __decorate$1n([Autowired('columnModel')], ResizeFeature.prototype, \"columnModel\", void 0);\n\n __decorate$1n([PostConstruct], ResizeFeature.prototype, \"postConstruct\", null);\n\n return ResizeFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1u = undefined && undefined.__extends || function () {\n var _extendStatics91 = function extendStatics(d, b) {\n _extendStatics91 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics91(d, b);\n };\n\n return function (d, b) {\n _extendStatics91(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar AgCheckbox =\n/** @class */\nfunction (_super) {\n __extends$1u(AgCheckbox, _super);\n\n function AgCheckbox(config, className, inputType) {\n if (className === void 0) {\n className = 'ag-checkbox';\n }\n\n if (inputType === void 0) {\n inputType = 'checkbox';\n }\n\n var _this = _super.call(this, config, className, inputType) || this;\n\n _this.labelAlignment = 'right';\n _this.selected = false;\n _this.readOnly = false;\n _this.passive = false;\n return _this;\n }\n\n AgCheckbox.prototype.addInputListeners = function () {\n this.addManagedListener(this.eInput, 'click', this.onCheckboxClick.bind(this));\n this.addManagedListener(this.eLabel, 'click', this.toggle.bind(this));\n };\n\n AgCheckbox.prototype.getNextValue = function () {\n return this.selected === undefined ? true : !this.selected;\n };\n\n AgCheckbox.prototype.setPassive = function (passive) {\n this.passive = passive;\n };\n\n AgCheckbox.prototype.isReadOnly = function () {\n return this.readOnly;\n };\n\n AgCheckbox.prototype.setReadOnly = function (readOnly) {\n this.eWrapper.classList.toggle('ag-disabled', readOnly);\n this.eInput.disabled = readOnly;\n this.readOnly = readOnly;\n };\n\n AgCheckbox.prototype.setDisabled = function (disabled) {\n this.eWrapper.classList.toggle('ag-disabled', disabled);\n return _super.prototype.setDisabled.call(this, disabled);\n };\n\n AgCheckbox.prototype.toggle = function () {\n if (this.eInput.disabled) {\n return;\n }\n\n var previousValue = this.isSelected();\n var nextValue = this.getNextValue();\n\n if (this.passive) {\n this.dispatchChange(nextValue, previousValue);\n } else {\n this.setValue(nextValue);\n }\n };\n\n AgCheckbox.prototype.getValue = function () {\n return this.isSelected();\n };\n\n AgCheckbox.prototype.setValue = function (value, silent) {\n this.refreshSelectedClass(value);\n this.setSelected(value, silent);\n return this;\n };\n\n AgCheckbox.prototype.setName = function (name) {\n var input = this.getInputElement();\n input.name = name;\n return this;\n };\n\n AgCheckbox.prototype.isSelected = function () {\n return this.selected;\n };\n\n AgCheckbox.prototype.setSelected = function (selected, silent) {\n if (this.isSelected() === selected) {\n return;\n }\n\n this.previousValue = this.isSelected();\n selected = this.selected = typeof selected === 'boolean' ? selected : undefined;\n this.eInput.checked = selected;\n this.eInput.indeterminate = selected === undefined;\n\n if (!silent) {\n this.dispatchChange(this.selected, this.previousValue);\n }\n };\n\n AgCheckbox.prototype.dispatchChange = function (selected, previousValue, event) {\n this.dispatchEvent({\n type: AgCheckbox.EVENT_CHANGED,\n selected: selected,\n previousValue: previousValue,\n event: event\n });\n var input = this.getInputElement();\n var checkboxChangedEvent = {\n type: Events.EVENT_CHECKBOX_CHANGED,\n id: input.id,\n name: input.name,\n selected: selected,\n previousValue: previousValue\n };\n this.eventService.dispatchEvent(checkboxChangedEvent);\n };\n\n AgCheckbox.prototype.onCheckboxClick = function (e) {\n if (this.passive || this.eInput.disabled) {\n return;\n }\n\n var previousValue = this.isSelected();\n var selected = this.selected = e.target.checked;\n this.refreshSelectedClass(selected);\n this.dispatchChange(selected, previousValue, e);\n };\n\n AgCheckbox.prototype.refreshSelectedClass = function (value) {\n this.eWrapper.classList.toggle('ag-checked', value === true);\n this.eWrapper.classList.toggle('ag-indeterminate', value == null);\n };\n\n return AgCheckbox;\n}(AgAbstractInputField);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1t = undefined && undefined.__extends || function () {\n var _extendStatics92 = function extendStatics(d, b) {\n _extendStatics92 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics92(d, b);\n };\n\n return function (d, b) {\n _extendStatics92(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SelectAllFeature =\n/** @class */\nfunction (_super) {\n __extends$1t(SelectAllFeature, _super);\n\n function SelectAllFeature(column) {\n var _this = _super.call(this) || this;\n\n _this.cbSelectAllVisible = false;\n _this.processingEventFromCheckbox = false;\n _this.column = column;\n var colDef = column.getColDef();\n _this.filteredOnly = colDef ? !!colDef.headerCheckboxSelectionFilteredOnly : false;\n return _this;\n }\n\n SelectAllFeature.prototype.onSpaceKeyPressed = function (e) {\n var checkbox = this.cbSelectAll;\n var eDocument = this.gridOptionsWrapper.getDocument();\n\n if (checkbox.isDisplayed() && !checkbox.getGui().contains(eDocument.activeElement)) {\n e.preventDefault();\n checkbox.setValue(!checkbox.getValue());\n }\n };\n\n SelectAllFeature.prototype.getCheckboxGui = function () {\n return this.cbSelectAll.getGui();\n };\n\n SelectAllFeature.prototype.setComp = function (ctrl) {\n this.headerCellCtrl = ctrl;\n this.cbSelectAll = this.createManagedBean(new AgCheckbox());\n this.cbSelectAll.addCssClass('ag-header-select-all');\n setAriaRole(this.cbSelectAll.getGui(), 'presentation');\n this.showOrHideSelectAll();\n this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.showOrHideSelectAll.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, this.showOrHideSelectAll.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_SELECTION_CHANGED, this.onSelectionChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_MODEL_UPDATED, this.onModelChanged.bind(this));\n this.addManagedListener(this.cbSelectAll, AgCheckbox.EVENT_CHANGED, this.onCbSelectAll.bind(this));\n this.cbSelectAll.getInputElement().setAttribute('tabindex', '-1');\n this.refreshSelectAllLabel();\n };\n\n SelectAllFeature.prototype.showOrHideSelectAll = function () {\n this.cbSelectAllVisible = this.isCheckboxSelection();\n this.cbSelectAll.setDisplayed(this.cbSelectAllVisible);\n\n if (this.cbSelectAllVisible) {\n // in case user is trying this feature with the wrong model type\n this.checkRightRowModelType(); // make sure checkbox is showing the right state\n\n this.updateStateOfCheckbox();\n }\n\n this.refreshSelectAllLabel();\n };\n\n SelectAllFeature.prototype.onModelChanged = function () {\n if (!this.cbSelectAllVisible) {\n return;\n }\n\n this.updateStateOfCheckbox();\n };\n\n SelectAllFeature.prototype.onSelectionChanged = function () {\n if (!this.cbSelectAllVisible) {\n return;\n }\n\n this.updateStateOfCheckbox();\n };\n\n SelectAllFeature.prototype.getNextCheckboxState = function (selectionCount) {\n // if no rows, always have it unselected\n if (selectionCount.selected === 0 && selectionCount.notSelected === 0) {\n return false;\n } // if mix of selected and unselected, this is the tri-state\n\n\n if (selectionCount.selected > 0 && selectionCount.notSelected > 0) {\n return null;\n } // only selected\n\n\n if (selectionCount.selected > 0) {\n return true;\n } // nothing selected\n\n\n return false;\n };\n\n SelectAllFeature.prototype.updateStateOfCheckbox = function () {\n if (this.processingEventFromCheckbox) {\n return;\n }\n\n this.processingEventFromCheckbox = true;\n var selectionCount = this.getSelectionCount();\n var allSelected = this.getNextCheckboxState(selectionCount);\n this.cbSelectAll.setValue(allSelected);\n this.refreshSelectAllLabel();\n this.processingEventFromCheckbox = false;\n };\n\n SelectAllFeature.prototype.refreshSelectAllLabel = function () {\n if (!this.cbSelectAllVisible) {\n this.headerCellCtrl.setAriaDescriptionProperty('selectAll', null);\n } else {\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var checked = this.cbSelectAll.getValue();\n var ariaStatus = checked ? translate('ariaChecked', 'checked') : translate('ariaUnchecked', 'unchecked');\n var ariaLabel = translate('ariaRowSelectAll', 'Press Space to toggle all rows selection');\n this.headerCellCtrl.setAriaDescriptionProperty('selectAll', ariaLabel + \" (\" + ariaStatus + \")\");\n }\n\n this.headerCellCtrl.refreshAriaDescription();\n };\n\n SelectAllFeature.prototype.getSelectionCount = function () {\n var _this = this;\n\n var selectedCount = 0;\n var notSelectedCount = 0;\n\n var callback = function callback(node) {\n if (_this.gridOptionsWrapper.isGroupSelectsChildren() && node.group) {\n return;\n }\n\n if (node.isSelected()) {\n selectedCount++;\n } else if (!node.selectable) ;else {\n notSelectedCount++;\n }\n };\n\n if (this.filteredOnly) {\n this.gridApi.forEachNodeAfterFilter(callback);\n } else {\n this.gridApi.forEachNode(callback);\n }\n\n return {\n notSelected: notSelectedCount,\n selected: selectedCount\n };\n };\n\n SelectAllFeature.prototype.checkRightRowModelType = function () {\n var rowModelType = this.rowModel.getType();\n var rowModelMatches = rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE;\n\n if (!rowModelMatches) {\n console.warn(\"AG Grid: selectAllCheckbox is only available if using normal row model, you are using \" + rowModelType);\n }\n };\n\n SelectAllFeature.prototype.onCbSelectAll = function () {\n if (this.processingEventFromCheckbox) {\n return;\n }\n\n if (!this.cbSelectAllVisible) {\n return;\n }\n\n var value = this.cbSelectAll.getValue();\n\n if (value) {\n this.selectionService.selectAllRowNodes(this.filteredOnly);\n } else {\n this.selectionService.deselectAllRowNodes(this.filteredOnly);\n }\n };\n\n SelectAllFeature.prototype.isCheckboxSelection = function () {\n var result = this.column.getColDef().headerCheckboxSelection;\n\n if (typeof result === 'function') {\n var func = result;\n var params = {\n column: this.column,\n colDef: this.column.getColDef(),\n columnApi: this.columnApi,\n api: this.gridApi,\n context: this.gridOptionsWrapper.getContext()\n };\n result = func(params);\n }\n\n if (result) {\n if (this.gridOptionsWrapper.isRowModelServerSide()) {\n console.warn('AG Grid: headerCheckboxSelection is not supported for Server Side Row Model');\n return false;\n }\n\n if (this.gridOptionsWrapper.isRowModelInfinite()) {\n console.warn('AG Grid: headerCheckboxSelection is not supported for Infinite Row Model');\n return false;\n }\n\n if (this.gridOptionsWrapper.isRowModelViewport()) {\n console.warn('AG Grid: headerCheckboxSelection is not supported for Viewport Row Model');\n return false;\n } // otherwise the row model is compatible, so return true\n\n\n return true;\n }\n\n return false;\n };\n\n __decorate$1m([Autowired('gridApi')], SelectAllFeature.prototype, \"gridApi\", void 0);\n\n __decorate$1m([Autowired('columnApi')], SelectAllFeature.prototype, \"columnApi\", void 0);\n\n __decorate$1m([Autowired('rowModel')], SelectAllFeature.prototype, \"rowModel\", void 0);\n\n __decorate$1m([Autowired('selectionService')], SelectAllFeature.prototype, \"selectionService\", void 0);\n\n return SelectAllFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1s = undefined && undefined.__extends || function () {\n var _extendStatics93 = function extendStatics(d, b) {\n _extendStatics93 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics93(d, b);\n };\n\n return function (d, b) {\n _extendStatics93(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar HeaderCellCtrl =\n/** @class */\nfunction (_super) {\n __extends$1s(HeaderCellCtrl, _super);\n\n function HeaderCellCtrl(column, parentRowCtrl) {\n var _this = _super.call(this, column, parentRowCtrl) || this;\n\n _this.refreshFunctions = [];\n _this.userHeaderClasses = new Set();\n _this.ariaDescriptionProperties = new Map();\n _this.column = column;\n return _this;\n }\n\n HeaderCellCtrl.prototype.setComp = function (comp, eGui, eResize, eHeaderCompWrapper) {\n var _this = this;\n\n _super.prototype.setGui.call(this, eGui);\n\n this.comp = comp;\n this.updateState();\n this.setupWidth();\n this.setupMovingCss();\n this.setupMenuClass();\n this.setupSortableClass();\n this.setupWrapTextClass();\n this.setupAutoHeight(eHeaderCompWrapper);\n this.addColumnHoverListener();\n this.setupFilterCss();\n this.setupColId();\n this.setupClassesFromColDef();\n this.setupTooltip();\n this.addActiveHeaderMouseListeners();\n this.setupSelectAll();\n this.setupUserComp();\n this.refreshAria();\n this.createManagedBean(new ResizeFeature(this.getPinned(), this.column, eResize, comp, this));\n this.createManagedBean(new HoverFeature([this.column], eGui));\n this.createManagedBean(new SetLeftFeature(this.column, eGui, this.beans));\n this.createManagedBean(new ManagedFocusFeature(eGui, {\n shouldStopEventPropagation: function shouldStopEventPropagation(e) {\n return _this.shouldStopEventPropagation(e);\n },\n onTabKeyDown: function onTabKeyDown() {\n return null;\n },\n handleKeyDown: this.handleKeyDown.bind(this),\n onFocusIn: this.onFocusIn.bind(this),\n onFocusOut: this.onFocusOut.bind(this)\n }));\n this.addManagedListener(this.column, Column.EVENT_COL_DEF_CHANGED, this.onColDefChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_VALUE_CHANGED, this.onColumnValueChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.onColumnRowGroupChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_CHANGED, this.onColumnPivotChanged.bind(this));\n };\n\n HeaderCellCtrl.prototype.setupUserComp = function () {\n var compDetails = this.lookupUserCompDetails();\n this.setCompDetails(compDetails);\n };\n\n HeaderCellCtrl.prototype.setCompDetails = function (compDetails) {\n this.userCompDetails = compDetails;\n this.comp.setUserCompDetails(compDetails);\n };\n\n HeaderCellCtrl.prototype.lookupUserCompDetails = function () {\n var params = this.createParams();\n var colDef = this.column.getColDef();\n return this.userComponentFactory.getHeaderCompDetails(colDef, params);\n };\n\n HeaderCellCtrl.prototype.createParams = function () {\n var _this = this;\n\n var colDef = this.column.getColDef();\n var params = {\n column: this.column,\n displayName: this.displayName,\n enableSorting: colDef.sortable,\n enableMenu: this.menuEnabled,\n showColumnMenu: function showColumnMenu(source) {\n _this.gridApi.showColumnMenuAfterButtonClick(_this.column, source);\n },\n progressSort: function progressSort(multiSort) {\n _this.sortController.progressSort(_this.column, !!multiSort, \"uiColumnSorted\");\n },\n setSort: function setSort(sort, multiSort) {\n _this.sortController.setSortForColumn(_this.column, sort, !!multiSort, \"uiColumnSorted\");\n },\n api: this.gridApi,\n columnApi: this.columnApi,\n context: this.gridOptionsWrapper.getContext(),\n eGridHeader: this.getGui()\n };\n return params;\n };\n\n HeaderCellCtrl.prototype.setupSelectAll = function () {\n this.selectAllFeature = this.createManagedBean(new SelectAllFeature(this.column));\n this.selectAllFeature.setComp(this);\n };\n\n HeaderCellCtrl.prototype.getSelectAllGui = function () {\n return this.selectAllFeature.getCheckboxGui();\n };\n\n HeaderCellCtrl.prototype.handleKeyDown = function (e) {\n _super.prototype.handleKeyDown.call(this, e);\n\n if (e.key === KeyCode.SPACE) {\n this.selectAllFeature.onSpaceKeyPressed(e);\n }\n\n if (e.key === KeyCode.ENTER) {\n this.onEnterKeyPressed(e);\n }\n };\n\n HeaderCellCtrl.prototype.onEnterKeyPressed = function (e) {\n /// THIS IS BAD - we are assuming the header is not a user provided comp\n var headerComp = this.comp.getUserCompInstance();\n\n if (!headerComp) {\n return;\n }\n\n if (e.ctrlKey || e.metaKey) {\n if (this.menuEnabled && headerComp.showMenu) {\n e.preventDefault();\n headerComp.showMenu();\n }\n } else if (this.sortable) {\n var multiSort = e.shiftKey;\n this.sortController.progressSort(this.column, multiSort, \"uiColumnSorted\");\n }\n };\n\n HeaderCellCtrl.prototype.isMenuEnabled = function () {\n return this.menuEnabled;\n };\n\n HeaderCellCtrl.prototype.onFocusIn = function (e) {\n if (!this.getGui().contains(e.relatedTarget)) {\n var rowIndex = this.getRowIndex();\n this.focusService.setFocusedHeader(rowIndex, this.column);\n }\n\n this.setActiveHeader(true);\n };\n\n HeaderCellCtrl.prototype.onFocusOut = function (e) {\n if (this.getGui().contains(e.relatedTarget)) {\n return;\n }\n\n this.setActiveHeader(false);\n };\n\n HeaderCellCtrl.prototype.setupTooltip = function () {\n var _this = this;\n\n var tooltipCtrl = {\n getColumn: function getColumn() {\n return _this.column;\n },\n getColDef: function getColDef() {\n return _this.column.getColDef();\n },\n getGui: function getGui() {\n return _this.eGui;\n },\n getLocation: function getLocation() {\n return 'header';\n },\n getTooltipValue: function getTooltipValue() {\n var res = _this.column.getColDef().headerTooltip;\n\n return res;\n }\n };\n var tooltipFeature = this.createManagedBean(new TooltipFeature(tooltipCtrl, this.beans));\n tooltipFeature.setComp(this.comp);\n this.refreshFunctions.push(function () {\n return tooltipFeature.refreshToolTip();\n });\n };\n\n HeaderCellCtrl.prototype.setupClassesFromColDef = function () {\n var _this = this;\n\n var refreshHeaderClasses = function refreshHeaderClasses() {\n var colDef = _this.column.getColDef();\n\n var goa = _this.gridOptionsWrapper;\n var classes = CssClassApplier.getHeaderClassesFromColDef(colDef, goa, _this.column, null);\n var oldClasses = _this.userHeaderClasses;\n _this.userHeaderClasses = new Set(classes);\n classes.forEach(function (c) {\n if (oldClasses.has(c)) {\n // class already added, no need to apply it, but remove from old set\n oldClasses.delete(c);\n } else {\n // class new since last time, so apply it\n _this.comp.addOrRemoveCssClass(c, true);\n }\n }); // now old set only has classes that were applied last time, but not this time, so remove them\n\n oldClasses.forEach(function (c) {\n return _this.comp.addOrRemoveCssClass(c, false);\n });\n };\n\n this.refreshFunctions.push(refreshHeaderClasses);\n refreshHeaderClasses();\n };\n\n HeaderCellCtrl.prototype.setDragSource = function (eSource) {\n var _this = this;\n\n this.dragSourceElement = eSource;\n this.removeDragSource();\n\n if (!eSource) {\n return;\n }\n\n if (!this.draggable) {\n return;\n }\n\n var hideColumnOnExit = !this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns();\n this.moveDragSource = {\n type: DragSourceType.HeaderCell,\n eElement: eSource,\n defaultIconName: hideColumnOnExit ? DragAndDropService.ICON_HIDE : DragAndDropService.ICON_NOT_ALLOWED,\n getDragItem: function getDragItem() {\n return _this.createDragItem();\n },\n dragItemName: this.displayName,\n onDragStarted: function onDragStarted() {\n return _this.column.setMoving(true, \"uiColumnMoved\");\n },\n onDragStopped: function onDragStopped() {\n return _this.column.setMoving(false, \"uiColumnMoved\");\n },\n onGridEnter: function onGridEnter(dragItem) {\n var _a, _b;\n\n if (hideColumnOnExit) {\n var unlockedColumns = ((_b = (_a = dragItem) === null || _a === void 0 ? void 0 : _a.columns) === null || _b === void 0 ? void 0 : _b.filter(function (col) {\n return !col.getColDef().lockVisible;\n })) || [];\n\n _this.columnModel.setColumnsVisible(unlockedColumns, true, \"uiColumnMoved\");\n }\n },\n onGridExit: function onGridExit(dragItem) {\n var _a, _b;\n\n if (hideColumnOnExit) {\n var unlockedColumns = ((_b = (_a = dragItem) === null || _a === void 0 ? void 0 : _a.columns) === null || _b === void 0 ? void 0 : _b.filter(function (col) {\n return !col.getColDef().lockVisible;\n })) || [];\n\n _this.columnModel.setColumnsVisible(unlockedColumns, false, \"uiColumnMoved\");\n }\n }\n };\n this.dragAndDropService.addDragSource(this.moveDragSource, true);\n };\n\n HeaderCellCtrl.prototype.createDragItem = function () {\n var visibleState = {};\n visibleState[this.column.getId()] = this.column.isVisible();\n return {\n columns: [this.column],\n visibleState: visibleState\n };\n };\n\n HeaderCellCtrl.prototype.removeDragSource = function () {\n if (this.moveDragSource) {\n this.dragAndDropService.removeDragSource(this.moveDragSource);\n this.moveDragSource = undefined;\n }\n };\n\n HeaderCellCtrl.prototype.onColDefChanged = function () {\n this.refresh();\n };\n\n HeaderCellCtrl.prototype.updateState = function () {\n var colDef = this.column.getColDef();\n this.menuEnabled = this.menuFactory.isMenuEnabled(this.column) && !colDef.suppressMenu;\n this.sortable = colDef.sortable;\n this.displayName = this.calculateDisplayName();\n this.draggable = this.workOutDraggable();\n };\n\n HeaderCellCtrl.prototype.addRefreshFunction = function (func) {\n this.refreshFunctions.push(func);\n };\n\n HeaderCellCtrl.prototype.refresh = function () {\n this.updateState();\n this.refreshHeaderComp();\n this.refreshAria();\n this.refreshFunctions.forEach(function (f) {\n return f();\n });\n };\n\n HeaderCellCtrl.prototype.refreshHeaderComp = function () {\n var newCompDetails = this.lookupUserCompDetails();\n var compInstance = this.comp.getUserCompInstance(); // only try refresh if old comp exists adn it is the correct type\n\n var attemptRefresh = compInstance != null && this.userCompDetails.componentClass == newCompDetails.componentClass;\n var headerCompRefreshed = attemptRefresh ? this.attemptHeaderCompRefresh(newCompDetails.params) : false;\n\n if (headerCompRefreshed) {\n // we do this as a refresh happens after colDefs change, and it's possible the column has had it's\n // draggable property toggled. no need to call this if not refreshing, as setDragSource is done\n // as part of appendHeaderComp\n this.setDragSource(this.dragSourceElement);\n } else {\n this.setCompDetails(newCompDetails);\n }\n };\n\n HeaderCellCtrl.prototype.attemptHeaderCompRefresh = function (params) {\n var headerComp = this.comp.getUserCompInstance();\n\n if (!headerComp) {\n return false;\n } // if no refresh method, then we want to replace the headerComp\n\n\n if (!headerComp.refresh) {\n return false;\n }\n\n var res = headerComp.refresh(params);\n return res;\n };\n\n HeaderCellCtrl.prototype.calculateDisplayName = function () {\n return this.columnModel.getDisplayNameForColumn(this.column, 'header', true);\n };\n\n HeaderCellCtrl.prototype.checkDisplayName = function () {\n // display name can change if aggFunc different, eg sum(Gold) is now max(Gold)\n if (this.displayName !== this.calculateDisplayName()) {\n this.refresh();\n }\n };\n\n HeaderCellCtrl.prototype.workOutDraggable = function () {\n var colDef = this.column.getColDef();\n var isSuppressMovableColumns = this.gridOptionsWrapper.isSuppressMovableColumns();\n var colCanMove = !isSuppressMovableColumns && !colDef.suppressMovable && !colDef.lockPosition; // we should still be allowed drag the column, even if it can't be moved, if the column\n // can be dragged to a rowGroup or pivot drop zone\n\n return !!colCanMove || !!colDef.enableRowGroup || !!colDef.enablePivot;\n };\n\n HeaderCellCtrl.prototype.onColumnRowGroupChanged = function () {\n this.checkDisplayName();\n };\n\n HeaderCellCtrl.prototype.onColumnPivotChanged = function () {\n this.checkDisplayName();\n };\n\n HeaderCellCtrl.prototype.onColumnValueChanged = function () {\n this.checkDisplayName();\n };\n\n HeaderCellCtrl.prototype.setupWidth = function () {\n var _this = this;\n\n var listener = function listener() {\n _this.comp.setWidth(_this.column.getActualWidth() + 'px');\n };\n\n this.addManagedListener(this.column, Column.EVENT_WIDTH_CHANGED, listener);\n listener();\n };\n\n HeaderCellCtrl.prototype.setupMovingCss = function () {\n var _this = this;\n\n var listener = function listener() {\n // this is what makes the header go dark when it is been moved (gives impression to\n // user that the column was picked up).\n _this.comp.addOrRemoveCssClass('ag-header-cell-moving', _this.column.isMoving());\n };\n\n this.addManagedListener(this.column, Column.EVENT_MOVING_CHANGED, listener);\n listener();\n };\n\n HeaderCellCtrl.prototype.setupMenuClass = function () {\n var _this = this;\n\n var listener = function listener() {\n _this.comp.addOrRemoveCssClass('ag-column-menu-visible', _this.column.isMenuVisible());\n };\n\n this.addManagedListener(this.column, Column.EVENT_MENU_VISIBLE_CHANGED, listener);\n listener();\n };\n\n HeaderCellCtrl.prototype.setupSortableClass = function () {\n var _this = this;\n\n var updateSortableCssClass = function updateSortableCssClass() {\n _this.comp.addOrRemoveCssClass('ag-header-cell-sortable', !!_this.sortable);\n };\n\n updateSortableCssClass();\n this.addRefreshFunction(updateSortableCssClass);\n this.addManagedListener(this.column, Column.EVENT_SORT_CHANGED, this.refreshAriaSort.bind(this));\n };\n\n HeaderCellCtrl.prototype.setupWrapTextClass = function () {\n var _this = this;\n\n var listener = function listener() {\n var wrapText = !!_this.column.getColDef().wrapHeaderText;\n\n _this.comp.addOrRemoveCssClass('ag-header-cell-wrap-text', wrapText);\n };\n\n listener();\n this.addRefreshFunction(listener);\n };\n\n HeaderCellCtrl.prototype.setupAutoHeight = function (wrapperElement) {\n var _this = this;\n\n var measureHeight = function measureHeight(timesCalled) {\n if (!_this.isAlive()) {\n return;\n }\n\n var _a = getElementSize(_this.getGui()),\n paddingTop = _a.paddingTop,\n paddingBottom = _a.paddingBottom;\n\n var wrapperHeight = wrapperElement.offsetHeight;\n var autoHeight = wrapperHeight + paddingTop + paddingBottom;\n\n if (timesCalled < 5) {\n // if not in doc yet, means framework not yet inserted, so wait for next VM turn,\n // maybe it will be ready next VM turn\n var doc = _this.beans.gridOptionsWrapper.getDocument();\n\n var notYetInDom = !doc || !doc.contains(wrapperElement); // this happens in React, where React hasn't put any content in. we say 'possibly'\n // as a) may not be React and b) the cell could be empty anyway\n\n var possiblyNoContentYet = autoHeight == 0;\n\n if (notYetInDom || possiblyNoContentYet) {\n _this.beans.frameworkOverrides.setTimeout(function () {\n return measureHeight(timesCalled + 1);\n }, 0);\n\n return;\n }\n }\n\n _this.columnModel.setColumnHeaderHeight(_this.column, autoHeight);\n };\n\n var isMeasuring = false;\n var stopResizeObserver;\n\n var checkMeasuring = function checkMeasuring() {\n var newValue = _this.column.isAutoHeaderHeight();\n\n if (newValue && !isMeasuring) {\n startMeasuring();\n }\n\n if (!newValue && isMeasuring) {\n stopMeasuring();\n }\n };\n\n var startMeasuring = function startMeasuring() {\n isMeasuring = true;\n measureHeight(0);\n stopResizeObserver = _this.resizeObserverService.observeResize(wrapperElement, function () {\n return measureHeight(0);\n });\n };\n\n var stopMeasuring = function stopMeasuring() {\n isMeasuring = false;\n stopResizeObserver && stopResizeObserver();\n stopResizeObserver = undefined;\n };\n\n checkMeasuring();\n this.addDestroyFunc(function () {\n return stopMeasuring();\n }); // In theory we could rely on the resize observer for everything - but since it's debounced\n // it can be a little janky for smooth movement. in this case its better to react to our own events\n // And unfortunately we cant _just_ rely on our own events, since custom components can change whenever\n\n this.addManagedListener(this.column, Column.EVENT_WIDTH_CHANGED, function () {\n return isMeasuring && measureHeight(0);\n }); // Displaying the sort icon changes the available area for text, so sort changes can affect height\n\n this.addManagedListener(this.column, Column.EVENT_SORT_CHANGED, function () {\n // Rendering changes for sort, happen after the event... not ideal\n isMeasuring && _this.beans.frameworkOverrides.setTimeout(function () {\n return measureHeight(0);\n });\n });\n this.addRefreshFunction(checkMeasuring);\n };\n\n HeaderCellCtrl.prototype.refreshAriaSort = function () {\n if (this.sortable) {\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n this.comp.setAriaSort(getAriaSortState(this.column));\n this.setAriaDescriptionProperty('sort', translate('ariaSortableColumn', 'Press ENTER to sort.'));\n } else {\n this.comp.setAriaSort();\n this.setAriaDescriptionProperty('sort', null);\n }\n };\n\n HeaderCellCtrl.prototype.refreshAriaMenu = function () {\n if (this.menuEnabled) {\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n this.setAriaDescriptionProperty('menu', translate('ariaMenuColumn', 'Press CTRL ENTER to open column menu.'));\n } else {\n this.setAriaDescriptionProperty('menu', null);\n }\n };\n\n HeaderCellCtrl.prototype.setAriaDescriptionProperty = function (property, value) {\n if (value != null) {\n this.ariaDescriptionProperties.set(property, value);\n } else {\n this.ariaDescriptionProperties.delete(property);\n }\n };\n\n HeaderCellCtrl.prototype.refreshAriaDescription = function () {\n var descriptionArray = Array.from(this.ariaDescriptionProperties.values());\n this.comp.setAriaDescription(descriptionArray.length ? descriptionArray.join(' ') : undefined);\n };\n\n HeaderCellCtrl.prototype.refreshAria = function () {\n this.refreshAriaSort();\n this.refreshAriaMenu();\n this.refreshAriaDescription();\n };\n\n HeaderCellCtrl.prototype.addColumnHoverListener = function () {\n var _this = this;\n\n var listener = function listener() {\n if (!_this.gridOptionsWrapper.isColumnHoverHighlight()) {\n return;\n }\n\n var isHovered = _this.columnHoverService.isHovered(_this.column);\n\n _this.comp.addOrRemoveCssClass('ag-column-hover', isHovered);\n };\n\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_HOVER_CHANGED, listener);\n listener();\n };\n\n HeaderCellCtrl.prototype.setupFilterCss = function () {\n var _this = this;\n\n var listener = function listener() {\n _this.comp.addOrRemoveCssClass('ag-header-cell-filtered', _this.column.isFilterActive());\n };\n\n this.addManagedListener(this.column, Column.EVENT_FILTER_ACTIVE_CHANGED, listener);\n listener();\n };\n\n HeaderCellCtrl.prototype.setupColId = function () {\n this.comp.setColId(this.column.getColId());\n };\n\n HeaderCellCtrl.prototype.addActiveHeaderMouseListeners = function () {\n var _this = this;\n\n var listener = function listener(e) {\n return _this.setActiveHeader(e.type === 'mouseenter');\n };\n\n this.addManagedListener(this.getGui(), 'mouseenter', listener);\n this.addManagedListener(this.getGui(), 'mouseleave', listener);\n };\n\n HeaderCellCtrl.prototype.setActiveHeader = function (active) {\n this.comp.addOrRemoveCssClass('ag-header-active', active);\n };\n\n __decorate$1l([Autowired('columnModel')], HeaderCellCtrl.prototype, \"columnModel\", void 0);\n\n __decorate$1l([Autowired('columnHoverService')], HeaderCellCtrl.prototype, \"columnHoverService\", void 0);\n\n __decorate$1l([Autowired('sortController')], HeaderCellCtrl.prototype, \"sortController\", void 0);\n\n __decorate$1l([Autowired('menuFactory')], HeaderCellCtrl.prototype, \"menuFactory\", void 0);\n\n __decorate$1l([Autowired('dragAndDropService')], HeaderCellCtrl.prototype, \"dragAndDropService\", void 0);\n\n __decorate$1l([Autowired('resizeObserverService')], HeaderCellCtrl.prototype, \"resizeObserverService\", void 0);\n\n __decorate$1l([Autowired('gridApi')], HeaderCellCtrl.prototype, \"gridApi\", void 0);\n\n __decorate$1l([Autowired('columnApi')], HeaderCellCtrl.prototype, \"columnApi\", void 0);\n\n __decorate$1l([PreDestroy], HeaderCellCtrl.prototype, \"removeDragSource\", null);\n\n return HeaderCellCtrl;\n}(AbstractHeaderCellCtrl);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1r = undefined && undefined.__extends || function () {\n var _extendStatics94 = function extendStatics(d, b) {\n _extendStatics94 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics94(d, b);\n };\n\n return function (d, b) {\n _extendStatics94(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar GroupResizeFeature =\n/** @class */\nfunction (_super) {\n __extends$1r(GroupResizeFeature, _super);\n\n function GroupResizeFeature(comp, eResize, pinned, columnGroup) {\n var _this = _super.call(this) || this;\n\n _this.eResize = eResize;\n _this.comp = comp;\n _this.pinned = pinned;\n _this.columnGroup = columnGroup;\n return _this;\n }\n\n GroupResizeFeature.prototype.postConstruct = function () {\n var _this = this;\n\n if (!this.columnGroup.isResizable()) {\n this.comp.addOrRemoveResizableCssClass('ag-hidden', true);\n return;\n }\n\n var finishedWithResizeFunc = this.horizontalResizeService.addResizeBar({\n eResizeBar: this.eResize,\n onResizeStart: this.onResizeStart.bind(this),\n onResizing: this.onResizing.bind(this, false),\n onResizeEnd: this.onResizing.bind(this, true)\n });\n this.addDestroyFunc(finishedWithResizeFunc);\n\n if (!this.gridOptionsWrapper.isSuppressAutoSize()) {\n var skipHeaderOnAutoSize_1 = this.gridOptionsWrapper.isSkipHeaderOnAutoSize();\n this.eResize.addEventListener('dblclick', function () {\n // get list of all the column keys we are responsible for\n var keys = [];\n\n var leafCols = _this.columnGroup.getDisplayedLeafColumns();\n\n leafCols.forEach(function (column) {\n // not all cols in the group may be participating with auto-resize\n if (!column.getColDef().suppressAutoSize) {\n keys.push(column.getColId());\n }\n });\n\n if (keys.length > 0) {\n _this.columnModel.autoSizeColumns({\n columns: keys,\n skipHeader: skipHeaderOnAutoSize_1,\n stopAtGroup: _this.columnGroup,\n source: 'uiColumnResized'\n });\n }\n\n _this.resizeLeafColumnsToFit();\n });\n }\n };\n\n GroupResizeFeature.prototype.onResizeStart = function (shiftKey) {\n var _this = this;\n\n this.calculateInitialValues();\n var takeFromGroup = null;\n\n if (shiftKey) {\n takeFromGroup = this.columnModel.getDisplayedGroupAfter(this.columnGroup);\n }\n\n if (takeFromGroup) {\n var takeFromLeafCols = takeFromGroup.getDisplayedLeafColumns();\n this.resizeTakeFromCols = takeFromLeafCols.filter(function (col) {\n return col.isResizable();\n });\n this.resizeTakeFromStartWidth = 0;\n this.resizeTakeFromCols.forEach(function (col) {\n return _this.resizeTakeFromStartWidth += col.getActualWidth();\n });\n this.resizeTakeFromRatios = [];\n this.resizeTakeFromCols.forEach(function (col) {\n return _this.resizeTakeFromRatios.push(col.getActualWidth() / _this.resizeTakeFromStartWidth);\n });\n } else {\n this.resizeTakeFromCols = null;\n this.resizeTakeFromStartWidth = null;\n this.resizeTakeFromRatios = null;\n }\n\n this.comp.addOrRemoveCssClass('ag-column-resizing', true);\n };\n\n GroupResizeFeature.prototype.onResizing = function (finished, resizeAmount) {\n var resizeAmountNormalised = this.normaliseDragChange(resizeAmount);\n var width = this.resizeStartWidth + resizeAmountNormalised;\n this.resizeColumns(width, finished);\n };\n\n GroupResizeFeature.prototype.resizeLeafColumnsToFit = function () {\n var preferredSize = this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);\n this.calculateInitialValues();\n\n if (preferredSize > this.resizeStartWidth) {\n this.resizeColumns(preferredSize, true);\n }\n };\n\n GroupResizeFeature.prototype.resizeColumns = function (totalWidth, finished) {\n if (finished === void 0) {\n finished = true;\n }\n\n var resizeSets = [];\n resizeSets.push({\n columns: this.resizeCols,\n ratios: this.resizeRatios,\n width: totalWidth\n });\n\n if (this.resizeTakeFromCols) {\n var diff = totalWidth - this.resizeStartWidth;\n resizeSets.push({\n columns: this.resizeTakeFromCols,\n ratios: this.resizeTakeFromRatios,\n width: this.resizeTakeFromStartWidth - diff\n });\n }\n\n this.columnModel.resizeColumnSets({\n resizeSets: resizeSets,\n finished: finished,\n source: 'uiColumnDragged'\n });\n\n if (finished) {\n this.comp.addOrRemoveCssClass('ag-column-resizing', false);\n }\n };\n\n GroupResizeFeature.prototype.calculateInitialValues = function () {\n var _this = this;\n\n var leafCols = this.columnGroup.getDisplayedLeafColumns();\n this.resizeCols = leafCols.filter(function (col) {\n return col.isResizable();\n });\n this.resizeStartWidth = 0;\n this.resizeCols.forEach(function (col) {\n return _this.resizeStartWidth += col.getActualWidth();\n });\n this.resizeRatios = [];\n this.resizeCols.forEach(function (col) {\n return _this.resizeRatios.push(col.getActualWidth() / _this.resizeStartWidth);\n });\n }; // optionally inverts the drag, depending on pinned and RTL\n // note - this method is duplicated in RenderedHeaderCell - should refactor out?\n\n\n GroupResizeFeature.prototype.normaliseDragChange = function (dragChange) {\n var result = dragChange;\n\n if (this.gridOptionsWrapper.isEnableRtl()) {\n // for RTL, dragging left makes the col bigger, except when pinning left\n if (this.pinned !== Constants.PINNED_LEFT) {\n result *= -1;\n }\n } else if (this.pinned === Constants.PINNED_RIGHT) {\n // for LTR (ie normal), dragging left makes the col smaller, except when pinning right\n result *= -1;\n }\n\n return result;\n };\n\n __decorate$1k([Autowired('horizontalResizeService')], GroupResizeFeature.prototype, \"horizontalResizeService\", void 0);\n\n __decorate$1k([Autowired('autoWidthCalculator')], GroupResizeFeature.prototype, \"autoWidthCalculator\", void 0);\n\n __decorate$1k([Autowired('columnModel')], GroupResizeFeature.prototype, \"columnModel\", void 0);\n\n __decorate$1k([PostConstruct], GroupResizeFeature.prototype, \"postConstruct\", null);\n\n return GroupResizeFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1q = undefined && undefined.__extends || function () {\n var _extendStatics95 = function extendStatics(d, b) {\n _extendStatics95 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics95(d, b);\n };\n\n return function (d, b) {\n _extendStatics95(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar GroupWidthFeature =\n/** @class */\nfunction (_super) {\n __extends$1q(GroupWidthFeature, _super);\n\n function GroupWidthFeature(comp, columnGroup) {\n var _this = _super.call(this) || this; // the children can change, we keep destroy functions related to listening to the children here\n\n\n _this.removeChildListenersFuncs = [];\n _this.columnGroup = columnGroup;\n _this.comp = comp;\n return _this;\n }\n\n GroupWidthFeature.prototype.postConstruct = function () {\n // we need to listen to changes in child columns, as they impact our width\n this.addListenersToChildrenColumns(); // the children belonging to this group can change, so we need to add and remove listeners as they change\n\n this.addManagedListener(this.columnGroup, ColumnGroup.EVENT_DISPLAYED_CHILDREN_CHANGED, this.onDisplayedChildrenChanged.bind(this));\n this.onWidthChanged(); // the child listeners are not tied to this components life-cycle, as children can get added and removed\n // to the group - hence they are on a different life-cycle. so we must make sure the existing children\n // listeners are removed when we finally get destroyed\n\n this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this));\n };\n\n GroupWidthFeature.prototype.addListenersToChildrenColumns = function () {\n var _this = this; // first destroy any old listeners\n\n\n this.removeListenersOnChildrenColumns(); // now add new listeners to the new set of children\n\n var widthChangedListener = this.onWidthChanged.bind(this);\n this.columnGroup.getLeafColumns().forEach(function (column) {\n column.addEventListener(Column.EVENT_WIDTH_CHANGED, widthChangedListener);\n column.addEventListener(Column.EVENT_VISIBLE_CHANGED, widthChangedListener);\n\n _this.removeChildListenersFuncs.push(function () {\n column.removeEventListener(Column.EVENT_WIDTH_CHANGED, widthChangedListener);\n column.removeEventListener(Column.EVENT_VISIBLE_CHANGED, widthChangedListener);\n });\n });\n };\n\n GroupWidthFeature.prototype.removeListenersOnChildrenColumns = function () {\n this.removeChildListenersFuncs.forEach(function (func) {\n return func();\n });\n this.removeChildListenersFuncs = [];\n };\n\n GroupWidthFeature.prototype.onDisplayedChildrenChanged = function () {\n this.addListenersToChildrenColumns();\n this.onWidthChanged();\n };\n\n GroupWidthFeature.prototype.onWidthChanged = function () {\n this.comp.setWidth(this.columnGroup.getActualWidth() + 'px');\n };\n\n __decorate$1j([PostConstruct], GroupWidthFeature.prototype, \"postConstruct\", null);\n\n return GroupWidthFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1p = undefined && undefined.__extends || function () {\n var _extendStatics96 = function extendStatics(d, b) {\n _extendStatics96 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics96(d, b);\n };\n\n return function (d, b) {\n _extendStatics96(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar HeaderGroupCellCtrl =\n/** @class */\nfunction (_super) {\n __extends$1p(HeaderGroupCellCtrl, _super);\n\n function HeaderGroupCellCtrl(columnGroup, parentRowCtrl) {\n var _this = _super.call(this, columnGroup, parentRowCtrl) || this;\n\n _this.columnGroup = columnGroup;\n return _this;\n }\n\n HeaderGroupCellCtrl.prototype.setComp = function (comp, eGui, eResize) {\n _super.prototype.setGui.call(this, eGui);\n\n this.comp = comp;\n this.displayName = this.columnModel.getDisplayNameForColumnGroup(this.columnGroup, 'header');\n this.addClasses();\n this.addAttributes();\n this.setupMovingCss();\n this.setupExpandable();\n this.setupTooltip();\n this.setupUserComp();\n var pinned = this.getParentRowCtrl().getPinned();\n var leafCols = this.columnGroup.getProvidedColumnGroup().getLeafColumns();\n this.createManagedBean(new HoverFeature(leafCols, eGui));\n this.createManagedBean(new SetLeftFeature(this.columnGroup, eGui, this.beans));\n this.createManagedBean(new GroupWidthFeature(comp, this.columnGroup));\n this.groupResizeFeature = this.createManagedBean(new GroupResizeFeature(comp, eResize, pinned, this.columnGroup));\n this.createManagedBean(new ManagedFocusFeature(eGui, {\n shouldStopEventPropagation: this.shouldStopEventPropagation.bind(this),\n onTabKeyDown: function onTabKeyDown() {\n return undefined;\n },\n handleKeyDown: this.handleKeyDown.bind(this),\n onFocusIn: this.onFocusIn.bind(this)\n }));\n };\n\n HeaderGroupCellCtrl.prototype.resizeLeafColumnsToFit = function () {\n this.groupResizeFeature.onResizeStart(false);\n this.groupResizeFeature.resizeLeafColumnsToFit();\n };\n\n HeaderGroupCellCtrl.prototype.setupUserComp = function () {\n var _this = this;\n\n var displayName = this.displayName;\n var params = {\n displayName: this.displayName,\n columnGroup: this.columnGroup,\n setExpanded: function setExpanded(expanded) {\n _this.columnModel.setColumnGroupOpened(_this.columnGroup.getProvidedColumnGroup(), expanded, \"gridInitializing\");\n },\n api: this.gridApi,\n columnApi: this.columnApi,\n context: this.gridOptionsWrapper.getContext()\n };\n\n if (!displayName) {\n var columnGroup = this.columnGroup;\n var leafCols = columnGroup.getLeafColumns(); // find the top most column group that represents the same columns. so if we are dragging a group, we also\n // want to visually show the parent groups dragging for the same column set. for example imaging 5 levels\n // of grouping, with each group only containing the next group, and the last group containing three columns,\n // then when you move any group (even the lowest level group) you are in-fact moving all the groups, as all\n // the groups represent the same column set.\n\n while (columnGroup.getParent() && columnGroup.getParent().getLeafColumns().length === leafCols.length) {\n columnGroup = columnGroup.getParent();\n }\n\n var colGroupDef = columnGroup.getColGroupDef();\n\n if (colGroupDef) {\n displayName = colGroupDef.headerName;\n }\n\n if (!displayName) {\n displayName = leafCols ? this.columnModel.getDisplayNameForColumn(leafCols[0], 'header', true) : '';\n }\n }\n\n var compDetails = this.userComponentFactory.getHeaderGroupCompDetails(params);\n this.comp.setUserCompDetails(compDetails);\n };\n\n HeaderGroupCellCtrl.prototype.setupTooltip = function () {\n var _this = this;\n\n var colGroupDef = this.columnGroup.getColGroupDef();\n var tooltipCtrl = {\n getColumn: function getColumn() {\n return _this.columnGroup;\n },\n getGui: function getGui() {\n return _this.eGui;\n },\n getLocation: function getLocation() {\n return 'headerGroup';\n },\n getTooltipValue: function getTooltipValue() {\n return colGroupDef && colGroupDef.headerTooltip;\n }\n };\n\n if (colGroupDef) {\n tooltipCtrl.getColDef = function () {\n return colGroupDef;\n };\n }\n\n var tooltipFeature = this.createManagedBean(new TooltipFeature(tooltipCtrl, this.beans));\n tooltipFeature.setComp(this.comp);\n };\n\n HeaderGroupCellCtrl.prototype.setupExpandable = function () {\n var providedColGroup = this.columnGroup.getProvidedColumnGroup();\n this.refreshExpanded();\n this.addManagedListener(providedColGroup, ProvidedColumnGroup.EVENT_EXPANDABLE_CHANGED, this.refreshExpanded.bind(this));\n this.addManagedListener(providedColGroup, ProvidedColumnGroup.EVENT_EXPANDED_CHANGED, this.refreshExpanded.bind(this));\n };\n\n HeaderGroupCellCtrl.prototype.refreshExpanded = function () {\n var column = this.columnGroup;\n this.expandable = column.isExpandable();\n var expanded = column.isExpanded();\n\n if (this.expandable) {\n this.comp.setAriaExpanded(expanded ? 'true' : 'false');\n } else {\n this.comp.setAriaExpanded(undefined);\n }\n };\n\n HeaderGroupCellCtrl.prototype.addAttributes = function () {\n this.comp.setColId(this.columnGroup.getUniqueId());\n };\n\n HeaderGroupCellCtrl.prototype.addClasses = function () {\n var _this = this;\n\n var colGroupDef = this.columnGroup.getColGroupDef();\n var classes = CssClassApplier.getHeaderClassesFromColDef(colGroupDef, this.gridOptionsWrapper, null, this.columnGroup); // having different classes below allows the style to not have a bottom border\n // on the group header, if no group is specified\n\n classes.push(this.columnGroup.isPadding() ? \"ag-header-group-cell-no-group\" : \"ag-header-group-cell-with-group\");\n classes.forEach(function (c) {\n return _this.comp.addOrRemoveCssClass(c, true);\n });\n };\n\n HeaderGroupCellCtrl.prototype.setupMovingCss = function () {\n var _this = this;\n\n var providedColumnGroup = this.columnGroup.getProvidedColumnGroup();\n var leafColumns = providedColumnGroup.getLeafColumns(); // this function adds or removes the moving css, based on if the col is moving.\n // this is what makes the header go dark when it is been moved (gives impression to\n // user that the column was picked up).\n\n var listener = function listener() {\n return _this.comp.addOrRemoveCssClass('ag-header-cell-moving', _this.columnGroup.isMoving());\n };\n\n leafColumns.forEach(function (col) {\n _this.addManagedListener(col, Column.EVENT_MOVING_CHANGED, listener);\n });\n listener();\n };\n\n HeaderGroupCellCtrl.prototype.onFocusIn = function (e) {\n if (!this.eGui.contains(e.relatedTarget)) {\n var rowIndex = this.getRowIndex();\n this.beans.focusService.setFocusedHeader(rowIndex, this.columnGroup);\n }\n };\n\n HeaderGroupCellCtrl.prototype.handleKeyDown = function (e) {\n _super.prototype.handleKeyDown.call(this, e);\n\n var wrapperHasFocus = this.getWrapperHasFocus();\n\n if (!this.expandable || !wrapperHasFocus) {\n return;\n }\n\n if (e.key === KeyCode.ENTER) {\n var column = this.columnGroup;\n var newExpandedValue = !column.isExpanded();\n this.columnModel.setColumnGroupOpened(column.getProvidedColumnGroup(), newExpandedValue, \"uiColumnExpanded\");\n }\n }; // unlike columns, this will only get called once, as we don't react on props on column groups\n // (we will always destroy and recreate this comp if something changes)\n\n\n HeaderGroupCellCtrl.prototype.setDragSource = function (eHeaderGroup) {\n var _this = this;\n\n if (this.isSuppressMoving()) {\n return;\n }\n\n var allLeafColumns = this.columnGroup.getProvidedColumnGroup().getLeafColumns();\n var hideColumnOnExit = !this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns();\n var dragSource = {\n type: DragSourceType.HeaderCell,\n eElement: eHeaderGroup,\n defaultIconName: hideColumnOnExit ? DragAndDropService.ICON_HIDE : DragAndDropService.ICON_NOT_ALLOWED,\n dragItemName: this.displayName,\n // we add in the original group leaf columns, so we move both visible and non-visible items\n getDragItem: this.getDragItemForGroup.bind(this),\n onDragStarted: function onDragStarted() {\n return allLeafColumns.forEach(function (col) {\n return col.setMoving(true, \"uiColumnDragged\");\n });\n },\n onDragStopped: function onDragStopped() {\n return allLeafColumns.forEach(function (col) {\n return col.setMoving(false, \"uiColumnDragged\");\n });\n },\n onGridEnter: function onGridEnter(dragItem) {\n var _a, _b;\n\n if (hideColumnOnExit) {\n var unlockedColumns = ((_b = (_a = dragItem) === null || _a === void 0 ? void 0 : _a.columns) === null || _b === void 0 ? void 0 : _b.filter(function (col) {\n return !col.getColDef().lockVisible;\n })) || [];\n\n _this.columnModel.setColumnsVisible(unlockedColumns, true, \"uiColumnMoved\");\n }\n },\n onGridExit: function onGridExit(dragItem) {\n var _a, _b;\n\n if (hideColumnOnExit) {\n var unlockedColumns = ((_b = (_a = dragItem) === null || _a === void 0 ? void 0 : _a.columns) === null || _b === void 0 ? void 0 : _b.filter(function (col) {\n return !col.getColDef().lockVisible;\n })) || [];\n\n _this.columnModel.setColumnsVisible(unlockedColumns, false, \"uiColumnMoved\");\n }\n }\n };\n this.dragAndDropService.addDragSource(dragSource, true);\n this.addDestroyFunc(function () {\n return _this.dragAndDropService.removeDragSource(dragSource);\n });\n }; // when moving the columns, we want to move all the columns (contained within the DragItem) in this group in one go,\n // and in the order they are currently in the screen.\n\n\n HeaderGroupCellCtrl.prototype.getDragItemForGroup = function () {\n var allColumnsOriginalOrder = this.columnGroup.getProvidedColumnGroup().getLeafColumns(); // capture visible state, used when re-entering grid to dictate which columns should be visible\n\n var visibleState = {};\n allColumnsOriginalOrder.forEach(function (column) {\n return visibleState[column.getId()] = column.isVisible();\n });\n var allColumnsCurrentOrder = [];\n this.columnModel.getAllDisplayedColumns().forEach(function (column) {\n if (allColumnsOriginalOrder.indexOf(column) >= 0) {\n allColumnsCurrentOrder.push(column);\n removeFromArray(allColumnsOriginalOrder, column);\n }\n }); // we are left with non-visible columns, stick these in at the end\n\n allColumnsOriginalOrder.forEach(function (column) {\n return allColumnsCurrentOrder.push(column);\n }); // create and return dragItem\n\n return {\n columns: allColumnsCurrentOrder,\n visibleState: visibleState\n };\n };\n\n HeaderGroupCellCtrl.prototype.isSuppressMoving = function () {\n // if any child is fixed, then don't allow moving\n var childSuppressesMoving = false;\n this.columnGroup.getLeafColumns().forEach(function (column) {\n if (column.getColDef().suppressMovable || column.getColDef().lockPosition) {\n childSuppressesMoving = true;\n }\n });\n var result = childSuppressesMoving || this.gridOptionsWrapper.isSuppressMovableColumns();\n return result;\n };\n\n __decorate$1i([Autowired('columnModel')], HeaderGroupCellCtrl.prototype, \"columnModel\", void 0);\n\n __decorate$1i([Autowired('dragAndDropService')], HeaderGroupCellCtrl.prototype, \"dragAndDropService\", void 0);\n\n __decorate$1i([Autowired('gridApi')], HeaderGroupCellCtrl.prototype, \"gridApi\", void 0);\n\n __decorate$1i([Autowired('columnApi')], HeaderGroupCellCtrl.prototype, \"columnApi\", void 0);\n\n return HeaderGroupCellCtrl;\n}(AbstractHeaderCellCtrl);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1o = undefined && undefined.__extends || function () {\n var _extendStatics97 = function extendStatics(d, b) {\n _extendStatics97 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics97(d, b);\n };\n\n return function (d, b) {\n _extendStatics97(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar instanceIdSequence = 0;\n\nvar HeaderRowCtrl =\n/** @class */\nfunction (_super) {\n __extends$1o(HeaderRowCtrl, _super);\n\n function HeaderRowCtrl(rowIndex, pinned, type) {\n var _this = _super.call(this) || this;\n\n _this.instanceId = instanceIdSequence++;\n _this.headerCellCtrls = {};\n _this.rowIndex = rowIndex;\n _this.pinned = pinned;\n _this.type = type;\n return _this;\n }\n\n HeaderRowCtrl.prototype.getInstanceId = function () {\n return this.instanceId;\n };\n\n HeaderRowCtrl.prototype.setComp = function (comp) {\n this.comp = comp;\n this.onRowHeightChanged();\n this.onVirtualColumnsChanged();\n this.setWidth();\n this.addEventListeners();\n\n if (isBrowserSafari()) {\n // fix for a Safari rendering bug that caused the header to flicker above chart panels\n // as you move the mouse over the header\n this.comp.setTransform('translateZ(0)');\n }\n\n comp.setAriaRowIndex(this.rowIndex + 1);\n };\n\n HeaderRowCtrl.prototype.addEventListeners = function () {\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_RESIZED, this.onColumnResized.bind(this)); // when print layout changes, it changes what columns are in what section\n\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_DOM_LAYOUT, this.onDisplayedColumnsChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayedColumnsChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_VIRTUAL_COLUMNS_CHANGED, this.onVirtualColumnsChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_HEADER_HEIGHT_CHANGED, this.onRowHeightChanged.bind(this));\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_HEADER_HEIGHT, this.onRowHeightChanged.bind(this));\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT, this.onRowHeightChanged.bind(this));\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT, this.onRowHeightChanged.bind(this));\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT, this.onRowHeightChanged.bind(this));\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT, this.onRowHeightChanged.bind(this));\n };\n\n HeaderRowCtrl.prototype.getHeaderCellCtrl = function (column) {\n return values(this.headerCellCtrls).find(function (cellCtrl) {\n return cellCtrl.getColumnGroupChild() === column;\n });\n };\n\n HeaderRowCtrl.prototype.onDisplayedColumnsChanged = function () {\n this.onVirtualColumnsChanged();\n this.setWidth();\n this.onRowHeightChanged();\n };\n\n HeaderRowCtrl.prototype.getType = function () {\n return this.type;\n };\n\n HeaderRowCtrl.prototype.onColumnResized = function () {\n this.setWidth();\n };\n\n HeaderRowCtrl.prototype.setWidth = function () {\n var width = this.getWidthForRow();\n this.comp.setWidth(width + \"px\");\n };\n\n HeaderRowCtrl.prototype.getWidthForRow = function () {\n var printLayout = this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_PRINT;\n\n if (printLayout) {\n var pinned = this.pinned != null;\n\n if (pinned) {\n return 0;\n }\n\n return this.columnModel.getContainerWidth(Constants.PINNED_RIGHT) + this.columnModel.getContainerWidth(Constants.PINNED_LEFT) + this.columnModel.getContainerWidth(null);\n } // if not printing, just return the width as normal\n\n\n return this.columnModel.getContainerWidth(this.pinned);\n };\n\n HeaderRowCtrl.prototype.onRowHeightChanged = function () {\n var headerRowCount = this.columnModel.getHeaderRowCount();\n var sizes = [];\n var numberOfFloating = 0;\n\n if (this.columnModel.hasFloatingFilters()) {\n headerRowCount++;\n numberOfFloating = 1;\n }\n\n var groupHeight = this.columnModel.getColumnGroupHeaderRowHeight();\n var headerHeight = this.columnModel.getColumnHeaderRowHeight();\n var numberOfNonGroups = 1 + numberOfFloating;\n var numberOfGroups = headerRowCount - numberOfNonGroups;\n\n for (var i = 0; i < numberOfGroups; i++) {\n sizes.push(groupHeight);\n }\n\n sizes.push(headerHeight);\n\n for (var i = 0; i < numberOfFloating; i++) {\n sizes.push(this.gridOptionsWrapper.getFloatingFiltersHeight());\n }\n\n var topOffset = 0;\n\n for (var i = 0; i < this.rowIndex; i++) {\n topOffset += sizes[i];\n }\n\n var thisRowHeight = sizes[this.rowIndex] + 'px';\n this.comp.setTop(topOffset + 'px');\n this.comp.setHeight(thisRowHeight);\n };\n\n HeaderRowCtrl.prototype.getPinned = function () {\n return this.pinned;\n };\n\n HeaderRowCtrl.prototype.getRowIndex = function () {\n return this.rowIndex;\n };\n\n HeaderRowCtrl.prototype.onVirtualColumnsChanged = function () {\n var _this = this;\n\n var oldCtrls = this.headerCellCtrls;\n this.headerCellCtrls = {};\n var columns = this.getColumnsInViewport();\n columns.forEach(function (child) {\n // skip groups that have no displayed children. this can happen when the group is broken,\n // and this section happens to have nothing to display for the open / closed state.\n // (a broken group is one that is split, ie columns in the group have a non-group column\n // in between them)\n if (child.isEmptyGroup()) {\n return;\n }\n\n var idOfChild = child.getUniqueId(); // if we already have this cell rendered, do nothing\n\n var headerCtrl = oldCtrls[idOfChild];\n delete oldCtrls[idOfChild]; // it's possible there is a new Column with the same ID, but it's for a different Column.\n // this is common with pivoting, where the pivot cols change, but the id's are still pivot_0,\n // pivot_1 etc. so if new col but same ID, need to remove the old col here first as we are\n // about to replace it in the this.headerComps map.\n\n var forOldColumn = headerCtrl && headerCtrl.getColumnGroupChild() != child;\n\n if (forOldColumn) {\n _this.destroyBean(headerCtrl);\n\n headerCtrl = undefined;\n }\n\n if (headerCtrl == null) {\n switch (_this.type) {\n case HeaderRowType.FLOATING_FILTER:\n headerCtrl = _this.createBean(new HeaderFilterCellCtrl(child, _this));\n break;\n\n case HeaderRowType.COLUMN_GROUP:\n headerCtrl = _this.createBean(new HeaderGroupCellCtrl(child, _this));\n break;\n\n default:\n headerCtrl = _this.createBean(new HeaderCellCtrl(child, _this));\n break;\n }\n }\n\n _this.headerCellCtrls[idOfChild] = headerCtrl;\n }); // we want to keep columns that are focused, otherwise keyboard navigation breaks\n\n var isFocusedAndDisplayed = function isFocusedAndDisplayed(ctrl) {\n var isFocused = _this.focusService.isHeaderWrapperFocused(ctrl);\n\n if (!isFocused) {\n return false;\n }\n\n var isDisplayed = _this.columnModel.isDisplayed(ctrl.getColumnGroupChild());\n\n return isDisplayed;\n };\n\n iterateObject(oldCtrls, function (id, oldCtrl) {\n var keepCtrl = isFocusedAndDisplayed(oldCtrl);\n\n if (keepCtrl) {\n _this.headerCellCtrls[id] = oldCtrl;\n } else {\n _this.destroyBean(oldCtrl);\n }\n });\n var ctrlsToDisplay = getAllValuesInObject(this.headerCellCtrls);\n this.comp.setHeaderCtrls(ctrlsToDisplay);\n };\n\n HeaderRowCtrl.prototype.destroyCtrls = function () {\n var _this = this;\n\n iterateObject(this.headerCellCtrls, function (key, ctrl) {\n _this.destroyBean(ctrl);\n });\n this.headerCellCtrls = {};\n };\n\n HeaderRowCtrl.prototype.getColumnsInViewport = function () {\n var printLayout = this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_PRINT;\n return printLayout ? this.getColumnsInViewportPrintLayout() : this.getColumnsInViewportNormalLayout();\n };\n\n HeaderRowCtrl.prototype.getColumnsInViewportPrintLayout = function () {\n var _this = this; // for print layout, we add all columns into the center\n\n\n if (this.pinned != null) {\n return [];\n }\n\n var viewportColumns = [];\n var actualDepth = this.getActualDepth();\n [Constants.PINNED_LEFT, null, Constants.PINNED_RIGHT].forEach(function (pinned) {\n var items = _this.columnModel.getVirtualHeaderGroupRow(pinned, actualDepth);\n\n viewportColumns = viewportColumns.concat(items);\n });\n return viewportColumns;\n };\n\n HeaderRowCtrl.prototype.getActualDepth = function () {\n return this.type == HeaderRowType.FLOATING_FILTER ? this.rowIndex - 1 : this.rowIndex;\n };\n\n HeaderRowCtrl.prototype.getColumnsInViewportNormalLayout = function () {\n // when in normal layout, we add the columns for that container only\n return this.columnModel.getVirtualHeaderGroupRow(this.pinned, this.getActualDepth());\n };\n\n HeaderRowCtrl.prototype.focusHeader = function (column, event) {\n var allCtrls = getAllValuesInObject(this.headerCellCtrls);\n var ctrl = allCtrls.find(function (ctrl) {\n return ctrl.getColumnGroupChild() == column;\n });\n\n if (!ctrl) {\n return false;\n }\n\n ctrl.focus(event);\n return true;\n };\n\n __decorate$1h([Autowired('columnModel')], HeaderRowCtrl.prototype, \"columnModel\", void 0);\n\n __decorate$1h([Autowired('focusService')], HeaderRowCtrl.prototype, \"focusService\", void 0);\n\n __decorate$1h([PreDestroy], HeaderRowCtrl.prototype, \"destroyCtrls\", null);\n\n return HeaderRowCtrl;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1n = undefined && undefined.__extends || function () {\n var _extendStatics98 = function extendStatics(d, b) {\n _extendStatics98 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics98(d, b);\n };\n\n return function (d, b) {\n _extendStatics98(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$b = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$9 = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$b(arguments[i]));\n }\n\n return ar;\n};\n\nvar HeaderRowContainerCtrl =\n/** @class */\nfunction (_super) {\n __extends$1n(HeaderRowContainerCtrl, _super);\n\n function HeaderRowContainerCtrl(pinned) {\n var _this = _super.call(this) || this;\n\n _this.groupsRowCtrls = [];\n _this.pinned = pinned;\n return _this;\n }\n\n HeaderRowContainerCtrl.prototype.setComp = function (comp, eGui) {\n this.comp = comp;\n this.eViewport = eGui;\n this.setupCenterWidth();\n this.setupPinnedWidth();\n this.setupDragAndDrop(this.eViewport);\n this.addManagedListener(this.eventService, Events.EVENT_GRID_COLUMNS_CHANGED, this.onGridColumnsChanged.bind(this));\n this.addManagedListener(this.eViewport, 'scroll', this.resetScrollLeft.bind(this));\n this.ctrlsService.registerHeaderContainer(this, this.pinned);\n\n if (this.columnModel.isReady()) {\n this.refresh();\n }\n };\n\n HeaderRowContainerCtrl.prototype.setupDragAndDrop = function (dropContainer) {\n var bodyDropTarget = new BodyDropTarget(this.pinned, dropContainer);\n this.createManagedBean(bodyDropTarget);\n };\n\n HeaderRowContainerCtrl.prototype.refresh = function (keepColumns) {\n var _this = this;\n\n if (keepColumns === void 0) {\n keepColumns = false;\n }\n\n var sequence = new NumberSequence();\n var focusedHeaderPosition = this.focusService.getFocusHeaderToUseAfterRefresh();\n\n var refreshColumnGroups = function refreshColumnGroups() {\n var groupRowCount = _this.columnModel.getHeaderRowCount() - 1;\n _this.groupsRowCtrls = _this.destroyBeans(_this.groupsRowCtrls);\n\n for (var i = 0; i < groupRowCount; i++) {\n var ctrl = _this.createBean(new HeaderRowCtrl(sequence.next(), _this.pinned, HeaderRowType.COLUMN_GROUP));\n\n _this.groupsRowCtrls.push(ctrl);\n }\n };\n\n var refreshColumns = function refreshColumns() {\n var rowIndex = sequence.next();\n var needNewInstance = _this.columnsRowCtrl == null || !keepColumns || _this.columnsRowCtrl.getRowIndex() !== rowIndex;\n\n if (needNewInstance) {\n _this.destroyBean(_this.columnsRowCtrl);\n\n _this.columnsRowCtrl = _this.createBean(new HeaderRowCtrl(rowIndex, _this.pinned, HeaderRowType.COLUMN));\n }\n };\n\n var refreshFilters = function refreshFilters() {\n var includeFloatingFilter = _this.columnModel.hasFloatingFilters();\n\n var destroyPreviousComp = function destroyPreviousComp() {\n _this.filtersRowCtrl = _this.destroyBean(_this.filtersRowCtrl);\n };\n\n if (!includeFloatingFilter) {\n destroyPreviousComp();\n return;\n }\n\n var rowIndex = sequence.next();\n\n if (_this.filtersRowCtrl) {\n var rowIndexMismatch = _this.filtersRowCtrl.getRowIndex() !== rowIndex;\n\n if (!keepColumns || rowIndexMismatch) {\n destroyPreviousComp();\n }\n }\n\n if (!_this.filtersRowCtrl) {\n _this.filtersRowCtrl = _this.createBean(new HeaderRowCtrl(rowIndex, _this.pinned, HeaderRowType.FLOATING_FILTER));\n }\n };\n\n refreshColumnGroups();\n refreshColumns();\n refreshFilters();\n var allCtrls = this.getAllCtrls();\n this.comp.setCtrls(allCtrls);\n this.restoreFocusOnHeader(focusedHeaderPosition);\n };\n\n HeaderRowContainerCtrl.prototype.restoreFocusOnHeader = function (position) {\n if (position == null || position.column.getPinned() != this.pinned) {\n return;\n }\n\n this.focusService.focusHeaderPosition({\n headerPosition: position\n });\n };\n\n HeaderRowContainerCtrl.prototype.getAllCtrls = function () {\n var res = __spread$9(this.groupsRowCtrls, [this.columnsRowCtrl]);\n\n if (this.filtersRowCtrl) {\n res.push(this.filtersRowCtrl);\n }\n\n return res;\n }; // grid cols have changed - this also means the number of rows in the header can have\n // changed. so we remove all the old rows and insert new ones for a complete refresh\n\n\n HeaderRowContainerCtrl.prototype.onGridColumnsChanged = function () {\n this.refresh(true);\n };\n\n HeaderRowContainerCtrl.prototype.setupCenterWidth = function () {\n var _this = this;\n\n if (this.pinned != null) {\n return;\n }\n\n this.createManagedBean(new CenterWidthFeature(function (width) {\n return _this.comp.setCenterWidth(width + \"px\");\n }));\n };\n\n HeaderRowContainerCtrl.prototype.setHorizontalScroll = function (offset) {\n this.comp.setContainerTransform(\"translateX(\" + offset + \"px)\");\n };\n\n HeaderRowContainerCtrl.prototype.resetScrollLeft = function () {\n this.eViewport.scrollLeft = 0;\n };\n\n HeaderRowContainerCtrl.prototype.setupPinnedWidth = function () {\n var _this = this;\n\n if (this.pinned == null) {\n return;\n }\n\n var pinningLeft = this.pinned === Constants.PINNED_LEFT;\n var pinningRight = this.pinned === Constants.PINNED_RIGHT;\n\n var listener = function listener() {\n var width = pinningLeft ? _this.pinnedWidthService.getPinnedLeftWidth() : _this.pinnedWidthService.getPinnedRightWidth();\n\n if (width == null) {\n return;\n } // can happen at initialisation, width not yet set\n\n\n var hidden = width == 0;\n\n var isRtl = _this.gridOptionsWrapper.isEnableRtl();\n\n var scrollbarWidth = _this.gridOptionsWrapper.getScrollbarWidth(); // if there is a scroll showing (and taking up space, so Windows, and not iOS)\n // in the body, then we add extra space to keep header aligned with the body,\n // as body width fits the cols and the scrollbar\n\n\n var addPaddingForScrollbar = _this.scrollVisibleService.isVerticalScrollShowing() && (isRtl && pinningLeft || !isRtl && pinningRight);\n var widthWithPadding = addPaddingForScrollbar ? width + scrollbarWidth : width;\n\n _this.comp.setPinnedContainerWidth(widthWithPadding + 'px');\n\n _this.comp.addOrRemoveCssClass('ag-hidden', hidden);\n };\n\n this.addManagedListener(this.eventService, Events.EVENT_LEFT_PINNED_WIDTH_CHANGED, listener);\n this.addManagedListener(this.eventService, Events.EVENT_RIGHT_PINNED_WIDTH_CHANGED, listener);\n this.addManagedListener(this.eventService, Events.EVENT_SCROLL_VISIBILITY_CHANGED, listener);\n this.addManagedListener(this.eventService, Events.EVENT_SCROLLBAR_WIDTH_CHANGED, listener);\n };\n\n HeaderRowContainerCtrl.prototype.getHeaderCtrlForColumn = function (column) {\n if (column instanceof Column) {\n if (!this.columnsRowCtrl) {\n return;\n }\n\n return this.columnsRowCtrl.getHeaderCellCtrl(column);\n }\n\n if (this.groupsRowCtrls.length === 0) {\n return;\n }\n\n for (var i = 0; i < this.groupsRowCtrls.length; i++) {\n var ctrl = this.groupsRowCtrls[i].getHeaderCellCtrl(column);\n\n if (ctrl) {\n return ctrl;\n }\n }\n };\n\n HeaderRowContainerCtrl.prototype.getHtmlElementForColumnHeader = function (column) {\n /* tslint:enable */\n var cellCtrl = this.getHeaderCtrlForColumn(column);\n\n if (!cellCtrl) {\n return null;\n }\n\n return cellCtrl.getGui();\n };\n\n HeaderRowContainerCtrl.prototype.getRowType = function (rowIndex) {\n var allCtrls = this.getAllCtrls();\n var ctrl = allCtrls[rowIndex];\n return ctrl ? ctrl.getType() : undefined;\n };\n\n HeaderRowContainerCtrl.prototype.focusHeader = function (rowIndex, column, event) {\n var allCtrls = this.getAllCtrls();\n var ctrl = allCtrls[rowIndex];\n\n if (!ctrl) {\n return false;\n }\n\n return ctrl.focusHeader(column, event);\n };\n\n HeaderRowContainerCtrl.prototype.getRowCount = function () {\n return this.getAllCtrls().length;\n };\n\n __decorate$1g([Autowired('ctrlsService')], HeaderRowContainerCtrl.prototype, \"ctrlsService\", void 0);\n\n __decorate$1g([Autowired('scrollVisibleService')], HeaderRowContainerCtrl.prototype, \"scrollVisibleService\", void 0);\n\n __decorate$1g([Autowired('pinnedWidthService')], HeaderRowContainerCtrl.prototype, \"pinnedWidthService\", void 0);\n\n __decorate$1g([Autowired('columnModel')], HeaderRowContainerCtrl.prototype, \"columnModel\", void 0);\n\n __decorate$1g([Autowired('focusService')], HeaderRowContainerCtrl.prototype, \"focusService\", void 0);\n\n return HeaderRowContainerCtrl;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1m = undefined && undefined.__extends || function () {\n var _extendStatics99 = function extendStatics(d, b) {\n _extendStatics99 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics99(d, b);\n };\n\n return function (d, b) {\n _extendStatics99(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar HeaderRowContainerComp =\n/** @class */\nfunction (_super) {\n __extends$1m(HeaderRowContainerComp, _super);\n\n function HeaderRowContainerComp(pinned) {\n var _this = _super.call(this) || this;\n\n _this.headerRowComps = {};\n _this.rowCompsList = [];\n _this.pinned = pinned;\n return _this;\n }\n\n HeaderRowContainerComp.prototype.init = function () {\n var _this = this;\n\n this.selectAndSetTemplate();\n var compProxy = {\n addOrRemoveCssClass: function addOrRemoveCssClass(cssClassName, on) {\n return _this.addOrRemoveCssClass(cssClassName, on);\n },\n setCtrls: function setCtrls(ctrls) {\n return _this.setCtrls(ctrls);\n },\n // only gets called for center section\n setCenterWidth: function setCenterWidth(width) {\n return _this.eCenterContainer.style.width = width;\n },\n setContainerTransform: function setContainerTransform(transform) {\n return _this.eCenterContainer.style.transform = transform;\n },\n // only gets called for pinned sections\n setPinnedContainerWidth: function setPinnedContainerWidth(width) {\n var eGui = _this.getGui();\n\n eGui.style.width = width;\n eGui.style.maxWidth = width;\n eGui.style.minWidth = width;\n }\n };\n var ctrl = this.createManagedBean(new HeaderRowContainerCtrl(this.pinned));\n ctrl.setComp(compProxy, this.getGui());\n };\n\n HeaderRowContainerComp.prototype.selectAndSetTemplate = function () {\n var pinnedLeft = this.pinned == Constants.PINNED_LEFT;\n var pinnedRight = this.pinned == Constants.PINNED_RIGHT;\n var template = pinnedLeft ? HeaderRowContainerComp.PINNED_LEFT_TEMPLATE : pinnedRight ? HeaderRowContainerComp.PINNED_RIGHT_TEMPLATE : HeaderRowContainerComp.CENTER_TEMPLATE;\n this.setTemplate(template); // for left and right, we add rows directly to the root element,\n // but for center container we add elements to the child container.\n\n this.eRowContainer = this.eCenterContainer ? this.eCenterContainer : this.getGui();\n };\n\n HeaderRowContainerComp.prototype.destroyRowComps = function () {\n this.setCtrls([]);\n };\n\n HeaderRowContainerComp.prototype.destroyRowComp = function (rowComp) {\n this.destroyBean(rowComp);\n this.eRowContainer.removeChild(rowComp.getGui());\n };\n\n HeaderRowContainerComp.prototype.setCtrls = function (ctrls) {\n var _this = this;\n\n var oldRowComps = this.headerRowComps;\n this.headerRowComps = {};\n this.rowCompsList = [];\n var prevGui;\n\n var appendEnsuringDomOrder = function appendEnsuringDomOrder(rowComp) {\n var eGui = rowComp.getGui();\n var notAlreadyIn = eGui.parentElement != _this.eRowContainer;\n\n if (notAlreadyIn) {\n _this.eRowContainer.appendChild(eGui);\n }\n\n if (prevGui) {\n ensureDomOrder(_this.eRowContainer, eGui, prevGui);\n }\n\n prevGui = eGui;\n };\n\n ctrls.forEach(function (ctrl) {\n var ctrlId = ctrl.getInstanceId();\n var existingComp = oldRowComps[ctrlId];\n delete oldRowComps[ctrlId];\n var rowComp = existingComp ? existingComp : _this.createBean(new HeaderRowComp(ctrl));\n _this.headerRowComps[ctrlId] = rowComp;\n\n _this.rowCompsList.push(rowComp);\n\n appendEnsuringDomOrder(rowComp);\n });\n getAllValuesInObject(oldRowComps).forEach(function (c) {\n return _this.destroyRowComp(c);\n });\n };\n\n HeaderRowContainerComp.PINNED_LEFT_TEMPLATE = \"
\";\n HeaderRowContainerComp.PINNED_RIGHT_TEMPLATE = \"
\";\n HeaderRowContainerComp.CENTER_TEMPLATE = \"
\\n
\\n
\";\n\n __decorate$1f([RefSelector('eCenterContainer')], HeaderRowContainerComp.prototype, \"eCenterContainer\", void 0);\n\n __decorate$1f([PostConstruct], HeaderRowContainerComp.prototype, \"init\", null);\n\n __decorate$1f([PreDestroy], HeaderRowContainerComp.prototype, \"destroyRowComps\", null);\n\n return HeaderRowContainerComp;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1l = undefined && undefined.__extends || function () {\n var _extendStatics100 = function extendStatics(d, b) {\n _extendStatics100 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics100(d, b);\n };\n\n return function (d, b) {\n _extendStatics100(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar HeaderNavigationDirection;\n\n(function (HeaderNavigationDirection) {\n HeaderNavigationDirection[HeaderNavigationDirection[\"UP\"] = 0] = \"UP\";\n HeaderNavigationDirection[HeaderNavigationDirection[\"DOWN\"] = 1] = \"DOWN\";\n HeaderNavigationDirection[HeaderNavigationDirection[\"LEFT\"] = 2] = \"LEFT\";\n HeaderNavigationDirection[HeaderNavigationDirection[\"RIGHT\"] = 3] = \"RIGHT\";\n})(HeaderNavigationDirection || (HeaderNavigationDirection = {}));\n\nvar HeaderNavigationService =\n/** @class */\nfunction (_super) {\n __extends$1l(HeaderNavigationService, _super);\n\n function HeaderNavigationService() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n HeaderNavigationService.prototype.postConstruct = function () {\n var _this = this;\n\n this.ctrlsService.whenReady(function (p) {\n _this.gridBodyCon = p.gridBodyCtrl;\n });\n };\n\n HeaderNavigationService.prototype.getHeaderRowCount = function () {\n var centerHeaderContainer = this.ctrlsService.getHeaderRowContainerCtrl();\n return centerHeaderContainer ? centerHeaderContainer.getRowCount() : 0;\n };\n\n HeaderNavigationService.prototype.getHeaderRowType = function (rowIndex) {\n var centerHeaderContainer = this.ctrlsService.getHeaderRowContainerCtrl();\n\n if (centerHeaderContainer) {\n return centerHeaderContainer.getRowType(rowIndex);\n }\n };\n /*\n * This method navigates grid header vertically\n * @return {boolean} true to preventDefault on the event that caused this navigation.\n */\n\n\n HeaderNavigationService.prototype.navigateVertically = function (direction, fromHeader, event) {\n if (!fromHeader) {\n fromHeader = this.focusService.getFocusedHeader();\n }\n\n if (!fromHeader) {\n return false;\n }\n\n var headerRowIndex = fromHeader.headerRowIndex,\n column = fromHeader.column;\n var rowLen = this.getHeaderRowCount();\n var isUp = direction === HeaderNavigationDirection.UP;\n var nextRow = isUp ? headerRowIndex - 1 : headerRowIndex + 1;\n var nextFocusColumn = null;\n var skipColumn = false;\n\n if (nextRow < 0) {\n nextRow = 0;\n nextFocusColumn = column;\n skipColumn = true;\n }\n\n if (nextRow >= rowLen) {\n nextRow = -1; // -1 indicates the focus should move to grid rows.\n }\n\n var currentRowType = this.getHeaderRowType(headerRowIndex);\n\n if (!skipColumn) {\n if (currentRowType === HeaderRowType.COLUMN_GROUP) {\n var currentColumn = column;\n nextFocusColumn = isUp ? column.getParent() : currentColumn.getDisplayedChildren()[0];\n } else if (currentRowType === HeaderRowType.FLOATING_FILTER) {\n nextFocusColumn = column;\n } else {\n var currentColumn = column;\n nextFocusColumn = isUp ? currentColumn.getParent() : currentColumn;\n }\n\n if (!nextFocusColumn) {\n return false;\n }\n }\n\n return this.focusService.focusHeaderPosition({\n headerPosition: {\n headerRowIndex: nextRow,\n column: nextFocusColumn\n },\n allowUserOverride: true,\n event: event\n });\n };\n /*\n * This method navigates grid header horizontally\n * @return {boolean} true to preventDefault on the event that caused this navigation.\n */\n\n\n HeaderNavigationService.prototype.navigateHorizontally = function (direction, fromTab, event) {\n if (fromTab === void 0) {\n fromTab = false;\n }\n\n var focusedHeader = this.focusService.getFocusedHeader();\n var isLeft = direction === HeaderNavigationDirection.LEFT;\n var isRtl = this.gridOptionsWrapper.isEnableRtl();\n var nextHeader;\n var normalisedDirection; // either navigating to the left or isRtl (cannot be both)\n\n if (isLeft !== isRtl) {\n normalisedDirection = 'Before';\n nextHeader = this.headerPositionUtils.findHeader(focusedHeader, normalisedDirection);\n } else {\n normalisedDirection = 'After';\n nextHeader = this.headerPositionUtils.findHeader(focusedHeader, normalisedDirection);\n }\n\n if (nextHeader || !fromTab) {\n return this.focusService.focusHeaderPosition({\n headerPosition: nextHeader,\n direction: normalisedDirection,\n fromTab: fromTab,\n allowUserOverride: true,\n event: event\n });\n }\n\n return this.focusNextHeaderRow(focusedHeader, normalisedDirection, event);\n };\n\n HeaderNavigationService.prototype.focusNextHeaderRow = function (focusedHeader, direction, event) {\n var currentIndex = focusedHeader.headerRowIndex;\n var nextPosition = null;\n var nextRowIndex;\n\n if (direction === 'Before') {\n if (currentIndex > 0) {\n nextRowIndex = currentIndex - 1;\n nextPosition = this.headerPositionUtils.findColAtEdgeForHeaderRow(nextRowIndex, 'end');\n }\n } else {\n nextRowIndex = currentIndex + 1;\n nextPosition = this.headerPositionUtils.findColAtEdgeForHeaderRow(nextRowIndex, 'start');\n }\n\n return this.focusService.focusHeaderPosition({\n headerPosition: nextPosition,\n direction: direction,\n fromTab: true,\n allowUserOverride: true,\n event: event\n });\n };\n\n HeaderNavigationService.prototype.scrollToColumn = function (column, direction) {\n if (direction === void 0) {\n direction = 'After';\n }\n\n if (column.getPinned()) {\n return;\n }\n\n var columnToScrollTo;\n\n if (column instanceof ColumnGroup) {\n var columns = column.getDisplayedLeafColumns();\n columnToScrollTo = direction === 'Before' ? last(columns) : columns[0];\n } else {\n columnToScrollTo = column;\n }\n\n this.gridBodyCon.getScrollFeature().ensureColumnVisible(columnToScrollTo);\n };\n\n __decorate$1e([Autowired('focusService')], HeaderNavigationService.prototype, \"focusService\", void 0);\n\n __decorate$1e([Autowired('headerPositionUtils')], HeaderNavigationService.prototype, \"headerPositionUtils\", void 0);\n\n __decorate$1e([Autowired('animationFrameService')], HeaderNavigationService.prototype, \"animationFrameService\", void 0);\n\n __decorate$1e([Autowired('ctrlsService')], HeaderNavigationService.prototype, \"ctrlsService\", void 0);\n\n __decorate$1e([PostConstruct], HeaderNavigationService.prototype, \"postConstruct\", null);\n\n HeaderNavigationService = __decorate$1e([Bean('headerNavigationService')], HeaderNavigationService);\n return HeaderNavigationService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1k = undefined && undefined.__extends || function () {\n var _extendStatics101 = function extendStatics(d, b) {\n _extendStatics101 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics101(d, b);\n };\n\n return function (d, b) {\n _extendStatics101(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar GridHeaderCtrl =\n/** @class */\nfunction (_super) {\n __extends$1k(GridHeaderCtrl, _super);\n\n function GridHeaderCtrl() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n GridHeaderCtrl.prototype.setComp = function (comp, eGui, eFocusableElement) {\n this.comp = comp;\n this.eGui = eGui;\n this.createManagedBean(new ManagedFocusFeature(eFocusableElement, {\n onTabKeyDown: this.onTabKeyDown.bind(this),\n handleKeyDown: this.handleKeyDown.bind(this),\n onFocusOut: this.onFocusOut.bind(this)\n })); // for setting ag-pivot-on / ag-pivot-off CSS classes\n\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.onPivotModeChanged.bind(this));\n this.onPivotModeChanged();\n this.setupHeaderHeight();\n this.ctrlsService.registerGridHeaderCtrl(this);\n };\n\n GridHeaderCtrl.prototype.setupHeaderHeight = function () {\n var listener = this.setHeaderHeight.bind(this);\n listener();\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_HEADER_HEIGHT, listener);\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_PIVOT_HEADER_HEIGHT, listener);\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_GROUP_HEADER_HEIGHT, listener);\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_PIVOT_GROUP_HEADER_HEIGHT, listener);\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_FLOATING_FILTERS_HEIGHT, listener);\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, listener);\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_HEADER_HEIGHT_CHANGED, listener);\n };\n\n GridHeaderCtrl.prototype.getHeaderHeight = function () {\n return this.headerHeight;\n };\n\n GridHeaderCtrl.prototype.setHeaderHeight = function () {\n var _a = this,\n columnModel = _a.columnModel,\n gridOptionsWrapper = _a.gridOptionsWrapper;\n\n var numberOfFloating = 0;\n var headerRowCount = columnModel.getHeaderRowCount();\n var totalHeaderHeight;\n var hasFloatingFilters = columnModel.hasFloatingFilters();\n\n if (hasFloatingFilters) {\n headerRowCount++;\n numberOfFloating = 1;\n }\n\n var groupHeight = this.columnModel.getColumnGroupHeaderRowHeight();\n var headerHeight = this.columnModel.getColumnHeaderRowHeight();\n var numberOfNonGroups = 1 + numberOfFloating;\n var numberOfGroups = headerRowCount - numberOfNonGroups;\n totalHeaderHeight = numberOfFloating * gridOptionsWrapper.getFloatingFiltersHeight();\n totalHeaderHeight += numberOfGroups * groupHeight;\n totalHeaderHeight += headerHeight;\n\n if (this.headerHeight === totalHeaderHeight) {\n return;\n }\n\n this.headerHeight = totalHeaderHeight; // one extra pixel is needed here to account for the\n // height of the border\n\n var px = totalHeaderHeight + 1 + \"px\";\n this.comp.setHeightAndMinHeight(px);\n this.eventService.dispatchEvent({\n type: Events.EVENT_HEADER_HEIGHT_CHANGED\n });\n };\n\n GridHeaderCtrl.prototype.onPivotModeChanged = function () {\n var pivotMode = this.columnModel.isPivotMode();\n this.comp.addOrRemoveCssClass('ag-pivot-on', pivotMode);\n this.comp.addOrRemoveCssClass('ag-pivot-off', !pivotMode);\n };\n\n GridHeaderCtrl.prototype.onTabKeyDown = function (e) {\n var isRtl = this.gridOptionsWrapper.isEnableRtl();\n var direction = e.shiftKey !== isRtl ? HeaderNavigationDirection.LEFT : HeaderNavigationDirection.RIGHT;\n\n if (this.headerNavigationService.navigateHorizontally(direction, true, e) || this.focusService.focusNextGridCoreContainer(e.shiftKey)) {\n e.preventDefault();\n }\n };\n\n GridHeaderCtrl.prototype.handleKeyDown = function (e) {\n var direction = null;\n\n switch (e.key) {\n case KeyCode.LEFT:\n direction = HeaderNavigationDirection.LEFT;\n\n case KeyCode.RIGHT:\n if (!exists(direction)) {\n direction = HeaderNavigationDirection.RIGHT;\n }\n\n this.headerNavigationService.navigateHorizontally(direction, false, e);\n break;\n\n case KeyCode.UP:\n direction = HeaderNavigationDirection.UP;\n\n case KeyCode.DOWN:\n if (!exists(direction)) {\n direction = HeaderNavigationDirection.DOWN;\n }\n\n if (this.headerNavigationService.navigateVertically(direction, null, e)) {\n e.preventDefault();\n }\n\n break;\n\n default:\n return;\n }\n };\n\n GridHeaderCtrl.prototype.onFocusOut = function (e) {\n var eDocument = this.gridOptionsWrapper.getDocument();\n var relatedTarget = e.relatedTarget;\n\n if (!relatedTarget && this.eGui.contains(eDocument.activeElement)) {\n return;\n }\n\n if (!this.eGui.contains(relatedTarget)) {\n this.focusService.clearFocusedHeader();\n }\n };\n\n __decorate$1d([Autowired('headerNavigationService')], GridHeaderCtrl.prototype, \"headerNavigationService\", void 0);\n\n __decorate$1d([Autowired('focusService')], GridHeaderCtrl.prototype, \"focusService\", void 0);\n\n __decorate$1d([Autowired('columnModel')], GridHeaderCtrl.prototype, \"columnModel\", void 0);\n\n __decorate$1d([Autowired('ctrlsService')], GridHeaderCtrl.prototype, \"ctrlsService\", void 0);\n\n return GridHeaderCtrl;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1j = undefined && undefined.__extends || function () {\n var _extendStatics102 = function extendStatics(d, b) {\n _extendStatics102 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics102(d, b);\n };\n\n return function (d, b) {\n _extendStatics102(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar GridHeaderComp =\n/** @class */\nfunction (_super) {\n __extends$1j(GridHeaderComp, _super);\n\n function GridHeaderComp() {\n return _super.call(this, GridHeaderComp.TEMPLATE) || this;\n }\n\n GridHeaderComp.prototype.postConstruct = function () {\n var _this = this;\n\n var compProxy = {\n addOrRemoveCssClass: function addOrRemoveCssClass(cssClassName, on) {\n return _this.addOrRemoveCssClass(cssClassName, on);\n },\n setHeightAndMinHeight: function setHeightAndMinHeight(height) {\n _this.getGui().style.height = height;\n _this.getGui().style.minHeight = height;\n }\n };\n var ctrl = this.createManagedBean(new GridHeaderCtrl());\n ctrl.setComp(compProxy, this.getGui(), this.getFocusableElement());\n\n var addContainer = function addContainer(container) {\n _this.createManagedBean(container);\n\n _this.appendChild(container);\n };\n\n addContainer(new HeaderRowContainerComp(Constants.PINNED_LEFT));\n addContainer(new HeaderRowContainerComp(null));\n addContainer(new HeaderRowContainerComp(Constants.PINNED_RIGHT));\n };\n\n GridHeaderComp.TEMPLATE = \"
\";\n\n __decorate$1c([PostConstruct], GridHeaderComp.prototype, \"postConstruct\", null);\n\n return GridHeaderComp;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1i = undefined && undefined.__extends || function () {\n var _extendStatics103 = function extendStatics(d, b) {\n _extendStatics103 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics103(d, b);\n };\n\n return function (d, b) {\n _extendStatics103(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar HorizontalResizeService =\n/** @class */\nfunction (_super) {\n __extends$1i(HorizontalResizeService, _super);\n\n function HorizontalResizeService() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n HorizontalResizeService.prototype.addResizeBar = function (params) {\n var _this = this;\n\n var dragSource = {\n dragStartPixels: params.dragStartPixels || 0,\n eElement: params.eResizeBar,\n onDragStart: this.onDragStart.bind(this, params),\n onDragStop: this.onDragStop.bind(this, params),\n onDragging: this.onDragging.bind(this, params)\n };\n this.dragService.addDragSource(dragSource, true); // we pass remove func back to the caller, so call can tell us when they\n // are finished, and then we remove the listener from the drag source\n\n var finishedWithResizeFunc = function finishedWithResizeFunc() {\n return _this.dragService.removeDragSource(dragSource);\n };\n\n return finishedWithResizeFunc;\n };\n\n HorizontalResizeService.prototype.onDragStart = function (params, mouseEvent) {\n this.dragStartX = mouseEvent.clientX;\n this.setResizeIcons();\n var shiftKey = mouseEvent instanceof MouseEvent && mouseEvent.shiftKey === true;\n params.onResizeStart(shiftKey);\n };\n\n HorizontalResizeService.prototype.setResizeIcons = function () {\n var ctrl = this.ctrlsService.getGridCtrl(); // change the body cursor, so when drag moves out of the drag bar, the cursor is still 'resize' (or 'move'\n\n ctrl.setResizeCursor(true); // we don't want text selection outside the grid (otherwise it looks weird as text highlights when we move)\n\n ctrl.disableUserSelect(true);\n };\n\n HorizontalResizeService.prototype.onDragStop = function (params, mouseEvent) {\n params.onResizeEnd(this.resizeAmount);\n this.resetIcons();\n };\n\n HorizontalResizeService.prototype.resetIcons = function () {\n var ctrl = this.ctrlsService.getGridCtrl();\n ctrl.setResizeCursor(false);\n ctrl.disableUserSelect(false);\n };\n\n HorizontalResizeService.prototype.onDragging = function (params, mouseEvent) {\n this.resizeAmount = mouseEvent.clientX - this.dragStartX;\n params.onResizing(this.resizeAmount);\n };\n\n __decorate$1b([Autowired('dragService')], HorizontalResizeService.prototype, \"dragService\", void 0);\n\n __decorate$1b([Autowired('ctrlsService')], HorizontalResizeService.prototype, \"ctrlsService\", void 0);\n\n HorizontalResizeService = __decorate$1b([Bean('horizontalResizeService')], HorizontalResizeService);\n return HorizontalResizeService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1h = undefined && undefined.__extends || function () {\n var _extendStatics104 = function extendStatics(d, b) {\n _extendStatics104 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics104(d, b);\n };\n\n return function (d, b) {\n _extendStatics104(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar StandardMenuFactory =\n/** @class */\nfunction (_super) {\n __extends$1h(StandardMenuFactory, _super);\n\n function StandardMenuFactory() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n StandardMenuFactory.prototype.hideActiveMenu = function () {\n if (this.hidePopup) {\n this.hidePopup();\n }\n };\n\n StandardMenuFactory.prototype.showMenuAfterMouseEvent = function (column, mouseEvent) {\n var _this = this;\n\n this.showPopup(column, function (eMenu) {\n _this.popupService.positionPopupUnderMouseEvent({\n column: column,\n type: 'columnMenu',\n mouseEvent: mouseEvent,\n ePopup: eMenu\n });\n }, mouseEvent.target);\n };\n\n StandardMenuFactory.prototype.showMenuAfterButtonClick = function (column, eventSource, containerType) {\n var _this = this;\n\n this.showPopup(column, function (eMenu) {\n _this.popupService.positionPopupUnderComponent({\n type: containerType,\n eventSource: eventSource,\n ePopup: eMenu,\n keepWithinBounds: true,\n column: column\n });\n }, eventSource);\n };\n\n StandardMenuFactory.prototype.showPopup = function (column, _positionCallback, eventSource) {\n var _this = this;\n\n var filterWrapper = this.filterManager.getOrCreateFilterWrapper(column, 'COLUMN_MENU');\n\n if (!filterWrapper) {\n throw new Error('AG Grid - unable to show popup filter, filter instantiation failed');\n }\n\n var eMenu = document.createElement('div');\n setAriaRole(eMenu, 'presentation');\n eMenu.classList.add('ag-menu');\n this.tabListener = this.addManagedListener(eMenu, 'keydown', function (e) {\n return _this.trapFocusWithin(e, eMenu);\n });\n filterWrapper.guiPromise.then(function (gui) {\n return eMenu.appendChild(gui);\n });\n var hidePopup;\n var anchorToElement = eventSource || this.ctrlsService.getGridBodyCtrl().getGui();\n\n var closedCallback = function closedCallback(e) {\n column.setMenuVisible(false, 'contextMenu');\n var isKeyboardEvent = e instanceof KeyboardEvent;\n\n if (_this.tabListener) {\n _this.tabListener = _this.tabListener();\n }\n\n if (isKeyboardEvent && eventSource && isVisible(eventSource)) {\n var focusableEl = _this.focusService.findTabbableParent(eventSource);\n\n if (focusableEl) {\n focusableEl.focus();\n }\n }\n };\n\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var addPopupRes = this.popupService.addPopup({\n modal: true,\n eChild: eMenu,\n closeOnEsc: true,\n closedCallback: closedCallback,\n positionCallback: function positionCallback() {\n return _positionCallback(eMenu);\n },\n anchorToElement: anchorToElement,\n ariaLabel: translate('ariaLabelColumnMenu', 'Column Menu')\n });\n\n if (addPopupRes) {\n this.hidePopup = hidePopup = addPopupRes.hideFunc;\n }\n\n filterWrapper.filterPromise.then(function (filter) {\n // need to make sure the filter is present before positioning, as only\n // after filter it is visible can we find out what the width of it is\n _positionCallback(eMenu);\n\n if (filter.afterGuiAttached) {\n filter.afterGuiAttached({\n container: 'columnMenu',\n hidePopup: hidePopup\n });\n }\n });\n column.setMenuVisible(true, 'contextMenu');\n };\n\n StandardMenuFactory.prototype.trapFocusWithin = function (e, menu) {\n if (e.key !== KeyCode.TAB || e.defaultPrevented || this.focusService.findNextFocusableElement(menu, false, e.shiftKey)) {\n return;\n }\n\n e.preventDefault();\n this.focusService.focusInto(menu, e.shiftKey);\n };\n\n StandardMenuFactory.prototype.isMenuEnabled = function (column) {\n // for standard, we show menu if filter is enabled, and the menu is not suppressed\n return column.isFilterAllowed();\n };\n\n __decorate$1a([Autowired('filterManager')], StandardMenuFactory.prototype, \"filterManager\", void 0);\n\n __decorate$1a([Autowired('popupService')], StandardMenuFactory.prototype, \"popupService\", void 0);\n\n __decorate$1a([Autowired('focusService')], StandardMenuFactory.prototype, \"focusService\", void 0);\n\n __decorate$1a([Autowired('ctrlsService')], StandardMenuFactory.prototype, \"ctrlsService\", void 0);\n\n StandardMenuFactory = __decorate$1a([Bean('menuFactory')], StandardMenuFactory);\n return StandardMenuFactory;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1g = undefined && undefined.__extends || function () {\n var _extendStatics105 = function extendStatics(d, b) {\n _extendStatics105 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics105(d, b);\n };\n\n return function (d, b) {\n _extendStatics105(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar TabbedLayout =\n/** @class */\nfunction (_super) {\n __extends$1g(TabbedLayout, _super);\n\n function TabbedLayout(params) {\n var _this = _super.call(this, TabbedLayout.getTemplate(params.cssClass)) || this;\n\n _this.items = [];\n _this.tabbedItemScrollMap = new Map();\n _this.params = params;\n\n if (params.items) {\n params.items.forEach(function (item) {\n return _this.addItem(item);\n });\n }\n\n return _this;\n }\n\n TabbedLayout.prototype.postConstruct = function () {\n this.createManagedBean(new ManagedFocusFeature(this.getFocusableElement(), {\n onTabKeyDown: this.onTabKeyDown.bind(this),\n handleKeyDown: this.handleKeyDown.bind(this)\n }));\n };\n\n TabbedLayout.getTemplate = function (cssClass) {\n return (\n /* html */\n \"
\\n
\\n
\\n
\"\n );\n };\n\n TabbedLayout.prototype.handleKeyDown = function (e) {\n var eDocument = this.gridOptionsWrapper.getDocument();\n\n switch (e.key) {\n case KeyCode.RIGHT:\n case KeyCode.LEFT:\n if (!this.eHeader.contains(eDocument.activeElement)) {\n return;\n }\n\n var isRightKey = e.key === KeyCode.RIGHT;\n var isRtl = this.gridOptionsWrapper.isEnableRtl();\n var currentPosition = this.items.indexOf(this.activeItem);\n var nextPosition = isRightKey !== isRtl ? Math.min(currentPosition + 1, this.items.length - 1) : Math.max(currentPosition - 1, 0);\n\n if (currentPosition === nextPosition) {\n return;\n }\n\n e.preventDefault();\n var nextItem = this.items[nextPosition];\n this.showItemWrapper(nextItem);\n nextItem.eHeaderButton.focus();\n break;\n\n case KeyCode.UP:\n case KeyCode.DOWN:\n e.stopPropagation();\n break;\n }\n };\n\n TabbedLayout.prototype.onTabKeyDown = function (e) {\n if (e.defaultPrevented) {\n return;\n }\n\n var _a = this,\n focusService = _a.focusService,\n eHeader = _a.eHeader,\n eBody = _a.eBody,\n activeItem = _a.activeItem;\n\n var eDocument = this.gridOptionsWrapper.getDocument();\n var activeElement = eDocument.activeElement;\n e.preventDefault();\n\n if (eHeader.contains(activeElement)) {\n // focus is in header, move into body of popup\n focusService.focusInto(eBody, e.shiftKey);\n } else {\n // focus is in body, establish if it should return to header\n if (focusService.isFocusUnderManagedComponent(eBody)) {\n // focus was in a managed focus component and has now left, so we can return to the header\n activeItem.eHeaderButton.focus();\n } else {\n var nextEl = focusService.findNextFocusableElement(eBody, false, e.shiftKey);\n\n if (nextEl) {\n // if another element exists in the body that can be focussed, go to that\n nextEl.focus();\n } else {\n // otherwise return to the header\n activeItem.eHeaderButton.focus();\n }\n }\n }\n };\n\n TabbedLayout.prototype.setAfterAttachedParams = function (params) {\n this.afterAttachedParams = params;\n };\n\n TabbedLayout.prototype.showFirstItem = function () {\n if (this.items.length > 0) {\n this.showItemWrapper(this.items[0]);\n }\n };\n\n TabbedLayout.prototype.addItem = function (item) {\n var eHeaderButton = document.createElement('span');\n setAriaRole(eHeaderButton, 'tab');\n eHeaderButton.setAttribute('tabIndex', '-1');\n eHeaderButton.appendChild(item.title);\n eHeaderButton.classList.add('ag-tab');\n this.eHeader.appendChild(eHeaderButton);\n setAriaLabel(eHeaderButton, item.titleLabel);\n var wrapper = {\n tabbedItem: item,\n eHeaderButton: eHeaderButton\n };\n this.items.push(wrapper);\n eHeaderButton.addEventListener('click', this.showItemWrapper.bind(this, wrapper));\n };\n\n TabbedLayout.prototype.showItem = function (tabbedItem) {\n var itemWrapper = this.items.find(function (wrapper) {\n return wrapper.tabbedItem === tabbedItem;\n });\n\n if (itemWrapper) {\n this.showItemWrapper(itemWrapper);\n }\n };\n\n TabbedLayout.prototype.showItemWrapper = function (wrapper) {\n var _this = this;\n\n var tabbedItem = wrapper.tabbedItem,\n eHeaderButton = wrapper.eHeaderButton;\n\n if (this.params.onItemClicked) {\n this.params.onItemClicked({\n item: tabbedItem\n });\n }\n\n if (this.activeItem === wrapper) {\n callIfPresent(this.params.onActiveItemClicked);\n return;\n }\n\n if (this.lastScrollListener) {\n this.lastScrollListener = this.lastScrollListener();\n }\n\n clearElement(this.eBody);\n tabbedItem.bodyPromise.then(function (body) {\n _this.eBody.appendChild(body);\n\n var onlyUnmanaged = !_this.focusService.isKeyboardMode();\n\n _this.focusService.focusInto(_this.eBody, false, onlyUnmanaged);\n\n if (tabbedItem.afterAttachedCallback) {\n tabbedItem.afterAttachedCallback(_this.afterAttachedParams);\n }\n\n if (_this.params.keepScrollPosition) {\n var scrollableContainer_1 = tabbedItem.getScrollableContainer && tabbedItem.getScrollableContainer() || body;\n _this.lastScrollListener = _this.addManagedListener(scrollableContainer_1, 'scroll', function () {\n _this.tabbedItemScrollMap.set(tabbedItem.name, scrollableContainer_1.scrollTop);\n });\n\n var scrollPosition_1 = _this.tabbedItemScrollMap.get(tabbedItem.name);\n\n if (scrollPosition_1 !== undefined) {\n // Safari needs a small timeout or it will fire a scroll event to position 0\n setTimeout(function () {\n scrollableContainer_1.scrollTop = scrollPosition_1;\n }, 0);\n }\n }\n });\n\n if (this.activeItem) {\n this.activeItem.eHeaderButton.classList.remove('ag-tab-selected');\n }\n\n eHeaderButton.classList.add('ag-tab-selected');\n this.activeItem = wrapper;\n };\n\n __decorate$19([Autowired('focusService')], TabbedLayout.prototype, \"focusService\", void 0);\n\n __decorate$19([RefSelector('eHeader')], TabbedLayout.prototype, \"eHeader\", void 0);\n\n __decorate$19([RefSelector('eBody')], TabbedLayout.prototype, \"eBody\", void 0);\n\n __decorate$19([PostConstruct], TabbedLayout.prototype, \"postConstruct\", null);\n\n return TabbedLayout;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n/**\n * @deprecated\n */\n\n\nfunction simpleHttpRequest(params) {\n return new AgPromise(function (resolve) {\n var httpRequest = new XMLHttpRequest();\n httpRequest.open('GET', params.url);\n httpRequest.send();\n\n httpRequest.onreadystatechange = function () {\n if (httpRequest.readyState === 4 && httpRequest.status === 200) {\n resolve(JSON.parse(httpRequest.responseText));\n }\n };\n });\n}\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1f = undefined && undefined.__extends || function () {\n var _extendStatics106 = function extendStatics(d, b) {\n _extendStatics106 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics106(d, b);\n };\n\n return function (d, b) {\n _extendStatics106(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar DEBOUNCE_DELAY = 50;\n\nvar ResizeObserverService =\n/** @class */\nfunction (_super) {\n __extends$1f(ResizeObserverService, _super);\n\n function ResizeObserverService() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.polyfillFunctions = [];\n return _this;\n }\n\n ResizeObserverService.prototype.observeResize = function (element, callback) {\n var _this = this;\n\n var eDocument = this.gridOptionsWrapper.getDocument();\n var win = eDocument.defaultView || window; // this gets fired too often and might cause some relayout issues\n // so we add a debounce to the callback here to avoid the flashing effect.\n\n var debouncedCallback = debounce(callback, DEBOUNCE_DELAY);\n\n var useBrowserResizeObserver = function useBrowserResizeObserver() {\n var resizeObserver = new win.ResizeObserver(debouncedCallback);\n resizeObserver.observe(element);\n return function () {\n return resizeObserver.disconnect();\n };\n };\n\n var usePolyfill = function usePolyfill() {\n // initialise to the current width and height, so first call will have no changes\n var widthLastTime = offsetWidth(element);\n var heightLastTime = offsetHeight(element); // when finished, this gets turned to false.\n\n var running = true;\n\n var periodicallyCheckWidthAndHeight = function periodicallyCheckWidthAndHeight() {\n if (running) {\n var newWidth = offsetWidth(element);\n var newHeight = offsetHeight(element);\n var changed = newWidth !== widthLastTime || newHeight !== heightLastTime;\n\n if (changed) {\n widthLastTime = newWidth;\n heightLastTime = newHeight;\n callback();\n }\n\n _this.doNextPolyfillTurn(periodicallyCheckWidthAndHeight);\n }\n };\n\n periodicallyCheckWidthAndHeight(); // the callback function we return sets running to false\n\n return function () {\n return running = false;\n };\n };\n\n var suppressResize = this.gridOptionsWrapper.isSuppressBrowserResizeObserver();\n var resizeObserverExists = !!win.ResizeObserver;\n\n if (resizeObserverExists && !suppressResize) {\n return useBrowserResizeObserver();\n }\n\n return usePolyfill();\n };\n\n ResizeObserverService.prototype.doNextPolyfillTurn = function (func) {\n this.polyfillFunctions.push(func);\n this.schedulePolyfill();\n };\n\n ResizeObserverService.prototype.schedulePolyfill = function () {\n var _this = this;\n\n if (this.polyfillScheduled) {\n return;\n }\n\n var executeAllFuncs = function executeAllFuncs() {\n var funcs = _this.polyfillFunctions; // make sure set scheduled to false and clear clear array\n // before executing the funcs, as the funcs could add more funcs\n\n _this.polyfillScheduled = false;\n _this.polyfillFunctions = [];\n funcs.forEach(function (f) {\n return f();\n });\n };\n\n this.polyfillScheduled = true;\n this.getFrameworkOverrides().setTimeout(executeAllFuncs, DEBOUNCE_DELAY);\n };\n\n ResizeObserverService = __decorate$18([Bean('resizeObserverService')], ResizeObserverService);\n return ResizeObserverService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1e = undefined && undefined.__extends || function () {\n var _extendStatics107 = function extendStatics(d, b) {\n _extendStatics107 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics107(d, b);\n };\n\n return function (d, b) {\n _extendStatics107(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AnimationFrameService =\n/** @class */\nfunction (_super) {\n __extends$1e(AnimationFrameService, _super);\n\n function AnimationFrameService() {\n var _this = _super !== null && _super.apply(this, arguments) || this; // p1 and p2 are create tasks are to do with row and cell creation.\n // for them we want to execute according to row order, so we use\n // TaskItem so we know what index the item is for.\n\n\n _this.createTasksP1 = {\n list: [],\n sorted: false\n }; // eg drawing back-ground of rows\n\n _this.createTasksP2 = {\n list: [],\n sorted: false\n }; // eg cell renderers, adding hover functionality\n // destroy tasks are to do with row removal. they are done after row creation as the user will need to see new\n // rows first (as blank is scrolled into view), when we remove the old rows (no longer in view) is not as\n // important.\n\n _this.destroyTasks = [];\n _this.ticking = false; // we need to know direction of scroll, to build up rows in the direction of\n // the scroll. eg if user scrolls down, we extend the rows by building down.\n\n _this.scrollGoingDown = true;\n _this.lastScrollTop = 0;\n _this.taskCount = 0;\n _this.cancelledTasks = new Set();\n return _this;\n }\n\n AnimationFrameService.prototype.setScrollTop = function (scrollTop) {\n this.scrollGoingDown = scrollTop > this.lastScrollTop;\n this.lastScrollTop = scrollTop;\n };\n\n AnimationFrameService.prototype.init = function () {\n this.useAnimationFrame = !this.gridOptionsWrapper.isSuppressAnimationFrame();\n };\n\n AnimationFrameService.prototype.isOn = function () {\n return this.useAnimationFrame;\n }; // this method is for our AG Grid sanity only - if animation frames are turned off,\n // then no place in the code should be looking to add any work to be done in animation\n // frames. this stops bugs - where some code is asking for a frame to be executed\n // when it should not.\n\n\n AnimationFrameService.prototype.verifyAnimationFrameOn = function (methodName) {\n if (this.useAnimationFrame === false) {\n console.warn(\"AG Grid: AnimationFrameService.\" + methodName + \" called but animation frames are off\");\n }\n };\n\n AnimationFrameService.prototype.createTask = function (task, index, list) {\n this.verifyAnimationFrameOn(list);\n var taskItem = {\n task: task,\n index: index,\n createOrder: ++this.taskCount\n };\n this.addTaskToList(this[list], taskItem);\n this.schedule();\n };\n\n AnimationFrameService.prototype.cancelTask = function (task) {\n this.cancelledTasks.add(task);\n };\n\n AnimationFrameService.prototype.addTaskToList = function (taskList, task) {\n taskList.list.push(task);\n taskList.sorted = false;\n };\n\n AnimationFrameService.prototype.sortTaskList = function (taskList) {\n if (taskList.sorted) {\n return;\n }\n\n var sortDirection = this.scrollGoingDown ? 1 : -1; // sort first by row index (taking into account scroll direction), then by\n // order of task creation (always ascending, so cells will render left-to-right)\n\n taskList.list.sort(function (a, b) {\n return a.index !== b.index ? sortDirection * (b.index - a.index) : b.createOrder - a.createOrder;\n });\n taskList.sorted = true;\n };\n\n AnimationFrameService.prototype.addDestroyTask = function (task) {\n this.verifyAnimationFrameOn('createTasksP3');\n this.destroyTasks.push(task);\n this.schedule();\n };\n\n AnimationFrameService.prototype.executeFrame = function (millis) {\n this.verifyAnimationFrameOn('executeFrame');\n var p1TaskList = this.createTasksP1;\n var p1Tasks = p1TaskList.list;\n var p2TaskList = this.createTasksP2;\n var p2Tasks = p2TaskList.list;\n var destroyTasks = this.destroyTasks;\n var frameStart = new Date().getTime();\n var duration = new Date().getTime() - frameStart; // 16ms is 60 fps\n\n var noMaxMillis = millis <= 0;\n var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n\n while (noMaxMillis || duration < millis) {\n var gridBodyDidSomething = gridBodyCon.getScrollFeature().executeAnimationFrameScroll();\n\n if (!gridBodyDidSomething) {\n var task = void 0;\n\n if (p1Tasks.length) {\n this.sortTaskList(p1TaskList);\n task = p1Tasks.pop().task;\n } else if (p2Tasks.length) {\n this.sortTaskList(p2TaskList);\n task = p2Tasks.pop().task;\n } else if (destroyTasks.length) {\n task = destroyTasks.pop();\n } else {\n this.cancelledTasks.clear();\n break;\n }\n\n if (!this.cancelledTasks.has(task)) {\n task();\n }\n }\n\n duration = new Date().getTime() - frameStart;\n }\n\n if (p1Tasks.length || p2Tasks.length || destroyTasks.length) {\n this.requestFrame();\n } else {\n this.stopTicking();\n }\n };\n\n AnimationFrameService.prototype.stopTicking = function () {\n this.ticking = false;\n };\n\n AnimationFrameService.prototype.flushAllFrames = function () {\n if (!this.useAnimationFrame) {\n return;\n }\n\n this.executeFrame(-1);\n };\n\n AnimationFrameService.prototype.schedule = function () {\n if (!this.useAnimationFrame) {\n return;\n }\n\n if (!this.ticking) {\n this.ticking = true;\n this.requestFrame();\n }\n };\n\n AnimationFrameService.prototype.requestFrame = function () {\n // check for the existence of requestAnimationFrame, and if\n // it's missing, then we polyfill it with setTimeout()\n var callback = this.executeFrame.bind(this, 60);\n var eDocument = this.gridOptionsWrapper.getDocument();\n var win = eDocument.defaultView || window;\n\n if (win.requestAnimationFrame) {\n win.requestAnimationFrame(callback);\n } else if (win.webkitRequestAnimationFrame) {\n win.webkitRequestAnimationFrame(callback);\n } else {\n win.setTimeout(callback, 0);\n }\n };\n\n AnimationFrameService.prototype.isQueueEmpty = function () {\n return !this.ticking;\n }; // a debounce utility used for parts of the app involved with rendering.\n // the advantage over normal debounce is the client can call flushAllFrames()\n // to make sure all rendering is complete. we don't wait any milliseconds,\n // as this is intended to batch calls in one VM turn.\n\n\n AnimationFrameService.prototype.debounce = function (func) {\n var _this = this;\n\n var pending = false;\n return function () {\n if (!_this.isOn()) {\n _this.getFrameworkOverrides().setTimeout(func, 0);\n\n return;\n }\n\n if (pending) {\n return;\n }\n\n pending = true;\n\n _this.addDestroyTask(function () {\n pending = false;\n func();\n });\n };\n };\n\n __decorate$17([Autowired('ctrlsService')], AnimationFrameService.prototype, \"ctrlsService\", void 0);\n\n __decorate$17([PostConstruct], AnimationFrameService.prototype, \"init\", null);\n\n AnimationFrameService = __decorate$17([Bean('animationFrameService')], AnimationFrameService);\n return AnimationFrameService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1d = undefined && undefined.__extends || function () {\n var _extendStatics108 = function extendStatics(d, b) {\n _extendStatics108 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics108(d, b);\n };\n\n return function (d, b) {\n _extendStatics108(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar RESIZE_CONTAINER_STYLE = 'ag-resizer-wrapper';\nvar RESIZE_TEMPLATE =\n/* html */\n\"
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\";\n\nvar PositionableFeature =\n/** @class */\nfunction (_super) {\n __extends$1d(PositionableFeature, _super);\n\n function PositionableFeature(element, config) {\n var _this = _super.call(this) || this;\n\n _this.element = element;\n _this.dragStartPosition = {\n x: 0,\n y: 0\n };\n _this.position = {\n x: 0,\n y: 0\n };\n _this.lastSize = {\n width: -1,\n height: -1\n };\n _this.positioned = false;\n _this.resizersAdded = false;\n _this.resizeListeners = [];\n _this.boundaryEl = null;\n _this.isResizing = false;\n _this.isMoving = false;\n _this.resizable = {};\n _this.movable = false;\n _this.currentResizer = null;\n _this.config = Object.assign({}, {\n popup: false\n }, config);\n return _this;\n }\n\n PositionableFeature.prototype.center = function () {\n var _a = this.offsetParent,\n clientHeight = _a.clientHeight,\n clientWidth = _a.clientWidth;\n var x = clientWidth / 2 - this.getWidth() / 2;\n var y = clientHeight / 2 - this.getHeight() / 2;\n this.offsetElement(x, y);\n };\n\n PositionableFeature.prototype.initialisePosition = function () {\n var _a = this.config,\n centered = _a.centered,\n forcePopupParentAsOffsetParent = _a.forcePopupParentAsOffsetParent,\n minWidth = _a.minWidth,\n width = _a.width,\n minHeight = _a.minHeight,\n height = _a.height,\n x = _a.x,\n y = _a.y;\n\n if (!this.offsetParent) {\n this.setOffsetParent();\n }\n\n var computedMinHeight = 0;\n var computedMinWidth = 0; // here we don't use the main offset parent but the element's offsetParent\n // in order to calculated the minWidth and minHeight correctly\n\n var isVisible = !!this.element.offsetParent;\n\n if (isVisible) {\n var boundaryEl = this.findBoundaryElement();\n var offsetParentComputedStyles = window.getComputedStyle(boundaryEl);\n\n if (offsetParentComputedStyles.minWidth != null) {\n var paddingWidth = boundaryEl.offsetWidth - this.element.offsetWidth;\n computedMinWidth = parseInt(offsetParentComputedStyles.minWidth, 10) - paddingWidth;\n }\n\n if (offsetParentComputedStyles.minHeight != null) {\n var paddingHeight = boundaryEl.offsetHeight - this.element.offsetHeight;\n computedMinHeight = parseInt(offsetParentComputedStyles.minHeight, 10) - paddingHeight;\n }\n }\n\n this.minHeight = minHeight || computedMinHeight;\n this.minWidth = minWidth || computedMinWidth;\n\n if (width) {\n this.setWidth(width);\n }\n\n if (height) {\n this.setHeight(height);\n }\n\n if (!width || !height) {\n this.refreshSize();\n }\n\n if (centered) {\n this.center();\n } else if (x || y) {\n this.offsetElement(x, y);\n } else if (isVisible && forcePopupParentAsOffsetParent && this.boundaryEl) {\n var top_1 = parseFloat(this.boundaryEl.style.top);\n var left = parseFloat(this.boundaryEl.style.left);\n this.offsetElement(isNaN(left) ? 0 : left, isNaN(top_1) ? 0 : top_1);\n }\n\n this.positioned = !!this.offsetParent;\n };\n\n PositionableFeature.prototype.isPositioned = function () {\n return this.positioned;\n };\n\n PositionableFeature.prototype.getPosition = function () {\n return this.position;\n };\n\n PositionableFeature.prototype.setMovable = function (movable, moveElement) {\n if (!this.config.popup || movable === this.movable) {\n return;\n }\n\n this.movable = movable;\n var params = this.moveElementDragListener || {\n eElement: moveElement,\n onDragStart: this.onMoveStart.bind(this),\n onDragging: this.onMove.bind(this),\n onDragStop: this.onMoveEnd.bind(this)\n };\n\n if (movable) {\n this.dragService.addDragSource(params);\n this.moveElementDragListener = params;\n } else {\n this.dragService.removeDragSource(params);\n this.moveElementDragListener = undefined;\n }\n };\n\n PositionableFeature.prototype.setResizable = function (resizable) {\n var _this = this;\n\n this.clearResizeListeners();\n\n if (resizable) {\n this.addResizers();\n } else {\n this.removeResizers();\n }\n\n if (typeof resizable === 'boolean') {\n if (resizable === false) {\n return;\n }\n\n resizable = {\n topLeft: resizable,\n top: resizable,\n topRight: resizable,\n right: resizable,\n bottomRight: resizable,\n bottom: resizable,\n bottomLeft: resizable,\n left: resizable\n };\n }\n\n Object.keys(resizable).forEach(function (side) {\n var resizableStructure = resizable;\n var val = !!resizableStructure[side];\n\n var resizerEl = _this.getResizerElement(side);\n\n var params = {\n dragStartPixels: 0,\n eElement: resizerEl,\n onDragStart: function onDragStart(e) {\n return _this.onResizeStart(e, side);\n },\n onDragging: _this.onResize.bind(_this),\n onDragStop: function onDragStop(e) {\n return _this.onResizeEnd(e, side);\n }\n };\n\n if (!!_this.resizable[side] !== val || !_this.isAlive() && !val) {\n if (val) {\n _this.dragService.addDragSource(params);\n\n _this.resizeListeners.push(params);\n\n resizerEl.style.pointerEvents = 'all';\n } else {\n resizerEl.style.pointerEvents = 'none';\n }\n }\n });\n };\n\n PositionableFeature.prototype.removeSizeFromEl = function () {\n this.element.style.removeProperty('height');\n this.element.style.removeProperty('width');\n this.element.style.removeProperty('flex');\n };\n\n PositionableFeature.prototype.restoreLastSize = function () {\n this.element.style.flex = '0 0 auto';\n var _a = this.lastSize,\n height = _a.height,\n width = _a.width;\n\n if (width !== -1) {\n this.element.style.width = width + \"px\";\n }\n\n if (height !== -1) {\n this.element.style.height = height + \"px\";\n }\n };\n\n PositionableFeature.prototype.getHeight = function () {\n return this.element.offsetHeight;\n };\n\n PositionableFeature.prototype.setHeight = function (height) {\n var popup = this.config.popup;\n var eGui = this.element;\n var isPercent = false;\n\n if (typeof height === 'string' && height.indexOf('%') !== -1) {\n setFixedHeight(eGui, height);\n height = getAbsoluteHeight(eGui);\n isPercent = true;\n } else if (this.positioned) {\n var elRect = this.element.getBoundingClientRect();\n var parentRect = this.offsetParent.getBoundingClientRect();\n height = Math.max(this.minHeight, height);\n var clientHeight = this.offsetParent.clientHeight;\n var yPosition = popup ? this.position.y : elRect.top;\n var parentTop = popup ? 0 : parentRect.top;\n\n if (clientHeight && height + yPosition > clientHeight + parentTop) {\n height = clientHeight - yPosition;\n }\n }\n\n if (this.getHeight() === height) {\n return;\n }\n\n if (!isPercent) {\n if (popup) {\n setFixedHeight(eGui, height);\n } else {\n eGui.style.height = height + \"px\";\n eGui.style.flex = '0 0 auto';\n this.lastSize.height = typeof height === 'number' ? height : parseFloat(height);\n }\n } else {\n eGui.style.maxHeight = 'unset';\n eGui.style.minHeight = 'unset';\n }\n };\n\n PositionableFeature.prototype.getWidth = function () {\n return this.element.offsetWidth;\n };\n\n PositionableFeature.prototype.setWidth = function (width) {\n var eGui = this.element;\n var popup = this.config.popup;\n var isPercent = false;\n\n if (typeof width === 'string' && width.indexOf('%') !== -1) {\n setFixedWidth(eGui, width);\n width = getAbsoluteWidth(eGui);\n isPercent = true;\n } else if (this.positioned) {\n width = Math.max(this.minWidth, width);\n var clientWidth = this.offsetParent.clientWidth;\n var xPosition = popup ? this.position.x : this.element.getBoundingClientRect().left;\n\n if (clientWidth && width + xPosition > clientWidth) {\n width = clientWidth - xPosition;\n }\n }\n\n if (this.getWidth() === width) {\n return;\n }\n\n if (!isPercent) {\n if (this.config.popup) {\n setFixedWidth(eGui, width);\n } else {\n eGui.style.width = width + \"px\";\n eGui.style.flex = ' unset';\n this.lastSize.width = typeof width === 'number' ? width : parseFloat(width);\n }\n } else {\n eGui.style.maxWidth = 'unset';\n eGui.style.minWidth = 'unset';\n }\n };\n\n PositionableFeature.prototype.offsetElement = function (x, y) {\n if (x === void 0) {\n x = 0;\n }\n\n if (y === void 0) {\n y = 0;\n }\n\n var ePopup = this.config.forcePopupParentAsOffsetParent ? this.boundaryEl : this.element;\n this.popupService.positionPopup({\n ePopup: ePopup,\n x: x,\n y: y,\n keepWithinBounds: true\n });\n this.setPosition(parseFloat(ePopup.style.left), parseFloat(ePopup.style.top));\n };\n\n PositionableFeature.prototype.setPosition = function (x, y) {\n this.position.x = x;\n this.position.y = y;\n };\n\n PositionableFeature.prototype.updateDragStartPosition = function (x, y) {\n this.dragStartPosition = {\n x: x,\n y: y\n };\n };\n\n PositionableFeature.prototype.calculateMouseMovement = function (params) {\n var e = params.e,\n isLeft = params.isLeft,\n isTop = params.isTop,\n anywhereWithin = params.anywhereWithin,\n topBuffer = params.topBuffer;\n var xDiff = e.clientX - this.dragStartPosition.x;\n var yDiff = e.clientY - this.dragStartPosition.y;\n var movementX = this.shouldSkipX(e, !!isLeft, !!anywhereWithin, xDiff) ? 0 : xDiff;\n var movementY = this.shouldSkipY(e, !!isTop, topBuffer, yDiff) ? 0 : yDiff;\n return {\n movementX: movementX,\n movementY: movementY\n };\n };\n\n PositionableFeature.prototype.shouldSkipX = function (e, isLeft, anywhereWithin, diff) {\n var elRect = this.element.getBoundingClientRect();\n var parentRect = this.offsetParent.getBoundingClientRect();\n var boundaryElRect = this.boundaryEl.getBoundingClientRect();\n var xPosition = this.config.popup ? this.position.x : elRect.left; // skip if cursor is outside of popupParent horizontally\n\n var skipX = xPosition <= 0 && parentRect.left >= e.clientX || parentRect.right <= e.clientX && parentRect.right <= boundaryElRect.right;\n\n if (skipX) {\n return true;\n }\n\n if (isLeft) {\n skipX = // skip if we are moving to the left and the cursor\n // is positioned to the right of the left side anchor\n diff < 0 && e.clientX > xPosition + parentRect.left || // skip if we are moving to the right and the cursor\n // is positioned to the left of the dialog\n diff > 0 && e.clientX < xPosition + parentRect.left;\n } else {\n if (anywhereWithin) {\n // if anywhereWithin is true, we allow to move\n // as long as the cursor is within the dialog\n skipX = diff < 0 && e.clientX > boundaryElRect.right || diff > 0 && e.clientX < xPosition + parentRect.left;\n } else {\n skipX = // if the movement is bound to the right side of the dialog\n // we skip if we are moving to the left and the cursor\n // is to the right of the dialog\n diff < 0 && e.clientX > boundaryElRect.right || // or skip if we are moving to the right and the cursor\n // is to the left of the right side anchor\n diff > 0 && e.clientX < boundaryElRect.right;\n }\n }\n\n return skipX;\n };\n\n PositionableFeature.prototype.shouldSkipY = function (e, isTop, topBuffer, diff) {\n if (topBuffer === void 0) {\n topBuffer = 0;\n }\n\n var elRect = this.element.getBoundingClientRect();\n var parentRect = this.offsetParent.getBoundingClientRect();\n var boundaryElRect = this.boundaryEl.getBoundingClientRect();\n var yPosition = this.config.popup ? this.position.y : elRect.top; // skip if cursor is outside of popupParent vertically\n\n var skipY = yPosition <= 0 && parentRect.top >= e.clientY || parentRect.bottom <= e.clientY && parentRect.bottom <= boundaryElRect.bottom;\n\n if (skipY) {\n return true;\n }\n\n if (isTop) {\n skipY = // skip if we are moving to towards top and the cursor is\n // below the top anchor + topBuffer\n // note: topBuffer is used when moving the dialog using the title bar\n diff < 0 && e.clientY > yPosition + parentRect.top + topBuffer || // skip if we are moving to the bottom and the cursor is\n // above the top anchor\n diff > 0 && e.clientY < yPosition + parentRect.top;\n } else {\n skipY = // skip if we are moving towards the top and the cursor\n // is below the bottom anchor\n diff < 0 && e.clientY > boundaryElRect.bottom || // skip if we are moving towards the bottom and the cursor\n // is above the bottom anchor\n diff > 0 && e.clientY < boundaryElRect.bottom;\n }\n\n return skipY;\n };\n\n PositionableFeature.prototype.createResizeMap = function () {\n var eGui = this.element;\n this.resizerMap = {\n topLeft: {\n element: eGui.querySelector('[ref=eTopLeftResizer]')\n },\n top: {\n element: eGui.querySelector('[ref=eTopResizer]')\n },\n topRight: {\n element: eGui.querySelector('[ref=eTopRightResizer]')\n },\n right: {\n element: eGui.querySelector('[ref=eRightResizer]')\n },\n bottomRight: {\n element: eGui.querySelector('[ref=eBottomRightResizer]')\n },\n bottom: {\n element: eGui.querySelector('[ref=eBottomResizer]')\n },\n bottomLeft: {\n element: eGui.querySelector('[ref=eBottomLeftResizer]')\n },\n left: {\n element: eGui.querySelector('[ref=eLeftResizer]')\n }\n };\n };\n\n PositionableFeature.prototype.addResizers = function () {\n if (this.resizersAdded) {\n return;\n }\n\n var eGui = this.element;\n\n if (!eGui) {\n return;\n }\n\n var parser = new DOMParser();\n var resizers = parser.parseFromString(RESIZE_TEMPLATE, 'text/html').body;\n eGui.appendChild(resizers.firstChild);\n this.createResizeMap();\n this.resizersAdded = true;\n };\n\n PositionableFeature.prototype.removeResizers = function () {\n this.resizerMap = undefined;\n var resizerEl = this.element.querySelector(\".\" + RESIZE_CONTAINER_STYLE);\n\n if (resizerEl) {\n this.element.removeChild(resizerEl);\n }\n\n this.resizersAdded = false;\n };\n\n PositionableFeature.prototype.getResizerElement = function (side) {\n return this.resizerMap[side].element;\n };\n\n PositionableFeature.prototype.onResizeStart = function (e, side) {\n this.boundaryEl = this.findBoundaryElement();\n\n if (!this.positioned) {\n this.initialisePosition();\n }\n\n this.currentResizer = {\n isTop: !!side.match(/top/i),\n isRight: !!side.match(/right/i),\n isBottom: !!side.match(/bottom/i),\n isLeft: !!side.match(/left/i)\n };\n this.element.classList.add('ag-resizing');\n this.resizerMap[side].element.classList.add('ag-active');\n var _a = this.config,\n popup = _a.popup,\n forcePopupParentAsOffsetParent = _a.forcePopupParentAsOffsetParent;\n\n if (!popup && !forcePopupParentAsOffsetParent) {\n this.applySizeToSiblings(this.currentResizer.isBottom || this.currentResizer.isTop);\n }\n\n this.isResizing = true;\n this.updateDragStartPosition(e.clientX, e.clientY);\n };\n\n PositionableFeature.prototype.getSiblings = function () {\n var element = this.element;\n var parent = element.parentElement;\n\n if (!parent) {\n return null;\n }\n\n return Array.prototype.slice.call(parent.children).filter(function (el) {\n return !el.classList.contains('ag-hidden');\n });\n };\n\n PositionableFeature.prototype.getMinSizeOfSiblings = function () {\n var siblings = this.getSiblings() || [];\n var height = 0;\n var width = 0;\n\n for (var i = 0; i < siblings.length; i++) {\n var currentEl = siblings[i];\n var isFlex = !!currentEl.style.flex && currentEl.style.flex !== '0 0 auto';\n\n if (currentEl === this.element) {\n continue;\n }\n\n var nextHeight = this.minHeight || 0;\n var nextWidth = this.minWidth || 0;\n\n if (isFlex) {\n var computedStyle = window.getComputedStyle(currentEl);\n\n if (computedStyle.minHeight) {\n nextHeight = parseInt(computedStyle.minHeight, 10);\n }\n\n if (computedStyle.minWidth) {\n nextWidth = parseInt(computedStyle.minWidth, 10);\n }\n } else {\n nextHeight = currentEl.offsetHeight;\n nextWidth = currentEl.offsetWidth;\n }\n\n height += nextHeight;\n width += nextWidth;\n }\n\n return {\n height: height,\n width: width\n };\n };\n\n PositionableFeature.prototype.applySizeToSiblings = function (vertical) {\n var containerToFlex = null;\n var siblings = this.getSiblings();\n\n if (!siblings) {\n return;\n }\n\n for (var i = 0; i < siblings.length; i++) {\n var el = siblings[i];\n\n if (el === containerToFlex) {\n continue;\n }\n\n if (vertical) {\n el.style.height = el.offsetHeight + \"px\";\n } else {\n el.style.width = el.offsetWidth + \"px\";\n }\n\n el.style.flex = '0 0 auto';\n\n if (el === this.element) {\n containerToFlex = siblings[i + 1];\n }\n }\n\n if (containerToFlex) {\n containerToFlex.style.removeProperty('height');\n containerToFlex.style.removeProperty('min-height');\n containerToFlex.style.removeProperty('max-height');\n containerToFlex.style.flex = '1 1 auto';\n }\n };\n\n PositionableFeature.prototype.onResize = function (e) {\n if (!this.isResizing || !this.currentResizer) {\n return;\n }\n\n var _a = this.config,\n popup = _a.popup,\n forcePopupParentAsOffsetParent = _a.forcePopupParentAsOffsetParent;\n var _b = this.currentResizer,\n isTop = _b.isTop,\n isRight = _b.isRight,\n isBottom = _b.isBottom,\n isLeft = _b.isLeft;\n var isHorizontal = isRight || isLeft;\n var isVertical = isBottom || isTop;\n\n var _c = this.calculateMouseMovement({\n e: e,\n isLeft: isLeft,\n isTop: isTop\n }),\n movementX = _c.movementX,\n movementY = _c.movementY;\n\n var xPosition = this.position.x;\n var yPosition = this.position.y;\n var offsetLeft = 0;\n var offsetTop = 0;\n\n if (isHorizontal && movementX) {\n var direction = isLeft ? -1 : 1;\n var oldWidth = this.getWidth();\n var newWidth = oldWidth + movementX * direction;\n var skipWidth = false;\n\n if (isLeft) {\n offsetLeft = oldWidth - newWidth;\n\n if (xPosition + offsetLeft <= 0 || newWidth <= this.minWidth) {\n skipWidth = true;\n offsetLeft = 0;\n }\n }\n\n if (!skipWidth) {\n this.setWidth(newWidth);\n }\n }\n\n if (isVertical && movementY) {\n var direction = isTop ? -1 : 1;\n var oldHeight = this.getHeight();\n var newHeight = oldHeight + movementY * direction;\n var skipHeight = false;\n\n if (isTop) {\n offsetTop = oldHeight - newHeight;\n\n if (yPosition + offsetTop <= 0 || newHeight <= this.minHeight) {\n skipHeight = true;\n offsetTop = 0;\n }\n } else {\n // do not let the size of all siblings be higher than the parent container\n if (!this.config.popup && !this.config.forcePopupParentAsOffsetParent && oldHeight < newHeight && this.getMinSizeOfSiblings().height + newHeight > this.element.parentElement.offsetHeight) {\n skipHeight = true;\n }\n }\n\n if (!skipHeight) {\n this.setHeight(newHeight);\n }\n }\n\n this.updateDragStartPosition(e.clientX, e.clientY);\n\n if ((popup || forcePopupParentAsOffsetParent) && offsetLeft || offsetTop) {\n this.offsetElement(xPosition + offsetLeft, yPosition + offsetTop);\n }\n };\n\n PositionableFeature.prototype.onResizeEnd = function (e, side) {\n this.isResizing = false;\n this.currentResizer = null;\n this.boundaryEl = null;\n var params = {\n type: 'resize',\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi()\n };\n this.element.classList.remove('ag-resizing');\n this.resizerMap[side].element.classList.remove('ag-active');\n this.dispatchEvent(params);\n };\n\n PositionableFeature.prototype.refreshSize = function () {\n var eGui = this.element;\n\n if (this.config.popup) {\n if (!this.config.width) {\n this.setWidth(eGui.offsetWidth);\n }\n\n if (!this.config.height) {\n this.setHeight(eGui.offsetHeight);\n }\n }\n };\n\n PositionableFeature.prototype.onMoveStart = function (e) {\n this.boundaryEl = this.findBoundaryElement();\n\n if (!this.positioned) {\n this.initialisePosition();\n }\n\n this.isMoving = true;\n this.element.classList.add('ag-moving');\n this.updateDragStartPosition(e.clientX, e.clientY);\n };\n\n PositionableFeature.prototype.onMove = function (e) {\n if (!this.isMoving) {\n return;\n }\n\n var _a = this.position,\n x = _a.x,\n y = _a.y;\n var topBuffer;\n\n if (this.config.calculateTopBuffer) {\n topBuffer = this.config.calculateTopBuffer();\n }\n\n var _b = this.calculateMouseMovement({\n e: e,\n isTop: true,\n anywhereWithin: true,\n topBuffer: topBuffer\n }),\n movementX = _b.movementX,\n movementY = _b.movementY;\n\n this.offsetElement(x + movementX, y + movementY);\n this.updateDragStartPosition(e.clientX, e.clientY);\n };\n\n PositionableFeature.prototype.onMoveEnd = function () {\n this.isMoving = false;\n this.boundaryEl = null;\n this.element.classList.remove('ag-moving');\n };\n\n PositionableFeature.prototype.setOffsetParent = function () {\n if (this.config.forcePopupParentAsOffsetParent) {\n this.offsetParent = this.popupService.getPopupParent();\n } else {\n this.offsetParent = this.element.offsetParent;\n }\n };\n\n PositionableFeature.prototype.findBoundaryElement = function () {\n var el = this.element;\n\n while (el) {\n if (window.getComputedStyle(el).position !== 'static') {\n return el;\n }\n\n el = el.parentElement;\n }\n\n return this.element;\n };\n\n PositionableFeature.prototype.clearResizeListeners = function () {\n while (this.resizeListeners.length) {\n var params = this.resizeListeners.pop();\n this.dragService.removeDragSource(params);\n }\n };\n\n PositionableFeature.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n\n if (this.moveElementDragListener) {\n this.dragService.removeDragSource(this.moveElementDragListener);\n }\n\n this.clearResizeListeners();\n this.removeResizers();\n };\n\n __decorate$16([Autowired('popupService')], PositionableFeature.prototype, \"popupService\", void 0);\n\n __decorate$16([Autowired('dragService')], PositionableFeature.prototype, \"dragService\", void 0);\n\n return PositionableFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1c = undefined && undefined.__extends || function () {\n var _extendStatics109 = function extendStatics(d, b) {\n _extendStatics109 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics109(d, b);\n };\n\n return function (d, b) {\n _extendStatics109(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AutoWidthCalculator =\n/** @class */\nfunction (_super) {\n __extends$1c(AutoWidthCalculator, _super);\n\n function AutoWidthCalculator() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n AutoWidthCalculator.prototype.postConstruct = function () {\n var _this = this;\n\n this.ctrlsService.whenReady(function (p) {\n _this.centerRowContainerCtrl = p.centerRowContainerCtrl;\n });\n }; // this is the trick: we create a dummy container and clone all the cells\n // into the dummy, then check the dummy's width. then destroy the dummy\n // as we don't need it any more.\n // drawback: only the cells visible on the screen are considered\n\n\n AutoWidthCalculator.prototype.getPreferredWidthForColumn = function (column, skipHeader) {\n var eHeaderCell = this.getHeaderCellForColumn(column); // cell isn't visible\n\n if (!eHeaderCell) {\n return -1;\n }\n\n var elements = this.rowRenderer.getAllCellsForColumn(column);\n\n if (!skipHeader) {\n // we only consider the lowest level cell, not the group cell. in 99% of the time, this\n // will be enough. if we consider groups, then it gets too complicated for what it's worth,\n // as the groups can span columns and this class only considers one column at a time.\n elements.push(eHeaderCell);\n }\n\n return this.addElementsToContainerAndGetWidth(elements);\n };\n\n AutoWidthCalculator.prototype.getPreferredWidthForColumnGroup = function (columnGroup) {\n var eHeaderCell = this.getHeaderCellForColumn(columnGroup);\n\n if (!eHeaderCell) {\n return -1;\n }\n\n return this.addElementsToContainerAndGetWidth([eHeaderCell]);\n };\n\n AutoWidthCalculator.prototype.addElementsToContainerAndGetWidth = function (elements) {\n var _this = this;\n\n var eDummyContainer = document.createElement('span'); // position fixed, so it isn't restricted to the boundaries of the parent\n\n eDummyContainer.style.position = 'fixed'; // we put the dummy into the body container, so it will inherit all the\n // css styles that the real cells are inheriting\n\n var eBodyContainer = this.centerRowContainerCtrl.getContainerElement();\n eBodyContainer.appendChild(eDummyContainer);\n elements.forEach(function (el) {\n return _this.cloneItemIntoDummy(el, eDummyContainer);\n }); // at this point, all the clones are lined up vertically with natural widths. the dummy\n // container will have a width wide enough just to fit the largest.\n\n var dummyContainerWidth = eDummyContainer.offsetWidth; // we are finished with the dummy container, so get rid of it\n\n eBodyContainer.removeChild(eDummyContainer); // we add padding as I found sometimes the gui still put '...' after some of the texts. so the\n // user can configure the grid to add a few more pixels after the calculated width\n\n var autoSizePadding = this.gridOptionsWrapper.getAutoSizePadding();\n return dummyContainerWidth + autoSizePadding;\n };\n\n AutoWidthCalculator.prototype.getHeaderCellForColumn = function (column) {\n /* tslint:enable */\n var element = null;\n this.ctrlsService.getHeaderRowContainerCtrls().forEach(function (container) {\n var res = container.getHtmlElementForColumnHeader(column);\n\n if (res != null) {\n element = res;\n }\n });\n return element;\n };\n\n AutoWidthCalculator.prototype.cloneItemIntoDummy = function (eCell, eDummyContainer) {\n // make a deep clone of the cell\n var eCellClone = eCell.cloneNode(true); // the original has a fixed width, we remove this to allow the natural width based on content\n\n eCellClone.style.width = ''; // the original has position = absolute, we need to remove this so it's positioned normally\n\n eCellClone.style.position = 'static';\n eCellClone.style.left = ''; // we put the cell into a containing div, as otherwise the cells would just line up\n // on the same line, standard flow layout, by putting them into divs, they are laid\n // out one per line\n\n var eCloneParent = document.createElement('div');\n var eCloneParentClassList = eCloneParent.classList;\n var isHeader = ['ag-header-cell', 'ag-header-group-cell'].some(function (cls) {\n return eCellClone.classList.contains(cls);\n });\n\n if (isHeader) {\n eCloneParentClassList.add('ag-header', 'ag-header-row');\n eCloneParent.style.position = 'static';\n } else {\n eCloneParentClassList.add('ag-row');\n } // find parent using classes (headers have ag-header-cell, rows have ag-row), and copy classes from it.\n // if we didn't do this, things like ag-row-level-2 would be missing if present, which sets indents\n // onto group items.\n\n\n var pointer = eCell.parentElement;\n\n while (pointer) {\n var isRow = ['ag-header-row', 'ag-row'].some(function (cls) {\n return pointer.classList.contains(cls);\n });\n\n if (isRow) {\n for (var i = 0; i < pointer.classList.length; i++) {\n var item = pointer.classList[i]; // we skip ag-row-position-absolute, as this has structural CSS applied that stops the\n // element from fitting into it's parent, and we need the element to stretch the parent\n // as we are measuring the parents width\n\n if (item != 'ag-row-position-absolute') {\n eCloneParentClassList.add(item);\n }\n }\n\n break;\n }\n\n pointer = pointer.parentElement;\n } // the twig on the branch, the branch on the tree, the tree in the hole,\n // the hole in the bog, the bog in the clone, the clone in the parent,\n // the parent in the dummy, and the dummy down in the vall-e-ooo, OOOOOOOOO! Oh row the rattling bog....\n\n\n eCloneParent.appendChild(eCellClone);\n eDummyContainer.appendChild(eCloneParent);\n };\n\n __decorate$15([Autowired('rowRenderer')], AutoWidthCalculator.prototype, \"rowRenderer\", void 0);\n\n __decorate$15([Autowired('ctrlsService')], AutoWidthCalculator.prototype, \"ctrlsService\", void 0);\n\n __decorate$15([Autowired('rowCssClassCalculator')], AutoWidthCalculator.prototype, \"rowCssClassCalculator\", void 0);\n\n __decorate$15([PostConstruct], AutoWidthCalculator.prototype, \"postConstruct\", null);\n\n AutoWidthCalculator = __decorate$15([Bean('autoWidthCalculator')], AutoWidthCalculator);\n return AutoWidthCalculator;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1b = undefined && undefined.__extends || function () {\n var _extendStatics110 = function extendStatics(d, b) {\n _extendStatics110 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics110(d, b);\n };\n\n return function (d, b) {\n _extendStatics110(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __values$1 = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar __read$a = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$8 = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$a(arguments[i]));\n }\n\n return ar;\n};\n\nvar StickyRowFeature =\n/** @class */\nfunction (_super) {\n __extends$1b(StickyRowFeature, _super);\n\n function StickyRowFeature(createRowCon, destroyRowCtrls) {\n var _this = _super.call(this) || this;\n\n _this.createRowCon = createRowCon;\n _this.destroyRowCtrls = destroyRowCtrls;\n _this.stickyRowCtrls = [];\n _this.containerHeight = 0;\n return _this;\n }\n\n StickyRowFeature.prototype.postConstruct = function () {\n var _this = this;\n\n this.ctrlsService.whenReady(function (params) {\n _this.gridBodyCtrl = params.gridBodyCtrl;\n });\n };\n\n StickyRowFeature.prototype.getStickyRowCtrls = function () {\n return this.stickyRowCtrls;\n };\n\n StickyRowFeature.prototype.checkStickyRows = function () {\n var height = 0;\n\n if (!this.gridOptionsWrapper.isGroupRowsSticky()) {\n this.refreshNodesAndContainerHeight([], height);\n return;\n }\n\n var stickyRows = [];\n var firstPixel = this.rowRenderer.getFirstVisibleVerticalPixel();\n\n var addStickyRow = function addStickyRow(stickyRow) {\n stickyRows.push(stickyRow);\n var lastAncester = stickyRow;\n\n while (lastAncester.expanded) {\n lastAncester = last(lastAncester.childrenAfterSort);\n }\n\n var lastChildBottom = lastAncester.rowTop + lastAncester.rowHeight;\n var stickRowBottom = firstPixel + height + stickyRow.rowHeight;\n\n if (lastChildBottom < stickRowBottom) {\n stickyRow.stickyRowTop = height + (lastChildBottom - stickRowBottom);\n } else {\n stickyRow.stickyRowTop = height;\n }\n\n height = 0;\n stickyRows.forEach(function (rowNode) {\n var thisRowLastPx = rowNode.stickyRowTop + rowNode.rowHeight;\n\n if (height < thisRowLastPx) {\n height = thisRowLastPx;\n }\n });\n };\n\n while (true) {\n var firstPixelAfterStickyRows = firstPixel + height;\n var firstIndex = this.rowModel.getRowIndexAtPixel(firstPixelAfterStickyRows);\n var firstRow = this.rowModel.getRow(firstIndex);\n\n if (firstRow == null) {\n break;\n } // only happens when pivoting, and we are showing root node\n\n\n if (firstRow.level < 0) {\n break;\n }\n\n var parents = [];\n var p = firstRow.parent;\n\n while (p.level >= 0) {\n parents.push(p);\n p = p.parent;\n }\n\n var firstMissingParent = parents.reverse().find(function (parent) {\n return stickyRows.indexOf(parent) < 0 && parent.displayed;\n });\n\n if (firstMissingParent) {\n addStickyRow(firstMissingParent);\n continue;\n } // if first row is an open group, and practically shown, it needs\n // to be stuck\n\n\n if (firstRow.group && firstRow.expanded && !firstRow.footer && firstRow.rowTop < firstPixelAfterStickyRows) {\n addStickyRow(firstRow);\n continue;\n }\n\n break;\n }\n\n this.refreshNodesAndContainerHeight(stickyRows, height);\n };\n\n StickyRowFeature.prototype.refreshNodesAndContainerHeight = function (allStickyNodes, height) {\n var e_1, _a, _b;\n\n var _this = this;\n\n var removedCtrls = this.stickyRowCtrls.filter(function (ctrl) {\n return allStickyNodes.indexOf(ctrl.getRowNode()) === -1;\n });\n var addedNodes = allStickyNodes.filter(function (rowNode) {\n return _this.stickyRowCtrls.findIndex(function (ctrl) {\n return ctrl.getRowNode() === rowNode;\n }) === -1;\n });\n var ctrlsToDestroy = {};\n removedCtrls.forEach(function (removedCtrl) {\n ctrlsToDestroy[removedCtrl.getRowNode().id] = removedCtrl;\n _this.stickyRowCtrls = _this.stickyRowCtrls.filter(function (ctrl) {\n return ctrl !== removedCtrl;\n });\n });\n\n try {\n for (var _c = __values$1(Object.values(ctrlsToDestroy)), _d = _c.next(); !_d.done; _d = _c.next()) {\n var ctrl = _d.value;\n ctrl.getRowNode().sticky = false;\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (_d && !_d.done && (_a = _c.return)) _a.call(_c);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n this.destroyRowCtrls(ctrlsToDestroy, false);\n var newCtrls = addedNodes.map(function (rowNode) {\n rowNode.sticky = true;\n return _this.createRowCon(rowNode, false, false);\n });\n\n (_b = this.stickyRowCtrls).push.apply(_b, __spread$8(newCtrls));\n\n this.stickyRowCtrls.forEach(function (ctrl) {\n return ctrl.setRowTop(ctrl.getRowNode().stickyRowTop);\n });\n this.stickyRowCtrls.sort(function (a, b) {\n return b.getRowNode().rowIndex - a.getRowNode().rowIndex;\n });\n\n if (this.containerHeight !== height) {\n this.containerHeight = height;\n this.gridBodyCtrl.setStickyTopHeight(height);\n }\n };\n\n __decorate$14([Autowired(\"rowModel\")], StickyRowFeature.prototype, \"rowModel\", void 0);\n\n __decorate$14([Autowired(\"rowRenderer\")], StickyRowFeature.prototype, \"rowRenderer\", void 0);\n\n __decorate$14([Autowired(\"ctrlsService\")], StickyRowFeature.prototype, \"ctrlsService\", void 0);\n\n __decorate$14([PostConstruct], StickyRowFeature.prototype, \"postConstruct\", null);\n\n return StickyRowFeature;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$1a = undefined && undefined.__extends || function () {\n var _extendStatics111 = function extendStatics(d, b) {\n _extendStatics111 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics111(d, b);\n };\n\n return function (d, b) {\n _extendStatics111(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$9 = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$7 = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$9(arguments[i]));\n }\n\n return ar;\n};\n\nvar RowRenderer =\n/** @class */\nfunction (_super) {\n __extends$1a(RowRenderer, _super);\n\n function RowRenderer() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.destroyFuncsForColumnListeners = []; // map of row ids to row objects. keeps track of which elements\n // are rendered for which rows in the dom.\n\n _this.rowCtrlsByRowIndex = {};\n _this.zombieRowCtrls = {};\n _this.allRowCtrls = [];\n _this.topRowCtrls = [];\n _this.bottomRowCtrls = []; // we only allow one refresh at a time, otherwise the internal memory structure here\n // will get messed up. this can happen if the user has a cellRenderer, and inside the\n // renderer they call an API method that results in another pass of the refresh,\n // then it will be trying to draw rows in the middle of a refresh.\n\n _this.refreshInProgress = false;\n _this.dataFirstRenderedFired = false;\n return _this;\n }\n\n RowRenderer.prototype.postConstruct = function () {\n var _this = this;\n\n this.ctrlsService.whenReady(function () {\n _this.gridBodyCtrl = _this.ctrlsService.getGridBodyCtrl();\n\n _this.initialise();\n });\n };\n\n RowRenderer.prototype.initialise = function () {\n this.addManagedListener(this.eventService, Events.EVENT_PAGINATION_CHANGED, this.onPageLoaded.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_PINNED_ROW_DATA_CHANGED, this.onPinnedRowDataChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, this.onDisplayedColumnsChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_BODY_SCROLL, this.redrawAfterScroll.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_BODY_HEIGHT_CHANGED, this.redrawAfterScroll.bind(this));\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_DOM_LAYOUT, this.onDomLayoutChanged.bind(this));\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_ROW_CLASS, this.redrawRows.bind(this));\n\n if (this.gridOptionsWrapper.isGroupRowsSticky()) {\n if (this.rowModel.getType() != Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {\n doOnce(function () {\n return console.warn('AG Grid: The feature Sticky Row Groups only works with the Client Side Row Model');\n }, 'rowRenderer.stickyWorksWithCsrmOnly');\n } else if (this.gridOptionsWrapper.isTreeData()) {\n doOnce(function () {\n return console.warn('AG Grid: The feature Sticky Row Groups does not work with Tree Data.');\n }, 'rowRenderer.stickyDoesNotWorkWithTreeData');\n } else {\n this.stickyRowFeature = this.createManagedBean(new StickyRowFeature(this.createRowCon.bind(this), this.destroyRowCtrls.bind(this)));\n }\n }\n\n this.registerCellEventListeners();\n this.initialiseCache();\n this.printLayout = this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_PRINT;\n this.embedFullWidthRows = this.printLayout || this.gridOptionsWrapper.isEmbedFullWidthRows();\n this.redrawAfterModelUpdate();\n };\n\n RowRenderer.prototype.initialiseCache = function () {\n if (this.gridOptionsWrapper.isKeepDetailRows()) {\n var countProp = this.gridOptionsWrapper.getKeepDetailRowsCount();\n var count = countProp != null ? countProp : 3;\n this.cachedRowCtrls = new RowCtrlCache(count);\n }\n };\n\n RowRenderer.prototype.getRowCtrls = function () {\n return this.allRowCtrls;\n };\n\n RowRenderer.prototype.getStickyTopRowCtrls = function () {\n if (!this.stickyRowFeature) {\n return [];\n }\n\n return this.stickyRowFeature.getStickyRowCtrls();\n };\n\n RowRenderer.prototype.updateAllRowCtrls = function () {\n var liveList = getAllValuesInObject(this.rowCtrlsByRowIndex);\n\n if (this.gridOptionsWrapper.isEnsureDomOrder()) {\n liveList.sort(function (a, b) {\n return a.getRowNode().rowIndex - b.getRowNode.rowIndex;\n });\n }\n\n var zombieList = getAllValuesInObject(this.zombieRowCtrls);\n var cachedList = this.cachedRowCtrls ? this.cachedRowCtrls.getEntries() : [];\n this.allRowCtrls = __spread$7(liveList, zombieList, cachedList);\n }; // in a clean design, each cell would register for each of these events. however when scrolling, all the cells\n // registering and de-registering for events is a performance bottleneck. so we register here once and inform\n // all active cells.\n\n\n RowRenderer.prototype.registerCellEventListeners = function () {\n var _this = this;\n\n this.addManagedListener(this.eventService, Events.EVENT_CELL_FOCUSED, function (event) {\n _this.getAllCellCtrls().forEach(function (cellCtrl) {\n return cellCtrl.onCellFocused(event);\n });\n\n _this.getFullWidthRowCtrls().forEach(function (rowCtrl) {\n rowCtrl.onFullWidthRowFocused(event);\n });\n });\n this.addManagedListener(this.eventService, Events.EVENT_FLASH_CELLS, function (event) {\n _this.getAllCellCtrls().forEach(function (cellCtrl) {\n return cellCtrl.onFlashCells(event);\n });\n });\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_HOVER_CHANGED, function () {\n _this.getAllCellCtrls().forEach(function (cellCtrl) {\n return cellCtrl.onColumnHover();\n });\n });\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, function () {\n _this.getAllCellCtrls().forEach(function (cellCtrl) {\n return cellCtrl.onDisplayedColumnsChanged();\n });\n }); // only for printLayout - because we are rendering all the cells in the same row, regardless of pinned state,\n // then changing the width of the containers will impact left position. eg the center cols all have their\n // left position adjusted by the width of the left pinned column, so if the pinned left column width changes,\n // all the center cols need to be shifted to accommodate this. when in normal layout, the pinned cols are\n // in different containers so doesn't impact.\n\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, function () {\n if (_this.printLayout) {\n _this.getAllCellCtrls().forEach(function (cellCtrl) {\n return cellCtrl.onLeftChanged();\n });\n }\n });\n var rangeSelectionEnabled = this.gridOptionsWrapper.isEnableRangeSelection();\n\n if (rangeSelectionEnabled) {\n this.addManagedListener(this.eventService, Events.EVENT_RANGE_SELECTION_CHANGED, function () {\n _this.getAllCellCtrls().forEach(function (cellCtrl) {\n return cellCtrl.onRangeSelectionChanged();\n });\n });\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_MOVED, function () {\n _this.getAllCellCtrls().forEach(function (cellCtrl) {\n return cellCtrl.updateRangeBordersIfRangeCount();\n });\n });\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PINNED, function () {\n _this.getAllCellCtrls().forEach(function (cellCtrl) {\n return cellCtrl.updateRangeBordersIfRangeCount();\n });\n });\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_VISIBLE, function () {\n _this.getAllCellCtrls().forEach(function (cellCtrl) {\n return cellCtrl.updateRangeBordersIfRangeCount();\n });\n });\n } // add listeners to the grid columns\n\n\n this.refreshListenersToColumnsForCellComps(); // if the grid columns change, then refresh the listeners again\n\n this.addManagedListener(this.eventService, Events.EVENT_GRID_COLUMNS_CHANGED, this.refreshListenersToColumnsForCellComps.bind(this));\n this.addDestroyFunc(this.removeGridColumnListeners.bind(this));\n }; // executes all functions in destroyFuncsForColumnListeners and then clears the list\n\n\n RowRenderer.prototype.removeGridColumnListeners = function () {\n this.destroyFuncsForColumnListeners.forEach(function (func) {\n return func();\n });\n this.destroyFuncsForColumnListeners.length = 0;\n }; // this function adds listeners onto all the grid columns, which are the column that we could have cellComps for.\n // when the grid columns change, we add listeners again. in an ideal design, each CellComp would just register to\n // the column it belongs to on creation, however this was a bottleneck with the number of cells, so do it here\n // once instead.\n\n\n RowRenderer.prototype.refreshListenersToColumnsForCellComps = function () {\n var _this = this;\n\n this.removeGridColumnListeners();\n var cols = this.columnModel.getAllGridColumns();\n\n if (!cols) {\n return;\n }\n\n cols.forEach(function (col) {\n var forEachCellWithThisCol = function forEachCellWithThisCol(callback) {\n _this.getAllCellCtrls().forEach(function (cellCtrl) {\n if (cellCtrl.getColumn() === col) {\n callback(cellCtrl);\n }\n });\n };\n\n var leftChangedListener = function leftChangedListener() {\n forEachCellWithThisCol(function (cellCtrl) {\n return cellCtrl.onLeftChanged();\n });\n };\n\n var widthChangedListener = function widthChangedListener() {\n forEachCellWithThisCol(function (cellCtrl) {\n return cellCtrl.onWidthChanged();\n });\n };\n\n var firstRightPinnedChangedListener = function firstRightPinnedChangedListener() {\n forEachCellWithThisCol(function (cellCtrl) {\n return cellCtrl.onFirstRightPinnedChanged();\n });\n };\n\n var lastLeftPinnedChangedListener = function lastLeftPinnedChangedListener() {\n forEachCellWithThisCol(function (cellCtrl) {\n return cellCtrl.onLastLeftPinnedChanged();\n });\n };\n\n var colDefChangedListener = function colDefChangedListener() {\n forEachCellWithThisCol(function (cellCtrl) {\n return cellCtrl.onColDefChanged();\n });\n };\n\n col.addEventListener(Column.EVENT_LEFT_CHANGED, leftChangedListener);\n col.addEventListener(Column.EVENT_WIDTH_CHANGED, widthChangedListener);\n col.addEventListener(Column.EVENT_FIRST_RIGHT_PINNED_CHANGED, firstRightPinnedChangedListener);\n col.addEventListener(Column.EVENT_LAST_LEFT_PINNED_CHANGED, lastLeftPinnedChangedListener);\n col.addEventListener(Column.EVENT_COL_DEF_CHANGED, colDefChangedListener);\n\n _this.destroyFuncsForColumnListeners.push(function () {\n col.removeEventListener(Column.EVENT_LEFT_CHANGED, leftChangedListener);\n col.removeEventListener(Column.EVENT_WIDTH_CHANGED, widthChangedListener);\n col.removeEventListener(Column.EVENT_FIRST_RIGHT_PINNED_CHANGED, firstRightPinnedChangedListener);\n col.removeEventListener(Column.EVENT_LAST_LEFT_PINNED_CHANGED, lastLeftPinnedChangedListener);\n col.removeEventListener(Column.EVENT_COL_DEF_CHANGED, colDefChangedListener);\n });\n });\n };\n\n RowRenderer.prototype.onDomLayoutChanged = function () {\n var printLayout = this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_PRINT;\n var embedFullWidthRows = printLayout || this.gridOptionsWrapper.isEmbedFullWidthRows(); // if moving towards or away from print layout, means we need to destroy all rows, as rows are not laid\n // out using absolute positioning when doing print layout\n\n var destroyRows = embedFullWidthRows !== this.embedFullWidthRows || this.printLayout !== printLayout;\n this.printLayout = printLayout;\n this.embedFullWidthRows = embedFullWidthRows;\n\n if (destroyRows) {\n this.redrawAfterModelUpdate();\n }\n }; // for row models that have datasources, when we update the datasource, we need to force the rowRenderer\n // to redraw all rows. otherwise the old rows from the old datasource will stay displayed.\n\n\n RowRenderer.prototype.datasourceChanged = function () {\n this.firstRenderedRow = 0;\n this.lastRenderedRow = -1;\n var rowIndexesToRemove = Object.keys(this.rowCtrlsByRowIndex);\n this.removeRowCtrls(rowIndexesToRemove);\n };\n\n RowRenderer.prototype.onPageLoaded = function (event) {\n var params = {\n recycleRows: event.keepRenderedRows,\n animate: event.animate,\n newData: event.newData,\n newPage: event.newPage,\n // because this is a model updated event (not pinned rows), we\n // can skip updating the pinned rows. this is needed so that if user\n // is doing transaction updates, the pinned rows are not getting constantly\n // trashed - or editing cells in pinned rows are not refreshed and put into read mode\n onlyBody: true\n };\n this.redrawAfterModelUpdate(params);\n };\n\n RowRenderer.prototype.getAllCellsForColumn = function (column) {\n var res = [];\n this.getAllRowCtrls().forEach(function (rowCtrl) {\n var eCell = rowCtrl.getCellElement(column);\n\n if (eCell) {\n res.push(eCell);\n }\n });\n return res;\n };\n\n RowRenderer.prototype.refreshFloatingRowComps = function () {\n this.refreshFloatingRows(this.topRowCtrls, this.pinnedRowModel.getPinnedTopRowData());\n this.refreshFloatingRows(this.bottomRowCtrls, this.pinnedRowModel.getPinnedBottomRowData());\n };\n\n RowRenderer.prototype.getTopRowCtrls = function () {\n return this.topRowCtrls;\n };\n\n RowRenderer.prototype.getBottomRowCtrls = function () {\n return this.bottomRowCtrls;\n };\n\n RowRenderer.prototype.refreshFloatingRows = function (rowComps, rowNodes) {\n var _this = this;\n\n rowComps.forEach(function (row) {\n row.destroyFirstPass();\n row.destroySecondPass();\n });\n rowComps.length = 0;\n\n if (!rowNodes) {\n return;\n }\n\n rowNodes.forEach(function (rowNode) {\n var rowCtrl = new RowCtrl(rowNode, _this.beans, false, false, _this.printLayout);\n rowComps.push(rowCtrl);\n });\n };\n\n RowRenderer.prototype.onPinnedRowDataChanged = function () {\n // recycling rows in order to ensure cell editing is not cancelled\n var params = {\n recycleRows: true\n };\n this.redrawAfterModelUpdate(params);\n }; // if the row nodes are not rendered, no index is returned\n\n\n RowRenderer.prototype.getRenderedIndexesForRowNodes = function (rowNodes) {\n var result = [];\n\n if (missing(rowNodes)) {\n return result;\n }\n\n iterateObject(this.rowCtrlsByRowIndex, function (index, renderedRow) {\n var rowNode = renderedRow.getRowNode();\n\n if (rowNodes.indexOf(rowNode) >= 0) {\n result.push(index);\n }\n });\n return result;\n };\n\n RowRenderer.prototype.redrawRows = function (rowNodes) {\n // if no row nodes provided, then refresh everything\n var partialRefresh = rowNodes != null && rowNodes.length > 0;\n\n if (partialRefresh) {\n var indexesToRemove = this.getRenderedIndexesForRowNodes(rowNodes); // remove the rows\n\n this.removeRowCtrls(indexesToRemove);\n } // add draw them again\n\n\n this.redrawAfterModelUpdate({\n recycleRows: partialRefresh\n });\n };\n\n RowRenderer.prototype.getCellToRestoreFocusToAfterRefresh = function (params) {\n var _a;\n\n var focusedCell = ((_a = params) === null || _a === void 0 ? void 0 : _a.suppressKeepFocus) ? null : this.focusService.getFocusCellToUseAfterRefresh();\n\n if (focusedCell == null) {\n return null;\n } // if the dom is not actually focused on a cell, then we don't try to refocus. the problem this\n // solves is with editing - if the user is editing, eg focus is on a text field, and not on the\n // cell itself, then the cell can be registered as having focus, however it's the text field that\n // has the focus and not the cell div. therefore, when the refresh is finished, the grid will focus\n // the cell, and not the textfield. that means if the user is in a text field, and the grid refreshes,\n // the focus is lost from the text field. we do not want this.\n\n\n var eDocument = this.gridOptionsWrapper.getDocument();\n var activeElement = eDocument.activeElement;\n var cellDomData = this.gridOptionsWrapper.getDomData(activeElement, CellCtrl.DOM_DATA_KEY_CELL_CTRL);\n var rowDomData = this.gridOptionsWrapper.getDomData(activeElement, RowCtrl.DOM_DATA_KEY_ROW_CTRL);\n var gridElementFocused = cellDomData || rowDomData;\n return gridElementFocused ? focusedCell : null;\n }; // gets called from:\n // +) initialisation (in registerGridComp) params = null\n // +) onDomLayoutChanged, params = null\n // +) onPageLoaded, recycleRows, animate, newData, newPage from event, onlyBody=true\n // +) onPinnedRowDataChanged, recycleRows = true\n // +) redrawRows (from Grid API), recycleRows = true/false\n\n\n RowRenderer.prototype.redrawAfterModelUpdate = function (params) {\n if (params === void 0) {\n params = {};\n }\n\n this.getLockOnRefresh();\n var focusedCell = this.getCellToRestoreFocusToAfterRefresh(params);\n this.updateContainerHeights();\n this.scrollToTopIfNewData(params); // never recycle rows when print layout, we draw each row again from scratch. this is because print layout\n // uses normal dom layout to put cells into dom - it doesn't allow reordering rows.\n\n var recycleRows = !this.printLayout && !!params.recycleRows;\n var animate = params.animate && this.gridOptionsWrapper.isAnimateRows(); // after modelUpdate, row indexes can change, so we clear out the rowsByIndex map,\n // however we can reuse the rows, so we keep them but index by rowNode.id\n\n var rowsToRecycle = recycleRows ? this.recycleRows() : null;\n\n if (!recycleRows) {\n this.removeAllRowComps();\n }\n\n var isFocusedCellGettingRecycled = function isFocusedCellGettingRecycled() {\n if (focusedCell == null || rowsToRecycle == null) {\n return false;\n }\n\n var res = false;\n iterateObject(rowsToRecycle, function (key, rowComp) {\n var rowNode = rowComp.getRowNode();\n var rowIndexEqual = rowNode.rowIndex == focusedCell.rowIndex;\n var pinnedEqual = rowNode.rowPinned == focusedCell.rowPinned;\n\n if (rowIndexEqual && pinnedEqual) {\n res = true;\n }\n });\n return res;\n };\n\n var focusedCellRecycled = isFocusedCellGettingRecycled();\n this.redraw(rowsToRecycle, animate);\n this.gridBodyCtrl.updateRowCount();\n\n if (!params.onlyBody) {\n this.refreshFloatingRowComps();\n }\n\n this.dispatchDisplayedRowsChanged(); // if we focus a cell that's already focused, then we get an unnecessary 'cellFocused' event fired.\n // this was happening when user clicked 'expand' on a rowGroup, then cellFocused was getting fired twice.\n\n if (!focusedCellRecycled) {\n this.restoreFocusedCell(focusedCell);\n }\n\n this.releaseLockOnRefresh();\n };\n\n RowRenderer.prototype.scrollToTopIfNewData = function (params) {\n var scrollToTop = params.newData || params.newPage;\n var suppressScrollToTop = this.gridOptionsWrapper.isSuppressScrollOnNewData();\n\n if (scrollToTop && !suppressScrollToTop) {\n this.gridBodyCtrl.getScrollFeature().scrollToTop();\n }\n };\n\n RowRenderer.prototype.updateContainerHeights = function () {\n // when doing print layout, we don't explicitly set height on the containers\n if (this.printLayout) {\n this.rowContainerHeightService.setModelHeight(null);\n return;\n }\n\n var containerHeight = this.paginationProxy.getCurrentPageHeight(); // we need at least 1 pixel for the horizontal scroll to work. so if there are now rows,\n // we still want the scroll to be present, otherwise there would be no way to scroll the header\n // which might be needed us user wants to access columns\n // on the RHS - and if that was where the filter was that cause no rows to be presented, there\n // is no way to remove the filter.\n\n if (containerHeight === 0) {\n containerHeight = 1;\n }\n\n this.rowContainerHeightService.setModelHeight(containerHeight);\n };\n\n RowRenderer.prototype.getLockOnRefresh = function () {\n if (this.refreshInProgress) {\n 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.redrawRows(), \" + \"call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code \" + \"that caused the refresh check this stacktrace.\");\n }\n\n this.refreshInProgress = true;\n };\n\n RowRenderer.prototype.releaseLockOnRefresh = function () {\n this.refreshInProgress = false;\n };\n\n RowRenderer.prototype.isRefreshInProgress = function () {\n return this.refreshInProgress;\n }; // sets the focus to the provided cell, if the cell is provided. this way, the user can call refresh without\n // worry about the focus been lost. this is important when the user is using keyboard navigation to do edits\n // and the cellEditor is calling 'refresh' to get other cells to update (as other cells might depend on the\n // edited cell).\n\n\n RowRenderer.prototype.restoreFocusedCell = function (cellPosition) {\n if (cellPosition) {\n this.focusService.setFocusedCell({\n rowIndex: cellPosition.rowIndex,\n column: cellPosition.column,\n rowPinned: cellPosition.rowPinned,\n forceBrowserFocus: true,\n preventScrollOnBrowserFocus: true\n });\n }\n };\n\n RowRenderer.prototype.stopEditing = function (cancel) {\n if (cancel === void 0) {\n cancel = false;\n }\n\n this.getAllRowCtrls().forEach(function (rowCtrl) {\n rowCtrl.stopEditing(cancel);\n });\n };\n\n RowRenderer.prototype.getAllCellCtrls = function () {\n var res = [];\n this.getAllRowCtrls().forEach(function (rowCtrl) {\n return res = res.concat(rowCtrl.getAllCellCtrls());\n });\n return res;\n };\n\n RowRenderer.prototype.getAllRowCtrls = function () {\n var _this = this;\n\n var stickyRowCtrls = this.stickyRowFeature && this.stickyRowFeature.getStickyRowCtrls() || [];\n\n var res = __spread$7(this.topRowCtrls, this.bottomRowCtrls, stickyRowCtrls);\n\n Object.keys(this.rowCtrlsByRowIndex).forEach(function (key) {\n return res.push(_this.rowCtrlsByRowIndex[key]);\n });\n return res;\n };\n\n RowRenderer.prototype.addRenderedRowListener = function (eventName, rowIndex, callback) {\n var rowComp = this.rowCtrlsByRowIndex[rowIndex];\n\n if (rowComp) {\n rowComp.addEventListener(eventName, callback);\n }\n };\n\n RowRenderer.prototype.flashCells = function (params) {\n if (params === void 0) {\n params = {};\n }\n\n var flashDelay = params.flashDelay,\n fadeDelay = params.fadeDelay;\n this.getCellCtrls(params.rowNodes, params.columns).forEach(function (cellCtrl) {\n return cellCtrl.flashCell({\n flashDelay: flashDelay,\n fadeDelay: fadeDelay\n });\n });\n };\n\n RowRenderer.prototype.refreshCells = function (params) {\n if (params === void 0) {\n params = {};\n }\n\n var refreshCellParams = {\n forceRefresh: params.force,\n newData: false,\n suppressFlash: params.suppressFlash\n };\n this.getCellCtrls(params.rowNodes, params.columns).forEach(function (cellCtrl) {\n if (cellCtrl.refreshShouldDestroy()) {\n var rowCtrl = cellCtrl.getRowCtrl();\n\n if (rowCtrl) {\n rowCtrl.refreshCell(cellCtrl);\n }\n } else {\n cellCtrl.refreshCell(refreshCellParams);\n }\n });\n this.getFullWidthRowCtrls(params.rowNodes).forEach(function (fullWidthRowCtrl) {\n fullWidthRowCtrl.refreshFullWidth();\n });\n };\n\n RowRenderer.prototype.getCellRendererInstances = function (params) {\n var res = this.getCellCtrls(params.rowNodes, params.columns).map(function (cellCtrl) {\n return cellCtrl.getCellRenderer();\n }).filter(function (renderer) {\n return renderer != null;\n });\n return res;\n };\n\n RowRenderer.prototype.getCellEditorInstances = function (params) {\n var res = [];\n this.getCellCtrls(params.rowNodes, params.columns).forEach(function (cellCtrl) {\n var cellEditor = cellCtrl.getCellEditor();\n\n if (cellEditor) {\n res.push(cellEditor);\n }\n });\n return res;\n };\n\n RowRenderer.prototype.getEditingCells = function () {\n var res = [];\n this.getAllCellCtrls().forEach(function (cellCtrl) {\n if (cellCtrl.isEditing()) {\n var cellPosition = cellCtrl.getCellPosition();\n res.push(cellPosition);\n }\n });\n return res;\n };\n\n RowRenderer.prototype.mapRowNodes = function (rowNodes) {\n if (!rowNodes) {\n return;\n }\n\n var res = {\n top: {},\n bottom: {},\n normal: {}\n };\n rowNodes.forEach(function (rowNode) {\n var id = rowNode.id;\n\n if (rowNode.rowPinned === Constants.PINNED_TOP) {\n res.top[id] = rowNode;\n } else if (rowNode.rowPinned === Constants.PINNED_BOTTOM) {\n res.bottom[id] = rowNode;\n } else {\n res.normal[id] = rowNode;\n }\n });\n return res;\n };\n\n RowRenderer.prototype.isRowInMap = function (rowNode, rowIdsMap) {\n // skip this row if it is missing from the provided list\n var id = rowNode.id;\n var floating = rowNode.rowPinned;\n\n if (floating === Constants.PINNED_BOTTOM) {\n return rowIdsMap.bottom[id] != null;\n }\n\n if (floating === Constants.PINNED_TOP) {\n return rowIdsMap.top[id] != null;\n }\n\n return rowIdsMap.normal[id] != null;\n }; // returns CellCtrl's that match the provided rowNodes and columns. eg if one row node\n // and two columns provided, that identifies 4 cells, so 4 CellCtrl's returned.\n\n\n RowRenderer.prototype.getCellCtrls = function (rowNodes, columns) {\n var _this = this;\n\n var rowIdsMap = this.mapRowNodes(rowNodes);\n var res = [];\n var colIdsMap;\n\n if (exists(columns)) {\n colIdsMap = {};\n columns.forEach(function (colKey) {\n var column = _this.columnModel.getGridColumn(colKey);\n\n if (exists(column)) {\n colIdsMap[column.getId()] = true;\n }\n });\n }\n\n var processRow = function processRow(rowComp) {\n var rowNode = rowComp.getRowNode(); // skip this row if it is missing from the provided list\n\n if (rowIdsMap != null && !_this.isRowInMap(rowNode, rowIdsMap)) {\n return;\n }\n\n rowComp.getAllCellCtrls().forEach(function (cellCtrl) {\n var colId = cellCtrl.getColumn().getId();\n var excludeColFromRefresh = colIdsMap && !colIdsMap[colId];\n\n if (excludeColFromRefresh) {\n return;\n }\n\n res.push(cellCtrl);\n });\n };\n\n iterateObject(this.rowCtrlsByRowIndex, function (index, rowComp) {\n processRow(rowComp);\n });\n\n if (this.topRowCtrls) {\n this.topRowCtrls.forEach(processRow);\n }\n\n if (this.bottomRowCtrls) {\n this.bottomRowCtrls.forEach(processRow);\n }\n\n return res;\n };\n\n RowRenderer.prototype.destroy = function () {\n this.removeAllRowComps();\n\n _super.prototype.destroy.call(this);\n };\n\n RowRenderer.prototype.removeAllRowComps = function () {\n var rowIndexesToRemove = Object.keys(this.rowCtrlsByRowIndex);\n this.removeRowCtrls(rowIndexesToRemove);\n };\n\n RowRenderer.prototype.recycleRows = function () {\n // remove all stub nodes, they can't be reused, as no rowNode id\n var stubNodeIndexes = [];\n iterateObject(this.rowCtrlsByRowIndex, function (index, rowComp) {\n var stubNode = rowComp.getRowNode().id == null;\n\n if (stubNode) {\n stubNodeIndexes.push(index);\n }\n });\n this.removeRowCtrls(stubNodeIndexes); // then clear out rowCompsByIndex, but before that take a copy, but index by id, not rowIndex\n\n var ctrlsByIdMap = {};\n iterateObject(this.rowCtrlsByRowIndex, function (index, rowComp) {\n var rowNode = rowComp.getRowNode();\n ctrlsByIdMap[rowNode.id] = rowComp;\n });\n this.rowCtrlsByRowIndex = {};\n return ctrlsByIdMap;\n }; // takes array of row indexes\n\n\n RowRenderer.prototype.removeRowCtrls = function (rowsToRemove) {\n var _this = this; // if no fromIndex then set to -1, which will refresh everything\n // let realFromIndex = -1;\n\n\n rowsToRemove.forEach(function (indexToRemove) {\n var rowCtrl = _this.rowCtrlsByRowIndex[indexToRemove];\n\n if (rowCtrl) {\n rowCtrl.destroyFirstPass();\n rowCtrl.destroySecondPass();\n }\n\n delete _this.rowCtrlsByRowIndex[indexToRemove];\n });\n }; // gets called when rows don't change, but viewport does, so after:\n // 1) height of grid body changes, ie number of displayed rows has changed\n // 2) grid scrolled to new position\n // 3) ensure index visible (which is a scroll)\n\n\n RowRenderer.prototype.redrawAfterScroll = function () {\n var cellFocused; // only try to refocus cells shifting in and out of sticky container\n // if the browser supports focus ({ preventScroll })\n\n if (this.stickyRowFeature && browserSupportsPreventScroll()) {\n cellFocused = this.getCellToRestoreFocusToAfterRefresh() || undefined;\n }\n\n this.getLockOnRefresh();\n this.redraw(null, false, true);\n this.releaseLockOnRefresh();\n this.dispatchDisplayedRowsChanged();\n\n if (cellFocused != null) {\n var newFocusedCell = this.getCellToRestoreFocusToAfterRefresh();\n\n if (cellFocused != null && newFocusedCell == null) {\n this.animationFrameService.flushAllFrames();\n this.restoreFocusedCell(cellFocused);\n }\n }\n };\n\n RowRenderer.prototype.removeRowCompsNotToDraw = function (indexesToDraw) {\n // for speedy lookup, dump into map\n var indexesToDrawMap = {};\n indexesToDraw.forEach(function (index) {\n return indexesToDrawMap[index] = true;\n });\n var existingIndexes = Object.keys(this.rowCtrlsByRowIndex);\n var indexesNotToDraw = existingIndexes.filter(function (index) {\n return !indexesToDrawMap[index];\n });\n this.removeRowCtrls(indexesNotToDraw);\n };\n\n RowRenderer.prototype.calculateIndexesToDraw = function (rowsToRecycle) {\n var _this = this; // all in all indexes in the viewport\n\n\n var indexesToDraw = createArrayOfNumbers(this.firstRenderedRow, this.lastRenderedRow);\n\n var checkRowToDraw = function checkRowToDraw(indexStr, rowComp) {\n var index = rowComp.getRowNode().rowIndex;\n\n if (index == null) {\n return;\n }\n\n if (index < _this.firstRenderedRow || index > _this.lastRenderedRow) {\n if (_this.doNotUnVirtualiseRow(rowComp)) {\n indexesToDraw.push(index);\n }\n }\n }; // if we are redrawing due to scrolling change, then old rows are in this.rowCompsByIndex\n\n\n iterateObject(this.rowCtrlsByRowIndex, checkRowToDraw); // if we are redrawing due to model update, then old rows are in rowsToRecycle\n\n iterateObject(rowsToRecycle, checkRowToDraw);\n indexesToDraw.sort(function (a, b) {\n return a - b;\n });\n indexesToDraw = indexesToDraw.filter(function (index) {\n var rowNode = _this.paginationProxy.getRow(index);\n\n return rowNode && !rowNode.sticky;\n });\n return indexesToDraw;\n };\n\n RowRenderer.prototype.redraw = function (rowsToRecycle, animate, afterScroll) {\n var _this = this;\n\n if (animate === void 0) {\n animate = false;\n }\n\n if (afterScroll === void 0) {\n afterScroll = false;\n }\n\n this.rowContainerHeightService.updateOffset();\n this.workOutFirstAndLastRowsToRender();\n\n if (this.stickyRowFeature) {\n this.stickyRowFeature.checkStickyRows();\n } // the row can already exist and be in the following:\n // rowsToRecycle -> if model change, then the index may be different, however row may\n // exist here from previous time (mapped by id).\n // this.rowCompsByIndex -> if just a scroll, then this will contain what is currently in the viewport\n // this is all the indexes we want, including those that already exist, so this method\n // will end up going through each index and drawing only if the row doesn't already exist\n\n\n var indexesToDraw = this.calculateIndexesToDraw(rowsToRecycle);\n this.removeRowCompsNotToDraw(indexesToDraw); // never animate when doing print layout - as we want to get things ready to print as quickly as possible,\n // otherwise we risk the printer printing a row that's half faded (half way through fading in)\n\n if (this.printLayout) {\n animate = false;\n }\n\n indexesToDraw.forEach(function (rowIndex) {\n var rowCtrl = _this.createOrUpdateRowCtrl(rowIndex, rowsToRecycle, animate, afterScroll);\n\n if (exists(rowCtrl)) ;\n });\n\n if (rowsToRecycle) {\n var useAnimationFrame = afterScroll && !this.gridOptionsWrapper.isSuppressAnimationFrame() && !this.printLayout;\n\n if (useAnimationFrame) {\n this.beans.animationFrameService.addDestroyTask(function () {\n _this.destroyRowCtrls(rowsToRecycle, animate);\n\n _this.updateAllRowCtrls();\n\n _this.dispatchDisplayedRowsChanged();\n });\n } else {\n this.destroyRowCtrls(rowsToRecycle, animate);\n }\n }\n\n this.updateAllRowCtrls();\n };\n\n RowRenderer.prototype.dispatchDisplayedRowsChanged = function () {\n var event = {\n type: Events.EVENT_DISPLAYED_ROWS_CHANGED\n };\n this.eventService.dispatchEvent(event);\n };\n\n RowRenderer.prototype.onDisplayedColumnsChanged = function () {\n var pinningLeft = this.columnModel.isPinningLeft();\n var pinningRight = this.columnModel.isPinningRight();\n var atLeastOneChanged = this.pinningLeft !== pinningLeft || pinningRight !== this.pinningRight;\n\n if (atLeastOneChanged) {\n this.pinningLeft = pinningLeft;\n this.pinningRight = pinningRight;\n\n if (this.embedFullWidthRows) {\n this.redrawFullWidthEmbeddedRows();\n }\n }\n }; // when embedding, what gets showed in each section depends on what is pinned. eg if embedding group expand / collapse,\n // then it should go into the pinned left area if pinning left, or the center area if not pinning.\n\n\n RowRenderer.prototype.redrawFullWidthEmbeddedRows = function () {\n // if either of the pinned panels has shown / hidden, then need to redraw the fullWidth bits when\n // embedded, as what appears in each section depends on whether we are pinned or not\n var rowsToRemove = [];\n this.getFullWidthRowCtrls().forEach(function (fullWidthCtrl) {\n var rowIndex = fullWidthCtrl.getRowNode().rowIndex;\n rowsToRemove.push(rowIndex.toString());\n });\n this.refreshFloatingRowComps();\n this.removeRowCtrls(rowsToRemove);\n this.redrawAfterScroll();\n };\n\n RowRenderer.prototype.getFullWidthRowCtrls = function (rowNodes) {\n var _this = this;\n\n var rowNodesMap = this.mapRowNodes(rowNodes);\n return getAllValuesInObject(this.rowCtrlsByRowIndex).filter(function (rowCtrl) {\n // include just full width\n if (!rowCtrl.isFullWidth()) {\n return false;\n } // if Row Nodes provided, we exclude where Row Node is missing\n\n\n var rowNode = rowCtrl.getRowNode();\n\n if (rowNodesMap != null && !_this.isRowInMap(rowNode, rowNodesMap)) {\n return false;\n }\n\n return true;\n });\n };\n\n RowRenderer.prototype.refreshFullWidthRows = function (rowNodesToRefresh) {\n var rowsToRemove = [];\n var selectivelyRefreshing = !!rowNodesToRefresh;\n var idsToRefresh = selectivelyRefreshing ? {} : undefined;\n\n if (selectivelyRefreshing && idsToRefresh) {\n rowNodesToRefresh.forEach(function (r) {\n return idsToRefresh[r.id] = true;\n });\n }\n\n this.getFullWidthRowCtrls().forEach(function (fullWidthRowCtrl) {\n var rowNode = fullWidthRowCtrl.getRowNode();\n\n if (selectivelyRefreshing && idsToRefresh) {\n // we refresh if a) this node is present or b) this parents nodes is present. checking parent\n // node is important for master/detail, as we want detail to refresh on changes to parent node.\n // it's also possible, if user is provider their own fullWidth, that details panels contain\n // some info on the parent, eg if in tree data and child row shows some data from parent row also.\n var parentId = rowNode.level > 0 && rowNode.parent ? rowNode.parent.id : undefined;\n var skipThisNode = !idsToRefresh[rowNode.id] && !idsToRefresh[parentId];\n\n if (skipThisNode) {\n return;\n }\n }\n\n var fullWidthRowsRefreshed = fullWidthRowCtrl.refreshFullWidth();\n\n if (!fullWidthRowsRefreshed) {\n var rowIndex = fullWidthRowCtrl.getRowNode().rowIndex;\n rowsToRemove.push(rowIndex.toString());\n }\n });\n this.removeRowCtrls(rowsToRemove);\n this.redrawAfterScroll();\n };\n\n RowRenderer.prototype.createOrUpdateRowCtrl = function (rowIndex, rowsToRecycle, animate, afterScroll) {\n var rowNode;\n var rowCtrl = this.rowCtrlsByRowIndex[rowIndex]; // if no row comp, see if we can get it from the previous rowComps\n\n if (!rowCtrl) {\n rowNode = this.paginationProxy.getRow(rowIndex);\n\n if (exists(rowNode) && exists(rowsToRecycle) && rowsToRecycle[rowNode.id] && rowNode.alreadyRendered) {\n rowCtrl = rowsToRecycle[rowNode.id];\n rowsToRecycle[rowNode.id] = null;\n }\n }\n\n var creatingNewRowCtrl = !rowCtrl;\n\n if (creatingNewRowCtrl) {\n // create a new one\n if (!rowNode) {\n rowNode = this.paginationProxy.getRow(rowIndex);\n }\n\n if (exists(rowNode)) {\n rowCtrl = this.createRowCon(rowNode, animate, afterScroll);\n } else {\n // this should never happen - if somehow we are trying to create\n // a row for a rowNode that does not exist.\n return;\n }\n }\n\n if (rowNode) {\n // set node as 'alreadyRendered' to ensure we only recycle rowComps that have been rendered, this ensures\n // we don't reuse rowComps that have been removed and then re-added in the same batch transaction.\n rowNode.alreadyRendered = true;\n }\n\n this.rowCtrlsByRowIndex[rowIndex] = rowCtrl;\n return rowCtrl;\n };\n\n RowRenderer.prototype.destroyRowCtrls = function (rowCtrlsMap, animate) {\n var _this = this;\n\n var executeInAWhileFuncs = [];\n iterateObject(rowCtrlsMap, function (nodeId, rowCtrl) {\n // if row was used, then it's null\n if (!rowCtrl) {\n return;\n }\n\n if (_this.cachedRowCtrls && rowCtrl.isCacheable()) {\n _this.cachedRowCtrls.addRow(rowCtrl);\n\n return;\n }\n\n rowCtrl.destroyFirstPass();\n\n if (animate) {\n _this.zombieRowCtrls[rowCtrl.getInstanceId()] = rowCtrl;\n executeInAWhileFuncs.push(function () {\n rowCtrl.destroySecondPass();\n delete _this.zombieRowCtrls[rowCtrl.getInstanceId()];\n });\n } else {\n rowCtrl.destroySecondPass();\n }\n });\n\n if (animate) {\n // this ensures we fire displayedRowsChanged AFTER all the 'executeInAWhileFuncs' get\n // executed, as we added it to the end of the list.\n executeInAWhileFuncs.push(function () {\n _this.updateAllRowCtrls();\n\n _this.dispatchDisplayedRowsChanged();\n });\n executeInAWhile(executeInAWhileFuncs);\n }\n };\n\n RowRenderer.prototype.workOutFirstAndLastRowsToRender = function () {\n var newFirst;\n var newLast;\n\n if (!this.paginationProxy.isRowsToRender()) {\n newFirst = 0;\n newLast = -1; // setting to -1 means nothing in range\n } else if (this.printLayout) {\n newFirst = this.paginationProxy.getPageFirstRow();\n newLast = this.paginationProxy.getPageLastRow();\n } else {\n var bufferPixels = this.gridOptionsWrapper.getRowBufferInPixels();\n var gridBodyCtrl = this.ctrlsService.getGridBodyCtrl();\n var suppressRowVirtualisation = this.gridOptionsWrapper.isSuppressRowVirtualisation();\n var rowHeightsChanged = false;\n var firstPixel = void 0;\n var lastPixel = void 0;\n\n do {\n var paginationOffset = this.paginationProxy.getPixelOffset();\n\n var _a = this.paginationProxy.getCurrentPagePixelRange(),\n pageFirstPixel = _a.pageFirstPixel,\n pageLastPixel = _a.pageLastPixel;\n\n var divStretchOffset = this.rowContainerHeightService.getDivStretchOffset();\n var bodyVRange = gridBodyCtrl.getScrollFeature().getVScrollPosition();\n var bodyTopPixel = bodyVRange.top;\n var bodyBottomPixel = bodyVRange.bottom;\n\n if (suppressRowVirtualisation) {\n firstPixel = pageFirstPixel + divStretchOffset;\n lastPixel = pageLastPixel + divStretchOffset;\n } else {\n firstPixel = Math.max(bodyTopPixel + paginationOffset - bufferPixels, pageFirstPixel) + divStretchOffset;\n lastPixel = Math.min(bodyBottomPixel + paginationOffset + bufferPixels, pageLastPixel) + divStretchOffset;\n }\n\n this.firstVisibleVPixel = Math.max(bodyTopPixel + paginationOffset, pageFirstPixel) + divStretchOffset; // if the rows we are about to display get their heights changed, then that upsets the calcs from above.\n\n rowHeightsChanged = this.ensureAllRowsInRangeHaveHeightsCalculated(firstPixel, lastPixel);\n } while (rowHeightsChanged);\n\n var firstRowIndex = this.paginationProxy.getRowIndexAtPixel(firstPixel);\n var lastRowIndex = this.paginationProxy.getRowIndexAtPixel(lastPixel);\n var pageFirstRow = this.paginationProxy.getPageFirstRow();\n var pageLastRow = this.paginationProxy.getPageLastRow(); // adjust, in case buffer extended actual size\n\n if (firstRowIndex < pageFirstRow) {\n firstRowIndex = pageFirstRow;\n }\n\n if (lastRowIndex > pageLastRow) {\n lastRowIndex = pageLastRow;\n }\n\n newFirst = firstRowIndex;\n newLast = lastRowIndex;\n } // sometimes user doesn't set CSS right and ends up with grid with no height and grid ends up\n // trying to render all the rows, eg 10,000+ rows. this will kill the browser. so instead of\n // killing the browser, we limit the number of rows. just in case some use case we didn't think\n // of, we also have a property to not do this operation.\n\n\n var rowLayoutNormal = this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_NORMAL;\n var suppressRowCountRestriction = this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction();\n var rowBufferMaxSize = Math.max(this.gridOptionsWrapper.getRowBuffer(), 500);\n\n if (rowLayoutNormal && !suppressRowCountRestriction) {\n if (newLast - newFirst > rowBufferMaxSize) {\n newLast = newFirst + rowBufferMaxSize;\n }\n }\n\n var firstDiffers = newFirst !== this.firstRenderedRow;\n var lastDiffers = newLast !== this.lastRenderedRow;\n\n if (firstDiffers || lastDiffers) {\n this.firstRenderedRow = newFirst;\n this.lastRenderedRow = newLast;\n var event_1 = {\n type: Events.EVENT_VIEWPORT_CHANGED,\n firstRow: newFirst,\n lastRow: newLast\n };\n this.eventService.dispatchEvent(event_1);\n }\n };\n /**\n * This event will only be fired once, and is queued until after the browser next renders.\n * This allows us to fire an event during the start of the render cycle, when we first see data being rendered\n * but not execute the event until all of the data has finished being rendered to the dom.\n */\n\n\n RowRenderer.prototype.dispatchFirstDataRenderedEvent = function () {\n var _this = this;\n\n if (this.dataFirstRenderedFired) {\n return;\n }\n\n this.dataFirstRenderedFired = true;\n var event = {\n type: Events.EVENT_FIRST_DATA_RENDERED,\n firstRow: this.firstRenderedRow,\n lastRow: this.lastRenderedRow\n }; // See AG-7018\n\n window.requestAnimationFrame(function () {\n _this.beans.eventService.dispatchEvent(event);\n });\n };\n\n RowRenderer.prototype.ensureAllRowsInRangeHaveHeightsCalculated = function (topPixel, bottomPixel) {\n // ensureRowHeightsVisible only works with CSRM, as it's the only row model that allows lazy row height calcs.\n // all the other row models just hard code so the method just returns back false\n var res = this.paginationProxy.ensureRowHeightsValid(topPixel, bottomPixel, -1, -1);\n\n if (res) {\n this.updateContainerHeights();\n }\n\n return res;\n };\n\n RowRenderer.prototype.getFirstVisibleVerticalPixel = function () {\n return this.firstVisibleVPixel;\n };\n\n RowRenderer.prototype.getFirstVirtualRenderedRow = function () {\n return this.firstRenderedRow;\n };\n\n RowRenderer.prototype.getLastVirtualRenderedRow = function () {\n return this.lastRenderedRow;\n }; // check that none of the rows to remove are editing or focused as:\n // a) if editing, we want to keep them, otherwise the user will loose the context of the edit,\n // eg user starts editing, enters some text, then scrolls down and then up, next time row rendered\n // the edit is reset - so we want to keep it rendered.\n // b) if focused, we want ot keep keyboard focus, so if user ctrl+c, it goes to clipboard,\n // otherwise the user can range select and drag (with focus cell going out of the viewport)\n // and then ctrl+c, nothing will happen if cell is removed from dom.\n // c) if detail record of master detail, as users complained that the context of detail rows\n // was getting lost when detail row out of view. eg user expands to show detail row,\n // then manipulates the detail panel (eg sorts the detail grid), then context is lost\n // after detail panel is scrolled out of / into view.\n\n\n RowRenderer.prototype.doNotUnVirtualiseRow = function (rowComp) {\n var REMOVE_ROW = false;\n var KEEP_ROW = true;\n var rowNode = rowComp.getRowNode();\n var rowHasFocus = this.focusService.isRowNodeFocused(rowNode);\n var rowIsEditing = rowComp.isEditing();\n var rowIsDetail = rowNode.detail;\n var mightWantToKeepRow = rowHasFocus || rowIsEditing || rowIsDetail; // if we deffo don't want to keep it,\n\n if (!mightWantToKeepRow) {\n return REMOVE_ROW;\n } // editing row, only remove if it is no longer rendered, eg filtered out or new data set.\n // the reason we want to keep is if user is scrolling up and down, we don't want to loose\n // the context of the editing in process.\n\n\n var rowNodePresent = this.paginationProxy.isRowPresent(rowNode);\n return rowNodePresent ? KEEP_ROW : REMOVE_ROW;\n };\n\n RowRenderer.prototype.createRowCon = function (rowNode, animate, afterScroll) {\n var rowCtrlFromCache = this.cachedRowCtrls ? this.cachedRowCtrls.getRow(rowNode) : null;\n\n if (rowCtrlFromCache) {\n return rowCtrlFromCache;\n } // we don't use animations frames for printing, so the user can put the grid into print mode\n // and immediately print - otherwise the user would have to wait for the rows to draw in the background\n // (via the animation frames) which is awkward to do from code.\n // we only do the animation frames after scrolling, as this is where we want the smooth user experience.\n // having animation frames for other times makes the grid look 'jumpy'.\n\n\n var suppressAnimationFrame = this.gridOptionsWrapper.isSuppressAnimationFrame();\n var useAnimationFrameForCreate = afterScroll && !suppressAnimationFrame && !this.printLayout;\n var res = new RowCtrl(rowNode, this.beans, animate, useAnimationFrameForCreate, this.printLayout);\n return res;\n };\n\n RowRenderer.prototype.getRenderedNodes = function () {\n var renderedRows = this.rowCtrlsByRowIndex;\n return Object.keys(renderedRows).map(function (key) {\n return renderedRows[key].getRowNode();\n });\n };\n\n RowRenderer.prototype.getRowByPosition = function (rowPosition) {\n var rowCtrl;\n var rowIndex = rowPosition.rowIndex;\n\n switch (rowPosition.rowPinned) {\n case Constants.PINNED_TOP:\n rowCtrl = this.topRowCtrls[rowIndex];\n break;\n\n case Constants.PINNED_BOTTOM:\n rowCtrl = this.bottomRowCtrls[rowIndex];\n break;\n\n default:\n rowCtrl = this.rowCtrlsByRowIndex[rowIndex];\n\n if (!rowCtrl) {\n rowCtrl = this.getStickyTopRowCtrls().find(function (ctrl) {\n return ctrl.getRowNode().rowIndex === rowIndex;\n }) || null;\n }\n\n break;\n }\n\n return rowCtrl;\n };\n\n RowRenderer.prototype.getRowNode = function (gridRow) {\n switch (gridRow.rowPinned) {\n case Constants.PINNED_TOP:\n return this.pinnedRowModel.getPinnedTopRowData()[gridRow.rowIndex];\n\n case Constants.PINNED_BOTTOM:\n return this.pinnedRowModel.getPinnedBottomRowData()[gridRow.rowIndex];\n\n default:\n return this.rowModel.getRow(gridRow.rowIndex);\n }\n }; // returns true if any row between startIndex and endIndex is rendered. used by\n // SSRM or IRM, as they don't want to purge visible blocks from cache.\n\n\n RowRenderer.prototype.isRangeInRenderedViewport = function (startIndex, endIndex) {\n // parent closed means the parent node is not expanded, thus these blocks are not visible\n var parentClosed = startIndex == null || endIndex == null;\n\n if (parentClosed) {\n return false;\n }\n\n var blockAfterViewport = startIndex > this.lastRenderedRow;\n var blockBeforeViewport = endIndex < this.firstRenderedRow;\n var blockInsideViewport = !blockBeforeViewport && !blockAfterViewport;\n return blockInsideViewport;\n };\n\n __decorate$13([Autowired(\"animationFrameService\")], RowRenderer.prototype, \"animationFrameService\", void 0);\n\n __decorate$13([Autowired(\"paginationProxy\")], RowRenderer.prototype, \"paginationProxy\", void 0);\n\n __decorate$13([Autowired(\"columnModel\")], RowRenderer.prototype, \"columnModel\", void 0);\n\n __decorate$13([Autowired(\"pinnedRowModel\")], RowRenderer.prototype, \"pinnedRowModel\", void 0);\n\n __decorate$13([Autowired(\"rowModel\")], RowRenderer.prototype, \"rowModel\", void 0);\n\n __decorate$13([Autowired(\"focusService\")], RowRenderer.prototype, \"focusService\", void 0);\n\n __decorate$13([Autowired(\"beans\")], RowRenderer.prototype, \"beans\", void 0);\n\n __decorate$13([Autowired(\"rowContainerHeightService\")], RowRenderer.prototype, \"rowContainerHeightService\", void 0);\n\n __decorate$13([Autowired(\"ctrlsService\")], RowRenderer.prototype, \"ctrlsService\", void 0);\n\n __decorate$13([PostConstruct], RowRenderer.prototype, \"postConstruct\", null);\n\n RowRenderer = __decorate$13([Bean(\"rowRenderer\")], RowRenderer);\n return RowRenderer;\n}(BeanStub);\n\nvar RowCtrlCache =\n/** @class */\nfunction () {\n function RowCtrlCache(maxCount) {\n // map for fast access\n this.entriesMap = {}; // list for keeping order\n\n this.entriesList = [];\n this.maxCount = maxCount;\n }\n\n RowCtrlCache.prototype.addRow = function (rowCtrl) {\n this.entriesMap[rowCtrl.getRowNode().id] = rowCtrl;\n this.entriesList.push(rowCtrl);\n rowCtrl.setCached(true);\n\n if (this.entriesList.length > this.maxCount) {\n var rowCtrlToDestroy = this.entriesList[0];\n rowCtrlToDestroy.destroyFirstPass();\n rowCtrlToDestroy.destroySecondPass();\n this.removeFromCache(rowCtrlToDestroy);\n }\n };\n\n RowCtrlCache.prototype.getRow = function (rowNode) {\n if (rowNode == null || rowNode.id == null) {\n return null;\n }\n\n var res = this.entriesMap[rowNode.id];\n\n if (!res) {\n return null;\n }\n\n this.removeFromCache(res);\n res.setCached(false); // this can happen if user reloads data, and a new RowNode is reusing\n // the same ID as the old one\n\n var rowNodeMismatch = res.getRowNode() != rowNode;\n return rowNodeMismatch ? null : res;\n };\n\n RowCtrlCache.prototype.removeFromCache = function (rowCtrl) {\n var rowNodeId = rowCtrl.getRowNode().id;\n delete this.entriesMap[rowNodeId];\n removeFromArray(this.entriesList, rowCtrl);\n };\n\n RowCtrlCache.prototype.getEntries = function () {\n return this.entriesList;\n };\n\n return RowCtrlCache;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$19 = undefined && undefined.__extends || function () {\n var _extendStatics112 = function extendStatics(d, b) {\n _extendStatics112 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics112(d, b);\n };\n\n return function (d, b) {\n _extendStatics112(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ValueFormatterService =\n/** @class */\nfunction (_super) {\n __extends$19(ValueFormatterService, _super);\n\n function ValueFormatterService() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n ValueFormatterService.prototype.formatValue = function (column, node, value, suppliedFormatter, useFormatterFromColumn) {\n if (useFormatterFromColumn === void 0) {\n useFormatterFromColumn = true;\n }\n\n var result = null;\n var formatter;\n var colDef = column.getColDef();\n\n if (suppliedFormatter) {\n // use supplied formatter if provided, e.g. set filter items can have their own value formatters\n formatter = suppliedFormatter;\n } else if (useFormatterFromColumn) {\n // if row is pinned, give preference to the pinned formatter\n formatter = node && node.rowPinned && colDef.pinnedRowValueFormatter ? colDef.pinnedRowValueFormatter : colDef.valueFormatter;\n }\n\n if (formatter) {\n var params = {\n value: value,\n node: node,\n data: node ? node.data : null,\n colDef: colDef,\n column: column,\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n context: this.gridOptionsWrapper.getContext()\n };\n result = this.expressionService.evaluate(formatter, params);\n } else if (colDef.refData) {\n return colDef.refData[value] || '';\n } // if we don't do this, then arrays get displayed as 1,2,3, but we want 1, 2, 3 (i.e. with spaces)\n\n\n if (result == null && Array.isArray(value)) {\n result = value.join(', ');\n }\n\n return result;\n };\n\n __decorate$12([Autowired('expressionService')], ValueFormatterService.prototype, \"expressionService\", void 0);\n\n ValueFormatterService = __decorate$12([Bean('valueFormatterService')], ValueFormatterService);\n return ValueFormatterService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$18 = undefined && undefined.__extends || function () {\n var _extendStatics113 = function extendStatics(d, b) {\n _extendStatics113 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics113(d, b);\n };\n\n return function (d, b) {\n _extendStatics113(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar PinnedRowModel =\n/** @class */\nfunction (_super) {\n __extends$18(PinnedRowModel, _super);\n\n function PinnedRowModel() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n PinnedRowModel.prototype.init = function () {\n this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData());\n this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData());\n };\n\n PinnedRowModel.prototype.isEmpty = function (floating) {\n var rows = floating === Constants.PINNED_TOP ? this.pinnedTopRows : this.pinnedBottomRows;\n return missingOrEmpty(rows);\n };\n\n PinnedRowModel.prototype.isRowsToRender = function (floating) {\n return !this.isEmpty(floating);\n };\n\n PinnedRowModel.prototype.getRowAtPixel = function (pixel, floating) {\n var rows = floating === Constants.PINNED_TOP ? this.pinnedTopRows : this.pinnedBottomRows;\n\n if (missingOrEmpty(rows)) {\n return 0; // this should never happen, just in case, 0 is graceful failure\n }\n\n for (var i = 0; i < rows.length; i++) {\n var rowNode = rows[i];\n var rowTopPixel = rowNode.rowTop + rowNode.rowHeight - 1; // only need to range check against the top pixel, as we are going through the list\n // in order, first row to hit the pixel wins\n\n if (rowTopPixel >= pixel) {\n return i;\n }\n }\n\n return rows.length - 1;\n };\n\n PinnedRowModel.prototype.setPinnedTopRowData = function (rowData) {\n this.pinnedTopRows = this.createNodesFromData(rowData, true);\n var event = {\n type: Events.EVENT_PINNED_ROW_DATA_CHANGED\n };\n this.eventService.dispatchEvent(event);\n };\n\n PinnedRowModel.prototype.setPinnedBottomRowData = function (rowData) {\n this.pinnedBottomRows = this.createNodesFromData(rowData, false);\n var event = {\n type: Events.EVENT_PINNED_ROW_DATA_CHANGED\n };\n this.eventService.dispatchEvent(event);\n };\n\n PinnedRowModel.prototype.createNodesFromData = function (allData, isTop) {\n var _this = this;\n\n var rowNodes = [];\n\n if (allData) {\n var nextRowTop_1 = 0;\n allData.forEach(function (dataItem, index) {\n var rowNode = new RowNode(_this.beans);\n rowNode.data = dataItem;\n var idPrefix = isTop ? RowNode.ID_PREFIX_TOP_PINNED : RowNode.ID_PREFIX_BOTTOM_PINNED;\n rowNode.id = idPrefix + index;\n rowNode.rowPinned = isTop ? Constants.PINNED_TOP : Constants.PINNED_BOTTOM;\n rowNode.setRowTop(nextRowTop_1);\n rowNode.setRowHeight(_this.gridOptionsWrapper.getRowHeightForNode(rowNode).height);\n rowNode.setRowIndex(index);\n nextRowTop_1 += rowNode.rowHeight;\n rowNodes.push(rowNode);\n });\n }\n\n return rowNodes;\n };\n\n PinnedRowModel.prototype.getPinnedTopRowData = function () {\n return this.pinnedTopRows;\n };\n\n PinnedRowModel.prototype.getPinnedBottomRowData = function () {\n return this.pinnedBottomRows;\n };\n\n PinnedRowModel.prototype.getPinnedTopTotalHeight = function () {\n return this.getTotalHeight(this.pinnedTopRows);\n };\n\n PinnedRowModel.prototype.getPinnedTopRowCount = function () {\n return this.pinnedTopRows ? this.pinnedTopRows.length : 0;\n };\n\n PinnedRowModel.prototype.getPinnedBottomRowCount = function () {\n return this.pinnedBottomRows ? this.pinnedBottomRows.length : 0;\n };\n\n PinnedRowModel.prototype.getPinnedTopRow = function (index) {\n return this.pinnedTopRows[index];\n };\n\n PinnedRowModel.prototype.getPinnedBottomRow = function (index) {\n return this.pinnedBottomRows[index];\n };\n\n PinnedRowModel.prototype.forEachPinnedTopRow = function (callback) {\n if (missingOrEmpty(this.pinnedTopRows)) {\n return;\n }\n\n this.pinnedTopRows.forEach(callback);\n };\n\n PinnedRowModel.prototype.forEachPinnedBottomRow = function (callback) {\n if (missingOrEmpty(this.pinnedBottomRows)) {\n return;\n }\n\n this.pinnedBottomRows.forEach(callback);\n };\n\n PinnedRowModel.prototype.getPinnedBottomTotalHeight = function () {\n return this.getTotalHeight(this.pinnedBottomRows);\n };\n\n PinnedRowModel.prototype.getTotalHeight = function (rowNodes) {\n if (!rowNodes || rowNodes.length === 0) {\n return 0;\n }\n\n var lastNode = last(rowNodes);\n return lastNode.rowTop + lastNode.rowHeight;\n };\n\n __decorate$11([Autowired('beans')], PinnedRowModel.prototype, \"beans\", void 0);\n\n __decorate$11([PostConstruct], PinnedRowModel.prototype, \"init\", null);\n\n PinnedRowModel = __decorate$11([Bean('pinnedRowModel')], PinnedRowModel);\n return PinnedRowModel;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar ServerSideTransactionResultStatus;\n\n(function (ServerSideTransactionResultStatus) {\n /** Transaction was successfully applied */\n ServerSideTransactionResultStatus[\"Applied\"] = \"Applied\";\n /**\n * Store was not found, transaction not applied.\n * Either invalid route, or the parent row has not yet been expanded.\n */\n\n ServerSideTransactionResultStatus[\"StoreNotFound\"] = \"StoreNotFound\";\n /**\n * Store is loading, transaction not applied.\n */\n\n ServerSideTransactionResultStatus[\"StoreLoading\"] = \"StoreLoading\";\n /**\n * Store is loading (as max loads exceeded), transaction not applied.\n */\n\n ServerSideTransactionResultStatus[\"StoreWaitingToLoad\"] = \"StoreWaitingToLoad\";\n /**\n * Store load attempt failed, transaction not applied.\n */\n\n ServerSideTransactionResultStatus[\"StoreLoadingFailed\"] = \"StoreLoadingFailed\";\n /**\n * Store is type Partial, which doesn't accept transactions\n */\n\n ServerSideTransactionResultStatus[\"StoreWrongType\"] = \"StoreWrongType\";\n /**\n * Transaction was cancelled, due to grid.\n * Callback isApplyServerSideTransaction() returning false\n */\n\n ServerSideTransactionResultStatus[\"Cancelled\"] = \"Cancelled\";\n})(ServerSideTransactionResultStatus || (ServerSideTransactionResultStatus = {}));\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n// when doing transactions, or change detection, and grouping is present\n// in the data, there is no need for the ClientSideRowModel to update each\n// group after an update, ony parts that were impacted by the change.\n// this class keeps track of all groups that were impacted by a transaction.\n// the the different CSRM operations (filter, sort etc) use the forEach method\n// to visit each group that was changed.\n\n\nvar ChangedPath =\n/** @class */\nfunction () {\n function ChangedPath(keepingColumns, rootNode) {\n // whether changed path is active of not. it is active when a) doing\n // a transaction update or b) doing change detection. if we are doing\n // a CSRM refresh for other reasons (after sort or filter, or user calling\n // setRowData() without delta mode) then we are not active. we are also\n // marked as not active if secondary columns change in pivot (as this impacts\n // aggregations)\n this.active = true; // for each node in the change path, we also store which columns need\n // to be re-aggregated.\n\n this.nodeIdsToColumns = {}; // for quick lookup, all items in the change path are mapped by nodeId\n\n this.mapToItems = {};\n this.keepingColumns = keepingColumns;\n this.pathRoot = {\n rowNode: rootNode,\n children: null\n };\n this.mapToItems[rootNode.id] = this.pathRoot;\n } // can be set inactive by:\n // a) ClientSideRowModel, if no transactions or\n // b) PivotService, if secondary columns changed\n\n\n ChangedPath.prototype.setInactive = function () {\n this.active = false;\n };\n\n ChangedPath.prototype.isActive = function () {\n return this.active;\n };\n\n ChangedPath.prototype.depthFirstSearchChangedPath = function (pathItem, callback) {\n if (pathItem.children) {\n for (var i = 0; i < pathItem.children.length; i++) {\n this.depthFirstSearchChangedPath(pathItem.children[i], callback);\n }\n }\n\n callback(pathItem.rowNode);\n };\n\n ChangedPath.prototype.depthFirstSearchEverything = function (rowNode, callback, traverseEverything) {\n if (rowNode.childrenAfterGroup) {\n for (var i = 0; i < rowNode.childrenAfterGroup.length; i++) {\n var childNode = rowNode.childrenAfterGroup[i];\n\n if (childNode.childrenAfterGroup) {\n this.depthFirstSearchEverything(rowNode.childrenAfterGroup[i], callback, traverseEverything);\n } else if (traverseEverything) {\n callback(childNode);\n }\n }\n }\n\n callback(rowNode);\n }; // traverseLeafNodes -> used when NOT doing changed path, ie traversing everything. the callback\n // will be called for child nodes in addition to parent nodes.\n\n\n ChangedPath.prototype.forEachChangedNodeDepthFirst = function (callback, traverseLeafNodes) {\n if (traverseLeafNodes === void 0) {\n traverseLeafNodes = false;\n }\n\n if (this.active) {\n // if we are active, then use the change path to callback\n // only for updated groups\n this.depthFirstSearchChangedPath(this.pathRoot, callback);\n } else {\n // we are not active, so callback for everything, walk the entire path\n this.depthFirstSearchEverything(this.pathRoot.rowNode, callback, traverseLeafNodes);\n }\n };\n\n ChangedPath.prototype.executeFromRootNode = function (callback) {\n callback(this.pathRoot.rowNode);\n };\n\n ChangedPath.prototype.createPathItems = function (rowNode) {\n var pointer = rowNode;\n var newEntryCount = 0;\n\n while (!this.mapToItems[pointer.id]) {\n var newEntry = {\n rowNode: pointer,\n children: null\n };\n this.mapToItems[pointer.id] = newEntry;\n newEntryCount++;\n pointer = pointer.parent;\n }\n\n return newEntryCount;\n };\n\n ChangedPath.prototype.populateColumnsMap = function (rowNode, columns) {\n var _this = this;\n\n if (!this.keepingColumns || !columns) {\n return;\n }\n\n var pointer = rowNode;\n\n while (pointer) {\n // if columns, add the columns in all the way to parent, merging\n // in any other columns that might be there already\n if (!this.nodeIdsToColumns[pointer.id]) {\n this.nodeIdsToColumns[pointer.id] = {};\n }\n\n columns.forEach(function (col) {\n return _this.nodeIdsToColumns[pointer.id][col.getId()] = true;\n });\n pointer = pointer.parent;\n }\n };\n\n ChangedPath.prototype.linkPathItems = function (rowNode, newEntryCount) {\n var pointer = rowNode;\n\n for (var i = 0; i < newEntryCount; i++) {\n var thisItem = this.mapToItems[pointer.id];\n var parentItem = this.mapToItems[pointer.parent.id];\n\n if (!parentItem.children) {\n parentItem.children = [];\n }\n\n parentItem.children.push(thisItem);\n pointer = pointer.parent;\n }\n }; // called by\n // 1) change detection (provides cols) and\n // 2) groupStage if doing transaction update (doesn't provide cols)\n\n\n ChangedPath.prototype.addParentNode = function (rowNode, columns) {\n if (!rowNode || rowNode.isRowPinned()) {\n return;\n } // we cannot do both steps below in the same loop as\n // the second loop has a dependency on the first loop.\n // ie the hierarchy cannot be stitched up yet because\n // we don't have it built yet\n // create the new PathItem objects.\n\n\n var newEntryCount = this.createPathItems(rowNode); // link in the node items\n\n this.linkPathItems(rowNode, newEntryCount); // update columns\n\n this.populateColumnsMap(rowNode, columns);\n };\n\n ChangedPath.prototype.canSkip = function (rowNode) {\n return this.active && !this.mapToItems[rowNode.id];\n };\n\n ChangedPath.prototype.getValueColumnsForNode = function (rowNode, valueColumns) {\n if (!this.keepingColumns) {\n return valueColumns;\n }\n\n var colsForThisNode = this.nodeIdsToColumns[rowNode.id];\n var result = valueColumns.filter(function (col) {\n return colsForThisNode[col.getId()];\n });\n return result;\n };\n\n ChangedPath.prototype.getNotValueColumnsForNode = function (rowNode, valueColumns) {\n if (!this.keepingColumns) {\n return null;\n }\n\n var colsForThisNode = this.nodeIdsToColumns[rowNode.id];\n var result = valueColumns.filter(function (col) {\n return !colsForThisNode[col.getId()];\n });\n return result;\n };\n\n return ChangedPath;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$17 = undefined && undefined.__extends || function () {\n var _extendStatics114 = function extendStatics(d, b) {\n _extendStatics114 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics114(d, b);\n };\n\n return function (d, b) {\n _extendStatics114(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar RowNodeBlock =\n/** @class */\nfunction (_super) {\n __extends$17(RowNodeBlock, _super);\n\n function RowNodeBlock(id) {\n var _this = _super.call(this) || this;\n\n _this.state = RowNodeBlock.STATE_WAITING_TO_LOAD;\n _this.version = 0;\n _this.id = id;\n return _this;\n }\n\n RowNodeBlock.prototype.getId = function () {\n return this.id;\n };\n\n RowNodeBlock.prototype.load = function () {\n this.state = RowNodeBlock.STATE_LOADING;\n this.loadFromDatasource();\n };\n\n RowNodeBlock.prototype.getVersion = function () {\n return this.version;\n };\n\n RowNodeBlock.prototype.setStateWaitingToLoad = function () {\n // in case any current loads in progress, this will have their results ignored\n this.version++;\n this.state = RowNodeBlock.STATE_WAITING_TO_LOAD;\n };\n\n RowNodeBlock.prototype.getState = function () {\n return this.state;\n };\n\n RowNodeBlock.prototype.pageLoadFailed = function (version) {\n var requestMostRecentAndLive = this.isRequestMostRecentAndLive(version);\n\n if (requestMostRecentAndLive) {\n this.state = RowNodeBlock.STATE_FAILED;\n this.processServerFail();\n }\n\n this.dispatchLoadCompleted(false);\n };\n\n RowNodeBlock.prototype.success = function (version, params) {\n this.successCommon(version, params);\n };\n\n RowNodeBlock.prototype.pageLoaded = function (version, rows, lastRow) {\n this.successCommon(version, {\n rowData: rows,\n rowCount: lastRow\n });\n };\n\n RowNodeBlock.prototype.isRequestMostRecentAndLive = function (version) {\n // thisIsMostRecentRequest - if block was refreshed, then another request\n // could of been sent after this one.\n var thisIsMostRecentRequest = version === this.version; // weAreNotDestroyed - if InfiniteStore is purged, then blocks are destroyed\n // and new blocks created. so data loads of old blocks are discarded.\n\n var weAreNotDestroyed = this.isAlive();\n return thisIsMostRecentRequest && weAreNotDestroyed;\n };\n\n RowNodeBlock.prototype.successCommon = function (version, params) {\n // need to dispatch load complete before processing the data, as PaginationComp checks\n // RowNodeBlockLoader to see if it is still loading, so the RowNodeBlockLoader needs to\n // be updated first (via LoadComplete event) before PaginationComp updates (via processServerResult method)\n this.dispatchLoadCompleted();\n var requestMostRecentAndLive = this.isRequestMostRecentAndLive(version);\n\n if (requestMostRecentAndLive) {\n this.state = RowNodeBlock.STATE_LOADED;\n this.processServerResult(params);\n }\n };\n\n RowNodeBlock.prototype.dispatchLoadCompleted = function (success) {\n if (success === void 0) {\n success = true;\n } // we fire event regardless of processing data or now, as we want\n // the concurrentLoadRequests count to be reduced in BlockLoader\n\n\n var event = {\n type: RowNodeBlock.EVENT_LOAD_COMPLETE,\n success: success,\n block: this\n };\n this.dispatchEvent(event);\n };\n\n RowNodeBlock.EVENT_LOAD_COMPLETE = 'loadComplete';\n RowNodeBlock.STATE_WAITING_TO_LOAD = 'needsLoading';\n RowNodeBlock.STATE_LOADING = 'loading';\n RowNodeBlock.STATE_LOADED = 'loaded';\n RowNodeBlock.STATE_FAILED = 'failed';\n return RowNodeBlock;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$16 = undefined && undefined.__extends || function () {\n var _extendStatics115 = function extendStatics(d, b) {\n _extendStatics115 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics115(d, b);\n };\n\n return function (d, b) {\n _extendStatics115(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __param$6 = undefined && undefined.__param || function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n};\n\nvar RowNodeBlockLoader =\n/** @class */\nfunction (_super) {\n __extends$16(RowNodeBlockLoader, _super);\n\n function RowNodeBlockLoader() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.activeBlockLoadsCount = 0;\n _this.blocks = [];\n _this.active = true;\n return _this;\n }\n\n RowNodeBlockLoader_1 = RowNodeBlockLoader;\n\n RowNodeBlockLoader.prototype.postConstruct = function () {\n this.maxConcurrentRequests = this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();\n var blockLoadDebounceMillis = this.gridOptionsWrapper.getBlockLoadDebounceMillis();\n\n if (blockLoadDebounceMillis && blockLoadDebounceMillis > 0) {\n this.checkBlockToLoadDebounce = _.debounce(this.performCheckBlocksToLoad.bind(this), blockLoadDebounceMillis);\n }\n };\n\n RowNodeBlockLoader.prototype.setBeans = function (loggerFactory) {\n this.logger = loggerFactory.create('RowNodeBlockLoader');\n };\n\n RowNodeBlockLoader.prototype.addBlock = function (block) {\n this.blocks.push(block); // note that we do not remove this listener when removing the block. this is because the\n // cache can get destroyed (and containing blocks) when a block is loading. however the loading block\n // is still counted as an active loading block and we must decrement activeBlockLoadsCount when it finishes.\n\n block.addEventListener(RowNodeBlock.EVENT_LOAD_COMPLETE, this.loadComplete.bind(this));\n this.checkBlockToLoad();\n };\n\n RowNodeBlockLoader.prototype.removeBlock = function (block) {\n _.removeFromArray(this.blocks, block);\n };\n\n RowNodeBlockLoader.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n\n this.active = false;\n };\n\n RowNodeBlockLoader.prototype.loadComplete = function () {\n this.activeBlockLoadsCount--;\n this.checkBlockToLoad();\n\n if (this.activeBlockLoadsCount == 0) {\n this.dispatchEvent({\n type: RowNodeBlockLoader_1.BLOCK_LOADER_FINISHED_EVENT\n });\n }\n };\n\n RowNodeBlockLoader.prototype.checkBlockToLoad = function () {\n if (this.checkBlockToLoadDebounce) {\n this.checkBlockToLoadDebounce();\n } else {\n this.performCheckBlocksToLoad();\n }\n };\n\n RowNodeBlockLoader.prototype.performCheckBlocksToLoad = function () {\n if (!this.active) {\n return;\n }\n\n this.printCacheStatus();\n\n if (this.maxConcurrentRequests != null && this.activeBlockLoadsCount >= this.maxConcurrentRequests) {\n this.logger.log(\"checkBlockToLoad: max loads exceeded\");\n return;\n }\n\n var loadAvailability = this.maxConcurrentRequests !== undefined ? this.maxConcurrentRequests - this.activeBlockLoadsCount : undefined;\n var blocksToLoad = this.blocks.filter(function (block) {\n return block.getState() === RowNodeBlock.STATE_WAITING_TO_LOAD;\n }).slice(0, loadAvailability);\n this.activeBlockLoadsCount += blocksToLoad.length;\n blocksToLoad.forEach(function (block) {\n return block.load();\n });\n this.printCacheStatus();\n };\n\n RowNodeBlockLoader.prototype.getBlockState = function () {\n var result = {};\n this.blocks.forEach(function (block) {\n var _a = block.getBlockStateJson(),\n id = _a.id,\n state = _a.state;\n\n result[id] = state;\n });\n return result;\n };\n\n RowNodeBlockLoader.prototype.printCacheStatus = function () {\n if (this.logger.isLogging()) {\n this.logger.log(\"printCacheStatus: activePageLoadsCount = \" + this.activeBlockLoadsCount + \",\" + (\" blocks = \" + JSON.stringify(this.getBlockState())));\n }\n };\n\n RowNodeBlockLoader.prototype.isLoading = function () {\n return this.activeBlockLoadsCount > 0;\n };\n\n var RowNodeBlockLoader_1;\n RowNodeBlockLoader.BLOCK_LOADER_FINISHED_EVENT = 'blockLoaderFinished';\n\n __decorate$10([PostConstruct], RowNodeBlockLoader.prototype, \"postConstruct\", null);\n\n __decorate$10([__param$6(0, Qualifier('loggerFactory'))], RowNodeBlockLoader.prototype, \"setBeans\", null);\n\n RowNodeBlockLoader = RowNodeBlockLoader_1 = __decorate$10([Bean('rowNodeBlockLoader')], RowNodeBlockLoader);\n return RowNodeBlockLoader;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$15 = undefined && undefined.__extends || function () {\n var _extendStatics116 = function extendStatics(d, b) {\n _extendStatics116 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics116(d, b);\n };\n\n return function (d, b) {\n _extendStatics116(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar PaginationProxy =\n/** @class */\nfunction (_super) {\n __extends$15(PaginationProxy, _super);\n\n function PaginationProxy() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.currentPage = 0;\n _this.topDisplayedRowIndex = 0;\n _this.bottomDisplayedRowIndex = 0;\n _this.pixelOffset = 0;\n _this.masterRowCount = 0;\n return _this;\n }\n\n PaginationProxy.prototype.postConstruct = function () {\n this.active = this.gridOptionsWrapper.isPagination();\n this.paginateChildRows = this.gridOptionsWrapper.isPaginateChildRows();\n this.addManagedListener(this.eventService, Events.EVENT_MODEL_UPDATED, this.onModelUpdated.bind(this));\n this.addManagedListener(this.gridOptionsWrapper, 'paginationPageSize', this.onPaginationPageSizeChanged.bind(this));\n this.onModelUpdated();\n };\n\n PaginationProxy.prototype.ensureRowHeightsValid = function (startPixel, endPixel, startLimitIndex, endLimitIndex) {\n var res = this.rowModel.ensureRowHeightsValid(startPixel, endPixel, this.getPageFirstRow(), this.getPageLastRow());\n\n if (res) {\n this.calculatePages();\n }\n\n return res;\n };\n\n PaginationProxy.prototype.onModelUpdated = function (modelUpdatedEvent) {\n this.calculatePages();\n var paginationChangedEvent = {\n type: Events.EVENT_PAGINATION_CHANGED,\n animate: modelUpdatedEvent ? modelUpdatedEvent.animate : false,\n newData: modelUpdatedEvent ? modelUpdatedEvent.newData : false,\n newPage: modelUpdatedEvent ? modelUpdatedEvent.newPage : false,\n keepRenderedRows: modelUpdatedEvent ? modelUpdatedEvent.keepRenderedRows : false\n };\n this.eventService.dispatchEvent(paginationChangedEvent);\n };\n\n PaginationProxy.prototype.onPaginationPageSizeChanged = function () {\n this.calculatePages();\n var paginationChangedEvent = {\n type: Events.EVENT_PAGINATION_CHANGED,\n animate: false,\n newData: false,\n newPage: false,\n // important to keep rendered rows, otherwise every time grid is resized,\n // we would destroy all the rows.\n keepRenderedRows: true\n };\n this.eventService.dispatchEvent(paginationChangedEvent);\n };\n\n PaginationProxy.prototype.goToPage = function (page) {\n if (!this.active || this.currentPage === page) {\n return;\n }\n\n this.currentPage = page;\n var event = {\n type: Events.EVENT_MODEL_UPDATED,\n animate: false,\n keepRenderedRows: false,\n newData: false,\n newPage: true\n };\n this.onModelUpdated(event);\n };\n\n PaginationProxy.prototype.getPixelOffset = function () {\n return this.pixelOffset;\n };\n\n PaginationProxy.prototype.getRow = function (index) {\n return this.rowModel.getRow(index);\n };\n\n PaginationProxy.prototype.getRowNode = function (id) {\n return this.rowModel.getRowNode(id);\n };\n\n PaginationProxy.prototype.getRowIndexAtPixel = function (pixel) {\n return this.rowModel.getRowIndexAtPixel(pixel);\n };\n\n PaginationProxy.prototype.getCurrentPageHeight = function () {\n if (missing(this.topRowBounds) || missing(this.bottomRowBounds)) {\n return 0;\n }\n\n return Math.max(this.bottomRowBounds.rowTop + this.bottomRowBounds.rowHeight - this.topRowBounds.rowTop, 0);\n };\n\n PaginationProxy.prototype.getCurrentPagePixelRange = function () {\n var pageFirstPixel = this.topRowBounds ? this.topRowBounds.rowTop : 0;\n var pageLastPixel = this.bottomRowBounds ? this.bottomRowBounds.rowTop + this.bottomRowBounds.rowHeight : 0;\n return {\n pageFirstPixel: pageFirstPixel,\n pageLastPixel: pageLastPixel\n };\n };\n\n PaginationProxy.prototype.isRowPresent = function (rowNode) {\n if (!this.rowModel.isRowPresent(rowNode)) {\n return false;\n }\n\n var nodeIsInPage = rowNode.rowIndex >= this.topDisplayedRowIndex && rowNode.rowIndex <= this.bottomDisplayedRowIndex;\n return nodeIsInPage;\n };\n\n PaginationProxy.prototype.isEmpty = function () {\n return this.rowModel.isEmpty();\n };\n\n PaginationProxy.prototype.isRowsToRender = function () {\n return this.rowModel.isRowsToRender();\n };\n\n PaginationProxy.prototype.getNodesInRangeForSelection = function (firstInRange, lastInRange) {\n return this.rowModel.getNodesInRangeForSelection(firstInRange, lastInRange);\n };\n\n PaginationProxy.prototype.forEachNode = function (callback) {\n return this.rowModel.forEachNode(callback);\n };\n\n PaginationProxy.prototype.getType = function () {\n return this.rowModel.getType();\n };\n\n PaginationProxy.prototype.getRowBounds = function (index) {\n var res = this.rowModel.getRowBounds(index);\n res.rowIndex = index;\n return res;\n };\n\n PaginationProxy.prototype.getPageFirstRow = function () {\n return this.topRowBounds ? this.topRowBounds.rowIndex : -1;\n };\n\n PaginationProxy.prototype.getPageLastRow = function () {\n return this.bottomRowBounds ? this.bottomRowBounds.rowIndex : -1;\n };\n\n PaginationProxy.prototype.getRowCount = function () {\n return this.rowModel.getRowCount();\n };\n\n PaginationProxy.prototype.getPageForIndex = function (index) {\n return Math.floor(index / this.pageSize);\n };\n\n PaginationProxy.prototype.goToPageWithIndex = function (index) {\n if (!this.active) {\n return;\n }\n\n var pageNumber = this.getPageForIndex(index);\n this.goToPage(pageNumber);\n };\n\n PaginationProxy.prototype.isRowInPage = function (row) {\n if (!this.active) {\n return true;\n }\n\n var rowPage = this.getPageForIndex(row.rowIndex);\n return rowPage === this.currentPage;\n };\n\n PaginationProxy.prototype.isLastPageFound = function () {\n return this.rowModel.isLastRowIndexKnown();\n };\n\n PaginationProxy.prototype.getCurrentPage = function () {\n return this.currentPage;\n };\n\n PaginationProxy.prototype.goToNextPage = function () {\n this.goToPage(this.currentPage + 1);\n };\n\n PaginationProxy.prototype.goToPreviousPage = function () {\n this.goToPage(this.currentPage - 1);\n };\n\n PaginationProxy.prototype.goToFirstPage = function () {\n this.goToPage(0);\n };\n\n PaginationProxy.prototype.goToLastPage = function () {\n var rowCount = this.rowModel.getRowCount();\n var lastPage = Math.floor(rowCount / this.pageSize);\n this.goToPage(lastPage);\n };\n\n PaginationProxy.prototype.getPageSize = function () {\n return this.pageSize;\n };\n\n PaginationProxy.prototype.getTotalPages = function () {\n return this.totalPages;\n };\n\n PaginationProxy.prototype.setPageSize = function () {\n // show put this into super class\n this.pageSize = this.gridOptionsWrapper.getPaginationPageSize();\n\n if (this.pageSize == null || this.pageSize < 1) {\n this.pageSize = 100;\n }\n };\n\n PaginationProxy.prototype.calculatePages = function () {\n if (this.active) {\n this.setPageSize();\n\n if (this.paginateChildRows) {\n this.calculatePagesAllRows();\n } else {\n this.calculatePagesMasterRowsOnly();\n }\n } else {\n this.calculatedPagesNotActive();\n }\n\n this.topRowBounds = this.rowModel.getRowBounds(this.topDisplayedRowIndex);\n\n if (this.topRowBounds) {\n this.topRowBounds.rowIndex = this.topDisplayedRowIndex;\n }\n\n this.bottomRowBounds = this.rowModel.getRowBounds(this.bottomDisplayedRowIndex);\n\n if (this.bottomRowBounds) {\n this.bottomRowBounds.rowIndex = this.bottomDisplayedRowIndex;\n }\n\n this.setPixelOffset(exists(this.topRowBounds) ? this.topRowBounds.rowTop : 0);\n };\n\n PaginationProxy.prototype.setPixelOffset = function (value) {\n if (this.pixelOffset === value) {\n return;\n }\n\n this.pixelOffset = value;\n this.eventService.dispatchEvent({\n type: Events.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED\n });\n };\n\n PaginationProxy.prototype.setZeroRows = function () {\n this.masterRowCount = 0;\n this.topDisplayedRowIndex = 0;\n this.bottomDisplayedRowIndex = -1;\n this.currentPage = 0;\n this.totalPages = 0;\n };\n\n PaginationProxy.prototype.calculatePagesMasterRowsOnly = function () {\n // const csrm = this.rowModel;\n // const rootNode = csrm.getRootNode();\n // const masterRows = rootNode.childrenAfterSort;\n this.masterRowCount = this.rowModel.getTopLevelRowCount(); // we say <=0 (rather than =0) as viewport returns -1 when no rows\n\n if (this.masterRowCount <= 0) {\n this.setZeroRows();\n return;\n }\n\n var masterLastRowIndex = this.masterRowCount - 1;\n this.totalPages = Math.floor(masterLastRowIndex / this.pageSize) + 1;\n\n if (this.currentPage >= this.totalPages) {\n this.currentPage = this.totalPages - 1;\n }\n\n if (!isNumeric(this.currentPage) || this.currentPage < 0) {\n this.currentPage = 0;\n }\n\n var masterPageStartIndex = this.pageSize * this.currentPage;\n var masterPageEndIndex = this.pageSize * (this.currentPage + 1) - 1;\n\n if (masterPageEndIndex > masterLastRowIndex) {\n masterPageEndIndex = masterLastRowIndex;\n }\n\n this.topDisplayedRowIndex = this.rowModel.getTopLevelRowDisplayedIndex(masterPageStartIndex); // masterRows[masterPageStartIndex].rowIndex;\n\n if (masterPageEndIndex === masterLastRowIndex) {\n // if showing the last master row, then we want to show the very last row of the model\n this.bottomDisplayedRowIndex = this.rowModel.getRowCount() - 1;\n } else {\n var firstIndexNotToShow = this.rowModel.getTopLevelRowDisplayedIndex(masterPageEndIndex + 1); //masterRows[masterPageEndIndex + 1].rowIndex;\n // this gets the index of the last child - eg current row is open, we want to display all children,\n // the index of the last child is one less than the index of the next parent row.\n\n this.bottomDisplayedRowIndex = firstIndexNotToShow - 1;\n }\n };\n\n PaginationProxy.prototype.getMasterRowCount = function () {\n return this.masterRowCount;\n };\n\n PaginationProxy.prototype.calculatePagesAllRows = function () {\n this.masterRowCount = this.rowModel.getRowCount();\n\n if (this.masterRowCount === 0) {\n this.setZeroRows();\n return;\n }\n\n var maxRowIndex = this.masterRowCount - 1;\n this.totalPages = Math.floor(maxRowIndex / this.pageSize) + 1;\n\n if (this.currentPage >= this.totalPages) {\n this.currentPage = this.totalPages - 1;\n }\n\n if (!isNumeric(this.currentPage) || this.currentPage < 0) {\n this.currentPage = 0;\n }\n\n this.topDisplayedRowIndex = this.pageSize * this.currentPage;\n this.bottomDisplayedRowIndex = this.pageSize * (this.currentPage + 1) - 1;\n\n if (this.bottomDisplayedRowIndex > maxRowIndex) {\n this.bottomDisplayedRowIndex = maxRowIndex;\n }\n };\n\n PaginationProxy.prototype.calculatedPagesNotActive = function () {\n this.pageSize = this.rowModel.getRowCount();\n this.totalPages = 1;\n this.currentPage = 0;\n this.topDisplayedRowIndex = 0;\n this.bottomDisplayedRowIndex = this.rowModel.getRowCount() - 1;\n };\n\n __decorate$$([Autowired('rowModel')], PaginationProxy.prototype, \"rowModel\", void 0);\n\n __decorate$$([PostConstruct], PaginationProxy.prototype, \"postConstruct\", null);\n\n PaginationProxy = __decorate$$([Bean('paginationProxy')], PaginationProxy);\n return PaginationProxy;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$14 = undefined && undefined.__extends || function () {\n var _extendStatics117 = function extendStatics(d, b) {\n _extendStatics117 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics117(d, b);\n };\n\n return function (d, b) {\n _extendStatics117(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar StylingService =\n/** @class */\nfunction (_super) {\n __extends$14(StylingService, _super);\n\n function StylingService() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n StylingService.prototype.processAllCellClasses = function (colDef, params, onApplicableClass, onNotApplicableClass) {\n this.processClassRules(colDef.cellClassRules, params, onApplicableClass, onNotApplicableClass);\n this.processStaticCellClasses(colDef, params, onApplicableClass);\n };\n\n StylingService.prototype.processClassRules = function (classRules, params, onApplicableClass, onNotApplicableClass) {\n if (classRules == null) {\n return;\n }\n\n var classNames = Object.keys(classRules);\n var classesToApply = {};\n var classesToRemove = {};\n\n var _loop_1 = function _loop_1(i) {\n var className = classNames[i];\n var rule = classRules[className];\n var resultOfRule;\n\n if (typeof rule === 'string') {\n resultOfRule = this_1.expressionService.evaluate(rule, params);\n } else if (typeof rule === 'function') {\n resultOfRule = rule(params);\n } // in case className = 'my-class1 my-class2', we need to split into individual class names\n\n\n className.split(' ').forEach(function (singleClass) {\n if (singleClass == null || singleClass.trim() == '') {\n return;\n }\n\n resultOfRule ? classesToApply[singleClass] = true : classesToRemove[singleClass] = true;\n });\n };\n\n var this_1 = this;\n\n for (var i = 0; i < classNames.length; i++) {\n _loop_1(i);\n } // we remove all classes first, then add all classes second,\n // in case a class appears in more than one rule, this means it will be added\n // if appears in at least one truthy rule\n\n\n if (onNotApplicableClass) {\n Object.keys(classesToRemove).forEach(onNotApplicableClass);\n }\n\n Object.keys(classesToApply).forEach(onApplicableClass);\n };\n\n StylingService.prototype.getStaticCellClasses = function (colDef, params) {\n var cellClass = colDef.cellClass;\n\n if (!cellClass) {\n return [];\n }\n\n var classOrClasses;\n\n if (typeof cellClass === 'function') {\n var cellClassFunc = cellClass;\n classOrClasses = cellClassFunc(params);\n } else {\n classOrClasses = cellClass;\n }\n\n if (typeof classOrClasses === 'string') {\n classOrClasses = [classOrClasses];\n }\n\n return classOrClasses || [];\n };\n\n StylingService.prototype.processStaticCellClasses = function (colDef, params, onApplicableClass) {\n var classOrClasses = this.getStaticCellClasses(colDef, params);\n classOrClasses.forEach(function (cssClassItem) {\n onApplicableClass(cssClassItem);\n });\n };\n\n __decorate$_([Autowired('expressionService')], StylingService.prototype, \"expressionService\", void 0);\n\n StylingService = __decorate$_([Bean('stylingService')], StylingService);\n return StylingService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$13 = undefined && undefined.__extends || function () {\n var _extendStatics118 = function extendStatics(d, b) {\n _extendStatics118 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics118(d, b);\n };\n\n return function (d, b) {\n _extendStatics118(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar AgRadioButton =\n/** @class */\nfunction (_super) {\n __extends$13(AgRadioButton, _super);\n\n function AgRadioButton(config) {\n return _super.call(this, config, 'ag-radio-button', 'radio') || this;\n }\n\n AgRadioButton.prototype.isSelected = function () {\n return this.eInput.checked;\n };\n\n AgRadioButton.prototype.toggle = function () {\n if (this.eInput.disabled) {\n return;\n } // do not allow an active radio button to be deselected\n\n\n if (!this.isSelected()) {\n this.setValue(true);\n }\n };\n\n AgRadioButton.prototype.addInputListeners = function () {\n _super.prototype.addInputListeners.call(this);\n\n this.addManagedListener(this.eventService, Events.EVENT_CHECKBOX_CHANGED, this.onChange.bind(this));\n };\n /**\n * This ensures that if another radio button in the same named group is selected, we deselect this radio button.\n * By default the browser does this for you, but we are managing classes ourselves in order to ensure input\n * elements are styled correctly in IE11, and the DOM 'changed' event is only fired when a button is selected,\n * not deselected, so we need to use our own event.\n */\n\n\n AgRadioButton.prototype.onChange = function (event) {\n if (event.selected && event.name && this.eInput.name && this.eInput.name === event.name && event.id && this.eInput.id !== event.id) {\n this.setValue(false, true);\n }\n };\n\n return AgRadioButton;\n}(AgCheckbox);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$12 = undefined && undefined.__extends || function () {\n var _extendStatics119 = function extendStatics(d, b) {\n _extendStatics119 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics119(d, b);\n };\n\n return function (d, b) {\n _extendStatics119(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar AgToggleButton =\n/** @class */\nfunction (_super) {\n __extends$12(AgToggleButton, _super);\n\n function AgToggleButton(config) {\n return _super.call(this, config, 'ag-toggle-button') || this;\n }\n\n AgToggleButton.prototype.setValue = function (value, silent) {\n _super.prototype.setValue.call(this, value, silent);\n\n this.addOrRemoveCssClass('ag-selected', this.getValue());\n return this;\n };\n\n return AgToggleButton;\n}(AgCheckbox);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$11 = undefined && undefined.__extends || function () {\n var _extendStatics120 = function extendStatics(d, b) {\n _extendStatics120 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics120(d, b);\n };\n\n return function (d, b) {\n _extendStatics120(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar AgInputTextField =\n/** @class */\nfunction (_super) {\n __extends$11(AgInputTextField, _super);\n\n function AgInputTextField(config, className, inputType) {\n if (className === void 0) {\n className = 'ag-text-field';\n }\n\n if (inputType === void 0) {\n inputType = 'text';\n }\n\n return _super.call(this, config, className, inputType) || this;\n }\n\n AgInputTextField.prototype.postConstruct = function () {\n _super.prototype.postConstruct.call(this);\n\n if (this.config.allowedCharPattern) {\n this.preventDisallowedCharacters();\n }\n };\n\n AgInputTextField.prototype.setValue = function (value, silent) {\n var ret = _super.prototype.setValue.call(this, value, silent);\n\n if (this.eInput.value !== value) {\n this.eInput.value = exists(value) ? value : '';\n }\n\n return ret;\n };\n\n AgInputTextField.prototype.preventDisallowedCharacters = function () {\n var pattern = new RegExp(\"[\" + this.config.allowedCharPattern + \"]\");\n\n var preventDisallowedCharacters = function preventDisallowedCharacters(event) {\n if (event.key && !pattern.test(event.key)) {\n event.preventDefault();\n }\n };\n\n this.addManagedListener(this.eInput, 'keypress', preventDisallowedCharacters);\n this.addManagedListener(this.eInput, 'paste', function (e) {\n var _a;\n\n var text = (_a = e.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text');\n\n if (text && text.split('').some(function (c) {\n return !pattern.test(c);\n })) {\n e.preventDefault();\n }\n });\n };\n\n return AgInputTextField;\n}(AgAbstractInputField);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$10 = undefined && undefined.__extends || function () {\n var _extendStatics121 = function extendStatics(d, b) {\n _extendStatics121 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics121(d, b);\n };\n\n return function (d, b) {\n _extendStatics121(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar AgInputTextArea =\n/** @class */\nfunction (_super) {\n __extends$10(AgInputTextArea, _super);\n\n function AgInputTextArea(config) {\n return _super.call(this, config, 'ag-text-area', null, 'textarea') || this;\n }\n\n AgInputTextArea.prototype.setValue = function (value, silent) {\n var ret = _super.prototype.setValue.call(this, value, silent);\n\n this.eInput.value = value;\n return ret;\n };\n\n AgInputTextArea.prototype.setCols = function (cols) {\n this.eInput.cols = cols;\n return this;\n };\n\n AgInputTextArea.prototype.setRows = function (rows) {\n this.eInput.rows = rows;\n return this;\n };\n\n return AgInputTextArea;\n}(AgAbstractInputField);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$$ = undefined && undefined.__extends || function () {\n var _extendStatics122 = function extendStatics(d, b) {\n _extendStatics122 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics122(d, b);\n };\n\n return function (d, b) {\n _extendStatics122(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar AgInputNumberField =\n/** @class */\nfunction (_super) {\n __extends$$(AgInputNumberField, _super);\n\n function AgInputNumberField(config) {\n return _super.call(this, config, 'ag-number-field', 'number') || this;\n }\n\n AgInputNumberField.prototype.postConstruct = function () {\n var _this = this;\n\n _super.prototype.postConstruct.call(this);\n\n this.addManagedListener(this.eInput, 'blur', function () {\n var floatedValue = parseFloat(_this.eInput.value);\n var value = isNaN(floatedValue) ? '' : _this.normalizeValue(floatedValue.toString());\n\n if (_this.value !== value) {\n _this.setValue(value);\n }\n });\n this.addManagedListener(this.eInput, 'wheel', this.onWheel.bind(this));\n this.eInput.step = 'any';\n };\n\n AgInputNumberField.prototype.onWheel = function (e) {\n // Prevent default scroll events from incrementing / decrementing the input, since its inconsistent between browsers\n if (document.activeElement === this.eInput) {\n e.preventDefault();\n }\n };\n\n AgInputNumberField.prototype.normalizeValue = function (value) {\n if (value === '') {\n return '';\n }\n\n if (this.precision) {\n value = this.adjustPrecision(value);\n }\n\n var val = parseFloat(value);\n\n if (this.min != null && val < this.min) {\n value = this.min.toString();\n } else if (this.max != null && val > this.max) {\n value = this.max.toString();\n }\n\n return value;\n };\n\n AgInputNumberField.prototype.adjustPrecision = function (value) {\n if (this.precision) {\n var floatString = parseFloat(value).toFixed(this.precision);\n value = parseFloat(floatString).toString();\n }\n\n return value;\n };\n\n AgInputNumberField.prototype.setMin = function (min) {\n if (this.min === min) {\n return this;\n }\n\n this.min = min;\n addOrRemoveAttribute(this.eInput, 'min', min);\n return this;\n };\n\n AgInputNumberField.prototype.setMax = function (max) {\n if (this.max === max) {\n return this;\n }\n\n this.max = max;\n addOrRemoveAttribute(this.eInput, 'max', max);\n return this;\n };\n\n AgInputNumberField.prototype.setPrecision = function (precision) {\n this.precision = precision;\n return this;\n };\n\n AgInputNumberField.prototype.setStep = function (step) {\n if (this.step === step) {\n return this;\n }\n\n this.step = step;\n addOrRemoveAttribute(this.eInput, 'step', step);\n return this;\n };\n\n AgInputNumberField.prototype.setValue = function (value, silent) {\n value = this.adjustPrecision(value);\n var normalizedValue = this.normalizeValue(value);\n\n if (value != normalizedValue) {\n return this;\n }\n\n return _super.prototype.setValue.call(this, value, silent);\n };\n\n return AgInputNumberField;\n}(AgInputTextField);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$_ = undefined && undefined.__extends || function () {\n var _extendStatics123 = function extendStatics(d, b) {\n _extendStatics123 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics123(d, b);\n };\n\n return function (d, b) {\n _extendStatics123(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar AgInputRange =\n/** @class */\nfunction (_super) {\n __extends$_(AgInputRange, _super);\n\n function AgInputRange(config) {\n return _super.call(this, config, 'ag-range-field', 'range') || this;\n }\n\n AgInputRange.prototype.postConstruct = function () {\n _super.prototype.postConstruct.call(this);\n\n var _a = this.config,\n min = _a.min,\n max = _a.max,\n step = _a.step;\n\n if (min != null) {\n this.setMinValue(min);\n }\n\n if (max != null) {\n this.setMaxValue(max);\n }\n\n this.setStep(step || 1);\n };\n\n AgInputRange.prototype.addInputListeners = function () {\n var _this = this;\n\n this.addManagedListener(this.eInput, 'input', function (e) {\n var value = e.target.value;\n\n _this.setValue(value);\n });\n };\n\n AgInputRange.prototype.setMinValue = function (value) {\n this.min = value;\n this.eInput.setAttribute('min', value.toString());\n return this;\n };\n\n AgInputRange.prototype.setMaxValue = function (value) {\n this.max = value;\n this.eInput.setAttribute('max', value.toString());\n return this;\n };\n\n AgInputRange.prototype.setStep = function (value) {\n this.eInput.setAttribute('step', value.toString());\n return this;\n };\n\n AgInputRange.prototype.setValue = function (value, silent) {\n if (this.min != null) {\n value = Math.max(parseFloat(value), this.min).toString();\n }\n\n if (this.max != null) {\n value = Math.min(parseFloat(value), this.max).toString();\n }\n\n var ret = _super.prototype.setValue.call(this, value, silent);\n\n this.eInput.value = value;\n return ret;\n };\n\n return AgInputRange;\n}(AgAbstractInputField);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$Z = undefined && undefined.__extends || function () {\n var _extendStatics124 = function extendStatics(d, b) {\n _extendStatics124 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics124(d, b);\n };\n\n return function (d, b) {\n _extendStatics124(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AgSlider =\n/** @class */\nfunction (_super) {\n __extends$Z(AgSlider, _super);\n\n function AgSlider(config) {\n var _this = _super.call(this, config, AgSlider.TEMPLATE) || this;\n\n _this.labelAlignment = 'top';\n return _this;\n }\n\n AgSlider.prototype.init = function () {\n this.eSlider.addCssClass('ag-slider-field');\n };\n\n AgSlider.prototype.onValueChange = function (callbackFn) {\n var _this = this;\n\n var eventChanged = AgAbstractField.EVENT_CHANGED;\n this.addManagedListener(this.eText, eventChanged, function () {\n var textValue = parseFloat(_this.eText.getValue());\n\n _this.eSlider.setValue(textValue.toString(), true);\n\n callbackFn(textValue || 0);\n });\n this.addManagedListener(this.eSlider, eventChanged, function () {\n var sliderValue = _this.eSlider.getValue();\n\n _this.eText.setValue(sliderValue, true);\n\n callbackFn(parseFloat(sliderValue));\n });\n return this;\n };\n\n AgSlider.prototype.setSliderWidth = function (width) {\n this.eSlider.setWidth(width);\n return this;\n };\n\n AgSlider.prototype.setTextFieldWidth = function (width) {\n this.eText.setWidth(width);\n return this;\n };\n\n AgSlider.prototype.setMinValue = function (minValue) {\n this.eSlider.setMinValue(minValue);\n this.eText.setMin(minValue);\n return this;\n };\n\n AgSlider.prototype.setMaxValue = function (maxValue) {\n this.eSlider.setMaxValue(maxValue);\n this.eText.setMax(maxValue);\n return this;\n };\n\n AgSlider.prototype.getValue = function () {\n return this.eText.getValue();\n };\n\n AgSlider.prototype.setValue = function (value) {\n if (this.getValue() === value) {\n return this;\n }\n\n this.eText.setValue(value, true);\n this.eSlider.setValue(value, true);\n this.dispatchEvent({\n type: AgAbstractField.EVENT_CHANGED\n });\n return this;\n };\n\n AgSlider.prototype.setStep = function (step) {\n this.eSlider.setStep(step);\n this.eText.setStep(step);\n return this;\n };\n\n AgSlider.TEMPLATE = \"
\\n \\n
\\n \\n \\n
\\n
\";\n\n __decorate$Z([RefSelector('eLabel')], AgSlider.prototype, \"eLabel\", void 0);\n\n __decorate$Z([RefSelector('eSlider')], AgSlider.prototype, \"eSlider\", void 0);\n\n __decorate$Z([RefSelector('eText')], AgSlider.prototype, \"eText\", void 0);\n\n __decorate$Z([PostConstruct], AgSlider.prototype, \"init\", null);\n\n return AgSlider;\n}(AgAbstractLabel);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$Y = undefined && undefined.__extends || function () {\n var _extendStatics125 = function extendStatics(d, b) {\n _extendStatics125 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics125(d, b);\n };\n\n return function (d, b) {\n _extendStatics125(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AgAngleSelect =\n/** @class */\nfunction (_super) {\n __extends$Y(AgAngleSelect, _super);\n\n function AgAngleSelect(config) {\n var _this = _super.call(this, config, AgAngleSelect.TEMPLATE) || this;\n\n _this.radius = 0;\n _this.offsetX = 0;\n _this.offsetY = 0;\n return _this;\n }\n\n AgAngleSelect.prototype.postConstruct = function () {\n var _this = this;\n\n _super.prototype.postConstruct.call(this);\n\n this.dragListener = {\n eElement: this.eParentCircle,\n dragStartPixels: 0,\n onDragStart: function onDragStart(e) {\n _this.parentCircleRect = _this.eParentCircle.getBoundingClientRect();\n },\n onDragging: function onDragging(e) {\n return _this.calculateAngleDrag(e);\n },\n onDragStop: function onDragStop() {}\n };\n this.dragService.addDragSource(this.dragListener);\n this.eAngleValue.setLabel('').setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(\"\" + this.degrees).onValueChange(function (value) {\n if (value == null || value === '') {\n value = '0';\n }\n\n value = _this.eAngleValue.normalizeValue(value);\n var floatValue = parseFloat(value);\n\n if (floatValue > 180) {\n floatValue = floatValue - 360;\n }\n\n _this.setValue(floatValue);\n });\n this.updateNumberInput();\n\n if (exists(this.getValue())) {\n this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString());\n }\n\n this.addManagedListener(this, AgAbstractField.EVENT_CHANGED, function () {\n var eDocument = _this.gridOptionsWrapper.getDocument();\n\n if (_this.eAngleValue.getInputElement().contains(eDocument.activeElement)) {\n return;\n }\n\n _this.updateNumberInput();\n });\n };\n\n AgAngleSelect.prototype.updateNumberInput = function () {\n var normalizedValue = this.normalizeNegativeValue(this.getValue());\n this.eAngleValue.setValue(normalizedValue.toString());\n };\n\n AgAngleSelect.prototype.positionChildCircle = function (radians) {\n var rect = this.parentCircleRect || {\n width: 24,\n height: 24\n };\n var eChildCircle = this.eChildCircle;\n var centerX = rect.width / 2;\n var centerY = rect.height / 2;\n eChildCircle.style.left = centerX + Math.cos(radians) * 8 + \"px\";\n eChildCircle.style.top = centerY + Math.sin(radians) * 8 + \"px\";\n };\n\n AgAngleSelect.prototype.calculatePolar = function () {\n var x = this.offsetX;\n var y = this.offsetY;\n var radians = Math.atan2(y, x);\n this.degrees = this.toDegrees(radians);\n this.radius = Math.sqrt(x * x + y * y);\n this.positionChildCircle(radians);\n };\n\n AgAngleSelect.prototype.calculateCartesian = function () {\n var radians = this.toRadians(this.getValue());\n var radius = this.getRadius();\n this.setOffsetX(Math.cos(radians) * radius).setOffsetY(Math.sin(radians) * radius);\n };\n\n AgAngleSelect.prototype.setOffsetX = function (offset) {\n if (this.offsetX !== offset) {\n this.offsetX = offset;\n this.calculatePolar();\n }\n\n return this;\n };\n\n AgAngleSelect.prototype.setOffsetY = function (offset) {\n if (this.offsetY !== offset) {\n this.offsetY = offset;\n this.calculatePolar();\n }\n\n return this;\n };\n\n AgAngleSelect.prototype.calculateAngleDrag = function (e) {\n var rect = this.parentCircleRect;\n var centerX = rect.width / 2;\n var centerY = rect.height / 2;\n var x = e.clientX - rect.left;\n var y = e.clientY - rect.top;\n var dx = x - centerX;\n var dy = y - centerY;\n var radians = Math.atan2(dy, dx);\n this.setValue(radians, true);\n };\n\n AgAngleSelect.prototype.toDegrees = function (radians) {\n return radians / Math.PI * 180;\n };\n\n AgAngleSelect.prototype.toRadians = function (degrees) {\n return degrees / 180 * Math.PI;\n };\n\n AgAngleSelect.prototype.normalizeNegativeValue = function (degrees) {\n return degrees < 0 ? 360 + degrees : degrees;\n };\n\n AgAngleSelect.prototype.normalizeAngle180 = function (radians) {\n radians %= Math.PI * 2;\n\n if (radians < -Math.PI) {\n radians += Math.PI * 2;\n } else if (radians >= Math.PI) {\n radians -= Math.PI * 2;\n }\n\n return radians;\n };\n\n AgAngleSelect.prototype.getRadius = function () {\n return this.radius;\n };\n\n AgAngleSelect.prototype.setRadius = function (r) {\n if (this.radius === r) {\n return this;\n }\n\n this.radius = r;\n this.calculateCartesian();\n return this;\n };\n\n AgAngleSelect.prototype.onValueChange = function (callbackFn) {\n var _this = this;\n\n this.addManagedListener(this, AgAbstractField.EVENT_CHANGED, function () {\n callbackFn(_this.degrees);\n });\n return this;\n };\n\n AgAngleSelect.prototype.getValue = function (radians) {\n return radians ? this.toRadians(this.degrees) : this.degrees;\n };\n\n AgAngleSelect.prototype.setValue = function (degrees, radians) {\n var radiansValue;\n\n if (!radians) {\n radiansValue = this.normalizeAngle180(this.toRadians(degrees));\n } else {\n radiansValue = degrees;\n }\n\n degrees = this.toDegrees(radiansValue);\n\n if (this.degrees !== degrees) {\n this.degrees = Math.floor(degrees);\n this.calculateCartesian();\n this.positionChildCircle(radiansValue);\n this.dispatchEvent({\n type: AgAbstractField.EVENT_CHANGED\n });\n }\n\n return this;\n };\n\n AgAngleSelect.prototype.setWidth = function (width) {\n setFixedWidth(this.getGui(), width);\n return this;\n };\n\n AgAngleSelect.prototype.setDisabled = function (disabled) {\n _super.prototype.setDisabled.call(this, disabled);\n\n this.eAngleValue.setDisabled(disabled);\n return this;\n };\n\n AgAngleSelect.prototype.destroy = function () {\n this.dragService.removeDragSource(this.dragListener);\n\n _super.prototype.destroy.call(this);\n };\n\n AgAngleSelect.TEMPLATE = \"
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n
\\n
\";\n\n __decorate$Y([RefSelector('eLabel')], AgAngleSelect.prototype, \"eLabel\", void 0);\n\n __decorate$Y([RefSelector('eParentCircle')], AgAngleSelect.prototype, \"eParentCircle\", void 0);\n\n __decorate$Y([RefSelector('eChildCircle')], AgAngleSelect.prototype, \"eChildCircle\", void 0);\n\n __decorate$Y([RefSelector('eAngleValue')], AgAngleSelect.prototype, \"eAngleValue\", void 0);\n\n __decorate$Y([Autowired('dragService')], AgAngleSelect.prototype, \"dragService\", void 0);\n\n return AgAngleSelect;\n}(AgAbstractLabel);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$X = undefined && undefined.__extends || function () {\n var _extendStatics126 = function extendStatics(d, b) {\n _extendStatics126 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics126(d, b);\n };\n\n return function (d, b) {\n _extendStatics126(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$8 = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar AgColorPanel =\n/** @class */\nfunction (_super) {\n __extends$X(AgColorPanel, _super);\n\n function AgColorPanel(config) {\n var _this = _super.call(this, AgColorPanel.TEMPLATE) || this;\n\n _this.H = 1; // in the [0, 1] range\n\n _this.S = 1; // in the [0, 1] range\n\n _this.B = 1; // in the [0, 1] range\n\n _this.A = 1; // in the [0, 1] range\n\n _this.isSpectrumDragging = false;\n _this.isSpectrumHueDragging = false;\n _this.isSpectrumAlphaDragging = false;\n _this.colorChanged = false;\n _this.picker = config.picker;\n return _this;\n }\n\n AgColorPanel.prototype.postConstruct = function () {\n var eGui = this.getGui();\n this.initRecentColors();\n this.addManagedListener(this.spectrumVal, 'mousedown', this.onSpectrumDraggerDown.bind(this));\n this.addManagedListener(eGui, 'mousemove', this.onSpectrumDraggerMove.bind(this));\n this.addManagedListener(this.spectrumHue, 'mousedown', this.onSpectrumHueDown.bind(this));\n this.addManagedListener(eGui, 'mousemove', this.onSpectrumHueMove.bind(this));\n this.addManagedListener(this.spectrumAlpha, 'mousedown', this.onSpectrumAlphaDown.bind(this));\n this.addManagedListener(eGui, 'mousemove', this.onSpectrumAlphaMove.bind(this)); // Listening to `mouseup` on the document on purpose. The user might release the mouse button\n // outside the UI control. When the mouse returns back to the control's area, the dragging\n // of the thumb is not expected and seen as a bug.\n\n this.addManagedListener(document, 'mouseup', this.onMouseUp.bind(this));\n this.addManagedListener(this.recentColors, 'click', this.onRecentColorClick.bind(this));\n };\n\n AgColorPanel.prototype.refreshSpectrumRect = function () {\n return this.spectrumValRect = this.spectrumVal.getBoundingClientRect();\n };\n\n AgColorPanel.prototype.refreshHueRect = function () {\n return this.spectrumHueRect = this.spectrumHue.getBoundingClientRect();\n };\n\n AgColorPanel.prototype.refreshAlphaRect = function () {\n return this.spectrumAlphaRect = this.spectrumAlpha.getBoundingClientRect();\n };\n\n AgColorPanel.prototype.onSpectrumDraggerDown = function (e) {\n this.refreshSpectrumRect();\n this.isSpectrumDragging = true;\n this.moveDragger(e);\n };\n\n AgColorPanel.prototype.onSpectrumDraggerMove = function (e) {\n if (this.isSpectrumDragging) {\n this.moveDragger(e);\n }\n };\n\n AgColorPanel.prototype.onSpectrumHueDown = function (e) {\n this.refreshHueRect();\n this.isSpectrumHueDragging = true;\n this.moveHueSlider(e);\n };\n\n AgColorPanel.prototype.onSpectrumHueMove = function (e) {\n if (this.isSpectrumHueDragging) {\n this.moveHueSlider(e);\n }\n };\n\n AgColorPanel.prototype.onSpectrumAlphaDown = function (e) {\n this.refreshAlphaRect();\n this.isSpectrumAlphaDragging = true;\n this.moveAlphaSlider(e);\n };\n\n AgColorPanel.prototype.onSpectrumAlphaMove = function (e) {\n if (this.isSpectrumAlphaDragging) {\n this.moveAlphaSlider(e);\n }\n };\n\n AgColorPanel.prototype.onMouseUp = function () {\n this.isSpectrumDragging = false;\n this.isSpectrumHueDragging = false;\n this.isSpectrumAlphaDragging = false;\n };\n\n AgColorPanel.prototype.moveDragger = function (e) {\n var valRect = this.spectrumValRect;\n\n if (valRect) {\n var x = e.clientX - valRect.left;\n var y = e.clientY - valRect.top;\n x = Math.max(x, 0);\n x = Math.min(x, valRect.width);\n y = Math.max(y, 0);\n y = Math.min(y, valRect.height);\n this.setSpectrumValue(x / valRect.width, 1 - y / valRect.height);\n }\n };\n\n AgColorPanel.prototype.moveHueSlider = function (e) {\n var hueRect = this.spectrumHueRect;\n\n if (hueRect) {\n var slider = this.spectrumHueSlider;\n var sliderRect = slider.getBoundingClientRect();\n var x = e.clientX - hueRect.left;\n x = Math.max(x, 0);\n x = Math.min(x, hueRect.width);\n this.H = 1 - x / hueRect.width;\n slider.style.left = x + sliderRect.width / 2 + 'px';\n this.update();\n }\n };\n\n AgColorPanel.prototype.moveAlphaSlider = function (e) {\n var alphaRect = this.spectrumAlphaRect;\n\n if (alphaRect) {\n var slider = this.spectrumAlphaSlider;\n var sliderRect = slider.getBoundingClientRect();\n var x = e.clientX - alphaRect.left;\n x = Math.max(x, 0);\n x = Math.min(x, alphaRect.width);\n this.A = x / alphaRect.width;\n slider.style.left = x + sliderRect.width / 2 + 'px';\n this.update();\n }\n };\n\n AgColorPanel.prototype.update = function () {\n var color = Color.fromHSB(this.H * 360, this.S, this.B, this.A);\n var spectrumColor = Color.fromHSB(this.H * 360, 1, 1);\n var rgbaColor = color.toRgbaString(); // the recent color list needs to know color has actually changed\n\n var colorPicker = this.picker;\n var existingColor = Color.fromString(colorPicker.getValue());\n\n if (existingColor.toRgbaString() !== rgbaColor) {\n this.colorChanged = true;\n }\n\n colorPicker.setValue(rgbaColor);\n this.spectrumColor.style.backgroundColor = spectrumColor.toRgbaString();\n this.spectrumDragger.style.backgroundColor = rgbaColor;\n };\n /**\n * @param saturation In the [0, 1] interval.\n * @param brightness In the [0, 1] interval.\n */\n\n\n AgColorPanel.prototype.setSpectrumValue = function (saturation, brightness) {\n var valRect = this.spectrumValRect || this.refreshSpectrumRect();\n\n if (valRect) {\n var dragger = this.spectrumDragger;\n var draggerRect = dragger.getBoundingClientRect();\n saturation = Math.max(0, saturation);\n saturation = Math.min(1, saturation);\n brightness = Math.max(0, brightness);\n brightness = Math.min(1, brightness);\n this.S = saturation;\n this.B = brightness;\n dragger.style.left = saturation * valRect.width - draggerRect.width / 2 + 'px';\n dragger.style.top = (1 - brightness) * valRect.height - draggerRect.height / 2 + 'px';\n this.update();\n }\n };\n\n AgColorPanel.prototype.initRecentColors = function () {\n var recentColors = AgColorPanel.recentColors;\n var innerHtml = recentColors.map(function (color, index) {\n return \"
\";\n });\n this.recentColors.innerHTML = innerHtml.join('');\n };\n\n AgColorPanel.prototype.setValue = function (val) {\n var color = Color.fromString(val);\n\n var _a = __read$8(color.toHSB(), 3),\n h = _a[0],\n s = _a[1],\n b = _a[2];\n\n this.H = (isNaN(h) ? 0 : h) / 360;\n this.A = color.a;\n var spectrumHueRect = this.spectrumHueRect || this.refreshHueRect();\n var spectrumAlphaRect = this.spectrumAlphaRect || this.refreshAlphaRect();\n this.spectrumHueSlider.style.left = (this.H - 1) * -spectrumHueRect.width + \"px\";\n this.spectrumAlphaSlider.style.left = this.A * spectrumAlphaRect.width + \"px\";\n this.setSpectrumValue(s, b);\n };\n\n AgColorPanel.prototype.onRecentColorClick = function (e) {\n var target = e.target;\n\n if (!exists(target.id)) {\n return;\n }\n\n var id = parseInt(target.id, 10);\n this.setValue(AgColorPanel.recentColors[id]);\n this.destroy();\n };\n\n AgColorPanel.prototype.addRecentColor = function () {\n var color = Color.fromHSB(this.H * 360, this.S, this.B, this.A);\n var rgbaColor = color.toRgbaString();\n var recentColors = AgColorPanel.recentColors;\n\n if (!this.colorChanged || recentColors[0] === rgbaColor) {\n return;\n } // remove duplicate color\n\n\n recentColors = recentColors.filter(function (currentColor) {\n return currentColor != rgbaColor;\n }); // add color to head\n\n recentColors = [rgbaColor].concat(recentColors); // ensure we don't exceed max number of recent colors\n\n if (recentColors.length > AgColorPanel.maxRecentColors) {\n recentColors = recentColors.slice(0, AgColorPanel.maxRecentColors);\n }\n\n AgColorPanel.recentColors = recentColors;\n };\n\n AgColorPanel.prototype.destroy = function () {\n this.addRecentColor();\n\n _super.prototype.destroy.call(this);\n };\n\n AgColorPanel.maxRecentColors = 8;\n AgColorPanel.recentColors = [];\n AgColorPanel.TEMPLATE = \"
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\";\n\n __decorate$X([RefSelector('spectrumColor')], AgColorPanel.prototype, \"spectrumColor\", void 0);\n\n __decorate$X([RefSelector('spectrumVal')], AgColorPanel.prototype, \"spectrumVal\", void 0);\n\n __decorate$X([RefSelector('spectrumDragger')], AgColorPanel.prototype, \"spectrumDragger\", void 0);\n\n __decorate$X([RefSelector('spectrumHue')], AgColorPanel.prototype, \"spectrumHue\", void 0);\n\n __decorate$X([RefSelector('spectrumHueSlider')], AgColorPanel.prototype, \"spectrumHueSlider\", void 0);\n\n __decorate$X([RefSelector('spectrumAlpha')], AgColorPanel.prototype, \"spectrumAlpha\", void 0);\n\n __decorate$X([RefSelector('spectrumAlphaSlider')], AgColorPanel.prototype, \"spectrumAlphaSlider\", void 0);\n\n __decorate$X([RefSelector('recentColors')], AgColorPanel.prototype, \"recentColors\", void 0);\n\n __decorate$X([PostConstruct], AgColorPanel.prototype, \"postConstruct\", null);\n\n return AgColorPanel;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$W = undefined && undefined.__extends || function () {\n var _extendStatics127 = function extendStatics(d, b) {\n _extendStatics127 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics127(d, b);\n };\n\n return function (d, b) {\n _extendStatics127(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AgPanel =\n/** @class */\nfunction (_super) {\n __extends$W(AgPanel, _super);\n\n function AgPanel(config) {\n var _this = _super.call(this, AgPanel.getTemplate(config)) || this;\n\n _this.closable = true;\n _this.config = config;\n return _this;\n }\n\n AgPanel.getTemplate = function (config) {\n var cssIdentifier = config && config.cssIdentifier || 'default';\n return (\n /* html */\n \"
\\n
\\n \\n
\\n
\\n
\\n
\"\n );\n };\n\n AgPanel.prototype.postConstruct = function () {\n var _this = this;\n\n var _a = this.config,\n component = _a.component,\n closable = _a.closable,\n hideTitleBar = _a.hideTitleBar,\n title = _a.title,\n _b = _a.minWidth,\n minWidth = _b === void 0 ? 250 : _b,\n width = _a.width,\n _c = _a.minHeight,\n minHeight = _c === void 0 ? 250 : _c,\n height = _a.height,\n centered = _a.centered,\n popup = _a.popup,\n x = _a.x,\n y = _a.y;\n this.positionableFeature = new PositionableFeature(this.getGui(), {\n minWidth: minWidth,\n width: width,\n minHeight: minHeight,\n height: height,\n centered: centered,\n x: x,\n y: y,\n popup: popup,\n calculateTopBuffer: function calculateTopBuffer() {\n return _this.positionableFeature.getHeight() - _this.getBodyHeight();\n }\n });\n this.createManagedBean(this.positionableFeature);\n var eGui = this.getGui();\n\n if (component) {\n this.setBodyComponent(component);\n }\n\n if (!hideTitleBar) {\n if (title) {\n this.setTitle(title);\n }\n\n this.setClosable(closable != null ? closable : this.closable);\n } else {\n this.eTitleBar.classList.add('ag-hidden');\n }\n\n this.addManagedListener(this.eTitleBar, 'mousedown', function (e) {\n var eDocument = _this.gridOptionsWrapper.getDocument();\n\n if (eGui.contains(e.relatedTarget) || eGui.contains(eDocument.activeElement) || _this.eTitleBarButtons.contains(e.target)) {\n e.preventDefault();\n return;\n }\n\n var focusEl = _this.eContentWrapper.querySelector('button, [href], input, select, textarea, [tabindex]');\n\n if (focusEl) {\n focusEl.focus();\n }\n });\n\n if (popup && this.positionableFeature.isPositioned()) {\n return;\n }\n\n if (this.renderComponent) {\n this.renderComponent();\n }\n\n this.positionableFeature.initialisePosition();\n this.eContentWrapper.style.height = '0';\n };\n\n AgPanel.prototype.renderComponent = function () {\n var _this = this;\n\n var eGui = this.getGui();\n eGui.focus();\n\n this.close = function () {\n eGui.parentElement.removeChild(eGui);\n\n _this.destroy();\n };\n };\n\n AgPanel.prototype.getHeight = function () {\n return this.positionableFeature.getHeight();\n };\n\n AgPanel.prototype.setHeight = function (height) {\n this.positionableFeature.setHeight(height);\n };\n\n AgPanel.prototype.getWidth = function () {\n return this.positionableFeature.getWidth();\n };\n\n AgPanel.prototype.setWidth = function (width) {\n this.positionableFeature.setWidth(width);\n };\n\n AgPanel.prototype.setClosable = function (closable) {\n if (closable !== this.closable) {\n this.closable = closable;\n }\n\n if (closable) {\n var closeButtonComp = this.closeButtonComp = new Component(AgPanel.CLOSE_BTN_TEMPLATE);\n this.getContext().createBean(closeButtonComp);\n var eGui = closeButtonComp.getGui();\n var child = createIconNoSpan('close', this.gridOptionsWrapper);\n child.classList.add('ag-panel-title-bar-button-icon');\n eGui.appendChild(child);\n this.addTitleBarButton(closeButtonComp);\n closeButtonComp.addManagedListener(eGui, 'click', this.onBtClose.bind(this));\n } else if (this.closeButtonComp) {\n var eGui = this.closeButtonComp.getGui();\n eGui.parentElement.removeChild(eGui);\n this.closeButtonComp = this.destroyBean(this.closeButtonComp);\n }\n };\n\n AgPanel.prototype.setBodyComponent = function (bodyComponent) {\n bodyComponent.setParentComponent(this);\n this.eContentWrapper.appendChild(bodyComponent.getGui());\n };\n\n AgPanel.prototype.addTitleBarButton = function (button, position) {\n var eTitleBarButtons = this.eTitleBarButtons;\n var buttons = eTitleBarButtons.children;\n var len = buttons.length;\n\n if (position == null) {\n position = len;\n }\n\n position = Math.max(0, Math.min(position, len));\n button.addCssClass('ag-panel-title-bar-button');\n var eGui = button.getGui();\n\n if (position === 0) {\n eTitleBarButtons.insertAdjacentElement('afterbegin', eGui);\n } else if (position === len) {\n eTitleBarButtons.insertAdjacentElement('beforeend', eGui);\n } else {\n buttons[position - 1].insertAdjacentElement('afterend', eGui);\n }\n\n button.setParentComponent(this);\n };\n\n AgPanel.prototype.getBodyHeight = function () {\n return getInnerHeight(this.eContentWrapper);\n };\n\n AgPanel.prototype.getBodyWidth = function () {\n return getInnerWidth(this.eContentWrapper);\n };\n\n AgPanel.prototype.setTitle = function (title) {\n this.eTitle.innerText = title;\n }; // called when user hits the 'x' in the top right\n\n\n AgPanel.prototype.onBtClose = function () {\n this.close();\n };\n\n AgPanel.prototype.destroy = function () {\n if (this.closeButtonComp) {\n this.closeButtonComp = this.destroyBean(this.closeButtonComp);\n }\n\n var eGui = this.getGui();\n\n if (eGui && eGui.offsetParent) {\n this.close();\n }\n\n _super.prototype.destroy.call(this);\n };\n\n AgPanel.CLOSE_BTN_TEMPLATE = \"
\";\n\n __decorate$W([RefSelector('eContentWrapper')], AgPanel.prototype, \"eContentWrapper\", void 0);\n\n __decorate$W([RefSelector('eTitleBar')], AgPanel.prototype, \"eTitleBar\", void 0);\n\n __decorate$W([RefSelector('eTitleBarButtons')], AgPanel.prototype, \"eTitleBarButtons\", void 0);\n\n __decorate$W([RefSelector('eTitle')], AgPanel.prototype, \"eTitle\", void 0);\n\n __decorate$W([PostConstruct], AgPanel.prototype, \"postConstruct\", null);\n\n return AgPanel;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$V = undefined && undefined.__extends || function () {\n var _extendStatics128 = function extendStatics(d, b) {\n _extendStatics128 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics128(d, b);\n };\n\n return function (d, b) {\n _extendStatics128(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$1 = undefined && undefined.__assign || function () {\n __assign$1 = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$1.apply(this, arguments);\n};\n\nvar __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AgDialog =\n/** @class */\nfunction (_super) {\n __extends$V(AgDialog, _super);\n\n function AgDialog(config) {\n var _this = _super.call(this, __assign$1(__assign$1({}, config), {\n popup: true\n })) || this;\n\n _this.isMaximizable = false;\n _this.isMaximized = false;\n _this.maximizeListeners = [];\n _this.resizeListenerDestroy = null;\n _this.lastPosition = {\n x: 0,\n y: 0,\n width: 0,\n height: 0\n };\n return _this;\n }\n\n AgDialog.prototype.postConstruct = function () {\n var _this = this;\n\n var eGui = this.getGui();\n var _a = this.config,\n movable = _a.movable,\n resizable = _a.resizable,\n maximizable = _a.maximizable;\n this.addCssClass('ag-dialog');\n\n _super.prototype.postConstruct.call(this);\n\n this.addManagedListener(eGui, 'focusin', function (e) {\n if (eGui.contains(e.relatedTarget)) {\n return;\n }\n\n _this.popupService.bringPopupToFront(eGui);\n });\n\n if (movable) {\n this.setMovable(movable);\n }\n\n if (maximizable) {\n this.setMaximizable(maximizable);\n }\n\n if (resizable) {\n this.setResizable(resizable);\n }\n };\n\n AgDialog.prototype.renderComponent = function () {\n var eGui = this.getGui();\n var _a = this.config,\n alwaysOnTop = _a.alwaysOnTop,\n modal = _a.modal,\n title = _a.title;\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var addPopupRes = this.popupService.addPopup({\n modal: modal,\n eChild: eGui,\n closeOnEsc: true,\n closedCallback: this.destroy.bind(this),\n alwaysOnTop: alwaysOnTop,\n ariaLabel: title || translate('ariaLabelDialog', 'Dialog')\n });\n\n if (addPopupRes) {\n this.close = addPopupRes.hideFunc;\n }\n };\n\n AgDialog.prototype.toggleMaximize = function () {\n var position = this.positionableFeature.getPosition();\n\n if (this.isMaximized) {\n var _a = this.lastPosition,\n x = _a.x,\n y = _a.y,\n width = _a.width,\n height = _a.height;\n this.setWidth(width);\n this.setHeight(height);\n this.positionableFeature.offsetElement(x, y);\n } else {\n this.lastPosition.width = this.getWidth();\n this.lastPosition.height = this.getHeight();\n this.lastPosition.x = position.x;\n this.lastPosition.y = position.y;\n this.positionableFeature.offsetElement(0, 0);\n this.setHeight('100%');\n this.setWidth('100%');\n }\n\n this.isMaximized = !this.isMaximized;\n this.refreshMaximizeIcon();\n };\n\n AgDialog.prototype.refreshMaximizeIcon = function () {\n setDisplayed(this.maximizeIcon, !this.isMaximized);\n setDisplayed(this.minimizeIcon, this.isMaximized);\n };\n\n AgDialog.prototype.clearMaximizebleListeners = function () {\n if (this.maximizeListeners.length) {\n this.maximizeListeners.forEach(function (destroyListener) {\n return destroyListener();\n });\n this.maximizeListeners.length = 0;\n }\n\n if (this.resizeListenerDestroy) {\n this.resizeListenerDestroy();\n this.resizeListenerDestroy = null;\n }\n };\n\n AgDialog.prototype.destroy = function () {\n this.maximizeButtonComp = this.destroyBean(this.maximizeButtonComp);\n this.clearMaximizebleListeners();\n\n _super.prototype.destroy.call(this);\n };\n\n AgDialog.prototype.setResizable = function (resizable) {\n this.positionableFeature.setResizable(resizable);\n };\n\n AgDialog.prototype.setMovable = function (movable) {\n this.positionableFeature.setMovable(movable, this.eTitleBar);\n };\n\n AgDialog.prototype.setMaximizable = function (maximizable) {\n var _this = this;\n\n if (!maximizable) {\n this.clearMaximizebleListeners();\n\n if (this.maximizeButtonComp) {\n this.destroyBean(this.maximizeButtonComp);\n this.maximizeButtonComp = this.maximizeIcon = this.minimizeIcon = undefined;\n }\n\n return;\n }\n\n var eTitleBar = this.eTitleBar;\n\n if (!eTitleBar || maximizable === this.isMaximizable) {\n return;\n }\n\n var maximizeButtonComp = this.maximizeButtonComp = this.createBean(new Component(\n /* html */\n \"
\"));\n var eGui = maximizeButtonComp.getGui();\n eGui.appendChild(this.maximizeIcon = createIconNoSpan('maximize', this.gridOptionsWrapper));\n this.maximizeIcon.classList.add('ag-panel-title-bar-button-icon');\n eGui.appendChild(this.minimizeIcon = createIconNoSpan('minimize', this.gridOptionsWrapper));\n this.minimizeIcon.classList.add('ag-panel-title-bar-button-icon', 'ag-hidden');\n maximizeButtonComp.addManagedListener(eGui, 'click', this.toggleMaximize.bind(this));\n this.addTitleBarButton(maximizeButtonComp, 0);\n this.maximizeListeners.push(this.addManagedListener(eTitleBar, 'dblclick', this.toggleMaximize.bind(this)));\n this.resizeListenerDestroy = this.addManagedListener(this, 'resize', function () {\n _this.isMaximized = false;\n\n _this.refreshMaximizeIcon();\n });\n };\n\n __decorate$V([Autowired('popupService')], AgDialog.prototype, \"popupService\", void 0);\n\n return AgDialog;\n}(AgPanel);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$U = undefined && undefined.__extends || function () {\n var _extendStatics129 = function extendStatics(d, b) {\n _extendStatics129 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics129(d, b);\n };\n\n return function (d, b) {\n _extendStatics129(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar AgColorPicker =\n/** @class */\nfunction (_super) {\n __extends$U(AgColorPicker, _super);\n\n function AgColorPicker(config) {\n var _this = _super.call(this, config, 'ag-color-picker', 'colorPicker') || this;\n\n if (config && config.color) {\n _this.value = config.color;\n }\n\n return _this;\n }\n\n AgColorPicker.prototype.postConstruct = function () {\n _super.prototype.postConstruct.call(this);\n\n if (this.value) {\n this.setValue(this.value);\n }\n };\n\n AgColorPicker.prototype.showPicker = function () {\n var _this = this;\n\n var eGuiRect = this.getGui().getBoundingClientRect();\n var colorDialog = this.createBean(new AgDialog({\n closable: false,\n modal: true,\n hideTitleBar: true,\n minWidth: 190,\n width: 190,\n height: 250,\n x: eGuiRect.right - 190,\n y: eGuiRect.top - 250\n }));\n this.isPickerDisplayed = true;\n colorDialog.addCssClass('ag-color-dialog');\n setAriaExpanded(this.eWrapper, true);\n var colorPanel = this.createBean(new AgColorPanel({\n picker: this\n }));\n colorPanel.addDestroyFunc(function () {\n if (colorDialog.isAlive()) {\n _this.destroyBean(colorDialog);\n }\n });\n colorDialog.setParentComponent(this);\n colorDialog.setBodyComponent(colorPanel);\n colorPanel.setValue(this.getValue());\n colorDialog.addDestroyFunc(function () {\n // here we check if the picker was already being\n // destroyed to avoid a stack overflow\n if (!_this.isDestroyingPicker) {\n _this.isDestroyingPicker = true;\n\n if (colorPanel.isAlive()) {\n _this.destroyBean(colorPanel);\n }\n } else {\n _this.isDestroyingPicker = false;\n }\n\n if (_this.isAlive()) {\n setAriaExpanded(_this.eWrapper, false);\n\n _this.getFocusableElement().focus();\n }\n\n _this.isPickerDisplayed = false;\n });\n return colorDialog;\n };\n\n AgColorPicker.prototype.setValue = function (color) {\n if (this.value === color) {\n return this;\n }\n\n this.eDisplayField.style.backgroundColor = color;\n return _super.prototype.setValue.call(this, color);\n };\n\n AgColorPicker.prototype.getValue = function () {\n return this.value;\n };\n\n return AgColorPicker;\n}(AgPickerField);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$T = undefined && undefined.__extends || function () {\n var _extendStatics130 = function extendStatics(d, b) {\n _extendStatics130 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics130(d, b);\n };\n\n return function (d, b) {\n _extendStatics130(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AgGroupComponent =\n/** @class */\nfunction (_super) {\n __extends$T(AgGroupComponent, _super);\n\n function AgGroupComponent(params) {\n if (params === void 0) {\n params = {};\n }\n\n var _this = _super.call(this, AgGroupComponent.getTemplate(params)) || this;\n\n _this.suppressEnabledCheckbox = true;\n _this.suppressOpenCloseIcons = false;\n var title = params.title,\n enabled = params.enabled,\n items = params.items,\n suppressEnabledCheckbox = params.suppressEnabledCheckbox,\n suppressOpenCloseIcons = params.suppressOpenCloseIcons;\n _this.title = title;\n _this.cssIdentifier = params.cssIdentifier || 'default';\n _this.enabled = enabled != null ? enabled : true;\n _this.items = items || [];\n _this.alignItems = params.alignItems || 'center';\n\n if (suppressEnabledCheckbox != null) {\n _this.suppressEnabledCheckbox = suppressEnabledCheckbox;\n }\n\n if (suppressOpenCloseIcons != null) {\n _this.suppressOpenCloseIcons = suppressOpenCloseIcons;\n }\n\n return _this;\n }\n\n AgGroupComponent.getTemplate = function (params) {\n var cssIdentifier = params.cssIdentifier || 'default';\n var direction = params.direction || 'vertical';\n return (\n /* html */\n \"
\\n
\\n \\n \\n \\n
\\n
\\n \\n
\\n
\\n
\"\n );\n };\n\n AgGroupComponent.prototype.postConstruct = function () {\n if (this.items.length) {\n var initialItems = this.items;\n this.items = [];\n this.addItems(initialItems);\n }\n\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n this.cbGroupEnabled.setLabel(localeTextFunc('enabled', 'Enabled'));\n\n if (this.title) {\n this.setTitle(this.title);\n }\n\n if (this.enabled) {\n this.setEnabled(this.enabled);\n }\n\n this.setAlignItems(this.alignItems);\n this.hideEnabledCheckbox(this.suppressEnabledCheckbox);\n this.hideOpenCloseIcons(this.suppressOpenCloseIcons);\n this.setupExpandContract();\n this.refreshAriaStatus();\n this.refreshChildDisplay();\n };\n\n AgGroupComponent.prototype.setupExpandContract = function () {\n var _this = this;\n\n this.eGroupClosedIcon.appendChild(createIcon('columnSelectClosed', this.gridOptionsWrapper, null));\n this.eGroupOpenedIcon.appendChild(createIcon('columnSelectOpen', this.gridOptionsWrapper, null));\n this.addManagedListener(this.eTitleBar, 'click', function () {\n return _this.toggleGroupExpand();\n });\n this.addManagedListener(this.eTitleBar, 'keydown', function (e) {\n switch (e.key) {\n case KeyCode.ENTER:\n case KeyCode.SPACE:\n e.preventDefault();\n\n _this.toggleGroupExpand();\n\n break;\n\n case KeyCode.RIGHT:\n case KeyCode.LEFT:\n e.preventDefault();\n\n _this.toggleGroupExpand(e.key === KeyCode.RIGHT);\n\n break;\n }\n });\n };\n\n AgGroupComponent.prototype.refreshAriaStatus = function () {\n if (!this.suppressOpenCloseIcons) {\n setAriaExpanded(this.eTitleBar, this.expanded);\n }\n };\n\n AgGroupComponent.prototype.refreshChildDisplay = function () {\n var showIcon = !this.suppressOpenCloseIcons;\n setDisplayed(this.eToolbar, this.expanded && !this.suppressEnabledCheckbox);\n setDisplayed(this.eGroupOpenedIcon, showIcon && this.expanded);\n setDisplayed(this.eGroupClosedIcon, showIcon && !this.expanded);\n };\n\n AgGroupComponent.prototype.isExpanded = function () {\n return this.expanded;\n };\n\n AgGroupComponent.prototype.setAlignItems = function (alignment) {\n if (this.alignItems !== alignment) {\n this.removeCssClass(\"ag-group-item-alignment-\" + this.alignItems);\n }\n\n this.alignItems = alignment;\n var newCls = \"ag-group-item-alignment-\" + this.alignItems;\n this.addCssClass(newCls);\n return this;\n };\n\n AgGroupComponent.prototype.toggleGroupExpand = function (expanded) {\n if (this.suppressOpenCloseIcons) {\n this.expanded = true;\n this.refreshChildDisplay();\n setDisplayed(this.eContainer, true);\n return this;\n }\n\n expanded = expanded != null ? expanded : !this.expanded;\n\n if (this.expanded === expanded) {\n return this;\n }\n\n this.expanded = expanded;\n this.refreshAriaStatus();\n this.refreshChildDisplay();\n setDisplayed(this.eContainer, expanded);\n this.dispatchEvent({\n type: this.expanded ? AgGroupComponent.EVENT_EXPANDED : AgGroupComponent.EVENT_COLLAPSED\n });\n return this;\n };\n\n AgGroupComponent.prototype.addItems = function (items) {\n var _this = this;\n\n items.forEach(function (item) {\n return _this.addItem(item);\n });\n };\n\n AgGroupComponent.prototype.addItem = function (item) {\n var container = this.eContainer;\n var el = item instanceof Component ? item.getGui() : item;\n el.classList.add('ag-group-item', \"ag-\" + this.cssIdentifier + \"-group-item\");\n container.appendChild(el);\n this.items.push(el);\n };\n\n AgGroupComponent.prototype.hideItem = function (hide, index) {\n var itemToHide = this.items[index];\n itemToHide.classList.toggle('ag-hidden', hide);\n };\n\n AgGroupComponent.prototype.setTitle = function (title) {\n this.eTitle.innerText = title;\n return this;\n };\n\n AgGroupComponent.prototype.addCssClassToTitleBar = function (cssClass) {\n this.eTitleBar.classList.add(cssClass);\n };\n\n AgGroupComponent.prototype.setEnabled = function (enabled, skipToggle) {\n this.enabled = enabled;\n this.refreshDisabledStyles();\n this.toggleGroupExpand(enabled);\n\n if (!skipToggle) {\n this.cbGroupEnabled.setValue(enabled);\n }\n\n return this;\n };\n\n AgGroupComponent.prototype.isEnabled = function () {\n return this.enabled;\n };\n\n AgGroupComponent.prototype.onEnableChange = function (callbackFn) {\n var _this = this;\n\n this.cbGroupEnabled.onValueChange(function (newSelection) {\n _this.setEnabled(newSelection, true);\n\n callbackFn(newSelection);\n });\n return this;\n };\n\n AgGroupComponent.prototype.hideEnabledCheckbox = function (hide) {\n this.suppressEnabledCheckbox = hide;\n this.refreshChildDisplay();\n this.refreshDisabledStyles();\n return this;\n };\n\n AgGroupComponent.prototype.hideOpenCloseIcons = function (hide) {\n this.suppressOpenCloseIcons = hide;\n\n if (hide) {\n this.toggleGroupExpand(true);\n }\n\n return this;\n };\n\n AgGroupComponent.prototype.refreshDisabledStyles = function () {\n this.addOrRemoveCssClass('ag-disabled', !this.enabled);\n\n if (this.suppressEnabledCheckbox && !this.enabled) {\n this.eTitleBar.classList.add('ag-disabled-group-title-bar');\n this.eTitleBar.removeAttribute('tabindex');\n } else {\n this.eTitleBar.classList.remove('ag-disabled-group-title-bar');\n this.eTitleBar.setAttribute('tabindex', '0');\n }\n\n this.eContainer.classList.toggle('ag-disabled-group-container', !this.enabled);\n };\n\n AgGroupComponent.EVENT_EXPANDED = 'expanded';\n AgGroupComponent.EVENT_COLLAPSED = 'collapsed';\n\n __decorate$U([RefSelector('eTitleBar')], AgGroupComponent.prototype, \"eTitleBar\", void 0);\n\n __decorate$U([RefSelector('eGroupOpenedIcon')], AgGroupComponent.prototype, \"eGroupOpenedIcon\", void 0);\n\n __decorate$U([RefSelector('eGroupClosedIcon')], AgGroupComponent.prototype, \"eGroupClosedIcon\", void 0);\n\n __decorate$U([RefSelector('eToolbar')], AgGroupComponent.prototype, \"eToolbar\", void 0);\n\n __decorate$U([RefSelector('cbGroupEnabled')], AgGroupComponent.prototype, \"cbGroupEnabled\", void 0);\n\n __decorate$U([RefSelector('eTitle')], AgGroupComponent.prototype, \"eTitle\", void 0);\n\n __decorate$U([RefSelector('eContainer')], AgGroupComponent.prototype, \"eContainer\", void 0);\n\n __decorate$U([PostConstruct], AgGroupComponent.prototype, \"postConstruct\", null);\n\n return AgGroupComponent;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$S = undefined && undefined.__extends || function () {\n var _extendStatics131 = function extendStatics(d, b) {\n _extendStatics131 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics131(d, b);\n };\n\n return function (d, b) {\n _extendStatics131(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar TabGuardCtrl =\n/** @class */\nfunction (_super) {\n __extends$S(TabGuardCtrl, _super);\n\n function TabGuardCtrl(params) {\n var _this = _super.call(this) || this;\n\n _this.skipTabGuardFocus = false;\n var comp = params.comp,\n eTopGuard = params.eTopGuard,\n eBottomGuard = params.eBottomGuard,\n focusInnerElement = params.focusInnerElement,\n onFocusIn = params.onFocusIn,\n onFocusOut = params.onFocusOut,\n shouldStopEventPropagation = params.shouldStopEventPropagation,\n onTabKeyDown = params.onTabKeyDown,\n handleKeyDown = params.handleKeyDown,\n eFocusableElement = params.eFocusableElement;\n _this.comp = comp;\n _this.eTopGuard = eTopGuard;\n _this.eBottomGuard = eBottomGuard;\n _this.providedFocusInnerElement = focusInnerElement;\n _this.eFocusableElement = eFocusableElement;\n _this.providedFocusIn = onFocusIn;\n _this.providedFocusOut = onFocusOut;\n _this.providedShouldStopEventPropagation = shouldStopEventPropagation;\n _this.providedOnTabKeyDown = onTabKeyDown;\n _this.providedHandleKeyDown = handleKeyDown;\n return _this;\n }\n\n TabGuardCtrl.prototype.postConstruct = function () {\n var _this = this;\n\n this.createManagedBean(new ManagedFocusFeature(this.eFocusableElement, {\n shouldStopEventPropagation: function shouldStopEventPropagation() {\n return _this.shouldStopEventPropagation();\n },\n onTabKeyDown: function onTabKeyDown(e) {\n return _this.onTabKeyDown(e);\n },\n handleKeyDown: function handleKeyDown(e) {\n return _this.handleKeyDown(e);\n },\n onFocusIn: function onFocusIn(e) {\n return _this.onFocusIn(e);\n },\n onFocusOut: function onFocusOut(e) {\n return _this.onFocusOut(e);\n }\n }));\n this.activateTabGuards();\n [this.eTopGuard, this.eBottomGuard].forEach(function (guard) {\n return _this.addManagedListener(guard, 'focus', _this.onFocus.bind(_this));\n });\n };\n\n TabGuardCtrl.prototype.handleKeyDown = function (e) {\n if (this.providedHandleKeyDown) {\n this.providedHandleKeyDown(e);\n }\n };\n\n TabGuardCtrl.prototype.tabGuardsAreActive = function () {\n return !!this.eTopGuard && this.eTopGuard.hasAttribute('tabIndex');\n };\n\n TabGuardCtrl.prototype.shouldStopEventPropagation = function () {\n if (this.providedShouldStopEventPropagation) {\n return this.providedShouldStopEventPropagation();\n }\n\n return false;\n };\n\n TabGuardCtrl.prototype.activateTabGuards = function () {\n this.comp.setTabIndex(this.getGridTabIndex());\n };\n\n TabGuardCtrl.prototype.deactivateTabGuards = function () {\n this.comp.setTabIndex();\n };\n\n TabGuardCtrl.prototype.onFocus = function (e) {\n if (this.skipTabGuardFocus) {\n this.skipTabGuardFocus = false;\n return;\n }\n\n var fromBottom = e.target === this.eBottomGuard;\n\n if (this.providedFocusInnerElement) {\n this.providedFocusInnerElement(fromBottom);\n } else {\n this.focusInnerElement(fromBottom);\n }\n };\n\n TabGuardCtrl.prototype.onFocusIn = function (e) {\n if (this.providedFocusIn && this.providedFocusIn(e)) {\n return;\n }\n\n this.deactivateTabGuards();\n };\n\n TabGuardCtrl.prototype.onFocusOut = function (e) {\n if (this.providedFocusOut && this.providedFocusOut(e)) {\n return;\n }\n\n if (!this.eFocusableElement.contains(e.relatedTarget)) {\n this.activateTabGuards();\n }\n };\n\n TabGuardCtrl.prototype.onTabKeyDown = function (e) {\n var _this = this;\n\n if (this.providedOnTabKeyDown) {\n this.providedOnTabKeyDown(e);\n return;\n }\n\n if (e.defaultPrevented) {\n return;\n }\n\n var tabGuardsAreActive = this.tabGuardsAreActive();\n\n if (tabGuardsAreActive) {\n this.deactivateTabGuards();\n }\n\n var nextRoot = this.getNextFocusableElement(e.shiftKey);\n\n if (tabGuardsAreActive) {\n // ensure the tab guards are only re-instated once the event has finished processing, to avoid the browser\n // tabbing to the tab guard from inside the component\n setTimeout(function () {\n return _this.activateTabGuards();\n }, 0);\n }\n\n if (!nextRoot) {\n return;\n }\n\n nextRoot.focus();\n e.preventDefault();\n };\n\n TabGuardCtrl.prototype.getGridTabIndex = function () {\n return this.gridOptionsWrapper.getGridTabIndex();\n };\n\n TabGuardCtrl.prototype.focusInnerElement = function (fromBottom) {\n if (fromBottom === void 0) {\n fromBottom = false;\n }\n\n var focusable = this.focusService.findFocusableElements(this.eFocusableElement);\n\n if (this.tabGuardsAreActive()) {\n // remove tab guards from this component from list of focusable elements\n focusable.splice(0, 1);\n focusable.splice(focusable.length - 1, 1);\n }\n\n if (!focusable.length) {\n return;\n }\n\n focusable[fromBottom ? focusable.length - 1 : 0].focus();\n };\n\n TabGuardCtrl.prototype.getNextFocusableElement = function (backwards) {\n return this.focusService.findNextFocusableElement(this.eFocusableElement, false, backwards);\n };\n\n TabGuardCtrl.prototype.forceFocusOutOfContainer = function (up) {\n if (up === void 0) {\n up = false;\n }\n\n var tabGuardToFocus = up ? this.eTopGuard : this.eBottomGuard;\n this.activateTabGuards();\n this.skipTabGuardFocus = true;\n tabGuardToFocus.focus();\n };\n\n __decorate$T([Autowired('focusService')], TabGuardCtrl.prototype, \"focusService\", void 0);\n\n __decorate$T([PostConstruct], TabGuardCtrl.prototype, \"postConstruct\", null);\n\n return TabGuardCtrl;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$R = undefined && undefined.__extends || function () {\n var _extendStatics132 = function extendStatics(d, b) {\n _extendStatics132 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics132(d, b);\n };\n\n return function (d, b) {\n _extendStatics132(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __read$7 = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$6 = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$7(arguments[i]));\n }\n\n return ar;\n};\n\nvar TabGuardComp =\n/** @class */\nfunction (_super) {\n __extends$R(TabGuardComp, _super);\n\n function TabGuardComp() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n TabGuardComp.prototype.initialiseTabGuard = function (params) {\n this.eTopGuard = this.createTabGuard('top');\n this.eBottomGuard = this.createTabGuard('bottom');\n this.eFocusableElement = this.getFocusableElement();\n var tabGuards = [this.eTopGuard, this.eBottomGuard];\n var compProxy = {\n setTabIndex: function setTabIndex(tabIndex) {\n tabGuards.forEach(function (tabGuard) {\n return tabIndex != null ? tabGuard.setAttribute('tabIndex', tabIndex) : tabGuard.removeAttribute('tabIndex');\n });\n }\n };\n this.addTabGuards(this.eTopGuard, this.eBottomGuard);\n this.tabGuardCtrl = this.createManagedBean(new TabGuardCtrl({\n comp: compProxy,\n eTopGuard: this.eTopGuard,\n eBottomGuard: this.eBottomGuard,\n eFocusableElement: this.eFocusableElement,\n onFocusIn: params.onFocusIn,\n onFocusOut: params.onFocusOut,\n focusInnerElement: params.focusInnerElement,\n handleKeyDown: params.handleKeyDown,\n onTabKeyDown: params.onTabKeyDown,\n shouldStopEventPropagation: params.shouldStopEventPropagation\n }));\n };\n\n TabGuardComp.prototype.createTabGuard = function (side) {\n var tabGuard = document.createElement('div');\n tabGuard.classList.add('ag-tab-guard', \"ag-tab-guard-\" + side);\n setAriaRole(tabGuard, 'presentation');\n return tabGuard;\n };\n\n TabGuardComp.prototype.addTabGuards = function (topTabGuard, bottomTabGuard) {\n this.eFocusableElement.insertAdjacentElement('afterbegin', topTabGuard);\n this.eFocusableElement.insertAdjacentElement('beforeend', bottomTabGuard);\n };\n\n TabGuardComp.prototype.removeAllChildrenExceptTabGuards = function () {\n var tabGuards = [this.eTopGuard, this.eBottomGuard];\n clearElement(this.getFocusableElement());\n this.addTabGuards.apply(this, __spread$6(tabGuards));\n };\n\n TabGuardComp.prototype.forceFocusOutOfContainer = function (up) {\n if (up === void 0) {\n up = false;\n }\n\n this.tabGuardCtrl.forceFocusOutOfContainer(up);\n };\n\n TabGuardComp.prototype.appendChild = function (newChild, container) {\n if (!isNodeOrElement(newChild)) {\n newChild = newChild.getGui();\n }\n\n var bottomTabGuard = this.eBottomGuard;\n\n if (bottomTabGuard) {\n bottomTabGuard.insertAdjacentElement('beforebegin', newChild);\n } else {\n _super.prototype.appendChild.call(this, newChild, container);\n }\n };\n\n return TabGuardComp;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$Q = undefined && undefined.__extends || function () {\n var _extendStatics133 = function extendStatics(d, b) {\n _extendStatics133 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics133(d, b);\n };\n\n return function (d, b) {\n _extendStatics133(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign = undefined && undefined.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign.apply(this, arguments);\n};\n\nvar __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AgMenuList =\n/** @class */\nfunction (_super) {\n __extends$Q(AgMenuList, _super);\n\n function AgMenuList(level) {\n if (level === void 0) {\n level = 1;\n }\n\n var _this = _super.call(this,\n /* html */\n \"
\") || this;\n\n _this.level = level;\n _this.menuItems = [];\n return _this;\n }\n\n AgMenuList.prototype.postConstruct = function () {\n var _this = this;\n\n this.initialiseTabGuard({\n onTabKeyDown: function onTabKeyDown(e) {\n return _this.onTabKeyDown(e);\n },\n handleKeyDown: function handleKeyDown(e) {\n return _this.handleKeyDown(e);\n }\n });\n };\n\n AgMenuList.prototype.onTabKeyDown = function (e) {\n var parent = this.getParentComponent();\n var parentGui = parent && parent.getGui();\n var isManaged = parentGui && parentGui.classList.contains('ag-focus-managed');\n\n if (!isManaged) {\n e.preventDefault();\n }\n\n if (e.shiftKey) {\n this.closeIfIsChild(e);\n }\n };\n\n AgMenuList.prototype.handleKeyDown = function (e) {\n switch (e.key) {\n case KeyCode.UP:\n case KeyCode.RIGHT:\n case KeyCode.DOWN:\n case KeyCode.LEFT:\n e.preventDefault();\n this.handleNavKey(e.key);\n break;\n\n case KeyCode.ESCAPE:\n var topMenu = this.findTopMenu();\n\n if (topMenu) {\n this.focusService.focusInto(topMenu.getGui());\n }\n\n break;\n }\n };\n\n AgMenuList.prototype.clearActiveItem = function () {\n if (this.activeMenuItem) {\n this.activeMenuItem.deactivate();\n this.activeMenuItem = null;\n }\n };\n\n AgMenuList.prototype.addMenuItems = function (menuItems) {\n var _this = this;\n\n if (menuItems == null) {\n return;\n }\n\n menuItems.forEach(function (menuItemOrString) {\n if (menuItemOrString === 'separator') {\n _this.addSeparator();\n } else if (typeof menuItemOrString === 'string') {\n console.warn(\"AG Grid: unrecognised menu item \" + menuItemOrString);\n } else {\n _this.addItem(menuItemOrString);\n }\n });\n };\n\n AgMenuList.prototype.addItem = function (menuItemDef) {\n var _this = this;\n\n var menuItem = this.createManagedBean(new AgMenuItemComponent(__assign(__assign({}, menuItemDef), {\n isAnotherSubMenuOpen: function isAnotherSubMenuOpen() {\n return _this.menuItems.some(function (m) {\n return m.isSubMenuOpen();\n });\n }\n })));\n menuItem.setParentComponent(this);\n setAriaLevel(menuItem.getGui(), this.level);\n this.menuItems.push(menuItem);\n this.appendChild(menuItem.getGui());\n this.addManagedListener(menuItem, AgMenuItemComponent.EVENT_MENU_ITEM_SELECTED, function (event) {\n _this.dispatchEvent(event);\n });\n this.addManagedListener(menuItem, AgMenuItemComponent.EVENT_MENU_ITEM_ACTIVATED, function (event) {\n if (_this.activeMenuItem && _this.activeMenuItem !== event.menuItem) {\n _this.activeMenuItem.deactivate();\n }\n\n _this.activeMenuItem = event.menuItem;\n });\n };\n\n AgMenuList.prototype.activateFirstItem = function () {\n var item = this.menuItems.filter(function (currentItem) {\n return !currentItem.isDisabled();\n })[0];\n\n if (!item) {\n return;\n }\n\n item.activate();\n };\n\n AgMenuList.prototype.addSeparator = function () {\n var separatorHtml =\n /* html */\n \"\\n
\\n
\\n
\\n
\\n
\\n
\";\n this.appendChild(loadTemplate(separatorHtml));\n };\n\n AgMenuList.prototype.findTopMenu = function () {\n var parent = this.getParentComponent();\n\n if (!parent && this instanceof AgMenuList) {\n return this;\n }\n\n while (true) {\n var nextParent = parent && parent.getParentComponent && parent.getParentComponent();\n\n if (!nextParent || !(nextParent instanceof AgMenuList || nextParent instanceof AgMenuItemComponent)) {\n break;\n }\n\n parent = nextParent;\n }\n\n return parent instanceof AgMenuList ? parent : undefined;\n };\n\n AgMenuList.prototype.handleNavKey = function (key) {\n switch (key) {\n case KeyCode.UP:\n case KeyCode.DOWN:\n var nextItem = this.findNextItem(key === KeyCode.UP);\n\n if (nextItem && nextItem !== this.activeMenuItem) {\n nextItem.activate();\n }\n\n return;\n }\n\n var left = this.gridOptionsWrapper.isEnableRtl() ? KeyCode.RIGHT : KeyCode.LEFT;\n\n if (key === left) {\n this.closeIfIsChild();\n } else {\n this.openChild();\n }\n };\n\n AgMenuList.prototype.closeIfIsChild = function (e) {\n var parentItem = this.getParentComponent();\n\n if (parentItem && parentItem instanceof AgMenuItemComponent) {\n if (e) {\n e.preventDefault();\n }\n\n parentItem.closeSubMenu();\n parentItem.getGui().focus();\n }\n };\n\n AgMenuList.prototype.openChild = function () {\n if (this.activeMenuItem) {\n this.activeMenuItem.openSubMenu(true);\n }\n };\n\n AgMenuList.prototype.findNextItem = function (up) {\n var items = this.menuItems.filter(function (item) {\n return !item.isDisabled();\n });\n\n if (!items.length) {\n return;\n }\n\n if (!this.activeMenuItem) {\n return up ? last(items) : items[0];\n }\n\n if (up) {\n items.reverse();\n }\n\n var nextItem;\n var foundCurrent = false;\n\n for (var i = 0; i < items.length; i++) {\n var item = items[i];\n\n if (!foundCurrent) {\n if (item === this.activeMenuItem) {\n foundCurrent = true;\n }\n\n continue;\n }\n\n nextItem = item;\n break;\n }\n\n return nextItem || this.activeMenuItem;\n };\n\n AgMenuList.prototype.destroy = function () {\n this.clearActiveItem();\n\n _super.prototype.destroy.call(this);\n };\n\n __decorate$S([Autowired('focusService')], AgMenuList.prototype, \"focusService\", void 0);\n\n __decorate$S([PostConstruct], AgMenuList.prototype, \"postConstruct\", null);\n\n return AgMenuList;\n}(TabGuardComp);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$P = undefined && undefined.__extends || function () {\n var _extendStatics134 = function extendStatics(d, b) {\n _extendStatics134 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics134(d, b);\n };\n\n return function (d, b) {\n _extendStatics134(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AgMenuPanel =\n/** @class */\nfunction (_super) {\n __extends$P(AgMenuPanel, _super);\n\n function AgMenuPanel(wrappedComponent) {\n var _this = _super.call(this) || this;\n\n _this.wrappedComponent = wrappedComponent;\n\n _this.setTemplateFromElement(wrappedComponent.getGui());\n\n return _this;\n }\n\n AgMenuPanel.prototype.postConstruct = function () {\n var _this = this;\n\n this.initialiseTabGuard({\n onTabKeyDown: function onTabKeyDown(e) {\n return _this.onTabKeyDown(e);\n },\n handleKeyDown: function handleKeyDown(e) {\n return _this.handleKeyDown(e);\n }\n });\n };\n\n AgMenuPanel.prototype.handleKeyDown = function (e) {\n if (e.key === KeyCode.ESCAPE) {\n this.closePanel();\n }\n };\n\n AgMenuPanel.prototype.onTabKeyDown = function (e) {\n if (e.defaultPrevented) {\n return;\n }\n\n this.closePanel();\n e.preventDefault();\n };\n\n AgMenuPanel.prototype.closePanel = function () {\n var menuItem = this.parentComponent;\n menuItem.closeSubMenu();\n setTimeout(function () {\n return menuItem.getGui().focus();\n }, 0);\n };\n\n __decorate$R([PostConstruct], AgMenuPanel.prototype, \"postConstruct\", null);\n\n return AgMenuPanel;\n}(TabGuardComp);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$O = undefined && undefined.__extends || function () {\n var _extendStatics135 = function extendStatics(d, b) {\n _extendStatics135 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics135(d, b);\n };\n\n return function (d, b) {\n _extendStatics135(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AgMenuItemComponent =\n/** @class */\nfunction (_super) {\n __extends$O(AgMenuItemComponent, _super);\n\n function AgMenuItemComponent(params) {\n var _this = _super.call(this) || this;\n\n _this.params = params;\n _this.isActive = false;\n _this.subMenuIsOpen = false;\n\n _this.setTemplate(\n /* html */\n \"
\");\n\n return _this;\n }\n\n AgMenuItemComponent.prototype.init = function () {\n var _this = this;\n\n this.addIcon();\n this.addName();\n this.addShortcut();\n this.addSubMenu();\n this.addTooltip();\n var eGui = this.getGui();\n\n if (this.params.disabled) {\n this.addCssClass(this.getClassName('disabled'));\n setAriaDisabled(eGui, true);\n } else {\n this.addGuiEventListener('click', function (e) {\n return _this.onItemSelected(e);\n });\n this.addGuiEventListener('keydown', function (e) {\n if (e.key === KeyCode.ENTER || e.key === KeyCode.SPACE) {\n e.preventDefault();\n\n _this.onItemSelected(e);\n }\n });\n this.addGuiEventListener('mousedown', function (e) {\n // Prevent event bubbling to other event handlers such as PopupService triggering\n // premature closing of any open sub-menu popup.\n e.stopPropagation();\n e.preventDefault();\n });\n this.addGuiEventListener('mouseenter', function () {\n return _this.onMouseEnter();\n });\n this.addGuiEventListener('mouseleave', function () {\n return _this.onMouseLeave();\n });\n }\n\n if (this.params.cssClasses) {\n this.params.cssClasses.forEach(function (it) {\n return _this.addCssClass(it);\n });\n }\n };\n\n AgMenuItemComponent.prototype.isDisabled = function () {\n return !!this.params.disabled;\n };\n\n AgMenuItemComponent.prototype.openSubMenu = function (activateFirstItem) {\n var _this = this;\n\n if (activateFirstItem === void 0) {\n activateFirstItem = false;\n }\n\n this.closeSubMenu();\n\n if (!this.params.subMenu) {\n return;\n }\n\n var ePopup = loadTemplate(\n /* html */\n \"
\");\n var destroySubMenu;\n\n if (this.params.subMenu instanceof Array) {\n var currentLevel = getAriaLevel(this.getGui());\n var nextLevel = isNaN(currentLevel) ? 1 : currentLevel + 1;\n var childMenu_1 = this.createBean(new AgMenuList(nextLevel));\n childMenu_1.setParentComponent(this);\n childMenu_1.addMenuItems(this.params.subMenu);\n ePopup.appendChild(childMenu_1.getGui()); // bubble menu item selected events\n\n this.addManagedListener(childMenu_1, AgMenuItemComponent.EVENT_MENU_ITEM_SELECTED, function (e) {\n return _this.dispatchEvent(e);\n });\n childMenu_1.addGuiEventListener('mouseenter', function () {\n return _this.cancelDeactivate();\n });\n\n destroySubMenu = function destroySubMenu() {\n return _this.destroyBean(childMenu_1);\n };\n\n if (activateFirstItem) {\n setTimeout(function () {\n return childMenu_1.activateFirstItem();\n }, 0);\n }\n } else {\n var subMenu_1 = this.params.subMenu;\n var menuPanel = this.createBean(new AgMenuPanel(subMenu_1));\n menuPanel.setParentComponent(this);\n var subMenuGui_1 = menuPanel.getGui();\n var mouseEvent_1 = 'mouseenter';\n\n var mouseEnterListener_1 = function mouseEnterListener_1() {\n return _this.cancelDeactivate();\n };\n\n subMenuGui_1.addEventListener(mouseEvent_1, mouseEnterListener_1);\n\n destroySubMenu = function destroySubMenu() {\n return subMenuGui_1.removeEventListener(mouseEvent_1, mouseEnterListener_1);\n };\n\n ePopup.appendChild(subMenuGui_1);\n\n if (subMenu_1.afterGuiAttached) {\n setTimeout(function () {\n return subMenu_1.afterGuiAttached();\n }, 0);\n }\n }\n\n var eGui = this.getGui();\n var positionCallback = this.popupService.positionPopupForMenu.bind(this.popupService, {\n eventSource: eGui,\n ePopup: ePopup\n });\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var addPopupRes = this.popupService.addPopup({\n modal: true,\n eChild: ePopup,\n positionCallback: positionCallback,\n anchorToElement: eGui,\n ariaLabel: translate('ariaLabelSubMenu', 'SubMenu')\n });\n this.subMenuIsOpen = true;\n setAriaExpanded(eGui, true);\n\n this.hideSubMenu = function () {\n if (addPopupRes) {\n addPopupRes.hideFunc();\n }\n\n _this.subMenuIsOpen = false;\n setAriaExpanded(eGui, false);\n destroySubMenu();\n };\n };\n\n AgMenuItemComponent.prototype.closeSubMenu = function () {\n if (!this.hideSubMenu) {\n return;\n }\n\n this.hideSubMenu();\n this.hideSubMenu = null;\n setAriaExpanded(this.getGui(), false);\n };\n\n AgMenuItemComponent.prototype.isSubMenuOpen = function () {\n return this.subMenuIsOpen;\n };\n\n AgMenuItemComponent.prototype.activate = function (openSubMenu) {\n var _this = this;\n\n this.cancelActivate();\n\n if (this.params.disabled) {\n return;\n }\n\n this.isActive = true;\n this.addCssClass(this.getClassName('active'));\n this.getGui().focus();\n\n if (openSubMenu && this.params.subMenu) {\n window.setTimeout(function () {\n if (_this.isAlive() && _this.isActive) {\n _this.openSubMenu();\n }\n }, 300);\n }\n\n this.onItemActivated();\n };\n\n AgMenuItemComponent.prototype.deactivate = function () {\n this.cancelDeactivate();\n this.removeCssClass(this.getClassName('active'));\n this.isActive = false;\n\n if (this.subMenuIsOpen) {\n this.hideSubMenu();\n }\n };\n\n AgMenuItemComponent.prototype.addIcon = function () {\n if (!this.params.checked && !this.params.icon && this.params.isCompact) {\n return;\n }\n\n var icon = loadTemplate(\n /* html */\n \"\");\n\n if (this.params.checked) {\n icon.appendChild(createIconNoSpan('check', this.gridOptionsWrapper));\n } else if (this.params.icon) {\n if (isNodeOrElement(this.params.icon)) {\n icon.appendChild(this.params.icon);\n } else if (typeof this.params.icon === 'string') {\n icon.innerHTML = this.params.icon;\n } else {\n console.warn('AG Grid: menu item icon must be DOM node or string');\n }\n }\n\n this.getGui().appendChild(icon);\n };\n\n AgMenuItemComponent.prototype.addName = function () {\n if (!this.params.name && this.params.isCompact) {\n return;\n }\n\n var name = loadTemplate(\n /* html */\n \"\" + (this.params.name || '') + \"\");\n this.getGui().appendChild(name);\n };\n\n AgMenuItemComponent.prototype.addTooltip = function () {\n if (!this.params.tooltip) {\n return;\n }\n\n this.tooltip = this.params.tooltip;\n\n if (this.gridOptionsWrapper.isEnableBrowserTooltips()) {\n this.getGui().setAttribute('title', this.tooltip);\n } else {\n this.createManagedBean(new CustomTooltipFeature(this));\n }\n };\n\n AgMenuItemComponent.prototype.getTooltipParams = function () {\n return {\n location: 'menu',\n value: this.tooltip\n };\n };\n\n AgMenuItemComponent.prototype.addShortcut = function () {\n if (!this.params.shortcut && this.params.isCompact) {\n return;\n }\n\n var shortcut = loadTemplate(\n /* html */\n \"\" + (this.params.shortcut || '') + \"\");\n this.getGui().appendChild(shortcut);\n };\n\n AgMenuItemComponent.prototype.addSubMenu = function () {\n if (!this.params.subMenu && this.params.isCompact) {\n return;\n }\n\n var pointer = loadTemplate(\n /* html */\n \"\");\n var eGui = this.getGui();\n\n if (this.params.subMenu) {\n var iconName = this.gridOptionsWrapper.isEnableRtl() ? 'smallLeft' : 'smallRight';\n setAriaExpanded(eGui, false);\n pointer.appendChild(createIconNoSpan(iconName, this.gridOptionsWrapper));\n }\n\n eGui.appendChild(pointer);\n };\n\n AgMenuItemComponent.prototype.onItemSelected = function (event) {\n if (this.params.action) {\n this.params.action();\n } else {\n this.openSubMenu(event && event.type === 'keydown');\n }\n\n if (this.params.subMenu && !this.params.action) {\n return;\n }\n\n var e = {\n type: AgMenuItemComponent.EVENT_MENU_ITEM_SELECTED,\n action: this.params.action,\n checked: this.params.checked,\n cssClasses: this.params.cssClasses,\n disabled: this.params.disabled,\n icon: this.params.icon,\n name: this.params.name,\n shortcut: this.params.shortcut,\n subMenu: this.params.subMenu,\n tooltip: this.params.tooltip,\n event: event\n };\n this.dispatchEvent(e);\n };\n\n AgMenuItemComponent.prototype.onItemActivated = function () {\n var event = {\n type: AgMenuItemComponent.EVENT_MENU_ITEM_ACTIVATED,\n menuItem: this\n };\n this.dispatchEvent(event);\n };\n\n AgMenuItemComponent.prototype.cancelActivate = function () {\n if (this.activateTimeoutId) {\n window.clearTimeout(this.activateTimeoutId);\n this.activateTimeoutId = 0;\n }\n };\n\n AgMenuItemComponent.prototype.cancelDeactivate = function () {\n if (this.deactivateTimeoutId) {\n window.clearTimeout(this.deactivateTimeoutId);\n this.deactivateTimeoutId = 0;\n }\n };\n\n AgMenuItemComponent.prototype.onMouseEnter = function () {\n var _this = this;\n\n this.cancelDeactivate();\n\n if (this.params.isAnotherSubMenuOpen()) {\n // wait to see if the user enters the open sub-menu\n this.activateTimeoutId = window.setTimeout(function () {\n return _this.activate(true);\n }, AgMenuItemComponent.ACTIVATION_DELAY);\n } else {\n // activate immediately\n this.activate(true);\n }\n };\n\n AgMenuItemComponent.prototype.onMouseLeave = function () {\n var _this = this;\n\n this.cancelActivate();\n\n if (this.isSubMenuOpen()) {\n // wait to see if the user enters the sub-menu\n this.deactivateTimeoutId = window.setTimeout(function () {\n return _this.deactivate();\n }, AgMenuItemComponent.ACTIVATION_DELAY);\n } else {\n // de-activate immediately\n this.deactivate();\n }\n };\n\n AgMenuItemComponent.prototype.getClassName = function (suffix) {\n var prefix = this.params.isCompact ? 'ag-compact-menu-option' : 'ag-menu-option';\n return suffix ? prefix + \"-\" + suffix : prefix;\n };\n\n AgMenuItemComponent.EVENT_MENU_ITEM_SELECTED = 'menuItemSelected';\n AgMenuItemComponent.EVENT_MENU_ITEM_ACTIVATED = 'menuItemActivated';\n AgMenuItemComponent.ACTIVATION_DELAY = 80;\n\n __decorate$Q([Autowired('popupService')], AgMenuItemComponent.prototype, \"popupService\", void 0);\n\n __decorate$Q([PostConstruct], AgMenuItemComponent.prototype, \"init\", null);\n\n return AgMenuItemComponent;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$N = undefined && undefined.__extends || function () {\n var _extendStatics136 = function extendStatics(d, b) {\n _extendStatics136 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics136(d, b);\n };\n\n return function (d, b) {\n _extendStatics136(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$6 = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$5 = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$6(arguments[i]));\n }\n\n return ar;\n};\n\nvar FocusService =\n/** @class */\nfunction (_super) {\n __extends$N(FocusService, _super);\n\n function FocusService() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n FocusService_1 = FocusService;\n /**\n * Adds a gridCore to the list of the gridCores monitoring Keyboard Mode\n * in a specific HTMLDocument.\n *\n * @param doc {Document} - The Document containing the gridCore.\n * @param gridCore {GridComp} - The GridCore to be monitored.\n */\n\n FocusService.addKeyboardModeEvents = function (doc, controller) {\n var docControllers = FocusService_1.instancesMonitored.get(doc);\n\n if (docControllers && docControllers.length > 0) {\n if (docControllers.indexOf(controller) === -1) {\n docControllers.push(controller);\n }\n } else {\n FocusService_1.instancesMonitored.set(doc, [controller]);\n doc.addEventListener('keydown', FocusService_1.toggleKeyboardMode);\n doc.addEventListener('mousedown', FocusService_1.toggleKeyboardMode);\n }\n };\n /**\n * Removes a gridCore from the list of the gridCores monitoring Keyboard Mode\n * in a specific HTMLDocument.\n *\n * @param doc {Document} - The Document containing the gridCore.\n * @param gridCore {GridComp} - The GridCore to be removed.\n */\n\n\n FocusService.removeKeyboardModeEvents = function (doc, controller) {\n var docControllers = FocusService_1.instancesMonitored.get(doc);\n var newControllers = [];\n\n if (docControllers && docControllers.length) {\n newControllers = __spread$5(docControllers).filter(function (currentGridCore) {\n return currentGridCore !== controller;\n });\n FocusService_1.instancesMonitored.set(doc, newControllers);\n }\n\n if (newControllers.length === 0) {\n doc.removeEventListener('keydown', FocusService_1.toggleKeyboardMode);\n doc.removeEventListener('mousedown', FocusService_1.toggleKeyboardMode);\n }\n };\n /**\n * This method will be called by `keydown` and `mousedown` events on all Documents monitoring\n * KeyboardMode. It will then fire a KEYBOARD_FOCUS, MOUSE_FOCUS on each gridCore present in\n * the Document allowing each gridCore to maintain a state for KeyboardMode.\n *\n * @param event {KeyboardEvent | MouseEvent | TouchEvent} - The event triggered.\n */\n\n\n FocusService.toggleKeyboardMode = function (event) {\n var isKeyboardActive = FocusService_1.keyboardModeActive;\n var isKeyboardEvent = event.type === 'keydown';\n\n if (isKeyboardEvent) {\n // the following keys should not toggle keyboard mode.\n if (event.ctrlKey || event.metaKey || event.altKey) {\n return;\n }\n }\n\n if (isKeyboardActive && isKeyboardEvent || !isKeyboardActive && !isKeyboardEvent) {\n return;\n }\n\n FocusService_1.keyboardModeActive = isKeyboardEvent;\n var doc = event.target.ownerDocument;\n\n if (!doc) {\n return;\n }\n\n var controllersForDoc = FocusService_1.instancesMonitored.get(doc);\n\n if (controllersForDoc) {\n controllersForDoc.forEach(function (controller) {\n controller.dispatchEvent({\n type: isKeyboardEvent ? Events.EVENT_KEYBOARD_FOCUS : Events.EVENT_MOUSE_FOCUS\n });\n });\n }\n };\n\n FocusService.prototype.init = function () {\n var _this = this;\n\n var clearFocusedCellListener = this.clearFocusedCell.bind(this);\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, clearFocusedCellListener);\n this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.onColumnEverythingChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_GROUP_OPENED, clearFocusedCellListener);\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, clearFocusedCellListener);\n this.ctrlsService.whenReady(function (p) {\n _this.gridCtrl = p.gridCtrl;\n\n var doc = _this.gridOptionsWrapper.getDocument();\n\n FocusService_1.addKeyboardModeEvents(doc, _this.gridCtrl);\n\n _this.addDestroyFunc(function () {\n return _this.unregisterGridCompController(_this.gridCtrl);\n });\n });\n };\n\n FocusService.prototype.unregisterGridCompController = function (gridCompController) {\n var doc = this.gridOptionsWrapper.getDocument();\n FocusService_1.removeKeyboardModeEvents(doc, gridCompController);\n };\n\n FocusService.prototype.onColumnEverythingChanged = function () {\n // if the columns change, check and see if this column still exists. if it does, then\n // we can keep the focused cell. if it doesn't, then we need to drop the focused cell.\n if (!this.focusedCellPosition) {\n return;\n }\n\n var col = this.focusedCellPosition.column;\n var colFromColumnModel = this.columnModel.getGridColumn(col.getId());\n\n if (col !== colFromColumnModel) {\n this.clearFocusedCell();\n }\n };\n\n FocusService.prototype.isKeyboardMode = function () {\n return FocusService_1.keyboardModeActive;\n }; // we check if the browser is focusing something, and if it is, and\n // it's the cell we think is focused, then return the cell. so this\n // methods returns the cell if a) we think it has focus and b) the\n // browser thinks it has focus. this then returns nothing if we\n // first focus a cell, then second click outside the grid, as then the\n // grid cell will still be focused as far as the grid is concerned,\n // however the browser focus will have moved somewhere else.\n\n\n FocusService.prototype.getFocusCellToUseAfterRefresh = function () {\n var eDocument = this.gridOptionsWrapper.getDocument();\n\n if (this.gridOptionsWrapper.isSuppressFocusAfterRefresh() || !this.focusedCellPosition) {\n return null;\n } // we check that the browser is actually focusing on the grid, if it is not, then\n // we have nothing to worry about. we check for ROW data, as this covers both focused Rows (for Full Width Rows)\n // and Cells (covers cells as cells live in rows)\n\n\n if (this.isDomDataMissingInHierarchy(eDocument.activeElement, RowCtrl.DOM_DATA_KEY_ROW_CTRL)) {\n return null;\n }\n\n return this.focusedCellPosition;\n };\n\n FocusService.prototype.getFocusHeaderToUseAfterRefresh = function () {\n var eDocument = this.gridOptionsWrapper.getDocument();\n\n if (this.gridOptionsWrapper.isSuppressFocusAfterRefresh() || !this.focusedHeaderPosition) {\n return null;\n } // we check that the browser is actually focusing on the grid, if it is not, then\n // we have nothing to worry about\n\n\n if (this.isDomDataMissingInHierarchy(eDocument.activeElement, AbstractHeaderCellCtrl.DOM_DATA_KEY_HEADER_CTRL)) {\n return null;\n }\n\n return this.focusedHeaderPosition;\n };\n\n FocusService.prototype.isDomDataMissingInHierarchy = function (eBrowserCell, key) {\n var ePointer = eBrowserCell;\n\n while (ePointer) {\n var data = this.gridOptionsWrapper.getDomData(ePointer, key);\n\n if (data) {\n return false;\n }\n\n ePointer = ePointer.parentNode;\n }\n\n return true;\n };\n\n FocusService.prototype.clearFocusedCell = function () {\n this.focusedCellPosition = null;\n this.onCellFocused(false, false);\n };\n\n FocusService.prototype.getFocusedCell = function () {\n return this.focusedCellPosition;\n };\n\n FocusService.prototype.setFocusedCell = function (params) {\n var column = params.column,\n rowIndex = params.rowIndex,\n rowPinned = params.rowPinned,\n _a = params.forceBrowserFocus,\n forceBrowserFocus = _a === void 0 ? false : _a,\n _b = params.preventScrollOnBrowserFocus,\n preventScrollOnBrowserFocus = _b === void 0 ? false : _b;\n var gridColumn = this.columnModel.getGridColumn(column); // if column doesn't exist, then blank the focused cell and return. this can happen when user sets new columns,\n // and the focused cell is in a column that no longer exists. after columns change, the grid refreshes and tries\n // to re-focus the focused cell.\n\n if (!gridColumn) {\n this.focusedCellPosition = null;\n return;\n }\n\n this.focusedCellPosition = gridColumn ? {\n rowIndex: rowIndex,\n rowPinned: makeNull(rowPinned),\n column: gridColumn\n } : null;\n this.onCellFocused(forceBrowserFocus, preventScrollOnBrowserFocus);\n };\n\n FocusService.prototype.isCellFocused = function (cellPosition) {\n if (this.focusedCellPosition == null) {\n return false;\n }\n\n return this.focusedCellPosition.column === cellPosition.column && this.isRowFocused(cellPosition.rowIndex, cellPosition.rowPinned);\n };\n\n FocusService.prototype.isRowNodeFocused = function (rowNode) {\n return this.isRowFocused(rowNode.rowIndex, rowNode.rowPinned);\n };\n\n FocusService.prototype.isHeaderWrapperFocused = function (headerCtrl) {\n if (this.focusedHeaderPosition == null) {\n return false;\n }\n\n var column = headerCtrl.getColumnGroupChild();\n var headerRowIndex = headerCtrl.getRowIndex();\n var pinned = headerCtrl.getPinned();\n var _a = this.focusedHeaderPosition,\n focusedColumn = _a.column,\n focusedHeaderRowIndex = _a.headerRowIndex;\n return column === focusedColumn && headerRowIndex === focusedHeaderRowIndex && pinned == focusedColumn.getPinned();\n };\n\n FocusService.prototype.clearFocusedHeader = function () {\n this.focusedHeaderPosition = null;\n };\n\n FocusService.prototype.getFocusedHeader = function () {\n return this.focusedHeaderPosition;\n };\n\n FocusService.prototype.setFocusedHeader = function (headerRowIndex, column) {\n this.focusedHeaderPosition = {\n headerRowIndex: headerRowIndex,\n column: column\n };\n };\n\n FocusService.prototype.focusHeaderPosition = function (params) {\n var direction = params.direction,\n fromTab = params.fromTab,\n allowUserOverride = params.allowUserOverride,\n event = params.event;\n var headerPosition = params.headerPosition;\n\n if (allowUserOverride) {\n var gridOptionsWrapper = this.gridOptionsWrapper;\n var currentPosition = this.getFocusedHeader();\n var headerRowCount = this.headerNavigationService.getHeaderRowCount();\n\n if (fromTab) {\n var userFunc = gridOptionsWrapper.getTabToNextHeaderFunc();\n\n if (userFunc) {\n var params_1 = {\n backwards: direction === 'Before',\n previousHeaderPosition: currentPosition,\n nextHeaderPosition: headerPosition,\n headerRowCount: headerRowCount\n };\n headerPosition = userFunc(params_1);\n }\n } else {\n var userFunc = gridOptionsWrapper.getNavigateToNextHeaderFunc();\n\n if (userFunc && event) {\n var params_2 = {\n key: event.key,\n previousHeaderPosition: currentPosition,\n nextHeaderPosition: headerPosition,\n headerRowCount: headerRowCount,\n event: event\n };\n headerPosition = userFunc(params_2);\n }\n }\n }\n\n if (!headerPosition) {\n return false;\n }\n\n if (headerPosition.headerRowIndex === -1) {\n return this.focusGridView(headerPosition.column);\n }\n\n this.headerNavigationService.scrollToColumn(headerPosition.column, direction);\n var headerRowContainerCtrl = this.ctrlsService.getHeaderRowContainerCtrl(headerPosition.column.getPinned()); // this will automatically call the setFocusedHeader method above\n\n var focusSuccess = headerRowContainerCtrl.focusHeader(headerPosition.headerRowIndex, headerPosition.column, event);\n return focusSuccess;\n };\n\n FocusService.prototype.focusFirstHeader = function () {\n var firstColumn = this.columnModel.getAllDisplayedColumns()[0];\n\n if (!firstColumn) {\n return false;\n }\n\n if (firstColumn.getParent()) {\n firstColumn = this.columnModel.getColumnGroupAtLevel(firstColumn, 0);\n }\n\n return this.focusHeaderPosition({\n headerPosition: {\n headerRowIndex: 0,\n column: firstColumn\n }\n });\n };\n\n FocusService.prototype.focusLastHeader = function (event) {\n var headerRowIndex = this.headerNavigationService.getHeaderRowCount() - 1;\n var column = last(this.columnModel.getAllDisplayedColumns());\n return this.focusHeaderPosition({\n headerPosition: {\n headerRowIndex: headerRowIndex,\n column: column\n },\n event: event\n });\n };\n\n FocusService.prototype.isAnyCellFocused = function () {\n return !!this.focusedCellPosition;\n };\n\n FocusService.prototype.isRowFocused = function (rowIndex, floating) {\n if (this.focusedCellPosition == null) {\n return false;\n }\n\n return this.focusedCellPosition.rowIndex === rowIndex && this.focusedCellPosition.rowPinned === makeNull(floating);\n };\n\n FocusService.prototype.findFocusableElements = function (rootNode, exclude, onlyUnmanaged) {\n if (onlyUnmanaged === void 0) {\n onlyUnmanaged = false;\n }\n\n var focusableString = Constants.FOCUSABLE_SELECTOR;\n var excludeString = Constants.FOCUSABLE_EXCLUDE;\n\n if (exclude) {\n excludeString += ', ' + exclude;\n }\n\n if (onlyUnmanaged) {\n excludeString += ', [tabindex=\"-1\"]';\n }\n\n var nodes = Array.prototype.slice.apply(rootNode.querySelectorAll(focusableString));\n var excludeNodes = Array.prototype.slice.apply(rootNode.querySelectorAll(excludeString));\n\n if (!excludeNodes.length) {\n return nodes;\n }\n\n var diff = function diff(a, b) {\n return a.filter(function (element) {\n return b.indexOf(element) === -1;\n });\n };\n\n return diff(nodes, excludeNodes);\n };\n\n FocusService.prototype.focusInto = function (rootNode, up, onlyUnmanaged) {\n if (up === void 0) {\n up = false;\n }\n\n if (onlyUnmanaged === void 0) {\n onlyUnmanaged = false;\n }\n\n var focusableElements = this.findFocusableElements(rootNode, null, onlyUnmanaged);\n var toFocus = up ? last(focusableElements) : focusableElements[0];\n\n if (toFocus) {\n toFocus.focus();\n return true;\n }\n\n return false;\n };\n\n FocusService.prototype.findNextFocusableElement = function (rootNode, onlyManaged, backwards) {\n if (rootNode === void 0) {\n rootNode = this.eGridDiv;\n }\n\n var focusable = this.findFocusableElements(rootNode, onlyManaged ? ':not([tabindex=\"-1\"])' : null);\n var eDocument = this.gridOptionsWrapper.getDocument();\n var activeEl = eDocument.activeElement;\n var currentIndex;\n\n if (onlyManaged) {\n currentIndex = focusable.findIndex(function (el) {\n return el.contains(activeEl);\n });\n } else {\n currentIndex = focusable.indexOf(activeEl);\n }\n\n var nextIndex = currentIndex + (backwards ? -1 : 1);\n\n if (nextIndex < 0 || nextIndex >= focusable.length) {\n return null;\n }\n\n return focusable[nextIndex];\n };\n\n FocusService.prototype.isFocusUnderManagedComponent = function (rootNode) {\n var eDocument = this.gridOptionsWrapper.getDocument();\n var managedContainers = rootNode.querySelectorAll(\".\" + ManagedFocusFeature.FOCUS_MANAGED_CLASS);\n\n if (!managedContainers.length) {\n return false;\n }\n\n for (var i = 0; i < managedContainers.length; i++) {\n if (managedContainers[i].contains(eDocument.activeElement)) {\n return true;\n }\n }\n\n return false;\n };\n\n FocusService.prototype.findTabbableParent = function (node, limit) {\n if (limit === void 0) {\n limit = 5;\n }\n\n var counter = 0;\n\n while (node && getTabIndex(node) === null && ++counter <= limit) {\n node = node.parentElement;\n }\n\n if (getTabIndex(node) === null) {\n return null;\n }\n\n return node;\n };\n\n FocusService.prototype.onCellFocused = function (forceBrowserFocus, preventScrollOnBrowserFocus) {\n var event = {\n type: Events.EVENT_CELL_FOCUSED,\n forceBrowserFocus: forceBrowserFocus,\n preventScrollOnBrowserFocus: preventScrollOnBrowserFocus,\n rowIndex: null,\n column: null,\n floating: null,\n rowPinned: null,\n isFullWidthCell: false\n };\n\n if (this.focusedCellPosition) {\n var rowIndex = event.rowIndex = this.focusedCellPosition.rowIndex;\n var rowPinned = event.rowPinned = this.focusedCellPosition.rowPinned;\n event.column = this.focusedCellPosition.column;\n var rowCtrl = this.rowRenderer.getRowByPosition({\n rowIndex: rowIndex,\n rowPinned: rowPinned\n });\n\n if (rowCtrl) {\n event.isFullWidthCell = rowCtrl.isFullWidth();\n }\n }\n\n this.eventService.dispatchEvent(event);\n };\n\n FocusService.prototype.focusGridView = function (column, backwards) {\n // if suppressCellFocus is `true`, it means the user does not want to\n // navigate between the cells using tab. Instead, we put focus on either\n // the header or after the grid, depending on whether tab or shift-tab was pressed.\n if (this.gridOptionsWrapper.isSuppressCellFocus()) {\n if (backwards) {\n return this.focusLastHeader();\n }\n\n return this.focusNextGridCoreContainer(false);\n }\n\n var nextRow = backwards ? this.rowPositionUtils.getLastRow() : this.rowPositionUtils.getFirstRow();\n\n if (!nextRow) {\n return false;\n }\n\n var rowIndex = nextRow.rowIndex,\n rowPinned = nextRow.rowPinned;\n var focusedHeader = this.getFocusedHeader();\n\n if (!column && focusedHeader) {\n column = focusedHeader.column;\n }\n\n if (rowIndex == null || !column) {\n return false;\n }\n\n this.navigationService.ensureCellVisible({\n rowIndex: rowIndex,\n column: column,\n rowPinned: rowPinned\n });\n this.setFocusedCell({\n rowIndex: rowIndex,\n column: column,\n rowPinned: makeNull(rowPinned),\n forceBrowserFocus: true\n });\n\n if (this.rangeService) {\n var cellPosition = {\n rowIndex: rowIndex,\n rowPinned: rowPinned,\n column: column\n };\n this.rangeService.setRangeToCell(cellPosition);\n }\n\n return true;\n };\n\n FocusService.prototype.focusNextGridCoreContainer = function (backwards) {\n if (this.gridCtrl.focusNextInnerContainer(backwards)) {\n return true;\n }\n\n if (!backwards && !this.gridCtrl.isDetailGrid()) {\n this.gridCtrl.forceFocusOutOfContainer();\n }\n\n return false;\n };\n\n var FocusService_1;\n FocusService.AG_KEYBOARD_FOCUS = 'ag-keyboard-focus';\n FocusService.keyboardModeActive = false;\n FocusService.instancesMonitored = new Map();\n\n __decorate$P([Autowired('eGridDiv')], FocusService.prototype, \"eGridDiv\", void 0);\n\n __decorate$P([Autowired('columnModel')], FocusService.prototype, \"columnModel\", void 0);\n\n __decorate$P([Autowired('headerNavigationService')], FocusService.prototype, \"headerNavigationService\", void 0);\n\n __decorate$P([Autowired('rowRenderer')], FocusService.prototype, \"rowRenderer\", void 0);\n\n __decorate$P([Autowired('rowPositionUtils')], FocusService.prototype, \"rowPositionUtils\", void 0);\n\n __decorate$P([Optional('rangeService')], FocusService.prototype, \"rangeService\", void 0);\n\n __decorate$P([Autowired('navigationService')], FocusService.prototype, \"navigationService\", void 0);\n\n __decorate$P([Autowired('ctrlsService')], FocusService.prototype, \"ctrlsService\", void 0);\n\n __decorate$P([PostConstruct], FocusService.prototype, \"init\", null);\n\n FocusService = FocusService_1 = __decorate$P([Bean('focusService')], FocusService);\n return FocusService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$M = undefined && undefined.__extends || function () {\n var _extendStatics137 = function extendStatics(d, b) {\n _extendStatics137 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics137(d, b);\n };\n\n return function (d, b) {\n _extendStatics137(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$5 = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$4 = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$5(arguments[i]));\n }\n\n return ar;\n};\n\nvar DIRECTION;\n\n(function (DIRECTION) {\n DIRECTION[DIRECTION[\"vertical\"] = 0] = \"vertical\";\n DIRECTION[DIRECTION[\"horizontal\"] = 1] = \"horizontal\";\n})(DIRECTION || (DIRECTION = {}));\n\nvar instanceIdSeq = 0;\n\nvar PopupService =\n/** @class */\nfunction (_super) {\n __extends$M(PopupService, _super);\n\n function PopupService() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.popupList = [];\n return _this;\n }\n\n PopupService.prototype.postConstruct = function () {\n var _this = this;\n\n this.ctrlsService.whenReady(function (p) {\n _this.gridCtrl = p.gridCtrl;\n\n _this.addManagedListener(_this.gridCtrl, Events.EVENT_KEYBOARD_FOCUS, function () {\n _this.popupList.forEach(function (popup) {\n return popup.element.classList.add(FocusService.AG_KEYBOARD_FOCUS);\n });\n });\n\n _this.addManagedListener(_this.gridCtrl, Events.EVENT_MOUSE_FOCUS, function () {\n _this.popupList.forEach(function (popup) {\n return popup.element.classList.remove(FocusService.AG_KEYBOARD_FOCUS);\n });\n });\n });\n };\n\n PopupService.prototype.getPopupParent = function () {\n var ePopupParent = this.gridOptionsWrapper.getPopupParent();\n\n if (ePopupParent) {\n return ePopupParent;\n }\n\n return this.gridCtrl.getGui();\n };\n\n PopupService.prototype.positionPopupForMenu = function (params) {\n var sourceRect = params.eventSource.getBoundingClientRect();\n var parentRect = this.getParentRect();\n var y = this.keepXYWithinBounds(params.ePopup, sourceRect.top - parentRect.top, DIRECTION.vertical);\n var minWidth = params.ePopup.clientWidth > 0 ? params.ePopup.clientWidth : 200;\n params.ePopup.style.minWidth = minWidth + \"px\";\n var widthOfParent = parentRect.right - parentRect.left;\n var maxX = widthOfParent - minWidth; // the x position of the popup depends on RTL or LTR. for normal cases, LTR, we put the child popup\n // to the right, unless it doesn't fit and we then put it to the left. for RTL it's the other way around,\n // we try place it first to the left, and then if not to the right.\n\n var x;\n\n if (this.gridOptionsWrapper.isEnableRtl()) {\n // for RTL, try left first\n x = xLeftPosition();\n\n if (x < 0) {\n x = xRightPosition();\n }\n\n if (x > maxX) {\n x = 0;\n }\n } else {\n // for LTR, try right first\n x = xRightPosition();\n\n if (x > maxX) {\n x = xLeftPosition();\n }\n\n if (x < 0) {\n x = 0;\n }\n }\n\n params.ePopup.style.left = x + \"px\";\n params.ePopup.style.top = y + \"px\";\n\n function xRightPosition() {\n return sourceRect.right - parentRect.left - 2;\n }\n\n function xLeftPosition() {\n return sourceRect.left - parentRect.left - minWidth;\n }\n };\n\n PopupService.prototype.positionPopupUnderMouseEvent = function (params) {\n var ePopup = params.ePopup,\n nudgeX = params.nudgeX,\n nudgeY = params.nudgeY;\n\n var _a = this.calculatePointerAlign(params.mouseEvent),\n x = _a.x,\n y = _a.y;\n\n this.positionPopup({\n ePopup: ePopup,\n x: x,\n y: y,\n nudgeX: nudgeX,\n nudgeY: nudgeY,\n keepWithinBounds: true\n });\n this.callPostProcessPopup(params.type, params.ePopup, null, params.mouseEvent, params.column, params.rowNode);\n };\n\n PopupService.prototype.calculatePointerAlign = function (e) {\n var parentRect = this.getParentRect();\n return {\n x: e.clientX - parentRect.left,\n y: e.clientY - parentRect.top\n };\n };\n\n PopupService.prototype.positionPopupUnderComponent = function (params) {\n var sourceRect = params.eventSource.getBoundingClientRect();\n var alignSide = params.alignSide || 'left';\n var parentRect = this.getParentRect();\n var x = sourceRect.left - parentRect.left;\n\n if (alignSide === 'right') {\n x -= params.ePopup.offsetWidth - sourceRect.width;\n }\n\n this.positionPopup({\n ePopup: params.ePopup,\n nudgeX: params.nudgeX,\n nudgeY: params.nudgeY,\n x: x,\n y: sourceRect.top - parentRect.top + sourceRect.height,\n keepWithinBounds: params.keepWithinBounds\n });\n this.callPostProcessPopup(params.type, params.ePopup, params.eventSource, null, params.column, params.rowNode);\n };\n\n PopupService.prototype.positionPopupOverComponent = function (params) {\n var sourceRect = params.eventSource.getBoundingClientRect();\n var parentRect = this.getParentRect();\n this.positionPopup({\n ePopup: params.ePopup,\n nudgeX: params.nudgeX,\n nudgeY: params.nudgeY,\n x: sourceRect.left - parentRect.left,\n y: sourceRect.top - parentRect.top,\n keepWithinBounds: params.keepWithinBounds\n });\n this.callPostProcessPopup(params.type, params.ePopup, params.eventSource, null, params.column, params.rowNode);\n };\n\n PopupService.prototype.callPostProcessPopup = function (type, ePopup, eventSource, mouseEvent, column, rowNode) {\n var callback = this.gridOptionsWrapper.getPostProcessPopupFunc();\n\n if (callback) {\n var params = {\n column: column,\n rowNode: rowNode,\n ePopup: ePopup,\n type: type,\n eventSource: eventSource,\n mouseEvent: mouseEvent\n };\n callback(params);\n }\n };\n\n PopupService.prototype.positionPopup = function (params) {\n var ePopup = params.ePopup,\n keepWithinBounds = params.keepWithinBounds,\n nudgeX = params.nudgeX,\n nudgeY = params.nudgeY;\n var x = params.x,\n y = params.y;\n\n if (nudgeX) {\n x += nudgeX;\n }\n\n if (nudgeY) {\n y += nudgeY;\n } // if popup is overflowing to the bottom, move it up\n\n\n if (keepWithinBounds) {\n x = this.keepXYWithinBounds(ePopup, x, DIRECTION.horizontal);\n y = this.keepXYWithinBounds(ePopup, y, DIRECTION.vertical);\n }\n\n ePopup.style.left = x + \"px\";\n ePopup.style.top = y + \"px\";\n };\n\n PopupService.prototype.getActivePopups = function () {\n return this.popupList.map(function (popup) {\n return popup.element;\n });\n };\n\n PopupService.prototype.getPopupList = function () {\n return this.popupList;\n };\n\n PopupService.prototype.getParentRect = function () {\n // subtract the popup parent borders, because popupParent.getBoundingClientRect\n // returns the rect outside the borders, but the 0,0 coordinate for absolute\n // positioning is inside the border, leading the popup to be off by the width\n // of the border\n var eDocument = this.gridOptionsWrapper.getDocument();\n var popupParent = this.getPopupParent();\n\n if (popupParent === eDocument.body) {\n popupParent = eDocument.documentElement;\n } else if (getComputedStyle(popupParent).position === 'static') {\n popupParent = popupParent.offsetParent;\n }\n\n var style = getComputedStyle(popupParent);\n var bounds = popupParent.getBoundingClientRect();\n return {\n top: bounds.top + parseFloat(style.borderTopWidth) || 0,\n left: bounds.left + parseFloat(style.borderLeftWidth) || 0,\n right: bounds.right + parseFloat(style.borderRightWidth) || 0,\n bottom: bounds.bottom + parseFloat(style.borderBottomWidth) || 0\n };\n };\n\n PopupService.prototype.keepXYWithinBounds = function (ePopup, position, direction) {\n var isVertical = direction === DIRECTION.vertical;\n var sizeProperty = isVertical ? 'clientHeight' : 'clientWidth';\n var anchorProperty = isVertical ? 'top' : 'left';\n var offsetProperty = isVertical ? 'offsetHeight' : 'offsetWidth';\n var scrollPositionProperty = isVertical ? 'scrollTop' : 'scrollLeft';\n var eDocument = this.gridOptionsWrapper.getDocument();\n var docElement = eDocument.documentElement;\n var popupParent = this.getPopupParent();\n var parentRect = popupParent.getBoundingClientRect();\n var documentRect = eDocument.documentElement.getBoundingClientRect();\n var isBody = popupParent === eDocument.body;\n var offsetSize = ePopup[offsetProperty];\n var getSize = isVertical ? getAbsoluteHeight : getAbsoluteWidth;\n var sizeOfParent = isBody ? getSize(docElement) + docElement[scrollPositionProperty] : popupParent[sizeProperty];\n\n if (isBody) {\n sizeOfParent -= Math.abs(documentRect[anchorProperty] - parentRect[anchorProperty]);\n }\n\n var max = sizeOfParent - offsetSize;\n return Math.min(Math.max(position, 0), Math.abs(max));\n };\n\n PopupService.prototype.keepPopupPositionedRelativeTo = function (params) {\n var _this = this;\n\n var eParent = this.getPopupParent();\n var parentRect = eParent.getBoundingClientRect();\n var sourceRect = params.element.getBoundingClientRect();\n var initialDiffTop = parentRect.top - sourceRect.top;\n var initialDiffLeft = parentRect.left - sourceRect.left;\n var lastDiffTop = initialDiffTop;\n var lastDiffLeft = initialDiffLeft;\n var topPx = params.ePopup.style.top;\n var top = parseInt(topPx.substring(0, topPx.length - 1), 10);\n var leftPx = params.ePopup.style.left;\n var left = parseInt(leftPx.substring(0, leftPx.length - 1), 10);\n return new AgPromise(function (resolve) {\n _this.getFrameworkOverrides().setInterval(function () {\n var pRect = eParent.getBoundingClientRect();\n var sRect = params.element.getBoundingClientRect();\n var elementNotInDom = sRect.top == 0 && sRect.left == 0 && sRect.height == 0 && sRect.width == 0;\n\n if (elementNotInDom) {\n params.hidePopup();\n return;\n }\n\n var currentDiffTop = pRect.top - sRect.top;\n\n if (currentDiffTop != lastDiffTop) {\n var newTop = _this.keepXYWithinBounds(params.ePopup, top + initialDiffTop - currentDiffTop, DIRECTION.vertical);\n\n params.ePopup.style.top = newTop + \"px\";\n }\n\n lastDiffTop = currentDiffTop;\n var currentDiffLeft = pRect.left - sRect.left;\n\n if (currentDiffLeft != lastDiffLeft) {\n var newLeft = _this.keepXYWithinBounds(params.ePopup, left + initialDiffLeft - currentDiffLeft, DIRECTION.horizontal);\n\n params.ePopup.style.left = newLeft + \"px\";\n }\n\n lastDiffLeft = currentDiffLeft;\n }, 200).then(function (intervalId) {\n var result = function result() {\n if (intervalId != null) {\n window.clearInterval(intervalId);\n }\n };\n\n resolve(result);\n });\n });\n };\n\n PopupService.prototype.addPopup = function (params) {\n var _a;\n\n var _this = this;\n\n var modal = params.modal,\n eChild = params.eChild,\n closeOnEsc = params.closeOnEsc,\n closedCallback = params.closedCallback,\n click = params.click,\n alwaysOnTop = params.alwaysOnTop,\n afterGuiAttached = params.afterGuiAttached,\n positionCallback = params.positionCallback,\n anchorToElement = params.anchorToElement,\n ariaLabel = params.ariaLabel;\n var eDocument = this.gridOptionsWrapper.getDocument();\n var destroyPositionTracker = new AgPromise(function (resolve) {\n return resolve(function () {});\n });\n\n if (!eDocument) {\n console.warn('ag-grid: could not find the document, document is empty');\n return {\n hideFunc: function hideFunc() {},\n stopAnchoringPromise: destroyPositionTracker\n };\n }\n\n var pos = this.popupList.findIndex(function (popup) {\n return popup.element === eChild;\n });\n\n if (pos !== -1) {\n var popup = this.popupList[pos];\n return {\n hideFunc: popup.hideFunc,\n stopAnchoringPromise: popup.stopAnchoringPromise\n };\n }\n\n var ePopupParent = this.getPopupParent();\n\n if (eChild.style.top == null) {\n eChild.style.top = '0px';\n }\n\n if (eChild.style.left == null) {\n eChild.style.left = '0px';\n } // add env CSS class to child, in case user provided a popup parent, which means\n // theme class may be missing\n\n\n var eWrapper = document.createElement('div');\n var allThemes = this.environment.getTheme().allThemes;\n\n if (allThemes.length) {\n (_a = eWrapper.classList).add.apply(_a, __spread$4(allThemes));\n }\n\n eWrapper.classList.add('ag-popup');\n eChild.classList.add(this.gridOptionsWrapper.isEnableRtl() ? 'ag-rtl' : 'ag-ltr', 'ag-popup-child');\n\n if (!eChild.hasAttribute('role')) {\n setAriaRole(eChild, 'dialog');\n }\n\n setAriaLabel(eChild, ariaLabel);\n\n if (this.focusService.isKeyboardMode()) {\n eChild.classList.add(FocusService.AG_KEYBOARD_FOCUS);\n }\n\n eWrapper.appendChild(eChild);\n ePopupParent.appendChild(eWrapper);\n\n if (alwaysOnTop) {\n this.setAlwaysOnTop(eWrapper, true);\n } else {\n this.bringPopupToFront(eWrapper);\n }\n\n var popupHidden = false;\n\n var hidePopupOnKeyboardEvent = function hidePopupOnKeyboardEvent(event) {\n if (!eWrapper.contains(eDocument.activeElement)) {\n return;\n }\n\n var key = event.key;\n\n if (key === KeyCode.ESCAPE) {\n hidePopup({\n keyboardEvent: event\n });\n }\n };\n\n var hidePopupOnMouseEvent = function hidePopupOnMouseEvent(event) {\n return hidePopup({\n mouseEvent: event\n });\n };\n\n var hidePopupOnTouchEvent = function hidePopupOnTouchEvent(event) {\n return hidePopup({\n touchEvent: event\n });\n };\n\n var hidePopup = function hidePopup(popupParams) {\n if (popupParams === void 0) {\n popupParams = {};\n }\n\n var mouseEvent = popupParams.mouseEvent,\n touchEvent = popupParams.touchEvent,\n keyboardEvent = popupParams.keyboardEvent;\n\n if ( // we don't hide popup if the event was on the child, or any\n // children of this child\n _this.isEventFromCurrentPopup({\n mouseEvent: mouseEvent,\n touchEvent: touchEvent\n }, eChild) || // if the event to close is actually the open event, then ignore it\n _this.isEventSameChainAsOriginalEvent({\n originalMouseEvent: click,\n mouseEvent: mouseEvent,\n touchEvent: touchEvent\n }) || // this method should only be called once. the client can have different\n // paths, each one wanting to close, so this method may be called multiple times.\n popupHidden) {\n return;\n }\n\n popupHidden = true;\n ePopupParent.removeChild(eWrapper);\n eDocument.removeEventListener('keydown', hidePopupOnKeyboardEvent);\n eDocument.removeEventListener('mousedown', hidePopupOnMouseEvent);\n eDocument.removeEventListener('touchstart', hidePopupOnTouchEvent);\n eDocument.removeEventListener('contextmenu', hidePopupOnMouseEvent);\n\n _this.eventService.removeEventListener(Events.EVENT_DRAG_STARTED, hidePopupOnMouseEvent);\n\n if (closedCallback) {\n closedCallback(mouseEvent || touchEvent || keyboardEvent);\n }\n\n _this.popupList = _this.popupList.filter(function (popup) {\n return popup.element !== eChild;\n });\n\n if (destroyPositionTracker) {\n destroyPositionTracker.then(function (destroyFunc) {\n return destroyFunc && destroyFunc();\n });\n }\n };\n\n if (afterGuiAttached) {\n afterGuiAttached({\n hidePopup: hidePopup\n });\n } // if we add these listeners now, then the current mouse\n // click will be included, which we don't want\n\n\n window.setTimeout(function () {\n if (closeOnEsc) {\n eDocument.addEventListener('keydown', hidePopupOnKeyboardEvent);\n }\n\n if (modal) {\n eDocument.addEventListener('mousedown', hidePopupOnMouseEvent);\n\n _this.eventService.addEventListener(Events.EVENT_DRAG_STARTED, hidePopupOnMouseEvent);\n\n eDocument.addEventListener('touchstart', hidePopupOnTouchEvent);\n eDocument.addEventListener('contextmenu', hidePopupOnMouseEvent);\n }\n }, 0);\n\n if (positionCallback) {\n positionCallback();\n }\n\n if (anchorToElement) {\n // keeps popup positioned under created, eg if context menu, if user scrolls\n // using touchpad and the cell moves, it moves the popup to keep it with the cell.\n destroyPositionTracker = this.keepPopupPositionedRelativeTo({\n element: anchorToElement,\n ePopup: eChild,\n hidePopup: hidePopup\n });\n }\n\n this.popupList.push({\n element: eChild,\n wrapper: eWrapper,\n hideFunc: hidePopup,\n stopAnchoringPromise: destroyPositionTracker,\n instanceId: instanceIdSeq++,\n isAnchored: !!anchorToElement\n });\n return {\n hideFunc: hidePopup,\n stopAnchoringPromise: destroyPositionTracker\n };\n };\n\n PopupService.prototype.hasAnchoredPopup = function () {\n return this.popupList.some(function (popup) {\n return popup.isAnchored;\n });\n };\n\n PopupService.prototype.isEventFromCurrentPopup = function (params, target) {\n var mouseEvent = params.mouseEvent,\n touchEvent = params.touchEvent;\n var event = mouseEvent ? mouseEvent : touchEvent;\n\n if (!event) {\n return false;\n }\n\n var indexOfThisChild = this.popupList.findIndex(function (popup) {\n return popup.element === target;\n });\n\n if (indexOfThisChild === -1) {\n return false;\n }\n\n for (var i = indexOfThisChild; i < this.popupList.length; i++) {\n var popup = this.popupList[i];\n\n if (isElementInEventPath(popup.element, event)) {\n return true;\n }\n } // if the user did not write their own Custom Element to be rendered as popup\n // and this component has an additional popup element, they should have the\n // `ag-custom-component-popup` class to be detected as part of the Custom Component\n\n\n return this.isElementWithinCustomPopup(event.target);\n };\n\n PopupService.prototype.isElementWithinCustomPopup = function (el) {\n var eDocument = this.gridOptionsWrapper.getDocument();\n\n while (el && el !== eDocument.body) {\n if (el.classList.contains('ag-custom-component-popup') || el.parentElement === null) {\n return true;\n }\n\n el = el.parentElement;\n }\n\n return false;\n }; // in some browsers, the context menu event can be fired before the click event, which means\n // the context menu event could open the popup, but then the click event closes it straight away.\n\n\n PopupService.prototype.isEventSameChainAsOriginalEvent = function (params) {\n var originalMouseEvent = params.originalMouseEvent,\n mouseEvent = params.mouseEvent,\n touchEvent = params.touchEvent; // we check the coordinates of the event, to see if it's the same event. there is a 1 / 1000 chance that\n // the event is a different event, however that is an edge case that is not very relevant (the user clicking\n // twice on the same location isn't a normal path).\n // event could be mouse event or touch event.\n\n var mouseEventOrTouch = null;\n\n if (mouseEvent) {\n // mouse event can be used direction, it has coordinates\n mouseEventOrTouch = mouseEvent;\n } else if (touchEvent) {\n // touch event doesn't have coordinates, need it's touch object\n mouseEventOrTouch = touchEvent.touches[0];\n }\n\n if (mouseEventOrTouch && originalMouseEvent) {\n // for x, allow 4px margin, to cover iPads, where touch (which opens menu) is followed\n // by browser click (when you finger up, touch is interrupted as click in browser)\n var screenX_1 = mouseEvent ? mouseEvent.screenX : 0;\n var screenY_1 = mouseEvent ? mouseEvent.screenY : 0;\n var xMatch = Math.abs(originalMouseEvent.screenX - screenX_1) < 5;\n var yMatch = Math.abs(originalMouseEvent.screenY - screenY_1) < 5;\n\n if (xMatch && yMatch) {\n return true;\n }\n }\n\n return false;\n };\n\n PopupService.prototype.getWrapper = function (ePopup) {\n while (!ePopup.classList.contains('ag-popup') && ePopup.parentElement) {\n ePopup = ePopup.parentElement;\n }\n\n return ePopup.classList.contains('ag-popup') ? ePopup : null;\n };\n\n PopupService.prototype.setAlwaysOnTop = function (ePopup, alwaysOnTop) {\n var eWrapper = this.getWrapper(ePopup);\n\n if (!eWrapper) {\n return;\n }\n\n eWrapper.classList.toggle('ag-always-on-top', !!alwaysOnTop);\n\n if (alwaysOnTop) {\n this.bringPopupToFront(eWrapper);\n }\n };\n\n PopupService.prototype.bringPopupToFront = function (ePopup) {\n var parent = this.getPopupParent();\n var popupList = Array.prototype.slice.call(parent.querySelectorAll('.ag-popup'));\n var popupLen = popupList.length;\n var alwaysOnTopList = Array.prototype.slice.call(parent.querySelectorAll('.ag-popup.ag-always-on-top'));\n var onTopLength = alwaysOnTopList.length;\n var eWrapper = this.getWrapper(ePopup);\n\n if (!eWrapper || popupLen <= 1 || !parent.contains(ePopup)) {\n return;\n }\n\n var pos = popupList.indexOf(eWrapper);\n var innerEls = eWrapper.querySelectorAll('div');\n var innerElsScrollMap = [];\n innerEls.forEach(function (el) {\n if (el.scrollTop !== 0) {\n innerElsScrollMap.push([el, el.scrollTop]);\n }\n });\n\n if (onTopLength) {\n var isPopupAlwaysOnTop = eWrapper.classList.contains('ag-always-on-top');\n\n if (isPopupAlwaysOnTop) {\n if (pos !== popupLen - 1) {\n last(alwaysOnTopList).insertAdjacentElement('afterend', eWrapper);\n }\n } else if (pos !== popupLen - onTopLength - 1) {\n alwaysOnTopList[0].insertAdjacentElement('beforebegin', eWrapper);\n }\n } else if (pos !== popupLen - 1) {\n last(popupList).insertAdjacentElement('afterend', eWrapper);\n }\n\n while (innerElsScrollMap.length) {\n var currentEl = innerElsScrollMap.pop();\n currentEl[0].scrollTop = currentEl[1];\n }\n\n var params = {\n type: 'popupToFront',\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n eWrapper: eWrapper\n };\n this.eventService.dispatchEvent(params);\n };\n\n __decorate$O([Autowired('environment')], PopupService.prototype, \"environment\", void 0);\n\n __decorate$O([Autowired('focusService')], PopupService.prototype, \"focusService\", void 0);\n\n __decorate$O([Autowired('ctrlsService')], PopupService.prototype, \"ctrlsService\", void 0);\n\n __decorate$O([PostConstruct], PopupService.prototype, \"postConstruct\", null);\n\n PopupService = __decorate$O([Bean('popupService')], PopupService);\n return PopupService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$L = undefined && undefined.__extends || function () {\n var _extendStatics138 = function extendStatics(d, b) {\n _extendStatics138 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics138(d, b);\n };\n\n return function (d, b) {\n _extendStatics138(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar VirtualList =\n/** @class */\nfunction (_super) {\n __extends$L(VirtualList, _super);\n\n function VirtualList(cssIdentifier, ariaRole, listName) {\n if (cssIdentifier === void 0) {\n cssIdentifier = 'default';\n }\n\n if (ariaRole === void 0) {\n ariaRole = 'listbox';\n }\n\n var _this = _super.call(this, VirtualList.getTemplate(cssIdentifier)) || this;\n\n _this.cssIdentifier = cssIdentifier;\n _this.ariaRole = ariaRole;\n _this.listName = listName;\n _this.renderedRows = new Map();\n _this.rowHeight = 20;\n _this.isDestroyed = false;\n return _this;\n }\n\n VirtualList.prototype.postConstruct = function () {\n var _this = this;\n\n this.addScrollListener();\n this.rowHeight = this.getItemHeight();\n this.addResizeObserver();\n this.initialiseTabGuard({\n onFocusIn: function onFocusIn(e) {\n return _this.onFocusIn(e);\n },\n onFocusOut: function onFocusOut(e) {\n return _this.onFocusOut(e);\n },\n focusInnerElement: function focusInnerElement(fromBottom) {\n return _this.focusInnerElement(fromBottom);\n },\n onTabKeyDown: function onTabKeyDown(e) {\n return _this.onTabKeyDown(e);\n },\n handleKeyDown: function handleKeyDown(e) {\n return _this.handleKeyDown(e);\n }\n });\n this.setAriaProperties();\n };\n\n VirtualList.prototype.setAriaProperties = function () {\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var listName = translate('ariaDefaultListName', this.listName || 'List');\n var ariaEl = this.eContainer;\n setAriaRole(ariaEl, this.ariaRole);\n setAriaLabel(ariaEl, listName);\n };\n\n VirtualList.prototype.addResizeObserver = function () {\n var listener = this.drawVirtualRows.bind(this);\n var destroyObserver = this.resizeObserverService.observeResize(this.getGui(), listener);\n this.addDestroyFunc(destroyObserver);\n };\n\n VirtualList.prototype.focusInnerElement = function (fromBottom) {\n this.focusRow(fromBottom ? this.model.getRowCount() - 1 : 0);\n };\n\n VirtualList.prototype.onFocusIn = function (e) {\n var target = e.target;\n\n if (target.classList.contains('ag-virtual-list-item')) {\n this.lastFocusedRowIndex = getAriaPosInSet(target) - 1;\n }\n\n return false;\n };\n\n VirtualList.prototype.onFocusOut = function (e) {\n if (!this.getFocusableElement().contains(e.relatedTarget)) {\n this.lastFocusedRowIndex = null;\n }\n\n return false;\n };\n\n VirtualList.prototype.handleKeyDown = function (e) {\n switch (e.key) {\n case KeyCode.UP:\n case KeyCode.DOWN:\n if (this.navigate(e.key === KeyCode.UP)) {\n e.preventDefault();\n }\n\n break;\n }\n };\n\n VirtualList.prototype.onTabKeyDown = function (e) {\n if (this.navigate(e.shiftKey)) {\n e.preventDefault();\n } else {\n // focus on the first or last focusable element to ensure that any other handlers start from there\n this.focusService.focusInto(this.getGui(), !e.shiftKey);\n }\n };\n\n VirtualList.prototype.navigate = function (up) {\n if (this.lastFocusedRowIndex == null) {\n return false;\n }\n\n var nextRow = this.lastFocusedRowIndex + (up ? -1 : 1);\n\n if (nextRow < 0 || nextRow >= this.model.getRowCount()) {\n return false;\n }\n\n this.focusRow(nextRow);\n return true;\n };\n\n VirtualList.prototype.getLastFocusedRow = function () {\n return this.lastFocusedRowIndex;\n };\n\n VirtualList.prototype.focusRow = function (rowNumber) {\n var _this = this;\n\n this.ensureIndexVisible(rowNumber);\n window.setTimeout(function () {\n var renderedRow = _this.renderedRows.get(rowNumber);\n\n if (renderedRow) {\n renderedRow.eDiv.focus();\n }\n }, 10);\n };\n\n VirtualList.prototype.getComponentAt = function (rowIndex) {\n var comp = this.renderedRows.get(rowIndex);\n return comp && comp.rowComponent;\n };\n\n VirtualList.prototype.forEachRenderedRow = function (func) {\n this.renderedRows.forEach(function (value, key) {\n return func(value.rowComponent, key);\n });\n };\n\n VirtualList.getTemplate = function (cssIdentifier) {\n return (\n /* html */\n \"\\n
\\n
\\n
\"\n );\n };\n\n VirtualList.prototype.getItemHeight = function () {\n return this.gridOptionsWrapper.getListItemHeight();\n };\n\n VirtualList.prototype.ensureIndexVisible = function (index) {\n var lastRow = this.model.getRowCount();\n\n if (typeof index !== 'number' || index < 0 || index >= lastRow) {\n console.warn('AG Grid: invalid row index for ensureIndexVisible: ' + index);\n return;\n }\n\n var rowTopPixel = index * this.rowHeight;\n var rowBottomPixel = rowTopPixel + this.rowHeight;\n var eGui = this.getGui();\n var viewportTopPixel = eGui.scrollTop;\n var viewportHeight = eGui.offsetHeight;\n var viewportBottomPixel = viewportTopPixel + viewportHeight;\n var viewportScrolledPastRow = viewportTopPixel > rowTopPixel;\n var viewportScrolledBeforeRow = viewportBottomPixel < rowBottomPixel;\n\n if (viewportScrolledPastRow) {\n // if row is before, scroll up with row at top\n eGui.scrollTop = rowTopPixel;\n } else if (viewportScrolledBeforeRow) {\n // if row is below, scroll down with row at bottom\n var newScrollPosition = rowBottomPixel - viewportHeight;\n eGui.scrollTop = newScrollPosition;\n }\n };\n\n VirtualList.prototype.setComponentCreator = function (componentCreator) {\n this.componentCreator = componentCreator;\n };\n\n VirtualList.prototype.getRowHeight = function () {\n return this.rowHeight;\n };\n\n VirtualList.prototype.getScrollTop = function () {\n return this.getGui().scrollTop;\n };\n\n VirtualList.prototype.setRowHeight = function (rowHeight) {\n this.rowHeight = rowHeight;\n this.refresh();\n };\n\n VirtualList.prototype.refresh = function () {\n var _this = this;\n\n if (this.model == null || this.isDestroyed) {\n return;\n }\n\n var rowCount = this.model.getRowCount();\n this.eContainer.style.height = rowCount * this.rowHeight + \"px\"; // ensure height is applied before attempting to redraw rows\n\n waitUntil(function () {\n return _this.eContainer.clientHeight >= rowCount * _this.rowHeight;\n }, function () {\n if (_this.isDestroyed) {\n return;\n }\n\n _this.clearVirtualRows();\n\n _this.drawVirtualRows();\n });\n };\n\n VirtualList.prototype.clearVirtualRows = function () {\n var _this = this;\n\n this.renderedRows.forEach(function (_, rowIndex) {\n return _this.removeRow(rowIndex);\n });\n };\n\n VirtualList.prototype.drawVirtualRows = function () {\n if (!this.isAlive()) {\n return;\n }\n\n var gui = this.getGui();\n var topPixel = gui.scrollTop;\n var bottomPixel = topPixel + gui.offsetHeight;\n var firstRow = Math.floor(topPixel / this.rowHeight);\n var lastRow = Math.floor(bottomPixel / this.rowHeight);\n this.ensureRowsRendered(firstRow, lastRow);\n };\n\n VirtualList.prototype.ensureRowsRendered = function (start, finish) {\n var _this = this; // remove any rows that are no longer required\n\n\n this.renderedRows.forEach(function (_, rowIndex) {\n if ((rowIndex < start || rowIndex > finish) && rowIndex !== _this.lastFocusedRowIndex) {\n _this.removeRow(rowIndex);\n }\n }); // insert any required new rows\n\n for (var rowIndex = start; rowIndex <= finish; rowIndex++) {\n if (this.renderedRows.has(rowIndex)) {\n continue;\n } // check this row actually exists (in case overflow buffer window exceeds real data)\n\n\n if (rowIndex < this.model.getRowCount()) {\n this.insertRow(rowIndex);\n }\n }\n };\n\n VirtualList.prototype.insertRow = function (rowIndex) {\n var _this = this;\n\n var value = this.model.getRow(rowIndex);\n var eDiv = document.createElement('div');\n eDiv.classList.add('ag-virtual-list-item', \"ag-\" + this.cssIdentifier + \"-virtual-list-item\");\n setAriaRole(eDiv, this.ariaRole === 'tree' ? 'treeitem' : 'option');\n setAriaSetSize(eDiv, this.model.getRowCount());\n setAriaPosInSet(eDiv, rowIndex + 1);\n eDiv.setAttribute('tabindex', '-1');\n\n if (typeof this.model.isRowSelected === 'function') {\n var isSelected = this.model.isRowSelected(rowIndex);\n setAriaSelected(eDiv, !!isSelected);\n setAriaChecked(eDiv, isSelected);\n }\n\n eDiv.style.height = this.rowHeight + \"px\";\n eDiv.style.top = this.rowHeight * rowIndex + \"px\";\n var rowComponent = this.componentCreator(value, eDiv);\n rowComponent.addGuiEventListener('focusin', function () {\n return _this.lastFocusedRowIndex = rowIndex;\n });\n eDiv.appendChild(rowComponent.getGui()); // keep the DOM order consistent with the order of the rows\n\n if (this.renderedRows.has(rowIndex - 1)) {\n this.renderedRows.get(rowIndex - 1).eDiv.insertAdjacentElement('afterend', eDiv);\n } else if (this.renderedRows.has(rowIndex + 1)) {\n this.renderedRows.get(rowIndex + 1).eDiv.insertAdjacentElement('beforebegin', eDiv);\n } else {\n this.eContainer.appendChild(eDiv);\n }\n\n this.renderedRows.set(rowIndex, {\n rowComponent: rowComponent,\n eDiv: eDiv\n });\n };\n\n VirtualList.prototype.removeRow = function (rowIndex) {\n var component = this.renderedRows.get(rowIndex);\n this.eContainer.removeChild(component.eDiv);\n this.destroyBean(component.rowComponent);\n this.renderedRows.delete(rowIndex);\n };\n\n VirtualList.prototype.addScrollListener = function () {\n var _this = this;\n\n this.addGuiEventListener('scroll', function () {\n return _this.drawVirtualRows();\n });\n };\n\n VirtualList.prototype.setModel = function (model) {\n this.model = model;\n };\n\n VirtualList.prototype.destroy = function () {\n if (this.isDestroyed) {\n return;\n }\n\n this.clearVirtualRows();\n this.isDestroyed = true;\n\n _super.prototype.destroy.call(this);\n };\n\n __decorate$N([Autowired('resizeObserverService')], VirtualList.prototype, \"resizeObserverService\", void 0);\n\n __decorate$N([Autowired('focusService')], VirtualList.prototype, \"focusService\", void 0);\n\n __decorate$N([RefSelector('eContainer')], VirtualList.prototype, \"eContainer\", void 0);\n\n __decorate$N([PostConstruct], VirtualList.prototype, \"postConstruct\", null);\n\n return VirtualList;\n}(TabGuardComp);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar OUTSIDE_ANGULAR_EVENTS = ['mouseover', 'mouseout', 'mouseenter', 'mouseleave'];\nvar PASSIVE_EVENTS = ['touchstart', 'touchend', 'touchmove', 'touchcancel'];\n/** The base frameworks, eg React & Angular, override this bean with implementations specific to their requirement. */\n\nvar VanillaFrameworkOverrides =\n/** @class */\nfunction () {\n function VanillaFrameworkOverrides() {\n this.isOutsideAngular = function (eventType) {\n return includes(OUTSIDE_ANGULAR_EVENTS, eventType);\n };\n } // for Vanilla JS, we use simple timeout\n\n\n VanillaFrameworkOverrides.prototype.setTimeout = function (action, timeout) {\n window.setTimeout(action, timeout);\n };\n\n VanillaFrameworkOverrides.prototype.setInterval = function (action, timeout) {\n return new AgPromise(function (resolve) {\n resolve(window.setInterval(action, timeout));\n });\n }; // for Vanilla JS, we just add the event to the element\n\n\n VanillaFrameworkOverrides.prototype.addEventListener = function (element, type, listener, useCapture) {\n var isPassive = includes(PASSIVE_EVENTS, type);\n element.addEventListener(type, listener, {\n capture: !!useCapture,\n passive: isPassive\n });\n }; // for Vanilla JS, we just execute the listener\n\n\n VanillaFrameworkOverrides.prototype.dispatchEvent = function (eventType, listener, global) {\n listener();\n };\n\n VanillaFrameworkOverrides.prototype.frameworkComponent = function (name) {\n return null;\n };\n\n VanillaFrameworkOverrides.prototype.isFrameworkComponent = function (comp) {\n return false;\n };\n\n return VanillaFrameworkOverrides;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$K = undefined && undefined.__extends || function () {\n var _extendStatics139 = function extendStatics(d, b) {\n _extendStatics139 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics139(d, b);\n };\n\n return function (d, b) {\n _extendStatics139(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$4 = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$3 = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$4(arguments[i]));\n }\n\n return ar;\n};\n\nvar CellNavigationService =\n/** @class */\nfunction (_super) {\n __extends$K(CellNavigationService, _super);\n\n function CellNavigationService() {\n return _super !== null && _super.apply(this, arguments) || this;\n } // returns null if no cell to focus on, ie at the end of the grid\n\n\n CellNavigationService.prototype.getNextCellToFocus = function (key, focusedCell, ctrlPressed) {\n if (ctrlPressed === void 0) {\n ctrlPressed = false;\n }\n\n if (ctrlPressed) {\n return this.getNextCellToFocusWithCtrlPressed(key, focusedCell);\n }\n\n return this.getNextCellToFocusWithoutCtrlPressed(key, focusedCell);\n };\n\n CellNavigationService.prototype.getNextCellToFocusWithCtrlPressed = function (key, focusedCell) {\n var upKey = key === KeyCode.UP;\n var downKey = key === KeyCode.DOWN;\n var leftKey = key === KeyCode.LEFT;\n var column;\n var rowIndex;\n\n if (upKey || downKey) {\n rowIndex = upKey ? this.paginationProxy.getPageFirstRow() : this.paginationProxy.getPageLastRow();\n column = focusedCell.column;\n } else {\n var allColumns = this.columnModel.getAllDisplayedColumns();\n var isRtl = this.gridOptionsWrapper.isEnableRtl();\n rowIndex = focusedCell.rowIndex;\n column = leftKey !== isRtl ? allColumns[0] : last(allColumns);\n }\n\n return {\n rowIndex: rowIndex,\n rowPinned: null,\n column: column\n };\n };\n\n CellNavigationService.prototype.getNextCellToFocusWithoutCtrlPressed = function (key, focusedCell) {\n // starting with the provided cell, we keep moving until we find a cell we can\n // focus on.\n var pointer = focusedCell;\n var finished = false; // finished will be true when either:\n // a) cell found that we can focus on\n // b) run out of cells (ie the method returns null)\n\n while (!finished) {\n switch (key) {\n case KeyCode.UP:\n pointer = this.getCellAbove(pointer);\n break;\n\n case KeyCode.DOWN:\n pointer = this.getCellBelow(pointer);\n break;\n\n case KeyCode.RIGHT:\n if (this.gridOptionsWrapper.isEnableRtl()) {\n pointer = this.getCellToLeft(pointer);\n } else {\n pointer = this.getCellToRight(pointer);\n }\n\n break;\n\n case KeyCode.LEFT:\n if (this.gridOptionsWrapper.isEnableRtl()) {\n pointer = this.getCellToRight(pointer);\n } else {\n pointer = this.getCellToLeft(pointer);\n }\n\n break;\n\n default:\n pointer = null;\n console.warn('AG Grid: unknown key for navigation ' + key);\n break;\n }\n\n if (pointer) {\n finished = this.isCellGoodToFocusOn(pointer);\n } else {\n finished = true;\n }\n }\n\n return pointer;\n };\n\n CellNavigationService.prototype.isCellGoodToFocusOn = function (gridCell) {\n var column = gridCell.column;\n var rowNode;\n\n switch (gridCell.rowPinned) {\n case Constants.PINNED_TOP:\n rowNode = this.pinnedRowModel.getPinnedTopRow(gridCell.rowIndex);\n break;\n\n case Constants.PINNED_BOTTOM:\n rowNode = this.pinnedRowModel.getPinnedBottomRow(gridCell.rowIndex);\n break;\n\n default:\n rowNode = this.rowModel.getRow(gridCell.rowIndex);\n break;\n }\n\n if (!rowNode) {\n return false;\n }\n\n var suppressNavigable = column.isSuppressNavigable(rowNode);\n return !suppressNavigable;\n };\n\n CellNavigationService.prototype.getCellToLeft = function (lastCell) {\n if (!lastCell) {\n return null;\n }\n\n var colToLeft = this.columnModel.getDisplayedColBefore(lastCell.column);\n\n if (!colToLeft) {\n return null;\n }\n\n return {\n rowIndex: lastCell.rowIndex,\n column: colToLeft,\n rowPinned: lastCell.rowPinned\n };\n };\n\n CellNavigationService.prototype.getCellToRight = function (lastCell) {\n if (!lastCell) {\n return null;\n }\n\n var colToRight = this.columnModel.getDisplayedColAfter(lastCell.column); // if already on right, do nothing\n\n if (!colToRight) {\n return null;\n }\n\n return {\n rowIndex: lastCell.rowIndex,\n column: colToRight,\n rowPinned: lastCell.rowPinned\n };\n };\n\n CellNavigationService.prototype.getRowBelow = function (rowPosition) {\n // if already on top row, do nothing\n var index = rowPosition.rowIndex;\n var pinned = rowPosition.rowPinned;\n\n if (this.isLastRowInContainer(rowPosition)) {\n switch (pinned) {\n case Constants.PINNED_BOTTOM:\n // never any rows after pinned bottom\n return null;\n\n case Constants.PINNED_TOP:\n // if on last row of pinned top, then next row is main body (if rows exist),\n // otherwise it's the pinned bottom\n if (this.rowModel.isRowsToRender()) {\n return {\n rowIndex: this.paginationProxy.getPageFirstRow(),\n rowPinned: null\n };\n }\n\n if (this.pinnedRowModel.isRowsToRender(Constants.PINNED_BOTTOM)) {\n return {\n rowIndex: 0,\n rowPinned: Constants.PINNED_BOTTOM\n };\n }\n\n return null;\n\n default:\n // if in the main body, then try pinned bottom, otherwise return nothing\n if (this.pinnedRowModel.isRowsToRender(Constants.PINNED_BOTTOM)) {\n return {\n rowIndex: 0,\n rowPinned: Constants.PINNED_BOTTOM\n };\n }\n\n return null;\n }\n }\n\n var rowNode = this.rowModel.getRow(rowPosition.rowIndex);\n var nextStickyPosition = this.getNextStickyPosition(rowNode);\n\n if (nextStickyPosition) {\n return nextStickyPosition;\n }\n\n return {\n rowIndex: index + 1,\n rowPinned: pinned\n };\n };\n\n CellNavigationService.prototype.getNextStickyPosition = function (rowNode, up) {\n if (!this.gridOptionsWrapper.isGroupRowsSticky() || !rowNode || !rowNode.sticky) {\n return;\n }\n\n var stickyRowCtrls = __spread$3(this.rowRenderer.getStickyTopRowCtrls()).sort(function (a, b) {\n return a.getRowNode().rowIndex - b.getRowNode().rowIndex;\n });\n\n var diff = up ? -1 : 1;\n var idx = stickyRowCtrls.findIndex(function (ctrl) {\n return ctrl.getRowNode().rowIndex === rowNode.rowIndex;\n });\n var nextCtrl = stickyRowCtrls[idx + diff];\n\n if (nextCtrl) {\n return {\n rowIndex: nextCtrl.getRowNode().rowIndex,\n rowPinned: null\n };\n }\n };\n\n CellNavigationService.prototype.getCellBelow = function (lastCell) {\n if (!lastCell) {\n return null;\n }\n\n var rowBelow = this.getRowBelow(lastCell);\n\n if (rowBelow) {\n return {\n rowIndex: rowBelow.rowIndex,\n column: lastCell.column,\n rowPinned: rowBelow.rowPinned\n };\n }\n\n return null;\n };\n\n CellNavigationService.prototype.isLastRowInContainer = function (rowPosition) {\n var pinned = rowPosition.rowPinned;\n var index = rowPosition.rowIndex;\n\n if (pinned === Constants.PINNED_TOP) {\n var lastTopIndex = this.pinnedRowModel.getPinnedTopRowData().length - 1;\n return lastTopIndex <= index;\n }\n\n if (pinned === Constants.PINNED_BOTTOM) {\n var lastBottomIndex = this.pinnedRowModel.getPinnedBottomRowData().length - 1;\n return lastBottomIndex <= index;\n }\n\n var lastBodyIndex = this.paginationProxy.getPageLastRow();\n return lastBodyIndex <= index;\n };\n\n CellNavigationService.prototype.getRowAbove = function (rowPosition) {\n // if already on top row, do nothing\n var index = rowPosition.rowIndex;\n var pinned = rowPosition.rowPinned;\n var isFirstRow = pinned ? index === 0 : index === this.paginationProxy.getPageFirstRow(); // if already on top row, do nothing\n\n if (isFirstRow) {\n if (pinned === Constants.PINNED_TOP) {\n return null;\n }\n\n if (!pinned) {\n if (this.pinnedRowModel.isRowsToRender(Constants.PINNED_TOP)) {\n return this.getLastFloatingTopRow();\n }\n\n return null;\n } // last floating bottom\n\n\n if (this.rowModel.isRowsToRender()) {\n return this.getLastBodyCell();\n }\n\n if (this.pinnedRowModel.isRowsToRender(Constants.PINNED_TOP)) {\n return this.getLastFloatingTopRow();\n }\n\n return null;\n }\n\n var rowNode = this.rowModel.getRow(rowPosition.rowIndex);\n var nextStickyPosition = this.getNextStickyPosition(rowNode, true);\n\n if (nextStickyPosition) {\n return nextStickyPosition;\n }\n\n return {\n rowIndex: index - 1,\n rowPinned: pinned\n };\n };\n\n CellNavigationService.prototype.getCellAbove = function (lastCell) {\n if (!lastCell) {\n return null;\n }\n\n var rowAbove = this.getRowAbove({\n rowIndex: lastCell.rowIndex,\n rowPinned: lastCell.rowPinned\n });\n\n if (rowAbove) {\n return {\n rowIndex: rowAbove.rowIndex,\n column: lastCell.column,\n rowPinned: rowAbove.rowPinned\n };\n }\n\n return null;\n };\n\n CellNavigationService.prototype.getLastBodyCell = function () {\n var lastBodyRow = this.paginationProxy.getPageLastRow();\n return {\n rowIndex: lastBodyRow,\n rowPinned: null\n };\n };\n\n CellNavigationService.prototype.getLastFloatingTopRow = function () {\n var lastFloatingRow = this.pinnedRowModel.getPinnedTopRowData().length - 1;\n return {\n rowIndex: lastFloatingRow,\n rowPinned: Constants.PINNED_TOP\n };\n };\n\n CellNavigationService.prototype.getNextTabbedCell = function (gridCell, backwards) {\n if (backwards) {\n return this.getNextTabbedCellBackwards(gridCell);\n }\n\n return this.getNextTabbedCellForwards(gridCell);\n };\n\n CellNavigationService.prototype.getNextTabbedCellForwards = function (gridCell) {\n var displayedColumns = this.columnModel.getAllDisplayedColumns();\n var newRowIndex = gridCell.rowIndex;\n var newFloating = gridCell.rowPinned; // move along to the next cell\n\n var newColumn = this.columnModel.getDisplayedColAfter(gridCell.column); // check if end of the row, and if so, go forward a row\n\n if (!newColumn) {\n newColumn = displayedColumns[0];\n var rowBelow = this.getRowBelow(gridCell);\n\n if (missing(rowBelow)) {\n return null;\n } // If we are tabbing and there is a paging panel present, tabbing should go\n // to the paging panel instead of loading the next page.\n\n\n if (!rowBelow.rowPinned && !this.paginationProxy.isRowInPage(rowBelow)) {\n return null;\n }\n\n newRowIndex = rowBelow ? rowBelow.rowIndex : null;\n newFloating = rowBelow ? rowBelow.rowPinned : null;\n }\n\n return {\n rowIndex: newRowIndex,\n column: newColumn,\n rowPinned: newFloating\n };\n };\n\n CellNavigationService.prototype.getNextTabbedCellBackwards = function (gridCell) {\n var displayedColumns = this.columnModel.getAllDisplayedColumns();\n var newRowIndex = gridCell.rowIndex;\n var newFloating = gridCell.rowPinned; // move along to the next cell\n\n var newColumn = this.columnModel.getDisplayedColBefore(gridCell.column); // check if end of the row, and if so, go forward a row\n\n if (!newColumn) {\n newColumn = last(displayedColumns);\n var rowAbove = this.getRowAbove({\n rowIndex: gridCell.rowIndex,\n rowPinned: gridCell.rowPinned\n });\n\n if (missing(rowAbove)) {\n return null;\n } // If we are tabbing and there is a paging panel present, tabbing should go\n // to the paging panel instead of loading the next page.\n\n\n if (!rowAbove.rowPinned && !this.paginationProxy.isRowInPage(rowAbove)) {\n return null;\n }\n\n newRowIndex = rowAbove ? rowAbove.rowIndex : null;\n newFloating = rowAbove ? rowAbove.rowPinned : null;\n }\n\n return {\n rowIndex: newRowIndex,\n column: newColumn,\n rowPinned: newFloating\n };\n };\n\n __decorate$M([Autowired('columnModel')], CellNavigationService.prototype, \"columnModel\", void 0);\n\n __decorate$M([Autowired('rowModel')], CellNavigationService.prototype, \"rowModel\", void 0);\n\n __decorate$M([Autowired('rowRenderer')], CellNavigationService.prototype, \"rowRenderer\", void 0);\n\n __decorate$M([Autowired('pinnedRowModel')], CellNavigationService.prototype, \"pinnedRowModel\", void 0);\n\n __decorate$M([Autowired('paginationProxy')], CellNavigationService.prototype, \"paginationProxy\", void 0);\n\n CellNavigationService = __decorate$M([Bean('cellNavigationService')], CellNavigationService);\n return CellNavigationService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$J = undefined && undefined.__extends || function () {\n var _extendStatics140 = function extendStatics(d, b) {\n _extendStatics140 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics140(d, b);\n };\n\n return function (d, b) {\n _extendStatics140(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __param$5 = undefined && undefined.__param || function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n};\n\nvar AlignedGridsService =\n/** @class */\nfunction (_super) {\n __extends$J(AlignedGridsService, _super);\n\n function AlignedGridsService() {\n var _this = _super !== null && _super.apply(this, arguments) || this; // flag to mark if we are consuming. to avoid cyclic events (ie other grid firing back to master\n // while processing a master event) we mark this if consuming an event, and if we are, then\n // we don't fire back any events.\n\n\n _this.consuming = false;\n return _this;\n }\n\n AlignedGridsService.prototype.setBeans = function (loggerFactory) {\n this.logger = loggerFactory.create('AlignedGridsService');\n };\n\n AlignedGridsService.prototype.init = function () {\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_MOVED, this.fireColumnEvent.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_VISIBLE, this.fireColumnEvent.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PINNED, this.fireColumnEvent.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_GROUP_OPENED, this.fireColumnEvent.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_RESIZED, this.fireColumnEvent.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_BODY_SCROLL, this.fireScrollEvent.bind(this));\n }; // common logic across all the fire methods\n\n\n AlignedGridsService.prototype.fireEvent = function (callback) {\n // if we are already consuming, then we are acting on an event from a master,\n // so we don't cause a cyclic firing of events\n if (this.consuming) {\n return;\n } // iterate through the aligned grids, and pass each aligned grid service to the callback\n\n\n var otherGrids = this.gridOptionsWrapper.getAlignedGrids();\n\n if (otherGrids) {\n otherGrids.forEach(function (otherGridOptions) {\n if (otherGridOptions.api) {\n var alignedGridService = otherGridOptions.api.__getAlignedGridService();\n\n callback(alignedGridService);\n }\n });\n }\n }; // common logic across all consume methods. very little common logic, however extracting\n // guarantees consistency across the methods.\n\n\n AlignedGridsService.prototype.onEvent = function (callback) {\n this.consuming = true;\n callback();\n this.consuming = false;\n };\n\n AlignedGridsService.prototype.fireColumnEvent = function (event) {\n this.fireEvent(function (alignedGridsService) {\n alignedGridsService.onColumnEvent(event);\n });\n };\n\n AlignedGridsService.prototype.fireScrollEvent = function (event) {\n if (event.direction !== 'horizontal') {\n return;\n }\n\n this.fireEvent(function (alignedGridsService) {\n alignedGridsService.onScrollEvent(event);\n });\n };\n\n AlignedGridsService.prototype.onScrollEvent = function (event) {\n var _this = this;\n\n this.onEvent(function () {\n var gridBodyCon = _this.ctrlsService.getGridBodyCtrl();\n\n gridBodyCon.getScrollFeature().setHorizontalScrollPosition(event.left);\n });\n };\n\n AlignedGridsService.prototype.getMasterColumns = function (event) {\n var result = [];\n\n if (event.columns) {\n event.columns.forEach(function (column) {\n result.push(column);\n });\n } else if (event.column) {\n result.push(event.column);\n }\n\n return result;\n };\n\n AlignedGridsService.prototype.getColumnIds = function (event) {\n var result = [];\n\n if (event.columns) {\n event.columns.forEach(function (column) {\n result.push(column.getColId());\n });\n } else if (event.column) {\n result.push(event.column.getColId());\n }\n\n return result;\n };\n\n AlignedGridsService.prototype.onColumnEvent = function (event) {\n var _this = this;\n\n this.onEvent(function () {\n switch (event.type) {\n case Events.EVENT_COLUMN_MOVED:\n case Events.EVENT_COLUMN_VISIBLE:\n case Events.EVENT_COLUMN_PINNED:\n case Events.EVENT_COLUMN_RESIZED:\n var colEvent = event;\n\n _this.processColumnEvent(colEvent);\n\n break;\n\n case Events.EVENT_COLUMN_GROUP_OPENED:\n var groupOpenedEvent = event;\n\n _this.processGroupOpenedEvent(groupOpenedEvent);\n\n break;\n\n case Events.EVENT_COLUMN_PIVOT_CHANGED:\n // we cannot support pivoting with aligned grids as the columns will be out of sync as the\n // grids will have columns created based on the row data of the grid.\n 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.');\n break;\n }\n });\n };\n\n AlignedGridsService.prototype.processGroupOpenedEvent = function (groupOpenedEvent) {\n // likewise for column group\n var masterColumnGroup = groupOpenedEvent.columnGroup;\n var otherColumnGroup = null;\n\n if (masterColumnGroup) {\n var groupId = masterColumnGroup.getGroupId();\n otherColumnGroup = this.columnModel.getProvidedColumnGroup(groupId);\n }\n\n if (masterColumnGroup && !otherColumnGroup) {\n return;\n }\n\n this.logger.log('onColumnEvent-> processing ' + groupOpenedEvent + ' expanded = ' + masterColumnGroup.isExpanded());\n this.columnModel.setColumnGroupOpened(otherColumnGroup, masterColumnGroup.isExpanded(), \"alignedGridChanged\");\n };\n\n AlignedGridsService.prototype.processColumnEvent = function (colEvent) {\n var _this = this;\n\n var _a; // the column in the event is from the master grid. need to\n // look up the equivalent from this (other) grid\n\n\n var masterColumn = colEvent.column;\n var otherColumn = null;\n\n if (masterColumn) {\n otherColumn = this.columnModel.getPrimaryColumn(masterColumn.getColId());\n } // if event was with respect to a master column, that is not present in this\n // grid, then we ignore the event\n\n\n if (masterColumn && !otherColumn) {\n return;\n } // in time, all the methods below should use the column ids, it's a more generic way\n // of handling columns, and also allows for single or multi column events\n\n\n var masterColumns = this.getMasterColumns(colEvent);\n\n switch (colEvent.type) {\n case Events.EVENT_COLUMN_MOVED:\n // when the user moves columns via setColumnState, we can't depend on moving specific columns\n // to an index, as there maybe be many indexes columns moved to (as wasn't result of a mouse drag).\n // so only way to be sure is match the order of all columns using Column State.\n {\n var movedEvent = colEvent;\n var srcColState = colEvent.columnApi.getColumnState();\n var destColState = srcColState.map(function (s) {\n return {\n colId: s.colId\n };\n });\n this.columnModel.applyColumnState({\n state: destColState,\n applyOrder: true\n }, \"alignedGridChanged\");\n this.logger.log(\"onColumnEvent-> processing \" + colEvent.type + \" toIndex = \" + movedEvent.toIndex);\n }\n break;\n\n case Events.EVENT_COLUMN_VISIBLE:\n // when the user changes visibility via setColumnState, we can't depend on visibility flag in event\n // as there maybe be mix of true/false (as wasn't result of a mouse click to set visiblity).\n // so only way to be sure is match the visibility of all columns using Column State.\n {\n var visibleEvent = colEvent;\n var srcColState = colEvent.columnApi.getColumnState();\n var destColState = srcColState.map(function (s) {\n return {\n colId: s.colId,\n hide: s.hide\n };\n });\n this.columnModel.applyColumnState({\n state: destColState\n }, \"alignedGridChanged\");\n this.logger.log(\"onColumnEvent-> processing \" + colEvent.type + \" visible = \" + visibleEvent.visible);\n }\n break;\n\n case Events.EVENT_COLUMN_PINNED:\n {\n var pinnedEvent = colEvent;\n var srcColState = colEvent.columnApi.getColumnState();\n var destColState = srcColState.map(function (s) {\n return {\n colId: s.colId,\n pinned: s.pinned\n };\n });\n this.columnModel.applyColumnState({\n state: destColState\n }, \"alignedGridChanged\");\n this.logger.log(\"onColumnEvent-> processing \" + colEvent.type + \" pinned = \" + pinnedEvent.pinned);\n }\n break;\n\n case Events.EVENT_COLUMN_RESIZED:\n var resizedEvent = colEvent;\n var columnWidths_1 = {};\n masterColumns.forEach(function (column) {\n _this.logger.log(\"onColumnEvent-> processing \" + colEvent.type + \" actualWidth = \" + column.getActualWidth());\n\n columnWidths_1[column.getId()] = {\n key: column.getColId(),\n newWidth: column.getActualWidth()\n };\n }); // don't set flex columns width\n\n (_a = resizedEvent.flexColumns) === null || _a === void 0 ? void 0 : _a.forEach(function (col) {\n if (columnWidths_1[col.getId()]) {\n delete columnWidths_1[col.getId()];\n }\n });\n this.columnModel.setColumnWidths(Object.values(columnWidths_1), false, resizedEvent.finished, \"alignedGridChanged\");\n break;\n }\n\n var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n var isVerticalScrollShowing = gridBodyCon.isVerticalScrollShowing();\n var alignedGrids = this.gridOptionsWrapper.getAlignedGrids();\n\n if (alignedGrids) {\n alignedGrids.forEach(function (grid) {\n if (grid.api) {\n grid.api.setAlwaysShowVerticalScroll(isVerticalScrollShowing);\n }\n });\n }\n };\n\n __decorate$L([Autowired('columnModel')], AlignedGridsService.prototype, \"columnModel\", void 0);\n\n __decorate$L([Autowired('ctrlsService')], AlignedGridsService.prototype, \"ctrlsService\", void 0);\n\n __decorate$L([__param$5(0, Qualifier('loggerFactory'))], AlignedGridsService.prototype, \"setBeans\", null);\n\n __decorate$L([PostConstruct], AlignedGridsService.prototype, \"init\", null);\n\n AlignedGridsService = __decorate$L([Bean('alignedGridsService')], AlignedGridsService);\n return AlignedGridsService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$I = undefined && undefined.__extends || function () {\n var _extendStatics141 = function extendStatics(d, b) {\n _extendStatics141 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics141(d, b);\n };\n\n return function (d, b) {\n _extendStatics141(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __param$4 = undefined && undefined.__param || function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n};\n\nvar SelectionService =\n/** @class */\nfunction (_super) {\n __extends$I(SelectionService, _super);\n\n function SelectionService() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n SelectionService.prototype.setBeans = function (loggerFactory) {\n this.logger = loggerFactory.create('selectionService');\n this.reset();\n };\n\n SelectionService.prototype.init = function () {\n this.groupSelectsChildren = this.gridOptionsWrapper.isGroupSelectsChildren();\n this.addManagedListener(this.eventService, Events.EVENT_ROW_SELECTED, this.onRowSelected.bind(this));\n };\n\n SelectionService.prototype.setLastSelectedNode = function (rowNode) {\n this.lastSelectedNode = rowNode;\n };\n\n SelectionService.prototype.getLastSelectedNode = function () {\n return this.lastSelectedNode;\n };\n\n SelectionService.prototype.getSelectedNodes = function () {\n var selectedNodes = [];\n iterateObject(this.selectedNodes, function (key, rowNode) {\n if (rowNode) {\n selectedNodes.push(rowNode);\n }\n });\n return selectedNodes;\n };\n\n SelectionService.prototype.getSelectedRows = function () {\n var selectedRows = [];\n iterateObject(this.selectedNodes, function (key, rowNode) {\n if (rowNode && rowNode.data) {\n selectedRows.push(rowNode.data);\n }\n });\n return selectedRows;\n };\n\n SelectionService.prototype.removeGroupsFromSelection = function () {\n var _this = this;\n\n iterateObject(this.selectedNodes, function (key, rowNode) {\n if (rowNode && rowNode.group) {\n _this.selectedNodes[rowNode.id] = undefined;\n }\n });\n }; // should only be called if groupSelectsChildren=true\n\n\n SelectionService.prototype.updateGroupsFromChildrenSelections = function (changedPath) {\n // we only do this when group selection state depends on selected children\n if (!this.gridOptionsWrapper.isGroupSelectsChildren()) {\n return;\n } // also only do it if CSRM (code should never allow this anyway)\n\n\n if (this.rowModel.getType() !== Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {\n return;\n }\n\n var clientSideRowModel = this.rowModel;\n var rootNode = clientSideRowModel.getRootNode();\n\n if (!changedPath) {\n changedPath = new ChangedPath(true, rootNode);\n changedPath.setInactive();\n }\n\n changedPath.forEachChangedNodeDepthFirst(function (rowNode) {\n if (rowNode !== rootNode) {\n var selected = rowNode.calculateSelectedFromChildren();\n rowNode.selectThisNode(selected === null ? false : selected);\n }\n }); // clientSideRowModel.getTopLevelNodes()!.forEach((rowNode: RowNode) => {\n // rowNode.depthFirstSearch((node) => {\n // if (node.group) {\n // }\n // });\n // });\n };\n\n SelectionService.prototype.getNodeForIdIfSelected = function (id) {\n return this.selectedNodes[id];\n };\n\n SelectionService.prototype.clearOtherNodes = function (rowNodeToKeepSelected) {\n var _this = this;\n\n var groupsToRefresh = {};\n var updatedCount = 0;\n iterateObject(this.selectedNodes, function (key, otherRowNode) {\n if (otherRowNode && otherRowNode.id !== rowNodeToKeepSelected.id) {\n var rowNode = _this.selectedNodes[otherRowNode.id];\n updatedCount += rowNode.setSelectedParams({\n newValue: false,\n clearSelection: false,\n suppressFinishActions: true\n });\n\n if (_this.groupSelectsChildren && otherRowNode.parent) {\n groupsToRefresh[otherRowNode.parent.id] = otherRowNode.parent;\n }\n }\n });\n iterateObject(groupsToRefresh, function (key, group) {\n var selected = group.calculateSelectedFromChildren();\n group.selectThisNode(selected === null ? false : selected);\n });\n return updatedCount;\n };\n\n SelectionService.prototype.onRowSelected = function (event) {\n var rowNode = event.node; // we do not store the group rows when the groups select children\n\n if (this.groupSelectsChildren && rowNode.group) {\n return;\n }\n\n if (rowNode.isSelected()) {\n this.selectedNodes[rowNode.id] = rowNode;\n } else {\n this.selectedNodes[rowNode.id] = undefined;\n }\n };\n\n SelectionService.prototype.syncInRowNode = function (rowNode, oldNode) {\n this.syncInOldRowNode(rowNode, oldNode);\n this.syncInNewRowNode(rowNode);\n }; // if the id has changed for the node, then this means the rowNode\n // is getting used for a different data item, which breaks\n // our selectedNodes, as the node now is mapped by the old id\n // which is inconsistent. so to keep the old node as selected,\n // we swap in the clone (with the old id and old data). this means\n // the oldNode is effectively a daemon we keep a reference to,\n // so if client calls api.getSelectedNodes(), it gets the daemon\n // in the result. when the client un-selects, the reference to the\n // daemon is removed. the daemon, because it's an oldNode, is not\n // used by the grid for rendering, it's a copy of what the node used\n // to be like before the id was changed.\n\n\n SelectionService.prototype.syncInOldRowNode = function (rowNode, oldNode) {\n var oldNodeHasDifferentId = exists(oldNode) && rowNode.id !== oldNode.id;\n\n if (oldNodeHasDifferentId && oldNode) {\n var id = oldNode.id;\n var oldNodeSelected = this.selectedNodes[id] == rowNode;\n\n if (oldNodeSelected) {\n this.selectedNodes[oldNode.id] = oldNode;\n }\n }\n };\n\n SelectionService.prototype.syncInNewRowNode = function (rowNode) {\n if (exists(this.selectedNodes[rowNode.id])) {\n rowNode.setSelectedInitialValue(true);\n this.selectedNodes[rowNode.id] = rowNode;\n } else {\n rowNode.setSelectedInitialValue(false);\n }\n };\n\n SelectionService.prototype.reset = function () {\n this.logger.log('reset');\n this.selectedNodes = {};\n this.lastSelectedNode = null;\n }; // returns a list of all nodes at 'best cost' - a feature to be used\n // with groups / trees. if a group has all it's children selected,\n // then the group appears in the result, but not the children.\n // Designed for use with 'children' as the group selection type,\n // where groups don't actually appear in the selection normally.\n\n\n SelectionService.prototype.getBestCostNodeSelection = function () {\n if (this.rowModel.getType() !== Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {\n console.warn('AG Grid: `getBestCostNodeSelection` is only available when using normal row model');\n return;\n }\n\n var clientSideRowModel = this.rowModel;\n var topLevelNodes = clientSideRowModel.getTopLevelNodes();\n\n if (topLevelNodes === null) {\n console.warn('AG Grid: `selectAll` not available doing `rowModel=virtual`');\n return;\n }\n\n var result = []; // recursive function, to find the selected nodes\n\n function traverse(nodes) {\n for (var i = 0, l = nodes.length; i < l; i++) {\n var node = nodes[i];\n\n if (node.isSelected()) {\n result.push(node);\n } else {\n // if not selected, then if it's a group, and the group\n // has children, continue to search for selections\n var maybeGroup = node;\n\n if (maybeGroup.group && maybeGroup.children) {\n traverse(maybeGroup.children);\n }\n }\n }\n }\n\n traverse(topLevelNodes);\n return result;\n };\n\n SelectionService.prototype.setRowModel = function (rowModel) {\n this.rowModel = rowModel;\n };\n\n SelectionService.prototype.isEmpty = function () {\n var count = 0;\n iterateObject(this.selectedNodes, function (nodeId, rowNode) {\n if (rowNode) {\n count++;\n }\n });\n return count === 0;\n };\n\n SelectionService.prototype.deselectAllRowNodes = function (justFiltered) {\n if (justFiltered === void 0) {\n justFiltered = false;\n }\n\n var callback = function callback(rowNode) {\n return rowNode.selectThisNode(false);\n };\n\n var rowModelClientSide = this.rowModel.getType() === Constants.ROW_MODEL_TYPE_CLIENT_SIDE;\n\n if (justFiltered) {\n if (!rowModelClientSide) {\n console.error('AG Grid: selecting just filtered only works with In Memory Row Model');\n return;\n }\n\n var clientSideRowModel = this.rowModel;\n clientSideRowModel.forEachNodeAfterFilter(callback);\n } else {\n iterateObject(this.selectedNodes, function (id, rowNode) {\n // remember the reference can be to null, as we never 'delete' from the map\n if (rowNode) {\n callback(rowNode);\n }\n }); // this clears down the map (whereas above only sets the items in map to 'undefined')\n\n this.reset();\n } // the above does not clean up the parent rows if they are selected\n\n\n if (rowModelClientSide && this.groupSelectsChildren) {\n this.updateGroupsFromChildrenSelections();\n }\n\n var event = {\n type: Events.EVENT_SELECTION_CHANGED\n };\n this.eventService.dispatchEvent(event);\n };\n\n SelectionService.prototype.selectAllRowNodes = function (justFiltered) {\n if (justFiltered === void 0) {\n justFiltered = false;\n }\n\n if (this.rowModel.getType() !== Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {\n throw new Error(\"selectAll only available with normal row model, ie not \" + this.rowModel.getType());\n }\n\n var clientSideRowModel = this.rowModel;\n\n var callback = function callback(rowNode) {\n return rowNode.selectThisNode(true);\n };\n\n if (justFiltered) {\n clientSideRowModel.forEachNodeAfterFilter(callback);\n } else {\n clientSideRowModel.forEachNode(callback);\n } // the above does not clean up the parent rows if they are selected\n\n\n if (this.rowModel.getType() === Constants.ROW_MODEL_TYPE_CLIENT_SIDE && this.groupSelectsChildren) {\n this.updateGroupsFromChildrenSelections();\n }\n\n var event = {\n type: Events.EVENT_SELECTION_CHANGED\n };\n this.eventService.dispatchEvent(event);\n };\n /**\n * @method\n * @deprecated\n */\n\n\n SelectionService.prototype.selectNode = function (rowNode, tryMulti) {\n if (rowNode) {\n rowNode.setSelectedParams({\n newValue: true,\n clearSelection: !tryMulti\n });\n }\n };\n /**\n * @method\n * @deprecated\n */\n\n\n SelectionService.prototype.deselectIndex = function (rowIndex) {\n var node = this.rowModel.getRow(rowIndex);\n this.deselectNode(node);\n };\n /**\n * @method\n * @deprecated\n */\n\n\n SelectionService.prototype.deselectNode = function (rowNode) {\n if (rowNode) {\n rowNode.setSelectedParams({\n newValue: false,\n clearSelection: false\n });\n }\n };\n /**\n * @method\n * @deprecated\n */\n\n\n SelectionService.prototype.selectIndex = function (index, tryMulti) {\n var node = this.rowModel.getRow(index);\n this.selectNode(node, tryMulti);\n };\n\n __decorate$K([Autowired('rowModel')], SelectionService.prototype, \"rowModel\", void 0);\n\n __decorate$K([__param$4(0, Qualifier('loggerFactory'))], SelectionService.prototype, \"setBeans\", null);\n\n __decorate$K([PostConstruct], SelectionService.prototype, \"init\", null);\n\n SelectionService = __decorate$K([Bean('selectionService')], SelectionService);\n return SelectionService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ColumnApi =\n/** @class */\nfunction () {\n function ColumnApi() {}\n /** Gets the grid to size the columns to the specified width in pixels, e.g. `sizeColumnsToFit(900)`. To have the grid fit the columns to the grid's width, use the Grid API `gridApi.sizeColumnsToFit()` instead. */\n\n\n ColumnApi.prototype.sizeColumnsToFit = function (gridWidth) {\n // AG-3403 validate that gridWidth is provided because this method has the same name as\n // a method on the grid API that takes no arguments, and it's easy to confuse the two\n if (typeof gridWidth === \"undefined\") {\n console.error('AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)');\n }\n\n this.columnModel.sizeColumnsToFit(gridWidth, 'api');\n };\n /** Call this if you want to open or close a column group. */\n\n\n ColumnApi.prototype.setColumnGroupOpened = function (group, newValue) {\n this.columnModel.setColumnGroupOpened(group, newValue, 'api');\n };\n /** Returns the column group with the given name. */\n\n\n ColumnApi.prototype.getColumnGroup = function (name, instanceId) {\n return this.columnModel.getColumnGroup(name, instanceId);\n };\n /** Returns the provided column group with the given name. */\n\n\n ColumnApi.prototype.getProvidedColumnGroup = function (name) {\n return this.columnModel.getProvidedColumnGroup(name);\n };\n /** Returns the display name for a column. Useful if you are doing your own header rendering and want the grid to work out if `headerValueGetter` is used, or if you are doing your own column management GUI, to know what to show as the column name. */\n\n\n ColumnApi.prototype.getDisplayNameForColumn = function (column, location) {\n return this.columnModel.getDisplayNameForColumn(column, location) || '';\n };\n /** Returns the display name for a column group (when grouping columns). */\n\n\n ColumnApi.prototype.getDisplayNameForColumnGroup = function (columnGroup, location) {\n return this.columnModel.getDisplayNameForColumnGroup(columnGroup, location) || '';\n };\n /** Returns the column with the given `colKey`, which can either be the `colId` (a string) or the `colDef` (an object). */\n\n\n ColumnApi.prototype.getColumn = function (key) {\n return this.columnModel.getPrimaryColumn(key);\n };\n /** Returns all the columns, regardless of visible or not. */\n\n\n ColumnApi.prototype.getColumns = function () {\n return this.columnModel.getAllPrimaryColumns();\n };\n /** Applies the state of the columns from a previous state. Returns `false` if one or more columns could not be found. */\n\n\n ColumnApi.prototype.applyColumnState = function (params) {\n return this.columnModel.applyColumnState(params, 'api');\n };\n /** Gets the state of the columns. Typically used when saving column state. */\n\n\n ColumnApi.prototype.getColumnState = function () {\n return this.columnModel.getColumnState();\n };\n /** Sets the state back to match the originally provided column definitions. */\n\n\n ColumnApi.prototype.resetColumnState = function () {\n this.columnModel.resetColumnState('api');\n };\n /** Gets the state of the column groups. Typically used when saving column group state. */\n\n\n ColumnApi.prototype.getColumnGroupState = function () {\n return this.columnModel.getColumnGroupState();\n };\n /** Sets the state of the column group state from a previous state. */\n\n\n ColumnApi.prototype.setColumnGroupState = function (stateItems) {\n this.columnModel.setColumnGroupState(stateItems, 'api');\n };\n /** Sets the state back to match the originally provided column definitions. */\n\n\n ColumnApi.prototype.resetColumnGroupState = function () {\n this.columnModel.resetColumnGroupState('api');\n };\n /** Returns `true` if pinning left or right, otherwise `false`. */\n\n\n ColumnApi.prototype.isPinning = function () {\n return this.columnModel.isPinningLeft() || this.columnModel.isPinningRight();\n };\n /** Returns `true` if pinning left, otherwise `false`. */\n\n\n ColumnApi.prototype.isPinningLeft = function () {\n return this.columnModel.isPinningLeft();\n };\n /** Returns `true` if pinning right, otherwise `false`. */\n\n\n ColumnApi.prototype.isPinningRight = function () {\n return this.columnModel.isPinningRight();\n };\n /** Returns the column to the right of the provided column, taking into consideration open / closed column groups and visible columns. This is useful if you need to know what column is beside yours e.g. if implementing your own cell navigation. */\n\n\n ColumnApi.prototype.getDisplayedColAfter = function (col) {\n return this.columnModel.getDisplayedColAfter(col);\n };\n /** Same as `getVisibleColAfter` except gives column to the left. */\n\n\n ColumnApi.prototype.getDisplayedColBefore = function (col) {\n return this.columnModel.getDisplayedColBefore(col);\n };\n /** Sets the visibility of a column. Key can be the column ID or `Column` object. */\n\n\n ColumnApi.prototype.setColumnVisible = function (key, visible) {\n this.columnModel.setColumnVisible(key, visible, 'api');\n };\n /** Same as `setColumnVisible`, but provide a list of column keys. */\n\n\n ColumnApi.prototype.setColumnsVisible = function (keys, visible) {\n this.columnModel.setColumnsVisible(keys, visible, 'api');\n };\n /** Sets the column pinned / unpinned. Key can be the column ID, field, `ColDef` object or `Column` object. */\n\n\n ColumnApi.prototype.setColumnPinned = function (key, pinned) {\n this.columnModel.setColumnPinned(key, pinned, 'api');\n };\n /** Same as `setColumnPinned`, but provide a list of column keys. */\n\n\n ColumnApi.prototype.setColumnsPinned = function (keys, pinned) {\n this.columnModel.setColumnsPinned(keys, pinned, 'api');\n };\n /**\n * Returns all the grid columns, same as `getColumns()`, except\n *\n * a) it has the order of the columns that are presented in the grid\n *\n * b) it's after the 'pivot' step, so if pivoting, has the value columns for the pivot.\n */\n\n\n ColumnApi.prototype.getAllGridColumns = function () {\n return this.columnModel.getAllGridColumns();\n };\n /** Same as `getAllDisplayedColumns` but just for the pinned left portion of the grid. */\n\n\n ColumnApi.prototype.getDisplayedLeftColumns = function () {\n return this.columnModel.getDisplayedLeftColumns();\n };\n /** Same as `getAllDisplayedColumns` but just for the center portion of the grid. */\n\n\n ColumnApi.prototype.getDisplayedCenterColumns = function () {\n return this.columnModel.getDisplayedCenterColumns();\n };\n /** Same as `getAllDisplayedColumns` but just for the pinned right portion of the grid. */\n\n\n ColumnApi.prototype.getDisplayedRightColumns = function () {\n return this.columnModel.getDisplayedRightColumns();\n };\n /** Returns all columns currently displayed (e.g. are visible and if in a group, the group is showing the columns) for the pinned left, centre and pinned right portions of the grid. */\n\n\n ColumnApi.prototype.getAllDisplayedColumns = function () {\n return this.columnModel.getAllDisplayedColumns();\n };\n /** Same as `getAllGridColumns()`, except only returns rendered columns, i.e. columns that are not within the viewport and therefore not rendered, due to column virtualisation, are not displayed. */\n\n\n ColumnApi.prototype.getAllDisplayedVirtualColumns = function () {\n return this.columnModel.getViewportColumns();\n };\n /** Moves a column to `toIndex`. The column is first removed, then added at the `toIndex` location, thus index locations will change to the right of the column after the removal. */\n\n\n ColumnApi.prototype.moveColumn = function (key, toIndex) {\n if (typeof key === 'number') {\n // moveColumn used to take indexes, so this is advising user who hasn't moved to new method name\n 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');\n this.columnModel.moveColumnByIndex(key, toIndex, 'api');\n } else {\n this.columnModel.moveColumn(key, toIndex, 'api');\n }\n };\n /** Same as `moveColumn` but works on index locations. */\n\n\n ColumnApi.prototype.moveColumnByIndex = function (fromIndex, toIndex) {\n this.columnModel.moveColumnByIndex(fromIndex, toIndex, 'api');\n };\n /** Same as `moveColumn` but works on list. */\n\n\n ColumnApi.prototype.moveColumns = function (columnsToMoveKeys, toIndex) {\n this.columnModel.moveColumns(columnsToMoveKeys, toIndex, 'api');\n };\n /** Move the column to a new position in the row grouping order. */\n\n\n ColumnApi.prototype.moveRowGroupColumn = function (fromIndex, toIndex) {\n this.columnModel.moveRowGroupColumn(fromIndex, toIndex);\n };\n /** Sets the agg function for a column. `aggFunc` can be one of `'min' | 'max' | 'sum'`. */\n\n\n ColumnApi.prototype.setColumnAggFunc = function (key, aggFunc) {\n this.columnModel.setColumnAggFunc(key, aggFunc);\n };\n /** Sets the column width on a single column. The finished flag gets included in the resulting event and not used internally by the grid. The finished flag is intended for dragging, where a dragging action will produce many `columnWidth` events, so the consumer of events knows when it receives the last event in a stream. The finished parameter is optional, and defaults to `true`. */\n\n\n ColumnApi.prototype.setColumnWidth = function (key, newWidth, finished, source) {\n if (finished === void 0) {\n finished = true;\n }\n\n this.columnModel.setColumnWidths([{\n key: key,\n newWidth: newWidth\n }], false, finished, source);\n };\n /** Sets the column widths on multiple columns. This method offers better performance than calling `setColumnWidth` multiple times. The finished flag gets included in the resulting event and not used internally by the grid. The finished flag is intended for dragging, where a dragging action will produce many `columnWidth` events, so the consumer of events knows when it receives the last event in a stream. The finished parameter is optional, and defaults to `true`. */\n\n\n ColumnApi.prototype.setColumnWidths = function (columnWidths, finished, source) {\n if (finished === void 0) {\n finished = true;\n }\n\n this.columnModel.setColumnWidths(columnWidths, false, finished, source);\n };\n /** Set the pivot mode. */\n\n\n ColumnApi.prototype.setPivotMode = function (pivotMode) {\n this.columnModel.setPivotMode(pivotMode);\n };\n /** Get the pivot mode. */\n\n\n ColumnApi.prototype.isPivotMode = function () {\n return this.columnModel.isPivotMode();\n };\n /** @deprecated Use `getPivotResultColumn` instead */\n\n\n ColumnApi.prototype.getSecondaryPivotColumn = function (pivotKeys, valueColKey) {\n console.warn('AG Grid: since version 28.0.x getSecondaryPivotColumn has been renamed, please use getPivotResultColumn instead');\n return this.getPivotResultColumn(pivotKeys, valueColKey);\n };\n /** Returns the pivot result column for the given `pivotKeys` and `valueColId`. Useful to then call operations on the pivot column. */\n\n\n ColumnApi.prototype.getPivotResultColumn = function (pivotKeys, valueColKey) {\n return this.columnModel.getSecondaryPivotColumn(pivotKeys, valueColKey);\n };\n /** Set the value columns. */\n\n\n ColumnApi.prototype.setValueColumns = function (colKeys) {\n this.columnModel.setValueColumns(colKeys, 'api');\n };\n /** Get value columns. */\n\n\n ColumnApi.prototype.getValueColumns = function () {\n return this.columnModel.getValueColumns();\n };\n /** Remove a value column. */\n\n\n ColumnApi.prototype.removeValueColumn = function (colKey) {\n this.columnModel.removeValueColumn(colKey, 'api');\n };\n /** Same as `removeValueColumns` but provide a list. */\n\n\n ColumnApi.prototype.removeValueColumns = function (colKeys) {\n this.columnModel.removeValueColumns(colKeys, 'api');\n };\n /** Add a value column. */\n\n\n ColumnApi.prototype.addValueColumn = function (colKey) {\n this.columnModel.addValueColumn(colKey, 'api');\n };\n /** Same as `addValueColumn` but provide a list. */\n\n\n ColumnApi.prototype.addValueColumns = function (colKeys) {\n this.columnModel.addValueColumns(colKeys, 'api');\n };\n /** Set the row group columns. */\n\n\n ColumnApi.prototype.setRowGroupColumns = function (colKeys) {\n this.columnModel.setRowGroupColumns(colKeys, 'api');\n };\n /** Remove a column from the row groups. */\n\n\n ColumnApi.prototype.removeRowGroupColumn = function (colKey) {\n this.columnModel.removeRowGroupColumn(colKey, 'api');\n };\n /** Same as `removeRowGroupColumn` but provide a list of columns. */\n\n\n ColumnApi.prototype.removeRowGroupColumns = function (colKeys) {\n this.columnModel.removeRowGroupColumns(colKeys, 'api');\n };\n /** Add a column to the row groups. */\n\n\n ColumnApi.prototype.addRowGroupColumn = function (colKey) {\n this.columnModel.addRowGroupColumn(colKey, 'api');\n };\n /** Same as `addRowGroupColumn` but provide a list of columns. */\n\n\n ColumnApi.prototype.addRowGroupColumns = function (colKeys) {\n this.columnModel.addRowGroupColumns(colKeys, 'api');\n };\n /** Get row group columns. */\n\n\n ColumnApi.prototype.getRowGroupColumns = function () {\n return this.columnModel.getRowGroupColumns();\n };\n /** Set the pivot columns. */\n\n\n ColumnApi.prototype.setPivotColumns = function (colKeys) {\n this.columnModel.setPivotColumns(colKeys, 'api');\n };\n /** Remove a pivot column. */\n\n\n ColumnApi.prototype.removePivotColumn = function (colKey) {\n this.columnModel.removePivotColumn(colKey, 'api');\n };\n /** Same as `removePivotColumn` but provide a list of columns. */\n\n\n ColumnApi.prototype.removePivotColumns = function (colKeys) {\n this.columnModel.removePivotColumns(colKeys, 'api');\n };\n /** Add a pivot column. */\n\n\n ColumnApi.prototype.addPivotColumn = function (colKey) {\n this.columnModel.addPivotColumn(colKey, 'api');\n };\n /** Same as `addPivotColumn` but provide a list of columns. */\n\n\n ColumnApi.prototype.addPivotColumns = function (colKeys) {\n this.columnModel.addPivotColumns(colKeys, 'api');\n };\n /** Get the pivot columns. */\n\n\n ColumnApi.prototype.getPivotColumns = function () {\n return this.columnModel.getPivotColumns();\n };\n /** Same as `getAllDisplayedColumnGroups` but just for the pinned left portion of the grid. */\n\n\n ColumnApi.prototype.getLeftDisplayedColumnGroups = function () {\n return this.columnModel.getDisplayedTreeLeft();\n };\n /** Same as `getAllDisplayedColumnGroups` but just for the center portion of the grid. */\n\n\n ColumnApi.prototype.getCenterDisplayedColumnGroups = function () {\n return this.columnModel.getDisplayedTreeCentre();\n };\n /** Same as `getAllDisplayedColumnGroups` but just for the pinned right portion of the grid. */\n\n\n ColumnApi.prototype.getRightDisplayedColumnGroups = function () {\n return this.columnModel.getDisplayedTreeRight();\n };\n /** Returns all 'root' column headers. If you are not grouping columns, these return the columns. If you are grouping, these return the top level groups - you can navigate down through each one to get the other lower level headers and finally the columns at the bottom. */\n\n\n ColumnApi.prototype.getAllDisplayedColumnGroups = function () {\n return this.columnModel.getAllDisplayedTrees();\n };\n /** Auto-sizes a column based on its contents. */\n\n\n ColumnApi.prototype.autoSizeColumn = function (key, skipHeader) {\n return this.columnModel.autoSizeColumn(key, skipHeader, 'api');\n };\n /** Same as `autoSizeColumn`, but provide a list of column keys. */\n\n\n ColumnApi.prototype.autoSizeColumns = function (keys, skipHeader) {\n this.columnModel.autoSizeColumns({\n columns: keys,\n skipHeader: skipHeader\n });\n };\n /** Calls `autoSizeColumns` on all displayed columns. */\n\n\n ColumnApi.prototype.autoSizeAllColumns = function (skipHeader) {\n this.columnModel.autoSizeAllColumns(skipHeader, 'api');\n };\n /** @deprecated Use `setPivotResultColumns` instead. */\n\n\n ColumnApi.prototype.setSecondaryColumns = function (colDefs) {\n console.warn('AG Grid: since version 28.0.x setSecondaryColumns has been renamed, please use setPivotResultColumns instead');\n this.setPivotResultColumns(colDefs);\n };\n /** Set the pivot result columns. */\n\n\n ColumnApi.prototype.setPivotResultColumns = function (colDefs) {\n this.columnModel.setSecondaryColumns(colDefs, 'api');\n };\n /** @deprecated Use `getPivotResultColumns` instead. */\n\n\n ColumnApi.prototype.getSecondaryColumns = function () {\n console.warn('AG Grid: since version 28.0.x getSecondaryColumns has been renamed, please use getPivotResultColumns instead');\n return this.getPivotResultColumns();\n };\n /** Returns the grid's pivot result columns. */\n\n\n ColumnApi.prototype.getPivotResultColumns = function () {\n return this.columnModel.getSecondaryColumns();\n };\n /** @deprecated Use `getColumns` instead. */\n\n\n ColumnApi.prototype.getPrimaryColumns = function () {\n console.warn('AG Grid: since version 28.0.x getPrimaryColumns has been renamed, please use getColumns instead');\n return this.getColumns();\n };\n\n ColumnApi.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid = function () {\n // some users were raising support issues with regards memory leaks. the problem was the customers applications\n // were keeping references to the API. trying to educate them all would be difficult, easier to just remove\n // all references in the API so at least the core grid can be garbage collected.\n //\n // wait about 100ms before clearing down the references, in case user has some cleanup to do,\n // and needs to deference the API first\n setTimeout(_.removeAllReferences.bind(window, this, 'Column API'), 100);\n }; // below goes through deprecated items, prints message to user, then calls the new version of the same method\n // public getColumnDefs(): (ColDef | ColGroupDef)[] {\n // this.setColumnGroupOpened(group, newValue);\n // return null;\n // }\n\n /** @deprecated Use `getColumns` instead */\n\n\n ColumnApi.prototype.getAllColumns = function () {\n console.warn('AG Grid: since version 28.0.x getAllColumns has been renamed, please use getColumns instead');\n return this.getColumns();\n };\n /** @deprecated columnGroupOpened no longer exists, use setColumnGroupOpened */\n\n\n ColumnApi.prototype.columnGroupOpened = function (group, newValue) {\n console.error('AG Grid: columnGroupOpened no longer exists, use setColumnGroupOpened');\n this.setColumnGroupOpened(group, newValue);\n };\n /** @deprecated hideColumns is deprecated, use setColumnsVisible */\n\n\n ColumnApi.prototype.hideColumns = function (colIds, hide) {\n console.error('AG Grid: hideColumns is deprecated, use setColumnsVisible');\n this.columnModel.setColumnsVisible(colIds, !hide, 'api');\n };\n /** @deprecated hideColumn is deprecated, use setColumnVisible */\n\n\n ColumnApi.prototype.hideColumn = function (colId, hide) {\n console.error('AG Grid: hideColumn is deprecated, use setColumnVisible');\n this.columnModel.setColumnVisible(colId, !hide, 'api');\n };\n /** @deprecated setState is deprecated, use setColumnState */\n\n\n ColumnApi.prototype.setState = function (columnState) {\n console.error('AG Grid: setState is deprecated, use setColumnState');\n return this.setColumnState(columnState);\n };\n /** @deprecated getState is deprecated, use getColumnState */\n\n\n ColumnApi.prototype.getState = function () {\n console.error('AG Grid: getState is deprecated, use getColumnState');\n return this.getColumnState();\n };\n /** @deprecated resetState is deprecated, use resetColumnState */\n\n\n ColumnApi.prototype.resetState = function () {\n console.error('AG Grid: resetState is deprecated, use resetColumnState');\n this.resetColumnState();\n };\n /** @deprecated getAggregationColumns is deprecated, use getValueColumns */\n\n\n ColumnApi.prototype.getAggregationColumns = function () {\n console.error('AG Grid: getAggregationColumns is deprecated, use getValueColumns');\n return this.columnModel.getValueColumns();\n };\n /** @deprecated removeAggregationColumn is deprecated, use removeValueColumn */\n\n\n ColumnApi.prototype.removeAggregationColumn = function (colKey) {\n console.error('AG Grid: removeAggregationColumn is deprecated, use removeValueColumn');\n this.columnModel.removeValueColumn(colKey, 'api');\n };\n /** @deprecated removeAggregationColumns is deprecated, use removeValueColumns */\n\n\n ColumnApi.prototype.removeAggregationColumns = function (colKeys) {\n console.error('AG Grid: removeAggregationColumns is deprecated, use removeValueColumns');\n this.columnModel.removeValueColumns(colKeys, 'api');\n };\n /** @deprecated addAggregationColumn is deprecated, use addValueColumn */\n\n\n ColumnApi.prototype.addAggregationColumn = function (colKey) {\n console.error('AG Grid: addAggregationColumn is deprecated, use addValueColumn');\n this.columnModel.addValueColumn(colKey, 'api');\n };\n /** @deprecated addAggregationColumns is deprecated, use addValueColumns */\n\n\n ColumnApi.prototype.addAggregationColumns = function (colKeys) {\n console.error('AG Grid: addAggregationColumns is deprecated, use addValueColumns');\n this.columnModel.addValueColumns(colKeys, 'api');\n };\n /** @deprecated setColumnAggFunction is deprecated, use setColumnAggFunc */\n\n\n ColumnApi.prototype.setColumnAggFunction = function (column, aggFunc) {\n console.error('AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc');\n this.columnModel.setColumnAggFunc(column, aggFunc, 'api');\n };\n /** @deprecated getDisplayNameForCol is deprecated, use getDisplayNameForColumn */\n\n\n ColumnApi.prototype.getDisplayNameForCol = function (column) {\n console.error('AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn');\n return this.getDisplayNameForColumn(column, null);\n };\n /** @deprecated setColumnState is deprecated, use applyColumnState. */\n\n\n ColumnApi.prototype.setColumnState = function (columnState) {\n console.error('AG Grid: setColumnState is deprecated, use applyColumnState');\n return this.columnModel.applyColumnState({\n state: columnState,\n applyOrder: true\n }, 'api');\n };\n /** @deprecated getOriginalColumnGroup is deprecated, use getProvidedColumnGroup. */\n\n\n ColumnApi.prototype.getOriginalColumnGroup = function (name) {\n console.error('AG Grid: getOriginalColumnGroup is deprecated, use getProvidedColumnGroup');\n return this.columnModel.getProvidedColumnGroup(name);\n };\n\n __decorate$J([Autowired('columnModel')], ColumnApi.prototype, \"columnModel\", void 0);\n\n __decorate$J([PreDestroy], ColumnApi.prototype, \"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid\", null);\n\n ColumnApi = __decorate$J([Bean('columnApi')], ColumnApi);\n return ColumnApi;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$H = undefined && undefined.__extends || function () {\n var _extendStatics142 = function extendStatics(d, b) {\n _extendStatics142 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics142(d, b);\n };\n\n return function (d, b) {\n _extendStatics142(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ValueService =\n/** @class */\nfunction (_super) {\n __extends$H(ValueService, _super);\n\n function ValueService() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.initialised = false;\n return _this;\n }\n\n ValueService.prototype.init = function () {\n var _this = this;\n\n this.cellExpressions = this.gridOptionsWrapper.isEnableCellExpressions();\n this.initialised = true; // We listen to our own event and use it to call the columnSpecific callback,\n // this way the handler calls are correctly interleaved with other global events\n\n this.eventService.addEventListener(Events.EVENT_CELL_VALUE_CHANGED, function (event) {\n return _this.callColumnCellValueChangedHandler(event);\n }, this.gridOptionsWrapper.useAsyncEvents());\n };\n\n ValueService.prototype.getValue = function (column, rowNode, forFilter, ignoreAggData) {\n if (forFilter === void 0) {\n forFilter = false;\n }\n\n if (ignoreAggData === void 0) {\n ignoreAggData = false;\n } // hack - the grid is getting refreshed before this bean gets initialised, race condition.\n // really should have a way so they get initialised in the right order???\n\n\n if (!this.initialised) {\n this.init();\n }\n\n if (!rowNode) {\n return;\n } // pull these out to make code below easier to read\n\n\n var colDef = column.getColDef();\n var field = colDef.field;\n var colId = column.getId();\n var data = rowNode.data;\n var result; // if there is a value getter, this gets precedence over a field\n\n var groupDataExists = rowNode.groupData && rowNode.groupData[colId] !== undefined;\n var aggDataExists = !ignoreAggData && rowNode.aggData && rowNode.aggData[colId] !== undefined;\n\n if (forFilter && colDef.filterValueGetter) {\n result = this.executeFilterValueGetter(colDef.filterValueGetter, data, column, rowNode);\n } else if (this.gridOptionsWrapper.isTreeData() && aggDataExists) {\n result = rowNode.aggData[colId];\n } else if (this.gridOptionsWrapper.isTreeData() && colDef.valueGetter) {\n result = this.executeValueGetter(colDef.valueGetter, data, column, rowNode);\n } else if (this.gridOptionsWrapper.isTreeData() && field && data) {\n result = getValueUsingField(data, field, column.isFieldContainsDots());\n } else if (groupDataExists) {\n result = rowNode.groupData[colId];\n } else if (aggDataExists) {\n result = rowNode.aggData[colId];\n } else if (colDef.valueGetter) {\n result = this.executeValueGetter(colDef.valueGetter, data, column, rowNode);\n } else if (field && data) {\n result = getValueUsingField(data, field, column.isFieldContainsDots());\n } // the result could be an expression itself, if we are allowing cell values to be expressions\n\n\n if (this.cellExpressions && typeof result === 'string' && result.indexOf('=') === 0) {\n var cellValueGetter = result.substring(1);\n result = this.executeValueGetter(cellValueGetter, data, column, rowNode);\n }\n\n if (result == null) {\n var openedGroup = this.getOpenedGroup(rowNode, column);\n\n if (openedGroup != null) {\n return openedGroup;\n }\n }\n\n return result;\n };\n\n ValueService.prototype.getOpenedGroup = function (rowNode, column) {\n if (!this.gridOptionsWrapper.isShowOpenedGroup()) {\n return;\n }\n\n var colDef = column.getColDef();\n\n if (!colDef.showRowGroup) {\n return;\n }\n\n var showRowGroup = column.getColDef().showRowGroup;\n var pointer = rowNode.parent;\n\n while (pointer != null) {\n if (pointer.rowGroupColumn && (showRowGroup === true || showRowGroup === pointer.rowGroupColumn.getId())) {\n return pointer.key;\n }\n\n pointer = pointer.parent;\n }\n\n return undefined;\n };\n /**\n * Sets the value of a GridCell\n * @param rowNode The `RowNode` to be updated\n * @param colKey The `Column` to be updated\n * @param newValue The new value to be set\n * @param eventSource The event source\n * @returns `True` if the value has been updated, otherwise`False`.\n */\n\n\n ValueService.prototype.setValue = function (rowNode, colKey, newValue, eventSource) {\n var column = this.columnModel.getPrimaryColumn(colKey);\n\n if (!rowNode || !column) {\n return false;\n } // this will only happen if user is trying to paste into a group row, which doesn't make sense\n // the user should not be trying to paste into group rows\n\n\n if (missing(rowNode.data)) {\n rowNode.data = {};\n } // for backwards compatibility we are also retrieving the newValueHandler as well as the valueSetter\n\n\n var _a = column.getColDef(),\n field = _a.field,\n newValueHandler = _a.newValueHandler,\n valueSetter = _a.valueSetter; // need either a field or a newValueHandler for this to work\n\n\n if (missing(field) && missing(newValueHandler) && missing(valueSetter)) {\n // we don't tell user about newValueHandler, as that is deprecated\n console.warn(\"AG Grid: you need either field or valueSetter set on colDef for editing to work\");\n return false;\n }\n\n var params = {\n node: rowNode,\n data: rowNode.data,\n oldValue: this.getValue(column, rowNode),\n newValue: newValue,\n colDef: column.getColDef(),\n column: column,\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n context: this.gridOptionsWrapper.getContext()\n };\n params.newValue = newValue;\n var valueWasDifferent;\n\n if (newValueHandler && exists(newValueHandler)) {\n valueWasDifferent = newValueHandler(params);\n } else if (exists(valueSetter)) {\n valueWasDifferent = this.expressionService.evaluate(valueSetter, params);\n } else {\n valueWasDifferent = this.setValueUsingField(rowNode.data, field, newValue, column.isFieldContainsDots());\n } // in case user forgot to return something (possible if they are not using TypeScript\n // and just forgot, or using an old newValueHandler we didn't always expect a return\n // value here), we default the return value to true, so we always refresh.\n\n\n if (valueWasDifferent === undefined) {\n valueWasDifferent = true;\n } // if no change to the value, then no need to do the updating, or notifying via events.\n // otherwise the user could be tabbing around the grid, and cellValueChange would get called\n // all the time.\n\n\n if (!valueWasDifferent) {\n return false;\n } // reset quick filter on this row\n\n\n rowNode.resetQuickFilterAggregateText();\n this.valueCache.onDataChanged();\n params.newValue = this.getValue(column, rowNode);\n var event = {\n type: Events.EVENT_CELL_VALUE_CHANGED,\n event: null,\n rowIndex: rowNode.rowIndex,\n rowPinned: rowNode.rowPinned,\n column: params.column,\n api: params.api,\n columnApi: params.columnApi,\n colDef: params.colDef,\n context: params.context,\n data: rowNode.data,\n node: rowNode,\n oldValue: params.oldValue,\n newValue: params.newValue,\n value: params.newValue,\n source: eventSource\n };\n this.eventService.dispatchEvent(event);\n return true;\n };\n\n ValueService.prototype.callColumnCellValueChangedHandler = function (event) {\n var onCellValueChanged = event.colDef.onCellValueChanged;\n\n if (typeof onCellValueChanged === 'function') {\n onCellValueChanged({\n node: event.node,\n data: event.data,\n oldValue: event.oldValue,\n newValue: event.newValue,\n colDef: event.colDef,\n column: event.column,\n api: event.api,\n columnApi: event.columnApi,\n context: event.context\n });\n }\n };\n\n ValueService.prototype.setValueUsingField = function (data, field, newValue, isFieldContainsDots) {\n if (!field) {\n return false;\n } // if no '.', then it's not a deep value\n\n\n var valuesAreSame = false;\n\n if (!isFieldContainsDots) {\n // soft comparison to match strings and numbers\n valuesAreSame = data[field] == newValue;\n\n if (!valuesAreSame) {\n data[field] = newValue;\n }\n } else {\n // otherwise it is a deep value, so need to dig for it\n var fieldPieces = field.split('.');\n var currentObject = data;\n\n while (fieldPieces.length > 0 && currentObject) {\n var fieldPiece = fieldPieces.shift();\n\n if (fieldPieces.length === 0) {\n // soft comparison to match strings and numbers\n valuesAreSame = currentObject[fieldPiece] == newValue;\n\n if (!valuesAreSame) {\n currentObject[fieldPiece] = newValue;\n }\n } else {\n currentObject = currentObject[fieldPiece];\n }\n }\n }\n\n return !valuesAreSame;\n };\n\n ValueService.prototype.executeFilterValueGetter = function (valueGetter, data, column, rowNode) {\n var params = {\n data: data,\n node: rowNode,\n column: column,\n colDef: column.getColDef(),\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n context: this.gridOptionsWrapper.getContext(),\n getValue: this.getValueCallback.bind(this, rowNode)\n };\n return this.expressionService.evaluate(valueGetter, params);\n };\n\n ValueService.prototype.executeValueGetter = function (valueGetter, data, column, rowNode) {\n var colId = column.getId(); // if inside the same turn, just return back the value we got last time\n\n var valueFromCache = this.valueCache.getValue(rowNode, colId);\n\n if (valueFromCache !== undefined) {\n return valueFromCache;\n }\n\n var params = {\n data: data,\n node: rowNode,\n column: column,\n colDef: column.getColDef(),\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n context: this.gridOptionsWrapper.getContext(),\n getValue: this.getValueCallback.bind(this, rowNode)\n };\n var result = this.expressionService.evaluate(valueGetter, params); // if a turn is active, store the value in case the grid asks for it again\n\n this.valueCache.setValue(rowNode, colId, result);\n return result;\n };\n\n ValueService.prototype.getValueCallback = function (node, field) {\n var otherColumn = this.columnModel.getPrimaryColumn(field);\n\n if (otherColumn) {\n return this.getValue(otherColumn, node);\n }\n\n return null;\n }; // used by row grouping and pivot, to get key for a row. col can be a pivot col or a row grouping col\n\n\n ValueService.prototype.getKeyForNode = function (col, rowNode) {\n var value = this.getValue(col, rowNode);\n var keyCreator = col.getColDef().keyCreator;\n var result = value;\n\n if (keyCreator) {\n var keyParams = {\n value: value,\n colDef: col.getColDef(),\n column: col,\n node: rowNode,\n data: rowNode.data,\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n context: this.gridOptionsWrapper.getContext()\n };\n result = keyCreator(keyParams);\n } // if already a string, or missing, just return it\n\n\n if (typeof result === 'string' || result == null) {\n return result;\n }\n\n result = String(result);\n\n if (result === '[object Object]') {\n doOnce(function () {\n 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');\n }, 'getKeyForNode - warn about [object,object]');\n }\n\n return result;\n };\n\n __decorate$I([Autowired('expressionService')], ValueService.prototype, \"expressionService\", void 0);\n\n __decorate$I([Autowired('columnModel')], ValueService.prototype, \"columnModel\", void 0);\n\n __decorate$I([Autowired('valueCache')], ValueService.prototype, \"valueCache\", void 0);\n\n __decorate$I([PostConstruct], ValueService.prototype, \"init\", null);\n\n ValueService = __decorate$I([Bean('valueService')], ValueService);\n return ValueService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$G = undefined && undefined.__extends || function () {\n var _extendStatics143 = function extendStatics(d, b) {\n _extendStatics143 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics143(d, b);\n };\n\n return function (d, b) {\n _extendStatics143(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __param$3 = undefined && undefined.__param || function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n};\n\nvar ExpressionService =\n/** @class */\nfunction (_super) {\n __extends$G(ExpressionService, _super);\n\n function ExpressionService() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.expressionToFunctionCache = {};\n return _this;\n }\n\n ExpressionService.prototype.setBeans = function (loggerFactory) {\n this.logger = loggerFactory.create('ExpressionService');\n };\n\n ExpressionService.prototype.evaluate = function (expressionOrFunc, params) {\n if (typeof expressionOrFunc === 'function') {\n // valueGetter is a function, so just call it\n var func = expressionOrFunc;\n return func(params);\n } else if (typeof expressionOrFunc === 'string') {\n // valueGetter is an expression, so execute the expression\n var expression = expressionOrFunc;\n return this.evaluateExpression(expression, params);\n } else {\n console.error('AG Grid: value should be either a string or a function', expressionOrFunc);\n }\n };\n\n ExpressionService.prototype.evaluateExpression = function (expression, params) {\n try {\n var javaScriptFunction = this.createExpressionFunction(expression); // the params don't have all these values, rather we add every possible\n // value a params can have, which makes whatever is in the params available.\n\n var result = javaScriptFunction(params.value, params.context, params.oldValue, params.newValue, params.value, params.node, params.data, params.colDef, params.rowIndex, params.api, params.columnApi, params.getValue, params.column, params.columnGroup);\n return result;\n } catch (e) {\n // the expression failed, which can happen, as it's the client that\n // provides the expression. so print a nice message\n // tslint:disable-next-line\n console.log('Processing of the expression failed'); // tslint:disable-next-line\n\n console.log('Expression = ' + expression); // tslint:disable-next-line\n\n console.log('Params =', params); // tslint:disable-next-line\n\n console.log('Exception = ' + e);\n return null;\n }\n };\n\n ExpressionService.prototype.createExpressionFunction = function (expression) {\n // check cache first\n if (this.expressionToFunctionCache[expression]) {\n return this.expressionToFunctionCache[expression];\n } // if not found in cache, return the function\n\n\n var functionBody = this.createFunctionBody(expression);\n var theFunction = new Function('x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup', functionBody); // store in cache\n\n this.expressionToFunctionCache[expression] = theFunction;\n return theFunction;\n };\n\n ExpressionService.prototype.createFunctionBody = function (expression) {\n // if the expression has the 'return' word in it, then use as is,\n // if not, then wrap it with return and ';' to make a function\n if (expression.indexOf('return') >= 0) {\n return expression;\n } else {\n return 'return ' + expression + ';';\n }\n };\n\n __decorate$H([__param$3(0, Qualifier('loggerFactory'))], ExpressionService.prototype, \"setBeans\", null);\n\n ExpressionService = __decorate$H([Bean('expressionService')], ExpressionService);\n return ExpressionService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$F = undefined && undefined.__extends || function () {\n var _extendStatics144 = function extendStatics(d, b) {\n _extendStatics144 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics144(d, b);\n };\n\n return function (d, b) {\n _extendStatics144(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar TemplateService =\n/** @class */\nfunction (_super) {\n __extends$F(TemplateService, _super);\n\n function TemplateService() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.templateCache = {};\n _this.waitingCallbacks = {};\n return _this;\n } // returns the template if it is loaded, or null if it is not loaded\n // but will call the callback when it is loaded\n\n\n TemplateService.prototype.getTemplate = function (url, callback) {\n var templateFromCache = this.templateCache[url];\n\n if (templateFromCache) {\n return templateFromCache;\n }\n\n var callbackList = this.waitingCallbacks[url];\n var that = this;\n\n if (!callbackList) {\n // first time this was called, so need a new list for callbacks\n callbackList = [];\n this.waitingCallbacks[url] = callbackList; // and also need to do the http request\n\n var client = new XMLHttpRequest();\n\n client.onload = function () {\n that.handleHttpResult(this, url);\n };\n\n client.open(\"GET\", url);\n client.send();\n } // add this callback\n\n\n if (callback) {\n callbackList.push(callback);\n } // caller needs to wait for template to load, so return null\n\n\n return null;\n };\n\n TemplateService.prototype.handleHttpResult = function (httpResult, url) {\n if (httpResult.status !== 200 || httpResult.response === null) {\n console.warn(\"AG Grid: Unable to get template error \" + httpResult.status + \" - \" + url);\n return;\n } // response success, so process it\n // in IE9 the response is in - responseText\n\n\n this.templateCache[url] = httpResult.response || httpResult.responseText; // inform all listeners that this is now in the cache\n\n var callbacks = this.waitingCallbacks[url];\n\n for (var i = 0; i < callbacks.length; i++) {\n var callback = callbacks[i]; // we could pass the callback the response, however we know the client of this code\n // is the cell renderer, and it passes the 'cellRefresh' method in as the callback\n // which doesn't take any parameters.\n\n callback();\n }\n };\n\n TemplateService = __decorate$G([Bean('templateService')], TemplateService);\n return TemplateService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$E = undefined && undefined.__extends || function () {\n var _extendStatics145 = function extendStatics(d, b) {\n _extendStatics145 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics145(d, b);\n };\n\n return function (d, b) {\n _extendStatics145(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __param$2 = undefined && undefined.__param || function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n};\n\nvar LoggerFactory =\n/** @class */\nfunction (_super) {\n __extends$E(LoggerFactory, _super);\n\n function LoggerFactory() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n LoggerFactory.prototype.setBeans = function (gridOptionsWrapper) {\n this.logging = gridOptionsWrapper.isDebug();\n };\n\n LoggerFactory.prototype.create = function (name) {\n return new Logger(name, this.isLogging.bind(this));\n };\n\n LoggerFactory.prototype.isLogging = function () {\n return this.logging;\n };\n\n __decorate$F([__param$2(0, Qualifier('gridOptionsWrapper'))], LoggerFactory.prototype, \"setBeans\", null);\n\n LoggerFactory = __decorate$F([Bean('loggerFactory')], LoggerFactory);\n return LoggerFactory;\n}(BeanStub);\n\nvar Logger =\n/** @class */\nfunction () {\n function Logger(name, isLoggingFunc) {\n this.name = name;\n this.isLoggingFunc = isLoggingFunc;\n }\n\n Logger.prototype.isLogging = function () {\n return this.isLoggingFunc();\n };\n\n Logger.prototype.log = function (message) {\n if (this.isLoggingFunc()) {\n // tslint:disable-next-line\n console.log('AG Grid.' + this.name + ': ' + message);\n }\n };\n\n return Logger;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$D = undefined && undefined.__extends || function () {\n var _extendStatics146 = function extendStatics(d, b) {\n _extendStatics146 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics146(d, b);\n };\n\n return function (d, b) {\n _extendStatics146(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar GridCtrl =\n/** @class */\nfunction (_super) {\n __extends$D(GridCtrl, _super);\n\n function GridCtrl() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n GridCtrl.prototype.setComp = function (view, eGridDiv, eGui) {\n var _this = this;\n\n this.view = view;\n this.eGridHostDiv = eGridDiv;\n this.eGui = eGui; // this drop target is just used to see if the drop event is inside the grid\n\n this.dragAndDropService.addDropTarget({\n getContainer: function getContainer() {\n return _this.eGui;\n },\n isInterestedIn: function isInterestedIn(type) {\n return type === DragSourceType.HeaderCell || type === DragSourceType.ToolPanel;\n },\n getIconName: function getIconName() {\n return DragAndDropService.ICON_NOT_ALLOWED;\n }\n });\n this.mouseEventService.stampTopLevelGridCompWithGridInstance(eGridDiv);\n this.createManagedBean(new LayoutFeature(this.view)); // important to set rtl before doLayout, as setting the RTL class impacts the scroll position,\n // which doLayout indirectly depends on\n\n this.addRtlSupport();\n this.addManagedListener(this, Events.EVENT_KEYBOARD_FOCUS, function () {\n _this.view.addOrRemoveKeyboardFocusClass(true);\n });\n this.addManagedListener(this, Events.EVENT_MOUSE_FOCUS, function () {\n _this.view.addOrRemoveKeyboardFocusClass(false);\n });\n var unsubscribeFromResize = this.resizeObserverService.observeResize(this.eGridHostDiv, this.onGridSizeChanged.bind(this));\n this.addDestroyFunc(function () {\n return unsubscribeFromResize();\n });\n this.ctrlsService.registerGridCtrl(this);\n };\n\n GridCtrl.prototype.isDetailGrid = function () {\n var _a, _b;\n\n var el = this.focusService.findTabbableParent(this.getGui());\n return ((_b = (_a = el) === null || _a === void 0 ? void 0 : _a.getAttribute('row-id')) === null || _b === void 0 ? void 0 : _b.startsWith('detail')) || false;\n };\n\n GridCtrl.prototype.showDropZones = function () {\n return ModuleRegistry.isRegistered(ModuleNames.RowGroupingModule);\n };\n\n GridCtrl.prototype.showSideBar = function () {\n return ModuleRegistry.isRegistered(ModuleNames.SideBarModule);\n };\n\n GridCtrl.prototype.showStatusBar = function () {\n return ModuleRegistry.isRegistered(ModuleNames.StatusBarModule);\n };\n\n GridCtrl.prototype.showWatermark = function () {\n return ModuleRegistry.isRegistered(ModuleNames.EnterpriseCoreModule);\n };\n\n GridCtrl.prototype.onGridSizeChanged = function () {\n var event = {\n type: Events.EVENT_GRID_SIZE_CHANGED,\n clientWidth: this.eGridHostDiv.clientWidth,\n clientHeight: this.eGridHostDiv.clientHeight\n };\n this.eventService.dispatchEvent(event);\n };\n\n GridCtrl.prototype.addRtlSupport = function () {\n var cssClass = this.gridOptionsWrapper.isEnableRtl() ? 'ag-rtl' : 'ag-ltr';\n this.view.setRtlClass(cssClass);\n };\n\n GridCtrl.prototype.destroyGridUi = function () {\n this.view.destroyGridUi();\n };\n\n GridCtrl.prototype.getGui = function () {\n return this.eGui;\n };\n\n GridCtrl.prototype.setResizeCursor = function (on) {\n this.view.setCursor(on ? 'ew-resize' : null);\n };\n\n GridCtrl.prototype.disableUserSelect = function (on) {\n this.view.setUserSelect(on ? 'none' : null);\n };\n\n GridCtrl.prototype.focusNextInnerContainer = function (backwards) {\n var eDocument = this.gridOptionsWrapper.getDocument();\n var focusableContainers = this.view.getFocusableContainers();\n var idxWithFocus = focusableContainers.findIndex(function (container) {\n return container.contains(eDocument.activeElement);\n });\n var nextIdx = idxWithFocus + (backwards ? -1 : 1);\n\n if (nextIdx <= 0 || nextIdx >= focusableContainers.length) {\n return false;\n }\n\n return this.focusService.focusInto(focusableContainers[nextIdx]);\n };\n\n GridCtrl.prototype.focusInnerElement = function (fromBottom) {\n var focusableContainers = this.view.getFocusableContainers();\n\n if (fromBottom) {\n if (focusableContainers.length > 1) {\n return this.focusService.focusInto(last(focusableContainers), true);\n }\n\n var lastColumn = last(this.columnModel.getAllDisplayedColumns());\n\n if (this.focusService.focusGridView(lastColumn, true)) {\n return true;\n }\n }\n\n return this.focusService.focusFirstHeader();\n };\n\n GridCtrl.prototype.forceFocusOutOfContainer = function (up) {\n if (up === void 0) {\n up = false;\n }\n\n this.view.forceFocusOutOfContainer(up);\n };\n\n __decorate$E([Autowired('focusService')], GridCtrl.prototype, \"focusService\", void 0);\n\n __decorate$E([Autowired('resizeObserverService')], GridCtrl.prototype, \"resizeObserverService\", void 0);\n\n __decorate$E([Autowired('columnModel')], GridCtrl.prototype, \"columnModel\", void 0);\n\n __decorate$E([Autowired('ctrlsService')], GridCtrl.prototype, \"ctrlsService\", void 0);\n\n __decorate$E([Autowired('mouseEventService')], GridCtrl.prototype, \"mouseEventService\", void 0);\n\n __decorate$E([Autowired('dragAndDropService')], GridCtrl.prototype, \"dragAndDropService\", void 0);\n\n return GridCtrl;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$C = undefined && undefined.__extends || function () {\n var _extendStatics147 = function extendStatics(d, b) {\n _extendStatics147 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics147(d, b);\n };\n\n return function (d, b) {\n _extendStatics147(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar GridComp =\n/** @class */\nfunction (_super) {\n __extends$C(GridComp, _super);\n\n function GridComp(eGridDiv) {\n var _this = _super.call(this, undefined) || this;\n\n _this.eGridDiv = eGridDiv;\n return _this;\n }\n\n GridComp.prototype.postConstruct = function () {\n var _this = this;\n\n this.logger = this.loggerFactory.create('GridComp');\n var compProxy = {\n destroyGridUi: function destroyGridUi() {\n return _this.destroyBean(_this);\n },\n setRtlClass: function setRtlClass(cssClass) {\n return _this.addCssClass(cssClass);\n },\n addOrRemoveKeyboardFocusClass: function addOrRemoveKeyboardFocusClass(addOrRemove) {\n return _this.addOrRemoveCssClass(FocusService.AG_KEYBOARD_FOCUS, addOrRemove);\n },\n forceFocusOutOfContainer: this.forceFocusOutOfContainer.bind(this),\n updateLayoutClasses: this.updateLayoutClasses.bind(this),\n getFocusableContainers: this.getFocusableContainers.bind(this),\n setUserSelect: function setUserSelect(value) {\n _this.getGui().style.userSelect = value != null ? value : '';\n _this.getGui().style.webkitUserSelect = value != null ? value : '';\n },\n setCursor: function setCursor(value) {\n _this.getGui().style.cursor = value != null ? value : '';\n }\n };\n this.ctrl = this.createManagedBean(new GridCtrl());\n var template = this.createTemplate();\n this.setTemplate(template);\n this.ctrl.setComp(compProxy, this.eGridDiv, this.getGui());\n this.insertGridIntoDom();\n this.initialiseTabGuard({\n // we want to override the default behaviour to do nothing for onTabKeyDown\n onTabKeyDown: function onTabKeyDown() {\n return undefined;\n },\n focusInnerElement: function focusInnerElement(fromBottom) {\n return _this.ctrl.focusInnerElement(fromBottom);\n }\n });\n };\n\n GridComp.prototype.insertGridIntoDom = function () {\n var _this = this;\n\n var eGui = this.getGui();\n this.eGridDiv.appendChild(eGui);\n this.addDestroyFunc(function () {\n _this.eGridDiv.removeChild(eGui);\n\n _this.logger.log('Grid removed from DOM');\n });\n };\n\n GridComp.prototype.updateLayoutClasses = function (cssClass, params) {\n var eRootWrapperBodyClassList = this.eRootWrapperBody.classList;\n eRootWrapperBodyClassList.toggle(LayoutCssClasses.AUTO_HEIGHT, params.autoHeight);\n eRootWrapperBodyClassList.toggle(LayoutCssClasses.NORMAL, params.normal);\n eRootWrapperBodyClassList.toggle(LayoutCssClasses.PRINT, params.print);\n this.addOrRemoveCssClass(LayoutCssClasses.AUTO_HEIGHT, params.autoHeight);\n this.addOrRemoveCssClass(LayoutCssClasses.NORMAL, params.normal);\n this.addOrRemoveCssClass(LayoutCssClasses.PRINT, params.print);\n };\n\n GridComp.prototype.createTemplate = function () {\n var dropZones = this.ctrl.showDropZones() ? '' : '';\n var sideBar = this.ctrl.showSideBar() ? '' : '';\n var statusBar = this.ctrl.showStatusBar() ? '' : '';\n var watermark = this.ctrl.showWatermark() ? '' : '';\n var template =\n /* html */\n \"
\\n \" + dropZones + \"\\n
\\n \\n \" + sideBar + \"\\n
\\n \" + statusBar + \"\\n \\n \" + watermark + \"\\n
\";\n return template;\n };\n\n GridComp.prototype.getFocusableElement = function () {\n return this.eRootWrapperBody;\n };\n\n GridComp.prototype.getFocusableContainers = function () {\n var focusableContainers = [this.gridBodyComp.getGui()];\n\n if (this.sideBarComp) {\n focusableContainers.push(this.sideBarComp.getGui());\n }\n\n return focusableContainers.filter(function (el) {\n return isVisible(el);\n });\n };\n\n __decorate$D([Autowired('loggerFactory')], GridComp.prototype, \"loggerFactory\", void 0);\n\n __decorate$D([RefSelector('gridBody')], GridComp.prototype, \"gridBodyComp\", void 0);\n\n __decorate$D([RefSelector('sideBar')], GridComp.prototype, \"sideBarComp\", void 0);\n\n __decorate$D([RefSelector('rootWrapperBody')], GridComp.prototype, \"eRootWrapperBody\", void 0);\n\n __decorate$D([PostConstruct], GridComp.prototype, \"postConstruct\", null);\n\n return GridComp;\n}(TabGuardComp);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$B = undefined && undefined.__extends || function () {\n var _extendStatics148 = function extendStatics(d, b) {\n _extendStatics148 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics148(d, b);\n };\n\n return function (d, b) {\n _extendStatics148(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$3 = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$2 = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$3(arguments[i]));\n }\n\n return ar;\n};\n\nvar SortController =\n/** @class */\nfunction (_super) {\n __extends$B(SortController, _super);\n\n function SortController() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n SortController_1 = SortController;\n\n SortController.prototype.progressSort = function (column, multiSort, source) {\n var nextDirection = this.getNextSortDirection(column);\n this.setSortForColumn(column, nextDirection, multiSort, source);\n };\n\n SortController.prototype.setSortForColumn = function (column, sort, multiSort, source) {\n var _a; // auto correct - if sort not legal value, then set it to 'no sort' (which is null)\n\n\n if (sort !== Constants.SORT_ASC && sort !== Constants.SORT_DESC) {\n sort = null;\n }\n\n var isColumnsSortingCoupledToGroup = this.gridOptionsWrapper.isColumnsSortingCoupledToGroup();\n var columnsToUpdate = [column];\n\n if (isColumnsSortingCoupledToGroup) {\n if (column.getColDef().showRowGroup) {\n var rowGroupColumns = this.columnModel.getSourceColumnsForGroupColumn(column);\n var sortableRowGroupColumns = (_a = rowGroupColumns) === null || _a === void 0 ? void 0 : _a.filter(function (col) {\n return col.getColDef().sortable;\n });\n\n if (sortableRowGroupColumns) {\n columnsToUpdate = __spread$2([column], sortableRowGroupColumns);\n }\n }\n }\n\n columnsToUpdate.forEach(function (col) {\n return col.setSort(sort, source);\n });\n var doingMultiSort = (multiSort || this.gridOptionsWrapper.isAlwaysMultiSort()) && !this.gridOptionsWrapper.isSuppressMultiSort(); // clear sort on all columns except those changed, and update the icons\n\n if (!doingMultiSort) {\n this.clearSortBarTheseColumns(columnsToUpdate, source);\n } // sortIndex used for knowing order of cols when multi-col sort\n\n\n this.updateSortIndex(column);\n this.dispatchSortChangedEvents(source);\n };\n\n SortController.prototype.updateSortIndex = function (lastColToChange) {\n var isCoupled = this.gridOptionsWrapper.isColumnsSortingCoupledToGroup();\n var groupParent = this.columnModel.getGroupDisplayColumnForGroup(lastColToChange.getId());\n var lastSortIndexCol = isCoupled ? groupParent || lastColToChange : lastColToChange;\n var allSortedCols = this.getIndexableColumnsOrdered(); // reset sort index on everything\n\n this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function (col) {\n return col.setSortIndex(null);\n });\n var allSortedColsWithoutChanges = allSortedCols.filter(function (col) {\n return col !== lastSortIndexCol;\n });\n var sortedColsWithIndices = !!lastSortIndexCol.getSort() ? __spread$2(allSortedColsWithoutChanges, [lastSortIndexCol]) : allSortedColsWithoutChanges;\n sortedColsWithIndices.forEach(function (col, idx) {\n return col.setSortIndex(idx);\n });\n }; // gets called by API, so if data changes, use can call this, which will end up\n // working out the sort order again of the rows.\n\n\n SortController.prototype.onSortChanged = function (source) {\n this.dispatchSortChangedEvents(source);\n };\n\n SortController.prototype.isSortActive = function () {\n // pull out all the columns that have sorting set\n var allCols = this.columnModel.getPrimaryAndSecondaryAndAutoColumns();\n var sortedCols = allCols.filter(function (column) {\n return !!column.getSort();\n });\n return sortedCols && sortedCols.length > 0;\n };\n\n SortController.prototype.dispatchSortChangedEvents = function (source) {\n var event = {\n type: Events.EVENT_SORT_CHANGED,\n source: source\n };\n this.eventService.dispatchEvent(event);\n };\n\n SortController.prototype.clearSortBarTheseColumns = function (columnsToSkip, source) {\n this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach(function (columnToClear) {\n // Do not clear if either holding shift, or if column in question was clicked\n if (!columnsToSkip.includes(columnToClear)) {\n // setting to 'undefined' as null means 'none' rather than cleared, otherwise issue will arise\n // if sort order is: ['desc', null , 'asc'], as it will start at null rather than 'desc'.\n columnToClear.setSort(undefined, source);\n }\n });\n };\n\n SortController.prototype.getNextSortDirection = function (column) {\n var sortingOrder;\n\n if (column.getColDef().sortingOrder) {\n sortingOrder = column.getColDef().sortingOrder;\n } else if (this.gridOptionsWrapper.getSortingOrder()) {\n sortingOrder = this.gridOptionsWrapper.getSortingOrder();\n } else {\n sortingOrder = SortController_1.DEFAULT_SORTING_ORDER;\n }\n\n if (!Array.isArray(sortingOrder) || sortingOrder.length <= 0) {\n console.warn(\"AG Grid: sortingOrder must be an array with at least one element, currently it's \" + sortingOrder);\n return null;\n }\n\n var currentIndex = sortingOrder.indexOf(column.getSort());\n var notInArray = currentIndex < 0;\n var lastItemInArray = currentIndex == sortingOrder.length - 1;\n var result;\n\n if (notInArray || lastItemInArray) {\n result = sortingOrder[0];\n } else {\n result = sortingOrder[currentIndex + 1];\n } // verify the sort type exists, as the user could provide the sortingOrder, need to make sure it's valid\n\n\n if (SortController_1.DEFAULT_SORTING_ORDER.indexOf(result) < 0) {\n console.warn('AG Grid: invalid sort type ' + result);\n return null;\n }\n\n return result;\n };\n\n SortController.prototype.getColumnsOrderedForSort = function () {\n // pull out all the columns that have sorting set\n var allColumnsIncludingAuto = this.columnModel.getPrimaryAndSecondaryAndAutoColumns(); // when both cols are missing sortIndex, we use the position of the col in all cols list.\n // this means if colDefs only have sort, but no sortIndex, we deterministically pick which\n // cols is sorted by first.\n\n var allColsIndexes = {};\n allColumnsIncludingAuto.forEach(function (col, index) {\n return allColsIndexes[col.getId()] = index;\n }); // put the columns in order of which one got sorted first\n\n allColumnsIncludingAuto.sort(function (a, b) {\n var iA = a.getSortIndex();\n var iB = b.getSortIndex();\n\n if (iA != null && iB != null) {\n return iA - iB; // both present, normal comparison\n } else if (iA == null && iB == null) {\n // both missing, compare using column positions\n var posA = allColsIndexes[a.getId()];\n var posB = allColsIndexes[b.getId()];\n return posA > posB ? 1 : -1;\n } else if (iB == null) {\n return -1; // iB missing\n } else {\n return 1; // iA missing\n }\n });\n return allColumnsIncludingAuto;\n };\n\n SortController.prototype.getIndexableColumnsOrdered = function () {\n var _this = this;\n\n if (!this.gridOptionsWrapper.isColumnsSortingCoupledToGroup()) {\n return this.getColumnsWithSortingOrdered();\n }\n\n return this.getColumnsOrderedForSort().filter(function (col) {\n var _a;\n\n if (!!col.getColDef().showRowGroup) {\n if (col.getColDef().field && col.getSort()) {\n return true;\n }\n\n var sourceCols = _this.columnModel.getSourceColumnsForGroupColumn(col);\n\n return (_a = sourceCols) === null || _a === void 0 ? void 0 : _a.some(function (col) {\n return !!col.getSort();\n });\n }\n\n return !!col.getSort();\n });\n };\n\n SortController.prototype.getColumnsWithSortingOrdered = function () {\n // pull out all the columns that have sorting set\n var orderedColumns = this.getColumnsOrderedForSort();\n return orderedColumns.filter(function (column) {\n return !!column.getSort();\n });\n }; // used by server side row models, to sent sort to server\n\n\n SortController.prototype.getSortModel = function () {\n return this.getColumnsWithSortingOrdered().map(function (column) {\n return {\n sort: column.getSort(),\n colId: column.getId()\n };\n });\n };\n\n SortController.prototype.getSortOptions = function () {\n return this.getColumnsWithSortingOrdered().map(function (column) {\n return {\n sort: column.getSort(),\n column: column\n };\n });\n };\n\n SortController.prototype.canColumnDisplayMixedSort = function (column) {\n var isColumnSortCouplingActive = this.gridOptionsWrapper.isColumnsSortingCoupledToGroup();\n var isGroupDisplayColumn = !!column.getColDef().showRowGroup;\n return isColumnSortCouplingActive && isGroupDisplayColumn;\n };\n\n SortController.prototype.getDisplaySortForColumn = function (column) {\n var _a;\n\n var linkedColumns = this.columnModel.getSourceColumnsForGroupColumn(column);\n\n if (!this.canColumnDisplayMixedSort(column) || !((_a = linkedColumns) === null || _a === void 0 ? void 0 : _a.length)) {\n return column.getSort();\n } // if column has unique data, its sorting is independent - but can still be mixed\n\n\n var columnHasUniqueData = !!column.getColDef().field;\n var sortableColumns = columnHasUniqueData ? __spread$2([column], linkedColumns) : linkedColumns;\n var firstSort = sortableColumns[0].getSort(); // the == is intentional, as null and undefined both represent no sort, which means they are equivalent\n\n var allMatch = sortableColumns.every(function (col) {\n return col.getSort() == firstSort;\n });\n\n if (!allMatch) {\n return 'mixed';\n }\n\n return firstSort;\n };\n\n SortController.prototype.getDisplaySortIndexForColumn = function (column) {\n var _this = this;\n\n var isColumnSortCouplingActive = this.gridOptionsWrapper.isColumnsSortingCoupledToGroup();\n\n if (!isColumnSortCouplingActive) {\n return this.getColumnsWithSortingOrdered().indexOf(column);\n }\n\n var displayColumn = this.columnModel.getGroupDisplayColumnForGroup(column.getId());\n\n if (displayColumn) {\n if (!!column.getSort()) {\n return this.getDisplaySortIndexForColumn(displayColumn);\n }\n\n return null;\n }\n\n var allSortedCols = this.getIndexableColumnsOrdered().filter(function (col) {\n return !_this.columnModel.getGroupDisplayColumnForGroup(col.getId());\n });\n return allSortedCols.indexOf(column);\n };\n\n var SortController_1;\n SortController.DEFAULT_SORTING_ORDER = [Constants.SORT_ASC, Constants.SORT_DESC, null];\n\n __decorate$C([Autowired('columnModel')], SortController.prototype, \"columnModel\", void 0);\n\n SortController = SortController_1 = __decorate$C([Bean('sortController')], SortController);\n return SortController;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$A = undefined && undefined.__extends || function () {\n var _extendStatics149 = function extendStatics(d, b) {\n _extendStatics149 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics149(d, b);\n };\n\n return function (d, b) {\n _extendStatics149(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ColumnHoverService =\n/** @class */\nfunction (_super) {\n __extends$A(ColumnHoverService, _super);\n\n function ColumnHoverService() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n ColumnHoverService.prototype.setMouseOver = function (columns) {\n this.selectedColumns = columns;\n var event = {\n type: Events.EVENT_COLUMN_HOVER_CHANGED\n };\n this.eventService.dispatchEvent(event);\n };\n\n ColumnHoverService.prototype.clearMouseOver = function () {\n this.selectedColumns = null;\n var event = {\n type: Events.EVENT_COLUMN_HOVER_CHANGED\n };\n this.eventService.dispatchEvent(event);\n };\n\n ColumnHoverService.prototype.isHovered = function (column) {\n return !!this.selectedColumns && this.selectedColumns.indexOf(column) >= 0;\n };\n\n ColumnHoverService = __decorate$B([Bean('columnHoverService')], ColumnHoverService);\n return ColumnHoverService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$z = undefined && undefined.__extends || function () {\n var _extendStatics150 = function extendStatics(d, b) {\n _extendStatics150 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics150(d, b);\n };\n\n return function (d, b) {\n _extendStatics150(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ColumnAnimationService =\n/** @class */\nfunction (_super) {\n __extends$z(ColumnAnimationService, _super);\n\n function ColumnAnimationService() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.executeNextFuncs = [];\n _this.executeLaterFuncs = [];\n _this.active = false;\n _this.animationThreadCount = 0;\n return _this;\n }\n\n ColumnAnimationService.prototype.postConstruct = function () {\n var _this = this;\n\n this.ctrlsService.whenReady(function (p) {\n return _this.gridBodyCtrl = p.gridBodyCtrl;\n });\n };\n\n ColumnAnimationService.prototype.isActive = function () {\n return this.active;\n };\n\n ColumnAnimationService.prototype.start = function () {\n if (this.active) {\n return;\n }\n\n if (this.gridOptionsWrapper.isSuppressColumnMoveAnimation()) {\n return;\n } // if doing RTL, we don't animate open / close as due to how the pixels are inverted,\n // the animation moves all the row the the right rather than to the left (ie it's the static\n // columns that actually get their coordinates updated)\n\n\n if (this.gridOptionsWrapper.isEnableRtl()) {\n return;\n }\n\n this.ensureAnimationCssClassPresent();\n this.active = true;\n };\n\n ColumnAnimationService.prototype.finish = function () {\n if (!this.active) {\n return;\n }\n\n this.flush();\n this.active = false;\n };\n\n ColumnAnimationService.prototype.executeNextVMTurn = function (func) {\n if (this.active) {\n this.executeNextFuncs.push(func);\n } else {\n func();\n }\n };\n\n ColumnAnimationService.prototype.executeLaterVMTurn = function (func) {\n if (this.active) {\n this.executeLaterFuncs.push(func);\n } else {\n func();\n }\n };\n\n ColumnAnimationService.prototype.ensureAnimationCssClassPresent = function () {\n var _this = this; // up the count, so we can tell if someone else has updated the count\n // by the time the 'wait' func executes\n\n\n this.animationThreadCount++;\n var animationThreadCountCopy = this.animationThreadCount;\n this.gridBodyCtrl.setColumnMovingCss(true);\n this.executeLaterFuncs.push(function () {\n // only remove the class if this thread was the last one to update it\n if (_this.animationThreadCount === animationThreadCountCopy) {\n _this.gridBodyCtrl.setColumnMovingCss(false);\n }\n });\n };\n\n ColumnAnimationService.prototype.flush = function () {\n var nowFuncs = this.executeNextFuncs;\n this.executeNextFuncs = [];\n var waitFuncs = this.executeLaterFuncs;\n this.executeLaterFuncs = [];\n\n if (nowFuncs.length === 0 && waitFuncs.length === 0) {\n return;\n }\n\n window.setTimeout(function () {\n return nowFuncs.forEach(function (func) {\n return func();\n });\n }, 0);\n window.setTimeout(function () {\n return waitFuncs.forEach(function (func) {\n return func();\n });\n }, 300);\n };\n\n __decorate$A([Autowired('ctrlsService')], ColumnAnimationService.prototype, \"ctrlsService\", void 0);\n\n __decorate$A([PostConstruct], ColumnAnimationService.prototype, \"postConstruct\", null);\n\n ColumnAnimationService = __decorate$A([Bean('columnAnimationService')], ColumnAnimationService);\n return ColumnAnimationService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$y = undefined && undefined.__extends || function () {\n var _extendStatics151 = function extendStatics(d, b) {\n _extendStatics151 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics151(d, b);\n };\n\n return function (d, b) {\n _extendStatics151(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AutoGroupColService =\n/** @class */\nfunction (_super) {\n __extends$y(AutoGroupColService, _super);\n\n function AutoGroupColService() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n AutoGroupColService_1 = AutoGroupColService;\n\n AutoGroupColService.prototype.createAutoGroupColumns = function (existingCols, rowGroupColumns) {\n var _this = this;\n\n var groupAutoColumns = [];\n var doingTreeData = this.gridOptionsWrapper.isTreeData();\n var doingMultiAutoColumn = this.gridOptionsWrapper.isGroupMultiAutoColumn();\n\n if (doingTreeData && doingMultiAutoColumn) {\n console.warn('AG Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data');\n doingMultiAutoColumn = false;\n } // if doing groupMultiAutoColumn, then we call the method multiple times, once\n // for each column we are grouping by\n\n\n if (doingMultiAutoColumn) {\n rowGroupColumns.forEach(function (rowGroupCol, index) {\n groupAutoColumns.push(_this.createOneAutoGroupColumn(existingCols, rowGroupCol, index));\n });\n } else {\n groupAutoColumns.push(this.createOneAutoGroupColumn(existingCols));\n }\n\n return groupAutoColumns;\n }; // rowGroupCol and index are missing if groupMultiAutoColumn=false\n\n\n AutoGroupColService.prototype.createOneAutoGroupColumn = function (existingCols, rowGroupCol, index) {\n // if one provided by user, use it, otherwise create one\n var defaultAutoColDef = this.generateDefaultColDef(rowGroupCol); // if doing multi, set the field\n\n var colId;\n\n if (rowGroupCol) {\n colId = Constants.GROUP_AUTO_COLUMN_ID + \"-\" + rowGroupCol.getId();\n } else {\n colId = AutoGroupColService_1.GROUP_AUTO_COLUMN_BUNDLE_ID;\n }\n\n var userAutoColDef = this.gridOptionsWrapper.getAutoGroupColumnDef();\n mergeDeep(defaultAutoColDef, userAutoColDef);\n defaultAutoColDef = this.columnFactory.mergeColDefs(defaultAutoColDef);\n defaultAutoColDef.colId = colId; // For tree data the filter is always allowed\n\n if (!this.gridOptionsWrapper.isTreeData()) {\n // we would only allow filter if the user has provided field or value getter. otherwise the filter\n // would not be able to work.\n var noFieldOrValueGetter = missing(defaultAutoColDef.field) && missing(defaultAutoColDef.valueGetter) && missing(defaultAutoColDef.filterValueGetter);\n\n if (noFieldOrValueGetter) {\n defaultAutoColDef.filter = false;\n }\n } // if showing many cols, we don't want to show more than one with a checkbox for selection\n\n\n if (index && index > 0) {\n defaultAutoColDef.headerCheckboxSelection = false;\n }\n\n var existingCol = existingCols.find(function (col) {\n return col.getId() == colId;\n });\n\n if (existingCol) {\n existingCol.setColDef(defaultAutoColDef, null);\n this.columnFactory.applyColumnState(existingCol, defaultAutoColDef);\n return existingCol;\n }\n\n var newCol = new Column(defaultAutoColDef, null, colId, true);\n this.context.createBean(newCol);\n return newCol;\n };\n\n AutoGroupColService.prototype.generateDefaultColDef = function (rowGroupCol) {\n var userDef = this.gridOptionsWrapper.getAutoGroupColumnDef();\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n var res = {\n headerName: localeTextFunc('group', 'Group')\n };\n var userHasProvidedGroupCellRenderer = userDef && (userDef.cellRenderer || userDef.cellRendererFramework || userDef.cellRendererSelector); // only add the default group cell renderer if user hasn't provided one\n\n if (!userHasProvidedGroupCellRenderer) {\n res.cellRenderer = 'agGroupCellRenderer';\n } // we never allow moving the group column\n // defaultAutoColDef.suppressMovable = true;\n\n\n if (rowGroupCol) {\n var colDef = rowGroupCol.getColDef();\n Object.assign(res, {\n // cellRendererParams.groupKey: colDefToCopy.field;\n headerName: this.columnModel.getDisplayNameForColumn(rowGroupCol, 'header'),\n headerValueGetter: colDef.headerValueGetter\n });\n\n if (colDef.cellRenderer || colDef.cellRendererFramework) {\n Object.assign(res, {\n cellRendererParams: {\n innerRenderer: colDef.cellRenderer,\n innerRendererFramework: colDef.cellRendererFramework,\n innerRendererParams: colDef.cellRendererParams\n }\n });\n }\n\n res.showRowGroup = rowGroupCol.getColId();\n } else {\n res.showRowGroup = true;\n }\n\n return res;\n };\n\n var AutoGroupColService_1;\n AutoGroupColService.GROUP_AUTO_COLUMN_BUNDLE_ID = Constants.GROUP_AUTO_COLUMN_ID;\n\n __decorate$z([Autowired('columnModel')], AutoGroupColService.prototype, \"columnModel\", void 0);\n\n __decorate$z([Autowired('columnFactory')], AutoGroupColService.prototype, \"columnFactory\", void 0);\n\n AutoGroupColService = AutoGroupColService_1 = __decorate$z([Bean('autoGroupColService')], AutoGroupColService);\n return AutoGroupColService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$x = undefined && undefined.__extends || function () {\n var _extendStatics152 = function extendStatics(d, b) {\n _extendStatics152 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics152(d, b);\n };\n\n return function (d, b) {\n _extendStatics152(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar PaginationAutoPageSizeService =\n/** @class */\nfunction (_super) {\n __extends$x(PaginationAutoPageSizeService, _super);\n\n function PaginationAutoPageSizeService() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n PaginationAutoPageSizeService.prototype.postConstruct = function () {\n var _this = this;\n\n this.ctrlsService.whenReady(function (p) {\n _this.centerRowContainerCon = p.centerRowContainerCtrl;\n\n _this.addManagedListener(_this.eventService, Events.EVENT_BODY_HEIGHT_CHANGED, _this.onBodyHeightChanged.bind(_this));\n\n _this.addManagedListener(_this.eventService, Events.EVENT_SCROLL_VISIBILITY_CHANGED, _this.onScrollVisibilityChanged.bind(_this));\n\n _this.checkPageSize();\n });\n };\n\n PaginationAutoPageSizeService.prototype.notActive = function () {\n return !this.gridOptionsWrapper.isPaginationAutoPageSize();\n };\n\n PaginationAutoPageSizeService.prototype.onScrollVisibilityChanged = function () {\n this.checkPageSize();\n };\n\n PaginationAutoPageSizeService.prototype.onBodyHeightChanged = function () {\n this.checkPageSize();\n };\n\n PaginationAutoPageSizeService.prototype.checkPageSize = function () {\n if (this.notActive()) {\n return;\n }\n\n var rowHeight = this.gridOptionsWrapper.getRowHeightAsNumber();\n var bodyHeight = this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();\n\n if (bodyHeight > 0) {\n var newPageSize = Math.floor(bodyHeight / rowHeight);\n this.gridOptionsWrapper.setProperty('paginationPageSize', newPageSize);\n }\n };\n\n __decorate$y([Autowired('ctrlsService')], PaginationAutoPageSizeService.prototype, \"ctrlsService\", void 0);\n\n __decorate$y([PostConstruct], PaginationAutoPageSizeService.prototype, \"postConstruct\", null);\n\n PaginationAutoPageSizeService = __decorate$y([Bean('paginationAutoPageSizeService')], PaginationAutoPageSizeService);\n return PaginationAutoPageSizeService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$w = undefined && undefined.__extends || function () {\n var _extendStatics153 = function extendStatics(d, b) {\n _extendStatics153 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics153(d, b);\n };\n\n return function (d, b) {\n _extendStatics153(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ValueCache =\n/** @class */\nfunction (_super) {\n __extends$w(ValueCache, _super);\n\n function ValueCache() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.cacheVersion = 0;\n return _this;\n }\n\n ValueCache.prototype.init = function () {\n this.active = this.gridOptionsWrapper.isValueCache();\n this.neverExpires = this.gridOptionsWrapper.isValueCacheNeverExpires();\n };\n\n ValueCache.prototype.onDataChanged = function () {\n if (this.neverExpires) {\n return;\n }\n\n this.expire();\n };\n\n ValueCache.prototype.expire = function () {\n this.cacheVersion++;\n };\n\n ValueCache.prototype.setValue = function (rowNode, colId, value) {\n if (this.active) {\n if (rowNode.__cacheVersion !== this.cacheVersion) {\n rowNode.__cacheVersion = this.cacheVersion;\n rowNode.__cacheData = {};\n }\n\n rowNode.__cacheData[colId] = value;\n }\n };\n\n ValueCache.prototype.getValue = function (rowNode, colId) {\n if (!this.active || rowNode.__cacheVersion !== this.cacheVersion) {\n return undefined;\n }\n\n return rowNode.__cacheData[colId];\n };\n\n __decorate$x([PostConstruct], ValueCache.prototype, \"init\", null);\n\n ValueCache = __decorate$x([Bean('valueCache')], ValueCache);\n return ValueCache;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$v = undefined && undefined.__extends || function () {\n var _extendStatics154 = function extendStatics(d, b) {\n _extendStatics154 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics154(d, b);\n };\n\n return function (d, b) {\n _extendStatics154(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ChangeDetectionService =\n/** @class */\nfunction (_super) {\n __extends$v(ChangeDetectionService, _super);\n\n function ChangeDetectionService() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n ChangeDetectionService.prototype.init = function () {\n if (this.rowModel.getType() === Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {\n this.clientSideRowModel = this.rowModel;\n }\n\n this.addManagedListener(this.eventService, Events.EVENT_CELL_VALUE_CHANGED, this.onCellValueChanged.bind(this));\n };\n\n ChangeDetectionService.prototype.onCellValueChanged = function (event) {\n // Clipboard service manages its own change detection, so no need to do it here.\n // The clipboard manages its own as otherwise this would happen once for every cell\n // that got updated as part of a paste operation, so e.g. if 100 cells in a paste operation,\n // this doChangeDetection would get called 100 times (once for each cell), instead clipboard\n // service executes the logic we have here once (in essence batching up all cell changes\n // into one change detection).\n if (event.source === Constants.SOURCE_PASTE) {\n return;\n }\n\n this.doChangeDetection(event.node, event.column);\n };\n\n ChangeDetectionService.prototype.doChangeDetection = function (rowNode, column) {\n if (this.gridOptionsWrapper.isSuppressChangeDetection()) {\n return;\n } // step 1 of change detection is to update the aggregated values\n\n\n if (this.clientSideRowModel && !rowNode.isRowPinned()) {\n var onlyChangedColumns = this.gridOptionsWrapper.isAggregateOnlyChangedColumns();\n var changedPath = new ChangedPath(onlyChangedColumns, this.clientSideRowModel.getRootNode());\n changedPath.addParentNode(rowNode.parent, [column]);\n this.clientSideRowModel.doAggregate(changedPath);\n } // step 2 of change detection is to refresh the cells\n\n\n this.rowRenderer.refreshCells();\n };\n\n __decorate$w([Autowired('rowModel')], ChangeDetectionService.prototype, \"rowModel\", void 0);\n\n __decorate$w([Autowired('rowRenderer')], ChangeDetectionService.prototype, \"rowRenderer\", void 0);\n\n __decorate$w([PostConstruct], ChangeDetectionService.prototype, \"init\", null);\n\n ChangeDetectionService = __decorate$w([Bean('changeDetectionService')], ChangeDetectionService);\n return ChangeDetectionService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$u = undefined && undefined.__extends || function () {\n var _extendStatics155 = function extendStatics(d, b) {\n _extendStatics155 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics155(d, b);\n };\n\n return function (d, b) {\n _extendStatics155(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AgComponentUtils =\n/** @class */\nfunction (_super) {\n __extends$u(AgComponentUtils, _super);\n\n function AgComponentUtils() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n AgComponentUtils.prototype.adaptFunction = function (propertyName, jsCompFunc) {\n var metadata = this.componentMetadataProvider.retrieve(propertyName);\n\n if (metadata && metadata.functionAdapter) {\n return metadata.functionAdapter(jsCompFunc);\n }\n\n return null;\n };\n\n AgComponentUtils.prototype.adaptCellRendererFunction = function (callback) {\n var Adapter =\n /** @class */\n function () {\n function Adapter() {}\n\n Adapter.prototype.refresh = function (params) {\n return false;\n };\n\n Adapter.prototype.getGui = function () {\n return this.eGui;\n };\n\n Adapter.prototype.init = function (params) {\n var callbackResult = callback(params);\n var type = typeof callbackResult;\n\n if (type === 'string' || type === 'number' || type === 'boolean') {\n this.eGui = loadTemplate('' + callbackResult + '');\n return;\n }\n\n if (callbackResult == null) {\n this.eGui = loadTemplate('');\n return;\n }\n\n this.eGui = callbackResult;\n };\n\n return Adapter;\n }();\n\n return Adapter;\n };\n\n AgComponentUtils.prototype.doesImplementIComponent = function (candidate) {\n if (!candidate) {\n return false;\n }\n\n return candidate.prototype && 'getGui' in candidate.prototype;\n };\n\n __decorate$v([Autowired(\"componentMetadataProvider\")], AgComponentUtils.prototype, \"componentMetadataProvider\", void 0);\n\n AgComponentUtils = __decorate$v([Bean(\"agComponentUtils\")], AgComponentUtils);\n return AgComponentUtils;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$t = undefined && undefined.__extends || function () {\n var _extendStatics156 = function extendStatics(d, b) {\n _extendStatics156 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics156(d, b);\n };\n\n return function (d, b) {\n _extendStatics156(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ComponentMetadataProvider =\n/** @class */\nfunction (_super) {\n __extends$t(ComponentMetadataProvider, _super);\n\n function ComponentMetadataProvider() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n ComponentMetadataProvider.prototype.postConstruct = function () {\n this.componentMetaData = {\n dateComponent: {\n mandatoryMethodList: ['getDate', 'setDate'],\n optionalMethodList: ['afterGuiAttached', 'setInputPlaceholder', 'setInputAriaLabel']\n },\n detailCellRenderer: {\n mandatoryMethodList: [],\n optionalMethodList: ['refresh'],\n functionAdapter: this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)\n },\n headerComponent: {\n mandatoryMethodList: [],\n optionalMethodList: ['refresh']\n },\n headerGroupComponent: {\n mandatoryMethodList: [],\n optionalMethodList: []\n },\n loadingCellRenderer: {\n mandatoryMethodList: [],\n optionalMethodList: []\n },\n loadingOverlayComponent: {\n mandatoryMethodList: [],\n optionalMethodList: []\n },\n noRowsOverlayComponent: {\n mandatoryMethodList: [],\n optionalMethodList: []\n },\n floatingFilterComponent: {\n mandatoryMethodList: ['onParentModelChanged'],\n optionalMethodList: ['afterGuiAttached']\n },\n floatingFilterWrapperComponent: {\n mandatoryMethodList: [],\n optionalMethodList: []\n },\n cellRenderer: {\n mandatoryMethodList: [],\n optionalMethodList: ['refresh', 'afterGuiAttached'],\n functionAdapter: this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)\n },\n cellEditor: {\n mandatoryMethodList: ['getValue'],\n optionalMethodList: ['isPopup', 'isCancelBeforeStart', 'isCancelAfterEnd', 'getPopupPosition', 'focusIn', 'focusOut', 'afterGuiAttached']\n },\n innerRenderer: {\n mandatoryMethodList: [],\n optionalMethodList: ['afterGuiAttached'],\n functionAdapter: this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)\n },\n fullWidthCellRenderer: {\n mandatoryMethodList: [],\n optionalMethodList: ['refresh', 'afterGuiAttached'],\n functionAdapter: this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)\n },\n pinnedRowCellRenderer: {\n mandatoryMethodList: [],\n optionalMethodList: ['refresh', 'afterGuiAttached'],\n functionAdapter: this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)\n },\n groupRowRenderer: {\n mandatoryMethodList: [],\n optionalMethodList: ['afterGuiAttached'],\n functionAdapter: this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)\n },\n filter: {\n mandatoryMethodList: ['isFilterActive', 'doesFilterPass', 'getModel', 'setModel'],\n optionalMethodList: ['afterGuiAttached', 'onNewRowsLoaded', 'getModelAsString', 'onFloatingFilterChanged']\n },\n filterComponent: {\n mandatoryMethodList: ['isFilterActive', 'doesFilterPass', 'getModel', 'setModel'],\n optionalMethodList: ['afterGuiAttached', 'onNewRowsLoaded', 'getModelAsString', 'onFloatingFilterChanged']\n },\n statusPanel: {\n mandatoryMethodList: [],\n optionalMethodList: ['afterGuiAttached']\n },\n toolPanel: {\n mandatoryMethodList: [],\n optionalMethodList: ['refresh', 'afterGuiAttached']\n },\n tooltipComponent: {\n mandatoryMethodList: [],\n optionalMethodList: []\n }\n };\n };\n\n ComponentMetadataProvider.prototype.retrieve = function (name) {\n return this.componentMetaData[name];\n };\n\n __decorate$u([Autowired(\"agComponentUtils\")], ComponentMetadataProvider.prototype, \"agComponentUtils\", void 0);\n\n __decorate$u([PostConstruct], ComponentMetadataProvider.prototype, \"postConstruct\", null);\n\n ComponentMetadataProvider = __decorate$u([Bean(\"componentMetadataProvider\")], ComponentMetadataProvider);\n return ComponentMetadataProvider;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$s = undefined && undefined.__extends || function () {\n var _extendStatics157 = function extendStatics(d, b) {\n _extendStatics157 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics157(d, b);\n };\n\n return function (d, b) {\n _extendStatics157(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar MAT_GRID_SIZE = 8;\nvar BASE_GRID_SIZE = 4;\nvar BALHAM_GRID_SIZE = 4;\nvar ALPINE_GRID_SIZE = 6;\nvar HARD_CODED_SIZES = {\n // this item is required for custom themes\n 'ag-theme-custom': {\n headerHeight: 25,\n headerCellMinWidth: 24,\n listItemHeight: BASE_GRID_SIZE * 5,\n rowHeight: 25,\n chartMenuPanelWidth: 220\n },\n 'ag-theme-material': {\n headerHeight: MAT_GRID_SIZE * 7,\n headerCellMinWidth: 48,\n listItemHeight: MAT_GRID_SIZE * 4,\n rowHeight: MAT_GRID_SIZE * 6,\n chartMenuPanelWidth: 240\n },\n 'ag-theme-balham': {\n headerHeight: BALHAM_GRID_SIZE * 8,\n headerCellMinWidth: 24,\n listItemHeight: BALHAM_GRID_SIZE * 6,\n rowHeight: BALHAM_GRID_SIZE * 7,\n chartMenuPanelWidth: 220\n },\n 'ag-theme-alpine': {\n headerHeight: ALPINE_GRID_SIZE * 8,\n headerCellMinWidth: 36,\n listItemHeight: ALPINE_GRID_SIZE * 4,\n rowHeight: ALPINE_GRID_SIZE * 7,\n chartMenuPanelWidth: 240\n }\n};\n/**\n * this object contains a list of Sass variables and an array\n * of CSS styles required to get the correct value.\n * eg. $virtual-item-height requires a structure, so we can get its height.\n *
\n *
\n *
\n *
\n *
\n */\n\nvar SASS_PROPERTY_BUILDER = {\n headerHeight: ['ag-header-row'],\n headerCellMinWidth: ['ag-header-cell'],\n listItemHeight: ['ag-virtual-list-item'],\n rowHeight: ['ag-row'],\n chartMenuPanelWidth: ['ag-chart-docked-container']\n};\nvar CALCULATED_SIZES = {};\n\nvar Environment =\n/** @class */\nfunction (_super) {\n __extends$s(Environment, _super);\n\n function Environment() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n Environment.prototype.getSassVariable = function (theme, key) {\n var useTheme = 'ag-theme-' + (theme.match('material') ? 'material' : theme.match('balham') ? 'balham' : theme.match('alpine') ? 'alpine' : 'custom');\n var defaultValue = HARD_CODED_SIZES[useTheme][key];\n var calculatedValue = 0;\n\n if (!CALCULATED_SIZES[theme]) {\n CALCULATED_SIZES[theme] = {};\n }\n\n var size = CALCULATED_SIZES[theme][key];\n\n if (size != null) {\n return size;\n }\n\n if (SASS_PROPERTY_BUILDER[key]) {\n var classList = SASS_PROPERTY_BUILDER[key];\n var div = document.createElement('div');\n div.classList.add(theme);\n div.style.position = 'absolute';\n var el = classList.reduce(function (prevEl, currentClass) {\n var currentDiv = document.createElement('div');\n currentDiv.style.position = 'static';\n currentDiv.classList.add(currentClass);\n prevEl.appendChild(currentDiv);\n return currentDiv;\n }, div);\n\n if (document.body) {\n document.body.appendChild(div);\n var sizeName = key.toLowerCase().indexOf('height') !== -1 ? 'height' : 'width';\n calculatedValue = parseInt(window.getComputedStyle(el)[sizeName], 10);\n document.body.removeChild(div);\n }\n }\n\n CALCULATED_SIZES[theme][key] = calculatedValue || defaultValue;\n return CALCULATED_SIZES[theme][key];\n };\n\n Environment.prototype.isThemeDark = function () {\n var theme = this.getTheme().theme;\n return !!theme && theme.indexOf('dark') >= 0;\n };\n\n Environment.prototype.chartMenuPanelWidth = function () {\n var theme = this.getTheme().themeFamily;\n return this.getSassVariable(theme, 'chartMenuPanelWidth');\n };\n\n Environment.prototype.getTheme = function () {\n var reg = /\\bag-(material|(?:theme-([\\w\\-]*)))\\b/g;\n var el = this.eGridDiv;\n var themeMatch = null;\n var allThemes = [];\n\n while (el) {\n themeMatch = reg.exec(el.className);\n\n if (!themeMatch) {\n el = el.parentElement || undefined;\n } else {\n var matched = el.className.match(reg);\n\n if (matched) {\n allThemes = matched;\n }\n\n break;\n }\n }\n\n if (!themeMatch) {\n return {\n allThemes: allThemes\n };\n }\n\n var theme = themeMatch[0];\n var usingOldTheme = themeMatch[2] === undefined;\n\n if (usingOldTheme) {\n var newTheme_1 = theme.replace('ag-', 'ag-theme-');\n doOnce(function () {\n return console.warn(\"AG Grid: As of v19 old theme are no longer provided. Please replace \" + theme + \" with \" + newTheme_1 + \".\");\n }, 'using-old-theme');\n }\n\n return {\n theme: theme,\n el: el,\n themeFamily: theme.replace(/-dark$/, ''),\n allThemes: allThemes\n };\n };\n\n __decorate$t([Autowired('eGridDiv')], Environment.prototype, \"eGridDiv\", void 0);\n\n Environment = __decorate$t([Bean('environment')], Environment);\n return Environment;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$r = undefined && undefined.__extends || function () {\n var _extendStatics158 = function extendStatics(d, b) {\n _extendStatics158 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics158(d, b);\n };\n\n return function (d, b) {\n _extendStatics158(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __param$1 = undefined && undefined.__param || function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n};\n/**\n * This class solves the 'max height' problem, where the user might want to show more data than\n * the max div height actually allows.\n */\n\n\nvar RowContainerHeightService =\n/** @class */\nfunction (_super) {\n __extends$r(RowContainerHeightService, _super);\n\n function RowContainerHeightService() {\n var _this = _super !== null && _super.apply(this, arguments) || this; // the scrollY position\n\n\n _this.scrollY = 0; // how tall the body is\n\n _this.uiBodyHeight = 0;\n return _this;\n }\n\n RowContainerHeightService.prototype.agWire = function (loggerFactory) {\n this.logger = loggerFactory.create(\"RowContainerHeightService\");\n };\n\n RowContainerHeightService.prototype.postConstruct = function () {\n this.addManagedListener(this.eventService, Events.EVENT_BODY_HEIGHT_CHANGED, this.updateOffset.bind(this));\n this.maxDivHeight = getMaxDivHeight();\n this.logger.log('maxDivHeight = ' + this.maxDivHeight);\n };\n\n RowContainerHeightService.prototype.isStretching = function () {\n return this.stretching;\n };\n\n RowContainerHeightService.prototype.getDivStretchOffset = function () {\n return this.divStretchOffset;\n };\n\n RowContainerHeightService.prototype.updateOffset = function () {\n if (!this.stretching) {\n return;\n }\n\n var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n var newScrollY = gridBodyCon.getScrollFeature().getVScrollPosition().top;\n var newBodyHeight = this.getUiBodyHeight();\n var atLeastOneChanged = newScrollY !== this.scrollY || newBodyHeight !== this.uiBodyHeight;\n\n if (atLeastOneChanged) {\n this.scrollY = newScrollY;\n this.uiBodyHeight = newBodyHeight;\n this.calculateOffset();\n }\n };\n\n RowContainerHeightService.prototype.calculateOffset = function () {\n this.setUiContainerHeight(this.maxDivHeight);\n this.pixelsToShave = this.modelHeight - this.uiContainerHeight;\n this.maxScrollY = this.uiContainerHeight - this.uiBodyHeight;\n var scrollPercent = this.scrollY / this.maxScrollY;\n var divStretchOffset = scrollPercent * this.pixelsToShave;\n this.logger.log(\"Div Stretch Offset = \" + divStretchOffset + \" (\" + this.pixelsToShave + \" * \" + scrollPercent + \")\");\n this.setDivStretchOffset(divStretchOffset);\n };\n\n RowContainerHeightService.prototype.setUiContainerHeight = function (height) {\n if (height !== this.uiContainerHeight) {\n this.uiContainerHeight = height;\n this.eventService.dispatchEvent({\n type: Events.EVENT_ROW_CONTAINER_HEIGHT_CHANGED\n });\n }\n };\n\n RowContainerHeightService.prototype.clearOffset = function () {\n this.setUiContainerHeight(this.modelHeight);\n this.pixelsToShave = 0;\n this.setDivStretchOffset(0);\n };\n\n RowContainerHeightService.prototype.setDivStretchOffset = function (newOffset) {\n // because we are talking pixels, no point in confusing things with half numbers\n var newOffsetFloor = typeof newOffset === 'number' ? Math.floor(newOffset) : null;\n\n if (this.divStretchOffset === newOffsetFloor) {\n return;\n }\n\n this.divStretchOffset = newOffsetFloor;\n this.eventService.dispatchEvent({\n type: Events.EVENT_HEIGHT_SCALE_CHANGED\n });\n };\n\n RowContainerHeightService.prototype.setModelHeight = function (modelHeight) {\n this.modelHeight = modelHeight;\n this.stretching = modelHeight != null // null happens when in print layout\n && this.maxDivHeight > 0 && modelHeight > this.maxDivHeight;\n\n if (this.stretching) {\n this.calculateOffset();\n } else {\n this.clearOffset();\n }\n };\n\n RowContainerHeightService.prototype.getUiContainerHeight = function () {\n return this.uiContainerHeight;\n };\n\n RowContainerHeightService.prototype.getRealPixelPosition = function (modelPixel) {\n return modelPixel - this.divStretchOffset;\n };\n\n RowContainerHeightService.prototype.getUiBodyHeight = function () {\n var gridBodyCon = this.ctrlsService.getGridBodyCtrl();\n var pos = gridBodyCon.getScrollFeature().getVScrollPosition();\n return pos.bottom - pos.top;\n };\n\n RowContainerHeightService.prototype.getScrollPositionForPixel = function (rowTop) {\n if (this.pixelsToShave <= 0) {\n return rowTop;\n }\n\n var modelMaxScroll = this.modelHeight - this.getUiBodyHeight();\n var scrollPercent = rowTop / modelMaxScroll;\n var scrollPixel = this.maxScrollY * scrollPercent;\n return scrollPixel;\n };\n\n __decorate$s([Autowired('ctrlsService')], RowContainerHeightService.prototype, \"ctrlsService\", void 0);\n\n __decorate$s([__param$1(0, Qualifier(\"loggerFactory\"))], RowContainerHeightService.prototype, \"agWire\", null);\n\n __decorate$s([PostConstruct], RowContainerHeightService.prototype, \"postConstruct\", null);\n\n RowContainerHeightService = __decorate$s([Bean('rowContainerHeightService')], RowContainerHeightService);\n return RowContainerHeightService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$q = undefined && undefined.__extends || function () {\n var _extendStatics159 = function extendStatics(d, b) {\n _extendStatics159 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics159(d, b);\n };\n\n return function (d, b) {\n _extendStatics159(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SelectableService =\n/** @class */\nfunction (_super) {\n __extends$q(SelectableService, _super);\n\n function SelectableService() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n SelectableService.prototype.init = function () {\n this.groupSelectsChildren = this.gridOptionsWrapper.isGroupSelectsChildren();\n this.isRowSelectableFunc = this.gridOptionsWrapper.getIsRowSelectableFunc();\n };\n\n SelectableService.prototype.updateSelectableAfterGrouping = function (rowNode) {\n if (this.isRowSelectableFunc) {\n var nextChildrenFunc = function nextChildrenFunc(node) {\n return node.childrenAfterGroup;\n };\n\n this.recurseDown(rowNode.childrenAfterGroup, nextChildrenFunc);\n }\n };\n\n SelectableService.prototype.recurseDown = function (children, nextChildrenFunc) {\n var _this = this;\n\n if (!children) {\n return;\n }\n\n children.forEach(function (child) {\n if (!child.group) {\n return;\n } // only interested in groups\n\n\n if (child.hasChildren()) {\n _this.recurseDown(nextChildrenFunc(child), nextChildrenFunc);\n }\n\n var rowSelectable;\n\n if (_this.groupSelectsChildren) {\n // have this group selectable if at least one direct child is selectable\n var firstSelectable = (nextChildrenFunc(child) || []).find(function (rowNode) {\n return rowNode.selectable === true;\n });\n rowSelectable = exists(firstSelectable);\n } else {\n // directly retrieve selectable value from user callback\n rowSelectable = _this.isRowSelectableFunc ? _this.isRowSelectableFunc(child) : false;\n }\n\n child.setRowSelectable(rowSelectable);\n });\n };\n\n __decorate$r([PostConstruct], SelectableService.prototype, \"init\", null);\n\n SelectableService = __decorate$r([Bean('selectableService')], SelectableService);\n return SelectableService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$p = undefined && undefined.__extends || function () {\n var _extendStatics160 = function extendStatics(d, b) {\n _extendStatics160 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics160(d, b);\n };\n\n return function (d, b) {\n _extendStatics160(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar PaginationComp =\n/** @class */\nfunction (_super) {\n __extends$p(PaginationComp, _super);\n\n function PaginationComp() {\n var _this = _super.call(this) || this;\n\n _this.previousAndFirstButtonsDisabled = false;\n _this.nextButtonDisabled = false;\n _this.lastButtonDisabled = false;\n return _this;\n }\n\n PaginationComp.prototype.postConstruct = function () {\n var _this = this;\n\n var isRtl = this.gridOptionsWrapper.isEnableRtl();\n this.setTemplate(this.getTemplate());\n this.btFirst.insertAdjacentElement('afterbegin', createIconNoSpan(isRtl ? 'last' : 'first', this.gridOptionsWrapper));\n this.btPrevious.insertAdjacentElement('afterbegin', createIconNoSpan(isRtl ? 'next' : 'previous', this.gridOptionsWrapper));\n this.btNext.insertAdjacentElement('afterbegin', createIconNoSpan(isRtl ? 'previous' : 'next', this.gridOptionsWrapper));\n this.btLast.insertAdjacentElement('afterbegin', createIconNoSpan(isRtl ? 'first' : 'last', this.gridOptionsWrapper));\n var isPaging = this.gridOptionsWrapper.isPagination();\n var paginationPanelEnabled = isPaging && !this.gridOptionsWrapper.isSuppressPaginationPanel();\n\n if (!paginationPanelEnabled) {\n this.setDisplayed(false);\n return;\n }\n\n this.addManagedListener(this.eventService, Events.EVENT_PAGINATION_CHANGED, this.onPaginationChanged.bind(this));\n [{\n el: this.btFirst,\n fn: this.onBtFirst.bind(this)\n }, {\n el: this.btPrevious,\n fn: this.onBtPrevious.bind(this)\n }, {\n el: this.btNext,\n fn: this.onBtNext.bind(this)\n }, {\n el: this.btLast,\n fn: this.onBtLast.bind(this)\n }].forEach(function (item) {\n var el = item.el,\n fn = item.fn;\n\n _this.addManagedListener(el, 'click', fn);\n\n _this.addManagedListener(el, 'keydown', function (e) {\n if (e.key === KeyCode.ENTER || e.key === KeyCode.SPACE) {\n e.preventDefault();\n fn();\n }\n });\n });\n this.onPaginationChanged();\n };\n\n PaginationComp.prototype.onPaginationChanged = function () {\n this.enableOrDisableButtons();\n this.updateRowLabels();\n this.setCurrentPageLabel();\n this.setTotalLabels();\n };\n\n PaginationComp.prototype.onBtFirst = function () {\n if (!this.previousAndFirstButtonsDisabled) {\n this.paginationProxy.goToFirstPage();\n }\n };\n\n PaginationComp.prototype.setCurrentPageLabel = function () {\n var pagesExist = this.paginationProxy.getTotalPages() > 0;\n var currentPage = this.paginationProxy.getCurrentPage();\n var toDisplay = pagesExist ? currentPage + 1 : 0;\n this.lbCurrent.innerHTML = this.formatNumber(toDisplay);\n };\n\n PaginationComp.prototype.formatNumber = function (value) {\n var userFunc = this.gridOptionsWrapper.getPaginationNumberFormatterFunc();\n\n if (userFunc) {\n var params = {\n value: value\n };\n return userFunc(params);\n }\n\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n var thousandSeparator = localeTextFunc('thousandSeparator', ',');\n var decimalSeparator = localeTextFunc('decimalSeparator', '.');\n return formatNumberCommas(value, thousandSeparator, decimalSeparator);\n };\n\n PaginationComp.prototype.getTemplate = function () {\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n var strPage = localeTextFunc('page', 'Page');\n var strTo = localeTextFunc('to', 'to');\n var strOf = localeTextFunc('of', 'of');\n var strFirst = localeTextFunc('firstPage', 'First Page');\n var strPrevious = localeTextFunc('previousPage', 'Previous Page');\n var strNext = localeTextFunc('nextPage', 'Next Page');\n var strLast = localeTextFunc('lastPage', 'Last Page');\n var compId = this.getCompId();\n return (\n /* html */\n \"
\\n \\n \\n \" + strTo + \"\\n \\n \" + strOf + \"\\n \\n \\n \\n
\\n
\\n \\n \" + strPage + \"\\n \\n \" + strOf + \"\\n \\n \\n
\\n
\\n
\\n
\"\n );\n };\n\n PaginationComp.prototype.onBtNext = function () {\n if (!this.nextButtonDisabled) {\n this.paginationProxy.goToNextPage();\n }\n };\n\n PaginationComp.prototype.onBtPrevious = function () {\n if (!this.previousAndFirstButtonsDisabled) {\n this.paginationProxy.goToPreviousPage();\n }\n };\n\n PaginationComp.prototype.onBtLast = function () {\n if (!this.lastButtonDisabled) {\n this.paginationProxy.goToLastPage();\n }\n };\n\n PaginationComp.prototype.enableOrDisableButtons = function () {\n var currentPage = this.paginationProxy.getCurrentPage();\n var maxRowFound = this.paginationProxy.isLastPageFound();\n var totalPages = this.paginationProxy.getTotalPages();\n this.previousAndFirstButtonsDisabled = currentPage === 0;\n this.toggleButtonDisabled(this.btFirst, this.previousAndFirstButtonsDisabled);\n this.toggleButtonDisabled(this.btPrevious, this.previousAndFirstButtonsDisabled);\n var zeroPagesToDisplay = this.isZeroPagesToDisplay();\n var onLastPage = maxRowFound && currentPage === totalPages - 1;\n this.nextButtonDisabled = onLastPage || zeroPagesToDisplay;\n this.lastButtonDisabled = !maxRowFound || zeroPagesToDisplay || currentPage === totalPages - 1;\n this.toggleButtonDisabled(this.btNext, this.nextButtonDisabled);\n this.toggleButtonDisabled(this.btLast, this.lastButtonDisabled);\n };\n\n PaginationComp.prototype.toggleButtonDisabled = function (button, disabled) {\n setAriaDisabled(button, disabled);\n button.classList.toggle('ag-disabled', disabled);\n\n if (disabled) {\n button.removeAttribute('tabindex');\n } else {\n button.setAttribute('tabindex', '0');\n }\n };\n\n PaginationComp.prototype.updateRowLabels = function () {\n var currentPage = this.paginationProxy.getCurrentPage();\n var pageSize = this.paginationProxy.getPageSize();\n var maxRowFound = this.paginationProxy.isLastPageFound();\n var rowCount = this.paginationProxy.isLastPageFound() ? this.paginationProxy.getMasterRowCount() : null;\n var startRow;\n var endRow;\n\n if (this.isZeroPagesToDisplay()) {\n startRow = endRow = 0;\n } else {\n startRow = pageSize * currentPage + 1;\n endRow = startRow + pageSize - 1;\n\n if (maxRowFound && endRow > rowCount) {\n endRow = rowCount;\n }\n }\n\n this.lbFirstRowOnPage.innerHTML = this.formatNumber(startRow);\n\n if (this.rowNodeBlockLoader.isLoading()) {\n this.lbLastRowOnPage.innerHTML = '?';\n } else {\n this.lbLastRowOnPage.innerHTML = this.formatNumber(endRow);\n }\n };\n\n PaginationComp.prototype.isZeroPagesToDisplay = function () {\n var maxRowFound = this.paginationProxy.isLastPageFound();\n var totalPages = this.paginationProxy.getTotalPages();\n return maxRowFound && totalPages === 0;\n };\n\n PaginationComp.prototype.setTotalLabels = function () {\n var lastPageFound = this.paginationProxy.isLastPageFound();\n var totalPages = this.paginationProxy.getTotalPages();\n var rowCount = lastPageFound ? this.paginationProxy.getMasterRowCount() : null; // When `pivotMode=true` and no grouping or value columns exist, a single 'hidden' group row (root node) is in\n // the grid and the pagination totals will correctly display total = 1. However this is confusing to users as\n // they can't see it. To address this UX issue we simply set the totals to zero in the pagination panel.\n\n if (rowCount === 1) {\n var firstRow = this.paginationProxy.getRow(0); // a group node with no group or agg data will not be visible to users\n\n var hiddenGroupRow = firstRow && firstRow.group && !(firstRow.groupData || firstRow.aggData);\n\n if (hiddenGroupRow) {\n this.setTotalLabelsToZero();\n return;\n }\n }\n\n if (lastPageFound) {\n this.lbTotal.innerHTML = this.formatNumber(totalPages);\n this.lbRecordCount.innerHTML = this.formatNumber(rowCount);\n } else {\n var moreText = this.gridOptionsWrapper.getLocaleTextFunc()('more', 'more');\n this.lbTotal.innerHTML = moreText;\n this.lbRecordCount.innerHTML = moreText;\n }\n };\n\n PaginationComp.prototype.setTotalLabelsToZero = function () {\n this.lbFirstRowOnPage.innerHTML = this.formatNumber(0);\n this.lbCurrent.innerHTML = this.formatNumber(0);\n this.lbLastRowOnPage.innerHTML = this.formatNumber(0);\n this.lbTotal.innerHTML = this.formatNumber(0);\n this.lbRecordCount.innerHTML = this.formatNumber(0);\n };\n\n __decorate$q([Autowired('paginationProxy')], PaginationComp.prototype, \"paginationProxy\", void 0);\n\n __decorate$q([Autowired('rowNodeBlockLoader')], PaginationComp.prototype, \"rowNodeBlockLoader\", void 0);\n\n __decorate$q([RefSelector('btFirst')], PaginationComp.prototype, \"btFirst\", void 0);\n\n __decorate$q([RefSelector('btPrevious')], PaginationComp.prototype, \"btPrevious\", void 0);\n\n __decorate$q([RefSelector('btNext')], PaginationComp.prototype, \"btNext\", void 0);\n\n __decorate$q([RefSelector('btLast')], PaginationComp.prototype, \"btLast\", void 0);\n\n __decorate$q([RefSelector('lbRecordCount')], PaginationComp.prototype, \"lbRecordCount\", void 0);\n\n __decorate$q([RefSelector('lbFirstRowOnPage')], PaginationComp.prototype, \"lbFirstRowOnPage\", void 0);\n\n __decorate$q([RefSelector('lbLastRowOnPage')], PaginationComp.prototype, \"lbLastRowOnPage\", void 0);\n\n __decorate$q([RefSelector('lbCurrent')], PaginationComp.prototype, \"lbCurrent\", void 0);\n\n __decorate$q([RefSelector('lbTotal')], PaginationComp.prototype, \"lbTotal\", void 0);\n\n __decorate$q([PostConstruct], PaginationComp.prototype, \"postConstruct\", null);\n\n return PaginationComp;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$o = undefined && undefined.__extends || function () {\n var _extendStatics161 = function extendStatics(d, b) {\n _extendStatics161 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics161(d, b);\n };\n\n return function (d, b) {\n _extendStatics161(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar LoadingType;\n\n(function (LoadingType) {\n LoadingType[LoadingType[\"Loading\"] = 0] = \"Loading\";\n LoadingType[LoadingType[\"NoRows\"] = 1] = \"NoRows\";\n})(LoadingType || (LoadingType = {}));\n\nvar OverlayWrapperComponent =\n/** @class */\nfunction (_super) {\n __extends$o(OverlayWrapperComponent, _super);\n\n function OverlayWrapperComponent() {\n var _this = _super.call(this, OverlayWrapperComponent.TEMPLATE) || this;\n\n _this.inProgress = false;\n _this.destroyRequested = false;\n _this.manuallyDisplayed = false;\n return _this;\n }\n\n OverlayWrapperComponent.prototype.updateLayoutClasses = function (cssClass, params) {\n var overlayWrapperClassList = this.eOverlayWrapper.classList;\n overlayWrapperClassList.toggle(LayoutCssClasses.AUTO_HEIGHT, params.autoHeight);\n overlayWrapperClassList.toggle(LayoutCssClasses.NORMAL, params.normal);\n overlayWrapperClassList.toggle(LayoutCssClasses.PRINT, params.print);\n };\n\n OverlayWrapperComponent.prototype.postConstruct = function () {\n this.createManagedBean(new LayoutFeature(this));\n this.setDisplayed(false);\n this.addManagedListener(this.eventService, Events.EVENT_ROW_DATA_UPDATED, this.onRowDataUpdated.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.onNewColumnsLoaded.bind(this));\n\n if (this.gridOptionsWrapper.isRowModelDefault() && !this.gridOptionsWrapper.getRowData()) {\n this.showLoadingOverlay();\n }\n\n this.gridApi.registerOverlayWrapperComp(this);\n };\n\n OverlayWrapperComponent.prototype.setWrapperTypeClass = function (loadingType) {\n var overlayWrapperClassList = this.eOverlayWrapper.classList;\n overlayWrapperClassList.toggle('ag-overlay-loading-wrapper', loadingType === LoadingType.Loading);\n overlayWrapperClassList.toggle('ag-overlay-no-rows-wrapper', loadingType === LoadingType.NoRows);\n };\n\n OverlayWrapperComponent.prototype.showLoadingOverlay = function () {\n if (this.gridOptionsWrapper.isSuppressLoadingOverlay()) {\n return;\n }\n\n var params = {};\n var compDetails = this.userComponentFactory.getLoadingOverlayCompDetails(params);\n var promise = compDetails.newAgStackInstance();\n this.showOverlay(promise, LoadingType.Loading);\n };\n\n OverlayWrapperComponent.prototype.showNoRowsOverlay = function () {\n if (this.gridOptionsWrapper.isSuppressNoRowsOverlay()) {\n return;\n }\n\n var params = {};\n var compDetails = this.userComponentFactory.getNoRowsOverlayCompDetails(params);\n var promise = compDetails.newAgStackInstance();\n this.showOverlay(promise, LoadingType.NoRows);\n };\n\n OverlayWrapperComponent.prototype.showOverlay = function (workItem, type) {\n var _this = this;\n\n if (this.inProgress) {\n return;\n }\n\n this.setWrapperTypeClass(type);\n this.destroyActiveOverlay();\n this.inProgress = true;\n\n if (workItem) {\n workItem.then(function (comp) {\n _this.inProgress = false;\n\n _this.eOverlayWrapper.appendChild(comp.getGui());\n\n _this.activeOverlay = comp;\n\n if (_this.destroyRequested) {\n _this.destroyRequested = false;\n\n _this.destroyActiveOverlay();\n }\n });\n }\n\n this.manuallyDisplayed = this.columnModel.isReady() && !this.paginationProxy.isEmpty();\n this.setDisplayed(true);\n };\n\n OverlayWrapperComponent.prototype.destroyActiveOverlay = function () {\n if (this.inProgress) {\n this.destroyRequested = true;\n return;\n }\n\n if (!this.activeOverlay) {\n return;\n }\n\n this.activeOverlay = this.getContext().destroyBean(this.activeOverlay);\n clearElement(this.eOverlayWrapper);\n };\n\n OverlayWrapperComponent.prototype.hideOverlay = function () {\n this.manuallyDisplayed = false;\n this.destroyActiveOverlay();\n this.setDisplayed(false);\n };\n\n OverlayWrapperComponent.prototype.destroy = function () {\n this.destroyActiveOverlay();\n\n _super.prototype.destroy.call(this);\n };\n\n OverlayWrapperComponent.prototype.showOrHideOverlay = function () {\n var isEmpty = this.paginationProxy.isEmpty();\n var isSuppressNoRowsOverlay = this.gridOptionsWrapper.isSuppressNoRowsOverlay();\n\n if (isEmpty && !isSuppressNoRowsOverlay) {\n this.showNoRowsOverlay();\n } else {\n this.hideOverlay();\n }\n };\n\n OverlayWrapperComponent.prototype.onRowDataUpdated = function () {\n this.showOrHideOverlay();\n };\n\n OverlayWrapperComponent.prototype.onNewColumnsLoaded = function () {\n // hide overlay if columns and rows exist, this can happen if columns are loaded after data.\n // this problem exists before of the race condition between the services (column controller in this case)\n // and the view (grid panel). if the model beans were all initialised first, and then the view beans second,\n // this race condition would not happen.\n if (this.columnModel.isReady() && !this.paginationProxy.isEmpty() && !this.manuallyDisplayed) {\n this.hideOverlay();\n }\n }; // wrapping in outer div, and wrapper, is needed to center the loading icon\n // The idea for centering came from here: http://www.vanseodesign.com/css/vertical-centering/\n\n\n OverlayWrapperComponent.TEMPLATE = \"\\n
\\n
\\n
\\n
\\n
\";\n\n __decorate$p([Autowired('userComponentFactory')], OverlayWrapperComponent.prototype, \"userComponentFactory\", void 0);\n\n __decorate$p([Autowired('paginationProxy')], OverlayWrapperComponent.prototype, \"paginationProxy\", void 0);\n\n __decorate$p([Autowired('gridApi')], OverlayWrapperComponent.prototype, \"gridApi\", void 0);\n\n __decorate$p([Autowired('columnModel')], OverlayWrapperComponent.prototype, \"columnModel\", void 0);\n\n __decorate$p([RefSelector('eOverlayWrapper')], OverlayWrapperComponent.prototype, \"eOverlayWrapper\", void 0);\n\n __decorate$p([PostConstruct], OverlayWrapperComponent.prototype, \"postConstruct\", null);\n\n return OverlayWrapperComponent;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$n = undefined && undefined.__extends || function () {\n var _extendStatics162 = function extendStatics(d, b) {\n _extendStatics162 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics162(d, b);\n };\n\n return function (d, b) {\n _extendStatics162(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar RowPositionUtils =\n/** @class */\nfunction (_super) {\n __extends$n(RowPositionUtils, _super);\n\n function RowPositionUtils() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n RowPositionUtils.prototype.getFirstRow = function () {\n var rowIndex = 0;\n var rowPinned;\n\n if (this.pinnedRowModel.getPinnedTopRowCount()) {\n rowPinned = Constants.PINNED_TOP;\n } else if (this.rowModel.getRowCount()) {\n rowPinned = null;\n rowIndex = this.paginationProxy.getPageFirstRow();\n } else if (this.pinnedRowModel.getPinnedBottomRowCount()) {\n rowPinned = Constants.PINNED_BOTTOM;\n }\n\n return rowPinned === undefined ? null : {\n rowIndex: rowIndex,\n rowPinned: rowPinned\n };\n };\n\n RowPositionUtils.prototype.getLastRow = function () {\n var rowIndex;\n var rowPinned = null;\n var pinnedBottomCount = this.pinnedRowModel.getPinnedBottomRowCount();\n var pinnedTopCount = this.pinnedRowModel.getPinnedTopRowCount();\n\n if (pinnedBottomCount) {\n rowPinned = Constants.PINNED_BOTTOM;\n rowIndex = pinnedBottomCount - 1;\n } else if (this.rowModel.getRowCount()) {\n rowPinned = null;\n rowIndex = this.paginationProxy.getPageLastRow();\n } else if (pinnedTopCount) {\n rowPinned = Constants.PINNED_TOP;\n rowIndex = pinnedTopCount - 1;\n }\n\n return rowIndex === undefined ? null : {\n rowIndex: rowIndex,\n rowPinned: rowPinned\n };\n };\n\n RowPositionUtils.prototype.getRowNode = function (gridRow) {\n switch (gridRow.rowPinned) {\n case Constants.PINNED_TOP:\n return this.pinnedRowModel.getPinnedTopRowData()[gridRow.rowIndex];\n\n case Constants.PINNED_BOTTOM:\n return this.pinnedRowModel.getPinnedBottomRowData()[gridRow.rowIndex];\n\n default:\n return this.rowModel.getRow(gridRow.rowIndex);\n }\n };\n\n RowPositionUtils.prototype.sameRow = function (rowA, rowB) {\n // if both missing\n if (!rowA && !rowB) {\n return true;\n } // if only one missing\n\n\n if (rowA && !rowB || !rowA && rowB) {\n return false;\n } // otherwise compare (use == to compare rowPinned because it can be null or undefined)\n\n\n return rowA.rowIndex === rowB.rowIndex && rowA.rowPinned == rowB.rowPinned;\n }; // tests if this row selection is before the other row selection\n\n\n RowPositionUtils.prototype.before = function (rowA, rowB) {\n switch (rowA.rowPinned) {\n case Constants.PINNED_TOP:\n // we we are floating top, and other isn't, then we are always before\n if (rowB.rowPinned !== Constants.PINNED_TOP) {\n return true;\n }\n\n break;\n\n case Constants.PINNED_BOTTOM:\n // if we are floating bottom, and the other isn't, then we are never before\n if (rowB.rowPinned !== Constants.PINNED_BOTTOM) {\n return false;\n }\n\n break;\n\n default:\n // if we are not floating, but the other one is floating...\n if (exists(rowB.rowPinned)) {\n return rowB.rowPinned !== Constants.PINNED_TOP;\n }\n\n break;\n }\n\n return rowA.rowIndex < rowB.rowIndex;\n };\n\n RowPositionUtils.prototype.rowMax = function (rows) {\n var _this = this;\n\n var max;\n rows.forEach(function (row) {\n if (max === undefined || _this.before(max, row)) {\n max = row;\n }\n });\n return max;\n };\n\n RowPositionUtils.prototype.rowMin = function (rows) {\n var _this = this;\n\n var min;\n rows.forEach(function (row) {\n if (min === undefined || _this.before(row, min)) {\n min = row;\n }\n });\n return min;\n };\n\n __decorate$o([Autowired('rowModel')], RowPositionUtils.prototype, \"rowModel\", void 0);\n\n __decorate$o([Autowired('pinnedRowModel')], RowPositionUtils.prototype, \"pinnedRowModel\", void 0);\n\n __decorate$o([Autowired('paginationProxy')], RowPositionUtils.prototype, \"paginationProxy\", void 0);\n\n RowPositionUtils = __decorate$o([Bean('rowPositionUtils')], RowPositionUtils);\n return RowPositionUtils;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$m = undefined && undefined.__extends || function () {\n var _extendStatics163 = function extendStatics(d, b) {\n _extendStatics163 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics163(d, b);\n };\n\n return function (d, b) {\n _extendStatics163(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar CellPositionUtils =\n/** @class */\nfunction (_super) {\n __extends$m(CellPositionUtils, _super);\n\n function CellPositionUtils() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n CellPositionUtils.prototype.createId = function (cellPosition) {\n var rowIndex = cellPosition.rowIndex,\n rowPinned = cellPosition.rowPinned,\n column = cellPosition.column;\n return this.createIdFromValues(rowIndex, column, rowPinned);\n };\n\n CellPositionUtils.prototype.createIdFromValues = function (rowIndex, column, rowPinned) {\n return rowIndex + \".\" + (rowPinned == null ? 'null' : rowPinned) + \".\" + column.getId();\n };\n\n CellPositionUtils.prototype.equals = function (cellA, cellB) {\n var colsMatch = cellA.column === cellB.column;\n var floatingMatch = cellA.rowPinned === cellB.rowPinned;\n var indexMatch = cellA.rowIndex === cellB.rowIndex;\n return colsMatch && floatingMatch && indexMatch;\n };\n\n CellPositionUtils = __decorate$n([Bean('cellPositionUtils')], CellPositionUtils);\n return CellPositionUtils;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$l = undefined && undefined.__extends || function () {\n var _extendStatics164 = function extendStatics(d, b) {\n _extendStatics164 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics164(d, b);\n };\n\n return function (d, b) {\n _extendStatics164(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar UndoRedoAction =\n/** @class */\nfunction () {\n function UndoRedoAction(cellValueChanges) {\n this.cellValueChanges = cellValueChanges;\n }\n\n return UndoRedoAction;\n}();\n\nvar FillUndoRedoAction =\n/** @class */\nfunction (_super) {\n __extends$l(FillUndoRedoAction, _super);\n\n function FillUndoRedoAction(cellValueChanges, initialRange, finalRange) {\n var _this = _super.call(this, cellValueChanges) || this;\n\n _this.initialRange = initialRange;\n _this.finalRange = finalRange;\n return _this;\n }\n\n return FillUndoRedoAction;\n}(UndoRedoAction);\n\nvar UndoRedoStack =\n/** @class */\nfunction () {\n function UndoRedoStack(maxStackSize) {\n this.actionStack = [];\n this.maxStackSize = maxStackSize ? maxStackSize : UndoRedoStack.DEFAULT_STACK_SIZE;\n this.actionStack = new Array(this.maxStackSize);\n }\n\n UndoRedoStack.prototype.pop = function () {\n return this.actionStack.pop();\n };\n\n UndoRedoStack.prototype.push = function (item) {\n var shouldAddActions = item.cellValueChanges && item.cellValueChanges.length > 0;\n\n if (!shouldAddActions) {\n return;\n }\n\n if (this.actionStack.length === this.maxStackSize) {\n this.actionStack.shift();\n }\n\n this.actionStack.push(item);\n };\n\n UndoRedoStack.prototype.clear = function () {\n this.actionStack = [];\n };\n\n UndoRedoStack.prototype.getCurrentStackSize = function () {\n return this.actionStack.length;\n };\n\n UndoRedoStack.DEFAULT_STACK_SIZE = 10;\n return UndoRedoStack;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$k = undefined && undefined.__extends || function () {\n var _extendStatics165 = function extendStatics(d, b) {\n _extendStatics165 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics165(d, b);\n };\n\n return function (d, b) {\n _extendStatics165(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar UndoRedoService =\n/** @class */\nfunction (_super) {\n __extends$k(UndoRedoService, _super);\n\n function UndoRedoService() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.cellValueChanges = [];\n _this.activeCellEdit = null;\n _this.activeRowEdit = null;\n _this.isPasting = false;\n _this.isFilling = false;\n\n _this.onCellValueChanged = function (event) {\n var eventCell = {\n column: event.column,\n rowIndex: event.rowIndex,\n rowPinned: event.rowPinned\n };\n\n var isCellEditing = _this.activeCellEdit !== null && _this.cellPositionUtils.equals(_this.activeCellEdit, eventCell);\n\n var isRowEditing = _this.activeRowEdit !== null && _this.rowPositionUtils.sameRow(_this.activeRowEdit, eventCell);\n\n var shouldCaptureAction = isCellEditing || isRowEditing || _this.isPasting || _this.isFilling;\n\n if (!shouldCaptureAction) {\n return;\n }\n\n var rowPinned = event.rowPinned,\n rowIndex = event.rowIndex,\n column = event.column,\n oldValue = event.oldValue,\n value = event.value;\n var cellValueChange = {\n rowPinned: rowPinned,\n rowIndex: rowIndex,\n columnId: column.getColId(),\n newValue: value,\n oldValue: oldValue\n };\n\n _this.cellValueChanges.push(cellValueChange);\n };\n\n _this.clearStacks = function () {\n _this.undoStack.clear();\n\n _this.redoStack.clear();\n };\n\n return _this;\n }\n\n UndoRedoService.prototype.init = function () {\n var _this = this;\n\n if (!this.gridOptionsWrapper.isUndoRedoCellEditing()) {\n return;\n }\n\n var undoRedoLimit = this.gridOptionsWrapper.getUndoRedoCellEditingLimit();\n\n if (undoRedoLimit <= 0) {\n return;\n }\n\n this.undoStack = new UndoRedoStack(undoRedoLimit);\n this.redoStack = new UndoRedoStack(undoRedoLimit);\n this.addRowEditingListeners();\n this.addCellEditingListeners();\n this.addPasteListeners();\n this.addFillListeners();\n this.addManagedListener(this.eventService, Events.EVENT_CELL_VALUE_CHANGED, this.onCellValueChanged); // undo / redo is restricted to actual editing so we clear the stacks when other operations are\n // performed that change the order of the row / cols.\n\n this.addManagedListener(this.eventService, Events.EVENT_MODEL_UPDATED, function (e) {\n if (!e.keepUndoRedoStack) {\n _this.clearStacks();\n }\n });\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.clearStacks);\n this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.clearStacks);\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_GROUP_OPENED, this.clearStacks);\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.clearStacks);\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_MOVED, this.clearStacks);\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PINNED, this.clearStacks);\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_VISIBLE, this.clearStacks);\n this.addManagedListener(this.eventService, Events.EVENT_ROW_DRAG_END, this.clearStacks);\n };\n\n UndoRedoService.prototype.getCurrentUndoStackSize = function () {\n return this.undoStack ? this.undoStack.getCurrentStackSize() : 0;\n };\n\n UndoRedoService.prototype.getCurrentRedoStackSize = function () {\n return this.redoStack ? this.redoStack.getCurrentStackSize() : 0;\n };\n\n UndoRedoService.prototype.undo = function () {\n if (!this.undoStack) {\n return;\n }\n\n var undoAction = this.undoStack.pop();\n\n if (!undoAction || !undoAction.cellValueChanges) {\n return;\n }\n\n this.processAction(undoAction, function (cellValueChange) {\n return cellValueChange.oldValue;\n });\n\n if (undoAction instanceof FillUndoRedoAction) {\n this.processRangeAndCellFocus(undoAction.cellValueChanges, undoAction.initialRange);\n } else {\n this.processRangeAndCellFocus(undoAction.cellValueChanges);\n }\n\n this.redoStack.push(undoAction);\n };\n\n UndoRedoService.prototype.redo = function () {\n if (!this.redoStack) {\n return;\n }\n\n var redoAction = this.redoStack.pop();\n\n if (!redoAction || !redoAction.cellValueChanges) {\n return;\n }\n\n this.processAction(redoAction, function (cellValueChange) {\n return cellValueChange.newValue;\n });\n\n if (redoAction instanceof FillUndoRedoAction) {\n this.processRangeAndCellFocus(redoAction.cellValueChanges, redoAction.finalRange);\n } else {\n this.processRangeAndCellFocus(redoAction.cellValueChanges);\n }\n\n this.undoStack.push(redoAction);\n };\n\n UndoRedoService.prototype.processAction = function (action, valueExtractor) {\n var _this = this;\n\n action.cellValueChanges.forEach(function (cellValueChange) {\n var rowIndex = cellValueChange.rowIndex,\n rowPinned = cellValueChange.rowPinned,\n columnId = cellValueChange.columnId;\n var rowPosition = {\n rowIndex: rowIndex,\n rowPinned: rowPinned\n };\n\n var currentRow = _this.getRowNode(rowPosition); // checks if the row has been filtered out\n\n\n if (!currentRow.displayed) {\n return;\n }\n\n currentRow.setDataValue(columnId, valueExtractor(cellValueChange));\n });\n };\n\n UndoRedoService.prototype.processRangeAndCellFocus = function (cellValueChanges, range) {\n var lastFocusedCell;\n\n if (range) {\n var startRow = range.startRow;\n var endRow = range.endRow;\n lastFocusedCell = {\n rowPinned: startRow.rowPinned,\n rowIndex: startRow.rowIndex,\n columnId: range.startColumn.getColId()\n };\n this.setLastFocusedCell(lastFocusedCell);\n var cellRangeParams = {\n rowStartIndex: startRow.rowIndex,\n rowStartPinned: startRow.rowPinned,\n rowEndIndex: endRow.rowIndex,\n rowEndPinned: endRow.rowPinned,\n columnStart: range.startColumn,\n columns: range.columns\n };\n this.gridApi.addCellRange(cellRangeParams);\n return;\n }\n\n var cellValueChange = cellValueChanges[0];\n var rowIndex = cellValueChange.rowIndex,\n rowPinned = cellValueChange.rowPinned;\n var rowPosition = {\n rowIndex: rowIndex,\n rowPinned: rowPinned\n };\n var row = this.getRowNode(rowPosition);\n lastFocusedCell = {\n rowPinned: cellValueChange.rowPinned,\n rowIndex: row.rowIndex,\n columnId: cellValueChange.columnId\n };\n this.setLastFocusedCell(lastFocusedCell);\n };\n\n UndoRedoService.prototype.setLastFocusedCell = function (lastFocusedCell) {\n var rowIndex = lastFocusedCell.rowIndex,\n columnId = lastFocusedCell.columnId,\n rowPinned = lastFocusedCell.rowPinned;\n this.gridApi.ensureIndexVisible(rowIndex);\n this.gridApi.ensureColumnVisible(columnId);\n\n if (ModuleRegistry.isRegistered(ModuleNames.RangeSelectionModule)) {\n this.gridApi.clearRangeSelection();\n }\n\n this.focusService.setFocusedCell({\n rowIndex: rowIndex,\n column: columnId,\n rowPinned: rowPinned,\n forceBrowserFocus: true\n });\n };\n\n UndoRedoService.prototype.addRowEditingListeners = function () {\n var _this = this;\n\n this.addManagedListener(this.eventService, Events.EVENT_ROW_EDITING_STARTED, function (e) {\n _this.activeRowEdit = {\n rowIndex: e.rowIndex,\n rowPinned: e.rowPinned\n };\n });\n this.addManagedListener(this.eventService, Events.EVENT_ROW_EDITING_STOPPED, function () {\n var action = new UndoRedoAction(_this.cellValueChanges);\n\n _this.pushActionsToUndoStack(action);\n\n _this.activeRowEdit = null;\n });\n };\n\n UndoRedoService.prototype.addCellEditingListeners = function () {\n var _this = this;\n\n this.addManagedListener(this.eventService, Events.EVENT_CELL_EDITING_STARTED, function (e) {\n _this.activeCellEdit = {\n column: e.column,\n rowIndex: e.rowIndex,\n rowPinned: e.rowPinned\n };\n });\n this.addManagedListener(this.eventService, Events.EVENT_CELL_EDITING_STOPPED, function () {\n _this.activeCellEdit = null;\n var shouldPushAction = !_this.activeRowEdit && !_this.isPasting && !_this.isFilling;\n\n if (shouldPushAction) {\n var action = new UndoRedoAction(_this.cellValueChanges);\n\n _this.pushActionsToUndoStack(action);\n }\n });\n };\n\n UndoRedoService.prototype.addPasteListeners = function () {\n var _this = this;\n\n this.addManagedListener(this.eventService, Events.EVENT_PASTE_START, function () {\n _this.isPasting = true;\n });\n this.addManagedListener(this.eventService, Events.EVENT_PASTE_END, function () {\n var action = new UndoRedoAction(_this.cellValueChanges);\n\n _this.pushActionsToUndoStack(action);\n\n _this.isPasting = false;\n });\n };\n\n UndoRedoService.prototype.addFillListeners = function () {\n var _this = this;\n\n this.addManagedListener(this.eventService, Events.EVENT_FILL_START, function () {\n _this.isFilling = true;\n });\n this.addManagedListener(this.eventService, Events.EVENT_FILL_END, function (event) {\n var action = new FillUndoRedoAction(_this.cellValueChanges, event.initialRange, event.finalRange);\n\n _this.pushActionsToUndoStack(action);\n\n _this.isFilling = false;\n });\n };\n\n UndoRedoService.prototype.pushActionsToUndoStack = function (action) {\n this.undoStack.push(action);\n this.cellValueChanges = [];\n this.redoStack.clear();\n };\n\n UndoRedoService.prototype.getRowNode = function (gridRow) {\n switch (gridRow.rowPinned) {\n case Constants.PINNED_TOP:\n return this.pinnedRowModel.getPinnedTopRowData()[gridRow.rowIndex];\n\n case Constants.PINNED_BOTTOM:\n return this.pinnedRowModel.getPinnedBottomRowData()[gridRow.rowIndex];\n\n default:\n return this.rowModel.getRow(gridRow.rowIndex);\n }\n };\n\n __decorate$m([Autowired('focusService')], UndoRedoService.prototype, \"focusService\", void 0);\n\n __decorate$m([Autowired('gridApi')], UndoRedoService.prototype, \"gridApi\", void 0);\n\n __decorate$m([Autowired('rowModel')], UndoRedoService.prototype, \"rowModel\", void 0);\n\n __decorate$m([Autowired('pinnedRowModel')], UndoRedoService.prototype, \"pinnedRowModel\", void 0);\n\n __decorate$m([Autowired('cellPositionUtils')], UndoRedoService.prototype, \"cellPositionUtils\", void 0);\n\n __decorate$m([Autowired('rowPositionUtils')], UndoRedoService.prototype, \"rowPositionUtils\", void 0);\n\n __decorate$m([PostConstruct], UndoRedoService.prototype, \"init\", null);\n\n UndoRedoService = __decorate$m([Bean('undoRedoService')], UndoRedoService);\n return UndoRedoService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$j = undefined && undefined.__extends || function () {\n var _extendStatics166 = function extendStatics(d, b) {\n _extendStatics166 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics166(d, b);\n };\n\n return function (d, b) {\n _extendStatics166(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar HeaderPositionUtils =\n/** @class */\nfunction (_super) {\n __extends$j(HeaderPositionUtils, _super);\n\n function HeaderPositionUtils() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n HeaderPositionUtils.prototype.findHeader = function (focusedHeader, direction) {\n var nextColumn;\n var getGroupMethod;\n var getColMethod;\n\n if (focusedHeader.column instanceof ColumnGroup) {\n getGroupMethod = \"getDisplayedGroup\" + direction;\n nextColumn = this.columnModel[getGroupMethod](focusedHeader.column);\n } else {\n getColMethod = \"getDisplayedCol\" + direction;\n nextColumn = this.columnModel[getColMethod](focusedHeader.column);\n }\n\n if (nextColumn) {\n return {\n column: nextColumn,\n headerRowIndex: focusedHeader.headerRowIndex\n };\n }\n };\n\n HeaderPositionUtils.prototype.findColAtEdgeForHeaderRow = function (level, position) {\n var displayedColumns = this.columnModel.getAllDisplayedColumns();\n var column = displayedColumns[position === 'start' ? 0 : displayedColumns.length - 1];\n\n if (!column) {\n return;\n }\n\n var childContainer = this.ctrlsService.getHeaderRowContainerCtrl(column.getPinned());\n var type = childContainer.getRowType(level);\n\n if (type == HeaderRowType.COLUMN_GROUP) {\n var columnGroup = this.columnModel.getColumnGroupAtLevel(column, level);\n return {\n headerRowIndex: level,\n column: columnGroup\n };\n }\n\n return {\n // if type==null, means the header level didn't exist\n headerRowIndex: type == null ? -1 : level,\n column: column\n };\n };\n\n __decorate$l([Autowired('columnModel')], HeaderPositionUtils.prototype, \"columnModel\", void 0);\n\n __decorate$l([Autowired('ctrlsService')], HeaderPositionUtils.prototype, \"ctrlsService\", void 0);\n\n HeaderPositionUtils = __decorate$l([Bean('headerPositionUtils')], HeaderPositionUtils);\n return HeaderPositionUtils;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ColumnDefFactory =\n/** @class */\nfunction () {\n function ColumnDefFactory() {}\n\n ColumnDefFactory.prototype.buildColumnDefs = function (cols, rowGroupColumns, pivotColumns) {\n var _this = this;\n\n var res = [];\n var colGroupDefs = {};\n cols.forEach(function (col) {\n var colDef = _this.createDefFromColumn(col, rowGroupColumns, pivotColumns);\n\n var addToResult = true;\n var childDef = colDef;\n var pointer = col.getOriginalParent();\n\n while (pointer) {\n var parentDef = null; // we don't include padding groups, as the column groups provided\n // by application didn't have these. the whole point of padding groups\n // is to balance the column tree that the user provided.\n\n if (pointer.isPadding()) {\n pointer = pointer.getOriginalParent();\n continue;\n } // if colDef for this group already exists, use it\n\n\n var existingParentDef = colGroupDefs[pointer.getGroupId()];\n\n if (existingParentDef) {\n existingParentDef.children.push(childDef); // if we added to result, it would be the second time we did it\n\n addToResult = false; // we don't want to continue up the tree, as it has already been\n // done for this group\n\n break;\n }\n\n parentDef = _this.createDefFromGroup(pointer);\n\n if (parentDef) {\n parentDef.children = [childDef];\n colGroupDefs[parentDef.groupId] = parentDef;\n childDef = parentDef;\n pointer = pointer.getOriginalParent();\n }\n }\n\n if (addToResult) {\n res.push(childDef);\n }\n });\n return res;\n };\n\n ColumnDefFactory.prototype.createDefFromGroup = function (group) {\n var defCloned = deepCloneDefinition(group.getColGroupDef(), ['children']);\n\n if (defCloned) {\n defCloned.groupId = group.getGroupId();\n }\n\n return defCloned;\n };\n\n ColumnDefFactory.prototype.createDefFromColumn = function (col, rowGroupColumns, pivotColumns) {\n var colDefCloned = deepCloneDefinition(col.getColDef());\n colDefCloned.colId = col.getColId();\n colDefCloned.width = col.getActualWidth();\n colDefCloned.rowGroup = col.isRowGroupActive();\n colDefCloned.rowGroupIndex = col.isRowGroupActive() ? rowGroupColumns.indexOf(col) : null;\n colDefCloned.pivot = col.isPivotActive();\n colDefCloned.pivotIndex = col.isPivotActive() ? pivotColumns.indexOf(col) : null;\n colDefCloned.aggFunc = col.isValueActive() ? col.getAggFunc() : null;\n colDefCloned.hide = col.isVisible() ? undefined : true;\n colDefCloned.pinned = col.isPinned() ? col.getPinned() : null;\n colDefCloned.sort = col.getSort() ? col.getSort() : null;\n colDefCloned.sortIndex = col.getSortIndex() != null ? col.getSortIndex() : null;\n return colDefCloned;\n };\n\n ColumnDefFactory = __decorate$k([Bean('columnDefFactory')], ColumnDefFactory);\n return ColumnDefFactory;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar RowCssClassCalculator =\n/** @class */\nfunction () {\n function RowCssClassCalculator() {}\n\n RowCssClassCalculator.prototype.getInitialRowClasses = function (params) {\n var classes = [];\n\n if (exists(params.extraCssClass)) {\n classes.push(params.extraCssClass);\n }\n\n classes.push('ag-row');\n classes.push(params.rowFocused ? 'ag-row-focus' : 'ag-row-no-focus');\n\n if (params.fadeRowIn) {\n classes.push('ag-opacity-zero');\n }\n\n classes.push(params.rowIsEven ? 'ag-row-even' : 'ag-row-odd');\n\n if (params.rowNode.isRowPinned()) {\n classes.push('ag-row-pinned');\n }\n\n if (params.rowNode.isSelected()) {\n classes.push('ag-row-selected');\n }\n\n if (params.rowNode.footer) {\n classes.push('ag-row-footer');\n }\n\n classes.push('ag-row-level-' + params.rowLevel);\n\n if (params.rowNode.stub) {\n classes.push('ag-row-loading');\n }\n\n if (params.fullWidthRow) {\n classes.push('ag-full-width-row');\n }\n\n if (params.expandable) {\n classes.push('ag-row-group');\n classes.push(params.rowNode.expanded ? 'ag-row-group-expanded' : 'ag-row-group-contracted');\n }\n\n if (params.rowNode.dragging) {\n classes.push('ag-row-dragging');\n }\n\n pushAll(classes, this.processClassesFromGridOptions(params.rowNode));\n pushAll(classes, this.preProcessRowClassRules(params.rowNode)); // we use absolute position unless we are doing print layout\n\n classes.push(params.printLayout ? 'ag-row-position-relative' : 'ag-row-position-absolute');\n\n if (params.firstRowOnPage) {\n classes.push('ag-row-first');\n }\n\n if (params.lastRowOnPage) {\n classes.push('ag-row-last');\n }\n\n if (params.fullWidthRow) {\n if (params.pinned === Constants.PINNED_LEFT) {\n classes.push('ag-cell-last-left-pinned');\n }\n\n if (params.pinned === Constants.PINNED_RIGHT) {\n classes.push('ag-cell-first-right-pinned');\n }\n }\n\n return classes;\n };\n\n RowCssClassCalculator.prototype.processClassesFromGridOptions = function (rowNode) {\n var res = [];\n\n var process = function process(rowCls) {\n if (typeof rowCls === 'string') {\n res.push(rowCls);\n } else if (Array.isArray(rowCls)) {\n rowCls.forEach(function (e) {\n return res.push(e);\n });\n }\n }; // part 1 - rowClass\n\n\n var rowClass = this.gridOptionsWrapper.getRowClass();\n\n if (rowClass) {\n if (typeof rowClass === 'function') {\n console.warn('AG Grid: rowClass should not be a function, please use getRowClass instead');\n return [];\n }\n\n process(rowClass);\n } // part 2 - rowClassFunc\n\n\n var rowClassFunc = this.gridOptionsWrapper.getRowClassFunc();\n\n if (rowClassFunc) {\n var params = {\n data: rowNode.data,\n node: rowNode,\n rowIndex: rowNode.rowIndex\n };\n var rowClassFuncResult = rowClassFunc(params);\n process(rowClassFuncResult);\n }\n\n return res;\n };\n\n RowCssClassCalculator.prototype.preProcessRowClassRules = function (rowNode) {\n var res = [];\n this.processRowClassRules(rowNode, function (className) {\n res.push(className);\n }, function (className) {// not catered for, if creating, no need\n // to remove class as it was never there\n });\n return res;\n };\n\n RowCssClassCalculator.prototype.processRowClassRules = function (rowNode, onApplicableClass, onNotApplicableClass) {\n var rowClassParams = {\n data: rowNode.data,\n node: rowNode,\n rowIndex: rowNode.rowIndex,\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n context: this.gridOptionsWrapper.getContext()\n };\n this.stylingService.processClassRules(this.gridOptionsWrapper.rowClassRules(), rowClassParams, onApplicableClass, onNotApplicableClass);\n };\n\n RowCssClassCalculator.prototype.calculateRowLevel = function (rowNode) {\n if (rowNode.group) {\n return rowNode.level;\n } // if a leaf, and a parent exists, put a level of the parent, else put level of 0 for top level item\n\n\n return rowNode.parent ? rowNode.parent.level + 1 : 0;\n };\n\n __decorate$j([Autowired('stylingService')], RowCssClassCalculator.prototype, \"stylingService\", void 0);\n\n __decorate$j([Autowired('gridOptionsWrapper')], RowCssClassCalculator.prototype, \"gridOptionsWrapper\", void 0);\n\n RowCssClassCalculator = __decorate$j([Bean('rowCssClassCalculator')], RowCssClassCalculator);\n return RowCssClassCalculator;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}; // this logic is used by both SSRM and CSRM\n\n\nvar RowNodeSorter =\n/** @class */\nfunction () {\n function RowNodeSorter() {}\n\n RowNodeSorter.prototype.doFullSort = function (rowNodes, sortOptions) {\n var mapper = function mapper(rowNode, pos) {\n return {\n currentPos: pos,\n rowNode: rowNode\n };\n };\n\n var sortedRowNodes = rowNodes.map(mapper);\n sortedRowNodes.sort(this.compareRowNodes.bind(this, sortOptions));\n return sortedRowNodes.map(function (item) {\n return item.rowNode;\n });\n };\n\n RowNodeSorter.prototype.compareRowNodes = function (sortOptions, sortedNodeA, sortedNodeB) {\n var nodeA = sortedNodeA.rowNode;\n var nodeB = sortedNodeB.rowNode; // Iterate columns, return the first that doesn't match\n\n for (var i = 0, len = sortOptions.length; i < len; i++) {\n var sortOption = sortOptions[i];\n var isDescending = sortOption.sort === Constants.SORT_DESC;\n var valueA = this.getValue(nodeA, sortOption.column);\n var valueB = this.getValue(nodeB, sortOption.column);\n var comparatorResult = void 0;\n var providedComparator = this.getComparator(sortOption, nodeA);\n\n if (providedComparator) {\n //if comparator provided, use it\n comparatorResult = providedComparator(valueA, valueB, nodeA, nodeB, isDescending);\n } else {\n //otherwise do our own comparison\n comparatorResult = _.defaultComparator(valueA, valueB, this.gridOptionsWrapper.isAccentedSort());\n } // user provided comparators can return 'NaN' if they don't correctly handle 'undefined' values, this\n // typically occurs when the comparator is used on a group row\n\n\n var validResult = !isNaN(comparatorResult);\n\n if (validResult && comparatorResult !== 0) {\n return sortOption.sort === Constants.SORT_ASC ? comparatorResult : comparatorResult * -1;\n }\n } // All matched, we make is so that the original sort order is kept:\n\n\n return sortedNodeA.currentPos - sortedNodeB.currentPos;\n };\n\n RowNodeSorter.prototype.getComparator = function (sortOption, rowNode) {\n var column = sortOption.column; // comparator on col get preference over everything else\n\n var comparatorOnCol = column.getColDef().comparator;\n\n if (comparatorOnCol != null) {\n return comparatorOnCol;\n }\n\n if (!column.getColDef().showRowGroup) {\n return;\n } // if a 'field' is supplied on the autoGroupColumnDef we need to use the associated column comparator\n\n\n var groupLeafField = !rowNode.group && column.getColDef().field;\n\n if (!groupLeafField) {\n return;\n }\n\n var primaryColumn = this.columnModel.getPrimaryColumn(groupLeafField);\n\n if (!primaryColumn) {\n return;\n }\n\n return primaryColumn.getColDef().comparator;\n };\n\n RowNodeSorter.prototype.getValue = function (node, column) {\n var _a, _b;\n\n var primaryColumnsSortGroups = this.gridOptionsWrapper.isColumnsSortingCoupledToGroup();\n\n if (!primaryColumnsSortGroups) {\n return this.valueService.getValue(column, node, false, false);\n }\n\n var isNodeGroupedAtLevel = node.rowGroupColumn === column;\n\n if (isNodeGroupedAtLevel) {\n var isGroupRows = this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotActive());\n\n if (isGroupRows) {\n // if the column has a provided a keyCreator, we have to use the key, as the group could be\n // irrelevant to the column value\n var keyCreator = column.getColDef().keyCreator;\n\n if (keyCreator) {\n return node.key;\n } // if the group was generated from the column data, all the leaf children should return the same\n // value\n\n\n var leafChild = (_a = node.allLeafChildren) === null || _a === void 0 ? void 0 : _a[0];\n\n if (leafChild) {\n return this.valueService.getValue(column, leafChild, false, false);\n }\n\n return undefined;\n }\n\n var displayCol = this.columnModel.getGroupDisplayColumnForGroup(column.getId());\n\n if (!displayCol) {\n return undefined;\n }\n\n return (_b = node.groupData) === null || _b === void 0 ? void 0 : _b[displayCol.getId()];\n }\n\n if (node.group && column.getColDef().showRowGroup) {\n return undefined;\n }\n\n return this.valueService.getValue(column, node, false, false);\n };\n\n __decorate$i([Autowired('gridOptionsWrapper')], RowNodeSorter.prototype, \"gridOptionsWrapper\", void 0);\n\n __decorate$i([Autowired('valueService')], RowNodeSorter.prototype, \"valueService\", void 0);\n\n __decorate$i([Autowired('columnModel')], RowNodeSorter.prototype, \"columnModel\", void 0);\n\n RowNodeSorter = __decorate$i([Bean('rowNodeSorter')], RowNodeSorter);\n return RowNodeSorter;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$i = undefined && undefined.__extends || function () {\n var _extendStatics167 = function extendStatics(d, b) {\n _extendStatics167 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics167(d, b);\n };\n\n return function (d, b) {\n _extendStatics167(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar CtrlsService =\n/** @class */\nfunction (_super) {\n __extends$i(CtrlsService, _super);\n\n function CtrlsService() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.ready = false;\n _this.readyCallbacks = [];\n return _this;\n }\n\n CtrlsService_1 = CtrlsService;\n\n CtrlsService.prototype.checkReady = function () {\n this.ready = this.gridCtrl != null && this.gridBodyCtrl != null && this.centerRowContainerCtrl != null && this.leftRowContainerCtrl != null && this.rightRowContainerCtrl != null && this.bottomCenterRowContainerCtrl != null && this.bottomLeftRowContainerCtrl != null && this.bottomRightRowContainerCtrl != null && this.topCenterRowContainerCtrl != null && this.topLeftRowContainerCtrl != null && this.topRightRowContainerCtrl != null && this.stickyTopCenterRowContainerCtrl != null && this.stickyTopLeftRowContainerCtrl != null && this.stickyTopRightRowContainerCtrl != null && this.centerHeaderRowContainerCtrl != null && this.leftHeaderRowContainerCtrl != null && this.rightHeaderRowContainerCtrl != null && this.fakeHScrollCtrl != null && this.gridHeaderCtrl != null;\n\n if (this.ready) {\n var p_1 = this.createReadyParams();\n this.readyCallbacks.forEach(function (c) {\n return c(p_1);\n });\n this.readyCallbacks.length = 0;\n }\n };\n\n CtrlsService.prototype.whenReady = function (callback) {\n if (this.ready) {\n callback(this.createReadyParams());\n } else {\n this.readyCallbacks.push(callback);\n }\n };\n\n CtrlsService.prototype.createReadyParams = function () {\n return {\n centerRowContainerCtrl: this.centerRowContainerCtrl,\n leftRowContainerCtrl: this.leftRowContainerCtrl,\n rightRowContainerCtrl: this.rightRowContainerCtrl,\n bottomCenterRowContainerCtrl: this.bottomCenterRowContainerCtrl,\n bottomLeftRowContainerCtrl: this.bottomLeftRowContainerCtrl,\n bottomRightRowContainerCtrl: this.bottomRightRowContainerCtrl,\n topCenterRowContainerCtrl: this.topCenterRowContainerCtrl,\n topLeftRowContainerCtrl: this.topLeftRowContainerCtrl,\n topRightRowContainerCtrl: this.topRightRowContainerCtrl,\n stickyTopCenterRowContainerCtrl: this.stickyTopCenterRowContainerCtrl,\n stickyTopLeftRowContainerCtrl: this.stickyTopLeftRowContainerCtrl,\n stickyTopRightRowContainerCtrl: this.stickyTopRightRowContainerCtrl,\n centerHeaderRowContainerCtrl: this.centerHeaderRowContainerCtrl,\n leftHeaderRowContainerCtrl: this.leftHeaderRowContainerCtrl,\n rightHeaderRowContainerCtrl: this.rightHeaderRowContainerCtrl,\n fakeHScrollCtrl: this.fakeHScrollCtrl,\n gridBodyCtrl: this.gridBodyCtrl,\n gridCtrl: this.gridCtrl,\n gridHeaderCtrl: this.gridHeaderCtrl\n };\n };\n\n CtrlsService.prototype.registerFakeHScrollCtrl = function (ctrl) {\n this.fakeHScrollCtrl = ctrl;\n this.checkReady();\n };\n\n CtrlsService.prototype.registerGridHeaderCtrl = function (gridHeaderCtrl) {\n this.gridHeaderCtrl = gridHeaderCtrl;\n this.checkReady();\n };\n\n CtrlsService.prototype.registerCenterRowContainerCtrl = function (ctrl) {\n this.centerRowContainerCtrl = ctrl;\n this.checkReady();\n };\n\n CtrlsService.prototype.registerLeftRowContainerCtrl = function (ctrl) {\n this.leftRowContainerCtrl = ctrl;\n this.checkReady();\n };\n\n CtrlsService.prototype.registerRightRowContainerCtrl = function (ctrl) {\n this.rightRowContainerCtrl = ctrl;\n this.checkReady();\n };\n\n CtrlsService.prototype.registerTopCenterRowContainerCtrl = function (ctrl) {\n this.topCenterRowContainerCtrl = ctrl;\n this.checkReady();\n };\n\n CtrlsService.prototype.registerTopLeftRowContainerCon = function (ctrl) {\n this.topLeftRowContainerCtrl = ctrl;\n this.checkReady();\n };\n\n CtrlsService.prototype.registerTopRightRowContainerCtrl = function (ctrl) {\n this.topRightRowContainerCtrl = ctrl;\n this.checkReady();\n };\n\n CtrlsService.prototype.registerStickyTopCenterRowContainerCtrl = function (ctrl) {\n this.stickyTopCenterRowContainerCtrl = ctrl;\n this.checkReady();\n };\n\n CtrlsService.prototype.registerStickyTopLeftRowContainerCon = function (ctrl) {\n this.stickyTopLeftRowContainerCtrl = ctrl;\n this.checkReady();\n };\n\n CtrlsService.prototype.registerStickyTopRightRowContainerCtrl = function (ctrl) {\n this.stickyTopRightRowContainerCtrl = ctrl;\n this.checkReady();\n };\n\n CtrlsService.prototype.registerBottomCenterRowContainerCtrl = function (ctrl) {\n this.bottomCenterRowContainerCtrl = ctrl;\n this.checkReady();\n };\n\n CtrlsService.prototype.registerBottomLeftRowContainerCtrl = function (ctrl) {\n this.bottomLeftRowContainerCtrl = ctrl;\n this.checkReady();\n };\n\n CtrlsService.prototype.registerBottomRightRowContainerCtrl = function (ctrl) {\n this.bottomRightRowContainerCtrl = ctrl;\n this.checkReady();\n };\n\n CtrlsService.prototype.registerHeaderContainer = function (ctrl, pinned) {\n switch (pinned) {\n case Constants.PINNED_LEFT:\n this.leftHeaderRowContainerCtrl = ctrl;\n break;\n\n case Constants.PINNED_RIGHT:\n this.rightHeaderRowContainerCtrl = ctrl;\n break;\n\n default:\n this.centerHeaderRowContainerCtrl = ctrl;\n break;\n }\n\n this.checkReady();\n };\n\n CtrlsService.prototype.registerGridBodyCtrl = function (ctrl) {\n this.gridBodyCtrl = ctrl;\n this.checkReady();\n };\n\n CtrlsService.prototype.registerGridCtrl = function (ctrl) {\n this.gridCtrl = ctrl;\n this.checkReady();\n };\n\n CtrlsService.prototype.getFakeHScrollCtrl = function () {\n return this.fakeHScrollCtrl;\n };\n\n CtrlsService.prototype.getGridHeaderCtrl = function () {\n return this.gridHeaderCtrl;\n };\n\n CtrlsService.prototype.getGridCtrl = function () {\n return this.gridCtrl;\n };\n\n CtrlsService.prototype.getCenterRowContainerCtrl = function () {\n return this.centerRowContainerCtrl;\n };\n\n CtrlsService.prototype.getTopCenterRowContainerCtrl = function () {\n return this.topCenterRowContainerCtrl;\n };\n\n CtrlsService.prototype.getBottomCenterRowContainerCtrl = function () {\n return this.bottomCenterRowContainerCtrl;\n };\n\n CtrlsService.prototype.getStickyTopCenterRowContainerCtrl = function () {\n return this.stickyTopCenterRowContainerCtrl;\n };\n\n CtrlsService.prototype.getGridBodyCtrl = function () {\n return this.gridBodyCtrl;\n };\n\n CtrlsService.prototype.getHeaderRowContainerCtrls = function () {\n return [this.leftHeaderRowContainerCtrl, this.rightHeaderRowContainerCtrl, this.centerHeaderRowContainerCtrl];\n };\n\n CtrlsService.prototype.getHeaderRowContainerCtrl = function (pinned) {\n switch (pinned) {\n case Constants.PINNED_LEFT:\n return this.leftHeaderRowContainerCtrl;\n\n case Constants.PINNED_RIGHT:\n return this.rightHeaderRowContainerCtrl;\n\n default:\n return this.centerHeaderRowContainerCtrl;\n }\n };\n\n var CtrlsService_1;\n CtrlsService.NAME = 'ctrlsService';\n CtrlsService = CtrlsService_1 = __decorate$h([Bean(CtrlsService_1.NAME)], CtrlsService);\n return CtrlsService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$h = undefined && undefined.__extends || function () {\n var _extendStatics168 = function extendStatics(d, b) {\n _extendStatics168 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics168(d, b);\n };\n\n return function (d, b) {\n _extendStatics168(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar CtrlsFactory =\n/** @class */\nfunction (_super) {\n __extends$h(CtrlsFactory, _super);\n\n function CtrlsFactory() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.registry = {};\n return _this;\n }\n\n CtrlsFactory.prototype.register = function (meta) {\n this.registry[meta.controllerName] = meta.controllerClass;\n };\n\n CtrlsFactory.prototype.getInstance = function (name) {\n var ControllerClass = this.registry[name];\n\n if (ControllerClass == null) {\n return undefined;\n }\n\n return new ControllerClass();\n };\n\n CtrlsFactory = __decorate$g([Bean('ctrlsFactory')], CtrlsFactory);\n return CtrlsFactory;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$g = undefined && undefined.__extends || function () {\n var _extendStatics169 = function extendStatics(d, b) {\n _extendStatics169 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics169(d, b);\n };\n\n return function (d, b) {\n _extendStatics169(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar FakeHScrollCtrl =\n/** @class */\nfunction (_super) {\n __extends$g(FakeHScrollCtrl, _super);\n\n function FakeHScrollCtrl() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n FakeHScrollCtrl.prototype.setComp = function (view, eGui, eViewport, eContainer) {\n this.view = view;\n this.eViewport = eViewport;\n this.eContainer = eContainer;\n this.eGui = eGui;\n this.addManagedListener(this.eventService, Events.EVENT_SCROLL_VISIBILITY_CHANGED, this.onScrollVisibilityChanged.bind(this)); // When doing printing, this changes whether cols are pinned or not\n\n var spacerWidthsListener = this.setFakeHScrollSpacerWidths.bind(this);\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, spacerWidthsListener);\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, spacerWidthsListener);\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_DOM_LAYOUT, spacerWidthsListener);\n this.addManagedListener(this.eventService, Events.EVENT_PINNED_ROW_DATA_CHANGED, this.onPinnedRowDataChanged.bind(this));\n this.onScrollVisibilityChanged();\n this.ctrlsService.registerFakeHScrollCtrl(this);\n this.view.addOrRemoveCssClass('ag-apple-scrollbar', isMacOsUserAgent() || isIOSUserAgent());\n };\n\n FakeHScrollCtrl.prototype.addActiveListenerToggles = function () {\n var _this = this;\n\n var activateEvents = ['mouseenter', 'mousedown', 'touchstart'];\n var deactivateEvents = ['mouseleave', 'touchend'];\n activateEvents.forEach(function (eventName) {\n return _this.addManagedListener(_this.eGui, eventName, function () {\n return _this.view.addOrRemoveCssClass('ag-scrollbar-active', true);\n });\n });\n deactivateEvents.forEach(function (eventName) {\n return _this.addManagedListener(_this.eGui, eventName, function () {\n return _this.view.addOrRemoveCssClass('ag-scrollbar-active', false);\n });\n });\n };\n\n FakeHScrollCtrl.prototype.initialiseInvisibleScrollbar = function () {\n if (this.invisibleScrollbar !== undefined) {\n return;\n }\n\n this.enableRtl = this.gridOptionsWrapper.isEnableRtl();\n this.invisibleScrollbar = isInvisibleScrollbar();\n\n if (this.invisibleScrollbar) {\n this.hideAndShowInvisibleScrollAsNeeded();\n this.addActiveListenerToggles();\n this.refreshCompBottom();\n }\n };\n\n FakeHScrollCtrl.prototype.onPinnedRowDataChanged = function () {\n this.refreshCompBottom();\n };\n\n FakeHScrollCtrl.prototype.refreshCompBottom = function () {\n if (!this.invisibleScrollbar) {\n return;\n }\n\n var bottomPinnedHeight = this.pinnedRowModel.getPinnedBottomTotalHeight();\n this.view.setBottom(bottomPinnedHeight);\n };\n\n FakeHScrollCtrl.prototype.onScrollVisibilityChanged = function () {\n // initialiseInvisibleScrollbar should only be called once, but the reason\n // this can't be inside `setComp` or `PostConstruct` is the DOM might not\n // be ready, so we call it until eventually, it gets calculated.\n if (this.invisibleScrollbar === undefined) {\n this.initialiseInvisibleScrollbar();\n }\n\n this.setScrollVisible();\n this.setFakeHScrollSpacerWidths();\n };\n\n FakeHScrollCtrl.prototype.hideAndShowInvisibleScrollAsNeeded = function () {\n var _this = this;\n\n this.addManagedListener(this.eventService, Events.EVENT_BODY_SCROLL, function (params) {\n if (params.direction === 'horizontal') {\n _this.view.addOrRemoveCssClass('ag-scrollbar-scrolling', true);\n }\n });\n this.addManagedListener(this.eventService, Events.EVENT_BODY_SCROLL_END, function () {\n return _this.view.addOrRemoveCssClass('ag-scrollbar-scrolling', false);\n });\n };\n\n FakeHScrollCtrl.prototype.setFakeHScrollSpacerWidths = function () {\n var vScrollShowing = this.scrollVisibleService.isVerticalScrollShowing(); // we pad the right based on a) if cols are pinned to the right and\n // b) if v scroll is showing on the right (normal position of scroll)\n\n var rightSpacing = this.columnModel.getDisplayedColumnsRightWidth();\n var scrollOnRight = !this.enableRtl && vScrollShowing;\n var scrollbarWidth = this.gridOptionsWrapper.getScrollbarWidth();\n\n if (scrollOnRight) {\n rightSpacing += scrollbarWidth;\n }\n\n this.view.setRightSpacerFixedWidth(rightSpacing);\n this.view.includeRightSpacerScrollerCss('ag-scroller-corner', rightSpacing <= scrollbarWidth); // we pad the left based on a) if cols are pinned to the left and\n // b) if v scroll is showing on the left (happens in LTR layout only)\n\n var leftSpacing = this.columnModel.getDisplayedColumnsLeftWidth();\n var scrollOnLeft = this.enableRtl && vScrollShowing;\n\n if (scrollOnLeft) {\n leftSpacing += scrollbarWidth;\n }\n\n this.view.setLeftSpacerFixedWidth(leftSpacing);\n this.view.includeLeftSpacerScrollerCss('ag-scroller-corner', leftSpacing <= scrollbarWidth);\n };\n\n FakeHScrollCtrl.prototype.setScrollVisible = function () {\n var hScrollShowing = this.scrollVisibleService.isHorizontalScrollShowing();\n var invisibleScrollbar = this.invisibleScrollbar;\n var isSuppressHorizontalScroll = this.gridOptionsWrapper.isSuppressHorizontalScroll();\n var scrollbarWidth = hScrollShowing ? this.gridOptionsWrapper.getScrollbarWidth() || 0 : 0;\n var adjustedScrollbarWidth = scrollbarWidth === 0 && invisibleScrollbar ? 15 : scrollbarWidth;\n var scrollContainerSize = !isSuppressHorizontalScroll ? adjustedScrollbarWidth : 0;\n this.view.addOrRemoveCssClass('ag-scrollbar-invisible', invisibleScrollbar);\n this.view.setHeight(scrollContainerSize);\n this.view.setViewportHeight(scrollContainerSize);\n this.view.setContainerHeight(scrollContainerSize);\n };\n\n FakeHScrollCtrl.prototype.getViewport = function () {\n return this.eViewport;\n };\n\n FakeHScrollCtrl.prototype.getContainer = function () {\n return this.eContainer;\n };\n\n __decorate$f([Autowired('scrollVisibleService')], FakeHScrollCtrl.prototype, \"scrollVisibleService\", void 0);\n\n __decorate$f([Autowired('columnModel')], FakeHScrollCtrl.prototype, \"columnModel\", void 0);\n\n __decorate$f([Autowired('ctrlsService')], FakeHScrollCtrl.prototype, \"ctrlsService\", void 0);\n\n __decorate$f([Autowired('pinnedRowModel')], FakeHScrollCtrl.prototype, \"pinnedRowModel\", void 0);\n\n return FakeHScrollCtrl;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$f = undefined && undefined.__extends || function () {\n var _extendStatics170 = function extendStatics(d, b) {\n _extendStatics170 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics170(d, b);\n };\n\n return function (d, b) {\n _extendStatics170(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar FakeHScrollComp =\n/** @class */\nfunction (_super) {\n __extends$f(FakeHScrollComp, _super);\n\n function FakeHScrollComp() {\n return _super.call(this, FakeHScrollComp.TEMPLATE) || this;\n }\n\n FakeHScrollComp.prototype.postConstruct = function () {\n var _this = this;\n\n var compProxy = {\n addOrRemoveCssClass: function addOrRemoveCssClass(cssClassName, on) {\n return _this.addOrRemoveCssClass(cssClassName, on);\n },\n setHeight: function setHeight(height) {\n return setFixedHeight(_this.getGui(), height);\n },\n setBottom: function setBottom(bottom) {\n return _this.getGui().style.bottom = bottom + \"px\";\n },\n setContainerHeight: function setContainerHeight(height) {\n return setFixedHeight(_this.eContainer, height);\n },\n setViewportHeight: function setViewportHeight(height) {\n return setFixedHeight(_this.eViewport, height);\n },\n setRightSpacerFixedWidth: function setRightSpacerFixedWidth(width) {\n return setFixedWidth(_this.eRightSpacer, width);\n },\n setLeftSpacerFixedWidth: function setLeftSpacerFixedWidth(width) {\n return setFixedWidth(_this.eLeftSpacer, width);\n },\n includeLeftSpacerScrollerCss: function includeLeftSpacerScrollerCss(cssClass, include) {\n return _this.eLeftSpacer.classList.toggle(cssClass, include);\n },\n includeRightSpacerScrollerCss: function includeRightSpacerScrollerCss(cssClass, include) {\n return _this.eRightSpacer.classList.toggle(cssClass, include);\n }\n };\n var ctrl = this.createManagedBean(new FakeHScrollCtrl());\n ctrl.setComp(compProxy, this.getGui(), this.eViewport, this.eContainer);\n this.createManagedBean(new CenterWidthFeature(function (width) {\n return _this.eContainer.style.width = width + \"px\";\n }));\n };\n\n FakeHScrollComp.TEMPLATE = \"
\\n
\\n
\\n
\\n
\\n
\\n
\";\n\n __decorate$e([RefSelector('eLeftSpacer')], FakeHScrollComp.prototype, \"eLeftSpacer\", void 0);\n\n __decorate$e([RefSelector('eRightSpacer')], FakeHScrollComp.prototype, \"eRightSpacer\", void 0);\n\n __decorate$e([RefSelector('eViewport')], FakeHScrollComp.prototype, \"eViewport\", void 0);\n\n __decorate$e([RefSelector('eContainer')], FakeHScrollComp.prototype, \"eContainer\", void 0);\n\n __decorate$e([PostConstruct], FakeHScrollComp.prototype, \"postConstruct\", null);\n\n return FakeHScrollComp;\n}(Component);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$e = undefined && undefined.__extends || function () {\n var _extendStatics171 = function extendStatics(d, b) {\n _extendStatics171 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics171(d, b);\n };\n\n return function (d, b) {\n _extendStatics171(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar PinnedWidthService =\n/** @class */\nfunction (_super) {\n __extends$e(PinnedWidthService, _super);\n\n function PinnedWidthService() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n PinnedWidthService.prototype.postConstruct = function () {\n var listener = this.checkContainerWidths.bind(this);\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_CHANGED, listener);\n this.addManagedListener(this.eventService, Events.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED, listener);\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_DOM_LAYOUT, listener);\n };\n\n PinnedWidthService.prototype.checkContainerWidths = function () {\n var printLayout = this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_PRINT;\n var newLeftWidth = printLayout ? 0 : this.columnModel.getDisplayedColumnsLeftWidth();\n var newRightWidth = printLayout ? 0 : this.columnModel.getDisplayedColumnsRightWidth();\n\n if (newLeftWidth != this.leftWidth) {\n this.leftWidth = newLeftWidth;\n this.eventService.dispatchEvent({\n type: Events.EVENT_LEFT_PINNED_WIDTH_CHANGED\n });\n }\n\n if (newRightWidth != this.rightWidth) {\n this.rightWidth = newRightWidth;\n this.eventService.dispatchEvent({\n type: Events.EVENT_RIGHT_PINNED_WIDTH_CHANGED\n });\n }\n };\n\n PinnedWidthService.prototype.getPinnedRightWidth = function () {\n return this.rightWidth;\n };\n\n PinnedWidthService.prototype.getPinnedLeftWidth = function () {\n return this.leftWidth;\n };\n\n __decorate$d([Autowired('columnModel')], PinnedWidthService.prototype, \"columnModel\", void 0);\n\n __decorate$d([PostConstruct], PinnedWidthService.prototype, \"postConstruct\", null);\n\n PinnedWidthService = __decorate$d([Bean('pinnedWidthService')], PinnedWidthService);\n return PinnedWidthService;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __extends$d = undefined && undefined.__extends || function () {\n var _extendStatics172 = function extendStatics(d, b) {\n _extendStatics172 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics172(d, b);\n };\n\n return function (d, b) {\n _extendStatics172(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar RowNodeEventThrottle =\n/** @class */\nfunction (_super) {\n __extends$d(RowNodeEventThrottle, _super);\n\n function RowNodeEventThrottle() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.events = [];\n return _this;\n }\n\n RowNodeEventThrottle.prototype.postConstruct = function () {\n if (this.rowModel.getType() == Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {\n this.clientSideRowModel = this.rowModel;\n }\n }; // because the user can call rowNode.setExpanded() many times in one VM turn,\n // we throttle the calls to ClientSideRowModel using animationFrameService. this means for 100\n // row nodes getting expanded, we only update the CSRM once, and then we fire all events after\n // CSRM has updated.\n //\n // if we did not do this, then the user could call setExpanded on 100+ rows, causing the grid\n // to re-render 100+ times, which would be a performance lag.\n //\n // we use animationFrameService\n // rather than _.debounce() so this will get done if anyone flushes the animationFrameService\n // (eg user calls api.ensureRowVisible(), which in turn flushes ).\n\n\n RowNodeEventThrottle.prototype.dispatchExpanded = function (event) {\n var _this = this; // if not using CSRM, we don't debounce. otherwise this breaks the SSRM.\n\n\n if (this.clientSideRowModel == null) {\n this.eventService.dispatchEvent(event);\n return;\n }\n\n this.events.push(event);\n\n var func = function func() {\n if (_this.clientSideRowModel) {\n _this.clientSideRowModel.onRowGroupOpened();\n }\n\n _this.events.forEach(function (e) {\n return _this.eventService.dispatchEvent(e);\n });\n\n _this.events = [];\n };\n\n if (this.dispatchExpandedDebounced == null) {\n this.dispatchExpandedDebounced = this.animationFrameService.debounce(func);\n }\n\n this.dispatchExpandedDebounced();\n };\n\n __decorate$c([Autowired('animationFrameService')], RowNodeEventThrottle.prototype, \"animationFrameService\", void 0);\n\n __decorate$c([Autowired('rowModel')], RowNodeEventThrottle.prototype, \"rowModel\", void 0);\n\n __decorate$c([PostConstruct], RowNodeEventThrottle.prototype, \"postConstruct\", null);\n\n RowNodeEventThrottle = __decorate$c([Bean('rowNodeEventThrottle')], RowNodeEventThrottle);\n return RowNodeEventThrottle;\n}(BeanStub);\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar __read$2 = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$1 = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$2(arguments[i]));\n }\n\n return ar;\n}; // creates JavaScript vanilla Grid, including JavaScript (ag-stack) components, which can\n// be wrapped by the framework wrappers\n\n\nvar Grid =\n/** @class */\nfunction () {\n function Grid(eGridDiv, gridOptions, params) {\n if (!gridOptions) {\n console.error('AG Grid: no gridOptions provided to the grid');\n return;\n }\n\n this.gridOptions = gridOptions;\n new GridCoreCreator().create(eGridDiv, gridOptions, function (context) {\n var gridComp = new GridComp(eGridDiv);\n context.createBean(gridComp);\n }, undefined, params);\n }\n\n Grid.prototype.destroy = function () {\n if (this.gridOptions && this.gridOptions.api) {\n this.gridOptions.api.destroy();\n }\n };\n\n return Grid;\n}(); // created services of grid only, no UI, so frameworks can use this if providing\n// their own UI\n\n\nvar GridCoreCreator =\n/** @class */\nfunction () {\n function GridCoreCreator() {}\n\n GridCoreCreator.prototype.create = function (eGridDiv, gridOptions, createUi, acceptChanges, params) {\n var _this = this;\n\n var debug = !!gridOptions.debug;\n var registeredModules = this.getRegisteredModules(params);\n var beanClasses = this.createBeansList(gridOptions.rowModelType, registeredModules);\n var providedBeanInstances = this.createProvidedBeans(eGridDiv, gridOptions, params);\n\n if (!beanClasses) {\n return;\n } // happens when no row model found\n\n\n var contextParams = {\n providedBeanInstances: providedBeanInstances,\n beanClasses: beanClasses,\n debug: debug\n };\n var logger = new Logger('AG Grid', function () {\n return gridOptions.debug;\n });\n var contextLogger = new Logger('Context', function () {\n return contextParams.debug;\n });\n var context = new Context(contextParams, contextLogger);\n var beans = context.getBean('beans');\n this.registerModuleUserComponents(beans, registeredModules);\n this.registerStackComponents(beans, registeredModules);\n this.registerControllers(beans, registeredModules);\n createUi(context); // we wait until the UI has finished initialising before setting in columns and rows\n\n beans.ctrlsService.whenReady(function () {\n _this.setColumnsAndData(beans);\n\n _this.dispatchGridReadyEvent(beans);\n\n var isEnterprise = ModuleRegistry.isRegistered(ModuleNames.EnterpriseCoreModule);\n logger.log(\"initialised successfully, enterprise = \" + isEnterprise);\n });\n\n if (acceptChanges) {\n acceptChanges(context);\n }\n };\n\n GridCoreCreator.prototype.registerControllers = function (beans, registeredModules) {\n registeredModules.forEach(function (module) {\n if (module.controllers) {\n module.controllers.forEach(function (meta) {\n return beans.ctrlsFactory.register(meta);\n });\n }\n });\n };\n\n GridCoreCreator.prototype.registerStackComponents = function (beans, registeredModules) {\n var agStackComponents = this.createAgStackComponentsList(registeredModules);\n beans.agStackComponentsRegistry.setupComponents(agStackComponents);\n };\n\n GridCoreCreator.prototype.getRegisteredModules = function (params) {\n var passedViaConstructor = params ? params.modules : null;\n var registered = ModuleRegistry.getRegisteredModules();\n var allModules = [];\n var mapNames = {}; // adds to list and removes duplicates\n\n function addModule(moduleBased, mod) {\n function addIndividualModule(currentModule) {\n if (!mapNames[currentModule.moduleName]) {\n mapNames[currentModule.moduleName] = true;\n allModules.push(currentModule);\n ModuleRegistry.register(currentModule, moduleBased);\n }\n }\n\n addIndividualModule(mod);\n\n if (mod.dependantModules) {\n mod.dependantModules.forEach(addModule.bind(null, moduleBased));\n }\n }\n\n if (passedViaConstructor) {\n passedViaConstructor.forEach(addModule.bind(null, true));\n }\n\n if (registered) {\n registered.forEach(addModule.bind(null, !ModuleRegistry.isPackageBased()));\n }\n\n return allModules;\n };\n\n GridCoreCreator.prototype.registerModuleUserComponents = function (beans, registeredModules) {\n var moduleUserComps = this.extractModuleEntity(registeredModules, function (module) {\n return module.userComponents ? module.userComponents : [];\n });\n moduleUserComps.forEach(function (compMeta) {\n beans.userComponentRegistry.registerDefaultComponent(compMeta.componentName, compMeta.componentClass);\n });\n };\n\n GridCoreCreator.prototype.createProvidedBeans = function (eGridDiv, gridOptions, params) {\n var frameworkOverrides = params ? params.frameworkOverrides : null;\n\n if (missing(frameworkOverrides)) {\n frameworkOverrides = new VanillaFrameworkOverrides();\n }\n\n var seed = {\n gridOptions: gridOptions,\n eGridDiv: eGridDiv,\n globalEventListener: params ? params.globalEventListener : null,\n frameworkOverrides: frameworkOverrides\n };\n\n if (params && params.providedBeanInstances) {\n Object.assign(seed, params.providedBeanInstances);\n }\n\n return seed;\n };\n\n GridCoreCreator.prototype.createAgStackComponentsList = function (registeredModules) {\n var components = [{\n componentName: 'AgCheckbox',\n componentClass: AgCheckbox\n }, {\n componentName: 'AgRadioButton',\n componentClass: AgRadioButton\n }, {\n componentName: 'AgToggleButton',\n componentClass: AgToggleButton\n }, {\n componentName: 'AgInputTextField',\n componentClass: AgInputTextField\n }, {\n componentName: 'AgInputTextArea',\n componentClass: AgInputTextArea\n }, {\n componentName: 'AgInputNumberField',\n componentClass: AgInputNumberField\n }, {\n componentName: 'AgInputRange',\n componentClass: AgInputRange\n }, {\n componentName: 'AgSelect',\n componentClass: AgSelect\n }, {\n componentName: 'AgSlider',\n componentClass: AgSlider\n }, {\n componentName: 'AgAngleSelect',\n componentClass: AgAngleSelect\n }, {\n componentName: 'AgColorPicker',\n componentClass: AgColorPicker\n }, {\n componentName: 'AgGridBody',\n componentClass: GridBodyComp\n }, {\n componentName: 'AgHeaderRoot',\n componentClass: GridHeaderComp\n }, {\n componentName: 'AgSortIndicator',\n componentClass: SortIndicatorComp\n }, {\n componentName: 'AgPagination',\n componentClass: PaginationComp\n }, {\n componentName: 'AgOverlayWrapper',\n componentClass: OverlayWrapperComponent\n }, {\n componentName: 'AgGroupComponent',\n componentClass: AgGroupComponent\n }, {\n componentName: 'AgPanel',\n componentClass: AgPanel\n }, {\n componentName: 'AgDialog',\n componentClass: AgDialog\n }, {\n componentName: 'AgRowContainer',\n componentClass: RowContainerComp\n }, {\n componentName: 'AgFakeHorizontalScroll',\n componentClass: FakeHScrollComp\n }];\n var moduleAgStackComps = this.extractModuleEntity(registeredModules, function (module) {\n return module.agStackComponents ? module.agStackComponents : [];\n });\n components = components.concat(moduleAgStackComps);\n return components;\n };\n\n GridCoreCreator.prototype.createBeansList = function (rowModelType, registeredModules) {\n var rowModelClass = this.getRowModelClass(rowModelType, registeredModules);\n\n if (!rowModelClass) {\n return;\n } // beans should only contain SERVICES, it should NEVER contain COMPONENTS\n\n\n var beans = [rowModelClass, Beans, RowPositionUtils, CellPositionUtils, HeaderPositionUtils, PaginationAutoPageSizeService, GridApi, UserComponentRegistry, AgComponentUtils, ComponentMetadataProvider, ResizeObserverService, UserComponentFactory, RowContainerHeightService, HorizontalResizeService, PinnedRowModel, DragService, DisplayedGroupCreator, EventService, GridOptionsWrapper, PopupService, SelectionService, FilterManager, ColumnModel, HeaderNavigationService, PaginationProxy, RowRenderer, ExpressionService, ColumnFactory, TemplateService, AlignedGridsService, NavigationService, ValueCache, ValueService, LoggerFactory, ColumnUtils, AutoWidthCalculator, StandardMenuFactory, DragAndDropService, ColumnApi, FocusService, MouseEventService, Environment, CellNavigationService, ValueFormatterService, StylingService, ScrollVisibleService, SortController, ColumnHoverService, ColumnAnimationService, SelectableService, AutoGroupColService, ChangeDetectionService, AnimationFrameService, UndoRedoService, AgStackComponentsRegistry, ColumnDefFactory, RowCssClassCalculator, RowNodeBlockLoader, RowNodeSorter, CtrlsService, PinnedWidthService, RowNodeEventThrottle, CtrlsFactory];\n var moduleBeans = this.extractModuleEntity(registeredModules, function (module) {\n return module.beans ? module.beans : [];\n });\n beans.push.apply(beans, __spread$1(moduleBeans)); // check for duplicates, as different modules could include the same beans that\n // they depend on, eg ClientSideRowModel in enterprise, and ClientSideRowModel in community\n\n var beansNoDuplicates = [];\n beans.forEach(function (bean) {\n if (beansNoDuplicates.indexOf(bean) < 0) {\n beansNoDuplicates.push(bean);\n }\n });\n return beansNoDuplicates;\n };\n\n GridCoreCreator.prototype.extractModuleEntity = function (moduleEntities, extractor) {\n return [].concat.apply([], __spread$1(moduleEntities.map(extractor)));\n };\n\n GridCoreCreator.prototype.setColumnsAndData = function (beans) {\n var columnDefs = beans.gridOptionsWrapper.getColumnDefs();\n beans.columnModel.setColumnDefs(columnDefs || [], \"gridInitializing\");\n beans.rowModel.start();\n };\n\n GridCoreCreator.prototype.dispatchGridReadyEvent = function (beans) {\n var readyEvent = {\n type: Events.EVENT_GRID_READY\n };\n beans.eventService.dispatchEvent(readyEvent);\n };\n\n GridCoreCreator.prototype.getRowModelClass = function (rowModelType, registeredModules) {\n // default to client side\n if (!rowModelType) {\n rowModelType = Constants.ROW_MODEL_TYPE_CLIENT_SIDE;\n }\n\n var rowModelClasses = {};\n registeredModules.forEach(function (module) {\n iterateObject(module.rowModels, function (key, value) {\n rowModelClasses[key] = value;\n });\n });\n var rowModelClass = rowModelClasses[rowModelType];\n\n if (exists(rowModelClass)) {\n return rowModelClass;\n }\n\n if (ModuleRegistry.isPackageBased()) {\n if ([Constants.ROW_MODEL_TYPE_VIEWPORT, Constants.ROW_MODEL_TYPE_SERVER_SIDE].includes(rowModelType)) {\n // If package based only the enterprise row models could be missing.\n console.error(\"AG Grid: Row Model \\\"\" + rowModelType + \"\\\" not found. Please ensure the package 'ag-grid-enterprise' is imported. Please see: https://www.ag-grid.com/javascript-grid/packages/\");\n } else {\n console.error('AG Grid: could not find row model for rowModelType ' + rowModelType);\n }\n } else {\n if (rowModelType === Constants.ROW_MODEL_TYPE_INFINITE) {\n console.error(\"AG Grid: Row Model \\\"Infinite\\\" not found. Please ensure the \" + ModuleNames.InfiniteRowModelModule + \" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/\");\n } else if (rowModelType === Constants.ROW_MODEL_TYPE_VIEWPORT) {\n console.error(\"AG Grid: Row Model \\\"Viewport\\\" not found. Please ensure the AG Grid Enterprise Module \" + ModuleNames.ViewportRowModelModule + \" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/\");\n } else if (rowModelType === Constants.ROW_MODEL_TYPE_SERVER_SIDE) {\n console.error(\"AG Grid: Row Model \\\"Server Side\\\" not found. Please ensure the AG Grid Enterprise Module \" + ModuleNames.ServerSideRowModelModule + \" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/\");\n } else if (rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {\n console.error(\"AG Grid: Row Model \\\"Client Side\\\" not found. Please ensure the \" + ModuleNames.ClientSideRowModelModule + \" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/\");\n } else {\n console.error('AG Grid: could not find row model for rowModelType ' + rowModelType);\n }\n }\n };\n\n return GridCoreCreator;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nfunction defaultGroupComparator(valueA, valueB, nodeA, nodeB, accentedCompare) {\n if (accentedCompare === void 0) {\n accentedCompare = false;\n }\n\n console.warn('AG Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef');\n var nodeAIsGroup = exists(nodeA) && nodeA.group;\n var nodeBIsGroup = exists(nodeB) && nodeB.group;\n var bothAreGroups = nodeAIsGroup && nodeBIsGroup;\n var bothAreNormal = !nodeAIsGroup && !nodeBIsGroup;\n\n if (bothAreGroups) {\n return defaultComparator(nodeA.key, nodeB.key, accentedCompare);\n }\n\n if (bothAreNormal) {\n return defaultComparator(valueA, valueB, accentedCompare);\n }\n\n if (nodeAIsGroup) {\n return 1;\n }\n\n return -1;\n}\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar BaseComponentWrapper =\n/** @class */\nfunction () {\n function BaseComponentWrapper() {}\n\n BaseComponentWrapper.prototype.wrap = function (OriginalConstructor, mandatoryMethodList, optionalMethodList, componentType) {\n var _this = this;\n\n if (optionalMethodList === void 0) {\n optionalMethodList = [];\n }\n\n var wrapper = this.createWrapper(OriginalConstructor, componentType);\n mandatoryMethodList.forEach(function (methodName) {\n _this.createMethod(wrapper, methodName, true);\n });\n optionalMethodList.forEach(function (methodName) {\n _this.createMethod(wrapper, methodName, false);\n });\n return wrapper;\n };\n\n BaseComponentWrapper.prototype.unwrap = function (comp) {\n return comp;\n };\n\n BaseComponentWrapper.prototype.createMethod = function (wrapper, methodName, mandatory) {\n wrapper.addMethod(methodName, this.createMethodProxy(wrapper, methodName, mandatory));\n };\n\n BaseComponentWrapper.prototype.createMethodProxy = function (wrapper, methodName, mandatory) {\n return function () {\n if (wrapper.hasMethod(methodName)) {\n return wrapper.callMethod(methodName, arguments);\n }\n\n if (mandatory) {\n console.warn('AG Grid: Framework component is missing the method ' + methodName + '()');\n }\n\n return null;\n };\n };\n\n return BaseComponentWrapper;\n}();\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar BarColumnLabelPlacement;\n\n(function (BarColumnLabelPlacement) {\n BarColumnLabelPlacement[\"InsideBase\"] = \"insideBase\";\n BarColumnLabelPlacement[\"InsideEnd\"] = \"insideEnd\";\n BarColumnLabelPlacement[\"Center\"] = \"center\";\n BarColumnLabelPlacement[\"OutsideEnd\"] = \"outsideEnd\";\n})(BarColumnLabelPlacement || (BarColumnLabelPlacement = {}));\n/**\n * @ag-grid-community/core - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue\n * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license MIT\n */\n\n\nvar globalObj = typeof global === 'undefined' ? {} : global;\nglobalObj.HTMLElement = typeof HTMLElement === 'undefined' ? {} : HTMLElement;\nglobalObj.HTMLButtonElement = typeof HTMLButtonElement === 'undefined' ? {} : HTMLButtonElement;\nglobalObj.HTMLSelectElement = typeof HTMLSelectElement === 'undefined' ? {} : HTMLSelectElement;\nglobalObj.HTMLInputElement = typeof HTMLInputElement === 'undefined' ? {} : HTMLInputElement;\nglobalObj.Node = typeof Node === 'undefined' ? {} : Node;\nglobalObj.MouseEvent = typeof MouseEvent === 'undefined' ? {} : MouseEvent;\n\nvar __read$1 = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$1(arguments[i]));\n }\n\n return ar;\n};\n\nvar ClientSideNodeManager =\n/** @class */\nfunction () {\n function ClientSideNodeManager(rootNode, gridOptionsWrapper, eventService, columnModel, selectionService, beans) {\n this.nextId = 0; // when user is provide the id's, we also keep a map of ids to row nodes for convenience\n\n this.allNodesMap = {};\n this.rootNode = rootNode;\n this.gridOptionsWrapper = gridOptionsWrapper;\n this.eventService = eventService;\n this.columnModel = columnModel;\n this.beans = beans;\n this.selectionService = selectionService;\n this.rootNode.group = true;\n this.rootNode.level = -1;\n this.rootNode.id = ClientSideNodeManager.ROOT_NODE_ID;\n this.rootNode.allLeafChildren = [];\n this.rootNode.childrenAfterGroup = [];\n this.rootNode.childrenAfterSort = [];\n this.rootNode.childrenAfterAggFilter = [];\n this.rootNode.childrenAfterFilter = []; // if we make this class a bean, then can annotate postConstruct\n\n this.postConstruct();\n } // @PostConstruct - this is not a bean, so postConstruct called by constructor\n\n\n ClientSideNodeManager.prototype.postConstruct = function () {\n // func below doesn't have 'this' pointer, so need to pull out these bits\n this.suppressParentsInRowNodes = this.gridOptionsWrapper.isSuppressParentsInRowNodes();\n this.isRowMasterFunc = this.gridOptionsWrapper.getIsRowMasterFunc();\n this.doingTreeData = this.gridOptionsWrapper.isTreeData();\n this.doingMasterDetail = this.gridOptionsWrapper.isMasterDetail();\n };\n\n ClientSideNodeManager.prototype.getCopyOfNodesMap = function () {\n return _.cloneObject(this.allNodesMap);\n };\n\n ClientSideNodeManager.prototype.getRowNode = function (id) {\n return this.allNodesMap[id];\n };\n\n ClientSideNodeManager.prototype.setRowData = function (rowData) {\n var _this = this;\n\n if (typeof rowData === 'string') {\n 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');\n return;\n }\n\n var rootNode = this.rootNode;\n var sibling = this.rootNode.sibling;\n rootNode.childrenAfterFilter = null;\n rootNode.childrenAfterGroup = null;\n rootNode.childrenAfterAggFilter = null;\n rootNode.childrenAfterSort = null;\n rootNode.childrenMapped = null;\n rootNode.updateHasChildren();\n this.nextId = 0;\n this.allNodesMap = {};\n\n if (rowData) {\n // we use rootNode as the parent, however if using ag-grid-enterprise, the grouping stage\n // sets the parent node on each row (even if we are not grouping). so setting parent node\n // here is for benefit of ag-grid-community users\n rootNode.allLeafChildren = rowData.map(function (dataItem) {\n return _this.createNode(dataItem, _this.rootNode, ClientSideNodeManager.TOP_LEVEL);\n });\n } else {\n rootNode.allLeafChildren = [];\n rootNode.childrenAfterGroup = [];\n }\n\n if (sibling) {\n sibling.childrenAfterFilter = rootNode.childrenAfterFilter;\n sibling.childrenAfterGroup = rootNode.childrenAfterGroup;\n sibling.childrenAfterAggFilter = rootNode.childrenAfterAggFilter;\n sibling.childrenAfterSort = rootNode.childrenAfterSort;\n sibling.childrenMapped = rootNode.childrenMapped;\n sibling.allLeafChildren = rootNode.allLeafChildren;\n }\n };\n\n ClientSideNodeManager.prototype.updateRowData = function (rowDataTran, rowNodeOrder) {\n var rowNodeTransaction = {\n remove: [],\n update: [],\n add: []\n };\n var nodesToUnselect = [];\n this.executeRemove(rowDataTran, rowNodeTransaction, nodesToUnselect);\n this.executeUpdate(rowDataTran, rowNodeTransaction, nodesToUnselect);\n this.executeAdd(rowDataTran, rowNodeTransaction);\n this.updateSelection(nodesToUnselect);\n\n if (rowNodeOrder) {\n _.sortRowNodesByOrder(this.rootNode.allLeafChildren, rowNodeOrder);\n }\n\n return rowNodeTransaction;\n };\n\n ClientSideNodeManager.prototype.updateSelection = function (nodesToUnselect) {\n var selectionChanged = nodesToUnselect.length > 0;\n\n if (selectionChanged) {\n nodesToUnselect.forEach(function (rowNode) {\n rowNode.setSelected(false, false, true);\n });\n } // we do this regardless of nodes to unselect or not, as it's possible\n // a new node was inserted, so a parent that was previously selected (as all\n // children were selected) should not be tri-state (as new one unselected against\n // all other selected children).\n\n\n this.selectionService.updateGroupsFromChildrenSelections();\n\n if (selectionChanged) {\n var event_1 = {\n type: Events.EVENT_SELECTION_CHANGED\n };\n this.eventService.dispatchEvent(event_1);\n }\n };\n\n ClientSideNodeManager.prototype.executeAdd = function (rowDataTran, rowNodeTransaction) {\n var _this = this;\n\n var add = rowDataTran.add,\n addIndex = rowDataTran.addIndex;\n\n if (_.missingOrEmpty(add)) {\n return;\n } // create new row nodes for each data item\n\n\n var newNodes = add.map(function (item) {\n return _this.createNode(item, _this.rootNode, ClientSideNodeManager.TOP_LEVEL);\n }); // add new row nodes to the root nodes 'allLeafChildren'\n\n var useIndex = typeof addIndex === 'number' && addIndex >= 0;\n var nodesBeforeIndex;\n var nodesAfterIndex;\n\n if (useIndex) {\n // new rows are inserted in one go by concatenating them in between the existing rows at the desired index.\n // this is much faster than splicing them individually into 'allLeafChildren' when there are large inserts.\n // allLeafChildren can be out of order, so we loop over all the Nodes to find the correct index that\n // represents the position `addIndex` intended to be.\n var allLeafChildren_1 = this.rootNode.allLeafChildren; // if addIndex is 0, it should always be added at the start of the array\n // there is no need to verify the order of node by nodeIndex.\n\n var normalizedAddIndex = addIndex === 0 ? 0 : allLeafChildren_1.reduce(function (prevIdx, currNode, currIdx) {\n var _a;\n\n var rowIndex = currNode.rowIndex;\n var prevValueAtIndex = (_a = allLeafChildren_1[prevIdx]) === null || _a === void 0 ? void 0 : _a.rowIndex;\n var shouldUpdateIndex = rowIndex != null && prevValueAtIndex != null && rowIndex < addIndex && rowIndex > prevValueAtIndex;\n return shouldUpdateIndex ? currIdx : prevIdx;\n }, 0) + 1;\n nodesBeforeIndex = allLeafChildren_1.slice(0, normalizedAddIndex);\n nodesAfterIndex = allLeafChildren_1.slice(normalizedAddIndex, allLeafChildren_1.length);\n } else {\n nodesBeforeIndex = this.rootNode.allLeafChildren;\n nodesAfterIndex = [];\n }\n\n this.rootNode.allLeafChildren = __spread(nodesBeforeIndex, newNodes, nodesAfterIndex);\n\n if (this.rootNode.sibling) {\n this.rootNode.sibling.allLeafChildren = this.rootNode.allLeafChildren;\n } // add new row nodes to the transaction add items\n\n\n rowNodeTransaction.add = newNodes;\n };\n\n ClientSideNodeManager.prototype.executeRemove = function (rowDataTran, rowNodeTransaction, nodesToUnselect) {\n var _this = this;\n\n var remove = rowDataTran.remove;\n\n if (_.missingOrEmpty(remove)) {\n return;\n }\n\n var rowIdsRemoved = {};\n remove.forEach(function (item) {\n var rowNode = _this.lookupRowNode(item);\n\n if (!rowNode) {\n return;\n } // do delete - setting 'suppressFinishActions = true' to ensure EVENT_SELECTION_CHANGED is not raised for\n // each row node updated, instead it is raised once by the calling code if any selected nodes exist.\n\n\n if (rowNode.isSelected()) {\n nodesToUnselect.push(rowNode);\n } // so row renderer knows to fade row out (and not reposition it)\n\n\n rowNode.clearRowTopAndRowIndex(); // NOTE: were we could remove from allLeaveChildren, however _.removeFromArray() is expensive, especially\n // if called multiple times (eg deleting lots of rows) and if allLeafChildren is a large list\n\n rowIdsRemoved[rowNode.id] = true; // _.removeFromArray(this.rootNode.allLeafChildren, rowNode);\n\n delete _this.allNodesMap[rowNode.id];\n rowNodeTransaction.remove.push(rowNode);\n });\n this.rootNode.allLeafChildren = this.rootNode.allLeafChildren.filter(function (rowNode) {\n return !rowIdsRemoved[rowNode.id];\n });\n\n if (this.rootNode.sibling) {\n this.rootNode.sibling.allLeafChildren = this.rootNode.allLeafChildren;\n }\n };\n\n ClientSideNodeManager.prototype.executeUpdate = function (rowDataTran, rowNodeTransaction, nodesToUnselect) {\n var _this = this;\n\n var update = rowDataTran.update;\n\n if (_.missingOrEmpty(update)) {\n return;\n }\n\n update.forEach(function (item) {\n var rowNode = _this.lookupRowNode(item);\n\n if (!rowNode) {\n return;\n }\n\n rowNode.updateData(item);\n\n if (!rowNode.selectable && rowNode.isSelected()) {\n nodesToUnselect.push(rowNode);\n }\n\n _this.setMasterForRow(rowNode, item, ClientSideNodeManager.TOP_LEVEL, false);\n\n rowNodeTransaction.update.push(rowNode);\n });\n };\n\n ClientSideNodeManager.prototype.lookupRowNode = function (data) {\n var getRowIdFunc = this.gridOptionsWrapper.getRowIdFunc();\n var rowNode;\n\n if (getRowIdFunc) {\n // find rowNode using id\n var id = getRowIdFunc({\n data: data,\n level: 0\n });\n rowNode = this.allNodesMap[id];\n\n if (!rowNode) {\n console.error(\"AG Grid: could not find row id=\" + id + \", data item was not found for this id\");\n return null;\n }\n } else {\n // find rowNode using object references\n rowNode = this.rootNode.allLeafChildren.find(function (node) {\n return node.data === data;\n });\n\n if (!rowNode) {\n console.error(\"AG Grid: could not find data item as object was not found\", data);\n console.error(\"Consider using getRowId to help the Grid find matching row data\");\n return null;\n }\n }\n\n return rowNode || null;\n };\n\n ClientSideNodeManager.prototype.createNode = function (dataItem, parent, level) {\n var node = new RowNode(this.beans);\n node.group = false;\n this.setMasterForRow(node, dataItem, level, true);\n\n if (parent && !this.suppressParentsInRowNodes) {\n node.parent = parent;\n }\n\n node.level = level;\n node.setDataAndId(dataItem, this.nextId.toString());\n\n if (this.allNodesMap[node.id]) {\n console.warn(\"AG Grid: duplicate node id '\" + node.id + \"' detected from getRowId callback, this could cause issues in your grid.\");\n }\n\n this.allNodesMap[node.id] = node;\n this.nextId++;\n return node;\n };\n\n ClientSideNodeManager.prototype.setMasterForRow = function (rowNode, data, level, setExpanded) {\n if (this.doingTreeData) {\n rowNode.setMaster(false);\n\n if (setExpanded) {\n rowNode.expanded = false;\n }\n } else {\n // this is the default, for when doing grid data\n if (this.doingMasterDetail) {\n // if we are doing master detail, then the\n // default is that everything can be a Master Row.\n if (this.isRowMasterFunc) {\n rowNode.setMaster(this.isRowMasterFunc(data));\n } else {\n rowNode.setMaster(true);\n }\n } else {\n rowNode.setMaster(false);\n }\n\n if (setExpanded) {\n var rowGroupColumns = this.columnModel.getRowGroupColumns();\n var numRowGroupColumns = rowGroupColumns ? rowGroupColumns.length : 0; // need to take row group into account when determining level\n\n var masterRowLevel = level + numRowGroupColumns;\n rowNode.expanded = rowNode.master ? this.isExpanded(masterRowLevel) : false;\n }\n }\n };\n\n ClientSideNodeManager.prototype.isExpanded = function (level) {\n var expandByDefault = this.gridOptionsWrapper.getGroupDefaultExpanded();\n\n if (expandByDefault === -1) {\n return true;\n }\n\n return level < expandByDefault;\n };\n\n ClientSideNodeManager.TOP_LEVEL = 0;\n ClientSideNodeManager.ROOT_NODE_ID = 'ROOT_NODE_ID';\n return ClientSideNodeManager;\n}();\n\nvar __extends$c = undefined && undefined.__extends || function () {\n var _extendStatics173 = function extendStatics(d, b) {\n _extendStatics173 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics173(d, b);\n };\n\n return function (d, b) {\n _extendStatics173(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar RecursionType;\n\n(function (RecursionType) {\n RecursionType[RecursionType[\"Normal\"] = 0] = \"Normal\";\n RecursionType[RecursionType[\"AfterFilter\"] = 1] = \"AfterFilter\";\n RecursionType[RecursionType[\"AfterFilterAndSort\"] = 2] = \"AfterFilterAndSort\";\n RecursionType[RecursionType[\"PivotNodes\"] = 3] = \"PivotNodes\";\n})(RecursionType || (RecursionType = {}));\n\nvar ClientSideRowModel =\n/** @class */\nfunction (_super) {\n __extends$c(ClientSideRowModel, _super);\n\n function ClientSideRowModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.rowsToDisplay = []; // the rows mapped to rows to display\n\n return _this;\n }\n\n ClientSideRowModel.prototype.init = function () {\n var refreshEverythingFunc = this.refreshModel.bind(this, {\n step: ClientSideRowModelSteps.EVERYTHING\n });\n var animate = !this.gridOptionsWrapper.isSuppressAnimationFrame();\n var refreshEverythingAfterColsChangedFunc = this.refreshModel.bind(this, {\n step: ClientSideRowModelSteps.EVERYTHING,\n afterColumnsChanged: true,\n keepRenderedRows: true,\n animate: animate\n });\n this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, refreshEverythingAfterColsChangedFunc);\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, refreshEverythingFunc);\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_VALUE_CHANGED, this.onValueChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_CHANGED, this.refreshModel.bind(this, {\n step: ClientSideRowModelSteps.PIVOT\n }));\n this.addManagedListener(this.eventService, Events.EVENT_FILTER_CHANGED, this.onFilterChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_SORT_CHANGED, this.onSortChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, refreshEverythingFunc);\n var refreshMapListener = this.refreshModel.bind(this, {\n step: ClientSideRowModelSteps.MAP,\n keepRenderedRows: true,\n animate: animate\n });\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_GROUP_REMOVE_SINGLE_CHILDREN, refreshMapListener);\n this.addManagedListener(this.gridOptionsWrapper, GridOptionsWrapper.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN, refreshMapListener);\n this.rootNode = new RowNode(this.beans);\n this.nodeManager = new ClientSideNodeManager(this.rootNode, this.gridOptionsWrapper, this.eventService, this.columnModel, this.selectionService, this.beans);\n };\n\n ClientSideRowModel.prototype.start = function () {\n var rowData = this.gridOptionsWrapper.getRowData();\n\n if (rowData) {\n this.setRowData(rowData);\n }\n };\n\n ClientSideRowModel.prototype.ensureRowHeightsValid = function (startPixel, endPixel, startLimitIndex, endLimitIndex) {\n var atLeastOneChange;\n var res = false; // we do this multiple times as changing the row heights can also change the first and last rows,\n // so the first pass can make lots of rows smaller, which means the second pass we end up changing\n // more rows.\n\n do {\n atLeastOneChange = false;\n var rowAtStartPixel = this.getRowIndexAtPixel(startPixel);\n var rowAtEndPixel = this.getRowIndexAtPixel(endPixel); // keep check to current page if doing pagination\n\n var firstRow = Math.max(rowAtStartPixel, startLimitIndex);\n var lastRow = Math.min(rowAtEndPixel, endLimitIndex);\n\n for (var rowIndex = firstRow; rowIndex <= lastRow; rowIndex++) {\n var rowNode = this.getRow(rowIndex);\n\n if (rowNode.rowHeightEstimated) {\n var rowHeight = this.gridOptionsWrapper.getRowHeightForNode(rowNode);\n rowNode.setRowHeight(rowHeight.height);\n atLeastOneChange = true;\n res = true;\n }\n }\n\n if (atLeastOneChange) {\n this.setRowTopAndRowIndex();\n }\n } while (atLeastOneChange);\n\n return res;\n };\n\n ClientSideRowModel.prototype.setRowTopAndRowIndex = function () {\n var defaultRowHeight = this.gridOptionsWrapper.getDefaultRowHeight();\n var nextRowTop = 0; // mapping displayed rows is not needed for this method, however it's used in\n // clearRowTopAndRowIndex(), and given we are looping through this.rowsToDisplay here,\n // we create the map here for performance reasons, so we don't loop a second time\n // in clearRowTopAndRowIndex()\n\n var displayedRowsMapped = new Set(); // we don't estimate if doing fullHeight or autoHeight, as all rows get rendered all the time\n // with these two layouts.\n\n var allowEstimate = this.gridOptionsWrapper.getDomLayout() === Constants.DOM_LAYOUT_NORMAL;\n\n for (var i = 0; i < this.rowsToDisplay.length; i++) {\n var rowNode = this.rowsToDisplay[i];\n\n if (rowNode.id != null) {\n displayedRowsMapped.add(rowNode.id);\n }\n\n if (rowNode.rowHeight == null) {\n var rowHeight = this.gridOptionsWrapper.getRowHeightForNode(rowNode, allowEstimate, defaultRowHeight);\n rowNode.setRowHeight(rowHeight.height, rowHeight.estimated);\n }\n\n rowNode.setRowTop(nextRowTop);\n rowNode.setRowIndex(i);\n nextRowTop += rowNode.rowHeight;\n }\n\n return displayedRowsMapped;\n };\n\n ClientSideRowModel.prototype.clearRowTopAndRowIndex = function (changedPath, displayedRowsMapped) {\n var changedPathActive = changedPath.isActive();\n\n var clearIfNotDisplayed = function clearIfNotDisplayed(rowNode) {\n if (rowNode && rowNode.id != null && !displayedRowsMapped.has(rowNode.id)) {\n rowNode.clearRowTopAndRowIndex();\n }\n };\n\n var recurse = function recurse(rowNode) {\n clearIfNotDisplayed(rowNode);\n clearIfNotDisplayed(rowNode.detailNode);\n clearIfNotDisplayed(rowNode.sibling);\n\n if (rowNode.hasChildren()) {\n if (rowNode.childrenAfterGroup) {\n // if a changedPath is active, it means we are here because of a transaction update or\n // a change detection. neither of these impacts the open/closed state of groups. so if\n // a group is not open this time, it was not open last time. so we know all closed groups\n // already have their top positions cleared. so there is no need to traverse all the way\n // when changedPath is active and the rowNode is not expanded.\n var isRootNode = rowNode.level == -1; // we need to give special consideration for root node,\n // as expanded=undefined for root node\n\n var skipChildren = changedPathActive && !isRootNode && !rowNode.expanded;\n\n if (!skipChildren) {\n rowNode.childrenAfterGroup.forEach(recurse);\n }\n }\n }\n };\n\n recurse(this.rootNode);\n }; // returns false if row was moved, otherwise true\n\n\n ClientSideRowModel.prototype.ensureRowsAtPixel = function (rowNodes, pixel, increment) {\n var _this = this;\n\n if (increment === void 0) {\n increment = 0;\n }\n\n var indexAtPixelNow = this.getRowIndexAtPixel(pixel);\n var rowNodeAtPixelNow = this.getRow(indexAtPixelNow);\n var animate = !this.gridOptionsWrapper.isSuppressAnimationFrame();\n\n if (rowNodeAtPixelNow === rowNodes[0]) {\n return false;\n }\n\n rowNodes.forEach(function (rowNode) {\n _.removeFromArray(_this.rootNode.allLeafChildren, rowNode);\n });\n rowNodes.forEach(function (rowNode, idx) {\n _.insertIntoArray(_this.rootNode.allLeafChildren, rowNode, Math.max(indexAtPixelNow + increment, 0) + idx);\n });\n this.refreshModel({\n step: ClientSideRowModelSteps.EVERYTHING,\n keepRenderedRows: true,\n keepEditingRows: true,\n animate: animate\n });\n return true;\n };\n\n ClientSideRowModel.prototype.highlightRowAtPixel = function (rowNode, pixel) {\n var indexAtPixelNow = pixel != null ? this.getRowIndexAtPixel(pixel) : null;\n var rowNodeAtPixelNow = indexAtPixelNow != null ? this.getRow(indexAtPixelNow) : null;\n\n if (!rowNodeAtPixelNow || !rowNode || rowNodeAtPixelNow === rowNode || pixel == null) {\n if (this.lastHighlightedRow) {\n this.lastHighlightedRow.setHighlighted(null);\n this.lastHighlightedRow = null;\n }\n\n return;\n }\n\n var highlight = this.getHighlightPosition(pixel, rowNodeAtPixelNow);\n\n if (this.lastHighlightedRow && this.lastHighlightedRow !== rowNodeAtPixelNow) {\n this.lastHighlightedRow.setHighlighted(null);\n this.lastHighlightedRow = null;\n }\n\n rowNodeAtPixelNow.setHighlighted(highlight);\n this.lastHighlightedRow = rowNodeAtPixelNow;\n };\n\n ClientSideRowModel.prototype.getHighlightPosition = function (pixel, rowNode) {\n if (!rowNode) {\n var index = this.getRowIndexAtPixel(pixel);\n rowNode = this.getRow(index || 0);\n\n if (!rowNode) {\n return RowHighlightPosition.Below;\n }\n }\n\n var rowTop = rowNode.rowTop,\n rowHeight = rowNode.rowHeight;\n return pixel - rowTop < rowHeight / 2 ? RowHighlightPosition.Above : RowHighlightPosition.Below;\n };\n\n ClientSideRowModel.prototype.getLastHighlightedRowNode = function () {\n return this.lastHighlightedRow;\n };\n\n ClientSideRowModel.prototype.isLastRowIndexKnown = function () {\n return true;\n };\n\n ClientSideRowModel.prototype.getRowCount = function () {\n if (this.rowsToDisplay) {\n return this.rowsToDisplay.length;\n }\n\n return 0;\n };\n\n ClientSideRowModel.prototype.getTopLevelRowCount = function () {\n var showingRootNode = this.rowsToDisplay && this.rowsToDisplay[0] === this.rootNode;\n\n if (showingRootNode) {\n return 1;\n }\n\n var filteredChildren = this.rootNode.childrenAfterAggFilter;\n return filteredChildren ? filteredChildren.length : 0;\n };\n\n ClientSideRowModel.prototype.getTopLevelRowDisplayedIndex = function (topLevelIndex) {\n var showingRootNode = this.rowsToDisplay && this.rowsToDisplay[0] === this.rootNode;\n\n if (showingRootNode) {\n return topLevelIndex;\n }\n\n var rowNode = this.rootNode.childrenAfterSort[topLevelIndex];\n\n if (this.gridOptionsWrapper.isGroupHideOpenParents()) {\n // if hideOpenParents, and this row open, then this row is now displayed at this index, first child is\n while (rowNode.expanded && rowNode.childrenAfterSort && rowNode.childrenAfterSort.length > 0) {\n rowNode = rowNode.childrenAfterSort[0];\n }\n }\n\n return rowNode.rowIndex;\n };\n\n ClientSideRowModel.prototype.getRowBounds = function (index) {\n if (_.missing(this.rowsToDisplay)) {\n return null;\n }\n\n var rowNode = this.rowsToDisplay[index];\n\n if (rowNode) {\n return {\n rowTop: rowNode.rowTop,\n rowHeight: rowNode.rowHeight\n };\n }\n\n return null;\n };\n\n ClientSideRowModel.prototype.onRowGroupOpened = function () {\n var animate = this.gridOptionsWrapper.isAnimateRows();\n this.refreshModel({\n step: ClientSideRowModelSteps.MAP,\n keepRenderedRows: true,\n animate: animate\n });\n };\n\n ClientSideRowModel.prototype.onFilterChanged = function (event) {\n if (event.afterDataChange) {\n return;\n }\n\n var animate = this.gridOptionsWrapper.isAnimateRows();\n var primaryOrQuickFilterChanged = event.columns.length === 0 || event.columns.some(function (col) {\n return col.isPrimary();\n });\n var step = primaryOrQuickFilterChanged ? ClientSideRowModelSteps.FILTER : ClientSideRowModelSteps.FILTER_AGGREGATES;\n this.refreshModel({\n step: step,\n keepRenderedRows: true,\n animate: animate\n });\n };\n\n ClientSideRowModel.prototype.onSortChanged = function () {\n var animate = this.gridOptionsWrapper.isAnimateRows();\n this.refreshModel({\n step: ClientSideRowModelSteps.SORT,\n keepRenderedRows: true,\n animate: animate,\n keepEditingRows: true\n });\n };\n\n ClientSideRowModel.prototype.getType = function () {\n return Constants.ROW_MODEL_TYPE_CLIENT_SIDE;\n };\n\n ClientSideRowModel.prototype.onValueChanged = function () {\n if (this.columnModel.isPivotActive()) {\n this.refreshModel({\n step: ClientSideRowModelSteps.PIVOT\n });\n } else {\n this.refreshModel({\n step: ClientSideRowModelSteps.AGGREGATE\n });\n }\n };\n\n ClientSideRowModel.prototype.createChangePath = function (rowNodeTransactions) {\n // for updates, if the row is updated at all, then we re-calc all the values\n // in that row. we could compare each value to each old value, however if we\n // did this, we would be calling the valueService twice, once on the old value\n // and once on the new value. so it's less valueGetter calls if we just assume\n // each column is different. that way the changedPath is used so that only\n // the impacted parent rows are recalculated, parents who's children have\n // not changed are not impacted.\n var noTransactions = _.missingOrEmpty(rowNodeTransactions);\n\n var changedPath = new ChangedPath(false, this.rootNode);\n\n if (noTransactions || this.gridOptionsWrapper.isTreeData()) {\n changedPath.setInactive();\n }\n\n return changedPath;\n };\n\n ClientSideRowModel.prototype.isSuppressModelUpdateAfterUpdateTransaction = function (params) {\n if (!this.gridOptionsWrapper.isSuppressModelUpdateAfterUpdateTransaction()) {\n return false;\n } // return true if we are only doing update transactions\n\n\n if (params.rowNodeTransactions == null) {\n return false;\n }\n\n var transWithAddsOrDeletes = params.rowNodeTransactions.filter(function (tx) {\n return tx.add != null && tx.add.length > 0 || tx.remove != null && tx.remove.length > 0;\n });\n var transactionsContainUpdatesOnly = transWithAddsOrDeletes == null || transWithAddsOrDeletes.length == 0;\n return transactionsContainUpdatesOnly;\n };\n\n ClientSideRowModel.prototype.refreshModel = function (params) {\n if (this.isSuppressModelUpdateAfterUpdateTransaction(params)) {\n return;\n } // this goes through the pipeline of stages. what's in my head is similar\n // to the diagram on this page:\n // http://commons.apache.org/sandbox/commons-pipeline/pipeline_basics.html\n // however we want to keep the results of each stage, hence we manually call\n // each step rather than have them chain each other.\n // fallthrough in below switch is on purpose,\n // eg if STEP_FILTER, then all steps below this\n // step get done\n // let start: number;\n // console.log('======= start =======');\n\n\n var changedPath = this.createChangePath(params.rowNodeTransactions);\n\n switch (params.step) {\n case ClientSideRowModelSteps.EVERYTHING:\n this.doRowGrouping(params.groupState, params.rowNodeTransactions, params.rowNodeOrder, changedPath, !!params.afterColumnsChanged);\n\n case ClientSideRowModelSteps.FILTER:\n this.doFilter(changedPath);\n\n case ClientSideRowModelSteps.PIVOT:\n this.doPivot(changedPath);\n\n case ClientSideRowModelSteps.AGGREGATE:\n // depends on agg fields\n this.doAggregate(changedPath);\n\n case ClientSideRowModelSteps.FILTER_AGGREGATES:\n this.doFilterAggregates(changedPath);\n\n case ClientSideRowModelSteps.SORT:\n this.doSort(params.rowNodeTransactions, changedPath);\n\n case ClientSideRowModelSteps.MAP:\n this.doRowsToDisplay();\n } // set all row tops to null, then set row tops on all visible rows. if we don't\n // do this, then the algorithm below only sets row tops, old row tops from old rows\n // will still lie around\n\n\n var displayedNodesMapped = this.setRowTopAndRowIndex();\n this.clearRowTopAndRowIndex(changedPath, displayedNodesMapped);\n var event = {\n type: Events.EVENT_MODEL_UPDATED,\n animate: params.animate,\n keepRenderedRows: params.keepRenderedRows,\n newData: params.newData,\n newPage: false,\n keepUndoRedoStack: params.keepUndoRedoStack\n };\n this.eventService.dispatchEvent(event);\n };\n\n ClientSideRowModel.prototype.isEmpty = function () {\n var rowsMissing = _.missing(this.rootNode.allLeafChildren) || this.rootNode.allLeafChildren.length === 0;\n return _.missing(this.rootNode) || rowsMissing || !this.columnModel.isReady();\n };\n\n ClientSideRowModel.prototype.isRowsToRender = function () {\n return _.exists(this.rowsToDisplay) && this.rowsToDisplay.length > 0;\n };\n\n ClientSideRowModel.prototype.getNodesInRangeForSelection = function (firstInRange, lastInRange) {\n // if lastSelectedNode is missing, we start at the first row\n var firstRowHit = !lastInRange;\n var lastRowHit = false;\n var lastRow;\n var result = [];\n var groupsSelectChildren = this.gridOptionsWrapper.isGroupSelectsChildren();\n this.forEachNodeAfterFilterAndSort(function (rowNode) {\n var lookingForLastRow = firstRowHit && !lastRowHit; // check if we need to flip the select switch\n\n if (!firstRowHit) {\n if (rowNode === lastInRange || rowNode === firstInRange) {\n firstRowHit = true;\n }\n }\n\n var skipThisGroupNode = rowNode.group && groupsSelectChildren;\n\n if (!skipThisGroupNode) {\n var inRange = firstRowHit && !lastRowHit;\n var childOfLastRow = rowNode.isParentOfNode(lastRow);\n\n if (inRange || childOfLastRow) {\n result.push(rowNode);\n }\n }\n\n if (lookingForLastRow) {\n if (rowNode === lastInRange || rowNode === firstInRange) {\n lastRowHit = true;\n\n if (rowNode === lastInRange) {\n lastRow = lastInRange;\n } else {\n lastRow = firstInRange;\n }\n }\n }\n });\n return result;\n };\n\n ClientSideRowModel.prototype.setDatasource = function (datasource) {\n console.error('AG Grid: should never call setDatasource on clientSideRowController');\n };\n\n ClientSideRowModel.prototype.getTopLevelNodes = function () {\n return this.rootNode ? this.rootNode.childrenAfterGroup : null;\n };\n\n ClientSideRowModel.prototype.getRootNode = function () {\n return this.rootNode;\n };\n\n ClientSideRowModel.prototype.getRow = function (index) {\n return this.rowsToDisplay[index];\n };\n\n ClientSideRowModel.prototype.isRowPresent = function (rowNode) {\n return this.rowsToDisplay.indexOf(rowNode) >= 0;\n };\n\n ClientSideRowModel.prototype.getRowIndexAtPixel = function (pixelToMatch) {\n if (this.isEmpty() || this.rowsToDisplay.length === 0) {\n return -1;\n } // do binary search of tree\n // http://oli.me.uk/2013/06/08/searching-javascript-arrays-with-a-binary-search/\n\n\n var bottomPointer = 0;\n var topPointer = this.rowsToDisplay.length - 1; // quick check, if the pixel is out of bounds, then return last row\n\n if (pixelToMatch <= 0) {\n // if pixel is less than or equal zero, it's always the first row\n return 0;\n }\n\n var lastNode = _.last(this.rowsToDisplay);\n\n if (lastNode.rowTop <= pixelToMatch) {\n return this.rowsToDisplay.length - 1;\n }\n\n var oldBottomPointer = -1;\n var oldTopPointer = -1;\n\n while (true) {\n var midPointer = Math.floor((bottomPointer + topPointer) / 2);\n var currentRowNode = this.rowsToDisplay[midPointer];\n\n if (this.isRowInPixel(currentRowNode, pixelToMatch)) {\n return midPointer;\n }\n\n if (currentRowNode.rowTop < pixelToMatch) {\n bottomPointer = midPointer + 1;\n } else if (currentRowNode.rowTop > pixelToMatch) {\n topPointer = midPointer - 1;\n } // infinite loops happen when there is space between rows. this can happen\n // when Auto Height is active, cos we re-calculate row tops asyncronously\n // when row heights change, which can temporarly result in gaps between rows.\n\n\n var caughtInInfiniteLoop = oldBottomPointer === bottomPointer && oldTopPointer === topPointer;\n\n if (caughtInInfiniteLoop) {\n return midPointer;\n }\n\n oldBottomPointer = bottomPointer;\n oldTopPointer = topPointer;\n }\n };\n\n ClientSideRowModel.prototype.isRowInPixel = function (rowNode, pixelToMatch) {\n var topPixel = rowNode.rowTop;\n var bottomPixel = rowNode.rowTop + rowNode.rowHeight;\n var pixelInRow = topPixel <= pixelToMatch && bottomPixel > pixelToMatch;\n return pixelInRow;\n };\n\n ClientSideRowModel.prototype.forEachLeafNode = function (callback) {\n if (this.rootNode.allLeafChildren) {\n this.rootNode.allLeafChildren.forEach(function (rowNode, index) {\n return callback(rowNode, index);\n });\n }\n };\n\n ClientSideRowModel.prototype.forEachNode = function (callback) {\n this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup, callback, RecursionType.Normal, 0);\n };\n\n ClientSideRowModel.prototype.forEachNodeAfterFilter = function (callback) {\n this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterAggFilter, callback, RecursionType.AfterFilter, 0);\n };\n\n ClientSideRowModel.prototype.forEachNodeAfterFilterAndSort = function (callback) {\n this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort, callback, RecursionType.AfterFilterAndSort, 0);\n };\n\n ClientSideRowModel.prototype.forEachPivotNode = function (callback) {\n this.recursivelyWalkNodesAndCallback([this.rootNode], callback, RecursionType.PivotNodes, 0);\n }; // iterates through each item in memory, and calls the callback function\n // nodes - the rowNodes to traverse\n // callback - the user provided callback\n // recursion type - need this to know what child nodes to recurse, eg if looking at all nodes, or filtered notes etc\n // index - works similar to the index in forEach in javascript's array function\n\n\n ClientSideRowModel.prototype.recursivelyWalkNodesAndCallback = function (nodes, callback, recursionType, index) {\n if (!nodes) {\n return index;\n }\n\n for (var i = 0; i < nodes.length; i++) {\n var node = nodes[i];\n callback(node, index++); // go to the next level if it is a group\n\n if (node.hasChildren()) {\n // depending on the recursion type, we pick a difference set of children\n var nodeChildren = null;\n\n switch (recursionType) {\n case RecursionType.Normal:\n nodeChildren = node.childrenAfterGroup;\n break;\n\n case RecursionType.AfterFilter:\n nodeChildren = node.childrenAfterAggFilter;\n break;\n\n case RecursionType.AfterFilterAndSort:\n nodeChildren = node.childrenAfterSort;\n break;\n\n case RecursionType.PivotNodes:\n // for pivot, we don't go below leafGroup levels\n nodeChildren = !node.leafGroup ? node.childrenAfterSort : null;\n break;\n }\n\n if (nodeChildren) {\n index = this.recursivelyWalkNodesAndCallback(nodeChildren, callback, recursionType, index);\n }\n }\n }\n\n return index;\n }; // it's possible to recompute the aggregate without doing the other parts\n // + gridApi.recomputeAggregates()\n\n\n ClientSideRowModel.prototype.doAggregate = function (changedPath) {\n if (this.aggregationStage) {\n this.aggregationStage.execute({\n rowNode: this.rootNode,\n changedPath: changedPath\n });\n }\n };\n\n ClientSideRowModel.prototype.doFilterAggregates = function (changedPath) {\n if (this.filterAggregatesStage) {\n this.filterAggregatesStage.execute({\n rowNode: this.rootNode,\n changedPath: changedPath\n });\n } else {\n // If filterAggregatesStage is undefined, then so is the grouping stage, so all children should be on the rootNode.\n this.rootNode.childrenAfterAggFilter = this.rootNode.childrenAfterFilter;\n }\n }; // + gridApi.expandAll()\n // + gridApi.collapseAll()\n\n\n ClientSideRowModel.prototype.expandOrCollapseAll = function (expand) {\n var usingTreeData = this.gridOptionsWrapper.isTreeData();\n var usingPivotMode = this.columnModel.isPivotActive();\n\n var recursiveExpandOrCollapse = function recursiveExpandOrCollapse(rowNodes) {\n if (!rowNodes) {\n return;\n }\n\n rowNodes.forEach(function (rowNode) {\n var actionRow = function actionRow() {\n rowNode.expanded = expand;\n recursiveExpandOrCollapse(rowNode.childrenAfterGroup);\n };\n\n if (usingTreeData) {\n var hasChildren = _.exists(rowNode.childrenAfterGroup);\n\n if (hasChildren) {\n actionRow();\n }\n\n return;\n }\n\n if (usingPivotMode) {\n var notLeafGroup = !rowNode.leafGroup;\n\n if (notLeafGroup) {\n actionRow();\n }\n\n return;\n }\n\n var isRowGroup = rowNode.group;\n\n if (isRowGroup) {\n actionRow();\n }\n });\n };\n\n if (this.rootNode) {\n recursiveExpandOrCollapse(this.rootNode.childrenAfterGroup);\n }\n\n this.refreshModel({\n step: ClientSideRowModelSteps.MAP\n });\n var eventSource = expand ? 'expandAll' : 'collapseAll';\n var event = {\n type: Events.EVENT_EXPAND_COLLAPSE_ALL,\n source: eventSource\n };\n this.eventService.dispatchEvent(event);\n };\n\n ClientSideRowModel.prototype.doSort = function (rowNodeTransactions, changedPath) {\n this.sortStage.execute({\n rowNode: this.rootNode,\n rowNodeTransactions: rowNodeTransactions,\n changedPath: changedPath\n });\n };\n\n ClientSideRowModel.prototype.doRowGrouping = function (groupState, rowNodeTransactions, rowNodeOrder, changedPath, afterColumnsChanged) {\n if (this.groupStage) {\n if (rowNodeTransactions) {\n this.groupStage.execute({\n rowNode: this.rootNode,\n rowNodeTransactions: rowNodeTransactions,\n rowNodeOrder: rowNodeOrder,\n changedPath: changedPath\n });\n } else {\n this.groupStage.execute({\n rowNode: this.rootNode,\n changedPath: changedPath,\n afterColumnsChanged: afterColumnsChanged\n }); // set open/closed state on groups\n\n this.restoreGroupState(groupState);\n }\n\n if (this.gridOptionsWrapper.isGroupSelectsChildren()) {\n this.selectionService.updateGroupsFromChildrenSelections(changedPath);\n }\n } else {\n this.rootNode.childrenAfterGroup = this.rootNode.allLeafChildren;\n\n if (this.rootNode.sibling) {\n this.rootNode.sibling.childrenAfterGroup = this.rootNode.childrenAfterGroup;\n }\n\n this.rootNode.updateHasChildren();\n }\n };\n\n ClientSideRowModel.prototype.restoreGroupState = function (groupState) {\n if (!groupState) {\n return;\n }\n\n _.traverseNodesWithKey(this.rootNode.childrenAfterGroup, function (node, key) {\n // if the group was open last time, then open it this time. however\n // if was not open last time, then don't touch the group, so the 'groupDefaultExpanded'\n // setting will take effect.\n if (typeof groupState[key] === 'boolean') {\n node.expanded = groupState[key];\n }\n });\n };\n\n ClientSideRowModel.prototype.doFilter = function (changedPath) {\n this.filterStage.execute({\n rowNode: this.rootNode,\n changedPath: changedPath\n });\n };\n\n ClientSideRowModel.prototype.doPivot = function (changedPath) {\n if (this.pivotStage) {\n this.pivotStage.execute({\n rowNode: this.rootNode,\n changedPath: changedPath\n });\n }\n };\n\n ClientSideRowModel.prototype.getGroupState = function () {\n if (!this.rootNode.childrenAfterGroup || !this.gridOptionsWrapper.isRememberGroupStateWhenNewData()) {\n return null;\n }\n\n var result = {};\n\n _.traverseNodesWithKey(this.rootNode.childrenAfterGroup, function (node, key) {\n return result[key] = node.expanded;\n });\n\n return result;\n };\n\n ClientSideRowModel.prototype.getCopyOfNodesMap = function () {\n return this.nodeManager.getCopyOfNodesMap();\n };\n\n ClientSideRowModel.prototype.getRowNode = function (id) {\n // although id is typed a string, this could be called by the user, and they could have passed a number\n var idIsGroup = typeof id == 'string' && id.indexOf(RowNode.ID_PREFIX_ROW_GROUP) == 0;\n\n if (idIsGroup) {\n // only one users complained about getRowNode not working for groups, after years of\n // this working for normal rows. so have done quick implementation. if users complain\n // about performance, then GroupStage should store / manage created groups in a map,\n // which is a chunk of work.\n var res_1 = undefined;\n this.forEachNode(function (node) {\n if (node.id === id) {\n res_1 = node;\n }\n });\n return res_1;\n }\n\n return this.nodeManager.getRowNode(id);\n }; // rows: the rows to put into the model\n\n\n ClientSideRowModel.prototype.setRowData = function (rowData) {\n // no need to invalidate cache, as the cache is stored on the rowNode,\n // so new rowNodes means the cache is wiped anyway.\n // remember group state, so we can expand groups that should be expanded\n var groupState = this.getGroupState();\n this.nodeManager.setRowData(rowData); // - clears selection\n\n this.selectionService.reset(); // - updates filters\n\n this.filterManager.onNewRowsLoaded('rowDataUpdated'); // this event kicks off:\n // - shows 'no rows' overlay if needed\n\n var rowDataUpdatedEvent = {\n type: Events.EVENT_ROW_DATA_UPDATED\n };\n this.eventService.dispatchEvent(rowDataUpdatedEvent);\n this.refreshModel({\n step: ClientSideRowModelSteps.EVERYTHING,\n groupState: groupState,\n newData: true\n });\n };\n\n ClientSideRowModel.prototype.batchUpdateRowData = function (rowDataTransaction, callback) {\n var _this = this;\n\n if (this.applyAsyncTransactionsTimeout == null) {\n this.rowDataTransactionBatch = [];\n var waitMillis = this.gridOptionsWrapper.getAsyncTransactionWaitMillis();\n this.applyAsyncTransactionsTimeout = window.setTimeout(function () {\n _this.executeBatchUpdateRowData();\n }, waitMillis);\n }\n\n this.rowDataTransactionBatch.push({\n rowDataTransaction: rowDataTransaction,\n callback: callback\n });\n };\n\n ClientSideRowModel.prototype.flushAsyncTransactions = function () {\n if (this.applyAsyncTransactionsTimeout != null) {\n clearTimeout(this.applyAsyncTransactionsTimeout);\n this.executeBatchUpdateRowData();\n }\n };\n\n ClientSideRowModel.prototype.executeBatchUpdateRowData = function () {\n var _this = this;\n\n this.valueCache.onDataChanged();\n var callbackFuncsBound = [];\n var rowNodeTrans = []; // The rowGroup stage uses rowNodeOrder if order was provided. if we didn't pass 'true' to\n // commonUpdateRowData, using addIndex would have no effect when grouping.\n\n var forceRowNodeOrder = false;\n\n if (this.rowDataTransactionBatch) {\n this.rowDataTransactionBatch.forEach(function (tranItem) {\n var rowNodeTran = _this.nodeManager.updateRowData(tranItem.rowDataTransaction, undefined);\n\n rowNodeTrans.push(rowNodeTran);\n\n if (tranItem.callback) {\n callbackFuncsBound.push(tranItem.callback.bind(null, rowNodeTran));\n }\n\n if (typeof tranItem.rowDataTransaction.addIndex === 'number') {\n forceRowNodeOrder = true;\n }\n });\n }\n\n this.commonUpdateRowData(rowNodeTrans, undefined, forceRowNodeOrder); // do callbacks in next VM turn so it's async\n\n if (callbackFuncsBound.length > 0) {\n window.setTimeout(function () {\n callbackFuncsBound.forEach(function (func) {\n return func();\n });\n }, 0);\n }\n\n if (rowNodeTrans.length > 0) {\n var event_1 = {\n type: Events.EVENT_ASYNC_TRANSACTIONS_FLUSHED,\n results: rowNodeTrans\n };\n this.eventService.dispatchEvent(event_1);\n }\n\n this.rowDataTransactionBatch = null;\n this.applyAsyncTransactionsTimeout = undefined;\n };\n\n ClientSideRowModel.prototype.updateRowData = function (rowDataTran, rowNodeOrder) {\n this.valueCache.onDataChanged();\n var rowNodeTran = this.nodeManager.updateRowData(rowDataTran, rowNodeOrder); // if doing immutableData, addIndex is never present. however if doing standard transaction, and user\n // provided addIndex, then this is used in updateRowData. However if doing Enterprise, then the rowGroup\n // stage also uses the\n\n var forceRowNodeOrder = typeof rowDataTran.addIndex === 'number';\n this.commonUpdateRowData([rowNodeTran], rowNodeOrder, forceRowNodeOrder);\n return rowNodeTran;\n };\n\n ClientSideRowModel.prototype.createRowNodeOrder = function () {\n var suppressSortOrder = this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder();\n\n if (suppressSortOrder) {\n return;\n }\n\n var orderMap = {};\n\n if (this.rootNode && this.rootNode.allLeafChildren) {\n for (var index = 0; index < this.rootNode.allLeafChildren.length; index++) {\n var node = this.rootNode.allLeafChildren[index];\n orderMap[node.id] = index;\n }\n }\n\n return orderMap;\n }; // common to updateRowData and batchUpdateRowData\n\n\n ClientSideRowModel.prototype.commonUpdateRowData = function (rowNodeTrans, rowNodeOrder, forceRowNodeOrder) {\n var animate = !this.gridOptionsWrapper.isSuppressAnimationFrame();\n\n if (forceRowNodeOrder) {\n rowNodeOrder = this.createRowNodeOrder();\n }\n\n this.refreshModel({\n step: ClientSideRowModelSteps.EVERYTHING,\n rowNodeTransactions: rowNodeTrans,\n rowNodeOrder: rowNodeOrder,\n keepRenderedRows: true,\n keepEditingRows: true,\n animate: animate\n }); // - updates filters\n\n this.filterManager.onNewRowsLoaded('rowDataUpdated');\n var event = {\n type: Events.EVENT_ROW_DATA_UPDATED\n };\n this.eventService.dispatchEvent(event);\n };\n\n ClientSideRowModel.prototype.doRowsToDisplay = function () {\n this.rowsToDisplay = this.flattenStage.execute({\n rowNode: this.rootNode\n });\n };\n\n ClientSideRowModel.prototype.onRowHeightChanged = function () {\n this.refreshModel({\n step: ClientSideRowModelSteps.MAP,\n keepRenderedRows: true,\n keepEditingRows: true,\n keepUndoRedoStack: true\n });\n };\n\n ClientSideRowModel.prototype.resetRowHeights = function () {\n var atLeastOne = false;\n this.forEachNode(function (rowNode) {\n rowNode.setRowHeight(rowNode.rowHeight, true); // we keep the height each row is at, however we set estimated=true rather than clear the height.\n // this means the grid will not reset the row heights back to defaults, rather it will re-calc\n // the height for each row as the row is displayed. otherwise the scroll will jump when heights are reset.\n\n var detailNode = rowNode.detailNode;\n\n if (detailNode) {\n detailNode.setRowHeight(detailNode.rowHeight, true);\n }\n\n atLeastOne = true;\n });\n\n if (atLeastOne) {\n this.onRowHeightChanged();\n }\n };\n\n __decorate$b([Autowired('columnModel')], ClientSideRowModel.prototype, \"columnModel\", void 0);\n\n __decorate$b([Autowired('selectionService')], ClientSideRowModel.prototype, \"selectionService\", void 0);\n\n __decorate$b([Autowired('filterManager')], ClientSideRowModel.prototype, \"filterManager\", void 0);\n\n __decorate$b([Autowired('valueCache')], ClientSideRowModel.prototype, \"valueCache\", void 0);\n\n __decorate$b([Autowired('beans')], ClientSideRowModel.prototype, \"beans\", void 0);\n\n __decorate$b([Autowired('filterStage')], ClientSideRowModel.prototype, \"filterStage\", void 0);\n\n __decorate$b([Autowired('sortStage')], ClientSideRowModel.prototype, \"sortStage\", void 0);\n\n __decorate$b([Autowired('flattenStage')], ClientSideRowModel.prototype, \"flattenStage\", void 0);\n\n __decorate$b([Optional('groupStage')], ClientSideRowModel.prototype, \"groupStage\", void 0);\n\n __decorate$b([Optional('aggregationStage')], ClientSideRowModel.prototype, \"aggregationStage\", void 0);\n\n __decorate$b([Optional('pivotStage')], ClientSideRowModel.prototype, \"pivotStage\", void 0);\n\n __decorate$b([Optional('filterAggregatesStage')], ClientSideRowModel.prototype, \"filterAggregatesStage\", void 0);\n\n __decorate$b([PostConstruct], ClientSideRowModel.prototype, \"init\", null);\n\n ClientSideRowModel = __decorate$b([Bean('rowModel')], ClientSideRowModel);\n return ClientSideRowModel;\n}(BeanStub);\n\nvar __extends$b = undefined && undefined.__extends || function () {\n var _extendStatics174 = function extendStatics(d, b) {\n _extendStatics174 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics174(d, b);\n };\n\n return function (d, b) {\n _extendStatics174(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar FilterStage =\n/** @class */\nfunction (_super) {\n __extends$b(FilterStage, _super);\n\n function FilterStage() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n FilterStage.prototype.execute = function (params) {\n var changedPath = params.changedPath;\n this.filterService.filter(changedPath);\n };\n\n __decorate$a([Autowired('filterService')], FilterStage.prototype, \"filterService\", void 0);\n\n FilterStage = __decorate$a([Bean('filterStage')], FilterStage);\n return FilterStage;\n}(BeanStub);\n\nvar __extends$a = undefined && undefined.__extends || function () {\n var _extendStatics175 = function extendStatics(d, b) {\n _extendStatics175 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics175(d, b);\n };\n\n return function (d, b) {\n _extendStatics175(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SortStage =\n/** @class */\nfunction (_super) {\n __extends$a(SortStage, _super);\n\n function SortStage() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n SortStage.prototype.execute = function (params) {\n var _this = this;\n\n var sortOptions = this.sortController.getSortOptions();\n var sortActive = _.exists(sortOptions) && sortOptions.length > 0;\n var deltaSort = sortActive && _.exists(params.rowNodeTransactions) // in time we can remove this check, so that delta sort is always\n // on if transactions are present. it's off for now so that we can\n // selectively turn it on and test it with some select users before\n // rolling out to everyone.\n && this.gridOptionsWrapper.isDeltaSort();\n var sortContainsGroupColumns = sortOptions.some(function (opt) {\n return !!_this.columnModel.getGroupDisplayColumnForGroup(opt.column.getId());\n });\n this.sortService.sort(sortOptions, sortActive, deltaSort, params.rowNodeTransactions, params.changedPath, sortContainsGroupColumns);\n };\n\n __decorate$9([Autowired('sortService')], SortStage.prototype, \"sortService\", void 0);\n\n __decorate$9([Autowired('sortController')], SortStage.prototype, \"sortController\", void 0);\n\n __decorate$9([Autowired('columnModel')], SortStage.prototype, \"columnModel\", void 0);\n\n SortStage = __decorate$9([Bean('sortStage')], SortStage);\n return SortStage;\n}(BeanStub);\n\nvar __extends$9 = undefined && undefined.__extends || function () {\n var _extendStatics176 = function extendStatics(d, b) {\n _extendStatics176 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics176(d, b);\n };\n\n return function (d, b) {\n _extendStatics176(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar FlattenStage =\n/** @class */\nfunction (_super) {\n __extends$9(FlattenStage, _super);\n\n function FlattenStage() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n FlattenStage.prototype.execute = function (params) {\n var rootNode = params.rowNode; // even if not doing grouping, we do the mapping, as the client might\n // of passed in data that already has a grouping in it somewhere\n\n var result = []; // putting value into a wrapper so it's passed by reference\n\n var nextRowTop = {\n value: 0\n };\n var skipLeafNodes = this.columnModel.isPivotMode(); // if we are reducing, and not grouping, then we want to show the root node, as that\n // is where the pivot values are\n\n var showRootNode = skipLeafNodes && rootNode.leafGroup;\n var topList = showRootNode ? [rootNode] : rootNode.childrenAfterSort;\n this.recursivelyAddToRowsToDisplay(topList, result, nextRowTop, skipLeafNodes, 0); // we do not want the footer total if the gris is empty\n\n var atLeastOneRowPresent = result.length > 0;\n var includeGroupTotalFooter = !showRootNode // don't show total footer when showRootNode is true (i.e. in pivot mode and no groups)\n && atLeastOneRowPresent && this.gridOptionsWrapper.isGroupIncludeTotalFooter();\n\n if (includeGroupTotalFooter) {\n this.ensureFooterNodeExists(rootNode);\n this.addRowNodeToRowsToDisplay(rootNode.sibling, result, nextRowTop, 0);\n }\n\n return result;\n };\n\n FlattenStage.prototype.recursivelyAddToRowsToDisplay = function (rowsToFlatten, result, nextRowTop, skipLeafNodes, uiLevel) {\n if (_.missingOrEmpty(rowsToFlatten)) {\n return;\n }\n\n var hideOpenParents = this.gridOptionsWrapper.isGroupHideOpenParents(); // these two are mutually exclusive, so if first set, we don't set the second\n\n var groupRemoveSingleChildren = this.gridOptionsWrapper.isGroupRemoveSingleChildren();\n var groupRemoveLowestSingleChildren = !groupRemoveSingleChildren && this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren();\n\n for (var i = 0; i < rowsToFlatten.length; i++) {\n var rowNode = rowsToFlatten[i]; // check all these cases, for working out if this row should be included in the final mapped list\n\n var isParent = rowNode.hasChildren();\n var isSkippedLeafNode = skipLeafNodes && !isParent;\n var isRemovedSingleChildrenGroup = groupRemoveSingleChildren && isParent && rowNode.childrenAfterGroup.length === 1;\n var isRemovedLowestSingleChildrenGroup = groupRemoveLowestSingleChildren && isParent && rowNode.leafGroup && rowNode.childrenAfterGroup.length === 1; // hide open parents means when group is open, we don't show it. we also need to make sure the\n // group is expandable in the first place (as leaf groups are not expandable if pivot mode is on).\n // the UI will never allow expanding leaf groups, however the user might via the API (or menu option 'expand all')\n\n var neverAllowToExpand = skipLeafNodes && rowNode.leafGroup;\n var isHiddenOpenParent = hideOpenParents && rowNode.expanded && !rowNode.master && !neverAllowToExpand;\n var thisRowShouldBeRendered = !isSkippedLeafNode && !isHiddenOpenParent && !isRemovedSingleChildrenGroup && !isRemovedLowestSingleChildrenGroup;\n\n if (thisRowShouldBeRendered) {\n this.addRowNodeToRowsToDisplay(rowNode, result, nextRowTop, uiLevel);\n } // if we are pivoting, we never map below the leaf group\n\n\n if (skipLeafNodes && rowNode.leafGroup) {\n continue;\n }\n\n if (isParent) {\n var excludedParent = isRemovedSingleChildrenGroup || isRemovedLowestSingleChildrenGroup; // we traverse the group if it is expended, however we always traverse if the parent node\n // was removed (as the group will never be opened if it is not displayed, we show the children instead)\n\n if (rowNode.expanded || excludedParent) {\n // if the parent was excluded, then ui level is that of the parent\n var uiLevelForChildren = excludedParent ? uiLevel : uiLevel + 1;\n this.recursivelyAddToRowsToDisplay(rowNode.childrenAfterSort, result, nextRowTop, skipLeafNodes, uiLevelForChildren); // put a footer in if user is looking for it\n\n if (this.gridOptionsWrapper.isGroupIncludeFooter()) {\n this.ensureFooterNodeExists(rowNode);\n this.addRowNodeToRowsToDisplay(rowNode.sibling, result, nextRowTop, uiLevel);\n }\n }\n } else if (rowNode.master && rowNode.expanded) {\n var detailNode = this.createDetailNode(rowNode);\n this.addRowNodeToRowsToDisplay(detailNode, result, nextRowTop, uiLevel);\n }\n }\n }; // duplicated method, it's also in floatingRowModel\n\n\n FlattenStage.prototype.addRowNodeToRowsToDisplay = function (rowNode, result, nextRowTop, uiLevel) {\n var isGroupMultiAutoColumn = this.gridOptionsWrapper.isGroupMultiAutoColumn();\n result.push(rowNode);\n rowNode.setUiLevel(isGroupMultiAutoColumn ? 0 : uiLevel);\n };\n\n FlattenStage.prototype.ensureFooterNodeExists = function (groupNode) {\n // only create footer node once, otherwise we have daemons and\n // the animate screws up with the daemons hanging around\n if (_.exists(groupNode.sibling)) {\n return;\n }\n\n var footerNode = new RowNode(this.beans);\n Object.keys(groupNode).forEach(function (key) {\n footerNode[key] = groupNode[key];\n });\n footerNode.footer = true;\n footerNode.setRowTop(null);\n footerNode.setRowIndex(null); // manually set oldRowTop to null so we discard any\n // previous information about its position.\n\n footerNode.oldRowTop = null;\n\n if (_.exists(footerNode.id)) {\n footerNode.id = 'rowGroupFooter_' + footerNode.id;\n } // get both header and footer to reference each other as siblings. this is never undone,\n // only overwritten. so if a group is expanded, then contracted, it will have a ghost\n // sibling - but that's fine, as we can ignore this if the header is contracted.\n\n\n footerNode.sibling = groupNode;\n groupNode.sibling = footerNode;\n };\n\n FlattenStage.prototype.createDetailNode = function (masterNode) {\n if (_.exists(masterNode.detailNode)) {\n return masterNode.detailNode;\n }\n\n var detailNode = new RowNode(this.beans);\n detailNode.detail = true;\n detailNode.selectable = false;\n detailNode.parent = masterNode;\n\n if (_.exists(masterNode.id)) {\n detailNode.id = 'detail_' + masterNode.id;\n }\n\n detailNode.data = masterNode.data;\n detailNode.level = masterNode.level + 1;\n masterNode.detailNode = detailNode;\n return detailNode;\n };\n\n __decorate$8([Autowired('columnModel')], FlattenStage.prototype, \"columnModel\", void 0);\n\n __decorate$8([Autowired('beans')], FlattenStage.prototype, \"beans\", void 0);\n\n FlattenStage = __decorate$8([Bean('flattenStage')], FlattenStage);\n return FlattenStage;\n}(BeanStub);\n\nvar __extends$8 = undefined && undefined.__extends || function () {\n var _extendStatics177 = function extendStatics(d, b) {\n _extendStatics177 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics177(d, b);\n };\n\n return function (d, b) {\n _extendStatics177(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SortService =\n/** @class */\nfunction (_super) {\n __extends$8(SortService, _super);\n\n function SortService() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n SortService.prototype.init = function () {\n this.postSortFunc = this.gridOptionsWrapper.getPostSortFunc();\n };\n\n SortService.prototype.sort = function (sortOptions, sortActive, useDeltaSort, rowNodeTransactions, changedPath, sortContainsGroupColumns) {\n var _this = this;\n\n var groupMaintainOrder = this.gridOptionsWrapper.isGroupMaintainOrder();\n var groupColumnsPresent = this.columnModel.getAllGridColumns().some(function (c) {\n return c.isRowGroupActive();\n });\n var allDirtyNodes = {};\n\n if (useDeltaSort && rowNodeTransactions) {\n allDirtyNodes = this.calculateDirtyNodes(rowNodeTransactions);\n }\n\n var isPivotMode = this.columnModel.isPivotMode();\n\n var callback = function callback(rowNode) {\n // we clear out the 'pull down open parents' first, as the values mix up the sorting\n _this.pullDownGroupDataForHideOpenParents(rowNode.childrenAfterAggFilter, true); // It's pointless to sort rows which aren't being displayed. in pivot mode we don't need to sort the leaf group children.\n\n\n var skipSortingPivotLeafs = isPivotMode && rowNode.leafGroup; // Javascript sort is non deterministic when all the array items are equals, ie Comparator always returns 0,\n // so to ensure the array keeps its order, add an additional sorting condition manually, in this case we\n // are going to inspect the original array position. This is what sortedRowNodes is for.\n\n var skipSortingGroups = groupMaintainOrder && groupColumnsPresent && !rowNode.leafGroup && !sortContainsGroupColumns;\n\n if (!sortActive || skipSortingGroups || skipSortingPivotLeafs) {\n // when 'groupMaintainOrder' is enabled we skip sorting groups unless we are sorting on group columns\n var childrenToBeSorted = rowNode.childrenAfterAggFilter.slice(0);\n\n if (groupMaintainOrder && rowNode.childrenAfterSort) {\n var indexedOrders_1 = rowNode.childrenAfterSort.reduce(function (acc, row, idx) {\n acc[row.id] = idx;\n return acc;\n }, {});\n childrenToBeSorted.sort(function (row1, row2) {\n return (indexedOrders_1[row1.id] || 0) - (indexedOrders_1[row2.id] || 0);\n });\n }\n\n rowNode.childrenAfterSort = childrenToBeSorted;\n } else if (useDeltaSort) {\n rowNode.childrenAfterSort = _this.doDeltaSort(rowNode, allDirtyNodes, changedPath, sortOptions);\n } else {\n rowNode.childrenAfterSort = _this.rowNodeSorter.doFullSort(rowNode.childrenAfterAggFilter, sortOptions);\n }\n\n if (rowNode.sibling) {\n rowNode.sibling.childrenAfterSort = rowNode.childrenAfterSort;\n }\n\n _this.updateChildIndexes(rowNode);\n\n if (_this.postSortFunc) {\n var params = {\n nodes: rowNode.childrenAfterSort\n };\n\n _this.postSortFunc(params);\n }\n };\n\n if (changedPath) {\n changedPath.forEachChangedNodeDepthFirst(callback);\n }\n\n this.updateGroupDataForHideOpenParents(changedPath);\n };\n\n SortService.prototype.calculateDirtyNodes = function (rowNodeTransactions) {\n var dirtyNodes = {};\n\n var addNodesFunc = function addNodesFunc(rowNodes) {\n if (rowNodes) {\n rowNodes.forEach(function (rowNode) {\n return dirtyNodes[rowNode.id] = true;\n });\n }\n }; // all leaf level nodes in the transaction were impacted\n\n\n if (rowNodeTransactions) {\n rowNodeTransactions.forEach(function (tran) {\n addNodesFunc(tran.add);\n addNodesFunc(tran.update);\n addNodesFunc(tran.remove);\n });\n }\n\n return dirtyNodes;\n };\n\n SortService.prototype.doDeltaSort = function (rowNode, allTouchedNodes, changedPath, sortOptions) {\n var _this = this;\n\n var unsortedRows = rowNode.childrenAfterAggFilter;\n var oldSortedRows = rowNode.childrenAfterSort;\n\n if (!oldSortedRows) {\n return this.rowNodeSorter.doFullSort(unsortedRows, sortOptions);\n }\n\n var untouchedRowsMap = {};\n var touchedRows = [];\n unsortedRows.forEach(function (row) {\n if (allTouchedNodes[row.id] || !changedPath.canSkip(row)) {\n touchedRows.push(row);\n } else {\n untouchedRowsMap[row.id] = true;\n }\n });\n var sortedUntouchedRows = oldSortedRows.filter(function (child) {\n return untouchedRowsMap[child.id];\n });\n\n var mapNodeToSortedNode = function mapNodeToSortedNode(rowNode, pos) {\n return {\n currentPos: pos,\n rowNode: rowNode\n };\n };\n\n var sortedChangedRows = touchedRows.map(mapNodeToSortedNode).sort(function (a, b) {\n return _this.rowNodeSorter.compareRowNodes(sortOptions, a, b);\n });\n return this.mergeSortedArrays(sortOptions, sortedChangedRows, sortedUntouchedRows.map(mapNodeToSortedNode)).map(function (_a) {\n var rowNode = _a.rowNode;\n return rowNode;\n });\n }; // Merge two sorted arrays into each other\n\n\n SortService.prototype.mergeSortedArrays = function (sortOptions, arr1, arr2) {\n var res = [];\n var i = 0;\n var j = 0; // Traverse both array, adding them in order\n\n while (i < arr1.length && j < arr2.length) {\n // Check if current element of first\n // array is smaller than current element\n // of second array. If yes, store first\n // array element and increment first array\n // index. Otherwise do same with second array\n var compareResult = this.rowNodeSorter.compareRowNodes(sortOptions, arr1[i], arr2[j]);\n\n if (compareResult < 0) {\n res.push(arr1[i++]);\n } else {\n res.push(arr2[j++]);\n }\n } // add remaining from arr1\n\n\n while (i < arr1.length) {\n res.push(arr1[i++]);\n } // add remaining from arr2\n\n\n while (j < arr2.length) {\n res.push(arr2[j++]);\n }\n\n return res;\n };\n\n SortService.prototype.updateChildIndexes = function (rowNode) {\n if (_.missing(rowNode.childrenAfterSort)) {\n return;\n }\n\n var listToSort = rowNode.childrenAfterSort;\n\n for (var i = 0; i < listToSort.length; i++) {\n var child = listToSort[i];\n var firstChild = i === 0;\n var lastChild = i === rowNode.childrenAfterSort.length - 1;\n child.setFirstChild(firstChild);\n child.setLastChild(lastChild);\n child.setChildIndex(i);\n }\n };\n\n SortService.prototype.updateGroupDataForHideOpenParents = function (changedPath) {\n var _this = this;\n\n if (!this.gridOptionsWrapper.isGroupHideOpenParents()) {\n return;\n }\n\n if (this.gridOptionsWrapper.isTreeData()) {\n var msg_1 = \"AG Grid: The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them (as opposed to Row Grouping, which only has Aggregated Values at the group level).\";\n\n _.doOnce(function () {\n return console.warn(msg_1);\n }, 'sortService.hideOpenParentsWithTreeData');\n\n return false;\n } // recurse breadth first over group nodes after sort to 'pull down' group data to child groups\n\n\n var callback = function callback(rowNode) {\n _this.pullDownGroupDataForHideOpenParents(rowNode.childrenAfterSort, false);\n\n rowNode.childrenAfterSort.forEach(function (child) {\n if (child.hasChildren()) {\n callback(child);\n }\n });\n };\n\n if (changedPath) {\n changedPath.executeFromRootNode(function (rowNode) {\n return callback(rowNode);\n });\n }\n };\n\n SortService.prototype.pullDownGroupDataForHideOpenParents = function (rowNodes, clearOperation) {\n var _this = this;\n\n if (!this.gridOptionsWrapper.isGroupHideOpenParents() || _.missing(rowNodes)) {\n return;\n }\n\n rowNodes.forEach(function (childRowNode) {\n var groupDisplayCols = _this.columnModel.getGroupDisplayColumns();\n\n groupDisplayCols.forEach(function (groupDisplayCol) {\n var showRowGroup = groupDisplayCol.getColDef().showRowGroup;\n\n if (typeof showRowGroup !== 'string') {\n console.error('AG Grid: groupHideOpenParents only works when specifying specific columns for colDef.showRowGroup');\n return;\n }\n\n var displayingGroupKey = showRowGroup;\n\n var rowGroupColumn = _this.columnModel.getPrimaryColumn(displayingGroupKey);\n\n var thisRowNodeMatches = rowGroupColumn === childRowNode.rowGroupColumn;\n\n if (thisRowNodeMatches) {\n return;\n }\n\n if (clearOperation) {\n // if doing a clear operation, we clear down the value for every possible group column\n childRowNode.setGroupValue(groupDisplayCol.getId(), undefined);\n } else {\n // if doing a set operation, we set only where the pull down is to occur\n var parentToStealFrom = childRowNode.getFirstChildOfFirstChild(rowGroupColumn);\n\n if (parentToStealFrom) {\n childRowNode.setGroupValue(groupDisplayCol.getId(), parentToStealFrom.key);\n }\n }\n });\n });\n };\n\n __decorate$7([Autowired('columnModel')], SortService.prototype, \"columnModel\", void 0);\n\n __decorate$7([Autowired('rowNodeSorter')], SortService.prototype, \"rowNodeSorter\", void 0);\n\n __decorate$7([PostConstruct], SortService.prototype, \"init\", null);\n\n SortService = __decorate$7([Bean('sortService')], SortService);\n return SortService;\n}(BeanStub);\n\nvar __extends$7 = undefined && undefined.__extends || function () {\n var _extendStatics178 = function extendStatics(d, b) {\n _extendStatics178 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics178(d, b);\n };\n\n return function (d, b) {\n _extendStatics178(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar FilterService =\n/** @class */\nfunction (_super) {\n __extends$7(FilterService, _super);\n\n function FilterService() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n FilterService.prototype.filter = function (changedPath) {\n var filterActive = this.filterManager.isColumnFilterPresent() || this.filterManager.isQuickFilterPresent() || this.filterManager.isExternalFilterPresent();\n this.filterNodes(filterActive, changedPath);\n };\n\n FilterService.prototype.filterNodes = function (filterActive, changedPath) {\n var _this = this;\n\n var filterCallback = function filterCallback(rowNode, includeChildNodes) {\n // recursively get all children that are groups to also filter\n if (rowNode.hasChildren()) {\n // result of filter for this node. when filtering tree data, includeChildNodes = true when parent passes\n if (filterActive && !includeChildNodes) {\n rowNode.childrenAfterFilter = rowNode.childrenAfterGroup.filter(function (childNode) {\n // a group is included in the result if it has any children of it's own.\n // by this stage, the child groups are already filtered\n var passBecauseChildren = childNode.childrenAfterFilter && childNode.childrenAfterFilter.length > 0; // both leaf level nodes and tree data nodes have data. these get added if\n // the data passes the filter\n\n var passBecauseDataPasses = childNode.data && _this.filterManager.doesRowPassFilter({\n rowNode: childNode\n }); // note - tree data nodes pass either if a) they pass themselves or b) any children of that node pass\n\n\n return passBecauseChildren || passBecauseDataPasses;\n });\n } else {\n // if not filtering, the result is the original list\n rowNode.childrenAfterFilter = rowNode.childrenAfterGroup;\n }\n } else {\n rowNode.childrenAfterFilter = rowNode.childrenAfterGroup;\n }\n\n if (rowNode.sibling) {\n rowNode.sibling.childrenAfterFilter = rowNode.childrenAfterFilter;\n }\n };\n\n if (this.doingTreeDataFiltering()) {\n var treeDataDepthFirstFilter_1 = function treeDataDepthFirstFilter_1(rowNode, alreadyFoundInParent) {\n // tree data filter traverses the hierarchy depth first and includes child nodes if parent passes\n // filter, and parent nodes will be include if any children exist.\n if (rowNode.childrenAfterGroup) {\n for (var i = 0; i < rowNode.childrenAfterGroup.length; i++) {\n var childNode = rowNode.childrenAfterGroup[i]; // first check if current node passes filter before invoking child nodes\n\n var foundInParent = alreadyFoundInParent || _this.filterManager.doesRowPassFilter({\n rowNode: childNode\n });\n\n if (childNode.childrenAfterGroup) {\n treeDataDepthFirstFilter_1(rowNode.childrenAfterGroup[i], foundInParent);\n } else {\n filterCallback(childNode, foundInParent);\n }\n }\n }\n\n filterCallback(rowNode, alreadyFoundInParent);\n };\n\n var treeDataFilterCallback = function treeDataFilterCallback(rowNode) {\n return treeDataDepthFirstFilter_1(rowNode, false);\n };\n\n changedPath.executeFromRootNode(treeDataFilterCallback);\n } else {\n var defaultFilterCallback = function defaultFilterCallback(rowNode) {\n return filterCallback(rowNode, false);\n };\n\n changedPath.forEachChangedNodeDepthFirst(defaultFilterCallback, true);\n }\n };\n\n FilterService.prototype.doingTreeDataFiltering = function () {\n return this.gridOptionsWrapper.isTreeData() && !this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering();\n };\n\n __decorate$6([Autowired('filterManager')], FilterService.prototype, \"filterManager\", void 0);\n\n FilterService = __decorate$6([Bean(\"filterService\")], FilterService);\n return FilterService;\n}(BeanStub);\n\nvar __extends$6 = undefined && undefined.__extends || function () {\n var _extendStatics179 = function extendStatics(d, b) {\n _extendStatics179 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics179(d, b);\n };\n\n return function (d, b) {\n _extendStatics179(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar ImmutableService =\n/** @class */\nfunction (_super) {\n __extends$6(ImmutableService, _super);\n\n function ImmutableService() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n ImmutableService.prototype.postConstruct = function () {\n if (this.rowModel.getType() === Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {\n this.clientSideRowModel = this.rowModel;\n }\n };\n\n ImmutableService.prototype.isActive = function () {\n return this.gridOptionsWrapper.isImmutableData();\n };\n\n ImmutableService.prototype.setRowData = function (rowData) {\n var transactionAndMap = this.createTransactionForRowData(rowData);\n\n if (!transactionAndMap) {\n return;\n }\n\n var _a = __read(transactionAndMap, 2),\n transaction = _a[0],\n orderIdMap = _a[1];\n\n var nodeTransaction = this.clientSideRowModel.updateRowData(transaction, orderIdMap); // need to force updating of full width rows - note this wouldn't be necessary the full width cell comp listened\n // to the data change event on the row node and refreshed itself.\n\n if (nodeTransaction) {\n this.rowRenderer.refreshFullWidthRows(nodeTransaction.update);\n }\n }; // converts the setRowData() command to a transaction\n\n\n ImmutableService.prototype.createTransactionForRowData = function (rowData) {\n if (_.missing(this.clientSideRowModel)) {\n console.error('AG Grid: ImmutableService only works with ClientSideRowModel');\n return;\n }\n\n var getRowIdFunc = this.gridOptionsWrapper.getRowIdFunc();\n\n if (getRowIdFunc == null) {\n console.error('AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!');\n return;\n } // convert the data into a transaction object by working out adds, removes and updates\n\n\n var transaction = {\n remove: [],\n update: [],\n add: []\n };\n var existingNodesMap = this.clientSideRowModel.getCopyOfNodesMap();\n var suppressSortOrder = this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder();\n var orderMap = suppressSortOrder ? undefined : {};\n\n if (_.exists(rowData)) {\n // split all the new data in the following:\n // if new, push to 'add'\n // if update, push to 'update'\n // if not changed, do not include in the transaction\n rowData.forEach(function (data, index) {\n var id = getRowIdFunc({\n data: data,\n level: 0\n });\n var existingNode = existingNodesMap[id];\n\n if (orderMap) {\n orderMap[id] = index;\n }\n\n if (existingNode) {\n var dataHasChanged = existingNode.data !== data;\n\n if (dataHasChanged) {\n transaction.update.push(data);\n } // otherwise, if data not changed, we just don't include it anywhere, as it's not a delta\n // remove from list, so we know the item is not to be removed\n\n\n existingNodesMap[id] = undefined;\n } else {\n transaction.add.push(data);\n }\n });\n } // at this point, all rows that are left, should be removed\n\n\n _.iterateObject(existingNodesMap, function (id, rowNode) {\n if (rowNode) {\n transaction.remove.push(rowNode.data);\n }\n });\n\n return [transaction, orderMap];\n };\n\n __decorate$5([Autowired('rowModel')], ImmutableService.prototype, \"rowModel\", void 0);\n\n __decorate$5([Autowired('rowRenderer')], ImmutableService.prototype, \"rowRenderer\", void 0);\n\n __decorate$5([Autowired('columnApi')], ImmutableService.prototype, \"columnApi\", void 0);\n\n __decorate$5([Autowired('gridApi')], ImmutableService.prototype, \"gridApi\", void 0);\n\n __decorate$5([Autowired('filterManager')], ImmutableService.prototype, \"filterManager\", void 0);\n\n __decorate$5([PostConstruct], ImmutableService.prototype, \"postConstruct\", null);\n\n ImmutableService = __decorate$5([Bean('immutableService')], ImmutableService);\n return ImmutableService;\n}(BeanStub);\n\nvar ClientSideRowModelModule = {\n moduleName: ModuleNames.ClientSideRowModelModule,\n beans: [FilterStage, SortStage, FlattenStage, SortService, FilterService, ImmutableService],\n rowModels: {\n clientSide: ClientSideRowModel\n }\n};\n\nvar __extends$5 = undefined && undefined.__extends || function () {\n var _extendStatics180 = function extendStatics(d, b) {\n _extendStatics180 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics180(d, b);\n };\n\n return function (d, b) {\n _extendStatics180(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar InfiniteBlock =\n/** @class */\nfunction (_super) {\n __extends$5(InfiniteBlock, _super);\n\n function InfiniteBlock(id, parentCache, params) {\n var _this = _super.call(this, id) || this;\n\n _this.parentCache = parentCache;\n _this.params = params; // we don't need to calculate these now, as the inputs don't change,\n // however it makes the code easier to read if we work them out up front\n\n _this.startRow = id * params.blockSize;\n _this.endRow = _this.startRow + params.blockSize;\n return _this;\n }\n\n InfiniteBlock.prototype.postConstruct = function () {\n this.createRowNodes();\n };\n\n InfiniteBlock.prototype.getBlockStateJson = function () {\n return {\n id: '' + this.getId(),\n state: {\n blockNumber: this.getId(),\n startRow: this.getStartRow(),\n endRow: this.getEndRow(),\n pageStatus: this.getState()\n }\n };\n };\n\n InfiniteBlock.prototype.setDataAndId = function (rowNode, data, index) {\n // if there's no id and the rowNode was rendered before, it means this\n // was a placeholder rowNode and should not be recycled. Setting\n // `alreadyRendered` to `false` forces the rowRenderer to flush it.\n if (!rowNode.id && rowNode.alreadyRendered) {\n rowNode.alreadyRendered = false;\n }\n\n if (_.exists(data)) {\n // this means if the user is not providing id's we just use the\n // index for the row. this will allow selection to work (that is based\n // on index) as long user is not inserting or deleting rows,\n // or wanting to keep selection between server side sorting or filtering\n rowNode.setDataAndId(data, index.toString());\n } else {\n rowNode.setDataAndId(undefined, undefined);\n }\n };\n\n InfiniteBlock.prototype.loadFromDatasource = function () {\n var _this = this;\n\n var params = this.createLoadParams();\n\n if (_.missing(this.params.datasource.getRows)) {\n console.warn(\"AG Grid: datasource is missing getRows method\");\n return;\n } // put in timeout, to force result to be async\n\n\n window.setTimeout(function () {\n _this.params.datasource.getRows(params);\n }, 0);\n };\n\n InfiniteBlock.prototype.processServerFail = function () {// todo - this method has better handling in SSRM\n };\n\n InfiniteBlock.prototype.createLoadParams = function () {\n // PROBLEM . . . . when the user sets sort via colDef.sort, then this code\n // is executing before the sort is set up, so server is not getting the sort\n // model. need to change with regards order - so the server side request is\n // AFTER thus it gets the right sort model.\n var params = {\n startRow: this.getStartRow(),\n endRow: this.getEndRow(),\n successCallback: this.pageLoaded.bind(this, this.getVersion()),\n failCallback: this.pageLoadFailed.bind(this, this.getVersion()),\n sortModel: this.params.sortModel,\n filterModel: this.params.filterModel,\n context: this.gridOptionsWrapper.getContext()\n };\n return params;\n };\n\n InfiniteBlock.prototype.forEachNode = function (callback, sequence, rowCount) {\n var _this = this;\n\n this.rowNodes.forEach(function (rowNode, index) {\n var rowIndex = _this.startRow + index;\n\n if (rowIndex < rowCount) {\n callback(rowNode, sequence.next());\n }\n });\n };\n\n InfiniteBlock.prototype.getLastAccessed = function () {\n return this.lastAccessed;\n };\n\n InfiniteBlock.prototype.getRow = function (rowIndex, dontTouchLastAccessed) {\n if (dontTouchLastAccessed === void 0) {\n dontTouchLastAccessed = false;\n }\n\n if (!dontTouchLastAccessed) {\n this.lastAccessed = this.params.lastAccessedSequence.next();\n }\n\n var localIndex = rowIndex - this.startRow;\n return this.rowNodes[localIndex];\n };\n\n InfiniteBlock.prototype.getStartRow = function () {\n return this.startRow;\n };\n\n InfiniteBlock.prototype.getEndRow = function () {\n return this.endRow;\n }; // creates empty row nodes, data is missing as not loaded yet\n\n\n InfiniteBlock.prototype.createRowNodes = function () {\n this.rowNodes = [];\n\n for (var i = 0; i < this.params.blockSize; i++) {\n var rowIndex = this.startRow + i;\n var rowNode = new RowNode(this.beans);\n rowNode.setRowHeight(this.params.rowHeight);\n rowNode.uiLevel = 0;\n rowNode.setRowIndex(rowIndex);\n rowNode.setRowTop(this.params.rowHeight * rowIndex);\n this.rowNodes.push(rowNode);\n }\n };\n\n InfiniteBlock.prototype.processServerResult = function (params) {\n var _this = this;\n\n this.rowNodes.forEach(function (rowNode, index) {\n var data = params.rowData ? params.rowData[index] : undefined;\n\n _this.setDataAndId(rowNode, data, _this.startRow + index);\n });\n var finalRowCount = params.rowCount != null && params.rowCount >= 0 ? params.rowCount : undefined;\n this.parentCache.pageLoaded(this, finalRowCount);\n };\n\n InfiniteBlock.prototype.destroyRowNodes = function () {\n this.rowNodes.forEach(function (rowNode) {\n // this is needed, so row render knows to fade out the row, otherwise it\n // sees row top is present, and thinks the row should be shown.\n rowNode.clearRowTopAndRowIndex();\n });\n };\n\n __decorate$4([Autowired('beans')], InfiniteBlock.prototype, \"beans\", void 0);\n\n __decorate$4([PostConstruct], InfiniteBlock.prototype, \"postConstruct\", null);\n\n __decorate$4([PreDestroy], InfiniteBlock.prototype, \"destroyRowNodes\", null);\n\n return InfiniteBlock;\n}(RowNodeBlock);\n\nvar __extends$4 = undefined && undefined.__extends || function () {\n var _extendStatics181 = function extendStatics(d, b) {\n _extendStatics181 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics181(d, b);\n };\n\n return function (d, b) {\n _extendStatics181(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __param = undefined && undefined.__param || function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n};\n\nvar InfiniteCache =\n/** @class */\nfunction (_super) {\n __extends$4(InfiniteCache, _super);\n\n function InfiniteCache(params) {\n var _this = _super.call(this) || this;\n\n _this.lastRowIndexKnown = false;\n _this.blocks = {};\n _this.blockCount = 0;\n _this.rowCount = params.initialRowCount;\n _this.params = params;\n return _this;\n }\n\n InfiniteCache.prototype.setBeans = function (loggerFactory) {\n this.logger = loggerFactory.create('InfiniteCache');\n }; // the rowRenderer will not pass dontCreatePage, meaning when rendering the grid,\n // it will want new pages in the cache as it asks for rows. only when we are inserting /\n // removing rows via the api is dontCreatePage set, where we move rows between the pages.\n\n\n InfiniteCache.prototype.getRow = function (rowIndex, dontCreatePage) {\n if (dontCreatePage === void 0) {\n dontCreatePage = false;\n }\n\n var blockId = Math.floor(rowIndex / this.params.blockSize);\n var block = this.blocks[blockId];\n\n if (!block) {\n if (dontCreatePage) {\n return undefined;\n }\n\n block = this.createBlock(blockId);\n }\n\n return block.getRow(rowIndex);\n };\n\n InfiniteCache.prototype.createBlock = function (blockNumber) {\n var newBlock = this.createBean(new InfiniteBlock(blockNumber, this, this.params));\n this.blocks[newBlock.getId()] = newBlock;\n this.blockCount++;\n this.purgeBlocksIfNeeded(newBlock);\n this.params.rowNodeBlockLoader.addBlock(newBlock);\n return newBlock;\n }; // we have this on infinite row model only, not server side row model,\n // because for server side, it would leave the children in inconsistent\n // state - eg if a node had children, but after the refresh it had data\n // for a different row, then the children would be with the wrong row node.\n\n\n InfiniteCache.prototype.refreshCache = function () {\n var nothingToRefresh = this.blockCount == 0;\n\n if (nothingToRefresh) {\n this.purgeCache();\n return;\n }\n\n this.getBlocksInOrder().forEach(function (block) {\n return block.setStateWaitingToLoad();\n });\n this.params.rowNodeBlockLoader.checkBlockToLoad();\n };\n\n InfiniteCache.prototype.destroyAllBlocks = function () {\n var _this = this;\n\n this.getBlocksInOrder().forEach(function (block) {\n return _this.destroyBlock(block);\n });\n };\n\n InfiniteCache.prototype.getRowCount = function () {\n return this.rowCount;\n };\n\n InfiniteCache.prototype.isLastRowIndexKnown = function () {\n return this.lastRowIndexKnown;\n }; // block calls this, when page loaded\n\n\n InfiniteCache.prototype.pageLoaded = function (block, lastRow) {\n // if we are not active, then we ignore all events, otherwise we could end up getting the\n // grid to refresh even though we are no longer the active cache\n if (!this.isAlive()) {\n return;\n }\n\n this.logger.log(\"onPageLoaded: page = \" + block.getId() + \", lastRow = \" + lastRow);\n this.checkRowCount(block, lastRow); // we fire cacheUpdated even if the row count has not changed, as some items need updating even\n // if no new rows to render. for example the pagination panel has '?' as the total rows when loading\n // is underway, which would need to get updated when loading finishes.\n\n this.onCacheUpdated();\n };\n\n InfiniteCache.prototype.purgeBlocksIfNeeded = function (blockToExclude) {\n var _this = this; // we exclude checking for the page just created, as this has yet to be accessed and hence\n // the lastAccessed stamp will not be updated for the first time yet\n\n\n var blocksForPurging = this.getBlocksInOrder().filter(function (b) {\n return b != blockToExclude;\n });\n\n var lastAccessedComparator = function lastAccessedComparator(a, b) {\n return b.getLastAccessed() - a.getLastAccessed();\n };\n\n blocksForPurging.sort(lastAccessedComparator); // we remove (maxBlocksInCache - 1) as we already excluded the 'just created' page.\n // in other words, after the splice operation below, we have taken out the blocks\n // we want to keep, which means we are left with blocks that we can potentially purge\n\n var maxBlocksProvided = this.params.maxBlocksInCache > 0;\n var blocksToKeep = maxBlocksProvided ? this.params.maxBlocksInCache - 1 : null;\n var emptyBlocksToKeep = InfiniteCache.MAX_EMPTY_BLOCKS_TO_KEEP - 1;\n blocksForPurging.forEach(function (block, index) {\n var purgeBecauseBlockEmpty = block.getState() === InfiniteBlock.STATE_WAITING_TO_LOAD && index >= emptyBlocksToKeep;\n var purgeBecauseCacheFull = maxBlocksProvided ? index >= blocksToKeep : false;\n\n if (purgeBecauseBlockEmpty || purgeBecauseCacheFull) {\n // if the block currently has rows been displayed, then don't remove it either.\n // this can happen if user has maxBlocks=2, and blockSize=5 (thus 10 max rows in cache)\n // but the screen is showing 20 rows, so at least 4 blocks are needed.\n if (_this.isBlockCurrentlyDisplayed(block)) {\n return;\n } // don't want to loose keyboard focus, so keyboard navigation can continue. so keep focused blocks.\n\n\n if (_this.isBlockFocused(block)) {\n return;\n } // at this point, block is not needed, so burn baby burn\n\n\n _this.removeBlockFromCache(block);\n }\n });\n };\n\n InfiniteCache.prototype.isBlockFocused = function (block) {\n var focusedCell = this.focusService.getFocusCellToUseAfterRefresh();\n\n if (!focusedCell) {\n return false;\n }\n\n if (focusedCell.rowPinned != null) {\n return false;\n }\n\n var blockIndexStart = block.getStartRow();\n var blockIndexEnd = block.getEndRow();\n var hasFocus = focusedCell.rowIndex >= blockIndexStart && focusedCell.rowIndex < blockIndexEnd;\n return hasFocus;\n };\n\n InfiniteCache.prototype.isBlockCurrentlyDisplayed = function (block) {\n var startIndex = block.getStartRow();\n var endIndex = block.getEndRow() - 1;\n return this.rowRenderer.isRangeInRenderedViewport(startIndex, endIndex);\n };\n\n InfiniteCache.prototype.removeBlockFromCache = function (blockToRemove) {\n if (!blockToRemove) {\n return;\n }\n\n this.destroyBlock(blockToRemove); // we do not want to remove the 'loaded' event listener, as the\n // concurrent loads count needs to be updated when the load is complete\n // if the purged page is in loading state\n };\n\n InfiniteCache.prototype.checkRowCount = function (block, lastRow) {\n // if client provided a last row, we always use it, as it could change between server calls\n // if user deleted data and then called refresh on the grid.\n if (typeof lastRow === 'number' && lastRow >= 0) {\n this.rowCount = lastRow;\n this.lastRowIndexKnown = true;\n } else if (!this.lastRowIndexKnown) {\n // otherwise, see if we need to add some virtual rows\n var lastRowIndex = (block.getId() + 1) * this.params.blockSize;\n var lastRowIndexPlusOverflow = lastRowIndex + this.params.overflowSize;\n\n if (this.rowCount < lastRowIndexPlusOverflow) {\n this.rowCount = lastRowIndexPlusOverflow;\n }\n }\n };\n\n InfiniteCache.prototype.setRowCount = function (rowCount, lastRowIndexKnown) {\n this.rowCount = rowCount; // if undefined is passed, we do not set this value, if one of {true,false}\n // is passed, we do set the value.\n\n if (_.exists(lastRowIndexKnown)) {\n this.lastRowIndexKnown = lastRowIndexKnown;\n } // if we are still searching, then the row count must not end at the end\n // of a particular page, otherwise the searching will not pop into the\n // next page\n\n\n if (!this.lastRowIndexKnown) {\n if (this.rowCount % this.params.blockSize === 0) {\n this.rowCount++;\n }\n }\n\n this.onCacheUpdated();\n };\n\n InfiniteCache.prototype.forEachNodeDeep = function (callback) {\n var _this = this;\n\n var sequence = new NumberSequence();\n this.getBlocksInOrder().forEach(function (block) {\n return block.forEachNode(callback, sequence, _this.rowCount);\n });\n };\n\n InfiniteCache.prototype.getBlocksInOrder = function () {\n // get all page id's as NUMBERS (not strings, as we need to sort as numbers) and in descending order\n var blockComparator = function blockComparator(a, b) {\n return a.getId() - b.getId();\n };\n\n var blocks = _.getAllValuesInObject(this.blocks).sort(blockComparator);\n\n return blocks;\n };\n\n InfiniteCache.prototype.destroyBlock = function (block) {\n delete this.blocks[block.getId()];\n this.destroyBean(block);\n this.blockCount--;\n this.params.rowNodeBlockLoader.removeBlock(block);\n }; // gets called 1) row count changed 2) cache purged 3) items inserted\n\n\n InfiniteCache.prototype.onCacheUpdated = function () {\n if (this.isAlive()) {\n // if the virtualRowCount is shortened, then it's possible blocks exist that are no longer\n // in the valid range. so we must remove these. this can happen if user explicitly sets\n // the virtual row count, or the datasource returns a result and sets lastRow to something\n // less than virtualRowCount (can happen if user scrolls down, server reduces dataset size).\n this.destroyAllBlocksPastVirtualRowCount(); // this results in both row models (infinite and server side) firing ModelUpdated,\n // however server side row model also updates the row indexes first\n\n var event_1 = {\n type: Events.EVENT_STORE_UPDATED\n };\n this.eventService.dispatchEvent(event_1);\n }\n };\n\n InfiniteCache.prototype.destroyAllBlocksPastVirtualRowCount = function () {\n var _this = this;\n\n var blocksToDestroy = [];\n this.getBlocksInOrder().forEach(function (block) {\n var startRow = block.getId() * _this.params.blockSize;\n\n if (startRow >= _this.rowCount) {\n blocksToDestroy.push(block);\n }\n });\n\n if (blocksToDestroy.length > 0) {\n blocksToDestroy.forEach(function (block) {\n return _this.destroyBlock(block);\n });\n }\n };\n\n InfiniteCache.prototype.purgeCache = function () {\n var _this = this;\n\n this.getBlocksInOrder().forEach(function (block) {\n return _this.removeBlockFromCache(block);\n });\n this.lastRowIndexKnown = false; // if zero rows in the cache, we need to get the SSRM to start asking for rows again.\n // otherwise if set to zero rows last time, and we don't update the row count, then after\n // the purge there will still be zero rows, meaning the SSRM won't request any rows.\n // to kick things off, at least one row needs to be asked for.\n\n if (this.rowCount === 0) {\n this.rowCount = this.params.initialRowCount;\n }\n\n this.onCacheUpdated();\n };\n\n InfiniteCache.prototype.getRowNodesInRange = function (firstInRange, lastInRange) {\n var _this = this;\n\n var result = [];\n var lastBlockId = -1;\n var inActiveRange = false;\n var numberSequence = new NumberSequence(); // if only one node passed, we start the selection at the top\n\n if (_.missing(firstInRange)) {\n inActiveRange = true;\n }\n\n var foundGapInSelection = false;\n this.getBlocksInOrder().forEach(function (block) {\n if (foundGapInSelection) {\n return;\n }\n\n if (inActiveRange && lastBlockId + 1 !== block.getId()) {\n foundGapInSelection = true;\n return;\n }\n\n lastBlockId = block.getId();\n block.forEachNode(function (rowNode) {\n var hitFirstOrLast = rowNode === firstInRange || rowNode === lastInRange;\n\n if (inActiveRange || hitFirstOrLast) {\n result.push(rowNode);\n }\n\n if (hitFirstOrLast) {\n inActiveRange = !inActiveRange;\n }\n }, numberSequence, _this.rowCount);\n }); // inActiveRange will be still true if we never hit the second rowNode\n\n var invalidRange = foundGapInSelection || inActiveRange;\n return invalidRange ? [] : result;\n }; // this property says how many empty blocks should be in a cache, eg if scrolls down fast and creates 10\n // blocks all for loading, the grid will only load the last 2 - it will assume the blocks the user quickly\n // scrolled over are not needed to be loaded.\n\n\n InfiniteCache.MAX_EMPTY_BLOCKS_TO_KEEP = 2;\n\n __decorate$3([Autowired('rowRenderer')], InfiniteCache.prototype, \"rowRenderer\", void 0);\n\n __decorate$3([Autowired(\"focusService\")], InfiniteCache.prototype, \"focusService\", void 0);\n\n __decorate$3([__param(0, Qualifier('loggerFactory'))], InfiniteCache.prototype, \"setBeans\", null);\n\n __decorate$3([PreDestroy], InfiniteCache.prototype, \"destroyAllBlocks\", null);\n\n return InfiniteCache;\n}(BeanStub);\n\nvar __extends$3 = undefined && undefined.__extends || function () {\n var _extendStatics182 = function extendStatics(d, b) {\n _extendStatics182 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics182(d, b);\n };\n\n return function (d, b) {\n _extendStatics182(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar InfiniteRowModel =\n/** @class */\nfunction (_super) {\n __extends$3(InfiniteRowModel, _super);\n\n function InfiniteRowModel() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n InfiniteRowModel.prototype.getRowBounds = function (index) {\n return {\n rowHeight: this.rowHeight,\n rowTop: this.rowHeight * index\n };\n }; // we don't implement as lazy row heights is not supported in this row model\n\n\n InfiniteRowModel.prototype.ensureRowHeightsValid = function (startPixel, endPixel, startLimitIndex, endLimitIndex) {\n return false;\n };\n\n InfiniteRowModel.prototype.init = function () {\n var _this = this;\n\n if (!this.gridOptionsWrapper.isRowModelInfinite()) {\n return;\n }\n\n this.rowHeight = this.gridOptionsWrapper.getRowHeightAsNumber();\n this.addEventListeners();\n this.addDestroyFunc(function () {\n return _this.destroyCache();\n });\n this.verifyProps();\n };\n\n InfiniteRowModel.prototype.verifyProps = function () {\n if (this.gridOptionsWrapper.getInitialGroupOrderComparator() != null) {\n var message_1 = \"AG Grid: initialGroupOrderComparator 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.\";\n\n _.doOnce(function () {\n return console.warn(message_1);\n }, 'IRM.InitialGroupOrderComparator');\n }\n };\n\n InfiniteRowModel.prototype.start = function () {\n this.setDatasource(this.gridOptionsWrapper.getDatasource());\n };\n\n InfiniteRowModel.prototype.destroyDatasource = function () {\n if (this.datasource) {\n this.getContext().destroyBean(this.datasource);\n this.rowRenderer.datasourceChanged();\n this.datasource = null;\n }\n };\n\n InfiniteRowModel.prototype.addEventListeners = function () {\n this.addManagedListener(this.eventService, Events.EVENT_FILTER_CHANGED, this.onFilterChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_SORT_CHANGED, this.onSortChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.onColumnEverything.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_STORE_UPDATED, this.onCacheUpdated.bind(this));\n };\n\n InfiniteRowModel.prototype.onFilterChanged = function () {\n this.reset();\n };\n\n InfiniteRowModel.prototype.onSortChanged = function () {\n this.reset();\n };\n\n InfiniteRowModel.prototype.onColumnEverything = function () {\n var resetRequired; // if cache params, we require reset only if sort model has changed. we don't need to check\n // for filter model, as the filter manager will fire an event when columns change that result\n // in the filter changing.\n\n if (this.cacheParams) {\n resetRequired = this.isSortModelDifferent();\n } else {\n // if no cacheParams, means first time creating the cache, so always create one\n resetRequired = true;\n }\n\n if (resetRequired) {\n this.reset();\n }\n };\n\n InfiniteRowModel.prototype.isSortModelDifferent = function () {\n return !_.jsonEquals(this.cacheParams.sortModel, this.sortController.getSortModel());\n };\n\n InfiniteRowModel.prototype.getType = function () {\n return Constants.ROW_MODEL_TYPE_INFINITE;\n };\n\n InfiniteRowModel.prototype.setDatasource = function (datasource) {\n this.destroyDatasource();\n this.datasource = datasource; // only reset if we have a valid datasource to working with\n\n if (datasource) {\n this.reset();\n }\n };\n\n InfiniteRowModel.prototype.isEmpty = function () {\n return !this.infiniteCache;\n };\n\n InfiniteRowModel.prototype.isRowsToRender = function () {\n return !!this.infiniteCache;\n };\n\n InfiniteRowModel.prototype.getNodesInRangeForSelection = function (firstInRange, lastInRange) {\n return this.infiniteCache ? this.infiniteCache.getRowNodesInRange(firstInRange, lastInRange) : [];\n };\n\n InfiniteRowModel.prototype.reset = function () {\n // important to return here, as the user could be setting filter or sort before\n // data-source is set\n if (!this.datasource) {\n return;\n } // if user is providing id's, then this means we can keep the selection between datasource hits,\n // as the rows will keep their unique id's even if, for example, server side sorting or filtering\n // is done.\n\n\n var getRowIdFunc = this.gridOptionsWrapper.getRowIdFunc();\n var userGeneratingIds = getRowIdFunc != null;\n\n if (!userGeneratingIds) {\n this.selectionService.reset();\n }\n\n this.resetCache();\n var event = this.createModelUpdatedEvent();\n this.eventService.dispatchEvent(event);\n };\n\n InfiniteRowModel.prototype.createModelUpdatedEvent = function () {\n return {\n type: Events.EVENT_MODEL_UPDATED,\n // not sure if these should all be false - noticed if after implementing,\n // maybe they should be true?\n newPage: false,\n newData: false,\n keepRenderedRows: true,\n animate: false\n };\n };\n\n InfiniteRowModel.prototype.resetCache = function () {\n // if not first time creating a cache, need to destroy the old one\n this.destroyCache();\n this.cacheParams = {\n // the user provided datasource\n datasource: this.datasource,\n // sort and filter model\n filterModel: this.filterManager.getFilterModel(),\n sortModel: this.sortController.getSortModel(),\n rowNodeBlockLoader: this.rowNodeBlockLoader,\n // properties - this way we take a snapshot of them, so if user changes any, they will be\n // used next time we create a new cache, which is generally after a filter or sort change,\n // or a new datasource is set\n initialRowCount: this.defaultIfInvalid(this.gridOptionsWrapper.getInfiniteInitialRowCount(), 1),\n maxBlocksInCache: this.gridOptionsWrapper.getMaxBlocksInCache(),\n rowHeight: this.gridOptionsWrapper.getRowHeightAsNumber(),\n // if user doesn't provide overflow, we use default overflow of 1, so user can scroll past\n // the current page and request first row of next page\n overflowSize: this.defaultIfInvalid(this.gridOptionsWrapper.getCacheOverflowSize(), 1),\n // page size needs to be 1 or greater. having it at 1 would be silly, as you would be hitting the\n // server for one page at a time. so the default if not specified is 100.\n blockSize: this.defaultIfInvalid(this.gridOptionsWrapper.getCacheBlockSize(), 100),\n // the cache could create this, however it is also used by the pages, so handy to create it\n // here as the settings are also passed to the pages\n lastAccessedSequence: new NumberSequence()\n };\n this.infiniteCache = this.createBean(new InfiniteCache(this.cacheParams));\n };\n\n InfiniteRowModel.prototype.defaultIfInvalid = function (value, defaultValue) {\n return value > 0 ? value : defaultValue;\n };\n\n InfiniteRowModel.prototype.destroyCache = function () {\n if (this.infiniteCache) {\n this.infiniteCache = this.destroyBean(this.infiniteCache);\n }\n };\n\n InfiniteRowModel.prototype.onCacheUpdated = function () {\n var event = this.createModelUpdatedEvent();\n this.eventService.dispatchEvent(event);\n };\n\n InfiniteRowModel.prototype.getRow = function (rowIndex) {\n if (!this.infiniteCache) {\n return undefined;\n }\n\n if (rowIndex >= this.infiniteCache.getRowCount()) {\n return undefined;\n }\n\n return this.infiniteCache.getRow(rowIndex);\n };\n\n InfiniteRowModel.prototype.getRowNode = function (id) {\n var result;\n this.forEachNode(function (rowNode) {\n if (rowNode.id === id) {\n result = rowNode;\n }\n });\n return result;\n };\n\n InfiniteRowModel.prototype.forEachNode = function (callback) {\n if (this.infiniteCache) {\n this.infiniteCache.forEachNodeDeep(callback);\n }\n };\n\n InfiniteRowModel.prototype.getTopLevelRowCount = function () {\n return this.getRowCount();\n };\n\n InfiniteRowModel.prototype.getTopLevelRowDisplayedIndex = function (topLevelIndex) {\n return topLevelIndex;\n };\n\n InfiniteRowModel.prototype.getRowIndexAtPixel = function (pixel) {\n if (this.rowHeight !== 0) {\n // avoid divide by zero error\n var rowIndexForPixel = Math.floor(pixel / this.rowHeight);\n var lastRowIndex = this.getRowCount() - 1;\n\n if (rowIndexForPixel > lastRowIndex) {\n return lastRowIndex;\n }\n\n return rowIndexForPixel;\n }\n\n return 0;\n };\n\n InfiniteRowModel.prototype.getRowCount = function () {\n return this.infiniteCache ? this.infiniteCache.getRowCount() : 0;\n };\n\n InfiniteRowModel.prototype.isRowPresent = function (rowNode) {\n var foundRowNode = this.getRowNode(rowNode.id);\n return !!foundRowNode;\n };\n\n InfiniteRowModel.prototype.refreshCache = function () {\n if (this.infiniteCache) {\n this.infiniteCache.refreshCache();\n }\n };\n\n InfiniteRowModel.prototype.purgeCache = function () {\n if (this.infiniteCache) {\n this.infiniteCache.purgeCache();\n }\n }; // for iRowModel\n\n\n InfiniteRowModel.prototype.isLastRowIndexKnown = function () {\n if (this.infiniteCache) {\n return this.infiniteCache.isLastRowIndexKnown();\n }\n\n return false;\n };\n\n InfiniteRowModel.prototype.setRowCount = function (rowCount, lastRowIndexKnown) {\n if (this.infiniteCache) {\n this.infiniteCache.setRowCount(rowCount, lastRowIndexKnown);\n }\n };\n\n __decorate$2([Autowired('filterManager')], InfiniteRowModel.prototype, \"filterManager\", void 0);\n\n __decorate$2([Autowired('sortController')], InfiniteRowModel.prototype, \"sortController\", void 0);\n\n __decorate$2([Autowired('selectionService')], InfiniteRowModel.prototype, \"selectionService\", void 0);\n\n __decorate$2([Autowired('rowRenderer')], InfiniteRowModel.prototype, \"rowRenderer\", void 0);\n\n __decorate$2([Autowired('rowNodeBlockLoader')], InfiniteRowModel.prototype, \"rowNodeBlockLoader\", void 0);\n\n __decorate$2([PostConstruct], InfiniteRowModel.prototype, \"init\", null);\n\n __decorate$2([PreDestroy], InfiniteRowModel.prototype, \"destroyDatasource\", null);\n\n InfiniteRowModel = __decorate$2([Bean('rowModel')], InfiniteRowModel);\n return InfiniteRowModel;\n}(BeanStub);\n\nvar InfiniteRowModelModule = {\n moduleName: ModuleNames.InfiniteRowModelModule,\n rowModels: {\n infinite: InfiniteRowModel\n }\n};\n\nvar BaseCreator =\n/** @class */\nfunction () {\n function BaseCreator() {}\n\n BaseCreator.prototype.setBeans = function (beans) {\n this.beans = beans;\n };\n\n BaseCreator.prototype.getFileName = function (fileName) {\n var extension = this.getDefaultFileExtension();\n\n if (fileName == null || !fileName.length) {\n fileName = this.getDefaultFileName();\n }\n\n return fileName.indexOf('.') === -1 ? fileName + \".\" + extension : fileName;\n };\n\n BaseCreator.prototype.getData = function (params) {\n var serializingSession = this.createSerializingSession(params);\n var data = this.beans.gridSerializer.serialize(serializingSession, params);\n return data;\n };\n\n return BaseCreator;\n}();\n\nvar BaseGridSerializingSession =\n/** @class */\nfunction () {\n function BaseGridSerializingSession(config) {\n this.groupColumns = [];\n var columnModel = config.columnModel,\n valueService = config.valueService,\n gridOptionsWrapper = config.gridOptionsWrapper,\n processCellCallback = config.processCellCallback,\n processHeaderCallback = config.processHeaderCallback,\n processGroupHeaderCallback = config.processGroupHeaderCallback,\n processRowGroupCallback = config.processRowGroupCallback;\n this.columnModel = columnModel;\n this.valueService = valueService;\n this.gridOptionsWrapper = gridOptionsWrapper;\n this.processCellCallback = processCellCallback;\n this.processHeaderCallback = processHeaderCallback;\n this.processGroupHeaderCallback = processGroupHeaderCallback;\n this.processRowGroupCallback = processRowGroupCallback;\n }\n\n BaseGridSerializingSession.prototype.prepare = function (columnsToExport) {\n this.groupColumns = columnsToExport.filter(function (col) {\n return !!col.getColDef().showRowGroup;\n });\n };\n\n BaseGridSerializingSession.prototype.extractHeaderValue = function (column) {\n var value = this.getHeaderName(this.processHeaderCallback, column);\n return value != null ? value : '';\n };\n\n BaseGridSerializingSession.prototype.extractRowCellValue = function (column, index, accumulatedRowIndex, type, node) {\n // we render the group summary text e.g. \"-> Parent -> Child\"...\n var value = this.shouldRenderGroupSummaryCell(node, column, index) ? this.createValueForGroupNode(node) : this.valueService.getValue(column, node);\n var processedValue = this.processCell({\n accumulatedRowIndex: accumulatedRowIndex,\n rowNode: node,\n column: column,\n value: value,\n processCellCallback: this.processCellCallback,\n type: type\n });\n return processedValue != null ? processedValue : '';\n };\n\n BaseGridSerializingSession.prototype.shouldRenderGroupSummaryCell = function (node, column, currentColumnIndex) {\n var _a;\n\n var isGroupNode = node && node.group; // only on group rows\n\n if (!isGroupNode) {\n return false;\n }\n\n var currentColumnGroupIndex = this.groupColumns.indexOf(column);\n\n if (currentColumnGroupIndex !== -1 && ((_a = node.groupData) === null || _a === void 0 ? void 0 : _a[column.getId()])) {\n return true;\n }\n\n var isGroupUseEntireRow = this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode());\n return currentColumnIndex === 0 && isGroupUseEntireRow;\n };\n\n BaseGridSerializingSession.prototype.getHeaderName = function (callback, column) {\n if (callback) {\n return callback({\n column: column,\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n context: this.gridOptionsWrapper.getContext()\n });\n }\n\n return this.columnModel.getDisplayNameForColumn(column, 'csv', true);\n };\n\n BaseGridSerializingSession.prototype.createValueForGroupNode = function (node) {\n if (this.processRowGroupCallback) {\n return this.processRowGroupCallback({\n node: node,\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n context: this.gridOptionsWrapper.getContext()\n });\n }\n\n var keys = [node.key];\n\n if (!this.gridOptionsWrapper.isGroupMultiAutoColumn()) {\n while (node.parent) {\n node = node.parent;\n keys.push(node.key);\n }\n }\n\n return keys.reverse().join(' -> ');\n };\n\n BaseGridSerializingSession.prototype.processCell = function (params) {\n var accumulatedRowIndex = params.accumulatedRowIndex,\n rowNode = params.rowNode,\n column = params.column,\n value = params.value,\n processCellCallback = params.processCellCallback,\n type = params.type;\n\n if (processCellCallback) {\n return processCellCallback({\n accumulatedRowIndex: accumulatedRowIndex,\n column: column,\n node: rowNode,\n value: value,\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n context: this.gridOptionsWrapper.getContext(),\n type: type\n });\n }\n\n return value != null ? value : '';\n };\n\n return BaseGridSerializingSession;\n}();\n\nvar Downloader =\n/** @class */\nfunction () {\n function Downloader() {}\n\n Downloader.download = function (fileName, content) {\n var win = document.defaultView || window;\n\n if (!win) {\n console.warn('AG Grid: There is no `window` associated with the current `document`');\n return;\n }\n\n var element = document.createElement('a'); // @ts-ignore\n\n var url = win.URL.createObjectURL(content);\n element.setAttribute('href', url);\n element.setAttribute('download', fileName);\n element.style.display = 'none';\n document.body.appendChild(element);\n element.dispatchEvent(new MouseEvent('click', {\n bubbles: false,\n cancelable: true,\n view: win\n }));\n document.body.removeChild(element);\n win.setTimeout(function () {\n // @ts-ignore\n win.URL.revokeObjectURL(url);\n }, 0);\n };\n\n return Downloader;\n}();\n\nvar __extends$2 = undefined && undefined.__extends || function () {\n var _extendStatics183 = function extendStatics(d, b) {\n _extendStatics183 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics183(d, b);\n };\n\n return function (d, b) {\n _extendStatics183(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar LINE_SEPARATOR$1 = '\\r\\n';\n\nvar CsvSerializingSession =\n/** @class */\nfunction (_super) {\n __extends$2(CsvSerializingSession, _super);\n\n function CsvSerializingSession(config) {\n var _this = _super.call(this, config) || this;\n\n _this.isFirstLine = true;\n _this.result = '';\n var suppressQuotes = config.suppressQuotes,\n columnSeparator = config.columnSeparator;\n _this.suppressQuotes = suppressQuotes;\n _this.columnSeparator = columnSeparator;\n return _this;\n }\n\n CsvSerializingSession.prototype.addCustomContent = function (content) {\n var _this = this;\n\n if (!content) {\n return;\n }\n\n if (typeof content === 'string') {\n if (!/^\\s*\\n/.test(content)) {\n this.beginNewLine();\n } // replace whatever newlines are supplied with the style we're using\n\n\n content = content.replace(/\\r?\\n/g, LINE_SEPARATOR$1);\n this.result += content;\n } else {\n content.forEach(function (row) {\n _this.beginNewLine();\n\n row.forEach(function (cell, index) {\n if (index !== 0) {\n _this.result += _this.columnSeparator;\n }\n\n _this.result += _this.putInQuotes(cell.data.value || '');\n\n if (cell.mergeAcross) {\n _this.appendEmptyCells(cell.mergeAcross);\n }\n });\n });\n }\n };\n\n CsvSerializingSession.prototype.onNewHeaderGroupingRow = function () {\n this.beginNewLine();\n return {\n onColumn: this.onNewHeaderGroupingRowColumn.bind(this)\n };\n };\n\n CsvSerializingSession.prototype.onNewHeaderGroupingRowColumn = function (header, index, span) {\n if (index != 0) {\n this.result += this.columnSeparator;\n }\n\n this.result += this.putInQuotes(header);\n this.appendEmptyCells(span);\n };\n\n CsvSerializingSession.prototype.appendEmptyCells = function (count) {\n for (var i = 1; i <= count; i++) {\n this.result += this.columnSeparator + this.putInQuotes(\"\");\n }\n };\n\n CsvSerializingSession.prototype.onNewHeaderRow = function () {\n this.beginNewLine();\n return {\n onColumn: this.onNewHeaderRowColumn.bind(this)\n };\n };\n\n CsvSerializingSession.prototype.onNewHeaderRowColumn = function (column, index) {\n if (index != 0) {\n this.result += this.columnSeparator;\n }\n\n this.result += this.putInQuotes(this.extractHeaderValue(column));\n };\n\n CsvSerializingSession.prototype.onNewBodyRow = function () {\n this.beginNewLine();\n return {\n onColumn: this.onNewBodyRowColumn.bind(this)\n };\n };\n\n CsvSerializingSession.prototype.onNewBodyRowColumn = function (column, index, node) {\n if (index != 0) {\n this.result += this.columnSeparator;\n }\n\n this.result += this.putInQuotes(this.extractRowCellValue(column, index, index, Constants.EXPORT_TYPE_CSV, node));\n };\n\n CsvSerializingSession.prototype.putInQuotes = function (value) {\n if (this.suppressQuotes) {\n return value;\n }\n\n if (value === null || value === undefined) {\n return '\"\"';\n }\n\n var stringValue;\n\n if (typeof value === 'string') {\n stringValue = value;\n } else if (typeof value.toString === 'function') {\n stringValue = value.toString();\n } else {\n console.warn('AG Grid: unknown value type during csv conversion');\n stringValue = '';\n } // replace each \" with \"\" (ie two sets of double quotes is how to do double quotes in csv)\n\n\n var valueEscaped = stringValue.replace(/\"/g, \"\\\"\\\"\");\n return '\"' + valueEscaped + '\"';\n };\n\n CsvSerializingSession.prototype.parse = function () {\n return this.result;\n };\n\n CsvSerializingSession.prototype.beginNewLine = function () {\n if (!this.isFirstLine) {\n this.result += LINE_SEPARATOR$1;\n }\n\n this.isFirstLine = false;\n };\n\n return CsvSerializingSession;\n}(BaseGridSerializingSession);\n\nvar __extends$1 = undefined && undefined.__extends || function () {\n var _extendStatics184 = function extendStatics(d, b) {\n _extendStatics184 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics184(d, b);\n };\n\n return function (d, b) {\n _extendStatics184(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar CsvCreator =\n/** @class */\nfunction (_super) {\n __extends$1(CsvCreator, _super);\n\n function CsvCreator() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n CsvCreator.prototype.postConstruct = function () {\n this.setBeans({\n gridSerializer: this.gridSerializer,\n gridOptionsWrapper: this.gridOptionsWrapper\n });\n };\n\n CsvCreator.prototype.getMergedParams = function (params) {\n var baseParams = this.gridOptionsWrapper.getDefaultExportParams('csv');\n return Object.assign({}, baseParams, params);\n };\n\n CsvCreator.prototype.export = function (userParams) {\n if (this.isExportSuppressed()) {\n console.warn(\"AG Grid: Export cancelled. Export is not allowed as per your configuration.\");\n return '';\n }\n\n var mergedParams = this.getMergedParams(userParams);\n var data = this.getData(mergedParams);\n var packagedFile = new Blob([\"\\uFEFF\", data], {\n type: 'text/plain'\n });\n Downloader.download(this.getFileName(mergedParams.fileName), packagedFile);\n return data;\n };\n\n CsvCreator.prototype.exportDataAsCsv = function (params) {\n return this.export(params);\n };\n\n CsvCreator.prototype.getDataAsCsv = function (params) {\n var mergedParams = this.getMergedParams(params);\n return this.getData(mergedParams);\n };\n\n CsvCreator.prototype.getDefaultFileName = function () {\n return 'export.csv';\n };\n\n CsvCreator.prototype.getDefaultFileExtension = function () {\n return 'csv';\n };\n\n CsvCreator.prototype.createSerializingSession = function (params) {\n var _a = this,\n columnModel = _a.columnModel,\n valueService = _a.valueService,\n gridOptionsWrapper = _a.gridOptionsWrapper;\n\n var _b = params,\n processCellCallback = _b.processCellCallback,\n processHeaderCallback = _b.processHeaderCallback,\n processGroupHeaderCallback = _b.processGroupHeaderCallback,\n processRowGroupCallback = _b.processRowGroupCallback,\n suppressQuotes = _b.suppressQuotes,\n columnSeparator = _b.columnSeparator;\n return new CsvSerializingSession({\n columnModel: columnModel,\n valueService: valueService,\n gridOptionsWrapper: gridOptionsWrapper,\n processCellCallback: processCellCallback || undefined,\n processHeaderCallback: processHeaderCallback || undefined,\n processGroupHeaderCallback: processGroupHeaderCallback || undefined,\n processRowGroupCallback: processRowGroupCallback || undefined,\n suppressQuotes: suppressQuotes || false,\n columnSeparator: columnSeparator || ','\n });\n };\n\n CsvCreator.prototype.isExportSuppressed = function () {\n return this.gridOptionsWrapper.isSuppressCsvExport();\n };\n\n __decorate$1([Autowired('columnModel')], CsvCreator.prototype, \"columnModel\", void 0);\n\n __decorate$1([Autowired('valueService')], CsvCreator.prototype, \"valueService\", void 0);\n\n __decorate$1([Autowired('gridSerializer')], CsvCreator.prototype, \"gridSerializer\", void 0);\n\n __decorate$1([Autowired('gridOptionsWrapper')], CsvCreator.prototype, \"gridOptionsWrapper\", void 0);\n\n __decorate$1([PostConstruct], CsvCreator.prototype, \"postConstruct\", null);\n\n CsvCreator = __decorate$1([Bean('csvCreator')], CsvCreator);\n return CsvCreator;\n}(BaseCreator);\n\nvar __extends = undefined && undefined.__extends || function () {\n var _extendStatics185 = function extendStatics(d, b) {\n _extendStatics185 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics185(d, b);\n };\n\n return function (d, b) {\n _extendStatics185(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar RowType;\n\n(function (RowType) {\n RowType[RowType[\"HEADER_GROUPING\"] = 0] = \"HEADER_GROUPING\";\n RowType[RowType[\"HEADER\"] = 1] = \"HEADER\";\n RowType[RowType[\"BODY\"] = 2] = \"BODY\";\n})(RowType || (RowType = {}));\n\nvar GridSerializer =\n/** @class */\nfunction (_super) {\n __extends(GridSerializer, _super);\n\n function GridSerializer() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n GridSerializer.prototype.serialize = function (gridSerializingSession, params) {\n if (params === void 0) {\n params = {};\n }\n\n var columnsToExport = this.getColumnsToExport(params.allColumns, params.columnKeys);\n\n var serializeChain = _.compose( // first pass, put in the header names of the cols\n this.prepareSession(columnsToExport), this.prependContent(params), this.exportColumnGroups(params, columnsToExport), this.exportHeaders(params, columnsToExport), this.processPinnedTopRows(params, columnsToExport), this.processRows(params, columnsToExport), this.processPinnedBottomRows(params, columnsToExport), this.appendContent(params));\n\n return serializeChain(gridSerializingSession).parse();\n };\n\n GridSerializer.prototype.processRow = function (gridSerializingSession, params, columnsToExport, node) {\n var rowSkipper = params.shouldRowBeSkipped || function () {\n return false;\n };\n\n var gridOptionsWrapper = this.gridOptionsWrapper;\n var context = gridOptionsWrapper.getContext();\n var api = gridOptionsWrapper.getApi();\n var columnApi = gridOptionsWrapper.getColumnApi();\n var skipSingleChildrenGroup = gridOptionsWrapper.isGroupRemoveSingleChildren();\n var skipLowestSingleChildrenGroup = gridOptionsWrapper.isGroupRemoveLowestSingleChildren(); // if onlySelected, we ignore groupHideOpenParents as the user has explicitly selected the rows they wish to export.\n // similarly, if specific rowNodes are provided we do the same. (the clipboard service uses rowNodes to define which rows to export)\n\n var isClipboardExport = params.rowPositions != null;\n var isExplicitExportSelection = isClipboardExport || !!params.onlySelected;\n var hideOpenParents = gridOptionsWrapper.isGroupHideOpenParents() && !isExplicitExportSelection;\n var isLeafNode = this.columnModel.isPivotMode() ? node.leafGroup : !node.group;\n var skipRowGroups = params.skipGroups || params.skipRowGroups;\n var shouldSkipLowestGroup = skipLowestSingleChildrenGroup && node.leafGroup;\n var shouldSkipCurrentGroup = node.allChildrenCount === 1 && (skipSingleChildrenGroup || shouldSkipLowestGroup);\n\n if (skipRowGroups && params.skipGroups) {\n _.doOnce(function () {\n return console.warn('AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.');\n }, 'gridSerializer-skipGroups');\n }\n\n if (!isLeafNode && (params.skipRowGroups || shouldSkipCurrentGroup || hideOpenParents) || params.onlySelected && !node.isSelected() || params.skipPinnedTop && node.rowPinned === 'top' || params.skipPinnedBottom && node.rowPinned === 'bottom') {\n return;\n } // if we are in pivotMode, then the grid will show the root node only\n // if it's not a leaf group\n\n\n var nodeIsRootNode = node.level === -1;\n\n if (nodeIsRootNode && !node.leafGroup && (!node.footer || !isClipboardExport)) {\n return;\n }\n\n var shouldRowBeSkipped = rowSkipper({\n node: node,\n api: api,\n columnApi: columnApi,\n context: context\n });\n\n if (shouldRowBeSkipped) {\n return;\n }\n\n var rowAccumulator = gridSerializingSession.onNewBodyRow();\n columnsToExport.forEach(function (column, index) {\n rowAccumulator.onColumn(column, index, node);\n });\n\n if (params.getCustomContentBelowRow) {\n var content = params.getCustomContentBelowRow({\n node: node,\n api: api,\n columnApi: columnApi,\n context: context\n });\n\n if (content) {\n gridSerializingSession.addCustomContent(content);\n }\n }\n };\n\n GridSerializer.prototype.appendContent = function (params) {\n return function (gridSerializingSession) {\n var appendContent = params.customFooter || params.appendContent;\n\n if (appendContent) {\n if (params.customFooter) {\n _.doOnce(function () {\n return console.warn('AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.');\n }, 'gridSerializer-customFooter');\n }\n\n gridSerializingSession.addCustomContent(appendContent);\n }\n\n return gridSerializingSession;\n };\n };\n\n GridSerializer.prototype.prependContent = function (params) {\n return function (gridSerializingSession) {\n var prependContent = params.customHeader || params.prependContent;\n\n if (prependContent) {\n if (params.customHeader) {\n _.doOnce(function () {\n return console.warn('AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.');\n }, 'gridSerializer-customHeader');\n }\n\n gridSerializingSession.addCustomContent(prependContent);\n }\n\n return gridSerializingSession;\n };\n };\n\n GridSerializer.prototype.prepareSession = function (columnsToExport) {\n return function (gridSerializingSession) {\n gridSerializingSession.prepare(columnsToExport);\n return gridSerializingSession;\n };\n };\n\n GridSerializer.prototype.exportColumnGroups = function (params, columnsToExport) {\n var _this = this;\n\n return function (gridSerializingSession) {\n if (!params.skipColumnGroupHeaders) {\n var groupInstanceIdCreator = new GroupInstanceIdCreator();\n\n var displayedGroups = _this.displayedGroupCreator.createDisplayedGroups(columnsToExport, _this.columnModel.getGridBalancedTree(), groupInstanceIdCreator, null);\n\n _this.recursivelyAddHeaderGroups(displayedGroups, gridSerializingSession, params.processGroupHeaderCallback);\n } else if (params.columnGroups) {\n _.doOnce(function () {\n return console.warn('AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.');\n }, 'gridSerializer-columnGroups');\n }\n\n return gridSerializingSession;\n };\n };\n\n GridSerializer.prototype.exportHeaders = function (params, columnsToExport) {\n return function (gridSerializingSession) {\n if (!params.skipHeader && !params.skipColumnHeaders) {\n var gridRowIterator_1 = gridSerializingSession.onNewHeaderRow();\n columnsToExport.forEach(function (column, index) {\n gridRowIterator_1.onColumn(column, index, undefined);\n });\n } else if (params.skipHeader) {\n _.doOnce(function () {\n return console.warn('AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.');\n }, 'gridSerializer-skipHeader');\n }\n\n return gridSerializingSession;\n };\n };\n\n GridSerializer.prototype.processPinnedTopRows = function (params, columnsToExport) {\n var _this = this;\n\n return function (gridSerializingSession) {\n var processRow = _this.processRow.bind(_this, gridSerializingSession, params, columnsToExport);\n\n if (params.rowPositions) {\n params.rowPositions // only pinnedTop rows, other models are processed by `processRows` and `processPinnedBottomsRows`\n .filter(function (position) {\n return position.rowPinned === 'top';\n }).sort(function (a, b) {\n return a.rowIndex - b.rowIndex;\n }).map(function (position) {\n return _this.pinnedRowModel.getPinnedTopRow(position.rowIndex);\n }).forEach(processRow);\n } else {\n _this.pinnedRowModel.forEachPinnedTopRow(processRow);\n }\n\n return gridSerializingSession;\n };\n };\n\n GridSerializer.prototype.processRows = function (params, columnsToExport) {\n var _this = this;\n\n return function (gridSerializingSession) {\n // when in pivot mode, we always render cols on screen, never 'all columns'\n var rowModel = _this.rowModel;\n var rowModelType = rowModel.getType();\n var usingCsrm = rowModelType === Constants.ROW_MODEL_TYPE_CLIENT_SIDE;\n var usingSsrm = rowModelType === Constants.ROW_MODEL_TYPE_SERVER_SIDE;\n var onlySelectedNonStandardModel = !usingCsrm && params.onlySelected;\n\n var processRow = _this.processRow.bind(_this, gridSerializingSession, params, columnsToExport);\n\n if (params.rowPositions) {\n params.rowPositions // pinnedRows are processed by `processPinnedTopRows` and `processPinnedBottomsRows`\n .filter(function (position) {\n return position.rowPinned == null;\n }).sort(function (a, b) {\n return a.rowIndex - b.rowIndex;\n }).map(function (position) {\n return rowModel.getRow(position.rowIndex);\n }).forEach(processRow);\n } else if (_this.columnModel.isPivotMode()) {\n if (usingCsrm) {\n rowModel.forEachPivotNode(processRow);\n } else {\n // must be enterprise, so we can just loop through all the nodes\n rowModel.forEachNode(processRow);\n }\n } else {\n // onlySelectedAllPages: user doing pagination and wants selected items from\n // other pages, so cannot use the standard row model as it won't have rows from\n // other pages.\n // onlySelectedNonStandardModel: if user wants selected in non standard row model\n // (eg viewport) then again RowModel cannot be used, so need to use selected instead.\n if (params.onlySelectedAllPages || onlySelectedNonStandardModel) {\n var selectedNodes = _this.selectionService.getSelectedNodes();\n\n selectedNodes.forEach(processRow);\n } else {\n // here is everything else - including standard row model and selected. we don't use\n // the selection model even when just using selected, so that the result is the order\n // of the rows appearing on the screen.\n if (usingCsrm) {\n rowModel.forEachNodeAfterFilterAndSort(processRow);\n } else if (usingSsrm) {\n rowModel.forEachNodeAfterFilterAndSort(processRow);\n } else {\n rowModel.forEachNode(processRow);\n }\n }\n }\n\n return gridSerializingSession;\n };\n };\n\n GridSerializer.prototype.processPinnedBottomRows = function (params, columnsToExport) {\n var _this = this;\n\n return function (gridSerializingSession) {\n var processRow = _this.processRow.bind(_this, gridSerializingSession, params, columnsToExport);\n\n if (params.rowPositions) {\n params.rowPositions // only pinnedBottom rows, other models are processed by `processRows` and `processPinnedTopRows`\n .filter(function (position) {\n return position.rowPinned === 'bottom';\n }).sort(function (a, b) {\n return a.rowIndex - b.rowIndex;\n }).map(function (position) {\n return _this.pinnedRowModel.getPinnedBottomRow(position.rowIndex);\n }).forEach(processRow);\n } else {\n _this.pinnedRowModel.forEachPinnedBottomRow(processRow);\n }\n\n return gridSerializingSession;\n };\n };\n\n GridSerializer.prototype.getColumnsToExport = function (allColumns, columnKeys) {\n if (allColumns === void 0) {\n allColumns = false;\n }\n\n var isPivotMode = this.columnModel.isPivotMode();\n\n if (columnKeys && columnKeys.length) {\n return this.columnModel.getGridColumns(columnKeys);\n }\n\n if (allColumns && !isPivotMode) {\n // add auto group column for tree data\n var columns = this.gridOptionsWrapper.isTreeData() ? this.columnModel.getGridColumns([Constants.GROUP_AUTO_COLUMN_ID]) : [];\n return columns.concat(this.columnModel.getAllPrimaryColumns() || []);\n }\n\n return this.columnModel.getAllDisplayedColumns();\n };\n\n GridSerializer.prototype.recursivelyAddHeaderGroups = function (displayedGroups, gridSerializingSession, processGroupHeaderCallback) {\n var directChildrenHeaderGroups = [];\n displayedGroups.forEach(function (columnGroupChild) {\n var columnGroup = columnGroupChild;\n\n if (!columnGroup.getChildren) {\n return;\n }\n\n columnGroup.getChildren().forEach(function (it) {\n return directChildrenHeaderGroups.push(it);\n });\n });\n\n if (displayedGroups.length > 0 && displayedGroups[0] instanceof ColumnGroup) {\n this.doAddHeaderHeader(gridSerializingSession, displayedGroups, processGroupHeaderCallback);\n }\n\n if (directChildrenHeaderGroups && directChildrenHeaderGroups.length > 0) {\n this.recursivelyAddHeaderGroups(directChildrenHeaderGroups, gridSerializingSession, processGroupHeaderCallback);\n }\n };\n\n GridSerializer.prototype.doAddHeaderHeader = function (gridSerializingSession, displayedGroups, processGroupHeaderCallback) {\n var _this = this;\n\n var gridRowIterator = gridSerializingSession.onNewHeaderGroupingRow();\n var columnIndex = 0;\n displayedGroups.forEach(function (columnGroupChild) {\n var columnGroup = columnGroupChild;\n var name;\n\n if (processGroupHeaderCallback) {\n name = processGroupHeaderCallback({\n columnGroup: columnGroup,\n api: _this.gridOptionsWrapper.getApi(),\n columnApi: _this.gridOptionsWrapper.getColumnApi(),\n context: _this.gridOptionsWrapper.getContext()\n });\n } else {\n name = _this.columnModel.getDisplayNameForColumnGroup(columnGroup, 'header');\n }\n\n var collapsibleGroupRanges = columnGroup.getLeafColumns().reduce(function (collapsibleGroups, currentColumn, currentIdx, arr) {\n var lastGroup = _.last(collapsibleGroups);\n\n var groupShow = currentColumn.getColumnGroupShow() === 'open';\n\n if (!groupShow) {\n if (lastGroup && lastGroup[1] == null) {\n lastGroup[1] = currentIdx - 1;\n }\n } else if (!lastGroup || lastGroup[1] != null) {\n lastGroup = [currentIdx];\n collapsibleGroups.push(lastGroup);\n }\n\n if (currentIdx === arr.length - 1 && lastGroup && lastGroup[1] == null) {\n lastGroup[1] = currentIdx;\n }\n\n return collapsibleGroups;\n }, []);\n gridRowIterator.onColumn(name || '', columnIndex++, columnGroup.getLeafColumns().length - 1, collapsibleGroupRanges);\n });\n };\n\n __decorate([Autowired('displayedGroupCreator')], GridSerializer.prototype, \"displayedGroupCreator\", void 0);\n\n __decorate([Autowired('columnModel')], GridSerializer.prototype, \"columnModel\", void 0);\n\n __decorate([Autowired('rowModel')], GridSerializer.prototype, \"rowModel\", void 0);\n\n __decorate([Autowired('pinnedRowModel')], GridSerializer.prototype, \"pinnedRowModel\", void 0);\n\n __decorate([Autowired('selectionService')], GridSerializer.prototype, \"selectionService\", void 0);\n\n __decorate([Autowired('rowPositionUtils')], GridSerializer.prototype, \"rowPositionUtils\", void 0);\n\n GridSerializer = __decorate([Bean(\"gridSerializer\")], GridSerializer);\n return GridSerializer;\n}(BeanStub);\n\nvar CsvExportModule = {\n moduleName: ModuleNames.CsvExportModule,\n beans: [CsvCreator, GridSerializer]\n};\nvar LINE_SEPARATOR = '\\r\\n';\n\nvar XmlFactory =\n/** @class */\nfunction () {\n function XmlFactory() {}\n\n XmlFactory.createHeader = function (headerElement) {\n if (headerElement === void 0) {\n headerElement = {};\n }\n\n var headerStart = '';\n var keys = ['version'];\n\n if (!headerElement.version) {\n headerElement.version = \"1.0\";\n }\n\n if (headerElement.encoding) {\n keys.push('encoding');\n }\n\n if (headerElement.standalone) {\n keys.push('standalone');\n }\n\n var att = keys.map(function (key) {\n return key + \"=\\\"\" + headerElement[key] + \"\\\"\";\n }).join(' ');\n return headerStart + \"xml \" + att + \" \" + headerEnd;\n };\n\n XmlFactory.createXml = function (xmlElement, booleanTransformer) {\n var _this = this;\n\n var props = '';\n\n if (xmlElement.properties) {\n if (xmlElement.properties.prefixedAttributes) {\n xmlElement.properties.prefixedAttributes.forEach(function (prefixedSet) {\n Object.keys(prefixedSet.map).forEach(function (key) {\n props += _this.returnAttributeIfPopulated(prefixedSet.prefix + key, prefixedSet.map[key], booleanTransformer);\n });\n });\n }\n\n if (xmlElement.properties.rawMap) {\n Object.keys(xmlElement.properties.rawMap).forEach(function (key) {\n props += _this.returnAttributeIfPopulated(key, xmlElement.properties.rawMap[key], booleanTransformer);\n });\n }\n }\n\n var result = '<' + xmlElement.name + props;\n\n if (!xmlElement.children && xmlElement.textNode == null) {\n return result + '/>' + LINE_SEPARATOR;\n }\n\n if (xmlElement.textNode != null) {\n return result + '>' + xmlElement.textNode + '' + LINE_SEPARATOR;\n }\n\n result += '>' + LINE_SEPARATOR;\n\n if (xmlElement.children) {\n xmlElement.children.forEach(function (it) {\n result += _this.createXml(it, booleanTransformer);\n });\n }\n\n return result + '' + LINE_SEPARATOR;\n };\n\n XmlFactory.returnAttributeIfPopulated = function (key, value, booleanTransformer) {\n if (!value && value !== '' && value !== 0) {\n return '';\n }\n\n var xmlValue = value;\n\n if (typeof value === 'boolean') {\n if (booleanTransformer) {\n xmlValue = booleanTransformer(value);\n }\n }\n\n return \" \" + key + \"=\\\"\" + xmlValue + \"\\\"\";\n };\n\n return XmlFactory;\n}();\n\nvar __values = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}; // table for crc calculation\n// from: https://referencesource.microsoft.com/#System/sys/System/IO/compression/Crc32Helper.cs,3b31978c7d7f7246,references\n\n\nvar crcTable = new Uint32Array([0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2, 0xf3b97148, 0x84be41de, 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7, 0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9, 0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172, 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, 0x35b5a8fa, 0x42b2986c, 0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59, 0x26d930ac, 0x51de003a, 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423, 0xcfba9599, 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924, 0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190, 0x01db7106, 0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f, 0x9fbfe4a5, 0xe8b8d433, 0x7807c9a2, 0x0f00f934, 0x9609a88e, 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d, 0x91646c97, 0xe6635c01, 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e, 0x6c0695ed, 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950, 0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3, 0xfbd44c65, 0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2, 0x4adfa541, 0x3dd895d7, 0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a, 0x346ed9fc, 0xad678846, 0xda60b8d0, 0x44042d73, 0x33031de5, 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa, 0xbe0b1010, 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f, 0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17, 0x2eb40d81, 0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6, 0x03b6e20c, 0x74b1d29a, 0xead54739, 0x9dd277af, 0x04db2615, 0x73dc1683, 0xe3630b12, 0x94643b84, 0x0d6d6a3e, 0x7a6a5aa8, 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1, 0xf00f9344, 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb, 0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a, 0x67dd4acc, 0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5, 0xd6d6a3e8, 0xa1d1937e, 0x38d8c2c4, 0x4fdff252, 0xd1bb67f1, 0xa6bc5767, 0x3fb506dd, 0x48b2364b, 0xd80d2bda, 0xaf0a1b4c, 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55, 0x316e8eef, 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236, 0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe, 0xb2bd0b28, 0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31, 0x2cd99e8b, 0x5bdeae1d, 0x9b64c2b0, 0xec63f226, 0x756aa39c, 0x026d930a, 0x9c0906a9, 0xeb0e363f, 0x72076785, 0x05005713, 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38, 0x92d28e9b, 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242, 0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1, 0x18b74777, 0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c, 0x8f659eff, 0xf862ae69, 0x616bffd3, 0x166ccf45, 0xa00ae278, 0xd70dd2ee, 0x4e048354, 0x3903b3c2, 0xa7672661, 0xd06016f7, 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc, 0x40df0b66, 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9, 0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605, 0xcdd70693, 0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8, 0x5d681b02, 0x2a6f2b94, 0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d]);\n\nvar ZipContainer =\n/** @class */\nfunction () {\n function ZipContainer() {}\n\n ZipContainer.addFolders = function (paths) {\n paths.forEach(this.addFolder.bind(this));\n };\n\n ZipContainer.addFolder = function (path) {\n this.folders.push({\n path: path,\n created: new Date(),\n isBase64: false\n });\n };\n\n ZipContainer.addFile = function (path, content, isBase64) {\n if (isBase64 === void 0) {\n isBase64 = false;\n }\n\n this.files.push({\n path: path,\n created: new Date(),\n content: content,\n isBase64: isBase64\n });\n };\n\n ZipContainer.getContent = function (mimeType) {\n if (mimeType === void 0) {\n mimeType = 'application/zip';\n }\n\n var textOutput = this.buildFileStream();\n var uInt8Output = this.buildUint8Array(textOutput);\n this.clearStream();\n return new Blob([uInt8Output], {\n type: mimeType\n });\n };\n\n ZipContainer.clearStream = function () {\n this.folders = [];\n this.files = [];\n };\n\n ZipContainer.buildFileStream = function (fData) {\n var e_1, _a;\n\n if (fData === void 0) {\n fData = '';\n }\n\n var totalFiles = this.folders.concat(this.files);\n var len = totalFiles.length;\n var foData = '';\n var lL = 0;\n var cL = 0;\n\n try {\n for (var totalFiles_1 = __values(totalFiles), totalFiles_1_1 = totalFiles_1.next(); !totalFiles_1_1.done; totalFiles_1_1 = totalFiles_1.next()) {\n var currentFile = totalFiles_1_1.value;\n\n var _b = this.getHeader(currentFile, lL),\n fileHeader = _b.fileHeader,\n folderHeader = _b.folderHeader,\n content = _b.content;\n\n lL += fileHeader.length + content.length;\n cL += folderHeader.length;\n fData += fileHeader + content;\n foData += folderHeader;\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (totalFiles_1_1 && !totalFiles_1_1.done && (_a = totalFiles_1.return)) _a.call(totalFiles_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n var foEnd = this.buildFolderEnd(len, cL, lL);\n return fData + foData + foEnd;\n };\n\n ZipContainer.getHeader = function (currentFile, offset) {\n var content = currentFile.content,\n path = currentFile.path,\n created = currentFile.created,\n isBase64 = currentFile.isBase64;\n var utf8_encode = _.utf8_encode,\n decToHex = _.decToHex;\n var utfPath = utf8_encode(path);\n var isUTF8 = utfPath !== path;\n var time = this.convertTime(created);\n var dt = this.convertDate(created);\n var extraFields = '';\n\n if (isUTF8) {\n var uExtraFieldPath = decToHex(1, 1) + decToHex(this.getFromCrc32Table(utfPath), 4) + utfPath;\n extraFields = \"\\x75\\x70\" + decToHex(uExtraFieldPath.length, 2) + uExtraFieldPath;\n }\n\n var _a = !content ? {\n size: 0,\n content: ''\n } : this.getConvertedContent(content, isBase64),\n size = _a.size,\n convertedContent = _a.content;\n\n var header = '\\x0A\\x00' + (isUTF8 ? '\\x00\\x08' : '\\x00\\x00') + '\\x00\\x00' + decToHex(time, 2) + // last modified time\n decToHex(dt, 2) + // last modified date\n decToHex(size ? this.getFromCrc32Table(convertedContent) : 0, 4) + decToHex(size, 4) + // compressed size\n decToHex(size, 4) + // uncompressed size\n decToHex(utfPath.length, 2) + // file name length\n decToHex(extraFields.length, 2); // extra field length\n\n var fileHeader = 'PK\\x03\\x04' + header + utfPath + extraFields;\n var folderHeader = 'PK\\x01\\x02' + // central header\n '\\x14\\x00' + header + // file header\n '\\x00\\x00' + '\\x00\\x00' + '\\x00\\x00' + (content ? '\\x00\\x00\\x00\\x00' : '\\x10\\x00\\x00\\x00') + // external file attributes\n decToHex(offset, 4) + // relative offset of local header\n utfPath + // file name\n extraFields; // extra field\n\n return {\n fileHeader: fileHeader,\n folderHeader: folderHeader,\n content: convertedContent || ''\n };\n };\n\n ZipContainer.getConvertedContent = function (content, isBase64) {\n if (isBase64 === void 0) {\n isBase64 = false;\n }\n\n if (isBase64) {\n content = content.split(';base64,')[1];\n }\n\n content = isBase64 ? atob(content) : content;\n return {\n size: content.length,\n content: content\n };\n };\n\n ZipContainer.buildFolderEnd = function (tLen, cLen, lLen) {\n var decToHex = _.decToHex;\n return 'PK\\x05\\x06' + // central folder end\n '\\x00\\x00' + '\\x00\\x00' + decToHex(tLen, 2) + // total number of entries in the central folder\n decToHex(tLen, 2) + // total number of entries in the central folder\n decToHex(cLen, 4) + // size of the central folder\n decToHex(lLen, 4) + // central folder start offset\n '\\x00\\x00';\n };\n\n ZipContainer.buildUint8Array = function (content) {\n var uint8 = new Uint8Array(content.length);\n\n for (var i = 0; i < uint8.length; i++) {\n uint8[i] = content.charCodeAt(i);\n }\n\n return uint8;\n };\n\n ZipContainer.getFromCrc32Table = function (content) {\n if (!content.length) {\n return 0;\n }\n\n var size = content.length;\n var iterable = new Uint8Array(size);\n\n for (var i = 0; i < size; i++) {\n iterable[i] = content.charCodeAt(i);\n }\n\n var crc = 0 ^ -1;\n var j = 0;\n var k = 0;\n var l = 0;\n\n for (var i = 0; i < size; i++) {\n j = iterable[i];\n k = (crc ^ j) & 0xFF;\n l = crcTable[k];\n crc = crc >>> 8 ^ l;\n }\n\n return crc ^ -1;\n };\n\n ZipContainer.convertTime = function (date) {\n var time = date.getHours();\n time <<= 6;\n time = time | date.getMinutes();\n time <<= 5;\n time = time | date.getSeconds() / 2;\n return time;\n };\n\n ZipContainer.convertDate = function (date) {\n var dt = date.getFullYear() - 1980;\n dt <<= 4;\n dt = dt | date.getMonth() + 1;\n dt <<= 5;\n dt = dt | date.getDate();\n return dt;\n };\n\n ZipContainer.folders = [];\n ZipContainer.files = [];\n return ZipContainer;\n}();\n\nvar AllCommunityModules = [ClientSideRowModelModule, InfiniteRowModelModule, CsvExportModule];\nModuleRegistry.registerModules(AllCommunityModules);\nexport { AbstractHeaderCellCtrl, AgAbstractField, AgAngleSelect, AgCheckbox, AgColorPicker, AgDialog, AgGroupComponent, AgInputNumberField, AgInputRange, AgInputTextArea, AgInputTextField, AgMenuItemComponent, AgMenuList, AgMenuPanel, AgPanel, AgPromise, AgPromiseStatus, AgRadioButton, AgSelect, AgSlider, AgStackComponentsRegistry, AgToggleButton, AlignedGridsService, AllCommunityModules, AnimateShowChangeCellRenderer, AnimateSlideCellRenderer, AnimationFrameService, AutoScrollService, AutoWidthCalculator, Autowired, BarColumnLabelPlacement, BaseComponentWrapper, BaseCreator, BaseGridSerializingSession, Bean, BeanStub, Beans, BodyDropPivotTarget, BodyDropTarget, CellComp, CellCtrl, CellNavigationService, CellPositionUtils, CellRangeType, ChangedPath, CheckboxSelectionComponent, ClientSideRowModelModule, ClientSideRowModelSteps, ColDefUtil, Color, Column, ColumnApi, ColumnFactory, ColumnGroup, ColumnKeyCreator, ColumnModel, ColumnUtils, Component, ComponentUtil, Constants, Context, CssClassApplier, CssClassManager, CsvCreator, CsvExportModule, CtrlsService, CustomTooltipFeature, DateFilter, DisplayedGroupCreator, Downloader, DragAndDropService, DragService, DragSourceType, Environment, EventService, Events, ExcelFactoryMode, ExpressionService, FilterManager, FloatingFilterMapper, FocusService, Grid, GridApi, GridBodyComp, GridBodyCtrl, GridComp, GridCoreCreator, GridCtrl, GridHeaderComp, GridHeaderCtrl, GridOptionsWrapper, GridSerializer, GroupCellRenderer, GroupCellRendererCtrl, GroupInstanceIdCreator, HeaderCellCtrl, HeaderFilterCellComp, HeaderFilterCellCtrl, HeaderGroupCellCtrl, HeaderNavigationDirection, HeaderNavigationService, HeaderPositionUtils, HeaderRowComp, HeaderRowContainerComp, HeaderRowContainerCtrl, HeaderRowCtrl, HeaderRowType, HorizontalDirection, HorizontalResizeService, InfiniteRowModelModule, KeyCode, LargeTextCellEditor, LayoutCssClasses, Logger, LoggerFactory, ManagedFocusFeature, ModuleNames, ModuleRegistry, MouseEventService, MoveColumnFeature, NavigationService, NumberFilter, NumberSequence, Optional, PaginationProxy, PinnedRowModel, PopupComponent, PopupEditorWrapper, PopupSelectCellEditor, PopupService, PopupTextCellEditor, PositionableFeature, PostConstruct, PreConstruct, PreDestroy, PropertyKeys, ProvidedColumnGroup, ProvidedFilter, Qualifier, QuerySelector, RefSelector, ResizeObserverService, RowAnimationCssClasses, RowContainerComp, RowContainerCtrl, RowContainerName, RowContainerType, RowCtrl, RowHighlightPosition, RowNode, RowNodeBlock, RowNodeBlockLoader, RowNodeSorter, RowPositionUtils, RowRenderer, RowType, ScalarFilter, ScrollVisibleService, SelectCellEditor, SelectableService, SelectionHandleType, SelectionService, ServerSideTransactionResultStatus, SetLeftFeature, SimpleFilter, SortController, SortIndicatorComp, StandardMenuFactory, StylingService, TabGuardComp, TabGuardCtrl, TabbedLayout, TemplateService, TextCellEditor, TextFilter, TextFloatingFilter, Timer, TouchListener, UserComponentFactory, UserComponentRegistry, ValueCache, ValueFormatterService, ValueService, VanillaFrameworkOverrides, VerticalDirection, VirtualList, XmlFactory, ZipContainer, _, defaultGroupComparator, getRowContainerTypeForName, simpleHttpRequest, stringToArray };","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}","export default function requiredArgs(required, args) {\n if (args.length < required) {\n throw new TypeError(required + ' argument' + required > 1 ? 's' : '' + ' required, but only ' + args.length + ' present');\n }\n}","import requiredArgs from '../_lib/requiredArgs/index.js';\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @param {Date|Number} argument - the value to convert\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\n\nexport default function toDate(argument) {\n requiredArgs(1, arguments);\n var argStr = Object.prototype.toString.call(argument); // Clone the date\n\n if (argument instanceof Date || typeof argument === 'object' && argStr === '[object Date]') {\n // Prevent the date to lose the milliseconds when passed to new Date() in IE10\n return new Date(argument.getTime());\n } else if (typeof argument === 'number' || argStr === '[object Number]') {\n return new Date(argument);\n } else {\n if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {\n // eslint-disable-next-line no-console\n console.warn(\"Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule\"); // eslint-disable-next-line no-console\n\n console.warn(new Error().stack);\n }\n\n return new Date(NaN);\n }\n}","var isMergeableObject = function isMergeableObject(value) {\n return isNonNullObject(value) && !isSpecial(value);\n};\n\nfunction isNonNullObject(value) {\n return !!value && typeof value === 'object';\n}\n\nfunction isSpecial(value) {\n var stringValue = Object.prototype.toString.call(value);\n return stringValue === '[object RegExp]' || stringValue === '[object Date]' || isReactElement(value);\n} // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25\n\n\nvar canUseSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;\n\nfunction isReactElement(value) {\n return value.$$typeof === REACT_ELEMENT_TYPE;\n}\n\nfunction emptyTarget(val) {\n return Array.isArray(val) ? [] : {};\n}\n\nfunction cloneUnlessOtherwiseSpecified(value, options) {\n return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;\n}\n\nfunction defaultArrayMerge(target, source, options) {\n return target.concat(source).map(function (element) {\n return cloneUnlessOtherwiseSpecified(element, options);\n });\n}\n\nfunction mergeObject(target, source, options) {\n var destination = {};\n\n if (options.isMergeableObject(target)) {\n Object.keys(target).forEach(function (key) {\n destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);\n });\n }\n\n Object.keys(source).forEach(function (key) {\n if (!options.isMergeableObject(source[key]) || !target[key]) {\n destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);\n } else {\n destination[key] = deepmerge(target[key], source[key], options);\n }\n });\n return destination;\n}\n\nfunction deepmerge(target, source, options) {\n options = options || {};\n options.arrayMerge = options.arrayMerge || defaultArrayMerge;\n options.isMergeableObject = options.isMergeableObject || isMergeableObject;\n var sourceIsArray = Array.isArray(source);\n var targetIsArray = Array.isArray(target);\n var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n\n if (!sourceAndTargetTypesMatch) {\n return cloneUnlessOtherwiseSpecified(source, options);\n } else if (sourceIsArray) {\n return options.arrayMerge(target, source, options);\n } else {\n return mergeObject(target, source, options);\n }\n}\n\ndeepmerge.all = function deepmergeAll(array, options) {\n if (!Array.isArray(array)) {\n throw new Error('first argument should be an array');\n }\n\n return array.reduce(function (prev, next) {\n return deepmerge(prev, next, options);\n }, {});\n};\n\nvar deepmerge_1 = deepmerge;\nexport default deepmerge_1;","import baseGetTag from './_baseGetTag.js';\nimport getPrototype from './_getPrototype.js';\nimport isObjectLike from './isObjectLike.js';\n/** `Object#toString` result references. */\n\nvar objectTag = '[object Object]';\n/** Used for built-in method references. */\n\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n/** Used to resolve the decompiled source of functions. */\n\nvar funcToString = funcProto.toString;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/** Used to infer the `Object` constructor. */\n\nvar objectCtorString = funcToString.call(Object);\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\n\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n\n var proto = getPrototype(value);\n\n if (proto === null) {\n return true;\n }\n\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;\n}\n\nexport default isPlainObject;","import baseClone from './_baseClone.js';\n/** Used to compose bitmasks for cloning. */\n\nvar CLONE_SYMBOLS_FLAG = 4;\n/**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\n\nfunction clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n}\n\nexport default clone;","import arrayMap from './_arrayMap.js';\nimport copyArray from './_copyArray.js';\nimport isArray from './isArray.js';\nimport isSymbol from './isSymbol.js';\nimport stringToPath from './_stringToPath.js';\nimport toKey from './_toKey.js';\nimport toString from './toString.js';\n/**\n * Converts `value` to a property path array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Util\n * @param {*} value The value to convert.\n * @returns {Array} Returns the new property path array.\n * @example\n *\n * _.toPath('a.b.c');\n * // => ['a', 'b', 'c']\n *\n * _.toPath('a[0].b.c');\n * // => ['a', '0', 'b', 'c']\n */\n\nfunction toPath(value) {\n if (isArray(value)) {\n return arrayMap(value, toKey);\n }\n\n return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));\n}\n\nexport default toPath;","import baseClone from './_baseClone.js';\n/** Used to compose bitmasks for cloning. */\n\nvar CLONE_DEEP_FLAG = 1,\n CLONE_SYMBOLS_FLAG = 4;\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\n\nfunction cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nexport default cloneDeep;","import { Children, createContext, useContext, useRef, useEffect, useReducer, useCallback, useMemo, useImperativeHandle, createElement, useLayoutEffect, forwardRef, Component } from 'react';\nimport isEqual from 'react-fast-compare';\nimport deepmerge from 'deepmerge';\nimport isPlainObject from 'lodash-es/isPlainObject';\nimport clone from 'lodash-es/clone';\nimport toPath from 'lodash-es/toPath';\nimport invariant from 'tiny-warning';\nimport { unstable_runWithPriority, LowPriority } from 'scheduler';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport cloneDeep from 'lodash-es/cloneDeep';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n/** @private is the value an empty array? */\n\n\nvar isEmptyArray = function isEmptyArray(value) {\n return Array.isArray(value) && value.length === 0;\n};\n/** @private is the given object a Function? */\n\n\nvar isFunction = function isFunction(obj) {\n return typeof obj === 'function';\n};\n/** @private is the given object an Object? */\n\n\nvar isObject = function isObject(obj) {\n return obj !== null && typeof obj === 'object';\n};\n/** @private is the given object an integer? */\n\n\nvar isInteger = function isInteger(obj) {\n return String(Math.floor(Number(obj))) === obj;\n};\n/** @private is the given object a string? */\n\n\nvar isString = function isString(obj) {\n return Object.prototype.toString.call(obj) === '[object String]';\n};\n/** @private is the given object a NaN? */\n// eslint-disable-next-line no-self-compare\n\n\nvar isNaN$1 = function isNaN(obj) {\n return obj !== obj;\n};\n/** @private Does a React component have exactly 0 children? */\n\n\nvar isEmptyChildren = function isEmptyChildren(children) {\n return Children.count(children) === 0;\n};\n/** @private is the given object/value a promise? */\n\n\nvar isPromise = function isPromise(value) {\n return isObject(value) && isFunction(value.then);\n};\n/** @private is the given object/value a type of synthetic event? */\n\n\nvar isInputEvent = function isInputEvent(value) {\n return value && isObject(value) && isObject(value.target);\n};\n/**\r\n * Same as document.activeElement but wraps in a try-catch block. In IE it is\r\n * not safe to call document.activeElement if there is nothing focused.\r\n *\r\n * The activeElement will be null only if the document or document body is not\r\n * yet defined.\r\n *\r\n * @param {?Document} doc Defaults to current document.\r\n * @return {Element | null}\r\n * @see https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/core/dom/getActiveElement.js\r\n */\n\n\nfunction getActiveElement(doc) {\n doc = doc || (typeof document !== 'undefined' ? document : undefined);\n\n if (typeof doc === 'undefined') {\n return null;\n }\n\n try {\n return doc.activeElement || doc.body;\n } catch (e) {\n return doc.body;\n }\n}\n/**\r\n * Deeply get a value from an object via its path.\r\n */\n\n\nfunction getIn(obj, key, def, p) {\n if (p === void 0) {\n p = 0;\n }\n\n var path = toPath(key);\n\n while (obj && p < path.length) {\n obj = obj[path[p++]];\n }\n\n return obj === undefined ? def : obj;\n}\n/**\r\n * Deeply set a value from in object via it's path. If the value at `path`\r\n * has changed, return a shallow copy of obj with `value` set at `path`.\r\n * If `value` has not changed, return the original `obj`.\r\n *\r\n * Existing objects / arrays along `path` are also shallow copied. Sibling\r\n * objects along path retain the same internal js reference. Since new\r\n * objects / arrays are only created along `path`, we can test if anything\r\n * changed in a nested structure by comparing the object's reference in\r\n * the old and new object, similar to how russian doll cache invalidation\r\n * works.\r\n *\r\n * In earlier versions of this function, which used cloneDeep, there were\r\n * issues whereby settings a nested value would mutate the parent\r\n * instead of creating a new object. `clone` avoids that bug making a\r\n * shallow copy of the objects along the update path\r\n * so no object is mutated in place.\r\n *\r\n * Before changing this function, please read through the following\r\n * discussions.\r\n *\r\n * @see https://github.com/developit/linkstate\r\n * @see https://github.com/jaredpalmer/formik/pull/123\r\n */\n\n\nfunction setIn(obj, path, value) {\n var res = clone(obj); // this keeps inheritance when obj is a class\n\n var resVal = res;\n var i = 0;\n var pathArray = toPath(path);\n\n for (; i < pathArray.length - 1; i++) {\n var currentPath = pathArray[i];\n var currentObj = getIn(obj, pathArray.slice(0, i + 1));\n\n if (currentObj && (isObject(currentObj) || Array.isArray(currentObj))) {\n resVal = resVal[currentPath] = clone(currentObj);\n } else {\n var nextPath = pathArray[i + 1];\n resVal = resVal[currentPath] = isInteger(nextPath) && Number(nextPath) >= 0 ? [] : {};\n }\n } // Return original object if new value is the same as current\n\n\n if ((i === 0 ? obj : resVal)[pathArray[i]] === value) {\n return obj;\n }\n\n if (value === undefined) {\n delete resVal[pathArray[i]];\n } else {\n resVal[pathArray[i]] = value;\n } // If the path array has a single element, the loop did not run.\n // Deleting on `resVal` had no effect in this scenario, so we delete on the result instead.\n\n\n if (i === 0 && value === undefined) {\n delete res[pathArray[i]];\n }\n\n return res;\n}\n/**\r\n * Recursively a set the same value for all keys and arrays nested object, cloning\r\n * @param object\r\n * @param value\r\n * @param visited\r\n * @param response\r\n */\n\n\nfunction setNestedObjectValues(object, value, visited, response) {\n if (visited === void 0) {\n visited = new WeakMap();\n }\n\n if (response === void 0) {\n response = {};\n }\n\n for (var _i = 0, _Object$keys = Object.keys(object); _i < _Object$keys.length; _i++) {\n var k = _Object$keys[_i];\n var val = object[k];\n\n if (isObject(val)) {\n if (!visited.get(val)) {\n visited.set(val, true); // In order to keep array values consistent for both dot path and\n // bracket syntax, we need to check if this is an array so that\n // this will output { friends: [true] } and not { friends: { \"0\": true } }\n\n response[k] = Array.isArray(val) ? [] : {};\n setNestedObjectValues(val, value, visited, response[k]);\n }\n } else {\n response[k] = value;\n }\n }\n\n return response;\n}\n\nvar FormikContext = /*#__PURE__*/createContext(undefined);\nvar FormikProvider = FormikContext.Provider;\nvar FormikConsumer = FormikContext.Consumer;\n\nfunction useFormikContext() {\n var formik = useContext(FormikContext);\n !!!formik ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"Formik context is undefined, please verify you are calling useFormikContext() as child of a component.\") : invariant(false) : void 0;\n return formik;\n}\n\nfunction formikReducer(state, msg) {\n switch (msg.type) {\n case 'SET_VALUES':\n return _extends({}, state, {\n values: msg.payload\n });\n\n case 'SET_TOUCHED':\n return _extends({}, state, {\n touched: msg.payload\n });\n\n case 'SET_ERRORS':\n if (isEqual(state.errors, msg.payload)) {\n return state;\n }\n\n return _extends({}, state, {\n errors: msg.payload\n });\n\n case 'SET_STATUS':\n return _extends({}, state, {\n status: msg.payload\n });\n\n case 'SET_ISSUBMITTING':\n return _extends({}, state, {\n isSubmitting: msg.payload\n });\n\n case 'SET_ISVALIDATING':\n return _extends({}, state, {\n isValidating: msg.payload\n });\n\n case 'SET_FIELD_VALUE':\n return _extends({}, state, {\n values: setIn(state.values, msg.payload.field, msg.payload.value)\n });\n\n case 'SET_FIELD_TOUCHED':\n return _extends({}, state, {\n touched: setIn(state.touched, msg.payload.field, msg.payload.value)\n });\n\n case 'SET_FIELD_ERROR':\n return _extends({}, state, {\n errors: setIn(state.errors, msg.payload.field, msg.payload.value)\n });\n\n case 'RESET_FORM':\n return _extends({}, state, {}, msg.payload);\n\n case 'SET_FORMIK_STATE':\n return msg.payload(state);\n\n case 'SUBMIT_ATTEMPT':\n return _extends({}, state, {\n touched: setNestedObjectValues(state.values, true),\n isSubmitting: true,\n submitCount: state.submitCount + 1\n });\n\n case 'SUBMIT_FAILURE':\n return _extends({}, state, {\n isSubmitting: false\n });\n\n case 'SUBMIT_SUCCESS':\n return _extends({}, state, {\n isSubmitting: false\n });\n\n default:\n return state;\n }\n} // Initial empty states // objects\n\n\nvar emptyErrors = {};\nvar emptyTouched = {};\n\nfunction useFormik(_ref) {\n var _ref$validateOnChange = _ref.validateOnChange,\n validateOnChange = _ref$validateOnChange === void 0 ? true : _ref$validateOnChange,\n _ref$validateOnBlur = _ref.validateOnBlur,\n validateOnBlur = _ref$validateOnBlur === void 0 ? true : _ref$validateOnBlur,\n _ref$validateOnMount = _ref.validateOnMount,\n validateOnMount = _ref$validateOnMount === void 0 ? false : _ref$validateOnMount,\n isInitialValid = _ref.isInitialValid,\n _ref$enableReinitiali = _ref.enableReinitialize,\n enableReinitialize = _ref$enableReinitiali === void 0 ? false : _ref$enableReinitiali,\n onSubmit = _ref.onSubmit,\n rest = _objectWithoutPropertiesLoose(_ref, [\"validateOnChange\", \"validateOnBlur\", \"validateOnMount\", \"isInitialValid\", \"enableReinitialize\", \"onSubmit\"]);\n\n var props = _extends({\n validateOnChange: validateOnChange,\n validateOnBlur: validateOnBlur,\n validateOnMount: validateOnMount,\n onSubmit: onSubmit\n }, rest);\n\n var initialValues = useRef(props.initialValues);\n var initialErrors = useRef(props.initialErrors || emptyErrors);\n var initialTouched = useRef(props.initialTouched || emptyTouched);\n var initialStatus = useRef(props.initialStatus);\n var isMounted = useRef(false);\n var fieldRegistry = useRef({});\n useEffect(function () {\n if (process.env.NODE_ENV !== \"production\") {\n !(typeof isInitialValid === 'undefined') ? process.env.NODE_ENV !== \"production\" ? invariant(false, 'isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead.') : invariant(false) : void 0;\n } // eslint-disable-next-line\n\n }, []);\n useEffect(function () {\n isMounted.current = true;\n return function () {\n isMounted.current = false;\n };\n }, []);\n\n var _React$useReducer = useReducer(formikReducer, {\n values: props.initialValues,\n errors: props.initialErrors || emptyErrors,\n touched: props.initialTouched || emptyTouched,\n status: props.initialStatus,\n isSubmitting: false,\n isValidating: false,\n submitCount: 0\n }),\n state = _React$useReducer[0],\n dispatch = _React$useReducer[1];\n\n var runValidateHandler = useCallback(function (values, field) {\n return new Promise(function (resolve, reject) {\n var maybePromisedErrors = props.validate(values, field);\n\n if (maybePromisedErrors == null) {\n // use loose null check here on purpose\n resolve(emptyErrors);\n } else if (isPromise(maybePromisedErrors)) {\n maybePromisedErrors.then(function (errors) {\n resolve(errors || emptyErrors);\n }, function (actualException) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\"Warning: An unhandled error was caught during validation in \", actualException);\n }\n\n reject(actualException);\n });\n } else {\n resolve(maybePromisedErrors);\n }\n });\n }, [props.validate]);\n /**\r\n * Run validation against a Yup schema and optionally run a function if successful\r\n */\n\n var runValidationSchema = useCallback(function (values, field) {\n var validationSchema = props.validationSchema;\n var schema = isFunction(validationSchema) ? validationSchema(field) : validationSchema;\n var promise = field && schema.validateAt ? schema.validateAt(field, values) : validateYupSchema(values, schema);\n return new Promise(function (resolve, reject) {\n promise.then(function () {\n resolve(emptyErrors);\n }, function (err) {\n // Yup will throw a validation error if validation fails. We catch those and\n // resolve them into Formik errors. We can sniff if something is a Yup error\n // by checking error.name.\n // @see https://github.com/jquense/yup#validationerrorerrors-string--arraystring-value-any-path-string\n if (err.name === 'ValidationError') {\n resolve(yupToFormErrors(err));\n } else {\n // We throw any other errors\n if (process.env.NODE_ENV !== 'production') {\n console.warn(\"Warning: An unhandled error was caught during validation in \", err);\n }\n\n reject(err);\n }\n });\n });\n }, [props.validationSchema]);\n var runSingleFieldLevelValidation = useCallback(function (field, value) {\n return new Promise(function (resolve) {\n return resolve(fieldRegistry.current[field].validate(value));\n });\n }, []);\n var runFieldLevelValidations = useCallback(function (values) {\n var fieldKeysWithValidation = Object.keys(fieldRegistry.current).filter(function (f) {\n return isFunction(fieldRegistry.current[f].validate);\n }); // Construct an array with all of the field validation functions\n\n var fieldValidations = fieldKeysWithValidation.length > 0 ? fieldKeysWithValidation.map(function (f) {\n return runSingleFieldLevelValidation(f, getIn(values, f));\n }) : [Promise.resolve('DO_NOT_DELETE_YOU_WILL_BE_FIRED')]; // use special case ;)\n\n return Promise.all(fieldValidations).then(function (fieldErrorsList) {\n return fieldErrorsList.reduce(function (prev, curr, index) {\n if (curr === 'DO_NOT_DELETE_YOU_WILL_BE_FIRED') {\n return prev;\n }\n\n if (curr) {\n prev = setIn(prev, fieldKeysWithValidation[index], curr);\n }\n\n return prev;\n }, {});\n });\n }, [runSingleFieldLevelValidation]); // Run all validations and return the result\n\n var runAllValidations = useCallback(function (values) {\n return Promise.all([runFieldLevelValidations(values), props.validationSchema ? runValidationSchema(values) : {}, props.validate ? runValidateHandler(values) : {}]).then(function (_ref2) {\n var fieldErrors = _ref2[0],\n schemaErrors = _ref2[1],\n validateErrors = _ref2[2];\n var combinedErrors = deepmerge.all([fieldErrors, schemaErrors, validateErrors], {\n arrayMerge: arrayMerge\n });\n return combinedErrors;\n });\n }, [props.validate, props.validationSchema, runFieldLevelValidations, runValidateHandler, runValidationSchema]); // Run validations and dispatching the result as low-priority via rAF.\n //\n // The thinking is that validation as a result of onChange and onBlur\n // should never block user input. Note: This method should never be called\n // during the submission phase because validation prior to submission\n // is actaully high-priority since we absolutely need to guarantee the\n // form is valid before executing props.onSubmit.\n\n var validateFormWithLowPriority = useEventCallback(function (values) {\n if (values === void 0) {\n values = state.values;\n }\n\n return unstable_runWithPriority(LowPriority, function () {\n return runAllValidations(values).then(function (combinedErrors) {\n if (!!isMounted.current) {\n dispatch({\n type: 'SET_ERRORS',\n payload: combinedErrors\n });\n }\n\n return combinedErrors;\n })[\"catch\"](function (actualException) {\n if (process.env.NODE_ENV !== 'production') {\n // Users can throw during validate, however they have no way of handling their error on touch / blur. In low priority, we need to handle it\n console.warn(\"Warning: An unhandled error was caught during low priority validation in \", actualException);\n }\n });\n });\n }); // Run all validations methods and update state accordingly\n\n var validateFormWithHighPriority = useEventCallback(function (values) {\n if (values === void 0) {\n values = state.values;\n }\n\n dispatch({\n type: 'SET_ISVALIDATING',\n payload: true\n });\n return runAllValidations(values).then(function (combinedErrors) {\n if (!!isMounted.current) {\n dispatch({\n type: 'SET_ISVALIDATING',\n payload: false\n });\n\n if (!isEqual(state.errors, combinedErrors)) {\n dispatch({\n type: 'SET_ERRORS',\n payload: combinedErrors\n });\n }\n }\n\n return combinedErrors;\n });\n });\n useEffect(function () {\n if (validateOnMount && isMounted.current === true) {\n validateFormWithLowPriority(initialValues.current);\n }\n }, [validateOnMount, validateFormWithLowPriority]);\n var resetForm = useCallback(function (nextState) {\n var values = nextState && nextState.values ? nextState.values : initialValues.current;\n var errors = nextState && nextState.errors ? nextState.errors : initialErrors.current ? initialErrors.current : props.initialErrors || {};\n var touched = nextState && nextState.touched ? nextState.touched : initialTouched.current ? initialTouched.current : props.initialTouched || {};\n var status = nextState && nextState.status ? nextState.status : initialStatus.current ? initialStatus.current : props.initialStatus;\n initialValues.current = values;\n initialErrors.current = errors;\n initialTouched.current = touched;\n initialStatus.current = status;\n\n var dispatchFn = function dispatchFn() {\n dispatch({\n type: 'RESET_FORM',\n payload: {\n isSubmitting: !!nextState && !!nextState.isSubmitting,\n errors: errors,\n touched: touched,\n status: status,\n values: values,\n isValidating: !!nextState && !!nextState.isValidating,\n submitCount: !!nextState && !!nextState.submitCount && typeof nextState.submitCount === 'number' ? nextState.submitCount : 0\n }\n });\n };\n\n if (props.onReset) {\n var maybePromisedOnReset = props.onReset(state.values, imperativeMethods);\n\n if (isPromise(maybePromisedOnReset)) {\n maybePromisedOnReset.then(dispatchFn);\n } else {\n dispatchFn();\n }\n } else {\n dispatchFn();\n }\n }, [props.initialErrors, props.initialStatus, props.initialTouched]);\n useEffect(function () {\n if (!enableReinitialize) {\n initialValues.current = props.initialValues;\n }\n }, [enableReinitialize, props.initialValues]);\n useEffect(function () {\n if (enableReinitialize && isMounted.current === true && !isEqual(initialValues.current, props.initialValues)) {\n initialValues.current = props.initialValues;\n resetForm();\n }\n }, [enableReinitialize, props.initialValues, resetForm]);\n useEffect(function () {\n if (enableReinitialize && isMounted.current === true && !isEqual(initialErrors.current, props.initialErrors)) {\n initialErrors.current = props.initialErrors || emptyErrors;\n dispatch({\n type: 'SET_ERRORS',\n payload: props.initialErrors || emptyErrors\n });\n }\n }, [enableReinitialize, props.initialErrors]);\n useEffect(function () {\n if (enableReinitialize && isMounted.current === true && !isEqual(initialTouched.current, props.initialTouched)) {\n initialTouched.current = props.initialTouched || emptyTouched;\n dispatch({\n type: 'SET_TOUCHED',\n payload: props.initialTouched || emptyTouched\n });\n }\n }, [enableReinitialize, props.initialTouched]);\n useEffect(function () {\n if (enableReinitialize && isMounted.current === true && !isEqual(initialStatus.current, props.initialStatus)) {\n initialStatus.current = props.initialStatus;\n dispatch({\n type: 'SET_STATUS',\n payload: props.initialStatus\n });\n }\n }, [enableReinitialize, props.initialStatus, props.initialTouched]);\n var validateField = useEventCallback(function (name) {\n // This will efficiently validate a single field by avoiding state\n // changes if the validation function is synchronous. It's different from\n // what is called when using validateForm.\n if (isFunction(fieldRegistry.current[name].validate)) {\n var value = getIn(state.values, name);\n var maybePromise = fieldRegistry.current[name].validate(value);\n\n if (isPromise(maybePromise)) {\n // Only flip isValidating if the function is async.\n dispatch({\n type: 'SET_ISVALIDATING',\n payload: true\n });\n return maybePromise.then(function (x) {\n return x;\n }).then(function (error) {\n dispatch({\n type: 'SET_FIELD_ERROR',\n payload: {\n field: name,\n value: error\n }\n });\n dispatch({\n type: 'SET_ISVALIDATING',\n payload: false\n });\n });\n } else {\n dispatch({\n type: 'SET_FIELD_ERROR',\n payload: {\n field: name,\n value: maybePromise\n }\n });\n return Promise.resolve(maybePromise);\n }\n } else if (props.validationSchema) {\n dispatch({\n type: 'SET_ISVALIDATING',\n payload: true\n });\n return runValidationSchema(state.values, name).then(function (x) {\n return x;\n }).then(function (error) {\n dispatch({\n type: 'SET_FIELD_ERROR',\n payload: {\n field: name,\n value: error[name]\n }\n });\n dispatch({\n type: 'SET_ISVALIDATING',\n payload: false\n });\n });\n }\n\n return Promise.resolve();\n });\n var registerField = useCallback(function (name, _ref3) {\n var validate = _ref3.validate;\n fieldRegistry.current[name] = {\n validate: validate\n };\n }, []);\n var unregisterField = useCallback(function (name) {\n delete fieldRegistry.current[name];\n }, []);\n var setTouched = useEventCallback(function (touched, shouldValidate) {\n dispatch({\n type: 'SET_TOUCHED',\n payload: touched\n });\n var willValidate = shouldValidate === undefined ? validateOnBlur : shouldValidate;\n return willValidate ? validateFormWithLowPriority(state.values) : Promise.resolve();\n });\n var setErrors = useCallback(function (errors) {\n dispatch({\n type: 'SET_ERRORS',\n payload: errors\n });\n }, []);\n var setValues = useEventCallback(function (values, shouldValidate) {\n dispatch({\n type: 'SET_VALUES',\n payload: values\n });\n var willValidate = shouldValidate === undefined ? validateOnChange : shouldValidate;\n return willValidate ? validateFormWithLowPriority(values) : Promise.resolve();\n });\n var setFieldError = useCallback(function (field, value) {\n dispatch({\n type: 'SET_FIELD_ERROR',\n payload: {\n field: field,\n value: value\n }\n });\n }, []);\n var setFieldValue = useEventCallback(function (field, value, shouldValidate) {\n dispatch({\n type: 'SET_FIELD_VALUE',\n payload: {\n field: field,\n value: value\n }\n });\n var willValidate = shouldValidate === undefined ? validateOnChange : shouldValidate;\n return willValidate ? validateFormWithLowPriority(setIn(state.values, field, value)) : Promise.resolve();\n });\n var executeChange = useCallback(function (eventOrTextValue, maybePath) {\n // By default, assume that the first argument is a string. This allows us to use\n // handleChange with React Native and React Native Web's onChangeText prop which\n // provides just the value of the input.\n var field = maybePath;\n var val = eventOrTextValue;\n var parsed; // If the first argument is not a string though, it has to be a synthetic React Event (or a fake one),\n // so we handle like we would a normal HTML change event.\n\n if (!isString(eventOrTextValue)) {\n // If we can, persist the event\n // @see https://reactjs.org/docs/events.html#event-pooling\n if (eventOrTextValue.persist) {\n eventOrTextValue.persist();\n }\n\n var target = eventOrTextValue.target ? eventOrTextValue.target : eventOrTextValue.currentTarget;\n var type = target.type,\n name = target.name,\n id = target.id,\n value = target.value,\n checked = target.checked,\n outerHTML = target.outerHTML,\n options = target.options,\n multiple = target.multiple;\n field = maybePath ? maybePath : name ? name : id;\n\n if (!field && process.env.NODE_ENV !== \"production\") {\n warnAboutMissingIdentifier({\n htmlContent: outerHTML,\n documentationAnchorLink: 'handlechange-e-reactchangeeventany--void',\n handlerName: 'handleChange'\n });\n }\n\n val = /number|range/.test(type) ? (parsed = parseFloat(value), isNaN(parsed) ? '' : parsed) : /checkbox/.test(type) // checkboxes\n ? getValueForCheckbox(getIn(state.values, field), checked, value) : !!multiple // is set,\n // the File will have a {webkitRelativePath} property\n // https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory\n : typeof webkitRelativePath === 'string' && webkitRelativePath.length > 0 ? webkitRelativePath : file.name,\n writable: false,\n configurable: false,\n enumerable: true\n });\n }\n\n return f;\n}\n\nfunction withMimeType(file) {\n var name = file.name;\n var hasExtension = name && name.lastIndexOf('.') !== -1;\n\n if (hasExtension && !file.type) {\n var ext = name.split('.').pop().toLowerCase();\n var type = COMMON_MIME_TYPES.get(ext);\n\n if (type) {\n Object.defineProperty(file, 'type', {\n value: type,\n writable: false,\n configurable: false,\n enumerable: true\n });\n }\n }\n\n return file;\n}","import * as tslib_1 from \"tslib\";\nimport { toFileWithPath } from './file';\nvar FILES_TO_IGNORE = [// Thumbnail cache files for macOS and Windows\n'.DS_Store', 'Thumbs.db' // Windows\n];\n/**\n * Convert a DragEvent's DataTrasfer object to a list of File objects\n * NOTE: If some of the items are folders,\n * everything will be flattened and placed in the same list but the paths will be kept as a {path} property.\n * @param evt\n */\n\nexport function fromEvent(evt) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n return tslib_1.__generator(this, function (_a) {\n return [2\n /*return*/\n , isDragEvt(evt) && evt.dataTransfer ? getDataTransferFiles(evt.dataTransfer, evt.type) : getInputFiles(evt)];\n });\n });\n}\n\nfunction isDragEvt(value) {\n return !!value.dataTransfer;\n}\n\nfunction getInputFiles(evt) {\n var files = isInput(evt.target) ? evt.target.files ? fromList(evt.target.files) : [] : [];\n return files.map(function (file) {\n return toFileWithPath(file);\n });\n}\n\nfunction isInput(value) {\n return value !== null;\n}\n\nfunction getDataTransferFiles(dt, type) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n var items, files;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!dt.items) return [3\n /*break*/\n , 2];\n items = fromList(dt.items).filter(function (item) {\n return item.kind === 'file';\n }); // According to https://html.spec.whatwg.org/multipage/dnd.html#dndevents,\n // only 'dragstart' and 'drop' has access to the data (source node)\n\n if (type !== 'drop') {\n return [2\n /*return*/\n , items];\n }\n\n return [4\n /*yield*/\n , Promise.all(items.map(toFilePromises))];\n\n case 1:\n files = _a.sent();\n return [2\n /*return*/\n , noIgnoredFiles(flatten(files))];\n\n case 2:\n return [2\n /*return*/\n , noIgnoredFiles(fromList(dt.files).map(function (file) {\n return toFileWithPath(file);\n }))];\n }\n });\n });\n}\n\nfunction noIgnoredFiles(files) {\n return files.filter(function (file) {\n return FILES_TO_IGNORE.indexOf(file.name) === -1;\n });\n} // IE11 does not support Array.from()\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from#Browser_compatibility\n// https://developer.mozilla.org/en-US/docs/Web/API/FileList\n// https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList\n\n\nfunction fromList(items) {\n var files = []; // tslint:disable: prefer-for-of\n\n for (var i = 0; i < items.length; i++) {\n var file = items[i];\n files.push(file);\n }\n\n return files;\n} // https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem\n\n\nfunction toFilePromises(item) {\n if (typeof item.webkitGetAsEntry !== 'function') {\n return fromDataTransferItem(item);\n }\n\n var entry = item.webkitGetAsEntry(); // Safari supports dropping an image node from a different window and can be retrieved using\n // the DataTransferItem.getAsFile() API\n // NOTE: FileSystemEntry.file() throws if trying to get the file\n\n if (entry && entry.isDirectory) {\n return fromDirEntry(entry);\n }\n\n return fromDataTransferItem(item);\n}\n\nfunction flatten(items) {\n return items.reduce(function (acc, files) {\n return tslib_1.__spread(acc, Array.isArray(files) ? flatten(files) : [files]);\n }, []);\n}\n\nfunction fromDataTransferItem(item) {\n var file = item.getAsFile();\n\n if (!file) {\n return Promise.reject(item + \" is not a File\");\n }\n\n var fwp = toFileWithPath(file);\n return Promise.resolve(fwp);\n} // https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry\n\n\nfunction fromEntry(entry) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n return tslib_1.__generator(this, function (_a) {\n return [2\n /*return*/\n , entry.isDirectory ? fromDirEntry(entry) : fromFileEntry(entry)];\n });\n });\n} // https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry\n\n\nfunction fromDirEntry(entry) {\n var reader = entry.createReader();\n return new Promise(function (resolve, reject) {\n var entries = [];\n\n function readEntries() {\n var _this = this; // https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/createReader\n // https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries\n\n\n reader.readEntries(function (batch) {\n return tslib_1.__awaiter(_this, void 0, void 0, function () {\n var files, err_1, items;\n return tslib_1.__generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!!batch.length) return [3\n /*break*/\n , 5];\n _a.label = 1;\n\n case 1:\n _a.trys.push([1, 3,, 4]);\n\n return [4\n /*yield*/\n , Promise.all(entries)];\n\n case 2:\n files = _a.sent();\n resolve(files);\n return [3\n /*break*/\n , 4];\n\n case 3:\n err_1 = _a.sent();\n reject(err_1);\n return [3\n /*break*/\n , 4];\n\n case 4:\n return [3\n /*break*/\n , 6];\n\n case 5:\n items = Promise.all(batch.map(fromEntry));\n entries.push(items); // Continue reading\n\n readEntries();\n _a.label = 6;\n\n case 6:\n return [2\n /*return*/\n ];\n }\n });\n });\n }, function (err) {\n reject(err);\n });\n }\n\n readEntries();\n });\n} // https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry\n\n\nfunction fromFileEntry(entry) {\n return tslib_1.__awaiter(this, void 0, void 0, function () {\n return tslib_1.__generator(this, function (_a) {\n return [2\n /*return*/\n , new Promise(function (resolve, reject) {\n entry.file(function (file) {\n var fwp = toFileWithPath(file, entry.fullPath);\n resolve(fwp);\n }, function (err) {\n reject(err);\n });\n })];\n });\n });\n}","function _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nimport accepts from 'attr-accept'; // Firefox versions prior to 53 return a bogus MIME type for every file drag, so dragovers with\n// that MIME type will always be accepted\n\nexport function fileAccepted(file, accept) {\n return file.type === 'application/x-moz-file' || accepts(file, accept);\n}\nexport function fileMatchSize(file, minSize, maxSize) {\n if (isDefined(file.size)) {\n if (isDefined(minSize) && isDefined(maxSize)) return file.size >= minSize && file.size <= maxSize;else if (isDefined(minSize)) return file.size >= minSize;else if (isDefined(maxSize)) return file.size <= maxSize;\n }\n\n return true;\n}\n\nfunction isDefined(value) {\n return value !== undefined && value !== null;\n}\n\nexport function allFilesAccepted(files, accept, minSize, maxSize) {\n return files.every(function (file) {\n return fileAccepted(file, accept) && fileMatchSize(file, minSize, maxSize);\n });\n} // React's synthetic events has event.isPropagationStopped,\n// but to remain compatibility with other libs (Preact) fall back\n// to check event.cancelBubble\n\nexport function isPropagationStopped(event) {\n if (typeof event.isPropagationStopped === 'function') {\n return event.isPropagationStopped();\n } else if (typeof event.cancelBubble !== 'undefined') {\n return event.cancelBubble;\n }\n\n return false;\n}\nexport function isEvtWithFiles(event) {\n if (!event.dataTransfer) {\n return !!event.target && !!event.target.files;\n } // https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/types\n // https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API/Recommended_drag_types#file\n\n\n return Array.prototype.some.call(event.dataTransfer.types, function (type) {\n return type === 'Files' || type === 'application/x-moz-file';\n });\n}\nexport function isKindFile(item) {\n return _typeof(item) === 'object' && item !== null && item.kind === 'file';\n} // allow the entire document to be a drag target\n\nexport function onDocumentDragOver(event) {\n event.preventDefault();\n}\n\nfunction isIe(userAgent) {\n return userAgent.indexOf('MSIE') !== -1 || userAgent.indexOf('Trident/') !== -1;\n}\n\nfunction isEdge(userAgent) {\n return userAgent.indexOf('Edge/') !== -1;\n}\n\nexport function isIeOrEdge() {\n var userAgent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window.navigator.userAgent;\n return isIe(userAgent) || isEdge(userAgent);\n}\n/**\n * This is intended to be used to compose event handlers\n * They are executed in order until one of them calls `event.isPropagationStopped()`.\n * Note that the check is done on the first invoke too,\n * meaning that if propagation was stopped before invoking the fns,\n * no handlers will be executed.\n *\n * @param {Function} fns the event hanlder functions\n * @return {Function} the event handler to add to an element\n */\n\nexport function composeEventHandlers() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function (event) {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n return fns.some(function (fn) {\n if (!isPropagationStopped(event) && fn) {\n fn.apply(void 0, [event].concat(args));\n }\n\n return isPropagationStopped(event);\n });\n };\n}","function _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\nfunction _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n }\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) {\n return;\n }\n\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(source, true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(source).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n/* eslint prefer-template: 0 */\n\n\nimport React, { forwardRef, Fragment, useCallback, useEffect, useImperativeHandle, useMemo, useReducer, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport { fromEvent } from 'file-selector';\nimport { allFilesAccepted, composeEventHandlers, fileAccepted, fileMatchSize, isEvtWithFiles, isIeOrEdge, isPropagationStopped, onDocumentDragOver } from './utils/index';\n/**\n * Convenience wrapper component for the `useDropzone` hook\n *\n * ```jsx\n * \n * {({getRootProps, getInputProps}) => (\n *
\n * \n *

Drag 'n' drop some files here, or click to select files

\n *
\n * )}\n *
\n * ```\n */\n\nvar Dropzone = forwardRef(function (_ref, ref) {\n var children = _ref.children,\n params = _objectWithoutProperties(_ref, [\"children\"]);\n\n var _useDropzone = useDropzone(params),\n open = _useDropzone.open,\n props = _objectWithoutProperties(_useDropzone, [\"open\"]);\n\n useImperativeHandle(ref, function () {\n return {\n open: open\n };\n }, [open]); // TODO: Figure out why react-styleguidist cannot create docs if we don't return a jsx element\n\n return React.createElement(Fragment, null, children(_objectSpread({}, props, {\n open: open\n })));\n});\nDropzone.displayName = 'Dropzone';\nDropzone.propTypes = {\n /**\n * Render function that exposes the dropzone state and prop getter fns\n *\n * @param {object} params\n * @param {Function} params.getRootProps Returns the props you should apply to the root drop container you render\n * @param {Function} params.getInputProps Returns the props you should apply to hidden file input you render\n * @param {Function} params.open Open the native file selection dialog\n * @param {boolean} params.isFocused Dropzone area is in focus\n * @param {boolean} params.isFileDialogActive File dialog is opened\n * @param {boolean} params.isDragActive Active drag is in progress\n * @param {boolean} params.isDragAccept Dragged files are accepted\n * @param {boolean} params.isDragReject Some dragged files are rejected\n * @param {File[]} params.draggedFiles Files in active drag\n * @param {File[]} params.acceptedFiles Accepted files\n * @param {File[]} params.rejectedFiles Rejected files\n */\n children: PropTypes.func,\n\n /**\n * Set accepted file types.\n * See https://github.com/okonet/attr-accept for more information.\n * Keep in mind that mime type determination is not reliable across platforms. CSV files,\n * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under\n * Windows. In some cases there might not be a mime type set at all.\n * See: https://github.com/react-dropzone/react-dropzone/issues/276\n */\n accept: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),\n\n /**\n * Allow drag 'n' drop (or selection from the file dialog) of multiple files\n */\n multiple: PropTypes.bool,\n\n /**\n * If false, allow dropped items to take over the current browser window\n */\n preventDropOnDocument: PropTypes.bool,\n\n /**\n * If true, disables click to open the native file selection dialog\n */\n noClick: PropTypes.bool,\n\n /**\n * If true, disables SPACE/ENTER to open the native file selection dialog.\n * Note that it also stops tracking the focus state.\n */\n noKeyboard: PropTypes.bool,\n\n /**\n * If true, disables drag 'n' drop\n */\n noDrag: PropTypes.bool,\n\n /**\n * If true, stops drag event propagation to parents\n */\n noDragEventsBubbling: PropTypes.bool,\n\n /**\n * Minimum file size (in bytes)\n */\n minSize: PropTypes.number,\n\n /**\n * Maximum file size (in bytes)\n */\n maxSize: PropTypes.number,\n\n /**\n * Enable/disable the dropzone\n */\n disabled: PropTypes.bool,\n\n /**\n * Use this to provide a custom file aggregator\n *\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n */\n getFilesFromEvent: PropTypes.func,\n\n /**\n * Cb for when closing the file dialog with no selection\n */\n onFileDialogCancel: PropTypes.func,\n\n /**\n * Cb for when the `dragenter` event occurs.\n *\n * @param {DragEvent} event\n */\n onDragEnter: PropTypes.func,\n\n /**\n * Cb for when the `dragleave` event occurs\n *\n * @param {DragEvent} event\n */\n onDragLeave: PropTypes.func,\n\n /**\n * Cb for when the `dragover` event occurs\n *\n * @param {DragEvent} event\n */\n onDragOver: PropTypes.func,\n\n /**\n * Cb for when the `drop` event occurs.\n * Note that this callback is invoked after the `getFilesFromEvent` callback is done.\n *\n * Files are accepted or rejected based on the `accept`, `multiple`, `minSize` and `maxSize` props.\n * `accept` must be a valid [MIME type](http://www.iana.org/assignments/media-types/media-types.xhtml) according to [input element specification](https://www.w3.org/wiki/HTML/Elements/input/file) or a valid file extension.\n * If `multiple` is set to false and additional files are droppped,\n * all files besides the first will be rejected.\n * Any file which does not have a size in the [`minSize`, `maxSize`] range, will be rejected as well.\n *\n * Note that the `onDrop` callback will always be invoked regardless if the dropped files were accepted or rejected.\n * If you'd like to react to a specific scenario, use the `onDropAccepted`/`onDropRejected` props.\n *\n * `onDrop` will provide you with an array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File) objects which you can then process and send to a server.\n * For example, with [SuperAgent](https://github.com/visionmedia/superagent) as a http/ajax library:\n *\n * ```js\n * function onDrop(acceptedFiles) {\n * const req = request.post('/upload')\n * acceptedFiles.forEach(file => {\n * req.attach(file.name, file)\n * })\n * req.end(callback)\n * }\n * ```\n *\n * @param {File[]} acceptedFiles\n * @param {File[]} rejectedFiles\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n */\n onDrop: PropTypes.func,\n\n /**\n * Cb for when the `drop` event occurs.\n * Note that if no files are accepted, this callback is not invoked.\n *\n * @param {File[]} files\n * @param {(DragEvent|Event)} event\n */\n onDropAccepted: PropTypes.func,\n\n /**\n * Cb for when the `drop` event occurs.\n * Note that if no files are rejected, this callback is not invoked.\n *\n * @param {object[]} files\n * @param {(DragEvent|Event)} event\n */\n onDropRejected: PropTypes.func\n};\nexport default Dropzone;\n/**\n * A function that is invoked for the `dragenter`,\n * `dragover` and `dragleave` events.\n * It is not invoked if the items are not files (such as link, text, etc.).\n *\n * @callback dragCb\n * @param {DragEvent} event\n */\n\n/**\n * A function that is invoked for the `drop` or input change event.\n * It is not invoked if the items are not files (such as link, text, etc.).\n *\n * @callback dropCb\n * @param {File[]} acceptedFiles List of accepted files\n * @param {File[]} rejectedFiles List of rejected files\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n */\n\n/**\n * A function that is invoked for the `drop` or input change event.\n * It is not invoked if the items are files (such as link, text, etc.).\n *\n * @callback dropAcceptedCb\n * @param {File[]} files List of accepted files that meet the given criteria\n * (`accept`, `multiple`, `minSize`, `maxSize`)\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n */\n\n/**\n * A function that is invoked for the `drop` or input change event.\n *\n * @callback dropRejectedCb\n * @param {File[]} files List of rejected files that do not meet the given criteria\n * (`accept`, `multiple`, `minSize`, `maxSize`)\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n */\n\n/**\n * A function that is used aggregate files,\n * in a asynchronous fashion, from drag or input change events.\n *\n * @callback getFilesFromEvent\n * @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)\n * @returns {(File[]|Promise)}\n */\n\n/**\n * An object with the current dropzone state and some helper functions.\n *\n * @typedef {object} DropzoneState\n * @property {Function} getRootProps Returns the props you should apply to the root drop container you render\n * @property {Function} getInputProps Returns the props you should apply to hidden file input you render\n * @property {Function} open Open the native file selection dialog\n * @property {boolean} isFocused Dropzone area is in focus\n * @property {boolean} isFileDialogActive File dialog is opened\n * @property {boolean} isDragActive Active drag is in progress\n * @property {boolean} isDragAccept Dragged files are accepted\n * @property {boolean} isDragReject Some dragged files are rejected\n * @property {File[]} draggedFiles Files in active drag\n * @property {File[]} acceptedFiles Accepted files\n * @property {File[]} rejectedFiles Rejected files\n */\n\nvar initialState = {\n isFocused: false,\n isFileDialogActive: false,\n isDragActive: false,\n isDragAccept: false,\n isDragReject: false,\n draggedFiles: [],\n acceptedFiles: [],\n rejectedFiles: []\n};\n/**\n * A React hook that creates a drag 'n' drop area.\n *\n * ```jsx\n * function MyDropzone(props) {\n * const {getRootProps, getInputProps} = useDropzone({\n * onDrop: acceptedFiles => {\n * // do something with the File objects, e.g. upload to some server\n * }\n * });\n * return (\n *
\n * \n *

Drag and drop some files here, or click to select files

\n *
\n * )\n * }\n * ```\n *\n * @function useDropzone\n *\n * @param {object} props\n * @param {string|string[]} [props.accept] Set accepted file types.\n * See https://github.com/okonet/attr-accept for more information.\n * Keep in mind that mime type determination is not reliable across platforms. CSV files,\n * for example, are reported as text/plain under macOS but as application/vnd.ms-excel under\n * Windows. In some cases there might not be a mime type set at all.\n * See: https://github.com/react-dropzone/react-dropzone/issues/276\n * @param {boolean} [props.multiple=true] Allow drag 'n' drop (or selection from the file dialog) of multiple files\n * @param {boolean} [props.preventDropOnDocument=true] If false, allow dropped items to take over the current browser window\n * @param {boolean} [props.noClick=false] If true, disables click to open the native file selection dialog\n * @param {boolean} [props.noKeyboard=false] If true, disables SPACE/ENTER to open the native file selection dialog.\n * Note that it also stops tracking the focus state.\n * @param {boolean} [props.noDrag=false] If true, disables drag 'n' drop\n * @param {boolean} [props.noDragEventsBubbling=false] If true, stops drag event propagation to parents\n * @param {number} [props.minSize=0] Minimum file size (in bytes)\n * @param {number} [props.maxSize=Infinity] Maximum file size (in bytes)\n * @param {boolean} [props.disabled=false] Enable/disable the dropzone\n * @param {getFilesFromEvent} [props.getFilesFromEvent] Use this to provide a custom file aggregator\n * @param {Function} [props.onFileDialogCancel] Cb for when closing the file dialog with no selection\n * @param {dragCb} [props.onDragEnter] Cb for when the `dragenter` event occurs.\n * @param {dragCb} [props.onDragLeave] Cb for when the `dragleave` event occurs\n * @param {dragCb} [props.onDragOver] Cb for when the `dragover` event occurs\n * @param {dropCb} [props.onDrop] Cb for when the `drop` event occurs.\n * Note that this callback is invoked after the `getFilesFromEvent` callback is done.\n *\n * Files are accepted or rejected based on the `accept`, `multiple`, `minSize` and `maxSize` props.\n * `accept` must be a valid [MIME type](http://www.iana.org/assignments/media-types/media-types.xhtml) according to [input element specification](https://www.w3.org/wiki/HTML/Elements/input/file) or a valid file extension.\n * If `multiple` is set to false and additional files are droppped,\n * all files besides the first will be rejected.\n * Any file which does not have a size in the [`minSize`, `maxSize`] range, will be rejected as well.\n *\n * Note that the `onDrop` callback will always be invoked regardless if the dropped files were accepted or rejected.\n * If you'd like to react to a specific scenario, use the `onDropAccepted`/`onDropRejected` props.\n *\n * `onDrop` will provide you with an array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File) objects which you can then process and send to a server.\n * For example, with [SuperAgent](https://github.com/visionmedia/superagent) as a http/ajax library:\n *\n * ```js\n * function onDrop(acceptedFiles) {\n * const req = request.post('/upload')\n * acceptedFiles.forEach(file => {\n * req.attach(file.name, file)\n * })\n * req.end(callback)\n * }\n * ```\n * @param {dropAcceptedCb} [props.onDropAccepted]\n * @param {dropRejectedCb} [props.onDropRejected]\n *\n * @returns {DropzoneState}\n */\n\nexport function useDropzone() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n accept = _ref2.accept,\n _ref2$disabled = _ref2.disabled,\n disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,\n _ref2$getFilesFromEve = _ref2.getFilesFromEvent,\n getFilesFromEvent = _ref2$getFilesFromEve === void 0 ? fromEvent : _ref2$getFilesFromEve,\n _ref2$maxSize = _ref2.maxSize,\n maxSize = _ref2$maxSize === void 0 ? Infinity : _ref2$maxSize,\n _ref2$minSize = _ref2.minSize,\n minSize = _ref2$minSize === void 0 ? 0 : _ref2$minSize,\n _ref2$multiple = _ref2.multiple,\n multiple = _ref2$multiple === void 0 ? true : _ref2$multiple,\n onDragEnter = _ref2.onDragEnter,\n onDragLeave = _ref2.onDragLeave,\n onDragOver = _ref2.onDragOver,\n onDrop = _ref2.onDrop,\n onDropAccepted = _ref2.onDropAccepted,\n onDropRejected = _ref2.onDropRejected,\n onFileDialogCancel = _ref2.onFileDialogCancel,\n _ref2$preventDropOnDo = _ref2.preventDropOnDocument,\n preventDropOnDocument = _ref2$preventDropOnDo === void 0 ? true : _ref2$preventDropOnDo,\n _ref2$noClick = _ref2.noClick,\n noClick = _ref2$noClick === void 0 ? false : _ref2$noClick,\n _ref2$noKeyboard = _ref2.noKeyboard,\n noKeyboard = _ref2$noKeyboard === void 0 ? false : _ref2$noKeyboard,\n _ref2$noDrag = _ref2.noDrag,\n noDrag = _ref2$noDrag === void 0 ? false : _ref2$noDrag,\n _ref2$noDragEventsBub = _ref2.noDragEventsBubbling,\n noDragEventsBubbling = _ref2$noDragEventsBub === void 0 ? false : _ref2$noDragEventsBub;\n\n var rootRef = useRef(null);\n var inputRef = useRef(null);\n\n var _useReducer = useReducer(reducer, initialState),\n _useReducer2 = _slicedToArray(_useReducer, 2),\n state = _useReducer2[0],\n dispatch = _useReducer2[1];\n\n var isFocused = state.isFocused,\n isFileDialogActive = state.isFileDialogActive,\n draggedFiles = state.draggedFiles; // Fn for opening the file dialog programmatically\n\n var openFileDialog = useCallback(function () {\n if (inputRef.current) {\n dispatch({\n type: 'openDialog'\n });\n inputRef.current.value = null;\n inputRef.current.click();\n }\n }, [dispatch]); // Update file dialog active state when the window is focused on\n\n var onWindowFocus = function onWindowFocus() {\n // Execute the timeout only if the file dialog is opened in the browser\n if (isFileDialogActive) {\n setTimeout(function () {\n if (inputRef.current) {\n var files = inputRef.current.files;\n\n if (!files.length) {\n dispatch({\n type: 'closeDialog'\n });\n\n if (typeof onFileDialogCancel === 'function') {\n onFileDialogCancel();\n }\n }\n }\n }, 300);\n }\n };\n\n useEffect(function () {\n window.addEventListener('focus', onWindowFocus, false);\n return function () {\n window.removeEventListener('focus', onWindowFocus, false);\n };\n }, [inputRef, isFileDialogActive, onFileDialogCancel]); // Cb to open the file dialog when SPACE/ENTER occurs on the dropzone\n\n var onKeyDownCb = useCallback(function (event) {\n // Ignore keyboard events bubbling up the DOM tree\n if (!rootRef.current || !rootRef.current.isEqualNode(event.target)) {\n return;\n }\n\n if (event.keyCode === 32 || event.keyCode === 13) {\n event.preventDefault();\n openFileDialog();\n }\n }, [rootRef, inputRef]); // Update focus state for the dropzone\n\n var onFocusCb = useCallback(function () {\n dispatch({\n type: 'focus'\n });\n }, []);\n var onBlurCb = useCallback(function () {\n dispatch({\n type: 'blur'\n });\n }, []); // Cb to open the file dialog when click occurs on the dropzone\n\n var onClickCb = useCallback(function () {\n if (noClick) {\n return;\n } // In IE11/Edge the file-browser dialog is blocking, therefore, use setTimeout()\n // to ensure React can handle state changes\n // See: https://github.com/react-dropzone/react-dropzone/issues/450\n\n\n if (isIeOrEdge()) {\n setTimeout(openFileDialog, 0);\n } else {\n openFileDialog();\n }\n }, [inputRef, noClick]);\n var dragTargetsRef = useRef([]);\n\n var onDocumentDrop = function onDocumentDrop(event) {\n if (rootRef.current && rootRef.current.contains(event.target)) {\n // If we intercepted an event for our instance, let it propagate down to the instance's onDrop handler\n return;\n }\n\n event.preventDefault();\n dragTargetsRef.current = [];\n };\n\n useEffect(function () {\n if (preventDropOnDocument) {\n document.addEventListener('dragover', onDocumentDragOver, false);\n document.addEventListener('drop', onDocumentDrop, false);\n }\n\n return function () {\n if (preventDropOnDocument) {\n document.removeEventListener('dragover', onDocumentDragOver);\n document.removeEventListener('drop', onDocumentDrop);\n }\n };\n }, [rootRef, preventDropOnDocument]);\n var onDragEnterCb = useCallback(function (event) {\n event.preventDefault(); // Persist here because we need the event later after getFilesFromEvent() is done\n\n event.persist();\n stopPropagation(event); // Count the dropzone and any children that are entered.\n\n if (dragTargetsRef.current.indexOf(event.target) === -1) {\n dragTargetsRef.current = [].concat(_toConsumableArray(dragTargetsRef.current), [event.target]);\n }\n\n if (isEvtWithFiles(event)) {\n Promise.resolve(getFilesFromEvent(event)).then(function (draggedFiles) {\n if (isPropagationStopped(event) && !noDragEventsBubbling) {\n return;\n }\n\n dispatch({\n draggedFiles: draggedFiles,\n isDragActive: true,\n type: 'setDraggedFiles'\n });\n\n if (onDragEnter) {\n onDragEnter(event);\n }\n });\n }\n }, [getFilesFromEvent, onDragEnter, noDragEventsBubbling]);\n var onDragOverCb = useCallback(function (event) {\n event.preventDefault();\n event.persist();\n stopPropagation(event);\n\n if (event.dataTransfer) {\n try {\n event.dataTransfer.dropEffect = 'copy';\n } catch (_unused) {}\n /* eslint-disable-line no-empty */\n\n }\n\n if (isEvtWithFiles(event) && onDragOver) {\n onDragOver(event);\n }\n\n return false;\n }, [onDragOver, noDragEventsBubbling]);\n var onDragLeaveCb = useCallback(function (event) {\n event.preventDefault();\n event.persist();\n stopPropagation(event); // Only deactivate once the dropzone and all children have been left\n\n var targets = dragTargetsRef.current.filter(function (target) {\n return target !== event.target && rootRef.current && rootRef.current.contains(target);\n });\n dragTargetsRef.current = targets;\n\n if (targets.length > 0) {\n return;\n }\n\n dispatch({\n isDragActive: false,\n type: 'setDraggedFiles',\n draggedFiles: []\n });\n\n if (isEvtWithFiles(event) && onDragLeave) {\n onDragLeave(event);\n }\n }, [rootRef, onDragLeave, noDragEventsBubbling]);\n var onDropCb = useCallback(function (event) {\n event.preventDefault(); // Persist here because we need the event later after getFilesFromEvent() is done\n\n event.persist();\n stopPropagation(event);\n dragTargetsRef.current = [];\n dispatch({\n type: 'reset'\n });\n\n if (isEvtWithFiles(event)) {\n Promise.resolve(getFilesFromEvent(event)).then(function (files) {\n if (isPropagationStopped(event) && !noDragEventsBubbling) {\n return;\n }\n\n var acceptedFiles = [];\n var rejectedFiles = [];\n files.forEach(function (file) {\n if (fileAccepted(file, accept) && fileMatchSize(file, minSize, maxSize)) {\n acceptedFiles.push(file);\n } else {\n rejectedFiles.push(file);\n }\n });\n\n if (!multiple && acceptedFiles.length > 1) {\n rejectedFiles.push.apply(rejectedFiles, _toConsumableArray(acceptedFiles.splice(0))); // Reject everything and empty accepted files\n }\n\n dispatch({\n acceptedFiles: acceptedFiles,\n rejectedFiles: rejectedFiles,\n type: 'setFiles'\n });\n\n if (onDrop) {\n onDrop(acceptedFiles, rejectedFiles, event);\n }\n\n if (rejectedFiles.length > 0 && onDropRejected) {\n onDropRejected(rejectedFiles, event);\n }\n\n if (acceptedFiles.length > 0 && onDropAccepted) {\n onDropAccepted(acceptedFiles, event);\n }\n });\n }\n }, [multiple, accept, minSize, maxSize, getFilesFromEvent, onDrop, onDropAccepted, onDropRejected, noDragEventsBubbling]);\n\n var composeHandler = function composeHandler(fn) {\n return disabled ? null : fn;\n };\n\n var composeKeyboardHandler = function composeKeyboardHandler(fn) {\n return noKeyboard ? null : composeHandler(fn);\n };\n\n var composeDragHandler = function composeDragHandler(fn) {\n return noDrag ? null : composeHandler(fn);\n };\n\n var stopPropagation = function stopPropagation(event) {\n if (noDragEventsBubbling) {\n event.stopPropagation();\n }\n };\n\n var getRootProps = useMemo(function () {\n return function () {\n var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref3$refKey = _ref3.refKey,\n refKey = _ref3$refKey === void 0 ? 'ref' : _ref3$refKey,\n onKeyDown = _ref3.onKeyDown,\n onFocus = _ref3.onFocus,\n onBlur = _ref3.onBlur,\n onClick = _ref3.onClick,\n onDragEnter = _ref3.onDragEnter,\n onDragOver = _ref3.onDragOver,\n onDragLeave = _ref3.onDragLeave,\n onDrop = _ref3.onDrop,\n rest = _objectWithoutProperties(_ref3, [\"refKey\", \"onKeyDown\", \"onFocus\", \"onBlur\", \"onClick\", \"onDragEnter\", \"onDragOver\", \"onDragLeave\", \"onDrop\"]);\n\n return _objectSpread(_defineProperty({\n onKeyDown: composeKeyboardHandler(composeEventHandlers(onKeyDown, onKeyDownCb)),\n onFocus: composeKeyboardHandler(composeEventHandlers(onFocus, onFocusCb)),\n onBlur: composeKeyboardHandler(composeEventHandlers(onBlur, onBlurCb)),\n onClick: composeHandler(composeEventHandlers(onClick, onClickCb)),\n onDragEnter: composeDragHandler(composeEventHandlers(onDragEnter, onDragEnterCb)),\n onDragOver: composeDragHandler(composeEventHandlers(onDragOver, onDragOverCb)),\n onDragLeave: composeDragHandler(composeEventHandlers(onDragLeave, onDragLeaveCb)),\n onDrop: composeDragHandler(composeEventHandlers(onDrop, onDropCb))\n }, refKey, rootRef), !disabled && !noKeyboard ? {\n tabIndex: 0\n } : {}, {}, rest);\n };\n }, [rootRef, onKeyDownCb, onFocusCb, onBlurCb, onClickCb, onDragEnterCb, onDragOverCb, onDragLeaveCb, onDropCb, noKeyboard, noDrag, disabled]);\n var onInputElementClick = useCallback(function (event) {\n event.stopPropagation();\n }, []);\n var getInputProps = useMemo(function () {\n return function () {\n var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref4$refKey = _ref4.refKey,\n refKey = _ref4$refKey === void 0 ? 'ref' : _ref4$refKey,\n onChange = _ref4.onChange,\n onClick = _ref4.onClick,\n rest = _objectWithoutProperties(_ref4, [\"refKey\", \"onChange\", \"onClick\"]);\n\n var inputProps = _defineProperty({\n accept: accept,\n multiple: multiple,\n type: 'file',\n style: {\n display: 'none'\n },\n onChange: composeHandler(composeEventHandlers(onChange, onDropCb)),\n onClick: composeHandler(composeEventHandlers(onClick, onInputElementClick)),\n autoComplete: 'off',\n tabIndex: -1\n }, refKey, inputRef);\n\n return _objectSpread({}, inputProps, {}, rest);\n };\n }, [inputRef, accept, multiple, onDropCb, disabled]);\n var fileCount = draggedFiles.length;\n var isMultipleAllowed = multiple || fileCount <= 1;\n var isDragAccept = fileCount > 0 && allFilesAccepted(draggedFiles, accept, minSize, maxSize);\n var isDragReject = fileCount > 0 && (!isDragAccept || !isMultipleAllowed);\n return _objectSpread({}, state, {\n isDragAccept: isDragAccept,\n isDragReject: isDragReject,\n isFocused: isFocused && !disabled,\n getRootProps: getRootProps,\n getInputProps: getInputProps,\n rootRef: rootRef,\n inputRef: inputRef,\n open: composeHandler(openFileDialog)\n });\n}\n\nfunction reducer(state, action) {\n /* istanbul ignore next */\n switch (action.type) {\n case 'focus':\n return _objectSpread({}, state, {\n isFocused: true\n });\n\n case 'blur':\n return _objectSpread({}, state, {\n isFocused: false\n });\n\n case 'openDialog':\n return _objectSpread({}, state, {\n isFileDialogActive: true\n });\n\n case 'closeDialog':\n return _objectSpread({}, state, {\n isFileDialogActive: false\n });\n\n case 'setDraggedFiles':\n /* eslint no-case-declarations: 0 */\n var isDragActive = action.isDragActive,\n draggedFiles = action.draggedFiles;\n return _objectSpread({}, state, {\n draggedFiles: draggedFiles,\n isDragActive: isDragActive\n });\n\n case 'setFiles':\n return _objectSpread({}, state, {\n acceptedFiles: action.acceptedFiles,\n rejectedFiles: action.rejectedFiles\n });\n\n case 'reset':\n return _objectSpread({}, state, {\n isFileDialogActive: false,\n isDragActive: false,\n draggedFiles: []\n });\n\n default:\n return state;\n }\n}","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nvar classCallCheck = function classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nvar createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\nvar inherits = function inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\nvar possibleConstructorReturn = function possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n};\n\nvar ReactCountryFlag = function (_Component) {\n inherits(ReactCountryFlag, _Component);\n\n function ReactCountryFlag() {\n classCallCheck(this, ReactCountryFlag);\n return possibleConstructorReturn(this, (ReactCountryFlag.__proto__ || Object.getPrototypeOf(ReactCountryFlag)).apply(this, arguments));\n }\n\n createClass(ReactCountryFlag, [{\n key: \"render\",\n value: function render() {\n var _props = this.props,\n cdnUrl = _props.cdnUrl,\n className = _props.className,\n code = _props.code,\n styleProps = _props.styleProps,\n svg = _props.svg,\n title = _props.title;\n\n if (!code) {\n return null;\n }\n\n var flagUrl = \"\" + cdnUrl + code.toLowerCase() + \".svg\";\n var emoji = code.toUpperCase().replace(/./g, function (char) {\n return String.fromCodePoint(char.charCodeAt(0) + 127397);\n });\n return svg ? React.createElement(\"span\", {\n \"aria-label\": code,\n className: className,\n role: \"img\",\n style: _extends({\n position: \"relative\",\n display: \"inline-block\",\n width: \"1.3333333333em\",\n height: \"1em\",\n backgroundImage: \"url(\" + flagUrl + \")\",\n backgroundPosition: \"50%\",\n backgroundRepeat: \"no-repeat\",\n backgroundSize: \"contain\",\n fontSize: \"1em\",\n lineHeight: \"1em\",\n verticalAlign: \"middle\"\n }, styleProps),\n title: title || code\n }) : React.createElement(\"span\", {\n \"aria-label\": code,\n className: className,\n role: \"img\",\n style: _extends({\n verticalAlign: \"middle\"\n }, styleProps),\n title: code\n }, emoji);\n }\n }]);\n return ReactCountryFlag;\n}(Component);\n\nReactCountryFlag.propTypes = {\n cdnUrl: PropTypes.string,\n className: PropTypes.string,\n code: PropTypes.string.isRequired,\n styleProps: PropTypes.object,\n svg: PropTypes.bool,\n title: PropTypes.string\n};\nReactCountryFlag.defaultProps = {\n cdnUrl: \"https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.3.0/flags/4x3/\",\n svg: false\n};\nexport default ReactCountryFlag;","import e, { memo as a, useState as i, useRef as s, useEffect as o, useCallback as r } from \"react\";\nimport n from \"classnames\";\nimport d from \"react-country-flag\";\nimport t from \"lodash.omit\";\nimport { parsePhoneNumberFromString as C } from \"libphonenumber-js\";\n\nfunction m(e, a, i) {\n return a in e ? Object.defineProperty(e, a, {\n value: i,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[a] = i, e;\n}\n\nfunction c(e, a) {\n var i = Object.keys(e);\n\n if (Object.getOwnPropertySymbols) {\n var s = Object.getOwnPropertySymbols(e);\n a && (s = s.filter(function (a) {\n return Object.getOwnPropertyDescriptor(e, a).enumerable;\n })), i.push.apply(i, s);\n }\n\n return i;\n}\n\nfunction A(e) {\n for (var a = 1; a < arguments.length; a++) {\n var i = null != arguments[a] ? arguments[a] : {};\n a % 2 ? c(Object(i), !0).forEach(function (a) {\n m(e, a, i[a]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : c(Object(i)).forEach(function (a) {\n Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(i, a));\n });\n }\n\n return e;\n}\n\nfunction h(e, a) {\n return function (e) {\n if (Array.isArray(e)) return e;\n }(e) || function (e, a) {\n if (Symbol.iterator in Object(e) || \"[object Arguments]\" === Object.prototype.toString.call(e)) {\n var i = [],\n s = !0,\n o = !1,\n r = void 0;\n\n try {\n for (var n, d = e[Symbol.iterator](); !(s = (n = d.next()).done) && (i.push(n.value), !a || i.length !== a); s = !0) {\n ;\n }\n } catch (e) {\n o = !0, r = e;\n } finally {\n try {\n s || null == d.return || d.return();\n } finally {\n if (o) throw r;\n }\n }\n\n return i;\n }\n }(e, a) || function () {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }();\n}\n\nvar l = \"undefined\" != typeof window,\n u = {\n Android: function Android() {\n return l && window.navigator.userAgent.match(/Android/i);\n },\n BlackBerry: function BlackBerry() {\n return l && window.navigator.userAgent.match(/BlackBerry/i);\n },\n iOS: function iOS() {\n return l && window.navigator.userAgent.match(/iPhone|iPad|iPod/i);\n },\n Opera: function Opera() {\n return l && window.navigator.userAgent.match(/Opera Mini/i);\n },\n Windows: function Windows() {\n return l && window.navigator.userAgent.match(/IEMobile/i);\n },\n any: function any() {\n return u.Android() || u.BlackBerry() || u.iOS() || u.Opera() || u.Windows();\n }\n},\n g = [{\n name: \"International\",\n regions: [],\n iso2: \"intl\",\n dialCode: \"\",\n isAreaCode: !0,\n hasAreaCodes: !1\n}, {\n name: \"Afghanistan (‫افغانستان‬‎)\",\n regions: [\"asia\"],\n iso2: \"af\",\n dialCode: \"+93\",\n hasAreaCodes: !1\n}, {\n name: \"Albania (Shqipëri)\",\n regions: [\"europe\"],\n iso2: \"al\",\n dialCode: \"+355\",\n hasAreaCodes: !1\n}, {\n name: \"Algeria (‫الجزائر‬‎)\",\n regions: [\"africa\", \"north-africa\"],\n iso2: \"dz\",\n dialCode: \"+213\",\n hasAreaCodes: !1\n}, {\n name: \"American Samoa\",\n regions: [\"oceania\"],\n iso2: \"as\",\n dialCode: \"+1684\",\n hasAreaCodes: !1\n}, {\n name: \"Andorra\",\n regions: [\"europe\"],\n iso2: \"ad\",\n dialCode: \"+376\",\n hasAreaCodes: !1\n}, {\n name: \"Angola\",\n regions: [\"africa\"],\n iso2: \"ao\",\n dialCode: \"+244\",\n hasAreaCodes: !1\n}, {\n name: \"Anguilla\",\n regions: [\"america\", \"carribean\"],\n iso2: \"ai\",\n dialCode: \"+1264\",\n hasAreaCodes: !1\n}, {\n name: \"Antigua and Barbuda\",\n regions: [\"america\", \"carribean\"],\n iso2: \"ag\",\n dialCode: \"+1268\",\n hasAreaCodes: !1\n}, {\n name: \"Argentina\",\n regions: [\"america\", \"south-america\"],\n iso2: \"ar\",\n dialCode: \"+54\",\n hasAreaCodes: !1\n}, {\n name: \"Armenia (Հայաստան)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"am\",\n dialCode: \"+374\",\n hasAreaCodes: !1\n}, {\n name: \"Aruba\",\n regions: [\"america\", \"carribean\"],\n iso2: \"aw\",\n dialCode: \"+297\",\n hasAreaCodes: !1\n}, {\n name: \"Australia\",\n regions: [\"oceania\"],\n iso2: \"au\",\n dialCode: \"+61\",\n hasAreaCodes: !1\n}, {\n name: \"Austria (Österreich)\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"at\",\n dialCode: \"+43\",\n hasAreaCodes: !1\n}, {\n name: \"Azerbaijan (Azərbaycan)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"az\",\n dialCode: \"+994\",\n hasAreaCodes: !1\n}, {\n name: \"Bahamas\",\n regions: [\"america\", \"carribean\"],\n iso2: \"bs\",\n dialCode: \"+1242\",\n hasAreaCodes: !1\n}, {\n name: \"Bahrain (‫البحرين‬‎)\",\n regions: [\"middle-east\"],\n iso2: \"bh\",\n dialCode: \"+973\",\n hasAreaCodes: !1\n}, {\n name: \"Bangladesh (বাংলাদেশ)\",\n regions: [\"asia\"],\n iso2: \"bd\",\n dialCode: \"+880\",\n hasAreaCodes: !1\n}, {\n name: \"Barbados\",\n regions: [\"america\", \"carribean\"],\n iso2: \"bb\",\n dialCode: \"+1246\",\n hasAreaCodes: !1\n}, {\n name: \"Belarus (Беларусь)\",\n regions: [\"europe\", \"ex-ussr\"],\n iso2: \"by\",\n dialCode: \"+375\",\n hasAreaCodes: !1\n}, {\n name: \"Belgium (België)\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"be\",\n dialCode: \"+32\",\n hasAreaCodes: !1\n}, {\n name: \"Belize\",\n regions: [\"america\", \"central-america\"],\n iso2: \"bz\",\n dialCode: \"+501\",\n hasAreaCodes: !1\n}, {\n name: \"Benin (Bénin)\",\n regions: [\"africa\"],\n iso2: \"bj\",\n dialCode: \"+229\",\n hasAreaCodes: !1\n}, {\n name: \"Bermuda\",\n regions: [\"america\", \"north-america\"],\n iso2: \"bm\",\n dialCode: \"+1441\",\n hasAreaCodes: !1\n}, {\n name: \"Bhutan (འབྲུག)\",\n regions: [\"asia\"],\n iso2: \"bt\",\n dialCode: \"+975\",\n hasAreaCodes: !1\n}, {\n name: \"Bolivia\",\n regions: [\"america\", \"south-america\"],\n iso2: \"bo\",\n dialCode: \"+591\",\n hasAreaCodes: !1\n}, {\n name: \"Bosnia and Herzegovina (Босна и Херцеговина)\",\n regions: [\"europe\"],\n iso2: \"ba\",\n dialCode: \"+387\",\n hasAreaCodes: !1\n}, {\n name: \"Botswana\",\n regions: [\"africa\"],\n iso2: \"bw\",\n dialCode: \"+267\",\n hasAreaCodes: !1\n}, {\n name: \"Brazil (Brasil)\",\n regions: [\"america\", \"south-america\"],\n iso2: \"br\",\n dialCode: \"+55\",\n hasAreaCodes: !1\n}, {\n name: \"British Indian Ocean Territory\",\n regions: [\"asia\"],\n iso2: \"io\",\n dialCode: \"+246\",\n hasAreaCodes: !1\n}, {\n name: \"British Virgin Islands\",\n regions: [\"america\", \"carribean\"],\n iso2: \"vg\",\n dialCode: \"+1284\",\n hasAreaCodes: !1\n}, {\n name: \"Brunei\",\n regions: [\"asia\"],\n iso2: \"bn\",\n dialCode: \"+673\",\n hasAreaCodes: !1\n}, {\n name: \"Bulgaria (България)\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"bg\",\n dialCode: \"+359\",\n hasAreaCodes: !1\n}, {\n name: \"Burkina Faso\",\n regions: [\"africa\"],\n iso2: \"bf\",\n dialCode: \"+226\",\n hasAreaCodes: !1\n}, {\n name: \"Burundi (Uburundi)\",\n regions: [\"africa\"],\n iso2: \"bi\",\n dialCode: \"+257\",\n hasAreaCodes: !1\n}, {\n name: \"Cambodia (កម្ពុជា)\",\n regions: [\"asia\"],\n iso2: \"kh\",\n dialCode: \"+855\",\n hasAreaCodes: !1\n}, {\n name: \"Cameroon (Cameroun)\",\n regions: [\"africa\"],\n iso2: \"cm\",\n dialCode: \"+237\",\n hasAreaCodes: !1\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1\",\n hasAreaCodes: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1204\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1236\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1249\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1250\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1289\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1306\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1343\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1365\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1387\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1403\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1416\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1418\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1431\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1437\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1438\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1450\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1506\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1514\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1519\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1548\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1579\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1581\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1587\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1604\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1613\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1639\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1647\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1672\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1705\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1709\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1742\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1778\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1780\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1782\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1807\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1819\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1825\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1867\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1873\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1902\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Canada\",\n regions: [\"america\", \"north-america\"],\n iso2: \"ca\",\n dialCode: \"+1905\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Cape Verde (Kabu Verdi)\",\n regions: [\"africa\"],\n iso2: \"cv\",\n dialCode: \"+238\",\n hasAreaCodes: !1\n}, {\n name: \"Caribbean Netherlands\",\n regions: [\"america\", \"carribean\"],\n iso2: \"bq\",\n dialCode: \"+599\",\n hasAreaCodes: !1\n}, {\n name: \"Cayman Islands\",\n regions: [\"america\", \"carribean\"],\n iso2: \"ky\",\n dialCode: \"+1345\",\n hasAreaCodes: !1\n}, {\n name: \"Central African Republic (République centrafricaine)\",\n regions: [\"africa\"],\n iso2: \"cf\",\n dialCode: \"+236\",\n hasAreaCodes: !1\n}, {\n name: \"Chad (Tchad)\",\n regions: [\"africa\"],\n iso2: \"td\",\n dialCode: \"+235\",\n hasAreaCodes: !1\n}, {\n name: \"Chile\",\n regions: [\"america\", \"south-america\"],\n iso2: \"cl\",\n dialCode: \"+56\",\n hasAreaCodes: !1\n}, {\n name: \"China (中国)\",\n regions: [\"asia\"],\n iso2: \"cn\",\n dialCode: \"+86\",\n hasAreaCodes: !1\n}, {\n name: \"Colombia\",\n regions: [\"america\", \"south-america\"],\n iso2: \"co\",\n dialCode: \"+57\",\n hasAreaCodes: !1\n}, {\n name: \"Comoros (‫جزر القمر‬‎)\",\n regions: [\"africa\"],\n iso2: \"km\",\n dialCode: \"+269\",\n hasAreaCodes: !1\n}, {\n name: \"Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)\",\n regions: [\"africa\"],\n iso2: \"cd\",\n dialCode: \"+243\",\n hasAreaCodes: !1\n}, {\n name: \"Congo (Republic) (Congo-Brazzaville)\",\n regions: [\"africa\"],\n iso2: \"cg\",\n dialCode: \"+242\",\n hasAreaCodes: !1\n}, {\n name: \"Cook Islands\",\n regions: [\"oceania\"],\n iso2: \"ck\",\n dialCode: \"+682\",\n hasAreaCodes: !1\n}, {\n name: \"Costa Rica\",\n regions: [\"america\", \"central-america\"],\n iso2: \"cr\",\n dialCode: \"+506\",\n hasAreaCodes: !1\n}, {\n name: \"Côte d’Ivoire\",\n regions: [\"africa\"],\n iso2: \"ci\",\n dialCode: \"+225\",\n hasAreaCodes: !1\n}, {\n name: \"Croatia (Hrvatska)\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"hr\",\n dialCode: \"+385\",\n hasAreaCodes: !1\n}, {\n name: \"Cuba\",\n regions: [\"america\", \"carribean\"],\n iso2: \"cu\",\n dialCode: \"+53\",\n hasAreaCodes: !1\n}, {\n name: \"Curaçao\",\n regions: [\"america\", \"carribean\"],\n iso2: \"cw\",\n dialCode: \"+599\",\n hasAreaCodes: !1\n}, {\n name: \"Cyprus (Κύπρος)\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"cy\",\n dialCode: \"+357\",\n hasAreaCodes: !1\n}, {\n name: \"Czech Republic (Česká republika)\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"cz\",\n dialCode: \"+420\",\n hasAreaCodes: !1\n}, {\n name: \"Denmark (Danmark)\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"dk\",\n dialCode: \"+45\",\n hasAreaCodes: !1\n}, {\n name: \"Djibouti\",\n regions: [\"africa\"],\n iso2: \"dj\",\n dialCode: \"+253\",\n hasAreaCodes: !1\n}, {\n name: \"Dominica\",\n regions: [\"america\", \"carribean\"],\n iso2: \"dm\",\n dialCode: \"+1767\",\n hasAreaCodes: !1\n}, {\n name: \"Dominican Republic (República Dominicana)\",\n regions: [\"america\", \"carribean\"],\n iso2: \"do\",\n dialCode: \"+1\",\n hasAreaCodes: !0\n}, {\n name: \"Dominican Republic (República Dominicana)\",\n regions: [\"america\", \"carribean\"],\n iso2: \"do\",\n dialCode: \"+1809\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Dominican Republic (República Dominicana)\",\n regions: [\"america\", \"carribean\"],\n iso2: \"do\",\n dialCode: \"+1829\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Dominican Republic (República Dominicana)\",\n regions: [\"america\", \"carribean\"],\n iso2: \"do\",\n dialCode: \"+1849\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Ecuador\",\n regions: [\"america\", \"south-america\"],\n iso2: \"ec\",\n dialCode: \"+593\",\n hasAreaCodes: !1\n}, {\n name: \"Egypt (‫مصر‬‎)\",\n regions: [\"africa\", \"north-africa\"],\n iso2: \"eg\",\n dialCode: \"+20\",\n hasAreaCodes: !1\n}, {\n name: \"El Salvador\",\n regions: [\"america\", \"central-america\"],\n iso2: \"sv\",\n dialCode: \"+503\",\n hasAreaCodes: !1\n}, {\n name: \"Equatorial Guinea (Guinea Ecuatorial)\",\n regions: [\"africa\"],\n iso2: \"gq\",\n dialCode: \"+240\",\n hasAreaCodes: !1\n}, {\n name: \"Eritrea\",\n regions: [\"africa\"],\n iso2: \"er\",\n dialCode: \"+291\",\n hasAreaCodes: !1\n}, {\n name: \"Estonia (Eesti)\",\n regions: [\"europe\", \"european-union\", \"ex-ussr\"],\n iso2: \"ee\",\n dialCode: \"+372\",\n hasAreaCodes: !1\n}, {\n name: \"Ethiopia\",\n regions: [\"africa\"],\n iso2: \"et\",\n dialCode: \"+251\",\n hasAreaCodes: !1\n}, {\n name: \"Falkland Islands (Islas Malvinas)\",\n regions: [\"america\", \"south-america\"],\n iso2: \"fk\",\n dialCode: \"+500\",\n hasAreaCodes: !1\n}, {\n name: \"Faroe Islands (Føroyar)\",\n regions: [\"europe\"],\n iso2: \"fo\",\n dialCode: \"+298\",\n hasAreaCodes: !1\n}, {\n name: \"Fiji\",\n regions: [\"oceania\"],\n iso2: \"fj\",\n dialCode: \"+679\",\n hasAreaCodes: !1\n}, {\n name: \"Finland (Suomi)\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"fi\",\n dialCode: \"+358\",\n hasAreaCodes: !1\n}, {\n name: \"France\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"fr\",\n dialCode: \"+33\",\n hasAreaCodes: !1\n}, {\n name: \"French Guiana (Guyane française)\",\n regions: [\"america\", \"south-america\"],\n iso2: \"gf\",\n dialCode: \"+594\",\n hasAreaCodes: !1\n}, {\n name: \"French Polynesia (Polynésie française)\",\n regions: [\"oceania\"],\n iso2: \"pf\",\n dialCode: \"+689\",\n hasAreaCodes: !1\n}, {\n name: \"Gabon\",\n regions: [\"africa\"],\n iso2: \"ga\",\n dialCode: \"+241\",\n hasAreaCodes: !1\n}, {\n name: \"Gambia\",\n regions: [\"africa\"],\n iso2: \"gm\",\n dialCode: \"+220\",\n hasAreaCodes: !1\n}, {\n name: \"Georgia (საქართველო)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"ge\",\n dialCode: \"+995\",\n hasAreaCodes: !1\n}, {\n name: \"Germany (Deutschland)\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"de\",\n dialCode: \"+49\",\n hasAreaCodes: !1\n}, {\n name: \"Ghana (Gaana)\",\n regions: [\"africa\"],\n iso2: \"gh\",\n dialCode: \"+233\",\n hasAreaCodes: !1\n}, {\n name: \"Gibraltar\",\n regions: [\"europe\"],\n iso2: \"gi\",\n dialCode: \"+350\",\n hasAreaCodes: !1\n}, {\n name: \"Greece (Ελλάδα)\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"gr\",\n dialCode: \"+30\",\n hasAreaCodes: !1\n}, {\n name: \"Greenland (Kalaallit Nunaat)\",\n regions: [\"america\"],\n iso2: \"gl\",\n dialCode: \"+299\",\n hasAreaCodes: !1\n}, {\n name: \"Grenada\",\n regions: [\"america\", \"carribean\"],\n iso2: \"gd\",\n dialCode: \"+1473\",\n hasAreaCodes: !1\n}, {\n name: \"Guadeloupe\",\n regions: [\"america\", \"carribean\"],\n iso2: \"gp\",\n dialCode: \"+590\",\n hasAreaCodes: !1\n}, {\n name: \"Guam\",\n regions: [\"oceania\"],\n iso2: \"gu\",\n dialCode: \"+1671\",\n hasAreaCodes: !1\n}, {\n name: \"Guatemala\",\n regions: [\"america\", \"central-america\"],\n iso2: \"gt\",\n dialCode: \"+502\",\n hasAreaCodes: !1\n}, {\n name: \"Guinea (Guinée)\",\n regions: [\"africa\"],\n iso2: \"gn\",\n dialCode: \"+224\",\n hasAreaCodes: !1\n}, {\n name: \"Guinea-Bissau (Guiné Bissau)\",\n regions: [\"africa\"],\n iso2: \"gw\",\n dialCode: \"+245\",\n hasAreaCodes: !1\n}, {\n name: \"Guyana\",\n regions: [\"america\", \"south-america\"],\n iso2: \"gy\",\n dialCode: \"+592\",\n hasAreaCodes: !1\n}, {\n name: \"Haiti\",\n regions: [\"america\", \"carribean\"],\n iso2: \"ht\",\n dialCode: \"+509\",\n hasAreaCodes: !1\n}, {\n name: \"Honduras\",\n regions: [\"america\", \"central-america\"],\n iso2: \"hn\",\n dialCode: \"+504\",\n hasAreaCodes: !1\n}, {\n name: \"Hong Kong (香港)\",\n regions: [\"asia\"],\n iso2: \"hk\",\n dialCode: \"+852\",\n hasAreaCodes: !1\n}, {\n name: \"Hungary (Magyarország)\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"hu\",\n dialCode: \"+36\",\n hasAreaCodes: !1\n}, {\n name: \"Iceland (Ísland)\",\n regions: [\"europe\"],\n iso2: \"is\",\n dialCode: \"+354\",\n hasAreaCodes: !1\n}, {\n name: \"India (भारत)\",\n regions: [\"asia\"],\n iso2: \"in\",\n dialCode: \"+91\",\n hasAreaCodes: !1\n}, {\n name: \"Indonesia\",\n regions: [\"asia\"],\n iso2: \"id\",\n dialCode: \"+62\",\n hasAreaCodes: !1\n}, {\n name: \"Iran (‫ایران‬‎)\",\n regions: [\"middle-east\"],\n iso2: \"ir\",\n dialCode: \"+98\",\n hasAreaCodes: !1\n}, {\n name: \"Iraq (‫العراق‬‎)\",\n regions: [\"middle-east\"],\n iso2: \"iq\",\n dialCode: \"+964\",\n hasAreaCodes: !1\n}, {\n name: \"Ireland\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"ie\",\n dialCode: \"+353\",\n hasAreaCodes: !1\n}, {\n name: \"Israel (‫ישראל‬‎)\",\n regions: [\"middle-east\"],\n iso2: \"il\",\n dialCode: \"+972\",\n hasAreaCodes: !1\n}, {\n name: \"Italy (Italia)\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"it\",\n dialCode: \"+39\",\n hasAreaCodes: !1\n}, {\n name: \"Jamaica\",\n regions: [\"america\", \"carribean\"],\n iso2: \"jm\",\n dialCode: \"+1876\",\n hasAreaCodes: !1\n}, {\n name: \"Japan (日本)\",\n regions: [\"asia\"],\n iso2: \"jp\",\n dialCode: \"+81\",\n hasAreaCodes: !1\n}, {\n name: \"Jordan (‫الأردن‬‎)\",\n regions: [\"middle-east\"],\n iso2: \"jo\",\n dialCode: \"+962\",\n hasAreaCodes: !1\n}, {\n name: \"Kazakhstan (Казахстан)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"kz\",\n dialCode: \"+7\",\n hasAreaCodes: !0\n}, {\n name: \"Kazakhstan (Казахстан)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"kz\",\n dialCode: \"+7313\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Kazakhstan (Казахстан)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"kz\",\n dialCode: \"+7327\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Kazakhstan (Казахстан)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"kz\",\n dialCode: \"+77172\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Kazakhstan (Казахстан)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"kz\",\n dialCode: \"+7312\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Kazakhstan (Казахстан)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"kz\",\n dialCode: \"+773622\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Kazakhstan (Казахстан)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"kz\",\n dialCode: \"+7321\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Kazakhstan (Казахстан)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"kz\",\n dialCode: \"+7324\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Kazakhstan (Казахстан)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"kz\",\n dialCode: \"+7336\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Kazakhstan (Казахстан)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"kz\",\n dialCode: \"+7318\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Kazakhstan (Казахстан)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"kz\",\n dialCode: \"+7315\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Kazakhstan (Казахстан)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"kz\",\n dialCode: \"+7325\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Kazakhstan (Казахстан)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"kz\",\n dialCode: \"+7311\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Kazakhstan (Казахстан)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"kz\",\n dialCode: \"+7326\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Kazakhstan (Казахстан)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"kz\",\n dialCode: \"+7310\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Kenya\",\n regions: [\"africa\"],\n iso2: \"ke\",\n dialCode: \"+254\",\n hasAreaCodes: !1\n}, {\n name: \"Kiribati\",\n regions: [\"oceania\"],\n iso2: \"ki\",\n dialCode: \"+686\",\n hasAreaCodes: !1\n}, {\n name: \"Kuwait (‫الكويت‬‎)\",\n regions: [\"middle-east\"],\n iso2: \"kw\",\n dialCode: \"+965\",\n hasAreaCodes: !1\n}, {\n name: \"Kyrgyzstan (Кыргызстан)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"kg\",\n dialCode: \"+996\",\n hasAreaCodes: !1\n}, {\n name: \"Laos (ລາວ)\",\n regions: [\"asia\"],\n iso2: \"la\",\n dialCode: \"+856\",\n hasAreaCodes: !1\n}, {\n name: \"Latvia (Latvija)\",\n regions: [\"europe\", \"european-union\", \"ex-ussr\"],\n iso2: \"lv\",\n dialCode: \"+371\",\n hasAreaCodes: !1\n}, {\n name: \"Lebanon (‫لبنان‬‎)\",\n regions: [\"middle-east\"],\n iso2: \"lb\",\n dialCode: \"+961\",\n hasAreaCodes: !1\n}, {\n name: \"Lesotho\",\n regions: [\"africa\"],\n iso2: \"ls\",\n dialCode: \"+266\",\n hasAreaCodes: !1\n}, {\n name: \"Liberia\",\n regions: [\"africa\"],\n iso2: \"lr\",\n dialCode: \"+231\",\n hasAreaCodes: !1\n}, {\n name: \"Libya (‫ليبيا‬‎)\",\n regions: [\"africa\", \"north-africa\"],\n iso2: \"ly\",\n dialCode: \"+218\",\n hasAreaCodes: !1\n}, {\n name: \"Liechtenstein\",\n regions: [\"europe\"],\n iso2: \"li\",\n dialCode: \"+423\",\n hasAreaCodes: !1\n}, {\n name: \"Lithuania (Lietuva)\",\n regions: [\"europe\", \"european-union\", \"ex-ussr\"],\n iso2: \"lt\",\n dialCode: \"+370\",\n hasAreaCodes: !1\n}, {\n name: \"Luxembourg\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"lu\",\n dialCode: \"+352\",\n hasAreaCodes: !1\n}, {\n name: \"Macau (澳門)\",\n regions: [\"asia\"],\n iso2: \"mo\",\n dialCode: \"+853\",\n hasAreaCodes: !1\n}, {\n name: \"Macedonia (FYROM) (Македонија)\",\n regions: [\"europe\"],\n iso2: \"mk\",\n dialCode: \"+389\",\n hasAreaCodes: !1\n}, {\n name: \"Madagascar (Madagasikara)\",\n regions: [\"africa\"],\n iso2: \"mg\",\n dialCode: \"+261\",\n hasAreaCodes: !1\n}, {\n name: \"Malawi\",\n regions: [\"africa\"],\n iso2: \"mw\",\n dialCode: \"+265\",\n hasAreaCodes: !1\n}, {\n name: \"Malaysia\",\n regions: [\"asia\"],\n iso2: \"my\",\n dialCode: \"+60\",\n hasAreaCodes: !1\n}, {\n name: \"Maldives\",\n regions: [\"asia\"],\n iso2: \"mv\",\n dialCode: \"+960\",\n hasAreaCodes: !1\n}, {\n name: \"Mali\",\n regions: [\"africa\"],\n iso2: \"ml\",\n dialCode: \"+223\",\n hasAreaCodes: !1\n}, {\n name: \"Malta\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"mt\",\n dialCode: \"+356\",\n hasAreaCodes: !1\n}, {\n name: \"Marshall Islands\",\n regions: [\"oceania\"],\n iso2: \"mh\",\n dialCode: \"+692\",\n hasAreaCodes: !1\n}, {\n name: \"Martinique\",\n regions: [\"america\", \"carribean\"],\n iso2: \"mq\",\n dialCode: \"+596\",\n hasAreaCodes: !1\n}, {\n name: \"Mauritania (‫موريتانيا‬‎)\",\n regions: [\"africa\"],\n iso2: \"mr\",\n dialCode: \"+222\",\n hasAreaCodes: !1\n}, {\n name: \"Mauritius (Moris)\",\n regions: [\"africa\"],\n iso2: \"mu\",\n dialCode: \"+230\",\n hasAreaCodes: !1\n}, {\n name: \"Mexico (México)\",\n regions: [\"america\", \"central-america\"],\n iso2: \"mx\",\n dialCode: \"+52\",\n hasAreaCodes: !1\n}, {\n name: \"Micronesia\",\n regions: [\"oceania\"],\n iso2: \"fm\",\n dialCode: \"+691\",\n hasAreaCodes: !1\n}, {\n name: \"Moldova (Republica Moldova)\",\n regions: [\"europe\"],\n iso2: \"md\",\n dialCode: \"+373\",\n hasAreaCodes: !1\n}, {\n name: \"Monaco\",\n regions: [\"europe\"],\n iso2: \"mc\",\n dialCode: \"+377\",\n hasAreaCodes: !1\n}, {\n name: \"Mongolia (Монгол)\",\n regions: [\"asia\"],\n iso2: \"mn\",\n dialCode: \"+976\",\n hasAreaCodes: !1\n}, {\n name: \"Montenegro (Crna Gora)\",\n regions: [\"europe\"],\n iso2: \"me\",\n dialCode: \"+382\",\n hasAreaCodes: !1\n}, {\n name: \"Montserrat\",\n regions: [\"america\", \"carribean\"],\n iso2: \"ms\",\n dialCode: \"+1664\",\n hasAreaCodes: !1\n}, {\n name: \"Morocco (‫المغرب‬‎)\",\n regions: [\"africa\", \"north-africa\"],\n iso2: \"ma\",\n dialCode: \"+212\",\n hasAreaCodes: !1\n}, {\n name: \"Mozambique (Moçambique)\",\n regions: [\"africa\"],\n iso2: \"mz\",\n dialCode: \"+258\",\n hasAreaCodes: !1\n}, {\n name: \"Myanmar (Burma) (မြန်မာ)\",\n regions: [\"asia\"],\n iso2: \"mm\",\n dialCode: \"+95\",\n hasAreaCodes: !1\n}, {\n name: \"Namibia (Namibië)\",\n regions: [\"africa\"],\n iso2: \"na\",\n dialCode: \"+264\",\n hasAreaCodes: !1\n}, {\n name: \"Nauru\",\n regions: [\"africa\"],\n iso2: \"nr\",\n dialCode: \"+674\",\n hasAreaCodes: !1\n}, {\n name: \"Nepal (नेपाल)\",\n regions: [\"asia\"],\n iso2: \"np\",\n dialCode: \"+977\",\n hasAreaCodes: !1\n}, {\n name: \"Netherlands (Nederland)\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"nl\",\n dialCode: \"+31\",\n hasAreaCodes: !1\n}, {\n name: \"New Caledonia (Nouvelle-Calédonie)\",\n regions: [\"oceania\"],\n iso2: \"nc\",\n dialCode: \"+687\",\n hasAreaCodes: !1\n}, {\n name: \"New Zealand\",\n regions: [\"oceania\"],\n iso2: \"nz\",\n dialCode: \"+64\",\n hasAreaCodes: !1\n}, {\n name: \"Nicaragua\",\n regions: [\"america\", \"central-america\"],\n iso2: \"ni\",\n dialCode: \"+505\",\n hasAreaCodes: !1\n}, {\n name: \"Niger (Nijar)\",\n regions: [\"africa\"],\n iso2: \"ne\",\n dialCode: \"+227\",\n hasAreaCodes: !1\n}, {\n name: \"Nigeria\",\n regions: [\"africa\"],\n iso2: \"ng\",\n dialCode: \"+234\",\n hasAreaCodes: !1\n}, {\n name: \"Niue\",\n regions: [\"asia\"],\n iso2: \"nu\",\n dialCode: \"+683\",\n hasAreaCodes: !1\n}, {\n name: \"Norfolk Island\",\n regions: [\"oceania\"],\n iso2: \"nf\",\n dialCode: \"+672\",\n hasAreaCodes: !1\n}, {\n name: \"North Korea (조선 민주주의 인민 공화국)\",\n regions: [\"asia\"],\n iso2: \"kp\",\n dialCode: \"+850\",\n hasAreaCodes: !1\n}, {\n name: \"Northern Mariana Islands\",\n regions: [\"oceania\"],\n iso2: \"mp\",\n dialCode: \"+1670\",\n hasAreaCodes: !1\n}, {\n name: \"Norway (Norge)\",\n regions: [\"europe\"],\n iso2: \"no\",\n dialCode: \"+47\",\n hasAreaCodes: !1\n}, {\n name: \"Oman (‫عُمان‬‎)\",\n regions: [\"middle-east\"],\n iso2: \"om\",\n dialCode: \"+968\",\n hasAreaCodes: !1\n}, {\n name: \"Pakistan (‫پاکستان‬‎)\",\n regions: [\"asia\"],\n iso2: \"pk\",\n dialCode: \"+92\",\n hasAreaCodes: !1\n}, {\n name: \"Palau\",\n regions: [\"oceania\"],\n iso2: \"pw\",\n dialCode: \"+680\",\n hasAreaCodes: !1\n}, {\n name: \"Palestine (‫فلسطين‬‎)\",\n regions: [\"middle-east\"],\n iso2: \"ps\",\n dialCode: \"+970\",\n hasAreaCodes: !1\n}, {\n name: \"Panama (Panamá)\",\n regions: [\"america\", \"central-america\"],\n iso2: \"pa\",\n dialCode: \"+507\",\n hasAreaCodes: !1\n}, {\n name: \"Papua New Guinea\",\n regions: [\"oceania\"],\n iso2: \"pg\",\n dialCode: \"+675\",\n hasAreaCodes: !1\n}, {\n name: \"Paraguay\",\n regions: [\"america\", \"south-america\"],\n iso2: \"py\",\n dialCode: \"+595\",\n hasAreaCodes: !1\n}, {\n name: \"Peru (Perú)\",\n regions: [\"america\", \"south-america\"],\n iso2: \"pe\",\n dialCode: \"+51\",\n hasAreaCodes: !1\n}, {\n name: \"Philippines\",\n regions: [\"asia\"],\n iso2: \"ph\",\n dialCode: \"+63\",\n hasAreaCodes: !1\n}, {\n name: \"Poland (Polska)\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"pl\",\n dialCode: \"+48\",\n hasAreaCodes: !1\n}, {\n name: \"Portugal\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"pt\",\n dialCode: \"+351\",\n hasAreaCodes: !1\n}, {\n name: \"Puerto Rico\",\n regions: [\"america\", \"carribean\"],\n iso2: \"pr\",\n dialCode: \"+1\",\n hasAreaCodes: !0\n}, {\n name: \"Puerto Rico\",\n regions: [\"america\", \"carribean\"],\n iso2: \"pr\",\n dialCode: \"+1787\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Puerto Rico\",\n regions: [\"america\", \"carribean\"],\n iso2: \"pr\",\n dialCode: \"+1939\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Qatar (‫قطر‬‎)\",\n regions: [\"middle-east\"],\n iso2: \"qa\",\n dialCode: \"+974\",\n hasAreaCodes: !1\n}, {\n name: \"Réunion (La Réunion)\",\n regions: [\"africa\"],\n iso2: \"re\",\n dialCode: \"+262\",\n hasAreaCodes: !1\n}, {\n name: \"Romania (România)\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"ro\",\n dialCode: \"+40\",\n hasAreaCodes: !1\n}, {\n name: \"Russia (Россия)\",\n regions: [\"europe\", \"asia\", \"ex-ussr\"],\n iso2: \"ru\",\n dialCode: \"+7\",\n hasAreaCodes: !1\n}, {\n name: \"Rwanda\",\n regions: [\"africa\"],\n iso2: \"rw\",\n dialCode: \"+250\",\n hasAreaCodes: !1\n}, {\n name: \"Saint Barthélemy (Saint-Barthélemy)\",\n regions: [\"america\", \"carribean\"],\n iso2: \"bl\",\n dialCode: \"+590\",\n hasAreaCodes: !1\n}, {\n name: \"Saint Helena\",\n regions: [\"africa\"],\n iso2: \"sh\",\n dialCode: \"+290\",\n hasAreaCodes: !1\n}, {\n name: \"Saint Kitts and Nevis\",\n regions: [\"america\", \"carribean\"],\n iso2: \"kn\",\n dialCode: \"+1869\",\n hasAreaCodes: !1\n}, {\n name: \"Saint Lucia\",\n regions: [\"america\", \"carribean\"],\n iso2: \"lc\",\n dialCode: \"+1758\",\n hasAreaCodes: !1\n}, {\n name: \"Saint Martin (Saint-Martin (partie française))\",\n regions: [\"america\", \"carribean\"],\n iso2: \"mf\",\n dialCode: \"+590\",\n hasAreaCodes: !1\n}, {\n name: \"Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)\",\n regions: [\"america\", \"north-america\"],\n iso2: \"pm\",\n dialCode: \"+508\",\n hasAreaCodes: !1\n}, {\n name: \"Saint Vincent and the Grenadines\",\n regions: [\"america\", \"carribean\"],\n iso2: \"vc\",\n dialCode: \"+1784\",\n hasAreaCodes: !1\n}, {\n name: \"Samoa\",\n regions: [\"oceania\"],\n iso2: \"ws\",\n dialCode: \"+685\",\n hasAreaCodes: !1\n}, {\n name: \"San Marino\",\n regions: [\"europe\"],\n iso2: \"sm\",\n dialCode: \"+378\",\n hasAreaCodes: !1\n}, {\n name: \"São Tomé and Príncipe (São Tomé e Príncipe)\",\n regions: [\"africa\"],\n iso2: \"st\",\n dialCode: \"+239\",\n hasAreaCodes: !1\n}, {\n name: \"Saudi Arabia (‫المملكة العربية السعودية‬‎)\",\n regions: [\"middle-east\"],\n iso2: \"sa\",\n dialCode: \"+966\",\n hasAreaCodes: !1\n}, {\n name: \"Senegal (Sénégal)\",\n regions: [\"africa\"],\n iso2: \"sn\",\n dialCode: \"+221\",\n hasAreaCodes: !1\n}, {\n name: \"Serbia (Србија)\",\n regions: [\"europe\"],\n iso2: \"rs\",\n dialCode: \"+381\",\n hasAreaCodes: !1\n}, {\n name: \"Seychelles\",\n regions: [\"africa\"],\n iso2: \"sc\",\n dialCode: \"+248\",\n hasAreaCodes: !1\n}, {\n name: \"Sierra Leone\",\n regions: [\"africa\"],\n iso2: \"sl\",\n dialCode: \"+232\",\n hasAreaCodes: !1\n}, {\n name: \"Singapore\",\n regions: [\"asia\"],\n iso2: \"sg\",\n dialCode: \"+65\",\n hasAreaCodes: !1\n}, {\n name: \"Sint Maarten\",\n regions: [\"america\", \"carribean\"],\n iso2: \"sx\",\n dialCode: \"+1721\",\n hasAreaCodes: !1\n}, {\n name: \"Slovakia (Slovensko)\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"sk\",\n dialCode: \"+421\",\n hasAreaCodes: !1\n}, {\n name: \"Slovenia (Slovenija)\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"si\",\n dialCode: \"+386\",\n hasAreaCodes: !1\n}, {\n name: \"Solomon Islands\",\n regions: [\"oceania\"],\n iso2: \"sb\",\n dialCode: \"+677\",\n hasAreaCodes: !1\n}, {\n name: \"Somalia (Soomaaliya)\",\n regions: [\"africa\"],\n iso2: \"so\",\n dialCode: \"+252\",\n hasAreaCodes: !1\n}, {\n name: \"South Africa\",\n regions: [\"africa\"],\n iso2: \"za\",\n dialCode: \"+27\",\n hasAreaCodes: !1\n}, {\n name: \"South Korea (대한민국)\",\n regions: [\"asia\"],\n iso2: \"kr\",\n dialCode: \"+82\",\n hasAreaCodes: !1\n}, {\n name: \"South Sudan (‫جنوب السودان‬‎)\",\n regions: [\"africa\", \"north-africa\"],\n iso2: \"ss\",\n dialCode: \"+211\",\n hasAreaCodes: !1\n}, {\n name: \"Spain (España)\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"es\",\n dialCode: \"+34\",\n hasAreaCodes: !1\n}, {\n name: \"Sri Lanka (ශ්‍රී ලංකාව)\",\n regions: [\"asia\"],\n iso2: \"lk\",\n dialCode: \"+94\",\n hasAreaCodes: !1\n}, {\n name: \"Sudan (‫السودان‬‎)\",\n regions: [\"africa\"],\n iso2: \"sd\",\n dialCode: \"+249\",\n hasAreaCodes: !1\n}, {\n name: \"Suriname\",\n regions: [\"america\", \"south-america\"],\n iso2: \"sr\",\n dialCode: \"+597\",\n hasAreaCodes: !1\n}, {\n name: \"Swaziland\",\n regions: [\"africa\"],\n iso2: \"sz\",\n dialCode: \"+268\",\n hasAreaCodes: !1\n}, {\n name: \"Sweden (Sverige)\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"se\",\n dialCode: \"+46\",\n hasAreaCodes: !1\n}, {\n name: \"Switzerland (Schweiz)\",\n regions: [\"europe\"],\n iso2: \"ch\",\n dialCode: \"+41\",\n hasAreaCodes: !1\n}, {\n name: \"Syria (‫سوريا‬‎)\",\n regions: [\"middle-east\"],\n iso2: \"sy\",\n dialCode: \"+963\",\n hasAreaCodes: !1\n}, {\n name: \"Taiwan (台灣)\",\n regions: [\"asia\"],\n iso2: \"tw\",\n dialCode: \"+886\",\n hasAreaCodes: !1\n}, {\n name: \"Tajikistan\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"tj\",\n dialCode: \"+992\",\n hasAreaCodes: !1\n}, {\n name: \"Tanzania\",\n regions: [\"africa\"],\n iso2: \"tz\",\n dialCode: \"+255\",\n hasAreaCodes: !1\n}, {\n name: \"Thailand (ไทย)\",\n regions: [\"asia\"],\n iso2: \"th\",\n dialCode: \"+66\",\n hasAreaCodes: !1\n}, {\n name: \"Timor-Leste\",\n regions: [\"asia\"],\n iso2: \"tl\",\n dialCode: \"+670\",\n hasAreaCodes: !1\n}, {\n name: \"Togo\",\n regions: [\"africa\"],\n iso2: \"tg\",\n dialCode: \"+228\",\n hasAreaCodes: !1\n}, {\n name: \"Tokelau\",\n regions: [\"oceania\"],\n iso2: \"tk\",\n dialCode: \"+690\",\n hasAreaCodes: !1\n}, {\n name: \"Tonga\",\n regions: [\"oceania\"],\n iso2: \"to\",\n dialCode: \"+676\",\n hasAreaCodes: !1\n}, {\n name: \"Trinidad and Tobago\",\n regions: [\"america\", \"carribean\"],\n iso2: \"tt\",\n dialCode: \"+1868\",\n hasAreaCodes: !1\n}, {\n name: \"Tunisia (‫تونس‬‎)\",\n regions: [\"africa\", \"north-africa\"],\n iso2: \"tn\",\n dialCode: \"+216\",\n hasAreaCodes: !1\n}, {\n name: \"Turkey (Türkiye)\",\n regions: [\"europe\"],\n iso2: \"tr\",\n dialCode: \"+90\",\n hasAreaCodes: !1\n}, {\n name: \"Turkmenistan\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"tm\",\n dialCode: \"+993\",\n hasAreaCodes: !1\n}, {\n name: \"Turks and Caicos Islands\",\n regions: [\"america\", \"carribean\"],\n iso2: \"tc\",\n dialCode: \"+1649\",\n hasAreaCodes: !1\n}, {\n name: \"Tuvalu\",\n regions: [\"asia\"],\n iso2: \"tv\",\n dialCode: \"+688\",\n hasAreaCodes: !1\n}, {\n name: \"U.S. Virgin Islands\",\n regions: [\"america\", \"carribean\"],\n iso2: \"vi\",\n dialCode: \"+1340\",\n hasAreaCodes: !1\n}, {\n name: \"Uganda\",\n regions: [\"africa\"],\n iso2: \"ug\",\n dialCode: \"+256\",\n hasAreaCodes: !1\n}, {\n name: \"Ukraine\",\n regions: [\"europe\", \"ex-ussr\"],\n iso2: \"ua\",\n dialCode: \"+380\",\n hasAreaCodes: !1\n}, {\n name: \"United Arab Emirates (‫الإمارات العربية المتحدة‬‎)\",\n regions: [\"middle-east\"],\n iso2: \"ae\",\n dialCode: \"+971\",\n hasAreaCodes: !1\n}, {\n name: \"United Kingdom\",\n regions: [\"europe\", \"european-union\"],\n iso2: \"gb\",\n dialCode: \"+44\",\n hasAreaCodes: !1\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1\",\n hasAreaCodes: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1907\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1205\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1251\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1256\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1334\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1479\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1501\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1870\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1480\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1520\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1602\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1623\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1928\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1209\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1213\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1310\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1323\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1408\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1415\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1510\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1530\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1559\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1562\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1619\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1626\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1650\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1661\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1707\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1714\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1760\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1805\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1818\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1831\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1858\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1909\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1916\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1925\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1949\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1951\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1303\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1719\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1970\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1203\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1860\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1202\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1302\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1239\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1305\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1321\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1352\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1386\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1407\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1561\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1727\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1772\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1813\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1850\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1863\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1904\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1941\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1954\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1229\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1404\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1478\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1706\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1770\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1912\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1808\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1319\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1515\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1563\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1641\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1712\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1208\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1217\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1309\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1312\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1618\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1630\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1708\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1773\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1815\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1847\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1219\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1260\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1317\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1574\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1765\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1812\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1316\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1620\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1785\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1913\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1270\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1502\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1606\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1859\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1225\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1318\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1337\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1504\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1985\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1413\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1508\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1617\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1781\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1978\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1301\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1410\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1207\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1231\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1248\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1269\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1313\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1517\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1586\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1616\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1734\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1810\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1906\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1989\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1218\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1320\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1507\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1612\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1651\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1763\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1952\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1314\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1417\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1573\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1636\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1660\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1816\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1228\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1601\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1662\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1406\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1252\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1336\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1704\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1828\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1910\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1919\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1701\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1308\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1402\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1603\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1201\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1609\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1732\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1856\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1908\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1973\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1505\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1575\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1702\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1775\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1212\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1315\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1516\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1518\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1585\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1607\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1631\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1716\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1718\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1845\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1914\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1216\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1330\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1419\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1440\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1513\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1614\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1740\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1937\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1405\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1580\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1918\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1503\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1541\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1215\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1412\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1570\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1610\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1717\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1724\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1814\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1401\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1803\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1843\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1864\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1605\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1423\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1615\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1731\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1865\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1901\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1931\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1210\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1214\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1254\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1281\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1325\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1361\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1409\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1432\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1512\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1713\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1806\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1817\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1830\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1903\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1915\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1936\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1940\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1956\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1972\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1979\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1435\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1801\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1276\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1434\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1540\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1703\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1757\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1804\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1802\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1206\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1253\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1360\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1425\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1509\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1262\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1414\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1608\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1715\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1920\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1304\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"United States\",\n regions: [\"america\", \"north-america\"],\n iso2: \"us\",\n dialCode: \"+1307\",\n hasAreaCodes: !0,\n isAreaCode: !0\n}, {\n name: \"Uruguay\",\n regions: [\"america\", \"south-america\"],\n iso2: \"uy\",\n dialCode: \"+598\",\n hasAreaCodes: !1\n}, {\n name: \"Uzbekistan (Oʻzbekiston)\",\n regions: [\"asia\", \"ex-ussr\"],\n iso2: \"uz\",\n dialCode: \"+998\",\n hasAreaCodes: !1\n}, {\n name: \"Vanuatu\",\n regions: [\"oceania\"],\n iso2: \"vu\",\n dialCode: \"+678\",\n hasAreaCodes: !1\n}, {\n name: \"Vatican City (Città del Vaticano)\",\n regions: [\"europe\"],\n iso2: \"va\",\n dialCode: \"+39\",\n hasAreaCodes: !1\n}, {\n name: \"Venezuela\",\n regions: [\"america\", \"south-america\"],\n iso2: \"ve\",\n dialCode: \"+58\",\n hasAreaCodes: !1\n}, {\n name: \"Vietnam (Việt Nam)\",\n regions: [\"asia\"],\n iso2: \"vn\",\n dialCode: \"+84\",\n hasAreaCodes: !1\n}, {\n name: \"Wallis and Futuna\",\n regions: [\"oceania\"],\n iso2: \"wf\",\n dialCode: \"+681\",\n hasAreaCodes: !1\n}, {\n name: \"Yemen (‫اليمن‬‎)\",\n regions: [\"middle-east\"],\n iso2: \"ye\",\n dialCode: \"+967\",\n hasAreaCodes: !1\n}, {\n name: \"Zambia\",\n regions: [\"africa\"],\n iso2: \"zm\",\n dialCode: \"+260\",\n hasAreaCodes: !1\n}, {\n name: \"Zimbabwe\",\n regions: [\"africa\"],\n iso2: \"zw\",\n dialCode: \"+263\",\n hasAreaCodes: !1\n}],\n U = function U(e, a) {\n return g.find(function (i) {\n return i[e] === a;\n });\n},\n p = function p(e) {\n var a = e.startsWith(\"+\") ? e.slice(1, 6) : e.slice(0, 5);\n return g.find(function (e) {\n return e.dialCode.startsWith(\"+\".concat(a.replace(\" \", \"\")));\n });\n},\n S = function S(e) {\n return \"string\" == typeof e ? g.filter(function (a) {\n return a.regions.includes(e.toLowerCase());\n }) : g.filter(function (a) {\n return e.map(function (e) {\n return a.regions.includes(e.toLowerCase());\n }).some(function (e) {\n return e;\n });\n });\n},\n b = function b(e, a, i) {\n return e ? U(\"iso2\", e.toLowerCase()) : a.length ? U(\"iso2\", a[0].toLowerCase()) : i ? S(i)[0] : U(\"iso2\", \"intl\");\n},\n Q = function Q(e, a) {\n return e.length ? function (e) {\n return e.map(function (e) {\n return U(\"iso2\", e.toLowerCase());\n });\n }(e) : a ? S(a) : g;\n},\n f = function f(e, a, i) {\n var s = e;\n \"INTERNATIONAL\" === a && (s.startsWith(\"+\") || (s = \"+\".concat(s)), s.startsWith(\"+00\") && (s = s.replace(\"00\", \"\")));\n var o = C(s, i.toUpperCase());\n\n try {\n s = o.format(a);\n } catch (e) {\n s = s.replace(/\\(+-()\\)/g, \"\");\n }\n\n return s;\n};\n\n!function (e, a) {\n void 0 === a && (a = {});\n var i = a.insertAt;\n\n if (e && \"undefined\" != typeof document) {\n var s = document.head || document.getElementsByTagName(\"head\")[0],\n o = document.createElement(\"style\");\n o.type = \"text/css\", \"top\" === i && s.firstChild ? s.insertBefore(o, s.firstChild) : s.appendChild(o), o.styleSheet ? o.styleSheet.cssText = e : o.appendChild(document.createTextNode(e));\n }\n}('.react-phonenr-input{display:flex;max-width:320px;position:relative}.react-phonenr-input button,.react-phonenr-input input{appearance:none;-moz-appearance:none;-webkit-appearance:none;box-sizing:border-box;border:1px solid #ccc;outline:none;border-radius:0;height:1.8rem}.react-phonenr-input .flag-wrapper{position:relative;display:flex;align-content:center;justify-content:center;align-items:center;padding-right:7px;padding-left:2px;width:30px;border:1px solid #ccc;border-right:none;background-color:#ddd}.react-phonenr-input .flag-wrapper img{width:20px;position:absolute;top:50%;transform:translateY(-50%);z-index:5}.react-phonenr-input .flag-wrapper select{position:absolute;appearance:none;-moz-appearance:none;-webkit-appearance:none;width:100%;height:100%;padding:0;margin:0;border:none;border-radius:0;opacity:0;z-index:10}.react-phonenr-input .flag-wrapper:after{content:\"\";width:0;height:0;border:2.8px solid transparent;border-top-color:#000;position:absolute;right:2px;top:50%;transform:translateY(-50%);pointer-events:none}.react-phonenr-input input{width:280px;font-size:inherit;padding:0 5px}.react-phonenr-input ul{box-sizing:border-box;width:100%;max-height:290px;position:absolute;top:35px;border:1px solid #ccc;list-style:none;margin:0;overflow-y:auto;padding:0;background-color:#fff;z-index:999}.react-phonenr-input ul li{position:relative;display:flex;align-items:center;align-content:space-between;font-size:1rem;padding:3px .5rem 3px 35px}.react-phonenr-input ul li.active-country,.react-phonenr-input ul li:hover{background-color:#ddd;color:currentColor;cursor:pointer}.react-phonenr-input ul li span{position:absolute!important;top:50%!important;left:3px!important;transform:translateY(-50%)!important;margin:0 5px}.react-phonenr-input ul::-webkit-scrollbar{width:3px}.react-phonenr-input ul::-webkit-scrollbar-track{background:#f1f1f1;box-shadow:inset 0 0 5px #ccc}.react-phonenr-input ul::-webkit-scrollbar-thumb{background:#888}.react-phonenr-input ul::-webkit-scrollbar-thumb:hover{background:#555}\\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9saWIvY29tcG9uZW50cy9QaG9uZUlucHV0L3N0eWxlcy5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHFCQUNFLFlBQWEsQ0FDYixlQUFnQixDQUNoQixpQkFBa0IsQ0FIcEIsdURBTUksZUFBZ0IsQ0FDaEIsb0JBQXFCLENBQ3JCLHVCQUF3QixDQUN4QixxQkFBc0IsQ0FDdEIscUJBQXNCLENBQ3RCLFlBQWEsQ0FDYixlQUFrQixDQUNsQixhQUF3QixDQWI1QixtQ0FnQkksaUJBQWtCLENBQ2xCLFlBQWEsQ0FDYixvQkFBcUIsQ0FDckIsc0JBQXVCLENBQ3ZCLGtCQUFtQixDQUNuQixpQkFBa0IsQ0FDbEIsZ0JBQWlCLENBQ2pCLFVBQVcsQ0FFWCxxQkFBa0IsQ0FBbEIsaUJBQWtCLENBQ2xCLHFCQUFzQixDQTFCMUIsdUNBNEJNLFVBQVcsQ0FDWCxpQkFBa0IsQ0FDbEIsT0FBUSxDQUNSLDBCQUEyQixDQUMzQixTQUFVLENBaENoQiwwQ0FtQ00saUJBQWtCLENBQ2xCLGVBQWdCLENBQ2hCLG9CQUFxQixDQUNyQix1QkFBd0IsQ0FDeEIsVUFBVyxDQUNYLFdBQVksQ0FDWixTQUFVLENBQ1YsUUFBUyxDQUNULFdBQVksQ0FDWixlQUFrQixDQUNsQixTQUFVLENBQ1YsVUFBVyxDQTlDakIseUNBaURNLFVBQVcsQ0FDWCxPQUFRLENBQ1IsUUFBUyxDQUVULDhCQUFzRCxDQUF0RCxxQkFBc0QsQ0FDdEQsaUJBQWtCLENBQ2xCLFNBQVUsQ0FDVixPQUFRLENBQ1IsMEJBQTJCLENBQzNCLG1CQUFvQixDQTFEMUIsMkJBOERJLFdBQVksQ0FDWixpQkFBa0IsQ0FDbEIsYUFBZ0IsQ0FoRXBCLHdCQW1FSSxxQkFBc0IsQ0FDdEIsVUFBVyxDQUNYLGdCQUFpQixDQUNqQixpQkFBa0IsQ0FDbEIsUUFBUyxDQUNULHFCQUFzQixDQUN0QixlQUFnQixDQUNoQixRQUFTLENBQ1QsZUFBZ0IsQ0FDaEIsU0FBVSxDQUNWLHFCQUFzQixDQUN0QixXQXNDcUIsQ0FwSHpCLDJCQWdGTSxpQkFBa0IsQ0FDbEIsWUFBYSxDQUNiLGtCQUFtQixDQUNuQiwyQkFBNEIsQ0FDNUIsY0FBZSxDQUNmLDBCQUE0QixDQXJGbEMsMkVBd0ZRLHFCQUFzQixDQUN0QixrQkFBbUIsQ0FDbkIsY0FBZSxDQTFGdkIsZ0NBNkZRLDJCQUE2QixDQUM3QixpQkFBbUIsQ0FDbkIsa0JBQW9CLENBQ3BCLG9DQUFzQyxDQUN0QyxZQUFlLENBakd2QiwyQ0FzR00sU0FBVSxDQXRHaEIsaURBMkdNLGtCQUFtQixDQUNuQiw2QkFBOEIsQ0E1R3BDLGlEQWlITSxlQUFnQixDQWpIdEIsdURBc0hNLGVBQWdCIiwiZmlsZSI6InN0eWxlcy5zY3NzIn0= */');\n\nvar x = function x(a) {\n var C = a.className,\n m = a.defaultCountry,\n c = a.preferredCountries,\n l = a.regions,\n g = a.format,\n S = a.initialValue,\n x = a.withCountryMeta,\n N = a.onChange,\n B = a.disabled,\n k = a.buttonFlagStyles,\n F = a.listFlagStyles,\n y = a.placeholder,\n I = h(i(b(m, c, l)), 2),\n E = I[0],\n w = I[1],\n L = h(i(\"INTERNATIONAL\" === g ? b(m, c, l).dialCode : \"\"), 2),\n D = L[0],\n v = L[1],\n z = h(i(!1), 2),\n M = z[0],\n T = z[1],\n R = s(null),\n V = s(null),\n O = s(null),\n G = s(null),\n P = u.any(),\n J = E.iso2,\n j = function j(e) {\n R.current && !R.current.contains(e.target) && T(!1);\n };\n\n o(function () {\n var e,\n a = x ? {\n phoneNumber: D,\n country: t(E, [\"hasAreaCodes\", \"isAreaCode\", \"dialCode\", \"regions\"])\n } : D;\n M && J && \"intl\" !== J && (O.current.scrollTop = (null === (e = G.current) || void 0 === e ? void 0 : e.offsetTop) - 50);\n N(a);\n }, [E, D, M]), o(function () {\n if (document.addEventListener(\"mousedown\", j), S) {\n var e = S.startsWith(\"+\") ? S.slice(1, 4) : S.slice(0, 3);\n w(function (a) {\n return \"INTERNATIONAL\" === g && p(e) ? p(e) : a;\n }), v(f(S, g, J));\n }\n\n return function () {\n document.removeEventListener(\"mousedown\", j);\n };\n }, []);\n var W = r(function (e) {\n return function (a) {\n var i = U(\"iso2\", e || a.target.value);\n w(i), v(i.dialCode), T(!1), V.current.focus();\n };\n }, [E]),\n Y = r(function () {\n B || T(function (e) {\n return !e;\n });\n }, [M]);\n return e.createElement(\"div\", {\n className: \"react-phonenr-input\",\n ref: R\n }, \"INTERNATIONAL\" === g && e.createElement(\"div\", {\n onClick: P ? void 0 : Y,\n className: \"flag-wrapper\",\n role: \"none\"\n }, \"intl\" === J ? e.createElement(\"img\", {\n src: \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAclBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACa4vOeAAAAJXRSTlMAjvcHgSPxpRLm4E0bQC66VsrZwXhus5yWKa3UZ2I07M+IXEc4/YJ91gAACDFJREFUeNrkmdt6mzAQhNeSOJ9tjO3gA3ai93/FfpVwJhhJBTVtLzpX/gqIn93ZEaTkJX59iGi3DRmTkrFwW0XiceX0V8QLUSXSqKQSxR+muLYVk06xqr3SH1IgUrlIqQ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NpisQVnAAA+SNtZMLnpYfgfBEC51vCqYIKpqbHAY1cAxoRKc2QTjVc3ArpNHbH/HgbwPqiNFja4HQU1MpjDEsIYdD3bxOsN3oZ1psp+4c7gNUMxFa7wGaoQQNNQNIt0G5ogPOW/SEYPaQgMao3gts/kPV2sDsEX87bh2JNgQ7kFbcEwbIip1E9ht0Eh7t6CZifnHcSjCaKR7VY+wNVgOYLLblEKB6oVOLHCC2dpywepkA7zLr/1CU/8R+Nv7grDnGxmeZTzDH8RTzdf/QY0emrUAtECU506slDiUe76wSoLY5TvcTnBqoXI/omo01yiOoFjDjEY3rUIWS3TmnXj0mQ/h47SPdriU4Qm8jx1J8XWBf8+kP3O58A3e8Y4XHGqf3579rPFWAT4bHMAeHxsFShifIpMzopQHsj5TM8tj3I6IAEuZobSmKN9KolAqUaKqfGAgWbt5uJz9yxJLyUa9RvWRp3/1/I75NE2acXyoSM+T8JkhFS/RrZ+zcxJZ3Bh/LXLwAAAABJRU5ErkJggg==\",\n alt: \"globe\"\n }) : e.createElement(d, {\n code: J || \"\",\n styleProps: A({\n display: \"block\",\n position: \"absolute\",\n width: \"20px\",\n height: \"15px\",\n backgroundPosition: \"center center\",\n zIndex: 7\n }, k),\n svg: !0\n }), P && e.createElement(\"select\", {\n className: C,\n onChange: W(),\n disabled: B\n }, Q(c, l).map(function (a) {\n return a.isAreaCode ? null : e.createElement(\"option\", {\n key: a.iso2,\n value: a.iso2\n }, a.name);\n }))), e.createElement(\"input\", {\n className: C,\n type: \"tel\",\n value: D,\n onChange: function onChange(e) {\n var a = e.target.value,\n i = p(a);\n if (!a.length) return w(b(m, c, l)), void v(\"\");\n /^[\\d ()+-]+$/.test(a) && (w(function (e) {\n return \"INTERNATIONAL\" === g && i ? i : e;\n }), v(f(a, g, J)));\n },\n placeholder: y,\n disabled: B,\n ref: V,\n maxLength: \"21\"\n }), M && \"INTERNATIONAL\" === g && !P && e.createElement(\"ul\", {\n className: \"country-list\",\n ref: O\n }, Q(c, l).map(function (a) {\n return a.isAreaCode ? null : e.createElement(\"li\", {\n key: a.iso2,\n onClick: W(a.iso2),\n onKeyPress: W(a.iso2),\n className: n(\"country-list-item\", {\n \"active-country\": a.iso2 === J\n }),\n ref: a.iso2 === J ? G : null\n }, e.createElement(d, {\n styleProps: A({\n width: \"20px\"\n }, F),\n code: a.iso2,\n svg: !0\n }), \" \".concat(a.name));\n })));\n};\n\nx.defaultProps = {\n defaultCountry: null,\n preferredCountries: [],\n regions: null,\n format: \"INTERNATIONAL\",\n placeholder: \"+1 702 123 4567\",\n className: null,\n disabled: !1,\n withCountryMeta: !1,\n buttonFlagStyles: null,\n listFlagStyles: null,\n initialValue: null\n};\nvar N = a(x);\nexport { N as PhoneInput };","import e, { useState as t, memo as r, useCallback as o } from \"react\";\nimport n from \"classnames\";\nimport { useFormikContext as a, useField as i, getIn as l, Form as p } from \"formik\";\nimport c from \"lodash.omit\";\nimport m from \"react-datepicker\";\nimport \"react-datepicker/dist/react-datepicker.css\";\nimport { useDropzone as u } from \"react-dropzone\";\nimport { PhoneInput as d } from \"react-phonenr-input\";\n\nfunction s(e, t) {\n return function (e) {\n if (Array.isArray(e)) return e;\n }(e) || function (e, t) {\n if (Symbol.iterator in Object(e) || \"[object Arguments]\" === Object.prototype.toString.call(e)) {\n var r = [],\n o = !0,\n n = !1,\n a = void 0;\n\n try {\n for (var i, l = e[Symbol.iterator](); !(o = (i = l.next()).done) && (r.push(i.value), !t || r.length !== t); o = !0) {\n ;\n }\n } catch (e) {\n n = !0, a = e;\n } finally {\n try {\n o || null == l.return || l.return();\n } finally {\n if (n) throw a;\n }\n }\n\n return r;\n }\n }(e, t) || function () {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }();\n}\n\nfunction f(e, t) {\n if (null == e) return {};\n\n var r,\n o,\n n = function (e, t) {\n if (null == e) return {};\n var r,\n o,\n n = {},\n a = Object.keys(e);\n\n for (o = 0; o < a.length; o++) {\n r = a[o], t.indexOf(r) >= 0 || (n[r] = e[r]);\n }\n\n return n;\n }(e, t);\n\n if (Object.getOwnPropertySymbols) {\n var a = Object.getOwnPropertySymbols(e);\n\n for (o = 0; o < a.length; o++) {\n r = a[o], t.indexOf(r) >= 0 || Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);\n }\n }\n\n return n;\n}\n\nvar h = function h(t) {\n var r = t.hintMsg,\n o = t.errorMsg;\n return e.createElement(\"span\", {\n className: n({\n hint: !!r,\n error: !!o\n })\n }, o || r);\n};\n\nh.defaultProps = {\n hintMsg: null,\n errorMsg: null\n};\n\nvar b = function b(e, r) {\n var o = arguments.length > 2 && void 0 !== arguments[2] && arguments[2],\n n = arguments.length > 3 ? arguments[3] : void 0,\n p = arguments.length > 4 ? arguments[4] : void 0,\n c = i(e),\n m = s(c, 1),\n u = m[0],\n d = a(),\n f = d.values,\n h = t(!1),\n b = s(h, 2),\n g = b[0],\n k = b[1],\n w = function w(e) {\n k(\"onAutoFillStart\" === e.animationName);\n },\n y = function y() {\n n && n(), k(!0);\n },\n x = function x() {\n p && p(), u.onBlur(e), k(!1);\n },\n v = l(f, e),\n N = g || !!v || !!r || !(!o || !v);\n\n return [N, w, y, x];\n},\n g = function g() {\n var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : \"input\";\n return function (o) {\n var i = function i(r) {\n var i = r.name,\n p = r.label,\n m = r.hint,\n u = r.placeholder,\n d = r.type,\n f = r.disabled,\n g = r.required,\n k = r.style,\n w = r.format,\n y = r.onFocus,\n x = r.onBlur,\n v = s(b(i, u, f, y, x), 4),\n N = v[0],\n E = v[1],\n z = v[2],\n F = v[3],\n O = a(),\n P = O.errors,\n j = O.touched,\n C = l(P, i),\n L = d && \"hidden\" === d,\n I = l(j, i) && C ? C : null,\n S = \"phoneInput\" === t && \"INTERNATIONAL\" === w,\n T = c(r, [\"hint\", \"label\", \"onFocus\", \"onBlur\"]);\n return e.createElement(\"div\", {\n className: n(\"form-element\", t, {\n hasError: !!I,\n hidden: L\n })\n }, e.createElement(\"div\", {\n className: n(\"\".concat(t, \"-wrapper\"), {\n isDisabled: f\n })\n }, p && e.createElement(\"span\", {\n className: n(\"label\", {\n hide: N,\n moveLabel: S\n })\n }, \"\".concat(p).concat(g ? \" *\" : \"\")), e.createElement(o, Object.assign({\n onAnimationStart: E,\n onFocus: z,\n onBlur: F,\n style: k\n }, T))), !!I && e.createElement(h, {\n errorMsg: I\n }), !!m && e.createElement(h, {\n hintMsg: m\n }));\n };\n\n return i.defaultProps = {\n label: null,\n hint: null,\n placeholder: null,\n type: null,\n disabled: !1,\n required: !1,\n style: null,\n format: \"INTERNATIONAL\",\n onFocus: null,\n onBlur: null\n }, r(i);\n };\n},\n k = function k(r) {\n var o = r.name,\n i = r.id,\n p = r.suggestions,\n c = r.className,\n m = r.style,\n u = f(r, [\"name\", \"id\", \"suggestions\", \"className\", \"style\"]),\n d = a().values,\n h = function (e, r) {\n var o = a(),\n n = o.setFieldValue,\n i = o.setFieldTouched,\n l = s(t(0), 2),\n p = l[0],\n c = l[1],\n m = s(t(null), 2),\n u = m[0],\n d = m[1],\n f = s(t(!1), 2),\n h = f[0],\n b = f[1];\n return [p, u, h, function (t) {\n var o = t.currentTarget.value,\n a = r.filter(function (e) {\n return e.toLowerCase().startsWith(o.toLowerCase());\n });\n c(0), d(a), b(!0), n(e, o), i(e, !0);\n }, function (t) {\n c(0), d(null), b(!1), n(e, t.currentTarget.innerText), i(e, !0);\n }, function (t) {\n if (13 === t.keyCode) {\n if (t.preventDefault(), \"\" === t.currentTarget.value) return;\n b(!1), n(e, u[p]), i(e, !0);\n } else if (38 === t.keyCode) {\n var r = u.length;\n c(0 === p ? r - 1 : p - 1);\n } else if (40 === t.keyCode) {\n var o = u.length;\n c(p === o - 1 ? 0 : p + 1);\n }\n }];\n }(o, p),\n b = s(h, 6),\n g = b[0],\n k = b[1],\n w = b[2],\n y = b[3],\n x = b[4],\n v = b[5];\n\n return e.createElement(e.Fragment, null, e.createElement(\"input\", Object.assign({}, u, {\n id: i || o,\n name: o,\n className: c,\n style: m,\n onChange: y,\n onKeyDown: v,\n value: l(d, o),\n type: \"text\",\n tabIndex: \"0\"\n })), w && !!l(d, o) && e.createElement(\"ul\", {\n className: \"suggestions\"\n }, null == k ? void 0 : k.map(function (t, r) {\n return e.createElement(\"li\", {\n className: n({\n \"suggestion-active\": r === g\n }),\n key: t,\n onClick: x,\n onKeyPress: x\n }, t);\n })));\n};\n\nk.defaultProps = {\n className: null,\n style: null,\n disabled: !1,\n id: null,\n label: null,\n placeholder: null,\n hint: null,\n required: !1\n};\n\nvar w = g(\"autocomplete\")(k),\n y = function y(t) {\n var r = t.children,\n o = t.className,\n a = t.style,\n i = t.disabled,\n l = t.onClick,\n p = t.type,\n c = f(t, [\"children\", \"className\", \"style\", \"disabled\", \"onClick\", \"type\"]);\n return e.createElement(\"button\", Object.assign({}, c, {\n className: n(\"form-element btn\", o, {\n isDisabled: i\n }),\n style: a,\n onClick: l,\n type: p,\n disabled: i\n }), r);\n};\n\ny.defaultProps = {\n children: null,\n className: null,\n style: null,\n disabled: !1,\n type: \"button\"\n};\n\nvar x = r(y),\n v = function v(t) {\n var r = t.disabled,\n n = t.id,\n i = t.name,\n p = t.text,\n c = t.className,\n m = t.style,\n u = f(t, [\"disabled\", \"id\", \"name\", \"text\", \"className\", \"style\"]),\n d = a(),\n s = d.values,\n h = d.setFieldValue,\n b = d.setFieldTouched,\n g = l(s, i),\n k = o(function () {\n h(i, !g), b(i, !0);\n }, [g]);\n return e.createElement(\"div\", {\n className: \"checkbox-input-wrapper\"\n }, e.createElement(\"input\", Object.assign({\n onChange: k\n }, u, {\n id: n || i,\n name: i,\n checked: g,\n className: c,\n style: m,\n disabled: r,\n type: \"checkbox\"\n })), e.createElement(\"label\", {\n htmlFor: i,\n className: \"checkbox-text\"\n }, p));\n};\n\nv.defaultProps = {\n id: null,\n className: null,\n style: null,\n label: null,\n hint: null,\n text: null,\n required: !1,\n disabled: !1\n};\nvar N = g(\"checkbox\")(v);\n\nvar E = function (e, t) {\n return e(t = {\n exports: {}\n }, t.exports), t.exports;\n}(function (e) {\n var t = function (e) {\n var t = Object.prototype,\n r = t.hasOwnProperty,\n o = \"function\" == typeof Symbol ? Symbol : {},\n n = o.iterator || \"@@iterator\",\n a = o.asyncIterator || \"@@asyncIterator\",\n i = o.toStringTag || \"@@toStringTag\";\n\n function l(e, t, r, o) {\n var n = t && t.prototype instanceof m ? t : m,\n a = Object.create(n.prototype),\n i = new v(o || []);\n return a._invoke = function (e, t, r) {\n var o = \"suspendedStart\";\n return function (n, a) {\n if (\"executing\" === o) throw new Error(\"Generator is already running\");\n\n if (\"completed\" === o) {\n if (\"throw\" === n) throw a;\n return E();\n }\n\n for (r.method = n, r.arg = a;;) {\n var i = r.delegate;\n\n if (i) {\n var l = w(i, r);\n\n if (l) {\n if (l === c) continue;\n return l;\n }\n }\n\n if (\"next\" === r.method) r.sent = r._sent = r.arg;else if (\"throw\" === r.method) {\n if (\"suspendedStart\" === o) throw o = \"completed\", r.arg;\n r.dispatchException(r.arg);\n } else \"return\" === r.method && r.abrupt(\"return\", r.arg);\n o = \"executing\";\n var m = p(e, t, r);\n\n if (\"normal\" === m.type) {\n if (o = r.done ? \"completed\" : \"suspendedYield\", m.arg === c) continue;\n return {\n value: m.arg,\n done: r.done\n };\n }\n\n \"throw\" === m.type && (o = \"completed\", r.method = \"throw\", r.arg = m.arg);\n }\n };\n }(e, r, i), a;\n }\n\n function p(e, t, r) {\n try {\n return {\n type: \"normal\",\n arg: e.call(t, r)\n };\n } catch (e) {\n return {\n type: \"throw\",\n arg: e\n };\n }\n }\n\n e.wrap = l;\n var c = {};\n\n function m() {}\n\n function u() {}\n\n function d() {}\n\n var s = {};\n\n s[n] = function () {\n return this;\n };\n\n var f = Object.getPrototypeOf,\n h = f && f(f(N([])));\n h && h !== t && r.call(h, n) && (s = h);\n var b = d.prototype = m.prototype = Object.create(s);\n\n function g(e) {\n [\"next\", \"throw\", \"return\"].forEach(function (t) {\n e[t] = function (e) {\n return this._invoke(t, e);\n };\n });\n }\n\n function k(e) {\n var t;\n\n this._invoke = function (o, n) {\n function a() {\n return new Promise(function (t, a) {\n !function t(o, n, a, i) {\n var l = p(e[o], e, n);\n\n if (\"throw\" !== l.type) {\n var c = l.arg,\n m = c.value;\n return m && \"object\" == typeof m && r.call(m, \"__await\") ? Promise.resolve(m.__await).then(function (e) {\n t(\"next\", e, a, i);\n }, function (e) {\n t(\"throw\", e, a, i);\n }) : Promise.resolve(m).then(function (e) {\n c.value = e, a(c);\n }, function (e) {\n return t(\"throw\", e, a, i);\n });\n }\n\n i(l.arg);\n }(o, n, t, a);\n });\n }\n\n return t = t ? t.then(a, a) : a();\n };\n }\n\n function w(e, t) {\n var r = e.iterator[t.method];\n\n if (void 0 === r) {\n if (t.delegate = null, \"throw\" === t.method) {\n if (e.iterator.return && (t.method = \"return\", t.arg = void 0, w(e, t), \"throw\" === t.method)) return c;\n t.method = \"throw\", t.arg = new TypeError(\"The iterator does not provide a 'throw' method\");\n }\n\n return c;\n }\n\n var o = p(r, e.iterator, t.arg);\n if (\"throw\" === o.type) return t.method = \"throw\", t.arg = o.arg, t.delegate = null, c;\n var n = o.arg;\n return n ? n.done ? (t[e.resultName] = n.value, t.next = e.nextLoc, \"return\" !== t.method && (t.method = \"next\", t.arg = void 0), t.delegate = null, c) : n : (t.method = \"throw\", t.arg = new TypeError(\"iterator result is not an object\"), t.delegate = null, c);\n }\n\n function y(e) {\n var t = {\n tryLoc: e[0]\n };\n 1 in e && (t.catchLoc = e[1]), 2 in e && (t.finallyLoc = e[2], t.afterLoc = e[3]), this.tryEntries.push(t);\n }\n\n function x(e) {\n var t = e.completion || {};\n t.type = \"normal\", delete t.arg, e.completion = t;\n }\n\n function v(e) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], e.forEach(y, this), this.reset(!0);\n }\n\n function N(e) {\n if (e) {\n var t = e[n];\n if (t) return t.call(e);\n if (\"function\" == typeof e.next) return e;\n\n if (!isNaN(e.length)) {\n var o = -1,\n a = function t() {\n for (; ++o < e.length;) {\n if (r.call(e, o)) return t.value = e[o], t.done = !1, t;\n }\n\n return t.value = void 0, t.done = !0, t;\n };\n\n return a.next = a;\n }\n }\n\n return {\n next: E\n };\n }\n\n function E() {\n return {\n value: void 0,\n done: !0\n };\n }\n\n return u.prototype = b.constructor = d, d.constructor = u, d[i] = u.displayName = \"GeneratorFunction\", e.isGeneratorFunction = function (e) {\n var t = \"function\" == typeof e && e.constructor;\n return !!t && (t === u || \"GeneratorFunction\" === (t.displayName || t.name));\n }, e.mark = function (e) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(e, d) : (e.__proto__ = d, i in e || (e[i] = \"GeneratorFunction\")), e.prototype = Object.create(b), e;\n }, e.awrap = function (e) {\n return {\n __await: e\n };\n }, g(k.prototype), k.prototype[a] = function () {\n return this;\n }, e.AsyncIterator = k, e.async = function (t, r, o, n) {\n var a = new k(l(t, r, o, n));\n return e.isGeneratorFunction(r) ? a : a.next().then(function (e) {\n return e.done ? e.value : a.next();\n });\n }, g(b), b[i] = \"Generator\", b[n] = function () {\n return this;\n }, b.toString = function () {\n return \"[object Generator]\";\n }, e.keys = function (e) {\n var t = [];\n\n for (var r in e) {\n t.push(r);\n }\n\n return t.reverse(), function r() {\n for (; t.length;) {\n var o = t.pop();\n if (o in e) return r.value = o, r.done = !1, r;\n }\n\n return r.done = !0, r;\n };\n }, e.values = N, v.prototype = {\n constructor: v,\n reset: function reset(e) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = void 0, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = void 0, this.tryEntries.forEach(x), !e) for (var t in this) {\n \"t\" === t.charAt(0) && r.call(this, t) && !isNaN(+t.slice(1)) && (this[t] = void 0);\n }\n },\n stop: function stop() {\n this.done = !0;\n var e = this.tryEntries[0].completion;\n if (\"throw\" === e.type) throw e.arg;\n return this.rval;\n },\n dispatchException: function dispatchException(e) {\n if (this.done) throw e;\n var t = this;\n\n function o(r, o) {\n return i.type = \"throw\", i.arg = e, t.next = r, o && (t.method = \"next\", t.arg = void 0), !!o;\n }\n\n for (var n = this.tryEntries.length - 1; n >= 0; --n) {\n var a = this.tryEntries[n],\n i = a.completion;\n if (\"root\" === a.tryLoc) return o(\"end\");\n\n if (a.tryLoc <= this.prev) {\n var l = r.call(a, \"catchLoc\"),\n p = r.call(a, \"finallyLoc\");\n\n if (l && p) {\n if (this.prev < a.catchLoc) return o(a.catchLoc, !0);\n if (this.prev < a.finallyLoc) return o(a.finallyLoc);\n } else if (l) {\n if (this.prev < a.catchLoc) return o(a.catchLoc, !0);\n } else {\n if (!p) throw new Error(\"try statement without catch or finally\");\n if (this.prev < a.finallyLoc) return o(a.finallyLoc);\n }\n }\n }\n },\n abrupt: function abrupt(e, t) {\n for (var o = this.tryEntries.length - 1; o >= 0; --o) {\n var n = this.tryEntries[o];\n\n if (n.tryLoc <= this.prev && r.call(n, \"finallyLoc\") && this.prev < n.finallyLoc) {\n var a = n;\n break;\n }\n }\n\n a && (\"break\" === e || \"continue\" === e) && a.tryLoc <= t && t <= a.finallyLoc && (a = null);\n var i = a ? a.completion : {};\n return i.type = e, i.arg = t, a ? (this.method = \"next\", this.next = a.finallyLoc, c) : this.complete(i);\n },\n complete: function complete(e, t) {\n if (\"throw\" === e.type) throw e.arg;\n return \"break\" === e.type || \"continue\" === e.type ? this.next = e.arg : \"return\" === e.type ? (this.rval = this.arg = e.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === e.type && t && (this.next = t), c;\n },\n finish: function finish(e) {\n for (var t = this.tryEntries.length - 1; t >= 0; --t) {\n var r = this.tryEntries[t];\n if (r.finallyLoc === e) return this.complete(r.completion, r.afterLoc), x(r), c;\n }\n },\n catch: function _catch(e) {\n for (var t = this.tryEntries.length - 1; t >= 0; --t) {\n var r = this.tryEntries[t];\n\n if (r.tryLoc === e) {\n var o = r.completion;\n\n if (\"throw\" === o.type) {\n var n = o.arg;\n x(r);\n }\n\n return n;\n }\n }\n\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function delegateYield(e, t, r) {\n return this.delegate = {\n iterator: N(e),\n resultName: t,\n nextLoc: r\n }, \"next\" === this.method && (this.arg = void 0), c;\n }\n }, e;\n }(e.exports);\n\n try {\n regeneratorRuntime = t;\n } catch (e) {\n Function(\"r\", \"regeneratorRuntime = r\")(t);\n }\n});\n\nfunction z(e, t, r, o, n, a, i) {\n try {\n var l = e[a](i),\n p = l.value;\n } catch (e) {\n return void r(e);\n }\n\n l.done ? t(p) : Promise.resolve(p).then(o, n);\n}\n\nfunction F(e) {\n return function () {\n var t = this,\n r = arguments;\n return new Promise(function (o, n) {\n var a = e.apply(t, r);\n\n function i(e) {\n z(a, o, n, i, l, \"next\", e);\n }\n\n function l(e) {\n z(a, o, n, i, l, \"throw\", e);\n }\n\n i(void 0);\n });\n };\n}\n\nfunction O(e) {\n if (arguments.length < 1) throw new TypeError(\"1 argument required, but only \" + arguments.length + \" present\");\n var t = Object.prototype.toString.call(e);\n return e instanceof Date || \"object\" == typeof e && \"[object Date]\" === t ? new Date(e.getTime()) : \"number\" == typeof e || \"[object Number]\" === t ? new Date(e) : (\"string\" != typeof e && \"[object String]\" !== t || \"undefined\" == typeof console || (console.warn(\"Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule\"), console.warn(new Error().stack)), new Date(NaN));\n}\n\nfunction P(e) {\n if (arguments.length < 1) throw new TypeError(\"1 argument required, but only \" + arguments.length + \" present\");\n var t = O(e);\n return !isNaN(t);\n}\n\nvar j = function j(t) {\n var r = t.dateFormat,\n o = t.disabled,\n n = t.name,\n i = t.id,\n p = t.placeholder,\n c = t.onFocus,\n u = t.onBlur,\n d = t.className,\n h = t.style,\n b = f(t, [\"dateFormat\", \"disabled\", \"name\", \"id\", \"placeholder\", \"onFocus\", \"onBlur\", \"className\", \"style\"]),\n g = a().values,\n k = s(function (e) {\n var t = a(),\n r = t.setFieldValue,\n o = t.setFieldTouched;\n return [function (e) {\n var t = e.target,\n n = t.name,\n a = t.value;\n /^\\d{0,2}[./]{0,1}\\d{0,2}[./]{0,1}\\d{0,4}$/.test(a) || e.preventDefault(), P(new Date(a)) && (r(n, a), o(n, !0));\n }, function () {\n var t = F(E.mark(function t(n) {\n var a;\n return E.wrap(function (t) {\n for (;;) {\n switch (t.prev = t.next) {\n case 0:\n if (a = new Date(n), !n || !P(a)) {\n t.next = 6;\n break;\n }\n\n return t.next = 4, r(e, a);\n\n case 4:\n t.next = 8;\n break;\n\n case 6:\n return t.next = 8, r(e, \"\");\n\n case 8:\n o(e, !0);\n\n case 9:\n case \"end\":\n return t.stop();\n }\n }\n }, t);\n }));\n return function (e) {\n return t.apply(this, arguments);\n };\n }()];\n }(n), 2),\n w = k[0],\n y = k[1];\n return e.createElement(m, Object.assign({\n disabledKeyboardNavigation: !0,\n autoComplete: \"off\"\n }, b, {\n id: i || n,\n name: n,\n className: d,\n style: h,\n selected: l(g, n) && new Date(l(g, n)),\n placeholderText: p,\n dateFormat: r,\n onChangeRaw: w,\n onChange: y,\n onFocus: c,\n onBlur: u,\n disabled: o\n }));\n};\n\nj.defaultProps = {\n id: null,\n className: null,\n style: null,\n label: null,\n hint: null,\n dateFormat: \"dd/MM/yyyy\",\n placeholder: null,\n required: !1,\n disabled: !1,\n onFocus: null,\n onBlur: null\n};\nvar C = g(\"datePicker\")(j);\n\nfunction L(e, t, r) {\n return t in e ? Object.defineProperty(e, t, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[t] = r, e;\n}\n\nfunction I(e, t) {\n var r = Object.keys(e);\n\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n t && (o = o.filter(function (t) {\n return Object.getOwnPropertyDescriptor(e, t).enumerable;\n })), r.push.apply(r, o);\n }\n\n return r;\n}\n\nvar S = function S(t) {\n var r = t.disabled,\n o = t.id,\n i = t.name,\n l = t.accept,\n p = t.zoneActiveText,\n c = t.fileInfo,\n m = t.disabledText,\n d = t.placeholder,\n s = t.className,\n h = t.withClearButton,\n b = t.clearButtonText,\n g = t.multiple,\n k = f(t, [\"disabled\", \"id\", \"name\", \"accept\", \"zoneActiveText\", \"fileInfo\", \"disabledText\", \"placeholder\", \"className\", \"withClearButton\", \"clearButtonText\", \"multiple\"]),\n w = a(),\n y = w.values,\n v = w.setFieldValue,\n N = w.setFieldTouched,\n E = w.handleReset,\n z = u(function (e) {\n for (var t = 1; t < arguments.length; t++) {\n var r = null != arguments[t] ? arguments[t] : {};\n t % 2 ? I(Object(r), !0).forEach(function (t) {\n L(e, t, r[t]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : I(Object(r)).forEach(function (t) {\n Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));\n });\n }\n\n return e;\n }({\n id: o || i,\n name: i,\n accept: l,\n onDrop: function onDrop(e) {\n var t = g ? y[i].concat(e) : e;\n v(i, t), N(i, !0);\n },\n disabled: r,\n multiple: g\n }, k)),\n F = z.getRootProps,\n O = z.getInputProps,\n P = z.isDragActive,\n j = z.acceptedFiles,\n C = z.rejectedFiles;\n return e.createElement(e.Fragment, null, e.createElement(\"section\", null, e.createElement(\"div\", Object.assign({}, F(), {\n className: n(\"dropzone\", s, {\n \"dropzone--isActive\": P,\n \"dropzone--isDisabled\": r\n })\n }), r ? e.createElement(\"p\", {\n className: \"text\"\n }, m) : e.createElement(e.Fragment, null, e.createElement(\"input\", O()), j.length && y[i].length || C.length ? y[i].map(function (t) {\n return t.type.includes(\"image\") ? e.createElement(\"img\", {\n key: t.name,\n src: URL.createObjectURL(t),\n className: \"img-thumbnail\",\n alt: t.name\n }) : e.createElement(\"div\", {\n key: t.name,\n className: \"icon-wrapper\"\n }, e.createElement(\"div\", {\n className: \"icon\"\n }, e.createElement(\"i\", {\n title: t.name.split(\".\").pop()\n })), e.createElement(\"p\", null, t.name.split(\".\").shift()));\n }) : P ? e.createElement(\"p\", {\n className: \"text\"\n }, p) : e.createElement(\"p\", {\n className: \"text\"\n }, d), c && e.createElement(\"div\", {\n className: \"fileInfo\"\n }, \"Accepted \".concat(j.length, \", rejected \").concat(C.length, \" files\"))))), h && !r && e.createElement(x, {\n className: \"clear-button\",\n onClick: function onClick() {\n E();\n }\n }, b));\n};\n\nS.defaultProps = {\n className: null,\n style: null,\n disabled: !1,\n id: null,\n accept: null,\n label: null,\n zoneActiveText: \"Drop file(s) here\",\n fileInfo: !1,\n disabledText: \"File upload disabled\",\n placeholder: \"Try dropping some files here, or click to select files to upload.\",\n hint: null,\n required: !1,\n withClearButton: !1,\n clearButtonText: \"Clear Files\",\n multiple: !0\n};\nvar T = g(\"dropzone\")(S);\n!function (e, t) {\n void 0 === t && (t = {});\n var r = t.insertAt;\n\n if (e && \"undefined\" != typeof document) {\n var o = document.head || document.getElementsByTagName(\"head\")[0],\n n = document.createElement(\"style\");\n n.type = \"text/css\", \"top\" === r && o.firstChild ? o.insertBefore(n, o.firstChild) : o.appendChild(n), n.styleSheet ? n.styleSheet.cssText = e : n.appendChild(document.createTextNode(e));\n }\n}('.react-formik-ui.structured .form-element .label,.rfui-structured-label{display:flex;flex-direction:column}.react-formik-ui.structured .form-element .error,.react-formik-ui.structured .form-element .hint,.react-formik-ui.themed .form-element .error,.react-formik-ui.themed .form-element .hint,.rfui-error-hint{font-size:.8rem;display:block;margin-top:3px}.react-formik-ui.themed .form-element .autocomplete-wrapper,.react-formik-ui.themed .form-element .datePicker-wrapper,.react-formik-ui.themed .form-element .input-wrapper,.react-formik-ui.themed .form-element .phoneInput-wrapper,.react-formik-ui.themed .form-element .select-wrapper,.react-formik-ui.themed .form-element .textarea-wrapper,.rfui-themed-component{position:relative;display:flex;flex-direction:column}.react-formik-ui.themed .form-element .autocomplete-wrapper:before,.react-formik-ui.themed .form-element .datePicker-wrapper:before,.react-formik-ui.themed .form-element .input-wrapper:before,.react-formik-ui.themed .form-element .phoneInput-wrapper:before,.react-formik-ui.themed .form-element .select-wrapper:before,.react-formik-ui.themed .form-element .textarea-wrapper:before,.rfui-themed-component:before{content:\"\\\\00a0\";left:0;right:0;bottom:0;position:absolute;transition:border-bottom-color .2s cubic-bezier(.4,0,.2,1) 0ms;border-bottom:1px solid;pointer-events:none}.react-formik-ui.themed .form-element .autocomplete-wrapper:hover:before,.react-formik-ui.themed .form-element .datePicker-wrapper:hover:before,.react-formik-ui.themed .form-element .input-wrapper:hover:before,.react-formik-ui.themed .form-element .phoneInput-wrapper:hover:before,.react-formik-ui.themed .form-element .select-wrapper:hover:before,.react-formik-ui.themed .form-element .textarea-wrapper:hover:before,.rfui-themed-component:hover:before{border-bottom:2px solid}.react-formik-ui.themed .form-element .isDisabled.autocomplete-wrapper:before,.react-formik-ui.themed .form-element .isDisabled.datePicker-wrapper:before,.react-formik-ui.themed .form-element .isDisabled.input-wrapper:before,.react-formik-ui.themed .form-element .isDisabled.phoneInput-wrapper:before,.react-formik-ui.themed .form-element .isDisabled.select-wrapper:before,.react-formik-ui.themed .form-element .isDisabled.textarea-wrapper:before,.rfui-themed-component.isDisabled:before{border-bottom:1px dotted rgba(0,0,0,.42)}.react-formik-ui.themed .form-element .hasError.autocomplete-wrapper,.react-formik-ui.themed .form-element .hasError.datePicker-wrapper,.react-formik-ui.themed .form-element .hasError.input-wrapper,.react-formik-ui.themed .form-element .hasError.phoneInput-wrapper,.react-formik-ui.themed .form-element .hasError.select-wrapper,.react-formik-ui.themed .form-element .hasError.textarea-wrapper,.rfui-themed-component.hasError{color:#c00}.react-formik-ui.themed .form-element .autocomplete-wrapper .label,.react-formik-ui.themed .form-element .datePicker-wrapper .label,.react-formik-ui.themed .form-element .input-wrapper .label,.react-formik-ui.themed .form-element .phoneInput-wrapper .label,.react-formik-ui.themed .form-element .textarea-wrapper .label,.rfui-themed-label{font-size:1em;line-height:100%;position:absolute;left:2px;top:50%;transform:translateY(-50%);transition:all .25s cubic-bezier(.4,0,.2,1);pointer-events:none}.react-formik-ui.themed .form-element .autocomplete-wrapper .label+input,.react-formik-ui.themed .form-element .datePicker-wrapper .label+input,.react-formik-ui.themed .form-element .input-wrapper .label+input,.react-formik-ui.themed .form-element .phoneInput-wrapper .label+input,.react-formik-ui.themed .form-element .textarea-wrapper .label+input,.rfui-themed-label+input{opacity:0;transition:opacity .25s ease-in-out}.react-formik-ui.themed .form-element .autocomplete-wrapper .moveLabel.label,.react-formik-ui.themed .form-element .datePicker-wrapper .moveLabel.label,.react-formik-ui.themed .form-element .input-wrapper .moveLabel.label,.react-formik-ui.themed .form-element .phoneInput-wrapper .moveLabel.label,.react-formik-ui.themed .form-element .textarea-wrapper .moveLabel.label,.rfui-themed-label.moveLabel{left:45px}.react-formik-ui.themed .form-element .autocomplete-wrapper .hide.label,.react-formik-ui.themed .form-element .datePicker-wrapper .hide.label,.react-formik-ui.themed .form-element .input-wrapper .hide.label,.react-formik-ui.themed .form-element .phoneInput-wrapper .hide.label,.react-formik-ui.themed .form-element .textarea-wrapper .hide.label,.rfui-themed-label.hide{font-size:.9em;top:-5px;left:2px;pointer-events:all}.react-formik-ui.themed .form-element .autocomplete-wrapper .hide.label+input,.react-formik-ui.themed .form-element .datePicker-wrapper .hide.label+input,.react-formik-ui.themed .form-element .input-wrapper .hide.label+input,.react-formik-ui.themed .form-element .phoneInput-wrapper .hide.label+input,.react-formik-ui.themed .form-element .textarea-wrapper .hide.label+input,.rfui-themed-label.hide+input{opacity:1}.react-formik-ui.themed .form-element .autocomplete-wrapper input,.react-formik-ui.themed .form-element .datePicker-wrapper input,.react-formik-ui.themed .form-element .input-wrapper input,.react-formik-ui.themed .form-element .phoneInput-wrapper input,.rfui-themed-input{outline:none;font-size:1em;text-rendering:auto;letter-spacing:normal;word-spacing:normal;text-transform:none;text-indent:0;text-shadow:none;border:none;height:auto;width:auto;padding:6px 2px 7px;border-radius:none;color:currentColor;background:transparent}.react-formik-ui.themed .form-element .autocomplete-wrapper input:-webkit-autofill,.react-formik-ui.themed .form-element .datePicker-wrapper input:-webkit-autofill,.react-formik-ui.themed .form-element .input-wrapper input:-webkit-autofill,.react-formik-ui.themed .form-element .phoneInput-wrapper input:-webkit-autofill,.rfui-themed-input:-webkit-autofill{animation-name:onAutoFillStart;transition:background-color 50000s ease-in-out 0s}.react-formik-ui.themed .form-element .autocomplete-wrapper input:not(:-webkit-autofill),.react-formik-ui.themed .form-element .datePicker-wrapper input:not(:-webkit-autofill),.react-formik-ui.themed .form-element .input-wrapper input:not(:-webkit-autofill),.react-formik-ui.themed .form-element .phoneInput-wrapper input:not(:-webkit-autofill),.rfui-themed-input:not(:-webkit-autofill){animation-name:onAutoFillCancel}.react-formik-ui.themed .form-element .autocomplete-wrapper input:disabled,.react-formik-ui.themed .form-element .datePicker-wrapper input:disabled,.react-formik-ui.themed .form-element .input-wrapper input:disabled,.react-formik-ui.themed .form-element .phoneInput-wrapper input:disabled,.rfui-themed-input:disabled{color:rgba(0,0,0,.42)}.react-formik-ui .form-element.hidden{display:none}.react-formik-ui.structured .form-element{margin-bottom:10px}.react-formik-ui.themed .form-element{margin-bottom:25px}.react-formik-ui.structured .form-element .error,.react-formik-ui.themed .form-element .error{color:#c00}.react-formik-ui.structured .form-element .hint,.react-formik-ui.themed .form-element .hint{color:#909090}.react-formik-ui .form-element .suggestions li.suggestion-active,.react-formik-ui .form-element .suggestions li:hover{background-color:#ddd;color:currentColor;cursor:pointer}.react-formik-ui.structured .form-element .suggestions{border:1px solid #ccc;border-top:0 solid #ccc;list-style:none;margin-top:0;overflow-y:auto;padding-left:0}.react-formik-ui.structured .form-element .suggestions li{padding:.5rem}.react-formik-ui.structured .form-element .suggestions li:not(:last-of-type){border-bottom:1px solid #ccc}.react-formik-ui.themed .form-element .autocomplete-wrapper .suggestions{position:absolute;top:35px;list-style:none;margin-top:0;overflow-y:auto;padding-left:0;width:100%;background:#fff;box-shadow:0 1px 5px 0 rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12)}.react-formik-ui.themed .form-element .autocomplete-wrapper .suggestions li{padding:.5rem}.react-formik-ui.themed .form-element .autocomplete-wrapper .suggestions li.suggestion-active,.react-formik-ui.themed .form-element .autocomplete-wrapper .suggestions li:hover{background-color:#2d85f9;color:#fff;cursor:pointer;font-weight:600}.react-formik-ui.structured .form-element .checkbox-input-wrapper{display:flex;align-items:flex-start}.react-formik-ui.structured .form-element .checkbox-input-wrapper label{display:block;margin-left:5px}.react-formik-ui.structured .form-element .checkbox-text{display:initial;margin-bottom:0}.react-formik-ui.themed .form-element .checkbox-wrapper .label{display:block;padding-bottom:6px}.react-formik-ui.themed .form-element .checkbox-wrapper .checkbox-input-wrapper{display:flex;margin-bottom:10px;align-items:flex-end}.react-formik-ui.themed .form-element .checkbox-wrapper .checkbox-input-wrapper input[type=checkbox]{outline:none;position:absolute;opacity:0}.react-formik-ui.themed .form-element .checkbox-wrapper .checkbox-input-wrapper input[type=checkbox]+label{position:relative;cursor:pointer;padding:0}.react-formik-ui.themed .form-element .checkbox-wrapper .checkbox-input-wrapper input[type=checkbox]+label:before{content:\"\";margin-right:8px;display:inline-block;vertical-align:text-top;width:18px;height:17px;border:1px solid #ccc}.react-formik-ui.themed .form-element .checkbox-wrapper .checkbox-input-wrapper input[type=checkbox]:hover+label:before{background:#ddd}.react-formik-ui.themed .form-element .checkbox-wrapper .checkbox-input-wrapper input[type=checkbox]:checked+label:before{background:#065fd4}.react-formik-ui.themed .form-element .checkbox-wrapper .checkbox-input-wrapper input[type=checkbox]:checked+label:after{content:\"\";position:absolute;left:5px;top:8px;background:#fff;width:2px;height:2px;box-shadow:2px 0 0 #fff,4px 0 0 #fff,4px -2px 0 #fff,4px -4px 0 #fff,4px -6px 0 #fff,4px -8px 0 #fff;transform:rotate(45deg)}.react-formik-ui.themed .form-element .checkbox-wrapper .checkbox-input-wrapper input[type=checkbox]:disabled+label{color:rgba(0,0,0,.42);cursor:auto}.react-formik-ui.themed .form-element .checkbox-wrapper .checkbox-input-wrapper input[type=checkbox]:disabled+label:before{box-shadow:none;border:1px dotted rgba(0,0,0,.42);background:#ddd}.react-formik-ui .form-element .datePicker-wrapper .react-datepicker-popper{z-index:10}.react-formik-ui.themed .form-element .datePicker-wrapper{width:171px}.react-formik-ui.themed .form-element .datePicker-wrapper .react-datepicker-popper{min-width:400px}@keyframes progress{0%{background-position:0 0}to{background-position:-70px 0}}.react-formik-ui .form-element .dropzone-wrapper .label{display:block;margin-bottom:6px}.react-formik-ui .form-element .dropzone-wrapper .dropzone{width:100%;height:auto;display:flex;flex-flow:row wrap;padding:10px;box-sizing:border-box;border:2px dashed #c8c8c8;outline:none;background-color:#f0f0f0;cursor:pointer}.react-formik-ui .form-element .dropzone-wrapper .dropzone p.text{width:100%;text-align:center;color:#787878}.react-formik-ui .form-element .dropzone-wrapper .dropzone--isActive{border:2px solid;background-image:repeating-linear-gradient(-45deg,#f0f0f0,#f0f0f0 25px,#c8c8c8 0,#c8c8c8 50px);animation:progress 1s linear infinite!important;background-size:150% 100%}.react-formik-ui .form-element .dropzone-wrapper .dropzone--isDisabled{background-color:#fff;opacity:.5}.react-formik-ui .form-element .dropzone-wrapper .dropzone--isDisabled p.text{color:#000}.react-formik-ui .form-element .dropzone-wrapper .dropzone img{max-height:130px;margin:0 8px 8px 0;transition:opacity .8s;border-radius:5px;object-fit:contain}.react-formik-ui .form-element .dropzone-wrapper .dropzone .icon-wrapper{width:45px;margin:5px 5px 0}.react-formik-ui .form-element .dropzone-wrapper .dropzone .icon-wrapper p{font-size:10px;text-align:center;line-height:10px;word-break:break-all;margin:5px 0}.react-formik-ui .form-element .dropzone-wrapper .dropzone .icon-wrapper .icon{height:55px;border-radius:2px;cursor:pointer;position:relative;background-color:#065fd4;box-sizing:border-box;overflow:hidden}.react-formik-ui .form-element .dropzone-wrapper .dropzone .icon-wrapper .icon:after{content:\"\";position:absolute;display:block;top:0;right:0;width:0;height:0;border-radius:0 2px;transition:all .2s linear;backface-visibility:hidden;background:linear-gradient(45deg,#2d85f9 50%,#f0f0f0 0)}.react-formik-ui .form-element .dropzone-wrapper .dropzone .icon-wrapper .icon i{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:block;font-size:10px;color:#fff;font-weight:500}.react-formik-ui .form-element .dropzone-wrapper .dropzone .icon-wrapper .icon i:after,.react-formik-ui .form-element .dropzone-wrapper .dropzone .icon-wrapper .icon i:before{display:block;transition:all .2s linear}.react-formik-ui .form-element .dropzone-wrapper .dropzone .icon-wrapper .icon i:before{content:\"< >\";text-align:center;font-size:12px;opacity:0;transform:translateY(5px)}.react-formik-ui .form-element .dropzone-wrapper .dropzone .icon-wrapper .icon i:after{content:attr(title);text-align:center;transform:translateY(-7px)}.react-formik-ui .form-element .dropzone-wrapper .dropzone .icon-wrapper .icon:hover{border-radius:2px 4px 2px 2px}.react-formik-ui .form-element .dropzone-wrapper .dropzone .icon-wrapper .icon:hover:after{width:12px;height:12px}.react-formik-ui .form-element .dropzone-wrapper .dropzone .icon-wrapper .icon:hover i:before{transform:translateY(0);opacity:1}.react-formik-ui .form-element .dropzone-wrapper .dropzone .icon-wrapper .icon:hover i:after{transform:translateY(0)}.react-formik-ui .form-element .dropzone-wrapper .dropzone .fileInfo{width:100%;text-align:left;padding-top:10px}.react-formik-ui .form-element .dropzone-wrapper .dropzone:hover img{opacity:.3}.react-formik-ui .form-element .dropzone-wrapper .dropzone:hover img:hover{opacity:1}.react-formik-ui .form-element .dropzone-wrapper .clear-button{margin-top:10px}.react-formik-ui.themed .form-element .phoneInput-wrapper .react-phonenr-input{padding-top:3px;max-width:100%}.react-formik-ui.themed .form-element .phoneInput-wrapper .react-phonenr-input div{background-color:#fff;border:none}.react-formik-ui .form-element .radio-wrapper .label{display:block;margin-bottom:6px}.react-formik-ui .form-element .radio-wrapper .radio-options.inline{display:flex;justify-content:flex-start}.react-formik-ui .form-element .radio-wrapper .radio-options.inline .radio-option{margin-right:10px}.react-formik-ui.structured .form-element .radio-wrapper .radio-options .radio-option{display:flex;align-items:center;margin:0 0 0 5px}.react-formik-ui.themed .form-element .radio-wrapper .radio-options .radio-option{margin-bottom:5px}.react-formik-ui.themed .form-element .radio-wrapper .radio-options .radio-option input[type=radio]:checked,.react-formik-ui.themed .form-element .radio-wrapper .radio-options .radio-option input[type=radio]:not(:checked){position:absolute;left:-9999px}.react-formik-ui.themed .form-element .radio-wrapper .radio-options .radio-option input[type=radio]:checked:disabled+label,.react-formik-ui.themed .form-element .radio-wrapper .radio-options .radio-option input[type=radio]:not(:checked):disabled+label{color:rgba(0,0,0,.42)}.react-formik-ui.themed .form-element .radio-wrapper .radio-options .radio-option input[type=radio]:checked:disabled+label:before,.react-formik-ui.themed .form-element .radio-wrapper .radio-options .radio-option input[type=radio]:not(:checked):disabled+label:before{border:1px dotted}.react-formik-ui.themed .form-element .radio-wrapper .radio-options .radio-option input[type=radio]:checked:disabled:hover+label:before,.react-formik-ui.themed .form-element .radio-wrapper .radio-options .radio-option input[type=radio]:not(:checked):disabled:hover+label:before{background:transparent}.react-formik-ui.themed .form-element .radio-wrapper .radio-options .radio-option input[type=radio]:checked+label,.react-formik-ui.themed .form-element .radio-wrapper .radio-options .radio-option input[type=radio]:not(:checked)+label{position:relative;padding-left:28px;cursor:pointer;line-height:20px;display:inline-block}.react-formik-ui.themed .form-element .radio-wrapper .radio-options .radio-option input[type=radio]:checked+label:before,.react-formik-ui.themed .form-element .radio-wrapper .radio-options .radio-option input[type=radio]:not(:checked)+label:before{content:\"\";position:absolute;left:0;top:0;width:18px;height:18px;border:1px solid #ccc;border-radius:100%}.react-formik-ui.themed .form-element .radio-wrapper .radio-options .radio-option input[type=radio]:checked+label:after,.react-formik-ui.themed .form-element .radio-wrapper .radio-options .radio-option input[type=radio]:not(:checked)+label:after{content:\"\";width:12px;height:12px;background:#065fd4;position:absolute;top:4px;left:4px;border-radius:100%;-webkit-transition:all .2s ease;transition:all .2s ease}.react-formik-ui.themed .form-element .radio-wrapper .radio-options .radio-option input[type=radio]:checked+label:after{opacity:1;-webkit-transform:scale(1);transform:scale(1)}.react-formik-ui.themed .form-element .radio-wrapper .radio-options .radio-option input[type=radio]:not(:checked)+label:after{opacity:0;-webkit-transform:scale(0);transform:scale(0)}.react-formik-ui.themed .form-element .radio-wrapper .radio-options .radio-option input[type=radio]:not(:checked):hover+label:before{background:#ddd}.react-formik-ui.themed .form-element .radio-wrapper .radio-options .radio-option input[type=radio]:checked:disabled+label:after{background:rgba(0,0,0,.42)}.react-formik-ui.themed .form-element .select-wrapper{margin:0}.react-formik-ui.themed .form-element .select-wrapper:after{content:\"\";width:0;height:0;border:7px solid transparent;border-top-color:currentcolor;position:absolute;right:5px;top:50%;transform:translateY(-50%);pointer-events:none;cursor:pointer}.react-formik-ui.themed .form-element .select-wrapper select{-moz-appearance:none;-webkit-appearance:none;appearance:none;outline:none;background:transparent;border:none;width:100%;height:31px;font-size:1em;padding-right:25px;cursor:pointer}.react-formik-ui.themed .form-element .select-wrapper select[multiple]{height:auto;padding-right:0}.react-formik-ui.themed .form-element .select-wrapper select::-ms-expand{display:none}.react-formik-ui.themed .form-element .select-wrapper select:focus::-ms-value{background-color:transparent}.react-formik-ui.themed .form-element .select-wrapper select:disabled{color:rgba(0,0,0,.42)}.react-formik-ui.themed .form-element .select-wrapper.multiple:after{border:none}.react-formik-ui.themed .form-element .textarea-wrapper .label{top:24px}.react-formik-ui.themed .form-element .textarea-wrapper .label.hide{top:10px}.react-formik-ui.themed .form-element .textarea-wrapper textarea{outline:none;resize:none;font-size:1em;text-rendering:auto;letter-spacing:normal;word-spacing:normal;text-transform:none;text-indent:0;text-shadow:none;border:none;min-height:120px;width:auto;padding:24px 0 6px;border-radius:0;color:currentColor;background:transparent;box-sizing:border-box;transition:border-bottom-color .2s cubic-bezier(.4,0,.2,1) 0ms}.react-formik-ui.themed .form-element .textarea-wrapper textarea:disabled{color:rgba(0,0,0,.42)}.toggle-switch{position:relative;display:inline-block;width:40px;height:12px}.toggle-switch>input{display:none}.toggle-switch>input:checked+.slider:before{transform:translate(20px,-50%);background-color:#065fd4}.toggle-switch .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ddd;box-shadow:inset 0 0 5px rgba(0,0,0,.6);transition:.4s;border-radius:15px}.toggle-switch .slider:before{content:\"\";position:absolute;top:50%;height:20px;width:20px;transform:translateY(-50%);background-color:#eee;box-shadow:0 1px 5px 0 rgba(0,0,0,.6);transition:all .2s cubic-bezier(.4,0,.2,1);border-radius:50%}');\n\nvar D = function D(t) {\n var r = t.children,\n o = t.className,\n a = t.mode,\n i = f(t, [\"children\", \"className\", \"mode\"]);\n return e.createElement(p, Object.assign({}, i, {\n className: n(\"react-formik-ui form-wrapper\", a, o)\n }), r);\n};\n\nD.defaultProps = {\n className: null,\n mode: \"default\"\n};\n\nvar B = r(D),\n A = function A(t) {\n var r = t.disabled,\n o = t.id,\n n = t.name,\n i = t.placeholder,\n p = t.type,\n c = t.onAnimationStart,\n m = t.onFocus,\n u = t.onBlur,\n d = t.className,\n s = t.style,\n h = f(t, [\"disabled\", \"id\", \"name\", \"placeholder\", \"type\", \"onAnimationStart\", \"onFocus\", \"onBlur\", \"className\", \"style\"]),\n b = a(),\n g = b.values,\n k = b.handleChange;\n return e.createElement(\"input\", Object.assign({\n value: l(g, n),\n onChange: k,\n onFocus: m,\n onBlur: u\n }, h, {\n id: o || n,\n name: n,\n className: d,\n style: s,\n type: p,\n onAnimationStart: c,\n placeholder: i,\n disabled: r\n }));\n};\n\nA.defaultProps = {\n onFocus: null,\n onBlur: null,\n className: null,\n style: null,\n disabled: !1,\n id: null,\n label: null,\n placeholder: null,\n type: \"text\",\n hint: null,\n required: !1\n};\n\nvar q = g(\"input\")(A),\n _ = function _(t) {\n var r = t.id,\n o = t.name,\n n = t.placeholder,\n i = t.disabled,\n l = t.hint,\n p = t.required,\n c = t.format,\n m = t.defaultCountry,\n u = t.preferredCountries,\n s = t.regions,\n h = t.buttonFlagStyles,\n b = t.listFlagStyles,\n g = t.className,\n k = t.style,\n w = t.withCountryMeta,\n y = f(t, [\"id\", \"name\", \"placeholder\", \"disabled\", \"hint\", \"required\", \"format\", \"defaultCountry\", \"preferredCountries\", \"regions\", \"buttonFlagStyles\", \"listFlagStyles\", \"className\", \"style\", \"withCountryMeta\"]),\n x = a().setFieldValue,\n v = function () {\n var e = F(E.mark(function e(t) {\n return E.wrap(function (e) {\n for (;;) {\n switch (e.prev = e.next) {\n case 0:\n return e.next = 2, x(o, t);\n\n case 2:\n case \"end\":\n return e.stop();\n }\n }\n }, e);\n }));\n return function (t) {\n return e.apply(this, arguments);\n };\n }();\n\n return e.createElement(d, Object.assign({\n onChange: v\n }, y, {\n id: r || o,\n name: o,\n className: g,\n style: k,\n placeholder: n,\n disabled: i,\n hint: l,\n required: p,\n format: c,\n defaultCountry: m,\n preferredCountries: u,\n regions: s,\n buttonFlagStyles: h,\n listFlagStyles: b,\n withCountryMeta: w\n }));\n};\n\n_.defaultProps = {\n className: null,\n style: null,\n id: null,\n label: null,\n placeholder: null,\n defaultCountry: null,\n preferredCountries: [],\n regions: null,\n format: \"INTERNATIONAL\",\n buttonFlagStyles: null,\n listFlagStyles: null,\n disabled: !1,\n hint: null,\n required: !1,\n withCountryMeta: !1\n};\n\nvar M = g(\"phoneInput\")(_),\n R = function R(t) {\n var r = t.disabled,\n o = t.name,\n i = t.options,\n p = t.inline,\n c = t.className,\n m = t.style,\n u = f(t, [\"disabled\", \"name\", \"options\", \"inline\", \"className\", \"style\"]),\n d = a(),\n s = d.values,\n h = d.handleChange,\n b = d.handleBlur;\n return e.createElement(\"div\", {\n className: n(\"radio-options\", {\n inline: p\n })\n }, i.map(function (t) {\n return e.createElement(\"div\", {\n key: t.label,\n className: \"radio-option\"\n }, e.createElement(\"input\", Object.assign({\n className: c,\n style: m,\n onChange: h\n }, u, {\n checked: l(s, o) === t.value,\n id: \"\".concat(o, \"-id-\").concat(t.value),\n value: t.value,\n onBlur: b,\n name: o,\n disabled: r,\n type: \"radio\"\n })), e.createElement(\"label\", {\n htmlFor: \"\".concat(o, \"-id-\").concat(t.value)\n }, t.label));\n }));\n};\n\nR.defaultProps = {\n className: null,\n style: null,\n label: null,\n disabled: !1,\n inline: !1,\n hint: null,\n required: !1\n};\n\nvar Y = g(\"radio\")(R),\n G = function G(t) {\n var r = t.disabled,\n o = t.id,\n n = t.label,\n i = t.name,\n p = t.options,\n c = t.placeholder,\n m = t.required,\n u = t.className,\n d = t.style,\n s = t.multiple,\n h = f(t, [\"disabled\", \"id\", \"label\", \"name\", \"options\", \"placeholder\", \"required\", \"className\", \"style\", \"multiple\"]),\n b = a(),\n g = b.values,\n k = b.handleChange,\n w = b.setFieldValue;\n return e.createElement(\"select\", Object.assign({\n onChange: s ? function (e) {\n return w(i, [].slice.call(e.target.selectedOptions).map(function (e) {\n return e.value;\n }));\n } : k\n }, h, {\n id: o || i,\n name: i,\n className: u,\n style: d,\n value: l(g, i),\n disabled: r,\n multiple: s\n }), c && e.createElement(\"option\", {\n value: \"\"\n }, \"\".concat(c).concat(!n && m ? \" *\" : \"\")), p.map(function (t) {\n return e.createElement(\"option\", {\n key: t.label,\n value: t.value\n }, t.label);\n }));\n};\n\nG.defaultProps = {\n className: null,\n style: null,\n disabled: !1,\n id: null,\n label: null,\n placeholder: null,\n hint: null,\n required: !1,\n multiple: !1\n};\n\nvar V = g(\"select\")(G),\n K = function K(t) {\n var r = t.className,\n o = t.disabled,\n i = t.children,\n l = f(t, [\"className\", \"disabled\", \"children\"]),\n p = a().handleSubmit;\n return e.createElement(\"button\", Object.assign({\n className: n(\"form-element btn submit-btn\", r, {\n isDisabled: o\n }),\n onClick: p,\n type: \"submit\",\n disabled: o\n }, l), i);\n};\n\nK.defaultProps = {\n className: null,\n disabled: !1,\n children: \"Submit\"\n};\n\nvar U = r(K),\n W = function W(t) {\n var r = t.disabled,\n o = t.id,\n n = t.name,\n i = t.placeholder,\n p = t.onFocus,\n c = t.onBlur,\n m = t.className,\n u = t.style,\n d = f(t, [\"disabled\", \"id\", \"name\", \"placeholder\", \"onFocus\", \"onBlur\", \"className\", \"style\"]),\n s = a(),\n h = s.values,\n b = s.handleChange;\n return e.createElement(\"textarea\", Object.assign({\n onChange: b\n }, d, {\n id: o || n,\n name: n,\n placeholder: i,\n value: l(h, n),\n onFocus: p,\n onBlur: c,\n disabled: r,\n className: m,\n style: u\n }));\n};\n\nW.defaultProps = {\n onFocus: null,\n onBlur: null,\n className: null,\n style: null,\n disabled: !1,\n id: null,\n label: null,\n placeholder: null,\n hint: null,\n required: !1\n};\n\nvar Z = g(\"textarea\")(W),\n $ = function $(t) {\n var r = t.className,\n i = t.disabled,\n p = t.name,\n c = t.style,\n m = t.id,\n u = f(t, [\"className\", \"disabled\", \"name\", \"style\", \"id\"]),\n d = a(),\n s = d.values,\n h = d.setFieldValue,\n b = d.setFieldTouched,\n g = l(s, p),\n k = o(function () {\n h(p, !g), b(p, !0);\n }, [g]);\n return e.createElement(\"div\", {\n className: n(\"form-element\", \"toggle-wrapper\", r, {\n isDisabled: i\n }),\n style: c\n }, e.createElement(\"label\", {\n className: n(\"toggle-switch\", r)\n }, e.createElement(\"input\", Object.assign({\n onChange: k\n }, u, {\n name: p,\n id: m || p,\n checked: g,\n disabled: i,\n type: \"checkbox\"\n })), e.createElement(\"span\", {\n className: \"slider\"\n })));\n};\n\n$.defaultProps = {\n className: null,\n style: null,\n disabled: !1,\n id: null\n};\nexport { w as Autocomplete, x as Button, N as Checkbox, C as Datepicker, T as DropZone, B as Form, q as Input, M as PhoneInput, Y as Radio, V as Select, U as SubmitBtn, Z as Textarea, $ as Toggle };","import freeGlobal from './_freeGlobal.js';\n/** Detect free variable `exports`. */\n\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n/** Detect free variable `module`. */\n\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n/** Detect the popular CommonJS extension `module.exports`. */\n\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n/** Detect free variable `process` from Node.js. */\n\nvar freeProcess = moduleExports && freeGlobal.process;\n/** Used to access faster Node.js helpers. */\n\nvar nodeUtil = function () {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n } // Legacy `process.binding('util')` for Node.js < 10.\n\n\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}();\n\nexport default nodeUtil;","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n/** Used to resolve the decompiled source of functions. */\n\nvar funcToString = funcProto.toString;\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n\n try {\n return func + '';\n } catch (e) {}\n }\n\n return '';\n}\n\nexport default toSource;","'use strict';\n\nvar isArray = Array.isArray;\nvar keyList = Object.keys;\nvar hasProp = Object.prototype.hasOwnProperty;\nvar hasElementType = typeof Element !== 'undefined';\n\nfunction equal(a, b) {\n // fast-deep-equal index.js 2.0.1\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n var arrA = isArray(a),\n arrB = isArray(b),\n i,\n length,\n key;\n\n if (arrA && arrB) {\n length = a.length;\n if (length != b.length) return false;\n\n for (i = length; i-- !== 0;) {\n if (!equal(a[i], b[i])) return false;\n }\n\n return true;\n }\n\n if (arrA != arrB) return false;\n var dateA = a instanceof Date,\n dateB = b instanceof Date;\n if (dateA != dateB) return false;\n if (dateA && dateB) return a.getTime() == b.getTime();\n var regexpA = a instanceof RegExp,\n regexpB = b instanceof RegExp;\n if (regexpA != regexpB) return false;\n if (regexpA && regexpB) return a.toString() == b.toString();\n var keys = keyList(a);\n length = keys.length;\n if (length !== keyList(b).length) return false;\n\n for (i = length; i-- !== 0;) {\n if (!hasProp.call(b, keys[i])) return false;\n } // end fast-deep-equal\n // start react-fast-compare\n // custom handling for DOM elements\n\n\n if (hasElementType && a instanceof Element && b instanceof Element) return a === b; // custom handling for React\n\n for (i = length; i-- !== 0;) {\n key = keys[i];\n\n if (key === '_owner' && a.$$typeof) {\n // React-specific: avoid traversing React elements' _owner.\n // _owner contains circular references\n // and is not needed when comparing the actual elements (and not their owners)\n // .$$typeof and ._store on just reasonable markers of a react element\n continue;\n } else {\n // all other properties should be traversed as usual\n if (!equal(a[key], b[key])) return false;\n }\n } // end react-fast-compare\n // fast-deep-equal index.js 2.0.1\n\n\n return true;\n }\n\n return a !== a && b !== b;\n} // end fast-deep-equal\n\n\nmodule.exports = function exportedEqual(a, b) {\n try {\n return equal(a, b);\n } catch (error) {\n if (error.message && error.message.match(/stack|recursion/i) || error.number === -2146828260) {\n // warn on circular references, don't crash\n // browsers give this different errors name and messages:\n // chrome/safari: \"RangeError\", \"Maximum call stack size exceeded\"\n // firefox: \"InternalError\", too much recursion\"\n // edge: \"Error\", \"Out of stack space\"\n console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);\n return false;\n } // some other error. we should definitely know about these\n\n\n throw error;\n }\n};","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n'use strict';\n/* eslint-disable no-unused-vars */\n\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n if (val === null || val === undefined) {\n throw new TypeError('Object.assign cannot be called with null or undefined');\n }\n\n return Object(val);\n}\n\nfunction shouldUseNative() {\n try {\n if (!Object.assign) {\n return false;\n } // Detect buggy property enumeration order in older V8 versions.\n // https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\n\n var test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\n test1[5] = 'de';\n\n if (Object.getOwnPropertyNames(test1)[0] === '5') {\n return false;\n } // https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\n\n var test2 = {};\n\n for (var i = 0; i < 10; i++) {\n test2['_' + String.fromCharCode(i)] = i;\n }\n\n var order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n return test2[n];\n });\n\n if (order2.join('') !== '0123456789') {\n return false;\n } // https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\n\n var test3 = {};\n 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n test3[letter] = letter;\n });\n\n if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {\n return false;\n }\n\n return true;\n } catch (err) {\n // We don't expect any of the above to throw, but better to be safe.\n return false;\n }\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n var from;\n var to = toObject(target);\n var symbols;\n\n for (var s = 1; s < arguments.length; s++) {\n from = Object(arguments[s]);\n\n for (var key in from) {\n if (hasOwnProperty.call(from, key)) {\n to[key] = from[key];\n }\n }\n\n if (getOwnPropertySymbols) {\n symbols = getOwnPropertySymbols(from);\n\n for (var i = 0; i < symbols.length; i++) {\n if (propIsEnumerable.call(from, symbols[i])) {\n to[symbols[i]] = from[symbols[i]];\n }\n }\n }\n }\n\n return to;\n};","module.exports =\n/******/\nfunction (modules) {\n // webpackBootstrap\n\n /******/\n // The module cache\n\n /******/\n var installedModules = {};\n /******/\n\n /******/\n // The require function\n\n /******/\n\n function __webpack_require__(moduleId) {\n /******/\n\n /******/\n // Check if module is in cache\n\n /******/\n if (installedModules[moduleId]) {\n /******/\n return installedModules[moduleId].exports;\n /******/\n }\n /******/\n // Create a new module (and put it into the cache)\n\n /******/\n\n\n var module = installedModules[moduleId] = {\n /******/\n i: moduleId,\n\n /******/\n l: false,\n\n /******/\n exports: {}\n /******/\n\n };\n /******/\n\n /******/\n // Execute the module function\n\n /******/\n\n modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n /******/\n\n /******/\n // Flag the module as loaded\n\n /******/\n\n module.l = true;\n /******/\n\n /******/\n // Return the exports of the module\n\n /******/\n\n return module.exports;\n /******/\n }\n /******/\n\n /******/\n\n /******/\n // expose the modules object (__webpack_modules__)\n\n /******/\n\n\n __webpack_require__.m = modules;\n /******/\n\n /******/\n // expose the module cache\n\n /******/\n\n __webpack_require__.c = installedModules;\n /******/\n\n /******/\n // identity function for calling harmony imports with the correct context\n\n /******/\n\n __webpack_require__.i = function (value) {\n return value;\n };\n /******/\n\n /******/\n // define getter function for harmony exports\n\n /******/\n\n\n __webpack_require__.d = function (exports, name, getter) {\n /******/\n if (!__webpack_require__.o(exports, name)) {\n /******/\n Object.defineProperty(exports, name, {\n /******/\n configurable: false,\n\n /******/\n enumerable: true,\n\n /******/\n get: getter\n /******/\n\n });\n /******/\n }\n /******/\n\n };\n /******/\n\n /******/\n // getDefaultExport function for compatibility with non-harmony modules\n\n /******/\n\n\n __webpack_require__.n = function (module) {\n /******/\n var getter = module && module.__esModule ?\n /******/\n function getDefault() {\n return module['default'];\n } :\n /******/\n function getModuleExports() {\n return module;\n };\n /******/\n\n __webpack_require__.d(getter, 'a', getter);\n /******/\n\n\n return getter;\n /******/\n };\n /******/\n\n /******/\n // Object.prototype.hasOwnProperty.call\n\n /******/\n\n\n __webpack_require__.o = function (object, property) {\n return Object.prototype.hasOwnProperty.call(object, property);\n };\n /******/\n\n /******/\n // __webpack_public_path__\n\n /******/\n\n\n __webpack_require__.p = \"\";\n /******/\n\n /******/\n // Load entry module and return exports\n\n /******/\n\n return __webpack_require__(__webpack_require__.s = 8);\n /******/\n}(\n/************************************************************************/\n\n/******/\n[\n/* 0 */\n\n/***/\nfunction (module, exports) {\n // shim for using process in browser\n var process = module.exports = {}; // cached from whatever global is present so that test runners that stub it\n // don't break things. But we need to wrap it in a try catch in case it is\n // wrapped in strict mode code which doesn't define any globals. It's inside a\n // function because try/catches deoptimize in certain engines.\n\n var cachedSetTimeout;\n var cachedClearTimeout;\n\n function defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n }\n\n function defaultClearTimeout() {\n throw new Error('clearTimeout has not been defined');\n }\n\n (function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n })();\n\n function runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n } // if setTimeout wasn't available but was latter defined\n\n\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch (e) {\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch (e) {\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n }\n\n function runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n } // if clearTimeout wasn't available but was latter defined\n\n\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e) {\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e) {\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n }\n\n var queue = [];\n var draining = false;\n var currentQueue;\n var queueIndex = -1;\n\n function cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n\n draining = false;\n\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n\n if (queue.length) {\n drainQueue();\n }\n }\n\n function drainQueue() {\n if (draining) {\n return;\n }\n\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n var len = queue.length;\n\n while (len) {\n currentQueue = queue;\n queue = [];\n\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n\n queueIndex = -1;\n len = queue.length;\n }\n\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n }\n\n process.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n\n queue.push(new Item(fun, args));\n\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n }; // v8 likes predictible objects\n\n\n function Item(fun, array) {\n this.fun = fun;\n this.array = array;\n }\n\n Item.prototype.run = function () {\n this.fun.apply(null, this.array);\n };\n\n process.title = 'browser';\n process.browser = true;\n process.env = {};\n process.argv = [];\n process.version = ''; // empty string to avoid regexp issues\n\n process.versions = {};\n\n function noop() {}\n\n process.on = noop;\n process.addListener = noop;\n process.once = noop;\n process.off = noop;\n process.removeListener = noop;\n process.removeAllListeners = noop;\n process.emit = noop;\n process.prependListener = noop;\n process.prependOnceListener = noop;\n\n process.listeners = function (name) {\n return [];\n };\n\n process.binding = function (name) {\n throw new Error('process.binding is not supported');\n };\n\n process.cwd = function () {\n return '/';\n };\n\n process.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n };\n\n process.umask = function () {\n return 0;\n };\n /***/\n\n},\n/* 1 */\n\n/***/\nfunction (module, exports, __webpack_require__) {\n \"use strict\";\n /**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n function makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n }\n /**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\n\n\n var emptyFunction = function emptyFunction() {};\n\n emptyFunction.thatReturns = makeEmptyFunction;\n emptyFunction.thatReturnsFalse = makeEmptyFunction(false);\n emptyFunction.thatReturnsTrue = makeEmptyFunction(true);\n emptyFunction.thatReturnsNull = makeEmptyFunction(null);\n\n emptyFunction.thatReturnsThis = function () {\n return this;\n };\n\n emptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n };\n\n module.exports = emptyFunction;\n /***/\n},\n/* 2 */\n\n/***/\nfunction (module, exports, __webpack_require__) {\n \"use strict\";\n /* WEBPACK VAR INJECTION */\n\n (function (process) {\n /**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n /**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n var validateFormat = function validateFormat(format) {};\n\n if (process.env.NODE_ENV !== 'production') {\n validateFormat = function validateFormat(format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n }\n\n function invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error;\n\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n\n throw error;\n }\n }\n\n module.exports = invariant;\n /* WEBPACK VAR INJECTION */\n }).call(exports, __webpack_require__(0));\n /***/\n},\n/* 3 */\n\n/***/\nfunction (module, exports, __webpack_require__) {\n \"use strict\";\n /**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n module.exports = ReactPropTypesSecret;\n /***/\n},\n/* 4 */\n\n/***/\nfunction (module, exports) {\n module.exports = require(\"react\");\n /***/\n},\n/* 5 */\n\n/***/\nfunction (module, exports, __webpack_require__) {\n \"use strict\";\n /* WEBPACK VAR INJECTION */\n\n (function (process) {\n /**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n var emptyFunction = __webpack_require__(1);\n /**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\n\n var warning = emptyFunction;\n\n if (process.env.NODE_ENV !== 'production') {\n var printWarning = function printWarning(format) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n warning = function warning(condition, format) {\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (format.indexOf('Failed Composite propType: ') === 0) {\n return; // Ignore CompositeComponent proptype check.\n }\n\n if (!condition) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(undefined, [format].concat(args));\n }\n };\n }\n\n module.exports = warning;\n /* WEBPACK VAR INJECTION */\n }).call(exports, __webpack_require__(0));\n /***/\n},\n/* 6 */\n\n/***/\nfunction (module, exports, __webpack_require__) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n\n var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n\n var _react = __webpack_require__(4);\n\n var _react2 = _interopRequireDefault(_react);\n\n var _propTypes = __webpack_require__(13);\n\n var _propTypes2 = _interopRequireDefault(_propTypes);\n\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n }\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n function _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n }\n\n var propTypes = {\n className: _propTypes2.default.string,\n onloadCallbackName: _propTypes2.default.string,\n elementID: _propTypes2.default.string,\n onloadCallback: _propTypes2.default.func,\n verifyCallback: _propTypes2.default.func,\n expiredCallback: _propTypes2.default.func,\n render: _propTypes2.default.string,\n sitekey: _propTypes2.default.string,\n theme: _propTypes2.default.string,\n type: _propTypes2.default.string,\n verifyCallbackName: _propTypes2.default.string,\n expiredCallbackName: _propTypes2.default.string,\n size: _propTypes2.default.string,\n tabindex: _propTypes2.default.string,\n hl: _propTypes2.default.string,\n badge: _propTypes2.default.string\n };\n var defaultProps = {\n elementID: 'g-recaptcha',\n onloadCallback: undefined,\n onloadCallbackName: 'onloadCallback',\n verifyCallback: undefined,\n verifyCallbackName: 'verifyCallback',\n expiredCallback: undefined,\n expiredCallbackName: 'expiredCallback',\n render: 'onload',\n theme: 'light',\n type: 'image',\n size: 'normal',\n tabindex: '0',\n hl: 'en',\n badge: 'bottomright'\n };\n\n var isReady = function isReady() {\n return typeof window !== 'undefined' && typeof window.grecaptcha !== 'undefined';\n };\n\n var readyCheck = void 0;\n\n var ReCaptcha = function (_Component) {\n _inherits(ReCaptcha, _Component);\n\n function ReCaptcha(props) {\n _classCallCheck(this, ReCaptcha);\n\n var _this = _possibleConstructorReturn(this, (ReCaptcha.__proto__ || Object.getPrototypeOf(ReCaptcha)).call(this, props));\n\n _this._renderGrecaptcha = _this._renderGrecaptcha.bind(_this);\n _this.reset = _this.reset.bind(_this);\n _this.execute = _this.execute.bind(_this);\n _this.state = {\n ready: isReady(),\n widget: null\n };\n\n if (!_this.state.ready) {\n readyCheck = setInterval(_this._updateReadyState.bind(_this), 1000);\n }\n\n return _this;\n }\n\n _createClass(ReCaptcha, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (!!this.state.ready) {\n this._renderGrecaptcha();\n }\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(prevProps, prevState) {\n var _props = this.props,\n render = _props.render,\n onloadCallback = _props.onloadCallback;\n\n if (render === 'explicit' && onloadCallback && this.state.ready && !prevState.ready) {\n this._renderGrecaptcha();\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n clearInterval(readyCheck);\n }\n }, {\n key: 'reset',\n value: function reset() {\n var _state = this.state,\n ready = _state.ready,\n widget = _state.widget;\n\n if (ready && widget !== null) {\n grecaptcha.reset(widget);\n }\n }\n }, {\n key: 'execute',\n value: function execute() {\n var _state2 = this.state,\n ready = _state2.ready,\n widget = _state2.widget;\n\n if (ready && widget !== null) {\n grecaptcha.execute(widget);\n }\n }\n }, {\n key: '_updateReadyState',\n value: function _updateReadyState() {\n if (isReady()) {\n this.setState({\n ready: true\n });\n clearInterval(readyCheck);\n }\n }\n }, {\n key: '_renderGrecaptcha',\n value: function _renderGrecaptcha() {\n this.state.widget = grecaptcha.render(this.props.elementID, {\n sitekey: this.props.sitekey,\n callback: this.props.verifyCallback ? this.props.verifyCallback : undefined,\n theme: this.props.theme,\n type: this.props.type,\n size: this.props.size,\n tabindex: this.props.tabindex,\n hl: this.props.hl,\n badge: this.props.badge,\n 'expired-callback': this.props.expiredCallback ? this.props.expiredCallback : undefined\n });\n\n if (this.props.onloadCallback) {\n this.props.onloadCallback();\n }\n }\n }, {\n key: 'render',\n value: function render() {\n if (this.props.render === 'explicit' && this.props.onloadCallback) {\n return _react2.default.createElement('div', {\n id: this.props.elementID,\n 'data-onloadcallbackname': this.props.onloadCallbackName,\n 'data-verifycallbackname': this.props.verifyCallbackName\n });\n } else {\n return _react2.default.createElement('div', {\n id: this.props.elementID,\n className: 'g-recaptcha',\n 'data-sitekey': this.props.sitekey,\n 'data-theme': this.props.theme,\n 'data-type': this.props.type,\n 'data-size': this.props.size,\n 'data-badge': this.props.badge,\n 'data-tabindex': this.props.tabindex\n });\n }\n }\n }]);\n\n return ReCaptcha;\n }(_react.Component);\n\n ReCaptcha.propTypes = propTypes;\n ReCaptcha.defaultProps = defaultProps;\n exports.default = ReCaptcha;\n /***/\n},\n/* 7 */\n\n/***/\nfunction (module, exports, __webpack_require__) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n\n var loadReCaptcha = function loadReCaptcha() {\n var script = document.createElement(\"script\");\n script.async = true;\n script.defer = true;\n script.src = \"https://www.google.com/recaptcha/api.js\";\n document.body.appendChild(script);\n };\n\n exports.default = loadReCaptcha;\n /***/\n},\n/* 8 */\n\n/***/\nfunction (module, exports, __webpack_require__) {\n \"use strict\";\n\n var _react = __webpack_require__(4);\n\n var _react2 = _interopRequireDefault(_react);\n\n var _ReCaptcha = __webpack_require__(6);\n\n var _ReCaptcha2 = _interopRequireDefault(_ReCaptcha);\n\n var _loadReCaptcha = __webpack_require__(7);\n\n var _loadReCaptcha2 = _interopRequireDefault(_loadReCaptcha);\n\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n }\n\n module.exports = {\n ReCaptcha: _ReCaptcha2.default,\n loadReCaptcha: _loadReCaptcha2.default\n };\n /***/\n},\n/* 9 */\n\n/***/\nfunction (module, exports, __webpack_require__) {\n \"use strict\";\n /*\n object-assign\n (c) Sindre Sorhus\n @license MIT\n */\n\n /* eslint-disable no-unused-vars */\n\n var getOwnPropertySymbols = Object.getOwnPropertySymbols;\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n var propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\n function toObject(val) {\n if (val === null || val === undefined) {\n throw new TypeError('Object.assign cannot be called with null or undefined');\n }\n\n return Object(val);\n }\n\n function shouldUseNative() {\n try {\n if (!Object.assign) {\n return false;\n } // Detect buggy property enumeration order in older V8 versions.\n // https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\n\n var test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\n test1[5] = 'de';\n\n if (Object.getOwnPropertyNames(test1)[0] === '5') {\n return false;\n } // https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\n\n var test2 = {};\n\n for (var i = 0; i < 10; i++) {\n test2['_' + String.fromCharCode(i)] = i;\n }\n\n var order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n return test2[n];\n });\n\n if (order2.join('') !== '0123456789') {\n return false;\n } // https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\n\n var test3 = {};\n 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n test3[letter] = letter;\n });\n\n if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {\n return false;\n }\n\n return true;\n } catch (err) {\n // We don't expect any of the above to throw, but better to be safe.\n return false;\n }\n }\n\n module.exports = shouldUseNative() ? Object.assign : function (target, source) {\n var from;\n var to = toObject(target);\n var symbols;\n\n for (var s = 1; s < arguments.length; s++) {\n from = Object(arguments[s]);\n\n for (var key in from) {\n if (hasOwnProperty.call(from, key)) {\n to[key] = from[key];\n }\n }\n\n if (getOwnPropertySymbols) {\n symbols = getOwnPropertySymbols(from);\n\n for (var i = 0; i < symbols.length; i++) {\n if (propIsEnumerable.call(from, symbols[i])) {\n to[symbols[i]] = from[symbols[i]];\n }\n }\n }\n }\n\n return to;\n };\n /***/\n},\n/* 10 */\n\n/***/\nfunction (module, exports, __webpack_require__) {\n \"use strict\";\n /* WEBPACK VAR INJECTION */\n\n (function (process) {\n /**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n if (process.env.NODE_ENV !== 'production') {\n var invariant = __webpack_require__(2);\n\n var warning = __webpack_require__(5);\n\n var ReactPropTypesSecret = __webpack_require__(3);\n\n var loggedTypeFailures = {};\n }\n /**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\n\n\n function checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (typeSpecs.hasOwnProperty(typeSpecName)) {\n var error; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]);\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n\n warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error);\n\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n var stack = getStack ? getStack() : '';\n warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '');\n }\n }\n }\n }\n }\n\n module.exports = checkPropTypes;\n /* WEBPACK VAR INJECTION */\n }).call(exports, __webpack_require__(0));\n /***/\n},\n/* 11 */\n\n/***/\nfunction (module, exports, __webpack_require__) {\n \"use strict\";\n /**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n var emptyFunction = __webpack_require__(1);\n\n var invariant = __webpack_require__(2);\n\n var ReactPropTypesSecret = __webpack_require__(3);\n\n module.exports = function () {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n\n invariant(false, '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');\n }\n\n ;\n shim.isRequired = shim;\n\n function getShim() {\n return shim;\n }\n\n ; // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n any: shim,\n arrayOf: getShim,\n element: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim\n };\n ReactPropTypes.checkPropTypes = emptyFunction;\n ReactPropTypes.PropTypes = ReactPropTypes;\n return ReactPropTypes;\n };\n /***/\n\n},\n/* 12 */\n\n/***/\nfunction (module, exports, __webpack_require__) {\n \"use strict\";\n /* WEBPACK VAR INJECTION */\n\n (function (process) {\n /**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n var emptyFunction = __webpack_require__(1);\n\n var invariant = __webpack_require__(2);\n\n var warning = __webpack_require__(5);\n\n var assign = __webpack_require__(9);\n\n var ReactPropTypesSecret = __webpack_require__(3);\n\n var checkPropTypes = __webpack_require__(10);\n\n module.exports = function (isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n\n var ANONYMOUS = '<>'; // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker\n };\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n\n /*eslint-disable no-self-compare*/\n\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n\n\n function PropTypeError(message) {\n this.message = message;\n this.stack = '';\n } // Make `instanceof Error` still work for returned errors.\n\n\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n invariant(false, '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');\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n\n if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3) {\n warning(false, 'You are manually calling a React.PropTypes validation ' + 'function for the `%s` prop on `%s`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.', propFullName, componentName);\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));\n }\n\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunction.thatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n\n var propValue = props[propName];\n\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n\n if (error instanceof Error) {\n return error;\n }\n }\n\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;\n return emptyFunction.thatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n\n var propValue = props[propName];\n var propType = getPropType(propValue);\n\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n\n for (var key in propValue) {\n if (propValue.hasOwnProperty(key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n\n if (error instanceof Error) {\n return error;\n }\n }\n }\n\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunction.thatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n\n if (typeof checker !== 'function') {\n warning(false, 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received %s at index %s.', getPostfixForTypeWarning(checker), i);\n return emptyFunction.thatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n\n if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {\n return null;\n }\n }\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n\n if (!checker) {\n continue;\n }\n\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n\n if (error) {\n return error;\n }\n }\n\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n } // We need to check all keys in case some are required but missing from\n // props.\n\n\n var allKeys = assign({}, props[propName], shapeTypes);\n\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n\n if (!checker) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));\n }\n\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n\n if (error) {\n return error;\n }\n }\n\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n\n case 'boolean':\n return !propValue;\n\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n } // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n\n\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n } // Fallback for non-spec compliant Symbols which are polyfilled.\n\n\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n } // Equivalent of `typeof` but with special handling for array and regexp.\n\n\n function getPropType(propValue) {\n var propType = typeof propValue;\n\n if (Array.isArray(propValue)) {\n return 'array';\n }\n\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n\n return propType;\n } // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n\n\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n\n var propType = getPropType(propValue);\n\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n\n return propType;\n } // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n\n\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n\n default:\n return type;\n }\n } // Returns class name of the object, if any.\n\n\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.PropTypes = ReactPropTypes;\n return ReactPropTypes;\n };\n /* WEBPACK VAR INJECTION */\n\n }).call(exports, __webpack_require__(0));\n /***/\n},\n/* 13 */\n\n/***/\nfunction (module, exports, __webpack_require__) {\n /* WEBPACK VAR INJECTION */\n (function (process) {\n /**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n if (process.env.NODE_ENV !== 'production') {\n var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol.for && Symbol.for('react.element') || 0xeac7;\n\n var isValidElement = function isValidElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }; // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n\n\n var throwOnDirectAccess = true;\n module.exports = __webpack_require__(12)(isValidElement, throwOnDirectAccess);\n } else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = __webpack_require__(11)();\n }\n /* WEBPACK VAR INJECTION */\n\n }).call(exports, __webpack_require__(0));\n /***/\n}\n/******/\n]);","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n/** `Object#toString` result references. */\n\nvar symbolTag = '[object Symbol]';\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\n\nfunction isSymbol(value) {\n return typeof value == 'symbol' || isObjectLike(value) && baseGetTag(value) == symbolTag;\n}\n\nexport default isSymbol;","/**\n * Based on Kendo UI Core expression code \n */\n'use strict';\n\nfunction Cache(maxSize) {\n this._maxSize = maxSize;\n this.clear();\n}\n\nCache.prototype.clear = function () {\n this._size = 0;\n this._values = Object.create(null);\n};\n\nCache.prototype.get = function (key) {\n return this._values[key];\n};\n\nCache.prototype.set = function (key, value) {\n this._size >= this._maxSize && this.clear();\n if (!(key in this._values)) this._size++;\n return this._values[key] = value;\n};\n\nvar SPLIT_REGEX = /[^.^\\]^[]+|(?=\\[\\]|\\.\\.)/g,\n DIGIT_REGEX = /^\\d+$/,\n LEAD_DIGIT_REGEX = /^\\d/,\n SPEC_CHAR_REGEX = /[~`!#$%\\^&*+=\\-\\[\\]\\\\';,/{}|\\\\\":<>\\?]/g,\n CLEAN_QUOTES_REGEX = /^\\s*(['\"]?)(.*?)(\\1)\\s*$/,\n MAX_CACHE_SIZE = 512;\nvar pathCache = new Cache(MAX_CACHE_SIZE),\n setCache = new Cache(MAX_CACHE_SIZE),\n getCache = new Cache(MAX_CACHE_SIZE);\nvar config;\nmodule.exports = {\n Cache: Cache,\n split: split,\n normalizePath: normalizePath,\n setter: function setter(path) {\n var parts = normalizePath(path);\n return setCache.get(path) || setCache.set(path, function setter(data, value) {\n var index = 0,\n len = parts.length;\n\n while (index < len - 1) {\n data = data[parts[index++]];\n }\n\n data[parts[index]] = value;\n });\n },\n getter: function getter(path, safe) {\n var parts = normalizePath(path);\n return getCache.get(path) || getCache.set(path, function getter(data) {\n var index = 0,\n len = parts.length;\n\n while (index < len) {\n if (data != null || !safe) data = data[parts[index++]];else return;\n }\n\n return data;\n });\n },\n join: function join(segments) {\n return segments.reduce(function (path, part) {\n return path + (isQuoted(part) || DIGIT_REGEX.test(part) ? '[' + part + ']' : (path ? '.' : '') + part);\n }, '');\n },\n forEach: function forEach(path, cb, thisArg) {\n _forEach(Array.isArray(path) ? path : split(path), cb, thisArg);\n }\n};\n\nfunction normalizePath(path) {\n return pathCache.get(path) || pathCache.set(path, split(path).map(function (part) {\n return part.replace(CLEAN_QUOTES_REGEX, '$2');\n }));\n}\n\nfunction split(path) {\n return path.match(SPLIT_REGEX);\n}\n\nfunction _forEach(parts, iter, thisArg) {\n var len = parts.length,\n part,\n idx,\n isArray,\n isBracket;\n\n for (idx = 0; idx < len; idx++) {\n part = parts[idx];\n\n if (part) {\n if (shouldBeQuoted(part)) {\n part = '\"' + part + '\"';\n }\n\n isBracket = isQuoted(part);\n isArray = !isBracket && /^\\d+$/.test(part);\n iter.call(thisArg, part, isBracket, isArray, idx, parts);\n }\n }\n}\n\nfunction isQuoted(str) {\n return typeof str === 'string' && str && [\"'\", '\"'].indexOf(str.charAt(0)) !== -1;\n}\n\nfunction hasLeadingNumber(part) {\n return part.match(LEAD_DIGIT_REGEX) && !part.match(DIGIT_REGEX);\n}\n\nfunction hasSpecialChars(part) {\n return SPEC_CHAR_REGEX.test(part);\n}\n\nfunction shouldBeQuoted(part) {\n return !isQuoted(part) && (hasLeadingNumber(part) || hasSpecialChars(part));\n}","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nexport default listCacheClear;","import eq from './eq.js';\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n\nfunction assocIndexOf(array, key) {\n var length = array.length;\n\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n\n return -1;\n}\n\nexport default assocIndexOf;","import assocIndexOf from './_assocIndexOf.js';\n/** Used for built-in method references. */\n\nvar arrayProto = Array.prototype;\n/** Built-in value references. */\n\nvar splice = arrayProto.splice;\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n\n var lastIndex = data.length - 1;\n\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n\n --this.size;\n return true;\n}\n\nexport default listCacheDelete;","import assocIndexOf from './_assocIndexOf.js';\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n return index < 0 ? undefined : data[index][1];\n}\n\nexport default listCacheGet;","import assocIndexOf from './_assocIndexOf.js';\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nexport default listCacheHas;","import assocIndexOf from './_assocIndexOf.js';\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n\n return this;\n}\n\nexport default listCacheSet;","import listCacheClear from './_listCacheClear.js';\nimport listCacheDelete from './_listCacheDelete.js';\nimport listCacheGet from './_listCacheGet.js';\nimport listCacheHas from './_listCacheHas.js';\nimport listCacheSet from './_listCacheSet.js';\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n this.clear();\n\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n} // Add methods to `ListCache`.\n\n\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\nexport default ListCache;","import getNative from './_getNative.js';\n\nvar defineProperty = function () {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}();\n\nexport default defineProperty;","import defineProperty from './_defineProperty.js';\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nexport default baseAssignValue;","import getNative from './_getNative.js';\nimport root from './_root.js';\n/* Built-in method references that are verified to be native. */\n\nvar Map = getNative(root, 'Map');\nexport default Map;","import ListCache from './_ListCache.js';\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n\nfunction stackClear() {\n this.__data__ = new ListCache();\n this.size = 0;\n}\n\nexport default stackClear;","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n this.size = data.size;\n return result;\n}\n\nexport default stackDelete;","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nexport default stackGet;","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nexport default stackHas;","import ListCache from './_ListCache.js';\nimport Map from './_Map.js';\nimport MapCache from './_MapCache.js';\n/** Used as the size to enable large array optimizations. */\n\nvar LARGE_ARRAY_SIZE = 200;\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n\nfunction stackSet(key, value) {\n var data = this.__data__;\n\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n\n if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n\n data = this.__data__ = new MapCache(pairs);\n }\n\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nexport default stackSet;","import ListCache from './_ListCache.js';\nimport stackClear from './_stackClear.js';\nimport stackDelete from './_stackDelete.js';\nimport stackGet from './_stackGet.js';\nimport stackHas from './_stackHas.js';\nimport stackSet from './_stackSet.js';\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n} // Add methods to `Stack`.\n\n\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\nexport default Stack;","import React, { Component } from 'react';\nimport _inheritsLoose from '@babel/runtime/helpers/inheritsLoose';\nimport PropTypes from 'prop-types';\nimport gud from 'gud';\nimport warning from 'tiny-warning';\nvar MAX_SIGNED_31_BIT_INT = 1073741823;\n\nfunction objectIs(x, y) {\n if (x === y) {\n return x !== 0 || 1 / x === 1 / y;\n } else {\n return x !== x && y !== y;\n }\n}\n\nfunction createEventEmitter(value) {\n var handlers = [];\n return {\n on: function on(handler) {\n handlers.push(handler);\n },\n off: function off(handler) {\n handlers = handlers.filter(function (h) {\n return h !== handler;\n });\n },\n get: function get() {\n return value;\n },\n set: function set(newValue, changedBits) {\n value = newValue;\n handlers.forEach(function (handler) {\n return handler(value, changedBits);\n });\n }\n };\n}\n\nfunction onlyChild(children) {\n return Array.isArray(children) ? children[0] : children;\n}\n\nfunction createReactContext(defaultValue, calculateChangedBits) {\n var _Provider$childContex, _Consumer$contextType;\n\n var contextProp = '__create-react-context-' + gud() + '__';\n\n var Provider = /*#__PURE__*/function (_Component) {\n _inheritsLoose(Provider, _Component);\n\n function Provider() {\n var _this;\n\n _this = _Component.apply(this, arguments) || this;\n _this.emitter = createEventEmitter(_this.props.value);\n return _this;\n }\n\n var _proto = Provider.prototype;\n\n _proto.getChildContext = function getChildContext() {\n var _ref;\n\n return _ref = {}, _ref[contextProp] = this.emitter, _ref;\n };\n\n _proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n if (this.props.value !== nextProps.value) {\n var oldValue = this.props.value;\n var newValue = nextProps.value;\n var changedBits;\n\n if (objectIs(oldValue, newValue)) {\n changedBits = 0;\n } else {\n changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;\n\n if (process.env.NODE_ENV !== 'production') {\n warning((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: ' + changedBits);\n }\n\n changedBits |= 0;\n\n if (changedBits !== 0) {\n this.emitter.set(nextProps.value, changedBits);\n }\n }\n }\n };\n\n _proto.render = function render() {\n return this.props.children;\n };\n\n return Provider;\n }(Component);\n\n Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = PropTypes.object.isRequired, _Provider$childContex);\n\n var Consumer = /*#__PURE__*/function (_Component2) {\n _inheritsLoose(Consumer, _Component2);\n\n function Consumer() {\n var _this2;\n\n _this2 = _Component2.apply(this, arguments) || this;\n _this2.state = {\n value: _this2.getValue()\n };\n\n _this2.onUpdate = function (newValue, changedBits) {\n var observedBits = _this2.observedBits | 0;\n\n if ((observedBits & changedBits) !== 0) {\n _this2.setState({\n value: _this2.getValue()\n });\n }\n };\n\n return _this2;\n }\n\n var _proto2 = Consumer.prototype;\n\n _proto2.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n var observedBits = nextProps.observedBits;\n this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;\n };\n\n _proto2.componentDidMount = function componentDidMount() {\n if (this.context[contextProp]) {\n this.context[contextProp].on(this.onUpdate);\n }\n\n var observedBits = this.props.observedBits;\n this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;\n };\n\n _proto2.componentWillUnmount = function componentWillUnmount() {\n if (this.context[contextProp]) {\n this.context[contextProp].off(this.onUpdate);\n }\n };\n\n _proto2.getValue = function getValue() {\n if (this.context[contextProp]) {\n return this.context[contextProp].get();\n } else {\n return defaultValue;\n }\n };\n\n _proto2.render = function render() {\n return onlyChild(this.props.children)(this.state.value);\n };\n\n return Consumer;\n }(Component);\n\n Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = PropTypes.object, _Consumer$contextType);\n return {\n Provider: Provider,\n Consumer: Consumer\n };\n}\n\nvar index = React.createContext || createReactContext;\nexport default index;","import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { createMemoryHistory, createLocation, locationsAreEqual, createPath } from 'history';\nimport warning from 'tiny-warning';\nimport createContext from 'mini-create-react-context';\nimport invariant from 'tiny-invariant';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport pathToRegexp from 'path-to-regexp';\nimport { isValidElementType } from 'react-is';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\nimport hoistStatics from 'hoist-non-react-statics'; // TODO: Replace with React.createContext once we can assume React 16+\n\nvar createNamedContext = function createNamedContext(name) {\n var context = createContext();\n context.displayName = name;\n return context;\n};\n\nvar context = /*#__PURE__*/createNamedContext(\"Router\");\n/**\n * The public API for putting history on context.\n */\n\nvar Router = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Router, _React$Component);\n\n Router.computeRootMatch = function computeRootMatch(pathname) {\n return {\n path: \"/\",\n url: \"/\",\n params: {},\n isExact: pathname === \"/\"\n };\n };\n\n function Router(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n _this.state = {\n location: props.history.location\n }; // This is a bit of a hack. We have to start listening for location\n // changes here in the constructor in case there are any s\n // on the initial render. If there are, they will replace/push when\n // they mount and since cDM fires in children before parents, we may\n // get a new location before the is mounted.\n\n _this._isMounted = false;\n _this._pendingLocation = null;\n\n if (!props.staticContext) {\n _this.unlisten = props.history.listen(function (location) {\n if (_this._isMounted) {\n _this.setState({\n location: location\n });\n } else {\n _this._pendingLocation = location;\n }\n });\n }\n\n return _this;\n }\n\n var _proto = Router.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this._isMounted = true;\n\n if (this._pendingLocation) {\n this.setState({\n location: this._pendingLocation\n });\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n if (this.unlisten) this.unlisten();\n };\n\n _proto.render = function render() {\n return React.createElement(context.Provider, {\n children: this.props.children || null,\n value: {\n history: this.props.history,\n location: this.state.location,\n match: Router.computeRootMatch(this.state.location.pathname),\n staticContext: this.props.staticContext\n }\n });\n };\n\n return Router;\n}(React.Component);\n\nif (process.env.NODE_ENV !== \"production\") {\n Router.propTypes = {\n children: PropTypes.node,\n history: PropTypes.object.isRequired,\n staticContext: PropTypes.object\n };\n\n Router.prototype.componentDidUpdate = function (prevProps) {\n process.env.NODE_ENV !== \"production\" ? warning(prevProps.history === this.props.history, \"You cannot change \") : void 0;\n };\n}\n/**\n * The public API for a that stores location in memory.\n */\n\n\nvar MemoryRouter = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(MemoryRouter, _React$Component);\n\n function MemoryRouter() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.history = createMemoryHistory(_this.props);\n return _this;\n }\n\n var _proto = MemoryRouter.prototype;\n\n _proto.render = function render() {\n return React.createElement(Router, {\n history: this.history,\n children: this.props.children\n });\n };\n\n return MemoryRouter;\n}(React.Component);\n\nif (process.env.NODE_ENV !== \"production\") {\n MemoryRouter.propTypes = {\n initialEntries: PropTypes.array,\n initialIndex: PropTypes.number,\n getUserConfirmation: PropTypes.func,\n keyLength: PropTypes.number,\n children: PropTypes.node\n };\n\n MemoryRouter.prototype.componentDidMount = function () {\n process.env.NODE_ENV !== \"production\" ? warning(!this.props.history, \" ignores the history prop. To use a custom history, \" + \"use `import { Router }` instead of `import { MemoryRouter as Router }`.\") : void 0;\n };\n}\n\nvar Lifecycle = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Lifecycle, _React$Component);\n\n function Lifecycle() {\n return _React$Component.apply(this, arguments) || this;\n }\n\n var _proto = Lifecycle.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n if (this.props.onMount) this.props.onMount.call(this, this);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n if (this.props.onUpdate) this.props.onUpdate.call(this, this, prevProps);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n if (this.props.onUnmount) this.props.onUnmount.call(this, this);\n };\n\n _proto.render = function render() {\n return null;\n };\n\n return Lifecycle;\n}(React.Component);\n/**\n * The public API for prompting the user before navigating away from a screen.\n */\n\n\nfunction Prompt(_ref) {\n var message = _ref.message,\n _ref$when = _ref.when,\n when = _ref$when === void 0 ? true : _ref$when;\n return React.createElement(context.Consumer, null, function (context) {\n !context ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"You should not use outside a \") : invariant(false) : void 0;\n if (!when || context.staticContext) return null;\n var method = context.history.block;\n return React.createElement(Lifecycle, {\n onMount: function onMount(self) {\n self.release = method(message);\n },\n onUpdate: function onUpdate(self, prevProps) {\n if (prevProps.message !== message) {\n self.release();\n self.release = method(message);\n }\n },\n onUnmount: function onUnmount(self) {\n self.release();\n },\n message: message\n });\n });\n}\n\nif (process.env.NODE_ENV !== \"production\") {\n var messageType = PropTypes.oneOfType([PropTypes.func, PropTypes.string]);\n Prompt.propTypes = {\n when: PropTypes.bool,\n message: messageType.isRequired\n };\n}\n\nvar cache = {};\nvar cacheLimit = 10000;\nvar cacheCount = 0;\n\nfunction compilePath(path) {\n if (cache[path]) return cache[path];\n var generator = pathToRegexp.compile(path);\n\n if (cacheCount < cacheLimit) {\n cache[path] = generator;\n cacheCount++;\n }\n\n return generator;\n}\n/**\n * Public API for generating a URL pathname from a path and parameters.\n */\n\n\nfunction generatePath(path, params) {\n if (path === void 0) {\n path = \"/\";\n }\n\n if (params === void 0) {\n params = {};\n }\n\n return path === \"/\" ? path : compilePath(path)(params, {\n pretty: true\n });\n}\n/**\n * The public API for navigating programmatically with a component.\n */\n\n\nfunction Redirect(_ref) {\n var computedMatch = _ref.computedMatch,\n to = _ref.to,\n _ref$push = _ref.push,\n push = _ref$push === void 0 ? false : _ref$push;\n return React.createElement(context.Consumer, null, function (context) {\n !context ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"You should not use outside a \") : invariant(false) : void 0;\n var history = context.history,\n staticContext = context.staticContext;\n var method = push ? history.push : history.replace;\n var location = createLocation(computedMatch ? typeof to === \"string\" ? generatePath(to, computedMatch.params) : _extends({}, to, {\n pathname: generatePath(to.pathname, computedMatch.params)\n }) : to); // When rendering in a static context,\n // set the new location immediately.\n\n if (staticContext) {\n method(location);\n return null;\n }\n\n return React.createElement(Lifecycle, {\n onMount: function onMount() {\n method(location);\n },\n onUpdate: function onUpdate(self, prevProps) {\n var prevLocation = createLocation(prevProps.to);\n\n if (!locationsAreEqual(prevLocation, _extends({}, location, {\n key: prevLocation.key\n }))) {\n method(location);\n }\n },\n to: to\n });\n });\n}\n\nif (process.env.NODE_ENV !== \"production\") {\n Redirect.propTypes = {\n push: PropTypes.bool,\n from: PropTypes.string,\n to: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired\n };\n}\n\nvar cache$1 = {};\nvar cacheLimit$1 = 10000;\nvar cacheCount$1 = 0;\n\nfunction compilePath$1(path, options) {\n var cacheKey = \"\" + options.end + options.strict + options.sensitive;\n var pathCache = cache$1[cacheKey] || (cache$1[cacheKey] = {});\n if (pathCache[path]) return pathCache[path];\n var keys = [];\n var regexp = pathToRegexp(path, keys, options);\n var result = {\n regexp: regexp,\n keys: keys\n };\n\n if (cacheCount$1 < cacheLimit$1) {\n pathCache[path] = result;\n cacheCount$1++;\n }\n\n return result;\n}\n/**\n * Public API for matching a URL pathname to a path.\n */\n\n\nfunction matchPath(pathname, options) {\n if (options === void 0) {\n options = {};\n }\n\n if (typeof options === \"string\" || Array.isArray(options)) {\n options = {\n path: options\n };\n }\n\n var _options = options,\n path = _options.path,\n _options$exact = _options.exact,\n exact = _options$exact === void 0 ? false : _options$exact,\n _options$strict = _options.strict,\n strict = _options$strict === void 0 ? false : _options$strict,\n _options$sensitive = _options.sensitive,\n sensitive = _options$sensitive === void 0 ? false : _options$sensitive;\n var paths = [].concat(path);\n return paths.reduce(function (matched, path) {\n if (!path && path !== \"\") return null;\n if (matched) return matched;\n\n var _compilePath = compilePath$1(path, {\n end: exact,\n strict: strict,\n sensitive: sensitive\n }),\n regexp = _compilePath.regexp,\n keys = _compilePath.keys;\n\n var match = regexp.exec(pathname);\n if (!match) return null;\n var url = match[0],\n values = match.slice(1);\n var isExact = pathname === url;\n if (exact && !isExact) return null;\n return {\n path: path,\n // the path used to match\n url: path === \"/\" && url === \"\" ? \"/\" : url,\n // the matched portion of the URL\n isExact: isExact,\n // whether or not we matched exactly\n params: keys.reduce(function (memo, key, index) {\n memo[key.name] = values[index];\n return memo;\n }, {})\n };\n }, null);\n}\n\nfunction isEmptyChildren(children) {\n return React.Children.count(children) === 0;\n}\n\nfunction evalChildrenDev(children, props, path) {\n var value = children(props);\n process.env.NODE_ENV !== \"production\" ? warning(value !== undefined, \"You returned `undefined` from the `children` function of \" + (\", but you \") + \"should have returned a React element or `null`\") : void 0;\n return value || null;\n}\n/**\n * The public API for matching a single path and rendering.\n */\n\n\nvar Route = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Route, _React$Component);\n\n function Route() {\n return _React$Component.apply(this, arguments) || this;\n }\n\n var _proto = Route.prototype;\n\n _proto.render = function render() {\n var _this = this;\n\n return React.createElement(context.Consumer, null, function (context$1) {\n !context$1 ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"You should not use outside a \") : invariant(false) : void 0;\n var location = _this.props.location || context$1.location;\n var match = _this.props.computedMatch ? _this.props.computedMatch // already computed the match for us\n : _this.props.path ? matchPath(location.pathname, _this.props) : context$1.match;\n\n var props = _extends({}, context$1, {\n location: location,\n match: match\n });\n\n var _this$props = _this.props,\n children = _this$props.children,\n component = _this$props.component,\n render = _this$props.render; // Preact uses an empty array as children by\n // default, so use null if that's the case.\n\n if (Array.isArray(children) && children.length === 0) {\n children = null;\n }\n\n return React.createElement(context.Provider, {\n value: props\n }, props.match ? children ? typeof children === \"function\" ? process.env.NODE_ENV !== \"production\" ? evalChildrenDev(children, props, _this.props.path) : children(props) : children : component ? React.createElement(component, props) : render ? render(props) : null : typeof children === \"function\" ? process.env.NODE_ENV !== \"production\" ? evalChildrenDev(children, props, _this.props.path) : children(props) : null);\n });\n };\n\n return Route;\n}(React.Component);\n\nif (process.env.NODE_ENV !== \"production\") {\n Route.propTypes = {\n children: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),\n component: function component(props, propName) {\n if (props[propName] && !isValidElementType(props[propName])) {\n return new Error(\"Invalid prop 'component' supplied to 'Route': the prop is not a valid React component\");\n }\n },\n exact: PropTypes.bool,\n location: PropTypes.object,\n path: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),\n render: PropTypes.func,\n sensitive: PropTypes.bool,\n strict: PropTypes.bool\n };\n\n Route.prototype.componentDidMount = function () {\n process.env.NODE_ENV !== \"production\" ? warning(!(this.props.children && !isEmptyChildren(this.props.children) && this.props.component), \"You should not use and in the same route; will be ignored\") : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(!(this.props.children && !isEmptyChildren(this.props.children) && this.props.render), \"You should not use and in the same route; will be ignored\") : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(!(this.props.component && this.props.render), \"You should not use and in the same route; will be ignored\") : void 0;\n };\n\n Route.prototype.componentDidUpdate = function (prevProps) {\n process.env.NODE_ENV !== \"production\" ? warning(!(this.props.location && !prevProps.location), ' elements should not change from uncontrolled to controlled (or vice versa). You initially used no \"location\" prop and then provided one on a subsequent render.') : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(!(!this.props.location && prevProps.location), ' elements should not change from controlled to uncontrolled (or vice versa). You provided a \"location\" prop initially but omitted it on a subsequent render.') : void 0;\n };\n}\n\nfunction addLeadingSlash(path) {\n return path.charAt(0) === \"/\" ? path : \"/\" + path;\n}\n\nfunction addBasename(basename, location) {\n if (!basename) return location;\n return _extends({}, location, {\n pathname: addLeadingSlash(basename) + location.pathname\n });\n}\n\nfunction stripBasename(basename, location) {\n if (!basename) return location;\n var base = addLeadingSlash(basename);\n if (location.pathname.indexOf(base) !== 0) return location;\n return _extends({}, location, {\n pathname: location.pathname.substr(base.length)\n });\n}\n\nfunction createURL(location) {\n return typeof location === \"string\" ? location : createPath(location);\n}\n\nfunction staticHandler(methodName) {\n return function () {\n process.env.NODE_ENV !== \"production\" ? invariant(false, \"You cannot %s with \", methodName) : invariant(false);\n };\n}\n\nfunction noop() {}\n/**\n * The public top-level API for a \"static\" , so-called because it\n * can't actually change the current location. Instead, it just records\n * location changes in a context object. Useful mainly in testing and\n * server-rendering scenarios.\n */\n\n\nvar StaticRouter = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(StaticRouter, _React$Component);\n\n function StaticRouter() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n\n _this.handlePush = function (location) {\n return _this.navigateTo(location, \"PUSH\");\n };\n\n _this.handleReplace = function (location) {\n return _this.navigateTo(location, \"REPLACE\");\n };\n\n _this.handleListen = function () {\n return noop;\n };\n\n _this.handleBlock = function () {\n return noop;\n };\n\n return _this;\n }\n\n var _proto = StaticRouter.prototype;\n\n _proto.navigateTo = function navigateTo(location, action) {\n var _this$props = this.props,\n _this$props$basename = _this$props.basename,\n basename = _this$props$basename === void 0 ? \"\" : _this$props$basename,\n _this$props$context = _this$props.context,\n context = _this$props$context === void 0 ? {} : _this$props$context;\n context.action = action;\n context.location = addBasename(basename, createLocation(location));\n context.url = createURL(context.location);\n };\n\n _proto.render = function render() {\n var _this$props2 = this.props,\n _this$props2$basename = _this$props2.basename,\n basename = _this$props2$basename === void 0 ? \"\" : _this$props2$basename,\n _this$props2$context = _this$props2.context,\n context = _this$props2$context === void 0 ? {} : _this$props2$context,\n _this$props2$location = _this$props2.location,\n location = _this$props2$location === void 0 ? \"/\" : _this$props2$location,\n rest = _objectWithoutPropertiesLoose(_this$props2, [\"basename\", \"context\", \"location\"]);\n\n var history = {\n createHref: function createHref(path) {\n return addLeadingSlash(basename + createURL(path));\n },\n action: \"POP\",\n location: stripBasename(basename, createLocation(location)),\n push: this.handlePush,\n replace: this.handleReplace,\n go: staticHandler(\"go\"),\n goBack: staticHandler(\"goBack\"),\n goForward: staticHandler(\"goForward\"),\n listen: this.handleListen,\n block: this.handleBlock\n };\n return React.createElement(Router, _extends({}, rest, {\n history: history,\n staticContext: context\n }));\n };\n\n return StaticRouter;\n}(React.Component);\n\nif (process.env.NODE_ENV !== \"production\") {\n StaticRouter.propTypes = {\n basename: PropTypes.string,\n context: PropTypes.object,\n location: PropTypes.oneOfType([PropTypes.string, PropTypes.object])\n };\n\n StaticRouter.prototype.componentDidMount = function () {\n process.env.NODE_ENV !== \"production\" ? warning(!this.props.history, \" ignores the history prop. To use a custom history, \" + \"use `import { Router }` instead of `import { StaticRouter as Router }`.\") : void 0;\n };\n}\n/**\n * The public API for rendering the first that matches.\n */\n\n\nvar Switch = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Switch, _React$Component);\n\n function Switch() {\n return _React$Component.apply(this, arguments) || this;\n }\n\n var _proto = Switch.prototype;\n\n _proto.render = function render() {\n var _this = this;\n\n return React.createElement(context.Consumer, null, function (context) {\n !context ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"You should not use outside a \") : invariant(false) : void 0;\n var location = _this.props.location || context.location;\n var element, match; // We use React.Children.forEach instead of React.Children.toArray().find()\n // here because toArray adds keys to all child elements and we do not want\n // to trigger an unmount/remount for two s that render the same\n // component at different URLs.\n\n React.Children.forEach(_this.props.children, function (child) {\n if (match == null && React.isValidElement(child)) {\n element = child;\n var path = child.props.path || child.props.from;\n match = path ? matchPath(location.pathname, _extends({}, child.props, {\n path: path\n })) : context.match;\n }\n });\n return match ? React.cloneElement(element, {\n location: location,\n computedMatch: match\n }) : null;\n });\n };\n\n return Switch;\n}(React.Component);\n\nif (process.env.NODE_ENV !== \"production\") {\n Switch.propTypes = {\n children: PropTypes.node,\n location: PropTypes.object\n };\n\n Switch.prototype.componentDidUpdate = function (prevProps) {\n process.env.NODE_ENV !== \"production\" ? warning(!(this.props.location && !prevProps.location), ' elements should not change from uncontrolled to controlled (or vice versa). You initially used no \"location\" prop and then provided one on a subsequent render.') : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(!(!this.props.location && prevProps.location), ' elements should not change from controlled to uncontrolled (or vice versa). You provided a \"location\" prop initially but omitted it on a subsequent render.') : void 0;\n };\n}\n/**\n * A public higher-order component to access the imperative API\n */\n\n\nfunction withRouter(Component) {\n var displayName = \"withRouter(\" + (Component.displayName || Component.name) + \")\";\n\n var C = function C(props) {\n var wrappedComponentRef = props.wrappedComponentRef,\n remainingProps = _objectWithoutPropertiesLoose(props, [\"wrappedComponentRef\"]);\n\n return React.createElement(context.Consumer, null, function (context) {\n !context ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"You should not use <\" + displayName + \" /> outside a \") : invariant(false) : void 0;\n return React.createElement(Component, _extends({}, remainingProps, context, {\n ref: wrappedComponentRef\n }));\n });\n };\n\n C.displayName = displayName;\n C.WrappedComponent = Component;\n\n if (process.env.NODE_ENV !== \"production\") {\n C.propTypes = {\n wrappedComponentRef: PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.object])\n };\n }\n\n return hoistStatics(C, Component);\n}\n\nvar useContext = React.useContext;\n\nfunction useHistory() {\n if (process.env.NODE_ENV !== \"production\") {\n !(typeof useContext === \"function\") ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"You must use React >= 16.8 in order to use useHistory()\") : invariant(false) : void 0;\n }\n\n return useContext(context).history;\n}\n\nfunction useLocation() {\n if (process.env.NODE_ENV !== \"production\") {\n !(typeof useContext === \"function\") ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"You must use React >= 16.8 in order to use useLocation()\") : invariant(false) : void 0;\n }\n\n return useContext(context).location;\n}\n\nfunction useParams() {\n if (process.env.NODE_ENV !== \"production\") {\n !(typeof useContext === \"function\") ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"You must use React >= 16.8 in order to use useParams()\") : invariant(false) : void 0;\n }\n\n var match = useContext(context).match;\n return match ? match.params : {};\n}\n\nfunction useRouteMatch(path) {\n if (process.env.NODE_ENV !== \"production\") {\n !(typeof useContext === \"function\") ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"You must use React >= 16.8 in order to use useRouteMatch()\") : invariant(false) : void 0;\n }\n\n return path ? matchPath(useLocation().pathname, path) : useContext(context).match;\n}\n\nif (process.env.NODE_ENV !== \"production\") {\n if (typeof window !== \"undefined\") {\n var global = window;\n var key = \"__react_router_build__\";\n var buildNames = {\n cjs: \"CommonJS\",\n esm: \"ES modules\",\n umd: \"UMD\"\n };\n\n if (global[key] && global[key] !== \"esm\") {\n var initialBuildName = buildNames[global[key]];\n var secondaryBuildName = buildNames[\"esm\"]; // TODO: Add link to article that explains in detail how to avoid\n // loading 2 different builds.\n\n throw new Error(\"You are loading the \" + secondaryBuildName + \" build of React Router \" + (\"on a page that is already running the \" + initialBuildName + \" \") + \"build, so things won't work right.\");\n }\n\n global[key] = \"esm\";\n }\n}\n\nexport { MemoryRouter, Prompt, Redirect, Route, Router, StaticRouter, Switch, context as __RouterContext, generatePath, matchPath, useHistory, useLocation, useParams, useRouteMatch, withRouter };","'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function') {\n return;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.production.min.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}","import root from './_root.js';\nimport stubFalse from './stubFalse.js';\n/** Detect free variable `exports`. */\n\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n/** Detect free variable `module`. */\n\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n/** Detect the popular CommonJS extension `module.exports`. */\n\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n/** Built-in value references. */\n\nvar Buffer = moduleExports ? root.Buffer : undefined;\n/* Built-in method references for those with the same name as other `lodash` methods. */\n\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n\nvar isBuffer = nativeIsBuffer || stubFalse;\nexport default isBuffer;","import toDate from '../toDate/index.js';\nimport requiredArgs from '../_lib/requiredArgs/index.js';\n/**\n * @name startOfDay\n * @category Day Helpers\n * @summary Return the start of a day for the given date.\n *\n * @description\n * Return the start of a day for the given date.\n * The result will be in the local timezone.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the start of a day\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The start of a day for 2 September 2014 11:55:00:\n * var result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 00:00:00\n */\n\nexport default function startOfDay(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n date.setHours(0, 0, 0, 0);\n return date;\n}","import getNative from './_getNative.js';\n/* Built-in method references that are verified to be native. */\n\nvar nativeCreate = getNative(Object, 'create');\nexport default nativeCreate;","import nativeCreate from './_nativeCreate.js';\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nexport default hashClear;","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nexport default hashDelete;","import nativeCreate from './_nativeCreate.js';\n/** Used to stand-in for `undefined` hash values. */\n\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n/** Used for built-in method references. */\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n\nfunction hashGet(key) {\n var data = this.__data__;\n\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nexport default hashGet;","import nativeCreate from './_nativeCreate.js';\n/** Used for built-in method references. */\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);\n}\n\nexport default hashHas;","import nativeCreate from './_nativeCreate.js';\n/** Used to stand-in for `undefined` hash values. */\n\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value;\n return this;\n}\n\nexport default hashSet;","import hashClear from './_hashClear.js';\nimport hashDelete from './_hashDelete.js';\nimport hashGet from './_hashGet.js';\nimport hashHas from './_hashHas.js';\nimport hashSet from './_hashSet.js';\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n this.clear();\n\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n} // Add methods to `Hash`.\n\n\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\nexport default Hash;","import Hash from './_Hash.js';\nimport ListCache from './_ListCache.js';\nimport Map from './_Map.js';\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash(),\n 'map': new (Map || ListCache)(),\n 'string': new Hash()\n };\n}\n\nexport default mapCacheClear;","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' : value === null;\n}\n\nexport default isKeyable;","import isKeyable from './_isKeyable.js';\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map;\n}\n\nexport default getMapData;","import getMapData from './_getMapData.js';\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nexport default mapCacheDelete;","import getMapData from './_getMapData.js';\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nexport default mapCacheGet;","import getMapData from './_getMapData.js';\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nexport default mapCacheHas;","import getMapData from './_getMapData.js';\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nexport default mapCacheSet;","import mapCacheClear from './_mapCacheClear.js';\nimport mapCacheDelete from './_mapCacheDelete.js';\nimport mapCacheGet from './_mapCacheGet.js';\nimport mapCacheHas from './_mapCacheHas.js';\nimport mapCacheSet from './_mapCacheSet.js';\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n this.clear();\n\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n} // Add methods to `MapCache`.\n\n\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\nexport default MapCache;","function _extends() {\n module.exports = _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nmodule.exports = _extends;","//! moment.js\n;\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : global.moment = factory();\n})(this, function () {\n 'use strict';\n\n var hookCallback;\n\n function hooks() {\n return hookCallback.apply(null, arguments);\n } // This is done to register the method called with moment()\n // without creating circular dependencies.\n\n\n function setHookCallback(callback) {\n hookCallback = callback;\n }\n\n function isArray(input) {\n return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';\n }\n\n function isObject(input) {\n // IE8 will treat undefined and null as object if it wasn't for\n // input != null\n return input != null && Object.prototype.toString.call(input) === '[object Object]';\n }\n\n function isObjectEmpty(obj) {\n if (Object.getOwnPropertyNames) {\n return Object.getOwnPropertyNames(obj).length === 0;\n } else {\n var k;\n\n for (k in obj) {\n if (obj.hasOwnProperty(k)) {\n return false;\n }\n }\n\n return true;\n }\n }\n\n function isUndefined(input) {\n return input === void 0;\n }\n\n function isNumber(input) {\n return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]';\n }\n\n function isDate(input) {\n return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';\n }\n\n function map(arr, fn) {\n var res = [],\n i;\n\n for (i = 0; i < arr.length; ++i) {\n res.push(fn(arr[i], i));\n }\n\n return res;\n }\n\n function hasOwnProp(a, b) {\n return Object.prototype.hasOwnProperty.call(a, b);\n }\n\n function extend(a, b) {\n for (var i in b) {\n if (hasOwnProp(b, i)) {\n a[i] = b[i];\n }\n }\n\n if (hasOwnProp(b, 'toString')) {\n a.toString = b.toString;\n }\n\n if (hasOwnProp(b, 'valueOf')) {\n a.valueOf = b.valueOf;\n }\n\n return a;\n }\n\n function createUTC(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, true).utc();\n }\n\n function defaultParsingFlags() {\n // We need to deep clone this object.\n return {\n empty: false,\n unusedTokens: [],\n unusedInput: [],\n overflow: -2,\n charsLeftOver: 0,\n nullInput: false,\n invalidMonth: null,\n invalidFormat: false,\n userInvalidated: false,\n iso: false,\n parsedDateParts: [],\n meridiem: null,\n rfc2822: false,\n weekdayMismatch: false\n };\n }\n\n function getParsingFlags(m) {\n if (m._pf == null) {\n m._pf = defaultParsingFlags();\n }\n\n return m._pf;\n }\n\n var some;\n\n if (Array.prototype.some) {\n some = Array.prototype.some;\n } else {\n some = function some(fun) {\n var t = Object(this);\n var len = t.length >>> 0;\n\n for (var i = 0; i < len; i++) {\n if (i in t && fun.call(this, t[i], i, t)) {\n return true;\n }\n }\n\n return false;\n };\n }\n\n function isValid(m) {\n if (m._isValid == null) {\n var flags = getParsingFlags(m);\n var parsedParts = some.call(flags.parsedDateParts, function (i) {\n return i != null;\n });\n var isNowValid = !isNaN(m._d.getTime()) && flags.overflow < 0 && !flags.empty && !flags.invalidMonth && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts);\n\n if (m._strict) {\n isNowValid = isNowValid && flags.charsLeftOver === 0 && flags.unusedTokens.length === 0 && flags.bigHour === undefined;\n }\n\n if (Object.isFrozen == null || !Object.isFrozen(m)) {\n m._isValid = isNowValid;\n } else {\n return isNowValid;\n }\n }\n\n return m._isValid;\n }\n\n function createInvalid(flags) {\n var m = createUTC(NaN);\n\n if (flags != null) {\n extend(getParsingFlags(m), flags);\n } else {\n getParsingFlags(m).userInvalidated = true;\n }\n\n return m;\n } // Plugins that add properties should also add the key here (null value),\n // so we can properly clone ourselves.\n\n\n var momentProperties = hooks.momentProperties = [];\n\n function copyConfig(to, from) {\n var i, prop, val;\n\n if (!isUndefined(from._isAMomentObject)) {\n to._isAMomentObject = from._isAMomentObject;\n }\n\n if (!isUndefined(from._i)) {\n to._i = from._i;\n }\n\n if (!isUndefined(from._f)) {\n to._f = from._f;\n }\n\n if (!isUndefined(from._l)) {\n to._l = from._l;\n }\n\n if (!isUndefined(from._strict)) {\n to._strict = from._strict;\n }\n\n if (!isUndefined(from._tzm)) {\n to._tzm = from._tzm;\n }\n\n if (!isUndefined(from._isUTC)) {\n to._isUTC = from._isUTC;\n }\n\n if (!isUndefined(from._offset)) {\n to._offset = from._offset;\n }\n\n if (!isUndefined(from._pf)) {\n to._pf = getParsingFlags(from);\n }\n\n if (!isUndefined(from._locale)) {\n to._locale = from._locale;\n }\n\n if (momentProperties.length > 0) {\n for (i = 0; i < momentProperties.length; i++) {\n prop = momentProperties[i];\n val = from[prop];\n\n if (!isUndefined(val)) {\n to[prop] = val;\n }\n }\n }\n\n return to;\n }\n\n var updateInProgress = false; // Moment prototype object\n\n function Moment(config) {\n copyConfig(this, config);\n this._d = new Date(config._d != null ? config._d.getTime() : NaN);\n\n if (!this.isValid()) {\n this._d = new Date(NaN);\n } // Prevent infinite loop in case updateOffset creates new moment\n // objects.\n\n\n if (updateInProgress === false) {\n updateInProgress = true;\n hooks.updateOffset(this);\n updateInProgress = false;\n }\n }\n\n function isMoment(obj) {\n return obj instanceof Moment || obj != null && obj._isAMomentObject != null;\n }\n\n function absFloor(number) {\n if (number < 0) {\n // -0 -> 0\n return Math.ceil(number) || 0;\n } else {\n return Math.floor(number);\n }\n }\n\n function toInt(argumentForCoercion) {\n var coercedNumber = +argumentForCoercion,\n value = 0;\n\n if (coercedNumber !== 0 && isFinite(coercedNumber)) {\n value = absFloor(coercedNumber);\n }\n\n return value;\n } // compare two arrays, return the number of differences\n\n\n function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n\n for (i = 0; i < len; i++) {\n if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) {\n diffs++;\n }\n }\n\n return diffs + lengthDiff;\n }\n\n function warn(msg) {\n if (hooks.suppressDeprecationWarnings === false && typeof console !== 'undefined' && console.warn) {\n console.warn('Deprecation warning: ' + msg);\n }\n }\n\n function deprecate(msg, fn) {\n var firstTime = true;\n return extend(function () {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(null, msg);\n }\n\n if (firstTime) {\n var args = [];\n var arg;\n\n for (var i = 0; i < arguments.length; i++) {\n arg = '';\n\n if (typeof arguments[i] === 'object') {\n arg += '\\n[' + i + '] ';\n\n for (var key in arguments[0]) {\n arg += key + ': ' + arguments[0][key] + ', ';\n }\n\n arg = arg.slice(0, -2); // Remove trailing comma and space\n } else {\n arg = arguments[i];\n }\n\n args.push(arg);\n }\n\n warn(msg + '\\nArguments: ' + Array.prototype.slice.call(args).join('') + '\\n' + new Error().stack);\n firstTime = false;\n }\n\n return fn.apply(this, arguments);\n }, fn);\n }\n\n var deprecations = {};\n\n function deprecateSimple(name, msg) {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(name, msg);\n }\n\n if (!deprecations[name]) {\n warn(msg);\n deprecations[name] = true;\n }\n }\n\n hooks.suppressDeprecationWarnings = false;\n hooks.deprecationHandler = null;\n\n function isFunction(input) {\n return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';\n }\n\n function set(config) {\n var prop, i;\n\n for (i in config) {\n prop = config[i];\n\n if (isFunction(prop)) {\n this[i] = prop;\n } else {\n this['_' + i] = prop;\n }\n }\n\n this._config = config; // Lenient ordinal parsing accepts just a number in addition to\n // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n\n this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + '|' + /\\d{1,2}/.source);\n }\n\n function mergeConfigs(parentConfig, childConfig) {\n var res = extend({}, parentConfig),\n prop;\n\n for (prop in childConfig) {\n if (hasOwnProp(childConfig, prop)) {\n if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {\n res[prop] = {};\n extend(res[prop], parentConfig[prop]);\n extend(res[prop], childConfig[prop]);\n } else if (childConfig[prop] != null) {\n res[prop] = childConfig[prop];\n } else {\n delete res[prop];\n }\n }\n }\n\n for (prop in parentConfig) {\n if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject(parentConfig[prop])) {\n // make sure changes to properties don't modify parent config\n res[prop] = extend({}, res[prop]);\n }\n }\n\n return res;\n }\n\n function Locale(config) {\n if (config != null) {\n this.set(config);\n }\n }\n\n var keys;\n\n if (Object.keys) {\n keys = Object.keys;\n } else {\n keys = function keys(obj) {\n var i,\n res = [];\n\n for (i in obj) {\n if (hasOwnProp(obj, i)) {\n res.push(i);\n }\n }\n\n return res;\n };\n }\n\n var defaultCalendar = {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L'\n };\n\n function calendar(key, mom, now) {\n var output = this._calendar[key] || this._calendar['sameElse'];\n return isFunction(output) ? output.call(mom, now) : output;\n }\n\n var defaultLongDateFormat = {\n LTS: 'h:mm:ss A',\n LT: 'h:mm A',\n L: 'MM/DD/YYYY',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY h:mm A',\n LLLL: 'dddd, MMMM D, YYYY h:mm A'\n };\n\n function longDateFormat(key) {\n var format = this._longDateFormat[key],\n formatUpper = this._longDateFormat[key.toUpperCase()];\n\n if (format || !formatUpper) {\n return format;\n }\n\n this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {\n return val.slice(1);\n });\n return this._longDateFormat[key];\n }\n\n var defaultInvalidDate = 'Invalid date';\n\n function invalidDate() {\n return this._invalidDate;\n }\n\n var defaultOrdinal = '%d';\n var defaultDayOfMonthOrdinalParse = /\\d{1,2}/;\n\n function ordinal(number) {\n return this._ordinal.replace('%d', number);\n }\n\n var defaultRelativeTime = {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years'\n };\n\n function relativeTime(number, withoutSuffix, string, isFuture) {\n var output = this._relativeTime[string];\n return isFunction(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);\n }\n\n function pastFuture(diff, output) {\n var format = this._relativeTime[diff > 0 ? 'future' : 'past'];\n return isFunction(format) ? format(output) : format.replace(/%s/i, output);\n }\n\n var aliases = {};\n\n function addUnitAlias(unit, shorthand) {\n var lowerCase = unit.toLowerCase();\n aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;\n }\n\n function normalizeUnits(units) {\n return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;\n }\n\n function normalizeObjectUnits(inputObject) {\n var normalizedInput = {},\n normalizedProp,\n prop;\n\n for (prop in inputObject) {\n if (hasOwnProp(inputObject, prop)) {\n normalizedProp = normalizeUnits(prop);\n\n if (normalizedProp) {\n normalizedInput[normalizedProp] = inputObject[prop];\n }\n }\n }\n\n return normalizedInput;\n }\n\n var priorities = {};\n\n function addUnitPriority(unit, priority) {\n priorities[unit] = priority;\n }\n\n function getPrioritizedUnits(unitsObj) {\n var units = [];\n\n for (var u in unitsObj) {\n units.push({\n unit: u,\n priority: priorities[u]\n });\n }\n\n units.sort(function (a, b) {\n return a.priority - b.priority;\n });\n return units;\n }\n\n function zeroFill(number, targetLength, forceSign) {\n var absNumber = '' + Math.abs(number),\n zerosToFill = targetLength - absNumber.length,\n sign = number >= 0;\n return (sign ? forceSign ? '+' : '' : '-') + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;\n }\n\n var formattingTokens = /(\\[[^\\[]*\\])|(\\\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;\n var localFormattingTokens = /(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g;\n var formatFunctions = {};\n var formatTokenFunctions = {}; // token: 'M'\n // padded: ['MM', 2]\n // ordinal: 'Mo'\n // callback: function () { this.month() + 1 }\n\n function addFormatToken(token, padded, ordinal, callback) {\n var func = callback;\n\n if (typeof callback === 'string') {\n func = function func() {\n return this[callback]();\n };\n }\n\n if (token) {\n formatTokenFunctions[token] = func;\n }\n\n if (padded) {\n formatTokenFunctions[padded[0]] = function () {\n return zeroFill(func.apply(this, arguments), padded[1], padded[2]);\n };\n }\n\n if (ordinal) {\n formatTokenFunctions[ordinal] = function () {\n return this.localeData().ordinal(func.apply(this, arguments), token);\n };\n }\n }\n\n function removeFormattingTokens(input) {\n if (input.match(/\\[[\\s\\S]/)) {\n return input.replace(/^\\[|\\]$/g, '');\n }\n\n return input.replace(/\\\\/g, '');\n }\n\n function makeFormatFunction(format) {\n var array = format.match(formattingTokens),\n i,\n length;\n\n for (i = 0, length = array.length; i < length; i++) {\n if (formatTokenFunctions[array[i]]) {\n array[i] = formatTokenFunctions[array[i]];\n } else {\n array[i] = removeFormattingTokens(array[i]);\n }\n }\n\n return function (mom) {\n var output = '',\n i;\n\n for (i = 0; i < length; i++) {\n output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];\n }\n\n return output;\n };\n } // format date using native date object\n\n\n function formatMoment(m, format) {\n if (!m.isValid()) {\n return m.localeData().invalidDate();\n }\n\n format = expandFormat(format, m.localeData());\n formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);\n return formatFunctions[format](m);\n }\n\n function expandFormat(format, locale) {\n var i = 5;\n\n function replaceLongDateFormatTokens(input) {\n return locale.longDateFormat(input) || input;\n }\n\n localFormattingTokens.lastIndex = 0;\n\n while (i >= 0 && localFormattingTokens.test(format)) {\n format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);\n localFormattingTokens.lastIndex = 0;\n i -= 1;\n }\n\n return format;\n }\n\n var match1 = /\\d/; // 0 - 9\n\n var match2 = /\\d\\d/; // 00 - 99\n\n var match3 = /\\d{3}/; // 000 - 999\n\n var match4 = /\\d{4}/; // 0000 - 9999\n\n var match6 = /[+-]?\\d{6}/; // -999999 - 999999\n\n var match1to2 = /\\d\\d?/; // 0 - 99\n\n var match3to4 = /\\d\\d\\d\\d?/; // 999 - 9999\n\n var match5to6 = /\\d\\d\\d\\d\\d\\d?/; // 99999 - 999999\n\n var match1to3 = /\\d{1,3}/; // 0 - 999\n\n var match1to4 = /\\d{1,4}/; // 0 - 9999\n\n var match1to6 = /[+-]?\\d{1,6}/; // -999999 - 999999\n\n var matchUnsigned = /\\d+/; // 0 - inf\n\n var matchSigned = /[+-]?\\d+/; // -inf - inf\n\n var matchOffset = /Z|[+-]\\d\\d:?\\d\\d/gi; // +00:00 -00:00 +0000 -0000 or Z\n\n var matchShortOffset = /Z|[+-]\\d\\d(?::?\\d\\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z\n\n var matchTimestamp = /[+-]?\\d+(\\.\\d{1,3})?/; // 123456789 123456789.123\n // any word (or two) characters or numbers including two/three word month in arabic.\n // includes scottish gaelic two word and hyphenated months\n\n var matchWord = /[0-9]{0,256}['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFF07\\uFF10-\\uFFEF]{1,256}|[\\u0600-\\u06FF\\/]{1,256}(\\s*?[\\u0600-\\u06FF]{1,256}){1,2}/i;\n var regexes = {};\n\n function addRegexToken(token, regex, strictRegex) {\n regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {\n return isStrict && strictRegex ? strictRegex : regex;\n };\n }\n\n function getParseRegexForToken(token, config) {\n if (!hasOwnProp(regexes, token)) {\n return new RegExp(unescapeFormat(token));\n }\n\n return regexes[token](config._strict, config._locale);\n } // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript\n\n\n function unescapeFormat(s) {\n return regexEscape(s.replace('\\\\', '').replace(/\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g, function (matched, p1, p2, p3, p4) {\n return p1 || p2 || p3 || p4;\n }));\n }\n\n function regexEscape(s) {\n return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n }\n\n var tokens = {};\n\n function addParseToken(token, callback) {\n var i,\n func = callback;\n\n if (typeof token === 'string') {\n token = [token];\n }\n\n if (isNumber(callback)) {\n func = function func(input, array) {\n array[callback] = toInt(input);\n };\n }\n\n for (i = 0; i < token.length; i++) {\n tokens[token[i]] = func;\n }\n }\n\n function addWeekParseToken(token, callback) {\n addParseToken(token, function (input, array, config, token) {\n config._w = config._w || {};\n callback(input, config._w, config, token);\n });\n }\n\n function addTimeToArrayFromToken(token, input, config) {\n if (input != null && hasOwnProp(tokens, token)) {\n tokens[token](input, config._a, config, token);\n }\n }\n\n var YEAR = 0;\n var MONTH = 1;\n var DATE = 2;\n var HOUR = 3;\n var MINUTE = 4;\n var SECOND = 5;\n var MILLISECOND = 6;\n var WEEK = 7;\n var WEEKDAY = 8; // FORMATTING\n\n addFormatToken('Y', 0, 0, function () {\n var y = this.year();\n return y <= 9999 ? '' + y : '+' + y;\n });\n addFormatToken(0, ['YY', 2], 0, function () {\n return this.year() % 100;\n });\n addFormatToken(0, ['YYYY', 4], 0, 'year');\n addFormatToken(0, ['YYYYY', 5], 0, 'year');\n addFormatToken(0, ['YYYYYY', 6, true], 0, 'year'); // ALIASES\n\n addUnitAlias('year', 'y'); // PRIORITIES\n\n addUnitPriority('year', 1); // PARSING\n\n addRegexToken('Y', matchSigned);\n addRegexToken('YY', match1to2, match2);\n addRegexToken('YYYY', match1to4, match4);\n addRegexToken('YYYYY', match1to6, match6);\n addRegexToken('YYYYYY', match1to6, match6);\n addParseToken(['YYYYY', 'YYYYYY'], YEAR);\n addParseToken('YYYY', function (input, array) {\n array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);\n });\n addParseToken('YY', function (input, array) {\n array[YEAR] = hooks.parseTwoDigitYear(input);\n });\n addParseToken('Y', function (input, array) {\n array[YEAR] = parseInt(input, 10);\n }); // HELPERS\n\n function daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n }\n\n function isLeapYear(year) {\n return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;\n } // HOOKS\n\n\n hooks.parseTwoDigitYear = function (input) {\n return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);\n }; // MOMENTS\n\n\n var getSetYear = makeGetSet('FullYear', true);\n\n function getIsLeapYear() {\n return isLeapYear(this.year());\n }\n\n function makeGetSet(unit, keepTime) {\n return function (value) {\n if (value != null) {\n set$1(this, unit, value);\n hooks.updateOffset(this, keepTime);\n return this;\n } else {\n return get(this, unit);\n }\n };\n }\n\n function get(mom, unit) {\n return mom.isValid() ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;\n }\n\n function set$1(mom, unit, value) {\n if (mom.isValid() && !isNaN(value)) {\n if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {\n mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month()));\n } else {\n mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);\n }\n }\n } // MOMENTS\n\n\n function stringGet(units) {\n units = normalizeUnits(units);\n\n if (isFunction(this[units])) {\n return this[units]();\n }\n\n return this;\n }\n\n function stringSet(units, value) {\n if (typeof units === 'object') {\n units = normalizeObjectUnits(units);\n var prioritized = getPrioritizedUnits(units);\n\n for (var i = 0; i < prioritized.length; i++) {\n this[prioritized[i].unit](units[prioritized[i].unit]);\n }\n } else {\n units = normalizeUnits(units);\n\n if (isFunction(this[units])) {\n return this[units](value);\n }\n }\n\n return this;\n }\n\n function mod(n, x) {\n return (n % x + x) % x;\n }\n\n var indexOf;\n\n if (Array.prototype.indexOf) {\n indexOf = Array.prototype.indexOf;\n } else {\n indexOf = function indexOf(o) {\n // I know\n var i;\n\n for (i = 0; i < this.length; ++i) {\n if (this[i] === o) {\n return i;\n }\n }\n\n return -1;\n };\n }\n\n function daysInMonth(year, month) {\n if (isNaN(year) || isNaN(month)) {\n return NaN;\n }\n\n var modMonth = mod(month, 12);\n year += (month - modMonth) / 12;\n return modMonth === 1 ? isLeapYear(year) ? 29 : 28 : 31 - modMonth % 7 % 2;\n } // FORMATTING\n\n\n addFormatToken('M', ['MM', 2], 'Mo', function () {\n return this.month() + 1;\n });\n addFormatToken('MMM', 0, 0, function (format) {\n return this.localeData().monthsShort(this, format);\n });\n addFormatToken('MMMM', 0, 0, function (format) {\n return this.localeData().months(this, format);\n }); // ALIASES\n\n addUnitAlias('month', 'M'); // PRIORITY\n\n addUnitPriority('month', 8); // PARSING\n\n addRegexToken('M', match1to2);\n addRegexToken('MM', match1to2, match2);\n addRegexToken('MMM', function (isStrict, locale) {\n return locale.monthsShortRegex(isStrict);\n });\n addRegexToken('MMMM', function (isStrict, locale) {\n return locale.monthsRegex(isStrict);\n });\n addParseToken(['M', 'MM'], function (input, array) {\n array[MONTH] = toInt(input) - 1;\n });\n addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {\n var month = config._locale.monthsParse(input, token, config._strict); // if we didn't find a month name, mark the date as invalid.\n\n\n if (month != null) {\n array[MONTH] = month;\n } else {\n getParsingFlags(config).invalidMonth = input;\n }\n }); // LOCALES\n\n var MONTHS_IN_FORMAT = /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/;\n var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');\n\n function localeMonths(m, format) {\n if (!m) {\n return isArray(this._months) ? this._months : this._months['standalone'];\n }\n\n return isArray(this._months) ? this._months[m.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];\n }\n\n var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');\n\n function localeMonthsShort(m, format) {\n if (!m) {\n return isArray(this._monthsShort) ? this._monthsShort : this._monthsShort['standalone'];\n }\n\n return isArray(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];\n }\n\n function handleStrictParse(monthName, format, strict) {\n var i,\n ii,\n mom,\n llc = monthName.toLocaleLowerCase();\n\n if (!this._monthsParse) {\n // this is not used\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n\n for (i = 0; i < 12; ++i) {\n mom = createUTC([2000, i]);\n this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();\n this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n\n if (ii !== -1) {\n return ii;\n }\n\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n\n if (ii !== -1) {\n return ii;\n }\n\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n }\n\n function localeMonthsParse(monthName, format, strict) {\n var i, mom, regex;\n\n if (this._monthsParseExact) {\n return handleStrictParse.call(this, monthName, format, strict);\n }\n\n if (!this._monthsParse) {\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n } // TODO: add sorting\n // Sorting makes sure if one month (or abbr) is a prefix of another\n // see sorting in computeMonthsParse\n\n\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n\n if (strict && !this._longMonthsParse[i]) {\n this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');\n this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');\n }\n\n if (!strict && !this._monthsParse[i]) {\n regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');\n this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');\n } // test the regex\n\n\n if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {\n return i;\n } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {\n return i;\n } else if (!strict && this._monthsParse[i].test(monthName)) {\n return i;\n }\n }\n } // MOMENTS\n\n\n function setMonth(mom, value) {\n var dayOfMonth;\n\n if (!mom.isValid()) {\n // No op\n return mom;\n }\n\n if (typeof value === 'string') {\n if (/^\\d+$/.test(value)) {\n value = toInt(value);\n } else {\n value = mom.localeData().monthsParse(value); // TODO: Another silent failure?\n\n if (!isNumber(value)) {\n return mom;\n }\n }\n }\n\n dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));\n\n mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);\n\n return mom;\n }\n\n function getSetMonth(value) {\n if (value != null) {\n setMonth(this, value);\n hooks.updateOffset(this, true);\n return this;\n } else {\n return get(this, 'Month');\n }\n }\n\n function getDaysInMonth() {\n return daysInMonth(this.year(), this.month());\n }\n\n var defaultMonthsShortRegex = matchWord;\n\n function monthsShortRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n\n if (isStrict) {\n return this._monthsShortStrictRegex;\n } else {\n return this._monthsShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsShortRegex')) {\n this._monthsShortRegex = defaultMonthsShortRegex;\n }\n\n return this._monthsShortStrictRegex && isStrict ? this._monthsShortStrictRegex : this._monthsShortRegex;\n }\n }\n\n var defaultMonthsRegex = matchWord;\n\n function monthsRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n\n if (isStrict) {\n return this._monthsStrictRegex;\n } else {\n return this._monthsRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsRegex')) {\n this._monthsRegex = defaultMonthsRegex;\n }\n\n return this._monthsStrictRegex && isStrict ? this._monthsStrictRegex : this._monthsRegex;\n }\n }\n\n function computeMonthsParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var shortPieces = [],\n longPieces = [],\n mixedPieces = [],\n i,\n mom;\n\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n shortPieces.push(this.monthsShort(mom, ''));\n longPieces.push(this.months(mom, ''));\n mixedPieces.push(this.months(mom, ''));\n mixedPieces.push(this.monthsShort(mom, ''));\n } // Sorting makes sure if one month (or abbr) is a prefix of another it\n // will match the longer piece.\n\n\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n\n for (i = 0; i < 12; i++) {\n shortPieces[i] = regexEscape(shortPieces[i]);\n longPieces[i] = regexEscape(longPieces[i]);\n }\n\n for (i = 0; i < 24; i++) {\n mixedPieces[i] = regexEscape(mixedPieces[i]);\n }\n\n this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._monthsShortRegex = this._monthsRegex;\n this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');\n this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');\n }\n\n function createDate(y, m, d, h, M, s, ms) {\n // can't just apply() to create a date:\n // https://stackoverflow.com/q/181348\n var date; // the date constructor remaps years 0-99 to 1900-1999\n\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n date = new Date(y + 400, m, d, h, M, s, ms);\n\n if (isFinite(date.getFullYear())) {\n date.setFullYear(y);\n }\n } else {\n date = new Date(y, m, d, h, M, s, ms);\n }\n\n return date;\n }\n\n function createUTCDate(y) {\n var date; // the Date.UTC function remaps years 0-99 to 1900-1999\n\n if (y < 100 && y >= 0) {\n var args = Array.prototype.slice.call(arguments); // preserve leap years using a full 400 year cycle, then reset\n\n args[0] = y + 400;\n date = new Date(Date.UTC.apply(null, args));\n\n if (isFinite(date.getUTCFullYear())) {\n date.setUTCFullYear(y);\n }\n } else {\n date = new Date(Date.UTC.apply(null, arguments));\n }\n\n return date;\n } // start-of-first-week - start-of-year\n\n\n function firstWeekOffset(year, dow, doy) {\n var // first-week day -- which january is always in the first week (4 for iso, 1 for other)\n fwd = 7 + dow - doy,\n // first-week day local weekday -- which local weekday is fwd\n fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;\n return -fwdlw + fwd - 1;\n } // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday\n\n\n function dayOfYearFromWeeks(year, week, weekday, dow, doy) {\n var localWeekday = (7 + weekday - dow) % 7,\n weekOffset = firstWeekOffset(year, dow, doy),\n dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,\n resYear,\n resDayOfYear;\n\n if (dayOfYear <= 0) {\n resYear = year - 1;\n resDayOfYear = daysInYear(resYear) + dayOfYear;\n } else if (dayOfYear > daysInYear(year)) {\n resYear = year + 1;\n resDayOfYear = dayOfYear - daysInYear(year);\n } else {\n resYear = year;\n resDayOfYear = dayOfYear;\n }\n\n return {\n year: resYear,\n dayOfYear: resDayOfYear\n };\n }\n\n function weekOfYear(mom, dow, doy) {\n var weekOffset = firstWeekOffset(mom.year(), dow, doy),\n week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,\n resWeek,\n resYear;\n\n if (week < 1) {\n resYear = mom.year() - 1;\n resWeek = week + weeksInYear(resYear, dow, doy);\n } else if (week > weeksInYear(mom.year(), dow, doy)) {\n resWeek = week - weeksInYear(mom.year(), dow, doy);\n resYear = mom.year() + 1;\n } else {\n resYear = mom.year();\n resWeek = week;\n }\n\n return {\n week: resWeek,\n year: resYear\n };\n }\n\n function weeksInYear(year, dow, doy) {\n var weekOffset = firstWeekOffset(year, dow, doy),\n weekOffsetNext = firstWeekOffset(year + 1, dow, doy);\n return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;\n } // FORMATTING\n\n\n addFormatToken('w', ['ww', 2], 'wo', 'week');\n addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek'); // ALIASES\n\n addUnitAlias('week', 'w');\n addUnitAlias('isoWeek', 'W'); // PRIORITIES\n\n addUnitPriority('week', 5);\n addUnitPriority('isoWeek', 5); // PARSING\n\n addRegexToken('w', match1to2);\n addRegexToken('ww', match1to2, match2);\n addRegexToken('W', match1to2);\n addRegexToken('WW', match1to2, match2);\n addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {\n week[token.substr(0, 1)] = toInt(input);\n }); // HELPERS\n // LOCALES\n\n function localeWeek(mom) {\n return weekOfYear(mom, this._week.dow, this._week.doy).week;\n }\n\n var defaultLocaleWeek = {\n dow: 0,\n // Sunday is the first day of the week.\n doy: 6 // The week that contains Jan 6th is the first week of the year.\n\n };\n\n function localeFirstDayOfWeek() {\n return this._week.dow;\n }\n\n function localeFirstDayOfYear() {\n return this._week.doy;\n } // MOMENTS\n\n\n function getSetWeek(input) {\n var week = this.localeData().week(this);\n return input == null ? week : this.add((input - week) * 7, 'd');\n }\n\n function getSetISOWeek(input) {\n var week = weekOfYear(this, 1, 4).week;\n return input == null ? week : this.add((input - week) * 7, 'd');\n } // FORMATTING\n\n\n addFormatToken('d', 0, 'do', 'day');\n addFormatToken('dd', 0, 0, function (format) {\n return this.localeData().weekdaysMin(this, format);\n });\n addFormatToken('ddd', 0, 0, function (format) {\n return this.localeData().weekdaysShort(this, format);\n });\n addFormatToken('dddd', 0, 0, function (format) {\n return this.localeData().weekdays(this, format);\n });\n addFormatToken('e', 0, 0, 'weekday');\n addFormatToken('E', 0, 0, 'isoWeekday'); // ALIASES\n\n addUnitAlias('day', 'd');\n addUnitAlias('weekday', 'e');\n addUnitAlias('isoWeekday', 'E'); // PRIORITY\n\n addUnitPriority('day', 11);\n addUnitPriority('weekday', 11);\n addUnitPriority('isoWeekday', 11); // PARSING\n\n addRegexToken('d', match1to2);\n addRegexToken('e', match1to2);\n addRegexToken('E', match1to2);\n addRegexToken('dd', function (isStrict, locale) {\n return locale.weekdaysMinRegex(isStrict);\n });\n addRegexToken('ddd', function (isStrict, locale) {\n return locale.weekdaysShortRegex(isStrict);\n });\n addRegexToken('dddd', function (isStrict, locale) {\n return locale.weekdaysRegex(isStrict);\n });\n addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {\n var weekday = config._locale.weekdaysParse(input, token, config._strict); // if we didn't get a weekday name, mark the date as invalid\n\n\n if (weekday != null) {\n week.d = weekday;\n } else {\n getParsingFlags(config).invalidWeekday = input;\n }\n });\n addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {\n week[token] = toInt(input);\n }); // HELPERS\n\n function parseWeekday(input, locale) {\n if (typeof input !== 'string') {\n return input;\n }\n\n if (!isNaN(input)) {\n return parseInt(input, 10);\n }\n\n input = locale.weekdaysParse(input);\n\n if (typeof input === 'number') {\n return input;\n }\n\n return null;\n }\n\n function parseIsoWeekday(input, locale) {\n if (typeof input === 'string') {\n return locale.weekdaysParse(input) % 7 || 7;\n }\n\n return isNaN(input) ? null : input;\n } // LOCALES\n\n\n function shiftWeekdays(ws, n) {\n return ws.slice(n, 7).concat(ws.slice(0, n));\n }\n\n var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');\n\n function localeWeekdays(m, format) {\n var weekdays = isArray(this._weekdays) ? this._weekdays : this._weekdays[m && m !== true && this._weekdays.isFormat.test(format) ? 'format' : 'standalone'];\n return m === true ? shiftWeekdays(weekdays, this._week.dow) : m ? weekdays[m.day()] : weekdays;\n }\n\n var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');\n\n function localeWeekdaysShort(m) {\n return m === true ? shiftWeekdays(this._weekdaysShort, this._week.dow) : m ? this._weekdaysShort[m.day()] : this._weekdaysShort;\n }\n\n var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');\n\n function localeWeekdaysMin(m) {\n return m === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m ? this._weekdaysMin[m.day()] : this._weekdaysMin;\n }\n\n function handleStrictParse$1(weekdayName, format, strict) {\n var i,\n ii,\n mom,\n llc = weekdayName.toLocaleLowerCase();\n\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._minWeekdaysParse = [];\n\n for (i = 0; i < 7; ++i) {\n mom = createUTC([2000, 1]).day(i);\n this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();\n this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();\n this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n\n if (ii !== -1) {\n return ii;\n }\n\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n\n if (ii !== -1) {\n return ii;\n }\n\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n\n if (ii !== -1) {\n return ii;\n }\n\n ii = indexOf.call(this._weekdaysParse, llc);\n\n if (ii !== -1) {\n return ii;\n }\n\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n\n if (ii !== -1) {\n return ii;\n }\n\n ii = indexOf.call(this._weekdaysParse, llc);\n\n if (ii !== -1) {\n return ii;\n }\n\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n }\n\n function localeWeekdaysParse(weekdayName, format, strict) {\n var i, mom, regex;\n\n if (this._weekdaysParseExact) {\n return handleStrictParse$1.call(this, weekdayName, format, strict);\n }\n\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._minWeekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._fullWeekdaysParse = [];\n }\n\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, 1]).day(i);\n\n if (strict && !this._fullWeekdaysParse[i]) {\n this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\\\\.?') + '$', 'i');\n this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\\\\.?') + '$', 'i');\n this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\\\\.?') + '$', 'i');\n }\n\n if (!this._weekdaysParse[i]) {\n regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');\n this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');\n } // test the regex\n\n\n if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {\n return i;\n } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {\n return i;\n } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {\n return i;\n } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {\n return i;\n }\n }\n } // MOMENTS\n\n\n function getSetDayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n\n var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();\n\n if (input != null) {\n input = parseWeekday(input, this.localeData());\n return this.add(input - day, 'd');\n } else {\n return day;\n }\n }\n\n function getSetLocaleDayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n\n var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;\n return input == null ? weekday : this.add(input - weekday, 'd');\n }\n\n function getSetISODayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n } // behaves the same as moment#day except\n // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)\n // as a setter, sunday should belong to the previous week.\n\n\n if (input != null) {\n var weekday = parseIsoWeekday(input, this.localeData());\n return this.day(this.day() % 7 ? weekday : weekday - 7);\n } else {\n return this.day() || 7;\n }\n }\n\n var defaultWeekdaysRegex = matchWord;\n\n function weekdaysRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n\n if (isStrict) {\n return this._weekdaysStrictRegex;\n } else {\n return this._weekdaysRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n this._weekdaysRegex = defaultWeekdaysRegex;\n }\n\n return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex;\n }\n }\n\n var defaultWeekdaysShortRegex = matchWord;\n\n function weekdaysShortRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n\n if (isStrict) {\n return this._weekdaysShortStrictRegex;\n } else {\n return this._weekdaysShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysShortRegex')) {\n this._weekdaysShortRegex = defaultWeekdaysShortRegex;\n }\n\n return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex;\n }\n }\n\n var defaultWeekdaysMinRegex = matchWord;\n\n function weekdaysMinRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n\n if (isStrict) {\n return this._weekdaysMinStrictRegex;\n } else {\n return this._weekdaysMinRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysMinRegex')) {\n this._weekdaysMinRegex = defaultWeekdaysMinRegex;\n }\n\n return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex;\n }\n }\n\n function computeWeekdaysParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var minPieces = [],\n shortPieces = [],\n longPieces = [],\n mixedPieces = [],\n i,\n mom,\n minp,\n shortp,\n longp;\n\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, 1]).day(i);\n minp = this.weekdaysMin(mom, '');\n shortp = this.weekdaysShort(mom, '');\n longp = this.weekdays(mom, '');\n minPieces.push(minp);\n shortPieces.push(shortp);\n longPieces.push(longp);\n mixedPieces.push(minp);\n mixedPieces.push(shortp);\n mixedPieces.push(longp);\n } // Sorting makes sure if one weekday (or abbr) is a prefix of another it\n // will match the longer piece.\n\n\n minPieces.sort(cmpLenRev);\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n\n for (i = 0; i < 7; i++) {\n shortPieces[i] = regexEscape(shortPieces[i]);\n longPieces[i] = regexEscape(longPieces[i]);\n mixedPieces[i] = regexEscape(mixedPieces[i]);\n }\n\n this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._weekdaysShortRegex = this._weekdaysRegex;\n this._weekdaysMinRegex = this._weekdaysRegex;\n this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');\n this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');\n this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');\n } // FORMATTING\n\n\n function hFormat() {\n return this.hours() % 12 || 12;\n }\n\n function kFormat() {\n return this.hours() || 24;\n }\n\n addFormatToken('H', ['HH', 2], 0, 'hour');\n addFormatToken('h', ['hh', 2], 0, hFormat);\n addFormatToken('k', ['kk', 2], 0, kFormat);\n addFormatToken('hmm', 0, 0, function () {\n return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);\n });\n addFormatToken('hmmss', 0, 0, function () {\n return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);\n });\n addFormatToken('Hmm', 0, 0, function () {\n return '' + this.hours() + zeroFill(this.minutes(), 2);\n });\n addFormatToken('Hmmss', 0, 0, function () {\n return '' + this.hours() + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);\n });\n\n function meridiem(token, lowercase) {\n addFormatToken(token, 0, 0, function () {\n return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);\n });\n }\n\n meridiem('a', true);\n meridiem('A', false); // ALIASES\n\n addUnitAlias('hour', 'h'); // PRIORITY\n\n addUnitPriority('hour', 13); // PARSING\n\n function matchMeridiem(isStrict, locale) {\n return locale._meridiemParse;\n }\n\n addRegexToken('a', matchMeridiem);\n addRegexToken('A', matchMeridiem);\n addRegexToken('H', match1to2);\n addRegexToken('h', match1to2);\n addRegexToken('k', match1to2);\n addRegexToken('HH', match1to2, match2);\n addRegexToken('hh', match1to2, match2);\n addRegexToken('kk', match1to2, match2);\n addRegexToken('hmm', match3to4);\n addRegexToken('hmmss', match5to6);\n addRegexToken('Hmm', match3to4);\n addRegexToken('Hmmss', match5to6);\n addParseToken(['H', 'HH'], HOUR);\n addParseToken(['k', 'kk'], function (input, array, config) {\n var kInput = toInt(input);\n array[HOUR] = kInput === 24 ? 0 : kInput;\n });\n addParseToken(['a', 'A'], function (input, array, config) {\n config._isPm = config._locale.isPM(input);\n config._meridiem = input;\n });\n addParseToken(['h', 'hh'], function (input, array, config) {\n array[HOUR] = toInt(input);\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('hmmss', function (input, array, config) {\n var pos1 = input.length - 4;\n var pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('Hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n });\n addParseToken('Hmmss', function (input, array, config) {\n var pos1 = input.length - 4;\n var pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n }); // LOCALES\n\n function localeIsPM(input) {\n // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays\n // Using charAt should be more compatible.\n return (input + '').toLowerCase().charAt(0) === 'p';\n }\n\n var defaultLocaleMeridiemParse = /[ap]\\.?m?\\.?/i;\n\n function localeMeridiem(hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'pm' : 'PM';\n } else {\n return isLower ? 'am' : 'AM';\n }\n } // MOMENTS\n // Setting the hour should keep the time, because the user explicitly\n // specified which hour they want. So trying to maintain the same hour (in\n // a new timezone) makes sense. Adding/subtracting hours does not follow\n // this rule.\n\n\n var getSetHour = makeGetSet('Hours', true);\n var baseConfig = {\n calendar: defaultCalendar,\n longDateFormat: defaultLongDateFormat,\n invalidDate: defaultInvalidDate,\n ordinal: defaultOrdinal,\n dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,\n relativeTime: defaultRelativeTime,\n months: defaultLocaleMonths,\n monthsShort: defaultLocaleMonthsShort,\n week: defaultLocaleWeek,\n weekdays: defaultLocaleWeekdays,\n weekdaysMin: defaultLocaleWeekdaysMin,\n weekdaysShort: defaultLocaleWeekdaysShort,\n meridiemParse: defaultLocaleMeridiemParse\n }; // internal storage for locale config files\n\n var locales = {};\n var localeFamilies = {};\n var globalLocale;\n\n function normalizeLocale(key) {\n return key ? key.toLowerCase().replace('_', '-') : key;\n } // pick the locale from the array\n // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each\n // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root\n\n\n function chooseLocale(names) {\n var i = 0,\n j,\n next,\n locale,\n split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n\n if (locale) {\n return locale;\n }\n\n if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n\n j--;\n }\n\n i++;\n }\n\n return globalLocale;\n }\n\n function loadLocale(name) {\n var oldLocale = null; // TODO: Find a better way to register and load all the locales in Node\n\n if (!locales[name] && typeof module !== 'undefined' && module && module.exports) {\n try {\n oldLocale = globalLocale._abbr;\n var aliasedRequire = require;\n aliasedRequire('./locale/' + name);\n getSetGlobalLocale(oldLocale);\n } catch (e) {}\n }\n\n return locales[name];\n } // This function will load locale and then set the global locale. If\n // no arguments are passed in, it will simply return the current global\n // locale key.\n\n\n function getSetGlobalLocale(key, values) {\n var data;\n\n if (key) {\n if (isUndefined(values)) {\n data = getLocale(key);\n } else {\n data = defineLocale(key, values);\n }\n\n if (data) {\n // moment.duration._locale = moment._locale = data;\n globalLocale = data;\n } else {\n if (typeof console !== 'undefined' && console.warn) {\n //warn user if arguments are passed but the locale could not be set\n console.warn('Locale ' + key + ' not found. Did you forget to load it?');\n }\n }\n }\n\n return globalLocale._abbr;\n }\n\n function defineLocale(name, config) {\n if (config !== null) {\n var locale,\n parentConfig = baseConfig;\n config.abbr = name;\n\n if (locales[name] != null) {\n deprecateSimple('defineLocaleOverride', 'use moment.updateLocale(localeName, config) to change ' + 'an existing locale. moment.defineLocale(localeName, ' + 'config) should only be used for creating a new locale ' + 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');\n parentConfig = locales[name]._config;\n } else if (config.parentLocale != null) {\n if (locales[config.parentLocale] != null) {\n parentConfig = locales[config.parentLocale]._config;\n } else {\n locale = loadLocale(config.parentLocale);\n\n if (locale != null) {\n parentConfig = locale._config;\n } else {\n if (!localeFamilies[config.parentLocale]) {\n localeFamilies[config.parentLocale] = [];\n }\n\n localeFamilies[config.parentLocale].push({\n name: name,\n config: config\n });\n return null;\n }\n }\n }\n\n locales[name] = new Locale(mergeConfigs(parentConfig, config));\n\n if (localeFamilies[name]) {\n localeFamilies[name].forEach(function (x) {\n defineLocale(x.name, x.config);\n });\n } // backwards compat for now: also set the locale\n // make sure we set the locale AFTER all child locales have been\n // created, so we won't end up with the child locale set.\n\n\n getSetGlobalLocale(name);\n return locales[name];\n } else {\n // useful for testing\n delete locales[name];\n return null;\n }\n }\n\n function updateLocale(name, config) {\n if (config != null) {\n var locale,\n tmpLocale,\n parentConfig = baseConfig; // MERGE\n\n tmpLocale = loadLocale(name);\n\n if (tmpLocale != null) {\n parentConfig = tmpLocale._config;\n }\n\n config = mergeConfigs(parentConfig, config);\n locale = new Locale(config);\n locale.parentLocale = locales[name];\n locales[name] = locale; // backwards compat for now: also set the locale\n\n getSetGlobalLocale(name);\n } else {\n // pass null for config to unupdate, useful for tests\n if (locales[name] != null) {\n if (locales[name].parentLocale != null) {\n locales[name] = locales[name].parentLocale;\n } else if (locales[name] != null) {\n delete locales[name];\n }\n }\n }\n\n return locales[name];\n } // returns locale data\n\n\n function getLocale(key) {\n var locale;\n\n if (key && key._locale && key._locale._abbr) {\n key = key._locale._abbr;\n }\n\n if (!key) {\n return globalLocale;\n }\n\n if (!isArray(key)) {\n //short-circuit everything else\n locale = loadLocale(key);\n\n if (locale) {\n return locale;\n }\n\n key = [key];\n }\n\n return chooseLocale(key);\n }\n\n function listLocales() {\n return keys(locales);\n }\n\n function checkOverflow(m) {\n var overflow;\n var a = m._a;\n\n if (a && getParsingFlags(m).overflow === -2) {\n overflow = a[MONTH] < 0 || a[MONTH] > 11 ? MONTH : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE : a[HOUR] < 0 || a[HOUR] > 24 || a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0) ? HOUR : a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE : a[SECOND] < 0 || a[SECOND] > 59 ? SECOND : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND : -1;\n\n if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {\n overflow = DATE;\n }\n\n if (getParsingFlags(m)._overflowWeeks && overflow === -1) {\n overflow = WEEK;\n }\n\n if (getParsingFlags(m)._overflowWeekday && overflow === -1) {\n overflow = WEEKDAY;\n }\n\n getParsingFlags(m).overflow = overflow;\n }\n\n return m;\n } // Pick the first defined of two or three arguments.\n\n\n function defaults(a, b, c) {\n if (a != null) {\n return a;\n }\n\n if (b != null) {\n return b;\n }\n\n return c;\n }\n\n function currentDateArray(config) {\n // hooks is actually the exported moment object\n var nowValue = new Date(hooks.now());\n\n if (config._useUTC) {\n return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];\n }\n\n return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];\n } // convert an array to a date.\n // the array should mirror the parameters below\n // note: all values past the year are optional and will default to the lowest possible value.\n // [year, month, day , hour, minute, second, millisecond]\n\n\n function configFromArray(config) {\n var i,\n date,\n input = [],\n currentDate,\n expectedWeekday,\n yearToUse;\n\n if (config._d) {\n return;\n }\n\n currentDate = currentDateArray(config); //compute day of the year from weeks and weekdays\n\n if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {\n dayOfYearFromWeekInfo(config);\n } //if the day of the year is set, figure out what it is\n\n\n if (config._dayOfYear != null) {\n yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);\n\n if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {\n getParsingFlags(config)._overflowDayOfYear = true;\n }\n\n date = createUTCDate(yearToUse, 0, config._dayOfYear);\n config._a[MONTH] = date.getUTCMonth();\n config._a[DATE] = date.getUTCDate();\n } // Default to current date.\n // * if no year, month, day of month are given, default to today\n // * if day of month is given, default month and year\n // * if month is given, default only year\n // * if year is given, don't default anything\n\n\n for (i = 0; i < 3 && config._a[i] == null; ++i) {\n config._a[i] = input[i] = currentDate[i];\n } // Zero out whatever was not defaulted, including time\n\n\n for (; i < 7; i++) {\n config._a[i] = input[i] = config._a[i] == null ? i === 2 ? 1 : 0 : config._a[i];\n } // Check for 24:00:00.000\n\n\n if (config._a[HOUR] === 24 && config._a[MINUTE] === 0 && config._a[SECOND] === 0 && config._a[MILLISECOND] === 0) {\n config._nextDay = true;\n config._a[HOUR] = 0;\n }\n\n config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);\n expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay(); // Apply timezone offset from input. The actual utcOffset can be changed\n // with parseZone.\n\n if (config._tzm != null) {\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n }\n\n if (config._nextDay) {\n config._a[HOUR] = 24;\n } // check for mismatching day of week\n\n\n if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) {\n getParsingFlags(config).weekdayMismatch = true;\n }\n }\n\n function dayOfYearFromWeekInfo(config) {\n var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow;\n w = config._w;\n\n if (w.GG != null || w.W != null || w.E != null) {\n dow = 1;\n doy = 4; // TODO: We need to take the current isoWeekYear, but that depends on\n // how we interpret now (local, utc, fixed offset). So create\n // a now version of current config (take local/utc/offset flags, and\n // create now).\n\n weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);\n week = defaults(w.W, 1);\n weekday = defaults(w.E, 1);\n\n if (weekday < 1 || weekday > 7) {\n weekdayOverflow = true;\n }\n } else {\n dow = config._locale._week.dow;\n doy = config._locale._week.doy;\n var curWeek = weekOfYear(createLocal(), dow, doy);\n weekYear = defaults(w.gg, config._a[YEAR], curWeek.year); // Default to current week.\n\n week = defaults(w.w, curWeek.week);\n\n if (w.d != null) {\n // weekday -- low day numbers are considered next week\n weekday = w.d;\n\n if (weekday < 0 || weekday > 6) {\n weekdayOverflow = true;\n }\n } else if (w.e != null) {\n // local weekday -- counting starts from beginning of week\n weekday = w.e + dow;\n\n if (w.e < 0 || w.e > 6) {\n weekdayOverflow = true;\n }\n } else {\n // default to beginning of week\n weekday = dow;\n }\n }\n\n if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {\n getParsingFlags(config)._overflowWeeks = true;\n } else if (weekdayOverflow != null) {\n getParsingFlags(config)._overflowWeekday = true;\n } else {\n temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);\n config._a[YEAR] = temp.year;\n config._dayOfYear = temp.dayOfYear;\n }\n } // iso 8601 regex\n // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)\n\n\n var extendedIsoRegex = /^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/;\n var basicIsoRegex = /^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([\\+\\-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/;\n var tzRegex = /Z|[+-]\\d\\d(?::?\\d\\d)?/;\n var isoDates = [['YYYYYY-MM-DD', /[+-]\\d{6}-\\d\\d-\\d\\d/], ['YYYY-MM-DD', /\\d{4}-\\d\\d-\\d\\d/], ['GGGG-[W]WW-E', /\\d{4}-W\\d\\d-\\d/], ['GGGG-[W]WW', /\\d{4}-W\\d\\d/, false], ['YYYY-DDD', /\\d{4}-\\d{3}/], ['YYYY-MM', /\\d{4}-\\d\\d/, false], ['YYYYYYMMDD', /[+-]\\d{10}/], ['YYYYMMDD', /\\d{8}/], // YYYYMM is NOT allowed by the standard\n ['GGGG[W]WWE', /\\d{4}W\\d{3}/], ['GGGG[W]WW', /\\d{4}W\\d{2}/, false], ['YYYYDDD', /\\d{7}/]]; // iso time formats and regexes\n\n var isoTimes = [['HH:mm:ss.SSSS', /\\d\\d:\\d\\d:\\d\\d\\.\\d+/], ['HH:mm:ss,SSSS', /\\d\\d:\\d\\d:\\d\\d,\\d+/], ['HH:mm:ss', /\\d\\d:\\d\\d:\\d\\d/], ['HH:mm', /\\d\\d:\\d\\d/], ['HHmmss.SSSS', /\\d\\d\\d\\d\\d\\d\\.\\d+/], ['HHmmss,SSSS', /\\d\\d\\d\\d\\d\\d,\\d+/], ['HHmmss', /\\d\\d\\d\\d\\d\\d/], ['HHmm', /\\d\\d\\d\\d/], ['HH', /\\d\\d/]];\n var aspNetJsonRegex = /^\\/?Date\\((\\-?\\d+)/i; // date from iso format\n\n function configFromISO(config) {\n var i,\n l,\n string = config._i,\n match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),\n allowTime,\n dateFormat,\n timeFormat,\n tzFormat;\n\n if (match) {\n getParsingFlags(config).iso = true;\n\n for (i = 0, l = isoDates.length; i < l; i++) {\n if (isoDates[i][1].exec(match[1])) {\n dateFormat = isoDates[i][0];\n allowTime = isoDates[i][2] !== false;\n break;\n }\n }\n\n if (dateFormat == null) {\n config._isValid = false;\n return;\n }\n\n if (match[3]) {\n for (i = 0, l = isoTimes.length; i < l; i++) {\n if (isoTimes[i][1].exec(match[3])) {\n // match[2] should be 'T' or space\n timeFormat = (match[2] || ' ') + isoTimes[i][0];\n break;\n }\n }\n\n if (timeFormat == null) {\n config._isValid = false;\n return;\n }\n }\n\n if (!allowTime && timeFormat != null) {\n config._isValid = false;\n return;\n }\n\n if (match[4]) {\n if (tzRegex.exec(match[4])) {\n tzFormat = 'Z';\n } else {\n config._isValid = false;\n return;\n }\n }\n\n config._f = dateFormat + (timeFormat || '') + (tzFormat || '');\n configFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n } // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3\n\n\n var rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/;\n\n function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {\n var result = [untruncateYear(yearStr), defaultLocaleMonthsShort.indexOf(monthStr), parseInt(dayStr, 10), parseInt(hourStr, 10), parseInt(minuteStr, 10)];\n\n if (secondStr) {\n result.push(parseInt(secondStr, 10));\n }\n\n return result;\n }\n\n function untruncateYear(yearStr) {\n var year = parseInt(yearStr, 10);\n\n if (year <= 49) {\n return 2000 + year;\n } else if (year <= 999) {\n return 1900 + year;\n }\n\n return year;\n }\n\n function preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s.replace(/\\([^)]*\\)|[\\n\\t]/g, ' ').replace(/(\\s\\s+)/g, ' ').replace(/^\\s\\s*/, '').replace(/\\s\\s*$/, '');\n }\n\n function checkWeekday(weekdayStr, parsedInput, config) {\n if (weekdayStr) {\n // TODO: Replace the vanilla JS Date object with an indepentent day-of-week check.\n var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),\n weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();\n\n if (weekdayProvided !== weekdayActual) {\n getParsingFlags(config).weekdayMismatch = true;\n config._isValid = false;\n return false;\n }\n }\n\n return true;\n }\n\n var obsOffsets = {\n UT: 0,\n GMT: 0,\n EDT: -4 * 60,\n EST: -5 * 60,\n CDT: -5 * 60,\n CST: -6 * 60,\n MDT: -6 * 60,\n MST: -7 * 60,\n PDT: -7 * 60,\n PST: -8 * 60\n };\n\n function calculateOffset(obsOffset, militaryOffset, numOffset) {\n if (obsOffset) {\n return obsOffsets[obsOffset];\n } else if (militaryOffset) {\n // the only allowed military tz is Z\n return 0;\n } else {\n var hm = parseInt(numOffset, 10);\n var m = hm % 100,\n h = (hm - m) / 100;\n return h * 60 + m;\n }\n } // date and time from ref 2822 format\n\n\n function configFromRFC2822(config) {\n var match = rfc2822.exec(preprocessRFC2822(config._i));\n\n if (match) {\n var parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);\n\n if (!checkWeekday(match[1], parsedArray, config)) {\n return;\n }\n\n config._a = parsedArray;\n config._tzm = calculateOffset(match[8], match[9], match[10]);\n config._d = createUTCDate.apply(null, config._a);\n\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n\n getParsingFlags(config).rfc2822 = true;\n } else {\n config._isValid = false;\n }\n } // date from iso format or fallback\n\n\n function configFromString(config) {\n var matched = aspNetJsonRegex.exec(config._i);\n\n if (matched !== null) {\n config._d = new Date(+matched[1]);\n return;\n }\n\n configFromISO(config);\n\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n }\n\n configFromRFC2822(config);\n\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n } // Final attempt, use Input Fallback\n\n\n hooks.createFromInputFallback(config);\n }\n\n hooks.createFromInputFallback = deprecate('value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' + 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' + 'discouraged and will be removed in an upcoming major release. Please refer to ' + 'http://momentjs.com/guides/#/warnings/js-date/ for more info.', function (config) {\n config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));\n }); // constant that refers to the ISO standard\n\n hooks.ISO_8601 = function () {}; // constant that refers to the RFC 2822 form\n\n\n hooks.RFC_2822 = function () {}; // date from string and format string\n\n\n function configFromStringAndFormat(config) {\n // TODO: Move this to another part of the creation flow to prevent circular deps\n if (config._f === hooks.ISO_8601) {\n configFromISO(config);\n return;\n }\n\n if (config._f === hooks.RFC_2822) {\n configFromRFC2822(config);\n return;\n }\n\n config._a = [];\n getParsingFlags(config).empty = true; // This array is used to make a Date, either with `new Date` or `Date.UTC`\n\n var string = '' + config._i,\n i,\n parsedInput,\n tokens,\n token,\n skipped,\n stringLength = string.length,\n totalParsedInputLength = 0;\n tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];\n\n for (i = 0; i < tokens.length; i++) {\n token = tokens[i];\n parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0]; // console.log('token', token, 'parsedInput', parsedInput,\n // 'regex', getParseRegexForToken(token, config));\n\n if (parsedInput) {\n skipped = string.substr(0, string.indexOf(parsedInput));\n\n if (skipped.length > 0) {\n getParsingFlags(config).unusedInput.push(skipped);\n }\n\n string = string.slice(string.indexOf(parsedInput) + parsedInput.length);\n totalParsedInputLength += parsedInput.length;\n } // don't parse if it's not a known token\n\n\n if (formatTokenFunctions[token]) {\n if (parsedInput) {\n getParsingFlags(config).empty = false;\n } else {\n getParsingFlags(config).unusedTokens.push(token);\n }\n\n addTimeToArrayFromToken(token, parsedInput, config);\n } else if (config._strict && !parsedInput) {\n getParsingFlags(config).unusedTokens.push(token);\n }\n } // add remaining unparsed input length to the string\n\n\n getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;\n\n if (string.length > 0) {\n getParsingFlags(config).unusedInput.push(string);\n } // clear _12h flag if hour is <= 12\n\n\n if (config._a[HOUR] <= 12 && getParsingFlags(config).bigHour === true && config._a[HOUR] > 0) {\n getParsingFlags(config).bigHour = undefined;\n }\n\n getParsingFlags(config).parsedDateParts = config._a.slice(0);\n getParsingFlags(config).meridiem = config._meridiem; // handle meridiem\n\n config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);\n configFromArray(config);\n checkOverflow(config);\n }\n\n function meridiemFixWrap(locale, hour, meridiem) {\n var isPm;\n\n if (meridiem == null) {\n // nothing to do\n return hour;\n }\n\n if (locale.meridiemHour != null) {\n return locale.meridiemHour(hour, meridiem);\n } else if (locale.isPM != null) {\n // Fallback\n isPm = locale.isPM(meridiem);\n\n if (isPm && hour < 12) {\n hour += 12;\n }\n\n if (!isPm && hour === 12) {\n hour = 0;\n }\n\n return hour;\n } else {\n // this is not supposed to happen\n return hour;\n }\n } // date from string and array of format strings\n\n\n function configFromStringAndArray(config) {\n var tempConfig, bestMoment, scoreToBeat, i, currentScore;\n\n if (config._f.length === 0) {\n getParsingFlags(config).invalidFormat = true;\n config._d = new Date(NaN);\n return;\n }\n\n for (i = 0; i < config._f.length; i++) {\n currentScore = 0;\n tempConfig = copyConfig({}, config);\n\n if (config._useUTC != null) {\n tempConfig._useUTC = config._useUTC;\n }\n\n tempConfig._f = config._f[i];\n configFromStringAndFormat(tempConfig);\n\n if (!isValid(tempConfig)) {\n continue;\n } // if there is any input that was not parsed add a penalty for that format\n\n\n currentScore += getParsingFlags(tempConfig).charsLeftOver; //or tokens\n\n currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;\n getParsingFlags(tempConfig).score = currentScore;\n\n if (scoreToBeat == null || currentScore < scoreToBeat) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n }\n }\n\n extend(config, bestMoment || tempConfig);\n }\n\n function configFromObject(config) {\n if (config._d) {\n return;\n }\n\n var i = normalizeObjectUnits(config._i);\n config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {\n return obj && parseInt(obj, 10);\n });\n configFromArray(config);\n }\n\n function createFromConfig(config) {\n var res = new Moment(checkOverflow(prepareConfig(config)));\n\n if (res._nextDay) {\n // Adding is smart enough around DST\n res.add(1, 'd');\n res._nextDay = undefined;\n }\n\n return res;\n }\n\n function prepareConfig(config) {\n var input = config._i,\n format = config._f;\n config._locale = config._locale || getLocale(config._l);\n\n if (input === null || format === undefined && input === '') {\n return createInvalid({\n nullInput: true\n });\n }\n\n if (typeof input === 'string') {\n config._i = input = config._locale.preparse(input);\n }\n\n if (isMoment(input)) {\n return new Moment(checkOverflow(input));\n } else if (isDate(input)) {\n config._d = input;\n } else if (isArray(format)) {\n configFromStringAndArray(config);\n } else if (format) {\n configFromStringAndFormat(config);\n } else {\n configFromInput(config);\n }\n\n if (!isValid(config)) {\n config._d = null;\n }\n\n return config;\n }\n\n function configFromInput(config) {\n var input = config._i;\n\n if (isUndefined(input)) {\n config._d = new Date(hooks.now());\n } else if (isDate(input)) {\n config._d = new Date(input.valueOf());\n } else if (typeof input === 'string') {\n configFromString(config);\n } else if (isArray(input)) {\n config._a = map(input.slice(0), function (obj) {\n return parseInt(obj, 10);\n });\n configFromArray(config);\n } else if (isObject(input)) {\n configFromObject(config);\n } else if (isNumber(input)) {\n // from milliseconds\n config._d = new Date(input);\n } else {\n hooks.createFromInputFallback(config);\n }\n }\n\n function createLocalOrUTC(input, format, locale, strict, isUTC) {\n var c = {};\n\n if (locale === true || locale === false) {\n strict = locale;\n locale = undefined;\n }\n\n if (isObject(input) && isObjectEmpty(input) || isArray(input) && input.length === 0) {\n input = undefined;\n } // object construction must be done this way.\n // https://github.com/moment/moment/issues/1423\n\n\n c._isAMomentObject = true;\n c._useUTC = c._isUTC = isUTC;\n c._l = locale;\n c._i = input;\n c._f = format;\n c._strict = strict;\n return createFromConfig(c);\n }\n\n function createLocal(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, false);\n }\n\n var prototypeMin = deprecate('moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', function () {\n var other = createLocal.apply(null, arguments);\n\n if (this.isValid() && other.isValid()) {\n return other < this ? this : other;\n } else {\n return createInvalid();\n }\n });\n var prototypeMax = deprecate('moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', function () {\n var other = createLocal.apply(null, arguments);\n\n if (this.isValid() && other.isValid()) {\n return other > this ? this : other;\n } else {\n return createInvalid();\n }\n }); // Pick a moment m from moments so that m[fn](other) is true for all\n // other. This relies on the function fn to be transitive.\n //\n // moments should either be an array of moment objects or an array, whose\n // first element is an array of moment objects.\n\n function pickBy(fn, moments) {\n var res, i;\n\n if (moments.length === 1 && isArray(moments[0])) {\n moments = moments[0];\n }\n\n if (!moments.length) {\n return createLocal();\n }\n\n res = moments[0];\n\n for (i = 1; i < moments.length; ++i) {\n if (!moments[i].isValid() || moments[i][fn](res)) {\n res = moments[i];\n }\n }\n\n return res;\n } // TODO: Use [].sort instead?\n\n\n function min() {\n var args = [].slice.call(arguments, 0);\n return pickBy('isBefore', args);\n }\n\n function max() {\n var args = [].slice.call(arguments, 0);\n return pickBy('isAfter', args);\n }\n\n var now = function now() {\n return Date.now ? Date.now() : +new Date();\n };\n\n var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];\n\n function isDurationValid(m) {\n for (var key in m) {\n if (!(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) {\n return false;\n }\n }\n\n var unitHasDecimal = false;\n\n for (var i = 0; i < ordering.length; ++i) {\n if (m[ordering[i]]) {\n if (unitHasDecimal) {\n return false; // only allow non-integers for smallest unit\n }\n\n if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {\n unitHasDecimal = true;\n }\n }\n }\n\n return true;\n }\n\n function isValid$1() {\n return this._isValid;\n }\n\n function createInvalid$1() {\n return createDuration(NaN);\n }\n\n function Duration(duration) {\n var normalizedInput = normalizeObjectUnits(duration),\n years = normalizedInput.year || 0,\n quarters = normalizedInput.quarter || 0,\n months = normalizedInput.month || 0,\n weeks = normalizedInput.week || normalizedInput.isoWeek || 0,\n days = normalizedInput.day || 0,\n hours = normalizedInput.hour || 0,\n minutes = normalizedInput.minute || 0,\n seconds = normalizedInput.second || 0,\n milliseconds = normalizedInput.millisecond || 0;\n this._isValid = isDurationValid(normalizedInput); // representation for dateAddRemove\n\n this._milliseconds = +milliseconds + seconds * 1e3 + // 1000\n minutes * 6e4 + // 1000 * 60\n hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978\n // Because of dateAddRemove treats 24 hours as different from a\n // day when working around DST, we need to store them separately\n\n this._days = +days + weeks * 7; // It is impossible to translate months into days without knowing\n // which months you are are talking about, so we have to store\n // it separately.\n\n this._months = +months + quarters * 3 + years * 12;\n this._data = {};\n this._locale = getLocale();\n\n this._bubble();\n }\n\n function isDuration(obj) {\n return obj instanceof Duration;\n }\n\n function absRound(number) {\n if (number < 0) {\n return Math.round(-1 * number) * -1;\n } else {\n return Math.round(number);\n }\n } // FORMATTING\n\n\n function offset(token, separator) {\n addFormatToken(token, 0, 0, function () {\n var offset = this.utcOffset();\n var sign = '+';\n\n if (offset < 0) {\n offset = -offset;\n sign = '-';\n }\n\n return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~offset % 60, 2);\n });\n }\n\n offset('Z', ':');\n offset('ZZ', ''); // PARSING\n\n addRegexToken('Z', matchShortOffset);\n addRegexToken('ZZ', matchShortOffset);\n addParseToken(['Z', 'ZZ'], function (input, array, config) {\n config._useUTC = true;\n config._tzm = offsetFromString(matchShortOffset, input);\n }); // HELPERS\n // timezone chunker\n // '+10:00' > ['10', '00']\n // '-1530' > ['-15', '30']\n\n var chunkOffset = /([\\+\\-]|\\d\\d)/gi;\n\n function offsetFromString(matcher, string) {\n var matches = (string || '').match(matcher);\n\n if (matches === null) {\n return null;\n }\n\n var chunk = matches[matches.length - 1] || [];\n var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];\n var minutes = +(parts[1] * 60) + toInt(parts[2]);\n return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;\n } // Return a moment from input, that is local/utc/zone equivalent to model.\n\n\n function cloneWithOffset(input, model) {\n var res, diff;\n\n if (model._isUTC) {\n res = model.clone();\n diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf(); // Use low-level api, because this fn is low-level api.\n\n res._d.setTime(res._d.valueOf() + diff);\n\n hooks.updateOffset(res, false);\n return res;\n } else {\n return createLocal(input).local();\n }\n }\n\n function getDateOffset(m) {\n // On Firefox.24 Date#getTimezoneOffset returns a floating point.\n // https://github.com/moment/moment/pull/1871\n return -Math.round(m._d.getTimezoneOffset() / 15) * 15;\n } // HOOKS\n // This function will be called whenever a moment is mutated.\n // It is intended to keep the offset in sync with the timezone.\n\n\n hooks.updateOffset = function () {}; // MOMENTS\n // keepLocalTime = true means only change the timezone, without\n // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->\n // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset\n // +0200, so we adjust the time as needed, to be valid.\n //\n // Keeping the time actually adds/subtracts (one hour)\n // from the actual represented time. That is why we call updateOffset\n // a second time. In case it wants us to change the offset again\n // _changeInProgress == true case, then we have to adjust, because\n // there is no such time in the given timezone.\n\n\n function getSetOffset(input, keepLocalTime, keepMinutes) {\n var offset = this._offset || 0,\n localAdjust;\n\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n\n if (input != null) {\n if (typeof input === 'string') {\n input = offsetFromString(matchShortOffset, input);\n\n if (input === null) {\n return this;\n }\n } else if (Math.abs(input) < 16 && !keepMinutes) {\n input = input * 60;\n }\n\n if (!this._isUTC && keepLocalTime) {\n localAdjust = getDateOffset(this);\n }\n\n this._offset = input;\n this._isUTC = true;\n\n if (localAdjust != null) {\n this.add(localAdjust, 'm');\n }\n\n if (offset !== input) {\n if (!keepLocalTime || this._changeInProgress) {\n addSubtract(this, createDuration(input - offset, 'm'), 1, false);\n } else if (!this._changeInProgress) {\n this._changeInProgress = true;\n hooks.updateOffset(this, true);\n this._changeInProgress = null;\n }\n }\n\n return this;\n } else {\n return this._isUTC ? offset : getDateOffset(this);\n }\n }\n\n function getSetZone(input, keepLocalTime) {\n if (input != null) {\n if (typeof input !== 'string') {\n input = -input;\n }\n\n this.utcOffset(input, keepLocalTime);\n return this;\n } else {\n return -this.utcOffset();\n }\n }\n\n function setOffsetToUTC(keepLocalTime) {\n return this.utcOffset(0, keepLocalTime);\n }\n\n function setOffsetToLocal(keepLocalTime) {\n if (this._isUTC) {\n this.utcOffset(0, keepLocalTime);\n this._isUTC = false;\n\n if (keepLocalTime) {\n this.subtract(getDateOffset(this), 'm');\n }\n }\n\n return this;\n }\n\n function setOffsetToParsedOffset() {\n if (this._tzm != null) {\n this.utcOffset(this._tzm, false, true);\n } else if (typeof this._i === 'string') {\n var tZone = offsetFromString(matchOffset, this._i);\n\n if (tZone != null) {\n this.utcOffset(tZone);\n } else {\n this.utcOffset(0, true);\n }\n }\n\n return this;\n }\n\n function hasAlignedHourOffset(input) {\n if (!this.isValid()) {\n return false;\n }\n\n input = input ? createLocal(input).utcOffset() : 0;\n return (this.utcOffset() - input) % 60 === 0;\n }\n\n function isDaylightSavingTime() {\n return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();\n }\n\n function isDaylightSavingTimeShifted() {\n if (!isUndefined(this._isDSTShifted)) {\n return this._isDSTShifted;\n }\n\n var c = {};\n copyConfig(c, this);\n c = prepareConfig(c);\n\n if (c._a) {\n var other = c._isUTC ? createUTC(c._a) : createLocal(c._a);\n this._isDSTShifted = this.isValid() && compareArrays(c._a, other.toArray()) > 0;\n } else {\n this._isDSTShifted = false;\n }\n\n return this._isDSTShifted;\n }\n\n function isLocal() {\n return this.isValid() ? !this._isUTC : false;\n }\n\n function isUtcOffset() {\n return this.isValid() ? this._isUTC : false;\n }\n\n function isUtc() {\n return this.isValid() ? this._isUTC && this._offset === 0 : false;\n } // ASP.NET json date format regex\n\n\n var aspNetRegex = /^(\\-|\\+)?(?:(\\d*)[. ])?(\\d+)\\:(\\d+)(?:\\:(\\d+)(\\.\\d*)?)?$/; // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html\n // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere\n // and further modified to allow for strings containing both week and day\n\n var isoRegex = /^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;\n\n function createDuration(input, key) {\n var duration = input,\n // matching against regexp is expensive, do it on demand\n match = null,\n sign,\n ret,\n diffRes;\n\n if (isDuration(input)) {\n duration = {\n ms: input._milliseconds,\n d: input._days,\n M: input._months\n };\n } else if (isNumber(input)) {\n duration = {};\n\n if (key) {\n duration[key] = input;\n } else {\n duration.milliseconds = input;\n }\n } else if (!!(match = aspNetRegex.exec(input))) {\n sign = match[1] === '-' ? -1 : 1;\n duration = {\n y: 0,\n d: toInt(match[DATE]) * sign,\n h: toInt(match[HOUR]) * sign,\n m: toInt(match[MINUTE]) * sign,\n s: toInt(match[SECOND]) * sign,\n ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match\n\n };\n } else if (!!(match = isoRegex.exec(input))) {\n sign = match[1] === '-' ? -1 : 1;\n duration = {\n y: parseIso(match[2], sign),\n M: parseIso(match[3], sign),\n w: parseIso(match[4], sign),\n d: parseIso(match[5], sign),\n h: parseIso(match[6], sign),\n m: parseIso(match[7], sign),\n s: parseIso(match[8], sign)\n };\n } else if (duration == null) {\n // checks for null or undefined\n duration = {};\n } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {\n diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));\n duration = {};\n duration.ms = diffRes.milliseconds;\n duration.M = diffRes.months;\n }\n\n ret = new Duration(duration);\n\n if (isDuration(input) && hasOwnProp(input, '_locale')) {\n ret._locale = input._locale;\n }\n\n return ret;\n }\n\n createDuration.fn = Duration.prototype;\n createDuration.invalid = createInvalid$1;\n\n function parseIso(inp, sign) {\n // We'd normally use ~~inp for this, but unfortunately it also\n // converts floats to ints.\n // inp may be undefined, so careful calling replace on it.\n var res = inp && parseFloat(inp.replace(',', '.')); // apply sign while we're at it\n\n return (isNaN(res) ? 0 : res) * sign;\n }\n\n function positiveMomentsDifference(base, other) {\n var res = {};\n res.months = other.month() - base.month() + (other.year() - base.year()) * 12;\n\n if (base.clone().add(res.months, 'M').isAfter(other)) {\n --res.months;\n }\n\n res.milliseconds = +other - +base.clone().add(res.months, 'M');\n return res;\n }\n\n function momentsDifference(base, other) {\n var res;\n\n if (!(base.isValid() && other.isValid())) {\n return {\n milliseconds: 0,\n months: 0\n };\n }\n\n other = cloneWithOffset(other, base);\n\n if (base.isBefore(other)) {\n res = positiveMomentsDifference(base, other);\n } else {\n res = positiveMomentsDifference(other, base);\n res.milliseconds = -res.milliseconds;\n res.months = -res.months;\n }\n\n return res;\n } // TODO: remove 'name' arg after deprecation is removed\n\n\n function createAdder(direction, name) {\n return function (val, period) {\n var dur, tmp; //invert the arguments, but complain about it\n\n if (period !== null && !isNaN(+period)) {\n deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' + 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');\n tmp = val;\n val = period;\n period = tmp;\n }\n\n val = typeof val === 'string' ? +val : val;\n dur = createDuration(val, period);\n addSubtract(this, dur, direction);\n return this;\n };\n }\n\n function addSubtract(mom, duration, isAdding, updateOffset) {\n var milliseconds = duration._milliseconds,\n days = absRound(duration._days),\n months = absRound(duration._months);\n\n if (!mom.isValid()) {\n // No op\n return;\n }\n\n updateOffset = updateOffset == null ? true : updateOffset;\n\n if (months) {\n setMonth(mom, get(mom, 'Month') + months * isAdding);\n }\n\n if (days) {\n set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);\n }\n\n if (milliseconds) {\n mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);\n }\n\n if (updateOffset) {\n hooks.updateOffset(mom, days || months);\n }\n }\n\n var add = createAdder(1, 'add');\n var subtract = createAdder(-1, 'subtract');\n\n function getCalendarFormat(myMoment, now) {\n var diff = myMoment.diff(now, 'days', true);\n return diff < -6 ? 'sameElse' : diff < -1 ? 'lastWeek' : diff < 0 ? 'lastDay' : diff < 1 ? 'sameDay' : diff < 2 ? 'nextDay' : diff < 7 ? 'nextWeek' : 'sameElse';\n }\n\n function calendar$1(time, formats) {\n // We want to compare the start of today, vs this.\n // Getting start-of-today depends on whether we're local/utc/offset or not.\n var now = time || createLocal(),\n sod = cloneWithOffset(now, this).startOf('day'),\n format = hooks.calendarFormat(this, sod) || 'sameElse';\n var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);\n return this.format(output || this.localeData().calendar(format, this, createLocal(now)));\n }\n\n function clone() {\n return new Moment(this);\n }\n\n function isAfter(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n\n units = normalizeUnits(units) || 'millisecond';\n\n if (units === 'millisecond') {\n return this.valueOf() > localInput.valueOf();\n } else {\n return localInput.valueOf() < this.clone().startOf(units).valueOf();\n }\n }\n\n function isBefore(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n\n units = normalizeUnits(units) || 'millisecond';\n\n if (units === 'millisecond') {\n return this.valueOf() < localInput.valueOf();\n } else {\n return this.clone().endOf(units).valueOf() < localInput.valueOf();\n }\n }\n\n function isBetween(from, to, units, inclusivity) {\n var localFrom = isMoment(from) ? from : createLocal(from),\n localTo = isMoment(to) ? to : createLocal(to);\n\n if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {\n return false;\n }\n\n inclusivity = inclusivity || '()';\n return (inclusivity[0] === '(' ? this.isAfter(localFrom, units) : !this.isBefore(localFrom, units)) && (inclusivity[1] === ')' ? this.isBefore(localTo, units) : !this.isAfter(localTo, units));\n }\n\n function isSame(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input),\n inputMs;\n\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n\n units = normalizeUnits(units) || 'millisecond';\n\n if (units === 'millisecond') {\n return this.valueOf() === localInput.valueOf();\n } else {\n inputMs = localInput.valueOf();\n return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();\n }\n }\n\n function isSameOrAfter(input, units) {\n return this.isSame(input, units) || this.isAfter(input, units);\n }\n\n function isSameOrBefore(input, units) {\n return this.isSame(input, units) || this.isBefore(input, units);\n }\n\n function diff(input, units, asFloat) {\n var that, zoneDelta, output;\n\n if (!this.isValid()) {\n return NaN;\n }\n\n that = cloneWithOffset(input, this);\n\n if (!that.isValid()) {\n return NaN;\n }\n\n zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;\n units = normalizeUnits(units);\n\n switch (units) {\n case 'year':\n output = monthDiff(this, that) / 12;\n break;\n\n case 'month':\n output = monthDiff(this, that);\n break;\n\n case 'quarter':\n output = monthDiff(this, that) / 3;\n break;\n\n case 'second':\n output = (this - that) / 1e3;\n break;\n // 1000\n\n case 'minute':\n output = (this - that) / 6e4;\n break;\n // 1000 * 60\n\n case 'hour':\n output = (this - that) / 36e5;\n break;\n // 1000 * 60 * 60\n\n case 'day':\n output = (this - that - zoneDelta) / 864e5;\n break;\n // 1000 * 60 * 60 * 24, negate dst\n\n case 'week':\n output = (this - that - zoneDelta) / 6048e5;\n break;\n // 1000 * 60 * 60 * 24 * 7, negate dst\n\n default:\n output = this - that;\n }\n\n return asFloat ? output : absFloor(output);\n }\n\n function monthDiff(a, b) {\n // difference in months\n var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),\n // b is in (anchor - 1 month, anchor + 1 month)\n anchor = a.clone().add(wholeMonthDiff, 'months'),\n anchor2,\n adjust;\n\n if (b - anchor < 0) {\n anchor2 = a.clone().add(wholeMonthDiff - 1, 'months'); // linear across the month\n\n adjust = (b - anchor) / (anchor - anchor2);\n } else {\n anchor2 = a.clone().add(wholeMonthDiff + 1, 'months'); // linear across the month\n\n adjust = (b - anchor) / (anchor2 - anchor);\n } //check for negative zero, return zero if negative zero\n\n\n return -(wholeMonthDiff + adjust) || 0;\n }\n\n hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';\n hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';\n\n function toString() {\n return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');\n }\n\n function toISOString(keepOffset) {\n if (!this.isValid()) {\n return null;\n }\n\n var utc = keepOffset !== true;\n var m = utc ? this.clone().utc() : this;\n\n if (m.year() < 0 || m.year() > 9999) {\n return formatMoment(m, utc ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ');\n }\n\n if (isFunction(Date.prototype.toISOString)) {\n // native implementation is ~50x faster, use it when we can\n if (utc) {\n return this.toDate().toISOString();\n } else {\n return new Date(this.valueOf() + this.utcOffset() * 60 * 1000).toISOString().replace('Z', formatMoment(m, 'Z'));\n }\n }\n\n return formatMoment(m, utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ');\n }\n /**\n * Return a human readable representation of a moment that can\n * also be evaluated to get a new moment which is the same\n *\n * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects\n */\n\n\n function inspect() {\n if (!this.isValid()) {\n return 'moment.invalid(/* ' + this._i + ' */)';\n }\n\n var func = 'moment';\n var zone = '';\n\n if (!this.isLocal()) {\n func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';\n zone = 'Z';\n }\n\n var prefix = '[' + func + '(\"]';\n var year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';\n var datetime = '-MM-DD[T]HH:mm:ss.SSS';\n var suffix = zone + '[\")]';\n return this.format(prefix + year + datetime + suffix);\n }\n\n function format(inputString) {\n if (!inputString) {\n inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;\n }\n\n var output = formatMoment(this, inputString);\n return this.localeData().postformat(output);\n }\n\n function from(time, withoutSuffix) {\n if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) {\n return createDuration({\n to: this,\n from: time\n }).locale(this.locale()).humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n }\n\n function fromNow(withoutSuffix) {\n return this.from(createLocal(), withoutSuffix);\n }\n\n function to(time, withoutSuffix) {\n if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) {\n return createDuration({\n from: this,\n to: time\n }).locale(this.locale()).humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n }\n\n function toNow(withoutSuffix) {\n return this.to(createLocal(), withoutSuffix);\n } // If passed a locale key, it will set the locale for this\n // instance. Otherwise, it will return the locale configuration\n // variables for this instance.\n\n\n function locale(key) {\n var newLocaleData;\n\n if (key === undefined) {\n return this._locale._abbr;\n } else {\n newLocaleData = getLocale(key);\n\n if (newLocaleData != null) {\n this._locale = newLocaleData;\n }\n\n return this;\n }\n }\n\n var lang = deprecate('moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', function (key) {\n if (key === undefined) {\n return this.localeData();\n } else {\n return this.locale(key);\n }\n });\n\n function localeData() {\n return this._locale;\n }\n\n var MS_PER_SECOND = 1000;\n var MS_PER_MINUTE = 60 * MS_PER_SECOND;\n var MS_PER_HOUR = 60 * MS_PER_MINUTE;\n var MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR; // actual modulo - handles negative numbers (for dates before 1970):\n\n function mod$1(dividend, divisor) {\n return (dividend % divisor + divisor) % divisor;\n }\n\n function localStartOfDate(y, m, d) {\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n return new Date(y + 400, m, d) - MS_PER_400_YEARS;\n } else {\n return new Date(y, m, d).valueOf();\n }\n }\n\n function utcStartOfDate(y, m, d) {\n // Date.UTC remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;\n } else {\n return Date.UTC(y, m, d);\n }\n }\n\n function startOf(units) {\n var time;\n units = normalizeUnits(units);\n\n if (units === undefined || units === 'millisecond' || !this.isValid()) {\n return this;\n }\n\n var startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n switch (units) {\n case 'year':\n time = startOfDate(this.year(), 0, 1);\n break;\n\n case 'quarter':\n time = startOfDate(this.year(), this.month() - this.month() % 3, 1);\n break;\n\n case 'month':\n time = startOfDate(this.year(), this.month(), 1);\n break;\n\n case 'week':\n time = startOfDate(this.year(), this.month(), this.date() - this.weekday());\n break;\n\n case 'isoWeek':\n time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));\n break;\n\n case 'day':\n case 'date':\n time = startOfDate(this.year(), this.month(), this.date());\n break;\n\n case 'hour':\n time = this._d.valueOf();\n time -= mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR);\n break;\n\n case 'minute':\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_MINUTE);\n break;\n\n case 'second':\n time = this._d.valueOf();\n time -= mod$1(time, MS_PER_SECOND);\n break;\n }\n\n this._d.setTime(time);\n\n hooks.updateOffset(this, true);\n return this;\n }\n\n function endOf(units) {\n var time;\n units = normalizeUnits(units);\n\n if (units === undefined || units === 'millisecond' || !this.isValid()) {\n return this;\n }\n\n var startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n switch (units) {\n case 'year':\n time = startOfDate(this.year() + 1, 0, 1) - 1;\n break;\n\n case 'quarter':\n time = startOfDate(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;\n break;\n\n case 'month':\n time = startOfDate(this.year(), this.month() + 1, 1) - 1;\n break;\n\n case 'week':\n time = startOfDate(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;\n break;\n\n case 'isoWeek':\n time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;\n break;\n\n case 'day':\n case 'date':\n time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;\n break;\n\n case 'hour':\n time = this._d.valueOf();\n time += MS_PER_HOUR - mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR) - 1;\n break;\n\n case 'minute':\n time = this._d.valueOf();\n time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;\n break;\n\n case 'second':\n time = this._d.valueOf();\n time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;\n break;\n }\n\n this._d.setTime(time);\n\n hooks.updateOffset(this, true);\n return this;\n }\n\n function valueOf() {\n return this._d.valueOf() - (this._offset || 0) * 60000;\n }\n\n function unix() {\n return Math.floor(this.valueOf() / 1000);\n }\n\n function toDate() {\n return new Date(this.valueOf());\n }\n\n function toArray() {\n var m = this;\n return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];\n }\n\n function toObject() {\n var m = this;\n return {\n years: m.year(),\n months: m.month(),\n date: m.date(),\n hours: m.hours(),\n minutes: m.minutes(),\n seconds: m.seconds(),\n milliseconds: m.milliseconds()\n };\n }\n\n function toJSON() {\n // new Date(NaN).toJSON() === null\n return this.isValid() ? this.toISOString() : null;\n }\n\n function isValid$2() {\n return isValid(this);\n }\n\n function parsingFlags() {\n return extend({}, getParsingFlags(this));\n }\n\n function invalidAt() {\n return getParsingFlags(this).overflow;\n }\n\n function creationData() {\n return {\n input: this._i,\n format: this._f,\n locale: this._locale,\n isUTC: this._isUTC,\n strict: this._strict\n };\n } // FORMATTING\n\n\n addFormatToken(0, ['gg', 2], 0, function () {\n return this.weekYear() % 100;\n });\n addFormatToken(0, ['GG', 2], 0, function () {\n return this.isoWeekYear() % 100;\n });\n\n function addWeekYearFormatToken(token, getter) {\n addFormatToken(0, [token, token.length], 0, getter);\n }\n\n addWeekYearFormatToken('gggg', 'weekYear');\n addWeekYearFormatToken('ggggg', 'weekYear');\n addWeekYearFormatToken('GGGG', 'isoWeekYear');\n addWeekYearFormatToken('GGGGG', 'isoWeekYear'); // ALIASES\n\n addUnitAlias('weekYear', 'gg');\n addUnitAlias('isoWeekYear', 'GG'); // PRIORITY\n\n addUnitPriority('weekYear', 1);\n addUnitPriority('isoWeekYear', 1); // PARSING\n\n addRegexToken('G', matchSigned);\n addRegexToken('g', matchSigned);\n addRegexToken('GG', match1to2, match2);\n addRegexToken('gg', match1to2, match2);\n addRegexToken('GGGG', match1to4, match4);\n addRegexToken('gggg', match1to4, match4);\n addRegexToken('GGGGG', match1to6, match6);\n addRegexToken('ggggg', match1to6, match6);\n addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {\n week[token.substr(0, 2)] = toInt(input);\n });\n addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {\n week[token] = hooks.parseTwoDigitYear(input);\n }); // MOMENTS\n\n function getSetWeekYear(input) {\n return getSetWeekYearHelper.call(this, input, this.week(), this.weekday(), this.localeData()._week.dow, this.localeData()._week.doy);\n }\n\n function getSetISOWeekYear(input) {\n return getSetWeekYearHelper.call(this, input, this.isoWeek(), this.isoWeekday(), 1, 4);\n }\n\n function getISOWeeksInYear() {\n return weeksInYear(this.year(), 1, 4);\n }\n\n function getWeeksInYear() {\n var weekInfo = this.localeData()._week;\n\n return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);\n }\n\n function getSetWeekYearHelper(input, week, weekday, dow, doy) {\n var weeksTarget;\n\n if (input == null) {\n return weekOfYear(this, dow, doy).year;\n } else {\n weeksTarget = weeksInYear(input, dow, doy);\n\n if (week > weeksTarget) {\n week = weeksTarget;\n }\n\n return setWeekAll.call(this, input, week, weekday, dow, doy);\n }\n }\n\n function setWeekAll(weekYear, week, weekday, dow, doy) {\n var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),\n date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);\n this.year(date.getUTCFullYear());\n this.month(date.getUTCMonth());\n this.date(date.getUTCDate());\n return this;\n } // FORMATTING\n\n\n addFormatToken('Q', 0, 'Qo', 'quarter'); // ALIASES\n\n addUnitAlias('quarter', 'Q'); // PRIORITY\n\n addUnitPriority('quarter', 7); // PARSING\n\n addRegexToken('Q', match1);\n addParseToken('Q', function (input, array) {\n array[MONTH] = (toInt(input) - 1) * 3;\n }); // MOMENTS\n\n function getSetQuarter(input) {\n return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);\n } // FORMATTING\n\n\n addFormatToken('D', ['DD', 2], 'Do', 'date'); // ALIASES\n\n addUnitAlias('date', 'D'); // PRIORITY\n\n addUnitPriority('date', 9); // PARSING\n\n addRegexToken('D', match1to2);\n addRegexToken('DD', match1to2, match2);\n addRegexToken('Do', function (isStrict, locale) {\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n return isStrict ? locale._dayOfMonthOrdinalParse || locale._ordinalParse : locale._dayOfMonthOrdinalParseLenient;\n });\n addParseToken(['D', 'DD'], DATE);\n addParseToken('Do', function (input, array) {\n array[DATE] = toInt(input.match(match1to2)[0]);\n }); // MOMENTS\n\n var getSetDayOfMonth = makeGetSet('Date', true); // FORMATTING\n\n addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'); // ALIASES\n\n addUnitAlias('dayOfYear', 'DDD'); // PRIORITY\n\n addUnitPriority('dayOfYear', 4); // PARSING\n\n addRegexToken('DDD', match1to3);\n addRegexToken('DDDD', match3);\n addParseToken(['DDD', 'DDDD'], function (input, array, config) {\n config._dayOfYear = toInt(input);\n }); // HELPERS\n // MOMENTS\n\n function getSetDayOfYear(input) {\n var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;\n return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');\n } // FORMATTING\n\n\n addFormatToken('m', ['mm', 2], 0, 'minute'); // ALIASES\n\n addUnitAlias('minute', 'm'); // PRIORITY\n\n addUnitPriority('minute', 14); // PARSING\n\n addRegexToken('m', match1to2);\n addRegexToken('mm', match1to2, match2);\n addParseToken(['m', 'mm'], MINUTE); // MOMENTS\n\n var getSetMinute = makeGetSet('Minutes', false); // FORMATTING\n\n addFormatToken('s', ['ss', 2], 0, 'second'); // ALIASES\n\n addUnitAlias('second', 's'); // PRIORITY\n\n addUnitPriority('second', 15); // PARSING\n\n addRegexToken('s', match1to2);\n addRegexToken('ss', match1to2, match2);\n addParseToken(['s', 'ss'], SECOND); // MOMENTS\n\n var getSetSecond = makeGetSet('Seconds', false); // FORMATTING\n\n addFormatToken('S', 0, 0, function () {\n return ~~(this.millisecond() / 100);\n });\n addFormatToken(0, ['SS', 2], 0, function () {\n return ~~(this.millisecond() / 10);\n });\n addFormatToken(0, ['SSS', 3], 0, 'millisecond');\n addFormatToken(0, ['SSSS', 4], 0, function () {\n return this.millisecond() * 10;\n });\n addFormatToken(0, ['SSSSS', 5], 0, function () {\n return this.millisecond() * 100;\n });\n addFormatToken(0, ['SSSSSS', 6], 0, function () {\n return this.millisecond() * 1000;\n });\n addFormatToken(0, ['SSSSSSS', 7], 0, function () {\n return this.millisecond() * 10000;\n });\n addFormatToken(0, ['SSSSSSSS', 8], 0, function () {\n return this.millisecond() * 100000;\n });\n addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {\n return this.millisecond() * 1000000;\n }); // ALIASES\n\n addUnitAlias('millisecond', 'ms'); // PRIORITY\n\n addUnitPriority('millisecond', 16); // PARSING\n\n addRegexToken('S', match1to3, match1);\n addRegexToken('SS', match1to3, match2);\n addRegexToken('SSS', match1to3, match3);\n var token;\n\n for (token = 'SSSS'; token.length <= 9; token += 'S') {\n addRegexToken(token, matchUnsigned);\n }\n\n function parseMs(input, array) {\n array[MILLISECOND] = toInt(('0.' + input) * 1000);\n }\n\n for (token = 'S'; token.length <= 9; token += 'S') {\n addParseToken(token, parseMs);\n } // MOMENTS\n\n\n var getSetMillisecond = makeGetSet('Milliseconds', false); // FORMATTING\n\n addFormatToken('z', 0, 0, 'zoneAbbr');\n addFormatToken('zz', 0, 0, 'zoneName'); // MOMENTS\n\n function getZoneAbbr() {\n return this._isUTC ? 'UTC' : '';\n }\n\n function getZoneName() {\n return this._isUTC ? 'Coordinated Universal Time' : '';\n }\n\n var proto = Moment.prototype;\n proto.add = add;\n proto.calendar = calendar$1;\n proto.clone = clone;\n proto.diff = diff;\n proto.endOf = endOf;\n proto.format = format;\n proto.from = from;\n proto.fromNow = fromNow;\n proto.to = to;\n proto.toNow = toNow;\n proto.get = stringGet;\n proto.invalidAt = invalidAt;\n proto.isAfter = isAfter;\n proto.isBefore = isBefore;\n proto.isBetween = isBetween;\n proto.isSame = isSame;\n proto.isSameOrAfter = isSameOrAfter;\n proto.isSameOrBefore = isSameOrBefore;\n proto.isValid = isValid$2;\n proto.lang = lang;\n proto.locale = locale;\n proto.localeData = localeData;\n proto.max = prototypeMax;\n proto.min = prototypeMin;\n proto.parsingFlags = parsingFlags;\n proto.set = stringSet;\n proto.startOf = startOf;\n proto.subtract = subtract;\n proto.toArray = toArray;\n proto.toObject = toObject;\n proto.toDate = toDate;\n proto.toISOString = toISOString;\n proto.inspect = inspect;\n proto.toJSON = toJSON;\n proto.toString = toString;\n proto.unix = unix;\n proto.valueOf = valueOf;\n proto.creationData = creationData;\n proto.year = getSetYear;\n proto.isLeapYear = getIsLeapYear;\n proto.weekYear = getSetWeekYear;\n proto.isoWeekYear = getSetISOWeekYear;\n proto.quarter = proto.quarters = getSetQuarter;\n proto.month = getSetMonth;\n proto.daysInMonth = getDaysInMonth;\n proto.week = proto.weeks = getSetWeek;\n proto.isoWeek = proto.isoWeeks = getSetISOWeek;\n proto.weeksInYear = getWeeksInYear;\n proto.isoWeeksInYear = getISOWeeksInYear;\n proto.date = getSetDayOfMonth;\n proto.day = proto.days = getSetDayOfWeek;\n proto.weekday = getSetLocaleDayOfWeek;\n proto.isoWeekday = getSetISODayOfWeek;\n proto.dayOfYear = getSetDayOfYear;\n proto.hour = proto.hours = getSetHour;\n proto.minute = proto.minutes = getSetMinute;\n proto.second = proto.seconds = getSetSecond;\n proto.millisecond = proto.milliseconds = getSetMillisecond;\n proto.utcOffset = getSetOffset;\n proto.utc = setOffsetToUTC;\n proto.local = setOffsetToLocal;\n proto.parseZone = setOffsetToParsedOffset;\n proto.hasAlignedHourOffset = hasAlignedHourOffset;\n proto.isDST = isDaylightSavingTime;\n proto.isLocal = isLocal;\n proto.isUtcOffset = isUtcOffset;\n proto.isUtc = isUtc;\n proto.isUTC = isUtc;\n proto.zoneAbbr = getZoneAbbr;\n proto.zoneName = getZoneName;\n proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);\n proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);\n proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);\n proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);\n proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);\n\n function createUnix(input) {\n return createLocal(input * 1000);\n }\n\n function createInZone() {\n return createLocal.apply(null, arguments).parseZone();\n }\n\n function preParsePostFormat(string) {\n return string;\n }\n\n var proto$1 = Locale.prototype;\n proto$1.calendar = calendar;\n proto$1.longDateFormat = longDateFormat;\n proto$1.invalidDate = invalidDate;\n proto$1.ordinal = ordinal;\n proto$1.preparse = preParsePostFormat;\n proto$1.postformat = preParsePostFormat;\n proto$1.relativeTime = relativeTime;\n proto$1.pastFuture = pastFuture;\n proto$1.set = set;\n proto$1.months = localeMonths;\n proto$1.monthsShort = localeMonthsShort;\n proto$1.monthsParse = localeMonthsParse;\n proto$1.monthsRegex = monthsRegex;\n proto$1.monthsShortRegex = monthsShortRegex;\n proto$1.week = localeWeek;\n proto$1.firstDayOfYear = localeFirstDayOfYear;\n proto$1.firstDayOfWeek = localeFirstDayOfWeek;\n proto$1.weekdays = localeWeekdays;\n proto$1.weekdaysMin = localeWeekdaysMin;\n proto$1.weekdaysShort = localeWeekdaysShort;\n proto$1.weekdaysParse = localeWeekdaysParse;\n proto$1.weekdaysRegex = weekdaysRegex;\n proto$1.weekdaysShortRegex = weekdaysShortRegex;\n proto$1.weekdaysMinRegex = weekdaysMinRegex;\n proto$1.isPM = localeIsPM;\n proto$1.meridiem = localeMeridiem;\n\n function get$1(format, index, field, setter) {\n var locale = getLocale();\n var utc = createUTC().set(setter, index);\n return locale[field](utc, format);\n }\n\n function listMonthsImpl(format, index, field) {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n\n if (index != null) {\n return get$1(format, index, field, 'month');\n }\n\n var i;\n var out = [];\n\n for (i = 0; i < 12; i++) {\n out[i] = get$1(format, i, field, 'month');\n }\n\n return out;\n } // ()\n // (5)\n // (fmt, 5)\n // (fmt)\n // (true)\n // (true, 5)\n // (true, fmt, 5)\n // (true, fmt)\n\n\n function listWeekdaysImpl(localeSorted, format, index, field) {\n if (typeof localeSorted === 'boolean') {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n } else {\n format = localeSorted;\n index = format;\n localeSorted = false;\n\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n }\n\n var locale = getLocale(),\n shift = localeSorted ? locale._week.dow : 0;\n\n if (index != null) {\n return get$1(format, (index + shift) % 7, field, 'day');\n }\n\n var i;\n var out = [];\n\n for (i = 0; i < 7; i++) {\n out[i] = get$1(format, (i + shift) % 7, field, 'day');\n }\n\n return out;\n }\n\n function listMonths(format, index) {\n return listMonthsImpl(format, index, 'months');\n }\n\n function listMonthsShort(format, index) {\n return listMonthsImpl(format, index, 'monthsShort');\n }\n\n function listWeekdays(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdays');\n }\n\n function listWeekdaysShort(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');\n }\n\n function listWeekdaysMin(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');\n }\n\n getSetGlobalLocale('en', {\n dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n ordinal: function ordinal(number) {\n var b = number % 10,\n output = toInt(number % 100 / 10) === 1 ? 'th' : b === 1 ? 'st' : b === 2 ? 'nd' : b === 3 ? 'rd' : 'th';\n return number + output;\n }\n }); // Side effect imports\n\n hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);\n hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale);\n var mathAbs = Math.abs;\n\n function abs() {\n var data = this._data;\n this._milliseconds = mathAbs(this._milliseconds);\n this._days = mathAbs(this._days);\n this._months = mathAbs(this._months);\n data.milliseconds = mathAbs(data.milliseconds);\n data.seconds = mathAbs(data.seconds);\n data.minutes = mathAbs(data.minutes);\n data.hours = mathAbs(data.hours);\n data.months = mathAbs(data.months);\n data.years = mathAbs(data.years);\n return this;\n }\n\n function addSubtract$1(duration, input, value, direction) {\n var other = createDuration(input, value);\n duration._milliseconds += direction * other._milliseconds;\n duration._days += direction * other._days;\n duration._months += direction * other._months;\n return duration._bubble();\n } // supports only 2.0-style add(1, 's') or add(duration)\n\n\n function add$1(input, value) {\n return addSubtract$1(this, input, value, 1);\n } // supports only 2.0-style subtract(1, 's') or subtract(duration)\n\n\n function subtract$1(input, value) {\n return addSubtract$1(this, input, value, -1);\n }\n\n function absCeil(number) {\n if (number < 0) {\n return Math.floor(number);\n } else {\n return Math.ceil(number);\n }\n }\n\n function bubble() {\n var milliseconds = this._milliseconds;\n var days = this._days;\n var months = this._months;\n var data = this._data;\n var seconds, minutes, hours, years, monthsFromDays; // if we have a mix of positive and negative values, bubble down first\n // check: https://github.com/moment/moment/issues/2166\n\n if (!(milliseconds >= 0 && days >= 0 && months >= 0 || milliseconds <= 0 && days <= 0 && months <= 0)) {\n milliseconds += absCeil(monthsToDays(months) + days) * 864e5;\n days = 0;\n months = 0;\n } // The following code bubbles up values, see the tests for\n // examples of what that means.\n\n\n data.milliseconds = milliseconds % 1000;\n seconds = absFloor(milliseconds / 1000);\n data.seconds = seconds % 60;\n minutes = absFloor(seconds / 60);\n data.minutes = minutes % 60;\n hours = absFloor(minutes / 60);\n data.hours = hours % 24;\n days += absFloor(hours / 24); // convert days to months\n\n monthsFromDays = absFloor(daysToMonths(days));\n months += monthsFromDays;\n days -= absCeil(monthsToDays(monthsFromDays)); // 12 months -> 1 year\n\n years = absFloor(months / 12);\n months %= 12;\n data.days = days;\n data.months = months;\n data.years = years;\n return this;\n }\n\n function daysToMonths(days) {\n // 400 years have 146097 days (taking into account leap year rules)\n // 400 years have 12 months === 4800\n return days * 4800 / 146097;\n }\n\n function monthsToDays(months) {\n // the reverse of daysToMonths\n return months * 146097 / 4800;\n }\n\n function as(units) {\n if (!this.isValid()) {\n return NaN;\n }\n\n var days;\n var months;\n var milliseconds = this._milliseconds;\n units = normalizeUnits(units);\n\n if (units === 'month' || units === 'quarter' || units === 'year') {\n days = this._days + milliseconds / 864e5;\n months = this._months + daysToMonths(days);\n\n switch (units) {\n case 'month':\n return months;\n\n case 'quarter':\n return months / 3;\n\n case 'year':\n return months / 12;\n }\n } else {\n // handle milliseconds separately because of floating point math errors (issue #1867)\n days = this._days + Math.round(monthsToDays(this._months));\n\n switch (units) {\n case 'week':\n return days / 7 + milliseconds / 6048e5;\n\n case 'day':\n return days + milliseconds / 864e5;\n\n case 'hour':\n return days * 24 + milliseconds / 36e5;\n\n case 'minute':\n return days * 1440 + milliseconds / 6e4;\n\n case 'second':\n return days * 86400 + milliseconds / 1000;\n // Math.floor prevents floating point math errors here\n\n case 'millisecond':\n return Math.floor(days * 864e5) + milliseconds;\n\n default:\n throw new Error('Unknown unit ' + units);\n }\n }\n } // TODO: Use this.as('ms')?\n\n\n function valueOf$1() {\n if (!this.isValid()) {\n return NaN;\n }\n\n return this._milliseconds + this._days * 864e5 + this._months % 12 * 2592e6 + toInt(this._months / 12) * 31536e6;\n }\n\n function makeAs(alias) {\n return function () {\n return this.as(alias);\n };\n }\n\n var asMilliseconds = makeAs('ms');\n var asSeconds = makeAs('s');\n var asMinutes = makeAs('m');\n var asHours = makeAs('h');\n var asDays = makeAs('d');\n var asWeeks = makeAs('w');\n var asMonths = makeAs('M');\n var asQuarters = makeAs('Q');\n var asYears = makeAs('y');\n\n function clone$1() {\n return createDuration(this);\n }\n\n function get$2(units) {\n units = normalizeUnits(units);\n return this.isValid() ? this[units + 's']() : NaN;\n }\n\n function makeGetter(name) {\n return function () {\n return this.isValid() ? this._data[name] : NaN;\n };\n }\n\n var milliseconds = makeGetter('milliseconds');\n var seconds = makeGetter('seconds');\n var minutes = makeGetter('minutes');\n var hours = makeGetter('hours');\n var days = makeGetter('days');\n var months = makeGetter('months');\n var years = makeGetter('years');\n\n function weeks() {\n return absFloor(this.days() / 7);\n }\n\n var round = Math.round;\n var thresholds = {\n ss: 44,\n // a few seconds to seconds\n s: 45,\n // seconds to minute\n m: 45,\n // minutes to hour\n h: 22,\n // hours to day\n d: 26,\n // days to month\n M: 11 // months to year\n\n }; // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize\n\n function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {\n return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);\n }\n\n function relativeTime$1(posNegDuration, withoutSuffix, locale) {\n var duration = createDuration(posNegDuration).abs();\n var seconds = round(duration.as('s'));\n var minutes = round(duration.as('m'));\n var hours = round(duration.as('h'));\n var days = round(duration.as('d'));\n var months = round(duration.as('M'));\n var years = round(duration.as('y'));\n var a = seconds <= thresholds.ss && ['s', seconds] || seconds < thresholds.s && ['ss', seconds] || minutes <= 1 && ['m'] || minutes < thresholds.m && ['mm', minutes] || hours <= 1 && ['h'] || hours < thresholds.h && ['hh', hours] || days <= 1 && ['d'] || days < thresholds.d && ['dd', days] || months <= 1 && ['M'] || months < thresholds.M && ['MM', months] || years <= 1 && ['y'] || ['yy', years];\n a[2] = withoutSuffix;\n a[3] = +posNegDuration > 0;\n a[4] = locale;\n return substituteTimeAgo.apply(null, a);\n } // This function allows you to set the rounding function for relative time strings\n\n\n function getSetRelativeTimeRounding(roundingFunction) {\n if (roundingFunction === undefined) {\n return round;\n }\n\n if (typeof roundingFunction === 'function') {\n round = roundingFunction;\n return true;\n }\n\n return false;\n } // This function allows you to set a threshold for relative time strings\n\n\n function getSetRelativeTimeThreshold(threshold, limit) {\n if (thresholds[threshold] === undefined) {\n return false;\n }\n\n if (limit === undefined) {\n return thresholds[threshold];\n }\n\n thresholds[threshold] = limit;\n\n if (threshold === 's') {\n thresholds.ss = limit - 1;\n }\n\n return true;\n }\n\n function humanize(withSuffix) {\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var locale = this.localeData();\n var output = relativeTime$1(this, !withSuffix, locale);\n\n if (withSuffix) {\n output = locale.pastFuture(+this, output);\n }\n\n return locale.postformat(output);\n }\n\n var abs$1 = Math.abs;\n\n function sign(x) {\n return (x > 0) - (x < 0) || +x;\n }\n\n function toISOString$1() {\n // for ISO strings we do not use the normal bubbling rules:\n // * milliseconds bubble up until they become hours\n // * days do not bubble at all\n // * months bubble up until they become years\n // This is because there is no context-free conversion between hours and days\n // (think of clock changes)\n // and also not between days and months (28-31 days per month)\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var seconds = abs$1(this._milliseconds) / 1000;\n var days = abs$1(this._days);\n var months = abs$1(this._months);\n var minutes, hours, years; // 3600 seconds -> 60 minutes -> 1 hour\n\n minutes = absFloor(seconds / 60);\n hours = absFloor(minutes / 60);\n seconds %= 60;\n minutes %= 60; // 12 months -> 1 year\n\n years = absFloor(months / 12);\n months %= 12; // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js\n\n var Y = years;\n var M = months;\n var D = days;\n var h = hours;\n var m = minutes;\n var s = seconds ? seconds.toFixed(3).replace(/\\.?0+$/, '') : '';\n var total = this.asSeconds();\n\n if (!total) {\n // this is the same as C#'s (Noda) and python (isodate)...\n // but not other JS (goog.date)\n return 'P0D';\n }\n\n var totalSign = total < 0 ? '-' : '';\n var ymSign = sign(this._months) !== sign(total) ? '-' : '';\n var daysSign = sign(this._days) !== sign(total) ? '-' : '';\n var hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';\n return totalSign + 'P' + (Y ? ymSign + Y + 'Y' : '') + (M ? ymSign + M + 'M' : '') + (D ? daysSign + D + 'D' : '') + (h || m || s ? 'T' : '') + (h ? hmsSign + h + 'H' : '') + (m ? hmsSign + m + 'M' : '') + (s ? hmsSign + s + 'S' : '');\n }\n\n var proto$2 = Duration.prototype;\n proto$2.isValid = isValid$1;\n proto$2.abs = abs;\n proto$2.add = add$1;\n proto$2.subtract = subtract$1;\n proto$2.as = as;\n proto$2.asMilliseconds = asMilliseconds;\n proto$2.asSeconds = asSeconds;\n proto$2.asMinutes = asMinutes;\n proto$2.asHours = asHours;\n proto$2.asDays = asDays;\n proto$2.asWeeks = asWeeks;\n proto$2.asMonths = asMonths;\n proto$2.asQuarters = asQuarters;\n proto$2.asYears = asYears;\n proto$2.valueOf = valueOf$1;\n proto$2._bubble = bubble;\n proto$2.clone = clone$1;\n proto$2.get = get$2;\n proto$2.milliseconds = milliseconds;\n proto$2.seconds = seconds;\n proto$2.minutes = minutes;\n proto$2.hours = hours;\n proto$2.days = days;\n proto$2.weeks = weeks;\n proto$2.months = months;\n proto$2.years = years;\n proto$2.humanize = humanize;\n proto$2.toISOString = toISOString$1;\n proto$2.toString = toISOString$1;\n proto$2.toJSON = toISOString$1;\n proto$2.locale = locale;\n proto$2.localeData = localeData;\n proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1);\n proto$2.lang = lang; // Side effect imports\n // FORMATTING\n\n addFormatToken('X', 0, 0, 'unix');\n addFormatToken('x', 0, 0, 'valueOf'); // PARSING\n\n addRegexToken('x', matchSigned);\n addRegexToken('X', matchTimestamp);\n addParseToken('X', function (input, array, config) {\n config._d = new Date(parseFloat(input, 10) * 1000);\n });\n addParseToken('x', function (input, array, config) {\n config._d = new Date(toInt(input));\n }); // Side effect imports\n\n hooks.version = '2.24.0';\n setHookCallback(createLocal);\n hooks.fn = proto;\n hooks.min = min;\n hooks.max = max;\n hooks.now = now;\n hooks.utc = createUTC;\n hooks.unix = createUnix;\n hooks.months = listMonths;\n hooks.isDate = isDate;\n hooks.locale = getSetGlobalLocale;\n hooks.invalid = createInvalid;\n hooks.duration = createDuration;\n hooks.isMoment = isMoment;\n hooks.weekdays = listWeekdays;\n hooks.parseZone = createInZone;\n hooks.localeData = getLocale;\n hooks.isDuration = isDuration;\n hooks.monthsShort = listMonthsShort;\n hooks.weekdaysMin = listWeekdaysMin;\n hooks.defineLocale = defineLocale;\n hooks.updateLocale = updateLocale;\n hooks.locales = listLocales;\n hooks.weekdaysShort = listWeekdaysShort;\n hooks.normalizeUnits = normalizeUnits;\n hooks.relativeTimeRounding = getSetRelativeTimeRounding;\n hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;\n hooks.calendarFormat = getCalendarFormat;\n hooks.prototype = proto; // currently HTML5 input type only supports 24-hour formats\n\n hooks.HTML5_FMT = {\n DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm',\n // \n DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss',\n // \n DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS',\n // \n DATE: 'YYYY-MM-DD',\n // \n TIME: 'HH:mm',\n // \n TIME_SECONDS: 'HH:mm:ss',\n // \n TIME_MS: 'HH:mm:ss.SSS',\n // \n WEEK: 'GGGG-[W]WW',\n // \n MONTH: 'YYYY-MM' // \n\n };\n return hooks;\n});","function makeTypeChecker(tabsRole) {\n return function (element) {\n return !!element.type && element.type.tabsRole === tabsRole;\n };\n}\n\nexport var isTab = makeTypeChecker('Tab');\nexport var isTabList = makeTypeChecker('TabList');\nexport var isTabPanel = makeTypeChecker('TabPanel');","function ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nimport { Children, cloneElement } from 'react';\nimport { isTabPanel, isTab, isTabList } from './elementTypes';\n\nfunction isTabChild(child) {\n return isTab(child) || isTabList(child) || isTabPanel(child);\n}\n\nexport function deepMap(children, callback) {\n return Children.map(children, function (child) {\n // null happens when conditionally rendering TabPanel/Tab\n // see https://github.com/reactjs/react-tabs/issues/37\n if (child === null) return null;\n\n if (isTabChild(child)) {\n return callback(child);\n }\n\n if (child.props && child.props.children && typeof child.props.children === 'object') {\n // Clone the child that has children and map them too\n return cloneElement(child, _objectSpread({}, child.props, {\n children: deepMap(child.props.children, callback)\n }));\n }\n\n return child;\n });\n}\nexport function deepForEach(children, callback) {\n return Children.forEach(children, function (child) {\n // null happens when conditionally rendering TabPanel/Tab\n // see https://github.com/reactjs/react-tabs/issues/37\n if (child === null) return;\n\n if (isTab(child) || isTabPanel(child)) {\n callback(child);\n } else if (child.props && child.props.children && typeof child.props.children === 'object') {\n if (isTabList(child)) callback(child);\n deepForEach(child.props.children, callback);\n }\n });\n}","function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\nimport PropTypes from 'prop-types';\nimport React, { cloneElement, Component } from 'react';\nimport cx from 'classnames';\nimport uuid from '../helpers/uuid';\nimport { childrenPropType } from '../helpers/propTypes';\nimport { getPanelsCount as _getPanelsCount, getTabsCount as _getTabsCount } from '../helpers/count';\nimport { deepMap } from '../helpers/childrenDeepMap';\nimport { isTabList, isTabPanel, isTab } from '../helpers/elementTypes';\n\nfunction isNode(node) {\n return node && 'getAttribute' in node;\n} // Determine if a node from event.target is a Tab element\n\n\nfunction isTabNode(node) {\n return isNode(node) && node.getAttribute('role') === 'tab';\n} // Determine if a tab node is disabled\n\n\nfunction isTabDisabled(node) {\n return isNode(node) && node.getAttribute('aria-disabled') === 'true';\n}\n\nvar canUseActiveElement;\n\ntry {\n canUseActiveElement = !!(typeof window !== 'undefined' && window.document && window.document.activeElement);\n} catch (e) {\n // Work around for IE bug when accessing document.activeElement in an iframe\n // Refer to the following resources:\n // http://stackoverflow.com/a/10982960/369687\n // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12733599\n canUseActiveElement = false;\n}\n\nvar UncontrolledTabs = /*#__PURE__*/function (_Component) {\n _inheritsLoose(UncontrolledTabs, _Component);\n\n function UncontrolledTabs() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _Component.call.apply(_Component, [this].concat(args)) || this;\n _this.tabNodes = [];\n\n _this.handleKeyDown = function (e) {\n var direction = _this.props.direction;\n\n if (_this.isTabFromContainer(e.target)) {\n var index = _this.props.selectedIndex;\n var preventDefault = false;\n var useSelectedIndex = false;\n\n if (e.keyCode === 32 || e.keyCode === 13) {\n preventDefault = true;\n useSelectedIndex = false;\n\n _this.handleClick(e);\n }\n\n if (e.keyCode === 37 || e.keyCode === 38) {\n // Select next tab to the left\n if (direction === 'rtl') {\n index = _this.getNextTab(index);\n } else {\n index = _this.getPrevTab(index);\n }\n\n preventDefault = true;\n useSelectedIndex = true;\n } else if (e.keyCode === 39 || e.keyCode === 40) {\n // Select next tab to the right\n if (direction === 'rtl') {\n index = _this.getPrevTab(index);\n } else {\n index = _this.getNextTab(index);\n }\n\n preventDefault = true;\n useSelectedIndex = true;\n } else if (e.keyCode === 35) {\n // Select last tab (End key)\n index = _this.getLastTab();\n preventDefault = true;\n useSelectedIndex = true;\n } else if (e.keyCode === 36) {\n // Select first tab (Home key)\n index = _this.getFirstTab();\n preventDefault = true;\n useSelectedIndex = true;\n } // This prevents scrollbars from moving around\n\n\n if (preventDefault) {\n e.preventDefault();\n } // Only use the selected index in the state if we're not using the tabbed index\n\n\n if (useSelectedIndex) {\n _this.setSelected(index, e);\n }\n }\n };\n\n _this.handleClick = function (e) {\n var node = e.target;\n\n do {\n if (_this.isTabFromContainer(node)) {\n if (isTabDisabled(node)) {\n return;\n }\n\n var index = [].slice.call(node.parentNode.children).filter(isTabNode).indexOf(node);\n\n _this.setSelected(index, e);\n\n return;\n } // eslint-disable-next-line no-cond-assign\n\n } while ((node = node.parentNode) != null);\n };\n\n return _this;\n }\n\n var _proto = UncontrolledTabs.prototype;\n\n _proto.setSelected = function setSelected(index, event) {\n // Check index boundary\n if (index < 0 || index >= this.getTabsCount()) return;\n var _this$props = this.props,\n onSelect = _this$props.onSelect,\n selectedIndex = _this$props.selectedIndex; // Call change event handler\n\n onSelect(index, selectedIndex, event);\n };\n\n _proto.getNextTab = function getNextTab(index) {\n var count = this.getTabsCount(); // Look for non-disabled tab from index to the last tab on the right\n\n for (var i = index + 1; i < count; i++) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n } // If no tab found, continue searching from first on left to index\n\n\n for (var _i = 0; _i < index; _i++) {\n if (!isTabDisabled(this.getTab(_i))) {\n return _i;\n }\n } // No tabs are disabled, return index\n\n\n return index;\n };\n\n _proto.getPrevTab = function getPrevTab(index) {\n var i = index; // Look for non-disabled tab from index to first tab on the left\n\n while (i--) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n } // If no tab found, continue searching from last tab on right to index\n\n\n i = this.getTabsCount();\n\n while (i-- > index) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n } // No tabs are disabled, return index\n\n\n return index;\n };\n\n _proto.getFirstTab = function getFirstTab() {\n var count = this.getTabsCount(); // Look for non disabled tab from the first tab\n\n for (var i = 0; i < count; i++) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n return null;\n };\n\n _proto.getLastTab = function getLastTab() {\n var i = this.getTabsCount(); // Look for non disabled tab from the last tab\n\n while (i--) {\n if (!isTabDisabled(this.getTab(i))) {\n return i;\n }\n }\n\n return null;\n };\n\n _proto.getTabsCount = function getTabsCount() {\n var children = this.props.children;\n return _getTabsCount(children);\n };\n\n _proto.getPanelsCount = function getPanelsCount() {\n var children = this.props.children;\n return _getPanelsCount(children);\n };\n\n _proto.getTab = function getTab(index) {\n return this.tabNodes[\"tabs-\" + index];\n };\n\n _proto.getChildren = function getChildren() {\n var _this2 = this;\n\n var index = 0;\n var _this$props2 = this.props,\n children = _this$props2.children,\n disabledTabClassName = _this$props2.disabledTabClassName,\n focus = _this$props2.focus,\n forceRenderTabPanel = _this$props2.forceRenderTabPanel,\n selectedIndex = _this$props2.selectedIndex,\n selectedTabClassName = _this$props2.selectedTabClassName,\n selectedTabPanelClassName = _this$props2.selectedTabPanelClassName;\n this.tabIds = this.tabIds || [];\n this.panelIds = this.panelIds || [];\n var diff = this.tabIds.length - this.getTabsCount(); // Add ids if new tabs have been added\n // Don't bother removing ids, just keep them in case they are added again\n // This is more efficient, and keeps the uuid counter under control\n\n while (diff++ < 0) {\n this.tabIds.push(uuid());\n this.panelIds.push(uuid());\n } // Map children to dynamically setup refs\n\n\n return deepMap(children, function (child) {\n var result = child; // Clone TabList and Tab components to have refs\n\n if (isTabList(child)) {\n var listIndex = 0; // Figure out if the current focus in the DOM is set on a Tab\n // If it is we should keep the focus on the next selected tab\n\n var wasTabFocused = false;\n\n if (canUseActiveElement) {\n wasTabFocused = React.Children.toArray(child.props.children).filter(isTab).some(function (tab, i) {\n return document.activeElement === _this2.getTab(i);\n });\n }\n\n result = cloneElement(child, {\n children: deepMap(child.props.children, function (tab) {\n var key = \"tabs-\" + listIndex;\n var selected = selectedIndex === listIndex;\n var props = {\n tabRef: function tabRef(node) {\n _this2.tabNodes[key] = node;\n },\n id: _this2.tabIds[listIndex],\n panelId: _this2.panelIds[listIndex],\n selected: selected,\n focus: selected && (focus || wasTabFocused)\n };\n if (selectedTabClassName) props.selectedClassName = selectedTabClassName;\n if (disabledTabClassName) props.disabledClassName = disabledTabClassName;\n listIndex++;\n return cloneElement(tab, props);\n })\n });\n } else if (isTabPanel(child)) {\n var props = {\n id: _this2.panelIds[index],\n tabId: _this2.tabIds[index],\n selected: selectedIndex === index\n };\n if (forceRenderTabPanel) props.forceRender = forceRenderTabPanel;\n if (selectedTabPanelClassName) props.selectedClassName = selectedTabPanelClassName;\n index++;\n result = cloneElement(child, props);\n }\n\n return result;\n });\n };\n /**\n * Determine if a node from event.target is a Tab element for the current Tabs container.\n * If the clicked element is not a Tab, it returns false.\n * If it finds another Tabs container between the Tab and `this`, it returns false.\n */\n\n\n _proto.isTabFromContainer = function isTabFromContainer(node) {\n // return immediately if the clicked element is not a Tab.\n if (!isTabNode(node)) {\n return false;\n } // Check if the first occurrence of a Tabs container is `this` one.\n\n\n var nodeAncestor = node.parentElement;\n\n do {\n if (nodeAncestor === this.node) return true;\n if (nodeAncestor.getAttribute('data-tabs')) break;\n nodeAncestor = nodeAncestor.parentElement;\n } while (nodeAncestor);\n\n return false;\n };\n\n _proto.render = function render() {\n var _this3 = this; // Delete all known props, so they don't get added to DOM\n\n\n var _this$props3 = this.props,\n children = _this$props3.children,\n className = _this$props3.className,\n disabledTabClassName = _this$props3.disabledTabClassName,\n domRef = _this$props3.domRef,\n focus = _this$props3.focus,\n forceRenderTabPanel = _this$props3.forceRenderTabPanel,\n onSelect = _this$props3.onSelect,\n selectedIndex = _this$props3.selectedIndex,\n selectedTabClassName = _this$props3.selectedTabClassName,\n selectedTabPanelClassName = _this$props3.selectedTabPanelClassName,\n attributes = _objectWithoutPropertiesLoose(_this$props3, [\"children\", \"className\", \"disabledTabClassName\", \"domRef\", \"focus\", \"forceRenderTabPanel\", \"onSelect\", \"selectedIndex\", \"selectedTabClassName\", \"selectedTabPanelClassName\"]);\n\n return React.createElement(\"div\", _extends({}, attributes, {\n className: cx(className),\n onClick: this.handleClick,\n onKeyDown: this.handleKeyDown,\n ref: function ref(node) {\n _this3.node = node;\n if (domRef) domRef(node);\n },\n \"data-tabs\": true\n }), this.getChildren());\n };\n\n return UncontrolledTabs;\n}(Component);\n\nUncontrolledTabs.defaultProps = {\n className: 'react-tabs',\n focus: false\n};\nexport { UncontrolledTabs as default };\nUncontrolledTabs.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: childrenPropType,\n direction: PropTypes.oneOf(['rtl', 'ltr']),\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n disabledTabClassName: PropTypes.string,\n domRef: PropTypes.func,\n focus: PropTypes.bool,\n forceRenderTabPanel: PropTypes.bool,\n onSelect: PropTypes.func.isRequired,\n selectedIndex: PropTypes.number.isRequired,\n selectedTabClassName: PropTypes.string,\n selectedTabPanelClassName: PropTypes.string\n} : {};","// Get a universally unique identifier\nvar count = 0;\nexport default function uuid() {\n return \"react-tabs-\" + count++;\n}\nexport function reset() {\n count = 0;\n}","import { deepForEach } from './childrenDeepMap';\nimport { isTab, isTabPanel } from './elementTypes';\nexport function getTabsCount(children) {\n var tabCount = 0;\n deepForEach(children, function (child) {\n if (isTab(child)) tabCount++;\n });\n return tabCount;\n}\nexport function getPanelsCount(children) {\n var panelCount = 0;\n deepForEach(children, function (child) {\n if (isTabPanel(child)) panelCount++;\n });\n return panelCount;\n}","function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\nimport PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport { childrenPropType, onSelectPropType, selectedIndexPropType } from '../helpers/propTypes';\nimport UncontrolledTabs from './UncontrolledTabs';\nimport { getTabsCount } from '../helpers/count';\nvar MODE_CONTROLLED = 0;\nvar MODE_UNCONTROLLED = 1;\n\nvar Tabs = /*#__PURE__*/function (_Component) {\n _inheritsLoose(Tabs, _Component);\n\n function Tabs(props) {\n var _this;\n\n _this = _Component.call(this, props) || this;\n\n _this.handleSelected = function (index, last, event) {\n var onSelect = _this.props.onSelect;\n var mode = _this.state.mode; // Call change event handler\n\n if (typeof onSelect === 'function') {\n // Check if the change event handler cancels the tab change\n if (onSelect(index, last, event) === false) return;\n }\n\n var state = {\n // Set focus if the change was triggered from the keyboard\n focus: event.type === 'keydown'\n };\n\n if (mode === MODE_UNCONTROLLED) {\n // Update selected index\n state.selectedIndex = index;\n }\n\n _this.setState(state);\n };\n\n _this.state = Tabs.copyPropsToState(_this.props, {}, props.defaultFocus);\n return _this;\n }\n\n Tabs.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {\n return Tabs.copyPropsToState(props, state);\n };\n\n Tabs.getModeFromProps = function getModeFromProps(props) {\n return props.selectedIndex === null ? MODE_UNCONTROLLED : MODE_CONTROLLED;\n }; // preserve the existing selectedIndex from state.\n // If the state has not selectedIndex, default to the defaultIndex or 0\n\n\n Tabs.copyPropsToState = function copyPropsToState(props, state, focus) {\n if (focus === void 0) {\n focus = false;\n }\n\n if (process.env.NODE_ENV !== 'production' && state.mode !== undefined && state.mode !== Tabs.getModeFromProps(props)) {\n throw new Error(\"Switching between controlled mode (by using `selectedIndex`) and uncontrolled mode is not supported in `Tabs`.\\nFor more information about controlled and uncontrolled mode of react-tabs see the README.\");\n }\n\n var newState = {\n focus: focus,\n mode: Tabs.getModeFromProps(props)\n };\n\n if (newState.mode === MODE_UNCONTROLLED) {\n var maxTabIndex = getTabsCount(props.children) - 1;\n var selectedIndex = null;\n\n if (state.selectedIndex != null) {\n selectedIndex = Math.min(state.selectedIndex, maxTabIndex);\n } else {\n selectedIndex = props.defaultIndex || 0;\n }\n\n newState.selectedIndex = selectedIndex;\n }\n\n return newState;\n };\n\n var _proto = Tabs.prototype;\n\n _proto.render = function render() {\n var _this$props = this.props,\n children = _this$props.children,\n defaultIndex = _this$props.defaultIndex,\n defaultFocus = _this$props.defaultFocus,\n props = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"defaultIndex\", \"defaultFocus\"]);\n\n var _this$state = this.state,\n focus = _this$state.focus,\n selectedIndex = _this$state.selectedIndex;\n props.focus = focus;\n props.onSelect = this.handleSelected;\n\n if (selectedIndex != null) {\n props.selectedIndex = selectedIndex;\n }\n\n return React.createElement(UncontrolledTabs, props, children);\n };\n\n return Tabs;\n}(Component);\n\nTabs.defaultProps = {\n defaultFocus: false,\n forceRenderTabPanel: false,\n selectedIndex: null,\n defaultIndex: null\n};\nexport { Tabs as default };\nTabs.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: childrenPropType,\n direction: PropTypes.oneOf(['rtl', 'ltr']),\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n defaultFocus: PropTypes.bool,\n defaultIndex: PropTypes.number,\n disabledTabClassName: PropTypes.string,\n domRef: PropTypes.func,\n forceRenderTabPanel: PropTypes.bool,\n onSelect: onSelectPropType,\n selectedIndex: selectedIndexPropType,\n selectedTabClassName: PropTypes.string,\n selectedTabPanelClassName: PropTypes.string\n} : {};\nTabs.tabsRole = 'Tabs';","function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\nimport PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport cx from 'classnames';\n\nvar TabList = /*#__PURE__*/function (_Component) {\n _inheritsLoose(TabList, _Component);\n\n function TabList() {\n return _Component.apply(this, arguments) || this;\n }\n\n var _proto = TabList.prototype;\n\n _proto.render = function render() {\n var _this$props = this.props,\n children = _this$props.children,\n className = _this$props.className,\n attributes = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"className\"]);\n\n return React.createElement(\"ul\", _extends({}, attributes, {\n className: cx(className),\n role: \"tablist\"\n }), children);\n };\n\n return TabList;\n}(Component);\n\nTabList.defaultProps = {\n className: 'react-tabs__tab-list'\n};\nexport { TabList as default };\nTabList.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object])\n} : {};\nTabList.tabsRole = 'TabList';","function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\nimport PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport cx from 'classnames';\nvar DEFAULT_CLASS = 'react-tabs__tab';\n\nvar Tab = /*#__PURE__*/function (_Component) {\n _inheritsLoose(Tab, _Component);\n\n function Tab() {\n return _Component.apply(this, arguments) || this;\n }\n\n var _proto = Tab.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.checkFocus();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n this.checkFocus();\n };\n\n _proto.checkFocus = function checkFocus() {\n var _this$props = this.props,\n selected = _this$props.selected,\n focus = _this$props.focus;\n\n if (selected && focus) {\n this.node.focus();\n }\n };\n\n _proto.render = function render() {\n var _cx,\n _this = this;\n\n var _this$props2 = this.props,\n children = _this$props2.children,\n className = _this$props2.className,\n disabled = _this$props2.disabled,\n disabledClassName = _this$props2.disabledClassName,\n focus = _this$props2.focus,\n id = _this$props2.id,\n panelId = _this$props2.panelId,\n selected = _this$props2.selected,\n selectedClassName = _this$props2.selectedClassName,\n tabIndex = _this$props2.tabIndex,\n tabRef = _this$props2.tabRef,\n attributes = _objectWithoutPropertiesLoose(_this$props2, [\"children\", \"className\", \"disabled\", \"disabledClassName\", \"focus\", \"id\", \"panelId\", \"selected\", \"selectedClassName\", \"tabIndex\", \"tabRef\"]);\n\n return React.createElement(\"li\", _extends({}, attributes, {\n className: cx(className, (_cx = {}, _cx[selectedClassName] = selected, _cx[disabledClassName] = disabled, _cx)),\n ref: function ref(node) {\n _this.node = node;\n if (tabRef) tabRef(node);\n },\n role: \"tab\",\n id: id,\n \"aria-selected\": selected ? 'true' : 'false',\n \"aria-disabled\": disabled ? 'true' : 'false',\n \"aria-controls\": panelId,\n tabIndex: tabIndex || (selected ? '0' : null)\n }), children);\n };\n\n return Tab;\n}(Component);\n\nTab.defaultProps = {\n className: DEFAULT_CLASS,\n disabledClassName: DEFAULT_CLASS + \"--disabled\",\n focus: false,\n id: null,\n panelId: null,\n selected: false,\n selectedClassName: DEFAULT_CLASS + \"--selected\"\n};\nexport { Tab as default };\nTab.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: PropTypes.oneOfType([PropTypes.array, PropTypes.object, PropTypes.string]),\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n disabled: PropTypes.bool,\n tabIndex: PropTypes.string,\n disabledClassName: PropTypes.string,\n focus: PropTypes.bool,\n // private\n id: PropTypes.string,\n // private\n panelId: PropTypes.string,\n // private\n selected: PropTypes.bool,\n // private\n selectedClassName: PropTypes.string,\n tabRef: PropTypes.func // private\n\n} : {};\nTab.tabsRole = 'Tab';","function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n subClass.__proto__ = superClass;\n}\n\nimport PropTypes from 'prop-types';\nimport React, { Component } from 'react';\nimport cx from 'classnames';\nvar DEFAULT_CLASS = 'react-tabs__tab-panel';\n\nvar TabPanel = /*#__PURE__*/function (_Component) {\n _inheritsLoose(TabPanel, _Component);\n\n function TabPanel() {\n return _Component.apply(this, arguments) || this;\n }\n\n var _proto = TabPanel.prototype;\n\n _proto.render = function render() {\n var _cx;\n\n var _this$props = this.props,\n children = _this$props.children,\n className = _this$props.className,\n forceRender = _this$props.forceRender,\n id = _this$props.id,\n selected = _this$props.selected,\n selectedClassName = _this$props.selectedClassName,\n tabId = _this$props.tabId,\n attributes = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"className\", \"forceRender\", \"id\", \"selected\", \"selectedClassName\", \"tabId\"]);\n\n return React.createElement(\"div\", _extends({}, attributes, {\n className: cx(className, (_cx = {}, _cx[selectedClassName] = selected, _cx)),\n role: \"tabpanel\",\n id: id,\n \"aria-labelledby\": tabId\n }), forceRender || selected ? children : null);\n };\n\n return TabPanel;\n}(Component);\n\nTabPanel.defaultProps = {\n className: DEFAULT_CLASS,\n forceRender: false,\n selectedClassName: DEFAULT_CLASS + \"--selected\"\n};\nexport { TabPanel as default };\nTabPanel.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: PropTypes.node,\n className: PropTypes.oneOfType([PropTypes.string, PropTypes.array, PropTypes.object]),\n forceRender: PropTypes.bool,\n id: PropTypes.string,\n // private\n selected: PropTypes.bool,\n // private\n selectedClassName: PropTypes.string,\n tabId: PropTypes.string // private\n\n} : {};\nTabPanel.tabsRole = 'TabPanel';","export { default as Tabs } from './components/Tabs';\nexport { default as TabList } from './components/TabList';\nexport { default as Tab } from './components/Tab';\nexport { default as TabPanel } from './components/TabPanel';\nexport { reset as resetIdCounter } from './helpers/uuid';","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n'use strict';\n\nvar _assign = require('object-assign');\n\nvar ReactCurrentOwner = require('./ReactCurrentOwner');\n\nvar warning = require('fbjs/lib/warning');\n\nvar canDefineProperty = require('./canDefineProperty');\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar REACT_ELEMENT_TYPE = require('./ReactElementSymbol');\n\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown, specialPropRefWarningShown;\n\nfunction hasValidRef(config) {\n if (process.env.NODE_ENV !== 'production') {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n if (process.env.NODE_ENV !== 'production') {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n var warnAboutAccessingKey = function warnAboutAccessingKey() {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n process.env.NODE_ENV !== 'production' ? warning(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : void 0;\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n var warnAboutAccessingRef = function warnAboutAccessingRef() {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n process.env.NODE_ENV !== 'production' ? warning(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : void 0;\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, no instanceof check\n * will work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} key\n * @param {string|object} ref\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @param {*} owner\n * @param {*} props\n * @internal\n */\n\n\nvar ReactElement = function ReactElement(type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allow us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n if (process.env.NODE_ENV !== 'production') {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n if (canDefineProperty) {\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n } else {\n element._store.validated = false;\n element._self = self;\n element._source = source;\n }\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * Create and return a new ReactElement of the given type.\n * See https://facebook.github.io/react/docs/top-level-api.html#react.createelement\n */\n\n\nReactElement.createElement = function (type, config, children) {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null;\n var self = null;\n var source = null;\n\n if (config != null) {\n if (hasValidRef(config)) {\n ref = config.ref;\n }\n\n if (hasValidKey(config)) {\n key = '' + config.key;\n }\n\n self = config.__self === undefined ? null : config.__self;\n source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n }\n } // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n\n\n var childrenLength = arguments.length - 2;\n\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (Object.freeze) {\n Object.freeze(childArray);\n }\n }\n\n props.children = childArray;\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (key || ref) {\n if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n};\n/**\n * Return a function that produces ReactElements of a given type.\n * See https://facebook.github.io/react/docs/top-level-api.html#react.createfactory\n */\n\n\nReactElement.createFactory = function (type) {\n var factory = ReactElement.createElement.bind(null, type); // Expose the type on the factory and the prototype so that it can be\n // easily accessed on elements. E.g. `.type === Foo`.\n // This should not be named `constructor` since this may not be the function\n // that created the element, and it may not even be a constructor.\n // Legacy hook TODO: Warn if this is accessed\n\n factory.type = type;\n return factory;\n};\n\nReactElement.cloneAndReplaceKey = function (oldElement, newKey) {\n var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);\n return newElement;\n};\n/**\n * Clone and return a new ReactElement using element as the starting point.\n * See https://facebook.github.io/react/docs/top-level-api.html#react.cloneelement\n */\n\n\nReactElement.cloneElement = function (element, config, children) {\n var propName; // Original props are copied\n\n var props = _assign({}, element.props); // Reserved names are extracted\n\n\n var key = element.key;\n var ref = element.ref; // Self is preserved since the owner is preserved.\n\n var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a\n // transpiler, and the original source is probably a better indicator of the\n // true owner.\n\n var source = element._source; // Owner will be preserved, unless ref is overridden\n\n var owner = element._owner;\n\n if (config != null) {\n if (hasValidRef(config)) {\n // Silently steal the ref from the parent.\n ref = config.ref;\n owner = ReactCurrentOwner.current;\n }\n\n if (hasValidKey(config)) {\n key = '' + config.key;\n } // Remaining properties override existing props\n\n\n var defaultProps;\n\n if (element.type && element.type.defaultProps) {\n defaultProps = element.type.defaultProps;\n }\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n if (config[propName] === undefined && defaultProps !== undefined) {\n // Resolve default props\n props[propName] = defaultProps[propName];\n } else {\n props[propName] = config[propName];\n }\n }\n }\n } // Children can be more than one argument, and those are transferred onto\n // the newly allocated props object.\n\n\n var childrenLength = arguments.length - 2;\n\n if (childrenLength === 1) {\n props.children = children;\n } else if (childrenLength > 1) {\n var childArray = Array(childrenLength);\n\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 2];\n }\n\n props.children = childArray;\n }\n\n return ReactElement(element.type, key, ref, self, source, owner, props);\n};\n/**\n * Verifies the object is a ReactElement.\n * See https://facebook.github.io/react/docs/top-level-api.html#react.isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a valid component.\n * @final\n */\n\n\nReactElement.isValidElement = function (object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n};\n\nmodule.exports = ReactElement;","var g; // This works in non-strict mode\n\ng = function () {\n return this;\n}();\n\ntry {\n // This works if eval is allowed (see CSP)\n g = g || new Function(\"return this\")();\n} catch (e) {\n // This works if the window reference is available\n if (typeof window === \"object\") g = window;\n} // g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\n\nmodule.exports = g;","// ag-grid-react v28.1.1\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports.showJsComp = function (compDetails, context, eParent, ref) {\n var doNothing = !compDetails || compDetails.componentFromFramework;\n\n if (doNothing) {\n return;\n }\n\n var promise = compDetails.newAgStackInstance();\n\n if (!promise) {\n return;\n } // almost all JS Comps are NOT async, however the Floating Multi Filter is Async as it could\n // be wrapping a React filter, so we need to cater for async comps here.\n\n\n var comp;\n var compGui;\n var destroyed = false;\n promise.then(function (c) {\n if (destroyed) {\n context.destroyBean(c);\n return;\n }\n\n comp = c;\n compGui = comp.getGui();\n eParent.appendChild(compGui);\n setRef(ref, comp);\n });\n return function () {\n destroyed = true;\n\n if (!comp) {\n return;\n } // in case we were destroyed before async comp was returned\n\n\n if (compGui && compGui.parentElement) {\n compGui.parentElement.removeChild(compGui);\n }\n\n context.destroyBean(comp);\n\n if (ref) {\n setRef(ref, undefined);\n }\n };\n};\n\nvar setRef = function setRef(ref, value) {\n if (!ref) {\n return;\n }\n\n if (ref instanceof Function) {\n var refCallback = ref;\n refCallback(value);\n } else {\n var refObj = ref;\n refObj.current = value;\n }\n};\n\nexports.createSyncJsComp = function (compDetails) {\n var promise = compDetails.newAgStackInstance();\n\n if (!promise) {\n return;\n }\n\n return promise.resolveNow(null, function (x) {\n return x;\n }); // js comps are never async\n};","export default function _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || value !== value && other !== other;\n}\n\nexport default eq;","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n\n return result;\n}\n\nexport default arrayMap;","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nexport default isLength;","/* jshint node: true */\n\"use strict\";\n\nfunction makeArrayFrom(obj) {\n return Array.prototype.slice.apply(obj);\n}\n\nvar PENDING = \"pending\",\n RESOLVED = \"resolved\",\n REJECTED = \"rejected\";\n\nfunction SynchronousPromise(handler) {\n this.status = PENDING;\n this._continuations = [];\n this._parent = null;\n this._paused = false;\n\n if (handler) {\n handler.call(this, this._continueWith.bind(this), this._failWith.bind(this));\n }\n}\n\nfunction looksLikeAPromise(obj) {\n return obj && typeof obj.then === \"function\";\n}\n\nSynchronousPromise.prototype = {\n then: function then(nextFn, catchFn) {\n var next = SynchronousPromise.unresolved()._setParent(this);\n\n if (this._isRejected()) {\n if (this._paused) {\n this._continuations.push({\n promise: next,\n nextFn: nextFn,\n catchFn: catchFn\n });\n\n return next;\n }\n\n if (catchFn) {\n try {\n var catchResult = catchFn(this._error);\n\n if (looksLikeAPromise(catchResult)) {\n this._chainPromiseData(catchResult, next);\n\n return next;\n } else {\n return SynchronousPromise.resolve(catchResult)._setParent(this);\n }\n } catch (e) {\n return SynchronousPromise.reject(e)._setParent(this);\n }\n }\n\n return SynchronousPromise.reject(this._error)._setParent(this);\n }\n\n this._continuations.push({\n promise: next,\n nextFn: nextFn,\n catchFn: catchFn\n });\n\n this._runResolutions();\n\n return next;\n },\n catch: function _catch(handler) {\n if (this._isResolved()) {\n return SynchronousPromise.resolve(this._data)._setParent(this);\n }\n\n var next = SynchronousPromise.unresolved()._setParent(this);\n\n this._continuations.push({\n promise: next,\n catchFn: handler\n });\n\n this._runRejections();\n\n return next;\n },\n finally: function _finally(callback) {\n var ran = false;\n\n function runFinally() {\n if (!ran) {\n ran = true;\n return callback();\n }\n }\n\n return this.then(runFinally).catch(runFinally);\n },\n pause: function pause() {\n this._paused = true;\n return this;\n },\n resume: function resume() {\n var firstPaused = this._findFirstPaused();\n\n if (firstPaused) {\n firstPaused._paused = false;\n\n firstPaused._runResolutions();\n\n firstPaused._runRejections();\n }\n\n return this;\n },\n _findAncestry: function _findAncestry() {\n return this._continuations.reduce(function (acc, cur) {\n if (cur.promise) {\n var node = {\n promise: cur.promise,\n children: cur.promise._findAncestry()\n };\n acc.push(node);\n }\n\n return acc;\n }, []);\n },\n _setParent: function _setParent(parent) {\n if (this._parent) {\n throw new Error(\"parent already set\");\n }\n\n this._parent = parent;\n return this;\n },\n _continueWith: function _continueWith(data) {\n var firstPending = this._findFirstPending();\n\n if (firstPending) {\n firstPending._data = data;\n\n firstPending._setResolved();\n }\n },\n _findFirstPending: function _findFirstPending() {\n return this._findFirstAncestor(function (test) {\n return test._isPending && test._isPending();\n });\n },\n _findFirstPaused: function _findFirstPaused() {\n return this._findFirstAncestor(function (test) {\n return test._paused;\n });\n },\n _findFirstAncestor: function _findFirstAncestor(matching) {\n var test = this;\n var result;\n\n while (test) {\n if (matching(test)) {\n result = test;\n }\n\n test = test._parent;\n }\n\n return result;\n },\n _failWith: function _failWith(error) {\n var firstRejected = this._findFirstPending();\n\n if (firstRejected) {\n firstRejected._error = error;\n\n firstRejected._setRejected();\n }\n },\n _takeContinuations: function _takeContinuations() {\n return this._continuations.splice(0, this._continuations.length);\n },\n _runRejections: function _runRejections() {\n if (this._paused || !this._isRejected()) {\n return;\n }\n\n var error = this._error,\n continuations = this._takeContinuations(),\n self = this;\n\n continuations.forEach(function (cont) {\n if (cont.catchFn) {\n try {\n var catchResult = cont.catchFn(error);\n\n self._handleUserFunctionResult(catchResult, cont.promise);\n } catch (e) {\n var message = e.message;\n cont.promise.reject(e);\n }\n } else {\n cont.promise.reject(error);\n }\n });\n },\n _runResolutions: function _runResolutions() {\n if (this._paused || !this._isResolved() || this._isPending()) {\n return;\n }\n\n var continuations = this._takeContinuations();\n\n if (looksLikeAPromise(this._data)) {\n return this._handleWhenResolvedDataIsPromise(this._data);\n }\n\n var data = this._data;\n var self = this;\n continuations.forEach(function (cont) {\n if (cont.nextFn) {\n try {\n var result = cont.nextFn(data);\n\n self._handleUserFunctionResult(result, cont.promise);\n } catch (e) {\n self._handleResolutionError(e, cont);\n }\n } else if (cont.promise) {\n cont.promise.resolve(data);\n }\n });\n },\n _handleResolutionError: function _handleResolutionError(e, continuation) {\n this._setRejected();\n\n if (continuation.catchFn) {\n try {\n continuation.catchFn(e);\n return;\n } catch (e2) {\n e = e2;\n }\n }\n\n if (continuation.promise) {\n continuation.promise.reject(e);\n }\n },\n _handleWhenResolvedDataIsPromise: function _handleWhenResolvedDataIsPromise(data) {\n var self = this;\n return data.then(function (result) {\n self._data = result;\n\n self._runResolutions();\n }).catch(function (error) {\n self._error = error;\n\n self._setRejected();\n\n self._runRejections();\n });\n },\n _handleUserFunctionResult: function _handleUserFunctionResult(data, nextSynchronousPromise) {\n if (looksLikeAPromise(data)) {\n this._chainPromiseData(data, nextSynchronousPromise);\n } else {\n nextSynchronousPromise.resolve(data);\n }\n },\n _chainPromiseData: function _chainPromiseData(promiseData, nextSynchronousPromise) {\n promiseData.then(function (newData) {\n nextSynchronousPromise.resolve(newData);\n }).catch(function (newError) {\n nextSynchronousPromise.reject(newError);\n });\n },\n _setResolved: function _setResolved() {\n this.status = RESOLVED;\n\n if (!this._paused) {\n this._runResolutions();\n }\n },\n _setRejected: function _setRejected() {\n this.status = REJECTED;\n\n if (!this._paused) {\n this._runRejections();\n }\n },\n _isPending: function _isPending() {\n return this.status === PENDING;\n },\n _isResolved: function _isResolved() {\n return this.status === RESOLVED;\n },\n _isRejected: function _isRejected() {\n return this.status === REJECTED;\n }\n};\n\nSynchronousPromise.resolve = function (result) {\n return new SynchronousPromise(function (resolve, reject) {\n if (looksLikeAPromise(result)) {\n result.then(function (newResult) {\n resolve(newResult);\n }).catch(function (error) {\n reject(error);\n });\n } else {\n resolve(result);\n }\n });\n};\n\nSynchronousPromise.reject = function (result) {\n return new SynchronousPromise(function (resolve, reject) {\n reject(result);\n });\n};\n\nSynchronousPromise.unresolved = function () {\n return new SynchronousPromise(function (resolve, reject) {\n this.resolve = resolve;\n this.reject = reject;\n });\n};\n\nSynchronousPromise.all = function () {\n var args = makeArrayFrom(arguments);\n\n if (Array.isArray(args[0])) {\n args = args[0];\n }\n\n if (!args.length) {\n return SynchronousPromise.resolve([]);\n }\n\n return new SynchronousPromise(function (resolve, reject) {\n var allData = [],\n numResolved = 0,\n doResolve = function doResolve() {\n if (numResolved === args.length) {\n resolve(allData);\n }\n },\n rejected = false,\n doReject = function doReject(err) {\n if (rejected) {\n return;\n }\n\n rejected = true;\n reject(err);\n };\n\n args.forEach(function (arg, idx) {\n SynchronousPromise.resolve(arg).then(function (thisResult) {\n allData[idx] = thisResult;\n numResolved += 1;\n doResolve();\n }).catch(function (err) {\n doReject(err);\n });\n });\n });\n};\n/* jshint ignore:start */\n\n\nif (Promise === SynchronousPromise) {\n throw new Error(\"Please use SynchronousPromise.installGlobally() to install globally\");\n}\n\nvar RealPromise = Promise;\n\nSynchronousPromise.installGlobally = function (__awaiter) {\n if (Promise === SynchronousPromise) {\n return __awaiter;\n }\n\n var result = patchAwaiterIfRequired(__awaiter);\n Promise = SynchronousPromise;\n return result;\n};\n\nSynchronousPromise.uninstallGlobally = function () {\n if (Promise === SynchronousPromise) {\n Promise = RealPromise;\n }\n};\n\nfunction patchAwaiterIfRequired(__awaiter) {\n if (typeof __awaiter === \"undefined\" || __awaiter.__patched) {\n return __awaiter;\n }\n\n var originalAwaiter = __awaiter;\n\n __awaiter = function __awaiter() {\n var Promise = RealPromise;\n originalAwaiter.apply(this, makeArrayFrom(arguments));\n };\n\n __awaiter.__patched = true;\n return __awaiter;\n}\n/* jshint ignore:end */\n\n\nmodule.exports = {\n SynchronousPromise: SynchronousPromise\n};","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function (value) {\n return func(value);\n };\n}\n\nexport default baseUnary;","import isFunction from './isFunction.js';\nimport isLength from './isLength.js';\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nexport default isArrayLike;","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = typeof Ctor == 'function' && Ctor.prototype || objectProto;\n return value === proto;\n}\n\nexport default isPrototype;","/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n array || (array = Array(length));\n\n while (++index < length) {\n array[index] = source[index];\n }\n\n return array;\n}\n\nexport default copyArray;","import overArg from './_overArg.js';\n/** Built-in value references. */\n\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\nexport default getPrototype;","import toInteger from '../_lib/toInteger/index.js';\nimport toDate from '../toDate/index.js';\nimport requiredArgs from '../_lib/requiredArgs/index.js';\n/**\n * @name addMilliseconds\n * @category Millisecond Helpers\n * @summary Add the specified number of milliseconds to the given date.\n *\n * @description\n * Add the specified number of milliseconds to the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the milliseconds added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 750 milliseconds to 10 July 2014 12:45:30.000:\n * var result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)\n * //=> Thu Jul 10 2014 12:45:30.750\n */\n\nexport default function addMilliseconds(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var timestamp = toDate(dirtyDate).getTime();\n var amount = toInteger(dirtyAmount);\n return new Date(timestamp + amount);\n}","import toInteger from '../toInteger/index.js';\nimport toDate from '../../toDate/index.js';\nimport startOfUTCWeek from '../startOfUTCWeek/index.js';\nimport requiredArgs from '../requiredArgs/index.js'; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function getUTCWeekYear(dirtyDate, dirtyOptions) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate, dirtyOptions);\n var year = date.getUTCFullYear();\n var options = dirtyOptions || {};\n var locale = options.locale;\n var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;\n var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);\n var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN\n\n if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {\n throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');\n }\n\n var firstWeekOfNextYear = new Date(0);\n firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);\n firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);\n var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, dirtyOptions);\n var firstWeekOfThisYear = new Date(0);\n firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);\n firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);\n var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, dirtyOptions);\n\n if (date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}","// This file is a workaround for a bug in web browsers' \"native\"\n// ES6 importing system which is uncapable of importing \"*.json\" files.\n// https://github.com/catamphetamine/libphonenumber-js/issues/239\nexport default {\n \"version\": \"1.7.47\",\n \"country_calling_codes\": {\n \"1\": [\"US\", \"AG\", \"AI\", \"AS\", \"BB\", \"BM\", \"BS\", \"CA\", \"DM\", \"DO\", \"GD\", \"GU\", \"JM\", \"KN\", \"KY\", \"LC\", \"MP\", \"MS\", \"PR\", \"SX\", \"TC\", \"TT\", \"VC\", \"VG\", \"VI\"],\n \"7\": [\"RU\", \"KZ\"],\n \"20\": [\"EG\"],\n \"27\": [\"ZA\"],\n \"30\": [\"GR\"],\n \"31\": [\"NL\"],\n \"32\": [\"BE\"],\n \"33\": [\"FR\"],\n \"34\": [\"ES\"],\n \"36\": [\"HU\"],\n \"39\": [\"IT\", \"VA\"],\n \"40\": [\"RO\"],\n \"41\": [\"CH\"],\n \"43\": [\"AT\"],\n \"44\": [\"GB\", \"GG\", \"IM\", \"JE\"],\n \"45\": [\"DK\"],\n \"46\": [\"SE\"],\n \"47\": [\"NO\", \"SJ\"],\n \"48\": [\"PL\"],\n \"49\": [\"DE\"],\n \"51\": [\"PE\"],\n \"52\": [\"MX\"],\n \"53\": [\"CU\"],\n \"54\": [\"AR\"],\n \"55\": [\"BR\"],\n \"56\": [\"CL\"],\n \"57\": [\"CO\"],\n \"58\": [\"VE\"],\n \"60\": [\"MY\"],\n \"61\": [\"AU\", \"CC\", \"CX\"],\n \"62\": [\"ID\"],\n \"63\": [\"PH\"],\n \"64\": [\"NZ\"],\n \"65\": [\"SG\"],\n \"66\": [\"TH\"],\n \"81\": [\"JP\"],\n \"82\": [\"KR\"],\n \"84\": [\"VN\"],\n \"86\": [\"CN\"],\n \"90\": [\"TR\"],\n \"91\": [\"IN\"],\n \"92\": [\"PK\"],\n \"93\": [\"AF\"],\n \"94\": [\"LK\"],\n \"95\": [\"MM\"],\n \"98\": [\"IR\"],\n \"211\": [\"SS\"],\n \"212\": [\"MA\", \"EH\"],\n \"213\": [\"DZ\"],\n \"216\": [\"TN\"],\n \"218\": [\"LY\"],\n \"220\": [\"GM\"],\n \"221\": [\"SN\"],\n \"222\": [\"MR\"],\n \"223\": [\"ML\"],\n \"224\": [\"GN\"],\n \"225\": [\"CI\"],\n \"226\": [\"BF\"],\n \"227\": [\"NE\"],\n \"228\": [\"TG\"],\n \"229\": [\"BJ\"],\n \"230\": [\"MU\"],\n \"231\": [\"LR\"],\n \"232\": [\"SL\"],\n \"233\": [\"GH\"],\n \"234\": [\"NG\"],\n \"235\": [\"TD\"],\n \"236\": [\"CF\"],\n \"237\": [\"CM\"],\n \"238\": [\"CV\"],\n \"239\": [\"ST\"],\n \"240\": [\"GQ\"],\n \"241\": [\"GA\"],\n \"242\": [\"CG\"],\n \"243\": [\"CD\"],\n \"244\": [\"AO\"],\n \"245\": [\"GW\"],\n \"246\": [\"IO\"],\n \"247\": [\"AC\"],\n \"248\": [\"SC\"],\n \"249\": [\"SD\"],\n \"250\": [\"RW\"],\n \"251\": [\"ET\"],\n \"252\": [\"SO\"],\n \"253\": [\"DJ\"],\n \"254\": [\"KE\"],\n \"255\": [\"TZ\"],\n \"256\": [\"UG\"],\n \"257\": [\"BI\"],\n \"258\": [\"MZ\"],\n \"260\": [\"ZM\"],\n \"261\": [\"MG\"],\n \"262\": [\"RE\", \"YT\"],\n \"263\": [\"ZW\"],\n \"264\": [\"NA\"],\n \"265\": [\"MW\"],\n \"266\": [\"LS\"],\n \"267\": [\"BW\"],\n \"268\": [\"SZ\"],\n \"269\": [\"KM\"],\n \"290\": [\"SH\", \"TA\"],\n \"291\": [\"ER\"],\n \"297\": [\"AW\"],\n \"298\": [\"FO\"],\n \"299\": [\"GL\"],\n \"350\": [\"GI\"],\n \"351\": [\"PT\"],\n \"352\": [\"LU\"],\n \"353\": [\"IE\"],\n \"354\": [\"IS\"],\n \"355\": [\"AL\"],\n \"356\": [\"MT\"],\n \"357\": [\"CY\"],\n \"358\": [\"FI\", \"AX\"],\n \"359\": [\"BG\"],\n \"370\": [\"LT\"],\n \"371\": [\"LV\"],\n \"372\": [\"EE\"],\n \"373\": [\"MD\"],\n \"374\": [\"AM\"],\n \"375\": [\"BY\"],\n \"376\": [\"AD\"],\n \"377\": [\"MC\"],\n \"378\": [\"SM\"],\n \"380\": [\"UA\"],\n \"381\": [\"RS\"],\n \"382\": [\"ME\"],\n \"383\": [\"XK\"],\n \"385\": [\"HR\"],\n \"386\": [\"SI\"],\n \"387\": [\"BA\"],\n \"389\": [\"MK\"],\n \"420\": [\"CZ\"],\n \"421\": [\"SK\"],\n \"423\": [\"LI\"],\n \"500\": [\"FK\"],\n \"501\": [\"BZ\"],\n \"502\": [\"GT\"],\n \"503\": [\"SV\"],\n \"504\": [\"HN\"],\n \"505\": [\"NI\"],\n \"506\": [\"CR\"],\n \"507\": [\"PA\"],\n \"508\": [\"PM\"],\n \"509\": [\"HT\"],\n \"590\": [\"GP\", \"BL\", \"MF\"],\n \"591\": [\"BO\"],\n \"592\": [\"GY\"],\n \"593\": [\"EC\"],\n \"594\": [\"GF\"],\n \"595\": [\"PY\"],\n \"596\": [\"MQ\"],\n \"597\": [\"SR\"],\n \"598\": [\"UY\"],\n \"599\": [\"CW\", \"BQ\"],\n \"670\": [\"TL\"],\n \"672\": [\"NF\"],\n \"673\": [\"BN\"],\n \"674\": [\"NR\"],\n \"675\": [\"PG\"],\n \"676\": [\"TO\"],\n \"677\": [\"SB\"],\n \"678\": [\"VU\"],\n \"679\": [\"FJ\"],\n \"680\": [\"PW\"],\n \"681\": [\"WF\"],\n \"682\": [\"CK\"],\n \"683\": [\"NU\"],\n \"685\": [\"WS\"],\n \"686\": [\"KI\"],\n \"687\": [\"NC\"],\n \"688\": [\"TV\"],\n \"689\": [\"PF\"],\n \"690\": [\"TK\"],\n \"691\": [\"FM\"],\n \"692\": [\"MH\"],\n \"850\": [\"KP\"],\n \"852\": [\"HK\"],\n \"853\": [\"MO\"],\n \"855\": [\"KH\"],\n \"856\": [\"LA\"],\n \"880\": [\"BD\"],\n \"886\": [\"TW\"],\n \"960\": [\"MV\"],\n \"961\": [\"LB\"],\n \"962\": [\"JO\"],\n \"963\": [\"SY\"],\n \"964\": [\"IQ\"],\n \"965\": [\"KW\"],\n \"966\": [\"SA\"],\n \"967\": [\"YE\"],\n \"968\": [\"OM\"],\n \"970\": [\"PS\"],\n \"971\": [\"AE\"],\n \"972\": [\"IL\"],\n \"973\": [\"BH\"],\n \"974\": [\"QA\"],\n \"975\": [\"BT\"],\n \"976\": [\"MN\"],\n \"977\": [\"NP\"],\n \"992\": [\"TJ\"],\n \"993\": [\"TM\"],\n \"994\": [\"AZ\"],\n \"995\": [\"GE\"],\n \"996\": [\"KG\"],\n \"998\": [\"UZ\"]\n },\n \"countries\": {\n \"AC\": [\"247\", \"00\", \"(?:[01589]\\\\d|[46])\\\\d{4}\", [5, 6]],\n \"AD\": [\"376\", \"00\", \"(?:1|6\\\\d)\\\\d{7}|[135-9]\\\\d{5}\", [6, 8, 9], [[\"(\\\\d{3})(\\\\d{3})\", \"$1 $2\", [\"[135-9]\"]], [\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"1\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"6\"]]]],\n \"AE\": [\"971\", \"00\", \"(?:[4-7]\\\\d|9[0-689])\\\\d{7}|800\\\\d{2,9}|[2-4679]\\\\d{7}\", [5, 6, 7, 8, 9, 10, 11, 12], [[\"(\\\\d{3})(\\\\d{2,9})\", \"$1 $2\", [\"60|8\"]], [\"(\\\\d)(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[236]|[479][2-8]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d)(\\\\d{5})\", \"$1 $2 $3\", [\"[479]\"]], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"5\"], \"0$1\"]], \"0\"],\n \"AF\": [\"93\", \"00\", \"[2-7]\\\\d{8}\", [9], [[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[2-7]\"], \"0$1\"]], \"0\"],\n \"AG\": [\"1\", \"011\", \"(?:268|[58]\\\\d\\\\d|900)\\\\d{7}\", [10], 0, \"1\", 0, \"1|([457]\\\\d{6})$\", \"268$1\", 0, \"268\"],\n \"AI\": [\"1\", \"011\", \"(?:264|[58]\\\\d\\\\d|900)\\\\d{7}\", [10], 0, \"1\", 0, \"1|([2457]\\\\d{6})$\", \"264$1\", 0, \"264\"],\n \"AL\": [\"355\", \"00\", \"(?:700\\\\d\\\\d|900)\\\\d{3}|8\\\\d{5,7}|(?:[2-5]|6\\\\d)\\\\d{7}\", [6, 7, 8, 9], [[\"(\\\\d{3})(\\\\d{3,4})\", \"$1 $2\", [\"80|9\"], \"0$1\"], [\"(\\\\d)(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"4[2-6]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[2358][2-5]|4\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{5})\", \"$1 $2\", [\"[23578]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"6\"], \"0$1\"]], \"0\"],\n \"AM\": [\"374\", \"00\", \"(?:[1-489]\\\\d|55|60|77)\\\\d{6}\", [8], [[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\", \"$1 $2 $3\", [\"[89]0\"], \"0 $1\"], [\"(\\\\d{3})(\\\\d{5})\", \"$1 $2\", [\"2|3[12]\"], \"(0$1)\"], [\"(\\\\d{2})(\\\\d{6})\", \"$1 $2\", [\"1|47\"], \"(0$1)\"], [\"(\\\\d{2})(\\\\d{6})\", \"$1 $2\", [\"[3-9]\"], \"0$1\"]], \"0\"],\n \"AO\": [\"244\", \"00\", \"[29]\\\\d{8}\", [9], [[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[29]\"]]]],\n \"AR\": [\"54\", \"00\", \"11\\\\d{8}|(?:[2368]|9\\\\d)\\\\d{9}\", [10, 11], [[\"(\\\\d{4})(\\\\d{2})(\\\\d{4})\", \"$1 $2-$3\", [\"2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])\", \"2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)\", \"2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]\", \"2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]\"], \"0$1\", 1], [\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\", \"$1 $2-$3\", [\"1\"], \"0$1\", 1], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1-$2-$3\", [\"[68]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2-$3\", [\"[23]\"], \"0$1\", 1], [\"(\\\\d)(\\\\d{4})(\\\\d{2})(\\\\d{4})\", \"$2 15-$3-$4\", [\"9(?:2[2-469]|3[3-578])\", \"9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))\", \"9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)\", \"9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]\", \"9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]\"], \"0$1\", 0, \"$1 $2 $3-$4\"], [\"(\\\\d)(\\\\d{2})(\\\\d{4})(\\\\d{4})\", \"$2 15-$3-$4\", [\"91\"], \"0$1\", 0, \"$1 $2 $3-$4\"], [\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$2 15-$3-$4\", [\"9\"], \"0$1\", 0, \"$1 $2 $3-$4\"]], \"0\", 0, \"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?\", \"9$1\"],\n \"AS\": [\"1\", \"011\", \"(?:[58]\\\\d\\\\d|684|900)\\\\d{7}\", [10], 0, \"1\", 0, \"1|([267]\\\\d{6})$\", \"684$1\", 0, \"684\"],\n \"AT\": [\"43\", \"00\", \"1\\\\d{3,12}|2\\\\d{6,12}|43(?:(?:0\\\\d|5[02-9])\\\\d{3,9}|2\\\\d{4,5}|[3467]\\\\d{4}|8\\\\d{4,6}|9\\\\d{4,7})|5\\\\d{4,12}|8\\\\d{7,12}|9\\\\d{8,12}|(?:[367]\\\\d|4[0-24-9])\\\\d{4,11}\", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [[\"(\\\\d)(\\\\d{3,12})\", \"$1 $2\", [\"1(?:11|[2-9])\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{2})\", \"$1 $2\", [\"517\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3,5})\", \"$1 $2\", [\"5[079]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3,10})\", \"$1 $2\", [\"(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{3,9})\", \"$1 $2\", [\"[2-467]|5[2-6]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"5\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{4})(\\\\d{4,7})\", \"$1 $2 $3\", [\"5\"], \"0$1\"]], \"0\"],\n \"AU\": [\"61\", \"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011\", \"1(?:[0-79]\\\\d{7,8}|8[0-24-9]\\\\d{7})|(?:[2-478]\\\\d\\\\d|550)\\\\d{6}|1\\\\d{4,7}\", [5, 6, 7, 8, 9, 10], [[\"(\\\\d{2})(\\\\d{3,4})\", \"$1 $2\", [\"16\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{2,4})\", \"$1 $2 $3\", [\"16\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"14|[45]\"], \"0$1\"], [\"(\\\\d)(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"[2378]\"], \"(0$1)\"], [\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"1(?:30|[89])\"]]], \"0\", 0, \"0|(183[12])\", 0, 0, 0, [[\"(?:[237]\\\\d{5}|8(?:51(?:0(?:0[03-9]|[1247]\\\\d|3[2-9]|5[0-8]|6[1-9]|8[0-6])|1(?:1[69]|[23]\\\\d|4[0-4]))|(?:[6-8]\\\\d{3}|9(?:[02-9]\\\\d\\\\d|1(?:[0-57-9]\\\\d|6[0135-9])))\\\\d))\\\\d{3}\", [9]], [\"483[0-3]\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-2457-9]|9[0-27-9])\\\\d{6}\", [9]], [\"180(?:0\\\\d{3}|2)\\\\d{3}\", [7, 10]], [\"190[0-26]\\\\d{6}\", [10]], 0, 0, 0, [\"16\\\\d{3,7}\", [5, 6, 7, 8, 9]], [\"(?:14(?:5(?:1[0458]|[23][458])|71\\\\d)|550\\\\d\\\\d)\\\\d{4}\", [9]], [\"13(?:00\\\\d{3}|45[0-4])\\\\d{3}|13\\\\d{4}\", [6, 8, 10]]], \"0011\"],\n \"AW\": [\"297\", \"00\", \"(?:[25-79]\\\\d\\\\d|800)\\\\d{4}\", [7], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"[25-9]\"]]]],\n \"AX\": [\"358\", \"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))\", \"2\\\\d{4,9}|35\\\\d{4,5}|(?:60\\\\d\\\\d|800)\\\\d{4,6}|7\\\\d{5,11}|(?:[14]\\\\d|3[0-46-9]|50)\\\\d{4,8}\", [5, 6, 7, 8, 9, 10, 11, 12], 0, \"0\", 0, 0, 0, 0, \"18\", 0, \"00\"],\n \"AZ\": [\"994\", \"00\", \"365\\\\d{6}|(?:[124579]\\\\d|60|88)\\\\d{7}\", [9], [[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"90\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"1[28]|2|365|46\", \"1[28]|2|365|46\", \"1[28]|2|365(?:[0-46-9]|5[0-35-9])|46\"], \"(0$1)\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[13-9]\"], \"0$1\"]], \"0\"],\n \"BA\": [\"387\", \"00\", \"6\\\\d{8}|(?:[35689]\\\\d|49|70)\\\\d{6}\", [8, 9], [[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"6[1-3]|[7-9]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2-$3\", [\"[3-5]|6[56]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})\", \"$1 $2 $3 $4\", [\"6\"], \"0$1\"]], \"0\"],\n \"BB\": [\"1\", \"011\", \"(?:246|[58]\\\\d\\\\d|900)\\\\d{7}\", [10], 0, \"1\", 0, \"1|([2-9]\\\\d{6})$\", \"246$1\", 0, \"246\"],\n \"BD\": [\"880\", \"00\", \"[13469]\\\\d{9}|8[0-79]\\\\d{7,8}|[2-7]\\\\d{8}|[2-9]\\\\d{7}|[3-689]\\\\d{6}|[57-9]\\\\d{5}\", [6, 7, 8, 9, 10], [[\"(\\\\d{2})(\\\\d{4,6})\", \"$1-$2\", [\"31[5-7]|[459]1\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3,7})\", \"$1-$2\", [\"3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{3,6})\", \"$1-$2\", [\"[13-9]\"], \"0$1\"], [\"(\\\\d)(\\\\d{7,8})\", \"$1-$2\", [\"2\"], \"0$1\"]], \"0\"],\n \"BE\": [\"32\", \"00\", \"4\\\\d{8}|[1-9]\\\\d{7}\", [8, 9], [[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\", \"$1 $2 $3\", [\"(?:80|9)0\"], \"0$1\"], [\"(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[239]|4[23]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[15-8]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"4\"], \"0$1\"]], \"0\"],\n \"BF\": [\"226\", \"00\", \"[025-7]\\\\d{7}\", [8], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[025-7]\"]]]],\n \"BG\": [\"359\", \"00\", \"[2-7]\\\\d{6,7}|[89]\\\\d{6,8}|2\\\\d{5}\", [6, 7, 8, 9], [[\"(\\\\d)(\\\\d)(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"2\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"43[1-6]|70[1-9]\"], \"0$1\"], [\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"2\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{2,3})\", \"$1 $2 $3\", [\"[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\", \"$1 $2 $3\", [\"(?:70|8)0\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{2})\", \"$1 $2 $3\", [\"43[1-7]|7\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"[48]|9[08]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"9\"], \"0$1\"]], \"0\"],\n \"BH\": [\"973\", \"00\", \"[136-9]\\\\d{7}\", [8], [[\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"[13679]|8[047]\"]]]],\n \"BI\": [\"257\", \"00\", \"(?:[267]\\\\d|31)\\\\d{6}\", [8], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[2367]\"]]]],\n \"BJ\": [\"229\", \"00\", \"(?:[2689]\\\\d|51)\\\\d{6}\", [8], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[25689]\"]]]],\n \"BL\": [\"590\", \"00\", \"(?:590|69\\\\d|976)\\\\d{6}\", [9], 0, \"0\", 0, 0, 0, 0, 0, [[\"590(?:2[7-9]|5[12]|87)\\\\d{4}\"], [\"69(?:0\\\\d\\\\d|1(?:2[29]|3[0-5]))\\\\d{4}\"], 0, 0, 0, 0, 0, 0, [\"976[01]\\\\d{5}\"]]],\n \"BM\": [\"1\", \"011\", \"(?:441|[58]\\\\d\\\\d|900)\\\\d{7}\", [10], 0, \"1\", 0, \"1|([2-8]\\\\d{6})$\", \"441$1\", 0, \"441\"],\n \"BN\": [\"673\", \"00\", \"[2-578]\\\\d{6}\", [7], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"[2-578]\"]]]],\n \"BO\": [\"591\", \"00(?:1\\\\d)?\", \"(?:[2-467]\\\\d\\\\d|8001)\\\\d{5}\", [8, 9], [[\"(\\\\d)(\\\\d{7})\", \"$1 $2\", [\"[23]|4[46]\"]], [\"(\\\\d{8})\", \"$1\", [\"[67]\"]], [\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\", \"$1 $2 $3\", [\"8\"]]], \"0\", 0, \"0(1\\\\d)?\"],\n \"BQ\": [\"599\", \"00\", \"(?:[34]1|7\\\\d)\\\\d{5}\", [7], 0, 0, 0, 0, 0, 0, \"[347]\"],\n \"BR\": [\"55\", \"00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)\", \"(?:[1-46-9]\\\\d\\\\d|5(?:[0-46-9]\\\\d|5[0-24679]))\\\\d{8}|[1-9]\\\\d{9}|[3589]\\\\d{8}|[34]\\\\d{7}\", [8, 9, 10, 11], [[\"(\\\\d{4})(\\\\d{4})\", \"$1-$2\", [\"300|4(?:0[02]|37)\", \"4(?:02|37)0|[34]00\"]], [\"(\\\\d{3})(\\\\d{2,3})(\\\\d{4})\", \"$1 $2 $3\", [\"(?:[358]|90)0\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\", \"$1 $2-$3\", [\"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]\"], \"($1)\"], [\"(\\\\d{2})(\\\\d{5})(\\\\d{4})\", \"$1 $2-$3\", [\"[16][1-9]|[2-57-9]\"], \"($1)\"]], \"0\", 0, \"0(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\\\d{10,11}))?\", \"$2\"],\n \"BS\": [\"1\", \"011\", \"(?:242|[58]\\\\d\\\\d|900)\\\\d{7}\", [10], 0, \"1\", 0, \"1|([3-8]\\\\d{6})$\", \"242$1\", 0, \"242\"],\n \"BT\": [\"975\", \"00\", \"[17]\\\\d{7}|[2-8]\\\\d{6}\", [7, 8], [[\"(\\\\d)(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[2-68]|7[246]\"]], [\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"1[67]|7\"]]]],\n \"BW\": [\"267\", \"00\", \"90\\\\d{5}|(?:[2-6]|7\\\\d)\\\\d{6}\", [7, 8], [[\"(\\\\d{2})(\\\\d{5})\", \"$1 $2\", [\"90\"]], [\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"[2-6]\"]], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"7\"]]]],\n \"BY\": [\"375\", \"810\", \"(?:[12]\\\\d|33|44|902)\\\\d{7}|8(?:0[0-79]\\\\d{5,7}|[1-7]\\\\d{9})|8(?:1[0-489]|[5-79]\\\\d)\\\\d{7}|8[1-79]\\\\d{6,7}|8[0-79]\\\\d{5}|8\\\\d{5}\", [6, 7, 8, 9, 10, 11], [[\"(\\\\d{3})(\\\\d{3})\", \"$1 $2\", [\"800\"], \"8 $1\"], [\"(\\\\d{3})(\\\\d{2})(\\\\d{2,4})\", \"$1 $2 $3\", [\"800\"], \"8 $1\"], [\"(\\\\d{4})(\\\\d{2})(\\\\d{3})\", \"$1 $2-$3\", [\"1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])\", \"1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])\"], \"8 0$1\"], [\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2-$3-$4\", [\"1(?:[56]|7[467])|2[1-3]\"], \"8 0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2-$3-$4\", [\"[1-4]\"], \"8 0$1\"], [\"(\\\\d{3})(\\\\d{3,4})(\\\\d{4})\", \"$1 $2 $3\", [\"[89]\"], \"8 $1\"]], \"8\", 0, \"0|80?\", 0, 0, 0, 0, \"8~10\"],\n \"BZ\": [\"501\", \"00\", \"(?:0800\\\\d|[2-8])\\\\d{6}\", [7, 11], [[\"(\\\\d{3})(\\\\d{4})\", \"$1-$2\", [\"[2-8]\"]], [\"(\\\\d)(\\\\d{3})(\\\\d{4})(\\\\d{3})\", \"$1-$2-$3-$4\", [\"0\"]]]],\n \"CA\": [\"1\", \"011\", \"(?:[2-8]\\\\d|90)\\\\d{8}\", [10], 0, \"1\", 0, 0, 0, 0, 0, [[\"(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[57])|4(?:03|1[68]|3[178]|50)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\\\d{6}\"], [\"\"], [\"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}\"], [\"900[2-9]\\\\d{6}\"], [\"(?:5(?:00|2[12]|33|44|66|77|88)|622)[2-9]\\\\d{6}\"], 0, 0, 0, [\"600[2-9]\\\\d{6}\"]]],\n \"CC\": [\"61\", \"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011\", \"1(?:[0-79]\\\\d|8[0-24-9])\\\\d{7}|(?:[148]\\\\d\\\\d|550)\\\\d{6}|1\\\\d{5,7}\", [6, 7, 8, 9, 10], 0, \"0\", 0, \"0|([59]\\\\d{7})$\", \"8$1\", 0, 0, [[\"8(?:51(?:0(?:02|31|60)|118)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\\\d|70[23]|959))\\\\d{3}\", [9]], [\"483[0-3]\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-2457-9]|9[0-27-9])\\\\d{6}\", [9]], [\"180(?:0\\\\d{3}|2)\\\\d{3}\", [7, 10]], [\"190[0-26]\\\\d{6}\", [10]], 0, 0, 0, 0, [\"(?:14(?:5(?:1[0458]|[23][458])|71\\\\d)|550\\\\d\\\\d)\\\\d{4}\", [9]], [\"13(?:00\\\\d{3}|45[0-4])\\\\d{3}|13\\\\d{4}\", [6, 8, 10]]], \"0011\"],\n \"CD\": [\"243\", \"00\", \"[189]\\\\d{8}|[1-68]\\\\d{6}\", [7, 9], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\", \"$1 $2 $3\", [\"88\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{5})\", \"$1 $2\", [\"[1-6]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"1\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[89]\"], \"0$1\"]], \"0\"],\n \"CF\": [\"236\", \"00\", \"(?:[27]\\\\d{3}|8776)\\\\d{4}\", [8], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[278]\"]]]],\n \"CG\": [\"242\", \"00\", \"222\\\\d{6}|(?:0\\\\d|80)\\\\d{7}\", [9], [[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"801\"]], [\"(\\\\d)(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"8\"]], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[02]\"]]]],\n \"CH\": [\"41\", \"00\", \"8\\\\d{11}|[2-9]\\\\d{8}\", [9], [[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"8[047]|90\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[2-79]|81\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4 $5\", [\"8\"], \"0$1\"]], \"0\"],\n \"CI\": [\"225\", \"00\", \"[02-9]\\\\d{7}\", [8], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[02-9]\"]]]],\n \"CK\": [\"682\", \"00\", \"[2-578]\\\\d{4}\", [5], [[\"(\\\\d{2})(\\\\d{3})\", \"$1 $2\", [\"[2-578]\"]]]],\n \"CL\": [\"56\", \"(?:0|1(?:1[0-69]|2[0-57]|5[13-58]|69|7[0167]|8[018]))0\", \"12300\\\\d{6}|6\\\\d{9,10}|[2-9]\\\\d{8}\", [9, 10, 11], [[\"(\\\\d{5})(\\\\d{4})\", \"$1 $2\", [\"21\"], \"($1)\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"44\"]], [\"(\\\\d)(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"2[23]\"], \"($1)\"], [\"(\\\\d)(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"9[2-9]\"]], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])\"], \"($1)\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"60|8\"]], [\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"1\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{3})\", \"$1 $2 $3 $4\", [\"60\"]]]],\n \"CM\": [\"237\", \"00\", \"(?:[26]\\\\d\\\\d|88)\\\\d{6}\", [8, 9], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"88\"]], [\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4 $5\", [\"[26]\"]]]],\n \"CN\": [\"86\", \"00|1(?:[12]\\\\d|79|9[0235-7])\\\\d\\\\d00\", \"1[1279]\\\\d{8,9}|2\\\\d{9}(?:\\\\d{2})?|[12]\\\\d{6,7}|86\\\\d{6}|(?:1[03-68]\\\\d|6)\\\\d{7,9}|(?:[3-579]\\\\d|8[0-57-9])\\\\d{6,9}\", [7, 8, 9, 10, 11, 12], [[\"(\\\\d{2})(\\\\d{5,6})\", \"$1 $2\", [\"(?:10|2[0-57-9])[19]\", \"(?:10|2[0-57-9])(?:10|9[56])\", \"(?:10|2[0-57-9])(?:100|9[56])\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{5,6})\", \"$1 $2\", [\"3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]\", \"(?:3(?:[157]\\\\d|35|49|9[1-68])|4(?:[17]\\\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\\\d|4[13]|5[1-5]))[19]\", \"85[23](?:10|95)|(?:3(?:[157]\\\\d|35|49|9[1-68])|4(?:[17]\\\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\\\d|4[13]|5[1-5]))(?:10|9[56])\", \"85[23](?:100|95)|(?:3(?:[157]\\\\d|35|49|9[1-68])|4(?:[17]\\\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\\\d|4[13]|5[1-5]))(?:100|9[56])\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"(?:4|80)0\"]], [\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"10|2(?:[02-57-9]|1[1-9])\", \"10|2(?:[02-57-9]|1[1-9])\", \"10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])\"], \"0$1\", 1], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]\"], \"0$1\", 1], [\"(\\\\d{3})(\\\\d{7,8})\", \"$1 $2\", [\"9\"]], [\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"80\"], \"0$1\", 1], [\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"[3-578]\"], \"0$1\", 1], [\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"1[3-9]\"]], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3 $4\", [\"[12]\"], \"0$1\", 1]], \"0\", 0, \"0|(1(?:[12]\\\\d|79|9[0235-7])\\\\d\\\\d)\", 0, 0, 0, 0, \"00\"],\n \"CO\": [\"57\", \"00(?:4(?:[14]4|56)|[579])\", \"(?:1\\\\d|3)\\\\d{9}|[124-8]\\\\d{7}\", [8, 10, 11], [[\"(\\\\d)(\\\\d{7})\", \"$1 $2\", [\"[14][2-9]|[25-8]\"], \"($1)\"], [\"(\\\\d{3})(\\\\d{7})\", \"$1 $2\", [\"3\"]], [\"(\\\\d)(\\\\d{3})(\\\\d{7})\", \"$1-$2-$3\", [\"1\"], \"0$1\", 0, \"$1 $2 $3\"]], \"0\", 0, \"0([3579]|4(?:[14]4|56))?\"],\n \"CR\": [\"506\", \"00\", \"(?:8\\\\d|90)\\\\d{8}|(?:[24-8]\\\\d{3}|3005)\\\\d{4}\", [8, 10], [[\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"[2-7]|8[3-9]\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1-$2-$3\", [\"[89]\"]]], 0, 0, \"(19(?:0[0-2468]|1[09]|20|66|77|99))\"],\n \"CU\": [\"53\", \"119\", \"[27]\\\\d{6,7}|[34]\\\\d{5,7}|(?:5|8\\\\d\\\\d)\\\\d{7}\", [6, 7, 8, 10], [[\"(\\\\d{2})(\\\\d{4,6})\", \"$1 $2\", [\"2[1-4]|[34]\"], \"(0$1)\"], [\"(\\\\d)(\\\\d{6,7})\", \"$1 $2\", [\"7\"], \"(0$1)\"], [\"(\\\\d)(\\\\d{7})\", \"$1 $2\", [\"5\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{7})\", \"$1 $2\", [\"8\"], \"0$1\"]], \"0\"],\n \"CV\": [\"238\", \"0\", \"(?:[2-59]\\\\d\\\\d|800)\\\\d{4}\", [7], [[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3\", [\"[2-589]\"]]]],\n \"CW\": [\"599\", \"00\", \"(?:[34]1|60|(?:7|9\\\\d)\\\\d)\\\\d{5}\", [7, 8], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"[3467]\"]], [\"(\\\\d)(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"9[4-8]\"]]], 0, 0, 0, 0, 0, \"[69]\"],\n \"CX\": [\"61\", \"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011\", \"1(?:[0-79]\\\\d|8[0-24-9])\\\\d{7}|(?:[148]\\\\d\\\\d|550)\\\\d{6}|1\\\\d{5,7}\", [6, 7, 8, 9, 10], 0, \"0\", 0, \"0|([59]\\\\d{7})$\", \"8$1\", 0, 0, [[\"8(?:51(?:0(?:01|30|59)|117)|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\\\d|7(?:0[01]|1[0-2])|958))\\\\d{3}\", [9]], [\"483[0-3]\\\\d{5}|4(?:[0-3]\\\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-2457-9]|9[0-27-9])\\\\d{6}\", [9]], [\"180(?:0\\\\d{3}|2)\\\\d{3}\", [7, 10]], [\"190[0-26]\\\\d{6}\", [10]], 0, 0, 0, 0, [\"(?:14(?:5(?:1[0458]|[23][458])|71\\\\d)|550\\\\d\\\\d)\\\\d{4}\", [9]], [\"13(?:00\\\\d{3}|45[0-4])\\\\d{3}|13\\\\d{4}\", [6, 8, 10]]], \"0011\"],\n \"CY\": [\"357\", \"00\", \"(?:[279]\\\\d|[58]0)\\\\d{6}\", [8], [[\"(\\\\d{2})(\\\\d{6})\", \"$1 $2\", [\"[257-9]\"]]]],\n \"CZ\": [\"420\", \"00\", \"(?:[2-578]\\\\d|60)\\\\d{7}|9\\\\d{8,11}\", [9], [[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[2-8]|9[015-7]\"]], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3 $4\", [\"9\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3 $4\", [\"9\"]]]],\n \"DE\": [\"49\", \"00\", \"[2579]\\\\d{5,14}|49(?:[05]\\\\d{10}|[46][1-8]\\\\d{4,9})|49(?:[0-25]\\\\d|3[1-689]|7[1-7])\\\\d{4,8}|49(?:[0-2579]\\\\d|[34][1-9]|6[0-8])\\\\d{3}|49\\\\d{3,4}|(?:1|[368]\\\\d|4[0-8])\\\\d{3,13}\", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [[\"(\\\\d{2})(\\\\d{3,13})\", \"$1 $2\", [\"3[02]|40|[68]9\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3,12})\", \"$1 $2\", [\"2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1\", \"2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{2,11})\", \"$1 $2\", [\"[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]\", \"[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"138\"], \"0$1\"], [\"(\\\\d{5})(\\\\d{2,10})\", \"$1 $2\", [\"3\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{5,11})\", \"$1 $2\", [\"181\"], \"0$1\"], [\"(\\\\d{3})(\\\\d)(\\\\d{4,10})\", \"$1 $2 $3\", [\"1(?:3|80)|9\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{7,8})\", \"$1 $2\", [\"1[67]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{7,12})\", \"$1 $2\", [\"8\"], \"0$1\"], [\"(\\\\d{5})(\\\\d{6})\", \"$1 $2\", [\"185\", \"1850\", \"18500\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"7\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{7})\", \"$1 $2\", [\"18[68]\"], \"0$1\"], [\"(\\\\d{5})(\\\\d{6})\", \"$1 $2\", [\"15[0568]\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{7})\", \"$1 $2\", [\"15[1279]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{8})\", \"$1 $2\", [\"18\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{2})(\\\\d{7,8})\", \"$1 $2 $3\", [\"1(?:6[023]|7)\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{2})(\\\\d{7})\", \"$1 $2 $3\", [\"15[279]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{2})(\\\\d{8})\", \"$1 $2 $3\", [\"15\"], \"0$1\"]], \"0\"],\n \"DJ\": [\"253\", \"00\", \"(?:2\\\\d|77)\\\\d{6}\", [8], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[27]\"]]]],\n \"DK\": [\"45\", \"00\", \"[2-9]\\\\d{7}\", [8], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[2-9]\"]]]],\n \"DM\": [\"1\", \"011\", \"(?:[58]\\\\d\\\\d|767|900)\\\\d{7}\", [10], 0, \"1\", 0, \"1|([2-7]\\\\d{6})$\", \"767$1\", 0, \"767\"],\n \"DO\": [\"1\", \"011\", \"(?:[58]\\\\d\\\\d|900)\\\\d{7}\", [10], 0, \"1\", 0, 0, 0, 0, \"8[024]9\"],\n \"DZ\": [\"213\", \"00\", \"(?:[1-4]|[5-79]\\\\d|80)\\\\d{7}\", [8, 9], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[1-4]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"9\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[5-8]\"], \"0$1\"]], \"0\"],\n \"EC\": [\"593\", \"00\", \"1\\\\d{9,10}|(?:[2-7]|9\\\\d)\\\\d{7}\", [8, 9, 10, 11], [[\"(\\\\d)(\\\\d{3})(\\\\d{4})\", \"$1 $2-$3\", [\"[2-7]\"], \"(0$1)\", 0, \"$1-$2-$3\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"9\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"1\"]]], \"0\"],\n \"EE\": [\"372\", \"00\", \"8\\\\d{9}|[4578]\\\\d{7}|(?:[3-8]\\\\d|90)\\\\d{5}\", [7, 8, 10], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88\", \"[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88\"]], [\"(\\\\d{4})(\\\\d{3,4})\", \"$1 $2\", [\"[45]|8(?:00|[1-49])\", \"[45]|8(?:00[1-9]|[1-49])\"]], [\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\", \"$1 $2 $3\", [\"7\"]], [\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"8\"]]]],\n \"EG\": [\"20\", \"00\", \"[189]\\\\d{8,9}|[24-6]\\\\d{8}|[135]\\\\d{7}\", [8, 9, 10], [[\"(\\\\d)(\\\\d{7,8})\", \"$1 $2\", [\"[23]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{6,7})\", \"$1 $2\", [\"1[35]|[4-6]|8[2468]|9[235-7]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[189]\"], \"0$1\"]], \"0\"],\n \"EH\": [\"212\", \"00\", \"[5-8]\\\\d{8}\", [9], 0, \"0\", 0, 0, 0, 0, \"528[89]\"],\n \"ER\": [\"291\", \"00\", \"[178]\\\\d{6}\", [7], [[\"(\\\\d)(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[178]\"], \"0$1\"]], \"0\"],\n \"ES\": [\"34\", \"00\", \"(?:51|[6-9]\\\\d)\\\\d{7}\", [9], [[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[89]00\"]], [\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[5-9]\"]]]],\n \"ET\": [\"251\", \"00\", \"(?:11|[2-59]\\\\d)\\\\d{7}\", [9], [[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[1-59]\"], \"0$1\"]], \"0\"],\n \"FI\": [\"358\", \"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))\", \"[1-35689]\\\\d{4}|7\\\\d{10,11}|(?:[124-7]\\\\d|3[0-46-9])\\\\d{8}|[1-9]\\\\d{5,8}\", [5, 6, 7, 8, 9, 10, 11, 12], [[\"(\\\\d)(\\\\d{4,9})\", \"$1 $2\", [\"[2568][1-8]|3(?:0[1-9]|[1-9])|9\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3,7})\", \"$1 $2\", [\"[12]00|[368]|70[07-9]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{4,8})\", \"$1 $2\", [\"[1245]|7[135]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{6,10})\", \"$1 $2\", [\"7\"], \"0$1\"]], \"0\", 0, 0, 0, 0, \"1[03-79]|[2-9]\", 0, \"00\"],\n \"FJ\": [\"679\", \"0(?:0|52)\", \"45\\\\d{5}|(?:0800\\\\d|[235-9])\\\\d{6}\", [7, 11], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"[235-9]|45\"]], [\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"0\"]]], 0, 0, 0, 0, 0, 0, 0, \"00\"],\n \"FK\": [\"500\", \"00\", \"[2-7]\\\\d{4}\", [5]],\n \"FM\": [\"691\", \"00\", \"(?:[39]\\\\d\\\\d|820)\\\\d{4}\", [7], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"[389]\"]]]],\n \"FO\": [\"298\", \"00\", \"(?:[2-8]\\\\d|90)\\\\d{4}\", [6], [[\"(\\\\d{6})\", \"$1\", [\"[2-9]\"]]], 0, 0, \"(10(?:01|[12]0|88))\"],\n \"FR\": [\"33\", \"00\", \"[1-9]\\\\d{8}\", [9], [[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"8\"], \"0 $1\"], [\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4 $5\", [\"[1-79]\"], \"0$1\"]], \"0\"],\n \"GA\": [\"241\", \"00\", \"(?:[067]\\\\d|11)\\\\d{6}|[2-7]\\\\d{6}\", [7, 8], [[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[2-7]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"11|[67]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"0\"]]], 0, 0, \"0(11\\\\d{6}|6[256]\\\\d{6}|7[47]\\\\d{6})\", \"$1\"],\n \"GB\": [\"44\", \"00\", \"[1-357-9]\\\\d{9}|[18]\\\\d{8}|8\\\\d{6}\", [7, 9, 10], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"800\", \"8001\", \"80011\", \"800111\", \"8001111\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3\", [\"845\", \"8454\", \"84546\", \"845464\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{6})\", \"$1 $2\", [\"800\"], \"0$1\"], [\"(\\\\d{5})(\\\\d{4,5})\", \"$1 $2\", [\"1(?:38|5[23]|69|76|94)\", \"1(?:(?:38|69)7|5(?:24|39)|768|946)\", \"1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{5,6})\", \"$1 $2\", [\"1(?:[2-69][02-9]|[78])\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"[25]|7(?:0|6[02-9])\", \"[25]|7(?:0|6(?:[03-9]|2[356]))\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{6})\", \"$1 $2\", [\"7\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[1389]\"], \"0$1\"]], \"0\", 0, 0, 0, 0, 0, [[\"(?:1(?:(?:1(?:3[0-58]|4[0-5]|5[0-26-9]|6[0-4]|[78][0-49])|3(?:0\\\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\\\d\\\\d|2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\\\d)\\\\d\\\\d|1(?:[0-7]\\\\d\\\\d|80[04589])))|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\\\d{3})\\\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\\\d)|76\\\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\\\d|7[4-79])|295[5-7]|35[34]\\\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\\\d{3}\", [9, 10]], [\"7(?:457[0-57-9]|700[01]|911[028])\\\\d{5}|7(?:[1-3]\\\\d\\\\d|4(?:[0-46-9]\\\\d|5[0-689])|5(?:0[0-8]|[13-9]\\\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\\\d|8[02-9]|9[0-689])|8(?:[014-9]\\\\d|[23][0-8])|9(?:[024-9]\\\\d|1[02-9]|3[0-689]))\\\\d{6}\", [10]], [\"80[08]\\\\d{7}|800\\\\d{6}|8001111\"], [\"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\\\d|8[2-49]))\\\\d{7}|845464\\\\d\", [7, 10]], [\"70\\\\d{8}\", [10]], 0, [\"(?:3[0347]|55)\\\\d{8}\", [10]], [\"76(?:0[0-2]|2[356]|34|4[0134]|5[49]|6[0-369]|77|81|9[39])\\\\d{6}\", [10]], [\"56\\\\d{8}\", [10]]], 0, \" x\"],\n \"GD\": [\"1\", \"011\", \"(?:473|[58]\\\\d\\\\d|900)\\\\d{7}\", [10], 0, \"1\", 0, \"1|([2-9]\\\\d{6})$\", \"473$1\", 0, \"473\"],\n \"GE\": [\"995\", \"00\", \"(?:[3-57]\\\\d\\\\d|800)\\\\d{6}\", [9], [[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"70\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"32\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[57]\"]], [\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[348]\"], \"0$1\"]], \"0\"],\n \"GF\": [\"594\", \"00\", \"(?:[56]94|976)\\\\d{6}\", [9], [[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[569]\"], \"0$1\"]], \"0\"],\n \"GG\": [\"44\", \"00\", \"(?:1481|[357-9]\\\\d{3})\\\\d{6}|8\\\\d{6}(?:\\\\d{2})?\", [7, 9, 10], 0, \"0\", 0, \"0|([25-9]\\\\d{5})$\", \"1481$1\", 0, 0, [[\"1481[25-9]\\\\d{5}\", [10]], [\"7(?:(?:781|839)\\\\d|911[17])\\\\d{5}\", [10]], [\"80[08]\\\\d{7}|800\\\\d{6}|8001111\"], [\"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\\\d|8[0-3]))\\\\d{7}|845464\\\\d\", [7, 10]], [\"70\\\\d{8}\", [10]], 0, [\"(?:3[0347]|55)\\\\d{8}\", [10]], [\"76(?:0[0-2]|2[356]|34|4[0134]|5[49]|6[0-369]|77|81|9[39])\\\\d{6}\", [10]], [\"56\\\\d{8}\", [10]]]],\n \"GH\": [\"233\", \"00\", \"(?:[235]\\\\d{3}|800)\\\\d{5}\", [8, 9], [[\"(\\\\d{3})(\\\\d{5})\", \"$1 $2\", [\"8\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[235]\"], \"0$1\"]], \"0\"],\n \"GI\": [\"350\", \"00\", \"[256]\\\\d{7}\", [8], [[\"(\\\\d{3})(\\\\d{5})\", \"$1 $2\", [\"2\"]]]],\n \"GL\": [\"299\", \"00\", \"(?:19|[2-689]\\\\d)\\\\d{4}\", [6], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3\", [\"19|[2-689]\"]]]],\n \"GM\": [\"220\", \"00\", \"[2-9]\\\\d{6}\", [7], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"[2-9]\"]]]],\n \"GN\": [\"224\", \"00\", \"722\\\\d{6}|(?:3|6\\\\d)\\\\d{7}\", [8, 9], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"3\"]], [\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[67]\"]]]],\n \"GP\": [\"590\", \"00\", \"(?:590|69\\\\d|976)\\\\d{6}\", [9], [[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[569]\"], \"0$1\"]], \"0\", 0, 0, 0, 0, 0, [[\"590(?:0[1-68]|1[0-2]|2[0-68]|3[1289]|4[0-24-9]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\\\d)\\\\d{4}\"], [\"69(?:0\\\\d\\\\d|1(?:2[29]|3[0-5]))\\\\d{4}\"], 0, 0, 0, 0, 0, 0, [\"976[01]\\\\d{5}\"]]],\n \"GQ\": [\"240\", \"00\", \"222\\\\d{6}|(?:3\\\\d|55|[89]0)\\\\d{7}\", [9], [[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[235]\"]], [\"(\\\\d{3})(\\\\d{6})\", \"$1 $2\", [\"[89]\"]]]],\n \"GR\": [\"30\", \"00\", \"5005000\\\\d{3}|(?:[2689]\\\\d|70)\\\\d{8}\", [10], [[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"21|7\"]], [\"(\\\\d{4})(\\\\d{6})\", \"$1 $2\", [\"2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[2689]\"]]]],\n \"GT\": [\"502\", \"00\", \"(?:1\\\\d{3}|[2-7])\\\\d{7}\", [8, 11], [[\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"[2-7]\"]], [\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"1\"]]]],\n \"GU\": [\"1\", \"011\", \"(?:[58]\\\\d\\\\d|671|900)\\\\d{7}\", [10], 0, \"1\", 0, \"1|([3-9]\\\\d{6})$\", \"671$1\", 0, \"671\"],\n \"GW\": [\"245\", \"00\", \"[49]\\\\d{8}|4\\\\d{6}\", [7, 9], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"40\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[49]\"]]]],\n \"GY\": [\"592\", \"001\", \"(?:862\\\\d|9008)\\\\d{3}|(?:[2-46]\\\\d|77)\\\\d{5}\", [7], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"[2-46-9]\"]]]],\n \"HK\": [\"852\", \"00(?:30|5[09]|[126-9]?)\", \"8[0-46-9]\\\\d{6,7}|9\\\\d{4}(?:\\\\d(?:\\\\d(?:\\\\d{4})?)?)?|(?:[235-79]\\\\d|46)\\\\d{6}\", [5, 6, 7, 8, 9, 11], [[\"(\\\\d{3})(\\\\d{2,5})\", \"$1 $2\", [\"900\", \"9003\"]], [\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"[2-7]|8[1-4]|9(?:0[1-9]|[1-8])\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"8\"]], [\"(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3 $4\", [\"9\"]]], 0, 0, 0, 0, 0, 0, 0, \"00\"],\n \"HN\": [\"504\", \"00\", \"8\\\\d{10}|[237-9]\\\\d{7}\", [8, 11], [[\"(\\\\d{4})(\\\\d{4})\", \"$1-$2\", [\"[237-9]\"]]]],\n \"HR\": [\"385\", \"00\", \"(?:[24-69]\\\\d|3[0-79])\\\\d{7}|80\\\\d{5,7}|[1-79]\\\\d{7}|6\\\\d{5,6}\", [6, 7, 8, 9], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2,3})\", \"$1 $2 $3\", [\"6[01]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{2})(\\\\d{2,3})\", \"$1 $2 $3\", [\"8\"], \"0$1\"], [\"(\\\\d)(\\\\d{4})(\\\\d{3})\", \"$1 $2 $3\", [\"1\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"[67]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"9\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"[2-5]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"8\"], \"0$1\"]], \"0\"],\n \"HT\": [\"509\", \"00\", \"[2-489]\\\\d{7}\", [8], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\", \"$1 $2 $3\", [\"[2-489]\"]]]],\n \"HU\": [\"36\", \"00\", \"[2357]\\\\d{8}|[1-9]\\\\d{7}\", [8, 9], [[\"(\\\\d)(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"1\"], \"(06 $1)\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]\"], \"(06 $1)\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"[2-57-9]\"], \"06 $1\"]], \"06\"],\n \"ID\": [\"62\", \"00[189]\", \"(?:(?:007803|8\\\\d{4})\\\\d|[1-36])\\\\d{6}|[1-9]\\\\d{8,10}|[2-9]\\\\d{7}\", [7, 8, 9, 10, 11, 12, 13], [[\"(\\\\d)(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"15\"]], [\"(\\\\d{2})(\\\\d{5,9})\", \"$1 $2\", [\"2[124]|[36]1\"], \"(0$1)\"], [\"(\\\\d{3})(\\\\d{5,7})\", \"$1 $2\", [\"800\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{5,8})\", \"$1 $2\", [\"[2-79]\"], \"(0$1)\"], [\"(\\\\d{3})(\\\\d{3,4})(\\\\d{3})\", \"$1-$2-$3\", [\"8[1-35-9]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{6,8})\", \"$1 $2\", [\"1\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"804\"], \"0$1\"], [\"(\\\\d{3})(\\\\d)(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3 $4\", [\"80\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{4})(\\\\d{4,5})\", \"$1-$2-$3\", [\"8\"], \"0$1\"]], \"0\"],\n \"IE\": [\"353\", \"00\", \"(?:1\\\\d|[2569])\\\\d{6,8}|4\\\\d{6,9}|7\\\\d{8}|8\\\\d{8,9}\", [7, 8, 9, 10], [[\"(\\\\d{2})(\\\\d{5})\", \"$1 $2\", [\"2[24-9]|47|58|6[237-9]|9[35-9]\"], \"(0$1)\"], [\"(\\\\d{3})(\\\\d{5})\", \"$1 $2\", [\"[45]0\"], \"(0$1)\"], [\"(\\\\d)(\\\\d{3,4})(\\\\d{4})\", \"$1 $2 $3\", [\"1\"], \"(0$1)\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"[2569]|4[1-69]|7[14]\"], \"(0$1)\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"70\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"81\"], \"(0$1)\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[78]\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"1\"]], [\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"4\"], \"(0$1)\"], [\"(\\\\d{2})(\\\\d)(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3 $4\", [\"8\"], \"0$1\"]], \"0\"],\n \"IL\": [\"972\", \"0(?:0|1[2-9])\", \"1\\\\d{6}(?:\\\\d{3,5})?|[57]\\\\d{8}|[1-489]\\\\d{7}\", [7, 8, 9, 10, 11, 12], [[\"(\\\\d{4})(\\\\d{3})\", \"$1-$2\", [\"125\"]], [\"(\\\\d{4})(\\\\d{2})(\\\\d{2})\", \"$1-$2-$3\", [\"121\"]], [\"(\\\\d)(\\\\d{3})(\\\\d{4})\", \"$1-$2-$3\", [\"[2-489]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1-$2-$3\", [\"[57]\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\", \"$1-$2-$3\", [\"12\"]], [\"(\\\\d{4})(\\\\d{6})\", \"$1-$2\", [\"159\"]], [\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1-$2-$3-$4\", [\"1[7-9]\"]], [\"(\\\\d{3})(\\\\d{1,2})(\\\\d{3})(\\\\d{4})\", \"$1-$2 $3-$4\", [\"15\"]]], \"0\"],\n \"IM\": [\"44\", \"00\", \"1624\\\\d{6}|(?:[3578]\\\\d|90)\\\\d{8}\", [10], 0, \"0\", 0, \"0|([5-8]\\\\d{5})$\", \"1624$1\", 0, \"74576|(?:16|7[56])24\"],\n \"IN\": [\"91\", \"00\", \"(?:000800|[2-9]\\\\d\\\\d)\\\\d{7}|1\\\\d{7,12}\", [8, 9, 10, 11, 12, 13], [[\"(\\\\d{8})\", \"$1\", [\"5(?:0|2[23]|3[03]|[67]1|88)\", \"5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)\", \"5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)\"], 0, 1], [\"(\\\\d{4})(\\\\d{4,5})\", \"$1 $2\", [\"180\", \"1800\"], 0, 1], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"140\"], 0, 1], [\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"11|2[02]|33|4[04]|79[1-7]|80[2-46]\", \"11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])\", \"11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])\"], \"0$1\", 1], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]\", \"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]\", \"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]\"], \"0$1\", 1], [\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807\", \"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]\", \"1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\\\d|7(?:1(?:[013-8]\\\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\\\d|5[0-367])|70[13-7]))[2-7]\"], \"0$1\", 1], [\"(\\\\d{5})(\\\\d{5})\", \"$1 $2\", [\"[6-9]\"], \"0$1\", 1], [\"(\\\\d{4})(\\\\d{2,4})(\\\\d{4})\", \"$1 $2 $3\", [\"1(?:6|8[06])\", \"1(?:6|8[06]0)\"], 0, 1], [\"(\\\\d{4})(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3 $4\", [\"18\"], 0, 1]], \"0\"],\n \"IO\": [\"246\", \"00\", \"3\\\\d{6}\", [7], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"3\"]]]],\n \"IQ\": [\"964\", \"00\", \"(?:1|7\\\\d\\\\d)\\\\d{7}|[2-6]\\\\d{7,8}\", [8, 9, 10], [[\"(\\\\d)(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"1\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"[2-6]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"7\"], \"0$1\"]], \"0\"],\n \"IR\": [\"98\", \"00\", \"[1-9]\\\\d{9}|(?:[1-8]\\\\d\\\\d|9)\\\\d{3,4}\", [4, 5, 6, 7, 10], [[\"(\\\\d{4,5})\", \"$1\", [\"96\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{4,5})\", \"$1 $2\", [\"(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"9\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"[1-8]\"], \"0$1\"]], \"0\"],\n \"IS\": [\"354\", \"00|1(?:0(?:01|[12]0)|100)\", \"(?:38\\\\d|[4-9])\\\\d{6}\", [7, 9], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"[4-9]\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"3\"]]], 0, 0, 0, 0, 0, 0, 0, \"00\"],\n \"IT\": [\"39\", \"00\", \"0\\\\d{5,10}|3[0-8]\\\\d{7,10}|55\\\\d{8}|8\\\\d{5}(?:\\\\d{2,4})?|(?:1\\\\d|39)\\\\d{7,8}\", [6, 7, 8, 9, 10, 11], [[\"(\\\\d{2})(\\\\d{4,6})\", \"$1 $2\", [\"0[26]\"]], [\"(\\\\d{3})(\\\\d{3,6})\", \"$1 $2\", [\"0[13-57-9][0159]|8(?:03|4[17]|9[245])\", \"0[13-57-9][0159]|8(?:03|4[17]|9(?:2|[45][0-4]))\"]], [\"(\\\\d{4})(\\\\d{2,6})\", \"$1 $2\", [\"0(?:[13-579][2-46-8]|8[236-8])\"]], [\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"894\"]], [\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\", \"$1 $2 $3\", [\"0[26]|5\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"1[4679]|[38]\"]], [\"(\\\\d{3})(\\\\d{3,4})(\\\\d{4})\", \"$1 $2 $3\", [\"0[13-57-9][0159]\"]], [\"(\\\\d{2})(\\\\d{4})(\\\\d{5})\", \"$1 $2 $3\", [\"0[26]\"]], [\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"0\"]], [\"(\\\\d{3})(\\\\d{4})(\\\\d{4,5})\", \"$1 $2 $3\", [\"3\"]]], 0, 0, 0, 0, 0, 0, [[\"0669[0-79]\\\\d{1,6}|0(?:1(?:[0159]\\\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\\\d\\\\d|3(?:[0159]\\\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\\\d|6[0-8])|7(?:[0159]\\\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\\\d{2,7}\"], [\"3[1-9]\\\\d{8}|3[2-9]\\\\d{7}\", [9, 10]], [\"80(?:0\\\\d{3}|3)\\\\d{3}\", [6, 9]], [\"(?:0878\\\\d\\\\d|89(?:2|4[5-9]\\\\d))\\\\d{3}|89[45][0-4]\\\\d\\\\d|(?:1(?:44|6[346])|89(?:5[5-9]|9))\\\\d{6}\", [6, 8, 9, 10]], [\"1(?:78\\\\d|99)\\\\d{6}\", [9, 10]], 0, 0, 0, [\"55\\\\d{8}\", [10]], [\"84(?:[08]\\\\d{3}|[17])\\\\d{3}\", [6, 9]]]],\n \"JE\": [\"44\", \"00\", \"1534\\\\d{6}|(?:[3578]\\\\d|90)\\\\d{8}\", [10], 0, \"0\", 0, \"0|([0-24-8]\\\\d{5})$\", \"1534$1\", 0, 0, [[\"1534[0-24-8]\\\\d{5}\"], [\"7(?:(?:(?:50|82)9|937)\\\\d|7(?:00[378]|97[7-9]))\\\\d{5}\"], [\"80(?:07(?:35|81)|8901)\\\\d{4}\"], [\"(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\\\d{4}\"], [\"701511\\\\d{4}\"], 0, [\"(?:3(?:0(?:07(?:35|81)|8901)|3\\\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\\\d{4})\\\\d{4}\"], [\"76(?:0[0-2]|2[356]|34|4[0134]|5[49]|6[0-369]|77|81|9[39])\\\\d{6}\"], [\"56\\\\d{8}\"]]],\n \"JM\": [\"1\", \"011\", \"(?:[58]\\\\d\\\\d|658|900)\\\\d{7}\", [10], 0, \"1\", 0, 0, 0, 0, \"658|876\"],\n \"JO\": [\"962\", \"00\", \"900\\\\d{5}|(?:(?:[268]|7\\\\d)\\\\d|32|53)\\\\d{6}\", [8, 9], [[\"(\\\\d)(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[2356]|87\"], \"(0$1)\"], [\"(\\\\d{3})(\\\\d{5,6})\", \"$1 $2\", [\"[89]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{7})\", \"$1 $2\", [\"70\"], \"0$1\"], [\"(\\\\d)(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"7\"], \"0$1\"]], \"0\"],\n \"JP\": [\"81\", \"010\", \"00[1-9]\\\\d{6,14}|[257-9]\\\\d{9}|(?:00|[1-9]\\\\d\\\\d)\\\\d{6}\", [8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1-$2-$3\", [\"(?:12|57|99)0\"], \"0$1\"], [\"(\\\\d{4})(\\\\d)(\\\\d{4})\", \"$1-$2-$3\", [\"1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:49|80|9[16])\", \"1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[78]|96)|477|51[24]|636)|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]\", \"1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[78]|96[2457-9])|477|51[24]|636[2-57-9])|9(?:496|802|9(?:1[23]|69))|1(?:45|58)[67]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1-$2-$3\", [\"60\"], \"0$1\"], [\"(\\\\d)(\\\\d{4})(\\\\d{4})\", \"$1-$2-$3\", [\"[36]|4(?:2[09]|7[01])\", \"[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1-$2-$3\", [\"1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[279]|49|6[0-24-689]|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])\", \"1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[0468][01]|[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|2[01]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|6(?:[0-24]|5[0-3589]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:47[59]|59[89]|8(?:6[68]|9))[019]\", \"1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[0468][01]|[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|2[01]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|6(?:[0-24]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]\", \"1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[0468][01]|[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|2[01]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|6(?:[0-24]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\", \"$1-$2-$3\", [\"[14]|[29][2-9]|5[3-9]|7[2-4679]|8(?:[246-9]|3[3-8]|5[2-9])\", \"[14]|[29][2-9]|5[3-9]|7[2-4679]|8(?:[246-9]|3(?:[3-6][2-9]|7|8[2-5])|5[2-9])\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1-$2-$3\", [\"800\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\", \"$1-$2-$3\", [\"[2579]|80\"], \"0$1\"]], \"0\"],\n \"KE\": [\"254\", \"000\", \"(?:[17]\\\\d\\\\d|900)\\\\d{6}|(?:2|80)0\\\\d{6,7}|[4-6]\\\\d{6,8}\", [7, 8, 9, 10], [[\"(\\\\d{2})(\\\\d{5,7})\", \"$1 $2\", [\"[24-6]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{6})\", \"$1 $2\", [\"[17]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"[89]\"], \"0$1\"]], \"0\"],\n \"KG\": [\"996\", \"00\", \"8\\\\d{9}|(?:[235-8]\\\\d|99)\\\\d{7}\", [9, 10], [[\"(\\\\d{4})(\\\\d{5})\", \"$1 $2\", [\"3(?:1[346]|[24-79])\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[235-79]|88\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d)(\\\\d{2,3})\", \"$1 $2 $3 $4\", [\"8\"], \"0$1\"]], \"0\"],\n \"KH\": [\"855\", \"00[14-9]\", \"1\\\\d{9}|[1-9]\\\\d{7,8}\", [8, 9, 10], [[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"[1-9]\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"1\"]]], \"0\"],\n \"KI\": [\"686\", \"00\", \"(?:[37]\\\\d|6[0-79])\\\\d{6}|(?:[2-48]\\\\d|50)\\\\d{3}\", [5, 8], 0, \"0\"],\n \"KM\": [\"269\", \"00\", \"[3478]\\\\d{6}\", [7], [[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3\", [\"[3478]\"]]]],\n \"KN\": [\"1\", \"011\", \"(?:[58]\\\\d\\\\d|900)\\\\d{7}\", [10], 0, \"1\", 0, \"1|([2-7]\\\\d{6})$\", \"869$1\", 0, \"869\"],\n \"KP\": [\"850\", \"00|99\", \"85\\\\d{6}|(?:19\\\\d|2)\\\\d{7}\", [8, 10], [[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"8\"], \"0$1\"], [\"(\\\\d)(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"2\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"1\"], \"0$1\"]], \"0\"],\n \"KR\": [\"82\", \"00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))\", \"00[1-9]\\\\d{8,11}|(?:[12]|5\\\\d{3})\\\\d{7}|[13-6]\\\\d{9}|(?:[1-6]\\\\d|80)\\\\d{7}|[3-6]\\\\d{4,5}|(?:00|7)0\\\\d{8}\", [5, 6, 8, 9, 10, 11, 12, 13, 14], [[\"(\\\\d{2})(\\\\d{3,4})\", \"$1-$2\", [\"(?:3[1-3]|[46][1-4]|5[1-5])1\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{4})\", \"$1-$2\", [\"1\"]], [\"(\\\\d)(\\\\d{3,4})(\\\\d{4})\", \"$1-$2-$3\", [\"2\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1-$2-$3\", [\"60|8\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\", \"$1-$2-$3\", [\"[1346]|5[1-5]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\", \"$1-$2-$3\", [\"[57]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{5})(\\\\d{4})\", \"$1-$2-$3\", [\"5\"], \"0$1\"]], \"0\", 0, \"0(8(?:[1-46-8]|5\\\\d\\\\d))?\"],\n \"KW\": [\"965\", \"00\", \"(?:18|[2569]\\\\d\\\\d)\\\\d{5}\", [7, 8], [[\"(\\\\d{4})(\\\\d{3,4})\", \"$1 $2\", [\"[169]|2(?:[235]|4[1-35-9])|52\"]], [\"(\\\\d{3})(\\\\d{5})\", \"$1 $2\", [\"[25]\"]]]],\n \"KY\": [\"1\", \"011\", \"(?:345|[58]\\\\d\\\\d|900)\\\\d{7}\", [10], 0, \"1\", 0, \"1|([2-9]\\\\d{6})$\", \"345$1\", 0, \"345\"],\n \"KZ\": [\"7\", \"810\", \"33622\\\\d{5}|(?:7\\\\d|80)\\\\d{8}\", [10], 0, \"8\", 0, 0, 0, 0, \"33|7\", 0, \"8~10\"],\n \"LA\": [\"856\", \"00\", \"(?:2\\\\d|3)\\\\d{8}|(?:[235-8]\\\\d|41)\\\\d{6}\", [8, 9, 10], [[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"2[13]|3[14]|[4-8]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})\", \"$1 $2 $3 $4\", [\"3\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3 $4\", [\"2\"], \"0$1\"]], \"0\"],\n \"LB\": [\"961\", \"00\", \"[7-9]\\\\d{7}|[13-9]\\\\d{6}\", [7, 8], [[\"(\\\\d)(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[7-9]\"]]], \"0\"],\n \"LC\": [\"1\", \"011\", \"(?:[58]\\\\d\\\\d|758|900)\\\\d{7}\", [10], 0, \"1\", 0, \"1|([2-7]\\\\d{6})$\", \"758$1\", 0, \"758\"],\n \"LI\": [\"423\", \"00\", \"90\\\\d{5}|(?:[2378]|6\\\\d\\\\d)\\\\d{6}\", [7, 9], [[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3\", [\"[237-9]\"]], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"69\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"6\"]]], \"0\", 0, \"0|(1001)\"],\n \"LK\": [\"94\", \"00\", \"[1-9]\\\\d{8}\", [9], [[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"7\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[1-689]\"], \"0$1\"]], \"0\"],\n \"LR\": [\"231\", \"00\", \"(?:2|33|5\\\\d|77|88)\\\\d{7}|[45]\\\\d{6}\", [7, 8, 9], [[\"(\\\\d)(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[45]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"2\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[3578]\"], \"0$1\"]], \"0\"],\n \"LS\": [\"266\", \"00\", \"(?:[256]\\\\d\\\\d|800)\\\\d{5}\", [8], [[\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"[2568]\"]]]],\n \"LT\": [\"370\", \"00\", \"(?:[3469]\\\\d|52|[78]0)\\\\d{6}\", [8], [[\"(\\\\d)(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"52[0-7]\"], \"(8-$1)\", 1], [\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\", \"$1 $2 $3\", [\"[7-9]\"], \"8 $1\", 1], [\"(\\\\d{2})(\\\\d{6})\", \"$1 $2\", [\"37|4(?:[15]|6[1-8])\"], \"(8-$1)\", 1], [\"(\\\\d{3})(\\\\d{5})\", \"$1 $2\", [\"[3-6]\"], \"(8-$1)\", 1]], \"8\", 0, \"[08]\"],\n \"LU\": [\"352\", \"00\", \"35[013-9]\\\\d{4,8}|6\\\\d{8}|35\\\\d{2,4}|(?:[2457-9]\\\\d|3[0-46-9])\\\\d{2,9}\", [4, 5, 6, 7, 8, 9, 10, 11], [[\"(\\\\d{2})(\\\\d{3})\", \"$1 $2\", [\"2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])\"]], [\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3\", [\"2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])\"]], [\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\", \"$1 $2 $3\", [\"20[2-689]\"]], [\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})\", \"$1 $2 $3 $4\", [\"2(?:[0367]|4[3-8])\"]], [\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\", \"$1 $2 $3\", [\"80[01]|90[015]\"]], [\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})\", \"$1 $2 $3 $4\", [\"20\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"6\"]], [\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})\", \"$1 $2 $3 $4 $5\", [\"2(?:[0367]|4[3-8])\"]], [\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,5})\", \"$1 $2 $3 $4\", [\"[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]\"]]], 0, 0, \"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\\\d)\"],\n \"LV\": [\"371\", \"00\", \"(?:[268]\\\\d|90)\\\\d{6}\", [8], [[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[269]|8[01]\"]]]],\n \"LY\": [\"218\", \"00\", \"[2-9]\\\\d{8}\", [9], [[\"(\\\\d{2})(\\\\d{7})\", \"$1-$2\", [\"[2-9]\"], \"0$1\"]], \"0\"],\n \"MA\": [\"212\", \"00\", \"[5-8]\\\\d{8}\", [9], [[\"(\\\\d{5})(\\\\d{4})\", \"$1-$2\", [\"5(?:29|38)\", \"5(?:29|38)[89]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"5[45]\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{5})\", \"$1-$2\", [\"5(?:2[2-489]|3[5-9]|9)|892\", \"5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{7})\", \"$1-$2\", [\"8\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{6})\", \"$1-$2\", [\"[5-7]\"], \"0$1\"]], \"0\", 0, 0, 0, 0, 0, [[\"5(?:29(?:[189]0|29)|38[89]0)\\\\d{4}|5(?:2(?:[015-7]\\\\d|2[02-9]|3[0-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\\\d|5[02-9]|6[02-8]|80|9[3-9])|(?:4[067]|5[03])\\\\d)\\\\d{5}\"], [\"(?:6(?:[0-79]\\\\d|8[0-247-9])|7(?:0[016-8]|6[1267]|7[0-27]))\\\\d{6}\"], [\"80\\\\d{7}\"], [\"89\\\\d{7}\"], 0, 0, 0, 0, [\"592(?:4[0-2]|93)\\\\d{4}\"]]],\n \"MC\": [\"377\", \"00\", \"870\\\\d{5}|(?:[349]|6\\\\d)\\\\d{7}\", [8, 9], [[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"4\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[39]\"]], [\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4 $5\", [\"6\"], \"0$1\"]], \"0\"],\n \"MD\": [\"373\", \"00\", \"(?:[235-7]\\\\d|[89]0)\\\\d{6}\", [8], [[\"(\\\\d{3})(\\\\d{5})\", \"$1 $2\", [\"[89]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"22|3\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\", \"$1 $2 $3\", [\"[25-7]\"], \"0$1\"]], \"0\"],\n \"ME\": [\"382\", \"00\", \"(?:20|[3-79]\\\\d)\\\\d{6}|80\\\\d{6,7}\", [8, 9], [[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"[2-9]\"], \"0$1\"]], \"0\"],\n \"MF\": [\"590\", \"00\", \"(?:590|69\\\\d|976)\\\\d{6}\", [9], 0, \"0\", 0, 0, 0, 0, 0, [[\"590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\\\d{4}\"], [\"69(?:0\\\\d\\\\d|1(?:2[29]|3[0-5]))\\\\d{4}\"], 0, 0, 0, 0, 0, 0, [\"976[01]\\\\d{5}\"]]],\n \"MG\": [\"261\", \"00\", \"[23]\\\\d{8}\", [9], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[23]\"], \"0$1\"]], \"0\", 0, \"0|([24-9]\\\\d{6})$\", \"20$1\"],\n \"MH\": [\"692\", \"011\", \"329\\\\d{4}|(?:[256]\\\\d|45)\\\\d{5}\", [7], [[\"(\\\\d{3})(\\\\d{4})\", \"$1-$2\", [\"[2-6]\"]]], \"1\"],\n \"MK\": [\"389\", \"00\", \"[2-578]\\\\d{7}\", [8], [[\"(\\\\d)(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"2\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[347]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d)(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[58]\"], \"0$1\"]], \"0\"],\n \"ML\": [\"223\", \"00\", \"[24-9]\\\\d{7}\", [8], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[24-9]\"]]]],\n \"MM\": [\"95\", \"00\", \"1\\\\d{5,7}|95\\\\d{6}|(?:[4-7]|9[0-46-9])\\\\d{6,8}|(?:2|8\\\\d)\\\\d{5,8}\", [6, 7, 8, 9, 10], [[\"(\\\\d)(\\\\d{2})(\\\\d{3})\", \"$1 $2 $3\", [\"16|2\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\", \"$1 $2 $3\", [\"[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]\"], \"0$1\"], [\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"[12]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"[4-7]|8[1-35]\"], \"0$1\"], [\"(\\\\d)(\\\\d{3})(\\\\d{4,6})\", \"$1 $2 $3\", [\"9(?:2[0-4]|[35-9]|4[137-9])\"], \"0$1\"], [\"(\\\\d)(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"2\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"8\"], \"0$1\"], [\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3 $4\", [\"92\"], \"0$1\"], [\"(\\\\d)(\\\\d{5})(\\\\d{4})\", \"$1 $2 $3\", [\"9\"], \"0$1\"]], \"0\"],\n \"MN\": [\"976\", \"001\", \"[12]\\\\d{7,9}|[57-9]\\\\d{7}\", [8, 9, 10], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\", \"$1 $2 $3\", [\"[12]1\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"[57-9]\"]], [\"(\\\\d{3})(\\\\d{5,6})\", \"$1 $2\", [\"[12]2[1-3]\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{5,6})\", \"$1 $2\", [\"[12](?:27|3[2-8]|4[2-68]|5[1-4689])\", \"[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]\"], \"0$1\"], [\"(\\\\d{5})(\\\\d{4,5})\", \"$1 $2\", [\"[12]\"], \"0$1\"]], \"0\"],\n \"MO\": [\"853\", \"00\", \"(?:28|[68]\\\\d)\\\\d{6}\", [8], [[\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"[268]\"]]]],\n \"MP\": [\"1\", \"011\", \"[58]\\\\d{9}|(?:67|90)0\\\\d{7}\", [10], 0, \"1\", 0, \"1|([2-9]\\\\d{6})$\", \"670$1\", 0, \"670\"],\n \"MQ\": [\"596\", \"00\", \"69\\\\d{7}|(?:59|97)6\\\\d{6}\", [9], [[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[569]\"], \"0$1\"]], \"0\"],\n \"MR\": [\"222\", \"00\", \"(?:[2-4]\\\\d\\\\d|800)\\\\d{5}\", [8], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[2-48]\"]]]],\n \"MS\": [\"1\", \"011\", \"66449\\\\d{5}|(?:[58]\\\\d\\\\d|900)\\\\d{7}\", [10], 0, \"1\", 0, \"1|(4\\\\d{6})$\", \"664$1\", 0, \"664\"],\n \"MT\": [\"356\", \"00\", \"3550\\\\d{4}|(?:[2579]\\\\d\\\\d|800)\\\\d{5}\", [8], [[\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"[2357-9]\"]]]],\n \"MU\": [\"230\", \"0(?:0|[24-7]0|3[03])\", \"(?:[2-468]|5\\\\d)\\\\d{6}\", [7, 8], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"[2-46]|8[013]\"]], [\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"5\"]]], 0, 0, 0, 0, 0, 0, 0, \"020\"],\n \"MV\": [\"960\", \"0(?:0|19)\", \"(?:800|9[0-57-9]\\\\d)\\\\d{7}|[34679]\\\\d{6}\", [7, 10], [[\"(\\\\d{3})(\\\\d{4})\", \"$1-$2\", [\"[3467]|9[13-9]\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[89]\"]]], 0, 0, 0, 0, 0, 0, 0, \"00\"],\n \"MW\": [\"265\", \"00\", \"1\\\\d{6}(?:\\\\d{2})?|(?:[23]1|77|88|99)\\\\d{7}\", [7, 9], [[\"(\\\\d)(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"1[2-9]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"2\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[137-9]\"], \"0$1\"]], \"0\"],\n \"MX\": [\"52\", \"0[09]\", \"(?:1(?:[01467]\\\\d|[2359][1-9]|8[1-79])|[2-9]\\\\d)\\\\d{8}\", [10, 11], [[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"33|5[56]|81\"], 0, 1], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[2-9]\"], 0, 1], [\"(\\\\d)(\\\\d{2})(\\\\d{4})(\\\\d{4})\", \"$2 $3 $4\", [\"1(?:33|5[56]|81)\"], 0, 1], [\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$2 $3 $4\", [\"1\"], 0, 1]], \"01\", 0, \"0(?:[12]|4[45])|1\", 0, 0, 0, 0, \"00\"],\n \"MY\": [\"60\", \"00\", \"1\\\\d{8,9}|(?:3\\\\d|[4-9])\\\\d{7}\", [8, 9, 10], [[\"(\\\\d)(\\\\d{3})(\\\\d{4})\", \"$1-$2 $3\", [\"[4-79]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\", \"$1-$2 $3\", [\"1(?:[02469]|[37][2-9]|8[1-9])|8\"], \"0$1\"], [\"(\\\\d)(\\\\d{4})(\\\\d{4})\", \"$1-$2 $3\", [\"3\"], \"0$1\"], [\"(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{4})\", \"$1-$2-$3-$4\", [\"1[36-8]\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1-$2 $3\", [\"15\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\", \"$1-$2 $3\", [\"1\"], \"0$1\"]], \"0\"],\n \"MZ\": [\"258\", \"00\", \"(?:2|8\\\\d)\\\\d{7}\", [8, 9], [[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"2|8[2-7]\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"8\"]]]],\n \"NA\": [\"264\", \"00\", \"[68]\\\\d{7,8}\", [8, 9], [[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"88\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"6\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"87\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"8\"], \"0$1\"]], \"0\"],\n \"NC\": [\"687\", \"00\", \"[2-57-9]\\\\d{5}\", [6], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1.$2.$3\", [\"[2-57-9]\"]]]],\n \"NE\": [\"227\", \"00\", \"[0289]\\\\d{7}\", [8], [[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"08\"]], [\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[089]|2[013]\"]]]],\n \"NF\": [\"672\", \"00\", \"[13]\\\\d{5}\", [6], [[\"(\\\\d{2})(\\\\d{4})\", \"$1 $2\", [\"1[0-3]\"]], [\"(\\\\d)(\\\\d{5})\", \"$1 $2\", [\"[13]\"]]], 0, 0, \"([0-258]\\\\d{4})$\", \"3$1\"],\n \"NG\": [\"234\", \"009\", \"(?:[124-7]|9\\\\d{3})\\\\d{6}|[1-9]\\\\d{7}|[78]\\\\d{9,13}\", [7, 8, 10, 11, 12, 13, 14], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\", \"$1 $2 $3\", [\"78\"], \"0$1\"], [\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"[12]|9(?:0[3-9]|[1-9])\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{2,3})\", \"$1 $2 $3\", [\"[3-7]|8[2-9]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"[7-9]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{4})(\\\\d{4,5})\", \"$1 $2 $3\", [\"[78]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{5})(\\\\d{5,6})\", \"$1 $2 $3\", [\"[78]\"], \"0$1\"]], \"0\"],\n \"NI\": [\"505\", \"00\", \"(?:1800|[25-8]\\\\d{3})\\\\d{4}\", [8], [[\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"[125-8]\"]]]],\n \"NL\": [\"31\", \"00\", \"(?:[124-7]\\\\d\\\\d|3(?:[02-9]\\\\d|1[0-8]))\\\\d{6}|[89]\\\\d{6,9}|1\\\\d{4,5}\", [5, 6, 7, 8, 9, 10], [[\"(\\\\d{3})(\\\\d{4,7})\", \"$1 $2\", [\"[89]0\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{7})\", \"$1 $2\", [\"66\"], \"0$1\"], [\"(\\\\d)(\\\\d{8})\", \"$1 $2\", [\"6\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"1[16-8]|2[259]|3[124]|4[17-9]|5[124679]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[1-57-9]\"], \"0$1\"]], \"0\"],\n \"NO\": [\"47\", \"00\", \"(?:0|[2-9]\\\\d{3})\\\\d{4}\", [5, 8], [[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\", \"$1 $2 $3\", [\"[489]|5[89]\"]], [\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[235-7]\"]]], 0, 0, 0, 0, 0, \"[02-689]|7[0-8]\"],\n \"NP\": [\"977\", \"00\", \"9\\\\d{9}|[1-9]\\\\d{7}\", [8, 10], [[\"(\\\\d)(\\\\d{7})\", \"$1-$2\", [\"1[2-6]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{6})\", \"$1-$2\", [\"[1-8]|9(?:[1-579]|6[2-6])\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{7})\", \"$1-$2\", [\"9\"]]], \"0\"],\n \"NR\": [\"674\", \"00\", \"(?:444|(?:55|8\\\\d)\\\\d|666)\\\\d{4}\", [7], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"[4-68]\"]]]],\n \"NU\": [\"683\", \"00\", \"(?:[47]|888\\\\d)\\\\d{3}\", [4, 7], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"8\"]]]],\n \"NZ\": [\"64\", \"0(?:0|161)\", \"2\\\\d{7,9}|(?:[34]\\\\d|6[0-35-9])\\\\d{6}|(?:508|[79]\\\\d)\\\\d{6,7}|8\\\\d{4,9}\", [5, 6, 7, 8, 9, 10], [[\"(\\\\d{2})(\\\\d{3,8})\", \"$1 $2\", [\"83\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\", \"$1 $2 $3\", [\"[89]0\"], \"0$1\"], [\"(\\\\d)(\\\\d{3})(\\\\d{4})\", \"$1-$2 $3\", [\"24|[346]|7[2-57-9]|9[2-9]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"2(?:10|74)|[59]|80\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\", \"$1 $2 $3\", [\"2[028]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3,5})\", \"$1 $2 $3\", [\"2(?:[169]|7[0-35-9])|7|86\"], \"0$1\"]], \"0\", 0, 0, 0, 0, 0, 0, \"00\"],\n \"OM\": [\"968\", \"00\", \"(?:1505|[279]\\\\d{3}|500)\\\\d{4}|8007\\\\d{4,5}\", [7, 8, 9], [[\"(\\\\d{3})(\\\\d{4,6})\", \"$1 $2\", [\"[58]\"]], [\"(\\\\d{2})(\\\\d{6})\", \"$1 $2\", [\"2\"]], [\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"[179]\"]]]],\n \"PA\": [\"507\", \"00\", \"(?:[1-57-9]|6\\\\d)\\\\d{6}\", [7, 8], [[\"(\\\\d{3})(\\\\d{4})\", \"$1-$2\", [\"[1-57-9]\"]], [\"(\\\\d{4})(\\\\d{4})\", \"$1-$2\", [\"6\"]]]],\n \"PE\": [\"51\", \"19(?:1[124]|77|90)00\", \"(?:[14-8]|9\\\\d)\\\\d{7}\", [8, 9], [[\"(\\\\d{3})(\\\\d{5})\", \"$1 $2\", [\"80\"], \"(0$1)\"], [\"(\\\\d)(\\\\d{7})\", \"$1 $2\", [\"1\"], \"(0$1)\"], [\"(\\\\d{2})(\\\\d{6})\", \"$1 $2\", [\"[4-8]\"], \"(0$1)\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"9\"]]], \"0\", 0, 0, 0, 0, 0, 0, 0, \" Anexo \"],\n \"PF\": [\"689\", \"00\", \"[48]\\\\d{7}|4\\\\d{5}\", [6, 8], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3\", [\"44\"]], [\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[48]\"]]]],\n \"PG\": [\"675\", \"00|140[1-3]\", \"(?:180|[78]\\\\d{3})\\\\d{4}|(?:[2-589]\\\\d|64)\\\\d{5}\", [7, 8], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"18|[2-69]|85\"]], [\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"[78]\"]]], 0, 0, 0, 0, 0, 0, 0, \"00\"],\n \"PH\": [\"63\", \"00\", \"1800\\\\d{7,9}|(?:2|[89]\\\\d{4})\\\\d{5}|[2-8]\\\\d{8}|[28]\\\\d{7}\", [6, 8, 9, 10, 11, 12, 13], [[\"(\\\\d)(\\\\d{5})\", \"$1 $2\", [\"2\"], \"(0$1)\"], [\"(\\\\d)(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"2\"], \"(0$1)\"], [\"(\\\\d{4})(\\\\d{4,6})\", \"$1 $2\", [\"3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2\", \"3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))\"], \"(0$1)\"], [\"(\\\\d{5})(\\\\d{4})\", \"$1 $2\", [\"346|4(?:27|9[35])|883\", \"3469|4(?:279|9(?:30|56))|8834\"], \"(0$1)\"], [\"(\\\\d)(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"2\"], \"(0$1)\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[3-7]|8[2-8]\"], \"(0$1)\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[89]\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"1\"]], [\"(\\\\d{4})(\\\\d{1,2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3 $4\", [\"1\"]]], \"0\"],\n \"PK\": [\"92\", \"00\", \"122\\\\d{6}|[24-8]\\\\d{10,11}|9(?:[013-9]\\\\d{8,10}|2(?:[01]\\\\d\\\\d|2(?:[06-8]\\\\d|1[01]))\\\\d{7})|(?:[2-8]\\\\d{3}|92(?:[0-7]\\\\d|8[1-9]))\\\\d{6}|[24-9]\\\\d{8}|[89]\\\\d{7}\", [8, 9, 10, 11, 12], [[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})\", \"$1 $2 $3\", [\"[89]0\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{5})\", \"$1 $2\", [\"1\"]], [\"(\\\\d{3})(\\\\d{6,7})\", \"$1 $2\", [\"2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])\", \"9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]\"], \"(0$1)\"], [\"(\\\\d{2})(\\\\d{7,8})\", \"$1 $2\", [\"(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\"], \"(0$1)\"], [\"(\\\\d{5})(\\\\d{5})\", \"$1 $2\", [\"58\"], \"(0$1)\"], [\"(\\\\d{3})(\\\\d{7})\", \"$1 $2\", [\"3\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3 $4\", [\"2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91\"], \"(0$1)\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3 $4\", [\"[24-9]\"], \"(0$1)\"]], \"0\"],\n \"PL\": [\"48\", \"00\", \"[1-57-9]\\\\d{6}(?:\\\\d{2})?|6\\\\d{5,8}\", [6, 7, 8, 9], [[\"(\\\\d{5})\", \"$1\", [\"19\"]], [\"(\\\\d{3})(\\\\d{3})\", \"$1 $2\", [\"11|64\"]], [\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\", \"$1 $2 $3\", [\"(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1\", \"(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19\"]], [\"(\\\\d{3})(\\\\d{2})(\\\\d{2,3})\", \"$1 $2 $3\", [\"64\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"39|45|5[0137]|6[0469]|7[02389]|8[08]\"]], [\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"1[2-8]|[2-8]|9[145]\"]]]],\n \"PM\": [\"508\", \"00\", \"[45]\\\\d{5}\", [6], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3\", [\"[45]\"], \"0$1\"]], \"0\"],\n \"PR\": [\"1\", \"011\", \"(?:[589]\\\\d\\\\d|787)\\\\d{7}\", [10], 0, \"1\", 0, 0, 0, 0, \"787|939\"],\n \"PS\": [\"970\", \"00\", \"[2489]2\\\\d{6}|(?:1\\\\d|5)\\\\d{8}\", [8, 9, 10], [[\"(\\\\d)(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[2489]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"5\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"1\"]]], \"0\"],\n \"PT\": [\"351\", \"00\", \"(?:[26-9]\\\\d|30)\\\\d{7}\", [9], [[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"2[12]\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[236-9]\"]]]],\n \"PW\": [\"680\", \"01[12]\", \"(?:[24-8]\\\\d\\\\d|345|900)\\\\d{4}\", [7], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"[2-9]\"]]]],\n \"PY\": [\"595\", \"00\", \"59\\\\d{4,6}|(?:[2-46-9]\\\\d|5[0-8])\\\\d{4,7}\", [6, 7, 8, 9], [[\"(\\\\d{3})(\\\\d{3,6})\", \"$1 $2\", [\"[2-9]0\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{5})\", \"$1 $2\", [\"[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]\"], \"(0$1)\"], [\"(\\\\d{3})(\\\\d{4,5})\", \"$1 $2\", [\"2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85\"], \"(0$1)\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]\"], \"(0$1)\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"87\"]], [\"(\\\\d{3})(\\\\d{6})\", \"$1 $2\", [\"9\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[2-8]\"], \"0$1\"]], \"0\"],\n \"QA\": [\"974\", \"00\", \"[2-7]\\\\d{7}|(?:2\\\\d\\\\d|800)\\\\d{4}\", [7, 8], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"2[126]|8\"]], [\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"[2-7]\"]]]],\n \"RE\": [\"262\", \"00\", \"9769\\\\d{5}|(?:26|[68]\\\\d)\\\\d{7}\", [9], [[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[2689]\"], \"0$1\"]], \"0\", 0, 0, 0, 0, \"26[23]|69|[89]\"],\n \"RO\": [\"40\", \"00\", \"(?:[237]\\\\d|[89]0)\\\\d{7}|[23]\\\\d{5}\", [6, 9], [[\"(\\\\d{3})(\\\\d{3})\", \"$1 $2\", [\"2[3-6]\", \"2[3-6]\\\\d9\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{4})\", \"$1 $2\", [\"219|31\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[23]1\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[237-9]\"], \"0$1\"]], \"0\", 0, 0, 0, 0, 0, 0, 0, \" int \"],\n \"RS\": [\"381\", \"00\", \"38[02-9]\\\\d{6,9}|6\\\\d{7,9}|90\\\\d{4,8}|38\\\\d{5,6}|(?:7\\\\d\\\\d|800)\\\\d{3,9}|(?:[12]\\\\d|3[0-79])\\\\d{5,10}\", [6, 7, 8, 9, 10, 11, 12], [[\"(\\\\d{3})(\\\\d{3,9})\", \"$1 $2\", [\"(?:2[389]|39)0|[7-9]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{5,10})\", \"$1 $2\", [\"[1-36]\"], \"0$1\"]], \"0\"],\n \"RU\": [\"7\", \"810\", \"[347-9]\\\\d{9}\", [10], [[\"(\\\\d{4})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"7(?:1[0-8]|2[1-9])\", \"7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))\", \"7(?:1(?:[0-6]2|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2\"], \"8 ($1)\", 1], [\"(\\\\d{5})(\\\\d)(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"7(?:1[0-68]|2[1-9])\", \"7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))\", \"7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]\"], \"8 ($1)\", 1], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"7\"], \"8 ($1)\", 1], [\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2-$3-$4\", [\"[3489]\"], \"8 ($1)\", 1]], \"8\", 0, 0, 0, 0, \"3[04-689]|[489]\", 0, \"8~10\"],\n \"RW\": [\"250\", \"00\", \"(?:06|[27]\\\\d\\\\d|[89]00)\\\\d{6}\", [8, 9], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"0\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[7-9]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"2\"]]], \"0\"],\n \"SA\": [\"966\", \"00\", \"92\\\\d{7}|(?:[15]|8\\\\d)\\\\d{8}\", [9, 10], [[\"(\\\\d{4})(\\\\d{5})\", \"$1 $2\", [\"9\"]], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"1\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"5\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"81\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"8\"]]], \"0\"],\n \"SB\": [\"677\", \"0[01]\", \"(?:[1-6]|[7-9]\\\\d\\\\d)\\\\d{4}\", [5, 7], [[\"(\\\\d{2})(\\\\d{5})\", \"$1 $2\", [\"7|8[4-9]|9(?:[1-8]|9[0-8])\"]]]],\n \"SC\": [\"248\", \"010|0[0-2]\", \"8000\\\\d{3}|(?:[249]\\\\d|64)\\\\d{5}\", [7], [[\"(\\\\d)(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[246]|9[57]\"]]], 0, 0, 0, 0, 0, 0, 0, \"00\"],\n \"SD\": [\"249\", \"00\", \"[19]\\\\d{8}\", [9], [[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[19]\"], \"0$1\"]], \"0\"],\n \"SE\": [\"46\", \"00\", \"(?:[26]\\\\d\\\\d|9)\\\\d{9}|[1-9]\\\\d{8}|[1-689]\\\\d{7}|[1-4689]\\\\d{6}|2\\\\d{5}\", [6, 7, 8, 9, 10], [[\"(\\\\d{2})(\\\\d{2,3})(\\\\d{2})\", \"$1-$2 $3\", [\"20\"], \"0$1\", 0, \"$1 $2 $3\"], [\"(\\\\d{3})(\\\\d{4})\", \"$1-$2\", [\"9(?:00|39|44)\"], \"0$1\", 0, \"$1 $2\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{2})\", \"$1-$2 $3\", [\"[12][136]|3[356]|4[0246]|6[03]|90[1-9]\"], \"0$1\", 0, \"$1 $2 $3\"], [\"(\\\\d)(\\\\d{2,3})(\\\\d{2})(\\\\d{2})\", \"$1-$2 $3 $4\", [\"8\"], \"0$1\", 0, \"$1 $2 $3 $4\"], [\"(\\\\d{3})(\\\\d{2,3})(\\\\d{2})\", \"$1-$2 $3\", [\"1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])\"], \"0$1\", 0, \"$1 $2 $3\"], [\"(\\\\d{3})(\\\\d{2,3})(\\\\d{3})\", \"$1-$2 $3\", [\"9(?:00|39|44)\"], \"0$1\", 0, \"$1 $2 $3\"], [\"(\\\\d{2})(\\\\d{2,3})(\\\\d{2})(\\\\d{2})\", \"$1-$2 $3 $4\", [\"1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]\"], \"0$1\", 0, \"$1 $2 $3 $4\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1-$2 $3 $4\", [\"10|7\"], \"0$1\", 0, \"$1 $2 $3 $4\"], [\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{2})\", \"$1-$2 $3 $4\", [\"8\"], \"0$1\", 0, \"$1 $2 $3 $4\"], [\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1-$2 $3 $4\", [\"[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])\"], \"0$1\", 0, \"$1 $2 $3 $4\"], [\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{3})\", \"$1-$2 $3 $4\", [\"9\"], \"0$1\", 0, \"$1 $2 $3 $4\"], [\"(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1-$2 $3 $4 $5\", [\"[26]\"], \"0$1\", 0, \"$1 $2 $3 $4 $5\"]], \"0\"],\n \"SG\": [\"65\", \"0[0-3]\\\\d\", \"(?:(?:1\\\\d|8)\\\\d\\\\d|7000)\\\\d{7}|[3689]\\\\d{7}\", [8, 10, 11], [[\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"[369]|8[1-9]\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"8\"]], [\"(\\\\d{4})(\\\\d{4})(\\\\d{3})\", \"$1 $2 $3\", [\"7\"]], [\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"1\"]]]],\n \"SH\": [\"290\", \"00\", \"(?:[256]\\\\d|8)\\\\d{3}\", [4, 5], 0, 0, 0, 0, 0, 0, \"[256]\"],\n \"SI\": [\"386\", \"00|10(?:22|66|88|99)\", \"[1-7]\\\\d{7}|8\\\\d{4,7}|90\\\\d{4,6}\", [5, 6, 7, 8], [[\"(\\\\d{2})(\\\\d{3,6})\", \"$1 $2\", [\"8[09]|9\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{5})\", \"$1 $2\", [\"59|8\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[37][01]|4[0139]|51|6\"], \"0$1\"], [\"(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[1-57]\"], \"(0$1)\"]], \"0\", 0, 0, 0, 0, 0, 0, \"00\"],\n \"SJ\": [\"47\", \"00\", \"0\\\\d{4}|(?:[4589]\\\\d|79)\\\\d{6}\", [5, 8], 0, 0, 0, 0, 0, 0, \"79\"],\n \"SK\": [\"421\", \"00\", \"[2-689]\\\\d{8}|[2-59]\\\\d{6}|[2-5]\\\\d{5}\", [6, 7, 9], [[\"(\\\\d)(\\\\d{2})(\\\\d{3,4})\", \"$1 $2 $3\", [\"21\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{2})(\\\\d{2,3})\", \"$1 $2 $3\", [\"[3-5][1-8]1\", \"[3-5][1-8]1[67]\"], \"0$1\"], [\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{2})\", \"$1/$2 $3 $4\", [\"2\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[689]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1/$2 $3 $4\", [\"[3-5]\"], \"0$1\"]], \"0\"],\n \"SL\": [\"232\", \"00\", \"(?:[2378]\\\\d|66|99)\\\\d{6}\", [8], [[\"(\\\\d{2})(\\\\d{6})\", \"$1 $2\", [\"[236-9]\"], \"(0$1)\"]], \"0\"],\n \"SM\": [\"378\", \"00\", \"(?:0549|[5-7]\\\\d)\\\\d{6}\", [8, 10], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[5-7]\"]], [\"(\\\\d{4})(\\\\d{6})\", \"$1 $2\", [\"0\"]]], 0, 0, \"([89]\\\\d{5})$\", \"0549$1\"],\n \"SN\": [\"221\", \"00\", \"(?:[378]\\\\d{4}|93330)\\\\d{4}\", [9], [[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"8\"]], [\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[379]\"]]]],\n \"SO\": [\"252\", \"00\", \"[346-9]\\\\d{8}|[12679]\\\\d{7}|[1-5]\\\\d{6}|[1348]\\\\d{5}\", [6, 7, 8, 9], [[\"(\\\\d{2})(\\\\d{4})\", \"$1 $2\", [\"8[125]\"]], [\"(\\\\d{6})\", \"$1\", [\"[134]\"]], [\"(\\\\d)(\\\\d{6})\", \"$1 $2\", [\"[15]|2[0-79]|3[0-46-8]|4[0-7]\"]], [\"(\\\\d)(\\\\d{7})\", \"$1 $2\", [\"24|[67]\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[3478]|64|90\"]], [\"(\\\\d{2})(\\\\d{5,7})\", \"$1 $2\", [\"1|28|6[1-35-9]|9[2-9]\"]]], \"0\"],\n \"SR\": [\"597\", \"00\", \"(?:[2-5]|68|[78]\\\\d)\\\\d{5}\", [6, 7], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1-$2-$3\", [\"56\"]], [\"(\\\\d{3})(\\\\d{3})\", \"$1-$2\", [\"[2-5]\"]], [\"(\\\\d{3})(\\\\d{4})\", \"$1-$2\", [\"[6-8]\"]]]],\n \"SS\": [\"211\", \"00\", \"[19]\\\\d{8}\", [9], [[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[19]\"], \"0$1\"]], \"0\"],\n \"ST\": [\"239\", \"00\", \"(?:22|9\\\\d)\\\\d{5}\", [7], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"[29]\"]]]],\n \"SV\": [\"503\", \"00\", \"[267]\\\\d{7}|[89]00\\\\d{4}(?:\\\\d{4})?\", [7, 8, 11], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"[89]\"]], [\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"[267]\"]], [\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"[89]\"]]]],\n \"SX\": [\"1\", \"011\", \"7215\\\\d{6}|(?:[58]\\\\d\\\\d|900)\\\\d{7}\", [10], 0, \"1\", 0, \"1|(5\\\\d{6})$\", \"721$1\", 0, \"721\"],\n \"SY\": [\"963\", \"00\", \"[1-39]\\\\d{8}|[1-5]\\\\d{7}\", [8, 9], [[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"[1-5]\"], \"0$1\", 1], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"9\"], \"0$1\", 1]], \"0\"],\n \"SZ\": [\"268\", \"00\", \"0800\\\\d{4}|(?:[237]\\\\d|900)\\\\d{6}\", [8, 9], [[\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"[0237]\"]], [\"(\\\\d{5})(\\\\d{4})\", \"$1 $2\", [\"9\"]]]],\n \"TA\": [\"290\", \"00\", \"8\\\\d{3}\", [4], 0, 0, 0, 0, 0, 0, \"8\"],\n \"TC\": [\"1\", \"011\", \"(?:[58]\\\\d\\\\d|649|900)\\\\d{7}\", [10], 0, \"1\", 0, \"1|([2-479]\\\\d{6})$\", \"649$1\", 0, \"649\"],\n \"TD\": [\"235\", \"00|16\", \"(?:22|[69]\\\\d|77)\\\\d{6}\", [8], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[2679]\"]]], 0, 0, 0, 0, 0, 0, 0, \"00\"],\n \"TG\": [\"228\", \"00\", \"[279]\\\\d{7}\", [8], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[279]\"]]]],\n \"TH\": [\"66\", \"00[1-9]\", \"1\\\\d{8,9}|(?:[2-57]|[689]\\\\d)\\\\d{7}\", [8, 9, 10], [[\"(\\\\d)(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"2\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"14|[3-9]\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"1\"]]], \"0\"],\n \"TJ\": [\"992\", \"810\", \"(?:00|11|[3-579]\\\\d|88)\\\\d{7}\", [9], [[\"(\\\\d{6})(\\\\d)(\\\\d{2})\", \"$1 $2 $3\", [\"331\", \"3317\"], 0, 1], [\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\", \"$1 $2 $3\", [\"[34]7|91[78]\"], 0, 1], [\"(\\\\d{4})(\\\\d)(\\\\d{4})\", \"$1 $2 $3\", [\"3\"], 0, 1], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[0457-9]|11\"], 0, 1]], \"8\", 0, 0, 0, 0, 0, 0, \"8~10\"],\n \"TK\": [\"690\", \"00\", \"[2-47]\\\\d{3,6}\", [4, 5, 6, 7]],\n \"TL\": [\"670\", \"00\", \"7\\\\d{7}|(?:[2-47]\\\\d|[89]0)\\\\d{5}\", [7, 8], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"[2-489]|70\"]], [\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"7\"]]]],\n \"TM\": [\"993\", \"810\", \"[1-6]\\\\d{7}\", [8], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2-$3-$4\", [\"12\"], \"(8 $1)\"], [\"(\\\\d{3})(\\\\d)(\\\\d{2})(\\\\d{2})\", \"$1 $2-$3-$4\", [\"[1-5]\"], \"(8 $1)\"], [\"(\\\\d{2})(\\\\d{6})\", \"$1 $2\", [\"6\"], \"8 $1\"]], \"8\", 0, 0, 0, 0, 0, 0, \"8~10\"],\n \"TN\": [\"216\", \"00\", \"[2-57-9]\\\\d{7}\", [8], [[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[2-57-9]\"]]]],\n \"TO\": [\"676\", \"00\", \"(?:0800|[5-8]\\\\d{3})\\\\d{3}|[2-8]\\\\d{4}\", [5, 7], [[\"(\\\\d{2})(\\\\d{3})\", \"$1-$2\", [\"[2-4]|50|6[09]|7[0-24-69]|8[05]\"]], [\"(\\\\d{4})(\\\\d{3})\", \"$1 $2\", [\"0\"]], [\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"[5-8]\"]]]],\n \"TR\": [\"90\", \"00\", \"(?:4|8\\\\d{5})\\\\d{6}|(?:[2-58]\\\\d\\\\d|900)\\\\d{7}\", [7, 10, 12], [[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"512|8[0589]|90\"], \"0$1\", 1], [\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"5(?:[0-59]|61)\", \"5(?:[0-59]|616)\", \"5(?:[0-59]|6161)\"], \"0$1\", 1], [\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[24][1-8]|3[1-9]\"], \"(0$1)\", 1], [\"(\\\\d{3})(\\\\d{3})(\\\\d{6})\", \"$1 $2 $3\", [\"80\"], \"0$1\", 1]], \"0\"],\n \"TT\": [\"1\", \"011\", \"(?:[58]\\\\d\\\\d|900)\\\\d{7}\", [10], 0, \"1\", 0, \"1|([2-46-8]\\\\d{6})$\", \"868$1\", 0, \"868\"],\n \"TV\": [\"688\", \"00\", \"(?:2|7\\\\d\\\\d|90)\\\\d{4}\", [5, 6, 7], [[\"(\\\\d{2})(\\\\d{3})\", \"$1 $2\", [\"2\"]], [\"(\\\\d{2})(\\\\d{4})\", \"$1 $2\", [\"90\"]], [\"(\\\\d{2})(\\\\d{5})\", \"$1 $2\", [\"7\"]]]],\n \"TW\": [\"886\", \"0(?:0[25-79]|19)\", \"[2-689]\\\\d{8}|7\\\\d{9,10}|[2-8]\\\\d{7}|2\\\\d{6}\", [7, 8, 9, 10, 11], [[\"(\\\\d{2})(\\\\d)(\\\\d{4})\", \"$1 $2 $3\", [\"202\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"[258]0\"], \"0$1\"], [\"(\\\\d)(\\\\d{3,4})(\\\\d{4})\", \"$1 $2 $3\", [\"[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]\", \"[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[49]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{4})(\\\\d{4,5})\", \"$1 $2 $3\", [\"7\"], \"0$1\"]], \"0\", 0, 0, 0, 0, 0, 0, 0, \"#\"],\n \"TZ\": [\"255\", \"00[056]\", \"(?:[26-8]\\\\d|41|90)\\\\d{7}\", [9], [[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\", \"$1 $2 $3\", [\"[89]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[24]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[67]\"], \"0$1\"]], \"0\"],\n \"UA\": [\"380\", \"00\", \"[89]\\\\d{9}|[3-9]\\\\d{8}\", [9, 10], [[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]\", \"6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"4[45][0-5]|5(?:0|6[37])|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]\", \"4[45][0-5]|5(?:0|6(?:3[14-7]|7))|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{5})\", \"$1 $2\", [\"[3-6]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"[89]\"], \"0$1\"]], \"0\", 0, 0, 0, 0, 0, 0, \"0~0\"],\n \"UG\": [\"256\", \"00[057]\", \"800\\\\d{6}|(?:[29]0|[347]\\\\d)\\\\d{7}\", [9], [[\"(\\\\d{4})(\\\\d{5})\", \"$1 $2\", [\"202\", \"2024\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{6})\", \"$1 $2\", [\"[27-9]|4(?:6[45]|[7-9])\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{7})\", \"$1 $2\", [\"[34]\"], \"0$1\"]], \"0\"],\n \"US\": [\"1\", \"011\", \"[2-9]\\\\d{9}\", [10], [[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\", \"($1) $2-$3\", [\"[2-9]\"], 0, 1, \"$1-$2-$3\"]], \"1\", 0, 0, 0, 0, 0, [[\"(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[0135]|3[0-24679]|4[167]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[0235]|58|6[39]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[013-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[0179]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[02-59]|8[156])|8(?:0[1-68]|1[02-8]|2[08]|3[0-28]|4[3578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[0179]|5[12469]|7[0-389]|8[04-69]))[2-9]\\\\d{6}\"], [\"\"], [\"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}\"], [\"900[2-9]\\\\d{6}\"], [\"5(?:00|2[12]|33|44|66|77|88)[2-9]\\\\d{6}\"], 0, [\"710[2-9]\\\\d{6}\"]]],\n \"UY\": [\"598\", \"0(?:0|1[3-9]\\\\d)\", \"(?:[249]\\\\d\\\\d|80)\\\\d{5}|9\\\\d{6}\", [7, 8], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"8|90\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"9\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\", [\"[24]\"]]], \"0\", 0, 0, 0, 0, 0, 0, \"00\", \" int. \"],\n \"UZ\": [\"998\", \"810\", \"[679]\\\\d{8}\", [9], [[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[679]\"], \"8 $1\"]], \"8\", 0, 0, 0, 0, 0, 0, \"8~10\"],\n \"VA\": [\"39\", \"00\", \"0\\\\d{5,10}|3[0-8]\\\\d{7,10}|55\\\\d{8}|8\\\\d{5}(?:\\\\d{2,4})?|(?:1\\\\d|39)\\\\d{7,8}\", [6, 7, 8, 9, 10, 11], 0, 0, 0, 0, 0, 0, \"06698\"],\n \"VC\": [\"1\", \"011\", \"(?:[58]\\\\d\\\\d|784|900)\\\\d{7}\", [10], 0, \"1\", 0, \"1|([2-7]\\\\d{6})$\", \"784$1\", 0, \"784\"],\n \"VE\": [\"58\", \"00\", \"[68]00\\\\d{7}|(?:[24]\\\\d|[59]0)\\\\d{8}\", [10], [[\"(\\\\d{3})(\\\\d{7})\", \"$1-$2\", [\"[24-689]\"], \"0$1\"]], \"0\"],\n \"VG\": [\"1\", \"011\", \"(?:284|[58]\\\\d\\\\d|900)\\\\d{7}\", [10], 0, \"1\", 0, \"1|([2-578]\\\\d{6})$\", \"284$1\", 0, \"284\"],\n \"VI\": [\"1\", \"011\", \"[58]\\\\d{9}|(?:34|90)0\\\\d{7}\", [10], 0, \"1\", 0, \"1|([2-9]\\\\d{6})$\", \"340$1\", 0, \"340\"],\n \"VN\": [\"84\", \"00\", \"[12]\\\\d{9}|[135-9]\\\\d{8}|[16]\\\\d{7}|[16-8]\\\\d{6}\", [7, 8, 9, 10], [[\"(\\\\d{2})(\\\\d{5})\", \"$1 $2\", [\"80\"], \"0$1\", 1], [\"(\\\\d{4})(\\\\d{4,6})\", \"$1 $2\", [\"1\"], 0, 1], [\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3 $4\", [\"[69]\"], \"0$1\", 1], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[3578]\"], \"0$1\", 1], [\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"2[48]\"], \"0$1\", 1], [\"(\\\\d{3})(\\\\d{4})(\\\\d{3})\", \"$1 $2 $3\", [\"2\"], \"0$1\", 1]], \"0\"],\n \"VU\": [\"678\", \"00\", \"(?:[23]\\\\d|[48]8)\\\\d{3}|(?:[57]\\\\d|90)\\\\d{5}\", [5, 7], [[\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"[579]\"]]]],\n \"WF\": [\"681\", \"00\", \"(?:[45]0|68|72|8\\\\d)\\\\d{4}\", [6], [[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\", \"$1 $2 $3\", [\"[4-8]\"]]]],\n \"WS\": [\"685\", \"0\", \"(?:[2-6]|8\\\\d{5})\\\\d{4}|[78]\\\\d{6}|[68]\\\\d{5}\", [5, 6, 7, 10], [[\"(\\\\d{5})\", \"$1\", [\"[2-5]|6[1-9]\"]], [\"(\\\\d{3})(\\\\d{3,7})\", \"$1 $2\", [\"[68]\"]], [\"(\\\\d{2})(\\\\d{5})\", \"$1 $2\", [\"7\"]]]],\n \"XK\": [\"383\", \"00\", \"[23]\\\\d{7,8}|(?:4\\\\d\\\\d|[89]00)\\\\d{5}\", [8, 9], [[\"(\\\\d{3})(\\\\d{5})\", \"$1 $2\", [\"[89]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[2-4]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[23]\"], \"0$1\"]], \"0\"],\n \"YE\": [\"967\", \"00\", \"(?:1|7\\\\d)\\\\d{7}|[1-7]\\\\d{6}\", [7, 8, 9], [[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"[1-6]|7[24-68]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"7\"], \"0$1\"]], \"0\"],\n \"YT\": [\"262\", \"00\", \"80\\\\d{7}|(?:26|63)9\\\\d{6}\", [9], 0, \"0\", 0, 0, 0, 0, \"269|63\"],\n \"ZA\": [\"27\", \"00\", \"[1-9]\\\\d{8}|8\\\\d{4,7}\", [5, 6, 7, 8, 9], [[\"(\\\\d{2})(\\\\d{3,4})\", \"$1 $2\", [\"8[1-4]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{2,3})\", \"$1 $2 $3\", [\"8[1-4]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"860\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"[1-9]\"], \"0$1\"]], \"0\"],\n \"ZM\": [\"260\", \"00\", \"(?:63|80)0\\\\d{6}|(?:21|[79]\\\\d)\\\\d{7}\", [9], [[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[28]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{7})\", \"$1 $2\", [\"[79]\"], \"0$1\"]], \"0\"],\n \"ZW\": [\"263\", \"00\", \"2(?:[0-57-9]\\\\d{6,8}|6[0-24-9]\\\\d{6,7})|[38]\\\\d{9}|[35-8]\\\\d{8}|[3-6]\\\\d{7}|[1-689]\\\\d{6}|[1-3569]\\\\d{5}|[1356]\\\\d{4}\", [5, 6, 7, 8, 9, 10], [[\"(\\\\d{3})(\\\\d{3,5})\", \"$1 $2\", [\"2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]\"], \"0$1\"], [\"(\\\\d)(\\\\d{3})(\\\\d{2,4})\", \"$1 $2 $3\", [\"[49]\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{4})\", \"$1 $2\", [\"80\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{7})\", \"$1 $2\", [\"24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2\", \"2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]\"], \"(0$1)\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\", \"$1 $2 $3\", [\"7\"], \"0$1\"], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)\", \"2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{6})\", \"$1 $2\", [\"8\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3,5})\", \"$1 $2\", [\"1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]\"], \"0$1\"], [\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\", \"$1 $2 $3\", [\"29[013-9]|39|54\"], \"0$1\"], [\"(\\\\d{4})(\\\\d{3,5})\", \"$1 $2\", [\"(?:25|54)8\", \"258|5483\"], \"0$1\"]], \"0\"]\n },\n \"nonGeographic\": {\n \"800\": [\"800\", 0, \"\\\\d{8}\", [8], [[\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\"]], 0, 0, 0, 0, 0, 0, [0, 0, [\"\\\\d{8}\"]]],\n \"808\": [\"808\", 0, \"\\\\d{8}\", [8], [[\"(\\\\d{4})(\\\\d{4})\", \"$1 $2\"]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, 0, [\"\\\\d{8}\"]]],\n \"870\": [\"870\", 0, \"[35-7]\\\\d{8}\", [9], [[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"[35-7]\"]]], 0, 0, 0, 0, 0, 0, [0, [\"(?:[356]\\\\d|7[6-8])\\\\d{7}\"]]],\n \"878\": [\"878\", 0, \"10\\\\d{10}\", [12], [[\"(\\\\d{2})(\\\\d{5})(\\\\d{5})\", \"$1 $2 $3\", [\"1\"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, [\"10\\\\d{10}\"]]],\n \"881\": [\"881\", 0, \"[67]\\\\d{8}\", [9], [[\"(\\\\d)(\\\\d{3})(\\\\d{5})\", \"$1 $2 $3\", [\"[67]\"]]], 0, 0, 0, 0, 0, 0, [0, [\"[67]\\\\d{8}\"]]],\n \"882\": [\"882\", 0, \"1\\\\d{6,11}|3\\\\d{6}(?:\\\\d{2,5})?\", [7, 8, 9, 10, 11, 12], [[\"(\\\\d{2})(\\\\d{5})\", \"$1 $2\", [\"16|342\"]], [\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\", \"$1 $2 $3\", [\"1\"]], [\"(\\\\d{2})(\\\\d{4})(\\\\d{3})\", \"$1 $2 $3\", [\"3[23]\"]], [\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\", \"$1 $2 $3\", [\"1\"]], [\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"34[57]\"]], [\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"34\"]], [\"(\\\\d{2})(\\\\d{4,5})(\\\\d{5})\", \"$1 $2 $3\", [\"[13]\"]]], 0, 0, 0, 0, 0, 0, [0, [\"3(?:37\\\\d\\\\d|42)\\\\d{4}|3(?:2|47|7\\\\d{3})\\\\d{7}\", [7, 9, 10, 12]], 0, 0, 0, 0, 0, 0, [\"1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\\\d{4}|6\\\\d{5,10})|3(?:45|9\\\\d{3})\\\\d{7}\"]]],\n \"883\": [\"883\", 0, \"51\\\\d{7}(?:\\\\d{3})?\", [9, 12], [[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3\", [\"510\"]], [\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{3})\", \"$1 $2 $3 $4\", [\"510\"]], [\"(\\\\d{4})(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\", [\"5\"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, [\"51[013]0\\\\d{8}|5100\\\\d{5}\"]]],\n \"888\": [\"888\", 0, \"\\\\d{11}\", [11], [[\"(\\\\d{3})(\\\\d{3})(\\\\d{5})\", \"$1 $2 $3\"]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, [\"\\\\d{11}\"]]],\n \"979\": [\"979\", 0, \"\\\\d{9}\", [9], [[\"(\\\\d)(\\\\d{4})(\\\\d{4})\", \"$1 $2 $3\"]], 0, 0, 0, 0, 0, 0, [0, 0, 0, [\"\\\\d{9}\"]]]\n }\n};","// The minimum length of the national significant number.\nexport var MIN_LENGTH_FOR_NSN = 2; // The ITU says the maximum length should be 15,\n// but one can find longer numbers in Germany.\n\nexport var MAX_LENGTH_FOR_NSN = 17; // The maximum length of the country calling code.\n\nexport var MAX_LENGTH_COUNTRY_CODE = 3; // Digits accepted in phone numbers\n// (ascii, fullwidth, arabic-indic, and eastern arabic digits).\n\nexport var VALID_DIGITS = \"0-9\\uFF10-\\uFF19\\u0660-\\u0669\\u06F0-\\u06F9\"; // `DASHES` will be right after the opening square bracket of the \"character class\"\n\nvar DASHES = \"-\\u2010-\\u2015\\u2212\\u30FC\\uFF0D\";\nvar SLASHES = \"\\uFF0F/\";\nvar DOTS = \"\\uFF0E.\";\nexport var WHITESPACE = \" \\xA0\\xAD\\u200B\\u2060\\u3000\";\nvar BRACKETS = \"()\\uFF08\\uFF09\\uFF3B\\uFF3D\\\\[\\\\]\"; // export const OPENING_BRACKETS = '(\\uFF08\\uFF3B\\\\\\['\n\nvar TILDES = \"~\\u2053\\u223C\\uFF5E\"; // Regular expression of acceptable punctuation found in phone numbers. This\n// excludes punctuation found as a leading character only. This consists of dash\n// characters, white space characters, full stops, slashes, square brackets,\n// parentheses and tildes. Full-width variants are also present.\n\nexport var VALID_PUNCTUATION = \"\".concat(DASHES).concat(SLASHES).concat(DOTS).concat(WHITESPACE).concat(BRACKETS).concat(TILDES);\nexport var PLUS_CHARS = \"+\\uFF0B\"; // const LEADING_PLUS_CHARS_PATTERN = new RegExp('^[' + PLUS_CHARS + ']+')","/**\r\n * Checks whether the entire input sequence can be matched\r\n * against the regular expression.\r\n * @return {boolean}\r\n */\nexport function matchesEntirely(text, regular_expression) {\n // If assigning the `''` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n text = text || '';\n return new RegExp('^(?:' + regular_expression + ')$').test(text);\n}\n/**\r\n * Merges two arrays.\r\n * @param {*} a\r\n * @param {*} b\r\n * @return {*}\r\n */\n\nexport function mergeArrays(a, b) {\n var merged = a.slice();\n\n for (var _iterator = b, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n var _ref;\n\n if (_isArray) {\n if (_i >= _iterator.length) break;\n _ref = _iterator[_i++];\n } else {\n _i = _iterator.next();\n if (_i.done) break;\n _ref = _i.value;\n }\n\n var element = _ref;\n\n if (a.indexOf(element) < 0) {\n merged.push(element);\n }\n }\n\n return merged.sort(function (a, b) {\n return a - b;\n }); // ES6 version, requires Set polyfill.\n // let merged = new Set(a)\n // for (const element of b)\n // {\n // \tmerged.add(i)\n // }\n // return Array.from(merged).sort((a, b) => a - b)\n}","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n} // https://stackoverflow.com/a/46971044/970769\n\n\nvar ParseError = function ParseError(code) {\n _classCallCheck(this, ParseError);\n\n this.name = this.constructor.name;\n this.message = code;\n this.stack = new Error(code).stack;\n};\n\nexport { ParseError as default };\nParseError.prototype = Object.create(Error.prototype);\nParseError.prototype.constructor = ParseError;","// Copy-pasted from:\n// https://github.com/substack/semver-compare/blob/master/index.js\n//\n// Inlining this function because some users reported issues with\n// importing from `semver-compare` in a browser with ES6 \"native\" modules.\n//\n// Fixes `semver-compare` not being able to compare versions with alpha/beta/etc \"tags\".\n// https://github.com/catamphetamine/libphonenumber-js/issues/381\nexport default function (a, b) {\n a = a.split('-');\n b = b.split('-');\n var pa = a[0].split('.');\n var pb = b[0].split('.');\n\n for (var i = 0; i < 3; i++) {\n var na = Number(pa[i]);\n var nb = Number(pb[i]);\n if (na > nb) return 1;\n if (nb > na) return -1;\n if (!isNaN(na) && isNaN(nb)) return 1;\n if (isNaN(na) && !isNaN(nb)) return -1;\n }\n\n if (a[1] && b[1]) {\n return a[1] > b[1] ? 1 : a[1] < b[1] ? -1 : 0;\n }\n\n return !a[1] && b[1] ? 1 : a[1] && !b[1] ? -1 : 0;\n}","function _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nimport compare from './tools/semver-compare'; // Added \"possibleLengths\" and renamed\n// \"country_phone_code_to_countries\" to \"country_calling_codes\".\n\nvar V2 = '1.0.18'; // Added \"idd_prefix\" and \"default_idd_prefix\".\n\nvar V3 = '1.2.0'; // Moved `001` country code to \"nonGeographic\" section of metadata.\n\nvar V4 = '1.7.35';\nvar DEFAULT_EXT_PREFIX = ' ext. ';\n/**\r\n * See: https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/METADATA.md\r\n */\n\nvar Metadata = /*#__PURE__*/function () {\n function Metadata(metadata) {\n _classCallCheck(this, Metadata);\n\n validateMetadata(metadata);\n this.metadata = metadata;\n setVersion.call(this, metadata);\n }\n\n _createClass(Metadata, [{\n key: \"getCountries\",\n value: function getCountries() {\n return Object.keys(this.metadata.countries).filter(function (_) {\n return _ !== '001';\n });\n }\n }, {\n key: \"getCountryMetadata\",\n value: function getCountryMetadata(countryCode) {\n return this.metadata.countries[countryCode];\n }\n }, {\n key: \"nonGeographic\",\n value: function nonGeographic() {\n if (this.v1 || this.v2 || this.v3) return; // `nonGeographical` was a typo.\n // It's present in metadata generated from `1.7.35` to `1.7.37`.\n\n return this.metadata.nonGeographic || this.metadata.nonGeographical;\n }\n }, {\n key: \"hasCountry\",\n value: function hasCountry(country) {\n return this.getCountryMetadata(country) !== undefined;\n }\n }, {\n key: \"hasCallingCode\",\n value: function hasCallingCode(callingCode) {\n if (this.getCountryCodesForCallingCode(callingCode)) {\n return true;\n }\n\n if (this.nonGeographic()) {\n if (this.nonGeographic()[callingCode]) {\n return true;\n }\n } else {\n // A hacky workaround for old custom metadata (generated before V4).\n var countryCodes = this.countryCallingCodes()[callingCode];\n\n if (countryCodes && countryCodes.length === 1 && countryCodes[0] === '001') {\n return true;\n }\n }\n }\n }, {\n key: \"isNonGeographicCallingCode\",\n value: function isNonGeographicCallingCode(callingCode) {\n if (this.nonGeographic()) {\n return this.nonGeographic()[callingCode] ? true : false;\n } else {\n return this.getCountryCodesForCallingCode(callingCode) ? false : true;\n }\n } // Deprecated.\n\n }, {\n key: \"country\",\n value: function country(countryCode) {\n return this.selectNumberingPlan(countryCode);\n }\n }, {\n key: \"selectNumberingPlan\",\n value: function selectNumberingPlan(countryCode, callingCode) {\n if (countryCode && countryCode !== '001') {\n if (!this.hasCountry(countryCode)) {\n throw new Error(\"Unknown country: \".concat(countryCode));\n }\n\n this.numberingPlan = new NumberingPlan(this.getCountryMetadata(countryCode), this);\n } else if (callingCode) {\n if (!this.hasCallingCode(callingCode)) {\n throw new Error(\"Unknown calling code: \".concat(callingCode));\n }\n\n this.numberingPlan = new NumberingPlan(this.getNumberingPlanMetadata(callingCode), this);\n } else {\n this.numberingPlan = undefined;\n }\n\n return this;\n }\n }, {\n key: \"getCountryCodesForCallingCode\",\n value: function getCountryCodesForCallingCode(callingCode) {\n var countryCodes = this.countryCallingCodes()[callingCode];\n\n if (countryCodes) {\n // Metadata before V4 included \"non-geographic entity\" calling codes\n // inside `country_calling_codes` (for example, `\"881\":[\"001\"]`).\n // Now the semantics of `country_calling_codes` has changed:\n // it's specifically for \"countries\" now.\n // Older versions of custom metadata will simply skip parsing\n // \"non-geographic entity\" phone numbers with new versions\n // of this library: it's not considered a bug,\n // because such numbers are extremely rare,\n // and developers extremely rarely use custom metadata.\n if (countryCodes.length === 1 && countryCodes[0].length === 3) {\n return;\n }\n\n return countryCodes;\n }\n }\n }, {\n key: \"getCountryCodeForCallingCode\",\n value: function getCountryCodeForCallingCode(callingCode) {\n var countryCodes = this.getCountryCodesForCallingCode(callingCode);\n\n if (countryCodes) {\n return countryCodes[0];\n }\n }\n }, {\n key: \"getNumberingPlanMetadata\",\n value: function getNumberingPlanMetadata(callingCode) {\n var countryCode = this.getCountryCodeForCallingCode(callingCode);\n\n if (countryCode) {\n return this.getCountryMetadata(countryCode);\n }\n\n if (this.nonGeographic()) {\n var metadata = this.nonGeographic()[callingCode];\n\n if (metadata) {\n return metadata;\n }\n } else {\n // A hacky workaround for old custom metadata (generated before V4).\n var countryCodes = this.countryCallingCodes()[callingCode];\n\n if (countryCodes && countryCodes.length === 1 && countryCodes[0] === '001') {\n return this.metadata.countries['001'];\n }\n }\n } // Deprecated.\n\n }, {\n key: \"countryCallingCode\",\n value: function countryCallingCode() {\n return this.numberingPlan.callingCode();\n } // Deprecated.\n\n }, {\n key: \"IDDPrefix\",\n value: function IDDPrefix() {\n return this.numberingPlan.IDDPrefix();\n } // Deprecated.\n\n }, {\n key: \"defaultIDDPrefix\",\n value: function defaultIDDPrefix() {\n return this.numberingPlan.defaultIDDPrefix();\n } // Deprecated.\n\n }, {\n key: \"nationalNumberPattern\",\n value: function nationalNumberPattern() {\n return this.numberingPlan.nationalNumberPattern();\n } // Deprecated.\n\n }, {\n key: \"possibleLengths\",\n value: function possibleLengths() {\n return this.numberingPlan.possibleLengths();\n } // Deprecated.\n\n }, {\n key: \"formats\",\n value: function formats() {\n return this.numberingPlan.formats();\n } // Deprecated.\n\n }, {\n key: \"nationalPrefixForParsing\",\n value: function nationalPrefixForParsing() {\n return this.numberingPlan.nationalPrefixForParsing();\n } // Deprecated.\n\n }, {\n key: \"nationalPrefixTransformRule\",\n value: function nationalPrefixTransformRule() {\n return this.numberingPlan.nationalPrefixTransformRule();\n } // Deprecated.\n\n }, {\n key: \"leadingDigits\",\n value: function leadingDigits() {\n return this.numberingPlan.leadingDigits();\n } // Deprecated.\n\n }, {\n key: \"hasTypes\",\n value: function hasTypes() {\n return this.numberingPlan.hasTypes();\n } // Deprecated.\n\n }, {\n key: \"type\",\n value: function type(_type) {\n return this.numberingPlan.type(_type);\n } // Deprecated.\n\n }, {\n key: \"ext\",\n value: function ext() {\n return this.numberingPlan.ext();\n }\n }, {\n key: \"countryCallingCodes\",\n value: function countryCallingCodes() {\n if (this.v1) return this.metadata.country_phone_code_to_countries;\n return this.metadata.country_calling_codes;\n } // Deprecated.\n\n }, {\n key: \"chooseCountryByCountryCallingCode\",\n value: function chooseCountryByCountryCallingCode(callingCode) {\n this.selectNumberingPlan(null, callingCode);\n }\n }, {\n key: \"hasSelectedNumberingPlan\",\n value: function hasSelectedNumberingPlan() {\n return this.numberingPlan !== undefined;\n }\n }]);\n\n return Metadata;\n}();\n\nexport { Metadata as default };\n\nvar NumberingPlan = /*#__PURE__*/function () {\n function NumberingPlan(metadata, globalMetadataObject) {\n _classCallCheck(this, NumberingPlan);\n\n this.globalMetadataObject = globalMetadataObject;\n this.metadata = metadata;\n setVersion.call(this, globalMetadataObject.metadata);\n }\n\n _createClass(NumberingPlan, [{\n key: \"callingCode\",\n value: function callingCode() {\n return this.metadata[0];\n } // Formatting information for regions which share\n // a country calling code is contained by only one region\n // for performance reasons. For example, for NANPA region\n // (\"North American Numbering Plan Administration\",\n // which includes USA, Canada, Cayman Islands, Bahamas, etc)\n // it will be contained in the metadata for `US`.\n\n }, {\n key: \"getDefaultCountryMetadataForRegion\",\n value: function getDefaultCountryMetadataForRegion() {\n return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());\n }\n }, {\n key: \"IDDPrefix\",\n value: function IDDPrefix() {\n if (this.v1 || this.v2) return;\n return this.metadata[1];\n }\n }, {\n key: \"defaultIDDPrefix\",\n value: function defaultIDDPrefix() {\n if (this.v1 || this.v2) return;\n return this.metadata[12];\n }\n }, {\n key: \"nationalNumberPattern\",\n value: function nationalNumberPattern() {\n if (this.v1 || this.v2) return this.metadata[1];\n return this.metadata[2];\n }\n }, {\n key: \"possibleLengths\",\n value: function possibleLengths() {\n if (this.v1) return;\n return this.metadata[this.v2 ? 2 : 3];\n }\n }, {\n key: \"_getFormats\",\n value: function _getFormats(metadata) {\n return metadata[this.v1 ? 2 : this.v2 ? 3 : 4];\n } // For countries of the same region (e.g. NANPA)\n // formats are all stored in the \"main\" country for that region.\n // E.g. \"RU\" and \"KZ\", \"US\" and \"CA\".\n\n }, {\n key: \"formats\",\n value: function formats() {\n var _this = this;\n\n var formats = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];\n return formats.map(function (_) {\n return new Format(_, _this);\n });\n }\n }, {\n key: \"nationalPrefix\",\n value: function nationalPrefix() {\n return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];\n }\n }, {\n key: \"_getNationalPrefixFormattingRule\",\n value: function _getNationalPrefixFormattingRule(metadata) {\n return metadata[this.v1 ? 4 : this.v2 ? 5 : 6];\n } // For countries of the same region (e.g. NANPA)\n // national prefix formatting rule is stored in the \"main\" country for that region.\n // E.g. \"RU\" and \"KZ\", \"US\" and \"CA\".\n\n }, {\n key: \"nationalPrefixFormattingRule\",\n value: function nationalPrefixFormattingRule() {\n return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion());\n }\n }, {\n key: \"_nationalPrefixForParsing\",\n value: function _nationalPrefixForParsing() {\n return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];\n }\n }, {\n key: \"nationalPrefixForParsing\",\n value: function nationalPrefixForParsing() {\n // If `national_prefix_for_parsing` is not set explicitly,\n // then infer it from `national_prefix` (if any)\n return this._nationalPrefixForParsing() || this.nationalPrefix();\n }\n }, {\n key: \"nationalPrefixTransformRule\",\n value: function nationalPrefixTransformRule() {\n return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];\n }\n }, {\n key: \"_getNationalPrefixIsOptionalWhenFormatting\",\n value: function _getNationalPrefixIsOptionalWhenFormatting() {\n return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];\n } // For countries of the same region (e.g. NANPA)\n // \"national prefix is optional when formatting\" flag is\n // stored in the \"main\" country for that region.\n // E.g. \"RU\" and \"KZ\", \"US\" and \"CA\".\n\n }, {\n key: \"nationalPrefixIsOptionalWhenFormattingInNationalFormat\",\n value: function nationalPrefixIsOptionalWhenFormattingInNationalFormat() {\n return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion());\n }\n }, {\n key: \"leadingDigits\",\n value: function leadingDigits() {\n return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];\n }\n }, {\n key: \"types\",\n value: function types() {\n return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];\n }\n }, {\n key: \"hasTypes\",\n value: function hasTypes() {\n // Versions 1.2.0 - 1.2.4: can be `[]`.\n\n /* istanbul ignore next */\n if (this.types() && this.types().length === 0) {\n return false;\n } // Versions <= 1.2.4: can be `undefined`.\n // Version >= 1.2.5: can be `0`.\n\n\n return !!this.types();\n }\n }, {\n key: \"type\",\n value: function type(_type2) {\n if (this.hasTypes() && getType(this.types(), _type2)) {\n return new Type(getType(this.types(), _type2), this);\n }\n }\n }, {\n key: \"ext\",\n value: function ext() {\n if (this.v1 || this.v2) return DEFAULT_EXT_PREFIX;\n return this.metadata[13] || DEFAULT_EXT_PREFIX;\n }\n }]);\n\n return NumberingPlan;\n}();\n\nvar Format = /*#__PURE__*/function () {\n function Format(format, metadata) {\n _classCallCheck(this, Format);\n\n this._format = format;\n this.metadata = metadata;\n }\n\n _createClass(Format, [{\n key: \"pattern\",\n value: function pattern() {\n return this._format[0];\n }\n }, {\n key: \"format\",\n value: function format() {\n return this._format[1];\n }\n }, {\n key: \"leadingDigitsPatterns\",\n value: function leadingDigitsPatterns() {\n return this._format[2] || [];\n }\n }, {\n key: \"nationalPrefixFormattingRule\",\n value: function nationalPrefixFormattingRule() {\n return this._format[3] || this.metadata.nationalPrefixFormattingRule();\n }\n }, {\n key: \"nationalPrefixIsOptionalWhenFormattingInNationalFormat\",\n value: function nationalPrefixIsOptionalWhenFormattingInNationalFormat() {\n return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();\n }\n }, {\n key: \"nationalPrefixIsMandatoryWhenFormattingInNationalFormat\",\n value: function nationalPrefixIsMandatoryWhenFormattingInNationalFormat() {\n // National prefix is omitted if there's no national prefix formatting rule\n // set for this country, or when the national prefix formatting rule\n // contains no national prefix itself, or when this rule is set but\n // national prefix is optional for this phone number format\n // (and it is not enforced explicitly)\n return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();\n } // Checks whether national prefix formatting rule contains national prefix.\n\n }, {\n key: \"usesNationalPrefix\",\n value: function usesNationalPrefix() {\n return this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a \"dummy\" one.\n !FIRST_GROUP_ONLY_PREFIX_PATTERN.test(this.nationalPrefixFormattingRule()); // Previously, `FIRST_GROUP_ONLY_PREFIX_PATTERN` check was instead done via:\n // // Check that national prefix formatting rule is not a \"dummy\" one.\n // this.nationalPrefixFormattingRule() !== '$1' &&\n // // Check that national prefix formatting rule actually has national prefix digit(s).\n // // Filters out cases like \"($1)\".\n // // Is used in place of `libphonenumber`'s `FIRST_GROUP_ONLY_PREFIX_PATTERN_` regexp.\n // /\\d/.test(this.nationalPrefixFormattingRule().replace('$1', ''))\n }\n }, {\n key: \"internationalFormat\",\n value: function internationalFormat() {\n return this._format[5] || this.format();\n }\n }]);\n\n return Format;\n}();\n/**\r\n * A pattern that is used to determine if the national prefix formatting rule\r\n * has the first group only, i.e., does not start with the national prefix.\r\n * Note that the pattern explicitly allows for unbalanced parentheses.\r\n */\n\n\nvar FIRST_GROUP_ONLY_PREFIX_PATTERN = /^\\(?\\$1\\)?$/;\n\nvar Type = /*#__PURE__*/function () {\n function Type(type, metadata) {\n _classCallCheck(this, Type);\n\n this.type = type;\n this.metadata = metadata;\n }\n\n _createClass(Type, [{\n key: \"pattern\",\n value: function pattern() {\n if (this.metadata.v1) return this.type;\n return this.type[0];\n }\n }, {\n key: \"possibleLengths\",\n value: function possibleLengths() {\n if (this.metadata.v1) return;\n return this.type[1] || this.metadata.possibleLengths();\n }\n }]);\n\n return Type;\n}();\n\nfunction getType(types, type) {\n switch (type) {\n case 'FIXED_LINE':\n return types[0];\n\n case 'MOBILE':\n return types[1];\n\n case 'TOLL_FREE':\n return types[2];\n\n case 'PREMIUM_RATE':\n return types[3];\n\n case 'PERSONAL_NUMBER':\n return types[4];\n\n case 'VOICEMAIL':\n return types[5];\n\n case 'UAN':\n return types[6];\n\n case 'PAGER':\n return types[7];\n\n case 'VOIP':\n return types[8];\n\n case 'SHARED_COST':\n return types[9];\n }\n}\n\nexport function validateMetadata(metadata) {\n if (!metadata) {\n throw new Error('[libphonenumber-js] `metadata` argument not passed. Check your arguments.');\n } // `country_phone_code_to_countries` was renamed to\n // `country_calling_codes` in `1.0.18`.\n\n\n if (!is_object(metadata) || !is_object(metadata.countries)) {\n throw new Error(\"[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got \".concat(is_object(metadata) ? 'an object of shape: { ' + Object.keys(metadata).join(', ') + ' }' : 'a ' + type_of(metadata) + ': ' + metadata, \".\"));\n }\n} // Babel transforms `typeof` into some \"branches\"\n// so istanbul will show this as \"branch not covered\".\n\n/* istanbul ignore next */\n\nvar is_object = function is_object(_) {\n return _typeof(_) === 'object';\n}; // Babel transforms `typeof` into some \"branches\"\n// so istanbul will show this as \"branch not covered\".\n\n/* istanbul ignore next */\n\n\nvar type_of = function type_of(_) {\n return _typeof(_);\n};\n/**\r\n * Returns extension prefix for a country.\r\n * @param {string} country\r\n * @param {object} metadata\r\n * @return {string?}\r\n * @example\r\n * // Returns \" ext. \"\r\n * getExtPrefix(\"US\")\r\n */\n\n\nexport function getExtPrefix(country, metadata) {\n metadata = new Metadata(metadata);\n\n if (metadata.hasCountry(country)) {\n return metadata.country(country).ext();\n }\n\n return DEFAULT_EXT_PREFIX;\n}\n/**\r\n * Returns \"country calling code\" for a country.\r\n * Throws an error if the country doesn't exist or isn't supported by this library.\r\n * @param {string} country\r\n * @param {object} metadata\r\n * @return {string}\r\n * @example\r\n * // Returns \"44\"\r\n * getCountryCallingCode(\"GB\")\r\n */\n\nexport function getCountryCallingCode(country, metadata) {\n metadata = new Metadata(metadata);\n\n if (metadata.hasCountry(country)) {\n return metadata.country(country).countryCallingCode();\n }\n\n throw new Error(\"Unknown country: \".concat(country));\n}\nexport function isSupportedCountry(country, metadata) {\n // metadata = new Metadata(metadata)\n // return metadata.hasCountry(country)\n return metadata.countries[country] !== undefined;\n}\n\nfunction setVersion(metadata) {\n this.v1 = !metadata.version;\n this.v2 = metadata.version !== undefined && compare(metadata.version, V3) === -1;\n this.v3 = metadata.version !== undefined && compare(metadata.version, V4) === -1;\n this.v4 = metadata.version !== undefined; // && compare(metadata.version, V5) === -1\n} // const ISO_COUNTRY_CODE = /^[A-Z]{2}$/\n// function isCountryCode(countryCode) {\n// \treturn ISO_COUNTRY_CODE.test(countryCodeOrCountryCallingCode)\n// }","import { VALID_DIGITS } from './constants'; // The RFC 3966 format for extensions.\n\nvar RFC3966_EXTN_PREFIX = ';ext='; // Pattern to capture digits used in an extension.\n// Places a maximum length of '7' for an extension.\n\nvar CAPTURING_EXTN_DIGITS = '([' + VALID_DIGITS + ']{1,7})';\n/**\r\n * Regexp of all possible ways to write extensions, for use when parsing. This\r\n * will be run as a case-insensitive regexp match. Wide character versions are\r\n * also provided after each ASCII version. There are three regular expressions\r\n * here. The first covers RFC 3966 format, where the extension is added using\r\n * ';ext='. The second more generic one starts with optional white space and\r\n * ends with an optional full stop (.), followed by zero or more spaces/tabs\r\n * /commas and then the numbers themselves. The other one covers the special\r\n * case of American numbers where the extension is written with a hash at the\r\n * end, such as '- 503#'. Note that the only capturing groups should be around\r\n * the digits that you want to capture as part of the extension, or else parsing\r\n * will fail! We allow two options for representing the accented o - the\r\n * character itself, and one in the unicode decomposed form with the combining\r\n * acute accent.\r\n */\n\nfunction create_extension_pattern(purpose) {\n // One-character symbols that can be used to indicate an extension.\n var single_extension_characters = \"x\\uFF58#\\uFF03~\\uFF5E\";\n\n switch (purpose) {\n // For parsing, we are slightly more lenient in our interpretation than for matching. Here we\n // allow \"comma\" and \"semicolon\" as possible extension indicators. When matching, these are\n case 'parsing':\n single_extension_characters = ',;' + single_extension_characters;\n }\n\n return RFC3966_EXTN_PREFIX + CAPTURING_EXTN_DIGITS + '|' + \"[ \\xA0\\\\t,]*\" + \"(?:e?xt(?:ensi(?:o\\u0301?|\\xF3))?n?|\\uFF45?\\uFF58\\uFF54\\uFF4E?|\" + // \"доб.\"\n \"\\u0434\\u043E\\u0431|\" + '[' + single_extension_characters + \"]|int|anexo|\\uFF49\\uFF4E\\uFF54)\" + \"[:\\\\.\\uFF0E]?[ \\xA0\\\\t,-]*\" + CAPTURING_EXTN_DIGITS + '#?|' + '[- ]+([' + VALID_DIGITS + ']{1,5})#';\n}\n/**\r\n * Regexp of all possible ways to write extensions, for use when parsing. This\r\n * will be run as a case-insensitive regexp match. Wide character versions are\r\n * also provided after each ASCII version. There are three regular expressions\r\n * here. The first covers RFC 3966 format, where the extension is added using\r\n * ';ext='. The second more generic one starts with optional white space and\r\n * ends with an optional full stop (.), followed by zero or more spaces/tabs\r\n * /commas and then the numbers themselves. The other one covers the special\r\n * case of American numbers where the extension is written with a hash at the\r\n * end, such as '- 503#'. Note that the only capturing groups should be around\r\n * the digits that you want to capture as part of the extension, or else parsing\r\n * will fail! We allow two options for representing the accented o - the\r\n * character itself, and one in the unicode decomposed form with the combining\r\n * acute accent.\r\n */\n\n\nexport var EXTN_PATTERNS_FOR_PARSING = create_extension_pattern('parsing');\nexport var EXTN_PATTERNS_FOR_MATCHING = create_extension_pattern('matching'); // Regexp of all known extension prefixes used by different regions followed by\n// 1 or more valid digits, for use when parsing.\n\nvar EXTN_PATTERN = new RegExp('(?:' + EXTN_PATTERNS_FOR_PARSING + ')$', 'i'); // Strips any extension (as in, the part of the number dialled after the call is\n// connected, usually indicated with extn, ext, x or similar) from the end of\n// the number, and returns it.\n\nexport function extractExtension(number) {\n var start = number.search(EXTN_PATTERN);\n\n if (start < 0) {\n return {};\n } // If we find a potential extension, and the number preceding this is a viable\n // number, we assume it is an extension.\n\n\n var number_without_extension = number.slice(0, start);\n var matches = number.match(EXTN_PATTERN);\n var i = 1;\n\n while (i < matches.length) {\n if (matches[i] != null && matches[i].length > 0) {\n return {\n number: number_without_extension,\n ext: matches[i]\n };\n }\n\n i++;\n }\n}","import { MIN_LENGTH_FOR_NSN, VALID_DIGITS, VALID_PUNCTUATION, PLUS_CHARS } from './constants';\nimport { EXTN_PATTERNS_FOR_PARSING } from './extension'; // Regular expression of viable phone numbers. This is location independent.\n// Checks we have at least three leading digits, and only valid punctuation,\n// alpha characters and digits in the phone number. Does not include extension\n// data. The symbol 'x' is allowed here as valid punctuation since it is often\n// used as a placeholder for carrier codes, for example in Brazilian phone\n// numbers. We also allow multiple '+' characters at the start.\n//\n// Corresponds to the following:\n// [digits]{minLengthNsn}|\n// plus_sign*\n// (([punctuation]|[star])*[digits]){3,}([punctuation]|[star]|[digits]|[alpha])*\n//\n// The first reg-ex is to allow short numbers (two digits long) to be parsed if\n// they are entered as \"15\" etc, but only if there is no punctuation in them.\n// The second expression restricts the number of digits to three or more, but\n// then allows them to be in international form, and to have alpha-characters\n// and punctuation. We split up the two reg-exes here and combine them when\n// creating the reg-ex VALID_PHONE_NUMBER_PATTERN itself so we can prefix it\n// with ^ and append $ to each branch.\n//\n// \"Note VALID_PUNCTUATION starts with a -,\n// so must be the first in the range\" (c) Google devs.\n// (wtf did they mean by saying that; probably nothing)\n//\n\nvar MIN_LENGTH_PHONE_NUMBER_PATTERN = '[' + VALID_DIGITS + ']{' + MIN_LENGTH_FOR_NSN + '}'; //\n// And this is the second reg-exp:\n// (see MIN_LENGTH_PHONE_NUMBER_PATTERN for a full description of this reg-exp)\n//\n\nvar VALID_PHONE_NUMBER = '[' + PLUS_CHARS + ']{0,1}' + '(?:' + '[' + VALID_PUNCTUATION + ']*' + '[' + VALID_DIGITS + ']' + '){3,}' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']*'; // The combined regular expression for valid phone numbers:\n//\n\nvar VALID_PHONE_NUMBER_PATTERN = new RegExp( // Either a short two-digit-only phone number\n'^' + MIN_LENGTH_PHONE_NUMBER_PATTERN + '$' + '|' + // Or a longer fully parsed phone number (min 3 characters)\n'^' + VALID_PHONE_NUMBER + // Phone number extensions\n'(?:' + EXTN_PATTERNS_FOR_PARSING + ')?' + '$', 'i'); // Checks to see if the string of characters could possibly be a phone number at\n// all. At the moment, checks to see that the string begins with at least 2\n// digits, ignoring any punctuation commonly found in phone numbers. This method\n// does not require the number to be normalized in advance - but does assume\n// that leading non-number symbols have been removed, such as by the method\n// `extract_possible_number`.\n//\n\nexport default function isViablePhoneNumber(number) {\n return number.length >= MIN_LENGTH_FOR_NSN && VALID_PHONE_NUMBER_PATTERN.test(number);\n}","// These mappings map a character (key) to a specific digit that should\n// replace it for normalization purposes. Non-European digits that\n// may be used in phone numbers are mapped to a European equivalent.\n//\n// E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.\n//\nexport var DIGITS = {\n '0': '0',\n '1': '1',\n '2': '2',\n '3': '3',\n '4': '4',\n '5': '5',\n '6': '6',\n '7': '7',\n '8': '8',\n '9': '9',\n \"\\uFF10\": '0',\n // Fullwidth digit 0\n \"\\uFF11\": '1',\n // Fullwidth digit 1\n \"\\uFF12\": '2',\n // Fullwidth digit 2\n \"\\uFF13\": '3',\n // Fullwidth digit 3\n \"\\uFF14\": '4',\n // Fullwidth digit 4\n \"\\uFF15\": '5',\n // Fullwidth digit 5\n \"\\uFF16\": '6',\n // Fullwidth digit 6\n \"\\uFF17\": '7',\n // Fullwidth digit 7\n \"\\uFF18\": '8',\n // Fullwidth digit 8\n \"\\uFF19\": '9',\n // Fullwidth digit 9\n \"\\u0660\": '0',\n // Arabic-indic digit 0\n \"\\u0661\": '1',\n // Arabic-indic digit 1\n \"\\u0662\": '2',\n // Arabic-indic digit 2\n \"\\u0663\": '3',\n // Arabic-indic digit 3\n \"\\u0664\": '4',\n // Arabic-indic digit 4\n \"\\u0665\": '5',\n // Arabic-indic digit 5\n \"\\u0666\": '6',\n // Arabic-indic digit 6\n \"\\u0667\": '7',\n // Arabic-indic digit 7\n \"\\u0668\": '8',\n // Arabic-indic digit 8\n \"\\u0669\": '9',\n // Arabic-indic digit 9\n \"\\u06F0\": '0',\n // Eastern-Arabic digit 0\n \"\\u06F1\": '1',\n // Eastern-Arabic digit 1\n \"\\u06F2\": '2',\n // Eastern-Arabic digit 2\n \"\\u06F3\": '3',\n // Eastern-Arabic digit 3\n \"\\u06F4\": '4',\n // Eastern-Arabic digit 4\n \"\\u06F5\": '5',\n // Eastern-Arabic digit 5\n \"\\u06F6\": '6',\n // Eastern-Arabic digit 6\n \"\\u06F7\": '7',\n // Eastern-Arabic digit 7\n \"\\u06F8\": '8',\n // Eastern-Arabic digit 8\n \"\\u06F9\": '9' // Eastern-Arabic digit 9\n\n};\nexport function parseDigit(character) {\n return DIGITS[character];\n}\n/**\r\n * Parses phone number digits from a string.\r\n * Drops all punctuation leaving only digits.\r\n * Also converts wide-ascii and arabic-indic numerals to conventional numerals.\r\n * E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.\r\n * @param {string} string\r\n * @return {string}\r\n * @example\r\n * ```js\r\n * parseDigits('8 (800) 555')\r\n * // Outputs '8800555'.\r\n * ```\r\n */\n\nexport default function parseDigits(string) {\n var result = ''; // Using `.split('')` here instead of normal `for ... of`\n // because the importing application doesn't neccessarily include an ES6 polyfill.\n // The `.split('')` approach discards \"exotic\" UTF-8 characters\n // (the ones consisting of four bytes) but digits\n // (including non-European ones) don't fall into that range\n // so such \"exotic\" characters would be discarded anyway.\n\n for (var _iterator = string.split(''), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n var _ref;\n\n if (_isArray) {\n if (_i >= _iterator.length) break;\n _ref = _iterator[_i++];\n } else {\n _i = _iterator.next();\n if (_i.done) break;\n _ref = _i.value;\n }\n\n var character = _ref;\n var digit = parseDigit(character);\n\n if (digit) {\n result += digit;\n }\n }\n\n return result;\n}","import { parseDigit } from './parseDigits';\n/**\r\n * Parses phone number characters from a string.\r\n * Drops all punctuation leaving only digits and the leading `+` sign (if any).\r\n * Also converts wide-ascii and arabic-indic numerals to conventional numerals.\r\n * E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.\r\n * @param {string} string\r\n * @return {string}\r\n * @example\r\n * ```js\r\n * // Outputs '8800555'.\r\n * parseIncompletePhoneNumber('8 (800) 555')\r\n * // Outputs '+7800555'.\r\n * parseIncompletePhoneNumber('+7 800 555')\r\n * ```\r\n */\n\nexport default function parseIncompletePhoneNumber(string) {\n var result = ''; // Using `.split('')` here instead of normal `for ... of`\n // because the importing application doesn't neccessarily include an ES6 polyfill.\n // The `.split('')` approach discards \"exotic\" UTF-8 characters\n // (the ones consisting of four bytes) but digits\n // (including non-European ones) don't fall into that range\n // so such \"exotic\" characters would be discarded anyway.\n\n for (var _iterator = string.split(''), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n var _ref;\n\n if (_isArray) {\n if (_i >= _iterator.length) break;\n _ref = _iterator[_i++];\n } else {\n _i = _iterator.next();\n if (_i.done) break;\n _ref = _i.value;\n }\n\n var character = _ref;\n result += parsePhoneNumberCharacter(character, result) || '';\n }\n\n return result;\n}\n/**\r\n * `input-format` `parse()` function.\r\n * https://gitlab.com/catamphetamine/input-format\r\n * @param {string} character - Yet another character from raw input string.\r\n * @param {string} value - The value parsed so far.\r\n * @param {object} meta - Optional custom use-case-specific metadata.\r\n * @return {string?} The parsed character.\r\n */\n\nexport function parsePhoneNumberCharacter(character, value) {\n // Only allow a leading `+`.\n if (character === '+') {\n // If this `+` is not the first parsed character\n // then discard it.\n if (value) {\n return;\n }\n\n return '+';\n } // Allow digits.\n\n\n return parseDigit(character);\n}","import Metadata from './metadata';\nimport { matchesEntirely, mergeArrays } from './util';\nvar NON_FIXED_LINE_PHONE_TYPES = ['MOBILE', 'PREMIUM_RATE', 'TOLL_FREE', 'SHARED_COST', 'VOIP', 'PERSONAL_NUMBER', 'PAGER', 'UAN', 'VOICEMAIL']; // Finds out national phone number type (fixed line, mobile, etc)\n\nexport default function getNumberType(input, options, metadata) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {}; // When `parse()` returned `{}`\n // meaning that the phone number is not a valid one.\n\n if (!input.country) {\n return;\n }\n\n metadata = new Metadata(metadata);\n metadata.selectNumberingPlan(input.country, input.countryCallingCode);\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone; // The following is copy-pasted from the original function:\n // https://github.com/googlei18n/libphonenumber/blob/3ea547d4fbaa2d0b67588904dfa5d3f2557c27ff/javascript/i18n/phonenumbers/phonenumberutil.js#L2835\n // Is this national number even valid for this country\n\n if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern())) {\n return;\n } // Is it fixed line number\n\n\n if (is_of_type(nationalNumber, 'FIXED_LINE', metadata)) {\n // Because duplicate regular expressions are removed\n // to reduce metadata size, if \"mobile\" pattern is \"\"\n // then it means it was removed due to being a duplicate of the fixed-line pattern.\n //\n if (metadata.type('MOBILE') && metadata.type('MOBILE').pattern() === '') {\n return 'FIXED_LINE_OR_MOBILE';\n } // v1 metadata.\n // Legacy.\n // Deprecated.\n\n\n if (!metadata.type('MOBILE')) {\n return 'FIXED_LINE_OR_MOBILE';\n } // Check if the number happens to qualify as both fixed line and mobile.\n // (no such country in the minimal metadata set)\n\n /* istanbul ignore if */\n\n\n if (is_of_type(nationalNumber, 'MOBILE', metadata)) {\n return 'FIXED_LINE_OR_MOBILE';\n }\n\n return 'FIXED_LINE';\n }\n\n for (var _i = 0, _NON_FIXED_LINE_PHONE = NON_FIXED_LINE_PHONE_TYPES; _i < _NON_FIXED_LINE_PHONE.length; _i++) {\n var _type = _NON_FIXED_LINE_PHONE[_i];\n\n if (is_of_type(nationalNumber, _type, metadata)) {\n return _type;\n }\n }\n}\nexport function is_of_type(nationalNumber, type, metadata) {\n type = metadata.type(type);\n\n if (!type || !type.pattern()) {\n return false;\n } // Check if any possible number lengths are present;\n // if so, we use them to avoid checking\n // the validation pattern if they don't match.\n // If they are absent, this means they match\n // the general description, which we have\n // already checked before a specific number type.\n\n\n if (type.possibleLengths() && type.possibleLengths().indexOf(nationalNumber.length) < 0) {\n return false;\n }\n\n return matchesEntirely(nationalNumber, type.pattern());\n} // Should only be called for the \"new\" metadata which has \"possible lengths\".\n\nexport function checkNumberLengthForType(nationalNumber, type, metadata) {\n var type_info = metadata.type(type); // There should always be \"\" set for every type element.\n // This is declared in the XML schema.\n // For size efficiency, where a sub-description (e.g. fixed-line)\n // has the same \"\" as the \"general description\", this is missing,\n // so we fall back to the \"general description\". Where no numbers of the type\n // exist at all, there is one possible length (-1) which is guaranteed\n // not to match the length of any real phone number.\n\n var possible_lengths = type_info && type_info.possibleLengths() || metadata.possibleLengths(); // let local_lengths = type_info && type.possibleLengthsLocal() || metadata.possibleLengthsLocal()\n // Metadata before version `1.0.18` didn't contain `possible_lengths`.\n\n if (!possible_lengths) {\n return 'IS_POSSIBLE';\n }\n\n if (type === 'FIXED_LINE_OR_MOBILE') {\n // No such country in metadata.\n\n /* istanbul ignore next */\n if (!metadata.type('FIXED_LINE')) {\n // The rare case has been encountered where no fixedLine data is available\n // (true for some non-geographic entities), so we just check mobile.\n return checkNumberLengthForType(nationalNumber, 'MOBILE', metadata);\n }\n\n var mobile_type = metadata.type('MOBILE');\n\n if (mobile_type) {\n // Merge the mobile data in if there was any. \"Concat\" creates a new\n // array, it doesn't edit possible_lengths in place, so we don't need a copy.\n // Note that when adding the possible lengths from mobile, we have\n // to again check they aren't empty since if they are this indicates\n // they are the same as the general desc and should be obtained from there.\n possible_lengths = mergeArrays(possible_lengths, mobile_type.possibleLengths()); // The current list is sorted; we need to merge in the new list and\n // re-sort (duplicates are okay). Sorting isn't so expensive because\n // the lists are very small.\n // if (local_lengths)\n // {\n // \tlocal_lengths = mergeArrays(local_lengths, mobile_type.possibleLengthsLocal())\n // }\n // else\n // {\n // \tlocal_lengths = mobile_type.possibleLengthsLocal()\n // }\n }\n } // If the type doesn't exist then return 'INVALID_LENGTH'.\n else if (type && !type_info) {\n return 'INVALID_LENGTH';\n }\n\n var actual_length = nationalNumber.length; // In `libphonenumber-js` all \"local-only\" formats are dropped for simplicity.\n // // This is safe because there is never an overlap beween the possible lengths\n // // and the local-only lengths; this is checked at build time.\n // if (local_lengths && local_lengths.indexOf(nationalNumber.length) >= 0)\n // {\n // \treturn 'IS_POSSIBLE_LOCAL_ONLY'\n // }\n\n var minimum_length = possible_lengths[0];\n\n if (minimum_length === actual_length) {\n return 'IS_POSSIBLE';\n }\n\n if (minimum_length > actual_length) {\n return 'TOO_SHORT';\n }\n\n if (possible_lengths[possible_lengths.length - 1] < actual_length) {\n return 'TOO_LONG';\n } // We skip the first element since we've already checked it.\n\n\n return possible_lengths.indexOf(actual_length, 1) >= 0 ? 'IS_POSSIBLE' : 'INVALID_LENGTH';\n}","import Metadata from './metadata';\nimport { checkNumberLengthForType } from './getNumberType_';\nexport default function isPossiblePhoneNumber(input, options, metadata) {\n /* istanbul ignore if */\n if (options === undefined) {\n options = {};\n }\n\n metadata = new Metadata(metadata);\n\n if (options.v2) {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n\n metadata.chooseCountryByCountryCallingCode(input.countryCallingCode);\n } else {\n if (!input.phone) {\n return false;\n }\n\n if (input.country) {\n if (!metadata.hasCountry(input.country)) {\n throw new Error(\"Unknown country: \".concat(input.country));\n }\n\n metadata.country(input.country);\n } else {\n if (!input.countryCallingCode) {\n throw new Error('Invalid phone number object passed');\n }\n\n metadata.chooseCountryByCountryCallingCode(input.countryCallingCode);\n }\n }\n\n if (metadata.possibleLengths()) {\n return isPossibleNumber(input.phone || input.nationalNumber, undefined, metadata);\n } else {\n // There was a bug between `1.7.35` and `1.7.37` where \"possible_lengths\"\n // were missing for \"non-geographical\" numbering plans.\n // Just assume the number is possible in such cases:\n // it's unlikely that anyone generated their custom metadata\n // in that short period of time (one day).\n // This code can be removed in some future major version update.\n if (input.countryCallingCode && metadata.isNonGeographicCallingCode(input.countryCallingCode)) {\n // \"Non-geographic entities\" did't have `possibleLengths`\n // due to a bug in metadata generation process.\n return true;\n } else {\n throw new Error('Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.');\n }\n }\n}\nexport function isPossibleNumber(nationalNumber, isInternational, metadata) {\n switch (checkNumberLengthForType(nationalNumber, undefined, metadata)) {\n case 'IS_POSSIBLE':\n return true;\n // case 'IS_POSSIBLE_LOCAL_ONLY':\n // \treturn !isInternational\n\n default:\n return false;\n }\n}","import Metadata from './metadata';\nimport { VALID_DIGITS } from './constants';\nvar CAPTURING_DIGIT_PATTERN = new RegExp('([' + VALID_DIGITS + '])');\n/**\r\n * Pattern that makes it easy to distinguish whether a region has a single\r\n * international dialing prefix or not. If a region has a single international\r\n * prefix (e.g. 011 in USA), it will be represented as a string that contains\r\n * a sequence of ASCII digits, and possibly a tilde, which signals waiting for\r\n * the tone. If there are multiple available international prefixes in a\r\n * region, they will be represented as a regex string that always contains one\r\n * or more characters that are not ASCII digits or a tilde.\r\n */\n\nvar SINGLE_IDD_PREFIX = /^[\\d]+(?:[~\\u2053\\u223C\\uFF5E][\\d]+)?$/; // For regions that have multiple IDD prefixes\n// a preferred IDD prefix is returned.\n\nexport function getIDDPrefix(country, callingCode, metadata) {\n var countryMetadata = new Metadata(metadata);\n countryMetadata.selectNumberingPlan(country, callingCode);\n\n if (SINGLE_IDD_PREFIX.test(countryMetadata.IDDPrefix())) {\n return countryMetadata.IDDPrefix();\n }\n\n return countryMetadata.defaultIDDPrefix();\n}\nexport function stripIDDPrefix(number, country, callingCode, metadata) {\n if (!country) {\n return;\n } // Check if the number is IDD-prefixed.\n\n\n var countryMetadata = new Metadata(metadata);\n countryMetadata.selectNumberingPlan(country, callingCode);\n var IDDPrefixPattern = new RegExp(countryMetadata.IDDPrefix());\n\n if (number.search(IDDPrefixPattern) !== 0) {\n return;\n } // Strip IDD prefix.\n\n\n number = number.slice(number.match(IDDPrefixPattern)[0].length); // Some kind of a weird edge case.\n // No explanation from Google given.\n\n var matchedGroups = number.match(CAPTURING_DIGIT_PATTERN);\n /* istanbul ignore next */\n\n if (matchedGroups && matchedGroups[1] != null && matchedGroups[1].length > 0) {\n if (matchedGroups[1] === '0') {\n return;\n }\n }\n\n return number;\n}","function _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nimport isViablePhoneNumber from './isViablePhoneNumber'; // https://www.ietf.org/rfc/rfc3966.txt\n\n/**\r\n * @param {string} text - Phone URI (RFC 3966).\r\n * @return {object} `{ ?number, ?ext }`.\r\n */\n\nexport function parseRFC3966(text) {\n var number;\n var ext; // Replace \"tel:\" with \"tel=\" for parsing convenience.\n\n text = text.replace(/^tel:/, 'tel=');\n\n for (var _iterator = text.split(';'), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n var _ref;\n\n if (_isArray) {\n if (_i >= _iterator.length) break;\n _ref = _iterator[_i++];\n } else {\n _i = _iterator.next();\n if (_i.done) break;\n _ref = _i.value;\n }\n\n var part = _ref;\n\n var _part$split = part.split('='),\n _part$split2 = _slicedToArray(_part$split, 2),\n name = _part$split2[0],\n value = _part$split2[1];\n\n switch (name) {\n case 'tel':\n number = value;\n break;\n\n case 'ext':\n ext = value;\n break;\n\n case 'phone-context':\n // Only \"country contexts\" are supported.\n // \"Domain contexts\" are ignored.\n if (value[0] === '+') {\n number = value + number;\n }\n\n break;\n }\n } // If the phone number is not viable, then abort.\n\n\n if (!isViablePhoneNumber(number)) {\n return {};\n }\n\n var result = {\n number: number\n };\n\n if (ext) {\n result.ext = ext;\n }\n\n return result;\n}\n/**\r\n * @param {object} - `{ ?number, ?extension }`.\r\n * @return {string} Phone URI (RFC 3966).\r\n */\n\nexport function formatRFC3966(_ref2) {\n var number = _ref2.number,\n ext = _ref2.ext;\n\n if (!number) {\n return '';\n }\n\n if (number[0] !== '+') {\n throw new Error(\"\\\"formatRFC3966()\\\" expects \\\"number\\\" to be in E.164 format.\");\n }\n\n return \"tel:\".concat(number).concat(ext ? ';ext=' + ext : '');\n}","import Metadata from './metadata';\nimport { matchesEntirely } from './util';\nimport getNumberType from './getNumberType_';\n/**\r\n * Checks if a given phone number is valid.\r\n *\r\n * If the `number` is a string, it will be parsed to an object,\r\n * but only if it contains only valid phone number characters (including punctuation).\r\n * If the `number` is an object, it is used as is.\r\n *\r\n * The optional `defaultCountry` argument is the default country.\r\n * I.e. it does not restrict to just that country,\r\n * e.g. in those cases where several countries share\r\n * the same phone numbering rules (NANPA, Britain, etc).\r\n * For example, even though the number `07624 369230`\r\n * belongs to the Isle of Man (\"IM\" country code)\r\n * calling `isValidNumber('07624369230', 'GB', metadata)`\r\n * still returns `true` because the country is not restricted to `GB`,\r\n * it's just that `GB` is the default one for the phone numbering rules.\r\n * For restricting the country see `isValidNumberForRegion()`\r\n * though restricting a country might not be a good idea.\r\n * https://github.com/googlei18n/libphonenumber/blob/master/FAQ.md#when-should-i-use-isvalidnumberforregion\r\n *\r\n * Examples:\r\n *\r\n * ```js\r\n * isValidNumber('+78005553535', metadata)\r\n * isValidNumber('8005553535', 'RU', metadata)\r\n * isValidNumber('88005553535', 'RU', metadata)\r\n * isValidNumber({ phone: '8005553535', country: 'RU' }, metadata)\r\n * ```\r\n */\n\nexport default function isValidNumber(input, options, metadata) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n metadata = new Metadata(metadata); // This is just to support `isValidNumber({})`\n // for cases when `parseNumber()` returns `{}`.\n\n if (!input.country) {\n return false;\n }\n\n metadata.selectNumberingPlan(input.country, input.countryCallingCode); // By default, countries only have type regexps when it's required for\n // distinguishing different countries having the same `countryCallingCode`.\n\n if (metadata.hasTypes()) {\n return getNumberType(input, options, metadata.metadata) !== undefined;\n } // If there are no type regexps for this country in metadata then use\n // `nationalNumberPattern` as a \"better than nothing\" replacement.\n\n\n var national_number = options.v2 ? input.nationalNumber : input.phone;\n return matchesEntirely(national_number, metadata.nationalNumberPattern());\n}","function _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n} // This is a port of Google Android `libphonenumber`'s\n// `phonenumberutil.js` of December 31th, 2018.\n//\n// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js\n\n\nimport { VALID_PUNCTUATION } from './constants';\nimport { matchesEntirely } from './util';\nimport Metadata from './metadata';\nimport { getIDDPrefix } from './IDD';\nimport { formatRFC3966 } from './RFC3966';\nvar DEFAULT_OPTIONS = {\n formatExtension: function formatExtension(formattedNumber, extension, metadata) {\n return \"\".concat(formattedNumber).concat(metadata.ext()).concat(extension);\n } // Formats a phone number\n //\n // Example use cases:\n //\n // ```js\n // formatNumber('8005553535', 'RU', 'INTERNATIONAL')\n // formatNumber('8005553535', 'RU', 'INTERNATIONAL', metadata)\n // formatNumber({ phone: '8005553535', country: 'RU' }, 'INTERNATIONAL')\n // formatNumber({ phone: '8005553535', country: 'RU' }, 'INTERNATIONAL', metadata)\n // formatNumber('+78005553535', 'NATIONAL')\n // formatNumber('+78005553535', 'NATIONAL', metadata)\n // ```\n //\n\n};\nexport default function formatNumber(input, format, options, metadata) {\n // Apply default options.\n if (options) {\n options = _objectSpread({}, DEFAULT_OPTIONS, options);\n } else {\n options = DEFAULT_OPTIONS;\n }\n\n metadata = new Metadata(metadata);\n\n if (input.country && input.country !== '001') {\n // Validate `input.country`.\n if (!metadata.hasCountry(input.country)) {\n throw new Error(\"Unknown country: \".concat(input.country));\n }\n\n metadata.country(input.country);\n } else if (input.countryCallingCode) {\n metadata.chooseCountryByCountryCallingCode(input.countryCallingCode);\n } else return input.phone || '';\n\n var countryCallingCode = metadata.countryCallingCode();\n var nationalNumber = options.v2 ? input.nationalNumber : input.phone; // This variable should have been declared inside `case`s\n // but Babel has a bug and it says \"duplicate variable declaration\".\n\n var number;\n\n switch (format) {\n case 'NATIONAL':\n // Legacy argument support.\n // (`{ country: ..., phone: '' }`)\n if (!nationalNumber) {\n return '';\n }\n\n number = formatNationalNumber(nationalNumber, 'NATIONAL', metadata, options);\n return addExtension(number, input.ext, metadata, options.formatExtension);\n\n case 'INTERNATIONAL':\n // Legacy argument support.\n // (`{ country: ..., phone: '' }`)\n if (!nationalNumber) {\n return \"+\".concat(countryCallingCode);\n }\n\n number = formatNationalNumber(nationalNumber, 'INTERNATIONAL', metadata, options);\n number = \"+\".concat(countryCallingCode, \" \").concat(number);\n return addExtension(number, input.ext, metadata, options.formatExtension);\n\n case 'E.164':\n // `E.164` doesn't define \"phone number extensions\".\n return \"+\".concat(countryCallingCode).concat(nationalNumber);\n\n case 'RFC3966':\n return formatRFC3966({\n number: \"+\".concat(countryCallingCode).concat(nationalNumber),\n ext: input.ext\n });\n\n case 'IDD':\n if (!options.fromCountry) {\n return; // throw new Error('`fromCountry` option not passed for IDD-prefixed formatting.')\n }\n\n var IDDPrefix = getIDDPrefix(options.fromCountry, undefined, metadata.metadata);\n\n if (!IDDPrefix) {\n return;\n }\n\n if (options.humanReadable) {\n var formattedForSameCountryCallingCode = countryCallingCode && formatIDDSameCountryCallingCodeNumber(nationalNumber, metadata.countryCallingCode(), options.fromCountry, metadata, options);\n\n if (formattedForSameCountryCallingCode) {\n number = formattedForSameCountryCallingCode;\n } else {\n number = \"\".concat(IDDPrefix, \" \").concat(countryCallingCode, \" \").concat(formatNationalNumber(nationalNumber, 'INTERNATIONAL', metadata, options));\n }\n\n return addExtension(number, input.ext, metadata, options.formatExtension);\n }\n\n return \"\".concat(IDDPrefix).concat(countryCallingCode).concat(nationalNumber);\n\n default:\n throw new Error(\"Unknown \\\"format\\\" argument passed to \\\"formatNumber()\\\": \\\"\".concat(format, \"\\\"\"));\n }\n} // This was originally set to $1 but there are some countries for which the\n// first group is not used in the national pattern (e.g. Argentina) so the $1\n// group does not match correctly. Therefore, we use \\d, so that the first\n// group actually used in the pattern will be matched.\n\nexport var FIRST_GROUP_PATTERN = /(\\$\\d)/;\nexport function formatNationalNumberUsingFormat(number, format, useInternationalSeparator, useNationalPrefixFormattingRule, metadata) {\n var formattedNumber = number.replace(new RegExp(format.pattern()), useInternationalSeparator ? format.internationalFormat() : useNationalPrefixFormattingRule && format.nationalPrefixFormattingRule() ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule()) : format.format());\n\n if (useInternationalSeparator) {\n return applyInternationalSeparatorStyle(formattedNumber);\n }\n\n return formattedNumber;\n}\n\nfunction formatNationalNumber(number, formatAs, metadata, options) {\n var format = chooseFormatForNumber(metadata.formats(), number);\n\n if (!format) {\n return number;\n }\n\n return formatNationalNumberUsingFormat(number, format, formatAs === 'INTERNATIONAL', format.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && options.nationalPrefix === false ? false : true, metadata);\n}\n\nfunction chooseFormatForNumber(availableFormats, nationalNnumber) {\n for (var _iterator = availableFormats, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n var _ref;\n\n if (_isArray) {\n if (_i >= _iterator.length) break;\n _ref = _iterator[_i++];\n } else {\n _i = _iterator.next();\n if (_i.done) break;\n _ref = _i.value;\n }\n\n var format = _ref; // Validate leading digits\n\n if (format.leadingDigitsPatterns().length > 0) {\n // The last leading_digits_pattern is used here, as it is the most detailed\n var lastLeadingDigitsPattern = format.leadingDigitsPatterns()[format.leadingDigitsPatterns().length - 1]; // If leading digits don't match then move on to the next phone number format\n\n if (nationalNnumber.search(lastLeadingDigitsPattern) !== 0) {\n continue;\n }\n } // Check that the national number matches the phone number format regular expression\n\n\n if (matchesEntirely(nationalNnumber, format.pattern())) {\n return format;\n }\n }\n} // Removes brackets and replaces dashes with spaces.\n//\n// E.g. \"(999) 111-22-33\" -> \"999 111 22 33\"\n//\n// For some reason Google's metadata contains ``s with brackets and dashes.\n// Meanwhile, there's no single opinion about using punctuation in international phone numbers.\n//\n// For example, Google's `` for USA is `+1 213-373-4253`.\n// And here's a quote from WikiPedia's \"North American Numbering Plan\" page:\n// https://en.wikipedia.org/wiki/North_American_Numbering_Plan\n//\n// \"The country calling code for all countries participating in the NANP is 1.\n// In international format, an NANP number should be listed as +1 301 555 01 00,\n// where 301 is an area code (Maryland).\"\n//\n// I personally prefer the international format without any punctuation.\n// For example, brackets are remnants of the old age, meaning that the\n// phone number part in brackets (so called \"area code\") can be omitted\n// if dialing within the same \"area\".\n// And hyphens were clearly introduced for splitting local numbers into memorizable groups.\n// For example, remembering \"5553535\" is difficult but \"555-35-35\" is much simpler.\n// Imagine a man taking a bus from home to work and seeing an ad with a phone number.\n// He has a couple of seconds to memorize that number until it passes by.\n// If it were spaces instead of hyphens the man wouldn't necessarily get it,\n// but with hyphens instead of spaces the grouping is more explicit.\n// I personally think that hyphens introduce visual clutter,\n// so I prefer replacing them with spaces in international numbers.\n// In the modern age all output is done on displays where spaces are clearly distinguishable\n// so hyphens can be safely replaced with spaces without losing any legibility.\n//\n\n\nexport function applyInternationalSeparatorStyle(local) {\n return local.replace(new RegExp(\"[\".concat(VALID_PUNCTUATION, \"]+\"), 'g'), ' ').trim();\n}\n\nfunction addExtension(formattedNumber, ext, metadata, formatExtension) {\n return ext ? formatExtension(formattedNumber, ext, metadata) : formattedNumber;\n}\n\nfunction formatIDDSameCountryCallingCodeNumber(number, toCountryCallingCode, fromCountry, toCountryMetadata, options) {\n var fromCountryMetadata = new Metadata(toCountryMetadata.metadata);\n fromCountryMetadata.country(fromCountry); // If calling within the same country calling code.\n\n if (toCountryCallingCode === fromCountryMetadata.countryCallingCode()) {\n // For NANPA regions, return the national format for these regions\n // but prefix it with the country calling code.\n if (toCountryCallingCode === '1') {\n return toCountryCallingCode + ' ' + formatNationalNumber(number, 'NATIONAL', toCountryMetadata, options);\n } // If regions share a country calling code, the country calling code need\n // not be dialled. This also applies when dialling within a region, so this\n // if clause covers both these cases. Technically this is the case for\n // dialling from La Reunion to other overseas departments of France (French\n // Guiana, Martinique, Guadeloupe), but not vice versa - so we don't cover\n // this edge case for now and for those cases return the version including\n // country calling code. Details here:\n // http://www.petitfute.com/voyage/225-info-pratiques-reunion\n //\n\n\n return formatNationalNumber(number, 'NATIONAL', toCountryMetadata, options);\n }\n}","function _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nimport Metadata from './metadata';\nimport isPossibleNumber from './isPossibleNumber_';\nimport isValidNumber from './validate_';\nimport isValidNumberForRegion from './isValidNumberForRegion_';\nimport getNumberType from './getNumberType_';\nimport formatNumber from './format_';\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\n\nvar PhoneNumber = /*#__PURE__*/function () {\n function PhoneNumber(countryCallingCode, nationalNumber, metadata) {\n _classCallCheck(this, PhoneNumber);\n\n if (!countryCallingCode) {\n throw new TypeError('`country` or `countryCallingCode` not passed');\n }\n\n if (!nationalNumber) {\n throw new TypeError('`nationalNumber` not passed');\n }\n\n var _metadata = new Metadata(metadata); // If country code is passed then derive `countryCallingCode` from it.\n // Also store the country code as `.country`.\n\n\n if (isCountryCode(countryCallingCode)) {\n this.country = countryCallingCode;\n\n _metadata.country(countryCallingCode);\n\n countryCallingCode = _metadata.countryCallingCode();\n } else {\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (_metadata.isNonGeographicCallingCode(countryCallingCode)) {\n this.country = '001';\n }\n }\n }\n\n this.countryCallingCode = countryCallingCode;\n this.nationalNumber = nationalNumber;\n this.number = '+' + this.countryCallingCode + this.nationalNumber;\n this.metadata = metadata;\n }\n\n _createClass(PhoneNumber, [{\n key: \"isPossible\",\n value: function isPossible() {\n return isPossibleNumber(this, {\n v2: true\n }, this.metadata);\n }\n }, {\n key: \"isValid\",\n value: function isValid() {\n return isValidNumber(this, {\n v2: true\n }, this.metadata);\n }\n }, {\n key: \"isNonGeographic\",\n value: function isNonGeographic() {\n var metadata = new Metadata(this.metadata);\n return metadata.isNonGeographicCallingCode(this.countryCallingCode);\n }\n }, {\n key: \"isEqual\",\n value: function isEqual(phoneNumber) {\n return this.number === phoneNumber.number && this.ext === phoneNumber.ext;\n } // // Is just an alias for `this.isValid() && this.country === country`.\n // // https://github.com/googlei18n/libphonenumber/blob/master/FAQ.md#when-should-i-use-isvalidnumberforregion\n // isValidForRegion(country) {\n // \treturn isValidNumberForRegion(this, country, { v2: true }, this.metadata)\n // }\n\n }, {\n key: \"getType\",\n value: function getType() {\n return getNumberType(this, {\n v2: true\n }, this.metadata);\n }\n }, {\n key: \"format\",\n value: function format(_format, options) {\n return formatNumber(this, _format, options ? _objectSpread({}, options, {\n v2: true\n }) : {\n v2: true\n }, this.metadata);\n }\n }, {\n key: \"formatNational\",\n value: function formatNational(options) {\n return this.format('NATIONAL', options);\n }\n }, {\n key: \"formatInternational\",\n value: function formatInternational(options) {\n return this.format('INTERNATIONAL', options);\n }\n }, {\n key: \"getURI\",\n value: function getURI(options) {\n return this.format('RFC3966', options);\n }\n }]);\n\n return PhoneNumber;\n}();\n\nexport { PhoneNumber as default };\n\nvar isCountryCode = function isCountryCode(value) {\n return /^[A-Z]{2}$/.test(value);\n};","// This is a port of Google Android `libphonenumber`'s\n// `phonenumberutil.js` of December 31th, 2018.\n//\n// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js\nimport { VALID_DIGITS, PLUS_CHARS, MIN_LENGTH_FOR_NSN, MAX_LENGTH_FOR_NSN, MAX_LENGTH_COUNTRY_CODE } from './constants';\nimport { matchesEntirely } from './util';\nimport ParseError from './ParseError';\nimport Metadata from './metadata';\nimport isViablePhoneNumber from './isViablePhoneNumber';\nimport { extractExtension } from './extension';\nimport parseIncompletePhoneNumber from './parseIncompletePhoneNumber';\nimport getCountryCallingCode from './getCountryCallingCode';\nimport getNumberType, { checkNumberLengthForType } from './getNumberType_';\nimport { isPossibleNumber } from './isPossibleNumber_';\nimport { stripIDDPrefix } from './IDD';\nimport { parseRFC3966 } from './RFC3966';\nimport PhoneNumber from './PhoneNumber'; // We don't allow input strings for parsing to be longer than 250 chars.\n// This prevents malicious input from consuming CPU.\n\nvar MAX_INPUT_STRING_LENGTH = 250; // This consists of the plus symbol, digits, and arabic-indic digits.\n\nvar PHONE_NUMBER_START_PATTERN = new RegExp('[' + PLUS_CHARS + VALID_DIGITS + ']'); // Regular expression of trailing characters that we want to remove.\n\nvar AFTER_PHONE_NUMBER_END_PATTERN = new RegExp('[^' + VALID_DIGITS + ']+$');\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false; // `options`:\n// {\n// country:\n// {\n// restrict - (a two-letter country code)\n// the phone number must be in this country\n//\n// default - (a two-letter country code)\n// default country to use for phone number parsing and validation\n// (if no country code could be derived from the phone number)\n// }\n// }\n//\n// Returns `{ country, number }`\n//\n// Example use cases:\n//\n// ```js\n// parse('8 (800) 555-35-35', 'RU')\n// parse('8 (800) 555-35-35', 'RU', metadata)\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } })\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } }, metadata)\n// parse('+7 800 555 35 35')\n// parse('+7 800 555 35 35', metadata)\n// ```\n//\n\nexport default function parse(text, options, metadata) {\n // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n options = options || {};\n metadata = new Metadata(metadata); // Validate `defaultCountry`.\n\n if (options.defaultCountry && !metadata.hasCountry(options.defaultCountry)) {\n if (options.v2) {\n throw new ParseError('INVALID_COUNTRY');\n }\n\n throw new Error(\"Unknown country: \".concat(options.defaultCountry));\n } // Parse the phone number.\n\n\n var _parseInput = parseInput(text, options.v2),\n formattedPhoneNumber = _parseInput.number,\n ext = _parseInput.ext; // If the phone number is not viable then return nothing.\n\n\n if (!formattedPhoneNumber) {\n if (options.v2) {\n throw new ParseError('NOT_A_NUMBER');\n }\n\n return {};\n }\n\n var _parsePhoneNumber = parsePhoneNumber(formattedPhoneNumber, options.defaultCountry, options.defaultCallingCode, metadata),\n country = _parsePhoneNumber.country,\n nationalNumber = _parsePhoneNumber.nationalNumber,\n countryCallingCode = _parsePhoneNumber.countryCallingCode,\n carrierCode = _parsePhoneNumber.carrierCode;\n\n if (!metadata.hasSelectedNumberingPlan()) {\n if (options.v2) {\n throw new ParseError('INVALID_COUNTRY');\n }\n\n return {};\n } // Validate national (significant) number length.\n\n\n if (!nationalNumber || nationalNumber.length < MIN_LENGTH_FOR_NSN) {\n // Won't throw here because the regexp already demands length > 1.\n\n /* istanbul ignore if */\n if (options.v2) {\n throw new ParseError('TOO_SHORT');\n } // Google's demo just throws an error in this case.\n\n\n return {};\n } // Validate national (significant) number length.\n //\n // A sidenote:\n //\n // They say that sometimes national (significant) numbers\n // can be longer than `MAX_LENGTH_FOR_NSN` (e.g. in Germany).\n // https://github.com/googlei18n/libphonenumber/blob/7e1748645552da39c4e1ba731e47969d97bdb539/resources/phonenumber.proto#L36\n // Such numbers will just be discarded.\n //\n\n\n if (nationalNumber.length > MAX_LENGTH_FOR_NSN) {\n if (options.v2) {\n throw new ParseError('TOO_LONG');\n } // Google's demo just throws an error in this case.\n\n\n return {};\n }\n\n if (options.v2) {\n var phoneNumber = new PhoneNumber(countryCallingCode, nationalNumber, metadata.metadata);\n\n if (country) {\n phoneNumber.country = country;\n }\n\n if (carrierCode) {\n phoneNumber.carrierCode = carrierCode;\n }\n\n if (ext) {\n phoneNumber.ext = ext;\n }\n\n return phoneNumber;\n } // Check if national phone number pattern matches the number.\n // National number pattern is different for each country,\n // even for those ones which are part of the \"NANPA\" group.\n\n\n var valid = (options.extended ? metadata.hasSelectedNumberingPlan() : country) ? matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) : false;\n\n if (!options.extended) {\n return valid ? result(country, nationalNumber, ext) : {};\n }\n\n return {\n country: country,\n countryCallingCode: countryCallingCode,\n carrierCode: carrierCode,\n valid: valid,\n possible: valid ? true : options.extended === true && metadata.possibleLengths() && isPossibleNumber(nationalNumber, countryCallingCode !== undefined, metadata) ? true : false,\n phone: nationalNumber,\n ext: ext\n };\n}\n/**\r\n * Extracts a formatted phone number from text.\r\n * Doesn't guarantee that the extracted phone number\r\n * is a valid phone number (for example, doesn't validate its length).\r\n * @param {string} text\r\n * @param {boolean} throwOnError — By default, it won't throw if the text is too long.\r\n * @return {string}\r\n * @example\r\n * // Returns \"(213) 373-4253\".\r\n * extractFormattedPhoneNumber(\"Call (213) 373-4253 for assistance.\")\r\n */\n\nexport function extractFormattedPhoneNumber(text, throwOnError) {\n if (!text) {\n return;\n }\n\n if (text.length > MAX_INPUT_STRING_LENGTH) {\n if (throwOnError) {\n throw new ParseError('TOO_LONG');\n }\n\n return;\n } // Attempt to extract a possible number from the string passed in\n\n\n var startsAt = text.search(PHONE_NUMBER_START_PATTERN);\n\n if (startsAt < 0) {\n return;\n }\n\n return text // Trim everything to the left of the phone number\n .slice(startsAt) // Remove trailing non-numerical characters\n .replace(AFTER_PHONE_NUMBER_END_PATTERN, '');\n}\n/**\r\n * Strips any national prefix (such as 0, 1) present in a\r\n * (possibly incomplete) number provided.\r\n * \"Carrier codes\" are only used in Colombia and Brazil,\r\n * and only when dialing within those countries from a mobile phone to a fixed line number.\r\n * Sometimes it won't actually strip national prefix\r\n * and will instead prepend some digits to the `number`:\r\n * for example, when number `2345678` is passed with `VI` country selected,\r\n * it will return `{ number: \"3402345678\" }`, because `340` area code is prepended.\r\n * @param {string} number — National number digits.\r\n * @param {object} metadata — Metadata with country selected.\r\n * @return {object} `{ nationalNumber: string, carrierCode: string? }`.\r\n */\n\nexport function stripNationalPrefixAndCarrierCode(number, metadata) {\n if (number && metadata.nationalPrefixForParsing()) {\n // See METADATA.md for the description of\n // `national_prefix_for_parsing` and `national_prefix_transform_rule`.\n // Attempt to parse the first digits as a national prefix.\n var prefixPattern = new RegExp('^(?:' + metadata.nationalPrefixForParsing() + ')');\n var prefixMatch = prefixPattern.exec(number);\n\n if (prefixMatch) {\n var nationalNumber;\n var carrierCode; // If a \"capturing group\" didn't match\n // then its element in `prefixMatch[]` array will be `undefined`.\n\n var capturedGroupsCount = prefixMatch.length - 1;\n\n if (metadata.nationalPrefixTransformRule() && capturedGroupsCount > 0 && prefixMatch[capturedGroupsCount]) {\n nationalNumber = number.replace(prefixPattern, metadata.nationalPrefixTransformRule()); // Carrier code is the last captured group,\n // but only when there's more than one captured group.\n\n if (capturedGroupsCount > 1 && prefixMatch[capturedGroupsCount]) {\n carrierCode = prefixMatch[1];\n }\n } // If it's a simple-enough case then just\n // strip the national prefix from the number.\n else {\n // National prefix is the whole substring matched by\n // the `national_prefix_for_parsing` regexp.\n var nationalPrefix = prefixMatch[0];\n nationalNumber = number.slice(nationalPrefix.length); // Carrier code is the last captured group.\n\n if (capturedGroupsCount > 0) {\n carrierCode = prefixMatch[1];\n }\n } // We require that the national (significant) number remaining after\n // stripping the national prefix and carrier code be long enough\n // to be a possible length for the region. Otherwise, we don't do\n // the stripping, since the original number could be a valid number.\n // For example, in some countries (Russia, Belarus) the same digit\n // could be both a national prefix and a leading digit of a valid\n // national phone number, like `8` is the national prefix for Russia\n // and `800 555 35 35` is a valid national (significant) number.\n\n\n if (matchesEntirely(number, metadata.nationalNumberPattern()) && !matchesEntirely(nationalNumber, metadata.nationalNumberPattern())) {// Don't strip national prefix or carrier code.\n } else {\n return {\n nationalNumber: nationalNumber,\n carrierCode: carrierCode\n };\n }\n }\n }\n\n return {\n nationalNumber: number\n };\n}\nexport function findCountryCode(callingCode, nationalPhoneNumber, metadata) {\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(callingCode)) {\n return '001';\n }\n } // Is always non-empty, because `callingCode` is always valid\n\n\n var possibleCountries = metadata.getCountryCodesForCallingCode(callingCode);\n\n if (!possibleCountries) {\n return;\n } // If there's just one country corresponding to the country code,\n // then just return it, without further phone number digits validation.\n\n\n if (possibleCountries.length === 1) {\n return possibleCountries[0];\n }\n\n return _findCountryCode(possibleCountries, nationalPhoneNumber, metadata.metadata);\n} // Changes `metadata` `country`.\n\nfunction _findCountryCode(possibleCountries, nationalPhoneNumber, metadata) {\n metadata = new Metadata(metadata);\n\n for (var _iterator = possibleCountries, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n var _ref;\n\n if (_isArray) {\n if (_i >= _iterator.length) break;\n _ref = _iterator[_i++];\n } else {\n _i = _iterator.next();\n if (_i.done) break;\n _ref = _i.value;\n }\n\n var country = _ref;\n metadata.country(country); // Leading digits check would be the simplest one\n\n if (metadata.leadingDigits()) {\n if (nationalPhoneNumber && nationalPhoneNumber.search(metadata.leadingDigits()) === 0) {\n return country;\n }\n } // Else perform full validation with all of those\n // fixed-line/mobile/etc regular expressions.\n else if (getNumberType({\n phone: nationalPhoneNumber,\n country: country\n }, undefined, metadata.metadata)) {\n return country;\n }\n }\n}\n/**\r\n * @param {string} text - Input.\r\n * @return {object} `{ ?number, ?ext }`.\r\n */\n\n\nfunction parseInput(text, v2) {\n // Parse RFC 3966 phone number URI.\n if (text && text.indexOf('tel:') === 0) {\n return parseRFC3966(text);\n }\n\n var number = extractFormattedPhoneNumber(text, v2); // If the phone number is not viable, then abort.\n\n if (!number || !isViablePhoneNumber(number)) {\n return {};\n } // Attempt to parse extension first, since it doesn't require region-specific\n // data and we want to have the non-normalised number here.\n\n\n var withExtensionStripped = extractExtension(number);\n\n if (withExtensionStripped.ext) {\n return withExtensionStripped;\n }\n\n return {\n number: number\n };\n}\n/**\r\n * Creates `parse()` result object.\r\n */\n\n\nfunction result(country, nationalNumber, ext) {\n var result = {\n country: country,\n phone: nationalNumber\n };\n\n if (ext) {\n result.ext = ext;\n }\n\n return result;\n}\n/**\r\n * Parses a viable phone number.\r\n * @param {string} formattedPhoneNumber — Example: \"(213) 373-4253\".\r\n * @param {string} [defaultCountry]\r\n * @param {string} [defaultCallingCode]\r\n * @param {Metadata} metadata\r\n * @return {object} Returns `{ country: string?, countryCallingCode: string?, nationalNumber: string? }`.\r\n */\n\n\nfunction parsePhoneNumber(formattedPhoneNumber, defaultCountry, defaultCallingCode, metadata) {\n // Extract calling code from phone number.\n var _extractCountryCallin = extractCountryCallingCode(parseIncompletePhoneNumber(formattedPhoneNumber), defaultCountry, defaultCallingCode, metadata.metadata),\n countryCallingCode = _extractCountryCallin.countryCallingCode,\n number = _extractCountryCallin.number; // Choose a country by `countryCallingCode`.\n\n\n var country;\n\n if (countryCallingCode) {\n metadata.chooseCountryByCountryCallingCode(countryCallingCode);\n } // If `formattedPhoneNumber` is in \"national\" format\n // then `number` is defined and `countryCallingCode` isn't.\n else if (number && (defaultCountry || defaultCallingCode)) {\n metadata.selectNumberingPlan(defaultCountry, defaultCallingCode);\n\n if (defaultCountry) {\n country = defaultCountry;\n } else {\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (metadata.isNonGeographicCallingCode(defaultCallingCode)) {\n country = '001';\n }\n }\n }\n\n countryCallingCode = defaultCallingCode || getCountryCallingCode(defaultCountry, metadata.metadata);\n } else return {};\n\n if (!number) {\n return {\n countryCallingCode: countryCallingCode\n };\n }\n\n var _stripNationalPrefixA = stripNationalPrefixAndCarrierCodeFromCompleteNumber(parseIncompletePhoneNumber(number), metadata),\n nationalNumber = _stripNationalPrefixA.nationalNumber,\n carrierCode = _stripNationalPrefixA.carrierCode; // Sometimes there are several countries\n // corresponding to the same country phone code\n // (e.g. NANPA countries all having `1` country phone code).\n // Therefore, to reliably determine the exact country,\n // national (significant) number should have been parsed first.\n //\n // When `metadata.json` is generated, all \"ambiguous\" country phone codes\n // get their countries populated with the full set of\n // \"phone number type\" regular expressions.\n //\n\n\n var exactCountry = findCountryCode(countryCallingCode, nationalNumber, metadata);\n\n if (exactCountry) {\n country = exactCountry;\n /* istanbul ignore if */\n\n if (exactCountry === '001') {// Can't happen with `USE_NON_GEOGRAPHIC_COUNTRY_CODE` being `false`.\n // If `USE_NON_GEOGRAPHIC_COUNTRY_CODE` is set to `true` for some reason,\n // then remove the \"istanbul ignore if\".\n } else {\n metadata.country(country);\n }\n }\n\n return {\n country: country,\n countryCallingCode: countryCallingCode,\n nationalNumber: nationalNumber,\n carrierCode: carrierCode\n };\n}\n/**\r\n * Strips national prefix and carrier code from a complete phone number.\r\n * The difference from the non-\"FromCompleteNumber\" function is that\r\n * it won't extract national prefix if the resultant number is too short\r\n * to be a complete number for the selected phone numbering plan.\r\n * @param {string} number — Complete phone number digits.\r\n * @param {Metadata} metadata — Metadata with a phone numbering plan selected.\r\n * @return {object} `{ nationalNumber: string, carrierCode: string? }`.\r\n */\n\n\nexport function stripNationalPrefixAndCarrierCodeFromCompleteNumber(number, metadata) {\n // Parsing national prefixes and carrier codes\n // is only required for local phone numbers\n // but some people don't understand that\n // and sometimes write international phone numbers\n // with national prefixes (or maybe even carrier codes).\n // http://ucken.blogspot.ru/2016/03/trunk-prefixes-in-skype4b.html\n // Google's original library forgives such mistakes\n // and so does this library, because it has been requested:\n // https://github.com/catamphetamine/libphonenumber-js/issues/127\n var _stripNationalPrefixA2 = stripNationalPrefixAndCarrierCode(parseIncompletePhoneNumber(number), metadata),\n nationalNumber = _stripNationalPrefixA2.nationalNumber,\n carrierCode = _stripNationalPrefixA2.carrierCode; // If a national prefix has been extracted, check to see\n // if the resultant number isn't too short.\n\n\n if (nationalNumber.length !== number.length + (carrierCode ? carrierCode.length : 0)) {\n // If not using legacy generated metadata (before version `1.0.18`)\n // then it has \"possible lengths\", so use those to validate the number length.\n if (metadata.possibleLengths()) {\n // \"We require that the NSN remaining after stripping the national prefix and\n // carrier code be long enough to be a possible length for the region.\n // Otherwise, we don't do the stripping, since the original number could be\n // a valid short number.\"\n // https://github.com/google/libphonenumber/blob/876268eb1ad6cdc1b7b5bef17fc5e43052702d57/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L3236-L3250\n switch (checkNumberLengthForType(nationalNumber, undefined, metadata)) {\n case 'TOO_SHORT':\n case 'INVALID_LENGTH':\n // case 'IS_POSSIBLE_LOCAL_ONLY':\n // Don't strip the national prefix.\n return {\n nationalNumber: number\n };\n }\n }\n }\n\n return {\n nationalNumber: nationalNumber,\n carrierCode: carrierCode\n };\n}\n/**\r\n * Converts a phone number digits (possibly with a `+`)\r\n * into a calling code and the rest phone number digits.\r\n * The \"rest phone number digits\" could include\r\n * a national prefix, carrier code, and national\r\n * (significant) number.\r\n * @param {string} number — Phone number digits (possibly with a `+`).\r\n * @param {string} [country] — Default country.\r\n * @param {string} [callingCode] — Default calling code (some phone numbering plans are non-geographic).\r\n * @param {object} metadata\r\n * @return {object} `{ countryCallingCode: string?, number: string }`\r\n * @example\r\n * // Returns `{ countryCallingCode: \"1\", number: \"2133734253\" }`.\r\n * extractCountryCallingCode('2133734253', 'US', null, metadata)\r\n * extractCountryCallingCode('2133734253', null, '1', metadata)\r\n * extractCountryCallingCode('+12133734253', null, null, metadata)\r\n * extractCountryCallingCode('+12133734253', 'RU', null, metadata)\r\n */\n\nexport function extractCountryCallingCode(number, country, callingCode, metadata) {\n if (!number) {\n return {};\n } // If this is not an international phone number,\n // then either extract an \"IDD\" prefix, or extract a\n // country calling code from a number by autocorrecting it\n // by prepending a leading `+` in cases when it starts\n // with the country calling code.\n // https://wikitravel.org/en/International_dialling_prefix\n // https://github.com/catamphetamine/libphonenumber-js/issues/376\n\n\n if (number[0] !== '+') {\n // Convert an \"out-of-country\" dialing phone number\n // to a proper international phone number.\n var numberWithoutIDD = stripIDDPrefix(number, country, callingCode, metadata); // If an IDD prefix was stripped then\n // convert the number to international one\n // for subsequent parsing.\n\n if (numberWithoutIDD && numberWithoutIDD !== number) {\n number = '+' + numberWithoutIDD;\n } else {\n // Check to see if the number starts with the country calling code\n // for the default country. If so, we remove the country calling code,\n // and do some checks on the validity of the number before and after.\n // https://github.com/catamphetamine/libphonenumber-js/issues/376\n if (country || callingCode) {\n var _extractCountryCallin2 = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, callingCode, metadata),\n countryCallingCode = _extractCountryCallin2.countryCallingCode,\n shorterNumber = _extractCountryCallin2.number;\n\n if (countryCallingCode) {\n return {\n countryCallingCode: countryCallingCode,\n number: shorterNumber\n };\n }\n }\n\n return {\n number: number\n };\n }\n } // Fast abortion: country codes do not begin with a '0'\n\n\n if (number[1] === '0') {\n return {};\n }\n\n metadata = new Metadata(metadata); // The thing with country phone codes\n // is that they are orthogonal to each other\n // i.e. there's no such country phone code A\n // for which country phone code B exists\n // where B starts with A.\n // Therefore, while scanning digits,\n // if a valid country code is found,\n // that means that it is the country code.\n //\n\n var i = 2;\n\n while (i - 1 <= MAX_LENGTH_COUNTRY_CODE && i <= number.length) {\n var _countryCallingCode = number.slice(1, i);\n\n if (metadata.hasCallingCode(_countryCallingCode)) {\n metadata.selectNumberingPlan(undefined, _countryCallingCode);\n return {\n countryCallingCode: _countryCallingCode,\n number: number.slice(i)\n };\n }\n\n i++;\n }\n\n return {};\n}\n/**\r\n * Sometimes some people incorrectly input international phone numbers\r\n * without the leading `+`. This function corrects such input.\r\n * @param {string} number — Phone number digits.\r\n * @param {string?} country\r\n * @param {string?} callingCode\r\n * @param {object} metadata\r\n * @return {object} `{ countryCallingCode: string?, number: string }`.\r\n */\n\nexport function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, callingCode, metadata) {\n var countryCallingCode = country ? getCountryCallingCode(country, metadata) : callingCode;\n\n if (number.indexOf(countryCallingCode) === 0) {\n metadata = new Metadata(metadata);\n metadata.selectNumberingPlan(country, callingCode);\n var possibleShorterNumber = number.slice(countryCallingCode.length);\n\n var _stripNationalPrefixA3 = stripNationalPrefixAndCarrierCode(possibleShorterNumber, metadata),\n possibleShorterNationalNumber = _stripNationalPrefixA3.nationalNumber;\n\n var _stripNationalPrefixA4 = stripNationalPrefixAndCarrierCode(number, metadata),\n nationalNumber = _stripNationalPrefixA4.nationalNumber; // If the number was not valid before but is valid now,\n // or if it was too long before, we consider the number\n // with the country calling code stripped to be a better result\n // and keep that instead.\n // For example, in Germany (+49), `49` is a valid area code,\n // so if a number starts with `49`, it could be both a valid\n // national German number or an international number without\n // a leading `+`.\n\n\n if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) && matchesEntirely(possibleShorterNationalNumber, metadata.nationalNumberPattern()) || checkNumberLengthForType(nationalNumber, undefined, metadata) === 'TOO_LONG') {\n return {\n countryCallingCode: countryCallingCode,\n number: possibleShorterNumber\n };\n }\n }\n\n return {\n number: number\n };\n}","function _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nimport parseNumber from './parse_';\nexport default function parsePhoneNumber(text, options, metadata) {\n return parseNumber(text, _objectSpread({}, options, {\n v2: true\n }), metadata);\n}","function _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nfunction _iterableToArrayLimit(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nimport parsePhoneNumber_ from './parsePhoneNumber_';\nexport default function parsePhoneNumber() {\n var _normalizeArguments = normalizeArguments(arguments),\n text = _normalizeArguments.text,\n options = _normalizeArguments.options,\n metadata = _normalizeArguments.metadata;\n\n return parsePhoneNumber_(text, options, metadata);\n}\nexport function normalizeArguments(args) {\n var _Array$prototype$slic = Array.prototype.slice.call(args),\n _Array$prototype$slic2 = _slicedToArray(_Array$prototype$slic, 4),\n arg_1 = _Array$prototype$slic2[0],\n arg_2 = _Array$prototype$slic2[1],\n arg_3 = _Array$prototype$slic2[2],\n arg_4 = _Array$prototype$slic2[3];\n\n var text;\n var options;\n var metadata; // If the phone number is passed as a string.\n // `parsePhoneNumber('88005553535', ...)`.\n\n if (typeof arg_1 === 'string') {\n text = arg_1;\n } else throw new TypeError('A text for parsing must be a string.'); // If \"default country\" argument is being passed then move it to `options`.\n // `parsePhoneNumber('88005553535', 'RU', [options], metadata)`.\n\n\n if (!arg_2 || typeof arg_2 === 'string') {\n if (arg_4) {\n options = arg_3;\n metadata = arg_4;\n } else {\n options = undefined;\n metadata = arg_3;\n }\n\n if (arg_2) {\n options = _objectSpread({\n defaultCountry: arg_2\n }, options);\n }\n } // `defaultCountry` is not passed.\n // Example: `parsePhoneNumber('+78005553535', [options], metadata)`.\n else if (isObject(arg_2)) {\n if (arg_3) {\n options = arg_2;\n metadata = arg_3;\n } else {\n metadata = arg_2;\n }\n } else throw new Error(\"Invalid second argument: \".concat(arg_2));\n\n return {\n text: text,\n options: options,\n metadata: metadata\n };\n} // Otherwise istanbul would show this as \"branch not covered\".\n\n/* istanbul ignore next */\n\nvar isObject = function isObject(_) {\n return _typeof(_) === 'object';\n};","function _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nimport parsePhoneNumber from './parsePhoneNumber_';\nimport ParseError from './ParseError';\nimport { isSupportedCountry } from './metadata';\nexport default function parsePhoneNumberFromString(text, options, metadata) {\n // Validate `defaultCountry`.\n if (options && options.defaultCountry && !isSupportedCountry(options.defaultCountry, metadata)) {\n options = _objectSpread({}, options, {\n defaultCountry: undefined\n });\n } // Parse phone number.\n\n\n try {\n return parsePhoneNumber(text, options, metadata);\n } catch (error) {\n /* istanbul ignore else */\n if (error instanceof ParseError) {//\n } else {\n throw error;\n }\n }\n}","import { normalizeArguments } from './parsePhoneNumber';\nimport parsePhoneNumberFromString_ from './parsePhoneNumberFromString_';\nexport default function parsePhoneNumberFromString() {\n var _normalizeArguments = normalizeArguments(arguments),\n text = _normalizeArguments.text,\n options = _normalizeArguments.options,\n metadata = _normalizeArguments.metadata;\n\n return parsePhoneNumberFromString_(text, options, metadata);\n}","/** Returns a regular expression quantifier with an upper and lower limit. */\nexport function limit(lower, upper) {\n if (lower < 0 || upper <= 0 || upper < lower) {\n throw new TypeError();\n }\n\n return \"{\".concat(lower, \",\").concat(upper, \"}\");\n}\n/**\r\n * Trims away any characters after the first match of {@code pattern} in {@code candidate},\r\n * returning the trimmed version.\r\n */\n\nexport function trimAfterFirstMatch(regexp, string) {\n var index = string.search(regexp);\n\n if (index >= 0) {\n return string.slice(0, index);\n }\n\n return string;\n}\nexport function startsWith(string, substring) {\n return string.indexOf(substring) === 0;\n}\nexport function endsWith(string, substring) {\n return string.indexOf(substring, string.length - substring.length) === string.length - substring.length;\n}","import { trimAfterFirstMatch } from './util'; // Regular expression of characters typically used to start a second phone number for the purposes\n// of parsing. This allows us to strip off parts of the number that are actually the start of\n// another number, such as for: (530) 583-6985 x302/x2303 -> the second extension here makes this\n// actually two phone numbers, (530) 583-6985 x302 and (530) 583-6985 x2303. We remove the second\n// extension so that the first number is parsed correctly.\n//\n// Matches a slash (\\ or /) followed by a space followed by an `x`.\n//\n\nvar SECOND_NUMBER_START_PATTERN = /[\\\\/] *x/;\nexport default function parsePreCandidate(candidate) {\n // Check for extra numbers at the end.\n // TODO: This is the place to start when trying to support extraction of multiple phone number\n // from split notations (+41 79 123 45 67 / 68).\n return trimAfterFirstMatch(SECOND_NUMBER_START_PATTERN, candidate);\n}","// Matches strings that look like dates using \"/\" as a separator.\n// Examples: 3/10/2011, 31/10/96 or 08/31/95.\nvar SLASH_SEPARATED_DATES = /(?:(?:[0-3]?\\d\\/[01]?\\d)|(?:[01]?\\d\\/[0-3]?\\d))\\/(?:[12]\\d)?\\d{2}/; // Matches timestamps.\n// Examples: \"2012-01-02 08:00\".\n// Note that the reg-ex does not include the\n// trailing \":\\d\\d\" -- that is covered by TIME_STAMPS_SUFFIX.\n\nvar TIME_STAMPS = /[12]\\d{3}[-/]?[01]\\d[-/]?[0-3]\\d +[0-2]\\d$/;\nvar TIME_STAMPS_SUFFIX_LEADING = /^:[0-5]\\d/;\nexport default function isValidPreCandidate(candidate, offset, text) {\n // Skip a match that is more likely to be a date.\n if (SLASH_SEPARATED_DATES.test(candidate)) {\n return false;\n } // Skip potential time-stamps.\n\n\n if (TIME_STAMPS.test(candidate)) {\n var followingText = text.slice(offset + candidate.length);\n\n if (TIME_STAMPS_SUFFIX_LEADING.test(followingText)) {\n return false;\n }\n }\n\n return true;\n}","// Javascript doesn't support UTF-8 regular expressions.\n// So mimicking them here.\n// Copy-pasted from `PhoneNumberMatcher.js`.\n\n/**\r\n * \"\\p{Z}\" is any kind of whitespace or invisible separator (\"Separator\").\r\n * http://www.regular-expressions.info/unicode.html\r\n * \"\\P{Z}\" is the reverse of \"\\p{Z}\".\r\n * \"\\p{N}\" is any kind of numeric character in any script (\"Number\").\r\n * \"\\p{Nd}\" is a digit zero through nine in any script except \"ideographic scripts\" (\"Decimal_Digit_Number\").\r\n * \"\\p{Sc}\" is a currency symbol (\"Currency_Symbol\").\r\n * \"\\p{L}\" is any kind of letter from any language (\"Letter\").\r\n * \"\\p{Mn}\" is \"non-spacing mark\".\r\n *\r\n * Javascript doesn't support Unicode Regular Expressions\r\n * so substituting it with this explicit set of characters.\r\n *\r\n * https://stackoverflow.com/questions/13210194/javascript-regex-equivalent-of-a-za-z-using-pl\r\n * https://github.com/danielberndt/babel-plugin-utf-8-regex/blob/master/src/transformer.js\r\n */\nvar _pZ = \" \\xA0\\u1680\\u180E\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\";\nexport var pZ = \"[\".concat(_pZ, \"]\");\nexport var PZ = \"[^\".concat(_pZ, \"]\");\nexport var _pN = \"0-9\\xB2\\xB3\\xB9\\xBC-\\xBE\\u0660-\\u0669\\u06F0-\\u06F9\\u07C0-\\u07C9\\u0966-\\u096F\\u09E6-\\u09EF\\u09F4-\\u09F9\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0B72-\\u0B77\\u0BE6-\\u0BF2\\u0C66-\\u0C6F\\u0C78-\\u0C7E\\u0CE6-\\u0CEF\\u0D66-\\u0D75\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F33\\u1040-\\u1049\\u1090-\\u1099\\u1369-\\u137C\\u16EE-\\u16F0\\u17E0-\\u17E9\\u17F0-\\u17F9\\u1810-\\u1819\\u1946-\\u194F\\u19D0-\\u19DA\\u1A80-\\u1A89\\u1A90-\\u1A99\\u1B50-\\u1B59\\u1BB0-\\u1BB9\\u1C40-\\u1C49\\u1C50-\\u1C59\\u2070\\u2074-\\u2079\\u2080-\\u2089\\u2150-\\u2182\\u2185-\\u2189\\u2460-\\u249B\\u24EA-\\u24FF\\u2776-\\u2793\\u2CFD\\u3007\\u3021-\\u3029\\u3038-\\u303A\\u3192-\\u3195\\u3220-\\u3229\\u3248-\\u324F\\u3251-\\u325F\\u3280-\\u3289\\u32B1-\\u32BF\\uA620-\\uA629\\uA6E6-\\uA6EF\\uA830-\\uA835\\uA8D0-\\uA8D9\\uA900-\\uA909\\uA9D0-\\uA9D9\\uAA50-\\uAA59\\uABF0-\\uABF9\\uFF10-\\uFF19\"; // const pN = `[${_pN}]`\n\nvar _pNd = \"0-9\\u0660-\\u0669\\u06F0-\\u06F9\\u07C0-\\u07C9\\u0966-\\u096F\\u09E6-\\u09EF\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0BE6-\\u0BEF\\u0C66-\\u0C6F\\u0CE6-\\u0CEF\\u0D66-\\u0D6F\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F29\\u1040-\\u1049\\u1090-\\u1099\\u17E0-\\u17E9\\u1810-\\u1819\\u1946-\\u194F\\u19D0-\\u19D9\\u1A80-\\u1A89\\u1A90-\\u1A99\\u1B50-\\u1B59\\u1BB0-\\u1BB9\\u1C40-\\u1C49\\u1C50-\\u1C59\\uA620-\\uA629\\uA8D0-\\uA8D9\\uA900-\\uA909\\uA9D0-\\uA9D9\\uAA50-\\uAA59\\uABF0-\\uABF9\\uFF10-\\uFF19\";\nexport var pNd = \"[\".concat(_pNd, \"]\");\nexport var _pL = \"A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0\\u08A2-\\u08AC\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191C\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA697\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA793\\uA7A0-\\uA7AA\\uA7F8-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA80-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC\";\nvar pL = \"[\".concat(_pL, \"]\");\nvar pL_regexp = new RegExp(pL);\nvar _pSc = \"$\\xA2-\\xA5\\u058F\\u060B\\u09F2\\u09F3\\u09FB\\u0AF1\\u0BF9\\u0E3F\\u17DB\\u20A0-\\u20B9\\uA838\\uFDFC\\uFE69\\uFF04\\uFFE0\\uFFE1\\uFFE5\\uFFE6\";\nvar pSc = \"[\".concat(_pSc, \"]\");\nvar pSc_regexp = new RegExp(pSc);\nvar _pMn = \"\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u08E4-\\u08FE\\u0900-\\u0902\\u093A\\u093C\\u0941-\\u0948\\u094D\\u0951-\\u0957\\u0962\\u0963\\u0981\\u09BC\\u09C1-\\u09C4\\u09CD\\u09E2\\u09E3\\u0A01\\u0A02\\u0A3C\\u0A41\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81\\u0A82\\u0ABC\\u0AC1-\\u0AC5\\u0AC7\\u0AC8\\u0ACD\\u0AE2\\u0AE3\\u0B01\\u0B3C\\u0B3F\\u0B41-\\u0B44\\u0B4D\\u0B56\\u0B62\\u0B63\\u0B82\\u0BC0\\u0BCD\\u0C3E-\\u0C40\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0CBC\\u0CBF\\u0CC6\\u0CCC\\u0CCD\\u0CE2\\u0CE3\\u0D41-\\u0D44\\u0D4D\\u0D62\\u0D63\\u0DCA\\u0DD2-\\u0DD4\\u0DD6\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F71-\\u0F7E\\u0F80-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1030\\u1032-\\u1037\\u1039\\u103A\\u103D\\u103E\\u1058\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108D\\u109D\\u135D-\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4\\u17B5\\u17B7-\\u17BD\\u17C6\\u17C9-\\u17D3\\u17DD\\u180B-\\u180D\\u18A9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193B\\u1A17\\u1A18\\u1A56\\u1A58-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A6C\\u1A73-\\u1A7C\\u1A7F\\u1B00-\\u1B03\\u1B34\\u1B36-\\u1B3A\\u1B3C\\u1B42\\u1B6B-\\u1B73\\u1B80\\u1B81\\u1BA2-\\u1BA5\\u1BA8\\u1BA9\\u1BAB\\u1BE6\\u1BE8\\u1BE9\\u1BED\\u1BEF-\\u1BF1\\u1C2C-\\u1C33\\u1C36\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE0\\u1CE2-\\u1CE8\\u1CED\\u1CF4\\u1DC0-\\u1DE6\\u1DFC-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302D\\u3099\\u309A\\uA66F\\uA674-\\uA67D\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA825\\uA826\\uA8C4\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA951\\uA980-\\uA982\\uA9B3\\uA9B6-\\uA9B9\\uA9BC\\uAA29-\\uAA2E\\uAA31\\uAA32\\uAA35\\uAA36\\uAA43\\uAA4C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEC\\uAAED\\uAAF6\\uABE5\\uABE8\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE26\";\nvar pMn = \"[\".concat(_pMn, \"]\");\nvar pMn_regexp = new RegExp(pMn);\nvar _InBasic_Latin = \"\\0-\\x7F\";\nvar _InLatin_1_Supplement = \"\\x80-\\xFF\";\nvar _InLatin_Extended_A = \"\\u0100-\\u017F\";\nvar _InLatin_Extended_Additional = \"\\u1E00-\\u1EFF\";\nvar _InLatin_Extended_B = \"\\u0180-\\u024F\";\nvar _InCombining_Diacritical_Marks = \"\\u0300-\\u036F\";\nvar latinLetterRegexp = new RegExp('[' + _InBasic_Latin + _InLatin_1_Supplement + _InLatin_Extended_A + _InLatin_Extended_Additional + _InLatin_Extended_B + _InCombining_Diacritical_Marks + ']');\n/**\r\n * Helper method to determine if a character is a Latin-script letter or not.\r\n * For our purposes, combining marks should also return true since we assume\r\n * they have been added to a preceding Latin character.\r\n */\n\nexport function isLatinLetter(letter) {\n // Combining marks are a subset of non-spacing-mark.\n if (!pL_regexp.test(letter) && !pMn_regexp.test(letter)) {\n return false;\n }\n\n return latinLetterRegexp.test(letter);\n}\nexport function isInvalidPunctuationSymbol(character) {\n return character === '%' || pSc_regexp.test(character);\n}","// Copy-pasted from `PhoneNumberMatcher.js`.\nimport { PLUS_CHARS } from '../constants';\nimport { limit } from './util';\nimport { isLatinLetter, isInvalidPunctuationSymbol } from './utf-8';\nvar OPENING_PARENS = \"(\\\\[\\uFF08\\uFF3B\";\nvar CLOSING_PARENS = \")\\\\]\\uFF09\\uFF3D\";\nvar NON_PARENS = \"[^\".concat(OPENING_PARENS).concat(CLOSING_PARENS, \"]\");\nexport var LEAD_CLASS = \"[\".concat(OPENING_PARENS).concat(PLUS_CHARS, \"]\"); // Punctuation that may be at the start of a phone number - brackets and plus signs.\n\nvar LEAD_CLASS_LEADING = new RegExp('^' + LEAD_CLASS); // Limit on the number of pairs of brackets in a phone number.\n\nvar BRACKET_PAIR_LIMIT = limit(0, 3);\n/**\r\n * Pattern to check that brackets match. Opening brackets should be closed within a phone number.\r\n * This also checks that there is something inside the brackets. Having no brackets at all is also\r\n * fine.\r\n *\r\n * An opening bracket at the beginning may not be closed, but subsequent ones should be. It's\r\n * also possible that the leading bracket was dropped, so we shouldn't be surprised if we see a\r\n * closing bracket first. We limit the sets of brackets in a phone number to four.\r\n */\n\nvar MATCHING_BRACKETS_ENTIRE = new RegExp('^' + \"(?:[\" + OPENING_PARENS + \"])?\" + \"(?:\" + NON_PARENS + \"+\" + \"[\" + CLOSING_PARENS + \"])?\" + NON_PARENS + \"+\" + \"(?:[\" + OPENING_PARENS + \"]\" + NON_PARENS + \"+[\" + CLOSING_PARENS + \"])\" + BRACKET_PAIR_LIMIT + NON_PARENS + \"*\" + '$');\n/**\r\n * Matches strings that look like publication pages. Example:\r\n *
Computing Complete Answers to Queries in the Presence of Limited Access Patterns.\r\n * Chen Li. VLDB J. 12(3): 211-227 (2003).
\r\n *\r\n * The string \"211-227 (2003)\" is not a telephone number.\r\n */\n\nvar PUB_PAGES = /\\d{1,5}-+\\d{1,5}\\s{0,4}\\(\\d{1,4}/;\nexport default function isValidCandidate(candidate, offset, text, leniency) {\n // Check the candidate doesn't contain any formatting\n // which would indicate that it really isn't a phone number.\n if (!MATCHING_BRACKETS_ENTIRE.test(candidate) || PUB_PAGES.test(candidate)) {\n return;\n } // If leniency is set to VALID or stricter, we also want to skip numbers that are surrounded\n // by Latin alphabetic characters, to skip cases like abc8005001234 or 8005001234def.\n\n\n if (leniency !== 'POSSIBLE') {\n // If the candidate is not at the start of the text,\n // and does not start with phone-number punctuation,\n // check the previous character.\n if (offset > 0 && !LEAD_CLASS_LEADING.test(candidate)) {\n var previousChar = text[offset - 1]; // We return null if it is a latin letter or an invalid punctuation symbol.\n\n if (isInvalidPunctuationSymbol(previousChar) || isLatinLetter(previousChar)) {\n return false;\n }\n }\n\n var lastCharIndex = offset + candidate.length;\n\n if (lastCharIndex < text.length) {\n var nextChar = text[lastCharIndex];\n\n if (isInvalidPunctuationSymbol(nextChar) || isLatinLetter(nextChar)) {\n return false;\n }\n }\n }\n\n return true;\n}","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n} // This is a legacy function.\n// Use `findNumbers()` instead.\n\n\nimport { PLUS_CHARS, VALID_PUNCTUATION, VALID_DIGITS, WHITESPACE } from './constants';\nimport { EXTN_PATTERNS_FOR_PARSING } from './extension';\nimport parse from './parse_';\nimport parsePreCandidate from './findNumbers/parsePreCandidate';\nimport isValidPreCandidate from './findNumbers/isValidPreCandidate';\nimport isValidCandidate from './findNumbers/isValidCandidate'; // Copy-pasted from `./parse.js`.\n\nvar VALID_PHONE_NUMBER = '[' + PLUS_CHARS + ']{0,1}' + '(?:' + '[' + VALID_PUNCTUATION + ']*' + '[' + VALID_DIGITS + ']' + '){3,}' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']*';\nvar WHITESPACE_IN_THE_BEGINNING_PATTERN = new RegExp('^[' + WHITESPACE + ']+');\nvar PUNCTUATION_IN_THE_END_PATTERN = new RegExp('[' + VALID_PUNCTUATION + ']+$'); // // Regular expression for getting opening brackets for a valid number\n// // found using `PHONE_NUMBER_START_PATTERN` for prepending those brackets to the number.\n// const BEFORE_NUMBER_DIGITS_PUNCTUATION = new RegExp('[' + OPENING_BRACKETS + ']+' + '[' + WHITESPACE + ']*' + '$')\n\nvar VALID_PRECEDING_CHARACTER_PATTERN = /[^a-zA-Z0-9]/;\nexport default function findPhoneNumbers(text, options, metadata) {\n /* istanbul ignore if */\n if (options === undefined) {\n options = {};\n }\n\n var search = new PhoneNumberSearch(text, options, metadata);\n var phones = [];\n\n while (search.hasNext()) {\n phones.push(search.next());\n }\n\n return phones;\n}\n/**\r\n * @return ES6 `for ... of` iterator.\r\n */\n\nexport function searchPhoneNumbers(text, options, metadata) {\n /* istanbul ignore if */\n if (options === undefined) {\n options = {};\n }\n\n var search = new PhoneNumberSearch(text, options, metadata);\n return _defineProperty({}, Symbol.iterator, function () {\n return {\n next: function next() {\n if (search.hasNext()) {\n return {\n done: false,\n value: search.next()\n };\n }\n\n return {\n done: true\n };\n }\n };\n });\n}\n/**\r\n * Extracts a parseable phone number including any opening brackets, etc.\r\n * @param {string} text - Input.\r\n * @return {object} `{ ?number, ?startsAt, ?endsAt }`.\r\n */\n\nexport var PhoneNumberSearch = /*#__PURE__*/function () {\n // Iteration tristate.\n function PhoneNumberSearch(text, options, metadata) {\n _classCallCheck(this, PhoneNumberSearch);\n\n _defineProperty(this, \"state\", 'NOT_READY');\n\n this.text = text; // If assigning the `{}` default value is moved to the arguments above,\n // code coverage would decrease for some weird reason.\n\n this.options = options || {};\n this.metadata = metadata;\n this.regexp = new RegExp(VALID_PHONE_NUMBER + // Phone number extensions\n '(?:' + EXTN_PATTERNS_FOR_PARSING + ')?', 'ig'); // this.searching_from = 0\n }\n\n _createClass(PhoneNumberSearch, [{\n key: \"find\",\n value: function find() {\n var matches = this.regexp.exec(this.text);\n\n if (!matches) {\n return;\n }\n\n var number = matches[0];\n var startsAt = matches.index;\n number = number.replace(WHITESPACE_IN_THE_BEGINNING_PATTERN, '');\n startsAt += matches[0].length - number.length; // Fixes not parsing numbers with whitespace in the end.\n // Also fixes not parsing numbers with opening parentheses in the end.\n // https://github.com/catamphetamine/libphonenumber-js/issues/252\n\n number = number.replace(PUNCTUATION_IN_THE_END_PATTERN, '');\n number = parsePreCandidate(number);\n var result = this.parseCandidate(number, startsAt);\n\n if (result) {\n return result;\n } // Tail recursion.\n // Try the next one if this one is not a valid phone number.\n\n\n return this.find();\n }\n }, {\n key: \"parseCandidate\",\n value: function parseCandidate(number, startsAt) {\n if (!isValidPreCandidate(number, startsAt, this.text)) {\n return;\n } // Don't parse phone numbers which are non-phone numbers\n // due to being part of something else (e.g. a UUID).\n // https://github.com/catamphetamine/libphonenumber-js/issues/213\n // Copy-pasted from Google's `PhoneNumberMatcher.js` (`.parseAndValidate()`).\n\n\n if (!isValidCandidate(number, startsAt, this.text, this.options.extended ? 'POSSIBLE' : 'VALID')) {\n return;\n } // // Prepend any opening brackets left behind by the\n // // `PHONE_NUMBER_START_PATTERN` regexp.\n // const text_before_number = text.slice(this.searching_from, startsAt)\n // const full_number_starts_at = text_before_number.search(BEFORE_NUMBER_DIGITS_PUNCTUATION)\n // if (full_number_starts_at >= 0)\n // {\n // \tnumber = text_before_number.slice(full_number_starts_at) + number\n // \tstartsAt = full_number_starts_at\n // }\n //\n // this.searching_from = matches.lastIndex\n\n\n var result = parse(number, this.options, this.metadata);\n\n if (!result.phone) {\n return;\n }\n\n result.startsAt = startsAt;\n result.endsAt = startsAt + number.length;\n return result;\n }\n }, {\n key: \"hasNext\",\n value: function hasNext() {\n if (this.state === 'NOT_READY') {\n this.last_match = this.find();\n\n if (this.last_match) {\n this.state = 'READY';\n } else {\n this.state = 'DONE';\n }\n }\n\n return this.state === 'READY';\n }\n }, {\n key: \"next\",\n value: function next() {\n // Check the state and find the next match as a side-effect if necessary.\n if (!this.hasNext()) {\n throw new Error('No next element');\n } // Don't retain that memory any longer than necessary.\n\n\n var result = this.last_match;\n this.last_match = null;\n this.state = 'NOT_READY';\n return result;\n }\n }]);\n\n return PhoneNumberSearch;\n}();","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n} // https://medium.com/dsinjs/implementing-lru-cache-in-javascript-94ba6755cda9\n\n\nvar Node = function Node(key, value) {\n var next = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var prev = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;\n\n _classCallCheck(this, Node);\n\n this.key = key;\n this.value = value;\n this.next = next;\n this.prev = prev;\n};\n\nvar LRUCache = /*#__PURE__*/function () {\n //set default limit of 10 if limit is not passed.\n function LRUCache() {\n var limit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 10;\n\n _classCallCheck(this, LRUCache);\n\n this.size = 0;\n this.limit = limit;\n this.head = null;\n this.tail = null;\n this.cache = {};\n } // Write Node to head of LinkedList\n // update cache with Node key and Node reference\n\n\n _createClass(LRUCache, [{\n key: \"put\",\n value: function put(key, value) {\n this.ensureLimit();\n\n if (!this.head) {\n this.head = this.tail = new Node(key, value);\n } else {\n var node = new Node(key, value, this.head);\n this.head.prev = node;\n this.head = node;\n } //Update the cache map\n\n\n this.cache[key] = this.head;\n this.size++;\n } // Read from cache map and make that node as new Head of LinkedList\n\n }, {\n key: \"get\",\n value: function get(key) {\n if (this.cache[key]) {\n var value = this.cache[key].value; // node removed from it's position and cache\n\n this.remove(key); // write node again to the head of LinkedList to make it most recently used\n\n this.put(key, value);\n return value;\n }\n\n console.log(\"Item not available in cache for key \".concat(key));\n }\n }, {\n key: \"ensureLimit\",\n value: function ensureLimit() {\n if (this.size === this.limit) {\n this.remove(this.tail.key);\n }\n }\n }, {\n key: \"remove\",\n value: function remove(key) {\n var node = this.cache[key];\n\n if (node.prev !== null) {\n node.prev.next = node.next;\n } else {\n this.head = node.next;\n }\n\n if (node.next !== null) {\n node.next.prev = node.prev;\n } else {\n this.tail = node.prev;\n }\n\n delete this.cache[key];\n this.size--;\n }\n }, {\n key: \"clear\",\n value: function clear() {\n this.head = null;\n this.tail = null;\n this.size = 0;\n this.cache = {};\n } // // Invokes the callback function with every node of the chain and the index of the node.\n // forEach(fn) {\n // let node = this.head;\n // let counter = 0;\n // while (node) {\n // fn(node, counter);\n // node = node.next;\n // counter++;\n // }\n // }\n // // To iterate over LRU with a 'for...of' loop\n // *[Symbol.iterator]() {\n // let node = this.head;\n // while (node) {\n // yield node;\n // node = node.next;\n // }\n // }\n\n }]);\n\n return LRUCache;\n}();\n\nexport { LRUCache as default };","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nimport LRUCache from './LRUCache'; // A cache for frequently used country-specific regular expressions. Set to 32 to cover ~2-3\n// countries being used for the same doc with ~10 patterns for each country. Some pages will have\n// a lot more countries in use, but typically fewer numbers for each so expanding the cache for\n// that use-case won't have a lot of benefit.\n\nvar RegExpCache = /*#__PURE__*/function () {\n function RegExpCache(size) {\n _classCallCheck(this, RegExpCache);\n\n this.cache = new LRUCache(size);\n }\n\n _createClass(RegExpCache, [{\n key: \"getPatternForRegExp\",\n value: function getPatternForRegExp(pattern) {\n var regExp = this.cache.get(pattern);\n\n if (!regExp) {\n regExp = new RegExp('^' + pattern);\n this.cache.put(pattern, regExp);\n }\n\n return regExp;\n }\n }]);\n\n return RegExpCache;\n}();\n\nexport { RegExpCache as default };","import isValidNumber from '../validate_';\nimport parseDigits from '../parseDigits';\nimport { startsWith, endsWith } from './util';\n/**\r\n * Leniency when finding potential phone numbers in text segments\r\n * The levels here are ordered in increasing strictness.\r\n */\n\nexport default {\n /**\r\n * Phone numbers accepted are \"possible\", but not necessarily \"valid\".\r\n */\n POSSIBLE: function POSSIBLE(number, candidate, metadata) {\n return true;\n },\n\n /**\r\n * Phone numbers accepted are \"possible\" and \"valid\".\r\n * Numbers written in national format must have their national-prefix\r\n * present if it is usually written for a number of this type.\r\n */\n VALID: function VALID(number, candidate, metadata) {\n if (!isValidNumber(number, undefined, metadata) || !containsOnlyValidXChars(number, candidate.toString(), metadata)) {\n return false;\n } // Skipped for simplicity.\n // return isNationalPrefixPresentIfRequired(number, metadata)\n\n\n return true;\n },\n\n /**\r\n * Phone numbers accepted are \"valid\" and\r\n * are grouped in a possible way for this locale. For example, a US number written as\r\n * \"65 02 53 00 00\" and \"650253 0000\" are not accepted at this leniency level, whereas\r\n * \"650 253 0000\", \"650 2530000\" or \"6502530000\" are.\r\n * Numbers with more than one '/' symbol in the national significant number\r\n * are also dropped at this level.\r\n *\r\n * Warning: This level might result in lower coverage especially for regions outside of\r\n * country code \"+1\". If you are not sure about which level to use,\r\n * email the discussion group libphonenumber-discuss@googlegroups.com.\r\n */\n STRICT_GROUPING: function STRICT_GROUPING(number, candidate, metadata, regExpCache) {\n var candidateString = candidate.toString();\n\n if (!isValidNumber(number, undefined, metadata) || !containsOnlyValidXChars(number, candidateString, metadata) || containsMoreThanOneSlashInNationalNumber(number, candidateString) || !isNationalPrefixPresentIfRequired(number, metadata)) {\n return false;\n }\n\n return checkNumberGroupingIsValid(number, candidate, metadata, allNumberGroupsRemainGrouped, regExpCache);\n },\n\n /**\r\n * Phone numbers accepted are {@linkplain PhoneNumberUtil#isValidNumber(PhoneNumber) valid} and\r\n * are grouped in the same way that we would have formatted it, or as a single block. For\r\n * example, a US number written as \"650 2530000\" is not accepted at this leniency level, whereas\r\n * \"650 253 0000\" or \"6502530000\" are.\r\n * Numbers with more than one '/' symbol are also dropped at this level.\r\n *

\r\n * Warning: This level might result in lower coverage especially for regions outside of country\r\n * code \"+1\". If you are not sure about which level to use, email the discussion group\r\n * libphonenumber-discuss@googlegroups.com.\r\n */\n EXACT_GROUPING: function EXACT_GROUPING(number, candidate, metadata, regExpCache) {\n var candidateString = candidate.toString();\n\n if (!isValidNumber(number, undefined, metadata) || !containsOnlyValidXChars(number, candidateString, metadata) || containsMoreThanOneSlashInNationalNumber(number, candidateString) || !isNationalPrefixPresentIfRequired(number, metadata)) {\n return false;\n }\n\n return checkNumberGroupingIsValid(number, candidate, metadata, allNumberGroupsAreExactlyPresent, regExpCache);\n }\n};\n\nfunction containsOnlyValidXChars(number, candidate, metadata) {\n // The characters 'x' and 'X' can be (1) a carrier code, in which case they always precede the\n // national significant number or (2) an extension sign, in which case they always precede the\n // extension number. We assume a carrier code is more than 1 digit, so the first case has to\n // have more than 1 consecutive 'x' or 'X', whereas the second case can only have exactly 1 'x'\n // or 'X'. We ignore the character if it appears as the last character of the string.\n for (var index = 0; index < candidate.length - 1; index++) {\n var charAtIndex = candidate.charAt(index);\n\n if (charAtIndex === 'x' || charAtIndex === 'X') {\n var charAtNextIndex = candidate.charAt(index + 1);\n\n if (charAtNextIndex === 'x' || charAtNextIndex === 'X') {\n // This is the carrier code case, in which the 'X's always precede the national\n // significant number.\n index++;\n\n if (util.isNumberMatch(number, candidate.substring(index)) != MatchType.NSN_MATCH) {\n return false;\n } // This is the extension sign case, in which the 'x' or 'X' should always precede the\n // extension number.\n\n } else if (parseDigits(candidate.substring(index)) !== number.ext) {\n return false;\n }\n }\n }\n\n return true;\n}\n\nfunction isNationalPrefixPresentIfRequired(number, _metadata) {\n // First, check how we deduced the country code. If it was written in international format, then\n // the national prefix is not required.\n if (number.getCountryCodeSource() != 'FROM_DEFAULT_COUNTRY') {\n return true;\n }\n\n var phoneNumberRegion = util.getRegionCodeForCountryCode(number.getCountryCode());\n var metadata = util.getMetadataForRegion(phoneNumberRegion);\n\n if (metadata == null) {\n return true;\n } // Check if a national prefix should be present when formatting this number.\n\n\n var nationalNumber = util.getNationalSignificantNumber(number);\n var formatRule = util.chooseFormattingPatternForNumber(metadata.numberFormats(), nationalNumber); // To do this, we check that a national prefix formatting rule was present\n // and that it wasn't just the first-group symbol ($1) with punctuation.\n\n if (formatRule && formatRule.getNationalPrefixFormattingRule().length > 0) {\n if (formatRule.getNationalPrefixOptionalWhenFormatting()) {\n // The national-prefix is optional in these cases, so we don't need to check if it was\n // present.\n return true;\n }\n\n if (PhoneNumberUtil.formattingRuleHasFirstGroupOnly(formatRule.getNationalPrefixFormattingRule())) {\n // National Prefix not needed for this number.\n return true;\n } // Normalize the remainder.\n\n\n var rawInputCopy = PhoneNumberUtil.normalizeDigitsOnly(number.getRawInput()); // Check if we found a national prefix and/or carrier code at the start of the raw input, and\n // return the result.\n\n return util.maybeStripNationalPrefixAndCarrierCode(rawInputCopy, metadata, null);\n }\n\n return true;\n}\n\nexport function containsMoreThanOneSlashInNationalNumber(number, candidate) {\n var firstSlashInBodyIndex = candidate.indexOf('/');\n\n if (firstSlashInBodyIndex < 0) {\n // No slashes, this is okay.\n return false;\n } // Now look for a second one.\n\n\n var secondSlashInBodyIndex = candidate.indexOf('/', firstSlashInBodyIndex + 1);\n\n if (secondSlashInBodyIndex < 0) {\n // Only one slash, this is okay.\n return false;\n } // If the first slash is after the country calling code, this is permitted.\n\n\n var candidateHasCountryCode = number.getCountryCodeSource() === CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN || number.getCountryCodeSource() === CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN;\n\n if (candidateHasCountryCode && PhoneNumberUtil.normalizeDigitsOnly(candidate.substring(0, firstSlashInBodyIndex)) === String(number.getCountryCode())) {\n // Any more slashes and this is illegal.\n return candidate.slice(secondSlashInBodyIndex + 1).indexOf('/') >= 0;\n }\n\n return true;\n}\n\nfunction checkNumberGroupingIsValid(number, candidate, metadata, checkGroups, regExpCache) {\n var normalizedCandidate = normalizeDigits(candidate, true\n /* keep non-digits */\n );\n var formattedNumberGroups = getNationalNumberGroups(metadata, number, null);\n\n if (checkGroups(metadata, number, normalizedCandidate, formattedNumberGroups)) {\n return true;\n } // If this didn't pass, see if there are any alternate formats that match, and try them instead.\n\n\n var alternateFormats = MetadataManager.getAlternateFormatsForCountry(number.getCountryCode());\n var nationalSignificantNumber = util.getNationalSignificantNumber(number);\n\n if (alternateFormats) {\n for (var _iterator = alternateFormats.numberFormats(), _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n var _ref;\n\n if (_isArray) {\n if (_i >= _iterator.length) break;\n _ref = _iterator[_i++];\n } else {\n _i = _iterator.next();\n if (_i.done) break;\n _ref = _i.value;\n }\n\n var alternateFormat = _ref;\n\n if (alternateFormat.leadingDigitsPatterns().length > 0) {\n // There is only one leading digits pattern for alternate formats.\n var leadingDigitsRegExp = regExpCache.getPatternForRegExp('^' + alternateFormat.leadingDigitsPatterns()[0]);\n\n if (!leadingDigitsRegExp.test(nationalSignificantNumber)) {\n // Leading digits don't match; try another one.\n continue;\n }\n }\n\n formattedNumberGroups = getNationalNumberGroups(metadata, number, alternateFormat);\n\n if (checkGroups(metadata, number, normalizedCandidate, formattedNumberGroups)) {\n return true;\n }\n }\n }\n\n return false;\n}\n/**\r\n * Helper method to get the national-number part of a number, formatted without any national\r\n * prefix, and return it as a set of digit blocks that would be formatted together following\r\n * standard formatting rules.\r\n */\n\n\nfunction getNationalNumberGroups(metadata, number, formattingPattern) {\n if (formattingPattern) {\n // We format the NSN only, and split that according to the separator.\n var nationalSignificantNumber = util.getNationalSignificantNumber(number);\n return util.formatNsnUsingPattern(nationalSignificantNumber, formattingPattern, 'RFC3966', metadata).split('-');\n } // This will be in the format +CC-DG1-DG2-DGX;ext=EXT where DG1..DGX represents groups of digits.\n\n\n var rfc3966Format = formatNumber(number, 'RFC3966', metadata); // We remove the extension part from the formatted string before splitting it into different\n // groups.\n\n var endIndex = rfc3966Format.indexOf(';');\n\n if (endIndex < 0) {\n endIndex = rfc3966Format.length;\n } // The country-code will have a '-' following it.\n\n\n var startIndex = rfc3966Format.indexOf('-') + 1;\n return rfc3966Format.slice(startIndex, endIndex).split('-');\n}\n\nfunction allNumberGroupsAreExactlyPresent(metadata, number, normalizedCandidate, formattedNumberGroups) {\n var candidateGroups = normalizedCandidate.split(NON_DIGITS_PATTERN); // Set this to the last group, skipping it if the number has an extension.\n\n var candidateNumberGroupIndex = number.hasExtension() ? candidateGroups.length - 2 : candidateGroups.length - 1; // First we check if the national significant number is formatted as a block.\n // We use contains and not equals, since the national significant number may be present with\n // a prefix such as a national number prefix, or the country code itself.\n\n if (candidateGroups.length == 1 || candidateGroups[candidateNumberGroupIndex].contains(util.getNationalSignificantNumber(number))) {\n return true;\n } // Starting from the end, go through in reverse, excluding the first group, and check the\n // candidate and number groups are the same.\n\n\n var formattedNumberGroupIndex = formattedNumberGroups.length - 1;\n\n while (formattedNumberGroupIndex > 0 && candidateNumberGroupIndex >= 0) {\n if (candidateGroups[candidateNumberGroupIndex] !== formattedNumberGroups[formattedNumberGroupIndex]) {\n return false;\n }\n\n formattedNumberGroupIndex--;\n candidateNumberGroupIndex--;\n } // Now check the first group. There may be a national prefix at the start, so we only check\n // that the candidate group ends with the formatted number group.\n\n\n return candidateNumberGroupIndex >= 0 && endsWith(candidateGroups[candidateNumberGroupIndex], formattedNumberGroups[0]);\n}\n\nfunction allNumberGroupsRemainGrouped(metadata, number, normalizedCandidate, formattedNumberGroups) {\n var fromIndex = 0;\n\n if (number.getCountryCodeSource() !== CountryCodeSource.FROM_DEFAULT_COUNTRY) {\n // First skip the country code if the normalized candidate contained it.\n var countryCode = String(number.getCountryCode());\n fromIndex = normalizedCandidate.indexOf(countryCode) + countryCode.length();\n } // Check each group of consecutive digits are not broken into separate groupings in the\n // {@code normalizedCandidate} string.\n\n\n for (var i = 0; i < formattedNumberGroups.length; i++) {\n // Fails if the substring of {@code normalizedCandidate} starting from {@code fromIndex}\n // doesn't contain the consecutive digits in formattedNumberGroups[i].\n fromIndex = normalizedCandidate.indexOf(formattedNumberGroups[i], fromIndex);\n\n if (fromIndex < 0) {\n return false;\n } // Moves {@code fromIndex} forward.\n\n\n fromIndex += formattedNumberGroups[i].length();\n\n if (i == 0 && fromIndex < normalizedCandidate.length()) {\n // We are at the position right after the NDC. We get the region used for formatting\n // information based on the country code in the phone number, rather than the number itself,\n // as we do not need to distinguish between different countries with the same country\n // calling code and this is faster.\n var region = util.getRegionCodeForCountryCode(number.getCountryCode());\n\n if (util.getNddPrefixForRegion(region, true) != null && Character.isDigit(normalizedCandidate.charAt(fromIndex))) {\n // This means there is no formatting symbol after the NDC. In this case, we only\n // accept the number if there is no formatting symbol at all in the number, except\n // for extensions. This is only important for countries with national prefixes.\n var nationalSignificantNumber = util.getNationalSignificantNumber(number);\n return startsWith(normalizedCandidate.slice(fromIndex - formattedNumberGroups[i].length), nationalSignificantNumber);\n }\n }\n } // The check here makes sure that we haven't mistakenly already used the extension to\n // match the last group of the subscriber number. Note the extension cannot have\n // formatting in-between digits.\n\n\n return normalizedCandidate.slice(fromIndex).contains(number.getExtension());\n}","function _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n/**\r\n * A port of Google's `PhoneNumberMatcher.java`.\r\n * https://github.com/googlei18n/libphonenumber/blob/master/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberMatcher.java\r\n * Date: 08.03.2018.\r\n */\n\n\nimport PhoneNumber from './PhoneNumber';\nimport { MAX_LENGTH_FOR_NSN, MAX_LENGTH_COUNTRY_CODE, VALID_PUNCTUATION } from './constants';\nimport { EXTN_PATTERNS_FOR_MATCHING } from './extension';\nimport RegExpCache from './findNumbers/RegExpCache';\nimport { limit, trimAfterFirstMatch } from './findNumbers/util';\nimport { _pL, _pN, pZ, PZ, pNd } from './findNumbers/utf-8';\nimport Leniency from './findNumbers/Leniency';\nimport parsePreCandidate from './findNumbers/parsePreCandidate';\nimport isValidPreCandidate from './findNumbers/isValidPreCandidate';\nimport isValidCandidate, { LEAD_CLASS } from './findNumbers/isValidCandidate';\nimport { isSupportedCountry } from './metadata';\nimport parseNumber from './parse_';\n/**\r\n * Patterns used to extract phone numbers from a larger phone-number-like pattern. These are\r\n * ordered according to specificity. For example, white-space is last since that is frequently\r\n * used in numbers, not just to separate two numbers. We have separate patterns since we don't\r\n * want to break up the phone-number-like text on more than one different kind of symbol at one\r\n * time, although symbols of the same type (e.g. space) can be safely grouped together.\r\n *\r\n * Note that if there is a match, we will always check any text found up to the first match as\r\n * well.\r\n */\n\nvar INNER_MATCHES = [// Breaks on the slash - e.g. \"651-234-2345/332-445-1234\"\n'\\\\/+(.*)/', // Note that the bracket here is inside the capturing group, since we consider it part of the\n// phone number. Will match a pattern like \"(650) 223 3345 (754) 223 3321\".\n'(\\\\([^(]*)', // Breaks on a hyphen - e.g. \"12345 - 332-445-1234 is my number.\"\n// We require a space on either side of the hyphen for it to be considered a separator.\n\"(?:\".concat(pZ, \"-|-\").concat(pZ, \")\").concat(pZ, \"*(.+)\"), // Various types of wide hyphens. Note we have decided not to enforce a space here, since it's\n// possible that it's supposed to be used to break two numbers without spaces, and we haven't\n// seen many instances of it used within a number.\n\"[\\u2012-\\u2015\\uFF0D]\".concat(pZ, \"*(.+)\"), // Breaks on a full stop - e.g. \"12345. 332-445-1234 is my number.\"\n\"\\\\.+\".concat(pZ, \"*([^.]+)\"), // Breaks on space - e.g. \"3324451234 8002341234\"\n\"\".concat(pZ, \"+(\").concat(PZ, \"+)\")]; // Limit on the number of leading (plus) characters.\n\nvar leadLimit = limit(0, 2); // Limit on the number of consecutive punctuation characters.\n\nvar punctuationLimit = limit(0, 4);\n/* The maximum number of digits allowed in a digit-separated block. As we allow all digits in a\r\n * single block, set high enough to accommodate the entire national number and the international\r\n * country code. */\n\nvar digitBlockLimit = MAX_LENGTH_FOR_NSN + MAX_LENGTH_COUNTRY_CODE; // Limit on the number of blocks separated by punctuation.\n// Uses digitBlockLimit since some formats use spaces to separate each digit.\n\nvar blockLimit = limit(0, digitBlockLimit);\n/* A punctuation sequence allowing white space. */\n\nvar punctuation = \"[\".concat(VALID_PUNCTUATION, \"]\") + punctuationLimit; // A digits block without punctuation.\n\nvar digitSequence = pNd + limit(1, digitBlockLimit);\n/**\r\n * Phone number pattern allowing optional punctuation.\r\n * The phone number pattern used by `find()`, similar to\r\n * VALID_PHONE_NUMBER, but with the following differences:\r\n *

    \r\n *
  • All captures are limited in order to place an upper bound to the text matched by the\r\n * pattern.\r\n *
      \r\n *
    • Leading punctuation / plus signs are limited.\r\n *
    • Consecutive occurrences of punctuation are limited.\r\n *
    • Number of digits is limited.\r\n *
    \r\n *
  • No whitespace is allowed at the start or end.\r\n *
  • No alpha digits (vanity numbers such as 1-800-SIX-FLAGS) are currently supported.\r\n *
\r\n */\n\nvar PATTERN = '(?:' + LEAD_CLASS + punctuation + ')' + leadLimit + digitSequence + '(?:' + punctuation + digitSequence + ')' + blockLimit + '(?:' + EXTN_PATTERNS_FOR_MATCHING + ')?'; // Regular expression of trailing characters that we want to remove.\n// We remove all characters that are not alpha or numerical characters.\n// The hash character is retained here, as it may signify\n// the previous block was an extension.\n//\n// // Don't know what does '&&' mean here.\n// const UNWANTED_END_CHAR_PATTERN = new RegExp(`[[\\\\P{N}&&\\\\P{L}]&&[^#]]+$`)\n//\n\nvar UNWANTED_END_CHAR_PATTERN = new RegExp(\"[^\".concat(_pN).concat(_pL, \"#]+$\"));\nvar NON_DIGITS_PATTERN = /(\\D+)/;\nvar MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1;\n/**\r\n * A stateful class that finds and extracts telephone numbers from {@linkplain CharSequence text}.\r\n * Instances can be created using the {@linkplain PhoneNumberUtil#findNumbers factory methods} in\r\n * {@link PhoneNumberUtil}.\r\n *\r\n *

Vanity numbers (phone numbers using alphabetic digits such as 1-800-SIX-FLAGS are\r\n * not found.\r\n *\r\n *

This class is not thread-safe.\r\n */\n\nvar PhoneNumberMatcher = /*#__PURE__*/function () {\n /** The iteration tristate. */\n\n /** The next index to start searching at. Undefined in {@link State#DONE}. */\n // A cache for frequently used country-specific regular expressions. Set to 32 to cover ~2-3\n // countries being used for the same doc with ~10 patterns for each country. Some pages will have\n // a lot more countries in use, but typically fewer numbers for each so expanding the cache for\n // that use-case won't have a lot of benefit.\n\n /**\r\n * Creates a new instance. See the factory methods in {@link PhoneNumberUtil} on how to obtain a\r\n * new instance.\r\n *\r\n * @param util the phone number util to use\r\n * @param text the character sequence that we will search, null for no text\r\n * @param country the country to assume for phone numbers not written in international format\r\n * (with a leading plus, or with the international dialing prefix of the specified region).\r\n * May be null or \"ZZ\" if only numbers with a leading plus should be\r\n * considered.\r\n * @param leniency the leniency to use when evaluating candidate phone numbers\r\n * @param maxTries the maximum number of invalid numbers to try before giving up on the text.\r\n * This is to cover degenerate cases where the text has a lot of false positives in it. Must\r\n * be {@code >= 0}.\r\n */\n function PhoneNumberMatcher() {\n var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var metadata = arguments.length > 2 ? arguments[2] : undefined;\n\n _classCallCheck(this, PhoneNumberMatcher);\n\n _defineProperty(this, \"state\", 'NOT_READY');\n\n _defineProperty(this, \"searchIndex\", 0);\n\n _defineProperty(this, \"regExpCache\", new RegExpCache(32));\n\n options = _objectSpread({}, options, {\n defaultCallingCode: options.defaultCallingCode,\n defaultCountry: options.defaultCountry && isSupportedCountry(options.defaultCountry, metadata) ? options.defaultCountry : undefined,\n leniency: options.leniency || options.extended ? 'POSSIBLE' : 'VALID',\n maxTries: options.maxTries || MAX_SAFE_INTEGER\n });\n\n if (!options.leniency) {\n throw new TypeError('`Leniency` not supplied');\n }\n\n if (options.maxTries < 0) {\n throw new TypeError('`maxTries` not supplied');\n }\n\n this.text = text;\n this.options = options;\n this.metadata = metadata;\n /** The degree of validation requested. */\n\n this.leniency = Leniency[options.leniency];\n\n if (!this.leniency) {\n throw new TypeError(\"Unknown leniency: \".concat(options.leniency, \".\"));\n }\n /** The maximum number of retries after matching an invalid number. */\n\n\n this.maxTries = options.maxTries;\n this.PATTERN = new RegExp(PATTERN, 'ig');\n }\n /**\r\n * Attempts to find the next subsequence in the searched sequence on or after {@code searchIndex}\r\n * that represents a phone number. Returns the next match, null if none was found.\r\n *\r\n * @param index the search index to start searching at\r\n * @return the phone number match found, null if none can be found\r\n */\n\n\n _createClass(PhoneNumberMatcher, [{\n key: \"find\",\n value: function find() // (index)\n {\n // // Reset the regular expression.\n // this.PATTERN.lastIndex = index\n var matches;\n\n while (this.maxTries > 0 && (matches = this.PATTERN.exec(this.text)) !== null) {\n var candidate = matches[0];\n var offset = matches.index;\n candidate = parsePreCandidate(candidate);\n\n if (isValidPreCandidate(candidate, offset, this.text)) {\n var match = // Try to come up with a valid match given the entire candidate.\n this.parseAndVerify(candidate, offset, this.text) // If that failed, try to find an \"inner match\" -\n // there might be a phone number within this candidate.\n || this.extractInnerMatch(candidate, offset, this.text);\n\n if (match) {\n if (this.options.v2) {\n var phoneNumber = new PhoneNumber(match.country || match.countryCallingCode, match.phone, this.metadata);\n\n if (match.ext) {\n phoneNumber.ext = match.ext;\n }\n\n return {\n startsAt: match.startsAt,\n endsAt: match.endsAt,\n number: phoneNumber\n };\n }\n\n return match;\n }\n }\n\n this.maxTries--;\n }\n }\n /**\r\n * Attempts to extract a match from `candidate`\r\n * if the whole candidate does not qualify as a match.\r\n */\n\n }, {\n key: \"extractInnerMatch\",\n value: function extractInnerMatch(candidate, offset, text) {\n for (var _i = 0, _INNER_MATCHES = INNER_MATCHES; _i < _INNER_MATCHES.length; _i++) {\n var innerMatchPattern = _INNER_MATCHES[_i];\n var isFirstMatch = true;\n var matches = void 0;\n var possibleInnerMatch = new RegExp(innerMatchPattern, 'g');\n\n while ((matches = possibleInnerMatch.exec(candidate)) !== null && this.maxTries > 0) {\n if (isFirstMatch) {\n // We should handle any group before this one too.\n var _group = trimAfterFirstMatch(UNWANTED_END_CHAR_PATTERN, candidate.slice(0, matches.index));\n\n var _match = this.parseAndVerify(_group, offset, text);\n\n if (_match) {\n return _match;\n }\n\n this.maxTries--;\n isFirstMatch = false;\n }\n\n var group = trimAfterFirstMatch(UNWANTED_END_CHAR_PATTERN, matches[1]); // Java code does `groupMatcher.start(1)` here,\n // but there's no way in javascript to get a group match start index,\n // therefore using the overall match start index `matches.index`.\n\n var match = this.parseAndVerify(group, offset + matches.index, text);\n\n if (match) {\n return match;\n }\n\n this.maxTries--;\n }\n }\n }\n /**\r\n * Parses a phone number from the `candidate` using `parseNumber` and\r\n * verifies it matches the requested `leniency`. If parsing and verification succeed,\r\n * a corresponding `PhoneNumberMatch` is returned, otherwise this method returns `null`.\r\n *\r\n * @param candidate the candidate match\r\n * @param offset the offset of {@code candidate} within {@link #text}\r\n * @return the parsed and validated phone number match, or null\r\n */\n\n }, {\n key: \"parseAndVerify\",\n value: function parseAndVerify(candidate, offset, text) {\n if (!isValidCandidate(candidate, offset, text, this.options.leniency)) {\n return;\n }\n\n var number = parseNumber(candidate, {\n extended: true,\n defaultCountry: this.options.defaultCountry,\n defaultCallingCode: this.options.defaultCallingCode\n }, this.metadata);\n\n if (!number.possible) {\n return;\n }\n\n if (this.leniency(number, candidate, this.metadata, this.regExpCache)) {\n // // We used parseAndKeepRawInput to create this number,\n // // but for now we don't return the extra values parsed.\n // // TODO: stop clearing all values here and switch all users over\n // // to using rawInput() rather than the rawString() of PhoneNumberMatch.\n // number.clearCountryCodeSource()\n // number.clearRawInput()\n // number.clearPreferredDomesticCarrierCode()\n var result = {\n startsAt: offset,\n endsAt: offset + candidate.length,\n phone: number.phone\n };\n\n if (number.country && number.country !== '001') {\n result.country = number.country;\n } else {\n result.countryCallingCode = number.countryCallingCode;\n }\n\n if (number.ext) {\n result.ext = number.ext;\n }\n\n return result;\n }\n }\n }, {\n key: \"hasNext\",\n value: function hasNext() {\n if (this.state === 'NOT_READY') {\n this.lastMatch = this.find(); // (this.searchIndex)\n\n if (this.lastMatch) {\n // this.searchIndex = this.lastMatch.endsAt\n this.state = 'READY';\n } else {\n this.state = 'DONE';\n }\n }\n\n return this.state === 'READY';\n }\n }, {\n key: \"next\",\n value: function next() {\n // Check the state and find the next match as a side-effect if necessary.\n if (!this.hasNext()) {\n throw new Error('No next element');\n } // Don't retain that memory any longer than necessary.\n\n\n var result = this.lastMatch;\n this.lastMatch = null;\n this.state = 'NOT_READY';\n return result;\n }\n }]);\n\n return PhoneNumberMatcher;\n}();\n\nexport { PhoneNumberMatcher as default };","function _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n} // This is an enhanced port of Google Android `libphonenumber`'s\n// `asyoutypeformatter.js` of December 31th, 2018.\n//\n// https://github.com/googlei18n/libphonenumber/blob/8d21a365061de2ba0675c878a710a7b24f74d2ae/javascript/i18n/phonenumbers/asyoutypeformatter.js\n//\n// Simplified: does not differentiate between \"local-only\" numbers\n// and \"internationally dialable\" numbers.\n// For example, doesn't include changes like this:\n// https://github.com/googlei18n/libphonenumber/commit/865da605da12b01053c4f053310bac7c5fbb7935\n\n\nimport Metadata from './metadata';\nimport PhoneNumber from './PhoneNumber';\nimport { VALID_DIGITS, VALID_PUNCTUATION, PLUS_CHARS } from './constants';\nimport { matchesEntirely } from './util';\nimport { extractCountryCallingCode as _extractCountryCallingCode, findCountryCode, stripNationalPrefixAndCarrierCode, stripNationalPrefixAndCarrierCodeFromCompleteNumber, extractCountryCallingCodeFromInternationalNumberWithoutPlusSign } from './parse_';\nimport { FIRST_GROUP_PATTERN, formatNationalNumberUsingFormat, applyInternationalSeparatorStyle } from './format_';\nimport { stripIDDPrefix } from './IDD';\nimport { checkNumberLengthForType } from './getNumberType_';\nimport parseDigits from './parseDigits'; // Used in phone number format template creation.\n// Could be any digit, I guess.\n\nvar DUMMY_DIGIT = '9'; // I don't know why is it exactly `15`\n\nvar LONGEST_NATIONAL_PHONE_NUMBER_LENGTH = 15; // Create a phone number consisting only of the digit 9 that matches the\n// `number_pattern` by applying the pattern to the \"longest phone number\" string.\n\nvar LONGEST_DUMMY_PHONE_NUMBER = repeat(DUMMY_DIGIT, LONGEST_NATIONAL_PHONE_NUMBER_LENGTH); // The digits that have not been entered yet will be represented by a \\u2008,\n// the punctuation space.\n\nexport var DIGIT_PLACEHOLDER = 'x'; // '\\u2008' (punctuation space)\n\nvar DIGIT_PLACEHOLDER_MATCHER = new RegExp(DIGIT_PLACEHOLDER); // A set of characters that, if found in a national prefix formatting rules, are an indicator to\n// us that we should separate the national prefix from the number when formatting.\n\nvar NATIONAL_PREFIX_SEPARATORS_PATTERN = /[- ]/; // Deprecated: Google has removed some formatting pattern related code from their repo.\n// https://github.com/googlei18n/libphonenumber/commit/a395b4fef3caf57c4bc5f082e1152a4d2bd0ba4c\n// \"We no longer have numbers in formatting matching patterns, only \\d.\"\n// Because this library supports generating custom metadata\n// some users may still be using old metadata so the relevant\n// code seems to stay until some next major version update.\n\nvar SUPPORT_LEGACY_FORMATTING_PATTERNS = true; // A pattern that is used to match character classes in regular expressions.\n// An example of a character class is \"[1-4]\".\n\nvar CREATE_CHARACTER_CLASS_PATTERN = SUPPORT_LEGACY_FORMATTING_PATTERNS && function () {\n return /\\[([^\\[\\]])*\\]/g;\n}; // Any digit in a regular expression that actually denotes a digit. For\n// example, in the regular expression \"80[0-2]\\d{6,10}\", the first 2 digits\n// (8 and 0) are standalone digits, but the rest are not.\n// Two look-aheads are needed because the number following \\\\d could be a\n// two-digit number, since the phone number can be as long as 15 digits.\n\n\nvar CREATE_STANDALONE_DIGIT_PATTERN = SUPPORT_LEGACY_FORMATTING_PATTERNS && function () {\n return /\\d(?=[^,}][^,}])/g;\n}; // A pattern that is used to determine if a `format` is eligible\n// to be used by the \"as you type formatter\".\n// It is eligible when the `format` contains groups of the dollar sign\n// followed by a single digit, separated by valid phone number punctuation.\n// This prevents invalid punctuation (such as the star sign in Israeli star numbers)\n// getting into the output of the \"as you type formatter\".\n\n\nvar ELIGIBLE_FORMAT_PATTERN = new RegExp('^' + '[' + VALID_PUNCTUATION + ']*' + '(\\\\$\\\\d[' + VALID_PUNCTUATION + ']*)+' + '$'); // This is the minimum length of the leading digits of a phone number\n// to guarantee the first \"leading digits pattern\" for a phone number format\n// to be preemptive.\n\nvar MIN_LEADING_DIGITS_LENGTH = 3;\nvar VALID_FORMATTED_PHONE_NUMBER_PART = '[' + VALID_PUNCTUATION + VALID_DIGITS + ']+';\nvar VALID_FORMATTED_PHONE_NUMBER_PART_PATTERN = new RegExp('^' + VALID_FORMATTED_PHONE_NUMBER_PART + '$', 'i');\nvar VALID_PHONE_NUMBER = '(?:' + '[' + PLUS_CHARS + ']' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']*' + '|' + '[' + VALID_PUNCTUATION + VALID_DIGITS + ']+' + ')';\nvar AFTER_PHONE_NUMBER_DIGITS_END_PATTERN = new RegExp('[^' + VALID_PUNCTUATION + VALID_DIGITS + ']+' + '.*' + '$');\nvar USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;\n\nvar AsYouType = /*#__PURE__*/function () {\n // Not setting `options` to a constructor argument\n // not to break backwards compatibility\n // for older versions of the library.\n\n /**\r\n * @param {(string|object)?} [optionsOrDefaultCountry] - The default country used for parsing non-international phone numbers. Can also be an `options` object.\r\n * @param {Object} metadata\r\n */\n function AsYouType(optionsOrDefaultCountry, metadata) {\n _classCallCheck(this, AsYouType);\n\n _defineProperty(this, \"options\", {});\n\n this.metadata = new Metadata(metadata); // Set `defaultCountry` and `defaultCallingCode` options.\n\n var defaultCountry;\n var defaultCallingCode; // Turns out `null` also has type \"object\". Weird.\n\n if (optionsOrDefaultCountry) {\n if (_typeof(optionsOrDefaultCountry) === 'object') {\n defaultCountry = optionsOrDefaultCountry.defaultCountry;\n defaultCallingCode = optionsOrDefaultCountry.defaultCallingCode;\n } else {\n defaultCountry = optionsOrDefaultCountry;\n }\n }\n\n if (defaultCountry && this.metadata.hasCountry(defaultCountry)) {\n this.defaultCountry = defaultCountry;\n }\n\n if (defaultCallingCode) {\n /* istanbul ignore if */\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (this.metadata.isNonGeographicCallingCode(defaultCallingCode)) {\n this.defaultCountry = '001';\n }\n }\n\n this.defaultCallingCode = defaultCallingCode;\n } // Reset.\n\n\n this.reset();\n }\n\n _createClass(AsYouType, [{\n key: \"reset\",\n value: function reset() {\n this.formattedOutput = '';\n this.international = undefined;\n this.internationalPrefix = undefined;\n this.countryCallingCode = undefined;\n this.digits = '';\n this.nationalNumberDigits = '';\n this.nationalPrefix = '';\n this.carrierCode = '';\n this.setCountry(this.defaultCountry, this.defaultCallingCode);\n return this;\n }\n }, {\n key: \"setCountry\",\n value: function setCountry(country, callingCode) {\n this.country = country;\n this.metadata.selectNumberingPlan(country, callingCode);\n\n if (this.metadata.hasSelectedNumberingPlan()) {\n this.initializePhoneNumberFormatsForCountry();\n } else {\n this.matchingFormats = [];\n }\n\n this.resetFormat();\n }\n }, {\n key: \"resetFormat\",\n value: function resetFormat() {\n this.chosenFormat = undefined;\n this.template = undefined;\n this.populatedNationalNumberTemplate = undefined;\n this.populatedNationalNumberTemplatePosition = -1;\n }\n /**\r\n * Inputs \"next\" phone number characters.\r\n * @param {string} text\r\n * @return {string} Formatted phone number characters that have been input so far.\r\n */\n\n }, {\n key: \"input\",\n value: function input(text) {\n var formattedDigits = this.extractFormattedDigits(text); // If the extracted phone number part\n // can possibly be a part of some valid phone number\n // then parse phone number characters from a formatted phone number.\n\n if (VALID_FORMATTED_PHONE_NUMBER_PART_PATTERN.test(formattedDigits)) {\n this.formattedOutput = this.getFullNumber(this.inputDigits(parseDigits(formattedDigits)) || this.getNonFormattedNationalNumber());\n }\n\n return this.formattedOutput;\n }\n /**\r\n * Extracts formatted phone number digits from text (if there're any).\r\n * @param {string} text\r\n * @return {string}\r\n */\n\n }, {\n key: \"extractFormattedDigits\",\n value: function extractFormattedDigits(text) {\n // Extract a formatted phone number part from text.\n var extractedNumber = extractFormattedPhoneNumber(text) || ''; // Trim a `+`.\n\n if (extractedNumber[0] === '+') {\n // Trim the `+`.\n extractedNumber = extractedNumber.slice('+'.length);\n\n if (this.digits) {// If an out of position `+` is detected\n // (or a second `+`) then just ignore it.\n } else {\n this.formattedOutput = '+';\n this.startInternationalNumber();\n }\n }\n\n return extractedNumber;\n }\n }, {\n key: \"startInternationalNumber\",\n value: function startInternationalNumber() {\n // Prepend the `+` to parsed input.\n this.international = true; // If a default country was set then reset it\n // because an explicitly international phone\n // number is being entered.\n\n this.setCountry();\n }\n /**\r\n * Inputs \"next\" phone number digits.\r\n * @param {string} digits\r\n * @return {string} [formattedNumber] Formatted national phone number (if it can be formatted at this stage). Returning `undefined` means \"don't format the national phone number at this stage\".\r\n */\n\n }, {\n key: \"inputDigits\",\n value: function inputDigits(nextDigits) {\n // Some users input their phone number in \"out-of-country\"\n // dialing format instead of using the leading `+`.\n // https://github.com/catamphetamine/libphonenumber-js/issues/185\n // Detect such numbers.\n if (!this.digits) {\n var numberWithoutIDD = stripIDDPrefix(nextDigits, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);\n\n if (numberWithoutIDD && numberWithoutIDD !== nextDigits) {\n // If an IDD prefix was stripped then\n // convert the number to international one\n // for subsequent parsing.\n this.internationalPrefix = nextDigits.slice(0, nextDigits.length - numberWithoutIDD.length);\n nextDigits = numberWithoutIDD;\n this.startInternationalNumber();\n }\n } // Append phone number digits.\n\n\n this.digits += nextDigits; // Try to format the parsed input\n\n if (this.isInternational()) {\n if (this.countryCallingCode) {\n this.nationalNumberDigits += nextDigits; // `this.country` could be `undefined`, for example, when there is\n // ambiguity in a form of several different countries,\n // each corresponding to the same country phone code\n // (e.g. NANPA: USA, Canada, etc), and there's not enough digits\n // to reliably determine the country the phone number belongs to.\n // Therefore, in cases of such ambiguity, each time something is input,\n // try to determine the country (if it hasn't been determined yet).\n\n if (!this.country || this.isCountryCallingCodeAmbiguous()) {\n this.determineTheCountry();\n }\n } else {\n // Extract country calling code from the digits entered so far.\n // There must be some digits in order to extract anything from them.\n //\n // If one looks at country phone codes\n // then they can notice that no one country phone code\n // is ever a (leftmost) substring of another country phone code.\n // So if a valid country code is extracted so far\n // then it means that this is the country code.\n //\n // If no country phone code could be extracted so far,\n // then don't format the phone number.\n //\n if (!this.extractCountryCallingCode()) {\n // Don't format the phone number.\n return;\n } // Possibly extract a national prefix.\n // Some people incorrectly input national prefix\n // in an international phone number.\n // For example, some people write British phone numbers as `+44(0)...`.\n // Also, mobile phone numbers in Mexico are supposed to be dialled\n // internationally using a `15` national prefix.\n //\n // https://www.mexperience.com/dialing-cell-phones-in-mexico/\n //\n // \"Dialing a Mexican cell phone from abroad\n // When you are calling a cell phone number in Mexico from outside Mexico,\n // it’s necessary to dial an additional “1” after Mexico’s country code\n // (which is “52”) and before the area code.\n // You also ignore the 045, and simply dial the area code and the\n // cell phone’s number.\n //\n // If you don’t add the “1”, you’ll receive a recorded announcement\n // asking you to redial using it.\n //\n // For example, if you are calling from the USA to a cell phone\n // in Mexico City, you would dial +52 – 1 – 55 – 1234 5678.\n // (Note that this is different to calling a land line in Mexico City\n // from abroad, where the number dialed would be +52 – 55 – 1234 5678)\".\n //\n\n\n this.nationalNumberDigits = this.digits.slice(this.countryCallingCode.length); // this.extractNationalPrefix()\n //\n // Determine the country from country calling code and national number.\n\n this.determineTheCountry();\n }\n } else {\n this.nationalNumberDigits += nextDigits; // If `defaultCallingCode` is set,\n // see if the `country` could be derived.\n\n if (!this.country) {\n this.determineTheCountry();\n } // Some national prefixes are substrings of other national prefixes\n // (for the same country), therefore try to extract national prefix each time\n // because a longer national prefix might be available at some point in time.\n\n\n var previousNationalPrefix = this.nationalPrefix;\n this.nationalNumberDigits = this.nationalPrefix + this.nationalNumberDigits; // Re-extract national prefix.\n\n this.extractNationalPrefix(); // If another national prefix has been extracted.\n\n if (this.nationalPrefix !== previousNationalPrefix) {\n // National number has changed\n // (due to another national prefix been extracted)\n // therefore national number has changed\n // therefore reset all previous formatting data.\n // (and leading digits matching state)\n this.initializePhoneNumberFormatsForCountry();\n this.resetFormat();\n }\n }\n\n if (this.nationalNumberDigits) {\n // Match the available formats by the currently available leading digits.\n this.matchFormats(this.nationalNumberDigits);\n } // Format the phone number (given the next digits)\n\n\n return this.formatNationalNumberWithNextDigits(nextDigits);\n }\n }, {\n key: \"formatNationalNumberWithNextDigits\",\n value: function formatNationalNumberWithNextDigits(nextDigits) {\n // See if the phone number digits can be formatted as a complete phone number.\n // If not, use the results from `formatNextNationalNumberDigits()`,\n // which formats based on the chosen formatting pattern.\n // Attempting to format complete phone number first is how it's done\n // in Google's `libphonenumber`.\n var formattedNumber = this.attemptToFormatCompletePhoneNumber(); // Just because a phone number doesn't have a suitable format\n // that doesn't mean that the phone number is invalid,\n // because phone number formats only format phone numbers,\n // they don't validate them and some (rare) phone numbers\n // are meant to stay non-formatted.\n\n if (formattedNumber) {\n return formattedNumber;\n } // Format the next phone number digits\n // using the previously chosen phone number format.\n //\n // This is done here because if `attemptToFormatCompletePhoneNumber`\n // was placed before this call then the `template`\n // wouldn't reflect the situation correctly (and would therefore be inconsistent)\n //\n\n\n var previouslyChosenFormat = this.chosenFormat; // Choose a format from the list of matching ones.\n\n var newlyChosenFormat = this.chooseFormat();\n\n if (newlyChosenFormat) {\n if (newlyChosenFormat === previouslyChosenFormat) {\n // If could format the next (current) digit\n // using the previously chosen phone number format\n // then return the formatted number so far.\n //\n // If no new phone number format could be chosen,\n // and couldn't format the supplied national number\n // using the previously chosen phone number pattern,\n // then return `undefined`.\n //\n return this.formatNextNationalNumberDigits(nextDigits);\n } else {\n // If a more appropriate phone number format\n // has been chosen for these \"leading digits\",\n // then format the national phone number (so far)\n // using the newly selected format.\n //\n // Will return `undefined` if it couldn't format\n // the supplied national number\n // using the selected phone number pattern.\n //\n return this.reformatNationalNumber();\n }\n }\n }\n }, {\n key: \"chooseFormat\",\n value: function chooseFormat() {\n // When there are multiple available formats, the formatter uses the first\n // format where a formatting template could be created.\n for (var _iterator = this.matchingFormats, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {\n var _ref;\n\n if (_isArray) {\n if (_i >= _iterator.length) break;\n _ref = _iterator[_i++];\n } else {\n _i = _iterator.next();\n if (_i.done) break;\n _ref = _i.value;\n }\n\n var format = _ref; // If this format is currently being used\n // and is still possible, then stick to it.\n\n if (this.chosenFormat === format) {\n break;\n }\n\n if (!this.createFormattingTemplate(format)) {\n continue;\n }\n\n this.chosenFormat = format; // With a new formatting template, the matched position\n // using the old template needs to be reset.\n\n this.populatedNationalNumberTemplatePosition = -1;\n break;\n }\n\n if (!this.chosenFormat) {\n // No format matches the national phone number entered.\n this.resetFormat();\n }\n\n return this.chosenFormat;\n } // Formats each digit of the national phone number (so far)\n // using the selected format.\n\n }, {\n key: \"reformatNationalNumber\",\n value: function reformatNationalNumber() {\n return this.formatNextNationalNumberDigits(this.nationalPrefix + this.nationalNumberDigits);\n }\n }, {\n key: \"initializePhoneNumberFormatsForCountry\",\n value: function initializePhoneNumberFormatsForCountry() {\n // Get all \"eligible\" phone number formats for this country\n this.matchingFormats = this.metadata.formats().filter(function (format) {\n // Compared to `libphonenumber`'s code, the two \"Discard a few formats\n // that we know are not relevant based on the presence of the national prefix\"\n // checks have changed: the first one has been moved to `.matchFormats()`,\n // and the second one doesn't apply to this library because it doesn't deal with\n // \"incomplete\" phone numbers (for example, phone numbers, entered without \"area code\").\n return ELIGIBLE_FORMAT_PATTERN.test(format.internationalFormat());\n });\n }\n }, {\n key: \"matchFormats\",\n value: function matchFormats(leadingDigits) {\n var _this = this; // \"leading digits\" pattern list starts with a\n // \"leading digits\" pattern fitting a maximum of 3 leading digits.\n // So, after a user inputs 3 digits of a national (significant) phone number\n // this national (significant) number can already be formatted.\n // The next \"leading digits\" pattern is for 4 leading digits max,\n // and the \"leading digits\" pattern after it is for 5 leading digits max, etc.\n // This implementation is different from Google's\n // in that it searches for a fitting format\n // even if the user has entered less than\n // `MIN_LEADING_DIGITS_LENGTH` digits of a national number.\n // Because some leading digit patterns already match for a single first digit.\n\n\n var leadingDigitsPatternIndex = leadingDigits.length - MIN_LEADING_DIGITS_LENGTH;\n\n if (leadingDigitsPatternIndex < 0) {\n leadingDigitsPatternIndex = 0;\n }\n\n this.matchingFormats = this.matchingFormats.filter(function (format) {\n // If national prefix is mandatory for this phone number format\n // and the user didn't input the national prefix\n // then this phone number format isn't suitable.\n if (!_this.isInternational() && !_this.nationalPrefix && format.nationalPrefixIsMandatoryWhenFormattingInNationalFormat()) {\n return false;\n }\n\n var leadingDigitsPatternsCount = format.leadingDigitsPatterns().length; // If this format is not restricted to a certain\n // leading digits pattern then it fits.\n\n if (leadingDigitsPatternsCount === 0) {\n return true;\n } // Start excluding any non-matching formats only when the\n // national number entered so far is at least 3 digits long,\n // otherwise format matching would give false negatives.\n // For example, when the digits entered so far are `2`\n // and the leading digits pattern is `21` –\n // it's quite obvious in this case that the format could be the one\n // but due to the absence of further digits it would give false negative.\n\n\n if (leadingDigits.length < MIN_LEADING_DIGITS_LENGTH) {\n return true;\n } // If at least `MIN_LEADING_DIGITS_LENGTH` digits of a national number are available\n // then format matching starts narrowing down the list of possible formats\n // (only previously matched formats are considered for next digits).\n\n\n leadingDigitsPatternIndex = Math.min(leadingDigitsPatternIndex, leadingDigitsPatternsCount - 1);\n var leadingDigitsPattern = format.leadingDigitsPatterns()[leadingDigitsPatternIndex]; // Brackets are required for `^` to be applied to\n // all or-ed (`|`) parts, not just the first one.\n\n return new RegExp(\"^(\".concat(leadingDigitsPattern, \")\")).test(leadingDigits);\n }); // If there was a phone number format chosen\n // and it no longer holds given the new leading digits then reset it.\n // The test for this `if` condition is marked as:\n // \"Reset a chosen format when it no longer holds given the new leading digits\".\n // To construct a valid test case for this one can find a country\n // in `PhoneNumberMetadata.xml` yielding one format for 3 ``\n // and yielding another format for 4 `` (Australia in this case).\n\n if (this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1) {\n this.resetFormat();\n }\n }\n }, {\n key: \"getSeparatorAfterNationalPrefix\",\n value: function getSeparatorAfterNationalPrefix(format) {\n if (this.metadata.countryCallingCode() === '1') {\n return ' ';\n }\n\n if (format && format.nationalPrefixFormattingRule() && NATIONAL_PREFIX_SEPARATORS_PATTERN.test(format.nationalPrefixFormattingRule())) {\n return ' ';\n }\n\n return '';\n } // This is in accordance to how Google's `libphonenumber` does it.\n // \"Check to see if there is an exact pattern match for these digits.\n // If so, we should use this instead of any other formatting template\n // whose `leadingDigitsPattern` also matches the input.\"\n\n }, {\n key: \"attemptToFormatCompletePhoneNumber\",\n value: function attemptToFormatCompletePhoneNumber() {\n for (var _iterator2 = this.matchingFormats, _isArray2 = Array.isArray(_iterator2), _i2 = 0, _iterator2 = _isArray2 ? _iterator2 : _iterator2[Symbol.iterator]();;) {\n var _ref2;\n\n if (_isArray2) {\n if (_i2 >= _iterator2.length) break;\n _ref2 = _iterator2[_i2++];\n } else {\n _i2 = _iterator2.next();\n if (_i2.done) break;\n _ref2 = _i2.value;\n }\n\n var format = _ref2;\n var matcher = new RegExp(\"^(?:\".concat(format.pattern(), \")$\"));\n\n if (!matcher.test(this.nationalNumberDigits)) {\n continue;\n } // Here, national number is formatted without \"national prefix\n // formatting rule\", because otherwise there'd be a bug\n // when \"area code\" is \"duplicated\" during input:\n // https://github.com/catamphetamine/libphonenumber-js/issues/318\n\n\n var formattedNationalNumber = formatNationalNumberUsingFormat(this.nationalNumberDigits, format, this.isInternational(), false, // Don't prepend national prefix (it will be prepended manually).\n this.metadata); // Check if this `format` preserves all digits.\n // This is how it's done in Google's `libphonenumber`.\n // Also, it fixes the bug when \"area code\" is \"duplicated\" during input:\n // https://github.com/catamphetamine/libphonenumber-js/issues/318\n //\n // \"Check that we didn't remove nor add any extra digits when we matched\n // this formatting pattern. This usually happens after we entered the last\n // digit during AYTF. Eg: In case of MX, we swallow mobile token (1) when\n // formatted but AYTF should retain all the number entered and not change\n // in order to match a format (of same leading digits and length) display\n // in that way.\"\n // \"If it's the same (i.e entered number and format is same), then it's\n // safe to return this in formatted number as nothing is lost / added.\"\n // Otherwise, don't use this format.\n // https://github.com/google/libphonenumber/commit/3e7c1f04f5e7200f87fb131e6f85c6e99d60f510#diff-9149457fa9f5d608a11bb975c6ef4bc5\n // https://github.com/google/libphonenumber/commit/3ac88c7106e7dcb553bcc794b15f19185928a1c6#diff-2dcb77e833422ee304da348b905cde0b\n //\n\n if (parseDigits(formattedNationalNumber) !== this.nationalNumberDigits) {\n continue;\n } // Prepend national prefix (if any).\n\n\n if (this.nationalPrefix) {\n // Here, national number is formatted with \"national prefix\n // formatting rule\". The reason is that \"national prefix\n // formatting rule\" often adds parentheses, and while Google's\n // `libphonenumber` dismisses those preferring simply prepending\n // national prefix followed by a \" \" character, this library\n // looks if the national prefix could be formatted better.\n var formattedNationalNumberWithNationalPrefix = formatNationalNumberUsingFormat(this.nationalNumberDigits, format, this.isInternational(), true, // Prepend national prefix.\n this.metadata);\n\n if (parseDigits(formattedNationalNumberWithNationalPrefix) === this.nationalPrefix + this.nationalNumberDigits) {\n formattedNationalNumber = formattedNationalNumberWithNationalPrefix;\n } else {\n formattedNationalNumber = this.nationalPrefix + this.getSeparatorAfterNationalPrefix(format) + formattedNationalNumber;\n }\n } // formats national number (probably) without national prefix.\n // Formatting a national number with national prefix could result in\n // bugs when \"area code\" is \"duplicated\" during input:\n // https://github.com/catamphetamine/libphonenumber-js/issues/318\n // The \"are all digits preserved\" check fixes that type of bug.\n // To leave the formatter in a consistent state\n\n\n this.resetFormat();\n this.chosenFormat = format; // Set `this.template` and `this.populatedNationalNumberTemplate`.\n\n /* istanbul ignore else */\n\n if (this.createFormattingTemplate(format)) {\n // Populate `this.populatedNationalNumberTemplate` with phone number digits.\n this.reformatNationalNumber();\n } else {\n // If the formatting template couldn't be created for a format,\n // create it manually from the formatted phone number.\n // This case doesn't ever happen with the current metadata.\n this.template = this.getFullNumber(formattedNationalNumber).replace(/[\\d\\+]/g, DIGIT_PLACEHOLDER);\n this.populatedNationalNumberTemplate = formattedNationalNumber;\n this.populatedNationalNumberTemplatePosition = this.populatedNationalNumberTemplate.length - 1;\n }\n\n return formattedNationalNumber;\n }\n }\n }, {\n key: \"getInternationalPrefix\",\n value: function getInternationalPrefix(options) {\n return this.internationalPrefix ? options && options.spacing === false ? this.internationalPrefix : this.internationalPrefix + ' ' : '+';\n } // Prepends `+CountryCode ` in case of an international phone number\n\n }, {\n key: \"getFullNumber\",\n value: function getFullNumber(formattedNationalNumber) {\n if (this.isInternational()) {\n var prefix = this.getInternationalPrefix();\n\n if (!this.countryCallingCode) {\n return \"\".concat(prefix).concat(this.digits);\n }\n\n if (!formattedNationalNumber) {\n return \"\".concat(prefix).concat(this.countryCallingCode);\n }\n\n return \"\".concat(prefix).concat(this.countryCallingCode, \" \").concat(formattedNationalNumber);\n }\n\n return formattedNationalNumber;\n }\n }, {\n key: \"getNonFormattedNationalNumber\",\n value: function getNonFormattedNationalNumber() {\n return this.nationalPrefix + (this.nationalPrefix && this.nationalNumberDigits && this.getSeparatorAfterNationalPrefix()) + this.nationalNumberDigits;\n } // Extracts the country calling code from the beginning\n // of the entered `national_number` (so far),\n // and places the remaining input into the `national_number`.\n\n }, {\n key: \"extractCountryCallingCode\",\n value: function extractCountryCallingCode() {\n var _extractCountryCallin = _extractCountryCallingCode('+' + this.digits, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata),\n countryCallingCode = _extractCountryCallin.countryCallingCode,\n number = _extractCountryCallin.number;\n\n if (!countryCallingCode) {\n return;\n }\n\n this.nationalNumberDigits = number;\n this.countryCallingCode = countryCallingCode;\n this.metadata.chooseCountryByCountryCallingCode(countryCallingCode);\n this.initializePhoneNumberFormatsForCountry();\n this.resetFormat();\n return this.metadata.hasSelectedNumberingPlan();\n }\n }, {\n key: \"extractNationalPrefix\",\n value: function extractNationalPrefix() {\n this.nationalPrefix = '';\n\n if (!this.metadata.hasSelectedNumberingPlan()) {\n return;\n } // Only strip national prefixes for non-international phone numbers\n // because national prefixes can't be present in international phone numbers.\n // While `parseNumber()` is forgiving is such cases, `AsYouType` is not.\n\n\n var _stripNationalPrefixA = stripNationalPrefixAndCarrierCode(this.nationalNumberDigits, this.metadata),\n nationalNumber = _stripNationalPrefixA.nationalNumber,\n carrierCode = _stripNationalPrefixA.carrierCode; // Sometimes `stripNationalPrefixAndCarrierCode()` won't actually\n // strip national prefix and will instead prepend some digits to the `number`:\n // for example, when number `2345678` is passed with `VI` country selected,\n // it will return `{ number: \"3402345678\" }`, because `340` area code is prepended.\n // So check if the `nationalNumber` is actually at the end of `this.nationalNumberDigits`.\n\n\n if (nationalNumber) {\n var index = this.nationalNumberDigits.indexOf(nationalNumber);\n\n if (index < 0 || index !== this.nationalNumberDigits.length - nationalNumber.length) {\n return;\n }\n }\n\n if (carrierCode) {\n this.carrierCode = carrierCode;\n }\n\n this.nationalPrefix = this.nationalNumberDigits.slice(0, this.nationalNumberDigits.length - nationalNumber.length);\n this.nationalNumberDigits = nationalNumber;\n return this.nationalPrefix;\n } // isPossibleNumber(number) {\n // \tswitch (checkNumberLengthForType(number, undefined, this.metadata)) {\n // \t\tcase 'IS_POSSIBLE':\n // \t\t\treturn true\n // \t\t// case 'IS_POSSIBLE_LOCAL_ONLY':\n // \t\t// \treturn !this.isInternational()\n // \t\tdefault:\n // \t\t\treturn false\n // \t}\n // }\n\n }, {\n key: \"isCountryCallingCodeAmbiguous\",\n value: function isCountryCallingCodeAmbiguous() {\n var countryCodes = this.metadata.getCountryCodesForCallingCode(this.countryCallingCode);\n return countryCodes && countryCodes.length > 1;\n }\n }, {\n key: \"createFormattingTemplate\",\n value: function createFormattingTemplate(format) {\n // The formatter doesn't format numbers when numberPattern contains '|', e.g.\n // (20|3)\\d{4}. In those cases we quickly return.\n // (Though there's no such format in current metadata)\n\n /* istanbul ignore if */\n if (SUPPORT_LEGACY_FORMATTING_PATTERNS && format.pattern().indexOf('|') >= 0) {\n return;\n } // Get formatting template for this phone number format\n\n\n var template = this.getTemplateForNumberFormatPattern(format, this.nationalPrefix); // If the national number entered is too long\n // for any phone number format, then abort.\n\n if (!template) {\n return;\n }\n\n this.template = template;\n this.populatedNationalNumberTemplate = template; // For convenience, the public `.template` property\n // contains the whole international number\n // if the phone number being input is international:\n // 'x' for the '+' sign, 'x'es for the country phone code,\n // a spacebar and then the template for the formatted national number.\n\n if (this.isInternational()) {\n this.template = this.getInternationalPrefix().replace(/[\\d\\+]/g, DIGIT_PLACEHOLDER) + repeat(DIGIT_PLACEHOLDER, this.countryCallingCode.length) + ' ' + template;\n }\n\n return this.template;\n }\n /**\r\n * Generates formatting template for a national phone number,\r\n * optionally containing a national prefix, for a format.\r\n * @param {Format} format\r\n * @param {string} nationalPrefix\r\n * @return {string}\r\n */\n\n }, {\n key: \"getTemplateForNumberFormatPattern\",\n value: function getTemplateForNumberFormatPattern(format, nationalPrefix) {\n var pattern = format.pattern();\n /* istanbul ignore else */\n\n if (SUPPORT_LEGACY_FORMATTING_PATTERNS) {\n pattern = pattern // Replace anything in the form of [..] with \\d\n .replace(CREATE_CHARACTER_CLASS_PATTERN(), '\\\\d') // Replace any standalone digit (not the one in `{}`) with \\d\n .replace(CREATE_STANDALONE_DIGIT_PATTERN(), '\\\\d');\n } // Generate a dummy national number (consisting of `9`s)\n // that fits this format's `pattern`.\n //\n // This match will always succeed,\n // because the \"longest dummy phone number\"\n // has enough length to accomodate any possible\n // national phone number format pattern.\n //\n\n\n var digits = LONGEST_DUMMY_PHONE_NUMBER.match(pattern)[0]; // If the national number entered is too long\n // for any phone number format, then abort.\n\n if (this.nationalNumberDigits.length > digits.length) {\n return;\n } // Get a formatting template which can be used to efficiently format\n // a partial number where digits are added one by one.\n // Below `strictPattern` is used for the\n // regular expression (with `^` and `$`).\n // This wasn't originally in Google's `libphonenumber`\n // and I guess they don't really need it\n // because they're not using \"templates\" to format phone numbers\n // but I added `strictPattern` after encountering\n // South Korean phone number formatting bug.\n //\n // Non-strict regular expression bug demonstration:\n //\n // this.nationalNumberDigits : `111111111` (9 digits)\n //\n // pattern : (\\d{2})(\\d{3,4})(\\d{4})\n // format : `$1 $2 $3`\n // digits : `9999999999` (10 digits)\n //\n // '9999999999'.replace(new RegExp(/(\\d{2})(\\d{3,4})(\\d{4})/g), '$1 $2 $3') = \"99 9999 9999\"\n //\n // template : xx xxxx xxxx\n //\n // But the correct template in this case is `xx xxx xxxx`.\n // The template was generated incorrectly because of the\n // `{3,4}` variability in the `pattern`.\n //\n // The fix is, if `this.nationalNumberDigits` has already sufficient length\n // to satisfy the `pattern` completely then `this.nationalNumberDigits`\n // is used instead of `digits`.\n\n\n var strictPattern = new RegExp('^' + pattern + '$');\n var nationalNumberDummyDigits = this.nationalNumberDigits.replace(/\\d/g, DUMMY_DIGIT); // If `this.nationalNumberDigits` has already sufficient length\n // to satisfy the `pattern` completely then use it\n // instead of `digits`.\n\n if (strictPattern.test(nationalNumberDummyDigits)) {\n digits = nationalNumberDummyDigits;\n }\n\n var numberFormat = this.getFormatFormat(format);\n var includesNationalPrefix;\n\n if (nationalPrefix) {\n if (format.nationalPrefixFormattingRule()) {\n var numberFormatWithNationalPrefix = numberFormat.replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule());\n\n if (parseDigits(numberFormatWithNationalPrefix) === nationalPrefix + parseDigits(numberFormat)) {\n numberFormat = numberFormatWithNationalPrefix;\n includesNationalPrefix = true;\n var i = nationalPrefix.length;\n\n while (i > 0) {\n numberFormat = numberFormat.replace(/\\d/, DIGIT_PLACEHOLDER);\n i--;\n }\n }\n }\n } // Generate formatting template for this phone number format.\n\n\n var template = digits // Format the dummy phone number according to the format.\n .replace(new RegExp(pattern), numberFormat) // Replace each dummy digit with a DIGIT_PLACEHOLDER.\n .replace(new RegExp(DUMMY_DIGIT, 'g'), DIGIT_PLACEHOLDER);\n\n if (nationalPrefix) {\n if (!includesNationalPrefix) {\n // Prepend national prefix to the template manually.\n template = repeat(DIGIT_PLACEHOLDER, nationalPrefix.length) + this.getSeparatorAfterNationalPrefix(format) + template;\n }\n }\n\n return template;\n }\n }, {\n key: \"formatNextNationalNumberDigits\",\n value: function formatNextNationalNumberDigits(digits) {\n // Using `.split('')` to iterate through a string here\n // to avoid requiring `Symbol.iterator` polyfill.\n // `.split('')` is generally not safe for Unicode,\n // but in this particular case for `digits` it is safe.\n // for (const digit of digits)\n for (var _iterator3 = digits.split(''), _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) {\n var _ref3;\n\n if (_isArray3) {\n if (_i3 >= _iterator3.length) break;\n _ref3 = _iterator3[_i3++];\n } else {\n _i3 = _iterator3.next();\n if (_i3.done) break;\n _ref3 = _i3.value;\n }\n\n var digit = _ref3; // If there is room for more digits in current `template`,\n // then set the next digit in the `template`,\n // and return the formatted digits so far.\n // If more digits are entered than the current format could handle.\n\n if (this.populatedNationalNumberTemplate.slice(this.populatedNationalNumberTemplatePosition + 1).search(DIGIT_PLACEHOLDER_MATCHER) < 0) {\n // Reset the format.\n this.resetFormat();\n return;\n }\n\n this.populatedNationalNumberTemplatePosition = this.populatedNationalNumberTemplate.search(DIGIT_PLACEHOLDER_MATCHER);\n this.populatedNationalNumberTemplate = this.populatedNationalNumberTemplate.replace(DIGIT_PLACEHOLDER_MATCHER, digit);\n } // Return the formatted phone number so far.\n\n\n return cutAndStripNonPairedParens(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1); // The old way which was good for `input-format` but is not so good\n // for `react-phone-number-input`'s default input (`InputBasic`).\n // return closeNonPairedParens(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1)\n // \t.replace(new RegExp(DIGIT_PLACEHOLDER, 'g'), ' ')\n }\n }, {\n key: \"isInternational\",\n value: function isInternational() {\n return this.international;\n }\n }, {\n key: \"getFormatFormat\",\n value: function getFormatFormat(format) {\n if (this.isInternational()) {\n return applyInternationalSeparatorStyle(format.internationalFormat());\n }\n\n return format.format();\n } // Determines the country of the phone number\n // entered so far based on the country phone code\n // and the national phone number.\n\n }, {\n key: \"determineTheCountry\",\n value: function determineTheCountry() {\n this.country = findCountryCode(this.isInternational() ? this.countryCallingCode : this.defaultCallingCode, this.nationalNumberDigits, this.metadata);\n }\n /**\r\n * Returns an instance of `PhoneNumber` class.\r\n * Will return `undefined` if no national (significant) number\r\n * digits have been entered so far, or if no `defaultCountry` has been\r\n * set and the user enters a phone number not in international format.\r\n */\n\n }, {\n key: \"getNumber\",\n value: function getNumber() {\n if (this.isInternational()) {\n if (!this.countryCallingCode) {\n return;\n }\n } else {\n if (!this.country && !this.defaultCallingCode) {\n return;\n }\n }\n\n if (!this.nationalNumberDigits) {\n return undefined;\n }\n\n var countryCode = this.country;\n /* istanbul ignore if */\n\n if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n if (this.country === '001') {\n countryCode = undefined;\n }\n }\n\n var callingCode = this.countryCallingCode || this.defaultCallingCode;\n var nationalNumber = this.nationalNumberDigits;\n var carrierCode = this.carrierCode; // When an international number without a leading `+` has been autocorrected,\n // extract country calling code, because normally it's only extracted\n // for international numbers with a leading `+`.\n // Could also just use `parsePhoneNumberFromString()` here\n // instead of hacking around this single case.\n\n if (!this.isInternational() && this.nationalNumberDigits === this.digits) {\n var _extractCountryCallin2 = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(this.digits, countryCode, callingCode, this.metadata.metadata),\n countryCallingCode = _extractCountryCallin2.countryCallingCode,\n number = _extractCountryCallin2.number;\n\n if (countryCallingCode) {\n var _stripNationalPrefixA2 = stripNationalPrefixAndCarrierCodeFromCompleteNumber(number, this.metadata),\n shorterNationalNumber = _stripNationalPrefixA2.nationalNumber,\n newCarrierCode = _stripNationalPrefixA2.carrierCode;\n\n nationalNumber = shorterNationalNumber;\n carrierCode = newCarrierCode;\n }\n }\n\n var phoneNumber = new PhoneNumber(countryCode || callingCode, nationalNumber, this.metadata.metadata);\n\n if (carrierCode) {\n phoneNumber.carrierCode = carrierCode;\n } // Phone number extensions are not supported by \"As You Type\" formatter.\n\n\n return phoneNumber;\n }\n /**\r\n * @deprecated\r\n * This method is used in `react-phone-number-input/source/input-control.js`\r\n * in versions before `3.0.16`.\r\n */\n\n }, {\n key: \"getNationalNumber\",\n value: function getNationalNumber() {\n return this.nationalNumberDigits;\n }\n }, {\n key: \"getNonFormattedTemplate\",\n value: function getNonFormattedTemplate() {\n return this.getFullNumber(this.getNonFormattedNationalNumber()).replace(/[\\+\\d]/g, DIGIT_PLACEHOLDER);\n }\n /**\r\n * Returns formatted phone number template.\r\n * @return {string} [template]\r\n */\n\n }, {\n key: \"getTemplate\",\n value: function getTemplate() {\n if (!this.template) {\n return this.getNonFormattedTemplate();\n }\n\n var index = -1;\n var i = 0;\n\n while (i < (this.isInternational() ? this.getInternationalPrefix({\n spacing: false\n }).length : 0) + this.digits.length) {\n index = this.template.indexOf(DIGIT_PLACEHOLDER, index + 1);\n i++;\n }\n\n return cutAndStripNonPairedParens(this.template, index + 1);\n }\n }]);\n\n return AsYouType;\n}();\n\nexport { AsYouType as default };\nexport function stripNonPairedParens(string) {\n var dangling_braces = [];\n var i = 0;\n\n while (i < string.length) {\n if (string[i] === '(') {\n dangling_braces.push(i);\n } else if (string[i] === ')') {\n dangling_braces.pop();\n }\n\n i++;\n }\n\n var start = 0;\n var cleared_string = '';\n dangling_braces.push(string.length);\n\n for (var _i4 = 0, _dangling_braces = dangling_braces; _i4 < _dangling_braces.length; _i4++) {\n var index = _dangling_braces[_i4];\n cleared_string += string.slice(start, index);\n start = index + 1;\n }\n\n return cleared_string;\n}\nexport function cutAndStripNonPairedParens(string, cutBeforeIndex) {\n if (string[cutBeforeIndex] === ')') {\n cutBeforeIndex++;\n }\n\n return stripNonPairedParens(string.slice(0, cutBeforeIndex));\n}\nexport function closeNonPairedParens(template, cut_before) {\n var retained_template = template.slice(0, cut_before);\n var opening_braces = countOccurences('(', retained_template);\n var closing_braces = countOccurences(')', retained_template);\n var dangling_braces = opening_braces - closing_braces;\n\n while (dangling_braces > 0 && cut_before < template.length) {\n if (template[cut_before] === ')') {\n dangling_braces--;\n }\n\n cut_before++;\n }\n\n return template.slice(0, cut_before);\n} // Counts all occurences of a symbol in a string.\n// Unicode-unsafe (because using `.split()`).\n\nexport function countOccurences(symbol, string) {\n var count = 0; // Using `.split('')` to iterate through a string here\n // to avoid requiring `Symbol.iterator` polyfill.\n // `.split('')` is generally not safe for Unicode,\n // but in this particular case for counting brackets it is safe.\n // for (const character of string)\n\n for (var _iterator4 = string.split(''), _isArray4 = Array.isArray(_iterator4), _i5 = 0, _iterator4 = _isArray4 ? _iterator4 : _iterator4[Symbol.iterator]();;) {\n var _ref4;\n\n if (_isArray4) {\n if (_i5 >= _iterator4.length) break;\n _ref4 = _iterator4[_i5++];\n } else {\n _i5 = _iterator4.next();\n if (_i5.done) break;\n _ref4 = _i5.value;\n }\n\n var character = _ref4;\n\n if (character === symbol) {\n count++;\n }\n }\n\n return count;\n} // Repeats a string (or a symbol) N times.\n// http://stackoverflow.com/questions/202605/repeat-string-javascript\n\nexport function repeat(string, times) {\n if (times < 1) {\n return '';\n }\n\n var result = '';\n\n while (times > 1) {\n if (times & 1) {\n result += string;\n }\n\n times >>= 1;\n string += string;\n }\n\n return result + string;\n}\n/**\r\n * Extracts formatted phone number from text (if there's any).\r\n * @param {string} text\r\n * @return {string} [formattedPhoneNumber]\r\n */\n\nfunction extractFormattedPhoneNumber(text) {\n // Attempt to extract a possible number from the string passed in.\n var startsAt = text.search(VALID_PHONE_NUMBER);\n\n if (startsAt < 0) {\n return;\n } // Trim everything to the left of the phone number.\n\n\n text = text.slice(startsAt); // Trim the `+`.\n\n var hasPlus;\n\n if (text[0] === '+') {\n hasPlus = true;\n text = text.slice('+'.length);\n } // Trim everything to the right of the phone number.\n\n\n text = text.replace(AFTER_PHONE_NUMBER_DIGITS_END_PATTERN, ''); // Re-add the previously trimmed `+`.\n\n if (hasPlus) {\n text = '+' + text;\n }\n\n return text;\n}","// Deprecated.\n// Use `libphonenumber-js/min` or `libphonenumber-js/max` or `libphonenumber-js/core` instead.\n// Importing from `.json.js` a workaround for a bug in web browsers' \"native\"\n// ES6 importing system which is uncapable of importing \"*.json\" files.\n// https://github.com/catamphetamine/libphonenumber-js/issues/239\nimport metadata from './metadata.min.json.js';\nimport parsePhoneNumberCustom from './es6/parsePhoneNumber';\nimport parsePhoneNumberFromStringCustom from './es6/parsePhoneNumberFromString';\nimport parseNumberCustom from './es6/parse';\nimport formatNumberCustom from './es6/format';\nimport getNumberTypeCustom from './es6/getNumberType';\nimport getExampleNumberCustom from './es6/getExampleNumber';\nimport isPossibleNumberCustom from './es6/isPossibleNumber';\nimport isValidNumberCustom from './es6/validate';\nimport isValidNumberForRegionCustom from './es6/isValidNumberForRegion'; // Deprecated\n\nimport findPhoneNumbersCustom, { searchPhoneNumbers as searchPhoneNumbersCustom } from './es6/findPhoneNumbers';\nimport { PhoneNumberSearch as PhoneNumberSearchCustom } from './es6/findPhoneNumbers_';\nimport findNumbersCustom from './es6/findNumbers';\nimport searchNumbersCustom from './es6/searchNumbers';\nimport findPhoneNumbersInTextCustom from './es6/findPhoneNumbersInText';\nimport searchPhoneNumbersInTextCustom from './es6/searchPhoneNumbersInText';\nimport PhoneNumberMatcherCustom from './es6/PhoneNumberMatcher';\nimport AsYouTypeCustom from './es6/AsYouType';\nimport getCountryCallingCodeCustom from './es6/getCountryCallingCode';\nimport getCountriesCustom from './es6/getCountries';\nexport { default as Metadata } from './es6/metadata';\nimport { getExtPrefix as getExtPrefixCustom, isSupportedCountry as isSupportedCountryCustom } from './es6/metadata';\nimport { parseRFC3966 as parseRFC3966Custom, formatRFC3966 as formatRFC3966Custom } from './es6/RFC3966';\nimport formatIncompletePhoneNumberCustom from './es6/formatIncompletePhoneNumber';\nexport { default as parseIncompletePhoneNumber, parsePhoneNumberCharacter } from './es6/parseIncompletePhoneNumber'; // Deprecated: remove DIGITS export in 2.0.0.\n// (it was used in `react-phone-number-input`)\n\nexport { DIGITS, default as parseDigits } from './es6/parseDigits';\nexport { default as ParseError } from './es6/ParseError';\nexport function parsePhoneNumber() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return parsePhoneNumberCustom.apply(this, parameters);\n}\nexport function parsePhoneNumberFromString() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return parsePhoneNumberFromStringCustom.apply(this, parameters);\n}\nexport function parseNumber() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return parseNumberCustom.apply(this, parameters);\n} // Deprecated: remove `parse()` export in 2.0.0.\n// (renamed to `parseNumber()`)\n\nexport function parse() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return parseNumberCustom.apply(this, parameters);\n}\nexport function formatNumber() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return formatNumberCustom.apply(this, parameters);\n} // Deprecated: remove `format()` export in 2.0.0.\n// (renamed to `formatNumber()`)\n\nexport function format() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return formatNumberCustom.apply(this, parameters);\n}\nexport function getNumberType() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return getNumberTypeCustom.apply(this, parameters);\n}\nexport function getExampleNumber() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return getExampleNumberCustom.apply(this, parameters);\n}\nexport function isPossibleNumber() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return isPossibleNumberCustom.apply(this, parameters);\n}\nexport function isValidNumber() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return isValidNumberCustom.apply(this, parameters);\n}\nexport function isValidNumberForRegion() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return isValidNumberForRegionCustom.apply(this, parameters);\n} // Deprecated.\n\nexport function findPhoneNumbers() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return findPhoneNumbersCustom.apply(this, parameters);\n} // Deprecated.\n\nexport function searchPhoneNumbers() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return searchPhoneNumbersCustom.apply(this, parameters);\n} // Deprecated.\n\nexport function PhoneNumberSearch(text, options) {\n PhoneNumberSearchCustom.call(this, text, options, metadata);\n} // Deprecated.\n\nPhoneNumberSearch.prototype = Object.create(PhoneNumberSearchCustom.prototype, {});\nPhoneNumberSearch.prototype.constructor = PhoneNumberSearch;\nexport function findNumbers() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return findNumbersCustom.apply(this, parameters);\n}\nexport function searchNumbers() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return searchNumbersCustom.apply(this, parameters);\n}\nexport function findPhoneNumbersInText() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return findPhoneNumbersInTextCustom.apply(this, parameters);\n}\nexport function searchPhoneNumbersInText() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return searchPhoneNumbersInTextCustom.apply(this, parameters);\n}\nexport function PhoneNumberMatcher(text, options) {\n PhoneNumberMatcherCustom.call(this, text, options, metadata);\n}\nPhoneNumberMatcher.prototype = Object.create(PhoneNumberMatcherCustom.prototype, {});\nPhoneNumberMatcher.prototype.constructor = PhoneNumberMatcher;\nexport function AsYouType(country) {\n AsYouTypeCustom.call(this, country, metadata);\n}\nAsYouType.prototype = Object.create(AsYouTypeCustom.prototype, {});\nAsYouType.prototype.constructor = AsYouType;\nexport function isSupportedCountry() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return isSupportedCountryCustom.apply(this, parameters);\n}\nexport function getExtPrefix() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return getExtPrefixCustom.apply(this, parameters);\n}\nexport function parseRFC3966() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return parseRFC3966Custom.apply(this, parameters);\n}\nexport function formatRFC3966() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return formatRFC3966Custom.apply(this, parameters);\n}\nexport function formatIncompletePhoneNumber() {\n var parameters = Array.prototype.slice.call(arguments);\n parameters.push(metadata);\n return formatIncompletePhoneNumberCustom.apply(this, parameters);\n} // Deprecated: remove this in 2.0.0 and make `custom.js` in ES6\n// (the old `custom.js` becomes `custom.commonjs.js`).\n\nexport { default as parseCustom } from './es6/parse';\nexport { default as formatCustom } from './es6/format';\nexport { default as isValidNumberCustom } from './es6/validate';\nexport { default as findPhoneNumbersCustom } from './es6/findPhoneNumbers';\nexport { searchPhoneNumbers as searchPhoneNumbersCustom } from './es6/findPhoneNumbers';\nexport { PhoneNumberSearch as PhoneNumberSearchCustom } from './es6/findPhoneNumbers_';\nexport { default as getNumberTypeCustom } from './es6/getNumberType';\nexport { default as getCountryCallingCodeCustom } from './es6/getCountryCallingCode';\nexport { default as AsYouTypeCustom // Deprecated: `DIGIT_PLACEHOLDER` was used by `react-phone-number-input`.\n// Seems to be not used anymore.\n, DIGIT_PLACEHOLDER } from './es6/AsYouType';\nexport function getCountries() {\n return getCountriesCustom(metadata);\n}\nexport function getCountryCallingCode(country) {\n return getCountryCallingCodeCustom(country, metadata);\n} // `getPhoneCode` name is deprecated, use `getCountryCallingCode` instead.\n\nexport function getPhoneCode(country) {\n return getCountryCallingCode(country);\n} // `getPhoneCodeCustom` name is deprecated, use `getCountryCallingCodeCustom` instead.\n\nexport function getPhoneCodeCustom(country, metadata) {\n return getCountryCallingCodeCustom(country, metadata);\n}","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n\n return array;\n}\n\nexport default arrayEach;","import baseAssignValue from './_baseAssignValue.js';\nimport eq from './eq.js';\n/** Used for built-in method references. */\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n\nfunction assignValue(object, key, value) {\n var objValue = object[key];\n\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === undefined && !(key in object)) {\n baseAssignValue(object, key, value);\n }\n}\n\nexport default assignValue;","import assignValue from './_assignValue.js';\nimport baseAssignValue from './_baseAssignValue.js';\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\n\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n\n return object;\n}\n\nexport default copyObject;","import copyObject from './_copyObject.js';\nimport keys from './keys.js';\n/**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n\nfunction baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n}\n\nexport default baseAssign;","/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n\n return result;\n}\n\nexport default nativeKeysIn;","import isObject from './isObject.js';\nimport isPrototype from './_isPrototype.js';\nimport nativeKeysIn from './_nativeKeysIn.js';\n/** Used for built-in method references. */\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n\n return result;\n}\n\nexport default baseKeysIn;","import arrayLikeKeys from './_arrayLikeKeys.js';\nimport baseKeysIn from './_baseKeysIn.js';\nimport isArrayLike from './isArrayLike.js';\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nexport default keysIn;","import copyObject from './_copyObject.js';\nimport keysIn from './keysIn.js';\n/**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n\nfunction baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n}\n\nexport default baseAssignIn;","import copyObject from './_copyObject.js';\nimport getSymbols from './_getSymbols.js';\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n\nexport default copySymbols;","import arrayPush from './_arrayPush.js';\nimport getPrototype from './_getPrototype.js';\nimport getSymbols from './_getSymbols.js';\nimport stubArray from './stubArray.js';\n/* Built-in method references for those with the same name as other `lodash` methods. */\n\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function (object) {\n var result = [];\n\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n\n return result;\n};\nexport default getSymbolsIn;","import copyObject from './_copyObject.js';\nimport getSymbolsIn from './_getSymbolsIn.js';\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\n\nexport default copySymbolsIn;","import baseGetAllKeys from './_baseGetAllKeys.js';\nimport getSymbolsIn from './_getSymbolsIn.js';\nimport keysIn from './keysIn.js';\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nexport default getAllKeysIn;","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length); // Add properties assigned by `RegExp#exec`.\n\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n\n return result;\n}\n\nexport default initCloneArray;","import Uint8Array from './_Uint8Array.js';\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\n\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nexport default cloneArrayBuffer;","import cloneArrayBuffer from './_cloneArrayBuffer.js';\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\n\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nexport default cloneDataView;","/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\n\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n\nexport default cloneRegExp;","import Symbol from './_Symbol.js';\n/** Used to convert symbols to primitives and strings. */\n\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\n\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nexport default cloneSymbol;","import cloneArrayBuffer from './_cloneArrayBuffer.js';\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\n\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nexport default cloneTypedArray;","import cloneArrayBuffer from './_cloneArrayBuffer.js';\nimport cloneDataView from './_cloneDataView.js';\nimport cloneRegExp from './_cloneRegExp.js';\nimport cloneSymbol from './_cloneSymbol.js';\nimport cloneTypedArray from './_cloneTypedArray.js';\n/** `Object#toString` result references. */\n\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\n\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag:\n case float64Tag:\n case int8Tag:\n case int16Tag:\n case int32Tag:\n case uint8Tag:\n case uint8ClampedTag:\n case uint16Tag:\n case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor();\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor();\n\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n\nexport default initCloneByTag;","import isObject from './isObject.js';\n/** Built-in value references. */\n\nvar objectCreate = Object.create;\n/**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\n\nvar baseCreate = function () {\n function object() {}\n\n return function (proto) {\n if (!isObject(proto)) {\n return {};\n }\n\n if (objectCreate) {\n return objectCreate(proto);\n }\n\n object.prototype = proto;\n var result = new object();\n object.prototype = undefined;\n return result;\n };\n}();\n\nexport default baseCreate;","import baseCreate from './_baseCreate.js';\nimport getPrototype from './_getPrototype.js';\nimport isPrototype from './_isPrototype.js';\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\n\nfunction initCloneObject(object) {\n return typeof object.constructor == 'function' && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};\n}\n\nexport default initCloneObject;","import getTag from './_getTag.js';\nimport isObjectLike from './isObjectLike.js';\n/** `Object#toString` result references. */\n\nvar mapTag = '[object Map]';\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\n\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nexport default baseIsMap;","import baseIsMap from './_baseIsMap.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n/* Node.js helper references. */\n\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\n\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\nexport default isMap;","import getTag from './_getTag.js';\nimport isObjectLike from './isObjectLike.js';\n/** `Object#toString` result references. */\n\nvar setTag = '[object Set]';\n/**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\n\nfunction baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n}\n\nexport default baseIsSet;","import baseIsSet from './_baseIsSet.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n/* Node.js helper references. */\n\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\n\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\nexport default isSet;","import Stack from './_Stack.js';\nimport arrayEach from './_arrayEach.js';\nimport assignValue from './_assignValue.js';\nimport baseAssign from './_baseAssign.js';\nimport baseAssignIn from './_baseAssignIn.js';\nimport cloneBuffer from './_cloneBuffer.js';\nimport copyArray from './_copyArray.js';\nimport copySymbols from './_copySymbols.js';\nimport copySymbolsIn from './_copySymbolsIn.js';\nimport getAllKeys from './_getAllKeys.js';\nimport getAllKeysIn from './_getAllKeysIn.js';\nimport getTag from './_getTag.js';\nimport initCloneArray from './_initCloneArray.js';\nimport initCloneByTag from './_initCloneByTag.js';\nimport initCloneObject from './_initCloneObject.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isMap from './isMap.js';\nimport isObject from './isObject.js';\nimport isSet from './isSet.js';\nimport keys from './keys.js';\n/** Used to compose bitmasks for cloning. */\n\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n/** `Object#toString` result references. */\n\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n/** Used to identify `toStringTag` values supported by `_.clone`. */\n\nvar cloneableTags = {};\ncloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\ncloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;\n/**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\n\nfunction baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n\n if (result !== undefined) {\n return result;\n }\n\n if (!isObject(value)) {\n return value;\n }\n\n var isArr = isArray(value);\n\n if (isArr) {\n result = initCloneArray(value);\n\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n\n if (tag == objectTag || tag == argsTag || isFunc && !object) {\n result = isFlat || isFunc ? {} : initCloneObject(value);\n\n if (!isDeep) {\n return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n\n result = initCloneByTag(value, tag, isDeep);\n }\n } // Check for circular references and return its corresponding clone.\n\n\n stack || (stack = new Stack());\n var stacked = stack.get(value);\n\n if (stacked) {\n return stacked;\n }\n\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function (subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function (subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function (subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n } // Recursively populate clone (susceptible to call stack limits).\n\n\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n}\n\nexport default baseClone;","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}","import _typeof from \"../../helpers/esm/typeof\";\nimport assertThisInitialized from \"./assertThisInitialized\";\nexport default function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf\";\nexport default function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n\n return result;\n}\n\nexport default arrayFilter;","import arrayFilter from './_arrayFilter.js';\nimport stubArray from './stubArray.js';\n/** Used for built-in method references. */\n\nvar objectProto = Object.prototype;\n/** Built-in value references. */\n\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n/* Built-in method references for those with the same name as other `lodash` methods. */\n\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n\nvar getSymbols = !nativeGetSymbols ? stubArray : function (object) {\n if (object == null) {\n return [];\n }\n\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function (symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\nexport default getSymbols;","import root from './_root.js';\n/** Built-in value references. */\n\nvar Uint8Array = root.Uint8Array;\nexport default Uint8Array;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n'use strict';\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function validateFormat(format) {};\n\nif (process.env.NODE_ENV !== 'production') {\n validateFormat = function validateFormat(format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error;\n\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n\n throw error;\n }\n}\n\nmodule.exports = invariant;","import toInteger from '../_lib/toInteger/index.js';\nimport toDate from '../toDate/index.js';\nimport requiredArgs from '../_lib/requiredArgs/index.js';\n/**\n * @name addDays\n * @category Day Helpers\n * @summary Add the specified number of days to the given date.\n *\n * @description\n * Add the specified number of days to the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of days to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the days added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 10 days to 1 September 2014:\n * var result = addDays(new Date(2014, 8, 1), 10)\n * //=> Thu Sep 11 2014 00:00:00\n */\n\nexport default function addDays(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var amount = toInteger(dirtyAmount);\n date.setDate(date.getDate() + amount);\n return date;\n}","import toInteger from '../_lib/toInteger/index.js';\nimport toDate from '../toDate/index.js';\nimport getDaysInMonth from '../getDaysInMonth/index.js';\nimport requiredArgs from '../_lib/requiredArgs/index.js';\n/**\n * @name addMonths\n * @category Month Helpers\n * @summary Add the specified number of months to the given date.\n *\n * @description\n * Add the specified number of months to the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of months to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the months added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 5 months to 1 September 2014:\n * var result = addMonths(new Date(2014, 8, 1), 5)\n * //=> Sun Feb 01 2015 00:00:00\n */\n\nexport default function addMonths(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var amount = toInteger(dirtyAmount);\n var desiredMonth = date.getMonth() + amount;\n var dateWithDesiredMonth = new Date(0);\n dateWithDesiredMonth.setFullYear(date.getFullYear(), desiredMonth, 1);\n dateWithDesiredMonth.setHours(0, 0, 0, 0);\n var daysInMonth = getDaysInMonth(dateWithDesiredMonth); // Set the last day of the new month\n // if the original date was the last day of the longer month\n\n date.setMonth(desiredMonth, Math.min(daysInMonth, date.getDate()));\n return date;\n}","import baseGetAllKeys from './_baseGetAllKeys.js';\nimport getSymbols from './_getSymbols.js';\nimport keys from './keys.js';\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nexport default getAllKeys;","'use strict';\n\nvar reactIs = require('react-is');\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\n\n\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\n\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;","module.exports = require(\"regenerator-runtime\");\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n'use strict';\n/**\n * WARNING: DO NOT manually require this module.\n * This is a replacement for `invariant(...)` used by the error code system\n * and will _only_ be required by the corresponding babel pass.\n * It always throws.\n */\n\nfunction reactProdInvariant(code) {\n var argCount = arguments.length - 1;\n var message = 'Minified React error #' + code + '; visit ' + 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + code;\n\n for (var argIdx = 0; argIdx < argCount; argIdx++) {\n message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]);\n }\n\n message += ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.';\n var error = new Error(message);\n error.name = 'Invariant Violation';\n error.framesToPop = 1; // we don't care about reactProdInvariant's own frame\n\n throw error;\n}\n\nmodule.exports = reactProdInvariant;","import { Router, __RouterContext, matchPath } from 'react-router';\nexport * from 'react-router';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport React from 'react';\nimport { createBrowserHistory, createHashHistory, createLocation } from 'history';\nimport PropTypes from 'prop-types';\nimport warning from 'tiny-warning';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';\nimport invariant from 'tiny-invariant';\n/**\n * The public API for a that uses HTML5 history.\n */\n\nvar BrowserRouter = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(BrowserRouter, _React$Component);\n\n function BrowserRouter() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.history = createBrowserHistory(_this.props);\n return _this;\n }\n\n var _proto = BrowserRouter.prototype;\n\n _proto.render = function render() {\n return React.createElement(Router, {\n history: this.history,\n children: this.props.children\n });\n };\n\n return BrowserRouter;\n}(React.Component);\n\nif (process.env.NODE_ENV !== \"production\") {\n BrowserRouter.propTypes = {\n basename: PropTypes.string,\n children: PropTypes.node,\n forceRefresh: PropTypes.bool,\n getUserConfirmation: PropTypes.func,\n keyLength: PropTypes.number\n };\n\n BrowserRouter.prototype.componentDidMount = function () {\n process.env.NODE_ENV !== \"production\" ? warning(!this.props.history, \" ignores the history prop. To use a custom history, \" + \"use `import { Router }` instead of `import { BrowserRouter as Router }`.\") : void 0;\n };\n}\n/**\n * The public API for a that uses window.location.hash.\n */\n\n\nvar HashRouter = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(HashRouter, _React$Component);\n\n function HashRouter() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n _this.history = createHashHistory(_this.props);\n return _this;\n }\n\n var _proto = HashRouter.prototype;\n\n _proto.render = function render() {\n return React.createElement(Router, {\n history: this.history,\n children: this.props.children\n });\n };\n\n return HashRouter;\n}(React.Component);\n\nif (process.env.NODE_ENV !== \"production\") {\n HashRouter.propTypes = {\n basename: PropTypes.string,\n children: PropTypes.node,\n getUserConfirmation: PropTypes.func,\n hashType: PropTypes.oneOf([\"hashbang\", \"noslash\", \"slash\"])\n };\n\n HashRouter.prototype.componentDidMount = function () {\n process.env.NODE_ENV !== \"production\" ? warning(!this.props.history, \" ignores the history prop. To use a custom history, \" + \"use `import { Router }` instead of `import { HashRouter as Router }`.\") : void 0;\n };\n}\n\nvar resolveToLocation = function resolveToLocation(to, currentLocation) {\n return typeof to === \"function\" ? to(currentLocation) : to;\n};\n\nvar normalizeToLocation = function normalizeToLocation(to, currentLocation) {\n return typeof to === \"string\" ? createLocation(to, null, null, currentLocation) : to;\n};\n\nvar forwardRefShim = function forwardRefShim(C) {\n return C;\n};\n\nvar forwardRef = React.forwardRef;\n\nif (typeof forwardRef === \"undefined\") {\n forwardRef = forwardRefShim;\n}\n\nfunction isModifiedEvent(event) {\n return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);\n}\n\nvar LinkAnchor = forwardRef(function (_ref, forwardedRef) {\n var innerRef = _ref.innerRef,\n navigate = _ref.navigate,\n _onClick = _ref.onClick,\n rest = _objectWithoutPropertiesLoose(_ref, [\"innerRef\", \"navigate\", \"onClick\"]);\n\n var target = rest.target;\n\n var props = _extends({}, rest, {\n onClick: function onClick(event) {\n try {\n if (_onClick) _onClick(event);\n } catch (ex) {\n event.preventDefault();\n throw ex;\n }\n\n if (!event.defaultPrevented && // onClick prevented default\n event.button === 0 && ( // ignore everything but left clicks\n !target || target === \"_self\") && // let browser handle \"target=_blank\" etc.\n !isModifiedEvent(event) // ignore clicks with modifier keys\n ) {\n event.preventDefault();\n navigate();\n }\n }\n }); // React 15 compat\n\n\n if (forwardRefShim !== forwardRef) {\n props.ref = forwardedRef || innerRef;\n } else {\n props.ref = innerRef;\n }\n\n return React.createElement(\"a\", props);\n});\n\nif (process.env.NODE_ENV !== \"production\") {\n LinkAnchor.displayName = \"LinkAnchor\";\n}\n/**\n * The public API for rendering a history-aware .\n */\n\n\nvar Link = forwardRef(function (_ref2, forwardedRef) {\n var _ref2$component = _ref2.component,\n component = _ref2$component === void 0 ? LinkAnchor : _ref2$component,\n replace = _ref2.replace,\n to = _ref2.to,\n innerRef = _ref2.innerRef,\n rest = _objectWithoutPropertiesLoose(_ref2, [\"component\", \"replace\", \"to\", \"innerRef\"]);\n\n return React.createElement(__RouterContext.Consumer, null, function (context) {\n !context ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"You should not use outside a \") : invariant(false) : void 0;\n var history = context.history;\n var location = normalizeToLocation(resolveToLocation(to, context.location), context.location);\n var href = location ? history.createHref(location) : \"\";\n\n var props = _extends({}, rest, {\n href: href,\n navigate: function navigate() {\n var location = resolveToLocation(to, context.location);\n var method = replace ? history.replace : history.push;\n method(location);\n }\n }); // React 15 compat\n\n\n if (forwardRefShim !== forwardRef) {\n props.ref = forwardedRef || innerRef;\n } else {\n props.innerRef = innerRef;\n }\n\n return React.createElement(component, props);\n });\n});\n\nif (process.env.NODE_ENV !== \"production\") {\n var toType = PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.func]);\n var refType = PropTypes.oneOfType([PropTypes.string, PropTypes.func, PropTypes.shape({\n current: PropTypes.any\n })]);\n Link.displayName = \"Link\";\n Link.propTypes = {\n innerRef: refType,\n onClick: PropTypes.func,\n replace: PropTypes.bool,\n target: PropTypes.string,\n to: toType.isRequired\n };\n}\n\nvar forwardRefShim$1 = function forwardRefShim(C) {\n return C;\n};\n\nvar forwardRef$1 = React.forwardRef;\n\nif (typeof forwardRef$1 === \"undefined\") {\n forwardRef$1 = forwardRefShim$1;\n}\n\nfunction joinClassnames() {\n for (var _len = arguments.length, classnames = new Array(_len), _key = 0; _key < _len; _key++) {\n classnames[_key] = arguments[_key];\n }\n\n return classnames.filter(function (i) {\n return i;\n }).join(\" \");\n}\n/**\n * A wrapper that knows if it's \"active\" or not.\n */\n\n\nvar NavLink = forwardRef$1(function (_ref, forwardedRef) {\n var _ref$ariaCurrent = _ref[\"aria-current\"],\n ariaCurrent = _ref$ariaCurrent === void 0 ? \"page\" : _ref$ariaCurrent,\n _ref$activeClassName = _ref.activeClassName,\n activeClassName = _ref$activeClassName === void 0 ? \"active\" : _ref$activeClassName,\n activeStyle = _ref.activeStyle,\n classNameProp = _ref.className,\n exact = _ref.exact,\n isActiveProp = _ref.isActive,\n locationProp = _ref.location,\n strict = _ref.strict,\n styleProp = _ref.style,\n to = _ref.to,\n innerRef = _ref.innerRef,\n rest = _objectWithoutPropertiesLoose(_ref, [\"aria-current\", \"activeClassName\", \"activeStyle\", \"className\", \"exact\", \"isActive\", \"location\", \"strict\", \"style\", \"to\", \"innerRef\"]);\n\n return React.createElement(__RouterContext.Consumer, null, function (context) {\n !context ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"You should not use outside a \") : invariant(false) : void 0;\n var currentLocation = locationProp || context.location;\n var toLocation = normalizeToLocation(resolveToLocation(to, currentLocation), currentLocation);\n var path = toLocation.pathname; // Regex taken from: https://github.com/pillarjs/path-to-regexp/blob/master/index.js#L202\n\n var escapedPath = path && path.replace(/([.+*?=^!:${}()[\\]|/\\\\])/g, \"\\\\$1\");\n var match = escapedPath ? matchPath(currentLocation.pathname, {\n path: escapedPath,\n exact: exact,\n strict: strict\n }) : null;\n var isActive = !!(isActiveProp ? isActiveProp(match, currentLocation) : match);\n var className = isActive ? joinClassnames(classNameProp, activeClassName) : classNameProp;\n var style = isActive ? _extends({}, styleProp, {}, activeStyle) : styleProp;\n\n var props = _extends({\n \"aria-current\": isActive && ariaCurrent || null,\n className: className,\n style: style,\n to: toLocation\n }, rest); // React 15 compat\n\n\n if (forwardRefShim$1 !== forwardRef$1) {\n props.ref = forwardedRef || innerRef;\n } else {\n props.innerRef = innerRef;\n }\n\n return React.createElement(Link, props);\n });\n});\n\nif (process.env.NODE_ENV !== \"production\") {\n NavLink.displayName = \"NavLink\";\n var ariaCurrentType = PropTypes.oneOf([\"page\", \"step\", \"location\", \"date\", \"time\", \"true\"]);\n NavLink.propTypes = _extends({}, Link.propTypes, {\n \"aria-current\": ariaCurrentType,\n activeClassName: PropTypes.string,\n activeStyle: PropTypes.object,\n className: PropTypes.string,\n exact: PropTypes.bool,\n isActive: PropTypes.func,\n location: PropTypes.object,\n strict: PropTypes.bool,\n style: PropTypes.object\n });\n}\n\nexport { BrowserRouter, HashRouter, Link, NavLink };","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\nexport default freeGlobal;","import baseGetTag from './_baseGetTag.js';\nimport isObject from './isObject.js';\n/** `Object#toString` result references. */\n\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n } // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n\n\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nexport default isFunction;","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/** Used to detect unsigned integer values. */\n\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length && (type == 'number' || type != 'symbol' && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;\n}\n\nexport default isIndex;","import arrayPush from './_arrayPush.js';\nimport isArray from './isArray.js';\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nexport default baseGetAllKeys;","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n\n return array;\n}\n\nexport default arrayPush;","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function (arg) {\n return func(transform(arg));\n };\n}\n\nexport default overArg;","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nexport default stubArray;","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n/** Used to stand-in for `undefined` hash values. */\n\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n/** Used as references for various `Number` constants. */\n\nvar INFINITY = 1 / 0,\n MAX_SAFE_INTEGER = 9007199254740991;\n/** `Object#toString` result references. */\n\nvar argsTag = '[object Arguments]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n symbolTag = '[object Symbol]';\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n/** Used to detect host constructors (Safari). */\n\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n/** Used to detect unsigned integer values. */\n\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n/** Detect free variable `global` from Node.js. */\n\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n/** Detect free variable `self`. */\n\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n/** Used as a reference to the global object. */\n\nvar root = freeGlobal || freeSelf || Function('return this')();\n/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\n\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0:\n return func.call(thisArg);\n\n case 1:\n return func.call(thisArg, args[0]);\n\n case 2:\n return func.call(thisArg, args[0], args[1]);\n\n case 3:\n return func.call(thisArg, args[0], args[1], args[2]);\n }\n\n return func.apply(thisArg, args);\n}\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n\n\nfunction arrayIncludes(array, value) {\n var length = array ? array.length : 0;\n return !!length && baseIndexOf(array, value, 0) > -1;\n}\n/**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n\n\nfunction arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array ? array.length : 0;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n\n return false;\n}\n/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n\n\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array ? array.length : 0,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n\n return result;\n}\n/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\n\n\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n\n return array;\n}\n/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n\n\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while (fromRight ? index-- : ++index < length) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n\n return -1;\n}\n/**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n\n\nfunction baseIndexOf(array, value, fromIndex) {\n if (value !== value) {\n return baseFindIndex(array, baseIsNaN, fromIndex);\n }\n\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n\n return -1;\n}\n/**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\n\n\nfunction baseIsNaN(value) {\n return value !== value;\n}\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\n\n\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n\n return result;\n}\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\n\n\nfunction baseUnary(func) {\n return function (value) {\n return func(value);\n };\n}\n/**\n * Checks if a cache value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n\n\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n\n\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n/**\n * Checks if `value` is a host object in IE < 9.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a host object, else `false`.\n */\n\n\nfunction isHostObject(value) {\n // Many host objects are `Object` objects that can coerce to strings\n // despite having improperly defined `toString` methods.\n var result = false;\n\n if (value != null && typeof value.toString != 'function') {\n try {\n result = !!(value + '');\n } catch (e) {}\n }\n\n return result;\n}\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\n\n\nfunction overArg(func, transform) {\n return function (arg) {\n return func(transform(arg));\n };\n}\n/** Used for built-in method references. */\n\n\nvar arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n/** Used to detect overreaching core-js shims. */\n\nvar coreJsData = root['__core-js_shared__'];\n/** Used to detect methods masquerading as native. */\n\nvar maskSrcKey = function () {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? 'Symbol(src)_1.' + uid : '';\n}();\n/** Used to resolve the decompiled source of functions. */\n\n\nvar funcToString = funcProto.toString;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n\nvar objectToString = objectProto.toString;\n/** Used to detect if a method is native. */\n\nvar reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&').replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$');\n/** Built-in value references. */\n\nvar Symbol = root.Symbol,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n/* Built-in method references for those with the same name as other `lodash` methods. */\n\nvar nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeMax = Math.max;\n/* Built-in method references that are verified to be native. */\n\nvar Map = getNative(root, 'Map'),\n nativeCreate = getNative(Object, 'create');\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n\nfunction Hash(entries) {\n var index = -1,\n length = entries ? entries.length : 0;\n this.clear();\n\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n\n\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n}\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n\n\nfunction hashDelete(key) {\n return this.has(key) && delete this.__data__[key];\n}\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n\n\nfunction hashGet(key) {\n var data = this.__data__;\n\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n\n\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);\n}\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n\n\nfunction hashSet(key, value) {\n var data = this.__data__;\n data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value;\n return this;\n} // Add methods to `Hash`.\n\n\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n\nfunction ListCache(entries) {\n var index = -1,\n length = entries ? entries.length : 0;\n this.clear();\n\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\n\n\nfunction listCacheClear() {\n this.__data__ = [];\n}\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n\n\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n\n var lastIndex = data.length - 1;\n\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n\n return true;\n}\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n\n\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n return index < 0 ? undefined : data[index][1];\n}\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n\n\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n\n\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n\n return this;\n} // Add methods to `ListCache`.\n\n\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n\nfunction MapCache(entries) {\n var index = -1,\n length = entries ? entries.length : 0;\n this.clear();\n\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n\n\nfunction mapCacheClear() {\n this.__data__ = {\n 'hash': new Hash(),\n 'map': new (Map || ListCache)(),\n 'string': new Hash()\n };\n}\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n\n\nfunction mapCacheDelete(key) {\n return getMapData(this, key)['delete'](key);\n}\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n\n\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n\n\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n\n\nfunction mapCacheSet(key, value) {\n getMapData(this, key).set(key, value);\n return this;\n} // Add methods to `MapCache`.\n\n\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n\nfunction SetCache(values) {\n var index = -1,\n length = values ? values.length : 0;\n this.__data__ = new MapCache();\n\n while (++index < length) {\n this.add(values[index]);\n }\n}\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n\n\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n\n return this;\n}\n/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\n\n\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n} // Add methods to `SetCache`.\n\n\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n\nfunction arrayLikeKeys(value, inherited) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n // Safari 9 makes `arguments.length` enumerable in strict mode.\n var result = isArray(value) || isArguments(value) ? baseTimes(value.length, String) : [];\n var length = result.length,\n skipIndexes = !!length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == 'length' || isIndex(key, length)))) {\n result.push(key);\n }\n }\n\n return result;\n}\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n\n\nfunction assocIndexOf(array, key) {\n var length = array.length;\n\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n\n return -1;\n}\n/**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\n\n\nfunction baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n } else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n\n outer: while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n value = comparator || value !== 0 ? value : 0;\n\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n\n result.push(value);\n } else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n\n return result;\n}\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\n\n\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n\n return result;\n}\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n\n\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n\n\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n\n var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n\n\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n\n return result;\n}\n/**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} props The property identifiers to pick.\n * @returns {Object} Returns the new object.\n */\n\n\nfunction basePick(object, props) {\n object = Object(object);\n return basePickBy(object, props, function (value, key) {\n return key in object;\n });\n}\n/**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} props The property identifiers to pick from.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\n\n\nfunction basePickBy(object, props, predicate) {\n var index = -1,\n length = props.length,\n result = {};\n\n while (++index < length) {\n var key = props[index],\n value = object[key];\n\n if (predicate(value, key)) {\n result[key] = value;\n }\n }\n\n return result;\n}\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\n\n\nfunction baseRest(func, start) {\n start = nativeMax(start === undefined ? func.length - 1 : start, 0);\n return function () {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n\n index = -1;\n var otherArgs = Array(start + 1);\n\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n\n otherArgs[start] = array;\n return apply(func, this, otherArgs);\n };\n}\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n\n\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n\n\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map;\n}\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n\n\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n/**\n * Creates an array of the own enumerable symbol properties of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n\n\nvar getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;\n/**\n * Creates an array of the own and inherited enumerable symbol properties\n * of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function (object) {\n var result = [];\n\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n\n return result;\n};\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\n\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n\n\nfunction isIndex(value, length) {\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length && (typeof value == 'number' || reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;\n}\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\n\n\nfunction isKeyable(value) {\n var type = typeof value;\n return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' : value === null;\n}\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n\n\nfunction isMasked(func) {\n return !!maskSrcKey && maskSrcKey in func;\n}\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n\n\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = typeof Ctor == 'function' && Ctor.prototype || objectProto;\n return value === proto;\n}\n/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n\n\nfunction nativeKeysIn(object) {\n var result = [];\n\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n\n return result;\n}\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\n\n\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n\n var result = value + '';\n return result == '0' && 1 / value == -INFINITY ? '-0' : result;\n}\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to process.\n * @returns {string} Returns the source code.\n */\n\n\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n\n try {\n return func + '';\n } catch (e) {}\n }\n\n return '';\n}\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\n\n\nfunction eq(value, other) {\n return value === other || value !== value && other !== other;\n}\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n\n\nfunction isArguments(value) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\n\n\nvar isArray = Array.isArray;\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n\n\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n\n\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 8-9 which returns 'object' for typed array and other constructors.\n var tag = isObject(value) ? objectToString.call(value) : '';\n return tag == funcTag || tag == genTag;\n}\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n\n\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n\n\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n\n\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\n\n\nfunction isSymbol(value) {\n return typeof value == 'symbol' || isObjectLike(value) && objectToString.call(value) == symbolTag;\n}\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n\n\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n/**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable string keyed properties of `object` that are\n * not omitted.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [props] The property identifiers to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\n\n\nvar omit = baseRest(function (object, props) {\n if (object == null) {\n return {};\n }\n\n props = arrayMap(baseFlatten(props, 1), toKey);\n return basePick(object, baseDifference(getAllKeysIn(object), props));\n});\n/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\n\nfunction stubArray() {\n return [];\n}\n\nmodule.exports = omit;","import toInteger from '../_lib/toInteger/index.js';\nimport addMilliseconds from '../addMilliseconds/index.js';\nimport requiredArgs from '../_lib/requiredArgs/index.js';\n/**\n * @name subMilliseconds\n * @category Millisecond Helpers\n * @summary Subtract the specified number of milliseconds from the given date.\n *\n * @description\n * Subtract the specified number of milliseconds from the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the milliseconds subtracted\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:\n * var result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)\n * //=> Thu Jul 10 2014 12:45:29.250\n */\n\nexport default function subMilliseconds(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var amount = toInteger(dirtyAmount);\n return addMilliseconds(dirtyDate, -amount);\n}","function dateLongFormatter(pattern, formatLong) {\n switch (pattern) {\n case 'P':\n return formatLong.date({\n width: 'short'\n });\n\n case 'PP':\n return formatLong.date({\n width: 'medium'\n });\n\n case 'PPP':\n return formatLong.date({\n width: 'long'\n });\n\n case 'PPPP':\n default:\n return formatLong.date({\n width: 'full'\n });\n }\n}\n\nfunction timeLongFormatter(pattern, formatLong) {\n switch (pattern) {\n case 'p':\n return formatLong.time({\n width: 'short'\n });\n\n case 'pp':\n return formatLong.time({\n width: 'medium'\n });\n\n case 'ppp':\n return formatLong.time({\n width: 'long'\n });\n\n case 'pppp':\n default:\n return formatLong.time({\n width: 'full'\n });\n }\n}\n\nfunction dateTimeLongFormatter(pattern, formatLong) {\n var matchResult = pattern.match(/(P+)(p+)?/);\n var datePattern = matchResult[1];\n var timePattern = matchResult[2];\n\n if (!timePattern) {\n return dateLongFormatter(pattern, formatLong);\n }\n\n var dateTimeFormat;\n\n switch (datePattern) {\n case 'P':\n dateTimeFormat = formatLong.dateTime({\n width: 'short'\n });\n break;\n\n case 'PP':\n dateTimeFormat = formatLong.dateTime({\n width: 'medium'\n });\n break;\n\n case 'PPP':\n dateTimeFormat = formatLong.dateTime({\n width: 'long'\n });\n break;\n\n case 'PPPP':\n default:\n dateTimeFormat = formatLong.dateTime({\n width: 'full'\n });\n break;\n }\n\n return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));\n}\n\nvar longFormatters = {\n p: timeLongFormatter,\n P: dateTimeLongFormatter\n};\nexport default longFormatters;","import toDate from '../../toDate/index.js';\nimport startOfUTCISOWeek from '../startOfUTCISOWeek/index.js';\nimport requiredArgs from '../requiredArgs/index.js'; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function getUTCISOWeekYear(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var year = date.getUTCFullYear();\n var fourthOfJanuaryOfNextYear = new Date(0);\n fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);\n fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);\n var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear);\n var fourthOfJanuaryOfThisYear = new Date(0);\n fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);\n fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);\n var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);\n\n if (date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}","import toDate from '../toDate/index.js';\nimport requiredArgs from '../_lib/requiredArgs/index.js';\n/**\n * @name getDaysInMonth\n * @category Month Helpers\n * @summary Get the number of days in a month of the given date.\n *\n * @description\n * Get the number of days in a month of the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the given date\n * @returns {Number} the number of days in a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // How many days are in February 2000?\n * var result = getDaysInMonth(new Date(2000, 1))\n * //=> 29\n */\n\nexport default function getDaysInMonth(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var year = date.getFullYear();\n var monthIndex = date.getMonth();\n var lastDayOfMonth = new Date(0);\n lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);\n lastDayOfMonth.setHours(0, 0, 0, 0);\n return lastDayOfMonth.getDate();\n}","import toDate from '../toDate/index.js';\nimport requiredArgs from '../_lib/requiredArgs/index.js';\n/**\n * @name startOfQuarter\n * @category Quarter Helpers\n * @summary Return the start of a year quarter for the given date.\n *\n * @description\n * Return the start of a year quarter for the given date.\n * The result will be in the local timezone.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the start of a quarter\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The start of a quarter for 2 September 2014 11:55:00:\n * var result = startOfQuarter(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Jul 01 2014 00:00:00\n */\n\nexport default function startOfQuarter(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var currentMonth = date.getMonth();\n var month = currentMonth - currentMonth % 3;\n date.setMonth(month, 1);\n date.setHours(0, 0, 0, 0);\n return date;\n}","var formatDistanceLocale = {\n lessThanXSeconds: {\n one: 'less than a second',\n other: 'less than {{count}} seconds'\n },\n xSeconds: {\n one: '1 second',\n other: '{{count}} seconds'\n },\n halfAMinute: 'half a minute',\n lessThanXMinutes: {\n one: 'less than a minute',\n other: 'less than {{count}} minutes'\n },\n xMinutes: {\n one: '1 minute',\n other: '{{count}} minutes'\n },\n aboutXHours: {\n one: 'about 1 hour',\n other: 'about {{count}} hours'\n },\n xHours: {\n one: '1 hour',\n other: '{{count}} hours'\n },\n xDays: {\n one: '1 day',\n other: '{{count}} days'\n },\n aboutXMonths: {\n one: 'about 1 month',\n other: 'about {{count}} months'\n },\n xMonths: {\n one: '1 month',\n other: '{{count}} months'\n },\n aboutXYears: {\n one: 'about 1 year',\n other: 'about {{count}} years'\n },\n xYears: {\n one: '1 year',\n other: '{{count}} years'\n },\n overXYears: {\n one: 'over 1 year',\n other: 'over {{count}} years'\n },\n almostXYears: {\n one: 'almost 1 year',\n other: 'almost {{count}} years'\n }\n};\nexport default function formatDistance(token, count, options) {\n options = options || {};\n var result;\n\n if (typeof formatDistanceLocale[token] === 'string') {\n result = formatDistanceLocale[token];\n } else if (count === 1) {\n result = formatDistanceLocale[token].one;\n } else {\n result = formatDistanceLocale[token].other.replace('{{count}}', count);\n }\n\n if (options.addSuffix) {\n if (options.comparison > 0) {\n return 'in ' + result;\n } else {\n return result + ' ago';\n }\n }\n\n return result;\n}","export default function buildFormatLongFn(args) {\n return function (dirtyOptions) {\n var options = dirtyOptions || {};\n var width = options.width ? String(options.width) : args.defaultWidth;\n var format = args.formats[width] || args.formats[args.defaultWidth];\n return format;\n };\n}","import buildFormatLongFn from '../../../_lib/buildFormatLongFn/index.js';\nvar dateFormats = {\n full: 'EEEE, MMMM do, y',\n long: 'MMMM do, y',\n medium: 'MMM d, y',\n short: 'MM/dd/yyyy'\n};\nvar timeFormats = {\n full: 'h:mm:ss a zzzz',\n long: 'h:mm:ss a z',\n medium: 'h:mm:ss a',\n short: 'h:mm a'\n};\nvar dateTimeFormats = {\n full: \"{{date}} 'at' {{time}}\",\n long: \"{{date}} 'at' {{time}}\",\n medium: '{{date}}, {{time}}',\n short: '{{date}}, {{time}}'\n};\nvar formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: 'full'\n }),\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: 'full'\n }),\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: 'full'\n })\n};\nexport default formatLong;","var formatRelativeLocale = {\n lastWeek: \"'last' eeee 'at' p\",\n yesterday: \"'yesterday at' p\",\n today: \"'today at' p\",\n tomorrow: \"'tomorrow at' p\",\n nextWeek: \"eeee 'at' p\",\n other: 'P'\n};\nexport default function formatRelative(token, _date, _baseDate, _options) {\n return formatRelativeLocale[token];\n}","export default function buildLocalizeFn(args) {\n return function (dirtyIndex, dirtyOptions) {\n var options = dirtyOptions || {};\n var context = options.context ? String(options.context) : 'standalone';\n var valuesArray;\n\n if (context === 'formatting' && args.formattingValues) {\n var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;\n var width = options.width ? String(options.width) : defaultWidth;\n valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];\n } else {\n var _defaultWidth = args.defaultWidth;\n\n var _width = options.width ? String(options.width) : args.defaultWidth;\n\n valuesArray = args.values[_width] || args.values[_defaultWidth];\n }\n\n var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex;\n return valuesArray[index];\n };\n}","export default function buildMatchFn(args) {\n return function (dirtyString, dirtyOptions) {\n var string = String(dirtyString);\n var options = dirtyOptions || {};\n var width = options.width;\n var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];\n var matchResult = string.match(matchPattern);\n\n if (!matchResult) {\n return null;\n }\n\n var matchedString = matchResult[0];\n var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];\n var value;\n\n if (Object.prototype.toString.call(parsePatterns) === '[object Array]') {\n value = findIndex(parsePatterns, function (pattern) {\n return pattern.test(string);\n });\n } else {\n value = findKey(parsePatterns, function (pattern) {\n return pattern.test(string);\n });\n }\n\n value = args.valueCallback ? args.valueCallback(value) : value;\n value = options.valueCallback ? options.valueCallback(value) : value;\n return {\n value: value,\n rest: string.slice(matchedString.length)\n };\n };\n}\n\nfunction findKey(object, predicate) {\n for (var key in object) {\n if (object.hasOwnProperty(key) && predicate(object[key])) {\n return key;\n }\n }\n}\n\nfunction findIndex(array, predicate) {\n for (var key = 0; key < array.length; key++) {\n if (predicate(array[key])) {\n return key;\n }\n }\n}","import buildMatchPatternFn from '../../../_lib/buildMatchPatternFn/index.js';\nimport buildMatchFn from '../../../_lib/buildMatchFn/index.js';\nvar matchOrdinalNumberPattern = /^(\\d+)(th|st|nd|rd)?/i;\nvar parseOrdinalNumberPattern = /\\d+/i;\nvar matchEraPatterns = {\n narrow: /^(b|a)/i,\n abbreviated: /^(b\\.?\\s?c\\.?|b\\.?\\s?c\\.?\\s?e\\.?|a\\.?\\s?d\\.?|c\\.?\\s?e\\.?)/i,\n wide: /^(before christ|before common era|anno domini|common era)/i\n};\nvar parseEraPatterns = {\n any: [/^b/i, /^(a|c)/i]\n};\nvar matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^q[1234]/i,\n wide: /^[1234](th|st|nd|rd)? quarter/i\n};\nvar parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i]\n};\nvar matchMonthPatterns = {\n narrow: /^[jfmasond]/i,\n abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,\n wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i\n};\nvar parseMonthPatterns = {\n narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],\n any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]\n};\nvar matchDayPatterns = {\n narrow: /^[smtwf]/i,\n short: /^(su|mo|tu|we|th|fr|sa)/i,\n abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,\n wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i\n};\nvar parseDayPatterns = {\n narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],\n any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]\n};\nvar matchDayPeriodPatterns = {\n narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,\n any: /^([ap]\\.?\\s?m\\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i\n};\nvar parseDayPeriodPatterns = {\n any: {\n am: /^a/i,\n pm: /^p/i,\n midnight: /^mi/i,\n noon: /^no/i,\n morning: /morning/i,\n afternoon: /afternoon/i,\n evening: /evening/i,\n night: /night/i\n }\n};\nvar match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: function valueCallback(value) {\n return parseInt(value, 10);\n }\n }),\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseEraPatterns,\n defaultParseWidth: 'any'\n }),\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: 'any',\n valueCallback: function valueCallback(index) {\n return index + 1;\n }\n }),\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: 'any'\n }),\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: 'wide',\n parsePatterns: parseDayPatterns,\n defaultParseWidth: 'any'\n }),\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: 'any',\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: 'any'\n })\n};\nexport default match;","export default function buildMatchPatternFn(args) {\n return function (dirtyString, dirtyOptions) {\n var string = String(dirtyString);\n var options = dirtyOptions || {};\n var matchResult = string.match(args.matchPattern);\n\n if (!matchResult) {\n return null;\n }\n\n var matchedString = matchResult[0];\n var parseResult = string.match(args.parsePattern);\n\n if (!parseResult) {\n return null;\n }\n\n var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];\n value = options.valueCallback ? options.valueCallback(value) : value;\n return {\n value: value,\n rest: string.slice(matchedString.length)\n };\n };\n}","import formatDistance from './_lib/formatDistance/index.js';\nimport formatLong from './_lib/formatLong/index.js';\nimport formatRelative from './_lib/formatRelative/index.js';\nimport localize from './_lib/localize/index.js';\nimport match from './_lib/match/index.js';\n/**\n * @type {Locale}\n * @category Locales\n * @summary English locale (United States).\n * @language English\n * @iso-639-2 eng\n * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}\n * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}\n */\n\nvar locale = {\n code: 'en-US',\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 0\n /* Sunday */\n ,\n firstWeekContainsDate: 1\n }\n};\nexport default locale;","import buildLocalizeFn from '../../../_lib/buildLocalizeFn/index.js';\nvar eraValues = {\n narrow: ['B', 'A'],\n abbreviated: ['BC', 'AD'],\n wide: ['Before Christ', 'Anno Domini']\n};\nvar quarterValues = {\n narrow: ['1', '2', '3', '4'],\n abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],\n wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter'] // Note: in English, the names of days of the week and months are capitalized.\n // If you are making a new locale based on this one, check if the same is true for the language you're working on.\n // Generally, formatted dates should look like they are in the middle of a sentence,\n // e.g. in Spanish language the weekdays and months should be in the lowercase.\n\n};\nvar monthValues = {\n narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],\n abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']\n};\nvar dayValues = {\n narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],\n short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']\n};\nvar dayPeriodValues = {\n narrow: {\n am: 'a',\n pm: 'p',\n midnight: 'mi',\n noon: 'n',\n morning: 'morning',\n afternoon: 'afternoon',\n evening: 'evening',\n night: 'night'\n },\n abbreviated: {\n am: 'AM',\n pm: 'PM',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'morning',\n afternoon: 'afternoon',\n evening: 'evening',\n night: 'night'\n },\n wide: {\n am: 'a.m.',\n pm: 'p.m.',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'morning',\n afternoon: 'afternoon',\n evening: 'evening',\n night: 'night'\n }\n};\nvar formattingDayPeriodValues = {\n narrow: {\n am: 'a',\n pm: 'p',\n midnight: 'mi',\n noon: 'n',\n morning: 'in the morning',\n afternoon: 'in the afternoon',\n evening: 'in the evening',\n night: 'at night'\n },\n abbreviated: {\n am: 'AM',\n pm: 'PM',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'in the morning',\n afternoon: 'in the afternoon',\n evening: 'in the evening',\n night: 'at night'\n },\n wide: {\n am: 'a.m.',\n pm: 'p.m.',\n midnight: 'midnight',\n noon: 'noon',\n morning: 'in the morning',\n afternoon: 'in the afternoon',\n evening: 'in the evening',\n night: 'at night'\n }\n};\n\nfunction ordinalNumber(dirtyNumber, _dirtyOptions) {\n var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,\n // if they are different for different grammatical genders,\n // use `options.unit`:\n //\n // var options = dirtyOptions || {}\n // var unit = String(options.unit)\n //\n // where `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',\n // 'day', 'hour', 'minute', 'second'\n\n var rem100 = number % 100;\n\n if (rem100 > 20 || rem100 < 10) {\n switch (rem100 % 10) {\n case 1:\n return number + 'st';\n\n case 2:\n return number + 'nd';\n\n case 3:\n return number + 'rd';\n }\n }\n\n return number + 'th';\n}\n\nvar localize = {\n ordinalNumber: ordinalNumber,\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: 'wide'\n }),\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: 'wide',\n argumentCallback: function argumentCallback(quarter) {\n return Number(quarter) - 1;\n }\n }),\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: 'wide'\n }),\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: 'wide'\n }),\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: 'wide',\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: 'wide'\n })\n};\nexport default localize;","import MapCache from './_MapCache.js';\n/** Error message constants. */\n\nvar FUNC_ERROR_TEXT = 'Expected a function';\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\n\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || resolver != null && typeof resolver != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n\n var memoized = function memoized() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n\n memoized.cache = new (memoize.Cache || MapCache)();\n return memoized;\n} // Expose `MapCache`.\n\n\nmemoize.Cache = MapCache;\nexport default memoize;","import memoize from './memoize.js';\n/** Used as the maximum memoize cache size. */\n\nvar MAX_MEMOIZE_SIZE = 500;\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\n\nfunction memoizeCapped(func) {\n var result = memoize(func, function (key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n\n return key;\n });\n var cache = result.cache;\n return result;\n}\n\nexport default memoizeCapped;","import memoizeCapped from './_memoizeCapped.js';\n/** Used to match property names within property paths. */\n\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n/** Used to match backslashes in property paths. */\n\nvar reEscapeChar = /\\\\(\\\\)?/g;\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\n\nvar stringToPath = memoizeCapped(function (string) {\n var result = [];\n\n if (string.charCodeAt(0) === 46\n /* . */\n ) {\n result.push('');\n }\n\n string.replace(rePropName, function (match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : number || match);\n });\n return result;\n});\nexport default stringToPath;","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n/** `Object#toString` result references. */\n\nvar argsTag = '[object Arguments]';\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nexport default baseIsArguments;","import baseIsArguments from './_baseIsArguments.js';\nimport isObjectLike from './isObjectLike.js';\n/** Used for built-in method references. */\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/** Built-in value references. */\n\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n\nvar isArguments = baseIsArguments(function () {\n return arguments;\n}()) ? baseIsArguments : function (value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee');\n};\nexport default isArguments;","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n\n return result;\n}\n\nexport default baseTimes;","import baseTimes from './_baseTimes.js';\nimport isArguments from './isArguments.js';\nimport isArray from './isArray.js';\nimport isBuffer from './isBuffer.js';\nimport isIndex from './_isIndex.js';\nimport isTypedArray from './isTypedArray.js';\n/** Used for built-in method references. */\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && ( // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' || // Node.js 0.10 has enumerable non-index properties on buffers.\n isBuff && (key == 'offset' || key == 'parent') || // PhantomJS 2 has enumerable non-index properties on typed arrays.\n isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset') || // Skip index properties.\n isIndex(key, length)))) {\n result.push(key);\n }\n }\n\n return result;\n}\n\nexport default arrayLikeKeys;","import toInteger from '../toInteger/index.js';\nimport getUTCWeekYear from '../getUTCWeekYear/index.js';\nimport startOfUTCWeek from '../startOfUTCWeek/index.js';\nimport requiredArgs from '../requiredArgs/index.js'; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function startOfUTCWeekYear(dirtyDate, dirtyOptions) {\n requiredArgs(1, arguments);\n var options = dirtyOptions || {};\n var locale = options.locale;\n var localeFirstWeekContainsDate = locale && locale.options && locale.options.firstWeekContainsDate;\n var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);\n var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate);\n var year = getUTCWeekYear(dirtyDate, dirtyOptions);\n var firstWeek = new Date(0);\n firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);\n firstWeek.setUTCHours(0, 0, 0, 0);\n var date = startOfUTCWeek(firstWeek, dirtyOptions);\n return date;\n}","import toDate from '../../toDate/index.js';\nimport startOfUTCWeek from '../startOfUTCWeek/index.js';\nimport startOfUTCWeekYear from '../startOfUTCWeekYear/index.js';\nimport requiredArgs from '../requiredArgs/index.js';\nvar MILLISECONDS_IN_WEEK = 604800000; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function getUTCWeek(dirtyDate, options) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime(); // Round the number of days to the nearest integer\n // because the number of milliseconds in a week is not constant\n // (e.g. it's different in the week of the daylight saving time clock shift)\n\n return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;\n}","import getUTCISOWeekYear from '../getUTCISOWeekYear/index.js';\nimport startOfUTCISOWeek from '../startOfUTCISOWeek/index.js';\nimport requiredArgs from '../requiredArgs/index.js'; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function startOfUTCISOWeekYear(dirtyDate) {\n requiredArgs(1, arguments);\n var year = getUTCISOWeekYear(dirtyDate);\n var fourthOfJanuary = new Date(0);\n fourthOfJanuary.setUTCFullYear(year, 0, 4);\n fourthOfJanuary.setUTCHours(0, 0, 0, 0);\n var date = startOfUTCISOWeek(fourthOfJanuary);\n return date;\n}","import toDate from '../../toDate/index.js';\nimport startOfUTCISOWeek from '../startOfUTCISOWeek/index.js';\nimport startOfUTCISOWeekYear from '../startOfUTCISOWeekYear/index.js';\nimport requiredArgs from '../requiredArgs/index.js';\nvar MILLISECONDS_IN_WEEK = 604800000; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function getUTCISOWeek(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime(); // Round the number of days to the nearest integer\n // because the number of milliseconds in a week is not constant\n // (e.g. it's different in the week of the daylight saving time clock shift)\n\n return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;\n}","import baseGetTag from './_baseGetTag.js';\nimport isLength from './isLength.js';\nimport isObjectLike from './isObjectLike.js';\n/** `Object#toString` result references. */\n\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n/** Used to identify `toStringTag` values of typed arrays. */\n\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\n\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nexport default baseIsTypedArray;","import baseIsTypedArray from './_baseIsTypedArray.js';\nimport baseUnary from './_baseUnary.js';\nimport nodeUtil from './_nodeUtil.js';\n/* Node.js helper references. */\n\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\nexport default isTypedArray;","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n'use strict';\n\nvar emptyFunction = require('./emptyFunction');\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\n\nvar warning = emptyFunction;\n\nif (process.env.NODE_ENV !== 'production') {\n var printWarning = function printWarning(format) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n warning = function warning(condition, format) {\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (format.indexOf('Failed Composite propType: ') === 0) {\n return; // Ignore CompositeComponent proptype check.\n }\n\n if (!condition) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(undefined, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}","module.exports = function (originalModule) {\n if (!originalModule.webpackPolyfill) {\n var module = Object.create(originalModule); // module.parent = undefined by default\n\n if (!module.children) module.children = [];\n Object.defineProperty(module, \"loaded\", {\n enumerable: true,\n get: function get() {\n return module.l;\n }\n });\n Object.defineProperty(module, \"id\", {\n enumerable: true,\n get: function get() {\n return module.i;\n }\n });\n Object.defineProperty(module, \"exports\", {\n enumerable: true\n });\n module.webpackPolyfill = 1;\n }\n\n return module;\n};","'use strict';\n\nvar undefined;\nvar $SyntaxError = SyntaxError;\nvar $Function = Function;\nvar $TypeError = TypeError; // eslint-disable-next-line consistent-return\n\nvar getEvalledConstructor = function getEvalledConstructor(expressionSyntax) {\n try {\n return $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n } catch (e) {}\n};\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\n\nif ($gOPD) {\n try {\n $gOPD({}, '');\n } catch (e) {\n $gOPD = null; // this is IE 8, which has a broken gOPD\n }\n}\n\nvar throwTypeError = function throwTypeError() {\n throw new $TypeError();\n};\n\nvar ThrowTypeError = $gOPD ? function () {\n try {\n // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n arguments.callee; // IE 8 does not throw here\n\n return throwTypeError;\n } catch (calleeThrows) {\n try {\n // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n return $gOPD(arguments, 'callee').get;\n } catch (gOPDthrows) {\n return throwTypeError;\n }\n }\n}() : throwTypeError;\n\nvar hasSymbols = require('has-symbols')();\n\nvar getProto = Object.getPrototypeOf || function (x) {\n return x.__proto__;\n}; // eslint-disable-line no-proto\n\n\nvar needsEval = {};\nvar TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);\nvar INTRINSICS = {\n '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n '%Array%': Array,\n '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,\n '%AsyncFromSyncIteratorPrototype%': undefined,\n '%AsyncFunction%': needsEval,\n '%AsyncGenerator%': needsEval,\n '%AsyncGeneratorFunction%': needsEval,\n '%AsyncIteratorPrototype%': needsEval,\n '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n '%Boolean%': Boolean,\n '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n '%Date%': Date,\n '%decodeURI%': decodeURI,\n '%decodeURIComponent%': decodeURIComponent,\n '%encodeURI%': encodeURI,\n '%encodeURIComponent%': encodeURIComponent,\n '%Error%': Error,\n '%eval%': eval,\n // eslint-disable-line no-eval\n '%EvalError%': EvalError,\n '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n '%Function%': $Function,\n '%GeneratorFunction%': needsEval,\n '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n '%isFinite%': isFinite,\n '%isNaN%': isNaN,\n '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,\n '%JSON%': typeof JSON === 'object' ? JSON : undefined,\n '%Map%': typeof Map === 'undefined' ? undefined : Map,\n '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),\n '%Math%': Math,\n '%Number%': Number,\n '%Object%': Object,\n '%parseFloat%': parseFloat,\n '%parseInt%': parseInt,\n '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n '%RangeError%': RangeError,\n '%ReferenceError%': ReferenceError,\n '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n '%RegExp%': RegExp,\n '%Set%': typeof Set === 'undefined' ? undefined : Set,\n '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),\n '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n '%String%': String,\n '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,\n '%Symbol%': hasSymbols ? Symbol : undefined,\n '%SyntaxError%': $SyntaxError,\n '%ThrowTypeError%': ThrowTypeError,\n '%TypedArray%': TypedArray,\n '%TypeError%': $TypeError,\n '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n '%URIError%': URIError,\n '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet\n};\n\nvar doEval = function doEval(name) {\n var value;\n\n if (name === '%AsyncFunction%') {\n value = getEvalledConstructor('async function () {}');\n } else if (name === '%GeneratorFunction%') {\n value = getEvalledConstructor('function* () {}');\n } else if (name === '%AsyncGeneratorFunction%') {\n value = getEvalledConstructor('async function* () {}');\n } else if (name === '%AsyncGenerator%') {\n var fn = doEval('%AsyncGeneratorFunction%');\n\n if (fn) {\n value = fn.prototype;\n }\n } else if (name === '%AsyncIteratorPrototype%') {\n var gen = doEval('%AsyncGenerator%');\n\n if (gen) {\n value = getProto(gen.prototype);\n }\n }\n\n INTRINSICS[name] = value;\n return value;\n};\n\nvar LEGACY_ALIASES = {\n '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n '%ArrayPrototype%': ['Array', 'prototype'],\n '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n '%ArrayProto_values%': ['Array', 'prototype', 'values'],\n '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n '%BooleanPrototype%': ['Boolean', 'prototype'],\n '%DataViewPrototype%': ['DataView', 'prototype'],\n '%DatePrototype%': ['Date', 'prototype'],\n '%ErrorPrototype%': ['Error', 'prototype'],\n '%EvalErrorPrototype%': ['EvalError', 'prototype'],\n '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n '%FunctionPrototype%': ['Function', 'prototype'],\n '%Generator%': ['GeneratorFunction', 'prototype'],\n '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n '%JSONParse%': ['JSON', 'parse'],\n '%JSONStringify%': ['JSON', 'stringify'],\n '%MapPrototype%': ['Map', 'prototype'],\n '%NumberPrototype%': ['Number', 'prototype'],\n '%ObjectPrototype%': ['Object', 'prototype'],\n '%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n '%PromisePrototype%': ['Promise', 'prototype'],\n '%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n '%Promise_all%': ['Promise', 'all'],\n '%Promise_reject%': ['Promise', 'reject'],\n '%Promise_resolve%': ['Promise', 'resolve'],\n '%RangeErrorPrototype%': ['RangeError', 'prototype'],\n '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n '%RegExpPrototype%': ['RegExp', 'prototype'],\n '%SetPrototype%': ['Set', 'prototype'],\n '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n '%StringPrototype%': ['String', 'prototype'],\n '%SymbolPrototype%': ['Symbol', 'prototype'],\n '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n '%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n '%TypeErrorPrototype%': ['TypeError', 'prototype'],\n '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n '%URIErrorPrototype%': ['URIError', 'prototype'],\n '%WeakMapPrototype%': ['WeakMap', 'prototype'],\n '%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = require('function-bind');\n\nvar hasOwn = require('has');\n\nvar $concat = bind.call(Function.call, Array.prototype.concat);\nvar $spliceApply = bind.call(Function.apply, Array.prototype.splice);\nvar $replace = bind.call(Function.call, String.prototype.replace);\nvar $strSlice = bind.call(Function.call, String.prototype.slice);\nvar $exec = bind.call(Function.call, RegExp.prototype.exec);\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\n\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g;\n/** Used to match backslashes in property paths. */\n\nvar stringToPath = function stringToPath(string) {\n var first = $strSlice(string, 0, 1);\n var last = $strSlice(string, -1);\n\n if (first === '%' && last !== '%') {\n throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n } else if (last === '%' && first !== '%') {\n throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n }\n\n var result = [];\n $replace(string, rePropName, function (match, number, quote, subString) {\n result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n });\n return result;\n};\n/* end adaptation */\n\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n var intrinsicName = name;\n var alias;\n\n if (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n alias = LEGACY_ALIASES[intrinsicName];\n intrinsicName = '%' + alias[0] + '%';\n }\n\n if (hasOwn(INTRINSICS, intrinsicName)) {\n var value = INTRINSICS[intrinsicName];\n\n if (value === needsEval) {\n value = doEval(intrinsicName);\n }\n\n if (typeof value === 'undefined' && !allowMissing) {\n throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n }\n\n return {\n alias: alias,\n name: intrinsicName,\n value: value\n };\n }\n\n throw new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n if (typeof name !== 'string' || name.length === 0) {\n throw new $TypeError('intrinsic name must be a non-empty string');\n }\n\n if (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n throw new $TypeError('\"allowMissing\" argument must be a boolean');\n }\n\n if ($exec(/^%?[^%]*%?$/, name) === null) {\n throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n }\n\n var parts = stringToPath(name);\n var intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n var intrinsicRealName = intrinsic.name;\n var value = intrinsic.value;\n var skipFurtherCaching = false;\n var alias = intrinsic.alias;\n\n if (alias) {\n intrinsicBaseName = alias[0];\n $spliceApply(parts, $concat([0, 1], alias));\n }\n\n for (var i = 1, isOwn = true; i < parts.length; i += 1) {\n var part = parts[i];\n var first = $strSlice(part, 0, 1);\n var last = $strSlice(part, -1);\n\n if ((first === '\"' || first === \"'\" || first === '`' || last === '\"' || last === \"'\" || last === '`') && first !== last) {\n throw new $SyntaxError('property names with quotes must have matching quotes');\n }\n\n if (part === 'constructor' || !isOwn) {\n skipFurtherCaching = true;\n }\n\n intrinsicBaseName += '.' + part;\n intrinsicRealName = '%' + intrinsicBaseName + '%';\n\n if (hasOwn(INTRINSICS, intrinsicRealName)) {\n value = INTRINSICS[intrinsicRealName];\n } else if (value != null) {\n if (!(part in value)) {\n if (!allowMissing) {\n throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n }\n\n return void undefined;\n }\n\n if ($gOPD && i + 1 >= parts.length) {\n var desc = $gOPD(value, part);\n isOwn = !!desc; // By convention, when a data property is converted to an accessor\n // property to emulate a data property that does not suffer from\n // the override mistake, that accessor's getter is marked with\n // an `originalValue` property. Here, when we detect this, we\n // uphold the illusion by pretending to see that original data\n // property, i.e., returning the value rather than the getter\n // itself.\n\n if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n value = desc.get;\n } else {\n value = value[part];\n }\n } else {\n isOwn = hasOwn(value, part);\n value = value[part];\n }\n\n if (isOwn && !skipFurtherCaching) {\n INTRINSICS[intrinsicRealName] = value;\n }\n }\n }\n\n return value;\n};","'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = Function.prototype.bind || implementation;","'use strict';\n\nvar keys = require('object-keys');\n\nvar hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';\nvar toStr = Object.prototype.toString;\nvar concat = Array.prototype.concat;\nvar origDefineProperty = Object.defineProperty;\n\nvar isFunction = function isFunction(fn) {\n return typeof fn === 'function' && toStr.call(fn) === '[object Function]';\n};\n\nvar hasPropertyDescriptors = require('has-property-descriptors')();\n\nvar supportsDescriptors = origDefineProperty && hasPropertyDescriptors;\n\nvar defineProperty = function defineProperty(object, name, value, predicate) {\n if (name in object && (!isFunction(predicate) || !predicate())) {\n return;\n }\n\n if (supportsDescriptors) {\n origDefineProperty(object, name, {\n configurable: true,\n enumerable: false,\n value: value,\n writable: true\n });\n } else {\n object[name] = value; // eslint-disable-line no-param-reassign\n }\n};\n\nvar defineProperties = function defineProperties(object, map) {\n var predicates = arguments.length > 2 ? arguments[2] : {};\n var props = keys(map);\n\n if (hasSymbols) {\n props = concat.call(props, Object.getOwnPropertySymbols(map));\n }\n\n for (var i = 0; i < props.length; i += 1) {\n defineProperty(object, props[i], map[props[i]], predicates[props[i]]);\n }\n};\n\ndefineProperties.supportsDescriptors = !!supportsDescriptors;\nmodule.exports = defineProperties;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\nexports.default = compareObjects;\n\nfunction compareObjects(objA, objB) {\n var keys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];\n\n if (objA === objB) {\n return false;\n }\n\n var aKeys = Object.keys(objA);\n var bKeys = Object.keys(objB);\n\n if (aKeys.length !== bKeys.length) {\n return true;\n }\n\n var keysMap = {};\n var i = void 0,\n len = void 0;\n\n for (i = 0, len = keys.length; i < len; i++) {\n keysMap[keys[i]] = true;\n }\n\n for (i = 0, len = aKeys.length; i < len; i++) {\n var key = aKeys[i];\n var aValue = objA[key];\n var bValue = objB[key];\n\n if (aValue === bValue) {\n continue;\n }\n\n if (!keysMap[key] || aValue === null || bValue === null || (typeof aValue === 'undefined' ? 'undefined' : _typeof(aValue)) !== 'object' || (typeof bValue === 'undefined' ? 'undefined' : _typeof(bValue)) !== 'object') {\n return true;\n }\n\n var aValueKeys = Object.keys(aValue);\n var bValueKeys = Object.keys(bValue);\n\n if (aValueKeys.length !== bValueKeys.length) {\n return true;\n }\n\n for (var n = 0, length = aValueKeys.length; n < length; n++) {\n var aValueKey = aValueKeys[n];\n\n if (aValue[aValueKey] !== bValue[aValueKey]) {\n return true;\n }\n }\n }\n\n return false;\n}","// ag-grid-react v28.1.1\n\"use strict\";\n\nvar __extends = this && this.__extends || function () {\n var _extendStatics = function extendStatics(d, b) {\n _extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics(d, b);\n };\n\n return function (d, b) {\n _extendStatics(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) {\n if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n }\n result[\"default\"] = mod;\n return result;\n};\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar react_1 = __importStar(require(\"react\"));\n\nvar prop_types_1 = __importDefault(require(\"prop-types\"));\n\nvar AgGrid = __importStar(require(\"ag-grid-community\"));\n\nvar AgGridColumn =\n/** @class */\nfunction (_super) {\n __extends(AgGridColumn, _super);\n\n function AgGridColumn() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n AgGridColumn.prototype.render = function () {\n return null;\n };\n\n AgGridColumn.mapChildColumnDefs = function (children) {\n return react_1.default.Children.map(children, function (child) {\n return !!child ? AgGridColumn.toColDef(child.props) : null;\n });\n };\n\n AgGridColumn.toColDef = function (columnProps) {\n var children = columnProps.children,\n colDef = __rest(columnProps, [\"children\"]);\n\n if (AgGridColumn.hasChildColumns(children)) {\n colDef.children = AgGridColumn.mapChildColumnDefs(children);\n }\n\n return colDef;\n };\n\n AgGridColumn.hasChildColumns = function (children) {\n return react_1.default.Children.count(children) > 0;\n };\n\n return AgGridColumn;\n}(react_1.Component);\n\nexports.AgGridColumn = AgGridColumn;\naddProperties(AgGrid.ColDefUtil.BOOLEAN_PROPERTIES, prop_types_1.default.bool);\naddProperties(AgGrid.ColDefUtil.STRING_PROPERTIES, prop_types_1.default.string);\naddProperties(AgGrid.ColDefUtil.OBJECT_PROPERTIES, prop_types_1.default.object);\naddProperties(AgGrid.ColDefUtil.ARRAY_PROPERTIES, prop_types_1.default.array);\naddProperties(AgGrid.ColDefUtil.NUMBER_PROPERTIES, prop_types_1.default.number);\naddProperties(AgGrid.ColDefUtil.FUNCTION_PROPERTIES, prop_types_1.default.func);\n\nfunction addProperties(listOfProps, propType) {\n listOfProps.forEach(function (propKey) {\n // @ts-ignore\n AgGridColumn[propKey] = propType;\n });\n}","// ag-grid-react v28.1.1\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar ChangeDetectionStrategyType;\n\n(function (ChangeDetectionStrategyType) {\n ChangeDetectionStrategyType[\"IdentityCheck\"] = \"IdentityCheck\";\n ChangeDetectionStrategyType[\"DeepValueCheck\"] = \"DeepValueCheck\";\n ChangeDetectionStrategyType[\"NoCheck\"] = \"NoCheck\";\n})(ChangeDetectionStrategyType = exports.ChangeDetectionStrategyType || (exports.ChangeDetectionStrategyType = {}));\n\nvar SimpleFunctionalStrategy =\n/** @class */\nfunction () {\n function SimpleFunctionalStrategy(strategy) {\n this.strategy = strategy;\n }\n\n SimpleFunctionalStrategy.prototype.areEqual = function (a, b) {\n return this.strategy(a, b);\n };\n\n return SimpleFunctionalStrategy;\n}();\n\nvar DeepValueStrategy =\n/** @class */\nfunction () {\n function DeepValueStrategy() {}\n\n DeepValueStrategy.prototype.areEqual = function (a, b) {\n return DeepValueStrategy.areEquivalent(DeepValueStrategy.copy(a), DeepValueStrategy.copy(b));\n };\n /*\n * deeper object comparison - taken from https://stackoverflow.com/questions/1068834/object-comparison-in-javascript\n */\n\n\n DeepValueStrategy.unwrapStringOrNumber = function (obj) {\n return obj instanceof Number || obj instanceof String ? obj.valueOf() : obj;\n }; // sigh, here for ie compatibility\n\n\n DeepValueStrategy.copy = function (value) {\n if (!value) {\n return value;\n }\n\n if (Array.isArray(value)) {\n // shallow copy the array - this will typically be either rowData or columnDefs\n var arrayCopy = [];\n\n for (var i = 0; i < value.length; i++) {\n arrayCopy.push(this.copy(value[i]));\n }\n\n return arrayCopy;\n } // for anything without keys (boolean, string etc).\n // Object.keys - chrome will swallow them\n\n\n if (typeof value !== \"object\") {\n return value;\n }\n\n return [{}, value].reduce(function (r, o) {\n Object.keys(o).forEach(function (k) {\n r[k] = o[k];\n });\n return r;\n }, {});\n };\n\n DeepValueStrategy.isNaN = function (value) {\n if (Number.isNaN) {\n return Number.isNaN(value);\n } // for ie11...\n\n\n return typeof value === 'number' && isNaN(value);\n };\n /*\n * slightly modified, but taken from https://stackoverflow.com/questions/1068834/object-comparison-in-javascript\n *\n * What we're trying to do here is determine if the property being checked has changed in _value_, not just in reference\n *\n * For eg, if a user updates the columnDefs via property binding, but the actual columns defs are the same before and\n * after, then we don't want the grid to re-render\n */\n\n\n DeepValueStrategy.areEquivalent = function (a, b) {\n a = DeepValueStrategy.unwrapStringOrNumber(a);\n b = DeepValueStrategy.unwrapStringOrNumber(b);\n if (a === b) return true; //e.g. a and b both null\n\n if (a === null || b === null || typeof a !== typeof b) return false;\n\n if (DeepValueStrategy.isNaN(a) && DeepValueStrategy.isNaN(b)) {\n return true;\n }\n\n if (a instanceof Date) {\n return b instanceof Date && a.valueOf() === b.valueOf();\n }\n\n if (typeof a === \"function\") {\n // false to allow for callbacks to be reactive...\n return false;\n }\n\n if (typeof a !== \"object\" || a.$$typeof && a.$$typeof.toString() === \"Symbol(react.element)\") {\n return a == b; //for boolean, number, string, function, xml\n }\n\n if (Object.isFrozen(a) || Object.isFrozen(b)) {\n return a === b;\n }\n\n var newA = a.areEquivPropertyTracking === undefined,\n newB = b.areEquivPropertyTracking === undefined;\n\n try {\n var prop = void 0;\n\n if (newA) {\n a.areEquivPropertyTracking = [];\n } else if (a.areEquivPropertyTracking.some(function (other) {\n return other === b;\n })) return true;\n\n if (newB) {\n b.areEquivPropertyTracking = [];\n } else if (b.areEquivPropertyTracking.some(function (other) {\n return other === a;\n })) {\n return true;\n }\n\n a.areEquivPropertyTracking.push(b);\n b.areEquivPropertyTracking.push(a);\n var tmp = {};\n\n for (prop in a) {\n if (prop != \"areEquivPropertyTracking\") {\n tmp[prop] = null;\n }\n }\n\n for (prop in b) {\n if (prop != \"areEquivPropertyTracking\") {\n tmp[prop] = null;\n }\n }\n\n for (prop in tmp) {\n if (!this.areEquivalent(a[prop], b[prop])) {\n return false;\n }\n }\n\n return true;\n } finally {\n if (newA) delete a.areEquivPropertyTracking;\n if (newB) delete b.areEquivPropertyTracking;\n }\n };\n\n return DeepValueStrategy;\n}();\n\nvar ChangeDetectionService =\n/** @class */\nfunction () {\n function ChangeDetectionService() {\n var _a;\n\n this.strategyMap = (_a = {}, _a[ChangeDetectionStrategyType.DeepValueCheck] = new DeepValueStrategy(), _a[ChangeDetectionStrategyType.IdentityCheck] = new SimpleFunctionalStrategy(function (a, b) {\n return a === b;\n }), _a[ChangeDetectionStrategyType.NoCheck] = new SimpleFunctionalStrategy(function (a, b) {\n return false;\n }), _a);\n }\n\n ChangeDetectionService.prototype.getStrategy = function (changeDetectionStrategy) {\n return this.strategyMap[changeDetectionStrategy];\n };\n\n return ChangeDetectionService;\n}();\n\nexports.ChangeDetectionService = ChangeDetectionService;","// ag-grid-react v28.1.1\n\"use strict\";\n\nvar __extends = this && this.__extends || function () {\n var _extendStatics = function extendStatics(d, b) {\n _extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics(d, b);\n };\n\n return function (d, b) {\n _extendStatics(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign = this && this.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign.apply(this, arguments);\n};\n\nvar __importStar = this && this.__importStar || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) {\n if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n }\n result[\"default\"] = mod;\n return result;\n};\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar ag_grid_community_1 = require(\"ag-grid-community\");\n\nvar react_1 = __importStar(require(\"react\"));\n\nvar agGridColumn_1 = require(\"../shared/agGridColumn\");\n\nvar changeDetectionService_1 = require(\"../shared/changeDetectionService\");\n\nvar newReactComponent_1 = require(\"../shared/newReactComponent\");\n\nvar portalManager_1 = require(\"../shared/portalManager\");\n\nvar gridComp_1 = __importDefault(require(\"./gridComp\"));\n\nvar reactFrameworkOverrides_1 = require(\"../shared/reactFrameworkOverrides\");\n\nfunction debug(msg, obj) {// console.log(msg, obj);\n}\n\nvar AgGridReactUi =\n/** @class */\nfunction (_super) {\n __extends(AgGridReactUi, _super);\n\n function AgGridReactUi(props) {\n var _this = _super.call(this, props) || this;\n\n _this.props = props;\n _this.destroyFuncs = [];\n _this.changeDetectionService = new changeDetectionService_1.ChangeDetectionService();\n _this.eGui = react_1.default.createRef();\n _this.whenReadyFuncs = [];\n _this.ready = false;\n _this.renderedAfterMount = false;\n _this.mounted = false;\n debug('AgGridReactUi.constructor');\n _this.state = {\n context: undefined\n };\n _this.portalManager = new portalManager_1.PortalManager(_this, props.componentWrappingElement, props.maxComponentCreationTimeMs);\n\n _this.destroyFuncs.push(function () {\n return _this.portalManager.destroy();\n });\n\n return _this;\n }\n\n AgGridReactUi.prototype.render = function () {\n debug('AgGridReactUi.render, context = ' + this.state.context);\n\n if (this.state.context) {\n this.renderedAfterMount = true;\n }\n\n return react_1.default.createElement(\"div\", {\n style: this.createStyleForDiv(),\n className: this.props.className,\n ref: this.eGui\n }, this.state.context && react_1.default.createElement(gridComp_1.default, {\n context: this.state.context\n }), this.portalManager.getPortals());\n };\n\n AgGridReactUi.prototype.createStyleForDiv = function () {\n return __assign({\n height: '100%'\n }, this.props.containerStyle || {});\n };\n\n AgGridReactUi.prototype.componentDidMount = function () {\n var _this = this;\n\n if (this.mounted) {\n debug('AgGridReactUi.componentDidMount - skipping');\n return;\n }\n\n debug('AgGridReactUi.componentDidMount');\n this.mounted = true;\n var modules = this.props.modules || [];\n var gridParams = {\n providedBeanInstances: {\n frameworkComponentWrapper: new ReactFrameworkComponentWrapper(this.portalManager)\n },\n modules: modules,\n frameworkOverrides: new reactFrameworkOverrides_1.ReactFrameworkOverrides(true)\n };\n this.gridOptions = this.props.gridOptions || {};\n var children = this.props.children;\n\n if (agGridColumn_1.AgGridColumn.hasChildColumns(children)) {\n this.gridOptions.columnDefs = agGridColumn_1.AgGridColumn.mapChildColumnDefs(children);\n }\n\n this.gridOptions = ag_grid_community_1.ComponentUtil.copyAttributesToGridOptions(this.gridOptions, this.props);\n\n var createUiCallback = function createUiCallback(context) {\n _this.setState({\n context: context\n }); // because React is Async, we need to wait for the UI to be initialised before exposing the API's\n\n\n var ctrlsService = context.getBean(ag_grid_community_1.CtrlsService.NAME);\n ctrlsService.whenReady(function () {\n debug('AgGridReactUi.createUiCallback');\n _this.api = _this.gridOptions.api;\n _this.columnApi = _this.gridOptions.columnApi;\n\n _this.props.setGridApi(_this.api, _this.columnApi);\n\n _this.destroyFuncs.push(function () {\n return _this.api.destroy();\n });\n });\n }; // this callback adds to ctrlsService.whenReady(), just like above, however because whenReady() executes\n // funcs in the order they were received, we know adding items here will be AFTER the grid has set columns\n // and data. this is because GridCoreCreator sets these between calling createUiCallback and acceptChangesCallback\n\n\n var acceptChangesCallback = function acceptChangesCallback(context) {\n var ctrlsService = context.getBean(ag_grid_community_1.CtrlsService.NAME);\n ctrlsService.whenReady(function () {\n debug('AgGridReactUi.acceptChangesCallback');\n\n _this.whenReadyFuncs.forEach(function (f) {\n return f();\n });\n\n _this.whenReadyFuncs.length = 0;\n _this.ready = true;\n });\n }; // don't need the return value\n\n\n var gridCoreCreator = new ag_grid_community_1.GridCoreCreator();\n gridCoreCreator.create(this.eGui.current, this.gridOptions, createUiCallback, acceptChangesCallback, gridParams);\n };\n\n AgGridReactUi.prototype.componentWillUnmount = function () {\n if (this.renderedAfterMount) {\n debug('AgGridReactUi.componentWillUnmount - executing');\n this.destroyFuncs.forEach(function (f) {\n return f();\n });\n this.destroyFuncs.length = 0;\n } else {\n debug('AgGridReactUi.componentWillUnmount - skipping');\n }\n };\n\n AgGridReactUi.prototype.componentDidUpdate = function (prevProps) {\n this.processPropsChanges(prevProps, this.props);\n };\n\n AgGridReactUi.prototype.processPropsChanges = function (prevProps, nextProps) {\n var changes = {};\n this.extractGridPropertyChanges(prevProps, nextProps, changes);\n this.extractDeclarativeColDefChanges(nextProps, changes);\n this.processChanges(changes);\n };\n\n AgGridReactUi.prototype.extractDeclarativeColDefChanges = function (nextProps, changes) {\n // if columnDefs are provided on gridOptions we use those - you can't combine both\n // we also skip if columnDefs are provided as a prop directly on AgGridReact\n if (this.props.gridOptions && this.props.gridOptions.columnDefs || this.props.columnDefs) {\n return;\n }\n\n var debugLogging = !!nextProps.debug;\n var propKey = 'columnDefs';\n var currentColDefs = this.gridOptions.columnDefs;\n\n if (agGridColumn_1.AgGridColumn.hasChildColumns(nextProps.children)) {\n var detectionStrategy = this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(propKey));\n var newColDefs = agGridColumn_1.AgGridColumn.mapChildColumnDefs(nextProps.children);\n\n if (!detectionStrategy.areEqual(currentColDefs, newColDefs)) {\n if (debugLogging) {\n console.log(\"agGridReact: colDefs definitions changed\");\n }\n\n changes[propKey] = {\n previousValue: currentColDefs,\n currentValue: newColDefs\n };\n }\n } else if (currentColDefs && currentColDefs.length > 0) {\n changes[propKey] = {\n previousValue: currentColDefs,\n currentValue: []\n };\n }\n };\n\n AgGridReactUi.prototype.extractGridPropertyChanges = function (prevProps, nextProps, changes) {\n var _this = this;\n\n var debugLogging = !!nextProps.debug;\n Object.keys(nextProps).forEach(function (propKey) {\n if (ag_grid_community_1._.includes(ag_grid_community_1.ComponentUtil.ALL_PROPERTIES, propKey)) {\n var changeDetectionStrategy = _this.changeDetectionService.getStrategy(_this.getStrategyTypeForProp(propKey));\n\n if (!changeDetectionStrategy.areEqual(prevProps[propKey], nextProps[propKey])) {\n if (debugLogging) {\n console.log(\"agGridReact: [\" + propKey + \"] property changed\");\n }\n\n changes[propKey] = {\n previousValue: prevProps[propKey],\n currentValue: nextProps[propKey]\n };\n }\n }\n });\n ag_grid_community_1.ComponentUtil.getEventCallbacks().forEach(function (funcName) {\n if (prevProps[funcName] !== nextProps[funcName]) {\n if (debugLogging) {\n console.log(\"agGridReact: [\" + funcName + \"] event callback changed\");\n }\n\n changes[funcName] = {\n previousValue: prevProps[funcName],\n currentValue: nextProps[funcName]\n };\n }\n });\n };\n\n AgGridReactUi.prototype.processChanges = function (changes) {\n var _this = this;\n\n this.processWhenReady(function () {\n return ag_grid_community_1.ComponentUtil.processOnChange(changes, _this.gridOptions, _this.api, _this.columnApi);\n });\n };\n\n AgGridReactUi.prototype.processWhenReady = function (func) {\n if (this.ready) {\n debug('AgGridReactUi.processWhenReady sync');\n func();\n } else {\n debug('AgGridReactUi.processWhenReady async');\n this.whenReadyFuncs.push(func);\n }\n };\n\n AgGridReactUi.prototype.getStrategyTypeForProp = function (propKey) {\n if (propKey === 'rowData') {\n if (this.props.rowDataChangeDetectionStrategy) {\n return this.props.rowDataChangeDetectionStrategy;\n }\n\n if (this.isImmutableDataActive()) {\n return changeDetectionService_1.ChangeDetectionStrategyType.IdentityCheck;\n }\n } // all other cases will default to DeepValueCheck\n\n\n return changeDetectionService_1.ChangeDetectionStrategyType.DeepValueCheck;\n };\n\n AgGridReactUi.prototype.isImmutableDataActive = function () {\n return this.props.deltaRowDataMode || this.props.immutableData || this.props.getRowId != null || this.props.gridOptions && (this.props.gridOptions.deltaRowDataMode || this.props.gridOptions.immutableData || this.props.gridOptions.getRowId != null);\n };\n\n return AgGridReactUi;\n}(react_1.Component);\n\nexports.AgGridReactUi = AgGridReactUi;\n\nvar ReactFrameworkComponentWrapper =\n/** @class */\nfunction (_super) {\n __extends(ReactFrameworkComponentWrapper, _super);\n\n function ReactFrameworkComponentWrapper(parent) {\n var _this = _super.call(this) || this;\n\n _this.parent = parent;\n return _this;\n }\n\n ReactFrameworkComponentWrapper.prototype.createWrapper = function (UserReactComponent, componentType) {\n return new newReactComponent_1.NewReactComponent(UserReactComponent, this.parent, componentType);\n };\n\n return ReactFrameworkComponentWrapper;\n}(ag_grid_community_1.BaseComponentWrapper);","// ag-grid-react v28.1.1\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar useEffectOnce_1 = require(\"./useEffectOnce\");\n\nvar useReactCommentEffect = function useReactCommentEffect(comment, eForCommentRef) {\n useEffectOnce_1.useEffectOnce(function () {\n var eForComment = eForCommentRef.current;\n var eParent = eForComment.parentElement;\n\n if (!eParent) {\n return;\n }\n\n var eComment = document.createComment(comment);\n eParent.insertBefore(eComment, eForComment);\n return function () {\n eParent.removeChild(eComment);\n };\n });\n};\n\nexports.default = useReactCommentEffect;","import toDate from '../toDate/index.js';\nimport requiredArgs from '../_lib/requiredArgs/index.js';\n/**\n * @name isValid\n * @category Common Helpers\n * @summary Is the given date valid?\n *\n * @description\n * Returns false if argument is Invalid Date and true otherwise.\n * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n * Invalid Date is a Date, whose time value is NaN.\n *\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * - Now `isValid` doesn't throw an exception\n * if the first argument is not an instance of Date.\n * Instead, argument is converted beforehand using `toDate`.\n *\n * Examples:\n *\n * | `isValid` argument | Before v2.0.0 | v2.0.0 onward |\n * |---------------------------|---------------|---------------|\n * | `new Date()` | `true` | `true` |\n * | `new Date('2016-01-01')` | `true` | `true` |\n * | `new Date('')` | `false` | `false` |\n * | `new Date(1488370835081)` | `true` | `true` |\n * | `new Date(NaN)` | `false` | `false` |\n * | `'2016-01-01'` | `TypeError` | `false` |\n * | `''` | `TypeError` | `false` |\n * | `1488370835081` | `TypeError` | `true` |\n * | `NaN` | `TypeError` | `false` |\n *\n * We introduce this change to make *date-fns* consistent with ECMAScript behavior\n * that try to coerce arguments to the expected type\n * (which is also the case with other *date-fns* functions).\n *\n * @param {*} date - the date to check\n * @returns {Boolean} the date is valid\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // For the valid date:\n * var result = isValid(new Date(2014, 1, 31))\n * //=> true\n *\n * @example\n * // For the value, convertable into a date:\n * var result = isValid(1393804800000)\n * //=> true\n *\n * @example\n * // For the invalid date:\n * var result = isValid(new Date(''))\n * //=> false\n */\n\nexport default function isValid(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n return !isNaN(date);\n}","import toInteger from '../_lib/toInteger/index.js';\nimport addMilliseconds from '../addMilliseconds/index.js';\nimport requiredArgs from '../_lib/requiredArgs/index.js';\nvar MILLISECONDS_IN_MINUTE = 60000;\n/**\n * @name addMinutes\n * @category Minute Helpers\n * @summary Add the specified number of minutes to the given date.\n *\n * @description\n * Add the specified number of minutes to the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of minutes to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the minutes added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 30 minutes to 10 July 2014 12:00:00:\n * var result = addMinutes(new Date(2014, 6, 10, 12, 0), 30)\n * //=> Thu Jul 10 2014 12:30:00\n */\n\nexport default function addMinutes(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var amount = toInteger(dirtyAmount);\n return addMilliseconds(dirtyDate, amount * MILLISECONDS_IN_MINUTE);\n}","import toInteger from '../_lib/toInteger/index.js';\nimport addMilliseconds from '../addMilliseconds/index.js';\nimport requiredArgs from '../_lib/requiredArgs/index.js';\nvar MILLISECONDS_IN_HOUR = 3600000;\n/**\n * @name addHours\n * @category Hour Helpers\n * @summary Add the specified number of hours to the given date.\n *\n * @description\n * Add the specified number of hours to the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of hours to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the hours added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 2 hours to 10 July 2014 23:00:00:\n * var result = addHours(new Date(2014, 6, 10, 23, 0), 2)\n * //=> Fri Jul 11 2014 01:00:00\n */\n\nexport default function addHours(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var amount = toInteger(dirtyAmount);\n return addMilliseconds(dirtyDate, amount * MILLISECONDS_IN_HOUR);\n}","import toInteger from '../_lib/toInteger/index.js';\nimport addDays from '../addDays/index.js';\nimport requiredArgs from '../_lib/requiredArgs/index.js';\n/**\n * @name addWeeks\n * @category Week Helpers\n * @summary Add the specified number of weeks to the given date.\n *\n * @description\n * Add the specified number of week to the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of weeks to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the weeks added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 4 weeks to 1 September 2014:\n * var result = addWeeks(new Date(2014, 8, 1), 4)\n * //=> Mon Sep 29 2014 00:00:00\n */\n\nexport default function addWeeks(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var amount = toInteger(dirtyAmount);\n var days = amount * 7;\n return addDays(dirtyDate, days);\n}","import toInteger from '../_lib/toInteger/index.js';\nimport addMonths from '../addMonths/index.js';\nimport requiredArgs from '../_lib/requiredArgs/index.js';\n/**\n * @name addYears\n * @category Year Helpers\n * @summary Add the specified number of years to the given date.\n *\n * @description\n * Add the specified number of years to the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} amount - the amount of years to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.\n * @returns {Date} the new date with the years added\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Add 5 years to 1 September 2014:\n * var result = addYears(new Date(2014, 8, 1), 5)\n * //=> Sun Sep 01 2019 00:00:00\n */\n\nexport default function addYears(dirtyDate, dirtyAmount) {\n requiredArgs(2, arguments);\n var amount = toInteger(dirtyAmount);\n return addMonths(dirtyDate, amount * 12);\n}","import toInteger from '../_lib/toInteger/index.js';\nimport toDate from '../toDate/index.js';\nimport getDaysInMonth from '../getDaysInMonth/index.js';\nimport requiredArgs from '../_lib/requiredArgs/index.js';\n/**\n * @name setMonth\n * @category Month Helpers\n * @summary Set the month to the given date.\n *\n * @description\n * Set the month to the given date.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to be changed\n * @param {Number} month - the month of the new date\n * @returns {Date} the new date with the month set\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Set February to 1 September 2014:\n * var result = setMonth(new Date(2014, 8, 1), 1)\n * //=> Sat Feb 01 2014 00:00:00\n */\n\nexport default function setMonth(dirtyDate, dirtyMonth) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var month = toInteger(dirtyMonth);\n var year = date.getFullYear();\n var day = date.getDate();\n var dateWithDesiredMonth = new Date(0);\n dateWithDesiredMonth.setFullYear(year, month, 15);\n dateWithDesiredMonth.setHours(0, 0, 0, 0);\n var daysInMonth = getDaysInMonth(dateWithDesiredMonth); // Set the last day of the new month\n // if the original date was the last day of the longer month\n\n date.setMonth(month, Math.min(day, daysInMonth));\n return date;\n}","// @flow\n'use strict';\n\nvar key = '__global_unique_id__';\n\nmodule.exports = function () {\n return global[key] = (global[key] || 0) + 1;\n};","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';\n/**\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar __DEV__ = process.env.NODE_ENV !== 'production';\n\nvar warning = function warning() {};\n\nif (__DEV__) {\n var printWarning = function printWarning(format, args) {\n var len = arguments.length;\n args = new Array(len > 1 ? len - 1 : 0);\n\n for (var key = 1; key < len; key++) {\n args[key - 1] = arguments[key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n warning = function warning(condition, format, args) {\n var len = arguments.length;\n args = new Array(len > 2 ? len - 2 : 0);\n\n for (var key = 2; key < len; key++) {\n args[key - 2] = arguments[key];\n }\n\n if (format === undefined) {\n throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n\n if (!condition) {\n printWarning.apply(null, [format].concat(args));\n }\n };\n}\n\nmodule.exports = warning;","/**\n * @ag-grid-enterprise/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.1.1\n * @link https://www.ag-grid.com/\n * @license Commercial\n */\nimport { _, Autowired, PreConstruct, Bean, BeanStub, PostConstruct, RefSelector, Component, ModuleNames, Constants, Events, ChangedPath, Optional, CsvExportModule, KeyCode, EventService, Column, ProvidedColumnGroup, AgMenuList, AgMenuItemComponent, AgCheckbox, CssClassApplier, DragSourceType, DragAndDropService, TouchListener, AutoScrollService, VirtualList, PreDestroy, NumberSequence, RowNode, ManagedFocusFeature, PositionableFeature, TabGuardComp, ModuleRegistry, ExcelFactoryMode, XmlFactory, RowType, BaseGridSerializingSession, Downloader, BaseCreator, ZipContainer, GridSerializer, CsvCreator, AgGroupComponent, CellRangeType, AgAbstractField, AgRadioButton, AgToggleButton, AgSelect, AgSlider, AgAngleSelect, TabbedLayout, AgPromise, AgPanel, Color as Color$2, AgDialog, SelectionHandleType, Grid, ProvidedFilter, PopupComponent, ServerSideTransactionResultStatus, RowNodeBlock, Qualifier, TextFilter, AllCommunityModules } from 'ag-grid-community';\nexport * from 'ag-grid-community';\n\nvar __extends$3r = undefined && undefined.__extends || function () {\n var _extendStatics = function extendStatics(d, b) {\n _extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics(d, b);\n };\n\n return function (d, b) {\n _extendStatics(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$Z = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar LicenseManager =\n/** @class */\nfunction (_super) {\n __extends$3r(LicenseManager, _super);\n\n function LicenseManager() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.watermarkMessage = undefined;\n return _this;\n }\n\n LicenseManager_1 = LicenseManager;\n\n LicenseManager.prototype.validateLicense = function () {\n if (_.missingOrEmpty(LicenseManager_1.licenseKey)) {\n this.outputMissingLicenseKey();\n } else if (LicenseManager_1.licenseKey.length > 32) {\n var _a = LicenseManager_1.extractLicenseComponents(LicenseManager_1.licenseKey),\n md5 = _a.md5,\n license = _a.license,\n version = _a.version,\n isTrial = _a.isTrial;\n\n if (md5 === this.md5.md5(license)) {\n if (_.exists(version) && version) {\n this.validateLicenseKeyForVersion(version, !!isTrial, license);\n } else {\n this.validateLegacyKey(license);\n }\n } else {\n this.outputInvalidLicenseKey();\n }\n } else {\n this.outputInvalidLicenseKey();\n }\n };\n\n LicenseManager.extractExpiry = function (license) {\n var restrictionHashed = license.substring(license.lastIndexOf('_') + 1, license.length);\n return new Date(parseInt(LicenseManager_1.decode(restrictionHashed), 10));\n };\n\n LicenseManager.extractLicenseComponents = function (licenseKey) {\n // when users copy the license key from a PDF extra zero width characters are sometimes copied too\n // carriage returns and line feeds are problematic too\n // all of which causes license key validation to fail - strip these out\n var cleanedLicenseKey = licenseKey.replace(/[\\u200B-\\u200D\\uFEFF]/g, '');\n cleanedLicenseKey = cleanedLicenseKey.replace(/\\r?\\n|\\r/g, '');\n var hashStart = cleanedLicenseKey.length - 32;\n var md5 = cleanedLicenseKey.substring(hashStart);\n var license = cleanedLicenseKey.substring(0, hashStart);\n\n var _a = __read$Z(LicenseManager_1.extractBracketedInformation(cleanedLicenseKey), 2),\n version = _a[0],\n isTrial = _a[1];\n\n return {\n md5: md5,\n license: license,\n version: version,\n isTrial: isTrial\n };\n };\n\n LicenseManager.prototype.getLicenseDetails = function (licenseKey) {\n var _a = LicenseManager_1.extractLicenseComponents(licenseKey),\n md5 = _a.md5,\n license = _a.license,\n version = _a.version,\n isTrial = _a.isTrial;\n\n var valid = md5 === this.md5.md5(license);\n var expiry = null;\n\n if (valid) {\n expiry = LicenseManager_1.extractExpiry(license);\n valid = !isNaN(expiry.getTime());\n }\n\n return {\n licenseKey: licenseKey,\n valid: valid,\n expiry: valid ? LicenseManager_1.formatDate(expiry) : null,\n version: version ? version : 'legacy',\n isTrial: isTrial\n };\n };\n\n LicenseManager.prototype.isDisplayWatermark = function () {\n return !_.missingOrEmpty(this.watermarkMessage);\n };\n\n LicenseManager.prototype.getWatermarkMessage = function () {\n return this.watermarkMessage || '';\n };\n\n LicenseManager.formatDate = function (date) {\n var monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];\n var day = date.getDate();\n var monthIndex = date.getMonth();\n var year = date.getFullYear();\n return day + ' ' + monthNames[monthIndex] + ' ' + year;\n };\n\n LicenseManager.getGridReleaseDate = function () {\n return new Date(parseInt(LicenseManager_1.decode(LicenseManager_1.RELEASE_INFORMATION), 10));\n };\n\n LicenseManager.decode = function (input) {\n var keystr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n var t = '';\n var n, r, i;\n var s, o, u, a;\n var f = 0;\n var e = input.replace(/[^A-Za-z0-9+/=]/g, '');\n\n while (f < e.length) {\n s = keystr.indexOf(e.charAt(f++));\n o = keystr.indexOf(e.charAt(f++));\n u = keystr.indexOf(e.charAt(f++));\n a = keystr.indexOf(e.charAt(f++));\n n = s << 2 | o >> 4;\n r = (o & 15) << 4 | u >> 2;\n i = (u & 3) << 6 | a;\n t = t + String.fromCharCode(n);\n\n if (u != 64) {\n t = t + String.fromCharCode(r);\n }\n\n if (a != 64) {\n t = t + String.fromCharCode(i);\n }\n }\n\n t = LicenseManager_1.utf8_decode(t);\n return t;\n };\n\n LicenseManager.utf8_decode = function (input) {\n input = input.replace(/rn/g, 'n');\n var t = '';\n\n for (var n = 0; n < input.length; n++) {\n var r = input.charCodeAt(n);\n\n if (r < 128) {\n t += String.fromCharCode(r);\n } else if (r > 127 && r < 2048) {\n t += String.fromCharCode(r >> 6 | 192);\n t += String.fromCharCode(r & 63 | 128);\n } else {\n t += String.fromCharCode(r >> 12 | 224);\n t += String.fromCharCode(r >> 6 & 63 | 128);\n t += String.fromCharCode(r & 63 | 128);\n }\n }\n\n return t;\n };\n\n LicenseManager.setLicenseKey = function (licenseKey) {\n LicenseManager_1.licenseKey = licenseKey;\n };\n\n LicenseManager.extractBracketedInformation = function (licenseKey) {\n var matches = licenseKey.split('[').filter(function (v) {\n return v.indexOf(']') > -1;\n }).map(function (value) {\n return value.split(']')[0];\n });\n\n if (!matches || matches.length === 0) {\n return [null, null];\n }\n\n var isTrial = matches.filter(function (match) {\n return match === 'TRIAL';\n }).length === 1;\n var version = matches.filter(function (match) {\n return match.indexOf(\"v\") === 0;\n }).map(function (match) {\n return match.replace(/^v/, \"\");\n })[0];\n return [version, isTrial];\n };\n\n LicenseManager.prototype.validateLicenseKeyForVersion = function (version, isTrial, license) {\n if (version !== '2') {\n return;\n }\n\n if (isTrial) {\n this.validateForTrial(license);\n } else {\n this.validateLegacyKey(license);\n }\n };\n\n LicenseManager.prototype.validateLegacyKey = function (license) {\n var gridReleaseDate = LicenseManager_1.getGridReleaseDate();\n var expiry = LicenseManager_1.extractExpiry(license);\n var valid = false;\n var current = false;\n\n if (!isNaN(expiry.getTime())) {\n valid = true;\n current = gridReleaseDate < expiry;\n }\n\n if (!valid) {\n this.outputInvalidLicenseKey();\n } else if (!current) {\n var formattedExpiryDate = LicenseManager_1.formatDate(expiry);\n var formattedReleaseDate = LicenseManager_1.formatDate(gridReleaseDate);\n this.outputIncompatibleVersion(formattedExpiryDate, formattedReleaseDate);\n }\n };\n\n LicenseManager.prototype.validateForTrial = function (license) {\n var expiry = LicenseManager_1.extractExpiry(license);\n var now = new Date();\n var valid = false;\n var current = false;\n\n if (!isNaN(expiry.getTime())) {\n valid = true;\n current = expiry > now;\n }\n\n if (!valid) {\n this.outputInvalidLicenseKey();\n } else if (!current) {\n var formattedExpiryDate = LicenseManager_1.formatDate(expiry);\n this.outputExpiredTrialKey(formattedExpiryDate);\n }\n };\n\n LicenseManager.prototype.outputInvalidLicenseKey = function () {\n console.error('*****************************************************************************************************************');\n console.error('***************************************** AG Grid Enterprise License ********************************************');\n console.error('********************************************* Invalid License ***************************************************');\n console.error('* Your license for AG Grid Enterprise is not valid - please contact info@ag-grid.com to obtain a valid license. *');\n console.error('*****************************************************************************************************************');\n console.error('*****************************************************************************************************************');\n this.watermarkMessage = \"Invalid License\";\n };\n\n LicenseManager.prototype.outputExpiredTrialKey = function (formattedExpiryDate) {\n console.error('****************************************************************************************************************');\n console.error('***************************************** AG Grid Enterprise License *******************************************');\n console.error('***************************************** Trial Period Expired. *******************************************');\n console.error(\"* Your license for AG Grid Enterprise expired on \" + formattedExpiryDate + \". *\");\n console.error('* Please email info@ag-grid.com to purchase a license. *');\n console.error('****************************************************************************************************************');\n console.error('****************************************************************************************************************');\n this.watermarkMessage = \"Trial Period Expired\";\n };\n\n LicenseManager.prototype.outputMissingLicenseKey = function () {\n console.error('****************************************************************************************************************');\n console.error('***************************************** AG Grid Enterprise License *******************************************');\n console.error('****************************************** License Key Not Found ***********************************************');\n console.error('* All AG Grid Enterprise features are unlocked. *');\n console.error('* This is an evaluation only version, it is not licensed for development projects intended for production. *');\n console.error('* If you want to hide the watermark, please email info@ag-grid.com for a trial license. *');\n console.error('****************************************************************************************************************');\n console.error('****************************************************************************************************************');\n this.watermarkMessage = \"For Trial Use Only\";\n };\n\n LicenseManager.prototype.outputIncompatibleVersion = function (formattedExpiryDate, formattedReleaseDate) {\n console.error('****************************************************************************************************************************');\n console.error('****************************************************************************************************************************');\n console.error('* AG Grid Enterprise License *');\n console.error('* License not compatible with installed version of AG Grid Enterprise. *');\n console.error('* *');\n console.error(\"* Your AG Grid License entitles you to all versions of AG Grid that we release within the time covered by your license *\");\n console.error(\"* - typically we provide one year licenses which entitles you to all releases / updates of AG Grid within that year. *\");\n console.error(\"* Your license has an end (expiry) date which stops the license key working with versions of AG Grid released after the *\");\n console.error(\"* license end date. The license key that you have expires on \" + formattedExpiryDate + \", however the version of AG Grid you *\");\n console.error(\"* are trying to use was released on \" + formattedReleaseDate + \". *\");\n console.error('* *');\n console.error('* Please contact info@ag-grid.com to renew your subscription to new versions and get a new license key to work with this *');\n console.error('* version of AG Grid. *');\n console.error('****************************************************************************************************************************');\n console.error('****************************************************************************************************************************');\n this.watermarkMessage = \"License Expired\";\n };\n\n var LicenseManager_1;\n LicenseManager.RELEASE_INFORMATION = 'MTY2MTE0ODY3Nzc2Nw==';\n\n __decorate$1$([Autowired('md5')], LicenseManager.prototype, \"md5\", void 0);\n\n __decorate$1$([PreConstruct], LicenseManager.prototype, \"validateLicense\", null);\n\n LicenseManager = LicenseManager_1 = __decorate$1$([Bean('licenseManager')], LicenseManager);\n return LicenseManager;\n}(BeanStub);\n\nvar __extends$3q = undefined && undefined.__extends || function () {\n var _extendStatics2 = function extendStatics(d, b) {\n _extendStatics2 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics2(d, b);\n };\n\n return function (d, b) {\n _extendStatics2(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar MD5 =\n/** @class */\nfunction (_super) {\n __extends$3q(MD5, _super);\n\n function MD5() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.ieCompatibility = false;\n return _this;\n }\n\n MD5.prototype.init = function () {\n this.ieCompatibility = this.md5('hello') != '5d41402abc4b2a76b9719d911017c592';\n };\n\n MD5.prototype.md5cycle = function (x, k) {\n var a = x[0],\n b = x[1],\n c = x[2],\n d = x[3];\n a = this.ff(a, b, c, d, k[0], 7, -680876936);\n d = this.ff(d, a, b, c, k[1], 12, -389564586);\n c = this.ff(c, d, a, b, k[2], 17, 606105819);\n b = this.ff(b, c, d, a, k[3], 22, -1044525330);\n a = this.ff(a, b, c, d, k[4], 7, -176418897);\n d = this.ff(d, a, b, c, k[5], 12, 1200080426);\n c = this.ff(c, d, a, b, k[6], 17, -1473231341);\n b = this.ff(b, c, d, a, k[7], 22, -45705983);\n a = this.ff(a, b, c, d, k[8], 7, 1770035416);\n d = this.ff(d, a, b, c, k[9], 12, -1958414417);\n c = this.ff(c, d, a, b, k[10], 17, -42063);\n b = this.ff(b, c, d, a, k[11], 22, -1990404162);\n a = this.ff(a, b, c, d, k[12], 7, 1804603682);\n d = this.ff(d, a, b, c, k[13], 12, -40341101);\n c = this.ff(c, d, a, b, k[14], 17, -1502002290);\n b = this.ff(b, c, d, a, k[15], 22, 1236535329);\n a = this.gg(a, b, c, d, k[1], 5, -165796510);\n d = this.gg(d, a, b, c, k[6], 9, -1069501632);\n c = this.gg(c, d, a, b, k[11], 14, 643717713);\n b = this.gg(b, c, d, a, k[0], 20, -373897302);\n a = this.gg(a, b, c, d, k[5], 5, -701558691);\n d = this.gg(d, a, b, c, k[10], 9, 38016083);\n c = this.gg(c, d, a, b, k[15], 14, -660478335);\n b = this.gg(b, c, d, a, k[4], 20, -405537848);\n a = this.gg(a, b, c, d, k[9], 5, 568446438);\n d = this.gg(d, a, b, c, k[14], 9, -1019803690);\n c = this.gg(c, d, a, b, k[3], 14, -187363961);\n b = this.gg(b, c, d, a, k[8], 20, 1163531501);\n a = this.gg(a, b, c, d, k[13], 5, -1444681467);\n d = this.gg(d, a, b, c, k[2], 9, -51403784);\n c = this.gg(c, d, a, b, k[7], 14, 1735328473);\n b = this.gg(b, c, d, a, k[12], 20, -1926607734);\n a = this.hh(a, b, c, d, k[5], 4, -378558);\n d = this.hh(d, a, b, c, k[8], 11, -2022574463);\n c = this.hh(c, d, a, b, k[11], 16, 1839030562);\n b = this.hh(b, c, d, a, k[14], 23, -35309556);\n a = this.hh(a, b, c, d, k[1], 4, -1530992060);\n d = this.hh(d, a, b, c, k[4], 11, 1272893353);\n c = this.hh(c, d, a, b, k[7], 16, -155497632);\n b = this.hh(b, c, d, a, k[10], 23, -1094730640);\n a = this.hh(a, b, c, d, k[13], 4, 681279174);\n d = this.hh(d, a, b, c, k[0], 11, -358537222);\n c = this.hh(c, d, a, b, k[3], 16, -722521979);\n b = this.hh(b, c, d, a, k[6], 23, 76029189);\n a = this.hh(a, b, c, d, k[9], 4, -640364487);\n d = this.hh(d, a, b, c, k[12], 11, -421815835);\n c = this.hh(c, d, a, b, k[15], 16, 530742520);\n b = this.hh(b, c, d, a, k[2], 23, -995338651);\n a = this.ii(a, b, c, d, k[0], 6, -198630844);\n d = this.ii(d, a, b, c, k[7], 10, 1126891415);\n c = this.ii(c, d, a, b, k[14], 15, -1416354905);\n b = this.ii(b, c, d, a, k[5], 21, -57434055);\n a = this.ii(a, b, c, d, k[12], 6, 1700485571);\n d = this.ii(d, a, b, c, k[3], 10, -1894986606);\n c = this.ii(c, d, a, b, k[10], 15, -1051523);\n b = this.ii(b, c, d, a, k[1], 21, -2054922799);\n a = this.ii(a, b, c, d, k[8], 6, 1873313359);\n d = this.ii(d, a, b, c, k[15], 10, -30611744);\n c = this.ii(c, d, a, b, k[6], 15, -1560198380);\n b = this.ii(b, c, d, a, k[13], 21, 1309151649);\n a = this.ii(a, b, c, d, k[4], 6, -145523070);\n d = this.ii(d, a, b, c, k[11], 10, -1120210379);\n c = this.ii(c, d, a, b, k[2], 15, 718787259);\n b = this.ii(b, c, d, a, k[9], 21, -343485551);\n x[0] = this.add32(a, x[0]);\n x[1] = this.add32(b, x[1]);\n x[2] = this.add32(c, x[2]);\n x[3] = this.add32(d, x[3]);\n };\n\n MD5.prototype.cmn = function (q, a, b, x, s, t) {\n a = this.add32(this.add32(a, q), this.add32(x, t));\n return this.add32(a << s | a >>> 32 - s, b);\n };\n\n MD5.prototype.ff = function (a, b, c, d, x, s, t) {\n return this.cmn(b & c | ~b & d, a, b, x, s, t);\n };\n\n MD5.prototype.gg = function (a, b, c, d, x, s, t) {\n return this.cmn(b & d | c & ~d, a, b, x, s, t);\n };\n\n MD5.prototype.hh = function (a, b, c, d, x, s, t) {\n return this.cmn(b ^ c ^ d, a, b, x, s, t);\n };\n\n MD5.prototype.ii = function (a, b, c, d, x, s, t) {\n return this.cmn(c ^ (b | ~d), a, b, x, s, t);\n };\n\n MD5.prototype.md51 = function (s) {\n var n = s.length;\n var state = [1732584193, -271733879, -1732584194, 271733878];\n var i;\n\n for (i = 64; i <= s.length; i += 64) {\n this.md5cycle(state, this.md5blk(s.substring(i - 64, i)));\n }\n\n s = s.substring(i - 64);\n var tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\n\n for (i = 0; i < s.length; i++) {\n tail[i >> 2] |= s.charCodeAt(i) << (i % 4 << 3);\n }\n\n tail[i >> 2] |= 0x80 << (i % 4 << 3);\n\n if (i > 55) {\n this.md5cycle(state, tail);\n\n for (i = 0; i < 16; i++) {\n tail[i] = 0;\n }\n }\n\n tail[14] = n * 8;\n this.md5cycle(state, tail);\n return state;\n };\n /* there needs to be support for Unicode here, * unless we pretend that we can redefine the MD-5\n * algorithm for multi-byte characters (perhaps by adding every four 16-bit characters and\n * shortening the sum to 32 bits). Otherwise I suthis.ggest performing MD-5 as if every character\n * was two bytes--e.g., 0040 0025 = @%--but then how will an ordinary MD-5 sum be matched?\n * There is no way to standardize text to something like UTF-8 before transformation; speed cost is\n * utterly prohibitive. The JavaScript standard itself needs to look at this: it should start\n * providing access to strings as preformed UTF-8 8-bit unsigned value arrays.\n */\n\n\n MD5.prototype.md5blk = function (s) {\n var md5blks = [];\n /* Andy King said do it this way. */\n\n for (var i = 0; i < 64; i += 4) {\n md5blks[i >> 2] = s.charCodeAt(i) + (s.charCodeAt(i + 1) << 8) + (s.charCodeAt(i + 2) << 16) + (s.charCodeAt(i + 3) << 24);\n }\n\n return md5blks;\n };\n\n MD5.prototype.rhex = function (n) {\n var hex_chr = '0123456789abcdef'.split('');\n var s = '',\n j = 0;\n\n for (; j < 4; j++) {\n s += hex_chr[n >> j * 8 + 4 & 0x0F] + hex_chr[n >> j * 8 & 0x0F];\n }\n\n return s;\n };\n\n MD5.prototype.hex = function (x) {\n for (var i = 0; i < x.length; i++) {\n x[i] = this.rhex(x[i]);\n }\n\n return x.join('');\n };\n\n MD5.prototype.md5 = function (s) {\n return this.hex(this.md51(s));\n };\n\n MD5.prototype.add32 = function (a, b) {\n return this.ieCompatibility ? this.add32Compat(a, b) : this.add32Std(a, b);\n };\n /* this function is much faster, so if possible we use it. Some IEs are the only ones I know of that\n need the idiotic second function, generated by an if clause. */\n\n\n MD5.prototype.add32Std = function (a, b) {\n return a + b & 0xFFFFFFFF;\n };\n\n MD5.prototype.add32Compat = function (x, y) {\n var lsw = (x & 0xFFFF) + (y & 0xFFFF),\n msw = (x >> 16) + (y >> 16) + (lsw >> 16);\n return msw << 16 | lsw & 0xFFFF;\n };\n\n __decorate$1_([PostConstruct], MD5.prototype, \"init\", null);\n\n MD5 = __decorate$1_([Bean('md5')], MD5);\n return MD5;\n}(BeanStub);\n\nvar __extends$3p = undefined && undefined.__extends || function () {\n var _extendStatics3 = function extendStatics(d, b) {\n _extendStatics3 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics3(d, b);\n };\n\n return function (d, b) {\n _extendStatics3(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar WatermarkComp =\n/** @class */\nfunction (_super) {\n __extends$3p(WatermarkComp, _super);\n\n function WatermarkComp() {\n return _super.call(this, \"

\") || this;\n }\n\n WatermarkComp.prototype.postConstruct = function () {\n var _this = this;\n\n var show = this.shouldDisplayWatermark();\n this.addOrRemoveCssClass('ag-hidden', !show);\n\n if (show) {\n this.eLicenseTextRef.innerText = this.licenseManager.getWatermarkMessage();\n window.setTimeout(function () {\n return _this.addCssClass('ag-opacity-zero');\n }, 0);\n window.setTimeout(function () {\n return _this.addCssClass('ag-hidden');\n }, 5000);\n }\n };\n\n WatermarkComp.prototype.shouldDisplayWatermark = function () {\n var eDocument = this.gridOptionsWrapper.getDocument();\n var win = eDocument.defaultView || window;\n var loc = win.location;\n var _a = loc.hostname,\n hostname = _a === void 0 ? '' : _a,\n pathname = loc.pathname;\n var isDisplayWatermark = this.licenseManager.isDisplayWatermark();\n var isWhiteListURL = hostname.match('^(?:127\\.0\\.0\\.1|localhost|(?:\\w+\\.)?ag-grid\\.com)$') != null;\n var isForceWatermark = pathname ? pathname.indexOf('forceWatermark') !== -1 : false;\n return isForceWatermark || isDisplayWatermark && !isWhiteListURL;\n };\n\n __decorate$1Z([Autowired('licenseManager')], WatermarkComp.prototype, \"licenseManager\", void 0);\n\n __decorate$1Z([RefSelector('eLicenseTextRef')], WatermarkComp.prototype, \"eLicenseTextRef\", void 0);\n\n __decorate$1Z([PostConstruct], WatermarkComp.prototype, \"postConstruct\", null);\n\n return WatermarkComp;\n}(Component);\n\nvar EnterpriseCoreModule = {\n moduleName: ModuleNames.EnterpriseCoreModule,\n beans: [LicenseManager, MD5],\n agStackComponents: [{\n componentName: 'AgWatermark',\n componentClass: WatermarkComp\n }]\n};\n\nvar __extends$3o = undefined && undefined.__extends || function () {\n var _extendStatics4 = function extendStatics(d, b) {\n _extendStatics4 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics4(d, b);\n };\n\n return function (d, b) {\n _extendStatics4(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ClipboardService =\n/** @class */\nfunction (_super) {\n __extends$3o(ClipboardService, _super);\n\n function ClipboardService() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.lastPasteOperationTime = 0;\n _this.navigatorApiFailed = false;\n return _this;\n }\n\n ClipboardService.prototype.init = function () {\n var _this = this;\n\n this.logger = this.loggerFactory.create('ClipboardService');\n\n if (this.rowModel.getType() === Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {\n this.clientSideRowModel = this.rowModel;\n }\n\n this.ctrlsService.whenReady(function (p) {\n _this.gridCtrl = p.gridCtrl;\n });\n };\n\n ClipboardService.prototype.pasteFromClipboard = function () {\n var _this = this;\n\n this.logger.log('pasteFromClipboard'); // Method 1 - native clipboard API, available in modern chrome browsers\n\n var allowNavigator = !this.gridOptionsWrapper.isSuppressClipboardApi(); // Some browsers (Firefox) do not allow Web Applications to read from\n // the clipboard so verify if not only the ClipboardAPI is available,\n // but also if the `readText` method is public.\n\n if (allowNavigator && !this.navigatorApiFailed && navigator.clipboard && navigator.clipboard.readText) {\n navigator.clipboard.readText().then(this.processClipboardData.bind(this)).catch(function (e) {\n _.doOnce(function () {\n console.warn(e);\n console.warn('AG Grid: Unable to use the Clipboard API (navigator.clipboard.readText()). ' + 'The reason why it could not be used has been logged in the previous line. ' + 'For this reason the grid has defaulted to using a workaround which doesn\\'t perform as well. ' + 'Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid ' + 'property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API');\n }, 'clipboardApiError');\n\n _this.navigatorApiFailed = true;\n\n _this.pasteFromClipboardLegacy();\n });\n } else {\n this.pasteFromClipboardLegacy();\n }\n };\n\n ClipboardService.prototype.pasteFromClipboardLegacy = function () {\n var _this = this; // Method 2 - if modern API fails, the old school hack\n\n\n var defaultPrevented = false;\n\n var handlePasteEvent = function handlePasteEvent(e) {\n var currentPastOperationTime = new Date().getTime();\n\n if (currentPastOperationTime - _this.lastPasteOperationTime < 50) {\n defaultPrevented = true;\n e.preventDefault();\n }\n\n _this.lastPasteOperationTime = currentPastOperationTime;\n };\n\n this.executeOnTempElement(function (textArea) {\n textArea.addEventListener('paste', handlePasteEvent);\n textArea.focus({\n preventScroll: true\n });\n }, function (element) {\n var data = element.value;\n\n if (!defaultPrevented) {\n _this.processClipboardData(data);\n } else {\n _this.refocusLastFocusedCell();\n }\n\n element.removeEventListener('paste', handlePasteEvent);\n });\n };\n\n ClipboardService.prototype.refocusLastFocusedCell = function () {\n var focusedCell = this.focusService.getFocusedCell();\n\n if (focusedCell) {\n this.focusService.setFocusedCell({\n rowIndex: focusedCell.rowIndex,\n column: focusedCell.column,\n rowPinned: focusedCell.rowPinned,\n forceBrowserFocus: true\n });\n }\n };\n\n ClipboardService.prototype.processClipboardData = function (data) {\n var _this = this;\n\n if (data == null) {\n return;\n }\n\n var parsedData = _.stringToArray(data, this.gridOptionsWrapper.getClipboardDelimiter());\n\n var userFunc = this.gridOptionsWrapper.getProcessDataFromClipboardFunc();\n\n if (userFunc) {\n parsedData = userFunc({\n data: parsedData\n });\n }\n\n if (parsedData == null) {\n return;\n }\n\n if (this.gridOptionsWrapper.isSuppressLastEmptyLineOnPaste()) {\n this.removeLastLineIfBlank(parsedData);\n }\n\n var pasteOperation = function pasteOperation(cellsToFlash, updatedRowNodes, focusedCell, changedPath) {\n var rangeActive = _this.rangeService && _this.rangeService.isMoreThanOneCell();\n\n var pasteIntoRange = rangeActive && !_this.hasOnlyOneValueToPaste(parsedData);\n\n if (pasteIntoRange) {\n _this.pasteIntoActiveRange(parsedData, cellsToFlash, updatedRowNodes, changedPath);\n } else {\n _this.pasteStartingFromFocusedCell(parsedData, cellsToFlash, updatedRowNodes, focusedCell, changedPath);\n }\n };\n\n this.doPasteOperation(pasteOperation);\n }; // common code to paste operations, e.g. paste to cell, paste to range, and copy range down\n\n\n ClipboardService.prototype.doPasteOperation = function (pasteOperationFunc) {\n var api = this.gridOptionsWrapper.getApi();\n var columnApi = this.gridOptionsWrapper.getColumnApi();\n var source = 'clipboard';\n this.eventService.dispatchEvent({\n type: Events.EVENT_PASTE_START,\n api: api,\n columnApi: columnApi,\n source: source\n });\n var changedPath;\n\n if (this.clientSideRowModel) {\n var onlyChangedColumns = this.gridOptionsWrapper.isAggregateOnlyChangedColumns();\n changedPath = new ChangedPath(onlyChangedColumns, this.clientSideRowModel.getRootNode());\n }\n\n var cellsToFlash = {};\n var updatedRowNodes = [];\n var focusedCell = this.focusService.getFocusedCell();\n pasteOperationFunc(cellsToFlash, updatedRowNodes, focusedCell, changedPath);\n\n if (changedPath) {\n this.clientSideRowModel.doAggregate(changedPath);\n }\n\n this.rowRenderer.refreshCells();\n this.dispatchFlashCells(cellsToFlash);\n this.fireRowChanged(updatedRowNodes); // if using the clipboard hack with a temp element, then the focus has been lost,\n // so need to put it back. otherwise paste operation loosed focus on cell and keyboard\n // navigation stops.\n\n this.refocusLastFocusedCell();\n var event = {\n type: Events.EVENT_PASTE_END,\n source: source\n };\n this.eventService.dispatchEvent(event);\n };\n\n ClipboardService.prototype.pasteIntoActiveRange = function (clipboardData, cellsToFlash, updatedRowNodes, changedPath) {\n var _this = this; // true if clipboard data can be evenly pasted into range, otherwise false\n\n\n var abortRepeatingPasteIntoRows = this.getRangeSize() % clipboardData.length != 0;\n var indexOffset = 0;\n var dataRowIndex = 0;\n\n var rowCallback = function rowCallback(currentRow, rowNode, columns, index) {\n var atEndOfClipboardData = index - indexOffset >= clipboardData.length;\n\n if (atEndOfClipboardData) {\n if (abortRepeatingPasteIntoRows) {\n return;\n } // increment offset and reset data index to repeat paste of data\n\n\n indexOffset += dataRowIndex;\n dataRowIndex = 0;\n }\n\n var currentRowData = clipboardData[index - indexOffset]; // otherwise we are not the first row, so copy\n\n updatedRowNodes.push(rowNode);\n\n var processCellFromClipboardFunc = _this.gridOptionsWrapper.getProcessCellFromClipboardFunc();\n\n columns.forEach(function (column, idx) {\n if (!column.isCellEditable(rowNode) || column.isSuppressPaste(rowNode)) {\n return;\n } // repeat data for columns we don't have data for - happens when to range is bigger than copied data range\n\n\n if (idx >= currentRowData.length) {\n idx = idx % currentRowData.length;\n }\n\n var newValue = _this.processCell(rowNode, column, currentRowData[idx], Constants.EXPORT_TYPE_DRAG_COPY, processCellFromClipboardFunc);\n\n rowNode.setDataValue(column, newValue, Constants.SOURCE_PASTE);\n\n if (changedPath) {\n changedPath.addParentNode(rowNode.parent, [column]);\n }\n\n var cellId = _this.cellPositionUtils.createIdFromValues(currentRow.rowIndex, column, currentRow.rowPinned);\n\n cellsToFlash[cellId] = true;\n });\n dataRowIndex++;\n };\n\n this.iterateActiveRanges(false, rowCallback);\n };\n\n ClipboardService.prototype.pasteStartingFromFocusedCell = function (parsedData, cellsToFlash, updatedRowNodes, focusedCell, changedPath) {\n if (!focusedCell) {\n return;\n }\n\n var currentRow = {\n rowIndex: focusedCell.rowIndex,\n rowPinned: focusedCell.rowPinned\n };\n var columnsToPasteInto = this.columnModel.getDisplayedColumnsStartingAt(focusedCell.column);\n\n if (this.isPasteSingleValueIntoRange(parsedData)) {\n this.pasteSingleValueIntoRange(parsedData, updatedRowNodes, cellsToFlash, changedPath);\n } else {\n this.pasteMultipleValues(parsedData, currentRow, updatedRowNodes, columnsToPasteInto, cellsToFlash, Constants.EXPORT_TYPE_CLIPBOARD, changedPath);\n }\n }; // if range is active, and only one cell, then we paste this cell into all cells in the active range.\n\n\n ClipboardService.prototype.isPasteSingleValueIntoRange = function (parsedData) {\n return this.hasOnlyOneValueToPaste(parsedData) && this.rangeService != null && !this.rangeService.isEmpty();\n };\n\n ClipboardService.prototype.pasteSingleValueIntoRange = function (parsedData, updatedRowNodes, cellsToFlash, changedPath) {\n var _this = this;\n\n var value = parsedData[0][0];\n\n var rowCallback = function rowCallback(currentRow, rowNode, columns) {\n updatedRowNodes.push(rowNode);\n columns.forEach(function (column) {\n return _this.updateCellValue(rowNode, column, value, cellsToFlash, Constants.EXPORT_TYPE_CLIPBOARD, changedPath);\n });\n };\n\n this.iterateActiveRanges(false, rowCallback);\n };\n\n ClipboardService.prototype.hasOnlyOneValueToPaste = function (parsedData) {\n return parsedData.length === 1 && parsedData[0].length === 1;\n };\n\n ClipboardService.prototype.copyRangeDown = function () {\n var _this = this;\n\n if (!this.rangeService || this.rangeService.isEmpty()) {\n return;\n }\n\n var firstRowValues = [];\n\n var pasteOperation = function pasteOperation(cellsToFlash, updatedRowNodes, focusedCell, changedPath) {\n var processCellForClipboardFunc = _this.gridOptionsWrapper.getProcessCellForClipboardFunc();\n\n var processCellFromClipboardFunc = _this.gridOptionsWrapper.getProcessCellFromClipboardFunc();\n\n var rowCallback = function rowCallback(currentRow, rowNode, columns) {\n // take reference of first row, this is the one we will be using to copy from\n if (!firstRowValues.length) {\n // two reasons for looping through columns\n columns.forEach(function (column) {\n // get the initial values to copy down\n var value = _this.processCell(rowNode, column, _this.valueService.getValue(column, rowNode), Constants.EXPORT_TYPE_DRAG_COPY, processCellForClipboardFunc);\n\n firstRowValues.push(value);\n });\n } else {\n // otherwise we are not the first row, so copy\n updatedRowNodes.push(rowNode);\n columns.forEach(function (column, index) {\n if (!column.isCellEditable(rowNode) || column.isSuppressPaste(rowNode)) {\n return;\n }\n\n var firstRowValue = _this.processCell(rowNode, column, firstRowValues[index], Constants.EXPORT_TYPE_DRAG_COPY, processCellFromClipboardFunc);\n\n rowNode.setDataValue(column, firstRowValue, Constants.SOURCE_PASTE);\n\n if (changedPath) {\n changedPath.addParentNode(rowNode.parent, [column]);\n }\n\n var cellId = _this.cellPositionUtils.createIdFromValues(currentRow.rowIndex, column, currentRow.rowPinned);\n\n cellsToFlash[cellId] = true;\n });\n }\n };\n\n _this.iterateActiveRanges(true, rowCallback);\n };\n\n this.doPasteOperation(pasteOperation);\n };\n\n ClipboardService.prototype.removeLastLineIfBlank = function (parsedData) {\n // remove last row if empty, excel puts empty last row in\n var lastLine = _.last(parsedData);\n\n var lastLineIsBlank = lastLine && lastLine.length === 1 && lastLine[0] === '';\n\n if (lastLineIsBlank) {\n // do not remove the last empty line when that is the only line pasted\n if (parsedData.length === 1) {\n return;\n }\n\n _.removeFromArray(parsedData, lastLine);\n }\n };\n\n ClipboardService.prototype.fireRowChanged = function (rowNodes) {\n var _this = this;\n\n if (!this.gridOptionsWrapper.isFullRowEdit()) {\n return;\n }\n\n rowNodes.forEach(function (rowNode) {\n var event = {\n type: Events.EVENT_ROW_VALUE_CHANGED,\n node: rowNode,\n data: rowNode.data,\n rowIndex: rowNode.rowIndex,\n rowPinned: rowNode.rowPinned\n };\n\n _this.eventService.dispatchEvent(event);\n });\n };\n\n ClipboardService.prototype.pasteMultipleValues = function (clipboardGridData, currentRow, updatedRowNodes, columnsToPasteInto, cellsToFlash, type, changedPath) {\n var _this = this;\n\n var rowPointer = currentRow; // if doing CSRM and NOT tree data, then it means groups are aggregates, which are read only,\n // so we should skip them when doing paste operations.\n\n var skipGroupRows = this.clientSideRowModel != null && !this.gridOptionsWrapper.isTreeData();\n\n var getNextGoodRowNode = function getNextGoodRowNode() {\n while (true) {\n if (!rowPointer) {\n return null;\n }\n\n var res = _this.rowPositionUtils.getRowNode(rowPointer); // move to next row down for next set of values\n\n\n rowPointer = _this.cellNavigationService.getRowBelow({\n rowPinned: rowPointer.rowPinned,\n rowIndex: rowPointer.rowIndex\n }); // if no more rows, return null\n\n if (res == null) {\n return null;\n } // skip details rows and footer rows, never paste into them as they don't hold data\n\n\n var skipRow = res.detail || res.footer || skipGroupRows && res.group; // skipping row means we go into the next iteration of the while loop\n\n if (!skipRow) {\n return res;\n }\n }\n };\n\n clipboardGridData.forEach(function (clipboardRowData) {\n var rowNode = getNextGoodRowNode(); // if we have come to end of rows in grid, then skip\n\n if (!rowNode) {\n return;\n }\n\n clipboardRowData.forEach(function (value, index) {\n return _this.updateCellValue(rowNode, columnsToPasteInto[index], value, cellsToFlash, type, changedPath);\n });\n updatedRowNodes.push(rowNode);\n });\n };\n\n ClipboardService.prototype.updateCellValue = function (rowNode, column, value, cellsToFlash, type, changedPath) {\n if (!rowNode || !column || !column.isCellEditable(rowNode) || column.isSuppressPaste(rowNode)) {\n return;\n }\n\n var processedValue = this.processCell(rowNode, column, value, type, this.gridOptionsWrapper.getProcessCellFromClipboardFunc());\n rowNode.setDataValue(column, processedValue, Constants.SOURCE_PASTE);\n var cellId = this.cellPositionUtils.createIdFromValues(rowNode.rowIndex, column, rowNode.rowPinned);\n cellsToFlash[cellId] = true;\n\n if (changedPath) {\n changedPath.addParentNode(rowNode.parent, [column]);\n }\n };\n\n ClipboardService.prototype.copyToClipboard = function (params) {\n if (params === void 0) {\n params = {};\n }\n\n var includeHeaders = params.includeHeaders,\n includeGroupHeaders = params.includeGroupHeaders;\n this.logger.log(\"copyToClipboard: includeHeaders = \" + includeHeaders); // don't override 'includeHeaders' if it has been explicitly set to 'false'\n\n if (includeHeaders == null) {\n includeHeaders = this.gridOptionsWrapper.isCopyHeadersToClipboard();\n }\n\n if (includeGroupHeaders == null) {\n includeGroupHeaders = this.gridOptionsWrapper.isCopyGroupHeadersToClipboard();\n }\n\n var copyParams = {\n includeHeaders: includeHeaders,\n includeGroupHeaders: includeGroupHeaders\n };\n var shouldCopyRows = !this.gridOptionsWrapper.isSuppressCopyRowsToClipboard(); // Copy priority is Range > Row > Focus\n\n if (this.rangeService && !this.rangeService.isEmpty() && !this.shouldSkipSingleCellRange()) {\n this.copySelectedRangeToClipboard(copyParams);\n } else if (shouldCopyRows && !this.selectionService.isEmpty()) {\n this.copySelectedRowsToClipboard(copyParams);\n } else if (this.focusService.isAnyCellFocused()) {\n this.copyFocusedCellToClipboard(copyParams);\n }\n };\n\n ClipboardService.prototype.shouldSkipSingleCellRange = function () {\n return this.gridOptionsWrapper.isSuppressCopySingleCellRanges() && !this.rangeService.isMoreThanOneCell();\n };\n\n ClipboardService.prototype.iterateActiveRanges = function (onlyFirst, rowCallback, columnCallback) {\n var _this = this;\n\n if (!this.rangeService || this.rangeService.isEmpty()) {\n return;\n }\n\n var cellRanges = this.rangeService.getCellRanges();\n\n if (onlyFirst) {\n this.iterateActiveRange(cellRanges[0], rowCallback, columnCallback, true);\n } else {\n cellRanges.forEach(function (range, idx) {\n return _this.iterateActiveRange(range, rowCallback, columnCallback, idx === cellRanges.length - 1);\n });\n }\n };\n\n ClipboardService.prototype.iterateActiveRange = function (range, rowCallback, columnCallback, isLastRange) {\n if (!this.rangeService) {\n return;\n }\n\n var currentRow = this.rangeService.getRangeStartRow(range);\n var lastRow = this.rangeService.getRangeEndRow(range);\n\n if (columnCallback && range.columns) {\n columnCallback(range.columns);\n }\n\n var rangeIndex = 0;\n var isLastRow = false; // the currentRow could be missing if the user sets the active range manually, and sets a range\n // that is outside of the grid (eg. sets range rows 0 to 100, but grid has only 20 rows).\n\n while (!isLastRow && currentRow != null) {\n var rowNode = this.rowPositionUtils.getRowNode(currentRow);\n isLastRow = this.rowPositionUtils.sameRow(currentRow, lastRow);\n rowCallback(currentRow, rowNode, range.columns, rangeIndex++, isLastRow && isLastRange);\n currentRow = this.cellNavigationService.getRowBelow(currentRow);\n }\n };\n\n ClipboardService.prototype.copySelectedRangeToClipboard = function (params) {\n if (params === void 0) {\n params = {};\n }\n\n if (!this.rangeService || this.rangeService.isEmpty()) {\n return;\n }\n\n var allRangesMerge = this.rangeService.areAllRangesAbleToMerge();\n\n var _a = allRangesMerge ? this.buildDataFromMergedRanges(params) : this.buildDataFromRanges(params),\n data = _a.data,\n cellsToFlash = _a.cellsToFlash;\n\n this.copyDataToClipboard(data);\n this.dispatchFlashCells(cellsToFlash);\n };\n\n ClipboardService.prototype.buildDataFromMergedRanges = function (params) {\n var _this = this;\n\n var columnsSet = new Set();\n var ranges = this.rangeService.getCellRanges();\n var rowPositionsMap = new Map();\n var allRowPositions = [];\n var allCellsToFlash = {};\n ranges.forEach(function (range) {\n range.columns.forEach(function (col) {\n return columnsSet.add(col);\n });\n\n var _a = _this.getRangeRowPositionsAndCellsToFlash(range),\n rowPositions = _a.rowPositions,\n cellsToFlash = _a.cellsToFlash;\n\n rowPositions.forEach(function (rowPosition) {\n var rowPositionAsString = rowPosition.rowIndex + \"-\" + (rowPosition.rowPinned || 'null');\n\n if (!rowPositionsMap.get(rowPositionAsString)) {\n rowPositionsMap.set(rowPositionAsString, true);\n allRowPositions.push(rowPosition);\n }\n });\n Object.assign(allCellsToFlash, cellsToFlash);\n });\n var allColumns = this.columnModel.getAllDisplayedColumns();\n var exportedColumns = Array.from(columnsSet);\n exportedColumns.sort(function (a, b) {\n var posA = allColumns.indexOf(a);\n var posB = allColumns.indexOf(b);\n return posA - posB;\n });\n var data = this.buildExportParams({\n columns: exportedColumns,\n rowPositions: allRowPositions,\n includeHeaders: params.includeHeaders,\n includeGroupHeaders: params.includeGroupHeaders\n });\n return {\n data: data,\n cellsToFlash: allCellsToFlash\n };\n };\n\n ClipboardService.prototype.buildDataFromRanges = function (params) {\n var _this = this;\n\n var ranges = this.rangeService.getCellRanges();\n var data = [];\n var allCellsToFlash = {};\n ranges.forEach(function (range) {\n var _a = _this.getRangeRowPositionsAndCellsToFlash(range),\n rowPositions = _a.rowPositions,\n cellsToFlash = _a.cellsToFlash;\n\n Object.assign(allCellsToFlash, cellsToFlash);\n data.push(_this.buildExportParams({\n columns: range.columns,\n rowPositions: rowPositions,\n includeHeaders: params.includeHeaders,\n includeGroupHeaders: params.includeGroupHeaders\n }));\n });\n return {\n data: data.join('\\n'),\n cellsToFlash: allCellsToFlash\n };\n };\n\n ClipboardService.prototype.getRangeRowPositionsAndCellsToFlash = function (range) {\n var _this = this;\n\n var rowPositions = [];\n var cellsToFlash = {};\n var startRow = this.rangeService.getRangeStartRow(range);\n var lastRow = this.rangeService.getRangeEndRow(range);\n var node = startRow;\n\n while (node) {\n rowPositions.push(node);\n range.columns.forEach(function (column) {\n var cellId = _this.cellPositionUtils.createIdFromValues(node.rowIndex, column, node.rowPinned);\n\n cellsToFlash[cellId] = true;\n });\n\n if (this.rowPositionUtils.sameRow(node, lastRow)) {\n break;\n }\n\n node = this.cellNavigationService.getRowBelow(node);\n }\n\n return {\n rowPositions: rowPositions,\n cellsToFlash: cellsToFlash\n };\n };\n\n ClipboardService.prototype.copyFocusedCellToClipboard = function (params) {\n var _a;\n\n if (params === void 0) {\n params = {};\n }\n\n var focusedCell = this.focusService.getFocusedCell();\n\n if (focusedCell == null) {\n return;\n }\n\n var cellId = this.cellPositionUtils.createId(focusedCell);\n var currentRow = {\n rowPinned: focusedCell.rowPinned,\n rowIndex: focusedCell.rowIndex\n };\n var column = focusedCell.column;\n var data = this.buildExportParams({\n columns: [column],\n rowPositions: [currentRow],\n includeHeaders: params.includeHeaders,\n includeGroupHeaders: params.includeGroupHeaders\n });\n this.copyDataToClipboard(data);\n this.dispatchFlashCells((_a = {}, _a[cellId] = true, _a));\n };\n\n ClipboardService.prototype.copySelectedRowsToClipboard = function (params) {\n if (params === void 0) {\n params = {};\n }\n\n var columnKeys = params.columnKeys,\n includeHeaders = params.includeHeaders,\n includeGroupHeaders = params.includeGroupHeaders;\n var data = this.buildExportParams({\n columns: columnKeys,\n includeHeaders: includeHeaders,\n includeGroupHeaders: includeGroupHeaders\n });\n this.copyDataToClipboard(data);\n };\n\n ClipboardService.prototype.buildExportParams = function (params) {\n var columns = params.columns,\n rowPositions = params.rowPositions,\n _a = params.includeHeaders,\n includeHeaders = _a === void 0 ? false : _a,\n _b = params.includeGroupHeaders,\n includeGroupHeaders = _b === void 0 ? false : _b;\n var exportParams = {\n columnKeys: columns,\n rowPositions: rowPositions,\n skipColumnHeaders: !includeHeaders,\n skipColumnGroupHeaders: !includeGroupHeaders,\n suppressQuotes: true,\n columnSeparator: this.gridOptionsWrapper.getClipboardDelimiter(),\n onlySelected: !rowPositions,\n processCellCallback: this.gridOptionsWrapper.getProcessCellForClipboardFunc(),\n processRowGroupCallback: function processRowGroupCallback(params) {\n return params.node.key;\n },\n processHeaderCallback: this.gridOptionsWrapper.getProcessHeaderForClipboardFunc(),\n processGroupHeaderCallback: this.gridOptionsWrapper.getProcessGroupHeaderForClipboardFunc()\n };\n return this.csvCreator.getDataAsCsv(exportParams);\n };\n\n ClipboardService.prototype.dispatchFlashCells = function (cellsToFlash) {\n var _this = this;\n\n window.setTimeout(function () {\n var event = {\n type: Events.EVENT_FLASH_CELLS,\n cells: cellsToFlash\n };\n\n _this.eventService.dispatchEvent(event);\n }, 0);\n };\n\n ClipboardService.prototype.processCell = function (rowNode, column, value, type, func) {\n if (func) {\n var params = {\n column: column,\n node: rowNode,\n value: value,\n type: type\n };\n return func(params);\n }\n\n return value;\n };\n\n ClipboardService.prototype.copyDataToClipboard = function (data) {\n var _this = this;\n\n var userProvidedFunc = this.gridOptionsWrapper.getSendToClipboardFunc(); // method 1 - user provided func\n\n if (userProvidedFunc) {\n userProvidedFunc({\n data: data\n });\n return;\n } // method 2 - native clipboard API, available in modern chrome browsers\n\n\n var allowNavigator = !this.gridOptionsWrapper.isSuppressClipboardApi();\n\n if (allowNavigator && navigator.clipboard) {\n navigator.clipboard.writeText(data).catch(function (e) {\n _.doOnce(function () {\n console.warn(e);\n console.warn('AG Grid: Unable to use the Clipboard API (navigator.clipboard.writeText()). ' + 'The reason why it could not be used has been logged in the previous line. ' + 'For this reason the grid has defaulted to using a workaround which doesn\\'t perform as well. ' + 'Either fix why Clipboard API is blocked, OR stop this message from appearing by setting grid ' + 'property suppressClipboardApi=true (which will default the grid to using the workaround rather than the API.');\n }, 'clipboardApiError');\n\n _this.copyDataToClipboardLegacy(data);\n });\n return;\n }\n\n this.copyDataToClipboardLegacy(data);\n };\n\n ClipboardService.prototype.copyDataToClipboardLegacy = function (data) {\n var _this = this; // method 3 - if all else fails, the old school hack\n\n\n this.executeOnTempElement(function (element) {\n var eDocument = _this.gridOptionsWrapper.getDocument();\n\n var focusedElementBefore = eDocument.activeElement;\n element.value = data || ' '; // has to be non-empty value or execCommand will not do anything\n\n element.select();\n element.focus({\n preventScroll: true\n });\n var result = eDocument.execCommand('copy');\n\n if (!result) {\n console.warn('AG Grid: Browser did not allow document.execCommand(\\'copy\\'). Ensure ' + 'api.copySelectedRowsToClipboard() is invoked via a user event, i.e. button click, otherwise ' + 'the browser will prevent it for security reasons.');\n }\n\n if (focusedElementBefore != null && focusedElementBefore.focus != null) {\n focusedElementBefore.focus({\n preventScroll: true\n });\n }\n });\n };\n\n ClipboardService.prototype.executeOnTempElement = function (callbackNow, callbackAfter) {\n var eDoc = this.gridOptionsWrapper.getDocument();\n var eTempInput = eDoc.createElement('textarea');\n eTempInput.style.width = '1px';\n eTempInput.style.height = '1px'; // removing items from the DOM causes the document element to scroll to the\n // position where the element was positioned. Here we set scrollTop / scrollLeft\n // to prevent the document element from scrolling when we remove it from the DOM.\n\n eTempInput.style.top = eDoc.documentElement.scrollTop + 'px';\n eTempInput.style.left = eDoc.documentElement.scrollLeft + 'px';\n eTempInput.style.position = 'absolute';\n eTempInput.style.opacity = '0';\n var guiRoot = this.gridCtrl.getGui();\n guiRoot.appendChild(eTempInput);\n\n try {\n callbackNow(eTempInput);\n } catch (err) {\n console.warn('AG Grid: Browser does not support document.execCommand(\\'copy\\') for clipboard operations');\n } //It needs 100 otherwise OS X seemed to not always be able to paste... Go figure...\n\n\n if (callbackAfter) {\n window.setTimeout(function () {\n callbackAfter(eTempInput);\n guiRoot.removeChild(eTempInput);\n }, 100);\n } else {\n guiRoot.removeChild(eTempInput);\n }\n };\n\n ClipboardService.prototype.getRangeSize = function () {\n var ranges = this.rangeService.getCellRanges();\n var startRangeIndex = 0;\n var endRangeIndex = 0;\n\n if (ranges.length > 0) {\n startRangeIndex = this.rangeService.getRangeStartRow(ranges[0]).rowIndex;\n endRangeIndex = this.rangeService.getRangeEndRow(ranges[0]).rowIndex;\n }\n\n return startRangeIndex - endRangeIndex + 1;\n };\n\n __decorate$1Y([Autowired('csvCreator')], ClipboardService.prototype, \"csvCreator\", void 0);\n\n __decorate$1Y([Autowired('loggerFactory')], ClipboardService.prototype, \"loggerFactory\", void 0);\n\n __decorate$1Y([Autowired('selectionService')], ClipboardService.prototype, \"selectionService\", void 0);\n\n __decorate$1Y([Optional('rangeService')], ClipboardService.prototype, \"rangeService\", void 0);\n\n __decorate$1Y([Autowired('rowModel')], ClipboardService.prototype, \"rowModel\", void 0);\n\n __decorate$1Y([Autowired('ctrlsService')], ClipboardService.prototype, \"ctrlsService\", void 0);\n\n __decorate$1Y([Autowired('valueService')], ClipboardService.prototype, \"valueService\", void 0);\n\n __decorate$1Y([Autowired('focusService')], ClipboardService.prototype, \"focusService\", void 0);\n\n __decorate$1Y([Autowired('rowRenderer')], ClipboardService.prototype, \"rowRenderer\", void 0);\n\n __decorate$1Y([Autowired('columnModel')], ClipboardService.prototype, \"columnModel\", void 0);\n\n __decorate$1Y([Autowired('cellNavigationService')], ClipboardService.prototype, \"cellNavigationService\", void 0);\n\n __decorate$1Y([Autowired('cellPositionUtils')], ClipboardService.prototype, \"cellPositionUtils\", void 0);\n\n __decorate$1Y([Autowired('rowPositionUtils')], ClipboardService.prototype, \"rowPositionUtils\", void 0);\n\n __decorate$1Y([PostConstruct], ClipboardService.prototype, \"init\", null);\n\n ClipboardService = __decorate$1Y([Bean('clipboardService')], ClipboardService);\n return ClipboardService;\n}(BeanStub);\n\nvar ClipboardModule = {\n moduleName: ModuleNames.ClipboardModule,\n beans: [ClipboardService],\n dependantModules: [EnterpriseCoreModule, CsvExportModule]\n};\n\nvar __extends$3n = undefined && undefined.__extends || function () {\n var _extendStatics5 = function extendStatics(d, b) {\n _extendStatics5 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics5(d, b);\n };\n\n return function (d, b) {\n _extendStatics5(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1X = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ExpandState;\n\n(function (ExpandState) {\n ExpandState[ExpandState[\"EXPANDED\"] = 0] = \"EXPANDED\";\n ExpandState[ExpandState[\"COLLAPSED\"] = 1] = \"COLLAPSED\";\n ExpandState[ExpandState[\"INDETERMINATE\"] = 2] = \"INDETERMINATE\";\n})(ExpandState || (ExpandState = {}));\n\nvar PrimaryColsHeaderPanel =\n/** @class */\nfunction (_super) {\n __extends$3n(PrimaryColsHeaderPanel, _super);\n\n function PrimaryColsHeaderPanel() {\n return _super.call(this, PrimaryColsHeaderPanel.TEMPLATE) || this;\n }\n\n PrimaryColsHeaderPanel.prototype.postConstruct = function () {\n var _this = this;\n\n this.createExpandIcons();\n this.addManagedListener(this.eExpand, 'click', this.onExpandClicked.bind(this));\n this.addManagedListener(this.eExpand, 'keydown', function (e) {\n if (e.key === KeyCode.SPACE) {\n _this.onExpandClicked();\n }\n });\n this.addManagedListener(this.eSelect.getInputElement(), 'click', this.onSelectClicked.bind(this));\n this.eFilterTextField.onValueChange(function () {\n return _this.onFilterTextChanged();\n });\n this.addManagedListener(this.eFilterTextField.getInputElement(), 'keypress', this.onMiniFilterKeyPress.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.showOrHideOptions.bind(this));\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n this.eSelect.setInputAriaLabel(translate('ariaColumnSelectAll', 'Toggle Select All Columns'));\n this.eFilterTextField.setInputAriaLabel(translate('ariaFilterColumnsInput', 'Filter Columns Input'));\n };\n\n PrimaryColsHeaderPanel.prototype.init = function (params) {\n this.params = params;\n\n if (this.columnModel.isReady()) {\n this.showOrHideOptions();\n }\n };\n\n PrimaryColsHeaderPanel.prototype.createExpandIcons = function () {\n this.eExpand.appendChild(this.eExpandChecked = _.createIconNoSpan('columnSelectOpen', this.gridOptionsWrapper));\n this.eExpand.appendChild(this.eExpandUnchecked = _.createIconNoSpan('columnSelectClosed', this.gridOptionsWrapper));\n this.eExpand.appendChild(this.eExpandIndeterminate = _.createIconNoSpan('columnSelectIndeterminate', this.gridOptionsWrapper));\n this.setExpandState(ExpandState.EXPANDED);\n }; // we only show expand / collapse if we are showing columns\n\n\n PrimaryColsHeaderPanel.prototype.showOrHideOptions = function () {\n var showFilter = !this.params.suppressColumnFilter;\n var showSelect = !this.params.suppressColumnSelectAll;\n var showExpand = !this.params.suppressColumnExpandAll;\n var groupsPresent = this.columnModel.isPrimaryColumnGroupsPresent();\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n this.eFilterTextField.setInputPlaceholder(translate('searchOoo', 'Search...'));\n\n _.setDisplayed(this.eFilterTextField.getGui(), showFilter);\n\n _.setDisplayed(this.eSelect.getGui(), showSelect);\n\n _.setDisplayed(this.eExpand, showExpand && groupsPresent);\n };\n\n PrimaryColsHeaderPanel.prototype.onFilterTextChanged = function () {\n var _this = this;\n\n if (!this.onFilterTextChangedDebounced) {\n this.onFilterTextChangedDebounced = _.debounce(function () {\n var filterText = _this.eFilterTextField.getValue();\n\n _this.dispatchEvent({\n type: \"filterChanged\",\n filterText: filterText\n });\n }, PrimaryColsHeaderPanel.DEBOUNCE_DELAY);\n }\n\n this.onFilterTextChangedDebounced();\n };\n\n PrimaryColsHeaderPanel.prototype.onMiniFilterKeyPress = function (e) {\n var _this = this;\n\n if (e.key === KeyCode.ENTER) {\n // we need to add a delay that corresponds to the filter text debounce delay to ensure\n // the text filtering has happened, otherwise all columns will be deselected\n setTimeout(function () {\n return _this.onSelectClicked();\n }, PrimaryColsHeaderPanel.DEBOUNCE_DELAY);\n }\n };\n\n PrimaryColsHeaderPanel.prototype.onSelectClicked = function () {\n this.dispatchEvent({\n type: this.selectState ? 'unselectAll' : 'selectAll'\n });\n };\n\n PrimaryColsHeaderPanel.prototype.onExpandClicked = function () {\n this.dispatchEvent({\n type: this.expandState === ExpandState.EXPANDED ? 'collapseAll' : 'expandAll'\n });\n };\n\n PrimaryColsHeaderPanel.prototype.setExpandState = function (state) {\n this.expandState = state;\n\n _.setDisplayed(this.eExpandChecked, this.expandState === ExpandState.EXPANDED);\n\n _.setDisplayed(this.eExpandUnchecked, this.expandState === ExpandState.COLLAPSED);\n\n _.setDisplayed(this.eExpandIndeterminate, this.expandState === ExpandState.INDETERMINATE);\n };\n\n PrimaryColsHeaderPanel.prototype.setSelectionState = function (state) {\n this.selectState = state;\n this.eSelect.setValue(this.selectState);\n };\n\n PrimaryColsHeaderPanel.DEBOUNCE_DELAY = 300;\n PrimaryColsHeaderPanel.TEMPLATE = \"
\\n
\\n \\n \\n
\";\n\n __decorate$1X([Autowired('columnModel')], PrimaryColsHeaderPanel.prototype, \"columnModel\", void 0);\n\n __decorate$1X([RefSelector('eExpand')], PrimaryColsHeaderPanel.prototype, \"eExpand\", void 0);\n\n __decorate$1X([RefSelector('eSelect')], PrimaryColsHeaderPanel.prototype, \"eSelect\", void 0);\n\n __decorate$1X([RefSelector('eFilterTextField')], PrimaryColsHeaderPanel.prototype, \"eFilterTextField\", void 0);\n\n __decorate$1X([PostConstruct], PrimaryColsHeaderPanel.prototype, \"postConstruct\", null);\n\n return PrimaryColsHeaderPanel;\n}(Component);\n\nvar ColumnModelItem =\n/** @class */\nfunction () {\n function ColumnModelItem(displayName, columnOrGroup, dept, group, expanded) {\n if (group === void 0) {\n group = false;\n }\n\n this.eventService = new EventService();\n this.displayName = displayName;\n this.dept = dept;\n this.group = group;\n\n if (group) {\n this.columnGroup = columnOrGroup;\n this.expanded = expanded;\n this.children = [];\n } else {\n this.column = columnOrGroup;\n }\n }\n\n ColumnModelItem.prototype.isGroup = function () {\n return this.group;\n };\n\n ColumnModelItem.prototype.getDisplayName = function () {\n return this.displayName;\n };\n\n ColumnModelItem.prototype.getColumnGroup = function () {\n return this.columnGroup;\n };\n\n ColumnModelItem.prototype.getColumn = function () {\n return this.column;\n };\n\n ColumnModelItem.prototype.getDept = function () {\n return this.dept;\n };\n\n ColumnModelItem.prototype.isExpanded = function () {\n return !!this.expanded;\n };\n\n ColumnModelItem.prototype.getChildren = function () {\n return this.children;\n };\n\n ColumnModelItem.prototype.isPassesFilter = function () {\n return this.passesFilter;\n };\n\n ColumnModelItem.prototype.setExpanded = function (expanded) {\n if (expanded === this.expanded) {\n return;\n }\n\n this.expanded = expanded;\n this.eventService.dispatchEvent({\n type: ColumnModelItem.EVENT_EXPANDED_CHANGED\n });\n };\n\n ColumnModelItem.prototype.setPassesFilter = function (passesFilter) {\n this.passesFilter = passesFilter;\n };\n\n ColumnModelItem.prototype.addEventListener = function (eventType, listener) {\n this.eventService.addEventListener(eventType, listener);\n };\n\n ColumnModelItem.prototype.removeEventListener = function (eventType, listener) {\n this.eventService.removeEventListener(eventType, listener);\n };\n\n ColumnModelItem.EVENT_EXPANDED_CHANGED = 'expandedChanged';\n return ColumnModelItem;\n}();\n\nvar __extends$3m = undefined && undefined.__extends || function () {\n var _extendStatics6 = function extendStatics(d, b) {\n _extendStatics6 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics6(d, b);\n };\n\n return function (d, b) {\n _extendStatics6(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1W = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$Y = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$w = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$Y(arguments[i]));\n }\n\n return ar;\n};\n\nvar __values$t = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar ToolPanelContextMenu =\n/** @class */\nfunction (_super) {\n __extends$3m(ToolPanelContextMenu, _super);\n\n function ToolPanelContextMenu(column, mouseEvent, parentEl) {\n var _this = _super.call(this,\n /* html */\n \"
\") || this;\n\n _this.column = column;\n _this.mouseEvent = mouseEvent;\n _this.parentEl = parentEl;\n _this.displayName = null;\n return _this;\n }\n\n ToolPanelContextMenu.prototype.postConstruct = function () {\n this.initializeProperties(this.column);\n this.buildMenuItemMap();\n\n if (this.column instanceof Column) {\n this.displayName = this.columnModel.getDisplayNameForColumn(this.column, 'columnToolPanel');\n } else {\n this.displayName = this.columnModel.getDisplayNameForProvidedColumnGroup(null, this.column, 'columnToolPanel');\n }\n\n if (this.isActive()) {\n this.mouseEvent.preventDefault();\n this.displayContextMenu();\n }\n };\n\n ToolPanelContextMenu.prototype.initializeProperties = function (column) {\n if (column instanceof ProvidedColumnGroup) {\n this.columns = column.getLeafColumns();\n } else {\n this.columns = [column];\n }\n\n this.allowGrouping = this.columns.some(function (col) {\n return col.isPrimary() && col.isAllowRowGroup();\n });\n this.allowValues = this.columns.some(function (col) {\n return col.isPrimary() && col.isAllowValue();\n });\n this.allowPivoting = this.columnModel.isPivotMode() && this.columns.some(function (col) {\n return col.isPrimary() && col.isAllowPivot();\n });\n };\n\n ToolPanelContextMenu.prototype.buildMenuItemMap = function () {\n var _this = this;\n\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n this.menuItemMap = new Map();\n this.menuItemMap.set('rowGroup', {\n allowedFunction: function allowedFunction(col) {\n return col.isPrimary() && col.isAllowRowGroup();\n },\n activeFunction: function activeFunction(col) {\n return col.isRowGroupActive();\n },\n activateLabel: function activateLabel() {\n return localeTextFunc('groupBy', 'Group by') + \" \" + _this.displayName;\n },\n deactivateLabel: function deactivateLabel() {\n return localeTextFunc('ungroupBy', 'Un-Group by') + \" \" + _this.displayName;\n },\n activateFunction: function activateFunction() {\n var groupedColumns = _this.columnModel.getRowGroupColumns();\n\n _this.columnModel.setRowGroupColumns(_this.addColumnsToList(groupedColumns), \"toolPanelUi\");\n },\n deActivateFunction: function deActivateFunction() {\n var groupedColumns = _this.columnModel.getRowGroupColumns();\n\n _this.columnModel.setRowGroupColumns(_this.removeColumnsFromList(groupedColumns), \"toolPanelUi\");\n },\n addIcon: 'menuAddRowGroup',\n removeIcon: 'menuRemoveRowGroup'\n });\n this.menuItemMap.set('value', {\n allowedFunction: function allowedFunction(col) {\n return col.isPrimary() && col.isAllowValue();\n },\n activeFunction: function activeFunction(col) {\n return col.isValueActive();\n },\n activateLabel: function activateLabel() {\n return localeTextFunc('addToValues', \"Add \" + _this.displayName + \" to values\", [_this.displayName]);\n },\n deactivateLabel: function deactivateLabel() {\n return localeTextFunc('removeFromValues', \"Remove \" + _this.displayName + \" from values\", [_this.displayName]);\n },\n activateFunction: function activateFunction() {\n var valueColumns = _this.columnModel.getValueColumns();\n\n _this.columnModel.setValueColumns(_this.addColumnsToList(valueColumns), \"toolPanelUi\");\n },\n deActivateFunction: function deActivateFunction() {\n var valueColumns = _this.columnModel.getValueColumns();\n\n _this.columnModel.setValueColumns(_this.removeColumnsFromList(valueColumns), \"toolPanelUi\");\n },\n addIcon: 'valuePanel',\n removeIcon: 'valuePanel'\n });\n this.menuItemMap.set('pivot', {\n allowedFunction: function allowedFunction(col) {\n return _this.columnModel.isPivotMode() && col.isPrimary() && col.isAllowPivot();\n },\n activeFunction: function activeFunction(col) {\n return col.isPivotActive();\n },\n activateLabel: function activateLabel() {\n return localeTextFunc('addToLabels', \"Add \" + _this.displayName + \" to labels\", [_this.displayName]);\n },\n deactivateLabel: function deactivateLabel() {\n return localeTextFunc('removeFromLabels', \"Remove \" + _this.displayName + \" from labels\", [_this.displayName]);\n },\n activateFunction: function activateFunction() {\n var pivotColumns = _this.columnModel.getPivotColumns();\n\n _this.columnModel.setPivotColumns(_this.addColumnsToList(pivotColumns), \"toolPanelUi\");\n },\n deActivateFunction: function deActivateFunction() {\n var pivotColumns = _this.columnModel.getPivotColumns();\n\n _this.columnModel.setPivotColumns(_this.removeColumnsFromList(pivotColumns), \"toolPanelUi\");\n },\n addIcon: 'pivotPanel',\n removeIcon: 'pivotPanel'\n });\n };\n\n ToolPanelContextMenu.prototype.addColumnsToList = function (columnList) {\n return __spread$w(columnList).concat(this.columns.filter(function (col) {\n return columnList.indexOf(col) === -1;\n }));\n };\n\n ToolPanelContextMenu.prototype.removeColumnsFromList = function (columnList) {\n var _this = this;\n\n return columnList.filter(function (col) {\n return _this.columns.indexOf(col) === -1;\n });\n };\n\n ToolPanelContextMenu.prototype.displayContextMenu = function () {\n var _this = this;\n\n var eGui = this.getGui();\n var menuList = this.createBean(new AgMenuList());\n var menuItemsMapped = this.getMappedMenuItems();\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n\n var hideFunc = function hideFunc() {};\n\n eGui.appendChild(menuList.getGui());\n menuList.addMenuItems(menuItemsMapped);\n menuList.addManagedListener(menuList, AgMenuItemComponent.EVENT_MENU_ITEM_SELECTED, function () {\n _this.parentEl.focus();\n\n hideFunc();\n });\n var addPopupRes = this.popupService.addPopup({\n modal: true,\n eChild: eGui,\n closeOnEsc: true,\n afterGuiAttached: function afterGuiAttached() {\n return _this.focusService.focusInto(menuList.getGui());\n },\n ariaLabel: localeTextFunc('ariaLabelContextMenu', 'Context Menu'),\n closedCallback: function closedCallback(e) {\n if (e instanceof KeyboardEvent) {\n _this.parentEl.focus();\n }\n\n _this.destroyBean(menuList);\n }\n });\n\n if (addPopupRes) {\n hideFunc = addPopupRes.hideFunc;\n }\n\n this.popupService.positionPopupUnderMouseEvent({\n type: 'columnContextMenu',\n mouseEvent: this.mouseEvent,\n ePopup: eGui\n });\n };\n\n ToolPanelContextMenu.prototype.isActive = function () {\n return this.allowGrouping || this.allowValues || this.allowPivoting;\n };\n\n ToolPanelContextMenu.prototype.getMappedMenuItems = function () {\n var e_1, _a;\n\n var ret = [];\n\n var _loop_1 = function _loop_1(val) {\n var isInactive = this_1.columns.some(function (col) {\n return val.allowedFunction(col) && !val.activeFunction(col);\n });\n var isActive = this_1.columns.some(function (col) {\n return val.allowedFunction(col) && val.activeFunction(col);\n });\n\n if (isInactive) {\n ret.push({\n name: val.activateLabel(this_1.displayName),\n icon: _.createIconNoSpan(val.addIcon, this_1.gridOptionsWrapper, null),\n action: function action() {\n return val.activateFunction();\n }\n });\n }\n\n if (isActive) {\n ret.push({\n name: val.deactivateLabel(this_1.displayName),\n icon: _.createIconNoSpan(val.removeIcon, this_1.gridOptionsWrapper, null),\n action: function action() {\n return val.deActivateFunction();\n }\n });\n }\n };\n\n var this_1 = this;\n\n try {\n for (var _b = __values$t(this.menuItemMap.values()), _c = _b.next(); !_c.done; _c = _b.next()) {\n var val = _c.value;\n\n _loop_1(val);\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n return ret;\n };\n\n __decorate$1W([Autowired('columnModel')], ToolPanelContextMenu.prototype, \"columnModel\", void 0);\n\n __decorate$1W([Autowired('popupService')], ToolPanelContextMenu.prototype, \"popupService\", void 0);\n\n __decorate$1W([Autowired('focusService')], ToolPanelContextMenu.prototype, \"focusService\", void 0);\n\n __decorate$1W([PostConstruct], ToolPanelContextMenu.prototype, \"postConstruct\", null);\n\n return ToolPanelContextMenu;\n}(Component);\n\nvar __extends$3l = undefined && undefined.__extends || function () {\n var _extendStatics7 = function extendStatics(d, b) {\n _extendStatics7 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics7(d, b);\n };\n\n return function (d, b) {\n _extendStatics7(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1V = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ToolPanelColumnGroupComp =\n/** @class */\nfunction (_super) {\n __extends$3l(ToolPanelColumnGroupComp, _super);\n\n function ToolPanelColumnGroupComp(modelItem, allowDragging, eventType, focusWrapper) {\n var _this = _super.call(this) || this;\n\n _this.modelItem = modelItem;\n _this.allowDragging = allowDragging;\n _this.eventType = eventType;\n _this.focusWrapper = focusWrapper;\n _this.processingColumnStateChange = false;\n _this.modelItem = modelItem;\n _this.columnGroup = modelItem.getColumnGroup();\n _this.columnDept = modelItem.getDept();\n _this.allowDragging = allowDragging;\n return _this;\n }\n\n ToolPanelColumnGroupComp.prototype.init = function () {\n var _this = this;\n\n this.setTemplate(ToolPanelColumnGroupComp.TEMPLATE);\n this.eDragHandle = _.createIconNoSpan('columnDrag', this.gridOptionsWrapper);\n this.eDragHandle.classList.add('ag-drag-handle', 'ag-column-select-column-group-drag-handle');\n var checkboxGui = this.cbSelect.getGui();\n var checkboxInput = this.cbSelect.getInputElement();\n checkboxGui.insertAdjacentElement('afterend', this.eDragHandle);\n checkboxInput.setAttribute('tabindex', '-1');\n this.displayName = this.columnModel.getDisplayNameForProvidedColumnGroup(null, this.columnGroup, this.eventType);\n\n if (_.missing(this.displayName)) {\n this.displayName = '>>';\n }\n\n this.eLabel.innerHTML = this.displayName ? this.displayName : '';\n this.setupExpandContract();\n this.addCssClass('ag-column-select-indent-' + this.columnDept);\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.onColumnStateChanged.bind(this));\n this.addManagedListener(this.eLabel, 'click', this.onLabelClicked.bind(this));\n this.addManagedListener(this.cbSelect, AgCheckbox.EVENT_CHANGED, this.onCheckboxChanged.bind(this));\n this.addManagedListener(this.modelItem, ColumnModelItem.EVENT_EXPANDED_CHANGED, this.onExpandChanged.bind(this));\n this.addManagedListener(this.focusWrapper, 'keydown', this.handleKeyDown.bind(this));\n this.addManagedListener(this.focusWrapper, 'contextmenu', this.onContextMenu.bind(this));\n this.setOpenClosedIcons();\n this.setupDragging();\n this.onColumnStateChanged();\n this.addVisibilityListenersToAllChildren();\n this.refreshAriaExpanded();\n this.refreshAriaLabel();\n this.setupTooltip();\n var classes = CssClassApplier.getToolPanelClassesFromColDef(this.columnGroup.getColGroupDef(), this.gridOptionsWrapper, null, this.columnGroup);\n classes.forEach(function (c) {\n return _this.addOrRemoveCssClass(c, true);\n });\n };\n\n ToolPanelColumnGroupComp.prototype.getColumns = function () {\n return this.columnGroup.getLeafColumns();\n };\n\n ToolPanelColumnGroupComp.prototype.setupTooltip = function () {\n var _this = this;\n\n var colGroupDef = this.columnGroup.getColGroupDef();\n\n if (!colGroupDef) {\n return;\n }\n\n var refresh = function refresh() {\n var newTooltipText = colGroupDef.headerTooltip;\n\n _this.setTooltip(newTooltipText);\n };\n\n refresh();\n this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, refresh);\n };\n\n ToolPanelColumnGroupComp.prototype.getTooltipParams = function () {\n var res = _super.prototype.getTooltipParams.call(this);\n\n res.location = 'columnToolPanelColumnGroup';\n return res;\n };\n\n ToolPanelColumnGroupComp.prototype.handleKeyDown = function (e) {\n switch (e.key) {\n case KeyCode.LEFT:\n e.preventDefault();\n this.modelItem.setExpanded(false);\n break;\n\n case KeyCode.RIGHT:\n e.preventDefault();\n this.modelItem.setExpanded(true);\n break;\n\n case KeyCode.SPACE:\n e.preventDefault();\n\n if (this.isSelectable()) {\n this.onSelectAllChanged(!this.isSelected());\n }\n\n break;\n }\n };\n\n ToolPanelColumnGroupComp.prototype.onContextMenu = function (e) {\n var _this = this;\n\n var _a = this,\n columnGroup = _a.columnGroup,\n gridOptionsWrapper = _a.gridOptionsWrapper;\n\n if (gridOptionsWrapper.isFunctionsReadOnly()) {\n return;\n }\n\n var contextMenu = this.createBean(new ToolPanelContextMenu(columnGroup, e, this.focusWrapper));\n this.addDestroyFunc(function () {\n if (contextMenu.isAlive()) {\n _this.destroyBean(contextMenu);\n }\n });\n };\n\n ToolPanelColumnGroupComp.prototype.addVisibilityListenersToAllChildren = function () {\n var _this = this;\n\n this.columnGroup.getLeafColumns().forEach(function (column) {\n _this.addManagedListener(column, Column.EVENT_VISIBLE_CHANGED, _this.onColumnStateChanged.bind(_this));\n\n _this.addManagedListener(column, Column.EVENT_VALUE_CHANGED, _this.onColumnStateChanged.bind(_this));\n\n _this.addManagedListener(column, Column.EVENT_PIVOT_CHANGED, _this.onColumnStateChanged.bind(_this));\n\n _this.addManagedListener(column, Column.EVENT_ROW_GROUP_CHANGED, _this.onColumnStateChanged.bind(_this));\n });\n };\n\n ToolPanelColumnGroupComp.prototype.setupDragging = function () {\n var _this = this;\n\n if (!this.allowDragging) {\n _.setDisplayed(this.eDragHandle, false);\n\n return;\n }\n\n var hideColumnOnExit = !this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns();\n var dragSource = {\n type: DragSourceType.ToolPanel,\n eElement: this.eDragHandle,\n dragItemName: this.displayName,\n defaultIconName: hideColumnOnExit ? DragAndDropService.ICON_HIDE : DragAndDropService.ICON_NOT_ALLOWED,\n getDragItem: function getDragItem() {\n return _this.createDragItem();\n },\n onDragStarted: function onDragStarted() {\n var event = {\n type: Events.EVENT_COLUMN_PANEL_ITEM_DRAG_START,\n column: _this.columnGroup\n };\n\n _this.eventService.dispatchEvent(event);\n },\n onDragStopped: function onDragStopped() {\n var event = {\n type: Events.EVENT_COLUMN_PANEL_ITEM_DRAG_END\n };\n\n _this.eventService.dispatchEvent(event);\n },\n onGridEnter: function onGridEnter() {\n if (hideColumnOnExit) {\n // when dragged into the grid, mimic what happens when checkbox is enabled\n // this handles the behaviour for pivot which is different to just hiding a column.\n _this.onChangeCommon(true);\n }\n },\n onGridExit: function onGridExit() {\n if (hideColumnOnExit) {\n // when dragged outside of the grid, mimic what happens when checkbox is disabled\n // this handles the behaviour for pivot which is different to just hiding a column.\n _this.onChangeCommon(false);\n }\n }\n };\n this.dragAndDropService.addDragSource(dragSource, true);\n this.addDestroyFunc(function () {\n return _this.dragAndDropService.removeDragSource(dragSource);\n });\n };\n\n ToolPanelColumnGroupComp.prototype.createDragItem = function () {\n var visibleState = {};\n this.columnGroup.getLeafColumns().forEach(function (col) {\n visibleState[col.getId()] = col.isVisible();\n });\n return {\n columns: this.columnGroup.getLeafColumns(),\n visibleState: visibleState\n };\n };\n\n ToolPanelColumnGroupComp.prototype.setupExpandContract = function () {\n this.eGroupClosedIcon.appendChild(_.createIcon('columnSelectClosed', this.gridOptionsWrapper, null));\n this.eGroupOpenedIcon.appendChild(_.createIcon('columnSelectOpen', this.gridOptionsWrapper, null));\n this.addManagedListener(this.eGroupClosedIcon, 'click', this.onExpandOrContractClicked.bind(this));\n this.addManagedListener(this.eGroupOpenedIcon, 'click', this.onExpandOrContractClicked.bind(this));\n var touchListener = new TouchListener(this.eColumnGroupIcons, true);\n this.addManagedListener(touchListener, TouchListener.EVENT_TAP, this.onExpandOrContractClicked.bind(this));\n this.addDestroyFunc(touchListener.destroy.bind(touchListener));\n };\n\n ToolPanelColumnGroupComp.prototype.onLabelClicked = function () {\n var nextState = !this.cbSelect.getValue();\n this.onChangeCommon(nextState);\n };\n\n ToolPanelColumnGroupComp.prototype.onCheckboxChanged = function (event) {\n this.onChangeCommon(event.selected);\n };\n\n ToolPanelColumnGroupComp.prototype.getVisibleLeafColumns = function () {\n var childColumns = [];\n\n var extractCols = function extractCols(children) {\n children.forEach(function (child) {\n if (!child.isPassesFilter()) {\n return;\n }\n\n if (child.isGroup()) {\n extractCols(child.getChildren());\n } else {\n childColumns.push(child.getColumn());\n }\n });\n };\n\n extractCols(this.modelItem.getChildren());\n return childColumns;\n };\n\n ToolPanelColumnGroupComp.prototype.onChangeCommon = function (nextState) {\n this.refreshAriaLabel();\n\n if (this.processingColumnStateChange) {\n return;\n }\n\n this.modelItemUtils.selectAllChildren(this.modelItem.getChildren(), nextState, this.eventType);\n };\n\n ToolPanelColumnGroupComp.prototype.refreshAriaLabel = function () {\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var columnLabel = translate('ariaColumnGroup', 'Column Group');\n var state = this.cbSelect.getValue() ? translate('ariaVisible', 'visible') : translate('ariaHidden', 'hidden');\n var visibilityLabel = translate('ariaToggleVisibility', 'Press SPACE to toggle visibility');\n\n _.setAriaLabel(this.focusWrapper, this.displayName + \" \" + columnLabel);\n\n this.cbSelect.setInputAriaLabel(visibilityLabel + \" (\" + state + \")\");\n\n _.setAriaDescribedBy(this.focusWrapper, this.cbSelect.getInputElement().id);\n };\n\n ToolPanelColumnGroupComp.prototype.onColumnStateChanged = function () {\n var selectedValue = this.workOutSelectedValue();\n var readOnlyValue = this.workOutReadOnlyValue();\n this.processingColumnStateChange = true;\n this.cbSelect.setValue(selectedValue);\n this.cbSelect.setReadOnly(readOnlyValue);\n this.addOrRemoveCssClass('ag-column-select-column-group-readonly', readOnlyValue);\n this.processingColumnStateChange = false;\n };\n\n ToolPanelColumnGroupComp.prototype.workOutSelectedValue = function () {\n var _this = this;\n\n var pivotMode = this.columnModel.isPivotMode();\n var visibleLeafColumns = this.getVisibleLeafColumns();\n var checkedCount = 0;\n var uncheckedCount = 0;\n visibleLeafColumns.forEach(function (column) {\n if (!pivotMode && column.getColDef().lockVisible) {\n return;\n }\n\n if (_this.isColumnChecked(column, pivotMode)) {\n checkedCount++;\n } else {\n uncheckedCount++;\n }\n });\n\n if (checkedCount > 0 && uncheckedCount > 0) {\n return undefined;\n }\n\n return checkedCount > 0;\n };\n\n ToolPanelColumnGroupComp.prototype.workOutReadOnlyValue = function () {\n var pivotMode = this.columnModel.isPivotMode();\n var colsThatCanAction = 0;\n this.columnGroup.getLeafColumns().forEach(function (col) {\n if (pivotMode) {\n if (col.isAnyFunctionAllowed()) {\n colsThatCanAction++;\n }\n } else {\n if (!col.getColDef().lockVisible) {\n colsThatCanAction++;\n }\n }\n });\n return colsThatCanAction === 0;\n };\n\n ToolPanelColumnGroupComp.prototype.isColumnChecked = function (column, pivotMode) {\n if (pivotMode) {\n var pivoted = column.isPivotActive();\n var grouped = column.isRowGroupActive();\n var aggregated = column.isValueActive();\n return pivoted || grouped || aggregated;\n }\n\n return column.isVisible();\n };\n\n ToolPanelColumnGroupComp.prototype.onExpandOrContractClicked = function () {\n var oldState = this.modelItem.isExpanded();\n this.modelItem.setExpanded(!oldState);\n };\n\n ToolPanelColumnGroupComp.prototype.onExpandChanged = function () {\n this.setOpenClosedIcons();\n this.refreshAriaExpanded();\n };\n\n ToolPanelColumnGroupComp.prototype.setOpenClosedIcons = function () {\n var folderOpen = this.modelItem.isExpanded();\n\n _.setDisplayed(this.eGroupClosedIcon, !folderOpen);\n\n _.setDisplayed(this.eGroupOpenedIcon, folderOpen);\n };\n\n ToolPanelColumnGroupComp.prototype.refreshAriaExpanded = function () {\n _.setAriaExpanded(this.focusWrapper, this.modelItem.isExpanded());\n };\n\n ToolPanelColumnGroupComp.prototype.getDisplayName = function () {\n return this.displayName;\n };\n\n ToolPanelColumnGroupComp.prototype.onSelectAllChanged = function (value) {\n var cbValue = this.cbSelect.getValue();\n var readOnly = this.cbSelect.isReadOnly();\n\n if (!readOnly && (value && !cbValue || !value && cbValue)) {\n this.cbSelect.toggle();\n }\n };\n\n ToolPanelColumnGroupComp.prototype.isSelected = function () {\n return this.cbSelect.getValue();\n };\n\n ToolPanelColumnGroupComp.prototype.isSelectable = function () {\n return !this.cbSelect.isReadOnly();\n };\n\n ToolPanelColumnGroupComp.prototype.setSelected = function (selected) {\n this.cbSelect.setValue(selected, true);\n };\n\n ToolPanelColumnGroupComp.TEMPLATE = \"
\\n \\n \\n \\n \\n \\n \\n
\";\n\n __decorate$1V([Autowired('columnModel')], ToolPanelColumnGroupComp.prototype, \"columnModel\", void 0);\n\n __decorate$1V([Autowired('dragAndDropService')], ToolPanelColumnGroupComp.prototype, \"dragAndDropService\", void 0);\n\n __decorate$1V([Autowired('modelItemUtils')], ToolPanelColumnGroupComp.prototype, \"modelItemUtils\", void 0);\n\n __decorate$1V([RefSelector('cbSelect')], ToolPanelColumnGroupComp.prototype, \"cbSelect\", void 0);\n\n __decorate$1V([RefSelector('eLabel')], ToolPanelColumnGroupComp.prototype, \"eLabel\", void 0);\n\n __decorate$1V([RefSelector('eGroupOpenedIcon')], ToolPanelColumnGroupComp.prototype, \"eGroupOpenedIcon\", void 0);\n\n __decorate$1V([RefSelector('eGroupClosedIcon')], ToolPanelColumnGroupComp.prototype, \"eGroupClosedIcon\", void 0);\n\n __decorate$1V([RefSelector('eColumnGroupIcons')], ToolPanelColumnGroupComp.prototype, \"eColumnGroupIcons\", void 0);\n\n __decorate$1V([PostConstruct], ToolPanelColumnGroupComp.prototype, \"init\", null);\n\n return ToolPanelColumnGroupComp;\n}(Component);\n\nvar __extends$3k = undefined && undefined.__extends || function () {\n var _extendStatics8 = function extendStatics(d, b) {\n _extendStatics8 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics8(d, b);\n };\n\n return function (d, b) {\n _extendStatics8(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1U = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar PRIMARY_COLS_LIST_ITEM_HOVERED = 'ag-list-item-hovered';\n\nvar PrimaryColsListPanelItemDragFeature =\n/** @class */\nfunction (_super) {\n __extends$3k(PrimaryColsListPanelItemDragFeature, _super);\n\n function PrimaryColsListPanelItemDragFeature(comp, virtualList) {\n var _this = _super.call(this) || this;\n\n _this.comp = comp;\n _this.virtualList = virtualList;\n _this.currentDragColumn = null;\n _this.lastHoveredColumnItem = null;\n return _this;\n }\n\n PrimaryColsListPanelItemDragFeature.prototype.postConstruct = function () {\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PANEL_ITEM_DRAG_START, this.columnPanelItemDragStart.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PANEL_ITEM_DRAG_END, this.columnPanelItemDragEnd.bind(this));\n this.createDropTarget();\n this.createAutoScrollService();\n };\n\n PrimaryColsListPanelItemDragFeature.prototype.columnPanelItemDragStart = function (_a) {\n var column = _a.column;\n this.currentDragColumn = column;\n var currentColumns = this.getCurrentColumns();\n var hasNotMovable = currentColumns.find(function (col) {\n var colDef = col.getColDef();\n return !!colDef.suppressMovable || !!colDef.lockPosition;\n });\n\n if (hasNotMovable) {\n this.moveBlocked = true;\n }\n };\n\n PrimaryColsListPanelItemDragFeature.prototype.columnPanelItemDragEnd = function () {\n var _this = this;\n\n window.setTimeout(function () {\n _this.currentDragColumn = null;\n _this.moveBlocked = false;\n }, 10);\n };\n\n PrimaryColsListPanelItemDragFeature.prototype.createDropTarget = function () {\n var _this = this;\n\n var dropTarget = {\n isInterestedIn: function isInterestedIn(type) {\n return type === DragSourceType.ToolPanel;\n },\n getIconName: function getIconName() {\n return DragAndDropService[_this.moveBlocked ? 'ICON_NOT_ALLOWED' : 'ICON_MOVE'];\n },\n getContainer: function getContainer() {\n return _this.comp.getGui();\n },\n onDragging: function onDragging(e) {\n return _this.onDragging(e);\n },\n onDragStop: function onDragStop() {\n return _this.onDragStop();\n },\n onDragLeave: function onDragLeave() {\n return _this.onDragLeave();\n }\n };\n this.dragAndDropService.addDropTarget(dropTarget);\n };\n\n PrimaryColsListPanelItemDragFeature.prototype.createAutoScrollService = function () {\n var virtualListGui = this.virtualList.getGui();\n this.autoScrollService = new AutoScrollService({\n scrollContainer: virtualListGui,\n scrollAxis: 'y',\n getVerticalPosition: function getVerticalPosition() {\n return virtualListGui.scrollTop;\n },\n setVerticalPosition: function setVerticalPosition(position) {\n return virtualListGui.scrollTop = position;\n }\n });\n };\n\n PrimaryColsListPanelItemDragFeature.prototype.onDragging = function (e) {\n if (!this.currentDragColumn || this.moveBlocked) {\n return;\n }\n\n var hoveredColumnItem = this.getDragColumnItem(e);\n var comp = this.virtualList.getComponentAt(hoveredColumnItem.rowIndex);\n\n if (!comp) {\n return;\n }\n\n var el = comp.getGui().parentElement;\n\n if (this.lastHoveredColumnItem && this.lastHoveredColumnItem.rowIndex === hoveredColumnItem.rowIndex && this.lastHoveredColumnItem.position === hoveredColumnItem.position) {\n return;\n }\n\n this.autoScrollService.check(e.event);\n this.clearHoveredItems();\n this.lastHoveredColumnItem = hoveredColumnItem;\n\n _.radioCssClass(el, \"\" + PRIMARY_COLS_LIST_ITEM_HOVERED);\n\n _.radioCssClass(el, \"ag-item-highlight-\" + hoveredColumnItem.position);\n };\n\n PrimaryColsListPanelItemDragFeature.prototype.getDragColumnItem = function (e) {\n var virtualListGui = this.virtualList.getGui();\n var paddingTop = parseFloat(window.getComputedStyle(virtualListGui).paddingTop);\n var rowHeight = this.virtualList.getRowHeight();\n var scrollTop = this.virtualList.getScrollTop();\n var rowIndex = Math.max(0, (e.y - paddingTop + scrollTop) / rowHeight);\n var maxLen = this.comp.getDisplayedColsList().length - 1;\n var normalizedRowIndex = Math.min(maxLen, rowIndex) | 0;\n return {\n rowIndex: normalizedRowIndex,\n position: Math.round(rowIndex) > rowIndex || rowIndex > maxLen ? 'bottom' : 'top',\n component: this.virtualList.getComponentAt(normalizedRowIndex)\n };\n };\n\n PrimaryColsListPanelItemDragFeature.prototype.onDragStop = function () {\n if (this.moveBlocked) {\n return;\n }\n\n var targetIndex = this.getTargetIndex();\n var columnsToMove = this.getCurrentColumns();\n\n if (targetIndex != null) {\n this.columnModel.moveColumns(columnsToMove, targetIndex);\n }\n\n this.clearHoveredItems();\n this.autoScrollService.ensureCleared();\n };\n\n PrimaryColsListPanelItemDragFeature.prototype.getMoveDiff = function (end) {\n var allColumns = this.columnModel.getAllGridColumns();\n var currentColumns = this.getCurrentColumns();\n var currentColumn = currentColumns[0];\n var span = currentColumns.length;\n var currentIndex = allColumns.indexOf(currentColumn);\n\n if (currentIndex < end) {\n return span;\n }\n\n return 0;\n };\n\n PrimaryColsListPanelItemDragFeature.prototype.getCurrentColumns = function () {\n if (this.currentDragColumn instanceof ProvidedColumnGroup) {\n return this.currentDragColumn.getLeafColumns();\n }\n\n return [this.currentDragColumn];\n };\n\n PrimaryColsListPanelItemDragFeature.prototype.getTargetIndex = function () {\n if (!this.lastHoveredColumnItem) {\n return null;\n }\n\n var columnItemComponent = this.lastHoveredColumnItem.component;\n var isBefore = this.lastHoveredColumnItem.position === 'top';\n var targetColumn;\n\n if (columnItemComponent instanceof ToolPanelColumnGroupComp) {\n var columns = columnItemComponent.getColumns();\n targetColumn = columns[0];\n isBefore = true;\n } else {\n targetColumn = columnItemComponent.getColumn();\n }\n\n var targetColumnIndex = this.columnModel.getAllGridColumns().indexOf(targetColumn);\n var adjustedTarget = isBefore ? targetColumnIndex : targetColumnIndex + 1;\n var diff = this.getMoveDiff(adjustedTarget);\n return adjustedTarget - diff;\n };\n\n PrimaryColsListPanelItemDragFeature.prototype.onDragLeave = function () {\n this.clearHoveredItems();\n this.autoScrollService.ensureCleared();\n };\n\n PrimaryColsListPanelItemDragFeature.prototype.clearHoveredItems = function () {\n var virtualListGui = this.virtualList.getGui();\n virtualListGui.querySelectorAll(\".\" + PRIMARY_COLS_LIST_ITEM_HOVERED).forEach(function (el) {\n [PRIMARY_COLS_LIST_ITEM_HOVERED, 'ag-item-highlight-top', 'ag-item-highlight-bottom'].forEach(function (cls) {\n el.classList.remove(cls);\n });\n });\n this.lastHoveredColumnItem = null;\n };\n\n __decorate$1U([Autowired('columnModel')], PrimaryColsListPanelItemDragFeature.prototype, \"columnModel\", void 0);\n\n __decorate$1U([Autowired('dragAndDropService')], PrimaryColsListPanelItemDragFeature.prototype, \"dragAndDropService\", void 0);\n\n __decorate$1U([PostConstruct], PrimaryColsListPanelItemDragFeature.prototype, \"postConstruct\", null);\n\n return PrimaryColsListPanelItemDragFeature;\n}(BeanStub);\n\nvar __extends$3j = undefined && undefined.__extends || function () {\n var _extendStatics9 = function extendStatics(d, b) {\n _extendStatics9 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics9(d, b);\n };\n\n return function (d, b) {\n _extendStatics9(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1T = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ToolPanelColumnComp =\n/** @class */\nfunction (_super) {\n __extends$3j(ToolPanelColumnComp, _super);\n\n function ToolPanelColumnComp(column, columnDept, allowDragging, groupsExist, focusWrapper) {\n var _this = _super.call(this) || this;\n\n _this.column = column;\n _this.columnDept = columnDept;\n _this.allowDragging = allowDragging;\n _this.groupsExist = groupsExist;\n _this.focusWrapper = focusWrapper;\n _this.processingColumnStateChange = false;\n return _this;\n }\n\n ToolPanelColumnComp.prototype.init = function () {\n var _this = this;\n\n this.setTemplate(ToolPanelColumnComp.TEMPLATE);\n this.eDragHandle = _.createIconNoSpan('columnDrag', this.gridOptionsWrapper);\n this.eDragHandle.classList.add('ag-drag-handle', 'ag-column-select-column-drag-handle');\n var checkboxGui = this.cbSelect.getGui();\n var checkboxInput = this.cbSelect.getInputElement();\n checkboxGui.insertAdjacentElement('afterend', this.eDragHandle);\n checkboxInput.setAttribute('tabindex', '-1');\n this.displayName = this.columnModel.getDisplayNameForColumn(this.column, 'columnToolPanel');\n\n var displayNameSanitised = _.escapeString(this.displayName);\n\n this.eLabel.innerHTML = displayNameSanitised; // if grouping, we add an extra level of indent, to cater for expand/contract icons we need to indent for\n\n var indent = this.columnDept;\n\n if (this.groupsExist) {\n this.addCssClass('ag-column-select-add-group-indent');\n }\n\n this.addCssClass(\"ag-column-select-indent-\" + indent);\n this.setupDragging();\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.onColumnStateChanged.bind(this));\n this.addManagedListener(this.column, Column.EVENT_VALUE_CHANGED, this.onColumnStateChanged.bind(this));\n this.addManagedListener(this.column, Column.EVENT_PIVOT_CHANGED, this.onColumnStateChanged.bind(this));\n this.addManagedListener(this.column, Column.EVENT_ROW_GROUP_CHANGED, this.onColumnStateChanged.bind(this));\n this.addManagedListener(this.column, Column.EVENT_VISIBLE_CHANGED, this.onColumnStateChanged.bind(this));\n this.addManagedListener(this.focusWrapper, 'keydown', this.handleKeyDown.bind(this));\n this.addManagedListener(this.focusWrapper, 'contextmenu', this.onContextMenu.bind(this));\n this.addManagedListener(this.gridOptionsWrapper, 'functionsReadOnly', this.onColumnStateChanged.bind(this));\n this.addManagedListener(this.cbSelect, AgCheckbox.EVENT_CHANGED, this.onCheckboxChanged.bind(this));\n this.addManagedListener(this.eLabel, 'click', this.onLabelClicked.bind(this));\n this.onColumnStateChanged();\n this.refreshAriaLabel();\n this.setupTooltip();\n var classes = CssClassApplier.getToolPanelClassesFromColDef(this.column.getColDef(), this.gridOptionsWrapper, this.column, null);\n classes.forEach(function (c) {\n return _this.addOrRemoveCssClass(c, true);\n });\n };\n\n ToolPanelColumnComp.prototype.getColumn = function () {\n return this.column;\n };\n\n ToolPanelColumnComp.prototype.setupTooltip = function () {\n var _this = this;\n\n var refresh = function refresh() {\n var newTooltipText = _this.column.getColDef().headerTooltip;\n\n _this.setTooltip(newTooltipText);\n };\n\n refresh();\n this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, refresh);\n };\n\n ToolPanelColumnComp.prototype.getTooltipParams = function () {\n var res = _super.prototype.getTooltipParams.call(this);\n\n res.location = 'columnToolPanelColumn';\n res.colDef = this.column.getColDef();\n return res;\n };\n\n ToolPanelColumnComp.prototype.onContextMenu = function (e) {\n var _this = this;\n\n var _a = this,\n column = _a.column,\n gridOptionsWrapper = _a.gridOptionsWrapper;\n\n if (gridOptionsWrapper.isFunctionsReadOnly()) {\n return;\n }\n\n var contextMenu = this.createBean(new ToolPanelContextMenu(column, e, this.focusWrapper));\n this.addDestroyFunc(function () {\n if (contextMenu.isAlive()) {\n _this.destroyBean(contextMenu);\n }\n });\n };\n\n ToolPanelColumnComp.prototype.handleKeyDown = function (e) {\n if (e.key === KeyCode.SPACE) {\n e.preventDefault();\n\n if (this.isSelectable()) {\n this.onSelectAllChanged(!this.isSelected());\n }\n }\n };\n\n ToolPanelColumnComp.prototype.onLabelClicked = function () {\n if (this.gridOptionsWrapper.isFunctionsReadOnly()) {\n return;\n }\n\n var nextState = !this.cbSelect.getValue();\n this.onChangeCommon(nextState);\n };\n\n ToolPanelColumnComp.prototype.onCheckboxChanged = function (event) {\n this.onChangeCommon(event.selected);\n };\n\n ToolPanelColumnComp.prototype.onChangeCommon = function (nextState) {\n // ignore lock visible columns\n if (this.cbSelect.isReadOnly()) {\n return;\n }\n\n this.refreshAriaLabel(); // only want to action if the user clicked the checkbox, not if we are setting the checkbox because\n // of a change in the model\n\n if (this.processingColumnStateChange) {\n return;\n }\n\n this.modelItemUtils.setColumn(this.column, nextState, 'toolPanelUi');\n };\n\n ToolPanelColumnComp.prototype.refreshAriaLabel = function () {\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var columnLabel = translate('ariaColumn', 'Column');\n var state = this.cbSelect.getValue() ? translate('ariaVisible', 'visible') : translate('ariaHidden', 'hidden');\n var visibilityLabel = translate('ariaToggleVisibility', 'Press SPACE to toggle visibility');\n\n _.setAriaLabel(this.focusWrapper, this.displayName + \" \" + columnLabel);\n\n this.cbSelect.setInputAriaLabel(visibilityLabel + \" (\" + state + \")\");\n\n _.setAriaDescribedBy(this.focusWrapper, this.cbSelect.getInputElement().id);\n };\n\n ToolPanelColumnComp.prototype.setupDragging = function () {\n var _this = this;\n\n if (!this.allowDragging) {\n _.setDisplayed(this.eDragHandle, false);\n\n return;\n }\n\n var hideColumnOnExit = !this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns();\n var dragSource = {\n type: DragSourceType.ToolPanel,\n eElement: this.eDragHandle,\n dragItemName: this.displayName,\n defaultIconName: hideColumnOnExit ? DragAndDropService.ICON_HIDE : DragAndDropService.ICON_NOT_ALLOWED,\n getDragItem: function getDragItem() {\n return _this.createDragItem();\n },\n onDragStarted: function onDragStarted() {\n var event = {\n type: Events.EVENT_COLUMN_PANEL_ITEM_DRAG_START,\n column: _this.column\n };\n\n _this.eventService.dispatchEvent(event);\n },\n onDragStopped: function onDragStopped() {\n var event = {\n type: Events.EVENT_COLUMN_PANEL_ITEM_DRAG_END\n };\n\n _this.eventService.dispatchEvent(event);\n },\n onGridEnter: function onGridEnter() {\n if (hideColumnOnExit) {\n // when dragged into the grid, mimic what happens when checkbox is enabled\n // this handles the behaviour for pivot which is different to just hiding a column.\n _this.onChangeCommon(true);\n }\n },\n onGridExit: function onGridExit() {\n if (hideColumnOnExit) {\n // when dragged outside of the grid, mimic what happens when checkbox is disabled\n // this handles the behaviour for pivot which is different to just hiding a column.\n _this.onChangeCommon(false);\n }\n }\n };\n this.dragAndDropService.addDragSource(dragSource, true);\n this.addDestroyFunc(function () {\n return _this.dragAndDropService.removeDragSource(dragSource);\n });\n };\n\n ToolPanelColumnComp.prototype.createDragItem = function () {\n var visibleState = {};\n visibleState[this.column.getId()] = this.column.isVisible();\n return {\n columns: [this.column],\n visibleState: visibleState\n };\n };\n\n ToolPanelColumnComp.prototype.onColumnStateChanged = function () {\n this.processingColumnStateChange = true;\n var isPivotMode = this.columnModel.isPivotMode();\n\n if (isPivotMode) {\n // if reducing, checkbox means column is one of pivot, value or group\n var anyFunctionActive = this.column.isAnyFunctionActive();\n this.cbSelect.setValue(anyFunctionActive);\n } else {\n // if not reducing, the checkbox tells us if column is visible or not\n this.cbSelect.setValue(this.column.isVisible());\n }\n\n var canBeToggled = true;\n var canBeDragged = true;\n\n if (isPivotMode) {\n // when in pivot mode, the item should be read only if:\n // a) gui is not allowed make any changes\n var functionsReadOnly = this.gridOptionsWrapper.isFunctionsReadOnly(); // b) column is not allow any functions on it\n\n var noFunctionsAllowed = !this.column.isAnyFunctionAllowed();\n canBeToggled = !functionsReadOnly && !noFunctionsAllowed;\n canBeDragged = canBeToggled;\n } else {\n var _a = this.column.getColDef(),\n enableRowGroup = _a.enableRowGroup,\n enableValue = _a.enableValue,\n lockPosition = _a.lockPosition,\n suppressMovable = _a.suppressMovable,\n lockVisible = _a.lockVisible;\n\n var forceDraggable = !!enableRowGroup || !!enableValue;\n var disableDraggable = !!lockPosition || !!suppressMovable;\n canBeToggled = !lockVisible;\n canBeDragged = forceDraggable || !disableDraggable;\n }\n\n this.cbSelect.setReadOnly(!canBeToggled);\n this.eDragHandle.classList.toggle('ag-column-select-column-readonly', !canBeDragged);\n this.addOrRemoveCssClass('ag-column-select-column-readonly', !canBeDragged && !canBeToggled);\n var checkboxPassive = isPivotMode && this.gridOptionsWrapper.isFunctionsPassive();\n this.cbSelect.setPassive(checkboxPassive);\n this.processingColumnStateChange = false;\n };\n\n ToolPanelColumnComp.prototype.getDisplayName = function () {\n return this.displayName;\n };\n\n ToolPanelColumnComp.prototype.onSelectAllChanged = function (value) {\n if (value !== this.cbSelect.getValue()) {\n if (!this.cbSelect.isReadOnly()) {\n this.cbSelect.toggle();\n }\n }\n };\n\n ToolPanelColumnComp.prototype.isSelected = function () {\n return this.cbSelect.getValue();\n };\n\n ToolPanelColumnComp.prototype.isSelectable = function () {\n return !this.cbSelect.isReadOnly();\n };\n\n ToolPanelColumnComp.prototype.isExpandable = function () {\n return false;\n };\n\n ToolPanelColumnComp.prototype.setExpanded = function (value) {\n console.warn('AG Grid: can not expand a column item that does not represent a column group header');\n };\n\n ToolPanelColumnComp.TEMPLATE = \"
\\n \\n \\n
\";\n\n __decorate$1T([Autowired('columnModel')], ToolPanelColumnComp.prototype, \"columnModel\", void 0);\n\n __decorate$1T([Autowired('dragAndDropService')], ToolPanelColumnComp.prototype, \"dragAndDropService\", void 0);\n\n __decorate$1T([Autowired('modelItemUtils')], ToolPanelColumnComp.prototype, \"modelItemUtils\", void 0);\n\n __decorate$1T([RefSelector('eLabel')], ToolPanelColumnComp.prototype, \"eLabel\", void 0);\n\n __decorate$1T([RefSelector('cbSelect')], ToolPanelColumnComp.prototype, \"cbSelect\", void 0);\n\n __decorate$1T([PostConstruct], ToolPanelColumnComp.prototype, \"init\", null);\n\n return ToolPanelColumnComp;\n}(Component);\n\nvar __extends$3i = undefined && undefined.__extends || function () {\n var _extendStatics10 = function extendStatics(d, b) {\n _extendStatics10 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics10(d, b);\n };\n\n return function (d, b) {\n _extendStatics10(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1S = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar UIColumnModel =\n/** @class */\nfunction () {\n function UIColumnModel(items) {\n this.items = items;\n }\n\n UIColumnModel.prototype.getRowCount = function () {\n return this.items.length;\n };\n\n UIColumnModel.prototype.getRow = function (index) {\n return this.items[index];\n };\n\n return UIColumnModel;\n}();\n\nvar PRIMARY_COLS_LIST_PANEL_CLASS = 'ag-column-select-list';\n\nvar PrimaryColsListPanel =\n/** @class */\nfunction (_super) {\n __extends$3i(PrimaryColsListPanel, _super);\n\n function PrimaryColsListPanel() {\n var _this = _super.call(this, PrimaryColsListPanel.TEMPLATE) || this;\n\n _this.destroyColumnItemFuncs = [];\n return _this;\n }\n\n PrimaryColsListPanel.prototype.destroyColumnTree = function () {\n this.allColsTree = [];\n this.destroyColumnItemFuncs.forEach(function (f) {\n return f();\n });\n this.destroyColumnItemFuncs = [];\n };\n\n PrimaryColsListPanel.prototype.init = function (params, allowDragging, eventType) {\n var _this = this;\n\n this.params = params;\n this.allowDragging = allowDragging;\n this.eventType = eventType;\n\n if (!this.params.suppressSyncLayoutWithGrid) {\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_MOVED, this.onColumnsChanged.bind(this));\n }\n\n this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.onColumnsChanged.bind(this));\n var eventsImpactingCheckedState = [Events.EVENT_COLUMN_PIVOT_CHANGED, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, Events.EVENT_COLUMN_VALUE_CHANGED, Events.EVENT_COLUMN_VISIBLE, Events.EVENT_NEW_COLUMNS_LOADED];\n eventsImpactingCheckedState.forEach(function (event) {\n // update header select all checkbox with current selection state\n _this.addManagedListener(_this.eventService, event, _this.fireSelectionChangedEvent.bind(_this));\n });\n this.expandGroupsByDefault = !this.params.contractColumnSelection;\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var columnListName = translate('ariaColumnList', 'Column List');\n this.virtualList = this.createManagedBean(new VirtualList('column-select', 'tree', columnListName));\n this.appendChild(this.virtualList.getGui());\n this.virtualList.setComponentCreator(function (item, listItemElement) {\n _.setAriaLevel(listItemElement, item.getDept() + 1);\n\n return _this.createComponentFromItem(item, listItemElement);\n });\n\n if (this.columnModel.isReady()) {\n this.onColumnsChanged();\n }\n\n if (!params.suppressColumnMove && !this.gridOptionsWrapper.isSuppressMovableColumns()) {\n this.createManagedBean(new PrimaryColsListPanelItemDragFeature(this, this.virtualList));\n }\n };\n\n PrimaryColsListPanel.prototype.createComponentFromItem = function (item, listItemElement) {\n if (item.isGroup()) {\n var renderedGroup = new ToolPanelColumnGroupComp(item, this.allowDragging, this.eventType, listItemElement);\n this.getContext().createBean(renderedGroup);\n return renderedGroup;\n }\n\n var columnComp = new ToolPanelColumnComp(item.getColumn(), item.getDept(), this.allowDragging, this.groupsExist, listItemElement);\n this.getContext().createBean(columnComp);\n return columnComp;\n };\n\n PrimaryColsListPanel.prototype.onColumnsChanged = function () {\n var expandedStates = this.getExpandedStates();\n var pivotModeActive = this.columnModel.isPivotMode();\n var shouldSyncColumnLayoutWithGrid = !this.params.suppressSyncLayoutWithGrid && !pivotModeActive;\n\n if (shouldSyncColumnLayoutWithGrid) {\n this.buildTreeFromWhatGridIsDisplaying();\n } else {\n this.buildTreeFromProvidedColumnDefs();\n }\n\n this.setExpandedStates(expandedStates);\n this.markFilteredColumns();\n this.flattenAndFilterModel();\n };\n\n PrimaryColsListPanel.prototype.getDisplayedColsList = function () {\n return this.displayedColsList;\n };\n\n PrimaryColsListPanel.prototype.getExpandedStates = function () {\n if (!this.allColsTree) {\n return {};\n }\n\n var res = {};\n this.forEachItem(function (item) {\n if (!item.isGroup()) {\n return;\n }\n\n var colGroup = item.getColumnGroup();\n\n if (colGroup) {\n // group should always exist, this is defensive\n res[colGroup.getId()] = item.isExpanded();\n }\n });\n return res;\n };\n\n PrimaryColsListPanel.prototype.setExpandedStates = function (states) {\n if (!this.allColsTree) {\n return;\n }\n\n this.forEachItem(function (item) {\n if (!item.isGroup()) {\n return;\n }\n\n var colGroup = item.getColumnGroup();\n\n if (colGroup) {\n // group should always exist, this is defensive\n var expanded = states[colGroup.getId()];\n var groupExistedLastTime = expanded != null;\n\n if (groupExistedLastTime) {\n item.setExpanded(expanded);\n }\n }\n });\n };\n\n PrimaryColsListPanel.prototype.buildTreeFromWhatGridIsDisplaying = function () {\n this.colDefService.syncLayoutWithGrid(this.setColumnLayout.bind(this));\n };\n\n PrimaryColsListPanel.prototype.setColumnLayout = function (colDefs) {\n var columnTree = this.colDefService.createColumnTree(colDefs);\n this.buildListModel(columnTree); // using col defs to check if groups exist as it could be a custom layout\n\n this.groupsExist = colDefs.some(function (colDef) {\n return colDef && typeof colDef.children !== 'undefined';\n });\n this.markFilteredColumns();\n this.flattenAndFilterModel();\n };\n\n PrimaryColsListPanel.prototype.buildTreeFromProvidedColumnDefs = function () {\n // add column / group comps to tool panel\n this.buildListModel(this.columnModel.getPrimaryColumnTree());\n this.groupsExist = this.columnModel.isPrimaryColumnGroupsPresent();\n };\n\n PrimaryColsListPanel.prototype.buildListModel = function (columnTree) {\n var _this = this;\n\n var columnExpandedListener = this.onColumnExpanded.bind(this);\n\n var addListeners = function addListeners(item) {\n item.addEventListener(ColumnModelItem.EVENT_EXPANDED_CHANGED, columnExpandedListener);\n var removeFunc = item.removeEventListener.bind(item, ColumnModelItem.EVENT_EXPANDED_CHANGED, columnExpandedListener);\n\n _this.destroyColumnItemFuncs.push(removeFunc);\n };\n\n var recursivelyBuild = function recursivelyBuild(tree, dept, parentList) {\n tree.forEach(function (child) {\n if (child instanceof ProvidedColumnGroup) {\n createGroupItem(child, dept, parentList);\n } else {\n createColumnItem(child, dept, parentList);\n }\n });\n };\n\n var createGroupItem = function createGroupItem(columnGroup, dept, parentList) {\n var columnGroupDef = columnGroup.getColGroupDef();\n var skipThisGroup = columnGroupDef && columnGroupDef.suppressColumnsToolPanel;\n\n if (skipThisGroup) {\n return;\n }\n\n if (columnGroup.isPadding()) {\n recursivelyBuild(columnGroup.getChildren(), dept, parentList);\n return;\n }\n\n var displayName = _this.columnModel.getDisplayNameForProvidedColumnGroup(null, columnGroup, _this.eventType);\n\n var item = new ColumnModelItem(displayName, columnGroup, dept, true, _this.expandGroupsByDefault);\n parentList.push(item);\n addListeners(item);\n recursivelyBuild(columnGroup.getChildren(), dept + 1, item.getChildren());\n };\n\n var createColumnItem = function createColumnItem(column, dept, parentList) {\n var skipThisColumn = column.getColDef() && column.getColDef().suppressColumnsToolPanel;\n\n if (skipThisColumn) {\n return;\n }\n\n var displayName = _this.columnModel.getDisplayNameForColumn(column, 'columnToolPanel');\n\n parentList.push(new ColumnModelItem(displayName, column, dept));\n };\n\n this.destroyColumnTree();\n recursivelyBuild(columnTree, 0, this.allColsTree);\n };\n\n PrimaryColsListPanel.prototype.onColumnExpanded = function () {\n this.flattenAndFilterModel();\n };\n\n PrimaryColsListPanel.prototype.flattenAndFilterModel = function () {\n var _this = this;\n\n this.displayedColsList = [];\n\n var recursiveFunc = function recursiveFunc(item) {\n if (!item.isPassesFilter()) {\n return;\n }\n\n _this.displayedColsList.push(item);\n\n if (item.isGroup() && item.isExpanded()) {\n item.getChildren().forEach(recursiveFunc);\n }\n };\n\n this.allColsTree.forEach(recursiveFunc);\n this.virtualList.setModel(new UIColumnModel(this.displayedColsList));\n var focusedRow = this.virtualList.getLastFocusedRow();\n this.virtualList.refresh();\n\n if (focusedRow != null) {\n this.focusRowIfAlive(focusedRow);\n }\n\n this.notifyListeners();\n };\n\n PrimaryColsListPanel.prototype.focusRowIfAlive = function (rowIndex) {\n var _this = this;\n\n window.setTimeout(function () {\n if (_this.isAlive()) {\n _this.virtualList.focusRow(rowIndex);\n }\n }, 0);\n };\n\n PrimaryColsListPanel.prototype.forEachItem = function (callback) {\n var recursiveFunc = function recursiveFunc(items) {\n items.forEach(function (item) {\n callback(item);\n\n if (item.isGroup()) {\n recursiveFunc(item.getChildren());\n }\n });\n };\n\n recursiveFunc(this.allColsTree);\n };\n\n PrimaryColsListPanel.prototype.doSetExpandedAll = function (value) {\n this.forEachItem(function (item) {\n if (item.isGroup()) {\n item.setExpanded(value);\n }\n });\n };\n\n PrimaryColsListPanel.prototype.setGroupsExpanded = function (expand, groupIds) {\n if (!groupIds) {\n this.doSetExpandedAll(expand);\n return;\n }\n\n var expandedGroupIds = [];\n this.forEachItem(function (item) {\n if (!item.isGroup()) {\n return;\n }\n\n var groupId = item.getColumnGroup().getId();\n\n if (groupIds.indexOf(groupId) >= 0) {\n item.setExpanded(expand);\n expandedGroupIds.push(groupId);\n }\n });\n var unrecognisedGroupIds = groupIds.filter(function (groupId) {\n return !_.includes(expandedGroupIds, groupId);\n });\n\n if (unrecognisedGroupIds.length > 0) {\n console.warn('AG Grid: unable to find group(s) for supplied groupIds:', unrecognisedGroupIds);\n }\n };\n\n PrimaryColsListPanel.prototype.getExpandState = function () {\n var expandedCount = 0;\n var notExpandedCount = 0;\n this.forEachItem(function (item) {\n if (!item.isGroup()) {\n return;\n }\n\n if (item.isExpanded()) {\n expandedCount++;\n } else {\n notExpandedCount++;\n }\n });\n\n if (expandedCount > 0 && notExpandedCount > 0) {\n return ExpandState.INDETERMINATE;\n }\n\n if (notExpandedCount > 0) {\n return ExpandState.COLLAPSED;\n }\n\n return ExpandState.EXPANDED;\n };\n\n PrimaryColsListPanel.prototype.doSetSelectedAll = function (selectAllChecked) {\n this.modelItemUtils.selectAllChildren(this.allColsTree, selectAllChecked, this.eventType);\n };\n\n PrimaryColsListPanel.prototype.getSelectionState = function () {\n var checkedCount = 0;\n var uncheckedCount = 0;\n var pivotMode = this.columnModel.isPivotMode();\n this.forEachItem(function (item) {\n if (item.isGroup()) {\n return;\n }\n\n if (!item.isPassesFilter()) {\n return;\n }\n\n var column = item.getColumn();\n var colDef = column.getColDef();\n var checked;\n\n if (pivotMode) {\n var noPivotModeOptionsAllowed = !column.isAllowPivot() && !column.isAllowRowGroup() && !column.isAllowValue();\n\n if (noPivotModeOptionsAllowed) {\n return;\n }\n\n checked = column.isValueActive() || column.isPivotActive() || column.isRowGroupActive();\n } else {\n if (colDef.lockVisible) {\n return;\n }\n\n checked = column.isVisible();\n }\n\n checked ? checkedCount++ : uncheckedCount++;\n });\n\n if (checkedCount > 0 && uncheckedCount > 0) {\n return undefined;\n }\n\n return !(checkedCount === 0 || uncheckedCount > 0);\n };\n\n PrimaryColsListPanel.prototype.setFilterText = function (filterText) {\n this.filterText = _.exists(filterText) ? filterText.toLowerCase() : null;\n this.markFilteredColumns();\n this.flattenAndFilterModel();\n };\n\n PrimaryColsListPanel.prototype.markFilteredColumns = function () {\n var _this = this;\n\n var passesFilter = function passesFilter(item) {\n if (!_.exists(_this.filterText)) {\n return true;\n }\n\n var displayName = item.getDisplayName();\n return displayName == null || displayName.toLowerCase().indexOf(_this.filterText) !== -1;\n };\n\n var recursivelyCheckFilter = function recursivelyCheckFilter(item, parentPasses) {\n var atLeastOneChildPassed = false;\n\n if (item.isGroup()) {\n var groupPasses_1 = passesFilter(item);\n item.getChildren().forEach(function (child) {\n var childPasses = recursivelyCheckFilter(child, groupPasses_1 || parentPasses);\n\n if (childPasses) {\n atLeastOneChildPassed = childPasses;\n }\n });\n }\n\n var filterPasses = parentPasses || atLeastOneChildPassed ? true : passesFilter(item);\n item.setPassesFilter(filterPasses);\n return filterPasses;\n };\n\n this.allColsTree.forEach(function (item) {\n return recursivelyCheckFilter(item, false);\n });\n };\n\n PrimaryColsListPanel.prototype.notifyListeners = function () {\n this.fireGroupExpandedEvent();\n this.fireSelectionChangedEvent();\n };\n\n PrimaryColsListPanel.prototype.fireGroupExpandedEvent = function () {\n var expandState = this.getExpandState();\n this.dispatchEvent({\n type: 'groupExpanded',\n state: expandState\n });\n };\n\n PrimaryColsListPanel.prototype.fireSelectionChangedEvent = function () {\n var selectionState = this.getSelectionState();\n this.dispatchEvent({\n type: 'selectionChanged',\n state: selectionState\n });\n };\n\n PrimaryColsListPanel.TEMPLATE = \"
\";\n\n __decorate$1S([Autowired('columnModel')], PrimaryColsListPanel.prototype, \"columnModel\", void 0);\n\n __decorate$1S([Autowired('toolPanelColDefService')], PrimaryColsListPanel.prototype, \"colDefService\", void 0);\n\n __decorate$1S([Autowired('modelItemUtils')], PrimaryColsListPanel.prototype, \"modelItemUtils\", void 0);\n\n __decorate$1S([PreDestroy], PrimaryColsListPanel.prototype, \"destroyColumnTree\", null);\n\n return PrimaryColsListPanel;\n}(Component);\n\nvar __extends$3h = undefined && undefined.__extends || function () {\n var _extendStatics11 = function extendStatics(d, b) {\n _extendStatics11 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics11(d, b);\n };\n\n return function (d, b) {\n _extendStatics11(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1R = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar PivotModePanel =\n/** @class */\nfunction (_super) {\n __extends$3h(PivotModePanel, _super);\n\n function PivotModePanel() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n PivotModePanel.prototype.createTemplate = function () {\n return (\n /* html */\n \"
\\n \\n
\"\n );\n };\n\n PivotModePanel.prototype.init = function () {\n this.setTemplate(this.createTemplate());\n this.cbPivotMode.setValue(this.columnModel.isPivotMode());\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n this.cbPivotMode.setLabel(localeTextFunc('pivotMode', 'Pivot Mode'));\n this.addManagedListener(this.cbPivotMode, AgCheckbox.EVENT_CHANGED, this.onBtPivotMode.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.onPivotModeChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.onPivotModeChanged.bind(this));\n };\n\n PivotModePanel.prototype.onBtPivotMode = function () {\n var newValue = !!this.cbPivotMode.getValue();\n\n if (newValue !== this.columnModel.isPivotMode()) {\n this.columnModel.setPivotMode(newValue, \"toolPanelUi\");\n var api = this.gridOptionsWrapper.getApi();\n\n if (api) {\n api.refreshHeader();\n }\n }\n };\n\n PivotModePanel.prototype.onPivotModeChanged = function () {\n var pivotModeActive = this.columnModel.isPivotMode();\n this.cbPivotMode.setValue(pivotModeActive);\n };\n\n __decorate$1R([Autowired('columnModel')], PivotModePanel.prototype, \"columnModel\", void 0);\n\n __decorate$1R([RefSelector('cbPivotMode')], PivotModePanel.prototype, \"cbPivotMode\", void 0);\n\n __decorate$1R([PreConstruct], PivotModePanel.prototype, \"init\", null);\n\n return PivotModePanel;\n}(Component);\n\nvar __extends$3g = undefined && undefined.__extends || function () {\n var _extendStatics12 = function extendStatics(d, b) {\n _extendStatics12 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics12(d, b);\n };\n\n return function (d, b) {\n _extendStatics12(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AggregationStage =\n/** @class */\nfunction (_super) {\n __extends$3g(AggregationStage, _super);\n\n function AggregationStage() {\n return _super !== null && _super.apply(this, arguments) || this;\n } // it's possible to recompute the aggregate without doing the other parts\n // + gridApi.recomputeAggregates()\n\n\n AggregationStage.prototype.execute = function (params) {\n // if changed path is active, it means we came from a) change detection or b) transaction update.\n // for both of these, if no value columns are present, it means there is nothing to aggregate now\n // and there is no cleanup to be done (as value columns don't change between transactions or change\n // detections). if no value columns and no changed path, means we have to go through all nodes in\n // case we need to clean up agg data from before.\n var noValueColumns = _.missingOrEmpty(this.columnModel.getValueColumns());\n\n var noUserAgg = !this.gridOptionsWrapper.getGroupRowAggFunc();\n var changedPathActive = params.changedPath && params.changedPath.isActive();\n\n if (noValueColumns && noUserAgg && changedPathActive) {\n return;\n }\n\n var aggDetails = this.createAggDetails(params);\n this.recursivelyCreateAggData(aggDetails);\n };\n\n AggregationStage.prototype.createAggDetails = function (params) {\n var pivotActive = this.columnModel.isPivotActive();\n var measureColumns = this.columnModel.getValueColumns();\n var pivotColumns = pivotActive ? this.columnModel.getPivotColumns() : [];\n var aggDetails = {\n changedPath: params.changedPath,\n valueColumns: measureColumns,\n pivotColumns: pivotColumns\n };\n return aggDetails;\n };\n\n AggregationStage.prototype.recursivelyCreateAggData = function (aggDetails) {\n var _this = this; // update prop, in case changed since last time\n\n\n this.filteredOnly = !this.gridOptionsWrapper.isSuppressAggFilteredOnly();\n\n var callback = function callback(rowNode) {\n var hasNoChildren = !rowNode.hasChildren();\n\n if (hasNoChildren) {\n // this check is needed for TreeData, in case the node is no longer a child,\n // but it was a child previously.\n if (rowNode.aggData) {\n rowNode.setAggData(null);\n } // never agg data for leaf nodes\n\n\n return;\n } //Optionally prevent the aggregation at the root Node\n //https://ag-grid.atlassian.net/browse/AG-388\n\n\n var isRootNode = rowNode.level === -1;\n\n if (isRootNode) {\n var notPivoting = !_this.columnModel.isPivotMode();\n\n var suppressAggAtRootLevel = _this.gridOptionsWrapper.isSuppressAggAtRootLevel();\n\n if (suppressAggAtRootLevel && notPivoting) {\n return;\n }\n }\n\n _this.aggregateRowNode(rowNode, aggDetails);\n };\n\n aggDetails.changedPath.forEachChangedNodeDepthFirst(callback, true);\n };\n\n AggregationStage.prototype.aggregateRowNode = function (rowNode, aggDetails) {\n var measureColumnsMissing = aggDetails.valueColumns.length === 0;\n var pivotColumnsMissing = aggDetails.pivotColumns.length === 0;\n var userFunc = this.gridOptionsWrapper.getGroupRowAggFunc();\n var aggResult;\n\n if (userFunc) {\n var params = {\n nodes: rowNode.childrenAfterFilter\n };\n aggResult = userFunc(params);\n } else if (measureColumnsMissing) {\n aggResult = null;\n } else if (pivotColumnsMissing) {\n aggResult = this.aggregateRowNodeUsingValuesOnly(rowNode, aggDetails);\n } else {\n aggResult = this.aggregateRowNodeUsingValuesAndPivot(rowNode);\n }\n\n rowNode.setAggData(aggResult); // if we are grouping, then it's possible there is a sibling footer\n // to the group, so update the data here also if there is one\n\n if (rowNode.sibling) {\n rowNode.sibling.setAggData(aggResult);\n }\n };\n\n AggregationStage.prototype.aggregateRowNodeUsingValuesAndPivot = function (rowNode) {\n var _this = this;\n\n var result = {};\n var pivotColumnDefs = this.pivotStage.getPivotColumnDefs(); // Step 1: process value columns\n\n pivotColumnDefs.filter(function (v) {\n return !_.exists(v.pivotTotalColumnIds);\n }) // only process pivot value columns\n .forEach(function (valueColDef) {\n var keys = valueColDef.pivotKeys || [];\n var values;\n var valueColumn = valueColDef.pivotValueColumn;\n var colId = valueColDef.colId;\n\n if (rowNode.leafGroup) {\n // lowest level group, get the values from the mapped set\n values = _this.getValuesFromMappedSet(rowNode.childrenMapped, keys, valueColumn);\n } else {\n // value columns and pivot columns, non-leaf group\n values = _this.getValuesPivotNonLeaf(rowNode, colId);\n }\n\n result[colId] = _this.aggregateValues(values, valueColumn.getAggFunc(), valueColumn, rowNode);\n }); // Step 2: process total columns\n\n pivotColumnDefs.filter(function (v) {\n return _.exists(v.pivotTotalColumnIds);\n }) // only process pivot total columns\n .forEach(function (totalColDef) {\n var aggResults = [];\n var pivotValueColumn = totalColDef.pivotValueColumn,\n pivotTotalColumnIds = totalColDef.pivotTotalColumnIds,\n colId = totalColDef.colId; //retrieve results for colIds associated with this pivot total column\n\n if (!pivotTotalColumnIds || !pivotTotalColumnIds.length) {\n return;\n }\n\n pivotTotalColumnIds.forEach(function (currentColId) {\n aggResults.push(result[currentColId]);\n });\n result[colId] = _this.aggregateValues(aggResults, pivotValueColumn.getAggFunc(), pivotValueColumn, rowNode);\n });\n return result;\n };\n\n AggregationStage.prototype.aggregateRowNodeUsingValuesOnly = function (rowNode, aggDetails) {\n var _this = this;\n\n var result = {};\n var changedValueColumns = aggDetails.changedPath.isActive() ? aggDetails.changedPath.getValueColumnsForNode(rowNode, aggDetails.valueColumns) : aggDetails.valueColumns;\n var notChangedValueColumns = aggDetails.changedPath.isActive() ? aggDetails.changedPath.getNotValueColumnsForNode(rowNode, aggDetails.valueColumns) : null;\n var values2d = this.getValuesNormal(rowNode, changedValueColumns);\n var oldValues = rowNode.aggData;\n changedValueColumns.forEach(function (valueColumn, index) {\n result[valueColumn.getId()] = _this.aggregateValues(values2d[index], valueColumn.getAggFunc(), valueColumn, rowNode);\n });\n\n if (notChangedValueColumns && oldValues) {\n notChangedValueColumns.forEach(function (valueColumn) {\n result[valueColumn.getId()] = oldValues[valueColumn.getId()];\n });\n }\n\n return result;\n };\n\n AggregationStage.prototype.getValuesPivotNonLeaf = function (rowNode, colId) {\n var values = [];\n rowNode.childrenAfterFilter.forEach(function (node) {\n var value = node.aggData[colId];\n values.push(value);\n });\n return values;\n };\n\n AggregationStage.prototype.getValuesFromMappedSet = function (mappedSet, keys, valueColumn) {\n var _this = this;\n\n var mapPointer = mappedSet;\n keys.forEach(function (key) {\n return mapPointer = mapPointer ? mapPointer[key] : null;\n });\n\n if (!mapPointer) {\n return [];\n }\n\n var values = [];\n mapPointer.forEach(function (rowNode) {\n var value = _this.valueService.getValue(valueColumn, rowNode);\n\n values.push(value);\n });\n return values;\n };\n\n AggregationStage.prototype.getValuesNormal = function (rowNode, valueColumns) {\n // create 2d array, of all values for all valueColumns\n var values = [];\n valueColumns.forEach(function () {\n return values.push([]);\n });\n var valueColumnCount = valueColumns.length;\n var nodeList = this.filteredOnly ? rowNode.childrenAfterFilter : rowNode.childrenAfterGroup;\n var rowCount = nodeList.length;\n\n for (var i = 0; i < rowCount; i++) {\n var childNode = nodeList[i];\n\n for (var j = 0; j < valueColumnCount; j++) {\n var valueColumn = valueColumns[j]; // if the row is a group, then it will only have an agg result value,\n // which means valueGetter is never used.\n\n var value = this.valueService.getValue(valueColumn, childNode);\n values[j].push(value);\n }\n }\n\n return values;\n };\n\n AggregationStage.prototype.aggregateValues = function (values, aggFuncOrString, column, rowNode) {\n var aggFunc = typeof aggFuncOrString === 'string' ? this.aggFuncService.getAggFunc(aggFuncOrString) : aggFuncOrString;\n\n if (typeof aggFunc !== 'function') {\n console.error(\"AG Grid: unrecognised aggregation function \" + aggFuncOrString);\n return null;\n }\n\n var aggFuncAny = aggFunc;\n var params = {\n values: values,\n column: column,\n colDef: column ? column.getColDef() : undefined,\n rowNode: rowNode,\n data: rowNode ? rowNode.data : undefined,\n api: this.gridApi,\n columnApi: this.columnApi,\n context: this.gridOptionsWrapper.getContext()\n }; // the \"as any\" is needed to allow the deprecation warning messages\n\n return aggFuncAny(params);\n };\n\n __decorate$1Q([Autowired('columnModel')], AggregationStage.prototype, \"columnModel\", void 0);\n\n __decorate$1Q([Autowired('valueService')], AggregationStage.prototype, \"valueService\", void 0);\n\n __decorate$1Q([Autowired('pivotStage')], AggregationStage.prototype, \"pivotStage\", void 0);\n\n __decorate$1Q([Autowired('aggFuncService')], AggregationStage.prototype, \"aggFuncService\", void 0);\n\n __decorate$1Q([Autowired('gridApi')], AggregationStage.prototype, \"gridApi\", void 0);\n\n __decorate$1Q([Autowired('columnApi')], AggregationStage.prototype, \"columnApi\", void 0);\n\n AggregationStage = __decorate$1Q([Bean('aggregationStage')], AggregationStage);\n return AggregationStage;\n}(BeanStub);\n\nvar BatchRemover =\n/** @class */\nfunction () {\n function BatchRemover() {\n this.allSets = {};\n this.allParents = [];\n }\n\n BatchRemover.prototype.removeFromChildrenAfterGroup = function (parent, child) {\n var set = this.getSet(parent);\n set.removeFromChildrenAfterGroup[child.id] = true;\n };\n\n BatchRemover.prototype.removeFromAllLeafChildren = function (parent, child) {\n var set = this.getSet(parent);\n set.removeFromAllLeafChildren[child.id] = true;\n };\n\n BatchRemover.prototype.getSet = function (parent) {\n if (!this.allSets[parent.id]) {\n this.allSets[parent.id] = {\n removeFromAllLeafChildren: {},\n removeFromChildrenAfterGroup: {}\n };\n this.allParents.push(parent);\n }\n\n return this.allSets[parent.id];\n };\n\n BatchRemover.prototype.getAllParents = function () {\n return this.allParents;\n };\n\n BatchRemover.prototype.flush = function () {\n var _this = this;\n\n this.allParents.forEach(function (parent) {\n var nodeDetails = _this.allSets[parent.id];\n parent.childrenAfterGroup = parent.childrenAfterGroup.filter(function (child) {\n return !nodeDetails.removeFromChildrenAfterGroup[child.id];\n });\n parent.allLeafChildren = parent.allLeafChildren.filter(function (child) {\n return !nodeDetails.removeFromAllLeafChildren[child.id];\n });\n parent.updateHasChildren();\n\n if (parent.sibling) {\n parent.sibling.childrenAfterGroup = parent.childrenAfterGroup;\n parent.sibling.allLeafChildren = parent.allLeafChildren;\n }\n });\n this.allSets = {};\n this.allParents.length = 0;\n };\n\n return BatchRemover;\n}();\n\nvar __extends$3f = undefined && undefined.__extends || function () {\n var _extendStatics13 = function extendStatics(d, b) {\n _extendStatics13 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics13(d, b);\n };\n\n return function (d, b) {\n _extendStatics13(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1P = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$X = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$v = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$X(arguments[i]));\n }\n\n return ar;\n};\n\nvar GroupStage =\n/** @class */\nfunction (_super) {\n __extends$3f(GroupStage, _super);\n\n function GroupStage() {\n var _this = _super !== null && _super.apply(this, arguments) || this; // we use a sequence variable so that each time we do a grouping, we don't\n // reuse the ids - otherwise the rowRenderer will confuse rowNodes between redraws\n // when it tries to animate between rows.\n\n\n _this.groupIdSequence = new NumberSequence();\n return _this;\n }\n\n GroupStage.prototype.postConstruct = function () {\n this.usingTreeData = this.gridOptionsWrapper.isTreeData();\n\n if (this.usingTreeData) {\n this.getDataPath = this.gridOptionsWrapper.getDataPathFunc();\n }\n };\n\n GroupStage.prototype.execute = function (params) {\n var details = this.createGroupingDetails(params);\n\n if (details.transactions) {\n this.handleTransaction(details);\n } else {\n var afterColsChanged = params.afterColumnsChanged === true;\n this.shotgunResetEverything(details, afterColsChanged);\n }\n\n this.positionLeafsAboveGroups(params.changedPath);\n this.orderGroups(details.rootNode);\n this.selectableService.updateSelectableAfterGrouping(details.rootNode);\n };\n\n GroupStage.prototype.positionLeafsAboveGroups = function (changedPath) {\n // we don't do group sorting for tree data\n if (this.usingTreeData) {\n return;\n }\n\n changedPath.forEachChangedNodeDepthFirst(function (group) {\n if (group.childrenAfterGroup) {\n var leafNodes_1 = [];\n var groupNodes_1 = [];\n group.childrenAfterGroup.forEach(function (row) {\n var _a;\n\n if (!((_a = row.childrenAfterGroup) === null || _a === void 0 ? void 0 : _a.length)) {\n leafNodes_1.push(row);\n } else {\n groupNodes_1.push(row);\n }\n });\n group.childrenAfterGroup = __spread$v(leafNodes_1, groupNodes_1);\n }\n }, false);\n };\n\n GroupStage.prototype.createGroupingDetails = function (params) {\n var rowNode = params.rowNode,\n changedPath = params.changedPath,\n rowNodeTransactions = params.rowNodeTransactions,\n rowNodeOrder = params.rowNodeOrder;\n var groupedCols = this.usingTreeData ? null : this.columnModel.getRowGroupColumns();\n var details = {\n // someone complained that the parent attribute was causing some change detection\n // to break is some angular add-on - which i never used. taking the parent out breaks\n // a cyclic dependency, hence this flag got introduced.\n includeParents: !this.gridOptionsWrapper.isSuppressParentsInRowNodes(),\n expandByDefault: this.gridOptionsWrapper.getGroupDefaultExpanded(),\n groupedCols: groupedCols,\n rootNode: rowNode,\n pivotMode: this.columnModel.isPivotMode(),\n groupedColCount: this.usingTreeData || !groupedCols ? 0 : groupedCols.length,\n rowNodeOrder: rowNodeOrder,\n transactions: rowNodeTransactions,\n // if no transaction, then it's shotgun, changed path would be 'not active' at this point anyway\n changedPath: changedPath\n };\n return details;\n };\n\n GroupStage.prototype.handleTransaction = function (details) {\n var _this = this;\n\n details.transactions.forEach(function (tran) {\n // we don't allow batch remover for tree data as tree data uses Filler Nodes,\n // and creating/deleting filler nodes needs to be done alongside the node deleting\n // and moving. if we want to Batch Remover working with tree data then would need\n // to consider how Filler Nodes would be impacted (it's possible that it can be easily\n // modified to work, however for now I don't have the brain energy to work it all out).\n var batchRemover = !_this.usingTreeData ? new BatchRemover() : undefined; // the order here of [add, remove, update] needs to be the same as in ClientSideNodeManager,\n // as the order is important when a record with the same id is added and removed in the same\n // transaction.\n\n if (_.existsAndNotEmpty(tran.remove)) {\n _this.removeNodes(tran.remove, details, batchRemover);\n }\n\n if (_.existsAndNotEmpty(tran.update)) {\n _this.moveNodesInWrongPath(tran.update, details, batchRemover);\n }\n\n if (_.existsAndNotEmpty(tran.add)) {\n _this.insertNodes(tran.add, details, false);\n } // must flush here, and not allow another transaction to be applied,\n // as each transaction must finish leaving the data in a consistent state.\n\n\n if (batchRemover) {\n var parentsWithChildrenRemoved = batchRemover.getAllParents().slice();\n batchRemover.flush();\n\n _this.removeEmptyGroups(parentsWithChildrenRemoved, details);\n }\n });\n\n if (details.rowNodeOrder) {\n this.sortChildren(details);\n }\n }; // this is used when doing delta updates, eg Redux, keeps nodes in right order\n\n\n GroupStage.prototype.sortChildren = function (details) {\n details.changedPath.forEachChangedNodeDepthFirst(function (rowNode) {\n _.sortRowNodesByOrder(rowNode.childrenAfterGroup, details.rowNodeOrder);\n });\n };\n\n GroupStage.prototype.orderGroups = function (rootNode) {\n // we don't do group sorting for tree data\n if (this.usingTreeData) {\n return;\n }\n\n var comparator = this.gridOptionsWrapper.getInitialGroupOrderComparator();\n\n if (_.exists(comparator)) {\n recursiveSort(rootNode);\n }\n\n function recursiveSort(rowNode) {\n var doSort = _.exists(rowNode.childrenAfterGroup) && // we only want to sort groups, so we do not sort leafs (a leaf group has leafs as children)\n !rowNode.leafGroup;\n\n if (doSort) {\n rowNode.childrenAfterGroup.sort(function (nodeA, nodeB) {\n return comparator({\n nodeA: nodeA,\n nodeB: nodeB\n });\n });\n rowNode.childrenAfterGroup.forEach(function (childNode) {\n return recursiveSort(childNode);\n });\n }\n }\n };\n\n GroupStage.prototype.getExistingPathForNode = function (node, details) {\n var res = []; // when doing tree data, the node is part of the path,\n // but when doing grid grouping, the node is not part of the path so we start with the parent.\n\n var pointer = this.usingTreeData ? node : node.parent;\n\n while (pointer && pointer !== details.rootNode) {\n res.push({\n key: pointer.key,\n rowGroupColumn: pointer.rowGroupColumn,\n field: pointer.field\n });\n pointer = pointer.parent;\n }\n\n res.reverse();\n return res;\n };\n\n GroupStage.prototype.moveNodesInWrongPath = function (childNodes, details, batchRemover) {\n var _this = this;\n\n childNodes.forEach(function (childNode) {\n // we add node, even if parent has not changed, as the data could have\n // changed, hence aggregations will be wrong\n if (details.changedPath.isActive()) {\n details.changedPath.addParentNode(childNode.parent);\n }\n\n var infoToKeyMapper = function infoToKeyMapper(item) {\n return item.key;\n };\n\n var oldPath = _this.getExistingPathForNode(childNode, details).map(infoToKeyMapper);\n\n var newPath = _this.getGroupInfo(childNode, details).map(infoToKeyMapper);\n\n var nodeInCorrectPath = _.areEqual(oldPath, newPath);\n\n if (!nodeInCorrectPath) {\n _this.moveNode(childNode, details, batchRemover);\n }\n });\n };\n\n GroupStage.prototype.moveNode = function (childNode, details, batchRemover) {\n this.removeNodesInStages([childNode], details, batchRemover);\n this.insertOneNode(childNode, details, true); // hack - if we didn't do this, then renaming a tree item (ie changing rowNode.key) wouldn't get\n // refreshed into the gui.\n // this is needed to kick off the event that rowComp listens to for refresh. this in turn\n // then will get each cell in the row to refresh - which is what we need as we don't know which\n // columns will be displaying the rowNode.key info.\n\n childNode.setData(childNode.data); // we add both old and new parents to changed path, as both will need to be refreshed.\n // we already added the old parent (in calling method), so just add the new parent here\n\n if (details.changedPath.isActive()) {\n var newParent = childNode.parent;\n details.changedPath.addParentNode(newParent);\n }\n };\n\n GroupStage.prototype.removeNodes = function (leafRowNodes, details, batchRemover) {\n this.removeNodesInStages(leafRowNodes, details, batchRemover);\n\n if (details.changedPath.isActive()) {\n leafRowNodes.forEach(function (rowNode) {\n return details.changedPath.addParentNode(rowNode.parent);\n });\n }\n };\n\n GroupStage.prototype.removeNodesInStages = function (leafRowNodes, details, batchRemover) {\n this.removeNodesFromParents(leafRowNodes, details, batchRemover);\n\n if (this.usingTreeData) {\n this.postRemoveCreateFillerNodes(leafRowNodes, details); // When not TreeData, then removeEmptyGroups is called just before the BatchRemover is flushed.\n // However for TreeData, there is no BatchRemover, so we have to call removeEmptyGroups here.\n\n var nodeParents = leafRowNodes.map(function (n) {\n return n.parent;\n });\n this.removeEmptyGroups(nodeParents, details);\n }\n };\n\n GroupStage.prototype.forEachParentGroup = function (details, group, callback) {\n var pointer = group;\n\n while (pointer && pointer !== details.rootNode) {\n callback(pointer);\n pointer = pointer.parent;\n }\n };\n\n GroupStage.prototype.removeNodesFromParents = function (nodesToRemove, details, provided) {\n var _this = this; // this method can be called with BatchRemover as optional. if it is missed, we created a local version\n // and flush it at the end. if one is provided, we add to the provided one and it gets flushed elsewhere.\n\n\n var batchRemoverIsLocal = provided == null;\n var batchRemoverToUse = provided ? provided : new BatchRemover();\n nodesToRemove.forEach(function (nodeToRemove) {\n _this.removeFromParent(nodeToRemove, batchRemoverToUse); // remove from allLeafChildren. we clear down all parents EXCEPT the Root Node, as\n // the ClientSideNodeManager is responsible for the Root Node.\n\n\n _this.forEachParentGroup(details, nodeToRemove.parent, function (parentNode) {\n batchRemoverToUse.removeFromAllLeafChildren(parentNode, nodeToRemove);\n });\n });\n\n if (batchRemoverIsLocal) {\n batchRemoverToUse.flush();\n }\n };\n\n GroupStage.prototype.postRemoveCreateFillerNodes = function (nodesToRemove, details) {\n var _this = this;\n\n nodesToRemove.forEach(function (nodeToRemove) {\n // if not group, and children are present, need to move children to a group.\n // otherwise if no children, we can just remove without replacing.\n var replaceWithGroup = nodeToRemove.hasChildren();\n\n if (replaceWithGroup) {\n var oldPath = _this.getExistingPathForNode(nodeToRemove, details); // because we just removed the userGroup, this will always return new support group\n\n\n var newGroupNode_1 = _this.findParentForNode(nodeToRemove, oldPath, details); // these properties are the ones that will be incorrect in the newly created group,\n // so copy them from the old childNode\n\n\n newGroupNode_1.expanded = nodeToRemove.expanded;\n newGroupNode_1.allLeafChildren = nodeToRemove.allLeafChildren;\n newGroupNode_1.childrenAfterGroup = nodeToRemove.childrenAfterGroup;\n newGroupNode_1.childrenMapped = nodeToRemove.childrenMapped;\n newGroupNode_1.updateHasChildren();\n newGroupNode_1.childrenAfterGroup.forEach(function (rowNode) {\n return rowNode.parent = newGroupNode_1;\n });\n }\n });\n };\n\n GroupStage.prototype.removeEmptyGroups = function (possibleEmptyGroups, details) {\n var _this = this; // we do this multiple times, as when we remove groups, that means the parent of just removed\n // group can then be empty. to get around this, if we remove, then we check everything again for\n // newly emptied groups. the max number of times this will execute is the depth of the group tree.\n\n\n var checkAgain = true;\n\n var groupShouldBeRemoved = function groupShouldBeRemoved(rowNode) {\n // because of the while loop below, it's possible we already moved the node,\n // so double check before trying to remove again.\n var mapKey = _this.getChildrenMappedKey(rowNode.key, rowNode.rowGroupColumn);\n\n var parentRowNode = rowNode.parent;\n var groupAlreadyRemoved = parentRowNode && parentRowNode.childrenMapped ? !parentRowNode.childrenMapped[mapKey] : true;\n\n if (groupAlreadyRemoved) {\n // if not linked, then group was already removed\n return false;\n } // if still not removed, then we remove if this group is empty\n\n\n return !!rowNode.isEmptyRowGroupNode();\n };\n\n var _loop_1 = function _loop_1() {\n checkAgain = false;\n var batchRemover = new BatchRemover();\n possibleEmptyGroups.forEach(function (possibleEmptyGroup) {\n // remove empty groups\n _this.forEachParentGroup(details, possibleEmptyGroup, function (rowNode) {\n if (groupShouldBeRemoved(rowNode)) {\n checkAgain = true;\n\n _this.removeFromParent(rowNode, batchRemover); // we remove selection on filler nodes here, as the selection would not be removed\n // from the RowNodeManager, as filler nodes don't exist on the RowNodeManager\n\n\n rowNode.setSelected(false);\n }\n });\n });\n batchRemover.flush();\n };\n\n while (checkAgain) {\n _loop_1();\n }\n }; // removes the node from the parent by:\n // a) removing from childrenAfterGroup (using batchRemover if present, otherwise immediately)\n // b) removing from childrenMapped (immediately)\n // c) setRowTop(null) - as the rowRenderer uses this to know the RowNode is no longer needed\n // d) setRowIndex(null) - as the rowNode will no longer be displayed.\n\n\n GroupStage.prototype.removeFromParent = function (child, batchRemover) {\n if (child.parent) {\n if (batchRemover) {\n batchRemover.removeFromChildrenAfterGroup(child.parent, child);\n } else {\n _.removeFromArray(child.parent.childrenAfterGroup, child);\n\n child.parent.updateHasChildren();\n }\n }\n\n var mapKey = this.getChildrenMappedKey(child.key, child.rowGroupColumn);\n\n if (child.parent && child.parent.childrenMapped) {\n child.parent.childrenMapped[mapKey] = undefined;\n } // this is important for transition, see rowComp removeFirstPassFuncs. when doing animation and\n // remove, if rowTop is still present, the rowComp thinks it's just moved position.\n\n\n child.setRowTop(null);\n child.setRowIndex(null);\n };\n\n GroupStage.prototype.addToParent = function (child, parent) {\n var mapKey = this.getChildrenMappedKey(child.key, child.rowGroupColumn);\n\n if (parent) {\n var children = parent.childrenMapped != null;\n\n if (children) {\n parent.childrenMapped[mapKey] = child;\n }\n\n parent.childrenAfterGroup.push(child);\n parent.updateHasChildren();\n }\n };\n\n GroupStage.prototype.areGroupColsEqual = function (d1, d2) {\n if (d1 == null || d2 == null || d1.pivotMode !== d2.pivotMode) {\n return false;\n }\n\n return _.areEqual(d1.groupedCols, d2.groupedCols);\n };\n\n GroupStage.prototype.checkAllGroupDataAfterColsChanged = function (details) {\n var _this = this;\n\n var recurse = function recurse(rowNodes) {\n if (!rowNodes) {\n return;\n }\n\n rowNodes.forEach(function (rowNode) {\n var isLeafNode = !_this.usingTreeData && !rowNode.group;\n\n if (isLeafNode) {\n return;\n }\n\n var groupInfo = {\n field: rowNode.field,\n key: rowNode.key,\n rowGroupColumn: rowNode.rowGroupColumn\n };\n\n _this.setGroupData(rowNode, groupInfo);\n\n recurse(rowNode.childrenAfterGroup);\n });\n };\n\n recurse(details.rootNode.childrenAfterGroup);\n };\n\n GroupStage.prototype.shotgunResetEverything = function (details, afterColumnsChanged) {\n if (this.noChangeInGroupingColumns(details, afterColumnsChanged)) {\n return;\n } // groups are about to get disposed, so need to deselect any that are selected\n\n\n this.selectionService.removeGroupsFromSelection();\n var rootNode = details.rootNode,\n groupedCols = details.groupedCols; // because we are not creating the root node each time, we have the logic\n // here to change leafGroup once.\n // we set .leafGroup to false for tree data, as .leafGroup is only used when pivoting, and pivoting\n // isn't allowed with treeData, so the grid never actually use .leafGroup when doing treeData.\n\n rootNode.leafGroup = this.usingTreeData ? false : groupedCols.length === 0; // we are doing everything from scratch, so reset childrenAfterGroup and childrenMapped from the rootNode\n\n rootNode.childrenAfterGroup = [];\n rootNode.childrenMapped = {};\n rootNode.updateHasChildren();\n var sibling = rootNode.sibling;\n\n if (sibling) {\n sibling.childrenAfterGroup = rootNode.childrenAfterGroup;\n sibling.childrenMapped = rootNode.childrenMapped;\n }\n\n this.insertNodes(rootNode.allLeafChildren, details, false);\n };\n\n GroupStage.prototype.noChangeInGroupingColumns = function (details, afterColumnsChanged) {\n var noFurtherProcessingNeeded = false;\n var groupDisplayColumns = this.columnModel.getGroupDisplayColumns();\n var newGroupDisplayColIds = groupDisplayColumns ? groupDisplayColumns.map(function (c) {\n return c.getId();\n }).join('-') : '';\n\n if (afterColumnsChanged) {\n // we only need to redo grouping if doing normal grouping (ie not tree data)\n // and the group cols have changed.\n noFurtherProcessingNeeded = this.usingTreeData || this.areGroupColsEqual(details, this.oldGroupingDetails); // if the group display cols have changed, then we need to update rowNode.groupData\n // (regardless of tree data or row grouping)\n\n if (this.oldGroupDisplayColIds !== newGroupDisplayColIds) {\n this.checkAllGroupDataAfterColsChanged(details);\n }\n }\n\n this.oldGroupingDetails = details;\n this.oldGroupDisplayColIds = newGroupDisplayColIds;\n return noFurtherProcessingNeeded;\n };\n\n GroupStage.prototype.insertNodes = function (newRowNodes, details, isMove) {\n var _this = this;\n\n newRowNodes.forEach(function (rowNode) {\n _this.insertOneNode(rowNode, details, isMove);\n\n if (details.changedPath.isActive()) {\n details.changedPath.addParentNode(rowNode.parent);\n }\n });\n };\n\n GroupStage.prototype.insertOneNode = function (childNode, details, isMove) {\n var path = this.getGroupInfo(childNode, details);\n var parentGroup = this.findParentForNode(childNode, path, details);\n\n if (!parentGroup.group) {\n console.warn(\"AG Grid: duplicate group keys for row data, keys should be unique\", [parentGroup.data, childNode.data]);\n }\n\n if (this.usingTreeData) {\n this.swapGroupWithUserNode(parentGroup, childNode, isMove);\n } else {\n childNode.parent = parentGroup;\n childNode.level = path.length;\n parentGroup.childrenAfterGroup.push(childNode);\n parentGroup.updateHasChildren();\n }\n };\n\n GroupStage.prototype.findParentForNode = function (childNode, path, details) {\n var _this = this;\n\n var nextNode = details.rootNode;\n path.forEach(function (groupInfo, level) {\n nextNode = _this.getOrCreateNextNode(nextNode, groupInfo, level, details); // node gets added to all group nodes.\n // note: we do not add to rootNode here, as the rootNode is the master list of rowNodes\n\n nextNode.allLeafChildren.push(childNode);\n });\n return nextNode;\n };\n\n GroupStage.prototype.swapGroupWithUserNode = function (fillerGroup, userGroup, isMove) {\n userGroup.parent = fillerGroup.parent;\n userGroup.key = fillerGroup.key;\n userGroup.field = fillerGroup.field;\n userGroup.groupData = fillerGroup.groupData;\n userGroup.level = fillerGroup.level; // AG-3441 - preserve the existing expanded status of the node if we're moving it, so that\n // you can drag a sub tree from one parent to another without changing its expansion\n\n if (!isMove) {\n userGroup.expanded = fillerGroup.expanded;\n } // we set .leafGroup to false for tree data, as .leafGroup is only used when pivoting, and pivoting\n // isn't allowed with treeData, so the grid never actually use .leafGroup when doing treeData.\n\n\n userGroup.leafGroup = fillerGroup.leafGroup; // always null for userGroups, as row grouping is not allowed when doing tree data\n\n userGroup.rowGroupIndex = fillerGroup.rowGroupIndex;\n userGroup.allLeafChildren = fillerGroup.allLeafChildren;\n userGroup.childrenAfterGroup = fillerGroup.childrenAfterGroup;\n userGroup.childrenMapped = fillerGroup.childrenMapped;\n userGroup.updateHasChildren();\n this.removeFromParent(fillerGroup);\n userGroup.childrenAfterGroup.forEach(function (rowNode) {\n return rowNode.parent = userGroup;\n });\n this.addToParent(userGroup, fillerGroup.parent);\n };\n\n GroupStage.prototype.getOrCreateNextNode = function (parentGroup, groupInfo, level, details) {\n var key = this.getChildrenMappedKey(groupInfo.key, groupInfo.rowGroupColumn);\n var nextNode = parentGroup.childrenMapped ? parentGroup.childrenMapped[key] : undefined;\n\n if (!nextNode) {\n nextNode = this.createGroup(groupInfo, parentGroup, level, details); // attach the new group to the parent\n\n this.addToParent(nextNode, parentGroup);\n }\n\n return nextNode;\n };\n\n GroupStage.prototype.createGroup = function (groupInfo, parent, level, details) {\n var groupNode = new RowNode(this.beans);\n groupNode.group = true;\n groupNode.field = groupInfo.field;\n groupNode.rowGroupColumn = groupInfo.rowGroupColumn;\n this.setGroupData(groupNode, groupInfo); // we put 'row-group-' before the group id, so it doesn't clash with standard row id's. we also use 't-' and 'b-'\n // for top pinned and bottom pinned rows.\n\n groupNode.id = RowNode.ID_PREFIX_ROW_GROUP + this.groupIdSequence.next();\n groupNode.key = groupInfo.key;\n groupNode.level = level;\n groupNode.leafGroup = this.usingTreeData ? false : level === details.groupedColCount - 1;\n groupNode.allLeafChildren = []; // why is this done here? we are not updating the children count as we go,\n // i suspect this is updated in the filter stage\n\n groupNode.setAllChildrenCount(0);\n groupNode.rowGroupIndex = this.usingTreeData ? null : level;\n groupNode.childrenAfterGroup = [];\n groupNode.childrenMapped = {};\n groupNode.updateHasChildren();\n groupNode.parent = details.includeParents ? parent : null;\n this.setExpandedInitialValue(details, groupNode);\n return groupNode;\n };\n\n GroupStage.prototype.setGroupData = function (groupNode, groupInfo) {\n var _this = this;\n\n groupNode.groupData = {};\n var groupDisplayCols = this.columnModel.getGroupDisplayColumns();\n groupDisplayCols.forEach(function (col) {\n // newGroup.rowGroupColumn=null when working off GroupInfo, and we always display the group in the group column\n // if rowGroupColumn is present, then it's grid row grouping and we only include if configuration says so\n var displayGroupForCol = _this.usingTreeData || (groupNode.rowGroupColumn ? col.isRowGroupDisplayed(groupNode.rowGroupColumn.getId()) : false);\n\n if (displayGroupForCol) {\n groupNode.groupData[col.getColId()] = groupInfo.key;\n }\n });\n };\n\n GroupStage.prototype.getChildrenMappedKey = function (key, rowGroupColumn) {\n if (rowGroupColumn) {\n // grouping by columns\n return rowGroupColumn.getId() + '-' + key;\n } // tree data - we don't have rowGroupColumns\n\n\n return key;\n };\n\n GroupStage.prototype.setExpandedInitialValue = function (details, groupNode) {\n // if pivoting the leaf group is never expanded as we do not show leaf rows\n if (details.pivotMode && groupNode.leafGroup) {\n groupNode.expanded = false;\n return;\n } // use callback if exists\n\n\n var userCallback = this.gridOptionsWrapper.getIsGroupOpenByDefaultFunc();\n\n if (userCallback) {\n var params = {\n rowNode: groupNode,\n field: groupNode.field,\n key: groupNode.key,\n level: groupNode.level,\n rowGroupColumn: groupNode.rowGroupColumn\n };\n groupNode.expanded = userCallback(params) == true;\n return;\n } // use expandByDefault if exists\n\n\n var expandByDefault = details.expandByDefault;\n\n if (details.expandByDefault === -1) {\n groupNode.expanded = true;\n return;\n } // otherwise\n\n\n groupNode.expanded = groupNode.level < expandByDefault;\n };\n\n GroupStage.prototype.getGroupInfo = function (rowNode, details) {\n if (this.usingTreeData) {\n return this.getGroupInfoFromCallback(rowNode);\n }\n\n return this.getGroupInfoFromGroupColumns(rowNode, details);\n };\n\n GroupStage.prototype.getGroupInfoFromCallback = function (rowNode) {\n var keys = this.getDataPath ? this.getDataPath(rowNode.data) : null;\n\n if (keys === null || keys === undefined || keys.length === 0) {\n _.doOnce(function () {\n return console.warn(\"AG Grid: getDataPath() should not return an empty path for data\", rowNode.data);\n }, 'groupStage.getGroupInfoFromCallback');\n }\n\n var groupInfoMapper = function groupInfoMapper(key) {\n return {\n key: key,\n field: null,\n rowGroupColumn: null\n };\n };\n\n return keys ? keys.map(groupInfoMapper) : [];\n };\n\n GroupStage.prototype.getGroupInfoFromGroupColumns = function (rowNode, details) {\n var _this = this;\n\n var res = [];\n details.groupedCols.forEach(function (groupCol) {\n var key = _this.valueService.getKeyForNode(groupCol, rowNode);\n\n var keyExists = key !== null && key !== undefined; // unbalanced tree and pivot mode don't work together - not because of the grid, it doesn't make\n // mathematical sense as you are building up a cube. so if pivot mode, we put in a blank key where missing.\n // this keeps the tree balanced and hence can be represented as a group.\n\n if (details.pivotMode && !keyExists) {\n key = ' ';\n keyExists = true;\n }\n\n if (keyExists) {\n var item = {\n key: key,\n field: groupCol.getColDef().field,\n rowGroupColumn: groupCol\n };\n res.push(item);\n }\n });\n return res;\n };\n\n __decorate$1P([Autowired('columnModel')], GroupStage.prototype, \"columnModel\", void 0);\n\n __decorate$1P([Autowired('selectableService')], GroupStage.prototype, \"selectableService\", void 0);\n\n __decorate$1P([Autowired('valueService')], GroupStage.prototype, \"valueService\", void 0);\n\n __decorate$1P([Autowired('beans')], GroupStage.prototype, \"beans\", void 0);\n\n __decorate$1P([Autowired('selectionService')], GroupStage.prototype, \"selectionService\", void 0);\n\n __decorate$1P([PostConstruct], GroupStage.prototype, \"postConstruct\", null);\n\n GroupStage = __decorate$1P([Bean('groupStage')], GroupStage);\n return GroupStage;\n}(BeanStub);\n\nvar __extends$3e = undefined && undefined.__extends || function () {\n var _extendStatics14 = function extendStatics(d, b) {\n _extendStatics14 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics14(d, b);\n };\n\n return function (d, b) {\n _extendStatics14(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$B = undefined && undefined.__assign || function () {\n __assign$B = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$B.apply(this, arguments);\n};\n\nvar __decorate$1O = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$W = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$u = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$W(arguments[i]));\n }\n\n return ar;\n};\n\nvar PivotColDefService =\n/** @class */\nfunction (_super) {\n __extends$3e(PivotColDefService, _super);\n\n function PivotColDefService() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n PivotColDefService_1 = PivotColDefService;\n\n PivotColDefService.prototype.createPivotColumnDefs = function (uniqueValues) {\n // this is passed to the columnModel, to configure the columns and groups we show\n var pivotColumns = this.columnModel.getPivotColumns();\n var valueColumns = this.columnModel.getValueColumns();\n var levelsDeep = pivotColumns.length;\n var pivotColumnGroupDefs = this.recursiveBuildGroup(0, uniqueValues, [], levelsDeep, pivotColumns);\n\n function extractColDefs(input, arr) {\n if (arr === void 0) {\n arr = [];\n }\n\n input.forEach(function (def) {\n if (def.children !== undefined) {\n extractColDefs(def.children, arr);\n } else {\n arr.push(def);\n }\n });\n return arr;\n }\n\n var pivotColumnDefs = extractColDefs(pivotColumnGroupDefs); // additional columns that contain the aggregated total for each value column per row\n\n this.addRowGroupTotals(pivotColumnGroupDefs, pivotColumnDefs, valueColumns); // additional group columns that contain child totals for each collapsed child column / group\n\n this.addExpandablePivotGroups(pivotColumnGroupDefs, pivotColumnDefs); // additional group columns that contain an aggregated total across all child columns\n\n this.addPivotTotalsToGroups(pivotColumnGroupDefs, pivotColumnDefs); // we clone, so the colDefs in pivotColumnsGroupDefs and pivotColumnDefs are not shared. this is so that\n // any changes the user makes (via processSecondaryColumnDefinitions) don't impact the internal aggregations,\n // as these use the col defs also\n\n var pivotColumnDefsClone = pivotColumnDefs.map(function (colDef) {\n return _.cloneObject(colDef);\n });\n return {\n pivotColumnGroupDefs: pivotColumnGroupDefs,\n pivotColumnDefs: pivotColumnDefsClone\n };\n };\n\n PivotColDefService.prototype.recursiveBuildGroup = function (index, uniqueValue, pivotKeys, maxDepth, primaryPivotColumns) {\n var _this = this;\n\n var measureColumns = this.columnModel.getValueColumns();\n\n if (index >= maxDepth) {\n // Base case - build the measure columns\n return this.buildMeasureCols(pivotKeys);\n } // sort by either user provided comparator, or our own one\n\n\n var primaryPivotColumnDefs = primaryPivotColumns[index].getColDef();\n var comparator = this.headerNameComparator.bind(this, primaryPivotColumnDefs.pivotComparator); // Base case for the compact layout, instead of recursing build the last layer of groups as measure columns instead\n\n if (measureColumns.length === 1 && this.gridOptionsWrapper.isRemovePivotHeaderRowWhenSingleValueColumn() && index === maxDepth - 1) {\n var leafCols_1 = [];\n\n _.iterateObject(uniqueValue, function (key) {\n var newPivotKeys = __spread$u(pivotKeys, [key]);\n\n leafCols_1.push(__assign$B(__assign$B({}, _this.createColDef(measureColumns[0], key, newPivotKeys)), {\n columnGroupShow: 'open'\n }));\n });\n\n leafCols_1.sort(comparator);\n return leafCols_1;\n } // Recursive case\n\n\n var groups = [];\n\n _.iterateObject(uniqueValue, function (key, value) {\n var newPivotKeys = __spread$u(pivotKeys, [key]);\n\n groups.push({\n children: _this.recursiveBuildGroup(index + 1, value, newPivotKeys, maxDepth, primaryPivotColumns),\n headerName: key,\n pivotKeys: newPivotKeys,\n columnGroupShow: 'open',\n groupId: _this.generateColumnGroupId(newPivotKeys)\n });\n });\n\n groups.sort(comparator);\n return groups;\n };\n\n PivotColDefService.prototype.buildMeasureCols = function (pivotKeys) {\n var _this = this;\n\n var measureColumns = this.columnModel.getValueColumns();\n\n if (measureColumns.length === 0) {\n // if no value columns selected, then we insert one blank column, so the user at least sees columns\n // rendered. otherwise the grid would render with no columns (just empty groups) which would give the\n // impression that the grid is broken\n return [this.createColDef(null, '-', pivotKeys)];\n }\n\n return measureColumns.map(function (measureCol) {\n var columnName = _this.columnModel.getDisplayNameForColumn(measureCol, 'header');\n\n return __assign$B(__assign$B({}, _this.createColDef(measureCol, columnName, pivotKeys)), {\n columnGroupShow: 'open'\n });\n });\n };\n\n PivotColDefService.prototype.addExpandablePivotGroups = function (pivotColumnGroupDefs, pivotColumnDefs) {\n var _this = this;\n\n if (this.gridOptionsWrapper.isSuppressExpandablePivotGroups() || this.gridOptionsWrapper.getPivotColumnGroupTotals()) {\n return;\n }\n\n var recursivelyAddSubTotals = function recursivelyAddSubTotals(groupDef, currentPivotColumnDefs, acc) {\n var group = groupDef;\n\n if (group.children) {\n var childAcc_1 = new Map();\n group.children.forEach(function (grp) {\n recursivelyAddSubTotals(grp, currentPivotColumnDefs, childAcc_1);\n });\n var firstGroup_1 = !group.children.some(function (child) {\n return child.children;\n });\n\n _this.columnModel.getValueColumns().forEach(function (valueColumn) {\n var columnName = _this.columnModel.getDisplayNameForColumn(valueColumn, 'header');\n\n var totalColDef = _this.createColDef(valueColumn, columnName, groupDef.pivotKeys);\n\n totalColDef.pivotTotalColumnIds = childAcc_1.get(valueColumn.getColId());\n totalColDef.columnGroupShow = 'closed';\n totalColDef.aggFunc = valueColumn.getAggFunc();\n\n if (!firstGroup_1) {\n // add total colDef to group and pivot colDefs array\n var children = groupDef.children;\n children.push(totalColDef);\n currentPivotColumnDefs.push(totalColDef);\n }\n });\n\n _this.merge(acc, childAcc_1);\n } else {\n var def = groupDef; // check that value column exists, i.e. aggFunc is supplied\n\n if (!def.pivotValueColumn) {\n return;\n }\n\n var pivotValueColId = def.pivotValueColumn.getColId();\n var arr = acc.has(pivotValueColId) ? acc.get(pivotValueColId) : [];\n arr.push(def.colId);\n acc.set(pivotValueColId, arr);\n }\n };\n\n pivotColumnGroupDefs.forEach(function (groupDef) {\n recursivelyAddSubTotals(groupDef, pivotColumnDefs, new Map());\n });\n };\n\n PivotColDefService.prototype.addPivotTotalsToGroups = function (pivotColumnGroupDefs, pivotColumnDefs) {\n var _this = this;\n\n if (!this.gridOptionsWrapper.getPivotColumnGroupTotals()) {\n return;\n }\n\n var insertAfter = this.gridOptionsWrapper.getPivotColumnGroupTotals() === 'after';\n var valueCols = this.columnModel.getValueColumns();\n var aggFuncs = valueCols.map(function (valueCol) {\n return valueCol.getAggFunc();\n }); // don't add pivot totals if there is less than 1 aggFunc or they are not all the same\n\n if (!aggFuncs || aggFuncs.length < 1 || !this.sameAggFuncs(aggFuncs)) {\n // console.warn('AG Grid: aborting adding pivot total columns - value columns require same aggFunc');\n return;\n } // arbitrarily select a value column to use as a template for pivot columns\n\n\n var valueColumn = valueCols[0];\n pivotColumnGroupDefs.forEach(function (groupDef) {\n _this.recursivelyAddPivotTotal(groupDef, pivotColumnDefs, valueColumn, insertAfter);\n });\n };\n\n PivotColDefService.prototype.recursivelyAddPivotTotal = function (groupDef, pivotColumnDefs, valueColumn, insertAfter) {\n var _this = this;\n\n var group = groupDef;\n\n if (!group.children) {\n var def = groupDef;\n return def.colId ? [def.colId] : null;\n }\n\n var colIds = []; // need to recurse children first to obtain colIds used in the aggregation stage\n\n group.children.forEach(function (grp) {\n var childColIds = _this.recursivelyAddPivotTotal(grp, pivotColumnDefs, valueColumn, insertAfter);\n\n if (childColIds) {\n colIds = colIds.concat(childColIds);\n }\n }); // only add total colDef if there is more than 1 child node\n\n if (group.children.length > 1) {\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n var headerName = localeTextFunc('pivotColumnGroupTotals', 'Total'); //create total colDef using an arbitrary value column as a template\n\n var totalColDef = this.createColDef(valueColumn, headerName, groupDef.pivotKeys, true);\n totalColDef.pivotTotalColumnIds = colIds;\n totalColDef.aggFunc = valueColumn.getAggFunc(); // add total colDef to group and pivot colDefs array\n\n var children = groupDef.children;\n insertAfter ? children.push(totalColDef) : children.unshift(totalColDef);\n pivotColumnDefs.push(totalColDef);\n }\n\n return colIds;\n };\n\n PivotColDefService.prototype.addRowGroupTotals = function (pivotColumnGroupDefs, pivotColumnDefs, valueColumns) {\n var _this = this;\n\n if (!this.gridOptionsWrapper.getPivotRowTotals()) {\n return;\n }\n\n var insertAfter = this.gridOptionsWrapper.getPivotRowTotals() === 'after'; // order of row group totals depends on position\n\n var valueCols = insertAfter ? valueColumns.slice() : valueColumns.slice().reverse();\n\n var _loop_1 = function _loop_1(i) {\n var valueCol = valueCols[i];\n var colIds = [];\n pivotColumnGroupDefs.forEach(function (groupDef) {\n colIds = colIds.concat(_this.extractColIdsForValueColumn(groupDef, valueCol));\n });\n this_1.createRowGroupTotal(pivotColumnGroupDefs, pivotColumnDefs, valueCol, colIds, insertAfter);\n };\n\n var this_1 = this;\n\n for (var i = 0; i < valueCols.length; i++) {\n _loop_1(i);\n }\n };\n\n PivotColDefService.prototype.extractColIdsForValueColumn = function (groupDef, valueColumn) {\n var _this = this;\n\n var group = groupDef;\n\n if (!group.children) {\n var colDef = group;\n return colDef.pivotValueColumn === valueColumn && colDef.colId ? [colDef.colId] : [];\n }\n\n var colIds = [];\n group.children.forEach(function (grp) {\n _this.extractColIdsForValueColumn(grp, valueColumn);\n\n var childColIds = _this.extractColIdsForValueColumn(grp, valueColumn);\n\n colIds = colIds.concat(childColIds);\n });\n return colIds;\n };\n\n PivotColDefService.prototype.createRowGroupTotal = function (parentChildren, pivotColumnDefs, valueColumn, colIds, insertAfter) {\n var measureColumns = this.columnModel.getValueColumns();\n var colDef;\n\n if (measureColumns.length === 0) {\n colDef = this.createColDef(null, '-', []);\n } else {\n var columnName = this.columnModel.getDisplayNameForColumn(valueColumn, 'header');\n colDef = this.createColDef(valueColumn, columnName, []);\n colDef.pivotTotalColumnIds = colIds;\n }\n\n colDef.colId = PivotColDefService_1.PIVOT_ROW_TOTAL_PREFIX + colDef.colId;\n pivotColumnDefs.push(colDef);\n insertAfter ? parentChildren.push(colDef) : parentChildren.unshift(colDef);\n };\n\n PivotColDefService.prototype.createColDef = function (valueColumn, headerName, pivotKeys, totalColumn) {\n if (totalColumn === void 0) {\n totalColumn = false;\n }\n\n var colDef = {}; // This is null when there are no measure columns and we're creating placeholder columns\n\n if (valueColumn) {\n var colDefToCopy = valueColumn.getColDef();\n Object.assign(colDef, colDefToCopy); // even if original column was hidden, we always show the pivot value column, otherwise it would be\n // very confusing for people thinking the pivot is broken\n\n colDef.hide = false;\n }\n\n colDef.headerName = headerName;\n colDef.colId = this.generateColumnId(pivotKeys || [], valueColumn && !totalColumn ? valueColumn.getColId() : ''); // pivot columns repeat over field, so it makes sense to use the unique id instead. For example if you want to\n // assign values to pinned bottom rows using setPinnedBottomRowData the value service will use this colId.\n\n colDef.field = colDef.colId;\n colDef.pivotKeys = pivotKeys;\n colDef.pivotValueColumn = valueColumn;\n\n if (colDef.filter === true) {\n colDef.filter = 'agNumberColumnFilter';\n }\n\n return colDef;\n };\n\n PivotColDefService.prototype.sameAggFuncs = function (aggFuncs) {\n if (aggFuncs.length == 1) {\n return true;\n } //check if all aggFunc's match\n\n\n for (var i = 1; i < aggFuncs.length; i++) {\n if (aggFuncs[i] !== aggFuncs[0]) {\n return false;\n }\n }\n\n return true;\n };\n\n PivotColDefService.prototype.headerNameComparator = function (userComparator, a, b) {\n if (userComparator) {\n return userComparator(a.headerName, b.headerName);\n } else {\n if (a.headerName && !b.headerName) {\n return 1;\n } else if (!a.headerName && b.headerName) {\n return -1;\n } // slightly naff here - just to satify typescript\n // really should be &&, but if so ts complains\n // the above if/else checks would deal with either being falsy, so at this stage if either are falsy, both are\n // ..still naff though\n\n\n if (!a.headerName || !b.headerName) {\n return 0;\n }\n\n if (a.headerName < b.headerName) {\n return -1;\n }\n\n if (a.headerName > b.headerName) {\n return 1;\n }\n\n return 0;\n }\n };\n\n PivotColDefService.prototype.merge = function (m1, m2) {\n m2.forEach(function (value, key, map) {\n var existingList = m1.has(key) ? m1.get(key) : [];\n\n var updatedList = __spread$u(existingList, value);\n\n m1.set(key, updatedList);\n });\n };\n\n PivotColDefService.prototype.generateColumnGroupId = function (pivotKeys) {\n var pivotCols = this.columnModel.getPivotColumns().map(function (col) {\n return col.getColId();\n });\n return \"pivotGroup_\" + pivotCols.join('-') + \"_\" + pivotKeys.join('-');\n };\n\n PivotColDefService.prototype.generateColumnId = function (pivotKeys, measureColumnId) {\n var pivotCols = this.columnModel.getPivotColumns().map(function (col) {\n return col.getColId();\n });\n return \"pivot_\" + pivotCols.join('-') + \"_\" + pivotKeys.join('-') + \"_\" + measureColumnId;\n };\n\n var PivotColDefService_1;\n PivotColDefService.PIVOT_ROW_TOTAL_PREFIX = 'PivotRowTotal_';\n\n __decorate$1O([Autowired('columnModel')], PivotColDefService.prototype, \"columnModel\", void 0);\n\n PivotColDefService = PivotColDefService_1 = __decorate$1O([Bean('pivotColDefService')], PivotColDefService);\n return PivotColDefService;\n}(BeanStub);\n\nvar __extends$3d = undefined && undefined.__extends || function () {\n var _extendStatics15 = function extendStatics(d, b) {\n _extendStatics15 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics15(d, b);\n };\n\n return function (d, b) {\n _extendStatics15(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1N = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar PivotStage =\n/** @class */\nfunction (_super) {\n __extends$3d(PivotStage, _super);\n\n function PivotStage() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.uniqueValues = {};\n return _this;\n }\n\n PivotStage.prototype.execute = function (params) {\n var rootNode = params.rowNode;\n var changedPath = params.changedPath;\n\n if (this.columnModel.isPivotActive()) {\n this.executePivotOn(rootNode, changedPath);\n } else {\n this.executePivotOff(changedPath);\n }\n };\n\n PivotStage.prototype.executePivotOff = function (changedPath) {\n this.aggregationColumnsHashLastTime = null;\n this.uniqueValues = {};\n\n if (this.columnModel.isSecondaryColumnsPresent()) {\n this.columnModel.setSecondaryColumns(null, \"rowModelUpdated\");\n\n if (changedPath) {\n changedPath.setInactive();\n }\n }\n };\n\n PivotStage.prototype.executePivotOn = function (rootNode, changedPath) {\n var uniqueValues = this.bucketUpRowNodes(rootNode);\n var uniqueValuesChanged = this.setUniqueValues(uniqueValues);\n var aggregationColumns = this.columnModel.getValueColumns();\n var aggregationColumnsHash = aggregationColumns.map(function (column) {\n return column.getId() + \"-\" + column.getColDef().headerName;\n }).join('#');\n var aggregationFuncsHash = aggregationColumns.map(function (column) {\n return column.getAggFunc().toString();\n }).join('#');\n var aggregationColumnsChanged = this.aggregationColumnsHashLastTime !== aggregationColumnsHash;\n var aggregationFuncsChanged = this.aggregationFuncsHashLastTime !== aggregationFuncsHash;\n this.aggregationColumnsHashLastTime = aggregationColumnsHash;\n this.aggregationFuncsHashLastTime = aggregationFuncsHash;\n var groupColumnsHash = this.columnModel.getRowGroupColumns().map(function (column) {\n return column.getId();\n }).join('#');\n var groupColumnsChanged = groupColumnsHash !== this.groupColumnsHashLastTime;\n this.groupColumnsHashLastTime = groupColumnsHash;\n\n if (uniqueValuesChanged || aggregationColumnsChanged || groupColumnsChanged || aggregationFuncsChanged) {\n var _a = this.pivotColDefService.createPivotColumnDefs(this.uniqueValues),\n pivotColumnGroupDefs = _a.pivotColumnGroupDefs,\n pivotColumnDefs = _a.pivotColumnDefs;\n\n this.pivotColumnDefs = pivotColumnDefs;\n this.columnModel.setSecondaryColumns(pivotColumnGroupDefs, \"rowModelUpdated\"); // because the secondary columns have changed, then the aggregation needs to visit the whole\n // tree again, so we make the changedPath not active, to force aggregation to visit all paths.\n\n if (changedPath) {\n changedPath.setInactive();\n }\n }\n };\n\n PivotStage.prototype.setUniqueValues = function (newValues) {\n var json1 = JSON.stringify(newValues);\n var json2 = JSON.stringify(this.uniqueValues);\n var uniqueValuesChanged = json1 !== json2; // we only continue the below if the unique values are different, as otherwise\n // the result will be the same as the last time we did it\n\n if (uniqueValuesChanged) {\n this.uniqueValues = newValues;\n return true;\n } else {\n return false;\n }\n }; // returns true if values were different\n\n\n PivotStage.prototype.bucketUpRowNodes = function (rootNode) {\n var _this = this; // accessed from inside inner function\n\n\n var uniqueValues = {}; // finds all leaf groups and calls mapRowNode with it\n\n var recursivelySearchForLeafNodes = function recursivelySearchForLeafNodes(rowNode) {\n if (rowNode.leafGroup) {\n _this.bucketRowNode(rowNode, uniqueValues);\n } else {\n rowNode.childrenAfterFilter.forEach(function (child) {\n recursivelySearchForLeafNodes(child);\n });\n }\n };\n\n recursivelySearchForLeafNodes(rootNode);\n return uniqueValues;\n };\n\n PivotStage.prototype.bucketRowNode = function (rowNode, uniqueValues) {\n var pivotColumns = this.columnModel.getPivotColumns();\n\n if (pivotColumns.length === 0) {\n rowNode.childrenMapped = null;\n } else {\n rowNode.childrenMapped = this.bucketChildren(rowNode.childrenAfterFilter, pivotColumns, 0, uniqueValues);\n }\n\n if (rowNode.sibling) {\n rowNode.sibling.childrenMapped = rowNode.childrenMapped;\n }\n };\n\n PivotStage.prototype.bucketChildren = function (children, pivotColumns, pivotIndex, uniqueValues) {\n var _this = this;\n\n var mappedChildren = {};\n var pivotColumn = pivotColumns[pivotIndex]; // map the children out based on the pivot column\n\n children.forEach(function (child) {\n var key = _this.valueService.getKeyForNode(pivotColumn, child);\n\n if (_.missing(key)) {\n key = '';\n }\n\n if (!uniqueValues[key]) {\n uniqueValues[key] = {};\n }\n\n if (!mappedChildren[key]) {\n mappedChildren[key] = [];\n }\n\n mappedChildren[key].push(child);\n }); // if it's the last pivot column, return as is, otherwise go one level further in the map\n\n if (pivotIndex === pivotColumns.length - 1) {\n return mappedChildren;\n } else {\n var result_1 = {};\n\n _.iterateObject(mappedChildren, function (key, value) {\n result_1[key] = _this.bucketChildren(value, pivotColumns, pivotIndex + 1, uniqueValues[key]);\n });\n\n return result_1;\n }\n };\n\n PivotStage.prototype.getPivotColumnDefs = function () {\n return this.pivotColumnDefs;\n };\n\n __decorate$1N([Autowired('valueService')], PivotStage.prototype, \"valueService\", void 0);\n\n __decorate$1N([Autowired('columnModel')], PivotStage.prototype, \"columnModel\", void 0);\n\n __decorate$1N([Autowired('pivotColDefService')], PivotStage.prototype, \"pivotColDefService\", void 0);\n\n PivotStage = __decorate$1N([Bean('pivotStage')], PivotStage);\n return PivotStage;\n}(BeanStub);\n\nvar __extends$3c = undefined && undefined.__extends || function () {\n var _extendStatics16 = function extendStatics(d, b) {\n _extendStatics16 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics16(d, b);\n };\n\n return function (d, b) {\n _extendStatics16(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1M = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}; // @ts-ignore\n\n\nvar AGBigInt = typeof BigInt === 'undefined' ? null : BigInt;\n\nvar AggFuncService =\n/** @class */\nfunction (_super) {\n __extends$3c(AggFuncService, _super);\n\n function AggFuncService() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.aggFuncsMap = {};\n _this.initialised = false;\n return _this;\n }\n\n AggFuncService_1 = AggFuncService;\n\n AggFuncService.prototype.init = function () {\n if (this.initialised) {\n return;\n }\n\n this.initialiseWithDefaultAggregations();\n this.addAggFuncs(this.gridOptionsWrapper.getAggFuncs());\n };\n\n AggFuncService.prototype.initialiseWithDefaultAggregations = function () {\n this.aggFuncsMap[AggFuncService_1.AGG_SUM] = aggSum;\n this.aggFuncsMap[AggFuncService_1.AGG_FIRST] = aggFirst;\n this.aggFuncsMap[AggFuncService_1.AGG_LAST] = aggLast;\n this.aggFuncsMap[AggFuncService_1.AGG_MIN] = aggMin;\n this.aggFuncsMap[AggFuncService_1.AGG_MAX] = aggMax;\n this.aggFuncsMap[AggFuncService_1.AGG_COUNT] = aggCount;\n this.aggFuncsMap[AggFuncService_1.AGG_AVG] = aggAvg;\n this.initialised = true;\n };\n\n AggFuncService.prototype.isAggFuncPossible = function (column, func) {\n var allKeys = this.getFuncNames(column);\n\n var allowed = _.includes(allKeys, func);\n\n var funcExists = _.exists(this.aggFuncsMap[func]);\n\n return allowed && funcExists;\n };\n\n AggFuncService.prototype.getDefaultAggFunc = function (column) {\n var defaultAgg = column.getColDef().defaultAggFunc;\n\n if (_.exists(defaultAgg) && this.isAggFuncPossible(column, defaultAgg)) {\n return defaultAgg;\n }\n\n if (this.isAggFuncPossible(column, AggFuncService_1.AGG_SUM)) {\n return AggFuncService_1.AGG_SUM;\n }\n\n var allKeys = this.getFuncNames(column);\n return _.existsAndNotEmpty(allKeys) ? allKeys[0] : null;\n };\n\n AggFuncService.prototype.addAggFuncs = function (aggFuncs) {\n _.iterateObject(aggFuncs, this.addAggFunc.bind(this));\n };\n\n AggFuncService.prototype.addAggFunc = function (key, aggFunc) {\n this.init();\n this.aggFuncsMap[key] = aggFunc;\n };\n\n AggFuncService.prototype.getAggFunc = function (name) {\n this.init();\n return this.aggFuncsMap[name];\n };\n\n AggFuncService.prototype.getFuncNames = function (column) {\n var userAllowedFuncs = column.getColDef().allowedAggFuncs;\n return userAllowedFuncs == null ? Object.keys(this.aggFuncsMap).sort() : userAllowedFuncs;\n };\n\n AggFuncService.prototype.clear = function () {\n this.aggFuncsMap = {};\n };\n\n var AggFuncService_1;\n AggFuncService.AGG_SUM = 'sum';\n AggFuncService.AGG_FIRST = 'first';\n AggFuncService.AGG_LAST = 'last';\n AggFuncService.AGG_MIN = 'min';\n AggFuncService.AGG_MAX = 'max';\n AggFuncService.AGG_COUNT = 'count';\n AggFuncService.AGG_AVG = 'avg';\n\n __decorate$1M([PostConstruct], AggFuncService.prototype, \"init\", null);\n\n AggFuncService = AggFuncService_1 = __decorate$1M([Bean('aggFuncService')], AggFuncService);\n return AggFuncService;\n}(BeanStub);\n\nfunction aggSum(params) {\n var values = params.values;\n var result = null; // the logic ensures that we never combine bigint arithmetic with numbers, but TS is hard to please\n // for optimum performance, we use a for loop here rather than calling any helper methods or using functional code\n\n for (var i = 0; i < values.length; i++) {\n var value = values[i];\n\n if (typeof value === 'number') {\n if (result === null) {\n result = value;\n } else {\n if (AGBigInt) {\n result += typeof result === 'number' ? value : AGBigInt(value);\n } else {\n result += value;\n }\n }\n } else if (typeof value === 'bigint') {\n if (result === null) {\n result = value;\n } else {\n result = (typeof result === 'bigint' ? result : AGBigInt(result)) + value;\n }\n }\n }\n\n return result;\n}\n\nfunction aggFirst(params) {\n return params.values.length > 0 ? params.values[0] : null;\n}\n\nfunction aggLast(params) {\n return params.values.length > 0 ? _.last(params.values) : null;\n}\n\nfunction aggMin(params) {\n var values = params.values;\n var result = null; // for optimum performance, we use a for loop here rather than calling any helper methods or using functional code\n\n for (var i = 0; i < values.length; i++) {\n var value = values[i];\n\n if ((typeof value === 'number' || typeof value === 'bigint') && (result === null || result > value)) {\n result = value;\n }\n }\n\n return result;\n}\n\nfunction aggMax(params) {\n var values = params.values;\n var result = null; // for optimum performance, we use a for loop here rather than calling any helper methods or using functional code\n\n for (var i = 0; i < values.length; i++) {\n var value = values[i];\n\n if ((typeof value === 'number' || typeof value === 'bigint') && (result === null || result < value)) {\n result = value;\n }\n }\n\n return result;\n}\n\nfunction aggCount(params) {\n var values = params.values;\n var result = 0; // for optimum performance, we use a for loop here rather than calling any helper methods or using functional code\n\n for (var i = 0; i < values.length; i++) {\n var value = values[i]; // check if the value is from a group, in which case use the group's count\n\n result += value != null && typeof value.value === 'number' ? value.value : 1;\n }\n\n return {\n value: result,\n toString: function toString() {\n return this.value.toString();\n },\n // used for sorting\n toNumber: function toNumber() {\n return this.value;\n }\n };\n} // the average function is tricky as the multiple levels require weighted averages\n// for the non-leaf node aggregations.\n\n\nfunction aggAvg(params) {\n var values = params.values;\n var sum = 0; // the logic ensures that we never combine bigint arithmetic with numbers, but TS is hard to please\n\n var count = 0; // for optimum performance, we use a for loop here rather than calling any helper methods or using functional code\n\n for (var i = 0; i < values.length; i++) {\n var currentValue = values[i];\n var valueToAdd = null;\n\n if (typeof currentValue === 'number' || typeof currentValue === 'bigint') {\n valueToAdd = currentValue;\n count++;\n } else if (currentValue != null && (typeof currentValue.value === 'number' || typeof currentValue.value === 'bigint') && typeof currentValue.count === 'number') {\n // we are aggregating groups, so we take the aggregated values to calculated a weighted average\n if (AGBigInt) {\n valueToAdd = currentValue.value * (typeof currentValue.value === 'number' ? currentValue.count : AGBigInt(currentValue.count));\n } else {\n valueToAdd = currentValue.value * currentValue.count;\n }\n\n count += currentValue.count;\n }\n\n if (typeof valueToAdd === 'number') {\n if (AGBigInt) {\n sum += typeof sum === 'number' ? valueToAdd : AGBigInt(valueToAdd);\n } else {\n sum += valueToAdd;\n }\n } else if (typeof valueToAdd === 'bigint') {\n sum = (typeof sum === 'bigint' ? sum : AGBigInt(sum)) + valueToAdd;\n }\n }\n\n var value = null; // avoid divide by zero error\n\n if (count > 0) {\n if (AGBigInt) {\n value = sum / (typeof sum === 'number' ? count : AGBigInt(count));\n } else {\n value = sum / count;\n }\n } // the result will be an object. when this cell is rendered, only the avg is shown.\n // however when this cell is part of another aggregation, the count is also needed\n // to create a weighted average for the next level.\n\n\n return {\n count: count,\n value: value,\n // the grid by default uses toString to render values for an object, so this\n // is a trick to get the default cellRenderer to display the avg value\n toString: function toString() {\n return typeof this.value === 'number' || typeof this.value === 'bigint' ? this.value.toString() : '';\n },\n // used for sorting\n toNumber: function toNumber() {\n return this.value;\n }\n };\n}\n\nvar __extends$3b = undefined && undefined.__extends || function () {\n var _extendStatics17 = function extendStatics(d, b) {\n _extendStatics17 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics17(d, b);\n };\n\n return function (d, b) {\n _extendStatics17(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1L = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar DropZoneColumnComp =\n/** @class */\nfunction (_super) {\n __extends$3b(DropZoneColumnComp, _super);\n\n function DropZoneColumnComp(column, dragSourceDropTarget, ghost, dropZonePurpose, horizontal) {\n var _this = _super.call(this) || this;\n\n _this.column = column;\n _this.dragSourceDropTarget = dragSourceDropTarget;\n _this.ghost = ghost;\n _this.dropZonePurpose = dropZonePurpose;\n _this.horizontal = horizontal;\n _this.popupShowing = false;\n return _this;\n }\n\n DropZoneColumnComp.prototype.init = function () {\n var _this = this;\n\n this.setTemplate(DropZoneColumnComp.TEMPLATE);\n var eGui = this.getGui();\n var isFunctionsReadOnly = this.gridOptionsWrapper.isFunctionsReadOnly();\n this.addElementClasses(eGui);\n this.addElementClasses(this.eDragHandle, 'drag-handle');\n this.addElementClasses(this.eText, 'text');\n this.addElementClasses(this.eButton, 'button');\n this.eDragHandle.appendChild(_.createIconNoSpan('columnDrag', this.gridOptionsWrapper));\n this.eButton.appendChild(_.createIconNoSpan('cancel', this.gridOptionsWrapper));\n this.setupSort();\n this.displayName = this.columnModel.getDisplayNameForColumn(this.column, 'columnDrop');\n this.setupComponents();\n\n if (!this.ghost && !isFunctionsReadOnly) {\n this.addDragSource();\n }\n\n this.setupAria();\n this.addManagedListener(this.column, Column.EVENT_SORT_CHANGED, function () {\n _this.setupAria();\n });\n this.setupTooltip();\n };\n\n DropZoneColumnComp.prototype.setupAria = function () {\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n\n var _a = this.getColumnAndAggFuncName(),\n name = _a.name,\n aggFuncName = _a.aggFuncName;\n\n var aggSeparator = translate('ariaDropZoneColumnComponentAggFuncSeperator', ' of ');\n var sortDirection = {\n asc: translate('ariaDropZoneColumnComponentSortAscending', 'ascending'),\n desc: translate('ariaDropZoneColumnComponentSortDescending', 'descending')\n };\n var columnSort = this.column.getSort();\n var ariaInstructions = [[aggFuncName && \"\" + aggFuncName + aggSeparator, name, this.isGroupingZone() && columnSort && \", \" + sortDirection[columnSort]].filter(function (part) {\n return !!part;\n }).join('')];\n var isFunctionsReadOnly = this.gridOptionsWrapper.isFunctionsReadOnly();\n\n if (this.isAggregationZone() && !isFunctionsReadOnly) {\n var aggregationMenuAria = translate('ariaDropZoneColumnValueItemDescription', 'Press ENTER to change the aggregation type');\n ariaInstructions.push(aggregationMenuAria);\n }\n\n if (this.isGroupingZone() && this.column.getColDef().sortable) {\n var sortProgressAria = translate('ariaDropZoneColumnGroupItemDescription', 'Press ENTER to sort');\n ariaInstructions.push(sortProgressAria);\n }\n\n var deleteAria = translate('ariaDropZoneColumnComponentDescription', 'Press DELETE to remove');\n ariaInstructions.push(deleteAria);\n\n _.setAriaLabel(this.getGui(), ariaInstructions.join('. '));\n };\n\n DropZoneColumnComp.prototype.setupTooltip = function () {\n var _this = this;\n\n var refresh = function refresh() {\n var newTooltipText = _this.column.getColDef().headerTooltip;\n\n _this.setTooltip(newTooltipText);\n };\n\n refresh();\n this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, refresh);\n };\n\n DropZoneColumnComp.prototype.setupSort = function () {\n var _this = this;\n\n var canSort = this.column.getColDef().sortable;\n var isGroupingZone = this.isGroupingZone();\n\n if (!canSort || !isGroupingZone) {\n return;\n }\n\n this.eSortIndicator.setupSort(this.column, true);\n\n var performSort = function performSort(event) {\n event.preventDefault();\n\n var sortUsingCtrl = _this.gridOptionsWrapper.isMultiSortKeyCtrl();\n\n var multiSort = sortUsingCtrl ? event.ctrlKey || event.metaKey : event.shiftKey;\n\n _this.sortController.progressSort(_this.column, multiSort, 'uiColumnSorted');\n };\n\n this.addGuiEventListener('click', performSort);\n this.addGuiEventListener('keydown', function (e) {\n var isEnter = e.key === KeyCode.ENTER;\n\n if (isEnter && _this.isGroupingZone()) {\n performSort(e);\n }\n });\n };\n\n DropZoneColumnComp.prototype.addDragSource = function () {\n var _this = this;\n\n var dragSource = {\n type: DragSourceType.ToolPanel,\n eElement: this.eDragHandle,\n defaultIconName: DragAndDropService.ICON_HIDE,\n getDragItem: function getDragItem() {\n return _this.createDragItem();\n },\n dragItemName: this.displayName,\n dragSourceDropTarget: this.dragSourceDropTarget\n };\n this.dragAndDropService.addDragSource(dragSource, true);\n this.addDestroyFunc(function () {\n return _this.dragAndDropService.removeDragSource(dragSource);\n });\n };\n\n DropZoneColumnComp.prototype.createDragItem = function () {\n var visibleState = {};\n visibleState[this.column.getId()] = this.column.isVisible();\n return {\n columns: [this.column],\n visibleState: visibleState\n };\n };\n\n DropZoneColumnComp.prototype.setupComponents = function () {\n this.setTextValue();\n this.setupRemove();\n\n if (this.ghost) {\n this.addCssClass('ag-column-drop-cell-ghost');\n }\n\n if (this.isAggregationZone() && !this.gridOptionsWrapper.isFunctionsReadOnly()) {\n this.addGuiEventListener('click', this.onShowAggFuncSelection.bind(this));\n }\n };\n\n DropZoneColumnComp.prototype.setupRemove = function () {\n var _this = this;\n\n _.setDisplayed(this.eButton, !this.gridOptionsWrapper.isFunctionsReadOnly());\n\n var agEvent = {\n type: DropZoneColumnComp.EVENT_COLUMN_REMOVE\n };\n this.addGuiEventListener('keydown', function (e) {\n var isEnter = e.key === KeyCode.ENTER;\n var isDelete = e.key === KeyCode.DELETE;\n\n if (isDelete) {\n e.preventDefault();\n\n _this.dispatchEvent(agEvent);\n }\n\n if (isEnter && _this.isAggregationZone() && !_this.gridOptionsWrapper.isFunctionsReadOnly()) {\n e.preventDefault();\n\n _this.onShowAggFuncSelection();\n }\n });\n this.addManagedListener(this.eButton, 'click', function (mouseEvent) {\n _this.dispatchEvent(agEvent);\n\n mouseEvent.stopPropagation();\n });\n var touchListener = new TouchListener(this.eButton);\n this.addManagedListener(touchListener, TouchListener.EVENT_TAP, function () {\n _this.dispatchEvent(agEvent);\n });\n this.addDestroyFunc(touchListener.destroy.bind(touchListener));\n };\n\n DropZoneColumnComp.prototype.getColumnAndAggFuncName = function () {\n var name = this.displayName;\n var aggFuncName = '';\n\n if (this.isAggregationZone()) {\n var aggFunc = this.column.getAggFunc(); // if aggFunc is a string, we can use it, but if it's a function, then we swap with 'func'\n\n var aggFuncString = typeof aggFunc === 'string' ? aggFunc : 'agg';\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n aggFuncName = localeTextFunc(aggFuncString, aggFuncString);\n }\n\n return {\n name: name,\n aggFuncName: aggFuncName\n };\n };\n\n DropZoneColumnComp.prototype.setTextValue = function () {\n var _a = this.getColumnAndAggFuncName(),\n name = _a.name,\n aggFuncName = _a.aggFuncName;\n\n var displayValue = this.isAggregationZone() ? aggFuncName + \"(\" + name + \")\" : name;\n\n var displayValueSanitised = _.escapeString(displayValue);\n\n this.eText.innerHTML = displayValueSanitised;\n };\n\n DropZoneColumnComp.prototype.onShowAggFuncSelection = function () {\n var _this = this;\n\n if (this.popupShowing) {\n return;\n }\n\n this.popupShowing = true;\n var virtualList = new VirtualList('select-agg-func');\n var rows = this.aggFuncService.getFuncNames(this.column);\n var eGui = this.getGui();\n var virtualListGui = virtualList.getGui();\n virtualList.setModel({\n getRow: function getRow(index) {\n return rows[index];\n },\n getRowCount: function getRowCount() {\n return rows.length;\n }\n });\n this.getContext().createBean(virtualList);\n\n var ePopup = _.loadTemplate(\n /* html*/\n \"
\");\n\n ePopup.style.top = '0px';\n ePopup.style.left = '0px';\n ePopup.appendChild(virtualListGui); // ePopup.style.height = this.gridOptionsWrapper.getAggFuncPopupHeight() + 'px';\n\n ePopup.style.width = eGui.clientWidth + \"px\";\n\n var popupHiddenFunc = function popupHiddenFunc() {\n _this.destroyBean(virtualList);\n\n _this.popupShowing = false;\n eGui.focus();\n };\n\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var addPopupRes = this.popupService.addPopup({\n modal: true,\n eChild: ePopup,\n closeOnEsc: true,\n closedCallback: popupHiddenFunc,\n ariaLabel: translate('ariaLabelAggregationFunction', 'Aggregation Function')\n });\n\n if (addPopupRes) {\n virtualList.setComponentCreator(this.createAggSelect.bind(this, addPopupRes.hideFunc));\n }\n\n virtualList.addGuiEventListener('keydown', function (e) {\n if (e.key === KeyCode.ENTER || e.key === KeyCode.SPACE) {\n var row = virtualList.getLastFocusedRow();\n\n if (row == null) {\n return;\n }\n\n var comp = virtualList.getComponentAt(row);\n\n if (comp) {\n comp.selectItem();\n }\n }\n });\n this.popupService.positionPopupUnderComponent({\n type: 'aggFuncSelect',\n eventSource: eGui,\n ePopup: ePopup,\n keepWithinBounds: true,\n column: this.column\n });\n virtualList.refresh();\n var rowToFocus = rows.findIndex(function (r) {\n return r === _this.column.getAggFunc();\n });\n\n if (rowToFocus === -1) {\n rowToFocus = 0;\n }\n\n virtualList.focusRow(rowToFocus);\n };\n\n DropZoneColumnComp.prototype.createAggSelect = function (hidePopup, value) {\n var _this = this;\n\n var itemSelected = function itemSelected() {\n hidePopup();\n\n if (_this.gridOptionsWrapper.isFunctionsPassive()) {\n var event_1 = {\n type: Events.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST,\n columns: [_this.column],\n aggFunc: value\n };\n\n _this.eventService.dispatchEvent(event_1);\n } else {\n _this.columnModel.setColumnAggFunc(_this.column, value, \"toolPanelDragAndDrop\");\n }\n };\n\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n var aggFuncString = value.toString();\n var aggFuncStringTranslated = localeTextFunc(aggFuncString, aggFuncString);\n var comp = new AggItemComp(itemSelected, aggFuncStringTranslated);\n return comp;\n };\n\n DropZoneColumnComp.prototype.addElementClasses = function (el, suffix) {\n suffix = suffix ? \"-\" + suffix : '';\n var direction = this.horizontal ? 'horizontal' : 'vertical';\n el.classList.add(\"ag-column-drop-cell\" + suffix, \"ag-column-drop-\" + direction + \"-cell\" + suffix);\n };\n\n DropZoneColumnComp.prototype.isAggregationZone = function () {\n return this.dropZonePurpose === 'aggregation';\n };\n\n DropZoneColumnComp.prototype.isGroupingZone = function () {\n return this.dropZonePurpose === 'rowGroup';\n };\n\n DropZoneColumnComp.EVENT_COLUMN_REMOVE = 'columnRemove';\n DropZoneColumnComp.TEMPLATE = \"\\n \\n \\n \\n \\n \";\n\n __decorate$1L([Autowired('dragAndDropService')], DropZoneColumnComp.prototype, \"dragAndDropService\", void 0);\n\n __decorate$1L([Autowired('columnModel')], DropZoneColumnComp.prototype, \"columnModel\", void 0);\n\n __decorate$1L([Autowired('popupService')], DropZoneColumnComp.prototype, \"popupService\", void 0);\n\n __decorate$1L([Optional('aggFuncService')], DropZoneColumnComp.prototype, \"aggFuncService\", void 0);\n\n __decorate$1L([Autowired('sortController')], DropZoneColumnComp.prototype, \"sortController\", void 0);\n\n __decorate$1L([RefSelector('eText')], DropZoneColumnComp.prototype, \"eText\", void 0);\n\n __decorate$1L([RefSelector('eDragHandle')], DropZoneColumnComp.prototype, \"eDragHandle\", void 0);\n\n __decorate$1L([RefSelector('eButton')], DropZoneColumnComp.prototype, \"eButton\", void 0);\n\n __decorate$1L([RefSelector('eSortIndicator')], DropZoneColumnComp.prototype, \"eSortIndicator\", void 0);\n\n __decorate$1L([PostConstruct], DropZoneColumnComp.prototype, \"init\", null);\n\n return DropZoneColumnComp;\n}(Component);\n\nvar AggItemComp =\n/** @class */\nfunction (_super) {\n __extends$3b(AggItemComp, _super);\n\n function AggItemComp(itemSelected, value) {\n var _this = _super.call(this,\n /* html */\n \"
\") || this;\n\n _this.selectItem = itemSelected;\n _this.getGui().innerText = value;\n\n _this.addGuiEventListener('click', _this.selectItem);\n\n return _this;\n }\n\n return AggItemComp;\n}(Component);\n\nvar __extends$3a = undefined && undefined.__extends || function () {\n var _extendStatics18 = function extendStatics(d, b) {\n _extendStatics18 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics18(d, b);\n };\n\n return function (d, b) {\n _extendStatics18(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1K = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$V = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$t = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$V(arguments[i]));\n }\n\n return ar;\n};\n\nvar BaseDropZonePanel =\n/** @class */\nfunction (_super) {\n __extends$3a(BaseDropZonePanel, _super);\n\n function BaseDropZonePanel(horizontal, dropZonePurpose) {\n var _this = _super.call(this,\n /* html */\n \"
\") || this;\n\n _this.horizontal = horizontal;\n _this.dropZonePurpose = dropZonePurpose;\n _this.state = BaseDropZonePanel.STATE_NOT_DRAGGING;\n _this.guiDestroyFunctions = [];\n _this.childColumnComponents = [];\n _this.resizeEnabled = false;\n\n _this.addElementClasses(_this.getGui());\n\n _this.eColumnDropList = document.createElement('div');\n\n _this.addElementClasses(_this.eColumnDropList, 'list');\n\n _.setAriaRole(_this.eColumnDropList, 'listbox');\n\n return _this;\n }\n\n BaseDropZonePanel.prototype.isHorizontal = function () {\n return this.horizontal;\n };\n\n BaseDropZonePanel.prototype.toggleResizable = function (resizable) {\n this.positionableFeature.setResizable(resizable ? {\n bottom: true\n } : false);\n this.resizeEnabled = resizable;\n };\n\n BaseDropZonePanel.prototype.setBeans = function (beans) {\n this.beans = beans;\n };\n\n BaseDropZonePanel.prototype.destroy = function () {\n this.destroyGui();\n\n _super.prototype.destroy.call(this);\n };\n\n BaseDropZonePanel.prototype.destroyGui = function () {\n this.guiDestroyFunctions.forEach(function (func) {\n return func();\n });\n this.guiDestroyFunctions.length = 0;\n this.childColumnComponents.length = 0;\n\n _.clearElement(this.getGui());\n\n _.clearElement(this.eColumnDropList);\n };\n\n BaseDropZonePanel.prototype.init = function (params) {\n this.params = params;\n this.createManagedBean(new ManagedFocusFeature(this.getFocusableElement(), {\n handleKeyDown: this.handleKeyDown.bind(this)\n }));\n this.addManagedListener(this.beans.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.refreshGui.bind(this));\n this.addManagedListener(this.beans.gridOptionsWrapper, 'functionsReadOnly', this.refreshGui.bind(this));\n this.setupDropTarget();\n this.positionableFeature = new PositionableFeature(this.getGui(), {\n minHeight: 100\n });\n this.createManagedBean(this.positionableFeature); // we don't know if this bean will be initialised before columnModel.\n // if columnModel first, then below will work\n // if columnModel second, then below will put blank in, and then above event gets first when columnModel is set up\n\n this.refreshGui();\n\n _.setAriaLabel(this.eColumnDropList, this.getAriaLabel());\n };\n\n BaseDropZonePanel.prototype.handleKeyDown = function (e) {\n var isVertical = !this.horizontal;\n var isNext = e.key === KeyCode.DOWN;\n var isPrevious = e.key === KeyCode.UP;\n\n if (!isVertical) {\n var isRtl = this.gridOptionsWrapper.isEnableRtl();\n isNext = !isRtl && e.key === KeyCode.RIGHT || isRtl && e.key === KeyCode.LEFT;\n isPrevious = !isRtl && e.key === KeyCode.LEFT || isRtl && e.key === KeyCode.RIGHT;\n }\n\n if (!isNext && !isPrevious) {\n return;\n }\n\n var el = this.focusService.findNextFocusableElement(this.getFocusableElement(), false, isPrevious);\n\n if (el) {\n e.preventDefault();\n el.focus();\n }\n };\n\n BaseDropZonePanel.prototype.addElementClasses = function (el, suffix) {\n suffix = suffix ? \"-\" + suffix : '';\n var direction = this.horizontal ? 'horizontal' : 'vertical';\n el.classList.add(\"ag-column-drop\" + suffix, \"ag-column-drop-\" + direction + suffix);\n };\n\n BaseDropZonePanel.prototype.setupDropTarget = function () {\n this.dropTarget = {\n getContainer: this.getGui.bind(this),\n getIconName: this.getIconName.bind(this),\n onDragging: this.onDragging.bind(this),\n onDragEnter: this.onDragEnter.bind(this),\n onDragLeave: this.onDragLeave.bind(this),\n onDragStop: this.onDragStop.bind(this),\n isInterestedIn: this.isInterestedIn.bind(this)\n };\n this.beans.dragAndDropService.addDropTarget(this.dropTarget);\n };\n\n BaseDropZonePanel.prototype.isInterestedIn = function (type) {\n // not interested in row drags\n return type === DragSourceType.HeaderCell || type === DragSourceType.ToolPanel;\n };\n\n BaseDropZonePanel.prototype.checkInsertIndex = function (draggingEvent) {\n var newIndex = this.getNewInsertIndex(draggingEvent); // <0 happens when drag is no a direction we are interested in, eg drag is up/down but in horizontal panel\n\n if (newIndex < 0) {\n return false;\n }\n\n var changed = newIndex !== this.insertIndex;\n\n if (changed) {\n this.insertIndex = newIndex;\n }\n\n return changed;\n };\n\n BaseDropZonePanel.prototype.getNewInsertIndex = function (draggingEvent) {\n var _this = this;\n\n var mouseEvent = draggingEvent.event;\n var mouseLocation = this.horizontal ? mouseEvent.clientX : mouseEvent.clientY;\n var boundsList = this.childColumnComponents.map(function (col) {\n return col.getGui().getBoundingClientRect();\n }); // find the non-ghost component we're hovering\n\n var hoveredIndex = boundsList.findIndex(function (rect) {\n return _this.horizontal ? rect.right > mouseLocation && rect.left < mouseLocation : rect.top < mouseLocation && rect.bottom > mouseLocation;\n }); // not hovering a non-ghost component\n\n if (hoveredIndex === -1) {\n var enableRtl = this.beans.gridOptionsWrapper.isEnableRtl(); // if mouse is below or right of all components then new index should be placed last\n\n var isLast = boundsList.every(function (rect) {\n return mouseLocation > (_this.horizontal ? rect.right : rect.bottom);\n });\n\n if (isLast) {\n return enableRtl && this.horizontal ? 0 : this.childColumnComponents.length;\n } // if mouse is above or left of all components, new index is first\n\n\n var isFirst = boundsList.every(function (rect) {\n return mouseLocation < (_this.horizontal ? rect.left : rect.top);\n });\n\n if (isFirst) {\n return enableRtl && this.horizontal ? this.childColumnComponents.length : 0;\n } // must be hovering a ghost, don't change the index\n\n\n return this.insertIndex;\n } // if the old index is equal to or less than the index of our new target\n // we need to shift right, to insert after rather than before\n\n\n if (this.insertIndex <= hoveredIndex) {\n return hoveredIndex + 1;\n }\n\n return hoveredIndex;\n };\n\n BaseDropZonePanel.prototype.checkDragStartedBySelf = function (draggingEvent) {\n if (this.state !== BaseDropZonePanel.STATE_NOT_DRAGGING) {\n return;\n }\n\n this.state = BaseDropZonePanel.STATE_REARRANGE_COLUMNS;\n this.potentialDndColumns = draggingEvent.dragSource.getDragItem().columns || [];\n this.refreshGui();\n this.checkInsertIndex(draggingEvent);\n this.refreshGui();\n };\n\n BaseDropZonePanel.prototype.onDragging = function (draggingEvent) {\n this.checkDragStartedBySelf(draggingEvent);\n\n if (this.checkInsertIndex(draggingEvent)) {\n this.refreshGui();\n }\n };\n\n BaseDropZonePanel.prototype.onDragEnter = function (draggingEvent) {\n // this will contain all columns that are potential drops\n var dragColumns = draggingEvent.dragSource.getDragItem().columns || [];\n this.state = BaseDropZonePanel.STATE_NEW_COLUMNS_IN; // take out columns that are not droppable\n\n var goodDragColumns = dragColumns.filter(this.isColumnDroppable.bind(this));\n\n if (goodDragColumns.length > 0) {\n var hideColumnOnExit = this.isRowGroupPanel() && !this.gridOptionsWrapper.isSuppressRowGroupHidesColumns() && !draggingEvent.fromNudge;\n\n if (hideColumnOnExit) {\n var dragItem = draggingEvent.dragSource.getDragItem();\n var columns = dragItem.columns;\n this.setColumnsVisible(columns, false, \"uiColumnDragged\");\n }\n\n this.potentialDndColumns = goodDragColumns;\n this.checkInsertIndex(draggingEvent);\n this.refreshGui();\n }\n };\n\n BaseDropZonePanel.prototype.setColumnsVisible = function (columns, visible, source) {\n if (source === void 0) {\n source = \"api\";\n }\n\n if (columns) {\n var allowedCols = columns.filter(function (c) {\n return !c.getColDef().lockVisible;\n });\n this.colModel.setColumnsVisible(allowedCols, visible, source);\n }\n };\n\n BaseDropZonePanel.prototype.isPotentialDndColumns = function () {\n return _.existsAndNotEmpty(this.potentialDndColumns);\n };\n\n BaseDropZonePanel.prototype.isRowGroupPanel = function () {\n return this.dropZonePurpose === 'rowGroup';\n };\n\n BaseDropZonePanel.prototype.onDragLeave = function (draggingEvent) {\n // if the dragging started from us, we remove the group, however if it started\n // some place else, then we don't, as it was only 'asking'\n if (this.state === BaseDropZonePanel.STATE_REARRANGE_COLUMNS) {\n var columns = draggingEvent.dragSource.getDragItem().columns || [];\n this.removeColumns(columns);\n }\n\n if (this.isPotentialDndColumns()) {\n var showColumnOnExit = this.isRowGroupPanel() && !this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup() && !draggingEvent.fromNudge;\n\n if (showColumnOnExit) {\n var dragItem = draggingEvent.dragSource.getDragItem();\n this.setColumnsVisible(dragItem.columns, true, \"uiColumnDragged\");\n }\n\n this.potentialDndColumns = [];\n this.refreshGui();\n }\n\n this.state = BaseDropZonePanel.STATE_NOT_DRAGGING;\n };\n\n BaseDropZonePanel.prototype.onDragStop = function () {\n if (this.isPotentialDndColumns()) {\n var success = false;\n\n if (this.state === BaseDropZonePanel.STATE_NEW_COLUMNS_IN) {\n this.addColumns(this.potentialDndColumns);\n success = true;\n } else {\n success = this.rearrangeColumns(this.potentialDndColumns);\n }\n\n this.potentialDndColumns = []; // If the function is passive, then we don't refresh, as we assume the client application\n // is going to call setRowGroups / setPivots / setValues at a later point which will then\n // cause a refresh. This gives a nice GUI where the ghost stays until the app has caught\n // up with the changes. However, if there was no change in the order, then we do need to\n // refresh to reset the columns\n\n if (!this.beans.gridOptionsWrapper.isFunctionsPassive() || !success) {\n this.refreshGui();\n }\n }\n\n this.state = BaseDropZonePanel.STATE_NOT_DRAGGING;\n };\n\n BaseDropZonePanel.prototype.removeColumns = function (columnsToRemove) {\n var newColumnList = this.getExistingColumns().filter(function (col) {\n return !_.includes(columnsToRemove, col);\n });\n this.updateColumns(newColumnList);\n };\n\n BaseDropZonePanel.prototype.addColumns = function (columnsToAdd) {\n if (!columnsToAdd) {\n return;\n }\n\n var newColumnList = this.getExistingColumns().slice();\n var colsToAddNoDuplicates = columnsToAdd.filter(function (col) {\n return newColumnList.indexOf(col) < 0;\n });\n\n _.insertArrayIntoArray(newColumnList, colsToAddNoDuplicates, this.insertIndex);\n\n this.updateColumns(newColumnList);\n };\n\n BaseDropZonePanel.prototype.rearrangeColumns = function (columnsToAdd) {\n var newColumnList = this.getNonGhostColumns().slice();\n\n _.insertArrayIntoArray(newColumnList, columnsToAdd, this.insertIndex);\n\n if (_.areEqual(newColumnList, this.getExistingColumns())) {\n return false;\n }\n\n this.updateColumns(newColumnList);\n return true;\n };\n\n BaseDropZonePanel.prototype.refreshGui = function () {\n // we reset the scroll position after the refresh.\n // if we don't do this, then the list will always scroll to the top\n // each time we refresh it. this is because part of the refresh empties\n // out the list which sets scroll to zero. so the user could be just\n // reordering the list - we want to prevent the resetting of the scroll.\n // this is relevant for vertical display only (as horizontal has no scroll)\n var scrollTop = this.eColumnDropList.scrollTop;\n var resizeEnabled = this.resizeEnabled;\n var focusedIndex = this.getFocusedItem();\n var alternateElement = this.focusService.findNextFocusableElement();\n\n if (!alternateElement) {\n alternateElement = this.focusService.findNextFocusableElement(undefined, false, true);\n }\n\n this.toggleResizable(false);\n this.destroyGui();\n this.addIconAndTitleToGui();\n this.addEmptyMessageToGui();\n this.addColumnsToGui();\n\n if (!this.isHorizontal()) {\n this.eColumnDropList.scrollTop = scrollTop;\n }\n\n if (resizeEnabled) {\n this.toggleResizable(resizeEnabled);\n }\n\n this.restoreFocus(focusedIndex, alternateElement);\n };\n\n BaseDropZonePanel.prototype.getFocusedItem = function () {\n var eGui = this.getGui();\n var activeElement = this.gridOptionsWrapper.getDocument().activeElement;\n\n if (!eGui.contains(activeElement)) {\n return -1;\n }\n\n var items = Array.from(eGui.querySelectorAll('.ag-column-drop-cell'));\n return items.indexOf(activeElement);\n };\n\n BaseDropZonePanel.prototype.restoreFocus = function (index, alternateElement) {\n var eGui = this.getGui();\n var items = Array.from(eGui.querySelectorAll('.ag-column-drop-cell'));\n\n if (index === -1) {\n return;\n }\n\n if (items.length === 0) {\n alternateElement.focus();\n }\n\n var indexToFocus = Math.min(items.length - 1, index);\n var el = items[indexToFocus];\n\n if (el) {\n el.focus();\n }\n };\n\n BaseDropZonePanel.prototype.getNonGhostColumns = function () {\n var _this = this;\n\n var existingColumns = this.getExistingColumns();\n\n if (this.isPotentialDndColumns()) {\n return existingColumns.filter(function (column) {\n return !_.includes(_this.potentialDndColumns, column);\n });\n }\n\n return existingColumns;\n };\n\n BaseDropZonePanel.prototype.addColumnsToGui = function () {\n var _this = this;\n\n var nonGhostColumns = this.getNonGhostColumns();\n var itemsToAddToGui = nonGhostColumns.map(function (column) {\n return _this.createColumnComponent(column, false);\n });\n\n if (this.isPotentialDndColumns()) {\n var dndColumns = this.potentialDndColumns.map(function (column) {\n return _this.createColumnComponent(column, true);\n });\n\n if (this.insertIndex >= itemsToAddToGui.length) {\n itemsToAddToGui.push.apply(itemsToAddToGui, __spread$t(dndColumns));\n } else {\n itemsToAddToGui.splice.apply(itemsToAddToGui, __spread$t([this.insertIndex, 0], dndColumns));\n }\n }\n\n this.appendChild(this.eColumnDropList);\n itemsToAddToGui.forEach(function (columnComponent, index) {\n if (index > 0) {\n _this.addArrow(_this.eColumnDropList);\n }\n\n _this.eColumnDropList.appendChild(columnComponent.getGui());\n });\n this.addAriaLabelsToComponents();\n };\n\n BaseDropZonePanel.prototype.addAriaLabelsToComponents = function () {\n var _this = this;\n\n this.childColumnComponents.forEach(function (comp, idx) {\n var eGui = comp.getGui();\n\n _.setAriaPosInSet(eGui, idx + 1);\n\n _.setAriaSetSize(eGui, _this.childColumnComponents.length);\n });\n };\n\n BaseDropZonePanel.prototype.createColumnComponent = function (column, ghost) {\n var _this = this;\n\n var columnComponent = new DropZoneColumnComp(column, this.dropTarget, ghost, this.dropZonePurpose, this.horizontal);\n columnComponent.addEventListener(DropZoneColumnComp.EVENT_COLUMN_REMOVE, this.removeColumns.bind(this, [column]));\n this.beans.context.createBean(columnComponent);\n this.guiDestroyFunctions.push(function () {\n return _this.destroyBean(columnComponent);\n });\n\n if (!ghost) {\n this.childColumnComponents.push(columnComponent);\n }\n\n return columnComponent;\n };\n\n BaseDropZonePanel.prototype.addIconAndTitleToGui = function () {\n var eGroupIcon = this.params.icon;\n var eTitleBar = document.createElement('div');\n eTitleBar.setAttribute('aria-hidden', 'true');\n this.addElementClasses(eTitleBar, 'title-bar');\n this.addElementClasses(eGroupIcon, 'icon');\n this.addOrRemoveCssClass('ag-column-drop-empty', this.isExistingColumnsEmpty());\n eTitleBar.appendChild(eGroupIcon);\n\n if (!this.horizontal) {\n var eTitle = document.createElement('span');\n this.addElementClasses(eTitle, 'title');\n eTitle.innerHTML = this.params.title;\n eTitleBar.appendChild(eTitle);\n }\n\n this.appendChild(eTitleBar);\n };\n\n BaseDropZonePanel.prototype.isExistingColumnsEmpty = function () {\n return this.getExistingColumns().length === 0;\n };\n\n BaseDropZonePanel.prototype.addEmptyMessageToGui = function () {\n if (!this.isExistingColumnsEmpty() || this.isPotentialDndColumns()) {\n return;\n }\n\n var eMessage = document.createElement('span');\n eMessage.innerHTML = this.params.emptyMessage;\n this.addElementClasses(eMessage, 'empty-message');\n this.eColumnDropList.appendChild(eMessage);\n };\n\n BaseDropZonePanel.prototype.addArrow = function (eParent) {\n // only add the arrows if the layout is horizontal\n if (this.horizontal) {\n // for RTL it's a left arrow, otherwise it's a right arrow\n var enableRtl = this.beans.gridOptionsWrapper.isEnableRtl();\n\n var icon = _.createIconNoSpan(enableRtl ? 'smallLeft' : 'smallRight', this.beans.gridOptionsWrapper);\n\n this.addElementClasses(icon, 'cell-separator');\n eParent.appendChild(icon);\n }\n };\n\n BaseDropZonePanel.STATE_NOT_DRAGGING = 'notDragging';\n BaseDropZonePanel.STATE_NEW_COLUMNS_IN = 'newColumnsIn';\n BaseDropZonePanel.STATE_REARRANGE_COLUMNS = 'rearrangeColumns';\n\n __decorate$1K([Autowired('columnModel')], BaseDropZonePanel.prototype, \"colModel\", void 0);\n\n __decorate$1K([Autowired('focusService')], BaseDropZonePanel.prototype, \"focusService\", void 0);\n\n return BaseDropZonePanel;\n}(Component);\n\nvar __extends$39 = undefined && undefined.__extends || function () {\n var _extendStatics19 = function extendStatics(d, b) {\n _extendStatics19 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics19(d, b);\n };\n\n return function (d, b) {\n _extendStatics19(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1J = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar RowGroupDropZonePanel =\n/** @class */\nfunction (_super) {\n __extends$39(RowGroupDropZonePanel, _super);\n\n function RowGroupDropZonePanel(horizontal) {\n return _super.call(this, horizontal, 'rowGroup') || this;\n }\n\n RowGroupDropZonePanel.prototype.passBeansUp = function () {\n _super.prototype.setBeans.call(this, {\n gridOptionsWrapper: this.gridOptionsWrapper,\n eventService: this.eventService,\n context: this.getContext(),\n loggerFactory: this.loggerFactory,\n dragAndDropService: this.dragAndDropService\n });\n\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n var emptyMessage = localeTextFunc('rowGroupColumnsEmptyMessage', 'Drag here to set row groups');\n var title = localeTextFunc('groups', 'Row Groups');\n\n _super.prototype.init.call(this, {\n dragAndDropIcon: DragAndDropService.ICON_GROUP,\n icon: _.createIconNoSpan('rowGroupPanel', this.gridOptionsWrapper, null),\n emptyMessage: emptyMessage,\n title: title\n });\n\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.refreshGui.bind(this));\n };\n\n RowGroupDropZonePanel.prototype.getAriaLabel = function () {\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var label = translate('ariaRowGroupDropZonePanelLabel', 'Row Groups');\n return label;\n };\n\n RowGroupDropZonePanel.prototype.getTooltipParams = function () {\n var res = _super.prototype.getTooltipParams.call(this);\n\n res.location = 'rowGroupColumnsList';\n return res;\n };\n\n RowGroupDropZonePanel.prototype.isColumnDroppable = function (column) {\n // we never allow grouping of secondary columns\n if (this.gridOptionsWrapper.isFunctionsReadOnly() || !column.isPrimary()) {\n return false;\n }\n\n return column.isAllowRowGroup() && !column.isRowGroupActive();\n };\n\n RowGroupDropZonePanel.prototype.updateColumns = function (columns) {\n if (this.gridOptionsWrapper.isFunctionsPassive()) {\n var event_1 = {\n type: Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,\n columns: columns\n };\n this.eventService.dispatchEvent(event_1);\n } else {\n this.columnModel.setRowGroupColumns(columns, \"toolPanelUi\");\n }\n };\n\n RowGroupDropZonePanel.prototype.getIconName = function () {\n return this.isPotentialDndColumns() ? DragAndDropService.ICON_GROUP : DragAndDropService.ICON_NOT_ALLOWED;\n };\n\n RowGroupDropZonePanel.prototype.getExistingColumns = function () {\n return this.columnModel.getRowGroupColumns();\n };\n\n __decorate$1J([Autowired('columnModel')], RowGroupDropZonePanel.prototype, \"columnModel\", void 0);\n\n __decorate$1J([Autowired('loggerFactory')], RowGroupDropZonePanel.prototype, \"loggerFactory\", void 0);\n\n __decorate$1J([Autowired('dragAndDropService')], RowGroupDropZonePanel.prototype, \"dragAndDropService\", void 0);\n\n __decorate$1J([PostConstruct], RowGroupDropZonePanel.prototype, \"passBeansUp\", null);\n\n return RowGroupDropZonePanel;\n}(BaseDropZonePanel);\n\nvar __extends$38 = undefined && undefined.__extends || function () {\n var _extendStatics20 = function extendStatics(d, b) {\n _extendStatics20 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics20(d, b);\n };\n\n return function (d, b) {\n _extendStatics20(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1I = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar PivotDropZonePanel =\n/** @class */\nfunction (_super) {\n __extends$38(PivotDropZonePanel, _super);\n\n function PivotDropZonePanel(horizontal) {\n return _super.call(this, horizontal, 'pivot') || this;\n }\n\n PivotDropZonePanel.prototype.passBeansUp = function () {\n _super.prototype.setBeans.call(this, {\n gridOptionsWrapper: this.gridOptionsWrapper,\n eventService: this.eventService,\n context: this.getContext(),\n loggerFactory: this.loggerFactory,\n dragAndDropService: this.dragAndDropService\n });\n\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n var emptyMessage = localeTextFunc('pivotColumnsEmptyMessage', 'Drag here to set column labels');\n var title = localeTextFunc('pivots', 'Column Labels');\n\n _super.prototype.init.call(this, {\n dragAndDropIcon: DragAndDropService.ICON_GROUP,\n icon: _.createIconNoSpan('pivotPanel', this.gridOptionsWrapper, null),\n emptyMessage: emptyMessage,\n title: title\n });\n\n this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.refresh.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_CHANGED, this.refresh.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, this.checkVisibility.bind(this));\n this.refresh();\n };\n\n PivotDropZonePanel.prototype.getAriaLabel = function () {\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var label = translate('ariaPivotDropZonePanelLabel', 'Column Labels');\n return label;\n };\n\n PivotDropZonePanel.prototype.getTooltipParams = function () {\n var res = _super.prototype.getTooltipParams.call(this);\n\n res.location = 'pivotColumnsList';\n return res;\n };\n\n PivotDropZonePanel.prototype.refresh = function () {\n this.checkVisibility();\n this.refreshGui();\n };\n\n PivotDropZonePanel.prototype.checkVisibility = function () {\n var pivotMode = this.columnModel.isPivotMode();\n\n if (this.isHorizontal()) {\n // what we do for horizontal (ie the pivot panel at the top) depends\n // on the user property as well as pivotMode.\n switch (this.gridOptionsWrapper.getPivotPanelShow()) {\n case 'always':\n this.setDisplayed(pivotMode);\n break;\n\n case 'onlyWhenPivoting':\n var pivotActive = this.columnModel.isPivotActive();\n this.setDisplayed(pivotMode && pivotActive);\n break;\n\n default:\n // never show it\n this.setDisplayed(false);\n break;\n }\n } else {\n // in toolPanel, the pivot panel is always shown when pivot mode is on\n this.setDisplayed(pivotMode);\n }\n };\n\n PivotDropZonePanel.prototype.isColumnDroppable = function (column) {\n // we never allow grouping of secondary columns\n if (this.gridOptionsWrapper.isFunctionsReadOnly() || !column.isPrimary()) {\n return false;\n }\n\n return column.isAllowPivot() && !column.isPivotActive();\n };\n\n PivotDropZonePanel.prototype.updateColumns = function (columns) {\n if (this.gridOptionsWrapper.isFunctionsPassive()) {\n var event_1 = {\n type: Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,\n columns: columns\n };\n this.eventService.dispatchEvent(event_1);\n } else {\n this.columnModel.setPivotColumns(columns, \"toolPanelUi\");\n }\n };\n\n PivotDropZonePanel.prototype.getIconName = function () {\n return this.isPotentialDndColumns() ? DragAndDropService.ICON_PIVOT : DragAndDropService.ICON_NOT_ALLOWED;\n };\n\n PivotDropZonePanel.prototype.getExistingColumns = function () {\n return this.columnModel.getPivotColumns();\n };\n\n __decorate$1I([Autowired('columnModel')], PivotDropZonePanel.prototype, \"columnModel\", void 0);\n\n __decorate$1I([Autowired('loggerFactory')], PivotDropZonePanel.prototype, \"loggerFactory\", void 0);\n\n __decorate$1I([Autowired('dragAndDropService')], PivotDropZonePanel.prototype, \"dragAndDropService\", void 0);\n\n __decorate$1I([PostConstruct], PivotDropZonePanel.prototype, \"passBeansUp\", null);\n\n return PivotDropZonePanel;\n}(BaseDropZonePanel);\n\nvar __extends$37 = undefined && undefined.__extends || function () {\n var _extendStatics21 = function extendStatics(d, b) {\n _extendStatics21 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics21(d, b);\n };\n\n return function (d, b) {\n _extendStatics21(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1H = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar GridHeaderDropZones =\n/** @class */\nfunction (_super) {\n __extends$37(GridHeaderDropZones, _super);\n\n function GridHeaderDropZones() {\n return _super.call(this) || this;\n }\n\n GridHeaderDropZones.prototype.postConstruct = function () {\n this.setGui(this.createNorthPanel());\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.onRowGroupChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.onRowGroupChanged.bind(this));\n this.onRowGroupChanged();\n };\n\n GridHeaderDropZones.prototype.createNorthPanel = function () {\n var topPanelGui = document.createElement('div');\n var dropPanelVisibleListener = this.onDropPanelVisible.bind(this);\n topPanelGui.classList.add('ag-column-drop-wrapper');\n\n _.setAriaRole(topPanelGui, 'presentation');\n\n this.rowGroupComp = new RowGroupDropZonePanel(true);\n this.createManagedBean(this.rowGroupComp);\n this.pivotComp = new PivotDropZonePanel(true);\n this.createManagedBean(this.pivotComp);\n topPanelGui.appendChild(this.rowGroupComp.getGui());\n topPanelGui.appendChild(this.pivotComp.getGui());\n this.addManagedListener(this.rowGroupComp, Component.EVENT_DISPLAYED_CHANGED, dropPanelVisibleListener);\n this.addManagedListener(this.pivotComp, Component.EVENT_DISPLAYED_CHANGED, dropPanelVisibleListener);\n this.onDropPanelVisible();\n return topPanelGui;\n };\n\n GridHeaderDropZones.prototype.onDropPanelVisible = function () {\n var bothDisplayed = this.rowGroupComp.isDisplayed() && this.pivotComp.isDisplayed();\n this.rowGroupComp.addOrRemoveCssClass('ag-column-drop-horizontal-half-width', bothDisplayed);\n this.pivotComp.addOrRemoveCssClass('ag-column-drop-horizontal-half-width', bothDisplayed);\n };\n\n GridHeaderDropZones.prototype.onRowGroupChanged = function () {\n if (!this.rowGroupComp) {\n return;\n }\n\n var rowGroupPanelShow = this.gridOptionsWrapper.getRowGroupPanelShow();\n\n if (rowGroupPanelShow === Constants.ALWAYS) {\n this.rowGroupComp.setDisplayed(true);\n } else if (rowGroupPanelShow === Constants.ONLY_WHEN_GROUPING) {\n var grouping = !this.columnModel.isRowGroupEmpty();\n this.rowGroupComp.setDisplayed(grouping);\n } else {\n this.rowGroupComp.setDisplayed(false);\n }\n };\n\n __decorate$1H([Autowired('columnModel')], GridHeaderDropZones.prototype, \"columnModel\", void 0);\n\n __decorate$1H([PostConstruct], GridHeaderDropZones.prototype, \"postConstruct\", null);\n\n return GridHeaderDropZones;\n}(Component);\n\nvar __extends$36 = undefined && undefined.__extends || function () {\n var _extendStatics22 = function extendStatics(d, b) {\n _extendStatics22 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics22(d, b);\n };\n\n return function (d, b) {\n _extendStatics22(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar FilterAggregatesStage =\n/** @class */\nfunction (_super) {\n __extends$36(FilterAggregatesStage, _super);\n\n function FilterAggregatesStage() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n FilterAggregatesStage.prototype.execute = function (params) {\n var _this = this;\n\n var isPivotMode = this.columnModel.isPivotMode();\n var isAggFilterActive = this.filterManager.isAggregateFilterPresent(); // This is the default filter for applying only to leaf nodes, realistically this should not apply as primary agg columns,\n // should not be applied by the filterManager if getGroupAggFiltering is missing. Predicate will apply filters to leaf level.\n\n var defaultPrimaryColumnPredicate = function defaultPrimaryColumnPredicate(params) {\n return !params.node.group;\n }; // Default secondary column predicate, selecting only leaf level groups.\n\n\n var defaultSecondaryColumnPredicate = function defaultSecondaryColumnPredicate(params) {\n return params.node.leafGroup;\n }; // The predicate to determine whether filters should apply to this row. Either defined by the user in groupAggFiltering or a default depending\n // on current pivot mode status.\n\n\n var applyFilterToNode = this.gridOptionsWrapper.getGroupAggFiltering() || (isPivotMode ? defaultSecondaryColumnPredicate : defaultPrimaryColumnPredicate);\n var changedPath = params.changedPath;\n\n var preserveChildren = function preserveChildren(node, recursive) {\n if (recursive === void 0) {\n recursive = false;\n }\n\n if (node.childrenAfterFilter) {\n node.childrenAfterAggFilter = node.childrenAfterFilter;\n\n if (recursive) {\n node.childrenAfterAggFilter.forEach(function (child) {\n return preserveChildren(child, recursive);\n });\n }\n\n _this.setAllChildrenCount(node);\n }\n\n if (node.sibling) {\n node.sibling.childrenAfterAggFilter = node.childrenAfterAggFilter;\n }\n };\n\n var filterChildren = function filterChildren(node) {\n var _a;\n\n node.childrenAfterAggFilter = ((_a = node.childrenAfterFilter) === null || _a === void 0 ? void 0 : _a.filter(function (child) {\n var _a;\n\n var shouldFilterRow = applyFilterToNode({\n node: child\n });\n\n if (shouldFilterRow) {\n var doesNodePassFilter = _this.filterManager.doesRowPassAggregateFilters({\n rowNode: child\n });\n\n if (doesNodePassFilter) {\n // Node has passed, so preserve children\n preserveChildren(child, true);\n return true;\n }\n }\n\n var hasChildPassed = (_a = child.childrenAfterAggFilter) === null || _a === void 0 ? void 0 : _a.length;\n return hasChildPassed;\n })) || null;\n\n _this.setAllChildrenCount(node);\n\n if (node.sibling) {\n node.sibling.childrenAfterAggFilter = node.childrenAfterAggFilter;\n }\n };\n\n changedPath.forEachChangedNodeDepthFirst(isAggFilterActive ? filterChildren : preserveChildren, true);\n };\n\n FilterAggregatesStage.prototype.setAllChildrenCountTreeData = function (rowNode) {\n // for tree data, we include all children, groups and leafs\n var allChildrenCount = 0;\n rowNode.childrenAfterAggFilter.forEach(function (child) {\n // include child itself\n allChildrenCount++; // include children of children\n\n allChildrenCount += child.allChildrenCount;\n });\n rowNode.setAllChildrenCount(allChildrenCount);\n };\n\n FilterAggregatesStage.prototype.setAllChildrenCountGridGrouping = function (rowNode) {\n // for grid data, we only count the leafs\n var allChildrenCount = 0;\n rowNode.childrenAfterAggFilter.forEach(function (child) {\n if (child.group) {\n allChildrenCount += child.allChildrenCount;\n } else {\n allChildrenCount++;\n }\n });\n rowNode.setAllChildrenCount(allChildrenCount);\n };\n\n FilterAggregatesStage.prototype.setAllChildrenCount = function (rowNode) {\n if (!rowNode.hasChildren()) {\n rowNode.setAllChildrenCount(null);\n return;\n }\n\n if (this.gridOptionsWrapper.isTreeData()) {\n this.setAllChildrenCountTreeData(rowNode);\n } else {\n this.setAllChildrenCountGridGrouping(rowNode);\n }\n };\n\n __decorate$1G([Autowired('filterManager')], FilterAggregatesStage.prototype, \"filterManager\", void 0);\n\n __decorate$1G([Autowired('columnModel')], FilterAggregatesStage.prototype, \"columnModel\", void 0);\n\n FilterAggregatesStage = __decorate$1G([Bean('filterAggregatesStage')], FilterAggregatesStage);\n return FilterAggregatesStage;\n}(BeanStub);\n\nvar RowGroupingModule = {\n moduleName: ModuleNames.RowGroupingModule,\n beans: [AggregationStage, FilterAggregatesStage, GroupStage, PivotColDefService, PivotStage, AggFuncService],\n agStackComponents: [{\n componentName: 'AgGridHeaderDropZones',\n componentClass: GridHeaderDropZones\n }],\n dependantModules: [EnterpriseCoreModule]\n};\n\nvar __extends$35 = undefined && undefined.__extends || function () {\n var _extendStatics23 = function extendStatics(d, b) {\n _extendStatics23 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics23(d, b);\n };\n\n return function (d, b) {\n _extendStatics23(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ValuesDropZonePanel =\n/** @class */\nfunction (_super) {\n __extends$35(ValuesDropZonePanel, _super);\n\n function ValuesDropZonePanel(horizontal) {\n return _super.call(this, horizontal, 'aggregation') || this;\n }\n\n ValuesDropZonePanel.prototype.passBeansUp = function () {\n _super.prototype.setBeans.call(this, {\n gridOptionsWrapper: this.gridOptionsWrapper,\n eventService: this.eventService,\n context: this.getContext(),\n loggerFactory: this.loggerFactory,\n dragAndDropService: this.dragAndDropService\n });\n\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n var emptyMessage = localeTextFunc('valueColumnsEmptyMessage', 'Drag here to aggregate');\n var title = localeTextFunc('values', 'Values');\n\n _super.prototype.init.call(this, {\n dragAndDropIcon: DragAndDropService.ICON_AGGREGATE,\n icon: _.createIconNoSpan('valuePanel', this.gridOptionsWrapper, null),\n emptyMessage: emptyMessage,\n title: title\n });\n\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_VALUE_CHANGED, this.refreshGui.bind(this));\n };\n\n ValuesDropZonePanel.prototype.getAriaLabel = function () {\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var label = translate('ariaValuesDropZonePanelLabel', 'Values');\n return label;\n };\n\n ValuesDropZonePanel.prototype.getTooltipParams = function () {\n var res = _super.prototype.getTooltipParams.call(this);\n\n res.location = 'valueColumnsList';\n return res;\n };\n\n ValuesDropZonePanel.prototype.getIconName = function () {\n return this.isPotentialDndColumns() ? DragAndDropService.ICON_AGGREGATE : DragAndDropService.ICON_NOT_ALLOWED;\n };\n\n ValuesDropZonePanel.prototype.isColumnDroppable = function (column) {\n // we never allow grouping of secondary columns\n if (this.gridOptionsWrapper.isFunctionsReadOnly() || !column.isPrimary()) {\n return false;\n }\n\n return column.isAllowValue() && !column.isValueActive();\n };\n\n ValuesDropZonePanel.prototype.updateColumns = function (columns) {\n if (this.gridOptionsWrapper.isFunctionsPassive()) {\n var event_1 = {\n type: Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,\n columns: columns\n };\n this.eventService.dispatchEvent(event_1);\n } else {\n this.columnModel.setValueColumns(columns, \"toolPanelUi\");\n }\n };\n\n ValuesDropZonePanel.prototype.getExistingColumns = function () {\n return this.columnModel.getValueColumns();\n };\n\n __decorate$1F([Autowired('columnModel')], ValuesDropZonePanel.prototype, \"columnModel\", void 0);\n\n __decorate$1F([Autowired('loggerFactory')], ValuesDropZonePanel.prototype, \"loggerFactory\", void 0);\n\n __decorate$1F([Autowired('dragAndDropService')], ValuesDropZonePanel.prototype, \"dragAndDropService\", void 0);\n\n __decorate$1F([PostConstruct], ValuesDropZonePanel.prototype, \"passBeansUp\", null);\n\n return ValuesDropZonePanel;\n}(BaseDropZonePanel);\n\nvar __extends$34 = undefined && undefined.__extends || function () {\n var _extendStatics24 = function extendStatics(d, b) {\n _extendStatics24 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics24(d, b);\n };\n\n return function (d, b) {\n _extendStatics24(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar PrimaryColsPanel =\n/** @class */\nfunction (_super) {\n __extends$34(PrimaryColsPanel, _super);\n\n function PrimaryColsPanel() {\n return _super.call(this, PrimaryColsPanel.TEMPLATE) || this;\n }\n\n PrimaryColsPanel.prototype.postConstruct = function () {\n this.initialiseTabGuard({});\n }; // we allow dragging in the toolPanel, but not when this component appears in the column menu\n\n\n PrimaryColsPanel.prototype.init = function (allowDragging, params, eventType) {\n this.allowDragging = allowDragging;\n this.params = params;\n this.eventType = eventType;\n this.primaryColsHeaderPanel.init(this.params);\n var hideFilter = this.params.suppressColumnFilter;\n var hideSelect = this.params.suppressColumnSelectAll;\n var hideExpand = this.params.suppressColumnExpandAll;\n\n if (hideExpand && hideFilter && hideSelect) {\n this.primaryColsHeaderPanel.setDisplayed(false);\n }\n\n this.addManagedListener(this.primaryColsListPanel, 'groupExpanded', this.onGroupExpanded.bind(this));\n this.addManagedListener(this.primaryColsListPanel, 'selectionChanged', this.onSelectionChange.bind(this));\n this.primaryColsListPanel.init(this.params, this.allowDragging, this.eventType);\n this.addManagedListener(this.primaryColsHeaderPanel, 'expandAll', this.onExpandAll.bind(this));\n this.addManagedListener(this.primaryColsHeaderPanel, 'collapseAll', this.onCollapseAll.bind(this));\n this.addManagedListener(this.primaryColsHeaderPanel, 'selectAll', this.onSelectAll.bind(this));\n this.addManagedListener(this.primaryColsHeaderPanel, 'unselectAll', this.onUnselectAll.bind(this));\n this.addManagedListener(this.primaryColsHeaderPanel, 'filterChanged', this.onFilterChanged.bind(this));\n this.positionableFeature = new PositionableFeature(this.getGui(), {\n minHeight: 100\n });\n this.createManagedBean(this.positionableFeature);\n };\n\n PrimaryColsPanel.prototype.toggleResizable = function (resizable) {\n this.positionableFeature.setResizable(resizable ? {\n bottom: true\n } : false);\n };\n\n PrimaryColsPanel.prototype.onExpandAll = function () {\n this.primaryColsListPanel.doSetExpandedAll(true);\n };\n\n PrimaryColsPanel.prototype.onCollapseAll = function () {\n this.primaryColsListPanel.doSetExpandedAll(false);\n };\n\n PrimaryColsPanel.prototype.expandGroups = function (groupIds) {\n this.primaryColsListPanel.setGroupsExpanded(true, groupIds);\n };\n\n PrimaryColsPanel.prototype.collapseGroups = function (groupIds) {\n this.primaryColsListPanel.setGroupsExpanded(false, groupIds);\n };\n\n PrimaryColsPanel.prototype.setColumnLayout = function (colDefs) {\n this.primaryColsListPanel.setColumnLayout(colDefs);\n };\n\n PrimaryColsPanel.prototype.onFilterChanged = function (event) {\n this.primaryColsListPanel.setFilterText(event.filterText);\n };\n\n PrimaryColsPanel.prototype.syncLayoutWithGrid = function () {\n this.primaryColsListPanel.onColumnsChanged();\n };\n\n PrimaryColsPanel.prototype.onSelectAll = function () {\n this.primaryColsListPanel.doSetSelectedAll(true);\n };\n\n PrimaryColsPanel.prototype.onUnselectAll = function () {\n this.primaryColsListPanel.doSetSelectedAll(false);\n };\n\n PrimaryColsPanel.prototype.onGroupExpanded = function (event) {\n this.primaryColsHeaderPanel.setExpandState(event.state);\n };\n\n PrimaryColsPanel.prototype.onSelectionChange = function (event) {\n this.primaryColsHeaderPanel.setSelectionState(event.state);\n };\n\n PrimaryColsPanel.TEMPLATE = \"
\\n \\n \\n
\";\n\n __decorate$1E([RefSelector('primaryColsHeaderPanel')], PrimaryColsPanel.prototype, \"primaryColsHeaderPanel\", void 0);\n\n __decorate$1E([RefSelector('primaryColsListPanel')], PrimaryColsPanel.prototype, \"primaryColsListPanel\", void 0);\n\n __decorate$1E([PostConstruct], PrimaryColsPanel.prototype, \"postConstruct\", null);\n\n return PrimaryColsPanel;\n}(TabGuardComp);\n\nvar __extends$33 = undefined && undefined.__extends || function () {\n var _extendStatics25 = function extendStatics(d, b) {\n _extendStatics25 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics25(d, b);\n };\n\n return function (d, b) {\n _extendStatics25(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ColumnToolPanel =\n/** @class */\nfunction (_super) {\n __extends$33(ColumnToolPanel, _super);\n\n function ColumnToolPanel() {\n var _this = _super.call(this, ColumnToolPanel.TEMPLATE) || this;\n\n _this.initialised = false;\n _this.childDestroyFuncs = [];\n return _this;\n } // lazy initialise the panel\n\n\n ColumnToolPanel.prototype.setVisible = function (visible) {\n _super.prototype.setDisplayed.call(this, visible);\n\n if (visible && !this.initialised) {\n this.init(this.params);\n }\n };\n\n ColumnToolPanel.prototype.init = function (params) {\n var _this = this;\n\n var defaultParams = {\n suppressColumnMove: false,\n suppressColumnSelectAll: false,\n suppressColumnFilter: false,\n suppressColumnExpandAll: false,\n contractColumnSelection: false,\n suppressPivotMode: false,\n suppressRowGroups: false,\n suppressValues: false,\n suppressPivots: false,\n suppressSyncLayoutWithGrid: false,\n api: this.gridApi,\n columnApi: this.columnApi,\n context: this.gridOptionsWrapper.getContext()\n };\n\n _.mergeDeep(defaultParams, params);\n\n this.params = defaultParams;\n\n if (this.isRowGroupingModuleLoaded() && !this.params.suppressPivotMode) {\n // DO NOT CHANGE TO createManagedBean\n this.pivotModePanel = this.createBean(new PivotModePanel());\n this.childDestroyFuncs.push(function () {\n return _this.destroyBean(_this.pivotModePanel);\n });\n this.appendChild(this.pivotModePanel);\n } // DO NOT CHANGE TO createManagedBean\n\n\n this.primaryColsPanel = this.createBean(new PrimaryColsPanel());\n this.childDestroyFuncs.push(function () {\n return _this.destroyBean(_this.primaryColsPanel);\n });\n this.primaryColsPanel.init(true, this.params, \"toolPanelUi\");\n this.primaryColsPanel.addCssClass('ag-column-panel-column-select');\n this.appendChild(this.primaryColsPanel);\n\n if (this.isRowGroupingModuleLoaded()) {\n if (!this.params.suppressRowGroups) {\n // DO NOT CHANGE TO createManagedBean\n this.rowGroupDropZonePanel = this.createBean(new RowGroupDropZonePanel(false));\n this.childDestroyFuncs.push(function () {\n return _this.destroyBean(_this.rowGroupDropZonePanel);\n });\n this.appendChild(this.rowGroupDropZonePanel);\n }\n\n if (!this.params.suppressValues) {\n // DO NOT CHANGE TO createManagedBean\n this.valuesDropZonePanel = this.createBean(new ValuesDropZonePanel(false));\n this.childDestroyFuncs.push(function () {\n return _this.destroyBean(_this.valuesDropZonePanel);\n });\n this.appendChild(this.valuesDropZonePanel);\n }\n\n if (!this.params.suppressPivots) {\n // DO NOT CHANGE TO createManagedBean\n this.pivotDropZonePanel = this.createBean(new PivotDropZonePanel(false));\n this.childDestroyFuncs.push(function () {\n return _this.destroyBean(_this.pivotDropZonePanel);\n });\n this.appendChild(this.pivotDropZonePanel);\n }\n\n this.setLastVisible();\n var pivotModeListener_1 = this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, function () {\n _this.resetChildrenHeight();\n\n _this.setLastVisible();\n });\n this.childDestroyFuncs.push(function () {\n return pivotModeListener_1();\n });\n }\n\n this.initialised = true;\n };\n\n ColumnToolPanel.prototype.setPivotModeSectionVisible = function (visible) {\n var _this = this;\n\n if (!this.isRowGroupingModuleLoaded()) {\n return;\n }\n\n if (this.pivotModePanel) {\n this.pivotModePanel.setDisplayed(visible);\n } else if (visible) {\n this.pivotModePanel = this.createBean(new PivotModePanel()); // ensure pivot mode panel is positioned at the top of the columns tool panel\n\n this.getGui().insertBefore(this.pivotModePanel.getGui(), this.getGui().firstChild);\n this.childDestroyFuncs.push(function () {\n return _this.destroyBean(_this.pivotModePanel);\n });\n }\n\n this.setLastVisible();\n };\n\n ColumnToolPanel.prototype.setRowGroupsSectionVisible = function (visible) {\n if (!this.isRowGroupingModuleLoaded()) {\n return;\n }\n\n if (this.rowGroupDropZonePanel) {\n this.rowGroupDropZonePanel.setDisplayed(visible);\n } else if (visible) {\n this.rowGroupDropZonePanel = this.createManagedBean(new RowGroupDropZonePanel(false));\n this.appendChild(this.rowGroupDropZonePanel);\n }\n\n this.setLastVisible();\n };\n\n ColumnToolPanel.prototype.setValuesSectionVisible = function (visible) {\n if (!this.isRowGroupingModuleLoaded()) {\n return;\n }\n\n if (this.valuesDropZonePanel) {\n this.valuesDropZonePanel.setDisplayed(visible);\n } else if (visible) {\n this.valuesDropZonePanel = this.createManagedBean(new ValuesDropZonePanel(false));\n this.appendChild(this.valuesDropZonePanel);\n }\n\n this.setLastVisible();\n };\n\n ColumnToolPanel.prototype.setPivotSectionVisible = function (visible) {\n if (!this.isRowGroupingModuleLoaded()) {\n return;\n }\n\n if (this.pivotDropZonePanel) {\n this.pivotDropZonePanel.setDisplayed(visible);\n } else if (visible) {\n this.pivotDropZonePanel = this.createManagedBean(new PivotDropZonePanel(false));\n this.appendChild(this.pivotDropZonePanel);\n this.pivotDropZonePanel.setDisplayed(visible);\n }\n\n this.setLastVisible();\n };\n\n ColumnToolPanel.prototype.setResizers = function () {\n [this.primaryColsPanel, this.rowGroupDropZonePanel, this.valuesDropZonePanel, this.pivotDropZonePanel].forEach(function (panel) {\n if (!panel) {\n return;\n }\n\n var eGui = panel.getGui();\n panel.toggleResizable(!eGui.classList.contains('ag-last-column-drop') && !eGui.classList.contains('ag-hidden'));\n });\n };\n\n ColumnToolPanel.prototype.setLastVisible = function () {\n var eGui = this.getGui();\n var columnDrops = Array.prototype.slice.call(eGui.querySelectorAll('.ag-column-drop'));\n columnDrops.forEach(function (columnDrop) {\n return columnDrop.classList.remove('ag-last-column-drop');\n });\n var columnDropEls = eGui.querySelectorAll('.ag-column-drop:not(.ag-hidden)');\n\n var lastVisible = _.last(columnDropEls);\n\n if (lastVisible) {\n lastVisible.classList.add('ag-last-column-drop');\n }\n\n this.setResizers();\n };\n\n ColumnToolPanel.prototype.resetChildrenHeight = function () {\n var eGui = this.getGui();\n var children = eGui.children;\n\n for (var i = 0; i < children.length; i++) {\n var child = children[i];\n child.style.removeProperty('height');\n child.style.removeProperty('flex');\n }\n };\n\n ColumnToolPanel.prototype.isRowGroupingModuleLoaded = function () {\n return ModuleRegistry.assertRegistered(ModuleNames.RowGroupingModule, 'Row Grouping');\n };\n\n ColumnToolPanel.prototype.expandColumnGroups = function (groupIds) {\n this.primaryColsPanel.expandGroups(groupIds);\n };\n\n ColumnToolPanel.prototype.collapseColumnGroups = function (groupIds) {\n this.primaryColsPanel.collapseGroups(groupIds);\n };\n\n ColumnToolPanel.prototype.setColumnLayout = function (colDefs) {\n this.primaryColsPanel.setColumnLayout(colDefs);\n };\n\n ColumnToolPanel.prototype.syncLayoutWithGrid = function () {\n this.primaryColsPanel.syncLayoutWithGrid();\n };\n\n ColumnToolPanel.prototype.destroyChildren = function () {\n this.childDestroyFuncs.forEach(function (func) {\n return func();\n });\n this.childDestroyFuncs.length = 0;\n\n _.clearElement(this.getGui());\n };\n\n ColumnToolPanel.prototype.refresh = function () {\n this.destroyChildren();\n this.init(this.params);\n }; // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n // so this must be public.\n\n\n ColumnToolPanel.prototype.destroy = function () {\n this.destroyChildren();\n\n _super.prototype.destroy.call(this);\n };\n\n ColumnToolPanel.TEMPLATE = \"
\";\n\n __decorate$1D([Autowired(\"gridApi\")], ColumnToolPanel.prototype, \"gridApi\", void 0);\n\n __decorate$1D([Autowired(\"columnApi\")], ColumnToolPanel.prototype, \"columnApi\", void 0);\n\n return ColumnToolPanel;\n}(Component);\n\nvar __extends$32 = undefined && undefined.__extends || function () {\n var _extendStatics26 = function extendStatics(d, b) {\n _extendStatics26 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics26(d, b);\n };\n\n return function (d, b) {\n _extendStatics26(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar HorizontalResizeComp =\n/** @class */\nfunction (_super) {\n __extends$32(HorizontalResizeComp, _super);\n\n function HorizontalResizeComp() {\n var _this = _super.call(this,\n /* html */\n \"
\") || this;\n\n _this.minWidth = 100;\n _this.maxWidth = null;\n return _this;\n }\n\n HorizontalResizeComp.prototype.setElementToResize = function (elementToResize) {\n this.elementToResize = elementToResize;\n };\n\n HorizontalResizeComp.prototype.postConstruct = function () {\n var finishedWithResizeFunc = this.horizontalResizeService.addResizeBar({\n eResizeBar: this.getGui(),\n dragStartPixels: 1,\n onResizeStart: this.onResizeStart.bind(this),\n onResizing: this.onResizing.bind(this),\n onResizeEnd: this.onResizing.bind(this)\n });\n this.addDestroyFunc(finishedWithResizeFunc);\n this.setInverted(this.gridOptionsWrapper.isEnableRtl());\n };\n\n HorizontalResizeComp.prototype.onResizeStart = function () {\n this.startingWidth = this.elementToResize.offsetWidth;\n };\n\n HorizontalResizeComp.prototype.onResizing = function (delta) {\n var direction = this.inverted ? -1 : 1;\n var newWidth = Math.max(this.minWidth, Math.floor(this.startingWidth - delta * direction));\n\n if (this.maxWidth != null) {\n newWidth = Math.min(this.maxWidth, newWidth);\n }\n\n this.elementToResize.style.width = newWidth + \"px\";\n };\n\n HorizontalResizeComp.prototype.setInverted = function (inverted) {\n this.inverted = inverted;\n };\n\n HorizontalResizeComp.prototype.setMaxWidth = function (value) {\n this.maxWidth = value;\n };\n\n HorizontalResizeComp.prototype.setMinWidth = function (value) {\n if (value != null) {\n this.minWidth = value;\n } else {\n this.minWidth = 100;\n }\n };\n\n __decorate$1C([Autowired('horizontalResizeService')], HorizontalResizeComp.prototype, \"horizontalResizeService\", void 0);\n\n __decorate$1C([PostConstruct], HorizontalResizeComp.prototype, \"postConstruct\", null);\n\n return HorizontalResizeComp;\n}(Component);\n\nvar __extends$31 = undefined && undefined.__extends || function () {\n var _extendStatics27 = function extendStatics(d, b) {\n _extendStatics27 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics27(d, b);\n };\n\n return function (d, b) {\n _extendStatics27(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SideBarButtonComp =\n/** @class */\nfunction (_super) {\n __extends$31(SideBarButtonComp, _super);\n\n function SideBarButtonComp(toolPanelDef) {\n var _this = _super.call(this) || this;\n\n _this.toolPanelDef = toolPanelDef;\n return _this;\n }\n\n SideBarButtonComp.prototype.getToolPanelId = function () {\n return this.toolPanelDef.id;\n };\n\n SideBarButtonComp.prototype.postConstruct = function () {\n var template = this.createTemplate();\n this.setTemplate(template);\n this.eIconWrapper.insertAdjacentElement('afterbegin', _.createIconNoSpan(this.toolPanelDef.iconKey, this.gridOptionsWrapper));\n this.addManagedListener(this.eToggleButton, 'click', this.onButtonPressed.bind(this));\n };\n\n SideBarButtonComp.prototype.createTemplate = function () {\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var def = this.toolPanelDef;\n var label = translate(def.labelKey, def.labelDefault);\n var res =\n /* html */\n \"
\\n \\n
\";\n return res;\n };\n\n SideBarButtonComp.prototype.onButtonPressed = function () {\n this.dispatchEvent({\n type: SideBarButtonComp.EVENT_TOGGLE_BUTTON_CLICKED\n });\n };\n\n SideBarButtonComp.prototype.setSelected = function (selected) {\n this.addOrRemoveCssClass('ag-selected', selected);\n };\n\n SideBarButtonComp.EVENT_TOGGLE_BUTTON_CLICKED = 'toggleButtonClicked';\n\n __decorate$1B([RefSelector('eToggleButton')], SideBarButtonComp.prototype, \"eToggleButton\", void 0);\n\n __decorate$1B([RefSelector('eIconWrapper')], SideBarButtonComp.prototype, \"eIconWrapper\", void 0);\n\n __decorate$1B([PostConstruct], SideBarButtonComp.prototype, \"postConstruct\", null);\n\n return SideBarButtonComp;\n}(Component);\n\nvar __extends$30 = undefined && undefined.__extends || function () {\n var _extendStatics28 = function extendStatics(d, b) {\n _extendStatics28 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics28(d, b);\n };\n\n return function (d, b) {\n _extendStatics28(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SideBarButtonsComp =\n/** @class */\nfunction (_super) {\n __extends$30(SideBarButtonsComp, _super);\n\n function SideBarButtonsComp() {\n var _this = _super.call(this, SideBarButtonsComp.TEMPLATE) || this;\n\n _this.buttonComps = [];\n return _this;\n }\n\n SideBarButtonsComp.prototype.postConstruct = function () {\n this.addManagedListener(this.getFocusableElement(), 'keydown', this.handleKeyDown.bind(this));\n };\n\n SideBarButtonsComp.prototype.handleKeyDown = function (e) {\n if (e.key !== KeyCode.TAB || !e.shiftKey) {\n return;\n }\n\n var lastColumn = _.last(this.columnModel.getAllDisplayedColumns());\n\n if (this.focusService.focusGridView(lastColumn, true)) {\n e.preventDefault();\n }\n };\n\n SideBarButtonsComp.prototype.setToolPanelDefs = function (toolPanelDefs) {\n toolPanelDefs.forEach(this.addButtonComp.bind(this));\n };\n\n SideBarButtonsComp.prototype.setActiveButton = function (id) {\n this.buttonComps.forEach(function (comp) {\n comp.setSelected(id === comp.getToolPanelId());\n });\n };\n\n SideBarButtonsComp.prototype.addButtonComp = function (def) {\n var _this = this;\n\n var buttonComp = this.createBean(new SideBarButtonComp(def));\n this.buttonComps.push(buttonComp);\n this.appendChild(buttonComp);\n buttonComp.addEventListener(SideBarButtonComp.EVENT_TOGGLE_BUTTON_CLICKED, function () {\n _this.dispatchEvent({\n type: SideBarButtonsComp.EVENT_SIDE_BAR_BUTTON_CLICKED,\n toolPanelId: def.id\n });\n });\n };\n\n SideBarButtonsComp.prototype.clearButtons = function () {\n this.buttonComps = this.destroyBeans(this.buttonComps);\n\n _.clearElement(this.getGui());\n };\n\n SideBarButtonsComp.EVENT_SIDE_BAR_BUTTON_CLICKED = 'sideBarButtonClicked';\n SideBarButtonsComp.TEMPLATE = \"
\";\n\n __decorate$1A([Autowired('focusService')], SideBarButtonsComp.prototype, \"focusService\", void 0);\n\n __decorate$1A([Autowired('columnModel')], SideBarButtonsComp.prototype, \"columnModel\", void 0);\n\n __decorate$1A([PostConstruct], SideBarButtonsComp.prototype, \"postConstruct\", null);\n\n __decorate$1A([PreDestroy], SideBarButtonsComp.prototype, \"clearButtons\", null);\n\n return SideBarButtonsComp;\n}(Component);\n\nvar __extends$2$ = undefined && undefined.__extends || function () {\n var _extendStatics29 = function extendStatics(d, b) {\n _extendStatics29 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics29(d, b);\n };\n\n return function (d, b) {\n _extendStatics29(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ToolPanelWrapper =\n/** @class */\nfunction (_super) {\n __extends$2$(ToolPanelWrapper, _super);\n\n function ToolPanelWrapper() {\n return _super.call(this, ToolPanelWrapper.TEMPLATE) || this;\n }\n\n ToolPanelWrapper.prototype.setupResize = function () {\n var eGui = this.getGui();\n var resizeBar = this.resizeBar = this.createManagedBean(new HorizontalResizeComp());\n resizeBar.setElementToResize(eGui);\n this.appendChild(resizeBar);\n };\n\n ToolPanelWrapper.prototype.getToolPanelId = function () {\n return this.toolPanelId;\n };\n\n ToolPanelWrapper.prototype.setToolPanelDef = function (toolPanelDef) {\n var id = toolPanelDef.id,\n minWidth = toolPanelDef.minWidth,\n maxWidth = toolPanelDef.maxWidth,\n width = toolPanelDef.width;\n this.toolPanelId = id;\n this.width = width;\n var params = {};\n var compDetails = this.userComponentFactory.getToolPanelCompDetails(toolPanelDef, params);\n var componentPromise = compDetails.newAgStackInstance();\n\n if (componentPromise == null) {\n console.warn(\"AG Grid: error processing tool panel component \" + id + \". You need to specify either 'toolPanel' or 'toolPanelFramework'\");\n return;\n }\n\n componentPromise.then(this.setToolPanelComponent.bind(this));\n\n if (minWidth != null) {\n this.resizeBar.setMinWidth(minWidth);\n }\n\n if (maxWidth != null) {\n this.resizeBar.setMaxWidth(maxWidth);\n }\n };\n\n ToolPanelWrapper.prototype.setToolPanelComponent = function (compInstance) {\n var _this = this;\n\n this.toolPanelCompInstance = compInstance;\n this.appendChild(compInstance.getGui());\n this.addDestroyFunc(function () {\n _this.destroyBean(compInstance);\n });\n\n if (this.width) {\n this.getGui().style.width = this.width + \"px\";\n }\n };\n\n ToolPanelWrapper.prototype.getToolPanelInstance = function () {\n return this.toolPanelCompInstance;\n };\n\n ToolPanelWrapper.prototype.setResizerSizerSide = function (side) {\n var isRtl = this.gridOptionsWrapper.isEnableRtl();\n var isLeft = side === 'left';\n var inverted = isRtl ? isLeft : !isLeft;\n this.resizeBar.setInverted(inverted);\n };\n\n ToolPanelWrapper.prototype.refresh = function () {\n this.toolPanelCompInstance.refresh();\n };\n\n ToolPanelWrapper.TEMPLATE = \"
\";\n\n __decorate$1z([Autowired(\"userComponentFactory\")], ToolPanelWrapper.prototype, \"userComponentFactory\", void 0);\n\n __decorate$1z([PostConstruct], ToolPanelWrapper.prototype, \"setupResize\", null);\n\n return ToolPanelWrapper;\n}(Component);\n\nvar __extends$2_ = undefined && undefined.__extends || function () {\n var _extendStatics30 = function extendStatics(d, b) {\n _extendStatics30 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics30(d, b);\n };\n\n return function (d, b) {\n _extendStatics30(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SideBarComp =\n/** @class */\nfunction (_super) {\n __extends$2_(SideBarComp, _super);\n\n function SideBarComp() {\n var _this = _super.call(this, SideBarComp.TEMPLATE) || this;\n\n _this.toolPanelWrappers = [];\n return _this;\n }\n\n SideBarComp.prototype.postConstruct = function () {\n var _this = this;\n\n this.sideBarButtonsComp.addEventListener(SideBarButtonsComp.EVENT_SIDE_BAR_BUTTON_CLICKED, this.onToolPanelButtonClicked.bind(this));\n this.setSideBarDef();\n this.gridOptionsWrapper.addEventListener('sideBar', function () {\n _this.clearDownUi();\n\n _this.setSideBarDef();\n });\n this.gridApi.registerSideBarComp(this);\n this.createManagedBean(new ManagedFocusFeature(this.getFocusableElement(), {\n onTabKeyDown: this.onTabKeyDown.bind(this),\n handleKeyDown: this.handleKeyDown.bind(this)\n }));\n };\n\n SideBarComp.prototype.onTabKeyDown = function (e) {\n if (e.defaultPrevented) {\n return;\n }\n\n var _a = this,\n focusService = _a.focusService,\n sideBarButtonsComp = _a.sideBarButtonsComp;\n\n var eGui = this.getGui();\n var sideBarGui = sideBarButtonsComp.getGui();\n var eDocument = this.gridOptionsWrapper.getDocument();\n var activeElement = eDocument.activeElement;\n var openPanel = eGui.querySelector('.ag-tool-panel-wrapper:not(.ag-hidden)');\n\n if (!openPanel) {\n return;\n }\n\n if (sideBarGui.contains(activeElement)) {\n if (focusService.focusInto(openPanel, e.shiftKey)) {\n e.preventDefault();\n }\n } else {\n if (!focusService.isFocusUnderManagedComponent(openPanel) && e.shiftKey) {\n var firstFocusableEl = focusService.findFocusableElements(openPanel)[0];\n var eDocument_1 = this.gridOptionsWrapper.getDocument();\n\n if (eDocument_1.activeElement === firstFocusableEl) {\n var selectedButton = sideBarGui.querySelector('.ag-selected button');\n\n if (selectedButton) {\n e.preventDefault();\n selectedButton.focus();\n }\n }\n }\n }\n };\n\n SideBarComp.prototype.handleKeyDown = function (e) {\n var eDocument = this.gridOptionsWrapper.getDocument();\n\n if (!this.sideBarButtonsComp.getGui().contains(eDocument.activeElement)) {\n return;\n }\n\n var sideBarGui = this.sideBarButtonsComp.getGui();\n var buttons = Array.prototype.slice.call(sideBarGui.querySelectorAll('.ag-side-button'));\n var currentButton = eDocument.activeElement;\n var currentPos = buttons.findIndex(function (button) {\n return button.contains(currentButton);\n });\n var nextPos = null;\n\n switch (e.key) {\n case KeyCode.LEFT:\n case KeyCode.UP:\n nextPos = Math.max(0, currentPos - 1);\n break;\n\n case KeyCode.RIGHT:\n case KeyCode.DOWN:\n nextPos = Math.min(currentPos + 1, buttons.length - 1);\n break;\n }\n\n if (nextPos === null) {\n return;\n }\n\n var innerButton = buttons[nextPos].querySelector('button');\n\n if (innerButton) {\n innerButton.focus();\n e.preventDefault();\n }\n };\n\n SideBarComp.prototype.onToolPanelButtonClicked = function (event) {\n var id = event.toolPanelId;\n var openedItem = this.openedItem(); // if item was already open, we close it\n\n if (openedItem === id) {\n this.openToolPanel(undefined); // passing undefined closes\n } else {\n this.openToolPanel(id);\n }\n };\n\n SideBarComp.prototype.clearDownUi = function () {\n this.sideBarButtonsComp.clearButtons();\n this.destroyToolPanelWrappers();\n };\n\n SideBarComp.prototype.setSideBarDef = function () {\n // initially hide side bar\n this.setDisplayed(false);\n var sideBar = this.gridOptionsWrapper.getSideBar();\n var sideBarExists = !!sideBar && !!sideBar.toolPanels;\n\n if (!sideBarExists) {\n return;\n }\n\n var shouldDisplaySideBar = sideBarExists && !sideBar.hiddenByDefault;\n this.setDisplayed(shouldDisplaySideBar);\n var toolPanelDefs = sideBar.toolPanels;\n this.sideBarButtonsComp.setToolPanelDefs(toolPanelDefs);\n this.setupToolPanels(toolPanelDefs);\n this.setSideBarPosition(sideBar.position);\n\n if (!sideBar.hiddenByDefault) {\n this.openToolPanel(sideBar.defaultToolPanel);\n }\n };\n\n SideBarComp.prototype.setSideBarPosition = function (position) {\n if (!position) {\n position = 'right';\n }\n\n var isLeft = position === 'left';\n var resizerSide = isLeft ? 'right' : 'left';\n this.addOrRemoveCssClass('ag-side-bar-left', isLeft);\n this.addOrRemoveCssClass('ag-side-bar-right', !isLeft);\n this.toolPanelWrappers.forEach(function (wrapper) {\n wrapper.setResizerSizerSide(resizerSide);\n });\n return this;\n };\n\n SideBarComp.prototype.setupToolPanels = function (defs) {\n var _this = this;\n\n defs.forEach(function (def) {\n if (def.id == null) {\n console.warn(\"AG Grid: please review all your toolPanel components, it seems like at least one of them doesn't have an id\");\n return;\n } // helpers, in case user doesn't have the right module loaded\n\n\n if (def.toolPanel === 'agColumnsToolPanel') {\n var moduleMissing = !ModuleRegistry.assertRegistered(ModuleNames.ColumnToolPanelModule, 'Column Tool Panel');\n\n if (moduleMissing) {\n return;\n }\n }\n\n if (def.toolPanel === 'agFiltersToolPanel') {\n var moduleMissing = !ModuleRegistry.assertRegistered(ModuleNames.FiltersToolPanelModule, 'Filters Tool Panel');\n\n if (moduleMissing) {\n return;\n }\n }\n\n var wrapper = new ToolPanelWrapper();\n\n _this.getContext().createBean(wrapper);\n\n wrapper.setToolPanelDef(def);\n wrapper.setDisplayed(false);\n\n _this.getGui().appendChild(wrapper.getGui());\n\n _this.toolPanelWrappers.push(wrapper);\n });\n };\n\n SideBarComp.prototype.refresh = function () {\n this.toolPanelWrappers.forEach(function (wrapper) {\n return wrapper.refresh();\n });\n };\n\n SideBarComp.prototype.openToolPanel = function (key) {\n var currentlyOpenedKey = this.openedItem();\n\n if (currentlyOpenedKey === key) {\n return;\n }\n\n this.toolPanelWrappers.forEach(function (wrapper) {\n var show = key === wrapper.getToolPanelId();\n wrapper.setDisplayed(show);\n });\n var newlyOpenedKey = this.openedItem();\n var openToolPanelChanged = currentlyOpenedKey !== newlyOpenedKey;\n\n if (openToolPanelChanged) {\n this.sideBarButtonsComp.setActiveButton(key);\n this.raiseToolPanelVisibleEvent(key);\n }\n };\n\n SideBarComp.prototype.getToolPanelInstance = function (key) {\n var toolPanelWrapper = this.toolPanelWrappers.filter(function (toolPanel) {\n return toolPanel.getToolPanelId() === key;\n })[0];\n\n if (!toolPanelWrapper) {\n console.warn(\"AG Grid: unable to lookup Tool Panel as invalid key supplied: \" + key);\n return;\n }\n\n return toolPanelWrapper.getToolPanelInstance();\n };\n\n SideBarComp.prototype.raiseToolPanelVisibleEvent = function (key) {\n var event = {\n type: Events.EVENT_TOOL_PANEL_VISIBLE_CHANGED,\n source: key\n };\n this.eventService.dispatchEvent(event);\n };\n\n SideBarComp.prototype.close = function () {\n this.openToolPanel(undefined);\n };\n\n SideBarComp.prototype.isToolPanelShowing = function () {\n return !!this.openedItem();\n };\n\n SideBarComp.prototype.openedItem = function () {\n var activeToolPanel = null;\n this.toolPanelWrappers.forEach(function (wrapper) {\n if (wrapper.isDisplayed()) {\n activeToolPanel = wrapper.getToolPanelId();\n }\n });\n return activeToolPanel;\n };\n\n SideBarComp.prototype.destroyToolPanelWrappers = function () {\n var _this = this;\n\n this.toolPanelWrappers.forEach(function (wrapper) {\n _.removeFromParent(wrapper.getGui());\n\n _this.destroyBean(wrapper);\n });\n this.toolPanelWrappers.length = 0;\n };\n\n SideBarComp.prototype.destroy = function () {\n this.destroyToolPanelWrappers();\n\n _super.prototype.destroy.call(this);\n };\n\n SideBarComp.TEMPLATE = \"
\\n \\n
\";\n\n __decorate$1y([Autowired('gridApi')], SideBarComp.prototype, \"gridApi\", void 0);\n\n __decorate$1y([Autowired('focusService')], SideBarComp.prototype, \"focusService\", void 0);\n\n __decorate$1y([RefSelector('sideBarButtons')], SideBarComp.prototype, \"sideBarButtonsComp\", void 0);\n\n __decorate$1y([PostConstruct], SideBarComp.prototype, \"postConstruct\", null);\n\n return SideBarComp;\n}(Component);\n\nvar __extends$2Z = undefined && undefined.__extends || function () {\n var _extendStatics31 = function extendStatics(d, b) {\n _extendStatics31 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics31(d, b);\n };\n\n return function (d, b) {\n _extendStatics31(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ToolPanelColDefService =\n/** @class */\nfunction (_super) {\n __extends$2Z(ToolPanelColDefService, _super);\n\n function ToolPanelColDefService() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.isColGroupDef = function (colDef) {\n return colDef && typeof colDef.children !== 'undefined';\n };\n\n _this.getId = function (colDef) {\n return _this.isColGroupDef(colDef) ? colDef.groupId : colDef.colId;\n };\n\n return _this;\n }\n\n ToolPanelColDefService.prototype.createColumnTree = function (colDefs) {\n var _this = this;\n\n var invalidColIds = [];\n\n var createDummyColGroup = function createDummyColGroup(abstractColDef, depth) {\n if (_this.isColGroupDef(abstractColDef)) {\n // creating 'dummy' group which is not associated with grid column group\n var groupDef = abstractColDef;\n var groupId = typeof groupDef.groupId !== 'undefined' ? groupDef.groupId : groupDef.headerName;\n var group = new ProvidedColumnGroup(groupDef, groupId, false, depth);\n var children_1 = [];\n groupDef.children.forEach(function (def) {\n var child = createDummyColGroup(def, depth + 1); // check column exists in case invalid colDef is supplied for primary column\n\n if (child) {\n children_1.push(child);\n }\n });\n group.setChildren(children_1);\n return group;\n } else {\n var colDef = abstractColDef;\n var key = colDef.colId ? colDef.colId : colDef.field;\n\n var column = _this.columnModel.getPrimaryColumn(key);\n\n if (!column) {\n invalidColIds.push(colDef);\n }\n\n return column;\n }\n };\n\n var mappedResults = [];\n colDefs.forEach(function (colDef) {\n var result = createDummyColGroup(colDef, 0);\n\n if (result) {\n // only return correctly mapped colDef results\n mappedResults.push(result);\n }\n });\n\n if (invalidColIds.length > 0) {\n console.warn('AG Grid: unable to find grid columns for the supplied colDef(s):', invalidColIds);\n }\n\n return mappedResults;\n };\n\n ToolPanelColDefService.prototype.syncLayoutWithGrid = function (syncLayoutCallback) {\n // extract ordered list of leaf path trees (column group hierarchy for each individual leaf column)\n var leafPathTrees = this.getLeafPathTrees(); // merge leaf path tree taking split column groups into account\n\n var mergedColumnTrees = this.mergeLeafPathTrees(leafPathTrees); // sync layout with merged column trees\n\n syncLayoutCallback(mergedColumnTrees);\n };\n\n ToolPanelColDefService.prototype.getLeafPathTrees = function () {\n // leaf tree paths are obtained by walking up the tree starting at a column until we reach the top level group.\n var getLeafPathTree = function getLeafPathTree(node, childDef) {\n var leafPathTree; // build up tree in reverse order\n\n if (node instanceof ProvidedColumnGroup) {\n if (node.isPadding()) {\n // skip over padding groups\n leafPathTree = childDef;\n } else {\n var groupDef = Object.assign({}, node.getColGroupDef()); // ensure group contains groupId\n\n groupDef.groupId = node.getGroupId();\n groupDef.children = [childDef];\n leafPathTree = groupDef;\n }\n } else {\n var colDef = Object.assign({}, node.getColDef()); // ensure col contains colId\n\n colDef.colId = node.getColId();\n leafPathTree = colDef;\n } // walk tree\n\n\n var parent = node.getOriginalParent();\n\n if (parent) {\n // keep walking up the tree until we reach the root\n return getLeafPathTree(parent, leafPathTree);\n } else {\n // we have reached the root - exit with resulting leaf path tree\n return leafPathTree;\n }\n }; // obtain a sorted list of all grid columns\n\n\n var allGridColumns = this.columnModel.getAllGridColumns(); // only primary columns and non row group columns should appear in the tool panel\n\n var allPrimaryGridColumns = allGridColumns.filter(function (column) {\n var colDef = column.getColDef();\n return column.isPrimary() && !colDef.showRowGroup;\n }); // construct a leaf path tree for each column\n\n return allPrimaryGridColumns.map(function (col) {\n return getLeafPathTree(col, col.getColDef());\n });\n };\n\n ToolPanelColDefService.prototype.mergeLeafPathTrees = function (leafPathTrees) {\n var _this = this;\n\n var matchingRootGroupIds = function matchingRootGroupIds(pathA, pathB) {\n var bothPathsAreGroups = _this.isColGroupDef(pathA) && _this.isColGroupDef(pathB);\n\n return bothPathsAreGroups && _this.getId(pathA) === _this.getId(pathB);\n };\n\n var mergeTrees = function mergeTrees(treeA, treeB) {\n if (!_this.isColGroupDef(treeB)) {\n return treeA;\n }\n\n var mergeResult = treeA;\n var groupToMerge = treeB;\n\n if (groupToMerge.children && groupToMerge.groupId) {\n var added = _this.addChildrenToGroup(mergeResult, groupToMerge.groupId, groupToMerge.children[0]);\n\n if (added) {\n return mergeResult;\n }\n }\n\n groupToMerge.children.forEach(function (child) {\n return mergeTrees(mergeResult, child);\n });\n return mergeResult;\n }; // we can't just merge the leaf path trees as groups can be split apart - instead only merge if leaf\n // path groups with the same root group id are contiguous.\n\n\n var mergeColDefs = [];\n\n for (var i = 1; i <= leafPathTrees.length; i++) {\n var first = leafPathTrees[i - 1];\n var second = leafPathTrees[i];\n\n if (matchingRootGroupIds(first, second)) {\n leafPathTrees[i] = mergeTrees(first, second);\n } else {\n mergeColDefs.push(first);\n }\n }\n\n return mergeColDefs;\n };\n\n ToolPanelColDefService.prototype.addChildrenToGroup = function (tree, groupId, colDef) {\n var _this = this;\n\n var subGroupIsSplit = function subGroupIsSplit(currentSubGroup, currentSubGroupToAdd) {\n var existingChildIds = currentSubGroup.children.map(_this.getId);\n\n var childGroupAlreadyExists = _.includes(existingChildIds, _this.getId(currentSubGroupToAdd));\n\n var lastChild = _.last(currentSubGroup.children);\n\n var lastChildIsDifferent = lastChild && _this.getId(lastChild) !== _this.getId(currentSubGroupToAdd);\n\n return childGroupAlreadyExists && lastChildIsDifferent;\n };\n\n if (!this.isColGroupDef(tree)) {\n return true;\n }\n\n var currentGroup = tree;\n var groupToAdd = colDef;\n\n if (subGroupIsSplit(currentGroup, groupToAdd)) {\n currentGroup.children.push(groupToAdd);\n return true;\n }\n\n if (currentGroup.groupId === groupId) {\n // add children that don't already exist to group\n var existingChildIds = currentGroup.children.map(this.getId);\n\n var colDefAlreadyPresent = _.includes(existingChildIds, this.getId(groupToAdd));\n\n if (!colDefAlreadyPresent) {\n currentGroup.children.push(groupToAdd);\n return true;\n }\n } // recurse until correct group is found to add children\n\n\n currentGroup.children.forEach(function (subGroup) {\n return _this.addChildrenToGroup(subGroup, groupId, colDef);\n });\n return false;\n };\n\n __decorate$1x([Autowired('columnModel')], ToolPanelColDefService.prototype, \"columnModel\", void 0);\n\n ToolPanelColDefService = __decorate$1x([Bean('toolPanelColDefService')], ToolPanelColDefService);\n return ToolPanelColDefService;\n}(BeanStub);\n\nvar SideBarModule = {\n moduleName: ModuleNames.SideBarModule,\n beans: [ToolPanelColDefService],\n agStackComponents: [{\n componentName: 'AgHorizontalResize',\n componentClass: HorizontalResizeComp\n }, {\n componentName: 'AgSideBar',\n componentClass: SideBarComp\n }, {\n componentName: 'AgSideBarButtons',\n componentClass: SideBarButtonsComp\n }],\n dependantModules: [EnterpriseCoreModule]\n};\n\nvar __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ModelItemUtils =\n/** @class */\nfunction () {\n function ModelItemUtils() {}\n\n ModelItemUtils.prototype.selectAllChildren = function (colTree, selectAllChecked, eventType) {\n var cols = this.extractAllLeafColumns(colTree);\n this.setAllColumns(cols, selectAllChecked, eventType);\n };\n\n ModelItemUtils.prototype.setColumn = function (col, selectAllChecked, eventType) {\n this.setAllColumns([col], selectAllChecked, eventType);\n };\n\n ModelItemUtils.prototype.setAllColumns = function (cols, selectAllChecked, eventType) {\n if (this.columnModel.isPivotMode()) {\n this.setAllPivot(cols, selectAllChecked, eventType);\n } else {\n this.setAllVisible(cols, selectAllChecked, eventType);\n }\n };\n\n ModelItemUtils.prototype.extractAllLeafColumns = function (allItems) {\n var res = [];\n\n var recursiveFunc = function recursiveFunc(items) {\n items.forEach(function (item) {\n if (!item.isPassesFilter()) {\n return;\n }\n\n if (item.isGroup()) {\n recursiveFunc(item.getChildren());\n } else {\n res.push(item.getColumn());\n }\n });\n };\n\n recursiveFunc(allItems);\n return res;\n };\n\n ModelItemUtils.prototype.setAllVisible = function (columns, visible, eventType) {\n var colStateItems = [];\n columns.forEach(function (col) {\n if (col.getColDef().lockVisible) {\n return;\n }\n\n if (col.isVisible() != visible) {\n colStateItems.push({\n colId: col.getId(),\n hide: !visible\n });\n }\n });\n\n if (colStateItems.length > 0) {\n this.columnModel.applyColumnState({\n state: colStateItems\n }, eventType);\n }\n };\n\n ModelItemUtils.prototype.setAllPivot = function (columns, value, eventType) {\n if (this.gridOptionsWrapper.isFunctionsPassive()) {\n this.setAllPivotPassive(columns, value);\n } else {\n this.setAllPivotActive(columns, value, eventType);\n }\n };\n\n ModelItemUtils.prototype.setAllPivotPassive = function (columns, value) {\n var copyOfPivotColumns = this.columnModel.getPivotColumns().slice();\n var copyOfValueColumns = this.columnModel.getValueColumns().slice();\n var copyOfRowGroupColumns = this.columnModel.getRowGroupColumns().slice();\n var pivotChanged = false;\n var valueChanged = false;\n var rowGroupChanged = false;\n\n var turnOnAction = function turnOnAction(col) {\n // don't change any column that's already got a function active\n if (col.isAnyFunctionActive()) {\n return;\n }\n\n if (col.isAllowValue()) {\n copyOfValueColumns.push(col);\n valueChanged = true;\n } else if (col.isAllowRowGroup()) {\n copyOfRowGroupColumns.push(col);\n pivotChanged = true;\n } else if (col.isAllowPivot()) {\n copyOfPivotColumns.push(col);\n rowGroupChanged = true;\n }\n };\n\n var turnOffAction = function turnOffAction(col) {\n if (!col.isAnyFunctionActive()) {\n return;\n }\n\n if (copyOfPivotColumns.indexOf(col) >= 0) {\n _.removeFromArray(copyOfPivotColumns, col);\n\n pivotChanged = true;\n }\n\n if (copyOfValueColumns.indexOf(col) >= 0) {\n _.removeFromArray(copyOfValueColumns, col);\n\n valueChanged = true;\n }\n\n if (copyOfRowGroupColumns.indexOf(col) >= 0) {\n _.removeFromArray(copyOfRowGroupColumns, col);\n\n rowGroupChanged = true;\n }\n };\n\n var action = value ? turnOnAction : turnOffAction;\n columns.forEach(action);\n\n if (pivotChanged) {\n var event_1 = {\n type: Events.EVENT_COLUMN_PIVOT_CHANGE_REQUEST,\n columns: copyOfPivotColumns\n };\n this.eventService.dispatchEvent(event_1);\n }\n\n if (rowGroupChanged) {\n var event_2 = {\n type: Events.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST,\n columns: copyOfRowGroupColumns\n };\n this.eventService.dispatchEvent(event_2);\n }\n\n if (valueChanged) {\n var event_3 = {\n type: Events.EVENT_COLUMN_VALUE_CHANGE_REQUEST,\n columns: copyOfRowGroupColumns\n };\n this.eventService.dispatchEvent(event_3);\n }\n };\n\n ModelItemUtils.prototype.setAllPivotActive = function (columns, value, eventType) {\n var _this = this;\n\n var colStateItems = [];\n\n var turnOnAction = function turnOnAction(col) {\n // don't change any column that's already got a function active\n if (col.isAnyFunctionActive()) {\n return;\n }\n\n if (col.isAllowValue()) {\n var aggFunc = typeof col.getAggFunc() === 'string' ? col.getAggFunc() : _this.aggFuncService.getDefaultAggFunc(col);\n colStateItems.push({\n colId: col.getId(),\n aggFunc: aggFunc\n });\n } else if (col.isAllowRowGroup()) {\n colStateItems.push({\n colId: col.getId(),\n rowGroup: true\n });\n } else if (col.isAllowPivot()) {\n colStateItems.push({\n colId: col.getId(),\n pivot: true\n });\n }\n };\n\n var turnOffAction = function turnOffAction(col) {\n var isActive = col.isPivotActive() || col.isRowGroupActive() || col.isValueActive();\n\n if (isActive) {\n colStateItems.push({\n colId: col.getId(),\n pivot: false,\n rowGroup: false,\n aggFunc: null\n });\n }\n };\n\n var action = value ? turnOnAction : turnOffAction;\n columns.forEach(action);\n\n if (colStateItems.length > 0) {\n this.columnModel.applyColumnState({\n state: colStateItems\n }, eventType);\n }\n };\n\n __decorate$1w([Autowired('aggFuncService')], ModelItemUtils.prototype, \"aggFuncService\", void 0);\n\n __decorate$1w([Autowired('columnModel')], ModelItemUtils.prototype, \"columnModel\", void 0);\n\n __decorate$1w([Autowired('gridOptionsWrapper')], ModelItemUtils.prototype, \"gridOptionsWrapper\", void 0);\n\n __decorate$1w([Autowired('eventService')], ModelItemUtils.prototype, \"eventService\", void 0);\n\n ModelItemUtils = __decorate$1w([Bean('modelItemUtils')], ModelItemUtils);\n return ModelItemUtils;\n}();\n\nvar ColumnsToolPanelModule = {\n moduleName: ModuleNames.ColumnToolPanelModule,\n beans: [ModelItemUtils],\n agStackComponents: [{\n componentName: 'AgPrimaryColsHeader',\n componentClass: PrimaryColsHeaderPanel\n }, {\n componentName: 'AgPrimaryColsList',\n componentClass: PrimaryColsListPanel\n }, {\n componentName: 'AgPrimaryCols',\n componentClass: PrimaryColsPanel\n }],\n userComponents: [{\n componentName: 'agColumnsToolPanel',\n componentClass: ColumnToolPanel\n }],\n dependantModules: [EnterpriseCoreModule, RowGroupingModule, SideBarModule]\n};\nvar workbook = {\n getTemplate: function getTemplate() {\n return {\n name: \"Workbook\",\n properties: {\n prefixedAttributes: [{\n prefix: \"xmlns:\",\n map: {\n o: \"urn:schemas-microsoft-com:office:office\",\n x: \"urn:schemas-microsoft-com:office:excel\",\n ss: \"urn:schemas-microsoft-com:office:spreadsheet\",\n html: \"http://www.w3.org/TR/REC-html40\"\n }\n }],\n rawMap: {\n xmlns: \"urn:schemas-microsoft-com:office:spreadsheet\"\n }\n }\n };\n }\n};\nvar excelWorkbook = {\n getTemplate: function getTemplate() {\n return {\n name: \"ExcelWorkbook\",\n properties: {\n rawMap: {\n xmlns: \"urn:schemas-microsoft-com:office:excel\"\n }\n },\n children: [{\n name: \"WindowHeight\",\n textNode: \"8130\"\n }, {\n name: \"WindowWidth\",\n textNode: \"15135\"\n }, {\n name: \"WindowHeight\",\n textNode: \"8130\"\n }, {\n name: \"WindowTopX\",\n textNode: \"120\"\n }, {\n name: \"WindowTopY\",\n textNode: \"45\"\n }, {\n name: \"ProtectStructure\",\n textNode: \"False\"\n }, {\n name: \"ProtectWindow\",\n textNode: \"False\"\n }]\n };\n }\n};\nvar column = {\n getTemplate: function getTemplate(c) {\n var width = c.width;\n return {\n name: \"Column\",\n properties: {\n prefixedAttributes: [{\n prefix: \"ss:\",\n map: {\n Width: width\n }\n }]\n }\n };\n }\n};\nvar cell = {\n getTemplate: function getTemplate(c) {\n var _a, _b;\n\n var mergeAcross = c.mergeAcross,\n styleId = c.styleId,\n data = c.data;\n var properties = {};\n\n if (mergeAcross) {\n properties.MergeAcross = mergeAcross;\n }\n\n if (styleId) {\n properties.StyleID = styleId;\n }\n\n return {\n name: \"Cell\",\n properties: {\n prefixedAttributes: [{\n prefix: \"ss:\",\n map: properties\n }]\n },\n children: [{\n name: \"Data\",\n properties: {\n prefixedAttributes: [{\n prefix: \"ss:\",\n map: {\n Type: (_a = data) === null || _a === void 0 ? void 0 : _a.type\n }\n }]\n },\n textNode: (_b = data) === null || _b === void 0 ? void 0 : _b.value\n }]\n };\n }\n};\nvar row = {\n getTemplate: function getTemplate(r) {\n var cells = r.cells;\n return {\n name: \"Row\",\n children: cells.map(function (it) {\n return cell.getTemplate(it);\n })\n };\n }\n};\nvar worksheet = {\n getTemplate: function getTemplate(ws) {\n var table = ws.table,\n name = ws.name;\n var columns = table.columns,\n rows = table.rows;\n var c = columns.map(function (it) {\n return column.getTemplate(it);\n });\n var r = rows.map(function (it) {\n return row.getTemplate(it);\n });\n return {\n name: \"Worksheet\",\n children: [{\n name: \"Table\",\n children: c.concat(r)\n }],\n properties: {\n prefixedAttributes: [{\n prefix: \"ss:\",\n map: {\n Name: name\n }\n }]\n }\n };\n }\n};\nvar documentProperties = {\n getTemplate: function getTemplate() {\n return {\n name: \"DocumentProperties\",\n properties: {\n rawMap: {\n xmlns: \"urn:schemas-microsoft-com:office:office\"\n }\n },\n children: [{\n name: \"Version\",\n textNode: \"12.00\"\n }]\n };\n }\n};\nvar alignment = {\n getTemplate: function getTemplate(styleProperties) {\n var _a = styleProperties.alignment,\n vertical = _a.vertical,\n horizontal = _a.horizontal,\n indent = _a.indent,\n readingOrder = _a.readingOrder,\n rotate = _a.rotate,\n shrinkToFit = _a.shrinkToFit,\n verticalText = _a.verticalText,\n wrapText = _a.wrapText;\n return {\n name: 'Alignment',\n properties: {\n prefixedAttributes: [{\n prefix: \"ss:\",\n map: {\n Vertical: vertical,\n Horizontal: horizontal,\n Indent: indent,\n ReadingOrder: readingOrder,\n Rotate: rotate,\n ShrinkToFit: shrinkToFit,\n VerticalText: verticalText,\n WrapText: wrapText\n }\n }]\n }\n };\n }\n};\nvar borders = {\n getTemplate: function getTemplate(styleProperties) {\n var _a = styleProperties.borders,\n borderBottom = _a.borderBottom,\n borderLeft = _a.borderLeft,\n borderRight = _a.borderRight,\n borderTop = _a.borderTop;\n return {\n name: 'Borders',\n children: [borderBottom, borderLeft, borderRight, borderTop].map(function (it, index) {\n var current = index == 0 ? \"Bottom\" : index == 1 ? \"Left\" : index == 2 ? \"Right\" : \"Top\";\n return {\n name: 'Border',\n properties: {\n prefixedAttributes: [{\n prefix: 'ss:',\n map: {\n Position: current,\n LineStyle: it.lineStyle,\n Weight: it.weight,\n Color: it.color\n }\n }]\n }\n };\n })\n };\n }\n};\nvar font = {\n getTemplate: function getTemplate(styleProperties) {\n var _a = styleProperties.font,\n bold = _a.bold,\n fontName = _a.fontName,\n italic = _a.italic,\n color = _a.color,\n outline = _a.outline,\n shadow = _a.shadow,\n size = _a.size,\n strikeThrough = _a.strikeThrough,\n underline = _a.underline,\n verticalAlign = _a.verticalAlign,\n charSet = _a.charSet,\n family = _a.family;\n return {\n name: \"Font\",\n properties: {\n prefixedAttributes: [{\n prefix: \"ss:\",\n map: {\n Bold: bold,\n FontName: fontName,\n Italic: italic,\n Color: color,\n Outline: outline,\n Shadow: shadow,\n Size: size,\n StrikeThrough: strikeThrough,\n Underline: underline,\n VerticalAlign: verticalAlign\n }\n }, {\n prefix: \"x:\",\n map: {\n CharSet: charSet,\n Family: family\n }\n }]\n }\n };\n }\n};\nvar interior = {\n getTemplate: function getTemplate(styleProperties) {\n var _a = styleProperties.interior,\n color = _a.color,\n pattern = _a.pattern,\n patternColor = _a.patternColor;\n return {\n name: \"Interior\",\n properties: {\n prefixedAttributes: [{\n prefix: \"ss:\",\n map: {\n Color: color,\n Pattern: pattern,\n PatternColor: patternColor\n }\n }]\n }\n };\n }\n};\nvar protection = {\n getTemplate: function getTemplate(styleProperties) {\n return {\n name: \"Protection\",\n properties: {\n prefixedAttributes: [{\n prefix: \"ss:\",\n map: {\n Protected: styleProperties.protection.protected,\n HideFormula: styleProperties.protection.hideFormula\n }\n }]\n }\n };\n }\n};\nvar numberFormat = {\n getTemplate: function getTemplate(styleProperties) {\n var format = styleProperties.numberFormat.format;\n return {\n name: \"NumberFormat\",\n properties: {\n prefixedAttributes: [{\n prefix: \"ss:\",\n map: {\n Format: format\n }\n }]\n }\n };\n }\n};\nvar style = {\n getTemplate: function getTemplate(styleProperties) {\n var id = styleProperties.id,\n name = styleProperties.name;\n return {\n name: 'Style',\n properties: {\n prefixedAttributes: [{\n prefix: \"ss:\",\n map: {\n ID: id,\n Name: name ? name : id\n }\n }]\n }\n };\n }\n};\n/**\n * See https://msdn.microsoft.com/en-us/library/aa140066(v=office.10).aspx\n */\n\nvar ExcelXmlFactory =\n/** @class */\nfunction () {\n function ExcelXmlFactory() {}\n\n ExcelXmlFactory.createExcel = function (styles, currentWorksheet) {\n var header = this.excelXmlHeader();\n var docProps = documentProperties.getTemplate();\n var eWorkbook = excelWorkbook.getTemplate();\n var wb = this.workbook(docProps, eWorkbook, styles, currentWorksheet);\n return \"\" + header + XmlFactory.createXml(wb, function (boolean) {\n return boolean ? '1' : '0';\n });\n };\n\n ExcelXmlFactory.workbook = function (docProperties, eWorkbook, styles, currentWorksheet) {\n var children = [docProperties, eWorkbook, this.stylesXmlElement(styles)].concat(worksheet.getTemplate(currentWorksheet));\n return Object.assign({}, workbook.getTemplate(), {\n children: children\n });\n };\n\n ExcelXmlFactory.excelXmlHeader = function () {\n return \"\\n \\n \";\n };\n\n ExcelXmlFactory.stylesXmlElement = function (styles) {\n var _this = this;\n\n return {\n name: 'Styles',\n children: styles ? styles.map(function (it) {\n return _this.styleXmlElement(it);\n }) : []\n };\n };\n\n ExcelXmlFactory.styleXmlElement = function (styleProperties) {\n var children = _.compose(this.addProperty('alignment', styleProperties), this.addProperty('borders', styleProperties), this.addProperty('font', styleProperties), this.addProperty('interior', styleProperties), this.addProperty('protection', styleProperties), this.addProperty('numberFormat', styleProperties))([]);\n\n return Object.assign({}, style.getTemplate(styleProperties), {\n children: children\n });\n };\n\n ExcelXmlFactory.addProperty = function (property, styleProperties) {\n return function (children) {\n if (!styleProperties[property]) {\n return children;\n }\n\n var options = {\n alignment: alignment,\n borders: borders,\n font: font,\n interior: interior,\n numberFormat: numberFormat,\n protection: protection\n };\n return children.concat(options[property].getTemplate(styleProperties));\n };\n };\n\n ExcelXmlFactory.factoryMode = ExcelFactoryMode.SINGLE_SHEET;\n return ExcelXmlFactory;\n}();\n\nvar INCH_TO_EMU = 9525;\nvar numberFormatMap = {\n '0': 1,\n '0.00': 2,\n '#,##0': 3,\n '#,##0.00': 4,\n '0%': 9,\n '0.00%': 10,\n '0.00E+00': 11,\n '# ?/?': 12,\n '# ??/??': 13,\n 'mm-dd-yy': 14,\n 'd-mmm-yy': 15,\n 'd-mmm': 16,\n 'mmm-yy': 17,\n 'h:mm AM/PM': 18,\n 'h:mm:ss AM/PM': 19,\n 'h:mm': 20,\n 'h:mm:ss': 21,\n 'm/d/yy h:mm': 22,\n '#,##0 ;(#,##0)': 37,\n '#,##0 ;[Red](#,##0)': 38,\n '#,##0.00;(#,##0.00)': 39,\n '#,##0.00;[Red](#,##0.00)': 40,\n 'mm:ss': 45,\n '[h]:mm:ss': 46,\n 'mmss.0': 47,\n '##0.0E+0': 48,\n '@': 49\n};\n\nvar pixelsToPoint = function pixelsToPoint(pixels) {\n return Math.round(pixels * 72 / 96);\n};\n\nvar pointsToPixel = function pointsToPixel(points) {\n return Math.round(points * 96 / 72);\n};\n\nvar pixelsToEMU = function pixelsToEMU(value) {\n return Math.ceil(value * INCH_TO_EMU);\n};\n\nvar getFontFamilyId = function getFontFamilyId(name) {\n if (name === undefined) {\n return;\n }\n\n var families = ['Automatic', 'Roman', 'Swiss', 'Modern', 'Script', 'Decorative'];\n var pos = families.indexOf(name || 'Automatic');\n return Math.max(pos, 0);\n};\n\nvar getHeightFromProperty = function getHeightFromProperty(rowIndex, height) {\n if (!height) {\n return;\n }\n\n var finalHeight;\n\n if (typeof height === 'number') {\n finalHeight = height;\n } else {\n var heightFunc = height;\n finalHeight = heightFunc({\n rowIndex: rowIndex\n });\n }\n\n return pixelsToPoint(finalHeight);\n};\n\nvar setExcelImageTotalWidth = function setExcelImageTotalWidth(image, columnsToExport) {\n var _a = image.position,\n colSpan = _a.colSpan,\n column = _a.column;\n\n if (image.width) {\n if (colSpan) {\n var columnsInSpan = columnsToExport.slice(column - 1, column + colSpan - 1);\n var totalWidth = 0;\n\n for (var i = 0; i < columnsInSpan.length; i++) {\n var colWidth = columnsInSpan[i].getActualWidth();\n\n if (image.width < totalWidth + colWidth) {\n image.position.colSpan = i + 1;\n image.totalWidth = image.width;\n image.width = image.totalWidth - totalWidth;\n break;\n }\n\n totalWidth += colWidth;\n }\n } else {\n image.totalWidth = image.width;\n }\n }\n};\n\nvar setExcelImageTotalHeight = function setExcelImageTotalHeight(image, rowHeight) {\n var _a = image.position,\n rowSpan = _a.rowSpan,\n row = _a.row;\n\n if (image.height) {\n if (rowSpan) {\n var totalHeight = 0;\n var counter = 0;\n\n for (var i = row; i < row + rowSpan; i++) {\n var nextRowHeight = pointsToPixel(getHeightFromProperty(i, rowHeight) || 20);\n\n if (image.height < totalHeight + nextRowHeight) {\n image.position.rowSpan = counter + 1;\n image.totalHeight = image.height;\n image.height = image.totalHeight - totalHeight;\n break;\n }\n\n totalHeight += nextRowHeight;\n counter++;\n }\n } else {\n image.totalHeight = image.height;\n }\n }\n};\n\nvar createXmlPart = function createXmlPart(body) {\n var header = XmlFactory.createHeader({\n encoding: 'UTF-8',\n standalone: 'yes'\n });\n var xmlBody = XmlFactory.createXml(body);\n return \"\" + header + xmlBody;\n};\n\nvar getExcelColumnName = function getExcelColumnName(colIdx) {\n var startCode = 65;\n var tableWidth = 26;\n var fromCharCode = String.fromCharCode;\n var pos = Math.floor(colIdx / tableWidth);\n var tableIdx = colIdx % tableWidth;\n\n if (!pos || colIdx === tableWidth) {\n return fromCharCode(startCode + colIdx - 1);\n }\n\n if (!tableIdx) {\n return getExcelColumnName(pos - 1) + 'Z';\n }\n\n if (pos < tableWidth) {\n return fromCharCode(startCode + pos - 1) + fromCharCode(startCode + tableIdx - 1);\n }\n\n return getExcelColumnName(pos) + fromCharCode(startCode + tableIdx - 1);\n};\n\nvar __extends$2Y = undefined && undefined.__extends || function () {\n var _extendStatics32 = function extendStatics(d, b) {\n _extendStatics32 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics32(d, b);\n };\n\n return function (d, b) {\n _extendStatics32(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$A = undefined && undefined.__assign || function () {\n __assign$A = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$A.apply(this, arguments);\n};\n\nvar __read$U = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$s = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$U(arguments[i]));\n }\n\n return ar;\n};\n\nvar BaseExcelSerializingSession =\n/** @class */\nfunction (_super) {\n __extends$2Y(BaseExcelSerializingSession, _super);\n\n function BaseExcelSerializingSession(config) {\n var _this = _super.call(this, config) || this;\n\n _this.mixedStyles = {};\n _this.mixedStyleCounter = 0;\n _this.rows = [];\n _this.config = Object.assign({}, config);\n _this.stylesByIds = {};\n\n _this.config.baseExcelStyles.forEach(function (style) {\n _this.stylesByIds[style.id] = style;\n });\n\n _this.excelStyles = __spread$s(_this.config.baseExcelStyles);\n return _this;\n }\n\n BaseExcelSerializingSession.prototype.addCustomContent = function (customContent) {\n var _this = this;\n\n customContent.forEach(function (row) {\n var rowLen = _this.rows.length + 1;\n\n _this.rows.push({\n height: getHeightFromProperty(rowLen, _this.config.rowHeight),\n cells: (row.cells || []).map(function (cell, idx) {\n var _a;\n\n var image = _this.addImage(rowLen, _this.columnsToExport[idx], (_a = cell.data) === null || _a === void 0 ? void 0 : _a.value);\n\n var ret = __assign$A({}, cell);\n\n if (image) {\n ret.data = {};\n\n if (image.value != null) {\n ret.data.value = image.value;\n } else {\n ret.data.type = 'e';\n ret.data.value = null;\n }\n }\n\n return ret;\n }),\n outlineLevel: row.outlineLevel || undefined\n });\n });\n };\n\n BaseExcelSerializingSession.prototype.onNewHeaderGroupingRow = function () {\n var _this = this;\n\n var currentCells = [];\n this.rows.push({\n cells: currentCells,\n height: getHeightFromProperty(this.rows.length + 1, this.config.headerRowHeight)\n });\n return {\n onColumn: function onColumn(header, index, span, collapsibleRanges) {\n var styleIds = _this.config.styleLinker(RowType.HEADER_GROUPING, 1, \"grouping-\" + header, undefined, undefined);\n\n currentCells.push(__assign$A(__assign$A({}, _this.createMergedCell(_this.getStyleId(styleIds), _this.getDataTypeForValue('string'), header, span)), {\n collapsibleRanges: collapsibleRanges\n }));\n }\n };\n };\n\n BaseExcelSerializingSession.prototype.onNewHeaderRow = function () {\n return this.onNewRow(this.onNewHeaderColumn, this.config.headerRowHeight);\n };\n\n BaseExcelSerializingSession.prototype.onNewBodyRow = function () {\n return this.onNewRow(this.onNewBodyColumn, this.config.rowHeight);\n };\n\n BaseExcelSerializingSession.prototype.prepare = function (columnsToExport) {\n var _this = this;\n\n _super.prototype.prepare.call(this, columnsToExport);\n\n this.columnsToExport = __spread$s(columnsToExport);\n this.cols = columnsToExport.map(function (col, i) {\n return _this.convertColumnToExcel(col, i);\n });\n };\n\n BaseExcelSerializingSession.prototype.parse = function () {\n // adding custom content might have made some rows wider than the grid, so add new columns\n var longestRow = this.rows.reduce(function (a, b) {\n return Math.max(a, b.cells.length);\n }, 0);\n\n while (this.cols.length < longestRow) {\n this.cols.push(this.convertColumnToExcel(null, this.cols.length + 1));\n }\n\n var data = {\n name: this.config.sheetName,\n table: {\n columns: this.cols,\n rows: this.rows\n }\n };\n return this.createExcel(data);\n };\n\n BaseExcelSerializingSession.prototype.isFormula = function (value) {\n if (value == null) {\n return false;\n }\n\n return this.config.autoConvertFormulas && value.toString().startsWith('=');\n };\n\n BaseExcelSerializingSession.prototype.getStyleById = function (styleId) {\n if (styleId == null) {\n return null;\n }\n\n return this.stylesByIds[styleId] || null;\n };\n\n BaseExcelSerializingSession.prototype.convertColumnToExcel = function (column, index) {\n var columnWidth = this.config.columnWidth;\n\n if (columnWidth) {\n if (typeof columnWidth === 'number') {\n return {\n width: columnWidth\n };\n }\n\n return {\n width: columnWidth({\n column: column,\n index: index\n })\n };\n }\n\n if (column) {\n var smallestUsefulWidth = 75;\n return {\n width: Math.max(column.getActualWidth(), smallestUsefulWidth)\n };\n }\n\n return {};\n };\n\n BaseExcelSerializingSession.prototype.onNewHeaderColumn = function (rowIndex, currentCells) {\n var _this = this;\n\n return function (column, index) {\n var nameForCol = _this.extractHeaderValue(column);\n\n var styleIds = _this.config.styleLinker(RowType.HEADER, rowIndex, nameForCol, column, undefined);\n\n currentCells.push(_this.createCell(_this.getStyleId(styleIds), _this.getDataTypeForValue('string'), nameForCol));\n };\n };\n\n BaseExcelSerializingSession.prototype.onNewRow = function (onNewColumnAccumulator, height) {\n var currentCells = [];\n this.rows.push({\n cells: currentCells,\n height: getHeightFromProperty(this.rows.length + 1, height)\n });\n return {\n onColumn: onNewColumnAccumulator.bind(this, this.rows.length, currentCells)()\n };\n };\n\n BaseExcelSerializingSession.prototype.onNewBodyColumn = function (rowIndex, currentCells) {\n var _this = this;\n\n var skipCols = 0;\n return function (column, index, node) {\n if (skipCols > 0) {\n skipCols -= 1;\n return;\n }\n\n if (!_this.config.gridOptionsWrapper.isGroupHideOpenParents() && node.level) {\n _.last(_this.rows).outlineLevel = node.level;\n }\n\n var valueForCell = _this.extractRowCellValue(column, index, rowIndex, Constants.EXPORT_TYPE_EXCEL, node);\n\n var styleIds = _this.config.styleLinker(RowType.BODY, rowIndex, valueForCell, column, node);\n\n var excelStyleId = _this.getStyleId(styleIds);\n\n var colSpan = column.getColSpan(node);\n\n var addedImage = _this.addImage(rowIndex, column, valueForCell);\n\n if (addedImage) {\n currentCells.push(_this.createCell(excelStyleId, _this.getDataTypeForValue(addedImage.value), addedImage.value == null ? '' : addedImage.value));\n } else if (colSpan > 1) {\n skipCols = colSpan - 1;\n currentCells.push(_this.createMergedCell(excelStyleId, _this.getDataTypeForValue(valueForCell), valueForCell, colSpan - 1));\n } else {\n currentCells.push(_this.createCell(excelStyleId, _this.getDataTypeForValue(valueForCell), valueForCell));\n }\n };\n };\n\n BaseExcelSerializingSession.prototype.getStyleId = function (styleIds) {\n if (!styleIds || !styleIds.length) {\n return null;\n }\n\n if (styleIds.length === 1) {\n return styleIds[0];\n }\n\n var key = styleIds.join(\"-\");\n\n if (!this.mixedStyles[key]) {\n this.addNewMixedStyle(styleIds);\n }\n\n return this.mixedStyles[key].excelID;\n };\n\n BaseExcelSerializingSession.prototype.addNewMixedStyle = function (styleIds) {\n var _this = this;\n\n this.mixedStyleCounter += 1;\n var excelId = \"mixedStyle\" + this.mixedStyleCounter;\n var resultantStyle = {};\n styleIds.forEach(function (styleId) {\n _this.excelStyles.forEach(function (excelStyle) {\n if (excelStyle.id === styleId) {\n _.mergeDeep(resultantStyle, _.deepCloneObject(excelStyle));\n }\n });\n });\n resultantStyle.id = excelId;\n resultantStyle.name = excelId;\n var key = styleIds.join(\"-\");\n this.mixedStyles[key] = {\n excelID: excelId,\n key: key,\n result: resultantStyle\n };\n this.excelStyles.push(resultantStyle);\n this.stylesByIds[excelId] = resultantStyle;\n };\n\n return BaseExcelSerializingSession;\n}(BaseGridSerializingSession);\n\nvar __extends$2X = undefined && undefined.__extends || function () {\n var _extendStatics33 = function extendStatics(d, b) {\n _extendStatics33 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics33(d, b);\n };\n\n return function (d, b) {\n _extendStatics33(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar ExcelXmlSerializingSession =\n/** @class */\nfunction (_super) {\n __extends$2X(ExcelXmlSerializingSession, _super);\n\n function ExcelXmlSerializingSession() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n ExcelXmlSerializingSession.prototype.createExcel = function (data) {\n return ExcelXmlFactory.createExcel(this.excelStyles, data);\n };\n\n ExcelXmlSerializingSession.prototype.getDataTypeForValue = function (valueForCell) {\n return _.isNumeric(valueForCell) ? 'Number' : 'String';\n };\n\n ExcelXmlSerializingSession.prototype.getType = function (type, style, value) {\n if (this.isFormula(value)) {\n return 'Formula';\n }\n\n if (style && style.dataType) {\n switch (style.dataType.toLocaleLowerCase()) {\n case 'string':\n return 'Formula';\n\n case 'number':\n return 'Number';\n\n case 'datetime':\n return 'DateTime';\n\n case 'error':\n return 'Error';\n\n case 'boolean':\n return 'Boolean';\n\n default:\n console.warn(\"AG Grid: Unrecognized data type for excel export [\" + style.id + \".dataType=\" + style.dataType + \"]\");\n }\n }\n\n return type;\n };\n\n ExcelXmlSerializingSession.prototype.addImage = function () {\n return;\n };\n\n ExcelXmlSerializingSession.prototype.createCell = function (styleId, type, value) {\n var actualStyle = this.getStyleById(styleId);\n var typeTransformed = this.getType(type, actualStyle, value) || type;\n return {\n styleId: !!actualStyle ? styleId : undefined,\n data: {\n type: typeTransformed,\n value: this.getValueTransformed(typeTransformed, value)\n }\n };\n };\n\n ExcelXmlSerializingSession.prototype.getValueTransformed = function (typeTransformed, value) {\n var _this = this;\n\n var wrapText = function wrapText(val) {\n if (_this.config.suppressTextAsCDATA) {\n return _.escapeString(val);\n }\n\n var cdataStart = '';\n var cdataEndRegex = new RegExp(cdataEnd, \"g\");\n return cdataStart // CDATA sections are closed by the character sequence ']]>' and there is no\n // way of escaping this, so if the text contains the offending sequence, emit\n // multiple CDATA sections and split the characters between them.\n + String(val).replace(cdataEndRegex, ']]' + cdataEnd + cdataStart + '>') + cdataEnd;\n };\n\n var convertBoolean = function convertBoolean(val) {\n if (!val || val === '0' || val === 'false') {\n return '0';\n }\n\n return '1';\n };\n\n switch (typeTransformed) {\n case 'String':\n return wrapText(value);\n\n case 'Number':\n return Number(value).valueOf() + '';\n\n case 'Boolean':\n return convertBoolean(value);\n\n default:\n return value;\n }\n };\n\n ExcelXmlSerializingSession.prototype.createMergedCell = function (styleId, type, value, numOfCells) {\n return {\n styleId: !!this.getStyleById(styleId) ? styleId : undefined,\n data: {\n type: type,\n value: value\n },\n mergeAcross: numOfCells\n };\n };\n\n return ExcelXmlSerializingSession;\n}(BaseExcelSerializingSession);\n\nvar coreFactory = {\n getTemplate: function getTemplate(author) {\n var dt = new Date();\n var jsonDate = dt.toJSON();\n return {\n name: 'cp:coreProperties',\n properties: {\n prefixedAttributes: [{\n prefix: \"xmlns:\",\n map: {\n cp: \"http://schemas.openxmlformats.org/package/2006/metadata/core-properties\",\n dc: 'http://purl.org/dc/elements/1.1/',\n dcterms: 'http://purl.org/dc/terms/',\n dcmitype: 'http://purl.org/dc/dcmitype/',\n xsi: 'http://www.w3.org/2001/XMLSchema-instance'\n }\n }]\n },\n children: [{\n name: 'dc:creator',\n textNode: author\n }, {\n name: 'dc:title',\n textNode: 'Workbook'\n }, {\n name: 'dcterms:created',\n properties: {\n rawMap: {\n 'xsi:type': 'dcterms:W3CDTF'\n }\n },\n textNode: jsonDate\n }, {\n name: 'dcterms:modified',\n properties: {\n rawMap: {\n 'xsi:type': 'dcterms:W3CDTF'\n }\n },\n textNode: jsonDate\n }]\n };\n }\n};\nvar contentTypeFactory = {\n getTemplate: function getTemplate(config) {\n var name = config.name,\n ContentType = config.ContentType,\n Extension = config.Extension,\n PartName = config.PartName;\n return {\n name: name,\n properties: {\n rawMap: {\n Extension: Extension,\n PartName: PartName,\n ContentType: ContentType\n }\n }\n };\n }\n};\n\nvar __read$T = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$r = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$T(arguments[i]));\n }\n\n return ar;\n};\n\nvar contentTypesFactory = {\n getTemplate: function getTemplate(sheetLen) {\n var worksheets = new Array(sheetLen).fill(undefined).map(function (v, i) {\n return {\n name: 'Override',\n ContentType: 'application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml',\n PartName: \"/xl/worksheets/sheet\" + (i + 1) + \".xml\"\n };\n });\n var sheetsWithImages = ExcelXlsxFactory.worksheetImages.size;\n var imageTypesObject = {};\n ExcelXlsxFactory.workbookImageIds.forEach(function (v) {\n imageTypesObject[v.type] = true;\n });\n var imageDocs = new Array(sheetsWithImages).fill(undefined).map(function (v, i) {\n return {\n name: 'Override',\n ContentType: 'application/vnd.openxmlformats-officedocument.drawing+xml',\n PartName: \"/xl/drawings/drawing\" + (i + 1) + \".xml\"\n };\n });\n var imageTypes = Object.keys(imageTypesObject).map(function (ext) {\n return {\n name: 'Default',\n ContentType: \"image/\" + ext,\n Extension: ext\n };\n });\n\n var children = __spread$r(imageTypes, [{\n name: 'Default',\n Extension: 'rels',\n ContentType: 'application/vnd.openxmlformats-package.relationships+xml'\n }, {\n name: 'Default',\n ContentType: 'application/xml',\n Extension: 'xml'\n }, {\n name: 'Override',\n ContentType: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml',\n PartName: \"/xl/workbook.xml\"\n }], worksheets, [{\n name: 'Override',\n ContentType: 'application/vnd.openxmlformats-officedocument.theme+xml',\n PartName: '/xl/theme/theme1.xml'\n }, {\n name: 'Override',\n ContentType: 'application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml',\n PartName: '/xl/styles.xml'\n }, {\n name: 'Override',\n ContentType: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml',\n PartName: '/xl/sharedStrings.xml'\n }], imageDocs, [{\n name: 'Override',\n ContentType: 'application/vnd.openxmlformats-package.core-properties+xml',\n PartName: '/docProps/core.xml'\n }]).map(function (contentType) {\n return contentTypeFactory.getTemplate(contentType);\n });\n\n return {\n name: \"Types\",\n properties: {\n rawMap: {\n xmlns: \"http://schemas.openxmlformats.org/package/2006/content-types\"\n }\n },\n children: children\n };\n }\n};\n\nvar getAnchor = function getAnchor(name, imageAnchor) {\n return {\n name: \"xdr:\" + name,\n children: [{\n name: 'xdr:col',\n textNode: imageAnchor.col.toString()\n }, {\n name: 'xdr:colOff',\n textNode: imageAnchor.offsetX.toString()\n }, {\n name: 'xdr:row',\n textNode: imageAnchor.row.toString()\n }, {\n name: 'xdr:rowOff',\n textNode: imageAnchor.offsetY.toString()\n }]\n };\n};\n\nvar getExt = function getExt(image) {\n var children = [{\n name: 'a:ext',\n properties: {\n rawMap: {\n uri: '{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}'\n }\n },\n children: [{\n name: 'a16:creationId',\n properties: {\n rawMap: {\n 'id': '{822E6D20-D7BC-2841-A643-D49A6EF008A2}',\n 'xmlns:a16': 'http://schemas.microsoft.com/office/drawing/2014/main'\n }\n }\n }]\n }];\n var recolor = image.recolor && image.recolor.toLowerCase();\n\n switch (recolor) {\n case 'grayscale':\n case 'sepia':\n case 'washout':\n children.push({\n name: 'a:ext',\n properties: {\n rawMap: {\n uri: '{C183D7F6-B498-43B3-948B-1728B52AA6E4}'\n }\n },\n children: [{\n name: 'adec:decorative',\n properties: {\n rawMap: {\n 'val': '0',\n 'xmlns:adec': 'http://schemas.microsoft.com/office/drawing/2017/decorative'\n }\n }\n }]\n });\n }\n\n return {\n name: 'a:extLst',\n children: children\n };\n};\n\nvar getNvPicPr = function getNvPicPr(image, index) {\n return {\n name: 'xdr:nvPicPr',\n children: [{\n name: 'xdr:cNvPr',\n properties: {\n rawMap: {\n id: index,\n name: image.id,\n descr: image.altText != null ? image.altText : undefined\n }\n },\n children: [getExt(image)]\n }, {\n name: 'xdr:cNvPicPr',\n properties: {\n rawMap: {\n preferRelativeResize: '0'\n }\n },\n children: [{\n name: 'a:picLocks'\n }]\n }]\n };\n};\n\nvar getColorDetails = function getColorDetails(color) {\n if (!color.saturation && !color.tint) {\n return;\n }\n\n var ret = [];\n\n if (color.saturation) {\n ret.push({\n name: 'a:satMod',\n properties: {\n rawMap: {\n val: color.saturation * 1000\n }\n }\n });\n }\n\n if (color.tint) {\n ret.push({\n name: 'a:tint',\n properties: {\n rawMap: {\n val: color.tint * 1000\n }\n }\n });\n }\n\n return ret;\n};\n\nvar getDuoTone = function getDuoTone(primaryColor, secondaryColor) {\n return {\n name: 'a:duotone',\n children: [{\n name: 'a:prstClr',\n properties: {\n rawMap: {\n val: primaryColor.color\n }\n },\n children: getColorDetails(primaryColor)\n }, {\n name: 'a:srgbClr',\n properties: {\n rawMap: {\n val: secondaryColor.color\n }\n },\n children: getColorDetails(secondaryColor)\n }]\n };\n};\n\nvar getBlipFill = function getBlipFill(image, index) {\n var blipChildren;\n\n if (image.transparency) {\n var transparency = Math.min(Math.max(image.transparency, 0), 100);\n blipChildren = [{\n name: 'a:alphaModFix',\n properties: {\n rawMap: {\n amt: 100000 - Math.round(transparency * 1000)\n }\n }\n }];\n }\n\n if (image.recolor) {\n if (!blipChildren) {\n blipChildren = [];\n }\n\n switch (image.recolor.toLocaleLowerCase()) {\n case 'grayscale':\n blipChildren.push({\n name: 'a:grayscl'\n });\n break;\n\n case 'sepia':\n blipChildren.push(getDuoTone({\n color: 'black'\n }, {\n color: 'D9C3A5',\n tint: 50,\n saturation: 180\n }));\n break;\n\n case 'washout':\n blipChildren.push({\n name: 'a:lum',\n properties: {\n rawMap: {\n bright: '70000',\n contrast: '-70000'\n }\n }\n });\n break;\n }\n }\n\n return {\n name: 'xdr:blipFill',\n children: [{\n name: 'a:blip',\n properties: {\n rawMap: {\n 'cstate': 'print',\n 'r:embed': \"rId\" + index,\n 'xmlns:r': 'http://schemas.openxmlformats.org/officeDocument/2006/relationships'\n }\n },\n children: blipChildren\n }, {\n name: 'a:stretch',\n children: [{\n name: 'a:fillRect'\n }]\n }]\n };\n};\n\nvar getSpPr = function getSpPr(image, imageBoxSize) {\n var xfrm = {\n name: 'a:xfrm',\n children: [{\n name: 'a:off',\n properties: {\n rawMap: {\n x: 0,\n y: 0\n }\n }\n }, {\n name: 'a:ext',\n properties: {\n rawMap: {\n cx: imageBoxSize.width,\n cy: imageBoxSize.height\n }\n }\n }]\n };\n\n if (image.rotation) {\n var rotation = image.rotation;\n xfrm.properties = {\n rawMap: {\n rot: Math.min(Math.max(rotation, 0), 360) * 60000\n }\n };\n }\n\n var prstGeom = {\n name: 'a:prstGeom',\n properties: {\n rawMap: {\n prst: 'rect'\n }\n },\n children: [{\n name: 'a:avLst'\n }]\n };\n var ret = {\n name: 'xdr:spPr',\n children: [xfrm, prstGeom]\n };\n return ret;\n};\n\nvar getImageBoxSize = function getImageBoxSize(image) {\n image.fitCell = !!image.fitCell || !image.width || !image.height;\n var _a = image.position,\n position = _a === void 0 ? {} : _a,\n fitCell = image.fitCell,\n _b = image.width,\n width = _b === void 0 ? 0 : _b,\n _c = image.height,\n height = _c === void 0 ? 0 : _c,\n totalHeight = image.totalHeight,\n totalWidth = image.totalWidth;\n var _d = position.offsetX,\n offsetX = _d === void 0 ? 0 : _d,\n _e = position.offsetY,\n offsetY = _e === void 0 ? 0 : _e,\n _f = position.row,\n row = _f === void 0 ? 1 : _f,\n _g = position.rowSpan,\n rowSpan = _g === void 0 ? 1 : _g,\n _h = position.column,\n column = _h === void 0 ? 1 : _h,\n _j = position.colSpan,\n colSpan = _j === void 0 ? 1 : _j;\n return {\n from: {\n row: row - 1,\n col: column - 1,\n offsetX: pixelsToEMU(offsetX),\n offsetY: pixelsToEMU(offsetY)\n },\n to: {\n row: row - 1 + (fitCell ? 1 : rowSpan - 1),\n col: column - 1 + (fitCell ? 1 : colSpan - 1),\n offsetX: pixelsToEMU(width + offsetX),\n offsetY: pixelsToEMU(height + offsetY)\n },\n height: pixelsToEMU(totalHeight || height),\n width: pixelsToEMU(totalWidth || width)\n };\n};\n\nvar getPicture = function getPicture(image, currentIndex, worksheetImageIndex, imageBoxSize) {\n return {\n name: 'xdr:pic',\n children: [getNvPicPr(image, currentIndex + 1), getBlipFill(image, worksheetImageIndex + 1), getSpPr(image, imageBoxSize)]\n };\n};\n\nvar drawingFactory = {\n getTemplate: function getTemplate(config) {\n var sheetIndex = config.sheetIndex;\n var sheetImages = ExcelXlsxFactory.worksheetImages.get(sheetIndex);\n var sheetImageIds = ExcelXlsxFactory.worksheetImageIds.get(sheetIndex);\n var children = sheetImages.map(function (image, idx) {\n var boxSize = getImageBoxSize(image);\n return {\n name: 'xdr:twoCellAnchor',\n properties: {\n rawMap: {\n editAs: 'absolute'\n }\n },\n children: [getAnchor('from', boxSize.from), getAnchor('to', boxSize.to), getPicture(image, idx, sheetImageIds.get(image.id).index, boxSize), {\n name: 'xdr:clientData'\n }]\n };\n });\n return {\n name: 'xdr:wsDr',\n properties: {\n rawMap: {\n 'xmlns:a': 'http://schemas.openxmlformats.org/drawingml/2006/main',\n 'xmlns:xdr': 'http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing'\n }\n },\n children: children\n };\n }\n};\n\nvar __read$S = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar getColorChildren = function getColorChildren(props) {\n var _a = __read$S(props, 4),\n type = _a[0],\n innerType = _a[1],\n val = _a[2],\n lastClr = _a[3];\n\n return {\n name: \"a:\" + type,\n children: [{\n name: \"a:\" + innerType,\n properties: {\n rawMap: {\n val: val,\n lastClr: lastClr\n }\n }\n }]\n };\n};\n\nvar colorScheme = {\n getTemplate: function getTemplate() {\n return {\n name: \"a:clrScheme\",\n properties: {\n rawMap: {\n name: \"Office\"\n }\n },\n children: [getColorChildren(['dk1', 'sysClr', 'windowText', '000000']), getColorChildren(['lt1', 'sysClr', 'window', 'FFFFFF']), getColorChildren(['dk2', 'srgbClr', '44546A']), getColorChildren(['lt2', 'srgbClr', 'E7E6E6']), getColorChildren(['accent1', 'srgbClr', '4472C4']), getColorChildren(['accent2', 'srgbClr', 'ED7D31']), getColorChildren(['accent3', 'srgbClr', 'A5A5A5']), getColorChildren(['accent4', 'srgbClr', 'FFC000']), getColorChildren(['accent5', 'srgbClr', '5B9BD5']), getColorChildren(['accent6', 'srgbClr', '70AD47']), getColorChildren(['hlink', 'srgbClr', '0563C1']), getColorChildren(['folHlink', 'srgbClr', '954F72'])]\n };\n }\n};\n\nvar __read$R = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar getFont$3 = function getFont$3(props) {\n var _a = __read$R(props, 4),\n type = _a[0],\n typeface = _a[1],\n script = _a[2],\n panose = _a[3];\n\n return {\n name: \"a:\" + type,\n properties: {\n rawMap: {\n script: script,\n typeface: typeface,\n panose: panose\n }\n }\n };\n};\n\nvar fontScheme = {\n getTemplate: function getTemplate() {\n var utf8_encode = _.utf8_encode;\n return {\n name: \"a:fontScheme\",\n properties: {\n rawMap: {\n name: \"Office\"\n }\n },\n children: [{\n name: 'a:majorFont',\n children: [getFont$3(['latin', 'Calibri Light', undefined, '020F0302020204030204']), getFont$3(['ea', '']), getFont$3(['cs', '']), getFont$3(['font', utf8_encode('游ゴシック Light'), 'Jpan']), getFont$3(['font', utf8_encode('맑은 고딕'), 'Hang']), getFont$3(['font', utf8_encode('等线 Light'), 'Hans']), getFont$3(['font', utf8_encode('新細明體'), 'Hant']), getFont$3(['font', 'Times New Roman', 'Arab']), getFont$3(['font', 'Times New Roman', 'Hebr']), getFont$3(['font', 'Tahoma', 'Thai']), getFont$3(['font', 'Nyala', 'Ethi']), getFont$3(['font', 'Vrinda', 'Beng']), getFont$3(['font', 'Shruti', 'Gujr']), getFont$3(['font', 'MoolBoran', 'Khmr']), getFont$3(['font', 'Tunga', 'Knda']), getFont$3(['font', 'Raavi', 'Guru']), getFont$3(['font', 'Euphemia', 'Cans']), getFont$3(['font', 'Plantagenet Cherokee', 'Cher']), getFont$3(['font', 'Microsoft Yi Baiti', 'Yiii']), getFont$3(['font', 'Microsoft Himalaya', 'Tibt']), getFont$3(['font', 'MV Boli', 'Thaa']), getFont$3(['font', 'Mangal', 'Deva']), getFont$3(['font', 'Gautami', 'Telu']), getFont$3(['font', 'Latha', 'Taml']), getFont$3(['font', 'Estrangelo Edessa', 'Syrc']), getFont$3(['font', 'Kalinga', 'Orya']), getFont$3(['font', 'Kartika', 'Mlym']), getFont$3(['font', 'DokChampa', 'Laoo']), getFont$3(['font', 'Iskoola Pota', 'Sinh']), getFont$3(['font', 'Mongolian Baiti', 'Mong']), getFont$3(['font', 'Times New Roman', 'Viet']), getFont$3(['font', 'Microsoft Uighur', 'Uigh']), getFont$3(['font', 'Sylfaen', 'Geor']), getFont$3(['font', 'Arial', 'Armn']), getFont$3(['font', 'Leelawadee UI', 'Bugi']), getFont$3(['font', 'Microsoft JhengHei', 'Bopo']), getFont$3(['font', 'Javanese Text', 'Java']), getFont$3(['font', 'Segoe UI', 'Lisu']), getFont$3(['font', 'Myanmar Text', 'Mymr']), getFont$3(['font', 'Ebrima', 'Nkoo']), getFont$3(['font', 'Nirmala UI', 'Olck']), getFont$3(['font', 'Ebrima', 'Osma']), getFont$3(['font', 'Phagspa', 'Phag']), getFont$3(['font', 'Estrangelo Edessa', 'Syrn']), getFont$3(['font', 'Estrangelo Edessa', 'Syrj']), getFont$3(['font', 'Estrangelo Edessa', 'Syre']), getFont$3(['font', 'Nirmala UI', 'Sora']), getFont$3(['font', 'Microsoft Tai Le', 'Tale']), getFont$3(['font', 'Microsoft New Tai Lue', 'Talu']), getFont$3(['font', 'Ebrima', 'Tfng'])]\n }, {\n name: 'a:minorFont',\n children: [getFont$3(['latin', 'Calibri', undefined, '020F0502020204030204']), getFont$3(['ea', '']), getFont$3(['cs', '']), getFont$3(['font', utf8_encode('游ゴシック'), 'Jpan']), getFont$3(['font', utf8_encode('맑은 고딕'), 'Hang']), getFont$3(['font', utf8_encode('等线'), 'Hans']), getFont$3(['font', utf8_encode('新細明體'), 'Hant']), getFont$3(['font', 'Arial', 'Arab']), getFont$3(['font', 'Arial', 'Hebr']), getFont$3(['font', 'Tahoma', 'Thai']), getFont$3(['font', 'Nyala', 'Ethi']), getFont$3(['font', 'Vrinda', 'Beng']), getFont$3(['font', 'Shruti', 'Gujr']), getFont$3(['font', 'DaunPenh', 'Khmr']), getFont$3(['font', 'Tunga', 'Knda']), getFont$3(['font', 'Raavi', 'Guru']), getFont$3(['font', 'Euphemia', 'Cans']), getFont$3(['font', 'Plantagenet Cherokee', 'Cher']), getFont$3(['font', 'Microsoft Yi Baiti', 'Yiii']), getFont$3(['font', 'Microsoft Himalaya', 'Tibt']), getFont$3(['font', 'MV Boli', 'Thaa']), getFont$3(['font', 'Mangal', 'Deva']), getFont$3(['font', 'Gautami', 'Telu']), getFont$3(['font', 'Latha', 'Taml']), getFont$3(['font', 'Estrangelo Edessa', 'Syrc']), getFont$3(['font', 'Kalinga', 'Orya']), getFont$3(['font', 'Kartika', 'Mlym']), getFont$3(['font', 'DokChampa', 'Laoo']), getFont$3(['font', 'Iskoola Pota', 'Sinh']), getFont$3(['font', 'Mongolian Baiti', 'Mong']), getFont$3(['font', 'Arial', 'Viet']), getFont$3(['font', 'Microsoft Uighur', 'Uigh']), getFont$3(['font', 'Sylfaen', 'Geor']), getFont$3(['font', 'Arial', 'Armn']), getFont$3(['font', 'Leelawadee UI', 'Bugi']), getFont$3(['font', 'Microsoft JhengHei', 'Bopo']), getFont$3(['font', 'Javanese Text', 'Java']), getFont$3(['font', 'Segoe UI', 'Lisu']), getFont$3(['font', 'Myanmar Text', 'Mymr']), getFont$3(['font', 'Ebrima', 'Nkoo']), getFont$3(['font', 'Nirmala UI', 'Olck']), getFont$3(['font', 'Ebrima', 'Osma']), getFont$3(['font', 'Phagspa', 'Phag']), getFont$3(['font', 'Estrangelo Edessa', 'Syrn']), getFont$3(['font', 'Estrangelo Edessa', 'Syrj']), getFont$3(['font', 'Estrangelo Edessa', 'Syre']), getFont$3(['font', 'Nirmala UI', 'Sora']), getFont$3(['font', 'Microsoft Tai Le', 'Tale']), getFont$3(['font', 'Microsoft New Tai Lue', 'Talu']), getFont$3(['font', 'Ebrima', 'Tfng'])]\n }]\n };\n }\n};\n\nvar __read$Q = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar getPropertyVal = function getPropertyVal(name, val, children) {\n return {\n name: \"a:\" + name,\n properties: {\n rawMap: {\n val: val\n }\n },\n children: children\n };\n};\n\nvar getGs = function getGs(props) {\n var _a = __read$Q(props, 6),\n pos = _a[0],\n schemeColor = _a[1],\n satMod = _a[2],\n lumMod = _a[3],\n tint = _a[4],\n shade = _a[5];\n\n var children = [];\n children.push(getPropertyVal('satMod', satMod));\n\n if (lumMod) {\n children.push(getPropertyVal('lumMod', lumMod));\n }\n\n if (tint) {\n children.push(getPropertyVal('tint', tint));\n }\n\n if (shade) {\n children.push(getPropertyVal('shade', shade));\n }\n\n return {\n name: 'a:gs',\n properties: {\n rawMap: {\n pos: pos\n }\n },\n children: [{\n name: 'a:schemeClr',\n properties: {\n rawMap: {\n val: schemeColor\n }\n },\n children: children\n }]\n };\n};\n\nvar getSolidFill = function getSolidFill(val, children) {\n return {\n name: 'a:solidFill',\n children: [getPropertyVal('schemeClr', val, children)]\n };\n};\n\nvar getGradFill = function getGradFill(props) {\n var _a = __read$Q(props, 5),\n rotWithShape = _a[0],\n gs1 = _a[1],\n gs2 = _a[2],\n gs3 = _a[3],\n lin = _a[4];\n\n var _b = __read$Q(lin, 2),\n ang = _b[0],\n scaled = _b[1];\n\n return {\n name: 'a:gradFill',\n properties: {\n rawMap: {\n rotWithShape: rotWithShape\n }\n },\n children: [{\n name: 'a:gsLst',\n children: [getGs(gs1), getGs(gs2), getGs(gs3)]\n }, {\n name: 'a:lin',\n properties: {\n rawMap: {\n ang: ang,\n scaled: scaled\n }\n }\n }]\n };\n};\n\nvar getLine = function getLine(props) {\n var _a = __read$Q(props, 4),\n w = _a[0],\n cap = _a[1],\n cmpd = _a[2],\n algn = _a[3];\n\n return {\n name: 'a:ln',\n properties: {\n rawMap: {\n w: w,\n cap: cap,\n cmpd: cmpd,\n algn: algn\n }\n },\n children: [getSolidFill('phClr'), getPropertyVal('prstDash', 'solid'), {\n name: 'a:miter',\n properties: {\n rawMap: {\n lim: '800000'\n }\n }\n }]\n };\n};\n\nvar getEffectStyle = function getEffectStyle(shadow) {\n var children = [];\n\n if (shadow) {\n var _a = __read$Q(shadow, 5),\n blurRad = _a[0],\n dist = _a[1],\n dir = _a[2],\n algn = _a[3],\n rotWithShape = _a[4];\n\n children.push({\n name: 'a:outerShdw',\n properties: {\n rawMap: {\n blurRad: blurRad,\n dist: dist,\n dir: dir,\n algn: algn,\n rotWithShape: rotWithShape\n }\n },\n children: [getPropertyVal('srgbClr', '000000', [getPropertyVal('alpha', '63000')])]\n });\n }\n\n return {\n name: 'a:effectStyle',\n children: [Object.assign({}, {\n name: 'a:effectLst'\n }, children.length ? {\n children: children\n } : {})]\n };\n};\n\nvar getFillStyleList = function getFillStyleList() {\n return {\n name: 'a:fillStyleLst',\n children: [getSolidFill('phClr'), getGradFill(['1', ['0', 'phClr', '105000', '110000', '67000'], ['50000', 'phClr', '103000', '105000', '73000'], ['100000', 'phClr', '109000', '105000', '81000'], ['5400000', '0']]), getGradFill(['1', ['0', 'phClr', '103000', '102000', '94000'], ['50000', 'phClr', '110000', '100000', undefined, '100000'], ['100000', 'phClr', '120000', '99000', undefined, '78000'], ['5400000', '0']])]\n };\n};\n\nvar getLineStyleList = function getLineStyleList() {\n return {\n name: 'a:lnStyleLst',\n children: [getLine(['6350', 'flat', 'sng', 'ctr']), getLine(['12700', 'flat', 'sng', 'ctr']), getLine(['19050', 'flat', 'sng', 'ctr'])]\n };\n};\n\nvar getEffectStyleList = function getEffectStyleList() {\n return {\n name: 'a:effectStyleLst',\n children: [getEffectStyle(), getEffectStyle(), getEffectStyle(['57150', '19050', '5400000', 'ctr', '0'])]\n };\n};\n\nvar getBgFillStyleList = function getBgFillStyleList() {\n return {\n name: 'a:bgFillStyleLst',\n children: [getSolidFill('phClr'), getSolidFill('phClr', [getPropertyVal('tint', '95000'), getPropertyVal('satMod', '170000')]), getGradFill(['1', ['0', 'phClr', '150000', '102000', '93000', '98000'], ['50000', 'phClr', '130000', '103000', '98000', '90000'], ['100000', 'phClr', '120000', undefined, undefined, '63000'], ['5400000', '0']])]\n };\n};\n\nvar formatScheme = {\n getTemplate: function getTemplate() {\n return {\n name: \"a:fmtScheme\",\n properties: {\n rawMap: {\n name: \"Office\"\n }\n },\n children: [getFillStyleList(), getLineStyleList(), getEffectStyleList(), getBgFillStyleList()]\n };\n }\n};\nvar themeElements = {\n getTemplate: function getTemplate() {\n return {\n name: \"a:themeElements\",\n children: [colorScheme.getTemplate(), fontScheme.getTemplate(), formatScheme.getTemplate()]\n };\n }\n};\nvar officeTheme = {\n getTemplate: function getTemplate() {\n return {\n name: \"a:theme\",\n properties: {\n prefixedAttributes: [{\n prefix: \"xmlns:\",\n map: {\n a: \"http://schemas.openxmlformats.org/drawingml/2006/main\"\n }\n }],\n rawMap: {\n name: \"Office Theme\"\n }\n },\n children: [themeElements.getTemplate(), {\n name: 'a:objectDefaults'\n }, {\n name: 'a:extraClrSchemeLst'\n }]\n };\n }\n};\n\nvar buildSharedString = function buildSharedString(strMap) {\n var ret = [];\n strMap.forEach(function (val, key) {\n var textNode = key.toString();\n var child = {\n name: 't',\n textNode: _.utf8_encode(_.escapeString(textNode))\n }; // if we have leading or trailing spaces, instruct Excel not to trim them\n\n var preserveSpaces = textNode.trim().length !== textNode.length;\n\n if (preserveSpaces) {\n child.properties = {\n rawMap: {\n \"xml:space\": \"preserve\"\n }\n };\n }\n\n ret.push({\n name: 'si',\n children: [child]\n });\n });\n return ret;\n};\n\nvar sharedStrings = {\n getTemplate: function getTemplate(strings) {\n return {\n name: \"sst\",\n properties: {\n rawMap: {\n xmlns: 'http://schemas.openxmlformats.org/spreadsheetml/2006/main',\n count: strings.size,\n uniqueCount: strings.size\n }\n },\n children: buildSharedString(strings)\n };\n }\n};\nvar numberFormatFactory = {\n getTemplate: function getTemplate(numberFormat) {\n var formatCode = numberFormat.formatCode,\n numFmtId = numberFormat.numFmtId;\n return {\n name: \"numFmt\",\n properties: {\n rawMap: {\n formatCode: formatCode,\n numFmtId: numFmtId\n }\n }\n };\n }\n};\nvar numberFormatsFactory = {\n getTemplate: function getTemplate(numberFormats) {\n return {\n name: \"numFmts\",\n properties: {\n rawMap: {\n count: numberFormats.length\n }\n },\n children: numberFormats.map(function (numberFormat) {\n return numberFormatFactory.getTemplate(numberFormat);\n })\n };\n }\n};\nvar fontFactory = {\n getTemplate: function getTemplate(font) {\n var size = font.size,\n colorTheme = font.colorTheme,\n _a = font.color,\n color = _a === void 0 ? 'FF000000' : _a,\n _b = font.fontName,\n fontName = _b === void 0 ? 'Calibri' : _b,\n family = font.family,\n scheme = font.scheme,\n italic = font.italic,\n bold = font.bold,\n strikeThrough = font.strikeThrough,\n outline = font.outline,\n shadow = font.shadow,\n underline = font.underline,\n verticalAlign = font.verticalAlign;\n var children = [{\n name: 'sz',\n properties: {\n rawMap: {\n val: size\n }\n }\n }, {\n name: 'color',\n properties: {\n rawMap: {\n theme: colorTheme,\n rgb: color\n }\n }\n }, {\n name: 'name',\n properties: {\n rawMap: {\n val: fontName\n }\n }\n }];\n\n if (family) {\n children.push({\n name: 'family',\n properties: {\n rawMap: {\n val: family\n }\n }\n });\n }\n\n if (scheme) {\n children.push({\n name: 'scheme',\n properties: {\n rawMap: {\n val: scheme\n }\n }\n });\n }\n\n if (italic) {\n children.push({\n name: 'i'\n });\n }\n\n if (bold) {\n children.push({\n name: 'b'\n });\n }\n\n if (strikeThrough) {\n children.push({\n name: 'strike'\n });\n }\n\n if (outline) {\n children.push({\n name: 'outline'\n });\n }\n\n if (shadow) {\n children.push({\n name: 'shadow'\n });\n }\n\n if (underline) {\n children.push({\n name: 'u',\n properties: {\n rawMap: {\n val: underline\n }\n }\n });\n }\n\n if (verticalAlign) {\n children.push({\n name: 'vertAlign',\n properties: {\n rawMap: {\n val: verticalAlign\n }\n }\n });\n }\n\n return {\n name: \"font\",\n children: children\n };\n }\n};\nvar fontsFactory = {\n getTemplate: function getTemplate(fonts) {\n return {\n name: \"fonts\",\n properties: {\n rawMap: {\n count: fonts.length\n }\n },\n children: fonts.map(function (font) {\n return fontFactory.getTemplate(font);\n })\n };\n }\n};\nvar fillFactory = {\n getTemplate: function getTemplate(fill) {\n var patternType = fill.patternType,\n fgTheme = fill.fgTheme,\n fgTint = fill.fgTint,\n fgRgb = fill.fgRgb,\n bgRgb = fill.bgRgb,\n bgIndexed = fill.bgIndexed;\n var pf = {\n name: 'patternFill',\n properties: {\n rawMap: {\n patternType: patternType\n }\n }\n };\n\n if (fgTheme || fgTint || fgRgb) {\n pf.children = [{\n name: 'fgColor',\n properties: {\n rawMap: {\n theme: fgTheme,\n tint: fgTint,\n rgb: fgRgb\n }\n }\n }];\n }\n\n if (bgIndexed || bgRgb) {\n if (!pf.children) {\n pf.children = [];\n }\n\n pf.children.push({\n name: 'bgColor',\n properties: {\n rawMap: {\n indexed: bgIndexed,\n rgb: bgRgb\n }\n }\n });\n }\n\n return {\n name: \"fill\",\n children: [pf]\n };\n }\n};\nvar fillsFactory = {\n getTemplate: function getTemplate(fills) {\n return {\n name: \"fills\",\n properties: {\n rawMap: {\n count: fills.length\n }\n },\n children: fills.map(function (fill) {\n return fillFactory.getTemplate(fill);\n })\n };\n }\n};\n\nvar getWeightName = function getWeightName(value) {\n switch (value) {\n case 1:\n return 'thin';\n\n case 2:\n return 'medium';\n\n case 3:\n return 'thick';\n\n default:\n return 'hair';\n }\n};\n\nvar mappedBorderNames = {\n None: 'None',\n Dot: 'Dotted',\n Dash: 'Dashed',\n Double: 'Double',\n DashDot: 'DashDot',\n DashDotDot: 'DashDotDot',\n SlantDashDot: 'SlantDashDot'\n};\nvar mediumBorders = ['Dashed', 'DashDot', 'DashDotDot'];\nvar colorMap = {\n None: 'none',\n Solid: 'solid',\n Gray50: 'mediumGray',\n Gray75: 'darkGray',\n Gray25: 'lightGray',\n HorzStripe: 'darkHorizontal',\n VertStripe: 'darkVertical',\n ReverseDiagStripe: 'darkDown',\n DiagStripe: 'darkUp',\n DiagCross: 'darkGrid',\n ThickDiagCross: 'darkTrellis',\n ThinHorzStripe: 'lightHorizontal',\n ThinVertStripe: 'lightVertical',\n ThinReverseDiagStripe: 'lightDown',\n ThinDiagStripe: 'lightUp',\n ThinHorzCross: 'lightGrid',\n ThinDiagCross: 'lightTrellis',\n Gray125: 'gray125',\n Gray0625: 'gray0625'\n};\nvar horizontalAlignmentMap = {\n Automatic: 'general',\n Left: 'left',\n Center: 'center',\n Right: 'right',\n Fill: 'fill',\n Justify: 'justify',\n CenterAcrossSelection: 'centerContinuous',\n Distributed: 'distributed',\n JustifyDistributed: 'justify'\n};\nvar verticalAlignmentMap = {\n Automatic: undefined,\n Top: 'top',\n Bottom: 'bottom',\n Center: 'center',\n Justify: 'justify',\n Distributed: 'distributed',\n JustifyDistributed: 'justify'\n};\n\nvar convertLegacyPattern = function convertLegacyPattern(name) {\n if (!name) {\n return 'none';\n }\n\n return colorMap[name] || name;\n};\n\nvar convertLegacyColor = function convertLegacyColor(color) {\n if (color == undefined) {\n return color;\n }\n\n if (color.charAt(0) === '#') {\n color = color.substr(1);\n }\n\n return color.length === 6 ? 'FF' + color : color;\n};\n\nvar convertLegacyBorder = function convertLegacyBorder(type, weight) {\n if (!type) {\n return 'thin';\n } // Legacy Types are: None, Continuous, Dash, Dot, DashDot, DashDotDot, SlantDashDot, and Double\n // Weight represents: 0—Hairline, 1—Thin , 2—Medium, 3—Thick\n // New types: none, thin, medium, dashed, dotted, thick, double, hair, mediumDashed, dashDot, mediumDashDot,\n // dashDotDot, mediumDashDotDot, slantDashDot\n\n\n var namedWeight = getWeightName(weight);\n var mappedName = mappedBorderNames[type];\n\n if (type === 'Continuous') {\n return namedWeight;\n }\n\n if (namedWeight === 'medium' && mediumBorders.indexOf(mappedName) !== -1) {\n return \"medium\" + mappedName;\n }\n\n return mappedName.charAt(0).toLowerCase() + mappedName.substr(1);\n};\n\nvar convertLegacyHorizontalAlignment = function convertLegacyHorizontalAlignment(alignment) {\n return horizontalAlignmentMap[alignment] || 'general';\n};\n\nvar convertLegacyVerticalAlignment = function convertLegacyVerticalAlignment(alignment) {\n return verticalAlignmentMap[alignment] || undefined;\n};\n\nvar getBorderColor = function getBorderColor(color) {\n return {\n name: 'color',\n properties: {\n rawMap: {\n rgb: convertLegacyColor(color || '#000000')\n }\n }\n };\n};\n\nvar borderFactory$1 = {\n getTemplate: function getTemplate(border) {\n var left = border.left,\n right = border.right,\n top = border.top,\n bottom = border.bottom,\n diagonal = border.diagonal;\n var leftChildren = left ? [getBorderColor(left.color)] : undefined;\n var rightChildren = right ? [getBorderColor(right.color)] : undefined;\n var topChildren = top ? [getBorderColor(top.color)] : undefined;\n var bottomChildren = bottom ? [getBorderColor(bottom.color)] : undefined;\n var diagonalChildren = diagonal ? [getBorderColor(diagonal.color)] : undefined;\n return {\n name: 'border',\n children: [{\n name: 'left',\n properties: {\n rawMap: {\n style: left && left.style\n }\n },\n children: leftChildren\n }, {\n name: 'right',\n properties: {\n rawMap: {\n style: right && right.style\n }\n },\n children: rightChildren\n }, {\n name: 'top',\n properties: {\n rawMap: {\n style: top && top.style\n }\n },\n children: topChildren\n }, {\n name: 'bottom',\n properties: {\n rawMap: {\n style: bottom && bottom.style\n }\n },\n children: bottomChildren\n }, {\n name: 'diagonal',\n properties: {\n rawMap: {\n style: diagonal && diagonal.style\n }\n },\n children: diagonalChildren\n }]\n };\n }\n};\nvar bordersFactory = {\n getTemplate: function getTemplate(borders) {\n return {\n name: \"borders\",\n properties: {\n rawMap: {\n count: borders.length\n }\n },\n children: borders.map(function (border) {\n return borderFactory$1.getTemplate(border);\n })\n };\n }\n};\n\nvar getReadingOrderId = function getReadingOrderId(readingOrder) {\n var order = ['Context', 'LeftToRight', 'RightToLeft'];\n var pos = order.indexOf(readingOrder);\n return Math.max(pos, 0);\n};\n\nvar alignmentFactory = {\n getTemplate: function getTemplate(alignment) {\n var horizontal = alignment.horizontal,\n indent = alignment.indent,\n readingOrder = alignment.readingOrder,\n rotate = alignment.rotate,\n shrinkToFit = alignment.shrinkToFit,\n vertical = alignment.vertical,\n wrapText = alignment.wrapText;\n return {\n name: 'alignment',\n properties: {\n rawMap: {\n horizontal: horizontal && convertLegacyHorizontalAlignment(horizontal),\n indent: indent,\n readingOrder: readingOrder && getReadingOrderId(readingOrder),\n textRotation: rotate,\n shrinkToFit: shrinkToFit,\n vertical: vertical && convertLegacyVerticalAlignment(vertical),\n wrapText: wrapText\n }\n }\n };\n }\n};\nvar protectionFactory = {\n getTemplate: function getTemplate(protection) {\n var locked = protection.protected === false ? 0 : 1;\n var hidden = protection.hideFormula === true ? 1 : 0;\n return {\n name: 'protection',\n properties: {\n rawMap: {\n hidden: hidden,\n locked: locked\n }\n }\n };\n }\n};\nvar xfFactory = {\n getTemplate: function getTemplate(xf) {\n var alignment = xf.alignment,\n borderId = xf.borderId,\n fillId = xf.fillId,\n fontId = xf.fontId,\n numFmtId = xf.numFmtId,\n protection = xf.protection,\n xfId = xf.xfId;\n var children = [];\n\n if (alignment) {\n children.push(alignmentFactory.getTemplate(alignment));\n }\n\n if (protection) {\n children.push(protectionFactory.getTemplate(protection));\n }\n\n return {\n name: \"xf\",\n properties: {\n rawMap: {\n applyAlignment: alignment ? 1 : undefined,\n applyProtection: protection ? 1 : undefined,\n applyBorder: borderId ? 1 : undefined,\n applyFill: fillId ? 1 : undefined,\n borderId: borderId,\n fillId: fillId,\n applyFont: fontId ? 1 : undefined,\n fontId: fontId,\n applyNumberFormat: numFmtId ? 1 : undefined,\n numFmtId: numFmtId,\n xfId: xfId\n }\n },\n children: children.length ? children : undefined\n };\n }\n};\nvar cellStylesXfsFactory = {\n getTemplate: function getTemplate(xfs) {\n return {\n name: \"cellStyleXfs\",\n properties: {\n rawMap: {\n count: xfs.length\n }\n },\n children: xfs.map(function (xf) {\n return xfFactory.getTemplate(xf);\n })\n };\n }\n};\nvar cellXfsFactory = {\n getTemplate: function getTemplate(xfs) {\n return {\n name: \"cellXfs\",\n properties: {\n rawMap: {\n count: xfs.length\n }\n },\n children: xfs.map(function (xf) {\n return xfFactory.getTemplate(xf);\n })\n };\n }\n};\nvar borderFactory = {\n getTemplate: function getTemplate(cellStyle) {\n var builtinId = cellStyle.builtinId,\n name = cellStyle.name,\n xfId = cellStyle.xfId;\n return {\n name: \"cellStyle\",\n properties: {\n rawMap: {\n builtinId: builtinId,\n name: name,\n xfId: xfId\n }\n }\n };\n }\n};\nvar cellStylesFactory = {\n getTemplate: function getTemplate(cellStyles) {\n return {\n name: \"cellStyles\",\n properties: {\n rawMap: {\n count: cellStyles.length\n }\n },\n children: cellStyles.map(function (cellStyle) {\n return borderFactory.getTemplate(cellStyle);\n })\n };\n }\n};\n\nvar __assign$z = undefined && undefined.__assign || function () {\n __assign$z = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$z.apply(this, arguments);\n};\n\nvar stylesMap;\nvar registeredNumberFmts;\nvar registeredFonts;\nvar registeredFills;\nvar registeredBorders;\nvar registeredCellStyleXfs;\nvar registeredCellXfs;\nvar registeredCellStyles;\nvar currentSheet;\n\nvar getStyleName = function getStyleName(name, currentSheet) {\n if (name.indexOf('mixedStyle') !== -1 && currentSheet > 1) {\n name += \"_\" + currentSheet;\n }\n\n return name;\n};\n\nvar resetStylesheetValues = function resetStylesheetValues() {\n stylesMap = {\n base: 0\n };\n registeredNumberFmts = [];\n registeredFonts = [{\n fontName: 'Calibri',\n colorTheme: '1',\n family: '2',\n scheme: 'minor'\n }];\n registeredFills = [{\n patternType: 'none'\n }, {\n patternType: 'gray125'\n }];\n registeredBorders = [{\n left: undefined,\n right: undefined,\n top: undefined,\n bottom: undefined,\n diagonal: undefined\n }];\n registeredCellStyleXfs = [{\n borderId: 0,\n fillId: 0,\n fontId: 0,\n numFmtId: 0\n }];\n registeredCellXfs = [{\n borderId: 0,\n fillId: 0,\n fontId: 0,\n numFmtId: 0,\n xfId: 0\n }];\n registeredCellStyles = [{\n builtinId: 0,\n name: 'Normal',\n xfId: 0\n }];\n};\n\nvar registerFill = function registerFill(fill) {\n var convertedPattern = convertLegacyPattern(fill.pattern);\n var convertedFillColor = convertLegacyColor(fill.color);\n var convertedPatternColor = convertLegacyColor(fill.patternColor);\n var pos = registeredFills.findIndex(function (currentFill) {\n var patternType = currentFill.patternType,\n fgRgb = currentFill.fgRgb,\n bgRgb = currentFill.bgRgb;\n\n if (patternType != convertedPattern || fgRgb != convertedFillColor || bgRgb != convertedPatternColor) {\n return false;\n }\n\n return true;\n });\n\n if (pos === -1) {\n pos = registeredFills.length;\n registeredFills.push({\n patternType: convertedPattern,\n fgRgb: convertedFillColor,\n bgRgb: convertedPatternColor\n });\n }\n\n return pos;\n};\n\nvar registerNumberFmt = function registerNumberFmt(format) {\n format = _.utf8_encode(format);\n\n if (numberFormatMap[format]) {\n return numberFormatMap[format];\n }\n\n var pos = registeredNumberFmts.findIndex(function (currentFormat) {\n return currentFormat.formatCode === format;\n });\n\n if (pos === -1) {\n pos = registeredNumberFmts.length + 164;\n registeredNumberFmts.push({\n formatCode: format,\n numFmtId: pos\n });\n } else {\n pos = registeredNumberFmts[pos].numFmtId;\n }\n\n return pos;\n};\n\nvar registerBorders = function registerBorders(borders) {\n var borderBottom = borders.borderBottom,\n borderTop = borders.borderTop,\n borderLeft = borders.borderLeft,\n borderRight = borders.borderRight;\n var bottomStyle;\n var topStyle;\n var leftStyle;\n var rightStyle;\n var bottomColor;\n var topColor;\n var leftColor;\n var rightColor;\n\n if (borderLeft) {\n leftStyle = convertLegacyBorder(borderLeft.lineStyle, borderLeft.weight);\n leftColor = convertLegacyColor(borderLeft.color);\n }\n\n if (borderRight) {\n rightStyle = convertLegacyBorder(borderRight.lineStyle, borderRight.weight);\n rightColor = convertLegacyColor(borderRight.color);\n }\n\n if (borderBottom) {\n bottomStyle = convertLegacyBorder(borderBottom.lineStyle, borderBottom.weight);\n bottomColor = convertLegacyColor(borderBottom.color);\n }\n\n if (borderTop) {\n topStyle = convertLegacyBorder(borderTop.lineStyle, borderTop.weight);\n topColor = convertLegacyColor(borderTop.color);\n }\n\n var pos = registeredBorders.findIndex(function (currentBorder) {\n var left = currentBorder.left,\n right = currentBorder.right,\n top = currentBorder.top,\n bottom = currentBorder.bottom;\n\n if (!left && (leftStyle || leftColor)) {\n return false;\n }\n\n if (!right && (rightStyle || rightColor)) {\n return false;\n }\n\n if (!top && (topStyle || topColor)) {\n return false;\n }\n\n if (!bottom && (bottomStyle || bottomColor)) {\n return false;\n }\n\n var _a = left || {},\n clS = _a.style,\n clC = _a.color;\n\n var _b = right || {},\n crS = _b.style,\n crC = _b.color;\n\n var _c = top || {},\n ctS = _c.style,\n ctC = _c.color;\n\n var _d = bottom || {},\n cbS = _d.style,\n cbC = _d.color;\n\n if (clS != leftStyle || clC != leftColor) {\n return false;\n }\n\n if (crS != rightStyle || crC != rightColor) {\n return false;\n }\n\n if (ctS != topStyle || ctC != topColor) {\n return false;\n }\n\n if (cbS != bottomStyle || cbC != bottomColor) {\n return false;\n }\n\n return true;\n });\n\n if (pos === -1) {\n pos = registeredBorders.length;\n registeredBorders.push({\n left: {\n style: leftStyle,\n color: leftColor\n },\n right: {\n style: rightStyle,\n color: rightColor\n },\n top: {\n style: topStyle,\n color: topColor\n },\n bottom: {\n style: bottomStyle,\n color: bottomColor\n },\n diagonal: {\n style: undefined,\n color: undefined\n }\n });\n }\n\n return pos;\n};\n\nvar registerFont = function registerFont(font) {\n var _a = font.fontName,\n name = _a === void 0 ? 'Calibri' : _a,\n color = font.color,\n size = font.size,\n bold = font.bold,\n italic = font.italic,\n outline = font.outline,\n shadow = font.shadow,\n strikeThrough = font.strikeThrough,\n underline = font.underline,\n family = font.family,\n verticalAlign = font.verticalAlign;\n var utf8Name = name ? _.utf8_encode(name) : name;\n var convertedColor = convertLegacyColor(color);\n var familyId = getFontFamilyId(family);\n var convertedUnderline = underline ? underline.toLocaleLowerCase() : undefined;\n var convertedVerticalAlign = verticalAlign ? verticalAlign.toLocaleLowerCase() : undefined;\n var pos = registeredFonts.findIndex(function (currentFont) {\n if (currentFont.fontName != utf8Name || currentFont.color != convertedColor || currentFont.size != size || currentFont.bold != bold || currentFont.italic != italic || currentFont.outline != outline || currentFont.shadow != shadow || currentFont.strikeThrough != strikeThrough || currentFont.underline != convertedUnderline || currentFont.verticalAlign != convertedVerticalAlign || // @ts-ignore\n currentFont.family != familyId) {\n return false;\n }\n\n return true;\n });\n\n if (pos === -1) {\n pos = registeredFonts.length;\n registeredFonts.push({\n fontName: utf8Name,\n color: convertedColor,\n size: size,\n bold: bold,\n italic: italic,\n outline: outline,\n shadow: shadow,\n strikeThrough: strikeThrough,\n underline: convertedUnderline,\n verticalAlign: convertedVerticalAlign,\n family: familyId != null ? familyId.toString() : undefined\n });\n }\n\n return pos;\n};\n\nvar registerStyle = function registerStyle(config) {\n var alignment = config.alignment,\n borders = config.borders,\n font = config.font,\n interior = config.interior,\n numberFormat = config.numberFormat,\n protection = config.protection;\n var id = config.id;\n var currentFill = 0;\n var currentBorder = 0;\n var currentFont = 0;\n var currentNumberFmt = 0;\n\n if (!id) {\n return;\n }\n\n id = getStyleName(id, currentSheet);\n\n if (stylesMap[id] != undefined) {\n return;\n }\n\n if (interior) {\n currentFill = registerFill(interior);\n }\n\n if (borders) {\n currentBorder = registerBorders(borders);\n }\n\n if (font) {\n currentFont = registerFont(font);\n }\n\n if (numberFormat) {\n currentNumberFmt = registerNumberFmt(numberFormat.format);\n }\n\n stylesMap[id] = registeredCellXfs.length;\n registeredCellXfs.push({\n alignment: alignment,\n borderId: currentBorder || 0,\n fillId: currentFill || 0,\n fontId: currentFont || 0,\n numFmtId: currentNumberFmt || 0,\n protection: protection,\n xfId: 0\n });\n};\n\nvar stylesheetFactory = {\n getTemplate: function getTemplate(defaultFontSize) {\n var numberFormats = numberFormatsFactory.getTemplate(registeredNumberFmts);\n var fonts = fontsFactory.getTemplate(registeredFonts.map(function (font) {\n return __assign$z(__assign$z({}, font), {\n size: font.size != null ? font.size : defaultFontSize\n });\n }));\n var fills = fillsFactory.getTemplate(registeredFills);\n var borders = bordersFactory.getTemplate(registeredBorders);\n var cellStylesXfs = cellStylesXfsFactory.getTemplate(registeredCellStyleXfs);\n var cellXfs = cellXfsFactory.getTemplate(registeredCellXfs);\n var cellStyles = cellStylesFactory.getTemplate(registeredCellStyles);\n resetStylesheetValues();\n return {\n name: 'styleSheet',\n properties: {\n rawMap: {\n 'mc:Ignorable': 'x14ac x16r2 xr',\n 'xmlns': 'http://schemas.openxmlformats.org/spreadsheetml/2006/main',\n 'xmlns:mc': 'http://schemas.openxmlformats.org/markup-compatibility/2006',\n 'xmlns:x14ac': 'http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac',\n 'xmlns:x16r2': 'http://schemas.microsoft.com/office/spreadsheetml/2015/02/main',\n 'xmlns:xr': 'http://schemas.microsoft.com/office/spreadsheetml/2014/revision'\n }\n },\n children: [numberFormats, fonts, fills, borders, cellStylesXfs, cellXfs, cellStyles, {\n name: 'tableStyles',\n properties: {\n rawMap: {\n count: 0,\n defaultPivotStyle: 'PivotStyleLight16',\n defaultTableStyle: 'TableStyleMedium2'\n }\n }\n }]\n };\n }\n};\n\nvar getStyleId = function getStyleId(name, currentSheet) {\n return stylesMap[getStyleName(name, currentSheet)] || 0;\n};\n\nvar registerStyles = function registerStyles(styles, _currentSheet) {\n currentSheet = _currentSheet;\n\n if (currentSheet === 1) {\n resetStylesheetValues();\n }\n\n styles.forEach(registerStyle);\n};\n\nvar sheetFactory = {\n getTemplate: function getTemplate(name, idx) {\n var sheetId = (idx + 1).toString();\n return {\n name: \"sheet\",\n properties: {\n rawMap: {\n \"name\": name,\n \"sheetId\": sheetId,\n \"r:id\": \"rId\" + sheetId\n }\n }\n };\n }\n};\nvar sheetsFactory = {\n getTemplate: function getTemplate(names) {\n return {\n name: \"sheets\",\n children: names.map(function (sheet, idx) {\n return sheetFactory.getTemplate(sheet, idx);\n })\n };\n }\n};\nvar workbookFactory = {\n getTemplate: function getTemplate(names) {\n return {\n name: \"workbook\",\n properties: {\n prefixedAttributes: [{\n prefix: \"xmlns:\",\n map: {\n r: \"http://schemas.openxmlformats.org/officeDocument/2006/relationships\"\n }\n }],\n rawMap: {\n xmlns: \"http://schemas.openxmlformats.org/spreadsheetml/2006/main\"\n }\n },\n children: [sheetsFactory.getTemplate(names)]\n };\n }\n}; // https://docs.microsoft.com/en-us/office/troubleshoot/excel/determine-column-widths\n\nvar getExcelCellWidth = function getExcelCellWidth(width) {\n return Math.ceil((width - 12) / 7 + 1);\n};\n\nvar columnFactory = {\n getTemplate: function getTemplate(config) {\n var min = config.min,\n max = config.max,\n outlineLevel = config.outlineLevel,\n s = config.s,\n width = config.width,\n hidden = config.hidden,\n bestFit = config.bestFit;\n var excelWidth = 1;\n var customWidth = '0';\n\n if (width > 1) {\n excelWidth = getExcelCellWidth(width);\n customWidth = '1';\n }\n\n return {\n name: 'col',\n properties: {\n rawMap: {\n min: min,\n max: max,\n outlineLevel: outlineLevel != null ? outlineLevel : undefined,\n width: excelWidth,\n style: s,\n hidden: hidden ? '1' : '0',\n bestFit: bestFit ? '1' : '0',\n customWidth: customWidth\n }\n }\n };\n }\n};\n\nvar convertLegacyType = function convertLegacyType(type) {\n var t = type.charAt(0).toLowerCase();\n return t === 's' ? 'inlineStr' : t;\n};\n\nvar cellFactory = {\n getTemplate: function getTemplate(config, idx, currentSheet) {\n var ref = config.ref,\n data = config.data,\n styleId = config.styleId;\n\n var _a = data || {\n type: 'empty',\n value: null\n },\n type = _a.type,\n value = _a.value;\n\n var convertedType = type;\n\n if (type === 'f') {\n convertedType = 'str';\n } else if (type.charAt(0) === type.charAt(0).toUpperCase()) {\n convertedType = convertLegacyType(type);\n }\n\n var obj = {\n name: 'c',\n properties: {\n rawMap: {\n r: ref,\n t: convertedType === 'empty' ? undefined : convertedType,\n s: styleId ? getStyleId(styleId, currentSheet) : undefined\n }\n }\n };\n\n if (convertedType === 'empty') {\n return obj;\n }\n\n var children;\n\n if (convertedType === 'str' && type === 'f') {\n children = [{\n name: 'f',\n textNode: _.escapeString(_.utf8_encode(value))\n }];\n } else if (convertedType === 'inlineStr') {\n children = [{\n name: 'is',\n children: [{\n name: 't',\n textNode: _.escapeString(_.utf8_encode(value))\n }]\n }];\n } else {\n children = [{\n name: 'v',\n textNode: value\n }];\n }\n\n return Object.assign({}, obj, {\n children: children\n });\n }\n};\n\nvar __read$P = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$q = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$P(arguments[i]));\n }\n\n return ar;\n};\n\nvar addEmptyCells = function addEmptyCells(cells, rowIdx) {\n var mergeMap = [];\n var posCounter = 0;\n\n for (var i = 0; i < cells.length; i++) {\n var cell = cells[i];\n\n if (cell.mergeAcross) {\n mergeMap.push({\n pos: i,\n excelPos: posCounter\n });\n posCounter += cell.mergeAcross;\n }\n\n posCounter++;\n }\n\n if (mergeMap.length) {\n for (var i = mergeMap.length - 1; i >= 0; i--) {\n var mergedCells = [];\n var cell = cells[mergeMap[i].pos];\n\n for (var j = 1; j <= cell.mergeAcross; j++) {\n mergedCells.push({\n ref: \"\" + getExcelColumnName(mergeMap[i].excelPos + 1 + j) + (rowIdx + 1),\n styleId: cell.styleId,\n data: {\n type: 'empty',\n value: null\n }\n });\n }\n\n if (mergedCells.length) {\n cells.splice.apply(cells, __spread$q([mergeMap[i].pos + 1, 0], mergedCells));\n }\n }\n }\n};\n\nvar shouldDisplayCell = function shouldDisplayCell(cell) {\n var _a;\n\n return ((_a = cell.data) === null || _a === void 0 ? void 0 : _a.value) !== '' || cell.styleId !== undefined;\n};\n\nvar rowFactory = {\n getTemplate: function getTemplate(config, idx, currentSheet) {\n var index = config.index,\n collapsed = config.collapsed,\n hidden = config.hidden,\n height = config.height,\n outlineLevel = config.outlineLevel,\n _a = config.cells,\n cells = _a === void 0 ? [] : _a;\n addEmptyCells(cells, idx);\n var children = cells.filter(shouldDisplayCell).map(function (cell, idx) {\n return cellFactory.getTemplate(cell, idx, currentSheet);\n });\n return {\n name: \"row\",\n properties: {\n rawMap: {\n r: index,\n collapsed: collapsed,\n hidden: hidden ? '1' : '0',\n ht: height,\n customHeight: height != null ? '1' : '0',\n spans: '1:1',\n outlineLevel: outlineLevel || undefined\n }\n },\n children: children\n };\n }\n};\nvar mergeCellFactory = {\n getTemplate: function getTemplate(ref) {\n return {\n name: 'mergeCell',\n properties: {\n rawMap: {\n ref: ref\n }\n }\n };\n }\n};\n\nvar getMergedCellsAndAddColumnGroups = function getMergedCellsAndAddColumnGroups(rows, cols) {\n var mergedCells = [];\n var cellsWithCollapsibleGroups = [];\n rows.forEach(function (currentRow, rowIdx) {\n var cells = currentRow.cells;\n var merges = 0;\n currentRow.index = rowIdx + 1;\n var lastCol;\n cells.forEach(function (currentCell, cellIdx) {\n var min = cellIdx + merges + 1;\n var start = getExcelColumnName(min);\n var outputRow = rowIdx + 1;\n\n if (currentCell.mergeAcross) {\n merges += currentCell.mergeAcross;\n var end = getExcelColumnName(cellIdx + merges + 1);\n mergedCells.push(\"\" + start + outputRow + \":\" + end + outputRow);\n }\n\n if (!cols[min - 1]) {\n cols[min - 1] = {};\n }\n\n var collapsibleRanges = currentCell.collapsibleRanges;\n\n if (collapsibleRanges) {\n collapsibleRanges.forEach(function (range) {\n cellsWithCollapsibleGroups.push([min + range[0], min + range[1]]);\n });\n }\n\n lastCol = cols[min - 1];\n lastCol.min = min;\n lastCol.max = min;\n currentCell.ref = \"\" + start + outputRow;\n });\n });\n cellsWithCollapsibleGroups.sort(function (a, b) {\n if (a[0] !== b[0]) {\n return a[0] - b[0];\n }\n\n return b[1] - a[1];\n });\n var rangeMap = new Map();\n var outlineLevel = new Map();\n cellsWithCollapsibleGroups.filter(function (currentRange) {\n var rangeString = currentRange.toString();\n var inMap = rangeMap.get(rangeString);\n\n if (inMap) {\n return false;\n }\n\n rangeMap.set(rangeString, true);\n return true;\n }).forEach(function (range) {\n var refCol = cols.find(function (col) {\n return col.min == range[0] && col.max == range[1];\n });\n var currentOutlineLevel = outlineLevel.get(range[0]);\n cols.push({\n min: range[0],\n max: range[1],\n outlineLevel: currentOutlineLevel || 1,\n width: (refCol || {\n width: 100\n }).width\n });\n outlineLevel.set(range[0], (currentOutlineLevel || 0) + 1);\n });\n return mergedCells;\n};\n\nvar getPageOrientation = function getPageOrientation(orientation) {\n if (!orientation || orientation !== 'Portrait' && orientation !== 'Landscape') {\n return 'portrait';\n }\n\n return orientation.toLocaleLowerCase();\n};\n\nvar getPageSize = function getPageSize(pageSize) {\n if (pageSize == null) {\n return 1;\n }\n\n var positions = ['Letter', 'Letter Small', 'Tabloid', 'Ledger', 'Legal', 'Statement', 'Executive', 'A3', 'A4', 'A4 Small', 'A5', 'A6', 'B4', 'B5', 'Folio', 'Envelope', 'Envelope DL', 'Envelope C5', 'Envelope B5', 'Envelope C3', 'Envelope C4', 'Envelope C6', 'Envelope Monarch', 'Japanese Postcard', 'Japanese Double Postcard'];\n var pos = positions.indexOf(pageSize);\n return pos === -1 ? 1 : pos + 1;\n};\n\nvar addColumns = function addColumns(columns) {\n return function (children) {\n if (columns.length) {\n children.push({\n name: 'cols',\n children: columns.map(function (column) {\n return columnFactory.getTemplate(column);\n })\n });\n }\n\n return children;\n };\n};\n\nvar addSheetData = function addSheetData(rows, sheetNumber) {\n return function (children) {\n if (rows.length) {\n children.push({\n name: 'sheetData',\n children: rows.map(function (row, idx) {\n return rowFactory.getTemplate(row, idx, sheetNumber);\n })\n });\n }\n\n return children;\n };\n};\n\nvar addMergeCells = function addMergeCells(mergeCells) {\n return function (children) {\n if (mergeCells.length) {\n children.push({\n name: 'mergeCells',\n properties: {\n rawMap: {\n count: mergeCells.length\n }\n },\n children: mergeCells.map(function (mergedCell) {\n return mergeCellFactory.getTemplate(mergedCell);\n })\n });\n }\n\n return children;\n };\n};\n\nvar addPageMargins = function addPageMargins(margins) {\n return function (children) {\n var _a = margins.top,\n top = _a === void 0 ? 0.75 : _a,\n _b = margins.right,\n right = _b === void 0 ? 0.7 : _b,\n _c = margins.bottom,\n bottom = _c === void 0 ? 0.75 : _c,\n _d = margins.left,\n left = _d === void 0 ? 0.7 : _d,\n _e = margins.header,\n header = _e === void 0 ? 0.3 : _e,\n _f = margins.footer,\n footer = _f === void 0 ? 0.3 : _f;\n children.push({\n name: 'pageMargins',\n properties: {\n rawMap: {\n bottom: bottom,\n footer: footer,\n header: header,\n left: left,\n right: right,\n top: top\n }\n }\n });\n return children;\n };\n};\n\nvar addPageSetup = function addPageSetup(pageSetup) {\n return function (children) {\n if (pageSetup) {\n children.push({\n name: 'pageSetup',\n properties: {\n rawMap: {\n horizontalDpi: 0,\n verticalDpi: 0,\n orientation: getPageOrientation(pageSetup.orientation),\n paperSize: getPageSize(pageSetup.pageSize)\n }\n }\n });\n }\n\n return children;\n };\n};\n\nvar replaceHeaderFooterTokens = function replaceHeaderFooterTokens(value) {\n var map = {\n '&[Page]': '&P',\n '&[Pages]': '&N',\n '&[Date]': '&D',\n '&[Time]': '&T',\n '&[Tab]': '&A',\n '&[Path]': '&Z',\n '&[File]': '&F'\n };\n\n _.iterateObject(map, function (key, val) {\n value = value.replace(key, val);\n });\n\n return value;\n};\n\nvar getHeaderPosition = function getHeaderPosition(position) {\n if (position === 'Center') {\n return 'C';\n }\n\n if (position === 'Right') {\n return 'R';\n }\n\n return 'L';\n};\n\nvar applyHeaderFontStyle = function applyHeaderFontStyle(headerString, font) {\n if (!font) {\n return headerString;\n }\n\n headerString += '&"';\n headerString += font.fontName || 'Calibri';\n\n if (font.bold !== font.italic) {\n headerString += font.bold ? ',Bold' : ',Italic';\n } else if (font.bold) {\n headerString += ',Bold Italic';\n } else {\n headerString += ',Regular';\n }\n\n headerString += '"';\n\n if (font.size) {\n headerString += \"&\" + font.size;\n }\n\n if (font.strikeThrough) {\n headerString += '&S';\n }\n\n if (font.underline) {\n headerString += \"&\" + (font.underline === 'Double' ? 'E' : 'U');\n }\n\n if (font.color) {\n headerString += \"&K\" + font.color.replace('#', '').toUpperCase();\n }\n\n return headerString;\n};\n\nvar processHeaderFooterContent = function processHeaderFooterContent(content) {\n return content.reduce(function (prev, curr) {\n var pos = getHeaderPosition(curr.position);\n var output = applyHeaderFontStyle(prev + \"&\" + pos, curr.font);\n return \"\" + output + _.escapeString(replaceHeaderFooterTokens(curr.value));\n }, '');\n};\n\nvar buildHeaderFooter = function buildHeaderFooter(headerFooterConfig) {\n var rules = ['all', 'first', 'even'];\n var headersAndFooters = [];\n rules.forEach(function (rule) {\n var headerFooter = headerFooterConfig[rule];\n var namePrefix = rule === 'all' ? 'odd' : rule;\n\n if (!headerFooter || !headerFooter.header && !headerFooter.footer) {\n return;\n }\n\n _.iterateObject(headerFooter, function (key, value) {\n var nameSuffix = \"\" + key.charAt(0).toUpperCase() + key.slice(1);\n\n if (value) {\n headersAndFooters.push({\n name: \"\" + namePrefix + nameSuffix,\n properties: {\n rawMap: {\n 'xml:space': 'preserve'\n }\n },\n textNode: processHeaderFooterContent(value)\n });\n }\n });\n });\n return headersAndFooters;\n};\n\nvar addHeaderFooter = function addHeaderFooter(headerFooterConfig) {\n return function (children) {\n if (!headerFooterConfig) {\n return children;\n }\n\n var differentFirst = headerFooterConfig.first != null ? 1 : 0;\n var differentOddEven = headerFooterConfig.even != null ? 1 : 0;\n children.push({\n name: 'headerFooter',\n properties: {\n rawMap: {\n differentFirst: differentFirst,\n differentOddEven: differentOddEven\n }\n },\n children: buildHeaderFooter(headerFooterConfig)\n });\n return children;\n };\n};\n\nvar addDrawingRel = function addDrawingRel(currentSheet) {\n return function (children) {\n if (ExcelXlsxFactory.worksheetImages.get(currentSheet)) {\n children.push({\n name: 'drawing',\n properties: {\n rawMap: {\n 'r:id': 'rId1'\n }\n }\n });\n }\n\n return children;\n };\n};\n\nvar addSheetPr = function addSheetPr() {\n return function (children) {\n children.push({\n name: 'sheetPr',\n children: [{\n name: 'outlinePr',\n properties: {\n rawMap: {\n summaryBelow: 0\n }\n }\n }]\n });\n return children;\n };\n};\n\nvar addSheetFormatPr = function addSheetFormatPr(rows) {\n return function (children) {\n var maxOutline = rows.reduce(function (prev, row) {\n if (row.outlineLevel && row.outlineLevel > prev) {\n return row.outlineLevel;\n }\n\n return prev;\n }, 0);\n children.push({\n name: 'sheetFormatPr',\n properties: {\n rawMap: {\n baseColWidth: 10,\n defaultRowHeight: 16,\n outlineLevelRow: maxOutline ? maxOutline : undefined\n }\n }\n });\n return children;\n };\n};\n\nvar worksheetFactory = {\n getTemplate: function getTemplate(params) {\n var worksheet = params.worksheet,\n currentSheet = params.currentSheet,\n _a = params.margins,\n margins = _a === void 0 ? {} : _a,\n pageSetup = params.pageSetup,\n headerFooterConfig = params.headerFooterConfig;\n var table = worksheet.table;\n var rows = table.rows,\n columns = table.columns;\n var mergedCells = columns && columns.length ? getMergedCellsAndAddColumnGroups(rows, columns) : [];\n\n var createWorksheetChildren = _.compose(addSheetPr(), addSheetFormatPr(rows), addColumns(columns), addSheetData(rows, currentSheet + 1), addMergeCells(mergedCells), addPageMargins(margins), addPageSetup(pageSetup), addHeaderFooter(headerFooterConfig), addDrawingRel(currentSheet));\n\n var children = createWorksheetChildren([]);\n return {\n name: \"worksheet\",\n properties: {\n prefixedAttributes: [{\n prefix: \"xmlns:\",\n map: {\n r: \"http://schemas.openxmlformats.org/officeDocument/2006/relationships\"\n }\n }],\n rawMap: {\n xmlns: \"http://schemas.openxmlformats.org/spreadsheetml/2006/main\"\n }\n },\n children: children\n };\n }\n};\nvar relationshipFactory = {\n getTemplate: function getTemplate(config) {\n var Id = config.Id,\n Type = config.Type,\n Target = config.Target;\n return {\n name: \"Relationship\",\n properties: {\n rawMap: {\n Id: Id,\n Type: Type,\n Target: Target\n }\n }\n };\n }\n};\nvar relationshipsFactory = {\n getTemplate: function getTemplate(c) {\n var children = c.map(function (relationship) {\n return relationshipFactory.getTemplate(relationship);\n });\n return {\n name: \"Relationships\",\n properties: {\n rawMap: {\n xmlns: \"http://schemas.openxmlformats.org/package/2006/relationships\"\n }\n },\n children: children\n };\n }\n};\n\nvar __read$O = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$p = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$O(arguments[i]));\n }\n\n return ar;\n};\n/**\n * See https://www.ecma-international.org/news/TC45_current_work/OpenXML%20White%20Paper.pdf\n */\n\n\nvar ExcelXlsxFactory =\n/** @class */\nfunction () {\n function ExcelXlsxFactory() {}\n\n ExcelXlsxFactory.createExcel = function (styles, worksheet, margins, pageSetup, headerFooterConfig) {\n this.addSheetName(worksheet);\n registerStyles(styles, this.sheetNames.length);\n return this.createWorksheet(worksheet, margins, pageSetup, headerFooterConfig);\n };\n\n ExcelXlsxFactory.buildImageMap = function (image, rowIndex, col, columnsToExport, rowHeight) {\n var currentSheetIndex = this.sheetNames.length;\n var registeredImage = this.images.get(image.id);\n\n if (!image.position || !image.position.row || !image.position.column) {\n if (!image.position) {\n image.position = {};\n }\n\n image.position = Object.assign({}, image.position, {\n row: rowIndex,\n column: columnsToExport.indexOf(col) + 1\n });\n }\n\n var calculatedImage = image;\n setExcelImageTotalWidth(calculatedImage, columnsToExport);\n setExcelImageTotalHeight(calculatedImage, rowHeight);\n\n if (registeredImage) {\n var currentSheetImages = registeredImage.find(function (currentImage) {\n return currentImage.sheetId === currentSheetIndex;\n });\n\n if (currentSheetImages) {\n currentSheetImages.image.push(calculatedImage);\n } else {\n registeredImage.push({\n sheetId: currentSheetIndex,\n image: [calculatedImage]\n });\n }\n } else {\n this.images.set(calculatedImage.id, [{\n sheetId: currentSheetIndex,\n image: [calculatedImage]\n }]);\n this.workbookImageIds.set(calculatedImage.id, {\n type: calculatedImage.imageType,\n index: this.workbookImageIds.size\n });\n }\n\n this.buildSheetImageMap(currentSheetIndex, calculatedImage);\n };\n\n ExcelXlsxFactory.buildSheetImageMap = function (sheetIndex, image) {\n var worksheetImageIdMap = this.worksheetImageIds.get(sheetIndex);\n\n if (!worksheetImageIdMap) {\n worksheetImageIdMap = new Map();\n this.worksheetImageIds.set(sheetIndex, worksheetImageIdMap);\n }\n\n var sheetImages = this.worksheetImages.get(sheetIndex);\n\n if (!sheetImages) {\n this.worksheetImages.set(sheetIndex, [image]);\n worksheetImageIdMap.set(image.id, {\n index: 0,\n type: image.imageType\n });\n } else {\n sheetImages.push(image);\n\n if (!worksheetImageIdMap.get(image.id)) {\n worksheetImageIdMap.set(image.id, {\n index: worksheetImageIdMap.size,\n type: image.imageType\n });\n }\n }\n };\n\n ExcelXlsxFactory.addSheetName = function (worksheet) {\n var name = _.escapeString(worksheet.name) || '';\n var append = '';\n\n while (this.sheetNames.indexOf(\"\" + name + append) !== -1) {\n if (append === '') {\n append = '_1';\n } else {\n var curr = parseInt(append.slice(1), 10);\n append = \"_\" + (curr + 1);\n }\n }\n\n worksheet.name = \"\" + name + append;\n this.sheetNames.push(worksheet.name);\n };\n\n ExcelXlsxFactory.getStringPosition = function (str) {\n if (this.sharedStrings.has(str)) {\n return this.sharedStrings.get(str);\n }\n\n this.sharedStrings.set(str, this.sharedStrings.size);\n return this.sharedStrings.size - 1;\n };\n\n ExcelXlsxFactory.resetFactory = function () {\n this.sharedStrings = new Map();\n this.images = new Map();\n this.worksheetImages = new Map();\n this.workbookImageIds = new Map();\n this.worksheetImageIds = new Map();\n this.sheetNames = [];\n this.factoryMode = ExcelFactoryMode.SINGLE_SHEET;\n };\n\n ExcelXlsxFactory.createWorkbook = function () {\n return createXmlPart(workbookFactory.getTemplate(this.sheetNames));\n };\n\n ExcelXlsxFactory.createStylesheet = function (defaultFontSize) {\n return createXmlPart(stylesheetFactory.getTemplate(defaultFontSize));\n };\n\n ExcelXlsxFactory.createSharedStrings = function () {\n return createXmlPart(sharedStrings.getTemplate(this.sharedStrings));\n };\n\n ExcelXlsxFactory.createCore = function (author) {\n return createXmlPart(coreFactory.getTemplate(author));\n };\n\n ExcelXlsxFactory.createContentTypes = function (sheetLen) {\n return createXmlPart(contentTypesFactory.getTemplate(sheetLen));\n };\n\n ExcelXlsxFactory.createRels = function () {\n var rs = relationshipsFactory.getTemplate([{\n Id: 'rId1',\n Type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument',\n Target: 'xl/workbook.xml'\n }, {\n Id: 'rId2',\n Type: 'http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties',\n Target: 'docProps/core.xml'\n }]);\n return createXmlPart(rs);\n };\n\n ExcelXlsxFactory.createTheme = function () {\n return createXmlPart(officeTheme.getTemplate());\n };\n\n ExcelXlsxFactory.createWorkbookRels = function (sheetLen) {\n var worksheets = new Array(sheetLen).fill(undefined).map(function (v, i) {\n return {\n Id: \"rId\" + (i + 1),\n Type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet',\n Target: \"worksheets/sheet\" + (i + 1) + \".xml\"\n };\n });\n var rs = relationshipsFactory.getTemplate(__spread$p(worksheets, [{\n Id: \"rId\" + (sheetLen + 1),\n Type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme',\n Target: 'theme/theme1.xml'\n }, {\n Id: \"rId\" + (sheetLen + 2),\n Type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles',\n Target: 'styles.xml'\n }, {\n Id: \"rId\" + (sheetLen + 3),\n Type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings',\n Target: 'sharedStrings.xml'\n }]));\n return createXmlPart(rs);\n };\n\n ExcelXlsxFactory.createDrawing = function (sheetIndex) {\n return createXmlPart(drawingFactory.getTemplate({\n sheetIndex: sheetIndex\n }));\n };\n\n ExcelXlsxFactory.createDrawingRel = function (sheetIndex) {\n var _this = this;\n\n var worksheetImageIds = this.worksheetImageIds.get(sheetIndex);\n var XMLArr = [];\n worksheetImageIds.forEach(function (value, key) {\n XMLArr.push({\n Id: \"rId\" + (value.index + 1),\n Type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/image',\n Target: \"../media/image\" + (_this.workbookImageIds.get(key).index + 1) + \".\" + value.type\n });\n });\n return createXmlPart(relationshipsFactory.getTemplate(XMLArr));\n };\n\n ExcelXlsxFactory.createWorksheetDrawingRel = function (currentRelationIndex) {\n var rs = relationshipsFactory.getTemplate([{\n Id: 'rId1',\n Type: 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing',\n Target: \"../drawings/drawing\" + (currentRelationIndex + 1) + \".xml\"\n }]);\n return createXmlPart(rs);\n };\n\n ExcelXlsxFactory.createWorksheet = function (worksheet, margins, pageSetup, headerFooterConfig) {\n return createXmlPart(worksheetFactory.getTemplate({\n worksheet: worksheet,\n currentSheet: this.sheetNames.length - 1,\n margins: margins,\n pageSetup: pageSetup,\n headerFooterConfig: headerFooterConfig\n }));\n };\n\n ExcelXlsxFactory.sharedStrings = new Map();\n ExcelXlsxFactory.sheetNames = [];\n /** Maps images to sheet */\n\n ExcelXlsxFactory.images = new Map();\n /** Maps sheets to images */\n\n ExcelXlsxFactory.worksheetImages = new Map();\n /** Maps all workbook images to a global Id */\n\n ExcelXlsxFactory.workbookImageIds = new Map();\n /** Maps all sheet images to unique Ids */\n\n ExcelXlsxFactory.worksheetImageIds = new Map();\n ExcelXlsxFactory.factoryMode = ExcelFactoryMode.SINGLE_SHEET;\n return ExcelXlsxFactory;\n}();\n\nvar __extends$2W = undefined && undefined.__extends || function () {\n var _extendStatics34 = function extendStatics(d, b) {\n _extendStatics34 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics34(d, b);\n };\n\n return function (d, b) {\n _extendStatics34(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar ExcelXlsxSerializingSession =\n/** @class */\nfunction (_super) {\n __extends$2W(ExcelXlsxSerializingSession, _super);\n\n function ExcelXlsxSerializingSession() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n ExcelXlsxSerializingSession.prototype.createExcel = function (data) {\n var _a = this,\n excelStyles = _a.excelStyles,\n config = _a.config;\n\n var margins = config.margins,\n pageSetup = config.pageSetup,\n headerFooterConfig = config.headerFooterConfig;\n return ExcelXlsxFactory.createExcel(excelStyles, data, margins, pageSetup, headerFooterConfig);\n };\n\n ExcelXlsxSerializingSession.prototype.getDataTypeForValue = function (valueForCell) {\n if (valueForCell === undefined) {\n return 'empty';\n }\n\n return _.isNumeric(valueForCell) ? 'n' : 's';\n };\n\n ExcelXlsxSerializingSession.prototype.getType = function (type, style, value) {\n if (this.isFormula(value)) {\n return 'f';\n }\n\n if (style && style.dataType) {\n switch (style.dataType.toLocaleLowerCase()) {\n case 'formula':\n return 'f';\n\n case 'string':\n return 's';\n\n case 'number':\n return 'n';\n\n case 'datetime':\n return 'd';\n\n case 'error':\n return 'e';\n\n case 'boolean':\n return 'b';\n\n default:\n console.warn(\"AG Grid: Unrecognized data type for excel export [\" + style.id + \".dataType=\" + style.dataType + \"]\");\n }\n }\n\n return type;\n };\n\n ExcelXlsxSerializingSession.prototype.addImage = function (rowIndex, column, value) {\n if (!this.config.addImageToCell) {\n return;\n }\n\n var addedImage = this.config.addImageToCell(rowIndex, column, value);\n\n if (!addedImage) {\n return;\n }\n\n ExcelXlsxFactory.buildImageMap(addedImage.image, rowIndex, column, this.columnsToExport, this.config.rowHeight);\n return addedImage;\n };\n\n ExcelXlsxSerializingSession.prototype.createCell = function (styleId, type, value) {\n var actualStyle = this.getStyleById(styleId);\n var typeTransformed = this.getType(type, actualStyle, value) || type;\n return {\n styleId: actualStyle ? styleId : undefined,\n data: {\n type: typeTransformed,\n value: this.getCellValue(typeTransformed, value)\n }\n };\n };\n\n ExcelXlsxSerializingSession.prototype.createMergedCell = function (styleId, type, value, numOfCells) {\n var valueToUse = value == null ? '' : value;\n return {\n styleId: !!this.getStyleById(styleId) ? styleId : undefined,\n data: {\n type: type,\n value: type === 's' ? ExcelXlsxFactory.getStringPosition(valueToUse).toString() : value\n },\n mergeAcross: numOfCells\n };\n };\n\n ExcelXlsxSerializingSession.prototype.getCellValue = function (type, value) {\n if (value == null) {\n return ExcelXlsxFactory.getStringPosition('').toString();\n }\n\n switch (type) {\n case 's':\n return value === '' ? '' : ExcelXlsxFactory.getStringPosition(value).toString();\n\n case 'f':\n return value.slice(1);\n\n case 'n':\n return Number(value).toString();\n\n default:\n return value;\n }\n };\n\n return ExcelXlsxSerializingSession;\n}(BaseExcelSerializingSession);\n\nvar __extends$2V = undefined && undefined.__extends || function () {\n var _extendStatics35 = function extendStatics(d, b) {\n _extendStatics35 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics35(d, b);\n };\n\n return function (d, b) {\n _extendStatics35(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$y = undefined && undefined.__assign || function () {\n __assign$y = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$y.apply(this, arguments);\n};\n\nvar __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar getMultipleSheetsAsExcel = function getMultipleSheetsAsExcel(params) {\n var data = params.data,\n _a = params.fontSize,\n fontSize = _a === void 0 ? 11 : _a,\n _b = params.author,\n author = _b === void 0 ? 'AG Grid' : _b;\n var hasImages = ExcelXlsxFactory.images.size > 0;\n ZipContainer.addFolders(['_rels/', 'docProps/', 'xl/', 'xl/theme/', 'xl/_rels/', 'xl/worksheets/']);\n\n if (hasImages) {\n ZipContainer.addFolders(['xl/worksheets/_rels', 'xl/drawings/', 'xl/drawings/_rels', 'xl/media/']);\n var imgCounter_1 = 0;\n ExcelXlsxFactory.images.forEach(function (value) {\n var firstImage = value[0].image[0];\n var ext = firstImage.imageType;\n ZipContainer.addFile(\"xl/media/image\" + ++imgCounter_1 + \".\" + ext, firstImage.base64, true);\n });\n }\n\n if (!data || data.length === 0) {\n console.warn(\"AG Grid: Invalid params supplied to getMultipleSheetsAsExcel() - `ExcelExportParams.data` is empty.\");\n ExcelXlsxFactory.resetFactory();\n return;\n }\n\n var sheetLen = data.length;\n var imageRelationCounter = 0;\n data.forEach(function (value, idx) {\n ZipContainer.addFile(\"xl/worksheets/sheet\" + (idx + 1) + \".xml\", value);\n\n if (hasImages && ExcelXlsxFactory.worksheetImages.get(idx)) {\n createImageRelationsForSheet(idx, imageRelationCounter++);\n }\n });\n ZipContainer.addFile('xl/workbook.xml', ExcelXlsxFactory.createWorkbook());\n ZipContainer.addFile('xl/styles.xml', ExcelXlsxFactory.createStylesheet(fontSize));\n ZipContainer.addFile('xl/sharedStrings.xml', ExcelXlsxFactory.createSharedStrings());\n ZipContainer.addFile('xl/theme/theme1.xml', ExcelXlsxFactory.createTheme());\n ZipContainer.addFile('xl/_rels/workbook.xml.rels', ExcelXlsxFactory.createWorkbookRels(sheetLen));\n ZipContainer.addFile('docProps/core.xml', ExcelXlsxFactory.createCore(author));\n ZipContainer.addFile('[Content_Types].xml', ExcelXlsxFactory.createContentTypes(sheetLen));\n ZipContainer.addFile('_rels/.rels', ExcelXlsxFactory.createRels());\n ExcelXlsxFactory.resetFactory();\n var mimeType = params.mimeType || 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';\n return ZipContainer.getContent(mimeType);\n};\n\nvar exportMultipleSheetsAsExcel = function exportMultipleSheetsAsExcel(params) {\n var _a = params.fileName,\n fileName = _a === void 0 ? 'export.xlsx' : _a;\n var contents = getMultipleSheetsAsExcel(params);\n\n if (contents) {\n Downloader.download(fileName, contents);\n }\n};\n\nvar createImageRelationsForSheet = function createImageRelationsForSheet(sheetIndex, currentRelationIndex) {\n var drawingFolder = 'xl/drawings';\n var drawingFileName = drawingFolder + \"/drawing\" + (currentRelationIndex + 1) + \".xml\";\n var relFileName = drawingFolder + \"/_rels/drawing\" + (currentRelationIndex + 1) + \".xml.rels\";\n var worksheetRelFile = \"xl/worksheets/_rels/sheet\" + (sheetIndex + 1) + \".xml.rels\";\n ZipContainer.addFile(relFileName, ExcelXlsxFactory.createDrawingRel(sheetIndex));\n ZipContainer.addFile(drawingFileName, ExcelXlsxFactory.createDrawing(sheetIndex));\n ZipContainer.addFile(worksheetRelFile, ExcelXlsxFactory.createWorksheetDrawingRel(currentRelationIndex));\n};\n\nvar ExcelCreator =\n/** @class */\nfunction (_super) {\n __extends$2V(ExcelCreator, _super);\n\n function ExcelCreator() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.exportMode = 'xlsx';\n return _this;\n }\n\n ExcelCreator.prototype.postConstruct = function () {\n this.setBeans({\n gridSerializer: this.gridSerializer,\n gridOptionsWrapper: this.gridOptionsWrapper\n });\n };\n\n ExcelCreator.prototype.getMergedParams = function (params) {\n var baseParams = this.gridOptionsWrapper.getDefaultExportParams('excel');\n return Object.assign({}, baseParams, params);\n };\n\n ExcelCreator.prototype.getData = function (params) {\n this.setExportMode(params.exportMode || 'xlsx');\n return _super.prototype.getData.call(this, params);\n };\n\n ExcelCreator.prototype.export = function (userParams) {\n if (this.isExportSuppressed()) {\n console.warn(\"AG Grid: Export cancelled. Export is not allowed as per your configuration.\");\n return '';\n }\n\n var mergedParams = this.getMergedParams(userParams);\n var data = this.getData(mergedParams);\n var exportParams = {\n data: [data],\n fontSize: mergedParams.fontSize,\n author: mergedParams.author,\n mimeType: mergedParams.mimeType\n };\n var packageFile = this.packageFile(exportParams);\n\n if (packageFile) {\n Downloader.download(this.getFileName(mergedParams.fileName), packageFile);\n }\n\n return data;\n };\n\n ExcelCreator.prototype.exportDataAsExcel = function (params) {\n return this.export(params);\n };\n\n ExcelCreator.prototype.getDataAsExcel = function (params) {\n var mergedParams = this.getMergedParams(params);\n var data = this.getData(mergedParams);\n\n if (params && params.exportMode === 'xml') {\n return data;\n }\n\n var exportParams = {\n data: [data],\n fontSize: mergedParams.fontSize,\n author: mergedParams.author,\n mimeType: mergedParams.mimeType\n };\n return this.packageFile(exportParams);\n };\n\n ExcelCreator.prototype.setFactoryMode = function (factoryMode, exportMode) {\n if (exportMode === void 0) {\n exportMode = 'xlsx';\n }\n\n var factory = exportMode === 'xlsx' ? ExcelXlsxFactory : ExcelXmlFactory;\n factory.factoryMode = factoryMode;\n };\n\n ExcelCreator.prototype.getFactoryMode = function (exportMode) {\n var factory = exportMode === 'xlsx' ? ExcelXlsxFactory : ExcelXmlFactory;\n return factory.factoryMode;\n };\n\n ExcelCreator.prototype.getSheetDataForExcel = function (params) {\n var mergedParams = this.getMergedParams(params);\n var data = this.getData(mergedParams);\n return data;\n };\n\n ExcelCreator.prototype.getMultipleSheetsAsExcel = function (params) {\n return getMultipleSheetsAsExcel(params);\n };\n\n ExcelCreator.prototype.exportMultipleSheetsAsExcel = function (params) {\n return exportMultipleSheetsAsExcel(params);\n };\n\n ExcelCreator.prototype.getDefaultFileName = function () {\n return \"export.\" + this.getExportMode();\n };\n\n ExcelCreator.prototype.getDefaultFileExtension = function () {\n return this.getExportMode();\n };\n\n ExcelCreator.prototype.createSerializingSession = function (params) {\n var _a = this,\n columnModel = _a.columnModel,\n valueService = _a.valueService,\n gridOptionsWrapper = _a.gridOptionsWrapper;\n\n var isXlsx = this.getExportMode() === 'xlsx';\n var sheetName = 'ag-grid';\n\n if (params.sheetName != null) {\n sheetName = _.utf8_encode(params.sheetName.toString().substr(0, 31));\n }\n\n var config = __assign$y(__assign$y({}, params), {\n sheetName: sheetName,\n columnModel: columnModel,\n valueService: valueService,\n gridOptionsWrapper: gridOptionsWrapper,\n headerRowHeight: params.headerRowHeight || params.rowHeight,\n baseExcelStyles: this.gridOptions.excelStyles || [],\n styleLinker: this.styleLinker.bind(this)\n });\n\n return new (isXlsx ? ExcelXlsxSerializingSession : ExcelXmlSerializingSession)(config);\n };\n\n ExcelCreator.prototype.styleLinker = function (rowType, rowIndex, value, column, node) {\n if (rowType === RowType.HEADER) {\n return [\"header\"];\n }\n\n if (rowType === RowType.HEADER_GROUPING) {\n return [\"header\", \"headerGroup\"];\n }\n\n var styles = this.gridOptions.excelStyles;\n var applicableStyles = [\"cell\"];\n\n if (!styles || !styles.length) {\n return applicableStyles;\n }\n\n var styleIds = styles.map(function (it) {\n return it.id;\n });\n this.stylingService.processAllCellClasses(column.getColDef(), {\n value: value,\n data: node.data,\n node: node,\n colDef: column.getColDef(),\n column: column,\n rowIndex: rowIndex,\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n context: this.gridOptionsWrapper.getContext()\n }, function (className) {\n if (styleIds.indexOf(className) > -1) {\n applicableStyles.push(className);\n }\n });\n return applicableStyles.sort(function (left, right) {\n return styleIds.indexOf(left) < styleIds.indexOf(right) ? -1 : 1;\n });\n };\n\n ExcelCreator.prototype.isExportSuppressed = function () {\n return this.gridOptionsWrapper.isSuppressExcelExport();\n };\n\n ExcelCreator.prototype.setExportMode = function (exportMode) {\n this.exportMode = exportMode;\n };\n\n ExcelCreator.prototype.getExportMode = function () {\n return this.exportMode;\n };\n\n ExcelCreator.prototype.packageFile = function (params) {\n if (this.getExportMode() === 'xml') {\n var mimeType = params.mimeType || 'application/vnd.ms-excel';\n return new Blob([\"\\uFEFF\", params.data[0]], {\n type: mimeType\n });\n }\n\n return getMultipleSheetsAsExcel(params);\n };\n\n __decorate$1v([Autowired('columnModel')], ExcelCreator.prototype, \"columnModel\", void 0);\n\n __decorate$1v([Autowired('valueService')], ExcelCreator.prototype, \"valueService\", void 0);\n\n __decorate$1v([Autowired('gridOptions')], ExcelCreator.prototype, \"gridOptions\", void 0);\n\n __decorate$1v([Autowired('stylingService')], ExcelCreator.prototype, \"stylingService\", void 0);\n\n __decorate$1v([Autowired('gridSerializer')], ExcelCreator.prototype, \"gridSerializer\", void 0);\n\n __decorate$1v([Autowired('gridOptionsWrapper')], ExcelCreator.prototype, \"gridOptionsWrapper\", void 0);\n\n __decorate$1v([PostConstruct], ExcelCreator.prototype, \"postConstruct\", null);\n\n ExcelCreator = __decorate$1v([Bean('excelCreator')], ExcelCreator);\n return ExcelCreator;\n}(BaseCreator);\n\nvar ExcelExportModule = {\n moduleName: ModuleNames.ExcelExportModule,\n beans: [// beans in this module\n ExcelCreator, // these beans are part of CSV Export module\n GridSerializer, CsvCreator],\n dependantModules: [CsvExportModule, EnterpriseCoreModule]\n};\n\nvar __extends$2U = undefined && undefined.__extends || function () {\n var _extendStatics36 = function extendStatics(d, b) {\n _extendStatics36 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics36(d, b);\n };\n\n return function (d, b) {\n _extendStatics36(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar EXPAND_STATE;\n\n(function (EXPAND_STATE) {\n EXPAND_STATE[EXPAND_STATE[\"EXPANDED\"] = 0] = \"EXPANDED\";\n EXPAND_STATE[EXPAND_STATE[\"COLLAPSED\"] = 1] = \"COLLAPSED\";\n EXPAND_STATE[EXPAND_STATE[\"INDETERMINATE\"] = 2] = \"INDETERMINATE\";\n})(EXPAND_STATE || (EXPAND_STATE = {}));\n\nvar FiltersToolPanelHeaderPanel =\n/** @class */\nfunction (_super) {\n __extends$2U(FiltersToolPanelHeaderPanel, _super);\n\n function FiltersToolPanelHeaderPanel() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n FiltersToolPanelHeaderPanel.prototype.preConstruct = function () {\n this.setTemplate(\n /* html */\n \"
\\n
\\n \\n
\");\n };\n\n FiltersToolPanelHeaderPanel.prototype.postConstruct = function () {\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n this.eFilterTextField.onValueChange(this.onSearchTextChanged.bind(this));\n this.eFilterTextField.setInputAriaLabel(translate('ariaFilterColumnsInput', 'Filter Columns Input'));\n this.createExpandIcons();\n this.setExpandState(EXPAND_STATE.EXPANDED);\n this.addManagedListener(this.eExpand, 'click', this.onExpandClicked.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.showOrHideOptions.bind(this));\n };\n\n FiltersToolPanelHeaderPanel.prototype.init = function (params) {\n this.params = params;\n\n if (this.columnModel.isReady()) {\n this.showOrHideOptions();\n }\n };\n\n FiltersToolPanelHeaderPanel.prototype.createExpandIcons = function () {\n this.eExpand.appendChild(this.eExpandChecked = _.createIconNoSpan('columnSelectOpen', this.gridOptionsWrapper));\n this.eExpand.appendChild(this.eExpandUnchecked = _.createIconNoSpan('columnSelectClosed', this.gridOptionsWrapper));\n this.eExpand.appendChild(this.eExpandIndeterminate = _.createIconNoSpan('columnSelectIndeterminate', this.gridOptionsWrapper));\n }; // we only show expand / collapse if we are showing filters\n\n\n FiltersToolPanelHeaderPanel.prototype.showOrHideOptions = function () {\n var showFilterSearch = !this.params.suppressFilterSearch;\n var showExpand = !this.params.suppressExpandAll;\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n this.eFilterTextField.setInputPlaceholder(translate('searchOoo', 'Search...'));\n\n var isFilterGroupPresent = function isFilterGroupPresent(col) {\n return col.getOriginalParent() && col.isFilterAllowed();\n };\n\n var filterGroupsPresent = this.columnModel.getAllGridColumns().some(isFilterGroupPresent);\n\n _.setDisplayed(this.eFilterTextField.getGui(), showFilterSearch);\n\n _.setDisplayed(this.eExpand, showExpand && filterGroupsPresent);\n };\n\n FiltersToolPanelHeaderPanel.prototype.onSearchTextChanged = function () {\n var _this = this;\n\n if (!this.onSearchTextChangedDebounced) {\n this.onSearchTextChangedDebounced = _.debounce(function () {\n _this.dispatchEvent({\n type: 'searchChanged',\n searchText: _this.eFilterTextField.getValue()\n });\n }, 300);\n }\n\n this.onSearchTextChangedDebounced();\n };\n\n FiltersToolPanelHeaderPanel.prototype.onExpandClicked = function () {\n var event = this.currentExpandState === EXPAND_STATE.EXPANDED ? {\n type: 'collapseAll'\n } : {\n type: 'expandAll'\n };\n this.dispatchEvent(event);\n };\n\n FiltersToolPanelHeaderPanel.prototype.setExpandState = function (state) {\n this.currentExpandState = state;\n\n _.setDisplayed(this.eExpandChecked, this.currentExpandState === EXPAND_STATE.EXPANDED);\n\n _.setDisplayed(this.eExpandUnchecked, this.currentExpandState === EXPAND_STATE.COLLAPSED);\n\n _.setDisplayed(this.eExpandIndeterminate, this.currentExpandState === EXPAND_STATE.INDETERMINATE);\n };\n\n __decorate$1u([Autowired('columnModel')], FiltersToolPanelHeaderPanel.prototype, \"columnModel\", void 0);\n\n __decorate$1u([RefSelector('eExpand')], FiltersToolPanelHeaderPanel.prototype, \"eExpand\", void 0);\n\n __decorate$1u([RefSelector('eFilterTextField')], FiltersToolPanelHeaderPanel.prototype, \"eFilterTextField\", void 0);\n\n __decorate$1u([PreConstruct], FiltersToolPanelHeaderPanel.prototype, \"preConstruct\", null);\n\n __decorate$1u([PostConstruct], FiltersToolPanelHeaderPanel.prototype, \"postConstruct\", null);\n\n return FiltersToolPanelHeaderPanel;\n}(Component);\n\nvar __extends$2T = undefined && undefined.__extends || function () {\n var _extendStatics37 = function extendStatics(d, b) {\n _extendStatics37 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics37(d, b);\n };\n\n return function (d, b) {\n _extendStatics37(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ToolPanelFilterComp =\n/** @class */\nfunction (_super) {\n __extends$2T(ToolPanelFilterComp, _super);\n\n function ToolPanelFilterComp(hideHeader) {\n if (hideHeader === void 0) {\n hideHeader = false;\n }\n\n var _this = _super.call(this, ToolPanelFilterComp.TEMPLATE) || this;\n\n _this.expanded = false;\n _this.hideHeader = hideHeader;\n return _this;\n }\n\n ToolPanelFilterComp.prototype.postConstruct = function () {\n this.eExpandChecked = _.createIconNoSpan('columnSelectOpen', this.gridOptionsWrapper);\n this.eExpandUnchecked = _.createIconNoSpan('columnSelectClosed', this.gridOptionsWrapper);\n this.eExpand.appendChild(this.eExpandChecked);\n this.eExpand.appendChild(this.eExpandUnchecked);\n };\n\n ToolPanelFilterComp.prototype.setColumn = function (column) {\n var _this = this;\n\n this.column = column;\n this.eFilterName.innerText = this.columnModel.getDisplayNameForColumn(this.column, 'filterToolPanel', false) || '';\n this.addManagedListener(this.eFilterToolPanelHeader, 'click', this.toggleExpanded.bind(this));\n this.addManagedListener(this.eFilterToolPanelHeader, 'keydown', function (e) {\n if (e.key === KeyCode.ENTER) {\n _this.toggleExpanded();\n }\n });\n this.addManagedListener(this.eventService, Events.EVENT_FILTER_OPENED, this.onFilterOpened.bind(this));\n this.addInIcon('filter', this.eFilterIcon, this.column);\n this.eFilterIcon.classList.toggle('ag-hidden', !this.isFilterActive());\n this.eExpandChecked.classList.add('ag-hidden');\n\n if (this.hideHeader) {\n this.eFilterToolPanelHeader.classList.toggle('ag-hidden', true);\n this.eFilterToolPanelHeader.removeAttribute('tabindex');\n } else {\n this.eFilterToolPanelHeader.setAttribute('tabindex', '0');\n }\n\n this.addManagedListener(this.column, Column.EVENT_FILTER_CHANGED, this.onFilterChanged.bind(this));\n };\n\n ToolPanelFilterComp.prototype.getColumn = function () {\n return this.column;\n };\n\n ToolPanelFilterComp.prototype.getColumnFilterName = function () {\n return this.columnModel.getDisplayNameForColumn(this.column, 'filterToolPanel', false);\n };\n\n ToolPanelFilterComp.prototype.addCssClassToTitleBar = function (cssClass) {\n this.eFilterToolPanelHeader.classList.add(cssClass);\n };\n\n ToolPanelFilterComp.prototype.addInIcon = function (iconName, eParent, column) {\n if (eParent == null) {\n return;\n }\n\n var eIcon = _.createIconNoSpan(iconName, this.gridOptionsWrapper, column);\n\n eParent.appendChild(eIcon);\n };\n\n ToolPanelFilterComp.prototype.isFilterActive = function () {\n return this.filterManager.isFilterActive(this.column);\n };\n\n ToolPanelFilterComp.prototype.onFilterChanged = function () {\n this.eFilterIcon.classList.toggle('ag-hidden', !this.isFilterActive());\n this.dispatchEvent({\n type: Column.EVENT_FILTER_CHANGED\n });\n };\n\n ToolPanelFilterComp.prototype.toggleExpanded = function () {\n this.expanded ? this.collapse() : this.expand();\n };\n\n ToolPanelFilterComp.prototype.expand = function () {\n var _this = this;\n\n var _a;\n\n if (this.expanded) {\n return;\n }\n\n this.expanded = true;\n\n _.setAriaExpanded(this.eFilterToolPanelHeader, true);\n\n var container = _.loadTemplate(\n /* html */\n \"
\");\n\n var filterPromise = (_a = this.filterManager.getOrCreateFilterWrapper(this.column, 'TOOLBAR')) === null || _a === void 0 ? void 0 : _a.filterPromise;\n\n if (filterPromise) {\n filterPromise.then(function (filter) {\n _this.underlyingFilter = filter;\n\n if (!filter) {\n return;\n }\n\n container.appendChild(filter.getGui());\n\n _this.agFilterToolPanelBody.appendChild(container);\n\n if (filter.afterGuiAttached) {\n filter.afterGuiAttached({\n container: 'toolPanel'\n });\n }\n });\n }\n\n _.setDisplayed(this.eExpandChecked, true);\n\n _.setDisplayed(this.eExpandUnchecked, false);\n };\n\n ToolPanelFilterComp.prototype.collapse = function () {\n if (!this.expanded) {\n return;\n }\n\n this.expanded = false;\n\n _.setAriaExpanded(this.eFilterToolPanelHeader, false);\n\n this.agFilterToolPanelBody.removeChild(this.agFilterToolPanelBody.children[0]);\n\n _.setDisplayed(this.eExpandChecked, false);\n\n _.setDisplayed(this.eExpandUnchecked, true);\n };\n\n ToolPanelFilterComp.prototype.refreshFilter = function () {\n if (!this.expanded) {\n return;\n }\n\n var filter = this.underlyingFilter;\n\n if (!filter) {\n return;\n } // set filters should be updated when the filter has been changed elsewhere, i.e. via api. Note that we can't\n // use 'afterGuiAttached' to refresh the virtual list as it also focuses on the mini filter which changes the\n // scroll position in the filter list panel\n\n\n if (typeof filter.refreshVirtualList === 'function') {\n filter.refreshVirtualList();\n }\n };\n\n ToolPanelFilterComp.prototype.onFilterOpened = function (event) {\n if (event.source !== 'COLUMN_MENU') {\n return;\n }\n\n if (event.column !== this.column) {\n return;\n }\n\n if (!this.expanded) {\n return;\n }\n\n this.collapse();\n };\n\n ToolPanelFilterComp.TEMPLATE = \"\\n
\\n
\\n
\\n \\n \\n
\\n
\\n
\";\n\n __decorate$1t([RefSelector('eFilterToolPanelHeader')], ToolPanelFilterComp.prototype, \"eFilterToolPanelHeader\", void 0);\n\n __decorate$1t([RefSelector('eFilterName')], ToolPanelFilterComp.prototype, \"eFilterName\", void 0);\n\n __decorate$1t([RefSelector('agFilterToolPanelBody')], ToolPanelFilterComp.prototype, \"agFilterToolPanelBody\", void 0);\n\n __decorate$1t([RefSelector('eFilterIcon')], ToolPanelFilterComp.prototype, \"eFilterIcon\", void 0);\n\n __decorate$1t([RefSelector('eExpand')], ToolPanelFilterComp.prototype, \"eExpand\", void 0);\n\n __decorate$1t([Autowired('filterManager')], ToolPanelFilterComp.prototype, \"filterManager\", void 0);\n\n __decorate$1t([Autowired('columnModel')], ToolPanelFilterComp.prototype, \"columnModel\", void 0);\n\n __decorate$1t([PostConstruct], ToolPanelFilterComp.prototype, \"postConstruct\", null);\n\n return ToolPanelFilterComp;\n}(Component);\n\nvar __extends$2S = undefined && undefined.__extends || function () {\n var _extendStatics38 = function extendStatics(d, b) {\n _extendStatics38 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics38(d, b);\n };\n\n return function (d, b) {\n _extendStatics38(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ToolPanelFilterGroupComp =\n/** @class */\nfunction (_super) {\n __extends$2S(ToolPanelFilterGroupComp, _super);\n\n function ToolPanelFilterGroupComp(columnGroup, childFilterComps, expandedCallback, depth, showingColumn) {\n var _this = _super.call(this) || this;\n\n _this.columnGroup = columnGroup;\n _this.childFilterComps = childFilterComps;\n _this.depth = depth;\n _this.expandedCallback = expandedCallback;\n _this.showingColumn = showingColumn;\n return _this;\n }\n\n ToolPanelFilterGroupComp.prototype.preConstruct = function () {\n var groupParams = {\n cssIdentifier: 'filter-toolpanel',\n direction: 'vertical'\n };\n this.setTemplate(ToolPanelFilterGroupComp.TEMPLATE, {\n filterGroupComp: groupParams\n });\n };\n\n ToolPanelFilterGroupComp.prototype.init = function () {\n var _this = this;\n\n this.setGroupTitle();\n this.filterGroupComp.setAlignItems('stretch');\n this.filterGroupComp.addCssClass(\"ag-filter-toolpanel-group-level-\" + this.depth);\n this.filterGroupComp.addCssClassToTitleBar(\"ag-filter-toolpanel-group-level-\" + this.depth + \"-header\");\n this.childFilterComps.forEach(function (filterComp) {\n _this.filterGroupComp.addItem(filterComp);\n\n filterComp.addCssClassToTitleBar(\"ag-filter-toolpanel-group-level-\" + (_this.depth + 1) + \"-header\");\n });\n this.refreshFilterClass();\n this.addExpandCollapseListeners();\n this.addFilterChangedListeners();\n this.setupTooltip();\n };\n\n ToolPanelFilterGroupComp.prototype.setupTooltip = function () {\n var _this = this; // we don't show tooltips for groups, as when the group expands, it's div contains the columns which also\n // have tooltips, so the tooltips would clash. Eg mouse over group, tooltip shows, mouse over column, another\n // tooltip shows but cos we didn't leave the group the group tooltip remains. this should be fixed in the future,\n // maybe the group shouldn't contain the children form a DOM perspective.\n\n\n if (!this.showingColumn) {\n return;\n }\n\n var refresh = function refresh() {\n var newTooltipText = _this.columnGroup.getColDef().headerTooltip;\n\n _this.setTooltip(newTooltipText);\n };\n\n refresh();\n this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, refresh);\n };\n\n ToolPanelFilterGroupComp.prototype.getTooltipParams = function () {\n var res = _super.prototype.getTooltipParams.call(this);\n\n res.location = 'filterToolPanelColumnGroup';\n return res;\n };\n\n ToolPanelFilterGroupComp.prototype.addCssClassToTitleBar = function (cssClass) {\n this.filterGroupComp.addCssClassToTitleBar(cssClass);\n };\n\n ToolPanelFilterGroupComp.prototype.refreshFilters = function () {\n this.childFilterComps.forEach(function (filterComp) {\n if (filterComp instanceof ToolPanelFilterGroupComp) {\n filterComp.refreshFilters();\n } else {\n filterComp.refreshFilter();\n }\n });\n };\n\n ToolPanelFilterGroupComp.prototype.isColumnGroup = function () {\n return this.columnGroup instanceof ProvidedColumnGroup;\n };\n\n ToolPanelFilterGroupComp.prototype.isExpanded = function () {\n return this.filterGroupComp.isExpanded();\n };\n\n ToolPanelFilterGroupComp.prototype.getChildren = function () {\n return this.childFilterComps;\n };\n\n ToolPanelFilterGroupComp.prototype.getFilterGroupName = function () {\n return this.filterGroupName ? this.filterGroupName : '';\n };\n\n ToolPanelFilterGroupComp.prototype.getFilterGroupId = function () {\n return this.columnGroup.getId();\n };\n\n ToolPanelFilterGroupComp.prototype.hideGroupItem = function (hide, index) {\n this.filterGroupComp.hideItem(hide, index);\n };\n\n ToolPanelFilterGroupComp.prototype.hideGroup = function (hide) {\n this.addOrRemoveCssClass('ag-hidden', hide);\n };\n\n ToolPanelFilterGroupComp.prototype.forEachToolPanelFilterChild = function (action) {\n this.childFilterComps.forEach(function (filterComp) {\n if (filterComp instanceof ToolPanelFilterComp) {\n action(filterComp);\n }\n });\n };\n\n ToolPanelFilterGroupComp.prototype.addExpandCollapseListeners = function () {\n var _this = this;\n\n var expandListener = this.isColumnGroup() ? function () {\n return _this.expandedCallback();\n } : function () {\n return _this.forEachToolPanelFilterChild(function (filterComp) {\n return filterComp.expand();\n });\n };\n var collapseListener = this.isColumnGroup() ? function () {\n return _this.expandedCallback();\n } : function () {\n return _this.forEachToolPanelFilterChild(function (filterComp) {\n return filterComp.collapse();\n });\n };\n this.addManagedListener(this.filterGroupComp, AgGroupComponent.EVENT_EXPANDED, expandListener);\n this.addManagedListener(this.filterGroupComp, AgGroupComponent.EVENT_COLLAPSED, collapseListener);\n };\n\n ToolPanelFilterGroupComp.prototype.getColumns = function () {\n if (this.columnGroup instanceof ProvidedColumnGroup) {\n return this.columnGroup.getLeafColumns();\n }\n\n return [this.columnGroup];\n };\n\n ToolPanelFilterGroupComp.prototype.addFilterChangedListeners = function () {\n var _this = this;\n\n this.getColumns().forEach(function (column) {\n _this.addManagedListener(column, Column.EVENT_FILTER_CHANGED, function () {\n return _this.refreshFilterClass();\n });\n });\n\n if (!(this.columnGroup instanceof ProvidedColumnGroup)) {\n this.addManagedListener(this.eventService, Events.EVENT_FILTER_OPENED, this.onFilterOpened.bind(this));\n }\n };\n\n ToolPanelFilterGroupComp.prototype.refreshFilterClass = function () {\n var columns = this.getColumns();\n\n var anyChildFiltersActive = function anyChildFiltersActive() {\n return columns.some(function (col) {\n return col.isFilterActive();\n });\n };\n\n this.filterGroupComp.addOrRemoveCssClass('ag-has-filter', anyChildFiltersActive());\n };\n\n ToolPanelFilterGroupComp.prototype.onFilterOpened = function (event) {\n // when a filter is opened elsewhere, i.e. column menu we close the filter comp so we also need to collapse\n // the column group. This approach means we don't need to try and sync filter models on the same column.\n if (event.source !== 'COLUMN_MENU') {\n return;\n }\n\n if (event.column !== this.columnGroup) {\n return;\n }\n\n if (!this.isExpanded()) {\n return;\n }\n\n this.collapse();\n };\n\n ToolPanelFilterGroupComp.prototype.expand = function () {\n this.filterGroupComp.toggleGroupExpand(true);\n };\n\n ToolPanelFilterGroupComp.prototype.collapse = function () {\n this.filterGroupComp.toggleGroupExpand(false);\n };\n\n ToolPanelFilterGroupComp.prototype.setGroupTitle = function () {\n this.filterGroupName = this.columnGroup instanceof ProvidedColumnGroup ? this.getColumnGroupName(this.columnGroup) : this.getColumnName(this.columnGroup);\n this.filterGroupComp.setTitle(this.filterGroupName || '');\n };\n\n ToolPanelFilterGroupComp.prototype.getColumnGroupName = function (columnGroup) {\n return this.columnModel.getDisplayNameForProvidedColumnGroup(null, columnGroup, 'filterToolPanel');\n };\n\n ToolPanelFilterGroupComp.prototype.getColumnName = function (column) {\n return this.columnModel.getDisplayNameForColumn(column, 'filterToolPanel', false);\n };\n\n ToolPanelFilterGroupComp.prototype.destroyFilters = function () {\n this.childFilterComps = this.destroyBeans(this.childFilterComps);\n\n _.clearElement(this.getGui());\n };\n\n ToolPanelFilterGroupComp.prototype.destroy = function () {\n this.destroyFilters();\n\n _super.prototype.destroy.call(this);\n };\n\n ToolPanelFilterGroupComp.TEMPLATE = \"
\\n \\n
\";\n\n __decorate$1s([RefSelector('filterGroupComp')], ToolPanelFilterGroupComp.prototype, \"filterGroupComp\", void 0);\n\n __decorate$1s([Autowired('columnModel')], ToolPanelFilterGroupComp.prototype, \"columnModel\", void 0);\n\n __decorate$1s([PreConstruct], ToolPanelFilterGroupComp.prototype, \"preConstruct\", null);\n\n __decorate$1s([PostConstruct], ToolPanelFilterGroupComp.prototype, \"init\", null);\n\n return ToolPanelFilterGroupComp;\n}(Component);\n\nvar __extends$2R = undefined && undefined.__extends || function () {\n var _extendStatics39 = function extendStatics(d, b) {\n _extendStatics39 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics39(d, b);\n };\n\n return function (d, b) {\n _extendStatics39(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar FiltersToolPanelListPanel =\n/** @class */\nfunction (_super) {\n __extends$2R(FiltersToolPanelListPanel, _super);\n\n function FiltersToolPanelListPanel() {\n var _this = _super.call(this, FiltersToolPanelListPanel.TEMPLATE) || this;\n\n _this.initialised = false;\n _this.filterGroupComps = [];\n return _this;\n }\n\n FiltersToolPanelListPanel.prototype.init = function (params) {\n var _this = this;\n\n this.initialised = true;\n var defaultParams = {\n suppressExpandAll: false,\n suppressFilterSearch: false,\n suppressSyncLayoutWithGrid: false,\n api: this.gridApi,\n columnApi: this.columnApi,\n context: this.gridOptionsWrapper.getContext()\n };\n\n _.mergeDeep(defaultParams, params);\n\n this.params = defaultParams;\n\n if (!this.params.suppressSyncLayoutWithGrid) {\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_MOVED, function () {\n return _this.onColumnsChanged();\n });\n }\n\n this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, function () {\n return _this.onColumnsChanged();\n });\n this.addManagedListener(this.eventService, Events.EVENT_TOOL_PANEL_VISIBLE_CHANGED, function (event) {\n // when re-entering the filters tool panel we need to refresh the virtual lists in the set filters in case\n // filters have been changed elsewhere, i.e. via an api call.\n if (event.source === 'filters') {\n _this.refreshFilters();\n }\n });\n\n if (this.columnModel.isReady()) {\n this.onColumnsChanged();\n }\n };\n\n FiltersToolPanelListPanel.prototype.onColumnsChanged = function () {\n var pivotModeActive = this.columnModel.isPivotMode();\n var shouldSyncColumnLayoutWithGrid = !this.params.suppressSyncLayoutWithGrid && !pivotModeActive;\n shouldSyncColumnLayoutWithGrid ? this.syncFilterLayout() : this.buildTreeFromProvidedColumnDefs();\n };\n\n FiltersToolPanelListPanel.prototype.syncFilterLayout = function () {\n this.toolPanelColDefService.syncLayoutWithGrid(this.setFiltersLayout.bind(this));\n };\n\n FiltersToolPanelListPanel.prototype.buildTreeFromProvidedColumnDefs = function () {\n var _this = this;\n\n this.destroyFilters();\n var columnTree = this.columnModel.getPrimaryColumnTree();\n this.filterGroupComps = this.recursivelyAddComps(columnTree, 0);\n var len = this.filterGroupComps.length;\n\n if (len) {\n // skip the destroy function because this will be managed\n // by the `destroyFilters` function\n this.filterGroupComps.forEach(function (comp) {\n return _this.appendChild(comp);\n });\n this.setFirstAndLastVisible(0, len - 1);\n } // perform search if searchFilterText exists\n\n\n if (_.exists(this.searchFilterText)) {\n this.searchFilters(this.searchFilterText);\n } // notify header of expand\n\n\n this.fireExpandedEvent();\n };\n\n FiltersToolPanelListPanel.prototype.setFiltersLayout = function (colDefs) {\n var _this = this;\n\n this.destroyFilters();\n var columnTree = this.toolPanelColDefService.createColumnTree(colDefs);\n this.filterGroupComps = this.recursivelyAddComps(columnTree, 0);\n var len = this.filterGroupComps.length;\n\n if (len) {\n // skip the destroy function because this will be managed\n // by the `destroyFilters` function\n this.filterGroupComps.forEach(function (comp) {\n return _this.appendChild(comp);\n });\n this.setFirstAndLastVisible(0, len - 1);\n } // perform search if searchFilterText exists\n\n\n if (_.exists(this.searchFilterText)) {\n this.searchFilters(this.searchFilterText);\n } // notify header of expand\n\n\n this.fireExpandedEvent();\n };\n\n FiltersToolPanelListPanel.prototype.recursivelyAddComps = function (tree, depth) {\n var _this = this;\n\n return _.flatten(tree.map(function (child) {\n if (child instanceof ProvidedColumnGroup) {\n return _.flatten(_this.recursivelyAddFilterGroupComps(child, depth));\n }\n\n var column = child;\n\n if (!_this.shouldDisplayFilter(column)) {\n return [];\n }\n\n var hideFilterCompHeader = depth === 0;\n var filterComp = new ToolPanelFilterComp(hideFilterCompHeader);\n\n _this.createBean(filterComp);\n\n filterComp.setColumn(column);\n\n if (depth > 0) {\n return filterComp;\n }\n\n var filterGroupComp = _this.createBean(new ToolPanelFilterGroupComp(column, [filterComp], _this.onGroupExpanded.bind(_this), depth, true));\n\n filterGroupComp.addCssClassToTitleBar('ag-filter-toolpanel-header');\n filterGroupComp.collapse();\n return filterGroupComp;\n }));\n };\n\n FiltersToolPanelListPanel.prototype.recursivelyAddFilterGroupComps = function (columnGroup, depth) {\n if (!this.filtersExistInChildren(columnGroup.getChildren())) {\n return;\n }\n\n var colGroupDef = columnGroup.getColGroupDef();\n\n if (colGroupDef && colGroupDef.suppressFiltersToolPanel) {\n return [];\n }\n\n var newDepth = columnGroup.isPadding() ? depth : depth + 1;\n\n var childFilterComps = _.flatten(this.recursivelyAddComps(columnGroup.getChildren(), newDepth));\n\n if (columnGroup.isPadding()) {\n return childFilterComps;\n }\n\n var filterGroupComp = new ToolPanelFilterGroupComp(columnGroup, childFilterComps, this.onGroupExpanded.bind(this), depth, false);\n this.createBean(filterGroupComp);\n filterGroupComp.addCssClassToTitleBar('ag-filter-toolpanel-header');\n return [filterGroupComp];\n };\n\n FiltersToolPanelListPanel.prototype.filtersExistInChildren = function (tree) {\n var _this = this;\n\n return tree.some(function (child) {\n if (child instanceof ProvidedColumnGroup) {\n return _this.filtersExistInChildren(child.getChildren());\n }\n\n return _this.shouldDisplayFilter(child);\n });\n };\n\n FiltersToolPanelListPanel.prototype.shouldDisplayFilter = function (column) {\n var suppressFiltersToolPanel = column.getColDef() && column.getColDef().suppressFiltersToolPanel;\n return column.isFilterAllowed() && !suppressFiltersToolPanel;\n }; // we don't support refreshing, but must implement because it's on the tool panel interface\n\n\n FiltersToolPanelListPanel.prototype.refresh = function () {}; // lazy initialise the panel\n\n\n FiltersToolPanelListPanel.prototype.setVisible = function (visible) {\n _super.prototype.setDisplayed.call(this, visible);\n\n if (visible && !this.initialised) {\n this.init(this.params);\n }\n };\n\n FiltersToolPanelListPanel.prototype.expandFilterGroups = function (expand, groupIds) {\n var updatedGroupIds = [];\n\n var updateGroupExpandState = function updateGroupExpandState(filterGroup) {\n var groupId = filterGroup.getFilterGroupId();\n\n var shouldExpandOrCollapse = !groupIds || _.includes(groupIds, groupId);\n\n if (shouldExpandOrCollapse) {\n // don't expand 'column groups', i.e. top level columns wrapped in a group\n if (expand && filterGroup.isColumnGroup()) {\n filterGroup.expand();\n } else {\n filterGroup.collapse();\n }\n\n updatedGroupIds.push(groupId);\n } // recursively look for more groups to expand / collapse\n\n\n filterGroup.getChildren().forEach(function (child) {\n if (child instanceof ToolPanelFilterGroupComp) {\n updateGroupExpandState(child);\n }\n });\n };\n\n this.filterGroupComps.forEach(updateGroupExpandState); // update header expand / collapse icon\n\n this.onGroupExpanded();\n\n if (groupIds) {\n var unrecognisedGroupIds = groupIds.filter(function (groupId) {\n return updatedGroupIds.indexOf(groupId) < 0;\n });\n\n if (unrecognisedGroupIds.length > 0) {\n console.warn('AG Grid: unable to find groups for these supplied groupIds:', unrecognisedGroupIds);\n }\n }\n };\n\n FiltersToolPanelListPanel.prototype.expandFilters = function (expand, colIds) {\n var updatedColIds = [];\n\n var updateGroupExpandState = function updateGroupExpandState(filterComp) {\n if (filterComp instanceof ToolPanelFilterGroupComp) {\n var anyChildrenChanged_1 = false;\n filterComp.getChildren().forEach(function (child) {\n var childUpdated = updateGroupExpandState(child);\n\n if (childUpdated) {\n if (expand) {\n filterComp.expand();\n anyChildrenChanged_1 = true;\n } else if (!filterComp.isColumnGroup()) {\n // we only collapse columns wrapped in groups\n filterComp.collapse();\n }\n }\n });\n return anyChildrenChanged_1;\n }\n\n var colId = filterComp.getColumn().getColId();\n\n var updateFilterExpandState = !colIds || _.includes(colIds, colId);\n\n if (updateFilterExpandState) {\n expand ? filterComp.expand() : filterComp.collapse();\n updatedColIds.push(colId);\n }\n\n return updateFilterExpandState;\n };\n\n this.filterGroupComps.forEach(updateGroupExpandState); // update header expand / collapse icon\n\n this.onGroupExpanded();\n\n if (colIds) {\n var unrecognisedColIds = colIds.filter(function (colId) {\n return updatedColIds.indexOf(colId) < 0;\n });\n\n if (unrecognisedColIds.length > 0) {\n console.warn('AG Grid: unable to find columns for these supplied colIds:', unrecognisedColIds);\n }\n }\n };\n\n FiltersToolPanelListPanel.prototype.onGroupExpanded = function () {\n this.fireExpandedEvent();\n };\n\n FiltersToolPanelListPanel.prototype.fireExpandedEvent = function () {\n var expandedCount = 0;\n var notExpandedCount = 0;\n\n var updateExpandCounts = function updateExpandCounts(filterGroup) {\n if (!filterGroup.isColumnGroup()) {\n return;\n }\n\n filterGroup.isExpanded() ? expandedCount++ : notExpandedCount++;\n filterGroup.getChildren().forEach(function (child) {\n if (child instanceof ToolPanelFilterGroupComp) {\n updateExpandCounts(child);\n }\n });\n };\n\n this.filterGroupComps.forEach(updateExpandCounts);\n var state;\n\n if (expandedCount > 0 && notExpandedCount > 0) {\n state = EXPAND_STATE.INDETERMINATE;\n } else if (notExpandedCount > 0) {\n state = EXPAND_STATE.COLLAPSED;\n } else {\n state = EXPAND_STATE.EXPANDED;\n }\n\n this.dispatchEvent({\n type: 'groupExpanded',\n state: state\n });\n };\n\n FiltersToolPanelListPanel.prototype.performFilterSearch = function (searchText) {\n this.searchFilterText = _.exists(searchText) ? searchText.toLowerCase() : null;\n this.searchFilters(this.searchFilterText);\n };\n\n FiltersToolPanelListPanel.prototype.searchFilters = function (searchFilter) {\n var passesFilter = function passesFilter(groupName) {\n return !_.exists(searchFilter) || groupName.toLowerCase().indexOf(searchFilter) !== -1;\n };\n\n var recursivelySearch = function recursivelySearch(filterItem, parentPasses) {\n if (!(filterItem instanceof ToolPanelFilterGroupComp)) {\n return passesFilter(filterItem.getColumnFilterName() || '');\n }\n\n var children = filterItem.getChildren();\n var groupNamePasses = passesFilter(filterItem.getFilterGroupName()); // if group or parent already passed - ensure this group and all children are visible\n\n var alreadyPassed = parentPasses || groupNamePasses;\n\n if (alreadyPassed) {\n // ensure group visible\n filterItem.hideGroup(false); // ensure all children are visible\n\n for (var i = 0; i < children.length; i++) {\n recursivelySearch(children[i], alreadyPassed);\n filterItem.hideGroupItem(false, i);\n }\n\n return true;\n } // hide group item filters\n\n\n var anyChildPasses = false;\n children.forEach(function (child, index) {\n var childPasses = recursivelySearch(child, parentPasses);\n filterItem.hideGroupItem(!childPasses, index);\n\n if (childPasses) {\n anyChildPasses = true;\n }\n }); // hide group if no children pass\n\n filterItem.hideGroup(!anyChildPasses);\n return anyChildPasses;\n };\n\n var firstVisible;\n var lastVisible;\n this.filterGroupComps.forEach(function (filterGroup, idx) {\n recursivelySearch(filterGroup, false);\n\n if (firstVisible === undefined) {\n if (!filterGroup.containsCssClass('ag-hidden')) {\n firstVisible = idx;\n lastVisible = idx;\n }\n } else if (!filterGroup.containsCssClass('ag-hidden') && lastVisible !== idx) {\n lastVisible = idx;\n }\n });\n this.setFirstAndLastVisible(firstVisible, lastVisible);\n };\n\n FiltersToolPanelListPanel.prototype.setFirstAndLastVisible = function (firstIdx, lastIdx) {\n this.filterGroupComps.forEach(function (filterGroup, idx) {\n filterGroup.removeCssClass('ag-first-group-visible');\n filterGroup.removeCssClass('ag-last-group-visible');\n\n if (idx === firstIdx) {\n filterGroup.addCssClass('ag-first-group-visible');\n }\n\n if (idx === lastIdx) {\n filterGroup.addCssClass('ag-last-group-visible');\n }\n });\n };\n\n FiltersToolPanelListPanel.prototype.refreshFilters = function () {\n this.filterGroupComps.forEach(function (filterGroupComp) {\n return filterGroupComp.refreshFilters();\n });\n };\n\n FiltersToolPanelListPanel.prototype.destroyFilters = function () {\n this.filterGroupComps = this.destroyBeans(this.filterGroupComps);\n\n _.clearElement(this.getGui());\n };\n\n FiltersToolPanelListPanel.prototype.destroy = function () {\n this.destroyFilters();\n\n _super.prototype.destroy.call(this);\n };\n\n FiltersToolPanelListPanel.TEMPLATE = \"
\";\n\n __decorate$1r([Autowired(\"gridApi\")], FiltersToolPanelListPanel.prototype, \"gridApi\", void 0);\n\n __decorate$1r([Autowired(\"columnApi\")], FiltersToolPanelListPanel.prototype, \"columnApi\", void 0);\n\n __decorate$1r([Autowired('toolPanelColDefService')], FiltersToolPanelListPanel.prototype, \"toolPanelColDefService\", void 0);\n\n __decorate$1r([Autowired('columnModel')], FiltersToolPanelListPanel.prototype, \"columnModel\", void 0);\n\n return FiltersToolPanelListPanel;\n}(Component);\n\nvar __extends$2Q = undefined && undefined.__extends || function () {\n var _extendStatics40 = function extendStatics(d, b) {\n _extendStatics40 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics40(d, b);\n };\n\n return function (d, b) {\n _extendStatics40(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar FiltersToolPanel =\n/** @class */\nfunction (_super) {\n __extends$2Q(FiltersToolPanel, _super);\n\n function FiltersToolPanel() {\n var _this = _super.call(this, FiltersToolPanel.TEMPLATE) || this;\n\n _this.initialised = false;\n _this.listenerDestroyFuncs = [];\n return _this;\n }\n\n FiltersToolPanel.prototype.init = function (params) {\n // if initialised is true, means this is a refresh\n if (this.initialised) {\n this.listenerDestroyFuncs.forEach(function (func) {\n return func();\n });\n this.listenerDestroyFuncs = [];\n }\n\n this.initialised = true;\n var defaultParams = {\n suppressExpandAll: false,\n suppressFilterSearch: false,\n suppressSyncLayoutWithGrid: false,\n api: this.gridApi,\n columnApi: this.columnApi,\n context: this.gridOptionsWrapper.getContext()\n };\n\n _.mergeDeep(defaultParams, params);\n\n this.params = defaultParams;\n this.filtersToolPanelHeaderPanel.init(this.params);\n this.filtersToolPanelListPanel.init(this.params);\n var hideExpand = this.params.suppressExpandAll;\n var hideSearch = this.params.suppressFilterSearch;\n\n if (hideExpand && hideSearch) {\n this.filtersToolPanelHeaderPanel.setDisplayed(false);\n } // this is necessary to prevent a memory leak while refreshing the tool panel\n\n\n this.listenerDestroyFuncs.push(this.addManagedListener(this.filtersToolPanelHeaderPanel, 'expandAll', this.onExpandAll.bind(this)), this.addManagedListener(this.filtersToolPanelHeaderPanel, 'collapseAll', this.onCollapseAll.bind(this)), this.addManagedListener(this.filtersToolPanelHeaderPanel, 'searchChanged', this.onSearchChanged.bind(this)), this.addManagedListener(this.filtersToolPanelListPanel, 'groupExpanded', this.onGroupExpanded.bind(this)));\n }; // lazy initialise the panel\n\n\n FiltersToolPanel.prototype.setVisible = function (visible) {\n _super.prototype.setDisplayed.call(this, visible);\n\n if (visible && !this.initialised) {\n this.init(this.params);\n }\n };\n\n FiltersToolPanel.prototype.onExpandAll = function () {\n this.filtersToolPanelListPanel.expandFilterGroups(true);\n };\n\n FiltersToolPanel.prototype.onCollapseAll = function () {\n this.filtersToolPanelListPanel.expandFilterGroups(false);\n };\n\n FiltersToolPanel.prototype.onSearchChanged = function (event) {\n this.filtersToolPanelListPanel.performFilterSearch(event.searchText);\n };\n\n FiltersToolPanel.prototype.setFilterLayout = function (colDefs) {\n this.filtersToolPanelListPanel.setFiltersLayout(colDefs);\n };\n\n FiltersToolPanel.prototype.onGroupExpanded = function (event) {\n this.filtersToolPanelHeaderPanel.setExpandState(event.state);\n };\n\n FiltersToolPanel.prototype.expandFilterGroups = function (groupIds) {\n this.filtersToolPanelListPanel.expandFilterGroups(true, groupIds);\n };\n\n FiltersToolPanel.prototype.collapseFilterGroups = function (groupIds) {\n this.filtersToolPanelListPanel.expandFilterGroups(false, groupIds);\n };\n\n FiltersToolPanel.prototype.expandFilters = function (colIds) {\n this.filtersToolPanelListPanel.expandFilters(true, colIds);\n };\n\n FiltersToolPanel.prototype.collapseFilters = function (colIds) {\n this.filtersToolPanelListPanel.expandFilters(false, colIds);\n };\n\n FiltersToolPanel.prototype.syncLayoutWithGrid = function () {\n this.filtersToolPanelListPanel.syncFilterLayout();\n };\n\n FiltersToolPanel.prototype.refresh = function () {\n this.init(this.params);\n }; // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n // so we need to override destroy() just to make the method public.\n\n\n FiltersToolPanel.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n FiltersToolPanel.TEMPLATE = \"
\\n \\n \\n
\";\n\n __decorate$1q([RefSelector('filtersToolPanelHeaderPanel')], FiltersToolPanel.prototype, \"filtersToolPanelHeaderPanel\", void 0);\n\n __decorate$1q([RefSelector('filtersToolPanelListPanel')], FiltersToolPanel.prototype, \"filtersToolPanelListPanel\", void 0);\n\n __decorate$1q([Autowired('gridApi')], FiltersToolPanel.prototype, \"gridApi\", void 0);\n\n __decorate$1q([Autowired('columnApi')], FiltersToolPanel.prototype, \"columnApi\", void 0);\n\n return FiltersToolPanel;\n}(Component);\n\nvar FiltersToolPanelModule = {\n moduleName: ModuleNames.FiltersToolPanelModule,\n beans: [],\n agStackComponents: [{\n componentName: 'AgFiltersToolPanelHeader',\n componentClass: FiltersToolPanelHeaderPanel\n }, {\n componentName: 'AgFiltersToolPanelList',\n componentClass: FiltersToolPanelListPanel\n }],\n userComponents: [{\n componentName: 'agFiltersToolPanel',\n componentClass: FiltersToolPanel\n }],\n dependantModules: [SideBarModule, EnterpriseCoreModule]\n};\n\nvar __extends$2P = undefined && undefined.__extends || function () {\n var _extendStatics41 = function extendStatics(d, b) {\n _extendStatics41 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics41(d, b);\n };\n\n return function (d, b) {\n _extendStatics41(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ChartDatasource =\n/** @class */\nfunction (_super) {\n __extends$2P(ChartDatasource, _super);\n\n function ChartDatasource() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n ChartDatasource.prototype.getData = function (params) {\n if (params.crossFiltering) {\n if (params.grouping) {\n console.warn(\"AG Grid: crossing filtering with row grouping is not supported.\");\n return {\n chartData: [],\n columnNames: {}\n };\n }\n\n if (!this.gridOptionsWrapper.isRowModelDefault()) {\n console.warn(\"AG Grid: crossing filtering is only supported in the client side row model.\");\n return {\n chartData: [],\n columnNames: {}\n };\n }\n }\n\n var isServerSide = this.gridOptionsWrapper.isRowModelServerSide();\n\n if (isServerSide && params.pivoting) {\n this.updatePivotKeysForSSRM();\n }\n\n var result = this.extractRowsFromGridRowModel(params);\n result.chartData = this.aggregateRowsByDimension(params, result.chartData);\n return result;\n };\n\n ChartDatasource.prototype.extractRowsFromGridRowModel = function (params) {\n var _this = this;\n\n var extractedRowData = [];\n var columnNames = {}; // maps used to keep track of expanded groups that need to be removed\n\n var groupNodeIndexes = {};\n var groupsToRemove = {}; // only used when cross filtering\n\n var filteredNodes = {};\n var allRowNodes = [];\n var numRows;\n\n if (params.crossFiltering) {\n filteredNodes = this.getFilteredRowNodes();\n allRowNodes = this.getAllRowNodes();\n numRows = allRowNodes.length;\n } else {\n // make sure enough rows in range to chart. if user filters and less rows, then end row will be\n // the last displayed row, not where the range ends.\n var modelLastRow = this.gridRowModel.getRowCount() - 1;\n var rangeLastRow = params.endRow >= 0 ? Math.min(params.endRow, modelLastRow) : modelLastRow;\n numRows = rangeLastRow - params.startRow + 1;\n }\n\n var _loop_1 = function _loop_1(i) {\n var data = {};\n var rowNode = params.crossFiltering ? allRowNodes[i] : this_1.gridRowModel.getRow(i + params.startRow); // first get data for dimensions columns\n\n params.dimensionCols.forEach(function (col) {\n var colId = col.colId;\n\n var column = _this.columnModel.getGridColumn(colId);\n\n if (column) {\n var valueObject = _this.valueService.getValue(column, rowNode); // when grouping we also need to build up multi category labels for charts\n\n\n if (params.grouping) {\n var valueString = valueObject && valueObject.toString ? String(valueObject.toString()) : ''; // traverse parents to extract group label path\n\n var labels = ChartDatasource.getGroupLabels(rowNode, valueString);\n data[colId] = {\n labels: labels,\n toString: function toString() {\n return this.labels.filter(function (l) {\n return !!l;\n }).reverse().join(' - ');\n }\n }; // keep track of group node indexes, so they can be padded when other groups are expanded\n\n if (rowNode.group) {\n groupNodeIndexes[labels.toString()] = i;\n } // if node (group or leaf) has parents then it is expanded and should be removed\n\n\n var groupKey = labels.slice(1, labels.length).toString();\n\n if (groupKey) {\n groupsToRemove[groupKey] = groupNodeIndexes[groupKey];\n }\n } else {\n // leaf nodes can be directly added to dimension columns\n data[colId] = valueObject;\n }\n } else {\n // introduce a default category when no dimensions exist with a value based off row index (+1)\n data[ChartDataModel.DEFAULT_CATEGORY] = i + 1;\n }\n }); // then get data for value columns\n\n params.valueCols.forEach(function (col) {\n var columnNamesArr = []; // pivot keys should be added first\n\n var pivotKeys = col.getColDef().pivotKeys;\n\n if (pivotKeys) {\n columnNamesArr = pivotKeys.slice();\n } // then add column header name to results\n\n\n var headerName = col.getColDef().headerName;\n\n if (headerName) {\n columnNamesArr.push(headerName);\n } // add array of column names to results\n\n\n if (columnNamesArr.length > 0) {\n columnNames[col.getId()] = columnNamesArr;\n }\n\n var colId = col.getColId();\n\n if (params.crossFiltering) {\n var filteredOutColId = colId + '-filtered-out'; // add data value to value column\n\n var value = _this.valueService.getValue(col, rowNode);\n\n var actualValue = value != null && typeof value.toNumber === 'function' ? value.toNumber() : value;\n\n if (filteredNodes[rowNode.id]) {\n data[colId] = actualValue;\n data[filteredOutColId] = params.aggFunc || params.isScatter ? undefined : 0;\n } else {\n data[colId] = params.aggFunc || params.isScatter ? undefined : 0;\n data[filteredOutColId] = actualValue;\n }\n } else {\n // add data value to value column\n var value = _this.valueService.getValue(col, rowNode); // aggregated value\n\n\n if (value && value.hasOwnProperty('toString')) {\n value = parseFloat(value.toString());\n }\n\n data[colId] = value != null && typeof value.toNumber === 'function' ? value.toNumber() : value;\n }\n }); // row data from footer nodes should not be included in charts\n\n if (rowNode.footer) {\n // 'stamping' data as footer to avoid impacting previously calculated `groupIndexesToRemove` and will\n // be removed from the results along with any expanded group nodes\n data.footer = true;\n } // add data to results\n\n\n extractedRowData.push(data);\n };\n\n var this_1 = this;\n\n for (var i = 0; i < numRows; i++) {\n _loop_1(i);\n }\n\n if (params.grouping) {\n var groupIndexesToRemove_1 = _.values(groupsToRemove);\n\n var filterFunc = function filterFunc(data, index) {\n return !data.footer && !_.includes(groupIndexesToRemove_1, index);\n };\n\n extractedRowData = extractedRowData.filter(filterFunc);\n }\n\n return {\n chartData: extractedRowData,\n columnNames: columnNames\n };\n };\n\n ChartDatasource.prototype.aggregateRowsByDimension = function (params, dataFromGrid) {\n var _this = this;\n\n var dimensionCols = params.dimensionCols;\n\n if (!params.aggFunc || dimensionCols.length === 0) {\n return dataFromGrid;\n }\n\n var lastCol = _.last(dimensionCols);\n\n var lastColId = lastCol && lastCol.colId;\n var map = {};\n var dataAggregated = [];\n dataFromGrid.forEach(function (data) {\n var currentMap = map;\n dimensionCols.forEach(function (col) {\n var colId = col.colId;\n var key = data[colId];\n\n if (colId === lastColId) {\n var groupItem_1 = currentMap[key];\n\n if (!groupItem_1) {\n groupItem_1 = {\n __children: []\n };\n dimensionCols.forEach(function (dimCol) {\n var dimColId = dimCol.colId;\n groupItem_1[dimColId] = data[dimColId];\n });\n currentMap[key] = groupItem_1;\n dataAggregated.push(groupItem_1);\n }\n\n groupItem_1.__children.push(data);\n } else {\n // map of maps\n if (!currentMap[key]) {\n currentMap[key] = {};\n }\n\n currentMap = currentMap[key];\n }\n });\n });\n\n if (ModuleRegistry.assertRegistered(ModuleNames.RowGroupingModule, 'Charting Aggregation')) {\n dataAggregated.forEach(function (groupItem) {\n return params.valueCols.forEach(function (col) {\n if (params.crossFiltering) {\n params.valueCols.forEach(function (valueCol) {\n var colId = valueCol.getColId(); // filtered data\n\n var dataToAgg = groupItem.__children.filter(function (child) {\n return typeof child[colId] !== 'undefined';\n }).map(function (child) {\n return child[colId];\n });\n\n var aggResult = _this.aggregationStage.aggregateValues(dataToAgg, params.aggFunc);\n\n groupItem[valueCol.getId()] = aggResult && typeof aggResult.value !== 'undefined' ? aggResult.value : aggResult; // filtered out data\n\n var filteredOutColId = colId + \"-filtered-out\";\n\n var dataToAggFiltered = groupItem.__children.filter(function (child) {\n return typeof child[filteredOutColId] !== 'undefined';\n }).map(function (child) {\n return child[filteredOutColId];\n });\n\n var aggResultFiltered = _this.aggregationStage.aggregateValues(dataToAggFiltered, params.aggFunc);\n\n groupItem[filteredOutColId] = aggResultFiltered && typeof aggResultFiltered.value !== 'undefined' ? aggResultFiltered.value : aggResultFiltered;\n });\n } else {\n var dataToAgg = groupItem.__children.map(function (child) {\n return child[col.getId()];\n });\n\n var aggResult = 0;\n\n if (ModuleRegistry.assertRegistered(ModuleNames.RowGroupingModule, 'Charting Aggregation')) {\n aggResult = _this.aggregationStage.aggregateValues(dataToAgg, params.aggFunc);\n }\n\n groupItem[col.getId()] = aggResult && typeof aggResult.value !== 'undefined' ? aggResult.value : aggResult;\n }\n });\n });\n }\n\n return dataAggregated;\n };\n\n ChartDatasource.prototype.updatePivotKeysForSSRM = function () {\n var secondaryColumns = this.columnModel.getSecondaryColumns();\n\n if (!secondaryColumns) {\n return;\n } // we don't know what the application will use for the pivot key separator (i.e. '_' or '|' ) as the\n // secondary columns are provided to grid by the application via columnApi.setSecondaryColumns()\n\n\n var pivotKeySeparator = this.extractPivotKeySeparator(secondaryColumns); // `pivotKeys` is not used by the SSRM for pivoting, so it is safe to reuse this colDef property. This way\n // the same logic can be used for CSRM and SSRM to extract legend names in extractRowsFromGridRowModel()\n\n secondaryColumns.forEach(function (col) {\n var keys = col.getColId().split(pivotKeySeparator);\n col.getColDef().pivotKeys = keys.slice(0, keys.length - 1);\n });\n };\n\n ChartDatasource.prototype.extractPivotKeySeparator = function (secondaryColumns) {\n if (secondaryColumns.length === 0) {\n return \"\";\n }\n\n var extractSeparator = function extractSeparator(columnGroup, childId) {\n var groupId = columnGroup.getGroupId();\n\n if (!columnGroup.getParent()) {\n // removing groupId ('2000') from childId ('2000|Swimming') yields '|Swimming' so first char is separator\n return childId.split(groupId)[1][0];\n }\n\n return extractSeparator(columnGroup.getParent(), groupId);\n };\n\n var firstSecondaryCol = secondaryColumns[0];\n return extractSeparator(firstSecondaryCol.getParent(), firstSecondaryCol.getColId());\n };\n\n ChartDatasource.getGroupLabels = function (rowNode, initialLabel) {\n var labels = [initialLabel];\n\n while (rowNode && rowNode.level !== 0) {\n rowNode = rowNode.parent;\n\n if (rowNode) {\n labels.push(rowNode.key);\n }\n }\n\n return labels;\n };\n\n ChartDatasource.prototype.getFilteredRowNodes = function () {\n var filteredNodes = {};\n this.gridRowModel.forEachNodeAfterFilterAndSort(function (rowNode) {\n filteredNodes[rowNode.id] = rowNode;\n });\n return filteredNodes;\n };\n\n ChartDatasource.prototype.getAllRowNodes = function () {\n var allRowNodes = [];\n this.gridRowModel.forEachNode(function (rowNode) {\n allRowNodes.push(rowNode);\n });\n return this.sortRowNodes(allRowNodes);\n };\n\n ChartDatasource.prototype.sortRowNodes = function (rowNodes) {\n var sortOptions = this.sortController.getSortOptions();\n var noSort = !sortOptions || sortOptions.length == 0;\n if (noSort) return rowNodes;\n return this.rowNodeSorter.doFullSort(rowNodes, sortOptions);\n };\n\n __decorate$1p([Autowired('rowModel')], ChartDatasource.prototype, \"gridRowModel\", void 0);\n\n __decorate$1p([Autowired('valueService')], ChartDatasource.prototype, \"valueService\", void 0);\n\n __decorate$1p([Autowired('columnModel')], ChartDatasource.prototype, \"columnModel\", void 0);\n\n __decorate$1p([Autowired('rowNodeSorter')], ChartDatasource.prototype, \"rowNodeSorter\", void 0);\n\n __decorate$1p([Autowired('sortController')], ChartDatasource.prototype, \"sortController\", void 0);\n\n __decorate$1p([Optional('aggregationStage')], ChartDatasource.prototype, \"aggregationStage\", void 0);\n\n return ChartDatasource;\n}(BeanStub);\n\nvar __extends$2O = undefined && undefined.__extends || function () {\n var _extendStatics42 = function extendStatics(d, b) {\n _extendStatics42 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics42(d, b);\n };\n\n return function (d, b) {\n _extendStatics42(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$N = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$o = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$N(arguments[i]));\n }\n\n return ar;\n};\n\nvar ChartDataModel =\n/** @class */\nfunction (_super) {\n __extends$2O(ChartDataModel, _super);\n\n function ChartDataModel(params) {\n var _this = _super.call(this) || this;\n\n _this.unlinked = false;\n _this.chartData = [];\n _this.valueColState = [];\n _this.dimensionColState = [];\n _this.columnNames = {};\n _this.grouping = false;\n _this.crossFiltering = false; // this control flag is used to only log warning for the initial user config\n\n _this.suppressComboChartWarnings = false;\n _this.chartId = params.chartId;\n _this.chartType = params.chartType;\n _this.pivotChart = params.pivotChart;\n _this.chartThemeName = params.chartThemeName;\n _this.aggFunc = params.aggFunc;\n _this.referenceCellRange = params.cellRange;\n _this.suppliedCellRange = params.cellRange;\n _this.suppressChartRanges = params.suppressChartRanges;\n _this.unlinked = !!params.unlinkChart;\n _this.crossFiltering = !!params.crossFiltering;\n _this.seriesChartTypes = params.seriesChartTypes || [];\n\n _this.initComboCharts(params);\n\n return _this;\n }\n\n ChartDataModel.prototype.initComboCharts = function (params) {\n var seriesChartTypesExist = this.seriesChartTypes && this.seriesChartTypes.length > 0;\n var customCombo = params.chartType === 'customCombo' || seriesChartTypesExist;\n\n if (customCombo) {\n // it is not necessary to supply a chart type for combo charts when `seriesChartTypes` is supplied\n this.chartType = 'customCombo'; // cache supplied `seriesChartTypes` to allow switching between different chart types in the settings panel\n\n this.savedCustomSeriesChartTypes = this.seriesChartTypes || [];\n }\n };\n\n ChartDataModel.prototype.init = function () {\n this.datasource = this.createManagedBean(new ChartDatasource());\n this.updateCellRanges();\n };\n\n ChartDataModel.prototype.updateCellRanges = function (updatedColState) {\n if (this.valueCellRange) {\n this.referenceCellRange = this.valueCellRange;\n }\n\n var _a = this.getAllChartColumns(),\n dimensionCols = _a.dimensionCols,\n valueCols = _a.valueCols;\n\n var allColsFromRanges = this.getAllColumnsFromRanges();\n\n if (updatedColState) {\n this.updateColumnState(updatedColState);\n }\n\n this.setDimensionCellRange(dimensionCols, allColsFromRanges, updatedColState);\n this.setValueCellRange(valueCols, allColsFromRanges, updatedColState);\n\n if (!updatedColState) {\n this.resetColumnState(); // dimension / category cell range could be out of sync after resetting column state when row grouping\n\n this.syncDimensionCellRange();\n }\n\n this.updateSeriesChartTypes();\n this.updateData();\n };\n\n ChartDataModel.prototype.updateSeriesChartTypes = function () {\n if (!this.isComboChart()) {\n return;\n } // ensure primary only chart types are not placed on secondary axis\n\n\n this.seriesChartTypes = this.seriesChartTypes.map(function (seriesChartType) {\n var primaryOnly = ['groupedColumn', 'stackedColumn', 'stackedArea'].includes(seriesChartType.chartType);\n seriesChartType.secondaryAxis = primaryOnly ? false : seriesChartType.secondaryAxis;\n return seriesChartType;\n }); // note that when seriesChartTypes are supplied the chart type is also changed to 'customCombo'\n\n if (this.chartType === 'customCombo') {\n this.updateSeriesChartTypesForCustomCombo();\n return;\n }\n\n this.updateChartSeriesTypesForBuiltInCombos();\n };\n\n ChartDataModel.prototype.updateSeriesChartTypesForCustomCombo = function () {\n var _this = this;\n\n var seriesChartTypesSupplied = this.seriesChartTypes && this.seriesChartTypes.length > 0;\n\n if (!seriesChartTypesSupplied && !this.suppressComboChartWarnings) {\n console.warn(\"AG Grid: 'seriesChartTypes' are required when the 'customCombo' chart type is specified.\");\n } // ensure correct chartTypes are supplied\n\n\n this.seriesChartTypes = this.seriesChartTypes.map(function (s) {\n if (!ChartDataModel.SUPPORTED_COMBO_CHART_TYPES.includes(s.chartType)) {\n console.warn(\"AG Grid: invalid chartType '\" + s.chartType + \"' supplied in 'seriesChartTypes', converting to 'line' instead.\");\n s.chartType = 'line';\n }\n\n return s;\n });\n\n var getSeriesChartType = function getSeriesChartType(valueCol) {\n if (!_this.savedCustomSeriesChartTypes || _this.savedCustomSeriesChartTypes.length === 0) {\n _this.savedCustomSeriesChartTypes = _this.seriesChartTypes;\n }\n\n var providedSeriesChartType = _this.savedCustomSeriesChartTypes.find(function (s) {\n return s.colId === valueCol.colId;\n });\n\n if (!providedSeriesChartType) {\n if (valueCol.selected && !_this.suppressComboChartWarnings) {\n console.warn(\"AG Grid: no 'seriesChartType' found for colId = '\" + valueCol.colId + \"', defaulting to 'line'.\");\n }\n\n return {\n colId: valueCol.colId,\n chartType: 'line',\n secondaryAxis: false\n };\n }\n\n return providedSeriesChartType;\n };\n\n var updatedSeriesChartTypes = this.valueColState.map(getSeriesChartType);\n this.seriesChartTypes = updatedSeriesChartTypes; // also cache custom `seriesChartTypes` to allow for switching between different chart types\n\n this.savedCustomSeriesChartTypes = updatedSeriesChartTypes; // turn off warnings as first combo chart attempt has completed\n\n this.suppressComboChartWarnings = true;\n };\n\n ChartDataModel.prototype.updateChartSeriesTypesForBuiltInCombos = function () {\n var primaryChartType = this.chartType === 'columnLineCombo' ? 'groupedColumn' : 'stackedArea';\n var secondaryChartType = this.chartType === 'columnLineCombo' ? 'line' : 'groupedColumn';\n var selectedCols = this.valueColState.filter(function (cs) {\n return cs.selected;\n });\n var lineIndex = Math.ceil(selectedCols.length / 2);\n this.seriesChartTypes = selectedCols.map(function (valueCol, i) {\n var seriesType = i >= lineIndex ? secondaryChartType : primaryChartType;\n return {\n colId: valueCol.colId,\n chartType: seriesType,\n secondaryAxis: false\n };\n });\n };\n\n ChartDataModel.prototype.updateData = function () {\n var _a = this.getRowIndexes(),\n startRow = _a.startRow,\n endRow = _a.endRow;\n\n if (this.pivotChart) {\n this.resetColumnState();\n }\n\n this.grouping = this.isGrouping();\n var params = {\n aggFunc: this.aggFunc,\n dimensionCols: [this.getSelectedDimension()],\n grouping: this.grouping,\n pivoting: this.isPivotActive(),\n crossFiltering: this.crossFiltering,\n valueCols: this.getSelectedValueCols(),\n startRow: startRow,\n endRow: endRow,\n isScatter: _.includes(['scatter', 'bubble'], this.chartType)\n };\n\n var _b = this.datasource.getData(params),\n chartData = _b.chartData,\n columnNames = _b.columnNames;\n\n this.chartData = chartData;\n this.columnNames = columnNames;\n };\n\n ChartDataModel.prototype.isGrouping = function () {\n var usingTreeData = this.gridOptionsWrapper.isTreeData();\n var groupedCols = usingTreeData ? null : this.columnModel.getRowGroupColumns();\n var isGroupActive = usingTreeData || groupedCols && groupedCols.length > 0; // charts only group when the selected category is a group column\n\n var colId = this.getSelectedDimension().colId;\n var displayedGroupCols = this.columnModel.getGroupDisplayColumns();\n var groupDimensionSelected = displayedGroupCols.map(function (col) {\n return col.getColId();\n }).some(function (id) {\n return id === colId;\n });\n return !!isGroupActive && groupDimensionSelected;\n };\n\n ChartDataModel.prototype.getSelectedValueCols = function () {\n return this.valueColState.filter(function (cs) {\n return cs.selected;\n }).map(function (cs) {\n return cs.column;\n });\n };\n\n ChartDataModel.prototype.getSelectedDimension = function () {\n return this.dimensionColState.filter(function (cs) {\n return cs.selected;\n })[0];\n };\n\n ChartDataModel.prototype.getColDisplayName = function (col) {\n return this.columnModel.getDisplayNameForColumn(col, 'chart');\n };\n\n ChartDataModel.prototype.isPivotMode = function () {\n return this.columnModel.isPivotMode();\n };\n\n ChartDataModel.prototype.getChartDataType = function (colId) {\n var column = this.columnModel.getPrimaryColumn(colId);\n return column ? column.getColDef().chartDataType : undefined;\n };\n\n ChartDataModel.prototype.isPivotActive = function () {\n return this.columnModel.isPivotActive();\n };\n\n ChartDataModel.prototype.createCellRange = function (type) {\n var columns = [];\n\n for (var _i = 1; _i < arguments.length; _i++) {\n columns[_i - 1] = arguments[_i];\n }\n\n return {\n id: this.chartId,\n startRow: this.referenceCellRange.startRow,\n endRow: this.referenceCellRange.endRow,\n columns: columns,\n startColumn: type === CellRangeType.DIMENSION ? columns[0] : this.referenceCellRange.startColumn,\n type: type\n };\n };\n\n ChartDataModel.prototype.getAllColumnsFromRanges = function () {\n if (this.pivotChart) {\n return _.convertToSet(this.columnModel.getAllDisplayedColumns());\n }\n\n var columns = this.dimensionCellRange || this.valueCellRange ? [] : this.referenceCellRange.columns;\n\n if (this.dimensionCellRange) {\n columns.push.apply(columns, __spread$o(this.dimensionCellRange.columns));\n }\n\n if (this.valueCellRange) {\n columns.push.apply(columns, __spread$o(this.valueCellRange.columns));\n }\n\n return _.convertToSet(columns);\n };\n\n ChartDataModel.prototype.getRowIndexes = function () {\n var startRow = 0,\n endRow = 0;\n var rangeService = this.rangeService;\n var range = this.valueCellRange;\n\n if (rangeService && range) {\n startRow = rangeService.getRangeStartRow(range).rowIndex; // when the last row the cell range is a pinned 'bottom' row, the `endRow` index is set to -1 which results\n // in the ChartDatasource processing all non pinned rows from the `startRow` index.\n\n var endRowPosition = rangeService.getRangeEndRow(range);\n endRow = endRowPosition.rowPinned === Constants.PINNED_BOTTOM ? -1 : endRowPosition.rowIndex;\n }\n\n return {\n startRow: startRow,\n endRow: endRow\n };\n };\n\n ChartDataModel.prototype.getAllChartColumns = function () {\n var _this = this;\n\n var displayedCols = this.columnModel.getAllDisplayedColumns();\n var dimensionCols = new Set();\n var valueCols = new Set();\n displayedCols.forEach(function (col) {\n var colDef = col.getColDef();\n var chartDataType = colDef.chartDataType;\n\n if (chartDataType) {\n // chart data type was specified explicitly\n switch (chartDataType) {\n case 'category':\n case 'time':\n dimensionCols.add(col);\n return;\n\n case 'series':\n valueCols.add(col);\n return;\n\n case 'excluded':\n return;\n\n default:\n console.warn(\"AG Grid: unexpected chartDataType value '\" + chartDataType + \"' supplied, instead use 'category', 'series' or 'excluded'\");\n break;\n }\n }\n\n if (colDef.colId === 'ag-Grid-AutoColumn') {\n dimensionCols.add(col);\n return;\n }\n\n if (!col.isPrimary()) {\n valueCols.add(col);\n return;\n } // if 'chartDataType' is not provided then infer type based data contained in first row\n\n\n (_this.isNumberCol(col) ? valueCols : dimensionCols).add(col);\n });\n return {\n dimensionCols: dimensionCols,\n valueCols: valueCols\n };\n };\n\n ChartDataModel.prototype.isNumberCol = function (col) {\n if (col.getColId() === 'ag-Grid-AutoColumn') {\n return false;\n }\n\n var row = this.rowRenderer.getRowNode({\n rowIndex: 0,\n rowPinned: null\n });\n\n if (!row) {\n return false;\n }\n\n var cellValue = this.valueService.getValue(col, row);\n\n if (cellValue == null) {\n cellValue = this.extractLeafData(row, col);\n }\n\n if (cellValue != null && typeof cellValue.toNumber === 'function') {\n cellValue = cellValue.toNumber();\n }\n\n return typeof cellValue === 'number';\n };\n\n ChartDataModel.prototype.extractLeafData = function (row, col) {\n if (!row.allLeafChildren) {\n return null;\n }\n\n for (var i = 0; i < row.allLeafChildren.length; i++) {\n var childRow = row.allLeafChildren[i];\n var value = this.valueService.getValue(col, childRow);\n\n if (value != null) {\n return value;\n }\n }\n\n return null;\n };\n\n ChartDataModel.prototype.resetColumnState = function () {\n var _this = this;\n\n var _a = this.getAllChartColumns(),\n dimensionCols = _a.dimensionCols,\n valueCols = _a.valueCols;\n\n var allCols = this.getAllColumnsFromRanges();\n var isInitialising = this.valueColState.length < 1;\n this.dimensionColState = [];\n this.valueColState = [];\n var hasSelectedDimension = false;\n var order = 1;\n var aggFuncDimension = this.suppliedCellRange.columns[0]; //TODO\n\n dimensionCols.forEach(function (column) {\n var isAutoGroupCol = column.getColId() === 'ag-Grid-AutoColumn';\n var selected = false;\n\n if (_this.crossFiltering && _this.aggFunc) {\n if (aggFuncDimension.getColId() === column.getColId()) {\n selected = true;\n }\n } else {\n selected = isAutoGroupCol ? true : !hasSelectedDimension && allCols.has(column);\n }\n\n _this.dimensionColState.push({\n column: column,\n colId: column.getColId(),\n displayName: _this.getColDisplayName(column),\n selected: selected,\n order: order++\n });\n\n if (selected) {\n hasSelectedDimension = true;\n }\n });\n var defaultCategory = {\n colId: ChartDataModel.DEFAULT_CATEGORY,\n displayName: this.chartTranslationService.translate('defaultCategory'),\n selected: !hasSelectedDimension,\n order: 0\n };\n this.dimensionColState.unshift(defaultCategory);\n var valueColumnsFromReferenceRange = this.referenceCellRange.columns.filter(function (c) {\n return valueCols.has(c);\n });\n valueCols.forEach(function (column) {\n // first time the value cell range is set, preserve the column order from the supplied range\n if (isInitialising && _.includes(_this.referenceCellRange.columns, column)) {\n column = valueColumnsFromReferenceRange.shift();\n }\n\n _this.valueColState.push({\n column: column,\n colId: column.getColId(),\n displayName: _this.getColDisplayName(column),\n selected: allCols.has(column),\n order: order++\n });\n });\n };\n\n ChartDataModel.prototype.updateColumnState = function (updatedCol) {\n var idsMatch = function idsMatch(cs) {\n return cs.colId === updatedCol.colId;\n };\n\n var _a = this,\n dimensionColState = _a.dimensionColState,\n valueColState = _a.valueColState;\n\n if (dimensionColState.filter(idsMatch).length > 0) {\n // only one dimension should be selected\n dimensionColState.forEach(function (cs) {\n return cs.selected = idsMatch(cs);\n });\n } else {\n // just update the selected value on the supplied value column\n valueColState.filter(idsMatch).forEach(function (cs) {\n return cs.selected = updatedCol.selected;\n });\n }\n\n var allColumns = __spread$o(dimensionColState, valueColState);\n\n var orderedColIds = []; // calculate new order\n\n allColumns.forEach(function (col, i) {\n if (i === updatedCol.order) {\n orderedColIds.push(updatedCol.colId);\n }\n\n if (col.colId !== updatedCol.colId) {\n orderedColIds.push(col.colId);\n }\n }); // update col state with new order\n\n allColumns.forEach(function (col) {\n var order = orderedColIds.indexOf(col.colId);\n col.order = order >= 0 ? orderedColIds.indexOf(col.colId) : allColumns.length - 1;\n });\n this.reorderColState();\n };\n\n ChartDataModel.prototype.reorderColState = function () {\n var ascColStateOrder = function ascColStateOrder(a, b) {\n return a.order - b.order;\n };\n\n this.dimensionColState.sort(ascColStateOrder);\n this.valueColState.sort(ascColStateOrder);\n };\n\n ChartDataModel.prototype.setDimensionCellRange = function (dimensionCols, colsInRange, updatedColState) {\n var _this = this;\n\n this.dimensionCellRange = undefined;\n\n if (!updatedColState && !this.dimensionColState.length) {\n // use first dimension column in range by default\n dimensionCols.forEach(function (col) {\n if (_this.dimensionCellRange || !colsInRange.has(col)) {\n return;\n }\n\n _this.dimensionCellRange = _this.createCellRange(CellRangeType.DIMENSION, col);\n });\n return;\n }\n\n var selectedDimensionColState = updatedColState;\n\n if (this.crossFiltering && this.aggFunc) {\n var aggFuncDimension_1 = this.suppliedCellRange.columns[0]; //TODO\n\n selectedDimensionColState = this.dimensionColState.filter(function (cs) {\n return cs.colId === aggFuncDimension_1.getColId();\n })[0];\n } else if (!selectedDimensionColState || !dimensionCols.has(selectedDimensionColState.column)) {\n selectedDimensionColState = this.dimensionColState.filter(function (cs) {\n return cs.selected;\n })[0];\n }\n\n if (selectedDimensionColState && selectedDimensionColState.colId !== ChartDataModel.DEFAULT_CATEGORY) {\n this.dimensionCellRange = this.createCellRange(CellRangeType.DIMENSION, selectedDimensionColState.column);\n }\n };\n\n ChartDataModel.prototype.setValueCellRange = function (valueCols, colsInRange, updatedColState) {\n this.valueCellRange = undefined;\n var selectedValueCols = [];\n valueCols.forEach(function (col) {\n if (updatedColState && updatedColState.colId === col.getColId()) {\n if (updatedColState.selected) {\n selectedValueCols.push(updatedColState.column);\n }\n } else if (colsInRange.has(col)) {\n selectedValueCols.push(col);\n }\n });\n\n if (selectedValueCols.length > 0) {\n var orderedColIds_1 = [];\n\n if (this.valueColState.length > 0) {\n orderedColIds_1 = this.valueColState.map(function (c) {\n return c.colId;\n });\n } else {\n colsInRange.forEach(function (c) {\n return orderedColIds_1.push(c.getColId());\n });\n }\n\n selectedValueCols.sort(function (a, b) {\n return orderedColIds_1.indexOf(a.getColId()) - orderedColIds_1.indexOf(b.getColId());\n });\n this.valueCellRange = this.createCellRange.apply(this, __spread$o([CellRangeType.VALUE], selectedValueCols));\n }\n };\n\n ChartDataModel.prototype.syncDimensionCellRange = function () {\n var selectedDimension = this.getSelectedDimension();\n\n if (selectedDimension && selectedDimension.column) {\n this.dimensionCellRange = this.createCellRange(CellRangeType.DIMENSION, selectedDimension.column);\n }\n };\n\n ChartDataModel.prototype.isComboChart = function () {\n return ['columnLineCombo', 'areaColumnCombo', 'customCombo'].includes(this.chartType);\n };\n\n ChartDataModel.DEFAULT_CATEGORY = 'AG-GRID-DEFAULT-CATEGORY';\n ChartDataModel.SUPPORTED_COMBO_CHART_TYPES = ['line', 'groupedColumn', 'stackedColumn', 'area', 'stackedArea'];\n\n __decorate$1o([Autowired('columnModel')], ChartDataModel.prototype, \"columnModel\", void 0);\n\n __decorate$1o([Autowired('valueService')], ChartDataModel.prototype, \"valueService\", void 0);\n\n __decorate$1o([Autowired('rangeService')], ChartDataModel.prototype, \"rangeService\", void 0);\n\n __decorate$1o([Autowired('rowRenderer')], ChartDataModel.prototype, \"rowRenderer\", void 0);\n\n __decorate$1o([Autowired('chartTranslationService')], ChartDataModel.prototype, \"chartTranslationService\", void 0);\n\n __decorate$1o([PostConstruct], ChartDataModel.prototype, \"init\", null);\n\n return ChartDataModel;\n}(BeanStub); // For small data structs like a bounding box, objects are superior to arrays\n// in terms of performance (by 3-4% in Chrome 71, Safari 12 and by 20% in Firefox 64).\n// They are also self descriptive and harder to abuse.\n// For example, one has to do:\n// `ctx.strokeRect(bbox.x, bbox.y, bbox.width, bbox.height);`\n// rather than become enticed by the much slower:\n// `ctx.strokeRect(...bbox);`\n// https://jsperf.com/array-vs-object-create-access\n\n\nvar BBox$1 =\n/** @class */\nfunction () {\n function BBox(x, y, width, height) {\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n }\n\n BBox.prototype.clone = function () {\n var _a = this,\n x = _a.x,\n y = _a.y,\n width = _a.width,\n height = _a.height;\n\n return new BBox(x, y, width, height);\n };\n\n BBox.prototype.isValid = function () {\n return isFinite(this.x) && isFinite(this.y) && isFinite(this.width) && isFinite(this.height);\n };\n\n BBox.prototype.dilate = function (value) {\n this.x -= value;\n this.y -= value;\n this.width += value * 2;\n this.height += value * 2;\n };\n\n BBox.prototype.containsPoint = function (x, y) {\n return x >= this.x && x <= this.x + this.width && y >= this.y && y <= this.y + this.height;\n };\n\n BBox.prototype.render = function (ctx, params) {\n if (params === void 0) {\n params = BBox.noParams;\n }\n\n ctx.save();\n\n if (params.resetTransform) {\n ctx.setTransform(1, 0, 0, 1, 0, 0);\n }\n\n ctx.strokeStyle = params.strokeStyle || 'cyan';\n ctx.lineWidth = params.lineWidth || 1;\n ctx.strokeRect(this.x, this.y, this.width, this.height);\n\n if (params.label) {\n ctx.fillStyle = params.fillStyle || 'black';\n ctx.textBaseline = 'bottom';\n ctx.fillText(params.label, this.x, this.y);\n }\n\n ctx.restore();\n };\n\n BBox.noParams = {};\n return BBox;\n}();\n\nvar __read$M = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n/**\n * As of Jan 8, 2019, Firefox still doesn't implement\n * `getTransform(): DOMMatrix;`\n * `setTransform(transform?: DOMMatrix2DInit)`\n * in the `CanvasRenderingContext2D`.\n * Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=928150\n * IE11 and Edge 44 also don't have the support.\n * Thus this class, to keep track of the current transform and\n * combine transformations.\n * Standards:\n * https://html.spec.whatwg.org/dev/canvas.html\n * https://www.w3.org/TR/geometry-1/\n */\n\n\nvar Matrix$1 =\n/** @class */\nfunction () {\n function Matrix(elements) {\n if (elements === void 0) {\n elements = [1, 0, 0, 1, 0, 0];\n }\n\n this.elements = elements;\n }\n\n Matrix.prototype.setElements = function (elements) {\n var e = this.elements; // `this.elements = elements.slice()` is 4-5 times slower\n // (in Chrome 71 and FF 64) than manually copying elements,\n // since slicing allocates new memory.\n // The performance of passing parameters individually\n // vs as an array is about the same in both browsers, so we\n // go with a single (array of elements) parameter, because\n // `setElements(elements)` and `setElements([a, b, c, d, e, f])`\n // calls give us roughly the same performance, versus\n // `setElements(...elements)` and `setElements(a, b, c, d, e, f)`,\n // where the spread operator causes a 20-30x performance drop\n // (30x when compiled to ES5's `.apply(this, elements)`\n // 20x when used natively).\n\n e[0] = elements[0];\n e[1] = elements[1];\n e[2] = elements[2];\n e[3] = elements[3];\n e[4] = elements[4];\n e[5] = elements[5];\n return this;\n };\n\n Matrix.prototype.setIdentityElements = function () {\n var e = this.elements;\n e[0] = 1;\n e[1] = 0;\n e[2] = 0;\n e[3] = 1;\n e[4] = 0;\n e[5] = 0;\n return this;\n };\n\n Object.defineProperty(Matrix.prototype, \"identity\", {\n get: function get() {\n var e = this.elements;\n return e[0] === 1 && e[1] === 0 && e[2] === 0 && e[3] === 1 && e[4] === 0 && e[5] === 0;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Matrix.prototype, \"a\", {\n get: function get() {\n return this.elements[0];\n },\n set: function set(value) {\n this.elements[0] = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Matrix.prototype, \"b\", {\n get: function get() {\n return this.elements[1];\n },\n set: function set(value) {\n this.elements[1] = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Matrix.prototype, \"c\", {\n get: function get() {\n return this.elements[2];\n },\n set: function set(value) {\n this.elements[2] = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Matrix.prototype, \"d\", {\n get: function get() {\n return this.elements[3];\n },\n set: function set(value) {\n this.elements[3] = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Matrix.prototype, \"e\", {\n get: function get() {\n return this.elements[4];\n },\n set: function set(value) {\n this.elements[4] = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Matrix.prototype, \"f\", {\n get: function get() {\n return this.elements[5];\n },\n set: function set(value) {\n this.elements[5] = value;\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Performs the AxB matrix multiplication and saves the result\n * to `C`, if given, or to `A` otherwise.\n */\n\n Matrix.prototype.AxB = function (A, B, C) {\n var a = A[0] * B[0] + A[2] * B[1],\n b = A[1] * B[0] + A[3] * B[1],\n c = A[0] * B[2] + A[2] * B[3],\n d = A[1] * B[2] + A[3] * B[3],\n e = A[0] * B[4] + A[2] * B[5] + A[4],\n f = A[1] * B[4] + A[3] * B[5] + A[5];\n C = C || A;\n C[0] = a;\n C[1] = b;\n C[2] = c;\n C[3] = d;\n C[4] = e;\n C[5] = f;\n };\n /**\n * The `other` matrix gets post-multiplied to the current matrix.\n * Returns the current matrix.\n * @param other\n */\n\n\n Matrix.prototype.multiplySelf = function (other) {\n this.AxB(this.elements, other.elements);\n return this;\n };\n /**\n * The `other` matrix gets post-multiplied to the current matrix.\n * Returns a new matrix.\n * @param other\n */\n\n\n Matrix.prototype.multiply = function (other) {\n var elements = new Array(6);\n this.AxB(this.elements, other.elements, elements);\n return new Matrix(elements);\n };\n\n Matrix.prototype.preMultiplySelf = function (other) {\n this.AxB(other.elements, this.elements, this.elements);\n return this;\n };\n /**\n * Returns the inverse of this matrix as a new matrix.\n */\n\n\n Matrix.prototype.inverse = function () {\n var _a = __read$M(this.elements, 6),\n a = _a[0],\n b = _a[1],\n c = _a[2],\n d = _a[3],\n e = _a[4],\n f = _a[5];\n\n var rD = 1 / (a * d - b * c); // reciprocal of determinant\n\n a *= rD;\n b *= rD;\n c *= rD;\n d *= rD;\n return new Matrix([d, -b, -c, a, c * f - d * e, b * e - a * f]);\n };\n /**\n * Save the inverse of this matrix to the given matrix.\n */\n\n\n Matrix.prototype.inverseTo = function (other) {\n var _a = __read$M(this.elements, 6),\n a = _a[0],\n b = _a[1],\n c = _a[2],\n d = _a[3],\n e = _a[4],\n f = _a[5];\n\n var rD = 1 / (a * d - b * c); // reciprocal of determinant\n\n a *= rD;\n b *= rD;\n c *= rD;\n d *= rD;\n other.setElements([d, -b, -c, a, c * f - d * e, b * e - a * f]);\n return this;\n };\n\n Matrix.prototype.invertSelf = function () {\n var el = this.elements;\n var a = el[0],\n b = el[1],\n c = el[2],\n d = el[3],\n e = el[4],\n f = el[5];\n var rD = 1 / (a * d - b * c); // reciprocal of determinant\n\n a *= rD;\n b *= rD;\n c *= rD;\n d *= rD;\n el[0] = d;\n el[1] = -b;\n el[2] = -c;\n el[3] = a;\n el[4] = c * f - d * e;\n el[5] = b * e - a * f;\n return this;\n };\n\n Matrix.prototype.clone = function () {\n return new Matrix(this.elements.slice());\n };\n\n Matrix.prototype.transformPoint = function (x, y) {\n var e = this.elements;\n return {\n x: x * e[0] + y * e[2] + e[4],\n y: x * e[1] + y * e[3] + e[5]\n };\n };\n\n Matrix.prototype.transformBBox = function (bbox, radius, target) {\n if (radius === void 0) {\n radius = 0;\n }\n\n var elements = this.elements;\n var xx = elements[0];\n var xy = elements[1];\n var yx = elements[2];\n var yy = elements[3];\n var h_w = bbox.width * 0.5;\n var h_h = bbox.height * 0.5;\n var cx = bbox.x + h_w;\n var cy = bbox.y + h_h;\n var w, h;\n\n if (radius) {\n h_w -= radius;\n h_h -= radius;\n var sx = Math.sqrt(xx * xx + yx * yx);\n var sy = Math.sqrt(xy * xy + yy * yy);\n w = Math.abs(h_w * xx) + Math.abs(h_h * yx) + Math.abs(sx * radius);\n h = Math.abs(h_w * xy) + Math.abs(h_h * yy) + Math.abs(sy * radius);\n } else {\n w = Math.abs(h_w * xx) + Math.abs(h_h * yx);\n h = Math.abs(h_w * xy) + Math.abs(h_h * yy);\n }\n\n if (!target) {\n target = new BBox$1(0, 0, 0, 0);\n }\n\n target.x = cx * xx + cy * yx + elements[4] - w;\n target.y = cx * xy + cy * yy + elements[5] - h;\n target.width = w + w;\n target.height = h + h;\n return target;\n };\n\n Matrix.prototype.toContext = function (ctx) {\n // It's fair to say that matrix multiplications are not cheap.\n // However, updating path definitions on every frame isn't either, so\n // it may be cheaper to just translate paths. It's also fair to\n // say, that most paths will have to be re-rendered anyway, say\n // rectangle paths in a bar chart, where an animation would happen when\n // the data set changes and existing bars are morphed into new ones.\n // Or a pie chart, where old sectors are also morphed into new ones.\n // Same for the line chart. The only plausible case where translating\n // existing paths would be enough, is the scatter chart, where marker\n // icons, typically circles, stay the same size. But if circle radii\n // are bound to some data points, even circle paths would have to be\n // updated. And thus it makes sense to optimize for fewer matrix\n // transforms, where transform matrices of paths are mostly identity\n // matrices and `x`/`y`, `centerX`/`centerY` and similar properties\n // are used to define a path at specific coordinates. And only groups\n // are used to collectively apply a transform to a set of nodes.\n // If the matrix is mostly identity (95% of the time),\n // the `if (this.isIdentity)` check can make this call 3-4 times\n // faster on average: https://jsperf.com/matrix-check-first-vs-always-set\n if (this.identity) {\n return;\n }\n\n var e = this.elements;\n ctx.transform(e[0], e[1], e[2], e[3], e[4], e[5]);\n };\n\n Matrix.flyweight = function (elements) {\n if (elements) {\n if (elements instanceof Matrix) {\n Matrix.matrix.setElements(elements.elements);\n } else {\n Matrix.matrix.setElements(elements);\n }\n } else {\n Matrix.matrix.setIdentityElements();\n }\n\n return Matrix.matrix;\n };\n\n Matrix.matrix = new Matrix();\n return Matrix;\n}();\n\nvar ID_MAP = {};\n\nfunction createId$1(instance) {\n var _a;\n\n var constructor = instance.constructor;\n var className = constructor.hasOwnProperty('className') ? constructor.className : constructor.name;\n\n if (!className) {\n throw new Error(\"The \" + constructor + \" is missing the 'className' property.\");\n }\n\n var nextId = (_a = ID_MAP[className], _a !== null && _a !== void 0 ? _a : 0) + 1;\n ID_MAP[className] = nextId;\n return className + '-' + nextId;\n}\n\nfunction windowValue(name) {\n var _a;\n /**\n * Redeclaration of window that is safe for use with Gatsby server-side (webpack) compilation.\n */\n\n\n var WINDOW = typeof window === 'undefined' ? undefined : window;\n return (_a = WINDOW) === null || _a === void 0 ? void 0 : _a[name];\n}\n\nvar RedrawType;\n\n(function (RedrawType) {\n RedrawType[RedrawType[\"NONE\"] = 0] = \"NONE\"; // Canvas doesn't need clearing, an incremental re-rerender is sufficient.\n\n RedrawType[RedrawType[\"TRIVIAL\"] = 1] = \"TRIVIAL\"; // Group needs clearing, a semi-incremental re-render is sufficient.\n\n RedrawType[RedrawType[\"MINOR\"] = 2] = \"MINOR\"; // Canvas needs to be cleared for these redraw types.\n\n RedrawType[RedrawType[\"MAJOR\"] = 3] = \"MAJOR\";\n})(RedrawType || (RedrawType = {}));\n/** @returns true if eval() is disabled in the current execution context. */\n\n\nfunction evalAvailable() {\n try {\n eval('');\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar EVAL_USEABLE = evalAvailable();\n\nfunction SceneChangeDetection(opts) {\n var _a = opts || {},\n _b = _a.redraw,\n redraw = _b === void 0 ? RedrawType.TRIVIAL : _b,\n _c = _a.type,\n type = _c === void 0 ? 'normal' : _c,\n changeCb = _a.changeCb,\n convertor = _a.convertor,\n _d = _a.checkDirtyOnAssignment,\n checkDirtyOnAssignment = _d === void 0 ? false : _d;\n\n var debug = windowValue('agChartsSceneChangeDetectionDebug') != null;\n return function (target, key) {\n // `target` is either a constructor (static member) or prototype (instance member)\n var privateKey = \"__\" + key;\n\n if (target[key]) {\n return;\n }\n\n if (EVAL_USEABLE) {\n // Optimised code-path.\n // Remove all conditional logic from runtime - generate a setter with the exact necessary\n // steps, as these setters are called a LOT during update cycles.\n var setterJs = \"\\n \" + (debug ? 'var setCount = 0;' : '') + \"\\n function set_\" + key + \"(value) {\\n const oldValue = this.\" + privateKey + \";\\n \" + (convertor ? 'value = convertor(value);' : '') + \"\\n if (value !== oldValue) {\\n this.\" + privateKey + \" = value;\\n \" + (debug ? \"console.log({ t: this, property: '\" + key + \"', oldValue, value, stack: new Error().stack });\" : '') + \"\\n \" + (type === 'normal' ? \"this.markDirty(this, \" + redraw + \");\" : '') + \"\\n \" + (type === 'transform' ? \"this.markDirtyTransform(\" + redraw + \");\" : '') + \"\\n \" + (type === 'path' ? \"if (!this._dirtyPath) { this._dirtyPath = true; this.markDirty(this, \" + redraw + \"); }\" : '') + \"\\n \" + (type === 'font' ? \"if (!this._dirtyFont) { this._dirtyFont = true; this.markDirty(this, \" + redraw + \"); }\" : '') + \"\\n \" + (changeCb ? 'changeCb(this);' : '') + \"\\n }\\n \" + (checkDirtyOnAssignment ? \"if (value != null && value._dirty > \" + RedrawType.NONE + \") { this.markDirty(value, value._dirty); }\" : '') + \"\\n };\\n set_\" + key + \";\\n \";\n var getterJs = \"\\n function get_\" + key + \"() {\\n return this.\" + privateKey + \";\\n };\\n get_\" + key + \";\\n \";\n Object.defineProperty(target, key, {\n set: eval(setterJs),\n get: eval(getterJs),\n enumerable: true,\n configurable: false\n });\n } else {\n // Unoptimised but 'safe' code-path, for environments with CSP headers and no 'unsafe-eval'.\n // We deliberately do not support debug branches found in the optimised path above, since\n // for large data-set series performance deteriorates with every extra branch here.\n var setter = function setter(value) {\n var oldValue = this[privateKey];\n value = convertor ? convertor(value) : value;\n\n if (value !== oldValue) {\n this[privateKey] = value;\n if (type === 'normal') this.markDirty(this, redraw);\n if (type === 'transform') this.markDirtyTransform(redraw);\n\n if (type === 'path' && !this._dirtyPath) {\n this._dirtyPath = true;\n this.markDirty(this, redraw);\n }\n\n if (type === 'font' && !this._dirtyFont) {\n this._dirtyFont = true;\n this.markDirty(this, redraw);\n }\n\n if (changeCb) changeCb(this);\n }\n\n if (checkDirtyOnAssignment && value != null && value._dirty > RedrawType.NONE) this.markDirty(value, value._dirty);\n };\n\n var getter = function getter() {\n return this[privateKey];\n };\n\n Object.defineProperty(target, key, {\n set: setter,\n get: getter,\n enumerable: true,\n configurable: false\n });\n }\n };\n}\n\nvar ChangeDetectable =\n/** @class */\nfunction () {\n function ChangeDetectable() {\n this._dirty = RedrawType.MAJOR;\n }\n\n ChangeDetectable.prototype.markDirty = function (_source, type) {\n if (type === void 0) {\n type = RedrawType.TRIVIAL;\n }\n\n if (this._dirty > type) {\n return;\n }\n\n this._dirty = type;\n };\n\n ChangeDetectable.prototype.markClean = function (_opts) {\n this._dirty = RedrawType.NONE;\n };\n\n ChangeDetectable.prototype.isDirty = function () {\n return this._dirty > RedrawType.NONE;\n };\n\n return ChangeDetectable;\n}();\n\nvar __extends$2N = undefined && undefined.__extends || function () {\n var _extendStatics43 = function extendStatics(d, b) {\n _extendStatics43 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics43(d, b);\n };\n\n return function (d, b) {\n _extendStatics43(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __values$s = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar __read$L = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar PointerEvents$1;\n\n(function (PointerEvents) {\n PointerEvents[PointerEvents[\"All\"] = 0] = \"All\";\n PointerEvents[PointerEvents[\"None\"] = 1] = \"None\";\n})(PointerEvents$1 || (PointerEvents$1 = {}));\n\nvar zIndexChangedCallback = function zIndexChangedCallback(o) {\n if (o.parent) {\n o.parent.dirtyZIndex = true;\n }\n\n o.zIndexChanged();\n};\n/**\n * Abstract scene graph node.\n * Each node can have zero or one parent and belong to zero or one scene.\n */\n\n\nvar Node$1 =\n/** @class */\nfunction (_super) {\n __extends$2N(Node, _super);\n\n function Node() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n /** Unique number to allow creation order to be easily determined. */\n\n\n _this.serialNumber = Node._nextSerialNumber++;\n /**\n * Unique node ID in the form `ClassName-NaturalNumber`.\n */\n\n _this.id = createId$1(_this);\n /**\n * Some number to identify this node, typically within a `Group` node.\n * Usually this will be some enum value used as a selector.\n */\n\n _this.tag = NaN;\n /**\n * To simplify the type system (especially in Selections) we don't have the `Parent` node\n * (one that has children). Instead, we mimic HTML DOM, where any node can have children.\n * But we still need to distinguish regular leaf nodes from container leafs somehow.\n */\n\n _this.isContainerNode = false;\n _this._children = []; // Used to check for duplicate nodes.\n\n _this.childSet = {}; // new Set()\n // These matrices may need to have package level visibility\n // for performance optimization purposes.\n\n _this.matrix = new Matrix$1();\n _this.inverseMatrix = new Matrix$1();\n _this._dirtyTransform = false;\n _this.scalingX = 1;\n _this.scalingY = 1;\n /**\n * The center of scaling.\n * The default value of `null` means the scaling center will be\n * determined automatically, as the center of the bounding box\n * of a node.\n */\n\n _this.scalingCenterX = null;\n _this.scalingCenterY = null;\n _this.rotationCenterX = null;\n _this.rotationCenterY = null;\n /**\n * Rotation angle in radians.\n * The value is set as is. No normalization to the [-180, 180) or [0, 360)\n * interval is performed.\n */\n\n _this.rotation = 0;\n _this.translationX = 0;\n _this.translationY = 0;\n _this.visible = true;\n _this.dirtyZIndex = false;\n _this.zIndex = 0;\n /** Discriminators for render order within a zIndex. */\n\n _this.zIndexSubOrder = undefined;\n _this.pointerEvents = PointerEvents$1.All;\n return _this;\n }\n /**\n * This is meaningfully faster than `instanceof` and should be the preferred way\n * of checking inside loops.\n * @param node\n */\n\n\n Node.isNode = function (node) {\n return node ? node.matrix !== undefined : false;\n };\n\n Node.prototype._setScene = function (value) {\n var e_1, _a;\n\n var _b;\n\n this._scene = value;\n this._debug = (_b = value) === null || _b === void 0 ? void 0 : _b.debug;\n\n try {\n for (var _c = __values$s(this.children), _d = _c.next(); !_d.done; _d = _c.next()) {\n var child = _d.value;\n\n child._setScene(value);\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (_d && !_d.done && (_a = _c.return)) _a.call(_c);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n };\n\n Object.defineProperty(Node.prototype, \"scene\", {\n get: function get() {\n return this._scene;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"parent\", {\n get: function get() {\n return this._parent;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"children\", {\n get: function get() {\n return this._children;\n },\n enumerable: true,\n configurable: true\n });\n\n Node.prototype.countChildren = function (depth) {\n if (depth === void 0) {\n depth = Node.MAX_SAFE_INTEGER;\n }\n\n if (depth <= 0) {\n return 0;\n }\n\n var children = this.children;\n var n = children.length;\n var size = n;\n\n for (var i = 0; i < n; i++) {\n size += children[i].countChildren(depth - 1);\n }\n\n return size;\n };\n /**\n * Appends one or more new node instances to this parent.\n * If one needs to:\n * - move a child to the end of the list of children\n * - move a child from one parent to another (including parents in other scenes)\n * one should use the {@link insertBefore} method instead.\n * @param nodes A node or nodes to append.\n */\n\n\n Node.prototype.append = function (nodes) {\n var e_2, _a; // Passing a single parameter to an open-ended version of `append`\n // would be 30-35% slower than this.\n\n\n if (Node.isNode(nodes)) {\n nodes = [nodes];\n }\n\n try {\n for (var nodes_1 = __values$s(nodes), nodes_1_1 = nodes_1.next(); !nodes_1_1.done; nodes_1_1 = nodes_1.next()) {\n var node = nodes_1_1.value;\n\n if (node.parent) {\n throw new Error(node + \" already belongs to another parent: \" + node.parent + \".\");\n }\n\n if (node.scene) {\n throw new Error(node + \" already belongs to a scene: \" + node.scene + \".\");\n }\n\n if (this.childSet[node.id]) {\n // Cast to `any` to avoid `Property 'name' does not exist on type 'Function'`.\n throw new Error(\"Duplicate \" + node.constructor.name + \" node: \" + node);\n }\n\n this._children.push(node);\n\n this.childSet[node.id] = true;\n node._parent = this;\n\n node._setScene(this.scene);\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally {\n try {\n if (nodes_1_1 && !nodes_1_1.done && (_a = nodes_1.return)) _a.call(nodes_1);\n } finally {\n if (e_2) throw e_2.error;\n }\n }\n\n this.dirtyZIndex = true;\n this.markDirty(this, RedrawType.MAJOR);\n };\n\n Node.prototype.appendChild = function (node) {\n this.append(node);\n return node;\n };\n\n Node.prototype.removeChild = function (node) {\n if (node.parent === this) {\n var i = this.children.indexOf(node);\n\n if (i >= 0) {\n this._children.splice(i, 1);\n\n delete this.childSet[node.id];\n node._parent = undefined;\n\n node._setScene();\n\n this.dirtyZIndex = true;\n this.markDirty(node, RedrawType.MAJOR);\n return node;\n }\n }\n\n throw new Error(\"The node to be removed is not a child of this node.\");\n };\n /**\n * Inserts the node `node` before the existing child node `nextNode`.\n * If `nextNode` is null, insert `node` at the end of the list of children.\n * If the `node` belongs to another parent, it is first removed.\n * Returns the `node`.\n * @param node\n * @param nextNode\n */\n\n\n Node.prototype.insertBefore = function (node, nextNode) {\n var parent = node.parent;\n\n if (node.parent) {\n node.parent.removeChild(node);\n }\n\n if (nextNode && nextNode.parent === this) {\n var i = this.children.indexOf(nextNode);\n\n if (i >= 0) {\n this._children.splice(i, 0, node);\n\n this.childSet[node.id] = true;\n node._parent = this;\n\n node._setScene(this.scene);\n } else {\n throw new Error(nextNode + \" has \" + parent + \" as the parent, \" + \"but is not in its list of children.\");\n }\n\n this.dirtyZIndex = true;\n this.markDirty(node, RedrawType.MAJOR);\n } else {\n this.append(node);\n }\n\n return node;\n };\n\n Object.defineProperty(Node.prototype, \"nextSibling\", {\n get: function get() {\n var parent = this.parent;\n\n if (parent) {\n var children = parent.children;\n var index = children.indexOf(this);\n\n if (index >= 0 && index <= children.length - 1) {\n return children[index + 1];\n }\n }\n },\n enumerable: true,\n configurable: true\n });\n\n Node.prototype.transformPoint = function (x, y) {\n var matrix = Matrix$1.flyweight(this.matrix);\n var parent = this.parent;\n\n while (parent) {\n matrix.preMultiplySelf(parent.matrix);\n parent = parent.parent;\n }\n\n return matrix.invertSelf().transformPoint(x, y);\n };\n\n Node.prototype.inverseTransformPoint = function (x, y) {\n var matrix = Matrix$1.flyweight(this.matrix);\n var parent = this.parent;\n\n while (parent) {\n matrix.preMultiplySelf(parent.matrix);\n parent = parent.parent;\n }\n\n return matrix.transformPoint(x, y);\n };\n\n Node.prototype.markDirtyTransform = function () {\n this._dirtyTransform = true;\n this.markDirty(this, RedrawType.MAJOR);\n };\n\n Object.defineProperty(Node.prototype, \"rotationDeg\", {\n get: function get() {\n return this.rotation / Math.PI * 180;\n },\n\n /**\n * For performance reasons the rotation angle's internal representation\n * is in radians. Therefore, don't expect to get the same number you set.\n * Even with integer angles about a quarter of them from 0 to 359 cannot\n * be converted to radians and back without precision loss.\n * For example:\n *\n * node.rotationDeg = 11;\n * console.log(node.rotationDeg); // 10.999999999999998\n *\n * @param value Rotation angle in degrees.\n */\n set: function set(value) {\n this.rotation = value / 180 * Math.PI;\n },\n enumerable: true,\n configurable: true\n });\n\n Node.prototype.containsPoint = function (_x, _y) {\n return false;\n };\n /**\n * Hit testing method.\n * Recursively checks if the given point is inside this node or any of its children.\n * Returns the first matching node or `undefined`.\n * Nodes that render later (show on top) are hit tested first.\n */\n\n\n Node.prototype.pickNode = function (x, y) {\n var _a;\n\n if (!this.visible || this.pointerEvents === PointerEvents$1.None || !this.containsPoint(x, y)) {\n return;\n }\n\n var children = this.children;\n\n if (children.length > 1000) {\n // Try to optimise which children to interrogate; BBox calculation is an approximation\n // for more complex shapes, so discarding items based on this will save a lot of\n // processing when the point is nowhere near the child.\n for (var i = children.length - 1; i >= 0; i--) {\n var hit = ((_a = children[i].computeBBox()) === null || _a === void 0 ? void 0 : _a.containsPoint(x, y)) ? children[i].pickNode(x, y) : undefined;\n\n if (hit) {\n return hit;\n }\n }\n } else if (children.length) {\n // Nodes added later should be hit-tested first,\n // as they are rendered on top of the previously added nodes.\n for (var i = children.length - 1; i >= 0; i--) {\n var hit = children[i].pickNode(x, y);\n\n if (hit) {\n return hit;\n }\n }\n } else if (!this.isContainerNode) {\n // a leaf node, but not a container leaf\n return this;\n }\n };\n\n Node.prototype.computeBBox = function () {\n return;\n };\n\n Node.prototype.computeTransformedBBox = function () {\n var bbox = this.computeBBox();\n\n if (!bbox) {\n return undefined;\n }\n\n this.computeTransformMatrix();\n var matrix = Matrix$1.flyweight(this.matrix);\n var parent = this.parent;\n\n while (parent) {\n parent.computeTransformMatrix();\n matrix.preMultiplySelf(parent.matrix);\n parent = parent.parent;\n }\n\n matrix.transformBBox(bbox, 0, bbox);\n return bbox;\n };\n\n Node.prototype.computeBBoxCenter = function () {\n var bbox = this.computeBBox && this.computeBBox();\n\n if (bbox) {\n return [bbox.x + bbox.width * 0.5, bbox.y + bbox.height * 0.5];\n }\n\n return [0, 0];\n };\n\n Node.prototype.computeTransformMatrix = function () {\n if (!this._dirtyTransform) {\n return;\n } // Assume that centers of scaling and rotation are at the origin.\n\n\n var _a = __read$L([0, 0], 2),\n bbcx = _a[0],\n bbcy = _a[1];\n\n var sx = this.scalingX;\n var sy = this.scalingY;\n var scx;\n var scy;\n\n if (sx === 1 && sy === 1) {\n scx = 0;\n scy = 0;\n } else {\n scx = this.scalingCenterX === null ? bbcx : this.scalingCenterX;\n scy = this.scalingCenterY === null ? bbcy : this.scalingCenterY;\n }\n\n var r = this.rotation;\n var cos = Math.cos(r);\n var sin = Math.sin(r);\n var rcx;\n var rcy;\n\n if (r === 0) {\n rcx = 0;\n rcy = 0;\n } else {\n rcx = this.rotationCenterX === null ? bbcx : this.rotationCenterX;\n rcy = this.rotationCenterY === null ? bbcy : this.rotationCenterY;\n }\n\n var tx = this.translationX;\n var ty = this.translationY; // The transform matrix `M` is a result of the following transformations:\n // 1) translate the center of scaling to the origin\n // 2) scale\n // 3) translate back\n // 4) translate the center of rotation to the origin\n // 5) rotate\n // 6) translate back\n // 7) translate\n // (7) (6) (5) (4) (3) (2) (1)\n // | 1 0 tx | | 1 0 rcx | | cos -sin 0 | | 1 0 -rcx | | 1 0 scx | | sx 0 0 | | 1 0 -scx |\n // M = | 0 1 ty | * | 0 1 rcy | * | sin cos 0 | * | 0 1 -rcy | * | 0 1 scy | * | 0 sy 0 | * | 0 1 -scy |\n // | 0 0 1 | | 0 0 1 | | 0 0 1 | | 0 0 1 | | 0 0 1 | | 0 0 0 | | 0 0 1 |\n // Translation after steps 1-4 above:\n\n var tx4 = scx * (1 - sx) - rcx;\n var ty4 = scy * (1 - sy) - rcy;\n this._dirtyTransform = false;\n this.matrix.setElements([cos * sx, sin * sx, -sin * sy, cos * sy, cos * tx4 - sin * ty4 + rcx + tx, sin * tx4 + cos * ty4 + rcy + ty]).inverseTo(this.inverseMatrix);\n };\n\n Node.prototype.render = function (renderCtx) {\n var stats = renderCtx.stats;\n this._dirty = RedrawType.NONE;\n if (stats) stats.nodesRendered++;\n };\n\n Node.prototype.clearBBox = function (ctx) {\n var bbox = this.computeBBox();\n\n if (bbox == null) {\n return;\n }\n\n var x = bbox.x,\n y = bbox.y,\n width = bbox.width,\n height = bbox.height;\n var topLeft = this.transformPoint(x, y);\n var bottomRight = this.transformPoint(x + width, y + height);\n ctx.clearRect(topLeft.x, topLeft.y, bottomRight.x - topLeft.x, bottomRight.y - topLeft.y);\n };\n\n Node.prototype.markDirty = function (_source, type, parentType) {\n if (type === void 0) {\n type = RedrawType.TRIVIAL;\n }\n\n if (parentType === void 0) {\n parentType = type;\n }\n\n if (this._dirty > type) {\n return;\n }\n\n if (this._dirty === type && type === parentType) {\n return;\n }\n\n this._dirty = type;\n\n if (this.parent) {\n this.parent.markDirty(this, parentType);\n } else if (this.scene) {\n this.scene.markDirty();\n }\n };\n\n Object.defineProperty(Node.prototype, \"dirty\", {\n get: function get() {\n return this._dirty;\n },\n enumerable: true,\n configurable: true\n });\n\n Node.prototype.markClean = function (opts) {\n var e_3, _a;\n\n var _b = opts || {},\n _c = _b.force,\n force = _c === void 0 ? false : _c,\n _d = _b.recursive,\n recursive = _d === void 0 ? true : _d;\n\n if (this._dirty === RedrawType.NONE && !force) {\n return;\n }\n\n this._dirty = RedrawType.NONE;\n\n if (recursive) {\n try {\n for (var _e = __values$s(this.children), _f = _e.next(); !_f.done; _f = _e.next()) {\n var child = _f.value;\n child.markClean();\n }\n } catch (e_3_1) {\n e_3 = {\n error: e_3_1\n };\n } finally {\n try {\n if (_f && !_f.done && (_a = _e.return)) _a.call(_e);\n } finally {\n if (e_3) throw e_3.error;\n }\n }\n }\n };\n\n Node.prototype.visibilityChanged = function () {// Override point for sub-classes to react to visibility changes.\n };\n\n Object.defineProperty(Node.prototype, \"nodeCount\", {\n get: function get() {\n var e_4, _a;\n\n var count = 1;\n var dirtyCount = this._dirty >= RedrawType.NONE || this._dirtyTransform ? 1 : 0;\n var visibleCount = this.visible ? 1 : 0;\n\n try {\n for (var _b = __values$s(this._children), _c = _b.next(); !_c.done; _c = _b.next()) {\n var child = _c.value;\n var _d = child.nodeCount,\n childCount = _d.count,\n childVisibleCount = _d.visibleCount,\n childDirtyCount = _d.dirtyCount;\n count += childCount;\n visibleCount += childVisibleCount;\n dirtyCount += childDirtyCount;\n }\n } catch (e_4_1) {\n e_4 = {\n error: e_4_1\n };\n } finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally {\n if (e_4) throw e_4.error;\n }\n }\n\n return {\n count: count,\n visibleCount: visibleCount,\n dirtyCount: dirtyCount\n };\n },\n enumerable: true,\n configurable: true\n });\n\n Node.prototype.zIndexChanged = function () {// Override point for sub-classes.\n };\n\n Node._nextSerialNumber = 0;\n Node.MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; // Number.MAX_SAFE_INTEGER\n\n __decorate$1n([SceneChangeDetection({\n type: 'transform'\n })], Node.prototype, \"scalingX\", void 0);\n\n __decorate$1n([SceneChangeDetection({\n type: 'transform'\n })], Node.prototype, \"scalingY\", void 0);\n\n __decorate$1n([SceneChangeDetection({\n type: 'transform'\n })], Node.prototype, \"scalingCenterX\", void 0);\n\n __decorate$1n([SceneChangeDetection({\n type: 'transform'\n })], Node.prototype, \"scalingCenterY\", void 0);\n\n __decorate$1n([SceneChangeDetection({\n type: 'transform'\n })], Node.prototype, \"rotationCenterX\", void 0);\n\n __decorate$1n([SceneChangeDetection({\n type: 'transform'\n })], Node.prototype, \"rotationCenterY\", void 0);\n\n __decorate$1n([SceneChangeDetection({\n type: 'transform'\n })], Node.prototype, \"rotation\", void 0);\n\n __decorate$1n([SceneChangeDetection({\n type: 'transform'\n })], Node.prototype, \"translationX\", void 0);\n\n __decorate$1n([SceneChangeDetection({\n type: 'transform'\n })], Node.prototype, \"translationY\", void 0);\n\n __decorate$1n([SceneChangeDetection({\n redraw: RedrawType.MAJOR,\n changeCb: function changeCb(o) {\n return o.visibilityChanged();\n }\n })], Node.prototype, \"visible\", void 0);\n\n __decorate$1n([SceneChangeDetection({\n redraw: RedrawType.TRIVIAL,\n changeCb: zIndexChangedCallback\n })], Node.prototype, \"zIndex\", void 0);\n\n __decorate$1n([SceneChangeDetection({\n redraw: RedrawType.TRIVIAL,\n changeCb: zIndexChangedCallback\n })], Node.prototype, \"zIndexSubOrder\", void 0);\n\n return Node;\n}(ChangeDetectable);\n/**\n * Creates a new object with a `parent` as its prototype\n * and copies properties from the `child` into it.\n * @param parent\n * @param child\n */\n\n\nfunction chainObjects$1(parent, child) {\n var obj = Object.create(parent);\n\n for (var prop in child) {\n if (child.hasOwnProperty(prop)) {\n obj[prop] = child[prop];\n }\n }\n\n return obj;\n}\n\nfunction getValue(object, path, defaultValue) {\n var parts = Array.isArray(path) ? path : path.split('.');\n var value = object;\n\n try {\n parts.forEach(function (part) {\n value = value[part];\n });\n } catch (e) {\n if (arguments.length === 3) {\n value = defaultValue;\n } else {\n throw e;\n }\n }\n\n return value;\n}\n\nfunction emptyTarget$1(value) {\n return Array.isArray(value) ? [] : {};\n}\n\nfunction cloneUnlessOtherwiseSpecified$1(value, options) {\n return options.clone !== false && options.isMergeableObject(value) ? deepMerge$1(emptyTarget$1(value), value, options) : value;\n}\n\nfunction defaultArrayMerge$1(target, source, options) {\n return target.concat(source).map(function (element) {\n return cloneUnlessOtherwiseSpecified$1(element, options);\n });\n}\n\nfunction getMergeFunction$1(key, options) {\n if (!options.customMerge) {\n return deepMerge$1;\n }\n\n var customMerge = options.customMerge(key);\n return typeof customMerge === 'function' ? customMerge : deepMerge$1;\n}\n\nfunction getEnumerableOwnPropertySymbols$1(target) {\n return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function (symbol) {\n return target.propertyIsEnumerable(symbol);\n }) : [];\n}\n\nfunction getKeys$1(target) {\n return Object.keys(target).concat(getEnumerableOwnPropertySymbols$1(target));\n}\n\nfunction propertyIsOnObject$1(object, property) {\n try {\n return property in object;\n } catch (_) {\n return false;\n }\n} // Protects from prototype poisoning and unexpected merging up the prototype chain.\n\n\nfunction propertyIsUnsafe$1(target, key) {\n return propertyIsOnObject$1(target, key) && // Properties are safe to merge if they don't exist in the target yet,\n !(Object.hasOwnProperty.call(target, key) && // unsafe if they exist up the prototype chain,\n Object.propertyIsEnumerable.call(target, key)); // and also unsafe if they're nonenumerable.\n}\n\nfunction mergeObject$1(target, source, options) {\n var destination = {};\n\n if (options.isMergeableObject(target)) {\n getKeys$1(target).forEach(function (key) {\n destination[key] = cloneUnlessOtherwiseSpecified$1(target[key], options);\n });\n }\n\n getKeys$1(source).forEach(function (key) {\n if (propertyIsUnsafe$1(target, key)) {\n return;\n }\n\n if (propertyIsOnObject$1(target, key) && options.isMergeableObject(source[key])) {\n destination[key] = getMergeFunction$1(key, options)(target[key], source[key], options);\n } else {\n destination[key] = cloneUnlessOtherwiseSpecified$1(source[key], options);\n }\n });\n return destination;\n}\n\nfunction defaultIsMergeableObject$1(value) {\n return isNonNullObject$1(value) && !isSpecial$1(value);\n}\n\nfunction isNonNullObject$1(value) {\n return !!value && typeof value === 'object';\n}\n\nfunction isSpecial$1(value) {\n var stringValue = Object.prototype.toString.call(value);\n return stringValue === '[object RegExp]' || stringValue === '[object Date]';\n}\n\nfunction deepMerge$1(target, source, options) {\n options = options || {};\n options.arrayMerge = options.arrayMerge || defaultArrayMerge$1;\n options.isMergeableObject = options.isMergeableObject || defaultIsMergeableObject$1; // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()\n // implementations can use it. The caller may not replace it.\n\n options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified$1;\n var sourceIsArray = Array.isArray(source);\n var targetIsArray = Array.isArray(target);\n var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n\n if (!sourceAndTargetTypesMatch) {\n return cloneUnlessOtherwiseSpecified$1(source, options);\n } else if (sourceIsArray) {\n return options.arrayMerge(target, source, options);\n } else {\n return mergeObject$1(target, source, options);\n }\n}\n\nfunction isObject(value) {\n return typeof value === 'object' && !Array.isArray(value);\n}\n\nvar __extends$2M = undefined && undefined.__extends || function () {\n var _extendStatics44 = function extendStatics(d, b) {\n _extendStatics44 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics44(d, b);\n };\n\n return function (d, b) {\n _extendStatics44(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar Shape$1 =\n/** @class */\nfunction (_super) {\n __extends$2M(Shape, _super);\n\n function Shape() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.lastInstanceId = 0;\n _this.fillOpacity = 1;\n _this.strokeOpacity = 1;\n _this.fill = Shape.defaultStyles.fill;\n /**\n * Note that `strokeStyle = null` means invisible stroke,\n * while `lineWidth = 0` means no stroke, and sometimes this can mean different things.\n * For example, a rect shape with an invisible stroke may not align to the pixel grid\n * properly because the stroke affects the rules of alignment, and arc shapes forming\n * a pie chart will have a gap between them if they have an invisible stroke, whereas\n * there would be not gap if there was no stroke at all.\n * The preferred way of making the stroke invisible is setting the `lineWidth` to zero,\n * unless specific looks that is achieved by having an invisible stroke is desired.\n */\n\n _this.stroke = Shape.defaultStyles.stroke;\n _this.strokeWidth = Shape.defaultStyles.strokeWidth;\n _this.lineDash = Shape.defaultStyles.lineDash;\n _this.lineDashOffset = Shape.defaultStyles.lineDashOffset;\n _this.lineCap = Shape.defaultStyles.lineCap;\n _this.lineJoin = Shape.defaultStyles.lineJoin;\n _this.opacity = Shape.defaultStyles.opacity;\n _this.fillShadow = Shape.defaultStyles.fillShadow;\n return _this;\n }\n /**\n * Creates a light-weight instance of the given shape (that serves as a template).\n * The created instance only stores the properites set on the instance itself\n * and the rest of the properties come via the prototype chain from the template.\n * This can greatly reduce memory usage in cases where one has many simular shapes,\n * for example, circles of different size, position and color. The exact memory usage\n * reduction will depend on the size of the template and the number of own properties\n * set on its lightweight instances, but will typically be around an order of magnitude\n * or more.\n *\n * Note: template shapes are not supposed to be part of the scene graph (they should not\n * have a parent).\n *\n * @param template\n */\n\n\n Shape.createInstance = function (template) {\n var shape = Object.create(template);\n\n shape._setParent(undefined);\n\n shape.id = template.id + '-Instance-' + String(++template.lastInstanceId);\n return shape;\n };\n /**\n * Restores the default styles introduced by this subclass.\n */\n\n\n Shape.prototype.restoreOwnStyles = function () {\n var styles = this.constructor.defaultStyles;\n var keys = Object.getOwnPropertyNames(styles); // getOwnPropertyNames is about 2.5 times faster than\n // for..in with the hasOwnProperty check and in this\n // case, where most properties are inherited, can be\n // more then an order of magnitude faster.\n\n for (var i = 0, n = keys.length; i < n; i++) {\n var key = keys[i];\n this[key] = styles[key];\n }\n };\n\n Shape.prototype.restoreAllStyles = function () {\n var styles = this.constructor.defaultStyles;\n\n for (var property in styles) {\n this[property] = styles[property];\n }\n };\n /**\n * Restores the base class default styles that have been overridden by this subclass.\n */\n\n\n Shape.prototype.restoreOverriddenStyles = function () {\n var styles = this.constructor.defaultStyles;\n var protoStyles = Object.getPrototypeOf(styles);\n\n for (var property in styles) {\n if (styles.hasOwnProperty(property) && protoStyles.hasOwnProperty(property)) {\n this[property] = styles[property];\n }\n }\n };\n /**\n * Returns a device-pixel aligned coordinate (or length if length is supplied).\n *\n * NOTE: Not suitable for strokes, since the stroke needs to be offset to the middle\n * of a device pixel.\n */\n\n\n Shape.prototype.align = function (start, length) {\n var _a, _b, _c;\n\n var pixelRatio = (_c = (_b = (_a = this.scene) === null || _a === void 0 ? void 0 : _a.canvas) === null || _b === void 0 ? void 0 : _b.pixelRatio, _c !== null && _c !== void 0 ? _c : 1);\n var alignedStart = Math.round(start * pixelRatio) / pixelRatio;\n\n if (length == undefined) {\n return alignedStart;\n } // Account for the rounding of alignedStart by increasing length to compensate before\n // alignment.\n\n\n return Math.round((length + start) * pixelRatio) / pixelRatio - alignedStart;\n };\n\n Shape.prototype.fillStroke = function (ctx) {\n if (!this.scene) {\n return;\n }\n\n var pixelRatio = this.scene.canvas.pixelRatio || 1;\n var globalAlpha = ctx.globalAlpha;\n\n if (this.fill) {\n ctx.fillStyle = this.fill;\n ctx.globalAlpha = globalAlpha * this.opacity * this.fillOpacity; // The canvas context scaling (depends on the device's pixel ratio)\n // has no effect on shadows, so we have to account for the pixel ratio\n // manually here.\n\n var fillShadow = this.fillShadow;\n\n if (fillShadow && fillShadow.enabled) {\n ctx.shadowColor = fillShadow.color;\n ctx.shadowOffsetX = fillShadow.xOffset * pixelRatio;\n ctx.shadowOffsetY = fillShadow.yOffset * pixelRatio;\n ctx.shadowBlur = fillShadow.blur * pixelRatio;\n }\n\n ctx.fill();\n }\n\n ctx.shadowColor = 'rgba(0, 0, 0, 0)';\n\n if (this.stroke && this.strokeWidth) {\n ctx.strokeStyle = this.stroke;\n ctx.globalAlpha = globalAlpha * this.opacity * this.strokeOpacity;\n ctx.lineWidth = this.strokeWidth;\n\n if (this.lineDash) {\n ctx.setLineDash(this.lineDash);\n }\n\n if (this.lineDashOffset) {\n ctx.lineDashOffset = this.lineDashOffset;\n }\n\n if (this.lineCap) {\n ctx.lineCap = this.lineCap;\n }\n\n if (this.lineJoin) {\n ctx.lineJoin = this.lineJoin;\n }\n\n ctx.stroke();\n }\n };\n\n Shape.prototype.containsPoint = function (x, y) {\n return this.isPointInPath(x, y);\n };\n /**\n * Defaults for style properties. Note that properties that affect the position\n * and shape of the node are not considered style properties, for example:\n * `x`, `y`, `width`, `height`, `radius`, `rotation`, etc.\n * Can be used to reset to the original styling after some custom styling\n * has been applied (using the `restoreOwnStyles` and `restoreAllStyles` methods).\n * These static defaults are meant to be inherited by subclasses.\n */\n\n\n Shape.defaultStyles = chainObjects$1({}, {\n fill: 'black',\n stroke: undefined,\n strokeWidth: 0,\n lineDash: undefined,\n lineDashOffset: 0,\n lineCap: undefined,\n lineJoin: undefined,\n opacity: 1,\n fillShadow: undefined\n });\n\n __decorate$1m([SceneChangeDetection({\n redraw: RedrawType.MINOR\n })], Shape.prototype, \"fillOpacity\", void 0);\n\n __decorate$1m([SceneChangeDetection({\n redraw: RedrawType.MINOR\n })], Shape.prototype, \"strokeOpacity\", void 0);\n\n __decorate$1m([SceneChangeDetection({\n redraw: RedrawType.MINOR\n })], Shape.prototype, \"fill\", void 0);\n\n __decorate$1m([SceneChangeDetection({\n redraw: RedrawType.MINOR\n })], Shape.prototype, \"stroke\", void 0);\n\n __decorate$1m([SceneChangeDetection({\n redraw: RedrawType.MINOR\n })], Shape.prototype, \"strokeWidth\", void 0);\n\n __decorate$1m([SceneChangeDetection({\n redraw: RedrawType.MINOR\n })], Shape.prototype, \"lineDash\", void 0);\n\n __decorate$1m([SceneChangeDetection({\n redraw: RedrawType.MINOR\n })], Shape.prototype, \"lineDashOffset\", void 0);\n\n __decorate$1m([SceneChangeDetection({\n redraw: RedrawType.MINOR\n })], Shape.prototype, \"lineCap\", void 0);\n\n __decorate$1m([SceneChangeDetection({\n redraw: RedrawType.MINOR\n })], Shape.prototype, \"lineJoin\", void 0);\n\n __decorate$1m([SceneChangeDetection({\n redraw: RedrawType.MINOR,\n convertor: function convertor(v) {\n return Math.min(1, Math.max(0, v));\n }\n })], Shape.prototype, \"opacity\", void 0);\n\n __decorate$1m([SceneChangeDetection({\n redraw: RedrawType.MINOR,\n checkDirtyOnAssignment: true\n })], Shape.prototype, \"fillShadow\", void 0);\n\n return Shape;\n}(Node$1);\n/**\n * Wraps the native Canvas element and overrides its CanvasRenderingContext2D to\n * provide resolution independent rendering based on `window.devicePixelRatio`.\n */\n\n\nvar HdpiCanvas$1 =\n/** @class */\nfunction () {\n // The width/height attributes of the Canvas element default to\n // 300/150 according to w3.org.\n function HdpiCanvas(_a) {\n var _b = _a.document,\n document = _b === void 0 ? window.document : _b,\n _c = _a.width,\n width = _c === void 0 ? 600 : _c,\n _d = _a.height,\n height = _d === void 0 ? 300 : _d,\n _e = _a.domLayer,\n domLayer = _e === void 0 ? false : _e,\n _f = _a.zIndex,\n zIndex = _f === void 0 ? 0 : _f,\n _g = _a.name,\n name = _g === void 0 ? undefined : _g;\n this._container = undefined;\n this._enabled = true;\n this._opacity = 1; // `NaN` is deliberate here, so that overrides are always applied\n // and the `resetTransform` inside the `resize` method works in IE11.\n\n this._pixelRatio = NaN;\n this._width = 0;\n this._height = 0;\n this.document = document;\n this.element = document.createElement('canvas');\n this.context = this.element.getContext('2d');\n this.imageSource = this.context.canvas;\n var style = this.element.style;\n style.userSelect = 'none';\n style.display = 'block';\n\n if (domLayer) {\n style.position = 'absolute';\n style.zIndex = String(zIndex);\n style.top = '0';\n style.left = '0';\n style.pointerEvents = 'none';\n style.opacity = \"1\";\n\n if (name) {\n this.element.id = name;\n }\n }\n\n this.setPixelRatio();\n this.resize(width, height);\n }\n\n Object.defineProperty(HdpiCanvas.prototype, \"container\", {\n get: function get() {\n return this._container;\n },\n set: function set(value) {\n if (this._container !== value) {\n this.remove();\n\n if (value) {\n value.appendChild(this.element);\n }\n\n this._container = value;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(HdpiCanvas.prototype, \"enabled\", {\n get: function get() {\n return this._enabled;\n },\n set: function set(value) {\n this.element.style.display = value ? 'block' : 'none';\n this._enabled = !!value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(HdpiCanvas.prototype, \"opacity\", {\n get: function get() {\n return this._opacity;\n },\n set: function set(value) {\n this.element.style.opacity = \"\" + value;\n this._opacity = value;\n },\n enumerable: true,\n configurable: true\n });\n\n HdpiCanvas.prototype.remove = function () {\n var parentNode = this.element.parentNode;\n\n if (parentNode != null) {\n parentNode.removeChild(this.element);\n }\n };\n\n HdpiCanvas.prototype.destroy = function () {\n this.element.remove();\n this._canvas = undefined;\n Object.freeze(this);\n };\n\n HdpiCanvas.prototype.snapshot = function () {// No-op for compatibility with HdpiOffscreenCanvas.\n };\n\n HdpiCanvas.prototype.clear = function () {\n this.context.save();\n this.context.resetTransform();\n this.context.clearRect(0, 0, this.width, this.height);\n this.context.restore();\n };\n\n HdpiCanvas.prototype.toImage = function () {\n var img = this.document.createElement('img');\n img.src = this.getDataURL();\n return img;\n };\n\n HdpiCanvas.prototype.getDataURL = function (type) {\n return this.element.toDataURL(type);\n };\n /**\n * @param fileName The name of the file upon save. The `.png` extension is going to be added automatically.\n */\n\n\n HdpiCanvas.prototype.download = function (fileName) {\n fileName = ((fileName || '').trim() || 'image') + '.png'; // Chart images saved as JPEG are a few times larger at 50% quality than PNG images,\n // so we don't support saving to JPEG.\n\n var type = 'image/png';\n var dataUrl = this.getDataURL(type);\n var document = this.document;\n var a = document.createElement('a');\n a.href = dataUrl;\n a.download = fileName;\n a.style.display = 'none';\n document.body.appendChild(a); // required for the `click` to work in Firefox\n\n a.click();\n document.body.removeChild(a);\n };\n\n Object.defineProperty(HdpiCanvas.prototype, \"pixelRatio\", {\n get: function get() {\n return this._pixelRatio;\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Changes the pixel ratio of the Canvas element to the given value,\n * or uses the window.devicePixelRatio (default), then resizes the Canvas\n * element accordingly (default).\n */\n\n HdpiCanvas.prototype.setPixelRatio = function (ratio) {\n var pixelRatio = ratio || window.devicePixelRatio;\n\n if (pixelRatio === this.pixelRatio) {\n return;\n }\n\n HdpiCanvas.overrideScale(this.context, pixelRatio);\n this._pixelRatio = pixelRatio;\n this.resize(this.width, this.height);\n };\n\n Object.defineProperty(HdpiCanvas.prototype, \"pixelated\", {\n get: function get() {\n return this.element.style.imageRendering === 'pixelated';\n },\n set: function set(value) {\n this.element.style.imageRendering = value ? 'pixelated' : 'auto';\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(HdpiCanvas.prototype, \"width\", {\n get: function get() {\n return this._width;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(HdpiCanvas.prototype, \"height\", {\n get: function get() {\n return this._height;\n },\n enumerable: true,\n configurable: true\n });\n\n HdpiCanvas.prototype.resize = function (width, height) {\n if (!(width > 0 && height > 0)) {\n return;\n }\n\n var _a = this,\n element = _a.element,\n context = _a.context,\n pixelRatio = _a.pixelRatio;\n\n element.width = Math.round(width * pixelRatio);\n element.height = Math.round(height * pixelRatio);\n element.style.width = width + 'px';\n element.style.height = height + 'px';\n context.resetTransform();\n this._width = width;\n this._height = height;\n };\n\n Object.defineProperty(HdpiCanvas, \"textMeasuringContext\", {\n get: function get() {\n if (this._textMeasuringContext) {\n return this._textMeasuringContext;\n }\n\n var canvas = document.createElement('canvas');\n this._textMeasuringContext = canvas.getContext('2d');\n return this._textMeasuringContext;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(HdpiCanvas, \"svgText\", {\n get: function get() {\n if (this._svgText) {\n return this._svgText;\n }\n\n var xmlns = 'http://www.w3.org/2000/svg';\n var svg = document.createElementNS(xmlns, 'svg');\n svg.setAttribute('width', '100');\n svg.setAttribute('height', '100'); // Add a descriptive class name in case someone sees this SVG element\n // in devtools and wonders about its purpose:\n\n if (svg.classList) {\n svg.classList.add('text-measuring-svg');\n } else {\n svg.setAttribute('class', 'text-measuring-svg');\n }\n\n svg.style.position = 'absolute';\n svg.style.top = '-1000px';\n svg.style.visibility = 'hidden';\n var svgText = document.createElementNS(xmlns, 'text');\n svgText.setAttribute('x', '0');\n svgText.setAttribute('y', '30');\n svgText.setAttribute('text', 'black');\n svg.appendChild(svgText);\n document.body.appendChild(svg);\n this._svgText = svgText;\n return svgText;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(HdpiCanvas, \"has\", {\n get: function get() {\n if (this._has) {\n return this._has;\n }\n\n var isChrome = navigator.userAgent.indexOf('Chrome') > -1;\n var isFirefox = navigator.userAgent.indexOf('Firefox') > -1;\n var isSafari = !isChrome && navigator.userAgent.indexOf('Safari') > -1;\n this._has = Object.freeze({\n textMetrics: this.textMeasuringContext.measureText('test').actualBoundingBoxDescent !== undefined && // Firefox implemented advanced TextMetrics object in v74:\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1102584\n // but it's buggy, so we'll keed using the SVG for text measurement in Firefox for now.\n !isFirefox && !isSafari,\n getTransform: this.textMeasuringContext.getTransform !== undefined\n });\n return this._has;\n },\n enumerable: true,\n configurable: true\n });\n\n HdpiCanvas.measureText = function (text, font, textBaseline, textAlign) {\n var ctx = this.textMeasuringContext;\n ctx.font = font;\n ctx.textBaseline = textBaseline;\n ctx.textAlign = textAlign;\n return ctx.measureText(text);\n };\n /**\n * Returns the width and height of the measured text.\n * @param text The single-line text to measure.\n * @param font The font shorthand string.\n */\n\n\n HdpiCanvas.getTextSize = function (text, font) {\n if (this.has.textMetrics) {\n var ctx = this.textMeasuringContext;\n ctx.font = font;\n var metrics = ctx.measureText(text);\n return {\n width: metrics.width,\n height: metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent\n };\n } else {\n return this.measureSvgText(text, font);\n }\n };\n\n HdpiCanvas.measureSvgText = function (text, font) {\n var cache = this.textSizeCache;\n var fontCache = cache[font]; // Note: consider not caching the size of numeric strings.\n // For example: if (isNaN(+text)) { // skip\n\n if (fontCache) {\n var size_1 = fontCache[text];\n\n if (size_1) {\n return size_1;\n }\n } else {\n cache[font] = {};\n }\n\n var svgText = this.svgText;\n svgText.style.font = font;\n svgText.textContent = text; // `getBBox` returns an instance of `SVGRect` with the same `width` and `height`\n // measurements as `DOMRect` instance returned by the `getBoundingClientRect`.\n // But the `SVGRect` instance has half the properties of the `DOMRect`,\n // so we use the `getBBox` method.\n\n var bbox = svgText.getBBox();\n var size = {\n width: bbox.width,\n height: bbox.height\n };\n cache[font][text] = size;\n return size;\n };\n\n HdpiCanvas.overrideScale = function (ctx, scale) {\n var depth = 0;\n var overrides = {\n save: function save() {\n this.$save();\n depth++;\n },\n restore: function restore() {\n if (depth > 0) {\n this.$restore();\n depth--;\n } else {\n throw new Error('Unable to restore() past depth 0');\n }\n },\n setTransform: function setTransform(a, b, c, d, e, f) {\n if (typeof a === 'object') {\n this.$setTransform(a);\n } else {\n this.$setTransform(a * scale, b * scale, c * scale, d * scale, e * scale, f * scale);\n }\n },\n resetTransform: function resetTransform() {\n // As of Jan 8, 2019, `resetTransform` is still an \"experimental technology\",\n // and doesn't work in IE11 and Edge 44.\n this.$setTransform(scale, 0, 0, scale, 0, 0);\n }\n };\n\n for (var name_1 in overrides) {\n if (overrides.hasOwnProperty(name_1)) {\n // Save native methods under prefixed names,\n // if this hasn't been done by the previous overrides already.\n if (!ctx['$' + name_1]) {\n ctx['$' + name_1] = ctx[name_1];\n } // Replace native methods with overrides,\n // or previous overrides with the new ones.\n\n\n ctx[name_1] = overrides[name_1];\n }\n }\n };\n\n HdpiCanvas.textSizeCache = {};\n return HdpiCanvas;\n}();\n\nvar __extends$2L = undefined && undefined.__extends || function () {\n var _extendStatics45 = function extendStatics(d, b) {\n _extendStatics45 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics45(d, b);\n };\n\n return function (d, b) {\n _extendStatics45(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nfunction SceneFontChangeDetection(opts) {\n var _a = opts || {},\n _b = _a.redraw,\n redraw = _b === void 0 ? RedrawType.MAJOR : _b,\n changeCb = _a.changeCb;\n\n return SceneChangeDetection({\n redraw: redraw,\n type: 'font',\n changeCb: changeCb\n });\n}\n\nvar Text$1 =\n/** @class */\nfunction (_super) {\n __extends$2L(Text, _super);\n\n function Text() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.x = 0;\n _this.y = 0;\n _this.lines = [];\n _this.text = '';\n _this._dirtyFont = true;\n _this.fontSize = 10;\n _this.fontFamily = 'sans-serif';\n _this.textAlign = Text.defaultStyles.textAlign;\n _this.textBaseline = Text.defaultStyles.textBaseline; // Multi-line text is complicated because:\n // - Canvas does not support it natively, so we have to implement it manually\n // - need to know the height of each line -> need to parse the font shorthand ->\n // generally impossible to do because font size may not be in pixels\n // - so, need to measure the text instead, each line individually -> expensive\n // - or make the user provide the line height manually for multi-line text\n // - computeBBox should use the lineHeight for multi-line text but ignore it otherwise\n // - textBaseline kind of loses its meaning for multi-line text\n\n _this.lineHeight = 14;\n return _this;\n }\n\n Text.prototype._splitText = function () {\n this.lines = typeof this.text === 'string' ? this.text.split(/\\r?\\n/g) : [];\n };\n\n Object.defineProperty(Text.prototype, \"font\", {\n get: function get() {\n if (this._dirtyFont) {\n this._dirtyFont = false;\n this._font = getFont$2(this.fontSize, this.fontFamily, this.fontStyle, this.fontWeight);\n }\n\n return this._font;\n },\n enumerable: true,\n configurable: true\n });\n\n Text.prototype.computeBBox = function () {\n return HdpiCanvas$1.has.textMetrics ? this.getPreciseBBox() : this.getApproximateBBox();\n };\n\n Text.prototype.getPreciseBBox = function () {\n var metrics = HdpiCanvas$1.measureText(this.text, this.font, this.textBaseline, this.textAlign);\n return new BBox$1(this.x - metrics.actualBoundingBoxLeft, this.y - metrics.actualBoundingBoxAscent, metrics.width, metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent);\n };\n\n Text.prototype.getApproximateBBox = function () {\n var size = HdpiCanvas$1.getTextSize(this.text, this.font);\n\n var _a = this,\n x = _a.x,\n y = _a.y;\n\n switch (this.textAlign) {\n case 'end':\n case 'right':\n x -= size.width;\n break;\n\n case 'center':\n x -= size.width / 2;\n }\n\n switch (this.textBaseline) {\n case 'alphabetic':\n y -= size.height * 0.7;\n break;\n\n case 'middle':\n y -= size.height * 0.45;\n break;\n\n case 'ideographic':\n y -= size.height;\n break;\n\n case 'hanging':\n y -= size.height * 0.2;\n break;\n\n case 'bottom':\n y -= size.height;\n break;\n }\n\n return new BBox$1(x, y, size.width, size.height);\n };\n\n Text.prototype.isPointInPath = function (x, y) {\n var point = this.transformPoint(x, y);\n var bbox = this.computeBBox();\n return bbox ? bbox.containsPoint(point.x, point.y) : false;\n };\n\n Text.prototype.render = function (renderCtx) {\n var ctx = renderCtx.ctx,\n forceRender = renderCtx.forceRender,\n stats = renderCtx.stats;\n\n if (this.dirty === RedrawType.NONE && !forceRender) {\n if (stats) stats.nodesSkipped += this.nodeCount.count;\n return;\n }\n\n if (!this.lines.length || !this.scene) {\n if (stats) stats.nodesSkipped += this.nodeCount.count;\n return;\n }\n\n this.computeTransformMatrix();\n this.matrix.toContext(ctx);\n\n var _a = this,\n fill = _a.fill,\n stroke = _a.stroke,\n strokeWidth = _a.strokeWidth;\n\n ctx.font = this.font;\n ctx.textAlign = this.textAlign;\n ctx.textBaseline = this.textBaseline;\n var pixelRatio = this.scene.canvas.pixelRatio || 1;\n var globalAlpha = ctx.globalAlpha;\n\n if (fill) {\n ctx.fillStyle = fill;\n ctx.globalAlpha = globalAlpha * this.opacity * this.fillOpacity;\n\n var _b = this,\n fillShadow = _b.fillShadow,\n text = _b.text,\n x = _b.x,\n y = _b.y;\n\n if (fillShadow && fillShadow.enabled) {\n ctx.shadowColor = fillShadow.color;\n ctx.shadowOffsetX = fillShadow.xOffset * pixelRatio;\n ctx.shadowOffsetY = fillShadow.yOffset * pixelRatio;\n ctx.shadowBlur = fillShadow.blur * pixelRatio;\n }\n\n ctx.fillText(text, x, y);\n }\n\n if (stroke && strokeWidth) {\n ctx.strokeStyle = stroke;\n ctx.lineWidth = strokeWidth;\n ctx.globalAlpha = globalAlpha * this.opacity * this.strokeOpacity;\n\n var _c = this,\n lineDash = _c.lineDash,\n lineDashOffset = _c.lineDashOffset,\n lineCap = _c.lineCap,\n lineJoin = _c.lineJoin,\n text = _c.text,\n x = _c.x,\n y = _c.y;\n\n if (lineDash) {\n ctx.setLineDash(lineDash);\n }\n\n if (lineDashOffset) {\n ctx.lineDashOffset = lineDashOffset;\n }\n\n if (lineCap) {\n ctx.lineCap = lineCap;\n }\n\n if (lineJoin) {\n ctx.lineJoin = lineJoin;\n }\n\n ctx.strokeText(text, x, y);\n }\n\n _super.prototype.render.call(this, renderCtx);\n };\n\n Text.className = 'Text';\n Text.defaultStyles = chainObjects$1(Shape$1.defaultStyles, {\n textAlign: 'start',\n fontStyle: undefined,\n fontWeight: undefined,\n fontSize: 10,\n fontFamily: 'sans-serif',\n textBaseline: 'alphabetic'\n });\n\n __decorate$1l([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], Text.prototype, \"x\", void 0);\n\n __decorate$1l([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], Text.prototype, \"y\", void 0);\n\n __decorate$1l([SceneChangeDetection({\n redraw: RedrawType.MAJOR,\n changeCb: function changeCb(o) {\n return o._splitText();\n }\n })], Text.prototype, \"text\", void 0);\n\n __decorate$1l([SceneFontChangeDetection()], Text.prototype, \"fontStyle\", void 0);\n\n __decorate$1l([SceneFontChangeDetection()], Text.prototype, \"fontWeight\", void 0);\n\n __decorate$1l([SceneFontChangeDetection()], Text.prototype, \"fontSize\", void 0);\n\n __decorate$1l([SceneFontChangeDetection()], Text.prototype, \"fontFamily\", void 0);\n\n __decorate$1l([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], Text.prototype, \"textAlign\", void 0);\n\n __decorate$1l([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], Text.prototype, \"textBaseline\", void 0);\n\n __decorate$1l([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], Text.prototype, \"lineHeight\", void 0);\n\n return Text;\n}(Shape$1);\n\nfunction getFont$2(fontSize, fontFamily, fontStyle, fontWeight) {\n return [fontStyle || '', fontWeight || '', fontSize + 'px', fontFamily].join(' ').trim();\n}\n\nvar __assign$x = undefined && undefined.__assign || function () {\n __assign$x = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$x.apply(this, arguments);\n};\n\nvar Observable$1 =\n/** @class */\nfunction () {\n function Observable() {\n // Note that these maps can't be specified generically, so they are kept untyped.\n // Some methods in this class only need generics in their signatures, the generics inside the methods\n // are just for clarity. The generics in signatures allow for static type checking of user provided\n // listeners and for type inference, so that the users wouldn't have to specify the type of parameters\n // of their inline lambdas.\n this.allPropertyListeners = new Map(); // property name => property change listener => scopes\n\n this.allEventListeners = new Map(); // event type => event listener => scopes\n }\n\n Observable.prototype.addPropertyListener = function (name, listener, scope) {\n if (scope === void 0) {\n scope = this;\n }\n\n var allPropertyListeners = this.allPropertyListeners;\n var propertyListeners = allPropertyListeners.get(name);\n\n if (!propertyListeners) {\n propertyListeners = new Map();\n allPropertyListeners.set(name, propertyListeners);\n }\n\n if (!propertyListeners.has(listener)) {\n var scopes_1 = new Set();\n propertyListeners.set(listener, scopes_1);\n }\n\n var scopes = propertyListeners.get(listener);\n\n if (scopes) {\n scopes.add(scope);\n }\n };\n\n Observable.prototype.removePropertyListener = function (name, listener, scope) {\n if (scope === void 0) {\n scope = this;\n }\n\n var allPropertyListeners = this.allPropertyListeners;\n var propertyListeners = allPropertyListeners.get(name);\n\n if (propertyListeners) {\n if (listener) {\n var scopes = propertyListeners.get(listener);\n\n if (scopes) {\n scopes.delete(scope);\n\n if (!scopes.size) {\n propertyListeners.delete(listener);\n }\n }\n } else {\n propertyListeners.clear();\n }\n }\n };\n\n Observable.prototype.notifyPropertyListeners = function (name, oldValue, value) {\n var _this = this;\n\n var allPropertyListeners = this.allPropertyListeners;\n var propertyListeners = allPropertyListeners.get(name);\n\n if (propertyListeners) {\n propertyListeners.forEach(function (scopes, listener) {\n scopes.forEach(function (scope) {\n return listener.call(scope, {\n type: name,\n source: _this,\n value: value,\n oldValue: oldValue\n });\n });\n });\n }\n };\n\n Observable.prototype.addEventListener = function (type, listener, scope) {\n if (scope === void 0) {\n scope = this;\n }\n\n var allEventListeners = this.allEventListeners;\n var eventListeners = allEventListeners.get(type);\n\n if (!eventListeners) {\n eventListeners = new Map();\n allEventListeners.set(type, eventListeners);\n }\n\n if (!eventListeners.has(listener)) {\n var scopes_2 = new Set();\n eventListeners.set(listener, scopes_2);\n }\n\n var scopes = eventListeners.get(listener);\n\n if (scopes) {\n scopes.add(scope);\n }\n };\n\n Observable.prototype.removeEventListener = function (type, listener, scope) {\n if (scope === void 0) {\n scope = this;\n }\n\n var allEventListeners = this.allEventListeners;\n var eventListeners = allEventListeners.get(type);\n\n if (eventListeners) {\n if (listener) {\n var scopes = eventListeners.get(listener);\n\n if (scopes) {\n scopes.delete(scope);\n\n if (!scopes.size) {\n eventListeners.delete(listener);\n }\n }\n } else {\n eventListeners.clear();\n }\n }\n };\n\n Observable.prototype.clearEventListeners = function () {\n this.allEventListeners = new Map();\n };\n\n Observable.prototype.notifyEventListeners = function (types) {\n var _this = this;\n\n var allEventListeners = this.allEventListeners;\n types.forEach(function (type) {\n var listeners = allEventListeners.get(type);\n\n if (listeners) {\n listeners.forEach(function (scopes, listener) {\n scopes.forEach(function (scope) {\n return listener.call(scope, {\n type: type,\n source: _this\n });\n });\n });\n }\n });\n }; // 'source' is added automatically and is always the object this method belongs to.\n\n\n Observable.prototype.fireEvent = function (event) {\n var _this = this;\n\n var listeners = this.allEventListeners.get(event.type);\n\n if (listeners) {\n listeners.forEach(function (scopes, listener) {\n scopes.forEach(function (scope) {\n return listener.call(scope, __assign$x(__assign$x({}, event), {\n source: _this\n }));\n });\n });\n }\n };\n\n Observable.privateKeyPrefix = '_';\n return Observable;\n}();\n\nvar __extends$2K = undefined && undefined.__extends || function () {\n var _extendStatics46 = function extendStatics(d, b) {\n _extendStatics46 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics46(d, b);\n };\n\n return function (d, b) {\n _extendStatics46(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar Caption =\n/** @class */\nfunction (_super) {\n __extends$2K(Caption, _super);\n\n function Caption() {\n var _this = _super.call(this) || this;\n\n _this.node = new Text$1();\n _this.enabled = false;\n var node = _this.node;\n node.textAlign = 'center';\n node.textBaseline = 'top';\n node.pointerEvents = PointerEvents$1.None;\n return _this;\n }\n\n Object.defineProperty(Caption.prototype, \"text\", {\n get: function get() {\n return this.node.text;\n },\n set: function set(value) {\n this.node.text = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Caption.prototype, \"fontStyle\", {\n get: function get() {\n return this.node.fontStyle;\n },\n set: function set(value) {\n this.node.fontStyle = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Caption.prototype, \"fontWeight\", {\n get: function get() {\n return this.node.fontWeight;\n },\n set: function set(value) {\n this.node.fontWeight = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Caption.prototype, \"fontSize\", {\n get: function get() {\n return this.node.fontSize;\n },\n set: function set(value) {\n this.node.fontSize = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Caption.prototype, \"fontFamily\", {\n get: function get() {\n return this.node.fontFamily;\n },\n set: function set(value) {\n this.node.fontFamily = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Caption.prototype, \"color\", {\n get: function get() {\n return this.node.fill;\n },\n set: function set(value) {\n this.node.fill = value;\n },\n enumerable: true,\n configurable: true\n });\n Caption.PADDING = 10;\n return Caption;\n}(Observable$1);\n\nvar __extends$2J = undefined && undefined.__extends || function () {\n var _extendStatics47 = function extendStatics(d, b) {\n _extendStatics47 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics47(d, b);\n };\n\n return function (d, b) {\n _extendStatics47(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nfunction ticks$1(a, b, count) {\n var step = tickStep$1(a, b, count);\n a = Math.ceil(a / step) * step;\n b = Math.floor(b / step) * step + step / 2; // Add half a step here so that the array returned by `range` includes the last tick.\n\n return range$1(a, b, step);\n}\n\nvar e10$1 = Math.sqrt(50);\nvar e5$1 = Math.sqrt(10);\nvar e2$1 = Math.sqrt(2);\n\nfunction tickStep$1(a, b, count) {\n var rawStep = Math.abs(b - a) / Math.max(0, count);\n var step = Math.pow(10, Math.floor(Math.log(rawStep) / Math.LN10)); // = Math.log10(rawStep)\n\n var error = rawStep / step;\n\n if (error >= e10$1) {\n step *= 10;\n } else if (error >= e5$1) {\n step *= 5;\n } else if (error >= e2$1) {\n step *= 2;\n }\n\n return b < a ? -step : step;\n}\n\nfunction tickIncrement$1(a, b, count) {\n var rawStep = (b - a) / Math.max(0, count);\n var power = Math.floor(Math.log(rawStep) / Math.LN10);\n var error = rawStep / Math.pow(10, power);\n return power >= 0 ? (error >= e10$1 ? 10 : error >= e5$1 ? 5 : error >= e2$1 ? 2 : 1) * Math.pow(10, power) : -Math.pow(10, -power) / (error >= e10$1 ? 10 : error >= e5$1 ? 5 : error >= e2$1 ? 2 : 1);\n}\n\nvar NumericTicks$1 =\n/** @class */\nfunction (_super) {\n __extends$2J(NumericTicks, _super);\n\n function NumericTicks(fractionDigits, elements) {\n var _this = _super.call(this) || this;\n\n if (elements) {\n for (var i = 0, n = elements.length; i < n; i++) {\n _this[i] = elements[i];\n }\n }\n\n _this.fractionDigits = fractionDigits;\n return _this;\n }\n\n return NumericTicks;\n}(Array);\n\nfunction range$1(a, b, step) {\n if (step === void 0) {\n step = 1;\n }\n\n var absStep = Math.abs(step);\n var fractionDigits = absStep > 0 && absStep < 1 ? Math.abs(Math.floor(Math.log(absStep) / Math.LN10)) : 0;\n var f = Math.pow(10, fractionDigits);\n var n = Math.max(0, Math.ceil((b - a) / step)) || 0;\n var values = new NumericTicks$1(fractionDigits);\n\n for (var i = 0; i < n; i++) {\n var value = a + step * i;\n values[i] = Math.round(value * f) / f;\n }\n\n return values;\n}\n\nfunction calculateNiceSecondaryAxis(domain, primaryTickCount) {\n // Make secondary axis domain nice using strict tick count, matching the tick count from the primary axis.\n // This is to make the secondary axis grid lines/ tick positions align with the ones from the primary axis.\n var start = Math.floor(domain[0]);\n var stop = domain[1];\n start = calculateNiceStart(start, stop, primaryTickCount);\n var step = getTickStep(start, stop, primaryTickCount);\n var segments = primaryTickCount - 1;\n stop = start + segments * step;\n var d = [start, stop];\n var ticks = getTicks(start, step, primaryTickCount);\n return [d, ticks];\n}\n\nfunction calculateNiceStart(a, b, count) {\n var rawStep = Math.abs(b - a) / (count - 1);\n var order = Math.floor(Math.log10(rawStep));\n var magnitude = Math.pow(10, order);\n return Math.floor(a / magnitude) * magnitude;\n}\n\nfunction getTicks(start, step, count) {\n // power of the step will be negative if the step is a fraction (between 0 and 1)\n var stepPower = Math.floor(Math.log10(step));\n var fractionDigits = step > 0 && step < 1 ? Math.abs(stepPower) : 0;\n var f = Math.pow(10, fractionDigits);\n var ticks = new NumericTicks$1(fractionDigits);\n\n for (var i = 0; i < count; i++) {\n var tick = start + step * i;\n ticks[i] = Math.round(tick * f) / f;\n }\n\n return ticks;\n}\n\nfunction getTickStep(start, stop, count) {\n var segments = count - 1;\n var rawStep = (stop - start) / segments;\n return calculateNextNiceStep(rawStep);\n}\n\nfunction calculateNextNiceStep(rawStep) {\n var order = Math.floor(Math.log10(rawStep));\n var magnitude = Math.pow(10, order); // Make order 1\n\n var step = rawStep / magnitude * 10;\n\n if (step > 0 && step <= 1) {\n return magnitude / 10;\n }\n\n if (step > 1 && step <= 2) {\n return 2 * magnitude / 10;\n }\n\n if (step > 1 && step <= 5) {\n return 5 * magnitude / 10;\n }\n\n if (step > 5 && step <= 10) {\n return 10 * magnitude / 10;\n }\n\n if (step > 10 && step <= 20) {\n return 20 * magnitude / 10;\n }\n\n if (step > 20 && step <= 40) {\n return 40 * magnitude / 10;\n }\n\n if (step > 40 && step <= 50) {\n return 50 * magnitude / 10;\n }\n\n if (step > 50 && step <= 100) {\n return 100 * magnitude / 10;\n }\n\n return step;\n}\n\nvar constant$3 = function constant$3(x) {\n return function () {\n return x;\n };\n};\n\nfunction interpolateNumber$1(a, b) {\n a = +a;\n b = +b;\n return function (t) {\n return a * (1 - t) + b * t;\n };\n}\n\nfunction date$1(a, b) {\n var date = new Date();\n var msA = +a;\n var msB = +b;\n return function (t) {\n date.setTime(msA * (1 - t) + msB * t);\n return date;\n };\n}\n\nfunction array$1(a, b) {\n var nb = b ? b.length : 0;\n var na = a ? Math.min(nb, a.length) : 0;\n var x = new Array(na);\n var c = new Array(nb);\n var i;\n\n for (i = 0; i < na; ++i) {\n x[i] = interpolateValue$1(a[i], b[i]);\n }\n\n for (; i < nb; ++i) {\n c[i] = b[i];\n }\n\n return function (t) {\n for (i = 0; i < na; ++i) {\n c[i] = x[i](t);\n }\n\n return c;\n };\n}\n\nfunction object$1(a, b) {\n var i = {};\n var c = {};\n var k;\n\n if (a === null || typeof a !== 'object') {\n a = {};\n }\n\n if (b === null || typeof b !== 'object') {\n b = {};\n }\n\n for (k in b) {\n if (k in a) {\n i[k] = interpolateValue$1(a[k], b[k]);\n } else {\n c[k] = b[k];\n }\n }\n\n return function (t) {\n for (k in i) {\n c[k] = i[k](t);\n }\n\n return c;\n };\n}\n\nvar __read$K = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar Color$1 =\n/** @class */\nfunction () {\n /**\n * Every color component should be in the [0, 1] range.\n * Some easing functions (such as elastic easing) can overshoot the target value by some amount.\n * So, when animating colors, if the source or target color components are already near\n * or at the edge of the allowed [0, 1] range, it is possible for the intermediate color\n * component value to end up outside of that range mid-animation. For this reason the constructor\n * performs range checking/constraining.\n * @param r Red component.\n * @param g Green component.\n * @param b Blue component.\n * @param a Alpha (opacity) component.\n */\n function Color(r, g, b, a) {\n if (a === void 0) {\n a = 1;\n } // NaN is treated as 0.\n\n\n this.r = Math.min(1, Math.max(0, r || 0));\n this.g = Math.min(1, Math.max(0, g || 0));\n this.b = Math.min(1, Math.max(0, b || 0));\n this.a = Math.min(1, Math.max(0, a || 0));\n }\n /**\n * The given string can be in one of the following formats:\n * - #rgb\n * - #rrggbb\n * - rgb(r, g, b)\n * - rgba(r, g, b, a)\n * - CSS color name such as 'white', 'orange', 'cyan', etc.\n * @param str\n */\n\n\n Color.fromString = function (str) {\n // hexadecimal notation\n if (str.indexOf('#') >= 0) {\n // there can be some leading whitespace\n return Color.fromHexString(str);\n } // color name\n\n\n var hex = Color.nameToHex[str];\n\n if (hex) {\n return Color.fromHexString(hex);\n } // rgb(a) notation\n\n\n if (str.indexOf('rgb') >= 0) {\n return Color.fromRgbaString(str);\n }\n\n throw new Error(\"Invalid color string: '\" + str + \"'\");\n }; // See https://drafts.csswg.org/css-color/#hex-notation\n\n\n Color.parseHex = function (input) {\n input = input.replace(/ /g, '').slice(1);\n var parts;\n\n switch (input.length) {\n case 6:\n case 8:\n parts = [];\n\n for (var i = 0; i < input.length; i += 2) {\n parts.push(parseInt(\"\" + input[i] + input[i + 1], 16));\n }\n\n break;\n\n case 3:\n case 4:\n parts = input.split('').map(function (p) {\n return parseInt(p, 16);\n }).map(function (p) {\n return p + p * 16;\n });\n break;\n }\n\n if (parts.length >= 3) {\n if (parts.every(function (p) {\n return p >= 0;\n })) {\n if (parts.length === 3) {\n parts.push(255);\n }\n\n return parts;\n }\n }\n };\n\n Color.fromHexString = function (str) {\n var values = Color.parseHex(str);\n\n if (values) {\n var _a = __read$K(values, 4),\n r = _a[0],\n g = _a[1],\n b = _a[2],\n a = _a[3];\n\n return new Color(r / 255, g / 255, b / 255, a / 255);\n }\n\n throw new Error(\"Malformed hexadecimal color string: '\" + str + \"'\");\n };\n\n Color.stringToRgba = function (str) {\n // Find positions of opening and closing parentheses.\n var _a = __read$K([NaN, NaN], 2),\n po = _a[0],\n pc = _a[1];\n\n for (var i = 0; i < str.length; i++) {\n var c = str[i];\n\n if (!po && c === '(') {\n po = i;\n } else if (c === ')') {\n pc = i;\n break;\n }\n }\n\n var contents = po && pc && str.substring(po + 1, pc);\n\n if (!contents) {\n return;\n }\n\n var parts = contents.split(',');\n var rgba = [];\n\n for (var i = 0; i < parts.length; i++) {\n var part = parts[i];\n var value = parseFloat(part);\n\n if (isNaN(value)) {\n return;\n }\n\n if (part.indexOf('%') >= 0) {\n // percentage r, g, or b value\n value = Math.max(0, Math.min(100, value));\n value /= 100;\n } else {\n if (i === 3) {\n // alpha component\n value = Math.max(0, Math.min(1, value));\n } else {\n // absolute r, g, or b value\n value = Math.max(0, Math.min(255, value));\n value /= 255;\n }\n }\n\n rgba.push(value);\n }\n\n return rgba;\n };\n\n Color.fromRgbaString = function (str) {\n var rgba = Color.stringToRgba(str);\n\n if (rgba) {\n if (rgba.length === 3) {\n return new Color(rgba[0], rgba[1], rgba[2]);\n } else if (rgba.length === 4) {\n return new Color(rgba[0], rgba[1], rgba[2], rgba[3]);\n }\n }\n\n throw new Error(\"Malformed rgb/rgba color string: '\" + str + \"'\");\n };\n\n Color.fromArray = function (arr) {\n if (arr.length === 4) {\n return new Color(arr[0], arr[1], arr[2], arr[3]);\n }\n\n if (arr.length === 3) {\n return new Color(arr[0], arr[1], arr[2]);\n }\n\n throw new Error('The given array should contain 3 or 4 color components (numbers).');\n };\n\n Color.fromHSB = function (h, s, b, alpha) {\n if (alpha === void 0) {\n alpha = 1;\n }\n\n var rgb = Color.HSBtoRGB(h, s, b);\n return new Color(rgb[0], rgb[1], rgb[2], alpha);\n };\n\n Color.padHex = function (str) {\n // Can't use `padStart(2, '0')` here because of IE.\n return str.length === 1 ? '0' + str : str;\n };\n\n Color.prototype.toHexString = function () {\n var hex = '#' + Color.padHex(Math.round(this.r * 255).toString(16)) + Color.padHex(Math.round(this.g * 255).toString(16)) + Color.padHex(Math.round(this.b * 255).toString(16));\n\n if (this.a < 1) {\n hex += Color.padHex(Math.round(this.a * 255).toString(16));\n }\n\n return hex;\n };\n\n Color.prototype.toRgbaString = function (fractionDigits) {\n if (fractionDigits === void 0) {\n fractionDigits = 3;\n }\n\n var components = [Math.round(this.r * 255), Math.round(this.g * 255), Math.round(this.b * 255)];\n var k = Math.pow(10, fractionDigits);\n\n if (this.a !== 1) {\n components.push(Math.round(this.a * k) / k);\n return \"rgba(\" + components.join(', ') + \")\";\n }\n\n return \"rgb(\" + components.join(', ') + \")\";\n };\n\n Color.prototype.toString = function () {\n if (this.a === 1) {\n return this.toHexString();\n }\n\n return this.toRgbaString();\n };\n\n Color.prototype.toHSB = function () {\n return Color.RGBtoHSB(this.r, this.g, this.b);\n };\n /**\n * Converts the given RGB triple to an array of HSB (HSV) components.\n * The hue component will be `NaN` for achromatic colors.\n */\n\n\n Color.RGBtoHSB = function (r, g, b) {\n var min = Math.min(r, g, b);\n var max = Math.max(r, g, b);\n var S = max !== 0 ? (max - min) / max : 0;\n var H = NaN; // min == max, means all components are the same\n // and the color is a shade of gray with no hue (H is NaN)\n\n if (min !== max) {\n var delta = max - min;\n var rc = (max - r) / delta;\n var gc = (max - g) / delta;\n var bc = (max - b) / delta;\n\n if (r === max) {\n H = bc - gc;\n } else if (g === max) {\n H = 2.0 + rc - bc;\n } else {\n H = 4.0 + gc - rc;\n }\n\n H /= 6.0;\n\n if (H < 0) {\n H = H + 1.0;\n }\n }\n\n return [H * 360, S, max];\n };\n /**\n * Converts the given HSB (HSV) triple to an array of RGB components.\n */\n\n\n Color.HSBtoRGB = function (H, S, B) {\n if (isNaN(H)) {\n H = 0;\n }\n\n H = (H % 360 + 360) % 360 / 360; // normalize hue to [0, 360] interval, then scale to [0, 1]\n\n var r = 0;\n var g = 0;\n var b = 0;\n\n if (S === 0) {\n r = g = b = B;\n } else {\n var h = (H - Math.floor(H)) * 6;\n var f = h - Math.floor(h);\n var p = B * (1 - S);\n var q = B * (1 - S * f);\n var t = B * (1 - S * (1 - f));\n\n switch (h >> 0 // discard the floating point part of the number\n ) {\n case 0:\n r = B;\n g = t;\n b = p;\n break;\n\n case 1:\n r = q;\n g = B;\n b = p;\n break;\n\n case 2:\n r = p;\n g = B;\n b = t;\n break;\n\n case 3:\n r = p;\n g = q;\n b = B;\n break;\n\n case 4:\n r = t;\n g = p;\n b = B;\n break;\n\n case 5:\n r = B;\n g = p;\n b = q;\n break;\n }\n }\n\n return [r, g, b];\n };\n\n Color.prototype.derive = function (hueShift, saturationFactor, brightnessFactor, opacityFactor) {\n var hsb = Color.RGBtoHSB(this.r, this.g, this.b);\n var b = hsb[2];\n\n if (b == 0 && brightnessFactor > 1.0) {\n b = 0.05;\n }\n\n var h = ((hsb[0] + hueShift) % 360 + 360) % 360;\n var s = Math.max(Math.min(hsb[1] * saturationFactor, 1.0), 0.0);\n b = Math.max(Math.min(b * brightnessFactor, 1.0), 0.0);\n var a = Math.max(Math.min(this.a * opacityFactor, 1.0), 0.0);\n var rgba = Color.HSBtoRGB(h, s, b);\n rgba.push(a);\n return Color.fromArray(rgba);\n };\n\n Color.prototype.brighter = function () {\n return this.derive(0, 1.0, 1.0 / 0.7, 1.0);\n };\n\n Color.prototype.darker = function () {\n return this.derive(0, 1.0, 0.7, 1.0);\n };\n /**\n * CSS Color Module Level 4:\n * https://drafts.csswg.org/css-color/#named-colors\n */\n\n\n Color.nameToHex = Object.freeze({\n aliceblue: '#F0F8FF',\n antiquewhite: '#FAEBD7',\n aqua: '#00FFFF',\n aquamarine: '#7FFFD4',\n azure: '#F0FFFF',\n beige: '#F5F5DC',\n bisque: '#FFE4C4',\n black: '#000000',\n blanchedalmond: '#FFEBCD',\n blue: '#0000FF',\n blueviolet: '#8A2BE2',\n brown: '#A52A2A',\n burlywood: '#DEB887',\n cadetblue: '#5F9EA0',\n chartreuse: '#7FFF00',\n chocolate: '#D2691E',\n coral: '#FF7F50',\n cornflowerblue: '#6495ED',\n cornsilk: '#FFF8DC',\n crimson: '#DC143C',\n cyan: '#00FFFF',\n darkblue: '#00008B',\n darkcyan: '#008B8B',\n darkgoldenrod: '#B8860B',\n darkgray: '#A9A9A9',\n darkgreen: '#006400',\n darkgrey: '#A9A9A9',\n darkkhaki: '#BDB76B',\n darkmagenta: '#8B008B',\n darkolivegreen: '#556B2F',\n darkorange: '#FF8C00',\n darkorchid: '#9932CC',\n darkred: '#8B0000',\n darksalmon: '#E9967A',\n darkseagreen: '#8FBC8F',\n darkslateblue: '#483D8B',\n darkslategray: '#2F4F4F',\n darkslategrey: '#2F4F4F',\n darkturquoise: '#00CED1',\n darkviolet: '#9400D3',\n deeppink: '#FF1493',\n deepskyblue: '#00BFFF',\n dimgray: '#696969',\n dimgrey: '#696969',\n dodgerblue: '#1E90FF',\n firebrick: '#B22222',\n floralwhite: '#FFFAF0',\n forestgreen: '#228B22',\n fuchsia: '#FF00FF',\n gainsboro: '#DCDCDC',\n ghostwhite: '#F8F8FF',\n gold: '#FFD700',\n goldenrod: '#DAA520',\n gray: '#808080',\n green: '#008000',\n greenyellow: '#ADFF2F',\n grey: '#808080',\n honeydew: '#F0FFF0',\n hotpink: '#FF69B4',\n indianred: '#CD5C5C',\n indigo: '#4B0082',\n ivory: '#FFFFF0',\n khaki: '#F0E68C',\n lavender: '#E6E6FA',\n lavenderblush: '#FFF0F5',\n lawngreen: '#7CFC00',\n lemonchiffon: '#FFFACD',\n lightblue: '#ADD8E6',\n lightcoral: '#F08080',\n lightcyan: '#E0FFFF',\n lightgoldenrodyellow: '#FAFAD2',\n lightgray: '#D3D3D3',\n lightgreen: '#90EE90',\n lightgrey: '#D3D3D3',\n lightpink: '#FFB6C1',\n lightsalmon: '#FFA07A',\n lightseagreen: '#20B2AA',\n lightskyblue: '#87CEFA',\n lightslategray: '#778899',\n lightslategrey: '#778899',\n lightsteelblue: '#B0C4DE',\n lightyellow: '#FFFFE0',\n lime: '#00FF00',\n limegreen: '#32CD32',\n linen: '#FAF0E6',\n magenta: '#FF00FF',\n maroon: '#800000',\n mediumaquamarine: '#66CDAA',\n mediumblue: '#0000CD',\n mediumorchid: '#BA55D3',\n mediumpurple: '#9370DB',\n mediumseagreen: '#3CB371',\n mediumslateblue: '#7B68EE',\n mediumspringgreen: '#00FA9A',\n mediumturquoise: '#48D1CC',\n mediumvioletred: '#C71585',\n midnightblue: '#191970',\n mintcream: '#F5FFFA',\n mistyrose: '#FFE4E1',\n moccasin: '#FFE4B5',\n navajowhite: '#FFDEAD',\n navy: '#000080',\n oldlace: '#FDF5E6',\n olive: '#808000',\n olivedrab: '#6B8E23',\n orange: '#FFA500',\n orangered: '#FF4500',\n orchid: '#DA70D6',\n palegoldenrod: '#EEE8AA',\n palegreen: '#98FB98',\n paleturquoise: '#AFEEEE',\n palevioletred: '#DB7093',\n papayawhip: '#FFEFD5',\n peachpuff: '#FFDAB9',\n peru: '#CD853F',\n pink: '#FFC0CB',\n plum: '#DDA0DD',\n powderblue: '#B0E0E6',\n purple: '#800080',\n rebeccapurple: '#663399',\n red: '#FF0000',\n rosybrown: '#BC8F8F',\n royalblue: '#4169E1',\n saddlebrown: '#8B4513',\n salmon: '#FA8072',\n sandybrown: '#F4A460',\n seagreen: '#2E8B57',\n seashell: '#FFF5EE',\n sienna: '#A0522D',\n silver: '#C0C0C0',\n skyblue: '#87CEEB',\n slateblue: '#6A5ACD',\n slategray: '#708090',\n slategrey: '#708090',\n snow: '#FFFAFA',\n springgreen: '#00FF7F',\n steelblue: '#4682B4',\n tan: '#D2B48C',\n teal: '#008080',\n thistle: '#D8BFD8',\n tomato: '#FF6347',\n turquoise: '#40E0D0',\n violet: '#EE82EE',\n wheat: '#F5DEB3',\n white: '#FFFFFF',\n whitesmoke: '#F5F5F5',\n yellow: '#FFFF00',\n yellowgreen: '#9ACD32'\n });\n return Color;\n}();\n\nfunction color$1(a, b) {\n if (typeof a === 'string') {\n try {\n a = Color$1.fromString(a);\n } catch (e) {\n a = Color$1.fromArray([0, 0, 0]);\n }\n }\n\n if (typeof b === 'string') {\n try {\n b = Color$1.fromString(b);\n } catch (e) {\n b = Color$1.fromArray([0, 0, 0]);\n }\n }\n\n var red = interpolateNumber$1(a.r, b.r);\n var green = interpolateNumber$1(a.g, b.g);\n var blue = interpolateNumber$1(a.b, b.b);\n var alpha = interpolateNumber$1(a.a, b.a);\n return function (t) {\n return Color$1.fromArray([red(t), green(t), blue(t), alpha(t)]).toRgbaString();\n };\n}\n\nfunction interpolateValue$1(a, b) {\n var t = typeof b;\n var c;\n\n if (b == null || t === 'boolean') {\n return constant$3(b);\n }\n\n if (t === 'number') {\n return interpolateNumber$1(a, b);\n }\n\n if (t === 'string') {\n try {\n c = Color$1.fromString(b);\n b = c;\n return color$1(a, b);\n } catch (e) {// return string(a, b);\n }\n }\n\n if (b instanceof Color$1) {\n return color$1(a, b);\n }\n\n if (b instanceof Date) {\n return date$1(a, b);\n }\n\n if (Array.isArray(b)) {\n return array$1(a, b);\n }\n\n if (typeof b.valueOf !== 'function' && typeof b.toString !== 'function' || isNaN(b)) {\n return object$1(a, b);\n }\n\n return interpolateNumber$1(a, b);\n}\n\nfunction ascending$1(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n\nfunction ascendingStringNumberUndefined(a, b) {\n var diff = 0;\n\n if (typeof a === 'number' && typeof b === 'number') {\n diff = a - b;\n } else if (typeof a === 'string' && typeof b === 'string') {\n diff = a.localeCompare(b);\n } else if (a == null && b == null) ;else if (a == null) {\n diff = -1;\n } else if (b == null) {\n diff = 1;\n } else {\n diff = String(a).localeCompare(String(b));\n }\n\n return diff;\n}\n\nfunction compoundAscending(a, b, comparator) {\n for (var idx in a) {\n var diff = comparator(a[idx], b[idx]);\n\n if (diff !== 0) {\n return diff;\n }\n }\n\n return 0;\n}\n/**\n * Returns the insertion point for `x` in array to maintain sorted order.\n * The arguments `lo` and `hi` may be used to specify a subset of the array which should be considered;\n * by default the entire array is used. If `x` is already present in array, the insertion point will be before\n * (to the left of) any existing entries. The return value is suitable for use as the first argument to `splice`\n * assuming that array is already sorted. The returned insertion point `i` partitions the array into two halves\n * so that all `v < x` for `v` in `array.slice(lo, i)` for the left side and all `v >= x` for `v` in `array.slice(i, hi)`\n * for the right side.\n * @param list\n * @param x\n * @param comparator\n * @param lo\n * @param hi\n */\n\n\nfunction bisectRight(list, x, comparator, lo, hi) {\n if (lo === void 0) {\n lo = 0;\n }\n\n if (hi === void 0) {\n hi = list.length;\n }\n\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n\n if (comparator(list[mid], x) > 0) {\n // list[mid] > x\n hi = mid;\n } else {\n lo = mid + 1;\n }\n }\n\n return lo;\n}\n/**\n * A specialized version of `bisectRight` that works with the arrays whose elements cannot be compared directly.\n * The map function is used instead to produce a comparable value for a given array element, then the values\n * returned by the map are compared using the `ascendingComparator`.\n * @param list\n * @param x\n * @param map\n * @param lo\n * @param hi\n */\n\n\nfunction complexBisectRight$1(list, x, map, lo, hi) {\n if (lo === void 0) {\n lo = 0;\n }\n\n if (hi === void 0) {\n hi = list.length;\n }\n\n var comparator = ascendingComparator$1(map);\n\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n\n if (comparator(list[mid], x) < 0) {\n lo = mid + 1;\n } else {\n hi = mid;\n }\n }\n\n return lo;\n}\n\nfunction ascendingComparator$1(map) {\n return function (item, x) {\n return ascending$1(map(item), x);\n };\n}\n\nvar __read$J = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar constant$2 = function constant$2(x) {\n return function () {\n return x;\n };\n};\n\nvar identity$6 = function identity$6(x) {\n return x;\n};\n\nfunction clamper$2(domain) {\n var _a;\n\n var a = domain[0];\n var b = domain[domain.length - 1];\n\n if (a > b) {\n _a = __read$J([b, a], 2), a = _a[0], b = _a[1];\n }\n\n return function (x) {\n return Math.max(a, Math.min(b, x));\n };\n}\n\nvar ContinuousScale$1 =\n/** @class */\nfunction () {\n function ContinuousScale() {\n /**\n * The output value of the scale for `undefined` or `NaN` input values.\n */\n this.unknown = undefined;\n this.clamper = clamper$2;\n this._clamp = identity$6;\n this._domain = [0, 1];\n this._range = [0, 1];\n this.transform = identity$6; // transforms domain value\n\n this.untransform = identity$6; // untransforms domain value\n\n this._interpolate = interpolateValue$1;\n this.rescale();\n }\n\n Object.defineProperty(ContinuousScale.prototype, \"clamp\", {\n get: function get() {\n return this._clamp !== identity$6;\n },\n set: function set(value) {\n this._clamp = value ? this.clamper(this.domain) : identity$6;\n },\n enumerable: true,\n configurable: true\n });\n\n ContinuousScale.prototype.setDomain = function (values) {\n this._domain = values.map(function (v) {\n return +v;\n });\n\n if (this._clamp !== identity$6) {\n this._clamp = this.clamper(this.domain);\n }\n\n this.rescale();\n };\n\n ContinuousScale.prototype.getDomain = function () {\n return this._domain.slice();\n };\n\n Object.defineProperty(ContinuousScale.prototype, \"domain\", {\n get: function get() {\n return this.getDomain();\n },\n set: function set(values) {\n this.setDomain(values);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ContinuousScale.prototype, \"range\", {\n get: function get() {\n return this._range.slice();\n },\n set: function set(values) {\n this._range = values.slice();\n this.rescale();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ContinuousScale.prototype, \"interpolate\", {\n get: function get() {\n return this._interpolate;\n },\n set: function set(value) {\n this._interpolate = value;\n this.rescale();\n },\n enumerable: true,\n configurable: true\n });\n\n ContinuousScale.prototype.rescale = function () {\n if (Math.min(this.domain.length, this.range.length) > 2) {\n this.piecewise = this.polymap;\n } else {\n this.piecewise = this.bimap;\n }\n\n this.output = undefined;\n this.input = undefined;\n };\n /**\n * Returns a function that converts `x` in `[a, b]` to `t` in `[0, 1]`. Non-clamping.\n * @param a\n * @param b\n */\n\n\n ContinuousScale.prototype.normalize = function (a, b) {\n a = +a;\n b -= a;\n return b ? function (x) {\n return (x - a) / b;\n } : constant$2(isNaN(b) ? NaN : 0.5);\n };\n\n ContinuousScale.prototype.bimap = function (domain, range, interpolate) {\n var x0 = domain[0];\n var x1 = domain[1];\n var y0 = range[0];\n var y1 = range[1];\n var xt;\n var ty;\n\n if (x1 < x0) {\n xt = this.normalize(x1, x0);\n ty = interpolate(y1, y0);\n } else {\n xt = this.normalize(x0, x1);\n ty = interpolate(y0, y1);\n }\n\n return function (x) {\n return ty(xt(x));\n }; // domain value x --> t in [0, 1] --> range value y\n };\n\n ContinuousScale.prototype.polymap = function (domain, range, interpolate) {\n var _this = this; // number of segments in the polylinear scale\n\n\n var n = Math.min(domain.length, range.length) - 1;\n\n if (domain[n] < domain[0]) {\n domain = domain.slice().reverse();\n range = range.slice().reverse();\n } // deinterpolators from domain segment value to t\n\n\n var dt = Array.from({\n length: n\n }, function (_, i) {\n return _this.normalize(domain[i], domain[i + 1]);\n }); // reinterpolators from t to range segment value\n\n var tr = Array.from({\n length: n\n }, function (_, i) {\n return interpolate(range[i], range[i + 1]);\n });\n return function (x) {\n var i = bisectRight(domain, x, ascending$1, 1, n) - 1; // Find the domain segment that `x` belongs to.\n // This also tells us which deinterpolator/reinterpolator pair to use.\n\n return tr[i](dt[i](x));\n };\n };\n\n ContinuousScale.prototype.convert = function (x, clamper) {\n x = +x;\n\n if (isNaN(x)) {\n return this.unknown;\n }\n\n if (!this.output) {\n this.output = this.piecewise(this.domain.map(this.transform), this.range, this.interpolate);\n }\n\n var clamp = clamper ? clamper(this.domain) : this._clamp;\n return this.output(this.transform(clamp(x)));\n };\n\n ContinuousScale.prototype.invert = function (y) {\n if (!this.input) {\n this.input = this.piecewise(this.range, this.domain.map(this.transform), interpolateNumber$1);\n }\n\n return this._clamp(this.untransform(this.input(y)));\n };\n\n return ContinuousScale;\n}();\n\nfunction formatDefault$1(x, p) {\n var xs = x.toPrecision(p);\n var i0 = -1;\n var i1 = 0;\n var exit = false;\n\n for (var n = xs.length, i = 1; !exit && i < n; ++i) {\n switch (xs[i]) {\n case '.':\n i0 = i1 = i;\n break;\n\n case '0':\n if (i0 === 0) i0 = i;\n i1 = i;\n break;\n\n case 'e':\n exit = true;\n break;\n\n default:\n if (i0 > 0) i0 = 0;\n break;\n }\n }\n\n return i0 > 0 ? xs.slice(0, i0) + xs.slice(i1 + 1) : xs;\n}\n\nvar formatTypes$1 = {\n '': formatDefault$1,\n // Multiply by 100, and then decimal notation with a percent sign.\n '%': function _(x, p) {\n return (x * 100).toFixed(p);\n },\n // Binary notation, rounded to integer.\n b: function b(x) {\n return Math.round(x).toString(2);\n },\n // Converts the integer to the corresponding unicode character before printing.\n c: function c(x) {\n return String(x);\n },\n // Decimal notation, rounded to integer.\n d: formatDecimal$1,\n // Exponent notation.\n e: function e(x, p) {\n return x.toExponential(p);\n },\n // Fixed point notation.\n f: function f(x, p) {\n return x.toFixed(p);\n },\n // Either decimal or exponent notation, rounded to significant digits.\n g: function g(x, p) {\n return x.toPrecision(p);\n },\n // Octal notation, rounded to integer.\n o: function o(x) {\n return Math.round(x).toString(8);\n },\n // Multiply by 100, round to significant digits, and then decimal notation with a percent sign.\n p: function p(x, _p2) {\n return formatRounded$1(x * 100, _p2);\n },\n // Decimal notation, rounded to significant digits.\n r: formatRounded$1,\n // Decimal notation with a SI prefix, rounded to significant digits.\n s: formatPrefixAuto$1,\n // Hexadecimal notation, using upper-case letters, rounded to integer.\n X: function X(x) {\n return Math.round(x).toString(16).toUpperCase();\n },\n // Hexadecimal notation, using lower-case letters, rounded to integer.\n x: function x(_x2) {\n return Math.round(_x2).toString(16);\n }\n};\nvar prefixes$1 = ['y', 'z', 'a', 'f', 'p', 'n', '\\xB5', 'm', '', 'k', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y'];\n/**\n * [[fill]align][sign][#][0][width][grouping_option][.precision][type]\n */\n\nvar FormatSpecifier$1 =\n/** @class */\nfunction () {\n function FormatSpecifier(specifier) {\n if (specifier instanceof FormatSpecifier) {\n this.fill = specifier.fill;\n this.align = specifier.align;\n this.sign = specifier.sign;\n this.symbol = specifier.symbol;\n this.zero = specifier.zero;\n this.width = specifier.width;\n this.comma = specifier.comma;\n this.precision = specifier.precision;\n this.trim = specifier.trim;\n this.type = specifier.type;\n this.string = specifier.string;\n } else {\n this.fill = specifier.fill === undefined ? ' ' : String(specifier.fill);\n this.align = specifier.align === undefined ? '>' : String(specifier.align);\n this.sign = specifier.sign === undefined ? '-' : String(specifier.sign);\n this.symbol = specifier.symbol === undefined ? '' : String(specifier.symbol);\n this.zero = !!specifier.zero;\n this.width = specifier.width === undefined ? undefined : +specifier.width;\n this.comma = !!specifier.comma;\n this.precision = specifier.precision === undefined ? undefined : +specifier.precision;\n this.trim = !!specifier.trim;\n this.type = specifier.type === undefined ? '' : String(specifier.type);\n this.string = specifier.string;\n }\n }\n\n return FormatSpecifier;\n}(); // [[fill]align][sign][symbol][0][width][,][.precision][~][type]\n\n\nvar formatRegEx$1 = /^(?:(.)?([<>=^]))?([+\\-( ])?([$#])?(0)?(\\d+)?(,)?(\\.\\d+)?(~)?([a-z%])?$/i;\nvar interpolateRegEx$1 = /(#\\{(.*?)\\})/g;\n\nfunction makeFormatSpecifier$1(specifier) {\n if (specifier instanceof FormatSpecifier$1) {\n return new FormatSpecifier$1(specifier);\n }\n\n var found = false;\n var string = specifier.replace(interpolateRegEx$1, function () {\n if (!found) {\n specifier = arguments[2];\n found = true;\n }\n\n return '#{}';\n });\n var match = formatRegEx$1.exec(specifier);\n\n if (!match) {\n throw new Error(\"Invalid format: \" + specifier);\n }\n\n return new FormatSpecifier$1({\n fill: match[1],\n align: match[2],\n sign: match[3],\n symbol: match[4],\n zero: match[5],\n width: match[6],\n comma: match[7],\n precision: match[8] && match[8].slice(1),\n trim: match[9],\n type: match[10],\n string: found ? string : undefined\n });\n}\n\nfunction tickFormat$1(start, stop, count, specifier) {\n var step = tickStep$1(start, stop, count);\n var formatSpecifier = makeFormatSpecifier$1(specifier == undefined ? ',f' : specifier);\n var precision;\n\n switch (formatSpecifier.type) {\n case 's':\n {\n var value = Math.max(Math.abs(start), Math.abs(stop));\n\n if (formatSpecifier.precision == null) {\n precision = precisionPrefix$1(step, value);\n\n if (!isNaN(precision)) {\n formatSpecifier.precision = precision;\n }\n }\n\n return formatPrefix$1(formatSpecifier, value);\n }\n\n case '':\n case 'e':\n case 'g':\n case 'p':\n case 'r':\n {\n if (formatSpecifier.precision == null) {\n precision = precisionRound$1(step, Math.max(Math.abs(start), Math.abs(stop)));\n\n if (!isNaN(precision)) {\n formatSpecifier.precision = precision - +(formatSpecifier.type === 'e');\n }\n }\n\n break;\n }\n\n case 'f':\n case '%':\n {\n if (formatSpecifier.precision == null) {\n precision = precisionFixed$1(step);\n\n if (!isNaN(precision)) {\n formatSpecifier.precision = precision - +(formatSpecifier.type === '%') * 2;\n }\n }\n\n break;\n }\n }\n\n return format$1(formatSpecifier);\n}\n\nvar prefixExponent$1;\n\nfunction formatPrefixAuto$1(x, p) {\n if (p === void 0) {\n p = 0;\n }\n\n var d = formatDecimalParts$1(x, p);\n\n if (!d) {\n return String(x);\n }\n\n var coefficient = d[0];\n var exponent = d[1];\n prefixExponent$1 = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3;\n var i = exponent - prefixExponent$1 + 1;\n var n = coefficient.length;\n\n if (i === n) {\n return coefficient;\n } else if (i > n) {\n return coefficient + new Array(i - n + 1).join('0');\n } else if (i > 0) {\n return coefficient.slice(0, i) + '.' + coefficient.slice(i);\n } else {\n var parts = formatDecimalParts$1(x, Math.max(0, p + i - 1));\n return '0.' + new Array(1 - i).join('0') + parts[0]; // less than 1y!\n }\n}\n\nfunction formatDecimal$1(x) {\n x = Math.round(x);\n return Math.abs(x) >= 1e21 ? x.toLocaleString('en').replace(/,/g, '') : x.toString(10);\n}\n\nfunction formatGroup$1(grouping, thousands) {\n return function (value, width) {\n var t = [];\n var i = value.length;\n var j = 0;\n var g = grouping[0];\n var length = 0;\n\n while (i > 0 && g > 0) {\n if (length + g + 1 > width) {\n g = Math.max(1, width - length);\n }\n\n i -= g;\n t.push(value.substring(i, i + g));\n\n if ((length += g + 1) > width) {\n break;\n }\n\n j = (j + 1) % grouping.length;\n g = grouping[j];\n }\n\n t.reverse();\n return t.join(thousands);\n };\n}\n\nfunction formatNumerals$1(numerals) {\n return function (value) {\n return value.replace(/[0-9]/g, function (i) {\n return numerals[+i];\n });\n };\n} // Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.\n\n\nfunction formatTrim$1(s) {\n var i0 = -1,\n i1 = 0;\n var exit = false;\n\n for (var n = s.length, i = 1; !exit && i < n; ++i) {\n switch (s[i]) {\n case '.':\n i0 = i1 = i;\n break;\n\n case '0':\n if (i0 === 0) i0 = i;\n i1 = i;\n break;\n\n default:\n if (!+s[i]) {\n exit = true;\n break;\n }\n\n if (i0 > 0) i0 = 0;\n break;\n }\n }\n\n return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;\n}\n\nfunction formatRounded$1(x, p) {\n var d = formatDecimalParts$1(x, p);\n\n if (!d) {\n return String(x);\n }\n\n var coefficient = d[0];\n var exponent = d[1];\n\n if (exponent < 0) {\n return '0.' + new Array(-exponent).join('0') + coefficient;\n } else {\n if (coefficient.length > exponent + 1) {\n return coefficient.slice(0, exponent + 1) + '.' + coefficient.slice(exponent + 1);\n } else {\n return coefficient + new Array(exponent - coefficient.length + 2).join('0');\n }\n }\n} // Computes the decimal coefficient and exponent of the specified number x with\n// significant digits p, where x is positive and p is in [1, 21] or undefined.\n// For example, formatDecimalParts(1.23) returns ['123', 0].\n\n\nfunction formatDecimalParts$1(x, p) {\n var sx = p ? x.toExponential(p - 1) : x.toExponential();\n var i = sx.indexOf('e');\n\n if (i < 0) {\n // NaN, ±Infinity\n return undefined;\n }\n\n var coefficient = sx.slice(0, i); // The string returned by toExponential either has the form \\d\\.\\d+e[-+]\\d+\n // (e.g., 1.2e+3) or the form \\de[-+]\\d+ (e.g., 1e+3).\n\n return [coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient, +sx.slice(i + 1)];\n}\n\nfunction identity$5(x) {\n return x;\n}\n\nvar formatDefaultLocale$1;\nvar format$1;\nvar formatPrefix$1;\ndefaultLocale$1({\n thousands: ',',\n grouping: [3],\n currency: ['$', '']\n});\n\nfunction defaultLocale$1(definition) {\n formatDefaultLocale$1 = formatLocale$3(definition);\n format$1 = formatDefaultLocale$1.format;\n formatPrefix$1 = formatDefaultLocale$1.formatPrefix;\n}\n\nfunction exponent$1(x) {\n var parts = formatDecimalParts$1(Math.abs(x));\n\n if (parts) {\n return parts[1];\n }\n\n return NaN;\n}\n\nfunction precisionFixed$1(step) {\n return Math.max(0, -exponent$1(Math.abs(step)));\n}\n\nfunction precisionPrefix$1(step, value) {\n var x = Math.floor(exponent$1(value) / 3);\n x = Math.min(8, x);\n x = Math.max(-8, x);\n return Math.max(0, x * 3 - exponent$1(Math.abs(step)));\n}\n\nfunction precisionRound$1(step, max) {\n step = Math.abs(step);\n max = Math.abs(max) - step;\n return Math.max(0, exponent$1(max) - exponent$1(step)) + 1;\n}\n\nfunction formatLocale$3(locale) {\n var group = locale.grouping === undefined || locale.thousands === undefined ? identity$5 : formatGroup$1(locale.grouping.map(Number), String(locale.thousands));\n var currencyPrefix = locale.currency === undefined ? '' : String(locale.currency[0]);\n var currencySuffix = locale.currency === undefined ? '' : String(locale.currency[1]);\n var decimal = locale.decimal === undefined ? '.' : String(locale.decimal);\n var numerals = locale.numerals === undefined ? identity$5 : formatNumerals$1(locale.numerals.map(String));\n var percent = locale.percent === undefined ? '%' : String(locale.percent);\n var minus = locale.minus === undefined ? \"\\u2212\" : String(locale.minus);\n var nan = locale.nan === undefined ? 'NaN' : String(locale.nan);\n\n function newFormat(specifier) {\n var formatSpecifier = makeFormatSpecifier$1(specifier);\n var fill = formatSpecifier.fill;\n var align = formatSpecifier.align;\n var sign = formatSpecifier.sign;\n var symbol = formatSpecifier.symbol;\n var zero = formatSpecifier.zero;\n var width = formatSpecifier.width;\n var comma = formatSpecifier.comma;\n var precision = formatSpecifier.precision;\n var trim = formatSpecifier.trim;\n var type = formatSpecifier.type; // The 'n' type is an alias for ',g'.\n\n if (type === 'n') {\n comma = true;\n type = 'g';\n } else if (!formatTypes$1[type]) {\n // The '' type, and any invalid type, is an alias for '.12~g'.\n if (precision === undefined) {\n precision = 12;\n }\n\n trim = true;\n type = 'g';\n } // If zero fill is specified, padding goes after sign and before digits.\n\n\n if (zero || fill === '0' && align === '=') {\n zero = true;\n fill = '0';\n align = '=';\n } // Compute the prefix and suffix.\n // For SI-prefix, the suffix is lazily computed.\n\n\n var prefix = symbol === '$' ? currencyPrefix : symbol === '#' && /[boxX]/.test(type) ? '0' + type.toLowerCase() : '';\n var suffix = symbol === '$' ? currencySuffix : /[%p]/.test(type) ? percent : ''; // What format function should we use?\n // Is this an integer type?\n // Can this type generate exponential notation?\n\n var formatType = formatTypes$1[type];\n var maybeSuffix = /[defgprs%]/.test(type); // Set the default precision if not specified,\n // or clamp the specified precision to the supported range.\n // For significant precision, it must be in [1, 21].\n // For fixed precision, it must be in [0, 20].\n\n if (precision === undefined) {\n precision = 6;\n } else if (/[gprs]/.test(type)) {\n precision = Math.max(1, Math.min(21, precision));\n } else {\n precision = Math.max(0, Math.min(20, precision));\n }\n\n function format(x) {\n var valuePrefix = prefix;\n var valueSuffix = suffix;\n var value;\n\n if (type === 'c') {\n valueSuffix = formatType(+x) + valueSuffix;\n value = '';\n } else {\n var nx = +x; // Determine the sign. -0 is not less than 0, but 1 / -0 is!\n\n var valueNegative = x < 0 || 1 / nx < 0; // Perform the initial formatting.\n\n value = isNaN(nx) ? nan : formatType(Math.abs(nx), precision); // Trim insignificant zeros.\n\n if (trim) {\n value = formatTrim$1(value);\n } // If a negative value rounds to zero after formatting, and no explicit positive sign is requested, hide the sign.\n\n\n if (valueNegative && +value === 0 && sign !== '+') {\n valueNegative = false;\n } // Compute the prefix and suffix.\n\n\n var signPrefix = valueNegative ? sign === '(' ? sign : minus : sign === '-' || sign === '(' ? '' : sign;\n var signSuffix = valueNegative && sign === '(' ? ')' : '';\n valuePrefix = signPrefix + valuePrefix;\n valueSuffix = (type === 's' ? prefixes$1[8 + prefixExponent$1 / 3] : '') + valueSuffix + signSuffix; // Break the formatted value into the integer “value” part that can be\n // grouped, and fractional or exponential “suffix” part that is not.\n\n if (maybeSuffix) {\n for (var i = 0, n = value.length; i < n; i++) {\n var c = value.charCodeAt(i);\n\n if (48 > c || c > 57) {\n valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;\n value = value.slice(0, i);\n break;\n }\n }\n }\n } // If the fill character is not '0', grouping is applied before padding.\n\n\n if (comma && !zero) value = group(value, Infinity); // Compute the padding.\n\n var length = valuePrefix.length + value.length + valueSuffix.length;\n var padding = length < width ? new Array(width - length + 1).join(fill) : ''; // If the fill character is '0', grouping is applied after padding.\n\n if (comma && zero) {\n value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity);\n padding = '';\n } // Reconstruct the final output based on the desired alignment.\n\n\n switch (align) {\n case '<':\n value = valuePrefix + value + valueSuffix + padding;\n break;\n\n case '=':\n value = valuePrefix + padding + value + valueSuffix;\n break;\n\n case '^':\n value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length);\n break;\n\n default:\n value = padding + valuePrefix + value + valueSuffix;\n break;\n }\n\n var string = formatSpecifier.string;\n\n if (string) {\n return string.replace(interpolateRegEx$1, function () {\n return numerals(value);\n });\n }\n\n return numerals(value);\n }\n\n return format;\n }\n\n function formatPrefix(specifier, value) {\n var formatSpecifier = makeFormatSpecifier$1(specifier);\n formatSpecifier.type = 'f';\n var f = newFormat(formatSpecifier);\n var e = Math.max(-8, Math.min(8, Math.floor(exponent$1(value) / 3))) * 3;\n var k = Math.pow(10, -e);\n var prefix = prefixes$1[8 + e / 3];\n return function (value) {\n return f(k * +value) + prefix;\n };\n }\n\n return {\n format: newFormat,\n formatPrefix: formatPrefix\n };\n}\n\nvar __extends$2I = undefined && undefined.__extends || function () {\n var _extendStatics48 = function extendStatics(d, b) {\n _extendStatics48 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics48(d, b);\n };\n\n return function (d, b) {\n _extendStatics48(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n/**\n * Maps continuous domain to a continuous range.\n */\n\n\nvar LinearScale$1 =\n/** @class */\nfunction (_super) {\n __extends$2I(LinearScale, _super);\n\n function LinearScale() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'linear';\n return _this;\n }\n\n LinearScale.prototype.ticks = function (count) {\n if (count === void 0) {\n count = 10;\n }\n\n var d = this._domain;\n return ticks$1(d[0], d[d.length - 1], count);\n };\n /**\n * Extends the domain so that it starts and ends on nice round values.\n * @param count Tick count.\n */\n\n\n LinearScale.prototype.nice = function (count) {\n if (count === void 0) {\n count = 10;\n }\n\n var d = this.domain;\n var i0 = 0;\n var i1 = d.length - 1;\n var start = d[i0];\n var stop = d[i1];\n var step;\n\n if (stop < start) {\n step = start;\n start = stop;\n stop = step;\n step = i0;\n i0 = i1;\n i1 = step;\n }\n\n step = tickIncrement$1(start, stop, count);\n\n if (step > 0) {\n start = Math.floor(start / step) * step;\n stop = Math.ceil(stop / step) * step;\n step = tickIncrement$1(start, stop, count);\n } else if (step < 0) {\n start = Math.ceil(start * step) / step;\n stop = Math.floor(stop * step) / step;\n step = tickIncrement$1(start, stop, count);\n }\n\n if (step > 0) {\n d[i0] = Math.floor(start / step) * step;\n d[i1] = Math.ceil(stop / step) * step;\n this.domain = d;\n } else if (step < 0) {\n d[i0] = Math.ceil(start * step) / step;\n d[i1] = Math.floor(stop * step) / step;\n this.domain = d;\n }\n };\n\n LinearScale.prototype.tickFormat = function (_a) {\n var count = _a.count,\n specifier = _a.specifier;\n var d = this.domain;\n return tickFormat$1(d[0], d[d.length - 1], count == undefined ? 10 : count, specifier);\n };\n\n return LinearScale;\n}(ContinuousScale$1);\n\nvar __values$r = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}; // Custom `Array.find` implementation for legacy browsers.\n\n\nfunction find(arr, predicate) {\n for (var i = 0; i < arr.length; i++) {\n var value = arr[i];\n\n if (predicate(value, i, arr)) {\n return value;\n }\n }\n}\n\nfunction identity$4(value) {\n return value;\n}\n\nfunction extent$1(values, predicate, map) {\n var transform = map || identity$4;\n var n = values.length;\n var i = -1;\n var value;\n var min;\n var max;\n\n while (++i < n) {\n // Find the first value.\n value = values[i];\n\n if (predicate(value)) {\n min = max = value;\n\n while (++i < n) {\n // Compare the remaining values.\n value = values[i];\n\n if (predicate(value)) {\n if (min > value) {\n min = value;\n }\n\n if (max < value) {\n max = value;\n }\n }\n }\n }\n }\n\n return min === undefined || max === undefined ? undefined : [transform(min), transform(max)];\n}\n/**\n * finds the min and max using a process appropriate for stacked values. Ie,\n * summing up the positive and negative numbers, and returning the totals of each\n */\n\n\nfunction findMinMax(values) {\n var e_1, _a;\n\n var min = undefined;\n var max = undefined;\n\n try {\n for (var values_1 = __values$r(values), values_1_1 = values_1.next(); !values_1_1.done; values_1_1 = values_1.next()) {\n var value = values_1_1.value;\n\n if (value < 0) {\n min = (min !== null && min !== void 0 ? min : 0) + value;\n } else if (value >= 0) {\n max = (max !== null && max !== void 0 ? max : 0) + value;\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (values_1_1 && !values_1_1.done && (_a = values_1.return)) _a.call(values_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n return {\n min: min,\n max: max\n };\n} // Simplified version of https://github.com/plotly/fast-isnumeric\n// that doesn't treat number strings with leading/trailing whitespace as numbers.\n\n\nfunction isNumber$1(value) {\n if (typeof value !== 'number') {\n return false;\n }\n\n return Number.isFinite(value);\n}\n\nfunction isNumberObject$1(value) {\n return !!value && value.hasOwnProperty('valueOf') && isNumber$1(value.valueOf());\n}\n\nfunction isNumeric$1(value) {\n return isNumber$1(value) || isNumberObject$1(value);\n}\n\nfunction isDate$1(value) {\n return value instanceof Date && !isNaN(+value);\n}\n\nfunction isString$1(value) {\n return typeof value === 'string';\n}\n\nfunction isStringObject$1(value) {\n return !!value && value.hasOwnProperty('toString') && isString$1(value.toString());\n}\n\nfunction isDiscrete(value) {\n return isString$1(value) || isStringObject$1(value);\n}\n\nfunction isContinuous$1(value) {\n return isNumeric$1(value) || isDate$1(value);\n}\n\nfunction checkDatum(value, isContinuousScale) {\n if (isContinuousScale && isContinuous$1(value)) {\n return value;\n } else if (!isContinuousScale) {\n if (!isDiscrete(value)) {\n return String(value);\n }\n\n return value;\n }\n\n return undefined;\n} // @ts-ignore Suppress tsc error: Property 'sign' does not exist on type 'Math'\n\n\nvar sign$1 = Math.sign ? Math.sign : function (x) {\n x = +x;\n\n if (x === 0 || isNaN(x)) {\n return x;\n }\n\n return x > 0 ? 1 : -1;\n};\n/**\n * Finds the roots of a parametric linear equation in `t`,\n * where `t` lies in the interval of `[0,1]`.\n */\n\nfunction linearRoot$1(a, b) {\n var t = -b / a;\n return a !== 0 && t >= 0 && t <= 1 ? [t] : [];\n}\n/**\n * Finds the roots of a parametric quadratic equation in `t`,\n * where `t` lies in the interval of `[0,1]`.\n */\n\n\nfunction quadraticRoots$1(a, b, c) {\n if (a === 0) {\n return linearRoot$1(b, c);\n }\n\n var D = b * b - 4 * a * c; // The polynomial's discriminant.\n\n var roots = [];\n\n if (D === 0) {\n // A single real root.\n var t = -b / (2 * a);\n\n if (t >= 0 && t <= 1) {\n roots.push(t);\n }\n } else if (D > 0) {\n // A pair of distinct real roots.\n var rD = Math.sqrt(D);\n var t1 = (-b - rD) / (2 * a);\n var t2 = (-b + rD) / (2 * a);\n\n if (t1 >= 0 && t1 <= 1) {\n roots.push(t1);\n }\n\n if (t2 >= 0 && t2 <= 1) {\n roots.push(t2);\n }\n } // else -> Complex roots.\n\n\n return roots;\n}\n/**\n * Finds the roots of a parametric cubic equation in `t`,\n * where `t` lies in the interval of `[0,1]`.\n * Returns an array of parametric intersection locations along the cubic,\n * excluding out-of-bounds intersections (before or after the end point\n * or in the imaginary plane).\n * An adaptation of http://www.particleincell.com/blog/2013/cubic-line-intersection/\n */\n\n\nfunction cubicRoots$1(a, b, c, d) {\n if (a === 0) {\n return quadraticRoots$1(b, c, d);\n }\n\n var A = b / a;\n var B = c / a;\n var C = d / a;\n var Q = (3 * B - A * A) / 9;\n var R = (9 * A * B - 27 * C - 2 * A * A * A) / 54;\n var D = Q * Q * Q + R * R; // The polynomial's discriminant.\n\n var third = 1 / 3;\n var roots = [];\n\n if (D >= 0) {\n // Complex or duplicate roots.\n var rD = Math.sqrt(D);\n var S = sign$1(R + rD) * Math.pow(Math.abs(R + rD), third);\n var T = sign$1(R - rD) * Math.pow(Math.abs(R - rD), third);\n var Im = Math.abs(Math.sqrt(3) * (S - T) / 2); // Complex part of the root pair.\n\n var t = -third * A + (S + T); // A real root.\n\n if (t >= 0 && t <= 1) {\n roots.push(t);\n }\n\n if (Im === 0) {\n var t_1 = -third * A - (S + T) / 2; // The real part of a complex root.\n\n if (t_1 >= 0 && t_1 <= 1) {\n roots.push(t_1);\n }\n }\n } else {\n // Distinct real roots.\n var theta = Math.acos(R / Math.sqrt(-Q * Q * Q));\n var thirdA = third * A;\n var twoSqrtQ = 2 * Math.sqrt(-Q);\n var t1 = twoSqrtQ * Math.cos(third * theta) - thirdA;\n var t2 = twoSqrtQ * Math.cos(third * (theta + 2 * Math.PI)) - thirdA;\n var t3 = twoSqrtQ * Math.cos(third * (theta + 4 * Math.PI)) - thirdA;\n\n if (t1 >= 0 && t1 <= 1) {\n roots.push(t1);\n }\n\n if (t2 >= 0 && t2 <= 1) {\n roots.push(t2);\n }\n\n if (t3 >= 0 && t3 <= 1) {\n roots.push(t3);\n }\n }\n\n return roots;\n}\n/**\n * Returns the intersection point for the given pair of line segments, or null,\n * if the segments are parallel or don't intersect.\n * Based on http://paulbourke.net/geometry/pointlineplane/\n */\n\n\nfunction segmentIntersection$1(ax1, ay1, ax2, ay2, bx1, by1, bx2, by2) {\n var d = (ax2 - ax1) * (by2 - by1) - (ay2 - ay1) * (bx2 - bx1);\n\n if (d === 0) {\n // The lines are parallel.\n return null;\n }\n\n var ua = ((bx2 - bx1) * (ay1 - by1) - (ax1 - bx1) * (by2 - by1)) / d;\n var ub = ((ax2 - ax1) * (ay1 - by1) - (ay2 - ay1) * (ax1 - bx1)) / d;\n\n if (ua >= 0 && ua <= 1 && ub >= 0 && ub <= 1) {\n return {\n x: ax1 + ua * (ax2 - ax1),\n y: ay1 + ua * (ay2 - ay1)\n };\n }\n\n return null; // The intersection point is outside either or both segments.\n}\n/**\n * Returns intersection points of the given cubic curve and the line segment.\n * Takes in x/y components of cubic control points and line segment start/end points\n * as parameters.\n */\n\n\nfunction cubicSegmentIntersections$1(px1, py1, px2, py2, px3, py3, px4, py4, x1, y1, x2, y2) {\n var intersections = []; // Find line equation coefficients.\n\n var A = y1 - y2;\n var B = x2 - x1;\n var C = x1 * (y2 - y1) - y1 * (x2 - x1); // Find cubic Bezier curve equation coefficients from control points.\n\n var bx = bezierCoefficients$1(px1, px2, px3, px4);\n var by = bezierCoefficients$1(py1, py2, py3, py4);\n var a = A * bx[0] + B * by[0]; // t^3\n\n var b = A * bx[1] + B * by[1]; // t^2\n\n var c = A * bx[2] + B * by[2]; // t\n\n var d = A * bx[3] + B * by[3] + C; // 1\n\n var roots = cubicRoots$1(a, b, c, d); // Verify that the roots are within bounds of the linear segment.\n\n for (var i = 0; i < roots.length; i++) {\n var t = roots[i];\n var tt = t * t;\n var ttt = t * tt; // Find the cartesian plane coordinates for the parametric root `t`.\n\n var x = bx[0] * ttt + bx[1] * tt + bx[2] * t + bx[3];\n var y = by[0] * ttt + by[1] * tt + by[2] * t + by[3]; // The parametric cubic roots we found are intersection points\n // with an infinite line, and so the x/y coordinates above are as well.\n // Make sure the x/y is also within the bounds of the given segment.\n\n var s = void 0;\n\n if (x1 !== x2) {\n s = (x - x1) / (x2 - x1);\n } else {\n // the line is vertical\n s = (y - y1) / (y2 - y1);\n }\n\n if (s >= 0 && s <= 1) {\n intersections.push({\n x: x,\n y: y\n });\n }\n }\n\n return intersections;\n}\n/**\n * Returns the given coordinates vector multiplied by the coefficient matrix\n * of the parametric cubic Bézier equation.\n */\n\n\nfunction bezierCoefficients$1(P1, P2, P3, P4) {\n return [// Bézier expressed as matrix operations:\n -P1 + 3 * P2 - 3 * P3 + P4, 3 * P1 - 6 * P2 + 3 * P3, -3 * P1 + 3 * P2, P1];\n}\n\nvar __values$q = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar Path2D$1 =\n/** @class */\nfunction () {\n function Path2D() {\n // The methods of this class will likely be called many times per animation frame,\n // and any allocation can trigger a GC cycle during animation, so we attempt\n // to minimize the number of allocations.\n this.previousCommands = [];\n this.previousParams = [];\n this.previousClosedPath = false;\n this.commands = [];\n this.params = [];\n this._closedPath = false;\n }\n\n Path2D.prototype.isDirty = function () {\n if (this._closedPath !== this.previousClosedPath) {\n return true;\n }\n\n if (this.previousCommands.length !== this.commands.length) {\n return true;\n }\n\n if (this.previousParams.length !== this.params.length) {\n return true;\n }\n\n for (var i = 0; i < this.commands.length; i++) {\n if (this.commands[i] !== this.previousCommands[i]) {\n return true;\n }\n }\n\n for (var i = 0; i < this.params.length; i++) {\n if (this.params[i] !== this.previousParams[i]) {\n return true;\n }\n }\n\n return false;\n };\n\n Path2D.prototype.draw = function (ctx) {\n var e_1, _a;\n\n var commands = this.commands;\n var params = this.params;\n var j = 0;\n ctx.beginPath();\n\n try {\n for (var commands_1 = __values$q(commands), commands_1_1 = commands_1.next(); !commands_1_1.done; commands_1_1 = commands_1.next()) {\n var command = commands_1_1.value;\n\n switch (command) {\n case 'M':\n ctx.moveTo(params[j++], params[j++]);\n break;\n\n case 'L':\n ctx.lineTo(params[j++], params[j++]);\n break;\n\n case 'C':\n ctx.bezierCurveTo(params[j++], params[j++], params[j++], params[j++], params[j++], params[j++]);\n break;\n\n case 'Z':\n ctx.closePath();\n break;\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (commands_1_1 && !commands_1_1.done && (_a = commands_1.return)) _a.call(commands_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n if (commands.length === 0) {\n ctx.closePath();\n }\n };\n\n Path2D.prototype.moveTo = function (x, y) {\n if (this.xy) {\n this.xy[0] = x;\n this.xy[1] = y;\n } else {\n this.xy = [x, y];\n }\n\n this.commands.push('M');\n this.params.push(x, y);\n };\n\n Path2D.prototype.lineTo = function (x, y) {\n if (this.xy) {\n this.commands.push('L');\n this.params.push(x, y);\n this.xy[0] = x;\n this.xy[1] = y;\n } else {\n this.moveTo(x, y);\n }\n };\n\n Path2D.prototype.rect = function (x, y, width, height) {\n this.moveTo(x, y);\n this.lineTo(x + width, y);\n this.lineTo(x + width, y + height);\n this.lineTo(x, y + height);\n this.closePath();\n };\n /**\n * Adds an arc segment to the path definition.\n * https://www.w3.org/TR/SVG11/paths.html#PathDataEllipticalArcCommands\n * @param rx The major-axis radius.\n * @param ry The minor-axis radius.\n * @param rotation The x-axis rotation, expressed in radians.\n * @param fA The large arc flag. `1` to use angle > π.\n * @param fS The sweep flag. `1` for the arc that goes to `x`/`y` clockwise.\n * @param x2 The x coordinate to arc to.\n * @param y2 The y coordinate to arc to.\n */\n\n\n Path2D.prototype.arcTo = function (rx, ry, rotation, fA, fS, x2, y2) {\n // Convert from endpoint to center parametrization:\n // https://www.w3.org/TR/SVG/implnote.html#ArcImplementationNotes\n var xy = this.xy;\n\n if (!xy) {\n return;\n }\n\n if (rx < 0) {\n rx = -rx;\n }\n\n if (ry < 0) {\n ry = -ry;\n }\n\n var x1 = xy[0];\n var y1 = xy[1];\n var hdx = (x1 - x2) / 2;\n var hdy = (y1 - y2) / 2;\n var sinPhi = Math.sin(rotation);\n var cosPhi = Math.cos(rotation);\n var xp = cosPhi * hdx + sinPhi * hdy;\n var yp = -sinPhi * hdx + cosPhi * hdy;\n var ratX = xp / rx;\n var ratY = yp / ry;\n var lambda = ratX * ratX + ratY * ratY;\n var cx = (x1 + x2) / 2;\n var cy = (y1 + y2) / 2;\n var cpx = 0;\n var cpy = 0;\n\n if (lambda >= 1) {\n lambda = Math.sqrt(lambda);\n rx *= lambda;\n ry *= lambda; // me gives lambda == cpx == cpy == 0;\n } else {\n lambda = Math.sqrt(1 / lambda - 1);\n\n if (fA === fS) {\n lambda = -lambda;\n }\n\n cpx = lambda * rx * ratY;\n cpy = -lambda * ry * ratX;\n cx += cosPhi * cpx - sinPhi * cpy;\n cy += sinPhi * cpx + cosPhi * cpy;\n }\n\n var theta1 = Math.atan2((yp - cpy) / ry, (xp - cpx) / rx);\n var deltaTheta = Math.atan2((-yp - cpy) / ry, (-xp - cpx) / rx) - theta1;\n this.cubicArc(cx, cy, rx, ry, rotation, theta1, theta1 + deltaTheta, 1 - fS);\n };\n /**\n * Approximates an elliptical arc with up to four cubic Bézier curves.\n * @param commands The string array to write SVG command letters to.\n * @param params The number array to write SVG command parameters (cubic control points) to.\n * @param cx The x-axis coordinate for the ellipse's center.\n * @param cy The y-axis coordinate for the ellipse's center.\n * @param rx The ellipse's major-axis radius.\n * @param ry The ellipse's minor-axis radius.\n * @param phi The rotation for this ellipse, expressed in radians.\n * @param theta1 The starting angle, measured clockwise from the positive x-axis and expressed in radians.\n * @param theta2 The ending angle, measured clockwise from the positive x-axis and expressed in radians.\n * @param anticlockwise The arc control points are always placed clockwise from `theta1` to `theta2`,\n * even when `theta1 > theta2`, unless this flag is set to `1`.\n */\n\n\n Path2D.cubicArc = function (commands, params, cx, cy, rx, ry, phi, theta1, theta2, anticlockwise) {\n if (anticlockwise) {\n var temp = theta1;\n theta1 = theta2;\n theta2 = temp;\n }\n\n var start = params.length; // See https://pomax.github.io/bezierinfo/#circles_cubic\n // Arc of unit circle (start angle = 0, end angle <= π/2) in cubic Bézier coordinates:\n // S = [1, 0]\n // C1 = [1, f]\n // C2 = [cos(θ) + f * sin(θ), sin(θ) - f * cos(θ)]\n // E = [cos(θ), sin(θ)]\n // f = 4/3 * tan(θ/4)\n\n var f90 = 0.5522847498307935; // f for θ = π/2 is 4/3 * (Math.sqrt(2) - 1)\n\n var sinTheta1 = Math.sin(theta1);\n var cosTheta1 = Math.cos(theta1);\n var sinPhi = Math.sin(phi);\n var cosPhi = Math.cos(phi);\n var rightAngle = Math.PI / 2; // Since we know how to draw an arc of a unit circle with a cubic Bézier,\n // to draw an elliptical arc with arbitrary rotation and radii we:\n // 1) rotate the Bézier coordinates that represent a circular arc by θ\n // 2) scale the circular arc separately along the x/y axes, making it elliptical\n // 3) rotate elliptical arc by φ\n // |cos(φ) -sin(φ)| |sx 0| |cos(θ) -sin(θ)| -> |xx xy|\n // |sin(φ) cos(φ)| | 0 sy| |sin(θ) cos(θ)| -> |yx yy|\n\n var xx = cosPhi * cosTheta1 * rx - sinPhi * sinTheta1 * ry;\n var yx = sinPhi * cosTheta1 * rx + cosPhi * sinTheta1 * ry;\n var xy = -cosPhi * sinTheta1 * rx - sinPhi * cosTheta1 * ry;\n var yy = -sinPhi * sinTheta1 * rx + cosPhi * cosTheta1 * ry; // Always draw clockwise from θ1 to θ2.\n\n theta2 -= theta1;\n\n if (theta2 < 0) {\n theta2 += Math.PI * 2;\n } // Multiplying each point [x, y] by:\n // |xx xy cx| |x|\n // |yx yy cy| |y|\n // | 0 0 1| |1|\n\n\n commands.push('M');\n params.push(xx + cx, yx + cy);\n\n while (theta2 >= rightAngle) {\n theta2 -= rightAngle;\n commands.push('C'); // Temp workaround for https://bugs.chromium.org/p/chromium/issues/detail?id=993330\n // Revert this commit when fixed ^^.\n\n var lastX = xy + cx;\n params.push(xx + xy * f90 + cx, yx + yy * f90 + cy, xx * f90 + xy + cx, yx * f90 + yy + cy, Math.abs(lastX) < 1e-8 ? 0 : lastX, yy + cy); // Prepend π/2 rotation matrix.\n // |xx xy| | 0 1| -> | xy -xx|\n // |yx yy| |-1 0| -> | yy -yx|\n // [xx, yx, xy, yy] = [xy, yy, -xx, -yx];\n // Compared to swapping with a temp variable, destructuring is:\n // - 10% faster in Chrome 70\n // - 99% slower in Firefox 63\n // Temp variable solution is 45% faster in FF than Chrome.\n // https://jsperf.com/multi-swap\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1165569\n\n var temp = xx;\n xx = xy;\n xy = -temp;\n temp = yx;\n yx = yy;\n yy = -temp;\n }\n\n if (theta2) {\n var f = 4 / 3 * Math.tan(theta2 / 4);\n var sinPhi2 = Math.sin(theta2);\n var cosPhi2 = Math.cos(theta2);\n var C2x = cosPhi2 + f * sinPhi2;\n var C2y = sinPhi2 - f * cosPhi2;\n commands.push('C'); // Temp workaround for https://bugs.chromium.org/p/chromium/issues/detail?id=993330\n // Revert this commit when fixed ^^.\n\n var lastX = xx * cosPhi2 + xy * sinPhi2 + cx;\n params.push(xx + xy * f + cx, yx + yy * f + cy, xx * C2x + xy * C2y + cx, yx * C2x + yy * C2y + cy, Math.abs(lastX) < 1e-8 ? 0 : lastX, yx * cosPhi2 + yy * sinPhi2 + cy);\n }\n\n if (anticlockwise) {\n for (var i = start, j = params.length - 2; i < j; i += 2, j -= 2) {\n var temp = params[i];\n params[i] = params[j];\n params[j] = temp;\n temp = params[i + 1];\n params[i + 1] = params[j + 1];\n params[j + 1] = temp;\n }\n }\n };\n\n Path2D.prototype.cubicArc = function (cx, cy, rx, ry, phi, theta1, theta2, anticlockwise) {\n var commands = this.commands;\n var params = this.params;\n var start = commands.length;\n Path2D.cubicArc(commands, params, cx, cy, rx, ry, phi, theta1, theta2, anticlockwise);\n var x = params[params.length - 2];\n var y = params[params.length - 1];\n\n if (this.xy) {\n commands[start] = 'L';\n this.xy[0] = x;\n this.xy[1] = y;\n } else {\n this.xy = [x, y];\n }\n };\n /**\n * Returns the `[x, y]` coordinates of the curve at `t`.\n * @param points `(n + 1) * 2` control point coordinates for a Bézier curve of n-th order.\n * @param t\n */\n\n\n Path2D.prototype.deCasteljau = function (points, t) {\n var n = points.length;\n\n if (n < 2 || n % 2 === 1) {\n throw new Error('Fewer than two points or not an even count.');\n } else if (n === 2 || t === 0) {\n return points.slice(0, 2);\n } else if (t === 1) {\n return points.slice(-2);\n } else {\n var newPoints = [];\n var last = n - 2;\n\n for (var i = 0; i < last; i += 2) {\n newPoints.push((1 - t) * points[i] + t * points[i + 2], // x\n (1 - t) * points[i + 1] + t * points[i + 3] // y\n );\n }\n\n return this.deCasteljau(newPoints, t);\n }\n };\n /**\n * Approximates the given curve using `n` line segments.\n * @param points `(n + 1) * 2` control point coordinates for a Bézier curve of n-th order.\n * @param n\n */\n\n\n Path2D.prototype.approximateCurve = function (points, n) {\n var xy = this.deCasteljau(points, 0);\n this.moveTo(xy[0], xy[1]);\n var step = 1 / n;\n\n for (var t = step; t <= 1; t += step) {\n var xy_1 = this.deCasteljau(points, t);\n this.lineTo(xy_1[0], xy_1[1]);\n }\n };\n /**\n * Adds a quadratic curve segment to the path definition.\n * Note: the given quadratic segment is converted and stored as a cubic one.\n * @param cx x-component of the curve's control point\n * @param cy y-component of the curve's control point\n * @param x x-component of the end point\n * @param y y-component of the end point\n */\n\n\n Path2D.prototype.quadraticCurveTo = function (cx, cy, x, y) {\n if (!this.xy) {\n this.moveTo(cx, cy);\n } // See https://pomax.github.io/bezierinfo/#reordering\n\n\n this.cubicCurveTo((this.xy[0] + 2 * cx) / 3, (this.xy[1] + 2 * cy) / 3, // 1/3 start + 2/3 control\n (2 * cx + x) / 3, (2 * cy + y) / 3, // 2/3 control + 1/3 end\n x, y);\n };\n\n Path2D.prototype.cubicCurveTo = function (cx1, cy1, cx2, cy2, x, y) {\n if (!this.xy) {\n this.moveTo(cx1, cy1);\n }\n\n this.commands.push('C');\n this.params.push(cx1, cy1, cx2, cy2, x, y);\n this.xy[0] = x;\n this.xy[1] = y;\n };\n\n Object.defineProperty(Path2D.prototype, \"closedPath\", {\n get: function get() {\n return this._closedPath;\n },\n enumerable: true,\n configurable: true\n });\n\n Path2D.prototype.closePath = function () {\n if (this.xy) {\n this.xy = undefined;\n this.commands.push('Z');\n this._closedPath = true;\n }\n };\n\n Path2D.prototype.clear = function (_a) {\n var trackChanges = (_a === void 0 ? {\n trackChanges: false\n } : _a).trackChanges;\n\n if (trackChanges) {\n this.previousCommands = this.commands;\n this.previousParams = this.params;\n this.previousClosedPath = this._closedPath;\n this.commands = [];\n this.params = [];\n } else {\n this.commands.length = 0;\n this.params.length = 0;\n }\n\n this.xy = undefined;\n this._closedPath = false;\n };\n\n Path2D.prototype.isPointInPath = function (x, y) {\n var commands = this.commands;\n var params = this.params;\n var cn = commands.length; // Hit testing using ray casting method, where the ray's origin is some point\n // outside the path. In this case, an offscreen point that is remote enough, so that\n // even if the path itself is large and is partially offscreen, the ray's origin\n // will likely be outside the path anyway. To test if the given point is inside the\n // path or not, we cast a ray from the origin to the given point and check the number\n // of intersections of this segment with the path. If the number of intersections is\n // even, then the ray both entered and exited the path an equal number of times,\n // therefore the point is outside the path, and inside the path, if the number of\n // intersections is odd. Since the path is compound, we check if the ray segment\n // intersects with each of the path's segments, which can be either a line segment\n // (one or no intersection points) or a Bézier curve segment (up to 3 intersection\n // points).\n\n var ox = -10000;\n var oy = -10000; // the starting point of the current path\n\n var sx = NaN;\n var sy = NaN; // the previous point of the current path\n\n var px = 0;\n var py = 0;\n var intersectionCount = 0;\n\n for (var ci = 0, pi = 0; ci < cn; ci++) {\n switch (commands[ci]) {\n case 'M':\n if (!isNaN(sx)) {\n if (segmentIntersection$1(sx, sy, px, py, ox, oy, x, y)) {\n intersectionCount++;\n }\n }\n\n px = params[pi++];\n sx = px;\n py = params[pi++];\n sy = py;\n break;\n\n case 'L':\n if (segmentIntersection$1(px, py, params[pi++], params[pi++], ox, oy, x, y)) {\n intersectionCount++;\n }\n\n px = params[pi - 2];\n py = params[pi - 1];\n break;\n\n case 'C':\n intersectionCount += cubicSegmentIntersections$1(px, py, params[pi++], params[pi++], params[pi++], params[pi++], params[pi++], params[pi++], ox, oy, x, y).length;\n px = params[pi - 2];\n py = params[pi - 1];\n break;\n\n case 'Z':\n if (!isNaN(sx)) {\n if (segmentIntersection$1(sx, sy, px, py, ox, oy, x, y)) {\n intersectionCount++;\n }\n }\n\n break;\n }\n }\n\n return intersectionCount % 2 === 1;\n };\n /**\n * Returns an array of sub-paths of this Path,\n * where each sub-path is represented exclusively by cubic segments.\n */\n\n\n Path2D.prototype.toCubicPaths = function () {\n // Each sub-path is an array of `(n * 3 + 1) * 2` numbers,\n // where `n` is the number of segments.\n var paths = [];\n var params = this.params; // current path\n\n var path; // the starting point of the current path\n\n var sx;\n var sy; // the previous point of the current path\n\n var px;\n var py;\n var i = 0; // current parameter\n\n this.commands.forEach(function (command) {\n switch (command) {\n case 'M':\n px = params[i++];\n py = params[i++];\n sx = px;\n sy = py;\n paths.push([sx, sy]);\n break;\n\n case 'L':\n var x = params[i++];\n var y = params[i++]; // Place control points along the line `a + (b - a) * t`\n // at t = 1/3 and 2/3:\n\n path.push((px + px + x) / 3, (py + py + y) / 3, (px + x + x) / 3, (py + y + y) / 3, x, y);\n px = x;\n py = y;\n break;\n\n case 'C':\n path.push(params[i++], params[i++], params[i++], params[i++], params[i++], params[i++]);\n px = params[i - 2];\n py = params[i - 1];\n break;\n\n case 'Z':\n path.push((px + px + sx) / 3, (py + py + sy) / 3, (px + sx + sx) / 3, (py + sy + sy) / 3, sx, sy);\n px = sx;\n py = sy;\n break;\n }\n });\n return paths;\n };\n\n Path2D.cubicPathToString = function (path) {\n var n = path.length;\n\n if (!(n % 2 === 0 && (n / 2 - 1) / 2 >= 1)) {\n throw new Error('Invalid path.');\n }\n\n return 'M' + path.slice(0, 2).join(',') + 'C' + path.slice(2).join(',');\n };\n\n return Path2D;\n}();\n\nvar __extends$2H = undefined && undefined.__extends || function () {\n var _extendStatics49 = function extendStatics(d, b) {\n _extendStatics49 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics49(d, b);\n };\n\n return function (d, b) {\n _extendStatics49(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$w = undefined && undefined.__assign || function () {\n __assign$w = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$w.apply(this, arguments);\n};\n\nvar __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __values$p = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar __read$I = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$n = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$I(arguments[i]));\n }\n\n return ar;\n};\n\nvar Group$1 =\n/** @class */\nfunction (_super) {\n __extends$2H(Group, _super);\n\n function Group(opts) {\n var _a, _b;\n\n var _this = _super.call(this) || this;\n\n _this.opts = opts;\n _this.clipPath = new Path2D$1();\n _this.opacity = 1;\n\n var _c = opts || {},\n zIndex = _c.zIndex,\n zIndexSubOrder = _c.zIndexSubOrder;\n\n _this.isContainerNode = true;\n\n if (zIndex !== undefined) {\n _this.zIndex = zIndex;\n }\n\n if (zIndexSubOrder !== undefined) {\n _this.zIndexSubOrder = zIndexSubOrder;\n }\n\n if ((_a = _this.opts) === null || _a === void 0 ? void 0 : _a.optimiseDirtyTracking) {\n _this.visibleChildren = {};\n _this.dirtyChildren = {};\n }\n\n _this.name = (_b = _this.opts) === null || _b === void 0 ? void 0 : _b.name;\n return _this;\n }\n\n Group.prototype.opacityChanged = function () {\n if (this.layer) {\n this.layer.opacity = this.opacity;\n }\n };\n\n Group.prototype.zIndexChanged = function () {\n var _a;\n\n if (this.layer) {\n (_a = this._scene) === null || _a === void 0 ? void 0 : _a.moveLayer(this.layer, this.zIndex, this.zIndexSubOrder);\n }\n };\n\n Group.prototype.isLayer = function () {\n return this.layer != null;\n };\n\n Group.prototype.append = function (nodes) {\n var e_1, _a;\n\n _super.prototype.append.call(this, nodes);\n\n if (this.dirtyChildren) {\n nodes = nodes instanceof Array ? nodes : [nodes];\n\n try {\n for (var nodes_1 = __values$p(nodes), nodes_1_1 = nodes_1.next(); !nodes_1_1.done; nodes_1_1 = nodes_1.next()) {\n var node = nodes_1_1.value;\n this.dirtyChildren[node.id] = node;\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (nodes_1_1 && !nodes_1_1.done && (_a = nodes_1.return)) _a.call(nodes_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n }\n };\n\n Group.prototype._setScene = function (scene) {\n var _a;\n\n if (this._scene && this.layer) {\n this._scene.removeLayer(this.layer);\n\n this.layer = undefined;\n }\n\n if (this.layer) {\n throw new Error('AG Charts - unable to deregister scene rendering layer!');\n }\n\n _super.prototype._setScene.call(this, scene);\n\n if (scene && ((_a = this.opts) === null || _a === void 0 ? void 0 : _a.layer)) {\n var _b = this.opts || {},\n zIndex = _b.zIndex,\n zIndexSubOrder = _b.zIndexSubOrder,\n name_1 = _b.name;\n\n this.layer = scene.addLayer({\n zIndex: zIndex,\n zIndexSubOrder: zIndexSubOrder,\n name: name_1\n });\n }\n };\n\n Group.prototype.visibilityChanged = function () {\n if (this.layer) {\n this.layer.enabled = this.visible;\n }\n };\n\n Group.prototype.removeChild = function (node) {\n _super.prototype.removeChild.call(this, node);\n\n if (this.dirtyChildren && this.visibleChildren) {\n delete this.dirtyChildren[node.id];\n delete this.visibleChildren[node.id];\n }\n\n return node;\n };\n\n Group.prototype.markDirty = function (source, type) {\n if (type === void 0) {\n type = RedrawType.TRIVIAL;\n }\n\n var parentType = type <= RedrawType.MINOR ? RedrawType.TRIVIAL : type;\n\n _super.prototype.markDirty.call(this, source, type, parentType);\n\n if (source !== this && this.dirtyChildren) {\n this.dirtyChildren[source.id] = source;\n }\n };\n\n Group.prototype.markClean = function (opts) {\n var e_2, _a; // Ensure we update visibility tracking before blowing away dirty flags.\n\n\n this.syncChildVisibility();\n var _b = this.dirtyChildren,\n dirtyChildren = _b === void 0 ? {} : _b;\n\n try {\n for (var _c = __values$p(Object.keys(dirtyChildren)), _d = _c.next(); !_d.done; _d = _c.next()) {\n var key = _d.value;\n delete dirtyChildren[key];\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally {\n try {\n if (_d && !_d.done && (_a = _c.return)) _a.call(_c);\n } finally {\n if (e_2) throw e_2.error;\n }\n }\n\n _super.prototype.markClean.call(this, opts);\n }; // We consider a group to be boundless, thus any point belongs to it.\n\n\n Group.prototype.containsPoint = function (_x, _y) {\n return true;\n };\n\n Group.prototype.computeBBox = function () {\n var left = Infinity;\n var right = -Infinity;\n var top = Infinity;\n var bottom = -Infinity;\n this.computeTransformMatrix();\n this.children.forEach(function (child) {\n if (!child.visible) {\n return;\n }\n\n var bbox = child.computeTransformedBBox();\n\n if (!bbox) {\n return;\n }\n\n var x = bbox.x;\n var y = bbox.y;\n\n if (x < left) {\n left = x;\n }\n\n if (y < top) {\n top = y;\n }\n\n if (x + bbox.width > right) {\n right = x + bbox.width;\n }\n\n if (y + bbox.height > bottom) {\n bottom = y + bbox.height;\n }\n });\n return new BBox$1(left, top, right - left, bottom - top);\n };\n\n Group.prototype.computeTransformedBBox = function () {\n return this.computeBBox();\n };\n\n Group.prototype.render = function (renderCtx) {\n var _a;\n\n if (this.layer && ((_a = this.opts) === null || _a === void 0 ? void 0 : _a.optimiseDirtyTracking)) {\n this.optimisedRender(renderCtx);\n return;\n }\n\n this.basicRender(renderCtx);\n };\n\n Group.prototype.basicRender = function (renderCtx) {\n var e_3, _a;\n\n var _b = this.opts,\n _c = (_b === void 0 ? {} : _b).name,\n name = _c === void 0 ? undefined : _c;\n var _d = this._debug,\n _e = (_d === void 0 ? {} : _d).consoleLog,\n consoleLog = _e === void 0 ? false : _e;\n\n var _f = this,\n dirty = _f.dirty,\n dirtyZIndex = _f.dirtyZIndex,\n clipPath = _f.clipPath,\n layer = _f.layer,\n children = _f.children;\n\n var ctx = renderCtx.ctx,\n forceRender = renderCtx.forceRender,\n clipBBox = renderCtx.clipBBox,\n resized = renderCtx.resized,\n stats = renderCtx.stats;\n var isDirty = dirty >= RedrawType.MINOR || dirtyZIndex || resized;\n var isChildDirty = isDirty || children.some(function (n) {\n return n.dirty >= RedrawType.TRIVIAL;\n });\n\n if (name && consoleLog) {\n console.log({\n name: name,\n group: this,\n isDirty: isDirty,\n isChildDirty: isChildDirty,\n renderCtx: renderCtx,\n forceRender: forceRender\n });\n }\n\n if (layer) {\n // By default there is no need to force redraw a group which has it's own canvas layer\n // as the layer is independent of any other layer.\n forceRender = false;\n }\n\n if (!isDirty && !isChildDirty && !forceRender) {\n if (name && consoleLog && stats) {\n var counts = this.nodeCount;\n console.log({\n name: name,\n result: 'skipping',\n renderCtx: renderCtx,\n counts: counts,\n group: this\n });\n }\n\n if (layer && stats) {\n stats.layersSkipped++;\n stats.nodesSkipped += this.nodeCount.count;\n }\n\n _super.prototype.markClean.call(this, {\n recursive: false\n }); // Nothing to do.\n\n\n return;\n }\n\n var groupVisible = this.visible;\n\n if (layer) {\n // Switch context to the canvas layer we use for this group.\n ctx = layer.context;\n ctx.save();\n ctx.setTransform(renderCtx.ctx.getTransform());\n forceRender = true;\n layer.clear();\n\n if (clipBBox) {\n var width = clipBBox.width,\n height = clipBBox.height,\n x = clipBBox.x,\n y = clipBBox.y;\n\n if (consoleLog) {\n console.log({\n name: name,\n clipBBox: clipBBox,\n ctxTransform: ctx.getTransform(),\n renderCtx: renderCtx,\n group: this\n });\n }\n\n clipPath.clear();\n clipPath.rect(x, y, width, height);\n clipPath.draw(ctx);\n ctx.clip();\n }\n } else {\n // Only apply opacity if this isn't a distinct layer - opacity will be applied\n // at composition time.\n ctx.globalAlpha *= this.opacity;\n } // A group can have `scaling`, `rotation`, `translation` properties\n // that are applied to the canvas context before children are rendered,\n // so all children can be transformed at once.\n\n\n this.computeTransformMatrix();\n this.matrix.toContext(ctx);\n clipBBox = clipBBox ? this.matrix.inverse().transformBBox(clipBBox) : undefined;\n\n if (dirtyZIndex) {\n this.sortChildren();\n forceRender = true;\n } // Reduce churn if renderCtx is identical.\n\n\n var renderContextChanged = forceRender !== renderCtx.forceRender || clipBBox !== renderCtx.clipBBox || ctx !== renderCtx.ctx;\n var childRenderContext = renderContextChanged ? __assign$w(__assign$w({}, renderCtx), {\n ctx: ctx,\n forceRender: forceRender,\n clipBBox: clipBBox\n }) : renderCtx; // Render visible children.\n\n var skipped = 0;\n\n try {\n for (var children_1 = __values$p(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {\n var child = children_1_1.value;\n\n if (!child.visible || !groupVisible) {\n // Skip invisible children, but make sure their dirty flag is reset.\n child.markClean();\n if (stats) skipped += child.nodeCount.count;\n continue;\n }\n\n if (!forceRender && child.dirty === RedrawType.NONE) {\n // Skip children that don't need to be redrawn.\n if (stats) skipped += child.nodeCount.count;\n continue;\n } // Render marks this node (and children) as clean - no need to explicitly markClean().\n\n\n ctx.save();\n child.render(childRenderContext);\n ctx.restore();\n }\n } catch (e_3_1) {\n e_3 = {\n error: e_3_1\n };\n } finally {\n try {\n if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);\n } finally {\n if (e_3) throw e_3.error;\n }\n }\n\n if (stats) stats.nodesSkipped += skipped; // Render marks this node as clean - no need to explicitly markClean().\n\n _super.prototype.render.call(this, renderCtx);\n\n if (layer) {\n if (stats) stats.layersRendered++;\n ctx.restore();\n layer.snapshot();\n }\n\n if (name && consoleLog && stats) {\n var counts = this.nodeCount;\n console.log({\n name: name,\n result: 'rendered',\n skipped: skipped,\n renderCtx: renderCtx,\n counts: counts,\n group: this\n });\n }\n };\n\n Group.prototype.optimisedRender = function (renderCtx) {\n var e_4, _a, e_5, _b;\n\n var _c = this._debug,\n _d = (_c === void 0 ? {} : _c).consoleLog,\n consoleLog = _d === void 0 ? false : _d;\n\n var _e = this,\n name = _e.name,\n dirty = _e.dirty,\n dirtyZIndex = _e.dirtyZIndex,\n clipPath = _e.clipPath,\n layer = _e.layer,\n _f = _e.dirtyChildren,\n dirtyChildren = _f === void 0 ? {} : _f,\n _g = _e.visibleChildren,\n visibleChildren = _g === void 0 ? {} : _g,\n groupVisible = _e.visible;\n\n var ctx = renderCtx.ctx,\n clipBBox = renderCtx.clipBBox,\n resized = renderCtx.resized,\n stats = renderCtx.stats;\n\n if (!layer) {\n return;\n }\n\n var isDirty = dirty >= RedrawType.MINOR || dirtyZIndex || resized;\n var isChildDirty = Object.keys(dirtyChildren).length > 0;\n\n if (name && consoleLog) {\n console.log({\n name: name,\n group: this,\n isDirty: isDirty,\n isChildDirty: isChildDirty,\n renderCtx: renderCtx\n });\n }\n\n if (!isDirty && !isChildDirty) {\n if (name && consoleLog && stats) {\n var counts = this.nodeCount;\n console.log({\n name: name,\n result: 'skipping',\n renderCtx: renderCtx,\n counts: counts,\n group: this\n });\n }\n\n if (stats) {\n stats.layersSkipped++;\n stats.nodesSkipped += this.nodeCount.count;\n }\n\n _super.prototype.markClean.call(this, {\n recursive: false\n }); // Nothing to do.\n\n\n return;\n } // Switch context to the canvas layer we use for this group.\n\n\n ctx = layer.context;\n ctx.save();\n ctx.setTransform(renderCtx.ctx.getTransform());\n layer.clear();\n\n if (clipBBox) {\n var width = clipBBox.width,\n height = clipBBox.height,\n x = clipBBox.x,\n y = clipBBox.y;\n\n if (consoleLog) {\n console.log({\n name: name,\n clipBBox: clipBBox,\n ctxTransform: ctx.getTransform(),\n renderCtx: renderCtx,\n group: this\n });\n }\n\n clipPath.clear();\n clipPath.rect(x, y, width, height);\n clipPath.draw(ctx);\n ctx.clip();\n }\n\n this.syncChildVisibility(); // A group can have `scaling`, `rotation`, `translation` properties\n // that are applied to the canvas context before children are rendered,\n // so all children can be transformed at once.\n\n this.computeTransformMatrix();\n this.matrix.toContext(ctx);\n clipBBox = clipBBox ? this.matrix.inverse().transformBBox(clipBBox) : undefined;\n\n if (dirtyZIndex) {\n this.sortChildren();\n } // Reduce churn if renderCtx is identical.\n\n\n var renderContextChanged = renderCtx.forceRender !== true || clipBBox !== renderCtx.clipBBox || ctx !== renderCtx.ctx;\n var childRenderContext = renderContextChanged ? __assign$w(__assign$w({}, renderCtx), {\n ctx: ctx,\n forceRender: true,\n clipBBox: clipBBox\n }) : renderCtx;\n\n if (consoleLog) {\n console.log({\n name: name,\n visibleChildren: visibleChildren,\n dirtyChildren: dirtyChildren\n });\n }\n\n var skipped = 0;\n\n if (groupVisible) {\n try {\n for (var _h = __values$p(Object.values(visibleChildren)), _j = _h.next(); !_j.done; _j = _h.next()) {\n var child = _j.value;\n ctx.save();\n child.render(childRenderContext);\n ctx.restore();\n }\n } catch (e_4_1) {\n e_4 = {\n error: e_4_1\n };\n } finally {\n try {\n if (_j && !_j.done && (_a = _h.return)) _a.call(_h);\n } finally {\n if (e_4) throw e_4.error;\n }\n }\n }\n\n this.markClean({\n recursive: false\n });\n\n try {\n for (var _k = __values$p(Object.values(dirtyChildren)), _l = _k.next(); !_l.done; _l = _k.next()) {\n var child = _l.value;\n child.markClean();\n delete dirtyChildren[child.id];\n }\n } catch (e_5_1) {\n e_5 = {\n error: e_5_1\n };\n } finally {\n try {\n if (_l && !_l.done && (_b = _k.return)) _b.call(_k);\n } finally {\n if (e_5) throw e_5.error;\n }\n }\n\n if (stats) stats.nodesSkipped += skipped;\n if (stats) stats.layersRendered++;\n ctx.restore();\n layer.snapshot();\n\n if (name && consoleLog && stats) {\n var counts = this.nodeCount;\n console.log({\n name: name,\n result: 'rendered',\n skipped: skipped,\n renderCtx: renderCtx,\n counts: counts,\n group: this\n });\n }\n };\n\n Group.prototype.syncChildVisibility = function () {\n var e_6, _a;\n\n var _b = this,\n dirtyChildren = _b.dirtyChildren,\n visibleChildren = _b.visibleChildren;\n\n if (!dirtyChildren || !visibleChildren) {\n return;\n }\n\n try {\n for (var _c = __values$p(Object.values(dirtyChildren)), _d = _c.next(); !_d.done; _d = _c.next()) {\n var child = _d.value;\n\n if (!child.visible && visibleChildren[child.id]) {\n delete visibleChildren[child.id];\n } else if (child.visible && !visibleChildren[child.id]) {\n visibleChildren[child.id] = child;\n }\n }\n } catch (e_6_1) {\n e_6 = {\n error: e_6_1\n };\n } finally {\n try {\n if (_d && !_d.done && (_a = _c.return)) _a.call(_c);\n } finally {\n if (e_6) throw e_6.error;\n }\n }\n };\n\n Group.prototype.sortChildren = function () {\n this.dirtyZIndex = false;\n this.children.sort(function (a, b) {\n var _a, _b;\n\n return compoundAscending(__spread$n([a.zIndex], (_a = a.zIndexSubOrder, _a !== null && _a !== void 0 ? _a : [undefined, undefined]), [a.serialNumber]), __spread$n([b.zIndex], (_b = b.zIndexSubOrder, _b !== null && _b !== void 0 ? _b : [undefined, undefined]), [b.serialNumber]), ascendingStringNumberUndefined);\n });\n };\n\n Group.className = 'Group';\n\n __decorate$1k([SceneChangeDetection({\n convertor: function convertor(v) {\n return Math.min(1, Math.max(0, v));\n },\n changeCb: function changeCb(o) {\n return o.opacityChanged();\n }\n })], Group.prototype, \"opacity\", void 0);\n\n return Group;\n}(Node$1);\n\nvar __values$o = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar EnterNode$1 =\n/** @class */\nfunction () {\n function EnterNode(parent, datum) {\n this.next = null;\n this.scene = parent.scene;\n this.parent = parent;\n this.datum = datum;\n }\n\n EnterNode.prototype.appendChild = function (node) {\n // This doesn't work without the `strict: true` in the `tsconfig.json`,\n // so we must have two `if` checks below, instead of this single one.\n // if (this.next && !Node.isNode(this.next)) {\n // throw new Error(`${this.next} is not a Node.`);\n // }\n if (this.next === null) {\n return this.parent.insertBefore(node, null);\n }\n\n if (!Node$1.isNode(this.next)) {\n throw new Error(this.next + \" is not a Node.\");\n }\n\n return this.parent.insertBefore(node, this.next);\n };\n\n EnterNode.prototype.insertBefore = function (node, nextNode) {\n return this.parent.insertBefore(node, nextNode);\n };\n\n return EnterNode;\n}();\n/**\n * G - type of the selected node(s).\n * GDatum - type of the datum of the selected node(s).\n * P - type of the parent node(s).\n * PDatum - type of the datum of the parent node(s).\n */\n\n\nvar Selection$1 =\n/** @class */\nfunction () {\n function Selection(groups, parents) {\n this.groups = groups;\n this.parents = parents;\n }\n\n Selection.select = function (node) {\n return new Selection([[typeof node === 'function' ? node() : node]], [undefined]);\n };\n\n Selection.selectAll = function (nodes) {\n return new Selection([nodes == null ? [] : nodes], [undefined]);\n };\n /**\n * Creates new nodes, appends them to the nodes of this selection and returns them\n * as a new selection. The created nodes inherit the datums and the parents of the nodes\n * they replace.\n * @param Class The constructor function to use to create the new nodes.\n */\n\n\n Selection.prototype.append = function (Class) {\n return this.select(function (node) {\n return node.appendChild(new Class());\n });\n };\n /**\n * Runs the given selector that returns a single node for every node in each group.\n * The original nodes are then replaced by the nodes returned by the selector\n * and returned as a new selection.\n * The selected nodes inherit the datums and the parents of the original nodes.\n */\n\n\n Selection.prototype.select = function (selector) {\n var groups = this.groups;\n var numGroups = groups.length;\n var subgroups = [];\n\n for (var j = 0; j < numGroups; j++) {\n var group = groups[j];\n var groupSize = group.length;\n var subgroup = subgroups[j] = new Array(groupSize);\n\n for (var i = 0; i < groupSize; i++) {\n var node = group[i];\n\n if (node) {\n var subnode = selector(node, node.datum, i, group);\n\n if (subnode) {\n subnode.datum = node.datum;\n }\n\n subgroup[i] = subnode;\n } // else this can be a group of the `enter` selection,\n // for example, with no nodes at the i-th position,\n // only nodes at the end of the group\n\n }\n }\n\n return new Selection(subgroups, this.parents);\n };\n /**\n * Same as {@link select}, but uses the given {@param Class} (constructor) as a selector.\n * @param Class The constructor function to use to find matching nodes.\n */\n\n\n Selection.prototype.selectByClass = function (Class) {\n return this.select(function (node) {\n if (Node$1.isNode(node)) {\n var children = node.children;\n var n = children.length;\n\n for (var i = 0; i < n; i++) {\n var child = children[i];\n\n if (child instanceof Class) {\n return child;\n }\n }\n }\n });\n };\n\n Selection.prototype.selectByTag = function (tag) {\n return this.select(function (node) {\n if (Node$1.isNode(node)) {\n var children = node.children;\n var n = children.length;\n\n for (var i = 0; i < n; i++) {\n var child = children[i];\n\n if (child.tag === tag) {\n return child;\n }\n }\n }\n });\n };\n\n Selection.prototype.selectAllByClass = function (Class) {\n return this.selectAll(function (node) {\n var nodes = [];\n\n if (Node$1.isNode(node)) {\n var children = node.children;\n var n = children.length;\n\n for (var i = 0; i < n; i++) {\n var child = children[i];\n\n if (child instanceof Class) {\n nodes.push(child);\n }\n }\n }\n\n return nodes;\n });\n };\n\n Selection.prototype.selectAllByTag = function (tag) {\n return this.selectAll(function (node) {\n var nodes = [];\n\n if (Node$1.isNode(node)) {\n var children = node.children;\n var n = children.length;\n\n for (var i = 0; i < n; i++) {\n var child = children[i];\n\n if (child.tag === tag) {\n nodes.push(child);\n }\n }\n }\n\n return nodes;\n });\n };\n\n Selection.prototype.selectNone = function () {\n return [];\n };\n /**\n * Runs the given selector that returns a group of nodes for every node in each group.\n * The original nodes are then replaced by the groups of nodes returned by the selector\n * and returned as a new selection. The original nodes become the parent nodes for each\n * group in the new selection. The selected nodes do not inherit the datums of the original nodes.\n * If called without any parameters, creates a new selection with an empty group for each\n * node in this selection.\n */\n\n\n Selection.prototype.selectAll = function (selectorAll) {\n if (!selectorAll) {\n selectorAll = this.selectNone;\n } // Each subgroup is populated with the selector (run on each group node) results.\n\n\n var subgroups = []; // In the new selection that we return, subgroups become groups,\n // and group nodes become parents.\n\n var parents = [];\n var groups = this.groups;\n var groupCount = groups.length;\n\n for (var j = 0; j < groupCount; j++) {\n var group = groups[j];\n var groupLength = group.length;\n\n for (var i = 0; i < groupLength; i++) {\n var node = group[i];\n\n if (node) {\n subgroups.push(selectorAll(node, node.datum, i, group));\n parents.push(node);\n }\n }\n }\n\n return new Selection(subgroups, parents);\n };\n /**\n * Runs the given callback for every node in this selection and returns this selection.\n * @param cb\n */\n\n\n Selection.prototype.each = function (cb) {\n var e_1, _a, e_2, _b;\n\n try {\n for (var _c = __values$o(this.groups), _d = _c.next(); !_d.done; _d = _c.next()) {\n var group = _d.value;\n var i = 0;\n\n try {\n for (var group_1 = (e_2 = void 0, __values$o(group)), group_1_1 = group_1.next(); !group_1_1.done; group_1_1 = group_1.next()) {\n var node = group_1_1.value;\n\n if (node) {\n cb(node, node.datum, i, group);\n }\n\n i++;\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally {\n try {\n if (group_1_1 && !group_1_1.done && (_b = group_1.return)) _b.call(group_1);\n } finally {\n if (e_2) throw e_2.error;\n }\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (_d && !_d.done && (_a = _c.return)) _a.call(_c);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n return this;\n };\n\n Selection.prototype.remove = function () {\n return this.each(function (node) {\n if (Node$1.isNode(node)) {\n var parent_1 = node.parent;\n\n if (parent_1) {\n parent_1.removeChild(node);\n }\n }\n });\n };\n\n Selection.prototype.merge = function (other) {\n var groups0 = this.groups;\n var groups1 = other.groups;\n var m0 = groups0.length;\n var m1 = groups1.length;\n var m = Math.min(m0, m1);\n var merges = new Array(m0);\n var j = 0;\n\n for (; j < m; j++) {\n var group0 = groups0[j];\n var group1 = groups1[j];\n var n = group0.length;\n var merge = merges[j] = new Array(n);\n\n for (var i = 0; i < n; i++) {\n var node = group0[i] || group1[i];\n merge[i] = node || undefined;\n }\n }\n\n for (; j < m0; j++) {\n merges[j] = groups0[j];\n }\n\n return new Selection(merges, this.parents);\n };\n /**\n * Return the first non-null element in this selection.\n * If the selection is empty, returns null.\n */\n\n\n Selection.prototype.node = function () {\n var groups = this.groups;\n var numGroups = groups.length;\n\n for (var j = 0; j < numGroups; j++) {\n var group = groups[j];\n var groupSize = group.length;\n\n for (var i = 0; i < groupSize; i++) {\n var node = group[i];\n\n if (node) {\n return node;\n }\n }\n }\n\n return null;\n };\n\n Selection.prototype.attr = function (name, value) {\n this.each(function (node) {\n node[name] = value;\n });\n return this;\n };\n\n Selection.prototype.attrFn = function (name, value) {\n this.each(function (node, datum, index, group) {\n node[name] = value(node, datum, index, group);\n });\n return this;\n };\n /**\n * Invokes the given function once, passing in this selection.\n * Returns this selection. Facilitates method chaining.\n * @param cb\n */\n\n\n Selection.prototype.call = function (cb) {\n cb(this);\n return this;\n };\n\n Object.defineProperty(Selection.prototype, \"size\", {\n /**\n * Returns the total number of nodes in this selection.\n */\n get: function get() {\n var e_3, _a, e_4, _b;\n\n var size = 0;\n\n try {\n for (var _c = __values$o(this.groups), _d = _c.next(); !_d.done; _d = _c.next()) {\n var group = _d.value;\n\n try {\n for (var group_2 = (e_4 = void 0, __values$o(group)), group_2_1 = group_2.next(); !group_2_1.done; group_2_1 = group_2.next()) {\n var node = group_2_1.value;\n\n if (node) {\n size++;\n }\n }\n } catch (e_4_1) {\n e_4 = {\n error: e_4_1\n };\n } finally {\n try {\n if (group_2_1 && !group_2_1.done && (_b = group_2.return)) _b.call(group_2);\n } finally {\n if (e_4) throw e_4.error;\n }\n }\n }\n } catch (e_3_1) {\n e_3 = {\n error: e_3_1\n };\n } finally {\n try {\n if (_d && !_d.done && (_a = _c.return)) _a.call(_c);\n } finally {\n if (e_3) throw e_3.error;\n }\n }\n\n return size;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Selection.prototype, \"data\", {\n /**\n * Returns the array of data for the selected elements.\n */\n get: function get() {\n var e_5, _a, e_6, _b;\n\n var data = new Array(this.size);\n var i = 0;\n\n try {\n for (var _c = __values$o(this.groups), _d = _c.next(); !_d.done; _d = _c.next()) {\n var group = _d.value;\n\n try {\n for (var group_3 = (e_6 = void 0, __values$o(group)), group_3_1 = group_3.next(); !group_3_1.done; group_3_1 = group_3.next()) {\n var node = group_3_1.value;\n\n if (node) {\n data[i++] = node.datum;\n }\n }\n } catch (e_6_1) {\n e_6 = {\n error: e_6_1\n };\n } finally {\n try {\n if (group_3_1 && !group_3_1.done && (_b = group_3.return)) _b.call(group_3);\n } finally {\n if (e_6) throw e_6.error;\n }\n }\n }\n } catch (e_5_1) {\n e_5 = {\n error: e_5_1\n };\n } finally {\n try {\n if (_d && !_d.done && (_a = _c.return)) _a.call(_c);\n } finally {\n if (e_5) throw e_5.error;\n }\n }\n\n return data;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Selection.prototype, \"enter\", {\n get: function get() {\n return new Selection(this.enterGroups ? this.enterGroups : [[]], this.parents);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Selection.prototype, \"exit\", {\n get: function get() {\n return new Selection(this.exitGroups ? this.exitGroups : [[]], this.parents);\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Binds the given value to each selected node and returns this selection\n * with its {@link GDatum} type changed to the type of the given value.\n * This method doesn't compute a join and doesn't affect indexes or the enter and exit selections.\n * This method can also be used to clear bound data.\n * @param value\n */\n\n Selection.prototype.setDatum = function (value) {\n return this.each(function (node) {\n node.datum = value;\n });\n };\n\n Object.defineProperty(Selection.prototype, \"datum\", {\n /**\n * Returns the bound datum for the first non-null element in the selection.\n * This is generally useful only if you know the selection contains exactly one element.\n */\n get: function get() {\n var node = this.node();\n return node ? node.datum : null;\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Binds the specified array of values with the selected nodes, returning a new selection\n * that represents the _update_ selection: the nodes successfully bound to the values.\n * Also defines the {@link enter} and {@link exit} selections on the returned selection,\n * which can be used to add or remove the nodes to correspond to the new data.\n * The `values` is an array of values of a particular type, or a function that returns\n * an array of values for each group.\n * When values are assigned to the nodes, they are stored in the {@link Node.datum} property.\n * @param values\n * @param key\n */\n\n Selection.prototype.setData = function (values, key) {\n if (typeof values !== 'function') {\n var data_1 = values;\n\n values = function values() {\n return data_1;\n };\n }\n\n var groups = this.groups;\n var parents = this.parents;\n var numGroups = groups.length;\n var updateGroups = new Array(numGroups);\n var enterGroups = new Array(numGroups);\n var exitGroups = new Array(numGroups);\n\n for (var j = 0; j < numGroups; j++) {\n var group = groups[j];\n var parent_2 = parents[j];\n\n if (!parent_2) {\n throw new Error(\"Group #\" + j + \" has no parent: \" + group);\n }\n\n var groupSize = group.length;\n var data = values(parent_2, parent_2.datum, j, parents);\n var dataSize = data.length;\n var enterGroup = enterGroups[j] = new Array(dataSize);\n var updateGroup = updateGroups[j] = new Array(dataSize);\n var exitGroup = exitGroups[j] = new Array(groupSize);\n\n if (key) {\n this.bindKey(parent_2, group, enterGroup, updateGroup, exitGroup, data, key);\n } else {\n this.bindIndex(parent_2, group, enterGroup, updateGroup, exitGroup, data);\n } // Now connect the enter nodes to their following update node, such that\n // appendChild can insert the materialized enter node before this node,\n // rather than at the end of the parent node.\n\n\n for (var i0 = 0, i1 = 0; i0 < dataSize; i0++) {\n var previous = enterGroup[i0];\n\n if (previous) {\n if (i0 >= i1) {\n i1 = i0 + 1;\n }\n\n var next = updateGroup[i1];\n\n while (!next && i1 < dataSize) {\n i1++;\n next = updateGroup[i1];\n }\n\n previous.next = next || null;\n }\n }\n }\n\n var result = new Selection(updateGroups, parents);\n result.enterGroups = enterGroups;\n result.exitGroups = exitGroups;\n return result;\n };\n\n Selection.prototype.bindIndex = function (parent, group, enter, update, exit, data) {\n var groupSize = group.length;\n var dataSize = data.length;\n var i = 0;\n\n for (; i < dataSize; i++) {\n var node = group[i];\n\n if (node) {\n node.datum = data[i];\n update[i] = node;\n } else {\n // more datums than group nodes\n enter[i] = new EnterNode$1(parent, data[i]);\n }\n } // more group nodes than datums\n\n\n for (; i < groupSize; i++) {\n var node = group[i];\n\n if (node) {\n exit[i] = node;\n }\n }\n };\n\n Selection.prototype.bindKey = function (parent, group, enter, update, exit, data, key) {\n var groupSize = group.length;\n var dataSize = data.length;\n var keyValues = new Array(groupSize);\n var nodeByKeyValue = {}; // Compute the key for each node.\n // If multiple nodes have the same key, the duplicates are added to exit.\n\n for (var i = 0; i < groupSize; i++) {\n var node = group[i];\n\n if (node) {\n var keyValue = keyValues[i] = Selection.keyPrefix + key(node, node.datum, i, group);\n\n if (keyValue in nodeByKeyValue) {\n exit[i] = node;\n } else {\n nodeByKeyValue[keyValue] = node;\n }\n }\n } // Compute the key for each datum.\n // If there is a node associated with this key, join and add it to update.\n // If there is not (or the key is a duplicate), add it to enter.\n\n\n for (var i = 0; i < dataSize; i++) {\n var keyValue = Selection.keyPrefix + key(parent, data[i], i, data);\n var node = nodeByKeyValue[keyValue];\n\n if (node) {\n update[i] = node;\n node.datum = data[i];\n nodeByKeyValue[keyValue] = undefined;\n } else {\n enter[i] = new EnterNode$1(parent, data[i]);\n }\n } // Add any remaining nodes that were not bound to data to exit.\n\n\n for (var i = 0; i < groupSize; i++) {\n var node = group[i];\n\n if (node && nodeByKeyValue[keyValues[i]] === node) {\n exit[i] = node;\n }\n }\n };\n\n Selection.keyPrefix = '$'; // Protect against keys like '__proto__'.\n\n return Selection;\n}();\n\nvar __extends$2G = undefined && undefined.__extends || function () {\n var _extendStatics50 = function extendStatics(d, b) {\n _extendStatics50 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics50(d, b);\n };\n\n return function (d, b) {\n _extendStatics50(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar Line$1 =\n/** @class */\nfunction (_super) {\n __extends$2G(Line, _super);\n\n function Line() {\n var _this = _super.call(this) || this;\n\n _this.x1 = 0;\n _this.y1 = 0;\n _this.x2 = 0;\n _this.y2 = 0;\n\n _this.restoreOwnStyles();\n\n return _this;\n }\n\n Line.prototype.computeBBox = function () {\n return new BBox$1(this.x1, this.y1, this.x2 - this.x1, this.y2 - this.y1);\n };\n\n Line.prototype.isPointInPath = function (_x, _y) {\n return false;\n };\n\n Line.prototype.render = function (renderCtx) {\n var _a;\n\n var ctx = renderCtx.ctx,\n forceRender = renderCtx.forceRender,\n stats = renderCtx.stats;\n\n if (this.dirty === RedrawType.NONE && !forceRender) {\n if (stats) stats.nodesSkipped += this.nodeCount.count;\n return;\n }\n\n this.computeTransformMatrix();\n this.matrix.toContext(ctx);\n var x1 = this.x1;\n var y1 = this.y1;\n var x2 = this.x2;\n var y2 = this.y2; // Align to the pixel grid if the line is strictly vertical\n // or horizontal (but not both, i.e. a dot).\n\n if (x1 === x2) {\n var x = Math.round(x1) + Math.floor(this.strokeWidth) % 2 / 2;\n x1 = x;\n x2 = x;\n } else if (y1 === y2) {\n var y = Math.round(y1) + Math.floor(this.strokeWidth) % 2 / 2;\n y1 = y;\n y2 = y;\n }\n\n ctx.beginPath();\n ctx.moveTo(x1, y1);\n ctx.lineTo(x2, y2);\n this.fillStroke(ctx);\n (_a = this.fillShadow) === null || _a === void 0 ? void 0 : _a.markClean();\n\n _super.prototype.render.call(this, renderCtx);\n };\n\n Line.className = 'Line';\n Line.defaultStyles = chainObjects$1(Shape$1.defaultStyles, {\n fill: undefined,\n strokeWidth: 1\n });\n\n __decorate$1j([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], Line.prototype, \"x1\", void 0);\n\n __decorate$1j([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], Line.prototype, \"y1\", void 0);\n\n __decorate$1j([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], Line.prototype, \"x2\", void 0);\n\n __decorate$1j([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], Line.prototype, \"y2\", void 0);\n\n return Line;\n}(Shape$1);\n\nvar __extends$2F = undefined && undefined.__extends || function () {\n var _extendStatics51 = function extendStatics(d, b) {\n _extendStatics51 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics51(d, b);\n };\n\n return function (d, b) {\n _extendStatics51(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nfunction ScenePathChangeDetection(opts) {\n var _a = opts || {},\n _b = _a.redraw,\n redraw = _b === void 0 ? RedrawType.MAJOR : _b,\n changeCb = _a.changeCb,\n convertor = _a.convertor;\n\n return SceneChangeDetection({\n redraw: redraw,\n type: 'path',\n convertor: convertor,\n changeCb: changeCb\n });\n}\n\nvar Path$1 =\n/** @class */\nfunction (_super) {\n __extends$2F(Path, _super);\n\n function Path(renderOverride) {\n var _this = _super.call(this) || this;\n\n _this.renderOverride = renderOverride;\n /**\n * Declare a path to retain for later rendering and hit testing\n * using custom Path2D class. Think of it as a TypeScript version\n * of the native Path2D (with some differences) that works in all browsers.\n */\n\n _this.path = new Path2D$1();\n /**\n * The path only has to be updated when certain attributes change.\n * For example, if transform attributes (such as `translationX`)\n * are changed, we don't have to update the path. The `dirtyPath` flag\n * is how we keep track if the path has to be updated or not.\n */\n\n _this._dirtyPath = true;\n return _this;\n }\n\n Object.defineProperty(Path.prototype, \"dirtyPath\", {\n get: function get() {\n return this._dirtyPath;\n },\n set: function set(value) {\n if (this._dirtyPath !== value) {\n this._dirtyPath = value;\n\n if (value) {\n this.markDirty(this, RedrawType.MAJOR);\n }\n }\n },\n enumerable: true,\n configurable: true\n });\n\n Path.prototype.checkPathDirty = function () {\n var _a, _b;\n\n if (this._dirtyPath) {\n return;\n }\n\n this.dirtyPath = this.path.isDirty() || (_b = (_a = this.fillShadow) === null || _a === void 0 ? void 0 : _a.isDirty(), _b !== null && _b !== void 0 ? _b : false);\n };\n\n Path.prototype.isPointInPath = function (x, y) {\n var point = this.transformPoint(x, y);\n return this.path.closedPath && this.path.isPointInPath(point.x, point.y);\n };\n\n Path.prototype.isDirtyPath = function () {// Override point for more expensive dirty checks.\n };\n\n Path.prototype.updatePath = function () {// Override point for subclasses.\n };\n\n Path.prototype.render = function (renderCtx) {\n var _a, _b;\n\n var ctx = renderCtx.ctx,\n forceRender = renderCtx.forceRender,\n stats = renderCtx.stats;\n\n if (this.dirty === RedrawType.NONE && !forceRender) {\n if (stats) stats.nodesSkipped += this.nodeCount.count;\n return;\n }\n\n this.computeTransformMatrix();\n this.matrix.toContext(ctx);\n\n if (this.dirtyPath || this.isDirtyPath()) {\n this.updatePath();\n this.dirtyPath = false;\n }\n\n if (this.clipPath) {\n ctx.save();\n\n if (this.clipMode === 'normal') {\n // Bound the shape rendered to the clipping path.\n this.clipPath.draw(ctx);\n ctx.clip();\n }\n\n if (this.renderOverride) {\n this.renderOverride(ctx);\n } else {\n this.path.draw(ctx);\n this.fillStroke(ctx);\n }\n\n if (this.clipMode === 'punch-out') {\n // Bound the shape rendered to outside the clipping path.\n this.clipPath.draw(ctx);\n ctx.clip(); // Fallback values, but practically these should never be used.\n\n var _c = (_a = this.computeBBox(), _a !== null && _a !== void 0 ? _a : {}),\n _d = _c.x,\n x = _d === void 0 ? -10000 : _d,\n _e = _c.y,\n y = _e === void 0 ? -10000 : _e,\n _f = _c.width,\n width = _f === void 0 ? 20000 : _f,\n _g = _c.height,\n height = _g === void 0 ? 20000 : _g;\n\n ctx.clearRect(x, y, width, height);\n }\n\n ctx.restore();\n } else if (this.renderOverride) {\n this.renderOverride(ctx);\n } else {\n this.path.draw(ctx);\n this.fillStroke(ctx);\n }\n\n (_b = this.fillShadow) === null || _b === void 0 ? void 0 : _b.markClean();\n\n _super.prototype.render.call(this, renderCtx);\n };\n\n Path.className = 'Path';\n\n __decorate$1i([ScenePathChangeDetection()], Path.prototype, \"clipPath\", void 0);\n\n __decorate$1i([ScenePathChangeDetection()], Path.prototype, \"clipMode\", void 0);\n\n return Path;\n}(Shape$1);\n\nvar twoPi = Math.PI * 2;\n/**\n * Normalize the given angle to be in the [0, 2π) interval.\n * @param radians Angle in radians.\n */\n\nfunction normalizeAngle360(radians) {\n radians %= twoPi;\n radians += twoPi;\n radians %= twoPi;\n return radians;\n}\n\nfunction normalizeAngle360Inclusive(radians) {\n radians %= twoPi;\n radians += twoPi;\n\n if (radians !== twoPi) {\n radians %= twoPi;\n }\n\n return radians;\n}\n/**\n * Normalize the given angle to be in the [-π, π) interval.\n * @param radians Angle in radians.\n */\n\n\nfunction normalizeAngle180(radians) {\n radians %= twoPi;\n\n if (radians < -Math.PI) {\n radians += twoPi;\n } else if (radians >= Math.PI) {\n radians -= twoPi;\n }\n\n return radians;\n}\n\nfunction toRadians(degrees) {\n return degrees / 180 * Math.PI;\n}\n\nfunction isEqual(a, b, epsilon) {\n if (epsilon === void 0) {\n epsilon = 1e-10;\n }\n\n return Math.abs(a - b) < epsilon;\n}\n/**\n * `Number.toFixed(n)` always formats a number so that it has `n` digits after the decimal point.\n * For example, `Number(0.00003427).toFixed(2)` returns `0.00`.\n * That's not very helpful, because all the meaningful information is lost.\n * In this case we would want the formatted value to have at least two significant digits: `0.000034`,\n * not two fraction digits.\n * @param value\n * @param fractionOrSignificantDigits\n */\n\n\nfunction toFixed(value, fractionOrSignificantDigits) {\n if (fractionOrSignificantDigits === void 0) {\n fractionOrSignificantDigits = 2;\n }\n\n var power = Math.floor(Math.log(Math.abs(value)) / Math.LN10);\n\n if (power >= 0 || !isFinite(power)) {\n return value.toFixed(fractionOrSignificantDigits); // fraction digits\n }\n\n return value.toFixed(Math.abs(power) - 1 + fractionOrSignificantDigits); // significant digits\n}\n/**\n * Returns the mathematically correct n modulus of m. For context, the JS % operator is remainder\n * NOT modulus, which is why this is needed.\n */\n\n\nfunction mod(n, m) {\n // https://stackoverflow.com/a/13163436\n var remain = n % m;\n return remain >= 0 ? remain : remain + m;\n}\n\nvar __extends$2E = undefined && undefined.__extends || function () {\n var _extendStatics52 = function extendStatics(d, b) {\n _extendStatics52 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics52(d, b);\n };\n\n return function (d, b) {\n _extendStatics52(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ArcType;\n\n(function (ArcType) {\n ArcType[ArcType[\"Open\"] = 0] = \"Open\";\n ArcType[ArcType[\"Chord\"] = 1] = \"Chord\";\n ArcType[ArcType[\"Round\"] = 2] = \"Round\";\n})(ArcType || (ArcType = {}));\n/**\n * Elliptical arc node.\n */\n\n\nvar Arc =\n/** @class */\nfunction (_super) {\n __extends$2E(Arc, _super);\n\n function Arc() {\n var _this = _super.call(this) || this;\n\n _this.centerX = 0;\n _this.centerY = 0;\n _this.radiusX = 10;\n _this.radiusY = 10;\n _this.startAngle = 0;\n _this.endAngle = Math.PI * 2;\n _this.counterClockwise = false;\n /**\n * The type of arc to render:\n * - {@link ArcType.Open} - end points of the arc segment are not connected (default)\n * - {@link ArcType.Chord} - end points of the arc segment are connected by a line segment\n * - {@link ArcType.Round} - each of the end points of the arc segment are connected\n * to the center of the arc\n * Arcs with {@link ArcType.Open} do not support hit testing, even if they have their\n * {@link Shape.fillStyle} set, because they are not closed paths. Hit testing support\n * would require using two paths - one for rendering, another for hit testing - and there\n * doesn't seem to be a compelling reason to do that, when one can just use {@link ArcType.Chord}\n * to create a closed path.\n */\n\n _this.type = ArcType.Open;\n\n _this.restoreOwnStyles();\n\n return _this;\n }\n\n Object.defineProperty(Arc.prototype, \"fullPie\", {\n get: function get() {\n return isEqual(normalizeAngle360(this.startAngle), normalizeAngle360(this.endAngle));\n },\n enumerable: true,\n configurable: true\n });\n\n Arc.prototype.updatePath = function () {\n var path = this.path;\n path.clear(); // No need to recreate the Path, can simply clear the existing one.\n // This is much faster than the native Path2D implementation even though this `cubicArc`\n // method is pure TypeScript and actually produces the definition of an elliptical arc,\n // where you can specify two radii and rotation, while Path2D's `arc` method simply produces\n // a circular arc. Maybe it's due to the experimental nature of the Path2D class,\n // maybe it's because we have to create a new instance of it on each render, who knows...\n\n path.cubicArc(this.centerX, this.centerY, this.radiusX, this.radiusY, 0, this.startAngle, this.endAngle, this.counterClockwise ? 1 : 0);\n\n if (this.type === ArcType.Chord) {\n path.closePath();\n } else if (this.type === ArcType.Round && !this.fullPie) {\n path.lineTo(this.centerX, this.centerY);\n path.closePath();\n }\n };\n\n Arc.prototype.computeBBox = function () {\n // Only works with full arcs (circles) and untransformed ellipses.\n return new BBox$1(this.centerX - this.radiusX, this.centerY - this.radiusY, this.radiusX * 2, this.radiusY * 2);\n };\n\n Arc.prototype.isPointInPath = function (x, y) {\n var point = this.transformPoint(x, y);\n var bbox = this.computeBBox();\n return this.type !== ArcType.Open && bbox.containsPoint(point.x, point.y) && this.path.isPointInPath(point.x, point.y);\n };\n\n Arc.className = 'Arc';\n Arc.defaultStyles = chainObjects$1(Shape$1.defaultStyles, {\n lineWidth: 1,\n fillStyle: null\n });\n\n __decorate$1h([ScenePathChangeDetection()], Arc.prototype, \"centerX\", void 0);\n\n __decorate$1h([ScenePathChangeDetection()], Arc.prototype, \"centerY\", void 0);\n\n __decorate$1h([ScenePathChangeDetection()], Arc.prototype, \"radiusX\", void 0);\n\n __decorate$1h([ScenePathChangeDetection()], Arc.prototype, \"radiusY\", void 0);\n\n __decorate$1h([ScenePathChangeDetection()], Arc.prototype, \"startAngle\", void 0);\n\n __decorate$1h([ScenePathChangeDetection()], Arc.prototype, \"endAngle\", void 0);\n\n __decorate$1h([ScenePathChangeDetection()], Arc.prototype, \"counterClockwise\", void 0);\n\n __decorate$1h([ScenePathChangeDetection()], Arc.prototype, \"type\", void 0);\n\n return Arc;\n}(Path$1);\n\nvar doOnceFlags$1 = {};\n/**\n * If the key was passed before, then doesn't execute the func\n * @param {Function} func\n * @param {string} key\n */\n\nfunction doOnce$1(func, key) {\n if (doOnceFlags$1[key]) {\n return;\n }\n\n func();\n doOnceFlags$1[key] = true;\n}\n\nfunction Validate(predicate) {\n return function (target, key) {\n // `target` is either a constructor (static member) or prototype (instance member)\n var privateKey = \"__\" + key;\n\n if (!target[key]) {\n var setter = function setter(v) {\n var _a, _b;\n\n if (predicate(v)) {\n this[privateKey] = v;\n return;\n }\n\n console.warn(\"AG Charts - Property [\" + (_b = (_a = target.constructor) === null || _a === void 0 ? void 0 : _a.name, _b !== null && _b !== void 0 ? _b : target.className) + \".\" + key + \"] cannot be set to [\" + v + \"], ignoring.\");\n };\n\n var getter = function getter() {\n return this[privateKey];\n };\n\n Object.defineProperty(target, key, {\n set: setter,\n get: getter,\n enumerable: true,\n configurable: false\n });\n }\n };\n}\n\nvar BOOLEAN = function BOOLEAN(v) {\n return v === true || v === false;\n};\n\nvar OPT_BOOLEAN = function OPT_BOOLEAN(v) {\n return v === undefined || v === true || v === false;\n};\n\nvar STRING = function STRING(v) {\n return typeof v === 'string';\n};\n\nvar OPT_STRING = function OPT_STRING(v) {\n return v === undefined || typeof v === 'string';\n};\n\nfunction OPT_NUMBER(min, max) {\n return function (v) {\n return v === undefined || typeof v === 'number' && v >= (min !== null && min !== void 0 ? min : -Infinity) && v <= (max !== null && max !== void 0 ? max : Infinity);\n };\n}\n\nfunction NUMBER(min, max) {\n return function (v) {\n return typeof v === 'number' && v >= (min !== null && min !== void 0 ? min : -Infinity) && v <= (max !== null && max !== void 0 ? max : Infinity);\n };\n}\n\nvar FONT_WEIGHTS = ['normal', 'bold', 'bolder', 'lighter', '100', '200', '300', '400', '500', '600', '700', '800', '900'];\n\nvar OPT_FONT_STYLE = function OPT_FONT_STYLE(v) {\n return v === undefined || v === 'normal' || v === 'italic' || v === 'oblique';\n};\n\nvar OPT_FONT_WEIGHT = function OPT_FONT_WEIGHT(v) {\n return v === undefined || FONT_WEIGHTS.includes(v);\n};\n\nfunction Deprecated(message, opts) {\n var logged = false;\n var _a = (opts !== null && opts !== void 0 ? opts : {}).default,\n def = _a === void 0 ? undefined : _a;\n return function (target, key) {\n // `target` is either a constructor (static member) or prototype (instance member)\n var privateKey = \"__\" + key;\n\n if (!target[key]) {\n var setter = function setter(v) {\n var _a, _b;\n\n if (v !== def && !logged) {\n var msg = [\"AG Charts - Property [\" + (_b = (_a = target.constructor) === null || _a === void 0 ? void 0 : _a.name, _b !== null && _b !== void 0 ? _b : target.className) + \".\" + key + \"] is deprecated.\", message].filter(function (v) {\n return v != null;\n }).join(' ');\n console.warn(msg);\n logged = true;\n }\n\n this[privateKey] = v;\n };\n\n var getter = function getter() {\n return this[privateKey];\n };\n\n Object.defineProperty(target, key, {\n set: setter,\n get: getter,\n enumerable: true,\n configurable: false\n });\n }\n };\n}\n/**\n * Constants to declare the expected nominal zIndex for all types of layer in chart rendering.\n */\n\n\nvar Layers;\n\n(function (Layers) {\n Layers[Layers[\"AXIS_GRIDLINES_ZINDEX\"] = 0] = \"AXIS_GRIDLINES_ZINDEX\";\n Layers[Layers[\"SERIES_CROSSLINE_RANGE_ZINDEX\"] = 10] = \"SERIES_CROSSLINE_RANGE_ZINDEX\";\n Layers[Layers[\"AXIS_ZINDEX\"] = 20] = \"AXIS_ZINDEX\";\n Layers[Layers[\"SERIES_LAYER_ZINDEX\"] = 500] = \"SERIES_LAYER_ZINDEX\";\n Layers[Layers[\"SERIES_LABEL_ZINDEX\"] = 1000] = \"SERIES_LABEL_ZINDEX\";\n Layers[Layers[\"SERIES_CROSSLINE_LINE_ZINDEX\"] = 2500] = \"SERIES_CROSSLINE_LINE_ZINDEX\";\n Layers[Layers[\"LEGEND_ZINDEX\"] = 3000] = \"LEGEND_ZINDEX\";\n})(Layers || (Layers = {}));\n\nvar __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$H = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$m = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$H(arguments[i]));\n }\n\n return ar;\n};\n\nvar __values$n = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar Tags;\n\n(function (Tags) {\n Tags[Tags[\"Tick\"] = 0] = \"Tick\";\n Tags[Tags[\"GridLine\"] = 1] = \"GridLine\";\n})(Tags || (Tags = {}));\n\nvar AxisTick =\n/** @class */\nfunction () {\n function AxisTick() {\n /**\n * The line width to be used by axis ticks.\n */\n this.width = 1;\n /**\n * The line length to be used by axis ticks.\n */\n\n this.size = 6;\n /**\n * The color of the axis ticks.\n * Use `undefined` rather than `rgba(0, 0, 0, 0)` to make the ticks invisible.\n */\n\n this.color = 'rgba(195, 195, 195, 1)';\n /**\n * A hint of how many ticks to use (the exact number of ticks might differ),\n * a `TimeInterval` or a `CountableTimeInterval`.\n * For example:\n *\n * axis.tick.count = 5;\n * axis.tick.count = year;\n * axis.tick.count = month.every(6);\n */\n\n this.count = undefined;\n }\n\n __decorate$1g([Validate(NUMBER(0))], AxisTick.prototype, \"width\", void 0);\n\n __decorate$1g([Validate(NUMBER(0))], AxisTick.prototype, \"size\", void 0);\n\n __decorate$1g([Validate(OPT_STRING)], AxisTick.prototype, \"color\", void 0);\n\n return AxisTick;\n}();\n\nvar AxisLabel =\n/** @class */\nfunction () {\n function AxisLabel() {\n this.fontStyle = undefined;\n this.fontWeight = undefined;\n this.fontSize = 12;\n this.fontFamily = 'Verdana, sans-serif';\n /**\n * The padding between the labels and the ticks.\n */\n\n this.padding = 5;\n /**\n * The color of the labels.\n * Use `undefined` rather than `rgba(0, 0, 0, 0)` to make labels invisible.\n */\n\n this.color = 'rgba(87, 87, 87, 1)';\n /**\n * Custom label rotation in degrees.\n * Labels are rendered perpendicular to the axis line by default.\n * Or parallel to the axis line, if the {@link parallel} is set to `true`.\n * The value of this config is used as the angular offset/deflection\n * from the default rotation.\n */\n\n this.rotation = undefined;\n /**\n * If specified and axis labels may collide, they are rotated to reduce collisions. If the\n * `rotation` property is specified, it takes precedence.\n */\n\n this.autoRotate = undefined;\n /**\n * Rotation angle to use when autoRotate is applied.\n */\n\n this.autoRotateAngle = 335;\n /**\n * By default labels and ticks are positioned to the left of the axis line.\n * `true` positions the labels to the right of the axis line.\n * However, if the axis is rotated, it's easier to think in terms\n * of this side or the opposite side, rather than left and right.\n * We use the term `mirror` for conciseness, although it's not\n * true mirroring - for example, when a label is rotated, so that\n * it is inclined at the 45 degree angle, text flowing from north-west\n * to south-east, ending at the tick to the left of the axis line,\n * and then we set this config to `true`, the text will still be flowing\n * from north-west to south-east, _starting_ at the tick to the right\n * of the axis line.\n */\n\n this.mirrored = false;\n /**\n * Labels are rendered perpendicular to the axis line by default.\n * Setting this config to `true` makes labels render parallel to the axis line\n * and center aligns labels' text at the ticks.\n */\n\n this.parallel = false;\n /**\n * In case {@param value} is a number, the {@param fractionDigits} parameter will\n * be provided as well. The `fractionDigits` corresponds to the number of fraction\n * digits used by the tick step. For example, if the tick step is `0.0005`,\n * the `fractionDigits` is 4.\n */\n\n this.formatter = undefined;\n this.onFormatChange = undefined;\n }\n\n Object.defineProperty(AxisLabel.prototype, \"format\", {\n get: function get() {\n return this._format;\n },\n set: function set(value) {\n // See `TimeLocaleObject` docs for the list of supported format directives.\n if (this._format !== value) {\n this._format = value;\n\n if (this.onFormatChange) {\n this.onFormatChange(value);\n }\n }\n },\n enumerable: true,\n configurable: true\n });\n\n __decorate$1g([Validate(OPT_FONT_STYLE)], AxisLabel.prototype, \"fontStyle\", void 0);\n\n __decorate$1g([Validate(OPT_FONT_WEIGHT)], AxisLabel.prototype, \"fontWeight\", void 0);\n\n __decorate$1g([Validate(NUMBER(1))], AxisLabel.prototype, \"fontSize\", void 0);\n\n __decorate$1g([Validate(STRING)], AxisLabel.prototype, \"fontFamily\", void 0);\n\n __decorate$1g([Validate(NUMBER(0))], AxisLabel.prototype, \"padding\", void 0);\n\n __decorate$1g([Validate(STRING)], AxisLabel.prototype, \"color\", void 0);\n\n __decorate$1g([Validate(OPT_NUMBER(-360, 360))], AxisLabel.prototype, \"rotation\", void 0);\n\n __decorate$1g([Validate(OPT_BOOLEAN)], AxisLabel.prototype, \"autoRotate\", void 0);\n\n __decorate$1g([Validate(NUMBER(-360, 360))], AxisLabel.prototype, \"autoRotateAngle\", void 0);\n\n __decorate$1g([Validate(BOOLEAN)], AxisLabel.prototype, \"mirrored\", void 0);\n\n __decorate$1g([Validate(BOOLEAN)], AxisLabel.prototype, \"parallel\", void 0);\n\n __decorate$1g([Validate(STRING)], AxisLabel.prototype, \"_format\", void 0);\n\n return AxisLabel;\n}();\n/**\n * A general purpose linear axis with no notion of orientation.\n * The axis is always rendered vertically, with horizontal labels positioned to the left\n * of the axis line by default. The axis can be {@link rotation | rotated} by an arbitrary angle,\n * so that it can be used as a top, right, bottom, left, radial or any other kind\n * of linear axis.\n * The generic `D` parameter is the type of the domain of the axis' scale.\n * The output range of the axis' scale is always numeric (screen coordinates).\n */\n\n\nvar Axis =\n/** @class */\nfunction () {\n function Axis(scale) {\n this.id = createId$1(this);\n this.axisGroup = new Group$1({\n name: this.id + \"-axis\",\n layer: true,\n zIndex: Layers.AXIS_ZINDEX\n });\n this.crossLineGroup = new Group$1({\n name: this.id + \"-CrossLines\"\n });\n this.lineGroup = this.axisGroup.appendChild(new Group$1({\n name: this.id + \"-Line\"\n }));\n this.tickGroup = this.axisGroup.appendChild(new Group$1({\n name: this.id + \"-Tick\"\n }));\n this.titleGroup = this.axisGroup.appendChild(new Group$1({\n name: this.id + \"-Title\"\n }));\n this.tickGroupSelection = Selection$1.select(this.tickGroup).selectAll();\n this.lineNode = this.lineGroup.appendChild(new Line$1());\n this.gridlineGroup = new Group$1({\n name: this.id + \"-gridline\",\n layer: true,\n zIndex: Layers.AXIS_GRIDLINES_ZINDEX\n });\n this.gridlineGroupSelection = Selection$1.select(this.gridlineGroup).selectAll();\n this._crossLines = [];\n this.line = {\n width: 1,\n color: 'rgba(195, 195, 195, 1)'\n };\n this.tick = new AxisTick();\n this.label = new AxisLabel();\n this.translation = {\n x: 0,\n y: 0\n };\n this.rotation = 0; // axis rotation angle in degrees\n\n this._labelAutoRotated = false;\n /**\n * This will be assigned a value when `this.calculateTickCount` is invoked.\n * If the user has specified a tick count, it will be used, otherwise a tick count will be calculated based on the available range.\n */\n\n this._calculatedTickCount = undefined;\n this.requestedRange = [0, 1];\n this._visibleRange = [0, 1];\n this._title = undefined;\n /**\n * The length of the grid. The grid is only visible in case of a non-zero value.\n * In case {@link radialGrid} is `true`, the value is interpreted as an angle\n * (in degrees).\n */\n\n this._gridLength = 0;\n /**\n * The array of styles to cycle through when rendering grid lines.\n * For example, use two {@link GridStyle} objects for alternating styles.\n * Contains only one {@link GridStyle} object by default, meaning all grid lines\n * have the same style.\n */\n\n this.gridStyle = [{\n stroke: 'rgba(219, 219, 219, 1)',\n lineDash: [4, 2]\n }];\n /**\n * `false` - render grid as lines of {@link gridLength} that extend the ticks\n * on the opposite side of the axis\n * `true` - render grid as concentric circles that go through the ticks\n */\n\n this._radialGrid = false;\n this.fractionDigits = 0;\n this.thickness = 0;\n this.scale = scale;\n this.label.onFormatChange = this.onLabelFormatChange.bind(this);\n }\n\n Object.defineProperty(Axis.prototype, \"scale\", {\n get: function get() {\n return this._scale;\n },\n set: function set(value) {\n var _this = this;\n\n var _a;\n\n this._scale = value;\n this.requestedRange = value.range.slice();\n this.onLabelFormatChange();\n (_a = this.crossLines) === null || _a === void 0 ? void 0 : _a.forEach(function (crossLine) {\n _this.initCrossLine(crossLine);\n });\n },\n enumerable: true,\n configurable: true\n });\n\n Axis.prototype.getTicks = function () {\n var _a;\n\n return _a = this.ticks, _a !== null && _a !== void 0 ? _a : this.scale.ticks(this.calculatedTickCount);\n };\n\n Object.defineProperty(Axis.prototype, \"crossLines\", {\n get: function get() {\n return this._crossLines;\n },\n set: function set(value) {\n var _this = this;\n\n var _a, _b;\n\n (_a = this._crossLines) === null || _a === void 0 ? void 0 : _a.forEach(function (crossLine) {\n return _this.detachCrossLine(crossLine);\n });\n this._crossLines = value;\n (_b = this._crossLines) === null || _b === void 0 ? void 0 : _b.forEach(function (crossLine) {\n _this.attachCrossLine(crossLine);\n\n _this.initCrossLine(crossLine);\n });\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Axis.prototype, \"labelAutoRotated\", {\n get: function get() {\n return this._labelAutoRotated;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Axis.prototype, \"calculatedTickCount\", {\n get: function get() {\n var _a;\n\n return _a = this._calculatedTickCount, _a !== null && _a !== void 0 ? _a : this.tick.count;\n },\n enumerable: true,\n configurable: true\n });\n\n Axis.prototype.attachCrossLine = function (crossLine) {\n this.crossLineGroup.appendChild(crossLine.group);\n };\n\n Axis.prototype.detachCrossLine = function (crossLine) {\n this.crossLineGroup.removeChild(crossLine.group);\n };\n /**\n * Overridden in ChartAxis subclass.\n * Sets an appropriate tick count based on the available range.\n */\n\n\n Axis.prototype.calculateTickCount = function (_availableRange) {// Override point for subclasses.\n };\n /**\n * Meant to be overridden in subclasses to provide extra context the the label formatter.\n * The return value of this function will be passed to the laber.formatter as the `axis` parameter.\n */\n\n\n Axis.prototype.getMeta = function () {// Override point for subclasses.\n };\n\n Axis.prototype.updateRange = function () {\n var _a = this,\n rr = _a.requestedRange,\n vr = _a.visibleRange,\n scale = _a.scale;\n\n var span = (rr[1] - rr[0]) / (vr[1] - vr[0]);\n var shift = span * vr[0];\n var start = rr[0] - shift;\n scale.range = [start, start + span];\n };\n /**\n * Checks if a point or an object is in range.\n * @param x A point (or object's starting point).\n * @param width Object's width.\n * @param tolerance Expands the range on both ends by this amount.\n */\n\n\n Axis.prototype.inRange = function (x, width, tolerance) {\n if (width === void 0) {\n width = 0;\n }\n\n if (tolerance === void 0) {\n tolerance = 0;\n }\n\n return this.inRangeEx(x, width, tolerance) === 0;\n };\n\n Axis.prototype.inRangeEx = function (x, width, tolerance) {\n if (width === void 0) {\n width = 0;\n }\n\n if (tolerance === void 0) {\n tolerance = 0;\n }\n\n var range = this.range; // Account for inverted ranges, for example [500, 100] as well as [100, 500]\n\n var min = Math.min(range[0], range[1]);\n var max = Math.max(range[0], range[1]);\n\n if (x + width < min - tolerance) {\n return -1; // left of range\n }\n\n if (x > max + tolerance) {\n return 1; // right of range\n }\n\n return 0; // in range\n };\n\n Object.defineProperty(Axis.prototype, \"range\", {\n get: function get() {\n return this.requestedRange;\n },\n set: function set(value) {\n this.requestedRange = value.slice();\n this.updateRange();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Axis.prototype, \"visibleRange\", {\n get: function get() {\n return this._visibleRange.slice();\n },\n set: function set(value) {\n if (value && value.length === 2) {\n var _a = __read$H(value, 2),\n min = _a[0],\n max = _a[1];\n\n min = Math.max(0, min);\n max = Math.min(1, max);\n min = Math.min(min, max);\n max = Math.max(min, max);\n this._visibleRange = [min, max];\n this.updateRange();\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Axis.prototype, \"domain\", {\n get: function get() {\n return this.scale.domain.slice();\n },\n set: function set(value) {\n this.scale.domain = value.slice();\n this.onLabelFormatChange(this.label.format);\n },\n enumerable: true,\n configurable: true\n });\n\n Axis.prototype.onLabelFormatChange = function (format) {\n var scale = this.scale;\n\n if (format && scale && scale.tickFormat) {\n try {\n this.labelFormatter = scale.tickFormat({\n ticks: this.getTicks(),\n count: this.calculatedTickCount,\n specifier: format\n });\n } catch (e) {\n this.labelFormatter = undefined;\n doOnce$1(function () {\n return console.warn(\"AG Charts - the axis label format string \" + format + \" is invalid. No formatting will be applied\");\n }, \"invalid axis label format string \" + format);\n }\n } else {\n this.labelFormatter = undefined;\n }\n };\n\n Object.defineProperty(Axis.prototype, \"title\", {\n get: function get() {\n return this._title;\n },\n set: function set(value) {\n var oldTitle = this._title;\n\n if (oldTitle !== value) {\n if (oldTitle) {\n this.titleGroup.removeChild(oldTitle.node);\n }\n\n if (value) {\n value.node.rotation = -Math.PI / 2;\n this.titleGroup.appendChild(value.node);\n }\n\n this._title = value; // position title so that it doesn't briefly get rendered in the top left hand corner of the canvas before update is called.\n\n this.updateTitle({\n ticks: this.ticks || this.scale.ticks(this.calculatedTickCount)\n });\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Axis.prototype, \"gridLength\", {\n get: function get() {\n return this._gridLength;\n },\n set: function set(value) {\n var _this = this;\n\n var _a; // Was visible and now invisible, or was invisible and now visible.\n\n\n if (this._gridLength && !value || !this._gridLength && value) {\n this.gridlineGroupSelection = this.gridlineGroupSelection.remove().setData([]);\n }\n\n this._gridLength = value;\n (_a = this.crossLines) === null || _a === void 0 ? void 0 : _a.forEach(function (crossLine) {\n _this.initCrossLine(crossLine);\n });\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Axis.prototype, \"radialGrid\", {\n get: function get() {\n return this._radialGrid;\n },\n set: function set(value) {\n if (this._radialGrid !== value) {\n this._radialGrid = value;\n this.gridlineGroupSelection = this.gridlineGroupSelection.remove().setData([]);\n }\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Creates/removes/updates the scene graph nodes that constitute the axis.\n */\n\n Axis.prototype.update = function () {\n var _a, _b;\n\n var _c = this,\n axisGroup = _c.axisGroup,\n gridlineGroup = _c.gridlineGroup,\n crossLineGroup = _c.crossLineGroup,\n scale = _c.scale,\n gridLength = _c.gridLength,\n tick = _c.tick,\n label = _c.label,\n requestedRange = _c.requestedRange,\n translation = _c.translation;\n\n var requestedRangeMin = Math.min.apply(Math, __spread$m(requestedRange));\n var requestedRangeMax = Math.max.apply(Math, __spread$m(requestedRange));\n var rotation = toRadians(this.rotation);\n var parallelLabels = label.parallel;\n var translationX = Math.floor(translation.x);\n var translationY = Math.floor(translation.y);\n crossLineGroup.translationX = translationX;\n crossLineGroup.translationY = translationY;\n crossLineGroup.rotation = rotation;\n axisGroup.translationX = translationX;\n axisGroup.translationY = translationY;\n axisGroup.rotation = rotation;\n gridlineGroup.translationX = translationX;\n gridlineGroup.translationY = translationY;\n gridlineGroup.rotation = rotation;\n this.updateLine(); // The side of the axis line to position the labels on.\n // -1 = left (default)\n // 1 = right\n\n var sideFlag = label.mirrored ? 1 : -1; // When labels are parallel to the axis line, the `parallelFlipFlag` is used to\n // flip the labels to avoid upside-down text, when the axis is rotated\n // such that it is in the right hemisphere, i.e. the angle of rotation\n // is in the [0, π] interval.\n // The rotation angle is normalized, so that we have an easier time checking\n // if it's in the said interval. Since the axis is always rendered vertically\n // and then rotated, zero rotation means 12 (not 3) o-clock.\n // -1 = flip\n // 1 = don't flip (default)\n\n var parallelFlipRotation = normalizeAngle360(rotation);\n var regularFlipRotation = normalizeAngle360(rotation - Math.PI / 2);\n var halfBandwidth = (scale.bandwidth || 0) / 2;\n var ticks = this.getTicks();\n var tickGroupSelection = this.updateTicks({\n ticks: ticks\n });\n var labelBboxes = this.updateLabels({\n parallelFlipRotation: parallelFlipRotation,\n regularFlipRotation: regularFlipRotation,\n sideFlag: sideFlag,\n tickLineGroupSelection: tickGroupSelection,\n ticks: ticks\n });\n var gridlineGroupSelection = this.updateGridLines({\n gridLength: gridLength,\n ticks: ticks,\n halfBandwidth: halfBandwidth,\n labelBboxes: labelBboxes,\n sideFlag: sideFlag\n });\n this.tickGroupSelection = tickGroupSelection;\n this.gridlineGroupSelection = gridlineGroupSelection;\n var anyTickVisible = false;\n\n var translationYFn = function translationYFn(_, datum) {\n return Math.round(scale.convert(datum) + halfBandwidth);\n };\n\n var visibleFn = function visibleFn(node) {\n var min = Math.floor(requestedRangeMin);\n var max = Math.ceil(requestedRangeMax);\n var visible = min !== max && node.translationY >= min && node.translationY <= max;\n anyTickVisible = visible || anyTickVisible;\n return visible;\n };\n\n tickGroupSelection.attrFn('translationY', translationYFn).attrFn('visible', visibleFn);\n gridlineGroupSelection.attrFn('translationY', translationYFn).attrFn('visible', visibleFn);\n this.tickGroup.visible = anyTickVisible;\n this.gridlineGroup.visible = anyTickVisible;\n\n if (!anyTickVisible) {\n (_a = this.crossLines) === null || _a === void 0 ? void 0 : _a.forEach(function (crossLine) {\n crossLine.update(anyTickVisible);\n });\n this.updateTitle({\n ticks: ticks\n });\n return;\n }\n\n tickGroupSelection.selectByTag(Tags.Tick).each(function (line, _, index) {\n line.strokeWidth = tick.width;\n line.stroke = tick.color;\n line.visible = labelBboxes.has(index);\n }).attr('x1', sideFlag * tick.size).attr('x2', 0).attr('y1', 0).attr('y2', 0);\n this.updateTitle({\n ticks: ticks\n });\n (_b = this.crossLines) === null || _b === void 0 ? void 0 : _b.forEach(function (crossLine) {\n crossLine.sideFlag = -sideFlag;\n crossLine.direction = rotation === -Math.PI / 2 ? ChartAxisDirection.X : ChartAxisDirection.Y;\n crossLine.label.parallel = crossLine.label.parallel !== undefined ? crossLine.label.parallel : parallelLabels;\n crossLine.parallelFlipRotation = parallelFlipRotation;\n crossLine.regularFlipRotation = regularFlipRotation;\n crossLine.update(anyTickVisible);\n });\n };\n\n Axis.prototype.updateTicks = function (_a) {\n var ticks = _a.ticks;\n var updateAxis = this.tickGroupSelection.setData(ticks);\n updateAxis.exit.remove();\n var enterAxis = updateAxis.enter.append(Group$1); // Line auto-snaps to pixel grid if vertical or horizontal.\n\n enterAxis.append(Line$1).each(function (node) {\n return node.tag = Tags.Tick;\n });\n enterAxis.append(Text$1);\n return updateAxis.merge(enterAxis);\n };\n\n Axis.prototype.updateGridLines = function (_a) {\n var gridLength = _a.gridLength,\n ticks = _a.ticks,\n labelBboxes = _a.labelBboxes,\n halfBandwidth = _a.halfBandwidth,\n sideFlag = _a.sideFlag;\n\n var _b = this,\n gridStyle = _b.gridStyle,\n scale = _b.scale,\n tick = _b.tick;\n\n var updateGridlines = this.gridlineGroupSelection.setData(gridLength ? ticks : []);\n updateGridlines.exit.remove();\n var gridlineGroupSelection = updateGridlines;\n\n if (gridLength) {\n var tagFn = function tagFn(node) {\n return node.tag = Tags.GridLine;\n };\n\n var enterGridline = updateGridlines.enter.append(Group$1);\n\n if (this.radialGrid) {\n enterGridline.append(Arc).each(tagFn);\n } else {\n enterGridline.append(Line$1).each(tagFn);\n }\n\n gridlineGroupSelection = updateGridlines.merge(enterGridline);\n }\n\n if (gridLength && gridStyle.length) {\n var styleCount_1 = gridStyle.length;\n var gridLines = void 0;\n\n if (this.radialGrid) {\n var angularGridLength_1 = normalizeAngle360Inclusive(toRadians(gridLength));\n gridLines = gridlineGroupSelection.selectByTag(Tags.GridLine).each(function (arc, datum, index) {\n var radius = Math.round(scale.convert(datum) + halfBandwidth);\n arc.centerX = 0;\n arc.centerY = scale.range[0] - radius;\n arc.endAngle = angularGridLength_1;\n arc.radiusX = radius;\n arc.radiusY = radius;\n arc.visible = labelBboxes.has(index);\n });\n } else {\n gridLines = gridlineGroupSelection.selectByTag(Tags.GridLine).each(function (line, _, index) {\n line.x1 = 0;\n line.x2 = -sideFlag * gridLength;\n line.y1 = 0;\n line.y2 = 0;\n line.visible = Math.abs(line.parent.translationY - scale.range[0]) > 1 && labelBboxes.has(index);\n });\n }\n\n gridLines.each(function (gridLine, _, index) {\n var style = gridStyle[index % styleCount_1];\n gridLine.stroke = style.stroke;\n gridLine.strokeWidth = tick.width;\n gridLine.lineDash = style.lineDash;\n gridLine.fill = undefined;\n });\n }\n\n return gridlineGroupSelection;\n };\n\n Axis.prototype.updateLabels = function (_a) {\n var _this = this;\n\n var ticks = _a.ticks,\n tickLineGroupSelection = _a.tickLineGroupSelection,\n sideFlag = _a.sideFlag,\n parallelFlipRotation = _a.parallelFlipRotation,\n regularFlipRotation = _a.regularFlipRotation;\n\n var _b = this,\n label = _b.label,\n parallelLabels = _b.label.parallel,\n scale = _b.scale,\n tick = _b.tick,\n requestedRange = _b.requestedRange;\n\n var requestedRangeMin = Math.min.apply(Math, __spread$m(requestedRange));\n var requestedRangeMax = Math.max.apply(Math, __spread$m(requestedRange));\n var labelAutoRotation = 0;\n var labelRotation = label.rotation ? normalizeAngle360(toRadians(label.rotation)) : 0;\n var parallelFlipFlag = !labelRotation && parallelFlipRotation >= 0 && parallelFlipRotation <= Math.PI ? -1 : 1; // Flip if the axis rotation angle is in the top hemisphere.\n\n var regularFlipFlag = !labelRotation && regularFlipRotation >= 0 && regularFlipRotation <= Math.PI ? -1 : 1; // `ticks instanceof NumericTicks` doesn't work here, so we feature detect.\n\n this.fractionDigits = ticks.fractionDigits >= 0 ? ticks.fractionDigits : 0; // Update properties that affect the size of the axis labels and measure the labels\n\n var labelBboxes = new Map();\n var labelCount = 0;\n var halfFirstLabelLength = false;\n var halfLastLabelLength = false;\n var availableRange = requestedRangeMax - requestedRangeMin;\n var labelSelection = tickLineGroupSelection.selectByClass(Text$1).each(function (node, datum, index) {\n node.fontStyle = label.fontStyle;\n node.fontWeight = label.fontWeight;\n node.fontSize = label.fontSize;\n node.fontFamily = label.fontFamily;\n node.fill = label.color;\n node.text = _this.formatTickDatum(datum, index);\n node.visible = node.parent.visible;\n\n if (node.visible !== true) {\n return;\n }\n\n var userHidden = node.text === '' || node.text == undefined;\n labelBboxes.set(index, userHidden ? null : node.computeBBox());\n\n if (userHidden) {\n return;\n }\n\n labelCount++;\n\n if (index === 0 && node.translationY === scale.range[0]) {\n halfFirstLabelLength = true; // first label protrudes axis line\n } else if (index === ticks.length - 1 && node.translationY === scale.range[1]) {\n halfLastLabelLength = true; // last label protrudes axis line\n }\n });\n var labelX = sideFlag * (tick.size + label.padding);\n var step = availableRange / labelCount;\n\n var calculateLabelsLength = function calculateLabelsLength(bboxes, useWidth) {\n var e_1, _a;\n\n var totalLength = 0;\n var rotate = false;\n var lastIdx = bboxes.size - 1;\n var padding = 12;\n\n try {\n for (var _b = __values$n(bboxes.entries()), _c = _b.next(); !_c.done; _c = _b.next()) {\n var _d = __read$H(_c.value, 2),\n i = _d[0],\n bbox = _d[1];\n\n if (bbox == null) {\n continue;\n }\n\n var divideBy = i === 0 && halfFirstLabelLength || i === lastIdx && halfLastLabelLength ? 2 : 1;\n var length_1 = useWidth ? bbox.width / divideBy : bbox.height / divideBy;\n var lengthWithPadding = length_1 <= 0 ? 0 : length_1 + padding;\n totalLength += lengthWithPadding;\n\n if (lengthWithPadding > step) {\n rotate = true;\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n return {\n totalLength: totalLength,\n rotate: rotate\n };\n };\n\n var useWidth = parallelLabels; // When the labels are parallel to the axis line, use the width of the text to calculate the total length of all labels\n\n var _c = calculateLabelsLength(labelBboxes, useWidth),\n totalLabelLength = _c.totalLength,\n rotate = _c.rotate;\n\n this._labelAutoRotated = false;\n\n if (label.rotation === undefined && label.autoRotate === true && rotate) {\n // When no user label rotation angle has been specified and the width of any label exceeds the average tick gap (`rotate` is `true`),\n // automatically rotate the labels\n labelAutoRotation = normalizeAngle360(toRadians(label.autoRotateAngle));\n this._labelAutoRotated = true;\n }\n\n if (labelRotation || labelAutoRotation) {\n // If the label rotation angle results in a non-parallel orientation, use the height of the texts to calculate the total length of all labels\n if (parallelLabels) {\n useWidth = labelRotation === Math.PI || labelAutoRotation === Math.PI ? true : false;\n } else {\n useWidth = labelRotation === Math.PI / 2 || labelRotation === Math.PI + Math.PI / 2 || labelAutoRotation === Math.PI / 2 || labelAutoRotation === Math.PI + Math.PI / 2 ? true : false;\n }\n\n totalLabelLength = calculateLabelsLength(labelBboxes, useWidth).totalLength;\n }\n\n var autoRotation = parallelLabels ? parallelFlipFlag * Math.PI / 2 : regularFlipFlag === -1 ? Math.PI : 0;\n var labelTextBaseline = parallelLabels && !labelRotation ? sideFlag * parallelFlipFlag === -1 ? 'hanging' : 'bottom' : 'middle';\n var alignFlag = labelRotation > 0 && labelRotation <= Math.PI || labelAutoRotation > 0 && labelAutoRotation <= Math.PI ? -1 : 1;\n var labelTextAlign = parallelLabels ? labelRotation || labelAutoRotation ? sideFlag * alignFlag === -1 ? 'end' : 'start' : 'center' : sideFlag * regularFlipFlag === -1 ? 'end' : 'start';\n labelSelection.each(function (label) {\n if (label.text === '' || label.text == undefined) {\n label.visible = false; // hide empty labels\n\n return;\n }\n\n label.textBaseline = labelTextBaseline;\n label.textAlign = labelTextAlign;\n label.x = labelX;\n label.rotationCenterX = labelX;\n label.rotation = autoRotation + labelRotation + labelAutoRotation;\n });\n\n if (totalLabelLength > availableRange) {\n var isContinuous_1 = scale instanceof ContinuousScale$1;\n var averageLabelLength = totalLabelLength / labelCount;\n var labelsToShow = Math.floor(availableRange / averageLabelLength);\n var showEvery_1 = labelsToShow > 2 ? Math.ceil(labelCount / labelsToShow) : labelCount;\n var visibleLabelIndex_1 = 0;\n labelSelection.each(function (label, _, index) {\n if (label.visible !== true) {\n return;\n }\n\n var forceVisible = isContinuous_1 && _this.tick.count === undefined ? index === 0 || index === labelCount - 1 : false; // always show first and last labels for a continuous axis when tick count has not been specified by the user\n\n label.visible = forceVisible || visibleLabelIndex_1 % showEvery_1 === 0 ? true : false;\n visibleLabelIndex_1++;\n\n if (!label.visible) {\n labelBboxes.delete(index);\n }\n });\n }\n\n return labelBboxes;\n };\n\n Axis.prototype.updateLine = function () {\n // Render axis line.\n var _a = this,\n lineNode = _a.lineNode,\n requestedRange = _a.requestedRange;\n\n lineNode.x1 = 0;\n lineNode.x2 = 0;\n lineNode.y1 = requestedRange[0];\n lineNode.y2 = requestedRange[1];\n lineNode.strokeWidth = this.line.width;\n lineNode.stroke = this.line.color;\n lineNode.visible = true;\n };\n\n Axis.prototype.updateTitle = function (_a) {\n var ticks = _a.ticks;\n\n var _b;\n\n var _c = this,\n label = _c.label,\n rotation = _c.rotation,\n title = _c.title,\n lineNode = _c.lineNode,\n requestedRange = _c.requestedRange,\n tickGroup = _c.tickGroup,\n lineGroup = _c.lineGroup;\n\n if (!title) {\n return;\n }\n\n var titleVisible = false;\n\n if (title.enabled && lineNode.visible) {\n titleVisible = true;\n var sideFlag = label.mirrored ? 1 : -1;\n var parallelFlipRotation = normalizeAngle360(rotation);\n var padding = Caption.PADDING;\n var titleNode = title.node;\n var titleRotationFlag = sideFlag === -1 && parallelFlipRotation > Math.PI && parallelFlipRotation < Math.PI * 2 ? -1 : 1;\n titleNode.rotation = titleRotationFlag * sideFlag * Math.PI / 2;\n titleNode.x = Math.floor(titleRotationFlag * sideFlag * (requestedRange[0] + requestedRange[1]) / 2);\n var lineBBox = lineGroup.computeBBox();\n var bboxYDimension = rotation === 0 ? lineBBox.width : lineBBox.height;\n\n if (((_b = ticks) === null || _b === void 0 ? void 0 : _b.length) > 0) {\n var tickBBox = tickGroup.computeBBox();\n var tickWidth = rotation === 0 ? tickBBox.width : tickBBox.height;\n\n if (Math.abs(tickWidth) < Infinity) {\n bboxYDimension += tickWidth;\n }\n }\n\n if (sideFlag === -1) {\n titleNode.y = Math.floor(titleRotationFlag * (-padding - bboxYDimension));\n } else {\n titleNode.y = Math.floor(-padding - bboxYDimension);\n }\n\n titleNode.textBaseline = titleRotationFlag === 1 ? 'bottom' : 'top';\n }\n\n title.node.visible = titleVisible;\n }; // For formatting (nice rounded) tick values.\n\n\n Axis.prototype.formatTickDatum = function (datum, index) {\n var _a = this,\n label = _a.label,\n labelFormatter = _a.labelFormatter,\n fractionDigits = _a.fractionDigits;\n\n var meta = this.getMeta();\n return label.formatter ? label.formatter({\n value: fractionDigits >= 0 ? datum : String(datum),\n index: index,\n fractionDigits: fractionDigits,\n formatter: labelFormatter,\n axis: meta\n }) : labelFormatter ? labelFormatter(datum) : typeof datum === 'number' && fractionDigits >= 0 ? // the `datum` is a floating point number\n datum.toFixed(fractionDigits) : // the`datum` is an integer, a string or an object\n String(datum);\n }; // For formatting arbitrary values between the ticks.\n\n\n Axis.prototype.formatDatum = function (datum) {\n return String(datum);\n };\n\n Axis.prototype.computeBBox = function () {\n return this.axisGroup.computeBBox();\n };\n\n Axis.prototype.initCrossLine = function (crossLine) {\n crossLine.scale = this.scale;\n crossLine.gridLength = this.gridLength;\n };\n\n return Axis;\n}();\n\nvar __extends$2D = undefined && undefined.__extends || function () {\n var _extendStatics53 = function extendStatics(d, b) {\n _extendStatics53 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics53(d, b);\n };\n\n return function (d, b) {\n _extendStatics53(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __read$G = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$l = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$G(arguments[i]));\n }\n\n return ar;\n};\n\nvar ChartAxisDirection;\n\n(function (ChartAxisDirection) {\n ChartAxisDirection[\"X\"] = \"x\";\n ChartAxisDirection[\"Y\"] = \"y\";\n})(ChartAxisDirection || (ChartAxisDirection = {}));\n\nfunction flipChartAxisDirection(direction) {\n if (direction === ChartAxisDirection.X) {\n return ChartAxisDirection.Y;\n } else {\n return ChartAxisDirection.X;\n }\n}\n\nvar ChartAxisPosition;\n\n(function (ChartAxisPosition) {\n ChartAxisPosition[\"Top\"] = \"top\";\n ChartAxisPosition[\"Right\"] = \"right\";\n ChartAxisPosition[\"Bottom\"] = \"bottom\";\n ChartAxisPosition[\"Left\"] = \"left\";\n ChartAxisPosition[\"Angle\"] = \"angle\";\n ChartAxisPosition[\"Radius\"] = \"radius\";\n})(ChartAxisPosition || (ChartAxisPosition = {}));\n\nvar ChartAxis =\n/** @class */\nfunction (_super) {\n __extends$2D(ChartAxis, _super);\n\n function ChartAxis() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.keys = [];\n _this.direction = ChartAxisDirection.Y;\n _this.boundSeries = [];\n _this.includeInvisibleDomains = false;\n _this._position = ChartAxisPosition.Left;\n return _this;\n }\n\n Object.defineProperty(ChartAxis.prototype, \"type\", {\n get: function get() {\n return this.constructor.type || '';\n },\n enumerable: true,\n configurable: true\n });\n\n ChartAxis.prototype.getMeta = function () {\n return {\n id: this.id,\n direction: this.direction,\n boundSeries: this.boundSeries\n };\n };\n\n ChartAxis.prototype.useCalculatedTickCount = function () {\n // We only want to use the new algorithm for number axes. Category axes don't use a\n // calculated or user-supplied tick-count, and time axes need special handling depending on\n // the time-range involved.\n return this.scale instanceof LinearScale$1;\n };\n /**\n * For continuous axes, if tick count has not been specified, set the number of ticks based on the available range\n */\n\n\n ChartAxis.prototype.calculateTickCount = function () {\n if (!this.useCalculatedTickCount()) {\n return;\n }\n\n var _a = this,\n count = _a.tick.count,\n _b = __read$G(_a.range, 2),\n min = _b[0],\n max = _b[1];\n\n if (count !== undefined) {\n this._calculatedTickCount = undefined;\n return;\n }\n\n var availableRange = Math.abs(max - min);\n var optimalTickInteralPx = this.calculateTickIntervalEstimate(); // Approximate number of pixels to allocate for each tick.\n\n var optimalRangePx = 600;\n var minTickIntervalRatio = 0.75;\n var tickIntervalRatio = Math.max(Math.pow(Math.log(availableRange) / Math.log(optimalRangePx), 2), minTickIntervalRatio);\n var tickInterval = optimalTickInteralPx * tickIntervalRatio;\n this._calculatedTickCount = Math.max(2, Math.floor(availableRange / tickInterval));\n };\n\n ChartAxis.prototype.calculateTickIntervalEstimate = function () {\n var _a, _b;\n\n var _c = this,\n domain = _c.domain,\n fontSize = _c.label.fontSize,\n direction = _c.direction;\n\n var padding = fontSize * 1.5;\n\n if (direction === ChartAxisDirection.Y) {\n return fontSize * 2 + padding;\n }\n\n var ticks = ((_b = (_a = this.scale).ticks) === null || _b === void 0 ? void 0 : _b.call(_a, 10)) || [domain[0], domain[domain.length - 1]]; // Dynamic optimal tick interval based upon label scale.\n\n var approxMaxLabelCharacters = Math.max.apply(Math, __spread$l(ticks.map(function (v) {\n return String(v).length;\n })));\n return approxMaxLabelCharacters * fontSize + padding;\n };\n\n Object.defineProperty(ChartAxis.prototype, \"position\", {\n get: function get() {\n return this._position;\n },\n set: function set(value) {\n if (this._position !== value) {\n this._position = value;\n\n switch (value) {\n case ChartAxisPosition.Top:\n this.direction = ChartAxisDirection.X;\n this.rotation = -90;\n this.label.mirrored = true;\n this.label.parallel = true;\n break;\n\n case ChartAxisPosition.Right:\n this.direction = ChartAxisDirection.Y;\n this.rotation = 0;\n this.label.mirrored = true;\n this.label.parallel = false;\n break;\n\n case ChartAxisPosition.Bottom:\n this.direction = ChartAxisDirection.X;\n this.rotation = -90;\n this.label.mirrored = false;\n this.label.parallel = true;\n break;\n\n case ChartAxisPosition.Left:\n this.direction = ChartAxisDirection.Y;\n this.rotation = 0;\n this.label.mirrored = false;\n this.label.parallel = false;\n break;\n }\n }\n },\n enumerable: true,\n configurable: true\n });\n\n ChartAxis.prototype.calculateDomain = function (_a) {\n var _b;\n\n var primaryTickCount = _a.primaryTickCount;\n\n var _c = this,\n direction = _c.direction,\n boundSeries = _c.boundSeries,\n includeInvisibleDomains = _c.includeInvisibleDomains;\n\n if (boundSeries.length === 0) {\n console.warn('AG Charts - chart series not initialised; check series and axes configuration.');\n }\n\n if (this.linkedTo) {\n this.domain = this.linkedTo.domain;\n } else {\n var domains_1 = [];\n boundSeries.filter(function (s) {\n return includeInvisibleDomains || s.visible;\n }).forEach(function (series) {\n domains_1.push(series.getDomain(direction));\n });\n\n var domain = (_b = new Array()).concat.apply(_b, __spread$l(domains_1));\n\n var isYAxis = this.direction === 'y';\n primaryTickCount = this.updateDomain(domain, isYAxis, primaryTickCount);\n }\n\n return {\n primaryTickCount: primaryTickCount\n };\n };\n\n ChartAxis.prototype.updateDomain = function (domain, _isYAxis, primaryTickCount) {\n this.domain = domain;\n return primaryTickCount;\n };\n\n return ChartAxis;\n}(Axis);\n\nvar __extends$2C = undefined && undefined.__extends || function () {\n var _extendStatics54 = function extendStatics(d, b) {\n _extendStatics54 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics54(d, b);\n };\n\n return function (d, b) {\n _extendStatics54(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __read$F = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n}; // Instead of clamping the values outside of domain to the range,\n// return NaNs to indicate invalid input.\n\n\nfunction clamper$1(domain) {\n var _a;\n\n var a = domain[0];\n var b = domain[domain.length - 1];\n\n if (a > b) {\n _a = __read$F([b, a], 2), a = _a[0], b = _a[1];\n }\n\n return function (x) {\n return x >= a && x <= b ? x : NaN;\n };\n}\n\nvar NumberAxis =\n/** @class */\nfunction (_super) {\n __extends$2C(NumberAxis, _super);\n\n function NumberAxis() {\n var _this = _super.call(this, new LinearScale$1()) || this;\n\n _this._nice = true;\n _this._min = NaN;\n _this._max = NaN;\n _this.scale.clamper = clamper$1;\n return _this;\n }\n\n Object.defineProperty(NumberAxis.prototype, \"nice\", {\n get: function get() {\n return this._nice;\n },\n set: function set(value) {\n if (this._nice !== value) {\n this._nice = value;\n\n if (value && this.scale.nice) {\n this.scale.nice(typeof this.calculatedTickCount === 'number' ? this.calculatedTickCount : undefined);\n }\n }\n },\n enumerable: true,\n configurable: true\n });\n\n NumberAxis.prototype.setDomain = function (domain, primaryTickCount) {\n var _a = this,\n scale = _a.scale,\n min = _a.min,\n max = _a.max;\n\n if (domain.length > 2) {\n domain = extent$1(domain, isContinuous$1, Number) || [];\n }\n\n domain = [isNaN(min) ? domain[0] : min, isNaN(max) ? domain[1] : max];\n\n if (primaryTickCount) {\n // when `primaryTickCount` is supplied the current axis is a secondary axis which needs to be aligned to\n // the primary by constraining the tick count to the primary axis tick count\n var _b = __read$F(calculateNiceSecondaryAxis(domain, primaryTickCount), 2),\n d = _b[0],\n ticks = _b[1];\n\n scale.domain = d;\n this.ticks = ticks;\n return;\n } else {\n scale.domain = domain;\n this.onLabelFormatChange(this.label.format); // not sure why this is required?\n\n this.scale.clamp = true;\n\n if (this.nice && this.scale.nice) {\n this.scale.nice(typeof this.calculatedTickCount === 'number' ? this.calculatedTickCount : undefined);\n }\n }\n };\n\n Object.defineProperty(NumberAxis.prototype, \"domain\", {\n get: function get() {\n return this.scale.domain;\n },\n set: function set(domain) {\n this.setDomain(domain);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NumberAxis.prototype, \"min\", {\n get: function get() {\n return this._min;\n },\n set: function set(value) {\n if (this._min !== value) {\n this._min = value;\n\n if (!isNaN(value)) {\n this.scale.domain = [value, this.scale.domain[1]];\n }\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NumberAxis.prototype, \"max\", {\n get: function get() {\n return this._max;\n },\n set: function set(value) {\n if (this._max !== value) {\n this._max = value;\n\n if (!isNaN(value)) {\n this.scale.domain = [this.scale.domain[0], value];\n }\n }\n },\n enumerable: true,\n configurable: true\n });\n\n NumberAxis.prototype.formatDatum = function (datum) {\n if (typeof datum === 'number') {\n return datum.toFixed(2);\n } else {\n doOnce$1(function () {\n return console.warn('AG Charts - Data contains Date objects which are being plotted against a number axis, please only use a number axis for numbers.');\n }, \"number axis config used with Date objects\");\n return String(datum);\n }\n };\n\n NumberAxis.prototype.updateDomain = function (domain, isYAxis, primaryTickCount) {\n if (isYAxis) {\n // the `primaryTickCount` is used to align the secondary axis tick count with the primary\n this.setDomain(domain, primaryTickCount);\n return primaryTickCount !== null && primaryTickCount !== void 0 ? primaryTickCount : this.scale.ticks(this.calculatedTickCount).length;\n }\n\n return _super.prototype.updateDomain.call(this, domain, isYAxis, primaryTickCount);\n };\n\n NumberAxis.className = 'NumberAxis';\n NumberAxis.type = 'number';\n return NumberAxis;\n}(ChartAxis);\n\nvar __read$E = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n/**\n * Maps a discrete domain to a continuous numeric range.\n * See https://github.com/d3/d3-scale#band-scales for more info.\n */\n\n\nvar BandScale$1 =\n/** @class */\nfunction () {\n function BandScale() {\n this.type = 'band';\n /**\n * Maps datum to its index in the {@link domain} array.\n * Used to check for duplicate datums (not allowed).\n */\n\n this.index = new Map();\n /**\n * The output range values for datum at each index.\n */\n\n this.ordinalRange = [];\n /**\n * Contains unique datums only. Since `{}` is used in place of `Map`\n * for IE11 compatibility, the datums are converted `toString` before\n * the uniqueness check.\n */\n\n this._domain = [];\n this._range = [0, 1];\n this._bandwidth = 1;\n this._rawBandwidth = 1;\n /**\n * The ratio of the range that is reserved for space between bands.\n */\n\n this._paddingInner = 0;\n /**\n * The ratio of the range that is reserved for space before the first\n * and after the last band.\n */\n\n this._paddingOuter = 0;\n this._round = false;\n /**\n * How the leftover range is distributed.\n * `0.5` - equal distribution of space before the first and after the last band,\n * with bands effectively centered within the range.\n */\n\n this._align = 0.5;\n }\n\n Object.defineProperty(BandScale.prototype, \"domain\", {\n get: function get() {\n return this._domain;\n },\n set: function set(values) {\n var domain = this._domain;\n domain.length = 0;\n this.index = new Map();\n var index = this.index; // In case one wants to have duplicate domain values, for example, two 'Italy' categories,\n // one should use objects rather than strings for domain values like so:\n // { toString: () => 'Italy' }\n // { toString: () => 'Italy' }\n\n values.forEach(function (value) {\n if (index.get(value) === undefined) {\n index.set(value, domain.push(value) - 1);\n }\n });\n this.rescale();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BandScale.prototype, \"range\", {\n get: function get() {\n return this._range;\n },\n set: function set(values) {\n this._range[0] = values[0];\n this._range[1] = values[1];\n this.rescale();\n },\n enumerable: true,\n configurable: true\n });\n\n BandScale.prototype.ticks = function () {\n return this._domain;\n };\n\n BandScale.prototype.convert = function (d) {\n var i = this.index.get(d);\n\n if (i === undefined) {\n return NaN;\n }\n\n var r = this.ordinalRange[i];\n\n if (r === undefined) {\n return NaN;\n }\n\n return r;\n };\n\n Object.defineProperty(BandScale.prototype, \"bandwidth\", {\n get: function get() {\n return this._bandwidth;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BandScale.prototype, \"rawBandwidth\", {\n get: function get() {\n return this._rawBandwidth;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BandScale.prototype, \"padding\", {\n get: function get() {\n return this._paddingInner;\n },\n set: function set(value) {\n value = Math.max(0, Math.min(1, value));\n this._paddingInner = value;\n this._paddingOuter = value;\n this.rescale();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BandScale.prototype, \"paddingInner\", {\n get: function get() {\n return this._paddingInner;\n },\n set: function set(value) {\n this._paddingInner = Math.max(0, Math.min(1, value)); // [0, 1]\n\n this.rescale();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BandScale.prototype, \"paddingOuter\", {\n get: function get() {\n return this._paddingOuter;\n },\n set: function set(value) {\n this._paddingOuter = Math.max(0, Math.min(1, value)); // [0, 1]\n\n this.rescale();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BandScale.prototype, \"round\", {\n get: function get() {\n return this._round;\n },\n set: function set(value) {\n this._round = value;\n this.rescale();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BandScale.prototype, \"align\", {\n get: function get() {\n return this._align;\n },\n set: function set(value) {\n this._align = Math.max(0, Math.min(1, value)); // [0, 1]\n\n this.rescale();\n },\n enumerable: true,\n configurable: true\n });\n\n BandScale.prototype.rescale = function () {\n var _a;\n\n var n = this._domain.length;\n\n if (!n) {\n return;\n }\n\n var _b = __read$E(this._range, 2),\n a = _b[0],\n b = _b[1];\n\n var reversed = b < a;\n\n if (reversed) {\n _a = __read$E([b, a], 2), a = _a[0], b = _a[1];\n }\n\n var rawStep = (b - a) / Math.max(1, n - this._paddingInner + this._paddingOuter * 2);\n var step = rawStep;\n\n if (this._round) {\n step = Math.floor(step);\n }\n\n a += (b - a - step * (n - this._paddingInner)) * this._align;\n this._bandwidth = step * (1 - this._paddingInner);\n this._rawBandwidth = rawStep * (1 - this._paddingInner);\n\n if (this._round) {\n a = Math.round(a);\n this._bandwidth = Math.round(this._bandwidth);\n }\n\n var values = [];\n\n for (var i = 0; i < n; i++) {\n values.push(a + step * i);\n }\n\n if (reversed) {\n values.reverse();\n }\n\n this.ordinalRange = values;\n };\n\n return BandScale;\n}();\n\nvar __extends$2B = undefined && undefined.__extends || function () {\n var _extendStatics55 = function extendStatics(d, b) {\n _extendStatics55 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics55(d, b);\n };\n\n return function (d, b) {\n _extendStatics55(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __read$D = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$k = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$D(arguments[i]));\n }\n\n return ar;\n};\n\nvar CategoryAxis =\n/** @class */\nfunction (_super) {\n __extends$2B(CategoryAxis, _super);\n\n function CategoryAxis() {\n var _this = _super.call(this, new BandScale$1()) || this;\n\n _this._paddingOverrideEnabled = false;\n _this.includeInvisibleDomains = true;\n return _this;\n }\n\n Object.defineProperty(CategoryAxis.prototype, \"paddingInner\", {\n get: function get() {\n this._paddingOverrideEnabled = true;\n return this.scale.paddingInner;\n },\n set: function set(value) {\n this._paddingOverrideEnabled = true;\n this.scale.paddingInner = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(CategoryAxis.prototype, \"paddingOuter\", {\n get: function get() {\n return this.scale.paddingOuter;\n },\n set: function set(value) {\n this.scale.paddingOuter = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(CategoryAxis.prototype, \"domain\", {\n get: function get() {\n return this.scale.domain.slice();\n },\n set: function set(values) {\n // Prevent duplicate categories.\n var valuesSet = new Set(values);\n this.scale.domain = new (Array.bind.apply(Array, __spread$k([void 0], valuesSet.values())))();\n },\n enumerable: true,\n configurable: true\n });\n\n CategoryAxis.prototype.calculateDomain = function (_a) {\n var primaryTickCount = _a.primaryTickCount;\n\n if (!this._paddingOverrideEnabled) {\n var boundSeries = this.boundSeries;\n\n if (boundSeries.some(function (s) {\n return ['bar', 'column'].includes(s.type);\n })) {\n this.scale.paddingInner = 0.2;\n this.scale.paddingOuter = 0.3;\n } else {\n this.scale.paddingInner = 1;\n this.scale.paddingOuter = 0;\n }\n }\n\n return _super.prototype.calculateDomain.call(this, {\n primaryTickCount: primaryTickCount\n });\n };\n\n CategoryAxis.className = 'CategoryAxis';\n CategoryAxis.type = 'category';\n return CategoryAxis;\n}(ChartAxis);\n/**\n * The tree layout is calculated in abstract x/y coordinates, where the root is at (0, 0)\n * and the tree grows downward from the root.\n */\n\n\nvar TreeNode =\n/** @class */\nfunction () {\n function TreeNode(label, parent, number) {\n if (label === void 0) {\n label = '';\n }\n\n if (number === void 0) {\n number = 0;\n }\n\n this.x = 0;\n this.y = 0;\n this.subtreeLeft = NaN;\n this.subtreeRight = NaN;\n this.screenX = 0;\n this.screenY = 0;\n this.children = [];\n this.leafCount = 0;\n this.prelim = 0;\n this.mod = 0;\n this.ancestor = this;\n this.change = 0;\n this.shift = 0;\n this.label = label; // screenX and screenY are meant to be recomputed from (layout) x and y\n // when the tree is resized (without performing another layout)\n\n this.parent = parent;\n this.depth = parent ? parent.depth + 1 : 0;\n this.number = number;\n }\n\n TreeNode.prototype.getLeftSibling = function () {\n return this.number > 0 && this.parent ? this.parent.children[this.number - 1] : undefined;\n };\n\n TreeNode.prototype.getLeftmostSibling = function () {\n return this.number > 0 && this.parent ? this.parent.children[0] : undefined;\n }; // traverse the left contour of a subtree, return the successor of v on this contour\n\n\n TreeNode.prototype.nextLeft = function () {\n return this.children ? this.children[0] : this.thread;\n }; // traverse the right contour of a subtree, return the successor of v on this contour\n\n\n TreeNode.prototype.nextRight = function () {\n return this.children ? this.children[this.children.length - 1] : this.thread;\n };\n\n TreeNode.prototype.getSiblings = function () {\n var _this = this;\n\n return this.parent ? this.parent.children.filter(function (_, i) {\n return i !== _this.number;\n }) : [];\n };\n\n return TreeNode;\n}();\n/**\n * Converts an array of ticks, where each tick has an array of labels, to a label tree.\n * If `pad` is `true`, will ensure that every branch matches the depth of the tree by\n * creating empty labels.\n */\n\n\nfunction ticksToTree(ticks, pad) {\n if (pad === void 0) {\n pad = true;\n }\n\n var root = new TreeNode();\n var depth = 0;\n\n if (pad) {\n ticks.forEach(function (tick) {\n return depth = Math.max(depth, tick.labels.length);\n });\n }\n\n ticks.forEach(function (tick) {\n if (pad) {\n while (tick.labels.length < depth) {\n tick.labels.unshift('');\n }\n }\n\n insertTick(root, tick);\n });\n return root;\n}\n\nfunction insertTick(root, tick) {\n var pathParts = tick.labels.slice().reverse(); // path elements from root to leaf label\n\n var lastPartIndex = pathParts.length - 1;\n pathParts.forEach(function (pathPart, partIndex) {\n var children = root.children;\n var existingNode = find(children, function (child) {\n return child.label === pathPart;\n });\n var isNotLeaf = partIndex !== lastPartIndex;\n\n if (existingNode && isNotLeaf) {\n // the isNotLeaf check is to allow duplicate leafs\n root = existingNode;\n } else {\n var node = new TreeNode(pathPart, root);\n node.number = children.length;\n children.push(node);\n\n if (isNotLeaf) {\n root = node;\n }\n }\n });\n} // Shift the subtree.\n\n\nfunction moveSubtree(wm, wp, shift) {\n var subtrees = wp.number - wm.number;\n var ratio = shift / subtrees;\n wp.change -= ratio;\n wp.shift += shift;\n wm.change += ratio;\n wp.prelim += shift;\n wp.mod += shift;\n}\n\nfunction ancestor(vim, v, defaultAncestor) {\n return v.getSiblings().indexOf(vim.ancestor) >= 0 ? vim.ancestor : defaultAncestor;\n} // Spaces out the children.\n\n\nfunction executeShifts(v) {\n var children = v.children;\n\n if (children) {\n var shift = 0;\n var change = 0;\n\n for (var i = children.length - 1; i >= 0; i--) {\n var w = children[i];\n w.prelim += shift;\n w.mod += shift;\n change += w.change;\n shift += w.shift + change;\n }\n }\n} // Moves current subtree with v as the root if some nodes are conflicting in space.\n\n\nfunction apportion(v, defaultAncestor, distance) {\n var w = v.getLeftSibling();\n\n if (w) {\n var vop = v;\n var vip = v;\n var vim = w;\n var vom = vip.getLeftmostSibling();\n var sip = vip.mod;\n var sop = vop.mod;\n var sim = vim.mod;\n var som = vom.mod;\n\n while (vim.nextRight() && vip.nextLeft()) {\n vim = vim.nextRight();\n vip = vip.nextLeft();\n vom = vom.nextLeft();\n vop = vop.nextRight();\n vop.ancestor = v;\n var shift = vim.prelim + sim - (vip.prelim + sip) + distance;\n\n if (shift > 0) {\n moveSubtree(ancestor(vim, v, defaultAncestor), v, shift);\n sip += shift;\n sop += shift;\n }\n\n sim += vim.mod;\n sip += vip.mod;\n som += vom.mod;\n sop += vop.mod;\n }\n\n if (vim.nextRight() && !vop.nextRight()) {\n vop.thread = vim.nextRight();\n vop.mod += sim - sop;\n } else {\n if (vip.nextLeft() && !vom.nextLeft()) {\n vom.thread = vip.nextLeft();\n vom.mod += sip - som;\n }\n\n defaultAncestor = v;\n }\n }\n\n return defaultAncestor;\n} // Compute the preliminary x-coordinate of node and its children (recursively).\n\n\nfunction firstWalk(node, distance) {\n var children = node.children;\n\n if (children.length) {\n var defaultAncestor_1 = children[0];\n children.forEach(function (child) {\n firstWalk(child, distance);\n defaultAncestor_1 = apportion(child, defaultAncestor_1, distance);\n });\n executeShifts(node);\n var midpoint = (children[0].prelim + children[children.length - 1].prelim) / 2;\n var leftSibling = node.getLeftSibling();\n\n if (leftSibling) {\n node.prelim = leftSibling.prelim + distance;\n node.mod = node.prelim - midpoint;\n } else {\n node.prelim = midpoint;\n }\n } else {\n var leftSibling = node.getLeftSibling();\n node.prelim = leftSibling ? leftSibling.prelim + distance : 0;\n }\n}\n\nvar Dimensions =\n/** @class */\nfunction () {\n function Dimensions() {\n this.top = Infinity;\n this.right = -Infinity;\n this.bottom = -Infinity;\n this.left = Infinity;\n }\n\n Dimensions.prototype.update = function (node, xy) {\n var _a = xy(node),\n x = _a.x,\n y = _a.y;\n\n if (x > this.right) {\n this.right = x;\n }\n\n if (x < this.left) {\n this.left = x;\n }\n\n if (y > this.bottom) {\n this.bottom = y;\n }\n\n if (y < this.top) {\n this.top = y;\n }\n };\n\n return Dimensions;\n}();\n\nfunction secondWalk(v, m, layout) {\n v.x = v.prelim + m;\n v.y = v.depth;\n layout.update(v);\n v.children.forEach(function (w) {\n return secondWalk(w, m + v.mod, layout);\n });\n} // After the second walk the parent nodes are positioned at the center of their immediate children.\n// If we want the parent nodes to be positioned at the center of the subtree for which they are roots,\n// we need a third walk to adjust the positions.\n\n\nfunction thirdWalk(v) {\n var children = v.children;\n var leafCount = 0;\n children.forEach(function (w) {\n thirdWalk(w);\n\n if (w.children.length) {\n leafCount += w.leafCount;\n } else {\n leafCount++;\n }\n });\n v.leafCount = leafCount;\n\n if (children.length) {\n v.subtreeLeft = children[0].subtreeLeft;\n v.subtreeRight = children[v.children.length - 1].subtreeRight;\n v.x = (v.subtreeLeft + v.subtreeRight) / 2;\n } else {\n v.subtreeLeft = v.x;\n v.subtreeRight = v.x;\n }\n}\n\nfunction treeLayout(root) {\n var layout = new TreeLayout();\n firstWalk(root, 1);\n secondWalk(root, -root.prelim, layout);\n thirdWalk(root);\n return layout;\n}\n\nvar TreeLayout =\n/** @class */\nfunction () {\n function TreeLayout() {\n this.dimensions = new Dimensions();\n this.leafCount = 0;\n this.nodes = []; // One might want to process leaf nodes separately from the rest of the tree.\n // For example, position labels corresponding to leafs vertically, rather than horizontally.\n\n this.leafNodes = [];\n this.nonLeafNodes = [];\n this.depth = 0;\n }\n\n TreeLayout.prototype.update = function (node) {\n this.dimensions.update(node, function (node) {\n return {\n x: node.x,\n y: node.y\n };\n });\n\n if (!node.children.length) {\n this.leafCount++;\n this.leafNodes.push(node);\n } else {\n this.nonLeafNodes.push(node);\n }\n\n if (node.depth > this.depth) {\n this.depth = node.depth;\n }\n\n this.nodes.push(node);\n };\n\n TreeLayout.prototype.resize = function (width, height, shiftX, shiftY, flipX) {\n if (shiftX === void 0) {\n shiftX = 0;\n }\n\n if (shiftY === void 0) {\n shiftY = 0;\n }\n\n if (flipX === void 0) {\n flipX = false;\n }\n\n var xSteps = this.leafCount - 1;\n var ySteps = this.depth;\n var dimensions = this.dimensions;\n var scalingX = 1;\n var scalingY = 1;\n\n if (width > 0 && xSteps) {\n var existingSpacingX = (dimensions.right - dimensions.left) / xSteps;\n var desiredSpacingX = width / xSteps;\n scalingX = desiredSpacingX / existingSpacingX;\n\n if (flipX) {\n scalingX = -scalingX;\n }\n }\n\n if (height > 0 && ySteps) {\n var existingSpacingY = (dimensions.bottom - dimensions.top) / ySteps;\n var desiredSpacingY = height / ySteps;\n scalingY = desiredSpacingY / existingSpacingY;\n }\n\n var screenDimensions = new Dimensions();\n this.nodes.forEach(function (node) {\n node.screenX = node.x * scalingX;\n node.screenY = node.y * scalingY;\n screenDimensions.update(node, function (node) {\n return {\n x: node.screenX,\n y: node.screenY\n };\n });\n }); // Normalize so that root top and leftmost leaf left start at zero.\n\n var offsetX = -screenDimensions.left;\n var offsetY = -screenDimensions.top;\n this.nodes.forEach(function (node) {\n node.screenX += offsetX + shiftX;\n node.screenY += offsetY + shiftY;\n });\n };\n\n return TreeLayout;\n}();\n\nvar __extends$2A = undefined && undefined.__extends || function () {\n var _extendStatics56 = function extendStatics(d, b) {\n _extendStatics56 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics56(d, b);\n };\n\n return function (d, b) {\n _extendStatics56(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __read$C = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$j = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$C(arguments[i]));\n }\n\n return ar;\n};\n\nvar GroupedCategoryAxisLabel =\n/** @class */\nfunction (_super) {\n __extends$2A(GroupedCategoryAxisLabel, _super);\n\n function GroupedCategoryAxisLabel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.grid = false;\n return _this;\n }\n\n return GroupedCategoryAxisLabel;\n}(AxisLabel);\n\nvar GroupedCategoryAxis =\n/** @class */\nfunction (_super) {\n __extends$2A(GroupedCategoryAxis, _super);\n\n function GroupedCategoryAxis() {\n var _this = _super.call(this, new BandScale$1()) || this; // Label scale (labels are positioned between ticks, tick count = label count + 1).\n // We don't call is `labelScale` for consistency with other axes.\n\n\n _this.tickScale = new BandScale$1();\n _this.translation = {\n x: 0,\n y: 0\n };\n _this.line = {\n width: 1,\n color: 'rgba(195, 195, 195, 1)'\n }; // readonly tick = new AxisTick();\n\n _this.label = new GroupedCategoryAxisLabel();\n /**\n * The color of the labels.\n * Use `undefined` rather than `rgba(0, 0, 0, 0)` to make labels invisible.\n */\n\n _this.labelColor = 'rgba(87, 87, 87, 1)';\n _this.includeInvisibleDomains = true;\n var _a = _this,\n axisGroup = _a.axisGroup,\n gridlineGroup = _a.gridlineGroup,\n tickScale = _a.tickScale,\n scale = _a.scale;\n scale.paddingOuter = 0.1;\n scale.paddingInner = scale.paddingOuter * 2;\n _this.requestedRange = scale.range.slice();\n _this.scale = scale;\n tickScale.paddingInner = 1;\n tickScale.paddingOuter = 0;\n _this.gridLineSelection = Selection$1.select(gridlineGroup).selectAll();\n _this.axisLineSelection = Selection$1.select(axisGroup).selectAll();\n _this.separatorSelection = Selection$1.select(axisGroup).selectAll();\n _this.labelSelection = Selection$1.select(axisGroup).selectAll();\n return _this;\n }\n\n Object.defineProperty(GroupedCategoryAxis.prototype, \"domain\", {\n get: function get() {\n return this.scale.domain;\n },\n set: function set(domainValues) {\n // Prevent duplicate categories.\n var values = domainValues.filter(function (s, i, arr) {\n return arr.indexOf(s) === i;\n });\n this.scale.domain = values;\n var tickTree = ticksToTree(values);\n this.tickTreeLayout = treeLayout(tickTree);\n var domain = values.slice();\n domain.push('');\n this.tickScale.domain = domain;\n this.resizeTickTree();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(GroupedCategoryAxis.prototype, \"range\", {\n get: function get() {\n return this.requestedRange.slice();\n },\n set: function set(value) {\n this.requestedRange = value.slice();\n this.updateRange();\n },\n enumerable: true,\n configurable: true\n });\n\n GroupedCategoryAxis.prototype.updateRange = function () {\n var _a = this,\n rr = _a.requestedRange,\n vr = _a.visibleRange,\n scale = _a.scale;\n\n var span = (rr[1] - rr[0]) / (vr[1] - vr[0]);\n var shift = span * vr[0];\n var start = rr[0] - shift;\n this.tickScale.range = scale.range = [start, start + span];\n this.resizeTickTree();\n };\n\n GroupedCategoryAxis.prototype.resizeTickTree = function () {\n var s = this.scale;\n var range = s.domain.length ? [s.convert(s.domain[0]), s.convert(s.domain[s.domain.length - 1])] : s.range;\n var layout = this.tickTreeLayout;\n var lineHeight = this.lineHeight;\n\n if (layout) {\n layout.resize(Math.abs(range[1] - range[0]), layout.depth * lineHeight, (Math.min(range[0], range[1]) || 0) + (s.bandwidth || 0) / 2, -layout.depth * lineHeight, range[1] - range[0] < 0);\n }\n };\n\n Object.defineProperty(GroupedCategoryAxis.prototype, \"lineHeight\", {\n get: function get() {\n return this.label.fontSize * 1.5;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(GroupedCategoryAxis.prototype, \"gridLength\", {\n get: function get() {\n return this._gridLength;\n },\n\n /**\n * The length of the grid. The grid is only visible in case of a non-zero value.\n */\n set: function set(value) {\n // Was visible and now invisible, or was invisible and now visible.\n if (this._gridLength && !value || !this._gridLength && value) {\n this.gridLineSelection = this.gridLineSelection.remove().setData([]);\n this.labelSelection = this.labelSelection.remove().setData([]);\n }\n\n this._gridLength = value;\n },\n enumerable: true,\n configurable: true\n });\n\n GroupedCategoryAxis.prototype.calculateDomain = function (_a) {\n var _b;\n\n var primaryTickCount = _a.primaryTickCount;\n\n var _c = this,\n direction = _c.direction,\n boundSeries = _c.boundSeries;\n\n var domains = [];\n var isNumericX = undefined;\n boundSeries.filter(function (s) {\n return s.visible;\n }).forEach(function (series) {\n if (direction === ChartAxisDirection.X) {\n if (isNumericX === undefined) {\n // always add first X domain\n var domain_1 = series.getDomain(direction);\n domains.push(domain_1);\n isNumericX = typeof domain_1[0] === 'number';\n } else if (isNumericX) {\n // only add further X domains if the axis is numeric\n domains.push(series.getDomain(direction));\n }\n } else {\n domains.push(series.getDomain(direction));\n }\n });\n\n var domain = (_b = new Array()).concat.apply(_b, __spread$j(domains));\n\n this.domain = extent$1(domain, isContinuous$1) || domain;\n return {\n primaryTickCount: primaryTickCount\n };\n };\n /**\n * Creates/removes/updates the scene graph nodes that constitute the axis.\n * Supposed to be called _manually_ after changing _any_ of the axis properties.\n * This allows to bulk set axis properties before updating the nodes.\n * The node changes made by this method are rendered on the next animation frame.\n * We could schedule this method call automatically on the next animation frame\n * when any of the axis properties change (the way we do when properties of scene graph's\n * nodes change), but this will mean that we first wait for the next animation\n * frame to make changes to the nodes of the axis, then wait for another animation\n * frame to render those changes. It's nice to have everything update automatically,\n * but this extra level of async indirection will not just introduce an unwanted delay,\n * it will also make it harder to reason about the program.\n */\n\n\n GroupedCategoryAxis.prototype.update = function () {\n var _this = this;\n\n var _a = this,\n axisGroup = _a.axisGroup,\n gridlineGroup = _a.gridlineGroup,\n scale = _a.scale,\n label = _a.label,\n tickScale = _a.tickScale,\n requestedRange = _a.requestedRange;\n\n var rangeStart = scale.range[0];\n var rangeEnd = scale.range[1];\n var rangeLength = Math.abs(rangeEnd - rangeStart);\n var bandwidth = rangeLength / scale.domain.length || 0;\n var parallelLabels = label.parallel;\n var rotation = toRadians(this.rotation);\n var isHorizontal = Math.abs(Math.cos(rotation)) < 1e-8;\n var labelRotation = this.label.rotation ? normalizeAngle360(toRadians(this.label.rotation)) : 0;\n axisGroup.translationX = this.translation.x;\n axisGroup.translationY = this.translation.y;\n axisGroup.rotation = rotation;\n gridlineGroup.translationX = this.translation.x;\n gridlineGroup.translationY = this.translation.y;\n gridlineGroup.rotation = rotation;\n var title = this.title; // The Text `node` of the Caption is not used to render the title of the grouped category axis.\n // The phantom root of the tree layout is used instead.\n\n if (title) {\n title.node.visible = false;\n }\n\n var lineHeight = this.lineHeight; // Render ticks and labels.\n\n var tickTreeLayout = this.tickTreeLayout;\n var labels = scale.ticks();\n var treeLabels = tickTreeLayout ? tickTreeLayout.nodes : [];\n var isLabelTree = tickTreeLayout ? tickTreeLayout.depth > 1 : false;\n var ticks = tickScale.ticks(); // The side of the axis line to position the labels on.\n // -1 = left (default)\n // 1 = right\n\n var sideFlag = label.mirrored ? 1 : -1; // When labels are parallel to the axis line, the `parallelFlipFlag` is used to\n // flip the labels to avoid upside-down text, when the axis is rotated\n // such that it is in the right hemisphere, i.e. the angle of rotation\n // is in the [0, π] interval.\n // The rotation angle is normalized, so that we have an easier time checking\n // if it's in the said interval. Since the axis is always rendered vertically\n // and then rotated, zero rotation means 12 (not 3) o-clock.\n // -1 = flip\n // 1 = don't flip (default)\n\n var parallelFlipRotation = normalizeAngle360(rotation);\n var parallelFlipFlag = !labelRotation && parallelFlipRotation >= 0 && parallelFlipRotation <= Math.PI ? -1 : 1;\n var regularFlipRotation = normalizeAngle360(rotation - Math.PI / 2); // Flip if the axis rotation angle is in the top hemisphere.\n\n var regularFlipFlag = !labelRotation && regularFlipRotation >= 0 && regularFlipRotation <= Math.PI ? -1 : 1;\n var updateGridLines = this.gridLineSelection.setData(this.gridLength ? ticks : []);\n updateGridLines.exit.remove();\n var enterGridLines = updateGridLines.enter.append(Line$1);\n var gridLineSelection = updateGridLines.merge(enterGridLines);\n var updateLabels = this.labelSelection.setData(treeLabels);\n updateLabels.exit.remove();\n var enterLabels = updateLabels.enter.append(Text$1);\n var labelSelection = updateLabels.merge(enterLabels);\n var labelFormatter = label.formatter;\n var labelBBoxes = new Map();\n var maxLeafLabelWidth = 0;\n labelSelection.each(function (node, datum, index) {\n node.fontStyle = label.fontStyle;\n node.fontWeight = label.fontWeight;\n node.fontSize = label.fontSize;\n node.fontFamily = label.fontFamily;\n node.fill = label.color;\n node.textBaseline = parallelFlipFlag === -1 ? 'bottom' : 'hanging';\n node.textAlign = 'center';\n node.translationX = datum.screenY - label.fontSize * 0.25;\n node.translationY = datum.screenX;\n\n if (index === 0) {\n // use the phantom root as the axis title\n if (title && title.enabled && labels.length > 0) {\n node.visible = true;\n node.text = title.text;\n node.fontSize = title.fontSize;\n node.fontStyle = title.fontStyle;\n node.fontWeight = title.fontWeight;\n node.fontFamily = title.fontFamily;\n node.textBaseline = 'hanging';\n } else {\n node.visible = false;\n }\n } else {\n node.text = labelFormatter ? labelFormatter({\n value: String(datum.label),\n index: index\n }) : String(datum.label);\n node.visible = datum.screenX >= requestedRange[0] && datum.screenX <= requestedRange[1];\n }\n\n var bbox = node.computeBBox();\n labelBBoxes.set(node.id, bbox);\n\n if (bbox.width > maxLeafLabelWidth) {\n maxLeafLabelWidth = bbox.width;\n }\n });\n var labelX = sideFlag * label.padding;\n var autoRotation = parallelLabels ? parallelFlipFlag * Math.PI / 2 : regularFlipFlag === -1 ? Math.PI : 0;\n var labelGrid = this.label.grid;\n var separatorData = [];\n labelSelection.each(function (label, datum, index) {\n label.x = labelX;\n label.rotationCenterX = labelX;\n\n if (!datum.children.length) {\n label.rotation = labelRotation;\n label.textAlign = 'end';\n label.textBaseline = 'middle';\n var bbox = labelBBoxes.get(label.id);\n\n if (bbox && bbox.height > bandwidth) {\n label.visible = false;\n }\n } else {\n label.translationX -= maxLeafLabelWidth - lineHeight + _this.label.padding;\n var availableRange = datum.leafCount * bandwidth;\n var bbox = labelBBoxes.get(label.id);\n\n if (bbox && bbox.width > availableRange) {\n label.visible = false;\n } else if (isHorizontal) {\n label.rotation = autoRotation;\n } else {\n label.rotation = -Math.PI / 2;\n }\n } // Calculate positions of label separators for all nodes except the root.\n // Each separator is placed to the top of the current label.\n\n\n if (datum.parent && isLabelTree) {\n var y = !datum.children.length ? datum.screenX - bandwidth / 2 : datum.screenX - datum.leafCount * bandwidth / 2;\n\n if (!datum.children.length) {\n if (datum.number !== datum.children.length - 1 || labelGrid) {\n separatorData.push({\n y: y,\n x1: 0,\n x2: -maxLeafLabelWidth - _this.label.padding * 2,\n toString: function toString() {\n return String(index);\n }\n });\n }\n } else {\n var x = -maxLeafLabelWidth - _this.label.padding * 2 + datum.screenY;\n separatorData.push({\n y: y,\n x1: x + lineHeight,\n x2: x,\n toString: function toString() {\n return String(index);\n }\n });\n }\n }\n }); // Calculate the position of the long separator on the far bottom of the axis.\n\n var minX = 0;\n separatorData.forEach(function (d) {\n return minX = Math.min(minX, d.x2);\n });\n separatorData.push({\n y: Math.max(rangeStart, rangeEnd),\n x1: 0,\n x2: minX,\n toString: function toString() {\n return String(separatorData.length);\n }\n });\n var updateSeparators = this.separatorSelection.setData(separatorData);\n updateSeparators.exit.remove();\n var enterSeparators = updateSeparators.enter.append(Line$1);\n var separatorSelection = updateSeparators.merge(enterSeparators);\n this.separatorSelection = separatorSelection;\n var epsilon = 0.0000001;\n separatorSelection.each(function (line, datum) {\n line.x1 = datum.x1;\n line.x2 = datum.x2;\n line.y1 = datum.y;\n line.y2 = datum.y;\n line.visible = datum.y >= requestedRange[0] - epsilon && datum.y <= requestedRange[1] + epsilon;\n line.stroke = _this.tick.color;\n line.fill = undefined;\n line.strokeWidth = 1;\n });\n this.gridLineSelection = gridLineSelection;\n this.labelSelection = labelSelection; // Render axis lines.\n\n var lineCount = tickTreeLayout ? tickTreeLayout.depth + 1 : 1;\n var lines = [];\n\n for (var i = 0; i < lineCount; i++) {\n lines.push(i);\n }\n\n var updateAxisLines = this.axisLineSelection.setData(lines);\n updateAxisLines.exit.remove();\n var enterAxisLines = updateAxisLines.enter.append(Line$1);\n var axisLineSelection = updateAxisLines.merge(enterAxisLines);\n this.axisLineSelection = axisLineSelection;\n axisLineSelection.each(function (line, _, index) {\n var x = index > 0 ? -maxLeafLabelWidth - _this.label.padding * 2 - (index - 1) * lineHeight : 0;\n line.x1 = x;\n line.x2 = x;\n line.y1 = requestedRange[0];\n line.y2 = requestedRange[1];\n line.strokeWidth = _this.line.width;\n line.stroke = _this.line.color;\n line.visible = labels.length > 0 && (index === 0 || labelGrid && isLabelTree);\n });\n\n if (this.gridLength) {\n var styles_1 = this.gridStyle;\n var styleCount_1 = styles_1.length;\n gridLineSelection.each(function (line, datum, index) {\n var y = Math.round(tickScale.convert(datum));\n line.x1 = 0;\n line.x2 = -sideFlag * _this.gridLength;\n line.y1 = y;\n line.y2 = y;\n line.visible = y >= requestedRange[0] && y <= requestedRange[1] && Math.abs(line.parent.translationY - rangeStart) > 1;\n var style = styles_1[index % styleCount_1];\n line.stroke = style.stroke;\n line.strokeWidth = _this.tick.width;\n line.lineDash = style.lineDash;\n line.fill = undefined;\n });\n }\n };\n\n GroupedCategoryAxis.className = 'GroupedCategoryAxis';\n GroupedCategoryAxis.type = 'groupedCategory';\n return GroupedCategoryAxis;\n}(ChartAxis);\n\nvar __extends$2z = undefined && undefined.__extends || function () {\n var _extendStatics57 = function extendStatics(d, b) {\n _extendStatics57 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics57(d, b);\n };\n\n return function (d, b) {\n _extendStatics57(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar t0$1 = new Date();\nvar t1$1 = new Date();\n/**\n * The interval methods don't mutate Date parameters.\n */\n\nvar TimeInterval$1 =\n/** @class */\nfunction () {\n function TimeInterval(floor, offset) {\n this._floor = floor;\n this._offset = offset;\n }\n /**\n * Returns a new date representing the latest interval boundary date before or equal to date.\n * For example, `day.floor(date)` typically returns 12:00 AM local time on the given date.\n * @param date\n */\n\n\n TimeInterval.prototype.floor = function (date) {\n date = new Date(+date);\n\n this._floor(date);\n\n return date;\n };\n /**\n * Returns a new date representing the earliest interval boundary date after or equal to date.\n * @param date\n */\n\n\n TimeInterval.prototype.ceil = function (date) {\n date = new Date(+date - 1);\n\n this._floor(date);\n\n this._offset(date, 1);\n\n this._floor(date);\n\n return date;\n };\n /**\n * Returns a new date representing the closest interval boundary date to date.\n * @param date\n */\n\n\n TimeInterval.prototype.round = function (date) {\n var d0 = this.floor(date);\n var d1 = this.ceil(date);\n var ms = +date;\n return ms - d0.getTime() < d1.getTime() - ms ? d0 : d1;\n };\n /**\n * Returns a new date equal to date plus step intervals.\n * @param date\n * @param step\n */\n\n\n TimeInterval.prototype.offset = function (date, step) {\n if (step === void 0) {\n step = 1;\n }\n\n date = new Date(+date);\n\n this._offset(date, Math.floor(step));\n\n return date;\n };\n /**\n * Returns an array of dates representing every interval boundary after or equal to start (inclusive) and before stop (exclusive).\n * @param start\n * @param stop\n * @param step\n */\n\n\n TimeInterval.prototype.range = function (start, stop, step) {\n if (step === void 0) {\n step = 1;\n }\n\n var range = [];\n start = this.ceil(start);\n step = Math.floor(step);\n\n if (start > stop || step <= 0) {\n return range;\n }\n\n var previous;\n\n do {\n previous = new Date(+start);\n range.push(previous);\n\n this._offset(start, step);\n\n this._floor(start);\n } while (previous < start && start < stop);\n\n return range;\n }; // Returns an interval that is a subset of this interval.\n // For example, to create an interval that return 1st, 11th, 21st and 31st of each month:\n // day.filter(date => (date.getDate() - 1) % 10 === 0)\n\n\n TimeInterval.prototype.filter = function (test) {\n var _this = this;\n\n var floor = function floor(date) {\n if (date >= date) {\n _this._floor(date);\n\n while (!test(date)) {\n date.setTime(date.getTime() - 1);\n\n _this._floor(date);\n }\n }\n\n return date;\n };\n\n var offset = function offset(date, step) {\n if (date >= date) {\n if (step < 0) {\n while (++step <= 0) {\n do {\n _this._offset(date, -1);\n } while (!test(date));\n }\n } else {\n while (--step >= 0) {\n do {\n _this._offset(date, 1);\n } while (!test(date));\n }\n }\n }\n\n return date;\n };\n\n return new TimeInterval(floor, offset);\n };\n\n return TimeInterval;\n}();\n\nvar CountableTimeInterval$1 =\n/** @class */\nfunction (_super) {\n __extends$2z(CountableTimeInterval, _super);\n\n function CountableTimeInterval(floor, offset, count, field) {\n var _this = _super.call(this, floor, offset) || this;\n\n _this._count = count;\n _this._field = field;\n return _this;\n }\n /**\n * Returns the number of interval boundaries after start (exclusive) and before or equal to end (inclusive).\n * @param start\n * @param end\n */\n\n\n CountableTimeInterval.prototype.count = function (start, end) {\n t0$1.setTime(+start);\n t1$1.setTime(+end);\n\n this._floor(t0$1);\n\n this._floor(t1$1);\n\n return Math.floor(this._count(t0$1, t1$1));\n };\n /**\n * Returns a filtered view of this interval representing every step'th date.\n * The meaning of step is dependent on this interval’s parent interval as defined by the `field` function.\n * @param step\n */\n\n\n CountableTimeInterval.prototype.every = function (step) {\n var _this = this;\n\n var result;\n step = Math.floor(step);\n\n if (isFinite(step) && step > 0) {\n if (step > 1) {\n var field_1 = this._field;\n\n if (field_1) {\n result = this.filter(function (d) {\n return field_1(d) % step === 0;\n });\n } else {\n result = this.filter(function (d) {\n return _this.count(0, d) % step === 0;\n });\n }\n } else {\n result = this;\n }\n }\n\n return result;\n };\n\n return CountableTimeInterval;\n}(TimeInterval$1);\n\nfunction floor$k(date) {\n return date;\n}\n\nfunction offset$k(date, milliseconds) {\n date.setTime(date.getTime() + milliseconds);\n}\n\nfunction count$k(start, end) {\n return end.getTime() - start.getTime();\n}\n\nvar millisecond$1 = new CountableTimeInterval$1(floor$k, offset$k, count$k); // Common time unit sizes in milliseconds.\n\nvar epochYear = new Date(0).getFullYear();\nvar durationSecond$1 = 1000;\nvar durationMinute$1 = durationSecond$1 * 60;\nvar durationHour$1 = durationMinute$1 * 60;\nvar durationDay$1 = durationHour$1 * 24;\nvar durationWeek$1 = durationDay$1 * 7;\nvar durationMonth$1 = durationDay$1 * 30;\nvar durationYear$1 = durationDay$1 * 365;\n\nfunction floor$j(date) {\n date.setTime(date.getTime() - date.getMilliseconds());\n}\n\nfunction offset$j(date, seconds) {\n date.setTime(date.getTime() + seconds * durationSecond$1);\n}\n\nfunction count$j(start, end) {\n return (end.getTime() - start.getTime()) / durationSecond$1;\n}\n\nvar second$1 = new CountableTimeInterval$1(floor$j, offset$j, count$j);\n\nfunction floor$i(date) {\n date.setTime(date.getTime() - date.getMilliseconds() - date.getSeconds() * durationSecond$1);\n}\n\nfunction offset$i(date, minutes) {\n date.setTime(date.getTime() + minutes * durationMinute$1);\n}\n\nfunction count$i(start, end) {\n return (end.getTime() - start.getTime()) / durationMinute$1;\n}\n\nfunction field$g(date) {\n return Math.floor(date.getTime() / durationMinute$1);\n}\n\nvar minute$1 = new CountableTimeInterval$1(floor$i, offset$i, count$i, field$g);\n\nfunction floor$h(date) {\n date.setTime(date.getTime() - date.getMilliseconds() - date.getSeconds() * durationSecond$1 - date.getMinutes() * durationMinute$1);\n}\n\nfunction offset$h(date, hours) {\n date.setTime(date.getTime() + hours * durationHour$1);\n}\n\nfunction count$h(start, end) {\n return (end.getTime() - start.getTime()) / durationHour$1;\n}\n\nfunction field$f(date) {\n return Math.floor(date.getTime() / durationHour$1);\n}\n\nvar hour$1 = new CountableTimeInterval$1(floor$h, offset$h, count$h, field$f);\n\nfunction floor$g(date) {\n date.setHours(0, 0, 0, 0);\n}\n\nfunction offset$g(date, days) {\n date.setDate(date.getDate() + days);\n}\n\nfunction count$g(start, end) {\n var tzMinuteDelta = end.getTimezoneOffset() - start.getTimezoneOffset();\n return (end.getTime() - start.getTime() - tzMinuteDelta * durationMinute$1) / durationDay$1;\n}\n\nfunction field$e(date) {\n return Math.floor(date.getTime() / durationDay$1);\n}\n\nvar day$1 = new CountableTimeInterval$1(floor$g, offset$g, count$g, field$e); // Set date to n-th day of the week.\n\nfunction weekday$3(n) {\n // Sets the `date` to the start of the `n`-th day of the current week.\n // n == 0 is Sunday.\n function floor(date) {\n // 1..31 1..7\n date.setDate(date.getDate() - (date.getDay() + 7 - n) % 7);\n date.setHours(0, 0, 0, 0); // h, m, s, ms\n } // Offset the date by the given number of weeks.\n\n\n function offset(date, weeks) {\n date.setDate(date.getDate() + weeks * 7);\n } // Count the number of weeks between the start and end dates.\n\n\n function count(start, end) {\n var msDelta = end.getTime() - start.getTime();\n var tzMinuteDelta = end.getTimezoneOffset() - start.getTimezoneOffset();\n return (msDelta - tzMinuteDelta * durationMinute$1) / durationWeek$1;\n }\n\n return new CountableTimeInterval$1(floor, offset, count);\n}\n\nvar sunday$1 = weekday$3(0);\nvar monday$1 = weekday$3(1);\nvar tuesday = weekday$3(2);\nvar wednesday = weekday$3(3);\nvar thursday$1 = weekday$3(4);\nvar friday = weekday$3(5);\nvar saturday = weekday$3(6);\n\nfunction floor$f(date) {\n date.setDate(1);\n date.setHours(0, 0, 0, 0);\n}\n\nfunction offset$f(date, months) {\n date.setMonth(date.getMonth() + months);\n}\n\nfunction count$f(start, end) {\n return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;\n}\n\nfunction field$d(date) {\n var yearsSinceEpoch = date.getFullYear() - epochYear;\n var monthsSinceEpoch = yearsSinceEpoch * 12 + date.getMonth();\n return monthsSinceEpoch;\n}\n\nvar month$1 = new CountableTimeInterval$1(floor$f, offset$f, count$f, field$d);\n\nfunction floor$e(date) {\n date.setMonth(0, 1);\n date.setHours(0, 0, 0, 0);\n}\n\nfunction offset$e(date, years) {\n date.setFullYear(date.getFullYear() + years);\n}\n\nfunction count$e(start, end) {\n return end.getFullYear() - start.getFullYear();\n}\n\nfunction field$c(date) {\n return date.getFullYear() - epochYear;\n}\n\nvar year$1 = new CountableTimeInterval$1(floor$e, offset$e, count$e, field$c);\n\nfunction floor$d(date) {\n date.setUTCHours(0, 0, 0, 0);\n}\n\nfunction offset$d(date, days) {\n date.setUTCDate(date.getUTCDate() + days);\n}\n\nfunction count$d(start, end) {\n return (end.getTime() - start.getTime()) / durationDay$1;\n}\n\nfunction field$b(date) {\n return date.getUTCDate() - 1;\n}\n\nvar utcDay$1 = new CountableTimeInterval$1(floor$d, offset$d, count$d, field$b);\n\nfunction floor$c(date) {\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n}\n\nfunction offset$c(date, years) {\n date.setUTCFullYear(date.getUTCFullYear() + years);\n}\n\nfunction count$c(start, end) {\n return end.getUTCFullYear() - start.getUTCFullYear();\n}\n\nfunction field$a(date) {\n return date.getUTCFullYear();\n}\n\nvar utcYear$1 = new CountableTimeInterval$1(floor$c, offset$c, count$c, field$a); // Set date to n-th day of the week.\n\nfunction weekday$2(n) {\n // Sets the `date` to the start of the `n`-th day of the current week.\n // n == 0 is Sunday.\n function floor(date) {\n date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - n) % 7);\n date.setHours(0, 0, 0, 0); // h, m, s, ms\n } // Offset the date by the given number of weeks.\n\n\n function offset(date, weeks) {\n date.setUTCDate(date.getUTCDate() + weeks * 7);\n } // Count the number of weeks between the start and end dates.\n\n\n function count(start, end) {\n return (end.getTime() - start.getTime()) / durationWeek$1;\n }\n\n return new CountableTimeInterval$1(floor, offset, count);\n}\n\nvar utcSunday$1 = weekday$2(0);\nvar utcMonday$1 = weekday$2(1);\nweekday$2(2);\nweekday$2(3);\nvar utcThursday$1 = weekday$2(4);\nweekday$2(5);\nweekday$2(6);\n\nfunction localDate$1(d) {\n // For JS Dates the [0, 100) interval is a time warp, a fast forward to the 20th century.\n // For example, -1 is -0001 BC, 0 is already 1900 AD.\n if (d.y >= 0 && d.y < 100) {\n var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);\n date.setFullYear(d.y);\n return date;\n }\n\n return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);\n}\n\nfunction utcDate$1(d) {\n if (d.y >= 0 && d.y < 100) {\n var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));\n date.setUTCFullYear(d.y);\n return date;\n }\n\n return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));\n}\n/**\n * Creates a lookup map for array of names to go from a name to index.\n * @param names\n */\n\n\nfunction formatLookup$1(names) {\n var map = {};\n\n for (var i = 0, n = names.length; i < n; i++) {\n map[names[i].toLowerCase()] = i;\n }\n\n return map;\n}\n\nfunction newYear$1(y) {\n return {\n y: y,\n m: 0,\n d: 1,\n H: 0,\n M: 0,\n S: 0,\n L: 0\n };\n}\n\nvar percentCharCode$1 = 37;\nvar numberRe$1 = /^\\s*\\d+/; // ignores next directive\n\nvar percentRe$1 = /^%/;\nvar requoteRe$1 = /[\\\\^$*+?|[\\]().{}]/g;\n/**\n * Prepends any character in the `requoteRe` set with a backslash.\n * @param s\n */\n\nvar requote$1 = function requote$1(s) {\n return s.replace(requoteRe$1, '\\\\$&');\n}; // $& - matched substring\n\n/**\n * Returns a RegExp that matches any string that starts with any of the given names (case insensitive).\n * @param names\n */\n\n\nvar formatRe$1 = function formatRe$1(names) {\n return new RegExp('^(?:' + names.map(requote$1).join('|') + ')', 'i');\n}; // A map of padding modifiers to padding strings. Default is `0`.\n\n\nvar pads$1 = {\n '-': '',\n _: ' ',\n '0': '0'\n};\n\nfunction pad$1(value, fill, width) {\n var sign = value < 0 ? '-' : '';\n var string = String(sign ? -value : value);\n var length = string.length;\n return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);\n}\n/**\n * Create a new time-locale-based object which exposes time-formatting\n * methods for the specified locale definition.\n *\n * @param timeLocale A time locale definition.\n */\n\n\nfunction formatLocale$2(timeLocale) {\n var lDateTime = timeLocale.dateTime;\n var lDate = timeLocale.date;\n var lTime = timeLocale.time;\n var lPeriods = timeLocale.periods;\n var lWeekdays = timeLocale.days;\n var lShortWeekdays = timeLocale.shortDays;\n var lMonths = timeLocale.months;\n var lShortMonths = timeLocale.shortMonths;\n var periodRe = formatRe$1(lPeriods);\n var periodLookup = formatLookup$1(lPeriods);\n var weekdayRe = formatRe$1(lWeekdays);\n var weekdayLookup = formatLookup$1(lWeekdays);\n var shortWeekdayRe = formatRe$1(lShortWeekdays);\n var shortWeekdayLookup = formatLookup$1(lShortWeekdays);\n var monthRe = formatRe$1(lMonths);\n var monthLookup = formatLookup$1(lMonths);\n var shortMonthRe = formatRe$1(lShortMonths);\n var shortMonthLookup = formatLookup$1(lShortMonths);\n var formats = {\n a: formatShortWeekday,\n A: formatWeekday,\n b: formatShortMonth,\n B: formatMonth,\n c: undefined,\n d: formatDayOfMonth,\n e: formatDayOfMonth,\n f: formatMicroseconds,\n H: formatHour24,\n I: formatHour12,\n j: formatDayOfYear,\n L: formatMilliseconds,\n m: formatMonthNumber,\n M: formatMinutes,\n p: formatPeriod,\n Q: formatUnixTimestamp,\n s: formatUnixTimestampSeconds,\n S: formatSeconds,\n u: formatWeekdayNumberMonday,\n U: formatWeekNumberSunday,\n V: formatWeekNumberISO,\n w: formatWeekdayNumberSunday,\n W: formatWeekNumberMonday,\n x: undefined,\n X: undefined,\n y: formatYear,\n Y: formatFullYear,\n Z: formatZone,\n '%': formatLiteralPercent\n };\n var utcFormats = {\n a: formatUTCShortWeekday,\n A: formatUTCWeekday,\n b: formatUTCShortMonth,\n B: formatUTCMonth,\n c: undefined,\n d: formatUTCDayOfMonth,\n e: formatUTCDayOfMonth,\n f: formatUTCMicroseconds,\n H: formatUTCHour24,\n I: formatUTCHour12,\n j: formatUTCDayOfYear,\n L: formatUTCMilliseconds,\n m: formatUTCMonthNumber,\n M: formatUTCMinutes,\n p: formatUTCPeriod,\n Q: formatUnixTimestamp,\n s: formatUnixTimestampSeconds,\n S: formatUTCSeconds,\n u: formatUTCWeekdayNumberMonday,\n U: formatUTCWeekNumberSunday,\n V: formatUTCWeekNumberISO,\n w: formatUTCWeekdayNumberSunday,\n W: formatUTCWeekNumberMonday,\n x: undefined,\n X: undefined,\n y: formatUTCYear,\n Y: formatUTCFullYear,\n Z: formatUTCZone,\n '%': formatLiteralPercent\n };\n var parses = {\n a: parseShortWeekday,\n A: parseWeekday,\n b: parseShortMonth,\n B: parseMonth,\n c: parseLocaleDateTime,\n d: parseDayOfMonth,\n e: parseDayOfMonth,\n f: parseMicroseconds,\n H: parseHour24,\n I: parseHour24,\n j: parseDayOfYear,\n L: parseMilliseconds,\n m: parseMonthNumber,\n M: parseMinutes,\n p: parsePeriod,\n Q: parseUnixTimestamp,\n s: parseUnixTimestampSeconds,\n S: parseSeconds,\n u: parseWeekdayNumberMonday,\n U: parseWeekNumberSunday,\n V: parseWeekNumberISO,\n w: parseWeekdayNumberSunday,\n W: parseWeekNumberMonday,\n x: parseLocaleDate,\n X: parseLocaleTime,\n y: parseYear,\n Y: parseFullYear,\n Z: parseZone,\n '%': parseLiteralPercent\n }; // Recursive definitions.\n\n formats.x = newFormat(lDate, formats);\n formats.X = newFormat(lTime, formats);\n formats.c = newFormat(lDateTime, formats);\n utcFormats.x = newFormat(lDate, utcFormats);\n utcFormats.X = newFormat(lTime, utcFormats);\n utcFormats.c = newFormat(lDateTime, utcFormats);\n\n function newParse(specifier, newDate) {\n return function (str) {\n var d = newYear$1(1900);\n str += '';\n var i = parseSpecifier(d, specifier, str, 0);\n\n if (i != str.length) {\n return undefined;\n } // If a UNIX timestamp is specified, return it.\n\n\n if ('Q' in d) {\n return new Date(d.Q);\n } // The am-pm flag is 0 for AM, and 1 for PM.\n\n\n if ('p' in d) {\n d.H = d.H % 12 + d.p * 12;\n } // Convert day-of-week and week-of-year to day-of-year.\n\n\n if ('V' in d) {\n if (d.V < 1 || d.V > 53) {\n return undefined;\n }\n\n if (!('w' in d)) {\n d.w = 1;\n }\n\n if ('Z' in d) {\n var week = utcDate$1(newYear$1(d.y));\n var day = week.getUTCDay();\n week = day > 4 || day === 0 ? utcMonday$1.ceil(week) : utcMonday$1.floor(week);\n week = utcDay$1.offset(week, (d.V - 1) * 7);\n d.y = week.getUTCFullYear();\n d.m = week.getUTCMonth();\n d.d = week.getUTCDate() + (d.w + 6) % 7;\n } else {\n var week = newDate(newYear$1(d.y));\n var day = week.getDay();\n week = day > 4 || day === 0 ? monday$1.ceil(week) : monday$1.floor(week);\n week = day$1.offset(week, (d.V - 1) * 7);\n d.y = week.getFullYear();\n d.m = week.getMonth();\n d.d = week.getDate() + (d.w + 6) % 7;\n }\n } else if ('W' in d || 'U' in d) {\n if (!('w' in d)) {\n d.w = 'u' in d ? d.u % 7 : 'W' in d ? 1 : 0;\n }\n\n var day = 'Z' in d ? utcDate$1(newYear$1(d.y)).getUTCDay() : newDate(newYear$1(d.y)).getDay();\n d.m = 0;\n d.d = 'W' in d ? (d.w + 6) % 7 + d.W * 7 - (day + 5) % 7 : d.w + d.U * 7 - (day + 6) % 7;\n } // If a time zone is specified, all fields are interpreted as UTC and then\n // offset according to the specified time zone.\n\n\n if ('Z' in d) {\n d.H += d.Z / 100 | 0;\n d.M += d.Z % 100;\n return utcDate$1(d);\n } // Otherwise, all fields are in local time.\n\n\n return newDate(d);\n };\n }\n /**\n * Creates a new function that formats the given Date or timestamp according to specifier.\n * @param specifier\n * @param formats\n */\n\n\n function newFormat(specifier, formats) {\n return function (date) {\n var string = [];\n var n = specifier.length;\n var i = -1;\n var j = 0;\n\n if (!(date instanceof Date)) {\n date = new Date(+date);\n }\n\n while (++i < n) {\n if (specifier.charCodeAt(i) === percentCharCode$1) {\n string.push(specifier.slice(j, i)); // copy the chunks of specifier with no directives as is\n\n var c = specifier.charAt(++i);\n var pad_1 = pads$1[c];\n\n if (pad_1 != undefined) {\n // if format directive has a padding modifier in front of it\n c = specifier.charAt(++i); // fetch the directive itself\n } else {\n pad_1 = c === 'e' ? ' ' : '0'; // use the default padding modifier\n }\n\n var format = formats[c];\n\n if (format) {\n // if the directive has a corresponding formatting function\n c = format(date, pad_1); // replace the directive with the formatted date\n }\n\n string.push(c);\n j = i + 1;\n }\n }\n\n string.push(specifier.slice(j, i));\n return string.join('');\n };\n } // Simultaneously walks over the specifier and the parsed string, populating the `d` map with parsed values.\n // The returned number is expected to equal the length of the parsed `string`, if parsing succeeded.\n\n\n function parseSpecifier(d, specifier, string, j) {\n // i - `specifier` string index\n // j - parsed `string` index\n var i = 0;\n var n = specifier.length;\n var m = string.length;\n\n while (i < n) {\n if (j >= m) {\n return -1;\n }\n\n var code = specifier.charCodeAt(i++);\n\n if (code === percentCharCode$1) {\n var char = specifier.charAt(i++);\n var parse = parses[char in pads$1 ? specifier.charAt(i++) : char];\n\n if (!parse || (j = parse(d, string, j)) < 0) {\n return -1;\n }\n } else if (code != string.charCodeAt(j++)) {\n return -1;\n }\n }\n\n return j;\n } // ----------------------------- formats ----------------------------------\n\n\n function formatMicroseconds(date, fill) {\n return formatMilliseconds(date, fill) + '000';\n }\n\n function formatMilliseconds(date, fill) {\n return pad$1(date.getMilliseconds(), fill, 3);\n }\n\n function formatSeconds(date, fill) {\n return pad$1(date.getSeconds(), fill, 2);\n }\n\n function formatMinutes(date, fill) {\n return pad$1(date.getMinutes(), fill, 2);\n }\n\n function formatHour12(date, fill) {\n return pad$1(date.getHours() % 12 || 12, fill, 2);\n }\n\n function formatHour24(date, fill) {\n return pad$1(date.getHours(), fill, 2);\n }\n\n function formatPeriod(date) {\n return lPeriods[date.getHours() >= 12 ? 1 : 0];\n }\n\n function formatShortWeekday(date) {\n return lShortWeekdays[date.getDay()];\n }\n\n function formatWeekday(date) {\n return lWeekdays[date.getDay()];\n }\n\n function formatWeekdayNumberMonday(date) {\n var dayOfWeek = date.getDay();\n return dayOfWeek === 0 ? 7 : dayOfWeek;\n }\n\n function formatWeekNumberSunday(date, fill) {\n return pad$1(sunday$1.count(year$1.floor(date), date), fill, 2);\n }\n\n function formatWeekNumberISO(date, fill) {\n var day = date.getDay();\n date = day >= 4 || day === 0 ? thursday$1.floor(date) : thursday$1.ceil(date);\n var yearStart = year$1.floor(date);\n return pad$1(thursday$1.count(yearStart, date) + (yearStart.getDay() === 4 ? 1 : 0), fill, 2);\n }\n\n function formatWeekdayNumberSunday(date) {\n return date.getDay();\n }\n\n function formatWeekNumberMonday(date, fill) {\n return pad$1(monday$1.count(year$1.floor(date), date), fill, 2);\n }\n\n function formatDayOfMonth(date, fill) {\n return pad$1(date.getDate(), fill, 2);\n }\n\n function formatDayOfYear(date, fill) {\n return pad$1(1 + day$1.count(year$1.floor(date), date), fill, 3);\n }\n\n function formatShortMonth(date) {\n return lShortMonths[date.getMonth()];\n }\n\n function formatMonth(date) {\n return lMonths[date.getMonth()];\n }\n\n function formatMonthNumber(date, fill) {\n return pad$1(date.getMonth() + 1, fill, 2);\n }\n\n function formatYear(date, fill) {\n return pad$1(date.getFullYear() % 100, fill, 2);\n }\n\n function formatFullYear(date, fill) {\n return pad$1(date.getFullYear() % 10000, fill, 4);\n }\n\n function formatZone(date) {\n var z = date.getTimezoneOffset();\n return (z > 0 ? '-' : (z *= -1, '+')) + pad$1(Math.floor(z / 60), '0', 2) + pad$1(z % 60, '0', 2);\n } // -------------------------- UTC formats -----------------------------------\n\n\n function formatUTCMicroseconds(date, fill) {\n return formatUTCMilliseconds(date, fill) + '000';\n }\n\n function formatUTCMilliseconds(date, fill) {\n return pad$1(date.getUTCMilliseconds(), fill, 3);\n }\n\n function formatUTCSeconds(date, fill) {\n return pad$1(date.getUTCSeconds(), fill, 2);\n }\n\n function formatUTCMinutes(date, fill) {\n return pad$1(date.getUTCMinutes(), fill, 2);\n }\n\n function formatUTCHour12(date, fill) {\n return pad$1(date.getUTCHours() % 12 || 12, fill, 2);\n }\n\n function formatUTCHour24(date, fill) {\n return pad$1(date.getUTCHours(), fill, 2);\n }\n\n function formatUTCPeriod(date) {\n return lPeriods[date.getUTCHours() >= 12 ? 1 : 0];\n }\n\n function formatUTCDayOfMonth(date, fill) {\n return pad$1(date.getUTCDate(), fill, 2);\n }\n\n function formatUTCDayOfYear(date, fill) {\n return pad$1(1 + utcDay$1.count(utcYear$1.floor(date), date), fill, 3);\n }\n\n function formatUTCMonthNumber(date, fill) {\n return pad$1(date.getUTCMonth() + 1, fill, 2);\n }\n\n function formatUTCShortMonth(date) {\n return lShortMonths[date.getUTCMonth()];\n }\n\n function formatUTCMonth(date) {\n return lMonths[date.getUTCMonth()];\n }\n\n function formatUTCShortWeekday(date) {\n return lShortWeekdays[date.getUTCDay()];\n }\n\n function formatUTCWeekday(date) {\n return lWeekdays[date.getUTCDay()];\n }\n\n function formatUTCWeekdayNumberMonday(date) {\n var dayOfWeek = date.getUTCDay();\n return dayOfWeek === 0 ? 7 : dayOfWeek;\n }\n\n function formatUTCWeekNumberSunday(date, fill) {\n return pad$1(utcSunday$1.count(utcYear$1.floor(date), date), fill, 2);\n }\n\n function formatUTCWeekNumberISO(date, fill) {\n var day = date.getUTCDay();\n date = day >= 4 || day === 0 ? utcThursday$1.floor(date) : utcThursday$1.ceil(date);\n var yearStart = utcYear$1.floor(date);\n return pad$1(utcThursday$1.count(yearStart, date) + (yearStart.getUTCDay() === 4 ? 1 : 0), fill, 4);\n }\n\n function formatUTCWeekdayNumberSunday(date) {\n return date.getUTCDay();\n }\n\n function formatUTCWeekNumberMonday(date, fill) {\n return pad$1(utcMonday$1.count(utcYear$1.floor(date), date), fill, 2);\n }\n\n function formatUTCYear(date, fill) {\n return pad$1(date.getUTCFullYear() % 100, fill, 2);\n }\n\n function formatUTCFullYear(date, fill) {\n return pad$1(date.getUTCFullYear() % 10000, fill, 4);\n }\n\n function formatUTCZone() {\n return '+0000';\n }\n\n function formatLiteralPercent() {\n return '%';\n }\n\n function formatUnixTimestamp(date) {\n return date.getTime();\n }\n\n function formatUnixTimestampSeconds(date) {\n return Math.floor(date.getTime() / 1000);\n } // ------------------------------- parsers ------------------------------------\n\n\n function parseMicroseconds(d, string, i) {\n var n = numberRe$1.exec(string.slice(i, i + 6));\n return n ? (d.L = Math.floor(parseFloat(n[0]) / 1000), i + n[0].length) : -1;\n }\n\n function parseMilliseconds(d, string, i) {\n var n = numberRe$1.exec(string.slice(i, i + 3));\n return n ? (d.L = +n[0], i + n[0].length) : -1;\n }\n\n function parseSeconds(d, string, i) {\n var n = numberRe$1.exec(string.slice(i, i + 2));\n return n ? (d.S = +n[0], i + n[0].length) : -1;\n }\n\n function parseMinutes(d, string, i) {\n var n = numberRe$1.exec(string.slice(i, i + 2));\n return n ? (d.M = +n[0], i + n[0].length) : -1;\n }\n\n function parseHour24(d, string, i) {\n var n = numberRe$1.exec(string.slice(i, i + 2));\n return n ? (d.H = +n[0], i + n[0].length) : -1;\n }\n\n function parsePeriod(d, string, i) {\n var n = periodRe.exec(string.slice(i));\n return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseDayOfMonth(d, string, i) {\n var n = numberRe$1.exec(string.slice(i, i + 2));\n return n ? (d.d = +n[0], i + n[0].length) : -1;\n }\n\n function parseDayOfYear(d, string, i) {\n var n = numberRe$1.exec(string.slice(i, i + 3));\n return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;\n }\n\n function parseShortWeekday(d, string, i) {\n var n = shortWeekdayRe.exec(string.slice(i));\n return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseWeekday(d, string, i) {\n var n = weekdayRe.exec(string.slice(i));\n return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseWeekdayNumberMonday(d, string, i) {\n var n = numberRe$1.exec(string.slice(i, i + 1));\n return n ? (d.u = +n[0], i + n[0].length) : -1;\n }\n\n function parseWeekNumberSunday(d, string, i) {\n var n = numberRe$1.exec(string.slice(i, i + 2));\n return n ? (d.U = +n[0], i + n[0].length) : -1;\n }\n\n function parseWeekNumberISO(d, string, i) {\n var n = numberRe$1.exec(string.slice(i, i + 2));\n return n ? (d.V = +n[0], i + n[0].length) : -1;\n }\n\n function parseWeekNumberMonday(d, string, i) {\n var n = numberRe$1.exec(string.slice(i, i + 2));\n return n ? (d.W = +n[0], i + n[0].length) : -1;\n }\n\n function parseWeekdayNumberSunday(d, string, i) {\n var n = numberRe$1.exec(string.slice(i, i + 1));\n return n ? (d.w = +n[0], i + n[0].length) : -1;\n }\n\n function parseShortMonth(d, string, i) {\n var n = shortMonthRe.exec(string.slice(i));\n return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseMonth(d, string, i) {\n var n = monthRe.exec(string.slice(i));\n return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseMonthNumber(d, string, i) {\n var n = numberRe$1.exec(string.slice(i, i + 2));\n return n ? (d.m = parseFloat(n[0]) - 1, i + n[0].length) : -1;\n }\n\n function parseLocaleDateTime(d, string, i) {\n return parseSpecifier(d, lDateTime, string, i);\n }\n\n function parseLocaleDate(d, string, i) {\n return parseSpecifier(d, lDate, string, i);\n }\n\n function parseLocaleTime(d, string, i) {\n return parseSpecifier(d, lTime, string, i);\n }\n\n function parseUnixTimestamp(d, string, i) {\n var n = numberRe$1.exec(string.slice(i));\n return n ? (d.Q = +n[0], i + n[0].length) : -1;\n }\n\n function parseUnixTimestampSeconds(d, string, i) {\n var n = numberRe$1.exec(string.slice(i));\n return n ? (d.Q = +n[0] * 1000, i + n[0].length) : -1;\n }\n\n function parseYear(d, string, i) {\n var n = numberRe$1.exec(string.slice(i, i + 2));\n return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1;\n }\n\n function parseFullYear(d, string, i) {\n var n = numberRe$1.exec(string.slice(i, i + 4));\n return n ? (d.y = +n[0], i + n[0].length) : -1;\n }\n\n function parseZone(d, string, i) {\n var n = /^(Z)|^([+-]\\d\\d)(?::?(\\d\\d))?/.exec(string.slice(i, i + 6));\n return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || '00')), i + n[0].length) : -1;\n }\n\n function parseLiteralPercent(_, string, i) {\n var n = percentRe$1.exec(string.slice(i, i + 1));\n return n ? i + n[0].length : -1;\n }\n\n return {\n format: function format(specifier) {\n var f = newFormat(specifier, formats);\n\n f.toString = function () {\n return specifier;\n };\n\n return f;\n },\n parse: function parse(specifier) {\n var p = newParse(specifier, localDate$1);\n\n p.toString = function () {\n return specifier;\n };\n\n return p;\n },\n utcFormat: function utcFormat(specifier) {\n var f = newFormat(specifier, utcFormats);\n\n f.toString = function () {\n return specifier;\n };\n\n return f;\n },\n utcParse: function utcParse(specifier) {\n var p = newParse(specifier, utcDate$1);\n\n p.toString = function () {\n return specifier;\n };\n\n return p;\n }\n };\n}\n\nvar locale$1;\nsetDefaultLocale$1({\n dateTime: '%x, %X',\n date: '%-m/%-d/%Y',\n time: '%-I:%M:%S %p',\n periods: ['AM', 'PM'],\n days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n shortDays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],\n shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']\n});\n\nfunction setDefaultLocale$1(definition) {\n locale$1 = formatLocale$2(definition);\n return locale$1;\n}\n\nvar __extends$2y = undefined && undefined.__extends || function () {\n var _extendStatics58 = function extendStatics(d, b) {\n _extendStatics58 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics58(d, b);\n };\n\n return function (d, b) {\n _extendStatics58(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __values$m = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar __read$B = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$i = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$B(arguments[i]));\n }\n\n return ar;\n};\n\nvar _a;\n\nvar DefaultTimeFormats;\n\n(function (DefaultTimeFormats) {\n DefaultTimeFormats[DefaultTimeFormats[\"MILLISECOND\"] = 0] = \"MILLISECOND\";\n DefaultTimeFormats[DefaultTimeFormats[\"SECOND\"] = 1] = \"SECOND\";\n DefaultTimeFormats[DefaultTimeFormats[\"MINUTE\"] = 2] = \"MINUTE\";\n DefaultTimeFormats[DefaultTimeFormats[\"HOUR\"] = 3] = \"HOUR\";\n DefaultTimeFormats[DefaultTimeFormats[\"SHORT_MONTH\"] = 4] = \"SHORT_MONTH\";\n DefaultTimeFormats[DefaultTimeFormats[\"MONTH\"] = 5] = \"MONTH\";\n DefaultTimeFormats[DefaultTimeFormats[\"YEAR\"] = 6] = \"YEAR\";\n})(DefaultTimeFormats || (DefaultTimeFormats = {}));\n\nvar formatStrings = (_a = {}, _a[DefaultTimeFormats.MILLISECOND] = '.%L', _a[DefaultTimeFormats.SECOND] = ':%S', _a[DefaultTimeFormats.MINUTE] = '%I:%M', _a[DefaultTimeFormats.HOUR] = '%I %p', _a[DefaultTimeFormats.SHORT_MONTH] = '%b %d', _a[DefaultTimeFormats.MONTH] = '%B', _a[DefaultTimeFormats.YEAR] = '%Y', _a);\n\nvar TimeScale$1 =\n/** @class */\nfunction (_super) {\n __extends$2y(TimeScale, _super);\n\n function TimeScale() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'time';\n _this.year = year$1;\n _this.month = month$1;\n _this.week = sunday$1;\n _this.day = day$1;\n _this.hour = hour$1;\n _this.minute = minute$1;\n _this.second = second$1;\n _this.millisecond = millisecond$1;\n _this.format = locale$1.format;\n /**\n * Array of default tick intervals in the following format:\n *\n * [\n * interval (unit of time),\n * number of units (step),\n * the length of that number of units in milliseconds\n * ]\n */\n\n _this.tickIntervals = [[_this.second, 1, durationSecond$1], [_this.second, 5, 5 * durationSecond$1], [_this.second, 15, 15 * durationSecond$1], [_this.second, 30, 30 * durationSecond$1], [_this.minute, 1, durationMinute$1], [_this.minute, 5, 5 * durationMinute$1], [_this.minute, 15, 15 * durationMinute$1], [_this.minute, 30, 30 * durationMinute$1], [_this.hour, 1, durationHour$1], [_this.hour, 3, 3 * durationHour$1], [_this.hour, 6, 6 * durationHour$1], [_this.hour, 12, 12 * durationHour$1], [_this.day, 1, durationDay$1], [_this.day, 2, 2 * durationDay$1], [_this.week, 1, durationWeek$1], [_this.month, 1, durationMonth$1], [_this.month, 3, 3 * durationMonth$1], [_this.year, 1, durationYear$1]];\n _this._domain = [new Date(2000, 0, 1), new Date(2000, 0, 2)];\n return _this;\n }\n\n TimeScale.prototype.defaultTickFormat = function (ticks) {\n var e_1, _a;\n\n var _this = this;\n\n var defaultTimeFormat = DefaultTimeFormats.YEAR;\n\n var updateFormat = function updateFormat(format) {\n if (format < defaultTimeFormat) {\n defaultTimeFormat = format;\n }\n };\n\n try {\n for (var _b = __values$m(ticks !== null && ticks !== void 0 ? ticks : []), _c = _b.next(); !_c.done; _c = _b.next()) {\n var value = _c.value;\n this.second.floor(value) < value ? updateFormat(DefaultTimeFormats.MILLISECOND) : this.minute.floor(value) < value ? updateFormat(DefaultTimeFormats.SECOND) : this.hour.floor(value) < value ? updateFormat(DefaultTimeFormats.MINUTE) : this.day.floor(value) < value ? updateFormat(DefaultTimeFormats.HOUR) : this.month.floor(value) < value ? updateFormat(DefaultTimeFormats.SHORT_MONTH) : this.year.floor(value) < value ? updateFormat(DefaultTimeFormats.MONTH) : updateFormat(DefaultTimeFormats.YEAR);\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n var domain = _super.prototype.getDomain.call(this);\n\n var start = Math.min.apply(Math, __spread$i(domain));\n var stop = Math.max.apply(Math, __spread$i(domain));\n var extent = stop - start;\n var formatStringArray = [formatStrings[defaultTimeFormat]];\n\n switch (defaultTimeFormat) {\n case DefaultTimeFormats.SECOND:\n if (extent / durationMinute$1 > 1) {\n formatStringArray.push(formatStrings[DefaultTimeFormats.MINUTE]);\n }\n\n // fall through deliberately\n\n case DefaultTimeFormats.MINUTE:\n if (extent / durationHour$1 > 1) {\n formatStringArray.push(formatStrings[DefaultTimeFormats.HOUR]);\n }\n\n // fall through deliberately\n\n case DefaultTimeFormats.HOUR:\n if (extent / durationDay$1 > 1) {\n formatStringArray.push(formatStrings[DefaultTimeFormats.SHORT_MONTH]);\n }\n\n // fall through deliberately\n\n case DefaultTimeFormats.SHORT_MONTH: // fall through deliberately\n\n case DefaultTimeFormats.MONTH:\n if (extent / durationYear$1 > 1) {\n formatStringArray.push(formatStrings[DefaultTimeFormats.YEAR]);\n }\n\n }\n\n var formatString = formatStringArray.join(' ');\n return function (date) {\n return _this.format(formatString)(date);\n };\n };\n /**\n *\n * @param interval If the `interval` is a number, it's interpreted as the desired tick count\n * and the method tries to pick an appropriate interval automatically, based on the extent of the domain.\n * If the `interval` is `undefined`, it defaults to `10`.\n * If the `interval` is a time interval, simply use it.\n * @param start The start time (timestamp).\n * @param stop The end time (timestamp).\n * @param step Number of intervals between ticks.\n */\n\n\n TimeScale.prototype.tickInterval = function (interval, start, stop, step) {\n var _a;\n\n if (typeof interval === 'number') {\n var tickCount = interval;\n var tickIntervals = this.tickIntervals;\n var target = Math.abs(stop - start) / tickCount;\n var i = complexBisectRight$1(tickIntervals, target, function (interval) {\n return interval[2];\n });\n\n if (i === tickIntervals.length) {\n step = tickStep$1(start / durationYear$1, stop / durationYear$1, tickCount);\n interval = this.year;\n } else if (i) {\n _a = __read$B(tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i], 2), interval = _a[0], step = _a[1];\n } else {\n step = Math.max(tickStep$1(start, stop, interval), 1);\n interval = this.millisecond;\n }\n }\n\n return step == undefined ? interval : interval.every(step);\n };\n\n Object.defineProperty(TimeScale.prototype, \"domain\", {\n get: function get() {\n return _super.prototype.getDomain.call(this).map(function (t) {\n return new Date(t);\n });\n },\n set: function set(values) {\n _super.prototype.setDomain.call(this, values.map(function (t) {\n return t instanceof Date ? +t : +new Date(+t);\n }));\n },\n enumerable: true,\n configurable: true\n });\n\n TimeScale.prototype.invert = function (y) {\n return new Date(_super.prototype.invert.call(this, y));\n };\n /**\n * Returns uniformly-spaced dates that represent the scale's domain.\n * @param interval The desired tick count or a time interval object.\n */\n\n\n TimeScale.prototype.ticks = function (interval) {\n if (interval === void 0) {\n interval = 10;\n }\n\n var d = _super.prototype.getDomain.call(this);\n\n var t0 = d[0];\n var t1 = d[d.length - 1];\n var reverse = t1 < t0;\n\n if (reverse) {\n var _ = t0;\n t0 = t1;\n t1 = _;\n }\n\n var t = this.tickInterval(interval, t0, t1);\n var i = t ? t.range(t0, t1 + 1) : []; // inclusive stop\n\n return reverse ? i.reverse() : i;\n };\n /**\n * Returns a time format function suitable for displaying tick values.\n * @param count Ignored. Used only to satisfy the {@link Scale} interface.\n * @param specifier If the specifier string is provided, this method is equivalent to\n * the {@link TimeLocaleObject.format} method.\n * If no specifier is provided, this method returns the default time format function.\n */\n\n\n TimeScale.prototype.tickFormat = function (_a) {\n var ticks = _a.ticks,\n specifier = _a.specifier;\n return specifier == undefined ? this.defaultTickFormat(ticks) : this.format(specifier);\n };\n /**\n * Extends the domain so that it starts and ends on nice round values.\n * This method typically modifies the scale’s domain, and may only extend the bounds to the nearest round value.\n * @param interval\n */\n\n\n TimeScale.prototype.nice = function (interval) {\n if (interval === void 0) {\n interval = 10;\n }\n\n var d = _super.prototype.getDomain.call(this);\n\n var i = this.tickInterval(interval, d[0], d[d.length - 1]);\n\n if (i) {\n this.domain = this._nice(d, i);\n }\n };\n\n TimeScale.prototype._nice = function (domain, interval) {\n var _a, _b;\n\n domain = domain.slice();\n var i0 = 0;\n var i1 = domain.length - 1;\n var x0 = domain[i0];\n var x1 = domain[i1];\n\n if (x1 < x0) {\n _a = __read$B([i1, i0], 2), i0 = _a[0], i1 = _a[1];\n _b = __read$B([x1, x0], 2), x0 = _b[0], x1 = _b[1];\n }\n\n domain[i0] = interval.floor(x0);\n domain[i1] = interval.ceil(x1);\n return domain;\n };\n\n return TimeScale;\n}(ContinuousScale$1);\n\nvar __extends$2x = undefined && undefined.__extends || function () {\n var _extendStatics59 = function extendStatics(d, b) {\n _extendStatics59 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics59(d, b);\n };\n\n return function (d, b) {\n _extendStatics59(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __read$A = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar TimeAxis =\n/** @class */\nfunction (_super) {\n __extends$2x(TimeAxis, _super);\n\n function TimeAxis() {\n var _this = _super.call(this, new TimeScale$1()) || this;\n\n _this.datumFormat = '%m/%d/%y, %H:%M:%S';\n _this._nice = true;\n _this._domain = [];\n var scale = _this.scale;\n scale.clamp = true;\n _this.scale = scale;\n _this.datumFormatter = scale.tickFormat({\n ticks: _this.getTicks(),\n count: _this.calculatedTickCount,\n specifier: _this.datumFormat\n });\n return _this;\n }\n\n Object.defineProperty(TimeAxis.prototype, \"nice\", {\n get: function get() {\n return this._nice;\n },\n set: function set(value) {\n if (this._nice !== value) {\n this._nice = value;\n\n if (value && this.scale.nice) {\n this.scale.nice(typeof this.calculatedTickCount === 'number' ? this.calculatedTickCount : undefined);\n }\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(TimeAxis.prototype, \"domain\", {\n get: function get() {\n return this.scale.domain;\n },\n set: function set(domain) {\n this._domain = domain;\n this.setDomain(domain);\n },\n enumerable: true,\n configurable: true\n });\n\n TimeAxis.prototype.setDomain = function (domain, _primaryTickCount) {\n var _a = this,\n scale = _a.scale,\n nice = _a.nice,\n _b = __read$A(_a._domain, 2),\n min = _b[0],\n max = _b[1],\n calculatedTickCount = _a.calculatedTickCount;\n\n if (domain.length > 2) {\n domain = (extent$1(domain, isContinuous$1, Number) || [0, 1000]).map(function (x) {\n return new Date(x);\n });\n }\n\n domain = [min instanceof Date ? min : domain[0], max instanceof Date ? max : domain[1]];\n this.scale.domain = domain;\n\n if (nice && scale.nice) {\n scale.nice(typeof calculatedTickCount === 'number' ? calculatedTickCount : undefined);\n }\n\n this.onLabelFormatChange(this.label.format);\n };\n\n TimeAxis.prototype.onLabelFormatChange = function (format) {\n if (format) {\n _super.prototype.onLabelFormatChange.call(this, format);\n } else {\n // For time axis labels to look nice, even if date format wasn't set.\n this.labelFormatter = this.scale.tickFormat({\n ticks: this.getTicks(),\n count: this.calculatedTickCount\n });\n }\n };\n\n TimeAxis.prototype.formatDatum = function (datum) {\n return this.datumFormatter(datum);\n };\n\n TimeAxis.prototype.updateDomain = function (domain, _isYAxis, primaryTickCount) {\n // the `primaryTickCount` is used to align the secondary axis tick count with the primary\n this.setDomain(domain, primaryTickCount);\n return primaryTickCount !== null && primaryTickCount !== void 0 ? primaryTickCount : this.scale.ticks(this.calculatedTickCount).length;\n };\n\n TimeAxis.className = 'TimeAxis';\n TimeAxis.type = 'time';\n return TimeAxis;\n}(ChartAxis);\n/**\n * Wraps a native OffscreenCanvas and overrides its OffscreenCanvasRenderingContext2D to\n * provide resolution independent rendering based on `window.devicePixelRatio`.\n */\n\n\nvar HdpiOffscreenCanvas =\n/** @class */\nfunction () {\n // The width/height attributes of the Canvas element default to\n // 300/150 according to w3.org.\n function HdpiOffscreenCanvas(_a) {\n var _b = _a.width,\n width = _b === void 0 ? 600 : _b,\n _c = _a.height,\n height = _c === void 0 ? 300 : _c;\n this.enabled = true;\n this.opacity = 1; // `NaN` is deliberate here, so that overrides are always applied\n // and the `resetTransform` inside the `resize` method works in IE11.\n\n this._pixelRatio = NaN;\n this._width = 0;\n this._height = 0;\n this.canvas = new OffscreenCanvas(width, height);\n this.context = this.canvas.getContext('2d');\n this.imageSource = this.canvas.transferToImageBitmap();\n this.setPixelRatio();\n this.resize(width, height);\n }\n\n HdpiOffscreenCanvas.isSupported = function () {\n return window['OffscreenCanvas'] != null;\n };\n\n HdpiOffscreenCanvas.prototype.snapshot = function () {\n this.imageSource.close();\n this.imageSource = this.canvas.transferToImageBitmap();\n };\n\n HdpiOffscreenCanvas.prototype.destroy = function () {\n this.imageSource.close();\n };\n\n HdpiOffscreenCanvas.prototype.clear = function () {\n this.context.save();\n this.context.resetTransform();\n this.context.clearRect(0, 0, this.width, this.height);\n this.context.restore();\n };\n\n Object.defineProperty(HdpiOffscreenCanvas.prototype, \"pixelRatio\", {\n get: function get() {\n return this._pixelRatio;\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Changes the pixel ratio of the Canvas element to the given value,\n * or uses the window.devicePixelRatio (default), then resizes the Canvas\n * element accordingly (default).\n */\n\n HdpiOffscreenCanvas.prototype.setPixelRatio = function (ratio) {\n var pixelRatio = ratio || window.devicePixelRatio;\n\n if (pixelRatio === this.pixelRatio) {\n return;\n }\n\n HdpiCanvas$1.overrideScale(this.context, pixelRatio);\n this._pixelRatio = pixelRatio;\n this.resize(this.width, this.height);\n };\n\n Object.defineProperty(HdpiOffscreenCanvas.prototype, \"width\", {\n get: function get() {\n return this._width;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(HdpiOffscreenCanvas.prototype, \"height\", {\n get: function get() {\n return this._height;\n },\n enumerable: true,\n configurable: true\n });\n\n HdpiOffscreenCanvas.prototype.resize = function (width, height) {\n if (!(width > 0 && height > 0)) {\n return;\n }\n\n var _a = this,\n canvas = _a.canvas,\n context = _a.context,\n pixelRatio = _a.pixelRatio;\n\n canvas.width = Math.round(width * pixelRatio);\n canvas.height = Math.round(height * pixelRatio);\n context.resetTransform();\n this._width = width;\n this._height = height;\n };\n\n return HdpiOffscreenCanvas;\n}();\n\nvar __assign$v = undefined && undefined.__assign || function () {\n __assign$v = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$v.apply(this, arguments);\n};\n\nvar __read$z = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$h = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$z(arguments[i]));\n }\n\n return ar;\n};\n\nvar __values$l = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar Scene$1 =\n/** @class */\nfunction () {\n function Scene(opts) {\n var _a, _b;\n\n this.id = createId$1(this);\n this.layers = [];\n this._nextZIndex = 0;\n this._nextLayerId = 0;\n this._dirty = false;\n this._root = null;\n this.debug = {\n dirtyTree: false,\n stats: false,\n renderBoundingBoxes: false,\n consoleLog: false\n };\n var _c = opts.document,\n document = _c === void 0 ? window.document : _c,\n _d = opts.mode,\n mode = _d === void 0 ? windowValue('agChartsSceneRenderModel') || 'adv-composite' : _d,\n width = opts.width,\n height = opts.height;\n this.opts = {\n document: document,\n mode: mode\n };\n this.debug.stats = (_a = windowValue('agChartsSceneStats'), _a !== null && _a !== void 0 ? _a : false);\n this.debug.dirtyTree = (_b = windowValue('agChartsSceneDirtyTree'), _b !== null && _b !== void 0 ? _b : false);\n this.canvas = new HdpiCanvas$1({\n document: document,\n width: width,\n height: height\n });\n this.ctx = this.canvas.context;\n }\n\n Object.defineProperty(Scene.prototype, \"container\", {\n get: function get() {\n return this.canvas.container;\n },\n set: function set(value) {\n this.canvas.container = value;\n },\n enumerable: true,\n configurable: true\n });\n\n Scene.prototype.download = function (fileName) {\n this.canvas.download(fileName);\n };\n\n Scene.prototype.getDataURL = function (type) {\n return this.canvas.getDataURL(type);\n };\n\n Object.defineProperty(Scene.prototype, \"width\", {\n get: function get() {\n return this.pendingSize ? this.pendingSize[0] : this.canvas.width;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Scene.prototype, \"height\", {\n get: function get() {\n return this.pendingSize ? this.pendingSize[1] : this.canvas.height;\n },\n enumerable: true,\n configurable: true\n });\n\n Scene.prototype.resize = function (width, height) {\n width = Math.round(width);\n height = Math.round(height); // HdpiCanvas doesn't allow width/height <= 0.\n\n var lessThanZero = width <= 0 || height <= 0;\n var unchanged = width === this.width && height === this.height;\n\n if (unchanged || lessThanZero) {\n return false;\n }\n\n this.pendingSize = [width, height];\n this.markDirty();\n return true;\n };\n\n Scene.prototype.addLayer = function (opts) {\n var _a;\n\n var mode = this.opts.mode;\n var layeredModes = ['composite', 'dom-composite', 'adv-composite'];\n\n if (!layeredModes.includes(mode)) {\n return undefined;\n }\n\n var _b = opts || {},\n _c = _b.zIndex,\n zIndex = _c === void 0 ? this._nextZIndex++ : _c,\n name = _b.name,\n zIndexSubOrder = _b.zIndexSubOrder;\n\n var _d = this,\n width = _d.width,\n height = _d.height;\n\n var domLayer = mode === 'dom-composite';\n var advLayer = mode === 'adv-composite';\n var canvas = !advLayer || !HdpiOffscreenCanvas.isSupported() ? new HdpiCanvas$1({\n document: this.opts.document,\n width: width,\n height: height,\n domLayer: domLayer,\n zIndex: zIndex,\n name: name\n }) : new HdpiOffscreenCanvas({\n width: width,\n height: height\n });\n var newLayer = {\n id: this._nextLayerId++,\n name: name,\n zIndex: zIndex,\n zIndexSubOrder: zIndexSubOrder,\n canvas: canvas\n };\n\n if (zIndex >= this._nextZIndex) {\n this._nextZIndex = zIndex + 1;\n }\n\n this.layers.push(newLayer);\n this.sortLayers();\n\n if (domLayer) {\n var domCanvases = this.layers.map(function (v) {\n return v.canvas;\n }).filter(function (v) {\n return v instanceof HdpiCanvas$1;\n });\n var newLayerIndex = domCanvases.findIndex(function (v) {\n return v === canvas;\n });\n var lastLayer = (_a = domCanvases[newLayerIndex - 1], _a !== null && _a !== void 0 ? _a : this.canvas);\n lastLayer.element.insertAdjacentElement('afterend', canvas.element);\n }\n\n if (this.debug.consoleLog) {\n console.log({\n layers: this.layers\n });\n }\n\n return newLayer.canvas;\n };\n\n Scene.prototype.removeLayer = function (canvas) {\n var index = this.layers.findIndex(function (l) {\n return l.canvas === canvas;\n });\n\n if (index >= 0) {\n this.layers.splice(index, 1);\n canvas.destroy();\n this.markDirty();\n\n if (this.debug.consoleLog) {\n console.log({\n layers: this.layers\n });\n }\n }\n };\n\n Scene.prototype.moveLayer = function (canvas, newZIndex, newZIndexSubOrder) {\n var layer = this.layers.find(function (l) {\n return l.canvas === canvas;\n });\n\n if (layer) {\n layer.zIndex = newZIndex;\n layer.zIndexSubOrder = newZIndexSubOrder;\n this.sortLayers();\n this.markDirty();\n\n if (this.debug.consoleLog) {\n console.log({\n layers: this.layers\n });\n }\n }\n };\n\n Scene.prototype.sortLayers = function () {\n this.layers.sort(function (a, b) {\n var _a, _b;\n\n return compoundAscending(__spread$h([a.zIndex], (_a = a.zIndexSubOrder, _a !== null && _a !== void 0 ? _a : [undefined, undefined]), [a.id]), __spread$h([b.zIndex], (_b = b.zIndexSubOrder, _b !== null && _b !== void 0 ? _b : [undefined, undefined]), [b.id]), ascendingStringNumberUndefined);\n });\n };\n\n Scene.prototype.markDirty = function () {\n this._dirty = true;\n };\n\n Object.defineProperty(Scene.prototype, \"dirty\", {\n get: function get() {\n return this._dirty;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Scene.prototype, \"root\", {\n get: function get() {\n return this._root;\n },\n set: function set(node) {\n if (node === this._root) {\n return;\n }\n\n if (this._root) {\n this._root._setScene();\n }\n\n this._root = node;\n\n if (node) {\n // If `node` is the root node of another scene ...\n if (node.parent === null && node.scene && node.scene !== this) {\n node.scene.root = null;\n }\n\n node._setScene(this);\n }\n\n this.markDirty();\n },\n enumerable: true,\n configurable: true\n });\n\n Scene.prototype.render = function (opts) {\n var _a, e_1, _b;\n\n var _c = opts || {},\n _d = _c.debugSplitTimes,\n debugSplitTimes = _d === void 0 ? [performance.now()] : _d,\n _e = _c.extraDebugStats,\n extraDebugStats = _e === void 0 ? {} : _e;\n\n var _f = this,\n canvas = _f.canvas,\n ctx = _f.ctx,\n root = _f.root,\n layers = _f.layers,\n pendingSize = _f.pendingSize,\n mode = _f.opts.mode;\n\n if (pendingSize) {\n (_a = this.canvas).resize.apply(_a, __spread$h(pendingSize));\n\n this.layers.forEach(function (layer) {\n var _a;\n\n return (_a = layer.canvas).resize.apply(_a, __spread$h(pendingSize));\n });\n this.pendingSize = undefined;\n }\n\n if (root && !root.visible) {\n this._dirty = false;\n return;\n }\n\n if (!this.dirty) {\n return;\n }\n\n var renderCtx = {\n ctx: ctx,\n forceRender: true,\n resized: !!pendingSize\n };\n\n if (this.debug.stats === 'detailed') {\n renderCtx.stats = {\n layersRendered: 0,\n layersSkipped: 0,\n nodesRendered: 0,\n nodesSkipped: 0\n };\n }\n\n var canvasCleared = false;\n\n if (!root || root.dirty >= RedrawType.TRIVIAL) {\n // start with a blank canvas, clear previous drawing\n canvasCleared = true;\n canvas.clear();\n }\n\n if (root && this.debug.dirtyTree) {\n var _g = this.buildDirtyTree(root),\n dirtyTree = _g.dirtyTree,\n paths = _g.paths;\n\n console.log({\n dirtyTree: dirtyTree,\n paths: paths\n });\n }\n\n if (root && canvasCleared) {\n if (this.debug.consoleLog) {\n console.log('before', {\n redrawType: RedrawType[root.dirty],\n canvasCleared: canvasCleared,\n tree: this.buildTree(root)\n });\n }\n\n if (root.visible) {\n ctx.save();\n root.render(renderCtx);\n ctx.restore();\n }\n }\n\n if (mode !== 'dom-composite' && layers.length > 0 && canvasCleared) {\n ctx.save();\n ctx.setTransform(1 / canvas.pixelRatio, 0, 0, 1 / canvas.pixelRatio, 0, 0);\n layers.forEach(function (_a) {\n var _b = _a.canvas,\n imageSource = _b.imageSource,\n enabled = _b.enabled,\n opacity = _b.opacity;\n\n if (!enabled) {\n return;\n }\n\n ctx.globalAlpha = opacity;\n ctx.drawImage(imageSource, 0, 0);\n });\n ctx.restore();\n }\n\n this._dirty = false;\n var end = performance.now();\n\n if (this.debug.stats) {\n var start = debugSplitTimes[0];\n debugSplitTimes.push(end);\n\n var pct = function pct(rendered, skipped) {\n var total = rendered + skipped;\n return rendered + \" / \" + total + \" (\" + Math.round(100 * rendered / total) + \"%)\";\n };\n\n var time_1 = function time_1(start, end) {\n return Math.round((end - start) * 100) / 100 + \"ms\";\n };\n\n var _h = renderCtx.stats || {},\n _j = _h.layersRendered,\n layersRendered = _j === void 0 ? 0 : _j,\n _k = _h.layersSkipped,\n layersSkipped = _k === void 0 ? 0 : _k,\n _l = _h.nodesRendered,\n nodesRendered = _l === void 0 ? 0 : _l,\n _m = _h.nodesSkipped,\n nodesSkipped = _m === void 0 ? 0 : _m;\n\n var splits = debugSplitTimes.map(function (t, i) {\n return i > 0 ? time_1(debugSplitTimes[i - 1], t) : null;\n }).filter(function (v) {\n return v != null;\n }).join(' + ');\n var extras = Object.entries(extraDebugStats).map(function (_a) {\n var _b = __read$z(_a, 2),\n k = _b[0],\n v = _b[1];\n\n return k + \": \" + v;\n }).join(' ; ');\n var stats = [time_1(start, end) + \" (\" + splits + \")\", \"\" + extras, this.debug.stats === 'detailed' ? \"Layers: \" + pct(layersRendered, layersSkipped) : null, this.debug.stats === 'detailed' ? \"Nodes: \" + pct(nodesRendered, nodesSkipped) : null].filter(function (v) {\n return v != null;\n });\n var lineHeight = 15;\n ctx.save();\n ctx.fillStyle = 'white';\n ctx.fillRect(0, 0, 120, 10 + lineHeight * stats.length);\n ctx.fillStyle = 'black';\n var index = 0;\n\n try {\n for (var stats_1 = __values$l(stats), stats_1_1 = stats_1.next(); !stats_1_1.done; stats_1_1 = stats_1.next()) {\n var stat = stats_1_1.value;\n ctx.fillText(stat, 2, 10 + index++ * lineHeight);\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (stats_1_1 && !stats_1_1.done && (_b = stats_1.return)) _b.call(stats_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n ctx.restore();\n }\n\n if (root && this.debug.consoleLog) {\n console.log('after', {\n redrawType: RedrawType[root.dirty],\n canvasCleared: canvasCleared,\n tree: this.buildTree(root)\n });\n }\n };\n\n Scene.prototype.buildTree = function (node) {\n var _this = this;\n\n var _a;\n\n var name = (_a = node instanceof Group$1 ? node.name : null, _a !== null && _a !== void 0 ? _a : node.id);\n return __assign$v({\n name: name,\n node: node,\n dirty: RedrawType[node.dirty]\n }, node.children.map(function (c) {\n return _this.buildTree(c);\n }).reduce(function (result, childTree) {\n var treeNodeName = childTree.name,\n _a = childTree.node,\n visible = _a.visible,\n opacity = _a.opacity,\n zIndex = _a.zIndex,\n zIndexSubOrder = _a.zIndexSubOrder;\n\n if (!visible || opacity <= 0) {\n treeNodeName = \"* \" + treeNodeName;\n }\n\n if (node instanceof Group$1 && node.isLayer()) {\n treeNodeName = \"[ \" + treeNodeName + \" ]\";\n }\n\n var key = [\"\" + (treeNodeName !== null && treeNodeName !== void 0 ? treeNodeName : ''), \"z: \" + zIndex, zIndexSubOrder && \"zo: \" + zIndexSubOrder.join(' / ')].filter(function (v) {\n return !!v;\n }).join(' ');\n result[key] = childTree;\n return result;\n }, {}));\n };\n\n Scene.prototype.buildDirtyTree = function (node) {\n var _this = this;\n\n var _a;\n\n if (node.dirty === RedrawType.NONE) {\n return {\n dirtyTree: {},\n paths: []\n };\n }\n\n var childrenDirtyTree = node.children.map(function (c) {\n return _this.buildDirtyTree(c);\n }).filter(function (c) {\n return c.paths.length > 0;\n });\n var name = (_a = node instanceof Group$1 ? node.name : null, _a !== null && _a !== void 0 ? _a : node.id);\n var paths = childrenDirtyTree.length === 0 ? [name] : childrenDirtyTree.map(function (c) {\n return c.paths;\n }).reduce(function (r, p) {\n return r.concat(p);\n }, []).map(function (p) {\n return name + \".\" + p;\n });\n return {\n dirtyTree: __assign$v({\n name: name,\n node: node,\n dirty: RedrawType[node.dirty]\n }, childrenDirtyTree.map(function (c) {\n return c.dirtyTree;\n }).filter(function (t) {\n return t.dirty !== undefined;\n }).reduce(function (result, childTree) {\n result[childTree.name || ''] = childTree;\n return result;\n }, {})),\n paths: paths\n };\n };\n\n Scene.className = 'Scene';\n return Scene;\n}();\n\nvar Label$1 =\n/** @class */\nfunction () {\n function Label() {\n this.enabled = true;\n this.fontSize = 12;\n this.fontFamily = 'Verdana, sans-serif';\n this.fontStyle = undefined;\n this.fontWeight = undefined;\n this.color = 'rgba(70, 70, 70, 1)';\n }\n\n Label.prototype.getFont = function () {\n return getFont$2(this.fontSize, this.fontFamily, this.fontStyle, this.fontWeight);\n };\n\n return Label;\n}();\n\nvar __extends$2w = undefined && undefined.__extends || function () {\n var _extendStatics60 = function extendStatics(d, b) {\n _extendStatics60 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics60(d, b);\n };\n\n return function (d, b) {\n _extendStatics60(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$y = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$g = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$y(arguments[i]));\n }\n\n return ar;\n};\n\nvar __values$k = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n/** Modes of matching user interactions to rendered nodes (e.g. hover or click) */\n\n\nvar SeriesNodePickMode;\n\n(function (SeriesNodePickMode) {\n /** Pick matches based upon pick coordinates being inside a matching shape/marker. */\n SeriesNodePickMode[SeriesNodePickMode[\"EXACT_SHAPE_MATCH\"] = 0] = \"EXACT_SHAPE_MATCH\";\n /** Pick matches by nearest category/X-axis value, then distance within that category/X-value. */\n\n SeriesNodePickMode[SeriesNodePickMode[\"NEAREST_BY_MAIN_AXIS_FIRST\"] = 1] = \"NEAREST_BY_MAIN_AXIS_FIRST\";\n /** Pick matches by nearest category value, then distance within that category. */\n\n SeriesNodePickMode[SeriesNodePickMode[\"NEAREST_BY_MAIN_CATEGORY_AXIS_FIRST\"] = 2] = \"NEAREST_BY_MAIN_CATEGORY_AXIS_FIRST\";\n /** Pick matches based upon distance to ideal position */\n\n SeriesNodePickMode[SeriesNodePickMode[\"NEAREST_NODE\"] = 3] = \"NEAREST_NODE\";\n})(SeriesNodePickMode || (SeriesNodePickMode = {}));\n\nvar SeriesItemHighlightStyle =\n/** @class */\nfunction () {\n function SeriesItemHighlightStyle() {\n this.fill = 'yellow';\n this.fillOpacity = undefined;\n this.stroke = undefined;\n this.strokeWidth = undefined;\n }\n\n return SeriesItemHighlightStyle;\n}();\n\nvar SeriesHighlightStyle =\n/** @class */\nfunction () {\n function SeriesHighlightStyle() {\n this.strokeWidth = undefined;\n this.dimOpacity = undefined;\n this.enabled = undefined;\n }\n\n return SeriesHighlightStyle;\n}();\n\nvar HighlightStyle =\n/** @class */\nfunction () {\n function HighlightStyle() {\n /**\n * @deprecated Use item.fill instead.\n */\n this.fill = undefined;\n /**\n * @deprecated Use item.stroke instead.\n */\n\n this.stroke = undefined;\n /**\n * @deprecated Use item.strokeWidth instead.\n */\n\n this.strokeWidth = undefined;\n this.item = new SeriesItemHighlightStyle();\n this.series = new SeriesHighlightStyle();\n }\n\n __decorate$1f([Deprecated('Use item.fill instead.')], HighlightStyle.prototype, \"fill\", void 0);\n\n __decorate$1f([Deprecated('Use item.stroke instead.')], HighlightStyle.prototype, \"stroke\", void 0);\n\n __decorate$1f([Deprecated('Use item.strokeWidth instead.')], HighlightStyle.prototype, \"strokeWidth\", void 0);\n\n return HighlightStyle;\n}();\n\nvar SeriesTooltip =\n/** @class */\nfunction () {\n function SeriesTooltip() {\n this.enabled = true;\n }\n\n return SeriesTooltip;\n}();\n\nvar Series =\n/** @class */\nfunction (_super) {\n __extends$2w(Series, _super);\n\n function Series(_a) {\n var _b = _a === void 0 ? {} : _a,\n _c = _b.seriesGroupUsesLayer,\n seriesGroupUsesLayer = _c === void 0 ? true : _c,\n _d = _b.pickModes,\n pickModes = _d === void 0 ? [SeriesNodePickMode.NEAREST_BY_MAIN_AXIS_FIRST] : _d;\n\n var _this = _super.call(this) || this;\n\n _this.id = createId$1(_this); // The group node that contains all the nodes used to render this series.\n\n _this.group = new Group$1();\n _this.directions = [ChartAxisDirection.X, ChartAxisDirection.Y];\n _this.directionKeys = {}; // Flag to determine if we should recalculate node data.\n\n _this.nodeDataRefresh = true;\n _this.label = new Label$1();\n _this._data = undefined;\n _this._visible = true;\n _this.showInLegend = true;\n _this.cursor = 'default';\n _this.highlightStyle = new HighlightStyle();\n var group = _this.group;\n _this.seriesGroup = group.appendChild(new Group$1({\n name: _this.id + \"-series\",\n layer: seriesGroupUsesLayer,\n zIndex: Layers.SERIES_LAYER_ZINDEX\n }));\n _this.pickGroup = _this.seriesGroup.appendChild(new Group$1());\n _this.highlightGroup = group.appendChild(new Group$1({\n name: _this.id + \"-highlight\",\n layer: true,\n zIndex: Layers.SERIES_LAYER_ZINDEX,\n zIndexSubOrder: [_this.id, 15000],\n optimiseDirtyTracking: true\n }));\n _this.highlightNode = _this.highlightGroup.appendChild(new Group$1());\n _this.highlightLabel = _this.highlightGroup.appendChild(new Group$1());\n _this.highlightNode.zIndex = 0;\n _this.highlightLabel.zIndex = 10;\n _this.pickModes = pickModes;\n return _this;\n }\n\n Object.defineProperty(Series.prototype, \"type\", {\n get: function get() {\n return this.constructor.type || '';\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Series.prototype, \"data\", {\n get: function get() {\n return this._data;\n },\n set: function set(input) {\n this._data = input;\n this.nodeDataRefresh = true;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Series.prototype, \"visible\", {\n get: function get() {\n return this._visible;\n },\n set: function set(value) {\n this._visible = value;\n this.visibleChanged();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Series.prototype, \"grouped\", {\n set: function set(g) {\n if (g === true) {\n throw new Error(\"AG Charts - grouped: true is unsupported for series of type: \" + this.type);\n }\n },\n enumerable: true,\n configurable: true\n });\n\n Series.prototype.setColors = function (_fills, _strokes) {// Override point for subclasses.\n }; // Returns the actual keys used (to fetch the values from `data` items) for the given direction.\n\n\n Series.prototype.getKeys = function (direction) {\n var _this = this;\n\n var directionKeys = this.directionKeys;\n var keys = directionKeys && directionKeys[direction];\n var values = [];\n\n if (keys) {\n keys.forEach(function (key) {\n var value = _this[key];\n\n if (value) {\n if (Array.isArray(value)) {\n values.push.apply(values, __spread$g(value));\n } else {\n values.push(value);\n }\n }\n });\n }\n\n return values;\n }; // Indicate that something external changed and we should recalculate nodeData.\n\n\n Series.prototype.markNodeDataDirty = function () {\n this.nodeDataRefresh = true;\n };\n\n Series.prototype.visibleChanged = function () {// Override point for this.visible change post-processing.\n };\n\n Series.prototype.getOpacity = function (datum) {\n var _a = this.highlightStyle.series,\n _b = _a.dimOpacity,\n dimOpacity = _b === void 0 ? 1 : _b,\n _c = _a.enabled,\n enabled = _c === void 0 ? true : _c;\n var defaultOpacity = 1;\n\n if (enabled === false || dimOpacity === defaultOpacity) {\n return defaultOpacity;\n }\n\n switch (this.isItemIdHighlighted(datum)) {\n case 'no-highlight':\n case 'highlighted':\n return defaultOpacity;\n\n case 'peer-highlighted':\n case 'other-highlighted':\n return dimOpacity;\n }\n };\n\n Series.prototype.getStrokeWidth = function (defaultStrokeWidth, datum) {\n var _a = this.highlightStyle.series,\n strokeWidth = _a.strokeWidth,\n _b = _a.enabled,\n enabled = _b === void 0 ? true : _b;\n\n if (enabled === false || strokeWidth === undefined) {\n // No change in styling for highlight cases.\n return defaultStrokeWidth;\n }\n\n switch (this.isItemIdHighlighted(datum)) {\n case 'highlighted':\n return strokeWidth;\n\n case 'no-highlight':\n case 'other-highlighted':\n case 'peer-highlighted':\n return defaultStrokeWidth;\n }\n };\n\n Series.prototype.isItemIdHighlighted = function (datum) {\n var _a = this.chart,\n _b = _a === void 0 ? {} : _a,\n _c = _b.highlightedDatum,\n _d = _c === void 0 ? {} : _c,\n _e = _d.series,\n series = _e === void 0 ? undefined : _e,\n _f = _d.itemId,\n itemId = _f === void 0 ? undefined : _f,\n _g = _b.highlightedDatum,\n highlightedDatum = _g === void 0 ? undefined : _g;\n\n var highlighting = series != null;\n\n if (!highlighting) {\n // Highlighting not active.\n return 'no-highlight';\n }\n\n if (series !== this) {\n // Highlighting active, this series not highlighted.\n return 'other-highlighted';\n }\n\n if (itemId === undefined) {\n // Series doesn't use itemIds - so no further refinement needed, series is highlighted.\n return 'highlighted';\n }\n\n if (datum && highlightedDatum !== datum && itemId !== datum.itemId) {\n // A peer (in same Series instance) sub-series has highlight active, but this sub-series\n // does not.\n return 'peer-highlighted';\n }\n\n return 'highlighted';\n };\n\n Series.prototype.pickNode = function (point, limitPickModes) {\n var e_1, _a;\n\n var _b = this,\n pickModes = _b.pickModes,\n visible = _b.visible,\n group = _b.group;\n\n if (!visible || !group.visible) {\n return;\n }\n\n try {\n for (var pickModes_1 = __values$k(pickModes), pickModes_1_1 = pickModes_1.next(); !pickModes_1_1.done; pickModes_1_1 = pickModes_1.next()) {\n var pickMode = pickModes_1_1.value;\n\n if (limitPickModes && !limitPickModes.includes(pickMode)) {\n continue;\n }\n\n var match = undefined;\n\n switch (pickMode) {\n case SeriesNodePickMode.EXACT_SHAPE_MATCH:\n match = this.pickNodeExactShape(point);\n break;\n\n case SeriesNodePickMode.NEAREST_BY_MAIN_AXIS_FIRST:\n case SeriesNodePickMode.NEAREST_BY_MAIN_CATEGORY_AXIS_FIRST:\n match = this.pickNodeMainAxisFirst(point, pickMode === SeriesNodePickMode.NEAREST_BY_MAIN_CATEGORY_AXIS_FIRST);\n break;\n\n case SeriesNodePickMode.NEAREST_NODE:\n match = this.pickNodeClosestDatum(point);\n break;\n }\n\n if (match) {\n return {\n pickMode: pickMode,\n match: match.datum,\n distance: match.distance\n };\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (pickModes_1_1 && !pickModes_1_1.done && (_a = pickModes_1.return)) _a.call(pickModes_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n };\n\n Series.prototype.pickNodeExactShape = function (point) {\n var match = this.pickGroup.pickNode(point.x, point.y);\n\n if (match) {\n return {\n datum: match.datum,\n distance: 0\n };\n }\n };\n\n Series.prototype.pickNodeClosestDatum = function (_point) {\n // Override point for sub-classes - but if this is invoked, the sub-class specified it wants\n // to use this feature.\n throw new Error('AG Charts - Series.pickNodeClosestDatum() not implemented');\n };\n\n Series.prototype.pickNodeMainAxisFirst = function (_point, _requireCategoryAxis) {\n // Override point for sub-classes - but if this is invoked, the sub-class specified it wants\n // to use this feature.\n throw new Error('AG Charts - Series.pickNodeMainAxisFirst() not implemented');\n };\n\n Series.prototype.fireNodeClickEvent = function (_event, _datum) {// Override point for subclasses.\n };\n\n Series.prototype.toggleSeriesItem = function (_itemId, enabled) {\n this.visible = enabled;\n this.nodeDataRefresh = true;\n };\n\n Series.prototype.fixNumericExtent = function (extent, axis) {\n if (extent === undefined) {\n // Don't return a range, there is no range.\n return [];\n }\n\n var _a = __read$y(extent, 2),\n min = _a[0],\n max = _a[1];\n\n min = +min;\n max = +max;\n\n if (min === 0 && max === 0) {\n // domain has zero length and the single valid value is 0. Use the default of [0, 1].\n return [0, 1];\n }\n\n if (min === Infinity && max === -Infinity) {\n // There's no data in the domain.\n return [];\n }\n\n if (min === Infinity) {\n min = 0;\n }\n\n if (max === -Infinity) {\n max = 0;\n }\n\n if (min === max) {\n // domain has zero length, there is only a single valid value in data\n if (axis instanceof TimeAxis) {\n // numbers in domain correspond to Unix timestamps\n // automatically expand domain by 1 in each direction\n min -= 1;\n max += 1;\n } else {\n var padding = Math.abs(min * 0.01);\n min -= padding;\n max += padding;\n }\n }\n\n if (!(isNumber$1(min) && isNumber$1(max))) {\n return [];\n }\n\n return [min, max];\n };\n\n Series.highlightedZIndex = 1000000000000;\n return Series;\n}(Observable$1);\n\nvar __extends$2v = undefined && undefined.__extends || function () {\n var _extendStatics61 = function extendStatics(d, b) {\n _extendStatics61 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics61(d, b);\n };\n\n return function (d, b) {\n _extendStatics61(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar Padding$1 =\n/** @class */\nfunction (_super) {\n __extends$2v(Padding, _super);\n\n function Padding(top, right, bottom, left) {\n if (top === void 0) {\n top = 0;\n }\n\n if (right === void 0) {\n right = top;\n }\n\n if (bottom === void 0) {\n bottom = top;\n }\n\n if (left === void 0) {\n left = right;\n }\n\n var _this = _super.call(this) || this;\n\n _this.top = top;\n _this.right = right;\n _this.bottom = bottom;\n _this.left = left;\n return _this;\n }\n\n Padding.prototype.clear = function () {\n this.top = this.right = this.bottom = this.left = 0;\n };\n\n return Padding;\n}(Observable$1);\n\nvar Gradient =\n/** @class */\nfunction () {\n function Gradient() {\n this.stops = [];\n }\n\n return Gradient;\n}();\n\nvar __extends$2u = undefined && undefined.__extends || function () {\n var _extendStatics62 = function extendStatics(d, b) {\n _extendStatics62 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics62(d, b);\n };\n\n return function (d, b) {\n _extendStatics62(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar LinearGradient =\n/** @class */\nfunction (_super) {\n __extends$2u(LinearGradient, _super);\n\n function LinearGradient() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.angle = 0;\n return _this;\n }\n\n LinearGradient.prototype.createGradient = function (ctx, bbox) {\n var stops = this.stops;\n var radians = this.angle % 360 * Math.PI / 180;\n var cos = Math.cos(radians);\n var sin = Math.sin(radians);\n var w = bbox.width;\n var h = bbox.height;\n var cx = bbox.x + w * 0.5;\n var cy = bbox.y + h * 0.5;\n\n if (w > 0 && h > 0) {\n var l = Math.sqrt(h * h + w * w) * Math.abs(Math.cos(radians - Math.atan(h / w))) / 2;\n var gradient_1 = ctx.createLinearGradient(cx + cos * l, cy + sin * l, cx - cos * l, cy - sin * l);\n stops.forEach(function (stop) {\n gradient_1.addColorStop(stop.offset, stop.color);\n });\n return gradient_1;\n }\n\n return 'black';\n };\n\n return LinearGradient;\n}(Gradient);\n\nvar __extends$2t = undefined && undefined.__extends || function () {\n var _extendStatics63 = function extendStatics(d, b) {\n _extendStatics63 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics63(d, b);\n };\n\n return function (d, b) {\n _extendStatics63(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar RectSizing;\n\n(function (RectSizing) {\n RectSizing[RectSizing[\"Content\"] = 0] = \"Content\";\n RectSizing[RectSizing[\"Border\"] = 1] = \"Border\";\n})(RectSizing || (RectSizing = {}));\n\nvar Rect =\n/** @class */\nfunction (_super) {\n __extends$2t(Rect, _super);\n\n function Rect() {\n var _this = _super.call(this, function (ctx) {\n return _this.renderRect(ctx);\n }) || this;\n\n _this.borderPath = new Path2D$1();\n _this.x = 0;\n _this.y = 0;\n _this.width = 10;\n _this.height = 10;\n _this.radius = 0;\n /**\n * If `true`, the rect is aligned to the pixel grid for crisp looking lines.\n * Animated rects may not look nice with this option enabled, for example\n * when a rect is translated by a sub-pixel value on each frame.\n */\n\n _this.crisp = false;\n _this.gradient = false;\n _this.lastUpdatePathStrokeWidth = Shape$1.defaultStyles.strokeWidth;\n _this.effectiveStrokeWidth = Shape$1.defaultStyles.strokeWidth;\n return _this;\n }\n\n Rect.prototype.updateGradientInstance = function () {\n var fill = this.fill;\n\n if (this.gradient) {\n if (fill) {\n var gradient = new LinearGradient();\n gradient.angle = 270;\n gradient.stops = [{\n offset: 0,\n color: Color$1.fromString(fill).brighter().toString()\n }, {\n offset: 1,\n color: Color$1.fromString(fill).darker().toString()\n }];\n this.gradientInstance = gradient;\n }\n } else {\n this.gradientInstance = undefined;\n }\n\n this.gradientFill = fill;\n };\n\n Rect.prototype.isDirtyPath = function () {\n var _a;\n\n if (this.lastUpdatePathStrokeWidth !== this.strokeWidth) {\n return true;\n }\n\n if (this.path.isDirty() || this.borderPath.isDirty() || ((_a = this.clipPath) === null || _a === void 0 ? void 0 : _a.isDirty())) {\n return true;\n }\n\n return false;\n };\n\n Rect.prototype.updatePath = function () {\n var _a;\n\n var _b = this,\n path = _b.path,\n borderPath = _b.borderPath,\n crisp = _b.crisp;\n\n var _c = this,\n x = _c.x,\n y = _c.y,\n w = _c.width,\n h = _c.height,\n strokeWidth = _c.strokeWidth;\n\n path.clear({\n trackChanges: true\n });\n borderPath.clear({\n trackChanges: true\n });\n\n if (crisp) {\n // Order matters here, since we need unaligned x/y for w/h calculations.\n w = this.align(x, w);\n h = this.align(y, h);\n x = this.align(x);\n y = this.align(y);\n }\n\n if (strokeWidth) {\n if (strokeWidth < w && strokeWidth < h) {\n var halfStrokeWidth = strokeWidth / 2;\n x += halfStrokeWidth;\n y += halfStrokeWidth;\n w -= strokeWidth;\n h -= strokeWidth; // Clipping not needed in this case; fill to center of stroke.\n\n this.borderClipPath = undefined;\n path.rect(x, y, w, h);\n } else {\n // Skip the fill and just render the stroke.\n this.borderClipPath = (_a = this.borderClipPath, _a !== null && _a !== void 0 ? _a : new Path2D$1());\n this.borderClipPath.clear({\n trackChanges: true\n });\n this.borderClipPath.rect(x, y, w, h);\n }\n\n borderPath.rect(x, y, w, h);\n } else {\n // No borderPath needed, and thus no clipPath needed either. Fill to full extent of\n // Rect.\n this.borderClipPath = undefined;\n path.rect(x, y, w, h);\n }\n\n this.effectiveStrokeWidth = strokeWidth;\n this.lastUpdatePathStrokeWidth = strokeWidth;\n };\n\n Rect.prototype.computeBBox = function () {\n var _a = this,\n x = _a.x,\n y = _a.y,\n width = _a.width,\n height = _a.height;\n\n return new BBox$1(x, y, width, height);\n };\n\n Rect.prototype.isPointInPath = function (x, y) {\n var point = this.transformPoint(x, y);\n var bbox = this.computeBBox();\n return bbox.containsPoint(point.x, point.y);\n };\n\n Rect.prototype.renderRect = function (ctx) {\n var _a, _b;\n\n var _c = this,\n stroke = _c.stroke,\n effectiveStrokeWidth = _c.effectiveStrokeWidth,\n fill = _c.fill,\n path = _c.path,\n borderPath = _c.borderPath,\n borderClipPath = _c.borderClipPath,\n opacity = _c.opacity;\n\n var borderActive = !!stroke && !!effectiveStrokeWidth;\n\n if (fill) {\n var _d = this,\n gradientFill = _d.gradientFill,\n fillOpacity = _d.fillOpacity,\n fillShadow = _d.fillShadow;\n\n if (fill !== gradientFill) {\n this.updateGradientInstance();\n }\n\n var gradientInstance = this.gradientInstance;\n\n if (gradientInstance) {\n ctx.fillStyle = gradientInstance.createGradient(ctx, this.computeBBox());\n } else {\n ctx.fillStyle = fill;\n }\n\n ctx.globalAlpha = opacity * fillOpacity; // The canvas context scaling (depends on the device's pixel ratio)\n // has no effect on shadows, so we have to account for the pixel ratio\n // manually here.\n\n if (fillShadow && fillShadow.enabled) {\n var pixelRatio = (_b = (_a = this.scene) === null || _a === void 0 ? void 0 : _a.canvas.pixelRatio, _b !== null && _b !== void 0 ? _b : 1);\n ctx.shadowColor = fillShadow.color;\n ctx.shadowOffsetX = fillShadow.xOffset * pixelRatio;\n ctx.shadowOffsetY = fillShadow.yOffset * pixelRatio;\n ctx.shadowBlur = fillShadow.blur * pixelRatio;\n }\n\n path.draw(ctx);\n ctx.fill();\n ctx.shadowColor = 'rgba(0, 0, 0, 0)';\n }\n\n if (borderActive) {\n var _e = this,\n strokeOpacity = _e.strokeOpacity,\n lineDash = _e.lineDash,\n lineDashOffset = _e.lineDashOffset,\n lineCap = _e.lineCap,\n lineJoin = _e.lineJoin;\n\n if (borderClipPath) {\n // strokeWidth is larger than width or height, so use clipping to render correctly.\n // This is the simplest way to achieve the correct rendering due to nuances with ~0\n // width/height lines in Canvas operations.\n borderClipPath.draw(ctx);\n ctx.clip();\n }\n\n borderPath.draw(ctx);\n ctx.strokeStyle = stroke;\n ctx.globalAlpha = opacity * strokeOpacity;\n ctx.lineWidth = effectiveStrokeWidth;\n\n if (lineDash) {\n ctx.setLineDash(lineDash);\n }\n\n if (lineDashOffset) {\n ctx.lineDashOffset = lineDashOffset;\n }\n\n if (lineCap) {\n ctx.lineCap = lineCap;\n }\n\n if (lineJoin) {\n ctx.lineJoin = lineJoin;\n }\n\n ctx.stroke();\n }\n };\n\n Rect.className = 'Rect';\n\n __decorate$1e([ScenePathChangeDetection()], Rect.prototype, \"x\", void 0);\n\n __decorate$1e([ScenePathChangeDetection()], Rect.prototype, \"y\", void 0);\n\n __decorate$1e([ScenePathChangeDetection()], Rect.prototype, \"width\", void 0);\n\n __decorate$1e([ScenePathChangeDetection()], Rect.prototype, \"height\", void 0);\n\n __decorate$1e([ScenePathChangeDetection()], Rect.prototype, \"radius\", void 0);\n\n __decorate$1e([ScenePathChangeDetection()], Rect.prototype, \"crisp\", void 0);\n\n __decorate$1e([ScenePathChangeDetection({\n changeCb: function changeCb(r) {\n return r.updateGradientInstance();\n }\n })], Rect.prototype, \"gradient\", void 0);\n\n return Rect;\n}(Path$1);\n\nvar __extends$2s = undefined && undefined.__extends || function () {\n var _extendStatics64 = function extendStatics(d, b) {\n _extendStatics64 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics64(d, b);\n };\n\n return function (d, b) {\n _extendStatics64(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __values$j = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar Marker$1 =\n/** @class */\nfunction (_super) {\n __extends$2s(Marker, _super);\n\n function Marker() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.x = 0;\n _this.y = 0;\n _this.size = 12;\n return _this;\n }\n\n Marker.prototype.computeBBox = function () {\n var _a = this,\n x = _a.x,\n y = _a.y,\n size = _a.size;\n\n var half = size / 2;\n return new BBox$1(x - half, y - half, size, size);\n };\n\n Marker.prototype.applyPath = function (s, moves) {\n var e_1, _a;\n\n var path = this.path;\n\n var _b = this,\n x = _b.x,\n y = _b.y;\n\n path.clear();\n\n try {\n for (var moves_1 = __values$j(moves), moves_1_1 = moves_1.next(); !moves_1_1.done; moves_1_1 = moves_1.next()) {\n var _c = moves_1_1.value,\n mx = _c.x,\n my = _c.y,\n t = _c.t;\n x += mx * s;\n y += my * s;\n\n if (t === 'move') {\n path.moveTo(x, y);\n } else {\n path.lineTo(x, y);\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (moves_1_1 && !moves_1_1.done && (_a = moves_1.return)) _a.call(moves_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n path.closePath();\n };\n\n __decorate$1d([ScenePathChangeDetection()], Marker.prototype, \"x\", void 0);\n\n __decorate$1d([ScenePathChangeDetection()], Marker.prototype, \"y\", void 0);\n\n __decorate$1d([ScenePathChangeDetection({\n convertor: Math.abs\n })], Marker.prototype, \"size\", void 0);\n\n return Marker;\n}(Path$1);\n\nvar __extends$2r = undefined && undefined.__extends || function () {\n var _extendStatics65 = function extendStatics(d, b) {\n _extendStatics65 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics65(d, b);\n };\n\n return function (d, b) {\n _extendStatics65(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar Square$1 =\n/** @class */\nfunction (_super) {\n __extends$2r(Square, _super);\n\n function Square() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n Square.prototype.updatePath = function () {\n var _a = this,\n path = _a.path,\n x = _a.x,\n y = _a.y;\n\n var hs = this.size / 2;\n path.clear();\n path.moveTo(this.align(x - hs), this.align(y - hs));\n path.lineTo(this.align(x + hs), this.align(y - hs));\n path.lineTo(this.align(x + hs), this.align(y + hs));\n path.lineTo(this.align(x - hs), this.align(y + hs));\n path.closePath();\n };\n\n Square.className = 'Square';\n return Square;\n}(Marker$1);\n\nvar __extends$2q = undefined && undefined.__extends || function () {\n var _extendStatics66 = function extendStatics(d, b) {\n _extendStatics66 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics66(d, b);\n };\n\n return function (d, b) {\n _extendStatics66(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar MarkerLabel =\n/** @class */\nfunction (_super) {\n __extends$2q(MarkerLabel, _super);\n\n function MarkerLabel() {\n var _this = _super.call(this) || this;\n\n _this.label = new Text$1();\n _this._marker = new Square$1();\n _this._markerSize = 15;\n _this._spacing = 8;\n var label = _this.label;\n label.textBaseline = 'middle';\n label.fontSize = 12;\n label.fontFamily = 'Verdana, sans-serif';\n label.fill = 'black'; // For better looking vertical alignment of labels to markers.\n\n label.y = HdpiCanvas$1.has.textMetrics ? 1 : 0;\n\n _this.append([_this.marker, label]);\n\n _this.update();\n\n return _this;\n }\n\n Object.defineProperty(MarkerLabel.prototype, \"text\", {\n get: function get() {\n return this.label.text;\n },\n set: function set(value) {\n this.label.text = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MarkerLabel.prototype, \"fontStyle\", {\n get: function get() {\n return this.label.fontStyle;\n },\n set: function set(value) {\n this.label.fontStyle = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MarkerLabel.prototype, \"fontWeight\", {\n get: function get() {\n return this.label.fontWeight;\n },\n set: function set(value) {\n this.label.fontWeight = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MarkerLabel.prototype, \"fontSize\", {\n get: function get() {\n return this.label.fontSize;\n },\n set: function set(value) {\n this.label.fontSize = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MarkerLabel.prototype, \"fontFamily\", {\n get: function get() {\n return this.label.fontFamily;\n },\n set: function set(value) {\n this.label.fontFamily = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MarkerLabel.prototype, \"color\", {\n get: function get() {\n return this.label.fill;\n },\n set: function set(value) {\n this.label.fill = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MarkerLabel.prototype, \"marker\", {\n get: function get() {\n return this._marker;\n },\n set: function set(value) {\n if (this._marker !== value) {\n this.removeChild(this._marker);\n this._marker = value;\n this.appendChild(value);\n this.update();\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MarkerLabel.prototype, \"markerSize\", {\n get: function get() {\n return this._markerSize;\n },\n set: function set(value) {\n if (this._markerSize !== value) {\n this._markerSize = value;\n this.update();\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MarkerLabel.prototype, \"markerFill\", {\n get: function get() {\n return this.marker.fill;\n },\n set: function set(value) {\n this.marker.fill = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MarkerLabel.prototype, \"markerStroke\", {\n get: function get() {\n return this.marker.stroke;\n },\n set: function set(value) {\n this.marker.stroke = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MarkerLabel.prototype, \"markerStrokeWidth\", {\n get: function get() {\n return this.marker.strokeWidth;\n },\n set: function set(value) {\n this.marker.strokeWidth = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MarkerLabel.prototype, \"markerFillOpacity\", {\n get: function get() {\n return this.marker.fillOpacity;\n },\n set: function set(value) {\n this.marker.fillOpacity = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MarkerLabel.prototype, \"markerStrokeOpacity\", {\n get: function get() {\n return this.marker.strokeOpacity;\n },\n set: function set(value) {\n this.marker.strokeOpacity = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MarkerLabel.prototype, \"spacing\", {\n get: function get() {\n return this._spacing;\n },\n set: function set(value) {\n if (this._spacing !== value) {\n this._spacing = value;\n this.update();\n }\n },\n enumerable: true,\n configurable: true\n });\n\n MarkerLabel.prototype.update = function () {\n var marker = this.marker;\n var markerSize = this.markerSize;\n marker.size = markerSize;\n this.label.x = markerSize / 2 + this.spacing;\n };\n\n MarkerLabel.prototype.render = function (renderCtx) {\n // Cannot override field Group.opacity with get/set pair, so\n // propagate opacity changes here.\n this.marker.opacity = this.opacity;\n this.label.opacity = this.opacity;\n\n _super.prototype.render.call(this, renderCtx);\n };\n\n MarkerLabel.className = 'MarkerLabel';\n return MarkerLabel;\n}(Group$1);\n\nvar __extends$2p = undefined && undefined.__extends || function () {\n var _extendStatics67 = function extendStatics(d, b) {\n _extendStatics67 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics67(d, b);\n };\n\n return function (d, b) {\n _extendStatics67(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar Circle$1 =\n/** @class */\nfunction (_super) {\n __extends$2p(Circle, _super);\n\n function Circle() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n Circle.prototype.updatePath = function () {\n var _a = this,\n x = _a.x,\n y = _a.y,\n path = _a.path,\n size = _a.size;\n\n var r = size / 2;\n path.clear();\n path.cubicArc(x, y, r, r, 0, 0, Math.PI * 2, 0);\n path.closePath();\n };\n\n Circle.className = 'Circle';\n return Circle;\n}(Marker$1);\n\nvar __extends$2o = undefined && undefined.__extends || function () {\n var _extendStatics68 = function extendStatics(d, b) {\n _extendStatics68 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics68(d, b);\n };\n\n return function (d, b) {\n _extendStatics68(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar Cross =\n/** @class */\nfunction (_super) {\n __extends$2o(Cross, _super);\n\n function Cross() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n Cross.prototype.updatePath = function () {\n var s = this.size / 4.2;\n\n _super.prototype.applyPath.call(this, s, Cross.moves);\n };\n\n Cross.className = 'Cross';\n Cross.moves = [{\n x: -1,\n y: 0,\n t: 'move'\n }, {\n x: -1,\n y: -1\n }, {\n x: +1,\n y: -1\n }, {\n x: +1,\n y: +1\n }, {\n x: +1,\n y: -1\n }, {\n x: +1,\n y: +1\n }, {\n x: -1,\n y: +1\n }, {\n x: +1,\n y: +1\n }, {\n x: -1,\n y: +1\n }, {\n x: -1,\n y: -1\n }, {\n x: -1,\n y: +1\n }, {\n x: -1,\n y: -1\n }];\n return Cross;\n}(Marker$1);\n\nvar __extends$2n = undefined && undefined.__extends || function () {\n var _extendStatics69 = function extendStatics(d, b) {\n _extendStatics69 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics69(d, b);\n };\n\n return function (d, b) {\n _extendStatics69(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar Diamond$1 =\n/** @class */\nfunction (_super) {\n __extends$2n(Diamond, _super);\n\n function Diamond() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n Diamond.prototype.updatePath = function () {\n var s = this.size / 2;\n\n _super.prototype.applyPath.call(this, s, Diamond.moves);\n };\n\n Diamond.className = 'Diamond';\n Diamond.moves = [{\n x: 0,\n y: -1,\n t: 'move'\n }, {\n x: +1,\n y: +1\n }, {\n x: -1,\n y: +1\n }, {\n x: -1,\n y: -1\n }, {\n x: +1,\n y: -1\n }];\n return Diamond;\n}(Marker$1);\n\nvar __extends$2m = undefined && undefined.__extends || function () {\n var _extendStatics70 = function extendStatics(d, b) {\n _extendStatics70 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics70(d, b);\n };\n\n return function (d, b) {\n _extendStatics70(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar Heart =\n/** @class */\nfunction (_super) {\n __extends$2m(Heart, _super);\n\n function Heart() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n Heart.prototype.rad = function (degree) {\n return degree / 180 * Math.PI;\n };\n\n Heart.prototype.updatePath = function () {\n var _a = this,\n x = _a.x,\n path = _a.path,\n size = _a.size,\n rad = _a.rad;\n\n var r = size / 4;\n var y = this.y + r / 2;\n path.clear();\n path.cubicArc(x - r, y - r, r, r, 0, rad(130), rad(330), 0);\n path.cubicArc(x + r, y - r, r, r, 0, rad(220), rad(50), 0);\n path.lineTo(x, y + r);\n path.closePath();\n };\n\n Heart.className = 'Heart';\n return Heart;\n}(Marker$1);\n\nvar __extends$2l = undefined && undefined.__extends || function () {\n var _extendStatics71 = function extendStatics(d, b) {\n _extendStatics71 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics71(d, b);\n };\n\n return function (d, b) {\n _extendStatics71(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar Plus =\n/** @class */\nfunction (_super) {\n __extends$2l(Plus, _super);\n\n function Plus() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n Plus.prototype.updatePath = function () {\n var s = this.size / 3;\n\n _super.prototype.applyPath.call(this, s, Plus.moves);\n };\n\n Plus.className = 'Plus';\n Plus.moves = [{\n x: -0.5,\n y: -0.5,\n t: 'move'\n }, {\n x: 0,\n y: -1\n }, {\n x: +1,\n y: 0\n }, {\n x: 0,\n y: +1\n }, {\n x: +1,\n y: 0\n }, {\n x: 0,\n y: +1\n }, {\n x: -1,\n y: 0\n }, {\n x: 0,\n y: +1\n }, {\n x: -1,\n y: 0\n }, {\n x: 0,\n y: -1\n }, {\n x: -1,\n y: 0\n }, {\n x: 0,\n y: -1\n }];\n return Plus;\n}(Marker$1);\n\nvar __extends$2k = undefined && undefined.__extends || function () {\n var _extendStatics72 = function extendStatics(d, b) {\n _extendStatics72 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics72(d, b);\n };\n\n return function (d, b) {\n _extendStatics72(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar Triangle =\n/** @class */\nfunction (_super) {\n __extends$2k(Triangle, _super);\n\n function Triangle() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n Triangle.prototype.updatePath = function () {\n var s = this.size * 1.1;\n\n _super.prototype.applyPath.call(this, s, Triangle.moves);\n };\n\n Triangle.className = 'Triangle';\n Triangle.moves = [{\n x: 0,\n y: -0.48,\n t: 'move'\n }, {\n x: 0.5,\n y: 0.87\n }, {\n x: -1,\n y: 0\n }];\n return Triangle;\n}(Marker$1); // This function is in its own file because putting it into SeriesMarker makes the Legend\n// suddenly aware of the series (it's an agnostic component), and putting it into Marker\n// introduces circular dependencies.\n\n\nfunction getMarker$1(shape) {\n if (shape === void 0) {\n shape = Square$1;\n }\n\n if (typeof shape === 'string') {\n switch (shape) {\n case 'circle':\n return Circle$1;\n\n case 'cross':\n return Cross;\n\n case 'diamond':\n return Diamond$1;\n\n case 'heart':\n return Heart;\n\n case 'plus':\n return Plus;\n\n case 'triangle':\n return Triangle;\n\n default:\n return Square$1;\n }\n }\n\n if (typeof shape === 'function') {\n return shape;\n }\n\n return Square$1;\n}\n\nvar __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$x = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$f = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$x(arguments[i]));\n }\n\n return ar;\n};\n\nvar __values$i = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar LegendOrientation;\n\n(function (LegendOrientation) {\n LegendOrientation[LegendOrientation[\"Vertical\"] = 0] = \"Vertical\";\n LegendOrientation[LegendOrientation[\"Horizontal\"] = 1] = \"Horizontal\";\n})(LegendOrientation || (LegendOrientation = {}));\n\nvar LegendPosition;\n\n(function (LegendPosition) {\n LegendPosition[\"Top\"] = \"top\";\n LegendPosition[\"Right\"] = \"right\";\n LegendPosition[\"Bottom\"] = \"bottom\";\n LegendPosition[\"Left\"] = \"left\";\n})(LegendPosition || (LegendPosition = {}));\n\nvar LegendLabel =\n/** @class */\nfunction () {\n function LegendLabel() {\n this.maxLength = undefined;\n this.color = 'black';\n this.fontStyle = undefined;\n this.fontWeight = undefined;\n this.fontSize = 12;\n this.fontFamily = 'Verdana, sans-serif';\n this.formatter = undefined;\n }\n\n LegendLabel.prototype.getFont = function () {\n return getFont$2(this.fontSize, this.fontFamily, this.fontStyle, this.fontWeight);\n };\n\n return LegendLabel;\n}();\n\nvar LegendMarker =\n/** @class */\nfunction () {\n function LegendMarker() {\n this.size = 15;\n /**\n * If the marker type is set, the legend will always use that marker type for all its items,\n * regardless of the type that comes from the `data`.\n */\n\n this._shape = undefined;\n /**\n * Padding between the marker and the label within each legend item.\n */\n\n this.padding = 8;\n this.strokeWidth = 1;\n }\n\n Object.defineProperty(LegendMarker.prototype, \"shape\", {\n get: function get() {\n return this._shape;\n },\n set: function set(value) {\n var _a;\n\n this._shape = value;\n (_a = this.parent) === null || _a === void 0 ? void 0 : _a.onMarkerShapeChange();\n },\n enumerable: true,\n configurable: true\n });\n return LegendMarker;\n}();\n\nvar LegendItem =\n/** @class */\nfunction () {\n function LegendItem() {\n this.marker = new LegendMarker();\n this.label = new LegendLabel();\n /** Used to constrain the width of legend items. */\n\n this.maxWidth = undefined;\n /**\n * The legend uses grid layout for its items, occupying as few columns as possible when positioned to left or right,\n * and as few rows as possible when positioned to top or bottom. This config specifies the amount of horizontal\n * padding between legend items.\n */\n\n this.paddingX = 16;\n /**\n * The legend uses grid layout for its items, occupying as few columns as possible when positioned to left or right,\n * and as few rows as possible when positioned to top or bottom. This config specifies the amount of vertical\n * padding between legend items.\n */\n\n this.paddingY = 8;\n }\n\n return LegendItem;\n}();\n\nvar NO_OP_LISTENER = function NO_OP_LISTENER() {// Default listener that does nothing.\n};\n\nvar LegendListeners =\n/** @class */\nfunction () {\n function LegendListeners() {\n this.legendItemClick = NO_OP_LISTENER;\n }\n\n return LegendListeners;\n}();\n\nvar Legend =\n/** @class */\nfunction () {\n function Legend() {\n this.id = createId$1(this);\n this.group = new Group$1({\n name: 'legend',\n layer: true,\n zIndex: Layers.LEGEND_ZINDEX\n });\n this.itemSelection = Selection$1.select(this.group).selectAll();\n this.oldSize = [0, 0];\n this.item = new LegendItem();\n this.listeners = new LegendListeners();\n this.truncatedItems = new Set();\n this._data = [];\n this._enabled = true;\n this.orientation = LegendOrientation.Vertical;\n this._position = LegendPosition.Right;\n /** Reverse the display order of legend items if `true`. */\n\n this.reverseOrder = undefined;\n /**\n * Spacing between the legend and the edge of the chart's element.\n */\n\n this.spacing = 20;\n this.characterWidths = new Map();\n this.size = [0, 0];\n this.item.marker.parent = this;\n }\n\n Object.defineProperty(Legend.prototype, \"data\", {\n get: function get() {\n return this._data;\n },\n set: function set(value) {\n this._data = value;\n this.group.visible = value.length > 0 && this.enabled;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Legend.prototype, \"enabled\", {\n get: function get() {\n return this._enabled;\n },\n set: function set(value) {\n this._enabled = value;\n this.group.visible = value && this.data.length > 0;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Legend.prototype, \"position\", {\n get: function get() {\n return this._position;\n },\n set: function set(value) {\n this._position = value;\n\n switch (value) {\n case 'right':\n case 'left':\n this.orientation = LegendOrientation.Vertical;\n break;\n\n case 'bottom':\n case 'top':\n this.orientation = LegendOrientation.Horizontal;\n break;\n }\n },\n enumerable: true,\n configurable: true\n });\n\n Legend.prototype.onMarkerShapeChange = function () {\n this.itemSelection = this.itemSelection.setData([]);\n this.itemSelection.exit.remove();\n this.group.markDirty(this.group, RedrawType.MINOR);\n };\n\n Legend.prototype.getCharacterWidths = function (font) {\n var characterWidths = this.characterWidths;\n\n if (characterWidths.has(font)) {\n return characterWidths.get(font);\n }\n\n var cw = {\n '...': HdpiCanvas$1.getTextSize('...', font).width\n };\n characterWidths.set(font, cw);\n return cw;\n };\n /**\n * The method is given the desired size of the legend, which only serves as a hint.\n * The vertically oriented legend will take as much horizontal space as needed, but will\n * respect the height constraints, and the horizontal legend will take as much vertical\n * space as needed in an attempt not to exceed the given width.\n * After the layout is done, the {@link size} will contain the actual size of the legend.\n * If the actual size is not the same as the previous actual size, the legend will fire\n * the 'layoutChange' event to communicate that another layout is needed, and the above\n * process should be repeated.\n * @param width\n * @param height\n */\n\n\n Legend.prototype.performLayout = function (width, height) {\n var _this = this;\n\n var _a = this.item,\n paddingX = _a.paddingX,\n paddingY = _a.paddingY,\n label = _a.label,\n maxWidth = _a.maxWidth,\n _b = _a.marker,\n markerSize = _b.size,\n markerPadding = _b.padding,\n markerShape = _b.shape,\n _c = _a.label,\n _d = _c.maxLength,\n maxLength = _d === void 0 ? Infinity : _d,\n fontStyle = _c.fontStyle,\n fontWeight = _c.fontWeight,\n fontSize = _c.fontSize,\n fontFamily = _c.fontFamily;\n\n var data = __spread$f(this.data);\n\n if (this.reverseOrder) {\n data.reverse();\n }\n\n var updateSelection = this.itemSelection.setData(data, function (_, datum) {\n var Marker = getMarker$1(markerShape || datum.marker.shape);\n return datum.id + '-' + datum.itemId + '-' + Marker.name;\n });\n updateSelection.exit.remove();\n var enterSelection = updateSelection.enter.append(MarkerLabel).each(function (node, datum) {\n var Marker = getMarker$1(markerShape || datum.marker.shape);\n node.marker = new Marker();\n });\n var itemSelection = this.itemSelection = updateSelection.merge(enterSelection);\n var itemCount = itemSelection.size; // Update properties that affect the size of the legend items and measure them.\n\n var bboxes = [];\n var font = label.getFont();\n var ellipsis = \"...\";\n var itemMaxWidthPercentage = 0.8;\n var maxItemWidth = maxWidth !== null && maxWidth !== void 0 ? maxWidth : width * itemMaxWidthPercentage;\n itemSelection.each(function (markerLabel, datum) {\n var e_1, _a;\n\n var _b;\n\n var text = (_b = datum.label.text, _b !== null && _b !== void 0 ? _b : '');\n markerLabel.markerSize = markerSize;\n markerLabel.spacing = markerPadding;\n markerLabel.fontStyle = fontStyle;\n markerLabel.fontWeight = fontWeight;\n markerLabel.fontSize = fontSize;\n markerLabel.fontFamily = fontFamily;\n var textChars = text.split('');\n var addEllipsis = false;\n\n if (text.length > maxLength) {\n text = \"\" + text.substring(0, maxLength);\n addEllipsis = true;\n }\n\n var labelWidth = markerSize + markerPadding + HdpiCanvas$1.getTextSize(text, font).width;\n\n if (labelWidth > maxItemWidth) {\n var truncatedText = '';\n\n var characterWidths = _this.getCharacterWidths(font);\n\n var cumCharSize = characterWidths[ellipsis];\n\n try {\n for (var textChars_1 = __values$i(textChars), textChars_1_1 = textChars_1.next(); !textChars_1_1.done; textChars_1_1 = textChars_1.next()) {\n var char = textChars_1_1.value;\n\n if (!characterWidths[char]) {\n characterWidths[char] = HdpiCanvas$1.getTextSize(char, font).width;\n }\n\n cumCharSize += characterWidths[char];\n\n if (cumCharSize > maxItemWidth) {\n break;\n }\n\n truncatedText += char;\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (textChars_1_1 && !textChars_1_1.done && (_a = textChars_1.return)) _a.call(textChars_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n text = truncatedText;\n addEllipsis = true;\n }\n\n var id = datum.itemId || datum.id;\n\n if (addEllipsis) {\n text += ellipsis;\n\n _this.truncatedItems.add(id);\n } else {\n _this.truncatedItems.delete(id);\n }\n\n markerLabel.text = text;\n bboxes.push(markerLabel.computeBBox());\n });\n var itemHeight = bboxes.length && bboxes[0].height;\n var rowCount = 0;\n var columnWidth = 0;\n var paddedItemsWidth = 0;\n var paddedItemsHeight = 0;\n width = Math.max(1, width);\n height = Math.max(1, height);\n\n switch (this.orientation) {\n case LegendOrientation.Horizontal:\n if (!(isFinite(width) && width > 0)) {\n return false;\n }\n\n rowCount = 0;\n var columnCount = 0; // Split legend items into columns until the width is suitable.\n\n do {\n var itemsWidth = 0;\n columnCount = 0;\n columnWidth = 0;\n rowCount++;\n var i = 0;\n\n while (i < itemCount) {\n var bbox = bboxes[i];\n\n if (bbox.width > columnWidth) {\n columnWidth = bbox.width;\n }\n\n i++;\n\n if (i % rowCount === 0) {\n itemsWidth += columnWidth;\n columnWidth = 0;\n columnCount++;\n }\n }\n\n if (i % rowCount !== 0) {\n itemsWidth += columnWidth;\n columnCount++;\n }\n\n paddedItemsWidth = itemsWidth + (columnCount - 1) * paddingX;\n } while (paddedItemsWidth > width && columnCount > 1);\n\n paddedItemsHeight = itemHeight * rowCount + (rowCount - 1) * paddingY;\n break;\n\n case LegendOrientation.Vertical:\n if (!(isFinite(height) && height > 0)) {\n return false;\n }\n\n rowCount = itemCount * 2; // Split legend items into columns until the height is suitable.\n\n do {\n rowCount = (rowCount >> 1) + rowCount % 2;\n columnWidth = 0;\n var itemsWidth = 0;\n var itemsHeight = 0;\n var columnCount_1 = 0;\n var i = 0;\n\n while (i < itemCount) {\n var bbox = bboxes[i];\n\n if (!columnCount_1) {\n itemsHeight += bbox.height;\n }\n\n if (bbox.width > columnWidth) {\n columnWidth = bbox.width;\n }\n\n i++;\n\n if (i % rowCount === 0) {\n itemsWidth += columnWidth;\n columnWidth = 0;\n columnCount_1++;\n }\n }\n\n if (i % rowCount !== 0) {\n itemsWidth += columnWidth;\n columnCount_1++;\n }\n\n paddedItemsWidth = itemsWidth + (columnCount_1 - 1) * paddingX;\n paddedItemsHeight = itemsHeight + (rowCount - 1) * paddingY;\n } while (paddedItemsHeight > height && rowCount > 1);\n\n break;\n } // Top-left corner of the first legend item.\n\n\n var startX = (width - paddedItemsWidth) / 2;\n var startY = (height - paddedItemsHeight) / 2;\n var x = 0;\n var y = 0;\n columnWidth = 0; // Position legend items using the layout computed above.\n\n itemSelection.each(function (markerLabel, _, i) {\n // Round off for pixel grid alignment to work properly.\n markerLabel.translationX = Math.floor(startX + x);\n markerLabel.translationY = Math.floor(startY + y);\n var bbox = bboxes[i];\n\n if (bbox.width > columnWidth) {\n columnWidth = bbox.width;\n }\n\n if ((i + 1) % rowCount === 0) {\n x += columnWidth + paddingX;\n y = 0;\n columnWidth = 0;\n } else {\n y += bbox.height + paddingY;\n }\n }); // Update legend item properties that don't affect the layout.\n\n this.update();\n var size = this.size;\n var oldSize = this.oldSize;\n size[0] = paddedItemsWidth;\n size[1] = paddedItemsHeight;\n\n if (size[0] !== oldSize[0] || size[1] !== oldSize[1]) {\n oldSize[0] = size[0];\n oldSize[1] = size[1];\n }\n };\n\n Legend.prototype.update = function () {\n var _a = this.item,\n strokeWidth = _a.marker.strokeWidth,\n color = _a.label.color;\n this.itemSelection.each(function (markerLabel, datum) {\n var marker = datum.marker;\n markerLabel.markerFill = marker.fill;\n markerLabel.markerStroke = marker.stroke;\n markerLabel.markerStrokeWidth = strokeWidth;\n markerLabel.markerFillOpacity = marker.fillOpacity;\n markerLabel.markerStrokeOpacity = marker.strokeOpacity;\n markerLabel.opacity = datum.enabled ? 1 : 0.5;\n markerLabel.color = color;\n });\n };\n\n Legend.prototype.getDatumForPoint = function (x, y) {\n var node = this.group.pickNode(x, y);\n\n if (node && node.parent) {\n return node.parent.datum;\n }\n };\n\n Legend.className = 'Legend';\n\n __decorate$1c([Validate(OPT_BOOLEAN)], Legend.prototype, \"reverseOrder\", void 0);\n\n return Legend;\n}();\n\nvar __values$h = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar SizeMonitor =\n/** @class */\nfunction () {\n function SizeMonitor() {}\n\n SizeMonitor.init = function () {\n var _this = this;\n\n var NativeResizeObserver = window.ResizeObserver;\n\n if (NativeResizeObserver) {\n this.resizeObserver = new NativeResizeObserver(function (entries) {\n var e_1, _a;\n\n try {\n for (var entries_1 = __values$h(entries), entries_1_1 = entries_1.next(); !entries_1_1.done; entries_1_1 = entries_1.next()) {\n var entry = entries_1_1.value;\n var _b = entry.contentRect,\n width = _b.width,\n height = _b.height;\n\n _this.checkSize(_this.elements.get(entry.target), entry.target, width, height);\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (entries_1_1 && !entries_1_1.done && (_a = entries_1.return)) _a.call(entries_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n });\n } else {\n // polyfill (more reliable even in browsers that support ResizeObserver)\n var step = function step() {\n _this.elements.forEach(function (entry, element) {\n _this.checkClientSize(element, entry);\n });\n };\n\n window.setInterval(step, 100);\n }\n\n this.ready = true;\n };\n\n SizeMonitor.checkSize = function (entry, element, width, height) {\n if (entry) {\n if (!entry.size || width !== entry.size.width || height !== entry.size.height) {\n entry.size = {\n width: width,\n height: height\n };\n entry.cb(entry.size, element);\n }\n }\n }; // Only a single callback is supported.\n\n\n SizeMonitor.observe = function (element, cb) {\n if (!this.ready) {\n this.init();\n }\n\n this.unobserve(element);\n\n if (this.resizeObserver) {\n this.resizeObserver.observe(element);\n }\n\n this.elements.set(element, {\n cb: cb\n }); // Ensure first size callback happens synchronously.\n\n this.checkClientSize(element, {\n cb: cb\n });\n };\n\n SizeMonitor.unobserve = function (element) {\n if (this.resizeObserver) {\n this.resizeObserver.unobserve(element);\n }\n\n this.elements.delete(element);\n };\n\n SizeMonitor.checkClientSize = function (element, entry) {\n var width = element.clientWidth ? element.clientWidth : 0;\n var height = element.clientHeight ? element.clientHeight : 0;\n this.checkSize(entry, element, width, height);\n };\n\n SizeMonitor.elements = new Map();\n SizeMonitor.ready = false;\n return SizeMonitor;\n}();\n\nfunction circleRectOverlap(cx, cy, r, x, y, w, h) {\n // Find closest horizontal and vertical edges.\n var edgeX = cx < x ? x : cx > x + w ? x + w : cx;\n var edgeY = cy < y ? y : cy > y + h ? y + h : cy; // Find distance to closest edges.\n\n var dx = cx - edgeX;\n var dy = cy - edgeY;\n var d = Math.sqrt(dx * dx + dy * dy);\n return d <= r;\n}\n\nfunction rectRectOverlap(x1, y1, w1, h1, x2, y2, w2, h2) {\n var xOverlap = x1 + w1 > x2 && x1 < x2 + w2;\n var yOverlap = y1 + h1 > y2 && y1 < y2 + h2;\n return xOverlap && yOverlap;\n}\n\nfunction rectContainsRect(r1x, r1y, r1w, r1h, r2x, r2y, r2w, r2h) {\n return r2x + r2w < r1x + r1w && r2x > r1x && r2y > r1y && r2y + r2h < r1y + r1h;\n}\n\nfunction isPointLabelDatum(x) {\n return x != null && typeof x.point === 'object' && typeof x.label === 'object';\n}\n/**\n * @param data Points and labels for one or more series. The order of series determines label placement precedence.\n * @param bounds Bounds to fit the labels into. If a label can't be fully contained, it doesn't fit.\n * @returns Placed labels for the given series (in the given order).\n */\n\n\nfunction placeLabels(data, bounds, padding) {\n if (padding === void 0) {\n padding = 5;\n }\n\n var result = [];\n data = data.map(function (d) {\n return d.slice().sort(function (a, b) {\n return b.point.size - a.point.size;\n });\n });\n\n for (var j = 0; j < data.length; j++) {\n var labels = result[j] = [];\n var datum = data[j];\n\n if (!(datum && datum.length && datum[0].label)) {\n continue;\n }\n\n var _loop_1 = function _loop_1(i, ln) {\n var d = datum[i];\n var l = d.label;\n var r = d.point.size * 0.5;\n var x = d.point.x - l.width * 0.5;\n var y = d.point.y - r - l.height - padding;\n var width = l.width,\n height = l.height;\n var withinBounds = !bounds || rectContainsRect(bounds.x, bounds.y, bounds.width, bounds.height, x, y, width, height);\n\n if (!withinBounds) {\n return \"continue\";\n }\n\n var overlapPoints = data.some(function (datum) {\n return datum.some(function (d) {\n return circleRectOverlap(d.point.x, d.point.y, d.point.size * 0.5, x, y, width, height);\n });\n });\n\n if (overlapPoints) {\n return \"continue\";\n }\n\n var overlapLabels = result.some(function (labels) {\n return labels.some(function (l) {\n return rectRectOverlap(l.x, l.y, l.width, l.height, x, y, width, height);\n });\n });\n\n if (overlapLabels) {\n return \"continue\";\n }\n\n labels.push({\n index: i,\n text: l.text,\n x: x,\n y: y,\n width: width,\n height: height,\n datum: d\n });\n };\n\n for (var i = 0, ln = datum.length; i < ln; i++) {\n _loop_1(i, ln);\n }\n }\n\n return result;\n}\n/**\n * Wrap a function in debouncing trigger function. A requestAnimationFrame() is scheduled\n * after the first schedule() call, and subsequent schedule() calls will be ignored until the\n * animation callback executes.\n */\n\n\nfunction debouncedAnimationFrame(cb) {\n return buildScheduler(function (cb) {\n return requestAnimationFrame(cb);\n }, cb);\n}\n\nfunction debouncedCallback(cb) {\n return buildScheduler(function (cb) {\n return setTimeout(cb, 0);\n }, cb);\n}\n\nfunction buildScheduler(scheduleFn, cb) {\n var scheduleCount = 0;\n return {\n schedule: function schedule() {\n if (scheduleCount === 0) {\n scheduleFn(function () {\n var count = scheduleCount;\n scheduleCount = 0;\n cb({\n count: count\n });\n });\n }\n\n scheduleCount++;\n }\n };\n}\n\nvar __extends$2j = undefined && undefined.__extends || function () {\n var _extendStatics73 = function extendStatics(d, b) {\n _extendStatics73 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics73(d, b);\n };\n\n return function (d, b) {\n _extendStatics73(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SeriesMarker =\n/** @class */\nfunction (_super) {\n __extends$2j(SeriesMarker, _super);\n\n function SeriesMarker() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.enabled = true;\n /**\n * One of the predefined marker names, or a marker constructor function (for user-defined markers).\n * A series will create one marker instance per data point.\n */\n\n _this.shape = Circle$1;\n _this.size = 6;\n /**\n * In case a series has the `sizeKey` set, the `sizeKey` values along with the `size` and `maxSize` configs\n * will be used to determine the size of the marker. All values will be mapped to a marker size\n * within the `[size, maxSize]` range, where the largest values will correspond to the `maxSize`\n * and the lowest to the `size`.\n */\n\n _this.maxSize = 30;\n _this.domain = undefined;\n _this.fill = undefined;\n _this.stroke = undefined;\n _this.strokeWidth = 1;\n _this.fillOpacity = undefined;\n _this.strokeOpacity = undefined;\n return _this;\n }\n\n __decorate$1b([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], SeriesMarker.prototype, \"enabled\", void 0);\n\n __decorate$1b([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], SeriesMarker.prototype, \"shape\", void 0);\n\n __decorate$1b([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], SeriesMarker.prototype, \"size\", void 0);\n\n __decorate$1b([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], SeriesMarker.prototype, \"maxSize\", void 0);\n\n __decorate$1b([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], SeriesMarker.prototype, \"domain\", void 0);\n\n __decorate$1b([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], SeriesMarker.prototype, \"fill\", void 0);\n\n __decorate$1b([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], SeriesMarker.prototype, \"stroke\", void 0);\n\n __decorate$1b([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], SeriesMarker.prototype, \"strokeWidth\", void 0);\n\n __decorate$1b([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], SeriesMarker.prototype, \"fillOpacity\", void 0);\n\n __decorate$1b([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], SeriesMarker.prototype, \"strokeOpacity\", void 0);\n\n return SeriesMarker;\n}(ChangeDetectable);\n\nvar __extends$2i = undefined && undefined.__extends || function () {\n var _extendStatics74 = function extendStatics(d, b) {\n _extendStatics74 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics74(d, b);\n };\n\n return function (d, b) {\n _extendStatics74(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$w = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$e = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$w(arguments[i]));\n }\n\n return ar;\n};\n\nvar __values$g = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar CartesianSeries =\n/** @class */\nfunction (_super) {\n __extends$2i(CartesianSeries, _super);\n\n function CartesianSeries(opts) {\n var _a;\n\n if (opts === void 0) {\n opts = {};\n }\n\n var _this = _super.call(this, {\n seriesGroupUsesLayer: true,\n pickModes: opts.pickModes\n }) || this;\n\n _this.highlightSelection = Selection$1.select(_this.highlightNode).selectAll();\n _this.highlightLabelSelection = Selection$1.select(_this.highlightLabel).selectAll();\n _this.subGroups = [];\n _this.subGroupId = 0;\n /**\n * The assumption is that the values will be reset (to `true`)\n * in the {@link yKeys} setter.\n */\n\n _this.seriesItemEnabled = new Map();\n _this.directionKeys = (_a = {}, _a[ChartAxisDirection.X] = ['xKey'], _a[ChartAxisDirection.Y] = ['yKey'], _a);\n var _b = opts.pickGroupIncludes,\n pickGroupIncludes = _b === void 0 ? ['datumNodes'] : _b,\n _c = opts.pathsPerSeries,\n pathsPerSeries = _c === void 0 ? 1 : _c,\n _d = opts.features,\n features = _d === void 0 ? [] : _d,\n _e = opts.pathsZIndexSubOrderOffset,\n pathsZIndexSubOrderOffset = _e === void 0 ? [] : _e;\n _this.opts = {\n pickGroupIncludes: pickGroupIncludes,\n pathsPerSeries: pathsPerSeries,\n features: features,\n pathsZIndexSubOrderOffset: pathsZIndexSubOrderOffset\n };\n return _this;\n }\n\n Object.defineProperty(CartesianSeries.prototype, \"contextNodeData\", {\n get: function get() {\n var _a;\n\n return (_a = this._contextNodeData) === null || _a === void 0 ? void 0 : _a.slice();\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Note: we are passing `isContinuousX` and `isContinuousY` into this method because it will\n * typically be called inside a loop and this check only needs to happen once.\n * @param x A domain value to be plotted along the x-axis.\n * @param y A domain value to be plotted along the y-axis.\n * @param isContinuousX Typically this will be the value of `xAxis.scale instanceof ContinuousScale`.\n * @param isContinuousY Typically this will be the value of `yAxis.scale instanceof ContinuousScale`.\n * @returns `[x, y]`, if both x and y are valid domain values for their respective axes/scales, or `undefined`.\n */\n\n CartesianSeries.prototype.checkDomainXY = function (x, y, isContinuousX, isContinuousY) {\n var isValidDatum = (isContinuousX && isContinuous$1(x) || !isContinuousX && isDiscrete(x)) && (isContinuousY && isContinuous$1(y) || !isContinuousY && isDiscrete(y));\n return isValidDatum ? [x, y] : undefined;\n };\n /**\n * Note: we are passing the xAxis and yAxis because the calling code is supposed to make sure\n * that series has both of them defined, and also to avoid one level of indirection,\n * e.g. `this.xAxis!.inRange(x)`, both of which are suboptimal in tight loops where this method is used.\n * @param x A range value to be plotted along the x-axis.\n * @param y A range value to be plotted along the y-axis.\n * @param xAxis The series' x-axis.\n * @param yAxis The series' y-axis.\n * @returns\n */\n\n\n CartesianSeries.prototype.checkRangeXY = function (x, y, xAxis, yAxis) {\n return !isNaN(x) && !isNaN(y) && xAxis.inRange(x) && yAxis.inRange(y);\n };\n\n CartesianSeries.prototype.update = function () {\n var _a = this,\n seriesItemEnabled = _a.seriesItemEnabled,\n visible = _a.visible,\n _b = _a.chart,\n _c = (_b === void 0 ? {} : _b).highlightedDatum,\n _d = (_c === void 0 ? {} : _c).series,\n series = _d === void 0 ? undefined : _d;\n\n var seriesHighlighted = series ? series === this : undefined;\n\n var anySeriesItemEnabled = visible && seriesItemEnabled.size === 0 || __spread$e(seriesItemEnabled.values()).some(function (v) {\n return v === true;\n });\n\n this.updateSelections(seriesHighlighted, anySeriesItemEnabled);\n this.updateNodes(seriesHighlighted, anySeriesItemEnabled);\n };\n\n CartesianSeries.prototype.updateSelections = function (seriesHighlighted, anySeriesItemEnabled) {\n var _this = this;\n\n this.updateHighlightSelection(seriesHighlighted);\n\n if (!anySeriesItemEnabled) {\n return;\n }\n\n if (!this.nodeDataRefresh && !this.isPathOrSelectionDirty()) {\n return;\n }\n\n if (this.nodeDataRefresh) {\n this.nodeDataRefresh = false;\n this._contextNodeData = this.createNodeData();\n this.updateSeriesGroups();\n }\n\n this.subGroups.forEach(function (subGroup, seriesIdx) {\n var datumSelection = subGroup.datumSelection,\n labelSelection = subGroup.labelSelection,\n markerSelection = subGroup.markerSelection,\n paths = subGroup.paths;\n var contextData = _this._contextNodeData[seriesIdx];\n var nodeData = contextData.nodeData,\n labelData = contextData.labelData,\n itemId = contextData.itemId;\n\n _this.updatePaths({\n seriesHighlighted: seriesHighlighted,\n itemId: itemId,\n contextData: contextData,\n paths: paths,\n seriesIdx: seriesIdx\n });\n\n subGroup.datumSelection = _this.updateDatumSelection({\n nodeData: nodeData,\n datumSelection: datumSelection,\n seriesIdx: seriesIdx\n });\n subGroup.labelSelection = _this.updateLabelSelection({\n labelData: labelData,\n labelSelection: labelSelection,\n seriesIdx: seriesIdx\n });\n\n if (markerSelection) {\n subGroup.markerSelection = _this.updateMarkerSelection({\n nodeData: nodeData,\n markerSelection: markerSelection,\n seriesIdx: seriesIdx\n });\n }\n });\n };\n\n CartesianSeries.prototype.updateSeriesGroups = function () {\n var _a;\n\n var _b = this,\n contextNodeData = _b._contextNodeData,\n seriesGroup = _b.seriesGroup,\n subGroups = _b.subGroups,\n _c = _b.opts,\n pickGroupIncludes = _c.pickGroupIncludes,\n pathsPerSeries = _c.pathsPerSeries,\n features = _c.features,\n pathsZIndexSubOrderOffset = _c.pathsZIndexSubOrderOffset;\n\n if (contextNodeData.length === subGroups.length) {\n return;\n }\n\n if (contextNodeData.length < subGroups.length) {\n subGroups.splice(contextNodeData.length).forEach(function (_a) {\n var e_1, _b;\n\n var group = _a.group,\n markerGroup = _a.markerGroup,\n paths = _a.paths;\n seriesGroup.removeChild(group);\n\n if (markerGroup) {\n seriesGroup.removeChild(markerGroup);\n }\n\n if (!pickGroupIncludes.includes('mainPath')) {\n try {\n for (var paths_1 = __values$g(paths), paths_1_1 = paths_1.next(); !paths_1_1.done; paths_1_1 = paths_1.next()) {\n var path = paths_1_1.value;\n seriesGroup.removeChild(path);\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (paths_1_1 && !paths_1_1.done && (_b = paths_1.return)) _b.call(paths_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n }\n });\n }\n\n var totalGroups = contextNodeData.length;\n\n while (totalGroups > subGroups.length) {\n var layer = true;\n var subGroupId = this.subGroupId++;\n var subGroupZOffset = totalGroups - subGroupId;\n var group = new Group$1({\n name: this.id + \"-series-sub\" + subGroupId,\n layer: layer,\n zIndex: Layers.SERIES_LAYER_ZINDEX,\n zIndexSubOrder: [this.id, subGroupZOffset]\n });\n var markerGroup = features.includes('markers') ? new Group$1({\n name: this.id + \"-series-sub\" + this.subGroupId++ + \"-markers\",\n layer: layer,\n zIndex: Layers.SERIES_LAYER_ZINDEX,\n zIndexSubOrder: [this.id, 10000 + subGroupId]\n }) : undefined;\n var labelGroup = new Group$1({\n name: this.id + \"-series-sub\" + this.subGroupId++ + \"-labels\",\n layer: layer,\n zIndex: Layers.SERIES_LABEL_ZINDEX,\n zIndexSubOrder: [this.id, subGroupId]\n });\n var pickGroup = new Group$1({\n name: this.id + \"-series-sub\" + this.subGroupId++ + \"-pickGroup\",\n zIndex: Layers.SERIES_LAYER_ZINDEX,\n zIndexSubOrder: [this.id, 10000 + subGroupId]\n });\n var pathParentGroup = pickGroupIncludes.includes('mainPath') ? pickGroup : group;\n var datumParentGroup = pickGroupIncludes.includes('datumNodes') ? pickGroup : group;\n seriesGroup.appendChild(group);\n seriesGroup.appendChild(labelGroup);\n\n if (markerGroup) {\n seriesGroup.appendChild(markerGroup);\n }\n\n var paths = [];\n\n for (var index = 0; index < pathsPerSeries; index++) {\n paths[index] = new Path$1();\n paths[index].zIndex = Layers.SERIES_LAYER_ZINDEX;\n paths[index].zIndexSubOrder = [this.id, (_a = pathsZIndexSubOrderOffset[index], _a !== null && _a !== void 0 ? _a : 0) + subGroupZOffset];\n pathParentGroup.appendChild(paths[index]);\n }\n\n group.appendChild(pickGroup);\n subGroups.push({\n paths: paths,\n group: group,\n pickGroup: pickGroup,\n markerGroup: markerGroup,\n labelGroup: labelGroup,\n labelSelection: Selection$1.select(labelGroup).selectAll(),\n datumSelection: Selection$1.select(datumParentGroup).selectAll(),\n markerSelection: markerGroup ? Selection$1.select(markerGroup).selectAll() : undefined\n });\n }\n };\n\n CartesianSeries.prototype.updateNodes = function (seriesHighlighted, anySeriesItemEnabled) {\n var _this = this;\n\n var _a;\n\n var _b = this,\n highlightSelection = _b.highlightSelection,\n highlightLabelSelection = _b.highlightLabelSelection,\n contextNodeData = _b._contextNodeData,\n seriesItemEnabled = _b.seriesItemEnabled,\n features = _b.opts.features;\n\n var markersEnabled = features.includes('markers');\n var visible = this.visible && ((_a = this._contextNodeData) === null || _a === void 0 ? void 0 : _a.length) > 0 && anySeriesItemEnabled;\n this.group.visible = visible;\n this.seriesGroup.visible = visible;\n this.highlightGroup.visible = visible && !!seriesHighlighted;\n this.seriesGroup.opacity = this.getOpacity();\n\n if (markersEnabled) {\n this.updateMarkerNodes({\n markerSelection: highlightSelection,\n isHighlight: true,\n seriesIdx: -1\n });\n } else {\n this.updateDatumNodes({\n datumSelection: highlightSelection,\n isHighlight: true,\n seriesIdx: -1\n });\n }\n\n this.updateLabelNodes({\n labelSelection: highlightLabelSelection,\n seriesIdx: -1\n });\n this.subGroups.forEach(function (subGroup, seriesIdx) {\n var e_2, _a;\n\n var _b;\n\n var group = subGroup.group,\n markerGroup = subGroup.markerGroup,\n datumSelection = subGroup.datumSelection,\n labelSelection = subGroup.labelSelection,\n markerSelection = subGroup.markerSelection,\n paths = subGroup.paths,\n labelGroup = subGroup.labelGroup,\n pickGroup = subGroup.pickGroup;\n var itemId = contextNodeData[seriesIdx].itemId;\n var subGroupVisible = visible && (_b = seriesItemEnabled.get(itemId), _b !== null && _b !== void 0 ? _b : true);\n\n var subGroupOpacity = _this.getOpacity({\n itemId: itemId\n });\n\n group.opacity = subGroupOpacity;\n group.visible = subGroupVisible;\n pickGroup.visible = subGroupVisible;\n labelGroup.visible = subGroupVisible;\n\n if (markerGroup) {\n markerGroup.opacity = subGroupOpacity;\n markerGroup.zIndex = group.zIndex >= Layers.SERIES_LAYER_ZINDEX ? group.zIndex : group.zIndex + 1;\n markerGroup.visible = subGroupVisible;\n }\n\n try {\n for (var paths_2 = __values$g(paths), paths_2_1 = paths_2.next(); !paths_2_1.done; paths_2_1 = paths_2.next()) {\n var path = paths_2_1.value;\n\n if (path.parent !== group) {\n path.opacity = subGroupOpacity;\n path.visible = subGroupVisible;\n }\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally {\n try {\n if (paths_2_1 && !paths_2_1.done && (_a = paths_2.return)) _a.call(paths_2);\n } finally {\n if (e_2) throw e_2.error;\n }\n }\n\n if (!group.visible) {\n return;\n }\n\n _this.updatePathNodes({\n seriesHighlighted: seriesHighlighted,\n itemId: itemId,\n paths: paths,\n seriesIdx: seriesIdx\n });\n\n _this.updateDatumNodes({\n datumSelection: datumSelection,\n isHighlight: false,\n seriesIdx: seriesIdx\n });\n\n _this.updateLabelNodes({\n labelSelection: labelSelection,\n seriesIdx: seriesIdx\n });\n\n if (markersEnabled && markerSelection) {\n _this.updateMarkerNodes({\n markerSelection: markerSelection,\n isHighlight: false,\n seriesIdx: seriesIdx\n });\n }\n });\n };\n\n CartesianSeries.prototype.updateHighlightSelection = function (seriesHighlighted) {\n var e_3, _a;\n\n var _b = this,\n _c = _b.chart,\n _d = _c === void 0 ? {} : _c,\n _e = _d.highlightedDatum,\n _f = (_e === void 0 ? {} : _e).datum,\n datum = _f === void 0 ? undefined : _f,\n _g = _d.highlightedDatum,\n highlightedDatum = _g === void 0 ? undefined : _g,\n highlightSelection = _b.highlightSelection,\n highlightLabelSelection = _b.highlightLabelSelection,\n contextNodeData = _b._contextNodeData;\n\n var item = seriesHighlighted && highlightedDatum && datum ? highlightedDatum : undefined;\n this.highlightSelection = this.updateHighlightSelectionItem({\n item: item,\n highlightSelection: highlightSelection\n });\n var labelItem;\n\n if (this.label.enabled && item != null) {\n var _h = item.itemId,\n itemId_1 = _h === void 0 ? undefined : _h;\n\n try {\n for (var contextNodeData_1 = __values$g(contextNodeData), contextNodeData_1_1 = contextNodeData_1.next(); !contextNodeData_1_1.done; contextNodeData_1_1 = contextNodeData_1.next()) {\n var labelData = contextNodeData_1_1.value.labelData;\n labelItem = labelData.find(function (ld) {\n return ld.datum === item.datum && ld.itemId === itemId_1;\n });\n\n if (labelItem != null) {\n break;\n }\n }\n } catch (e_3_1) {\n e_3 = {\n error: e_3_1\n };\n } finally {\n try {\n if (contextNodeData_1_1 && !contextNodeData_1_1.done && (_a = contextNodeData_1.return)) _a.call(contextNodeData_1);\n } finally {\n if (e_3) throw e_3.error;\n }\n }\n }\n\n this.highlightLabelSelection = this.updateHighlightSelectionLabel({\n item: labelItem,\n highlightLabelSelection: highlightLabelSelection\n });\n };\n\n CartesianSeries.prototype.pickNodeExactShape = function (point) {\n var e_4, _a;\n\n var _b;\n\n var result = _super.prototype.pickNodeExactShape.call(this, point);\n\n if (result) {\n return result;\n }\n\n var x = point.x,\n y = point.y;\n var pickGroupIncludes = this.opts.pickGroupIncludes;\n var markerGroupIncluded = pickGroupIncludes.includes('markers');\n\n try {\n for (var _c = __values$g(this.subGroups), _d = _c.next(); !_d.done; _d = _c.next()) {\n var _e = _d.value,\n pickGroup = _e.pickGroup,\n markerGroup = _e.markerGroup;\n var match = pickGroup.pickNode(x, y);\n\n if (!match && markerGroupIncluded) {\n match = (_b = markerGroup) === null || _b === void 0 ? void 0 : _b.pickNode(x, y);\n }\n\n if (match) {\n return {\n datum: match.datum,\n distance: 0\n };\n }\n }\n } catch (e_4_1) {\n e_4 = {\n error: e_4_1\n };\n } finally {\n try {\n if (_d && !_d.done && (_a = _c.return)) _a.call(_c);\n } finally {\n if (e_4) throw e_4.error;\n }\n }\n };\n\n CartesianSeries.prototype.pickNodeClosestDatum = function (point) {\n var e_5, _a, e_6, _b;\n\n var _c, _d, _e, _f;\n\n var x = point.x,\n y = point.y;\n\n var _g = this,\n xAxis = _g.xAxis,\n yAxis = _g.yAxis,\n group = _g.group,\n contextNodeData = _g._contextNodeData;\n\n var hitPoint = group.transformPoint(x, y);\n var minDistance = Infinity;\n var closestDatum;\n\n try {\n for (var contextNodeData_2 = __values$g(contextNodeData), contextNodeData_2_1 = contextNodeData_2.next(); !contextNodeData_2_1.done; contextNodeData_2_1 = contextNodeData_2.next()) {\n var context = contextNodeData_2_1.value;\n\n try {\n for (var _h = (e_6 = void 0, __values$g(context.nodeData)), _j = _h.next(); !_j.done; _j = _h.next()) {\n var datum = _j.value;\n\n var _k = datum.point,\n _l = _k === void 0 ? {} : _k,\n _m = _l.x,\n datumX = _m === void 0 ? NaN : _m,\n _o = _l.y,\n datumY = _o === void 0 ? NaN : _o;\n\n var isInRange = ((_c = xAxis) === null || _c === void 0 ? void 0 : _c.inRange(datumX)) && ((_d = yAxis) === null || _d === void 0 ? void 0 : _d.inRange(datumY));\n\n if (!isInRange) {\n continue;\n } // No need to use Math.sqrt() since x < y implies Math.sqrt(x) < Math.sqrt(y) for\n // values > 1\n\n\n var distance = Math.max(Math.pow(hitPoint.x - datumX, 2) + Math.pow(hitPoint.y - datumY, 2), 0);\n\n if (distance < minDistance) {\n minDistance = distance;\n closestDatum = datum;\n }\n }\n } catch (e_6_1) {\n e_6 = {\n error: e_6_1\n };\n } finally {\n try {\n if (_j && !_j.done && (_b = _h.return)) _b.call(_h);\n } finally {\n if (e_6) throw e_6.error;\n }\n }\n }\n } catch (e_5_1) {\n e_5 = {\n error: e_5_1\n };\n } finally {\n try {\n if (contextNodeData_2_1 && !contextNodeData_2_1.done && (_a = contextNodeData_2.return)) _a.call(contextNodeData_2);\n } finally {\n if (e_5) throw e_5.error;\n }\n }\n\n if (closestDatum) {\n var distance = Math.max(Math.sqrt(minDistance) - (_f = (_e = closestDatum.point) === null || _e === void 0 ? void 0 : _e.size, _f !== null && _f !== void 0 ? _f : 0), 0);\n return {\n datum: closestDatum,\n distance: distance\n };\n }\n };\n\n CartesianSeries.prototype.pickNodeMainAxisFirst = function (point, requireCategoryAxis) {\n var e_7, _a, e_8, _b;\n\n var _c, _d, _e, _f;\n\n var x = point.x,\n y = point.y;\n\n var _g = this,\n xAxis = _g.xAxis,\n yAxis = _g.yAxis,\n group = _g.group,\n contextNodeData = _g._contextNodeData; // Prefer to start search with any available category axis.\n\n\n var directions = [xAxis, yAxis].filter(function (a) {\n return a instanceof CategoryAxis;\n }).map(function (a) {\n return a.direction;\n });\n\n if (requireCategoryAxis && directions.length === 0) {\n return;\n } // Default to X-axis unless we found a suitable category axis.\n\n\n var _h = __read$w(directions, 1),\n _j = _h[0],\n primaryDirection = _j === void 0 ? ChartAxisDirection.X : _j;\n\n var hitPoint = group.transformPoint(x, y);\n var hitPointCoords = primaryDirection === ChartAxisDirection.X ? [hitPoint.x, hitPoint.y] : [hitPoint.y, hitPoint.x];\n var minDistance = [Infinity, Infinity];\n var closestDatum = undefined;\n\n try {\n for (var contextNodeData_3 = __values$g(contextNodeData), contextNodeData_3_1 = contextNodeData_3.next(); !contextNodeData_3_1.done; contextNodeData_3_1 = contextNodeData_3.next()) {\n var context = contextNodeData_3_1.value;\n\n try {\n for (var _k = (e_8 = void 0, __values$g(context.nodeData)), _l = _k.next(); !_l.done; _l = _k.next()) {\n var datum = _l.value;\n\n var _m = datum.point,\n _o = _m === void 0 ? {} : _m,\n _p = _o.x,\n datumX = _p === void 0 ? NaN : _p,\n _q = _o.y,\n datumY = _q === void 0 ? NaN : _q;\n\n var isInRange = ((_c = xAxis) === null || _c === void 0 ? void 0 : _c.inRange(datumX)) && ((_d = yAxis) === null || _d === void 0 ? void 0 : _d.inRange(datumY));\n\n if (!isInRange) {\n continue;\n }\n\n var point_1 = primaryDirection === ChartAxisDirection.X ? [datumX, datumY] : [datumY, datumX]; // Compare distances from most significant dimension to least.\n\n var newMinDistance = true;\n\n for (var i = 0; i < point_1.length; i++) {\n var dist = Math.abs(point_1[i] - hitPointCoords[i]);\n\n if (dist > minDistance[i]) {\n newMinDistance = false;\n break;\n }\n\n if (dist < minDistance[i]) {\n minDistance[i] = dist;\n minDistance.fill(Infinity, i + 1, minDistance.length);\n }\n }\n\n if (newMinDistance) {\n closestDatum = datum;\n }\n }\n } catch (e_8_1) {\n e_8 = {\n error: e_8_1\n };\n } finally {\n try {\n if (_l && !_l.done && (_b = _k.return)) _b.call(_k);\n } finally {\n if (e_8) throw e_8.error;\n }\n }\n }\n } catch (e_7_1) {\n e_7 = {\n error: e_7_1\n };\n } finally {\n try {\n if (contextNodeData_3_1 && !contextNodeData_3_1.done && (_a = contextNodeData_3.return)) _a.call(contextNodeData_3);\n } finally {\n if (e_7) throw e_7.error;\n }\n }\n\n if (closestDatum) {\n var distance = Math.max(Math.sqrt(Math.pow(minDistance[0], 2) + Math.pow(minDistance[1], 2)) - (_f = (_e = closestDatum.point) === null || _e === void 0 ? void 0 : _e.size, _f !== null && _f !== void 0 ? _f : 0), 0);\n return {\n datum: closestDatum,\n distance: distance\n };\n }\n };\n\n CartesianSeries.prototype.toggleSeriesItem = function (itemId, enabled) {\n if (this.seriesItemEnabled.size > 0) {\n this.seriesItemEnabled.set(itemId, enabled);\n this.nodeDataRefresh = true;\n } else {\n _super.prototype.toggleSeriesItem.call(this, itemId, enabled);\n }\n };\n\n CartesianSeries.prototype.isPathOrSelectionDirty = function () {\n // Override point to allow more sophisticated dirty selection detection.\n return false;\n };\n\n CartesianSeries.prototype.getLabelData = function () {\n return [];\n };\n\n CartesianSeries.prototype.updatePaths = function (opts) {\n // Override point for sub-classes.\n opts.paths.forEach(function (p) {\n return p.visible = false;\n });\n };\n\n CartesianSeries.prototype.updatePathNodes = function (_opts) {// Override point for sub-classes.\n };\n\n CartesianSeries.prototype.updateHighlightSelectionItem = function (opts) {\n var features = this.opts.features;\n var markersEnabled = features.includes('markers');\n var item = opts.item,\n highlightSelection = opts.highlightSelection;\n var nodeData = item ? [item] : [];\n\n if (markersEnabled) {\n var markerSelection = highlightSelection;\n return this.updateMarkerSelection({\n nodeData: nodeData,\n markerSelection: markerSelection,\n seriesIdx: -1\n });\n } else {\n return this.updateDatumSelection({\n nodeData: nodeData,\n datumSelection: highlightSelection,\n seriesIdx: -1\n });\n }\n };\n\n CartesianSeries.prototype.updateHighlightSelectionLabel = function (opts) {\n var item = opts.item,\n highlightLabelSelection = opts.highlightLabelSelection;\n var labelData = item ? [item] : [];\n return this.updateLabelSelection({\n labelData: labelData,\n labelSelection: highlightLabelSelection,\n seriesIdx: -1\n });\n };\n\n CartesianSeries.prototype.updateDatumSelection = function (opts) {\n // Override point for sub-classes.\n return opts.datumSelection;\n };\n\n CartesianSeries.prototype.updateDatumNodes = function (_opts) {// Override point for sub-classes.\n };\n\n CartesianSeries.prototype.updateMarkerSelection = function (opts) {\n // Override point for sub-classes.\n return opts.markerSelection;\n };\n\n CartesianSeries.prototype.updateMarkerNodes = function (_opts) {// Override point for sub-classes.\n };\n\n return CartesianSeries;\n}(Series);\n\nvar CartesianSeriesMarker =\n/** @class */\nfunction (_super) {\n __extends$2i(CartesianSeriesMarker, _super);\n\n function CartesianSeriesMarker() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.formatter = undefined;\n return _this;\n }\n\n __decorate$1a([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], CartesianSeriesMarker.prototype, \"formatter\", void 0);\n\n return CartesianSeriesMarker;\n}(SeriesMarker);\n\nvar __extends$2h = undefined && undefined.__extends || function () {\n var _extendStatics75 = function extendStatics(d, b) {\n _extendStatics75 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics75(d, b);\n };\n\n return function (d, b) {\n _extendStatics75(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$u = undefined && undefined.__assign || function () {\n __assign$u = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$u.apply(this, arguments);\n};\n\nvar __values$f = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar __read$v = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$d = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$v(arguments[i]));\n }\n\n return ar;\n};\n\nvar defaultTooltipCss$1 = \"\\n.ag-chart-tooltip {\\n display: table;\\n position: absolute;\\n user-select: none;\\n pointer-events: none;\\n white-space: nowrap;\\n z-index: 99999;\\n font: 12px Verdana, sans-serif;\\n color: black;\\n background: rgb(244, 244, 244);\\n border-radius: 5px;\\n box-shadow: 0 0 1px rgba(3, 3, 3, 0.7), 0.5vh 0.5vh 1vh rgba(3, 3, 3, 0.25);\\n}\\n\\n.ag-chart-tooltip-hidden {\\n top: -10000px !important;\\n}\\n\\n.ag-chart-tooltip-title {\\n font-weight: bold;\\n padding: 7px;\\n border-top-left-radius: 5px;\\n border-top-right-radius: 5px;\\n color: white;\\n background-color: #888888;\\n border-top-left-radius: 5px;\\n border-top-right-radius: 5px;\\n}\\n\\n.ag-chart-tooltip-content {\\n padding: 7px;\\n line-height: 1.7em;\\n border-bottom-left-radius: 5px;\\n border-bottom-right-radius: 5px;\\n overflow: hidden;\\n}\\n\\n.ag-chart-tooltip-content:empty {\\n padding: 0;\\n height: 7px;\\n}\\n\\n.ag-chart-tooltip-arrow::before {\\n content: \\\"\\\";\\n\\n position: absolute;\\n top: 100%;\\n left: 50%;\\n transform: translateX(-50%);\\n\\n border: 6px solid #989898;\\n\\n border-left-color: transparent;\\n border-right-color: transparent;\\n border-top-color: #989898;\\n border-bottom-color: transparent;\\n\\n width: 0;\\n height: 0;\\n\\n margin: 0 auto;\\n}\\n\\n.ag-chart-tooltip-arrow::after {\\n content: \\\"\\\";\\n\\n position: absolute;\\n top: 100%;\\n left: 50%;\\n transform: translateX(-50%);\\n\\n border: 5px solid black;\\n\\n border-left-color: transparent;\\n border-right-color: transparent;\\n border-top-color: rgb(244, 244, 244);\\n border-bottom-color: transparent;\\n\\n width: 0;\\n height: 0;\\n\\n margin: 0 auto;\\n}\\n\\n.ag-chart-wrapper {\\n box-sizing: border-box;\\n overflow: hidden;\\n}\\n\";\n\nfunction toTooltipHtml$1(input, defaults) {\n if (typeof input === 'string') {\n return input;\n }\n\n defaults = defaults || {};\n var _a = input.content,\n content = _a === void 0 ? defaults.content || '' : _a,\n _b = input.title,\n title = _b === void 0 ? defaults.title || undefined : _b,\n _c = input.color,\n color = _c === void 0 ? defaults.color || 'white' : _c,\n _d = input.backgroundColor,\n backgroundColor = _d === void 0 ? defaults.backgroundColor || '#888' : _d;\n var titleHtml = title ? \"
\" + title + \"
\" : '';\n return titleHtml + \"
\" + content + \"
\";\n}\n\nvar ChartTooltip =\n/** @class */\nfunction (_super) {\n __extends$2h(ChartTooltip, _super);\n\n function ChartTooltip(chart, document) {\n var _this = _super.call(this) || this;\n\n _this.enabled = true;\n _this.class = Chart.defaultTooltipClass;\n _this.delay = 0;\n /**\n * If `true`, the tooltip will be shown for the marker closest to the mouse cursor.\n * Only has effect on series with markers.\n */\n\n _this.tracking = true;\n _this.showTimeout = 0;\n _this.constrained = false;\n _this.chart = chart;\n _this.class = '';\n var tooltipRoot = document.body;\n var element = document.createElement('div');\n _this.element = tooltipRoot.appendChild(element); // Detect when the chart becomes invisible and hide the tooltip as well.\n\n if (window.IntersectionObserver) {\n var target_1 = _this.chart.scene.canvas.element;\n var observer = new IntersectionObserver(function (entries) {\n var e_1, _a;\n\n try {\n for (var entries_1 = __values$f(entries), entries_1_1 = entries_1.next(); !entries_1_1.done; entries_1_1 = entries_1.next()) {\n var entry = entries_1_1.value;\n\n if (entry.target === target_1 && entry.intersectionRatio === 0) {\n _this.toggle(false);\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (entries_1_1 && !entries_1_1.done && (_a = entries_1.return)) _a.call(entries_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n }, {\n root: tooltipRoot\n });\n observer.observe(target_1);\n _this.observer = observer;\n }\n\n return _this;\n }\n\n ChartTooltip.prototype.destroy = function () {\n var parentNode = this.element.parentNode;\n\n if (parentNode) {\n parentNode.removeChild(this.element);\n }\n\n if (this.observer) {\n this.observer.unobserve(this.chart.scene.canvas.element);\n }\n };\n\n ChartTooltip.prototype.isVisible = function () {\n var element = this.element;\n\n if (element.classList) {\n // if not IE11\n return !element.classList.contains(Chart.defaultTooltipClass + '-hidden');\n } // IE11 part.\n\n\n var classes = element.getAttribute('class');\n\n if (classes) {\n return classes.split(' ').indexOf(Chart.defaultTooltipClass + '-hidden') < 0;\n }\n\n return false;\n };\n\n ChartTooltip.prototype.updateClass = function (visible, constrained) {\n var classList = [Chart.defaultTooltipClass, this.class];\n\n if (visible !== true) {\n classList.push(Chart.defaultTooltipClass + \"-hidden\");\n }\n\n if (constrained !== true) {\n classList.push(Chart.defaultTooltipClass + \"-arrow\");\n }\n\n this.element.setAttribute('class', classList.join(' '));\n };\n /**\n * Shows tooltip at the given event's coordinates.\n * If the `html` parameter is missing, moves the existing tooltip to the new position.\n */\n\n\n ChartTooltip.prototype.show = function (meta, html, instantly) {\n var _this = this;\n\n if (instantly === void 0) {\n instantly = false;\n }\n\n var el = this.element;\n\n if (html !== undefined) {\n el.innerHTML = html;\n } else if (!el.innerHTML) {\n return;\n }\n\n var left = meta.pageX - el.clientWidth / 2;\n var top = meta.pageY - el.clientHeight - 8;\n this.constrained = false;\n\n if (this.chart.container) {\n var tooltipRect = el.getBoundingClientRect();\n var minLeft = 0;\n var maxLeft = window.innerWidth - tooltipRect.width - 1;\n\n if (left < minLeft) {\n left = minLeft;\n this.constrained = true;\n this.updateClass(true, this.constrained);\n } else if (left > maxLeft) {\n left = maxLeft;\n this.constrained = true;\n this.updateClass(true, this.constrained);\n }\n\n if (top < window.pageYOffset) {\n top = meta.pageY + 20;\n this.constrained = true;\n this.updateClass(true, this.constrained);\n }\n }\n\n el.style.left = Math.round(left) + \"px\";\n el.style.top = Math.round(top) + \"px\";\n\n if (this.delay > 0 && !instantly) {\n this.toggle(false);\n this.showTimeout = window.setTimeout(function () {\n _this.toggle(true);\n }, this.delay);\n return;\n }\n\n this.toggle(true);\n };\n\n ChartTooltip.prototype.toggle = function (visible) {\n if (!visible) {\n window.clearTimeout(this.showTimeout);\n\n if (this.chart.lastPick && !this.delay) {\n this.chart.changeHighlightDatum();\n }\n }\n\n this.updateClass(visible, this.constrained);\n };\n\n return ChartTooltip;\n}(Observable$1);\n/** Types of chart-update, in pipeline execution order. */\n\n\nvar ChartUpdateType;\n\n(function (ChartUpdateType) {\n ChartUpdateType[ChartUpdateType[\"FULL\"] = 0] = \"FULL\";\n ChartUpdateType[ChartUpdateType[\"PROCESS_DATA\"] = 1] = \"PROCESS_DATA\";\n ChartUpdateType[ChartUpdateType[\"PERFORM_LAYOUT\"] = 2] = \"PERFORM_LAYOUT\";\n ChartUpdateType[ChartUpdateType[\"SERIES_UPDATE\"] = 3] = \"SERIES_UPDATE\";\n ChartUpdateType[ChartUpdateType[\"SCENE_RENDER\"] = 4] = \"SCENE_RENDER\";\n ChartUpdateType[ChartUpdateType[\"NONE\"] = 5] = \"NONE\";\n})(ChartUpdateType || (ChartUpdateType = {}));\n\nvar Chart =\n/** @class */\nfunction (_super) {\n __extends$2h(Chart, _super);\n\n function Chart(document) {\n if (document === void 0) {\n document = window.document;\n }\n\n var _this = _super.call(this) || this;\n\n _this.id = createId$1(_this);\n _this.background = new Rect();\n _this.legend = new Legend();\n _this.legendAutoPadding = new Padding$1();\n _this._debug = false;\n _this.extraDebugStats = {};\n _this._container = undefined;\n _this._data = [];\n _this._autoSize = false;\n _this.padding = new Padding$1(20);\n _this._title = undefined;\n _this._subtitle = undefined;\n _this._performUpdateType = ChartUpdateType.NONE;\n _this.firstRenderComplete = false;\n _this.firstResizeReceived = false;\n _this.seriesToUpdate = new Set();\n _this.performUpdateTrigger = debouncedCallback(function (_a) {\n var count = _a.count;\n\n try {\n _this.performUpdate(count);\n } catch (error) {\n _this._lastPerformUpdateError = error;\n console.error(error);\n }\n });\n _this._axes = [];\n _this._series = [];\n _this.legendBBox = new BBox$1(0, 0, 0, 0);\n _this._onMouseDown = _this.onMouseDown.bind(_this);\n _this._onMouseMove = _this.onMouseMove.bind(_this);\n _this._onMouseUp = _this.onMouseUp.bind(_this);\n _this._onMouseOut = _this.onMouseOut.bind(_this);\n _this._onClick = _this.onClick.bind(_this);\n _this.lastTooltipMeta = undefined;\n _this.handleTooltipTrigger = debouncedAnimationFrame(function () {\n _this.handleTooltip(_this.lastTooltipMeta);\n\n _this.lastTooltipMeta = undefined;\n });\n _this.pointerInsideLegend = false;\n _this.pointerOverLegendDatum = false;\n var root = new Group$1({\n name: 'root'\n });\n var background = _this.background;\n background.fill = 'white';\n root.appendChild(background);\n var element = _this.element = document.createElement('div');\n element.setAttribute('class', 'ag-chart-wrapper');\n element.style.position = 'relative';\n _this.scene = new Scene$1({\n document: document\n });\n _this.scene.debug.consoleLog = _this._debug;\n _this.scene.root = root;\n _this.scene.container = element;\n _this.autoSize = true;\n SizeMonitor.observe(_this.element, function (size) {\n var width = size.width,\n height = size.height;\n _this._lastAutoSize = [width, height];\n\n if (!_this.autoSize) {\n return;\n }\n\n if (width === _this.width && height === _this.height) {\n return;\n }\n\n _this.resize(width, height);\n });\n _this.tooltip = new ChartTooltip(_this, document);\n\n _this.tooltip.addPropertyListener('class', function () {\n return _this.tooltip.toggle();\n });\n\n if (Chart.tooltipDocuments.indexOf(document) < 0) {\n var styleElement = document.createElement('style');\n styleElement.innerHTML = defaultTooltipCss$1; // Make sure the default tooltip style goes before other styles so it can be overridden.\n\n document.head.insertBefore(styleElement, document.head.querySelector('style'));\n Chart.tooltipDocuments.push(document);\n }\n\n _this.setupDomListeners(_this.scene.canvas.element);\n\n return _this;\n }\n\n Object.defineProperty(Chart.prototype, \"debug\", {\n get: function get() {\n return this._debug;\n },\n set: function set(value) {\n this._debug = value;\n this.scene.debug.consoleLog = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Chart.prototype, \"container\", {\n get: function get() {\n return this._container;\n },\n set: function set(value) {\n if (this._container !== value) {\n var parentNode = this.element.parentNode;\n\n if (parentNode != null) {\n parentNode.removeChild(this.element);\n }\n\n if (value) {\n value.appendChild(this.element);\n }\n\n this._container = value;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Chart.prototype, \"data\", {\n get: function get() {\n return this._data;\n },\n set: function set(data) {\n this._data = data;\n this.series.forEach(function (series) {\n return series.data = data;\n });\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Chart.prototype, \"width\", {\n get: function get() {\n return this.scene.width;\n },\n set: function set(value) {\n this.autoSize = false;\n\n if (this.width !== value) {\n this.resize(value, this.height);\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Chart.prototype, \"height\", {\n get: function get() {\n return this.scene.height;\n },\n set: function set(value) {\n this.autoSize = false;\n\n if (this.height !== value) {\n this.resize(this.width, value);\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Chart.prototype, \"autoSize\", {\n get: function get() {\n return this._autoSize;\n },\n set: function set(value) {\n if (this._autoSize === value) {\n return;\n }\n\n this._autoSize = value;\n var style = this.element.style;\n\n if (value) {\n style.display = 'block';\n style.width = '100%';\n style.height = '100%';\n\n if (!this._lastAutoSize) {\n return;\n }\n\n this.resize(this._lastAutoSize[0], this._lastAutoSize[1]);\n } else {\n style.display = 'inline-block';\n style.width = 'auto';\n style.height = 'auto';\n }\n },\n enumerable: true,\n configurable: true\n });\n\n Chart.prototype.download = function (fileName) {\n this.scene.download(fileName);\n };\n\n Object.defineProperty(Chart.prototype, \"title\", {\n get: function get() {\n return this._title;\n },\n set: function set(caption) {\n var _a, _b;\n\n var root = this.scene.root;\n\n if (this._title != null) {\n (_a = root) === null || _a === void 0 ? void 0 : _a.removeChild(this._title.node);\n }\n\n this._title = caption;\n\n if (this._title != null) {\n (_b = root) === null || _b === void 0 ? void 0 : _b.appendChild(this._title.node);\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Chart.prototype, \"subtitle\", {\n get: function get() {\n return this._subtitle;\n },\n set: function set(caption) {\n var _a, _b;\n\n var root = this.scene.root;\n\n if (this._subtitle != null) {\n (_a = root) === null || _a === void 0 ? void 0 : _a.removeChild(this._subtitle.node);\n }\n\n this._subtitle = caption;\n\n if (this._subtitle != null) {\n (_b = root) === null || _b === void 0 ? void 0 : _b.appendChild(this._subtitle.node);\n }\n },\n enumerable: true,\n configurable: true\n });\n\n Chart.prototype.destroy = function () {\n this._performUpdateType = ChartUpdateType.NONE;\n this.tooltip.destroy();\n SizeMonitor.unobserve(this.element);\n this.container = undefined;\n this.cleanupDomListeners(this.scene.canvas.element);\n this.scene.container = undefined;\n };\n\n Object.defineProperty(Chart.prototype, \"performUpdateType\", {\n get: function get() {\n return this._performUpdateType;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Chart.prototype, \"updatePending\", {\n get: function get() {\n return this._performUpdateType !== ChartUpdateType.NONE || this.lastTooltipMeta != null;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Chart.prototype, \"lastPerformUpdateError\", {\n get: function get() {\n return this._lastPerformUpdateError;\n },\n enumerable: true,\n configurable: true\n });\n\n Chart.prototype.update = function (type, opts) {\n var e_2, _a;\n\n if (type === void 0) {\n type = ChartUpdateType.FULL;\n }\n\n var _b = opts || {},\n _c = _b.forceNodeDataRefresh,\n forceNodeDataRefresh = _c === void 0 ? false : _c,\n _d = _b.seriesToUpdate,\n seriesToUpdate = _d === void 0 ? this.series : _d;\n\n if (forceNodeDataRefresh) {\n this.series.forEach(function (series) {\n return series.markNodeDataDirty();\n });\n }\n\n try {\n for (var seriesToUpdate_1 = __values$f(seriesToUpdate), seriesToUpdate_1_1 = seriesToUpdate_1.next(); !seriesToUpdate_1_1.done; seriesToUpdate_1_1 = seriesToUpdate_1.next()) {\n var series = seriesToUpdate_1_1.value;\n this.seriesToUpdate.add(series);\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally {\n try {\n if (seriesToUpdate_1_1 && !seriesToUpdate_1_1.done && (_a = seriesToUpdate_1.return)) _a.call(seriesToUpdate_1);\n } finally {\n if (e_2) throw e_2.error;\n }\n }\n\n if (type < this._performUpdateType) {\n this._performUpdateType = type;\n this.performUpdateTrigger.schedule();\n }\n };\n\n Chart.prototype.performUpdate = function (count) {\n var _a = this,\n performUpdateType = _a._performUpdateType,\n firstRenderComplete = _a.firstRenderComplete,\n firstResizeReceived = _a.firstResizeReceived,\n extraDebugStats = _a.extraDebugStats;\n\n var splits = [performance.now()];\n\n switch (performUpdateType) {\n case ChartUpdateType.FULL:\n case ChartUpdateType.PROCESS_DATA:\n this.processData();\n splits.push(performance.now()); // Disable tooltip/highlight if the data fundamentally shifted.\n\n this.disableTooltip({\n updateProcessing: false\n });\n // Fall-through to next pipeline stage.\n\n case ChartUpdateType.PERFORM_LAYOUT:\n if (!firstRenderComplete && !firstResizeReceived) {\n if (this.debug) {\n console.log({\n firstRenderComplete: firstRenderComplete,\n firstResizeReceived: firstResizeReceived\n });\n } // Reschedule if canvas size hasn't been set yet to avoid a race.\n\n\n this._performUpdateType = ChartUpdateType.PERFORM_LAYOUT;\n this.performUpdateTrigger.schedule();\n break;\n }\n\n this.performLayout();\n splits.push(performance.now());\n // Fall-through to next pipeline stage.\n\n case ChartUpdateType.SERIES_UPDATE:\n this.seriesToUpdate.forEach(function (series) {\n series.update();\n });\n this.seriesToUpdate.clear();\n splits.push(performance.now());\n // Fall-through to next pipeline stage.\n\n case ChartUpdateType.SCENE_RENDER:\n this.scene.render({\n debugSplitTimes: splits,\n extraDebugStats: extraDebugStats\n });\n this.firstRenderComplete = true;\n this.extraDebugStats = {};\n // Fall-through to next pipeline stage.\n\n case ChartUpdateType.NONE:\n // Do nothing.\n this._performUpdateType = ChartUpdateType.NONE;\n }\n\n var end = performance.now();\n\n if (this.debug) {\n console.log({\n chart: this,\n durationMs: Math.round((end - splits[0]) * 100) / 100,\n count: count,\n performUpdateType: ChartUpdateType[performUpdateType]\n });\n }\n };\n\n Object.defineProperty(Chart.prototype, \"axes\", {\n get: function get() {\n return this._axes;\n },\n set: function set(values) {\n var _this = this;\n\n this._axes.forEach(function (axis) {\n return _this.detachAxis(axis);\n }); // make linked axes go after the regular ones (simulates stable sort by `linkedTo` property)\n\n\n this._axes = values.filter(function (a) {\n return !a.linkedTo;\n }).concat(values.filter(function (a) {\n return a.linkedTo;\n }));\n\n this._axes.forEach(function (axis) {\n return _this.attachAxis(axis);\n });\n },\n enumerable: true,\n configurable: true\n });\n\n Chart.prototype.attachAxis = function (axis) {\n this.scene.root.insertBefore(axis.gridlineGroup, this.seriesRoot);\n this.scene.root.insertBefore(axis.axisGroup, this.seriesRoot);\n this.scene.root.insertBefore(axis.crossLineGroup, this.seriesRoot);\n };\n\n Chart.prototype.detachAxis = function (axis) {\n this.scene.root.removeChild(axis.axisGroup);\n this.scene.root.removeChild(axis.gridlineGroup);\n this.scene.root.removeChild(axis.crossLineGroup);\n };\n\n Object.defineProperty(Chart.prototype, \"series\", {\n get: function get() {\n return this._series;\n },\n set: function set(values) {\n var _this = this;\n\n this.removeAllSeries();\n values.forEach(function (series) {\n return _this.addSeries(series);\n });\n },\n enumerable: true,\n configurable: true\n });\n\n Chart.prototype.addSeries = function (series, before) {\n var _a = this,\n allSeries = _a.series,\n seriesRoot = _a.seriesRoot;\n\n var canAdd = allSeries.indexOf(series) < 0;\n\n if (canAdd) {\n var beforeIndex = before ? allSeries.indexOf(before) : -1;\n\n if (beforeIndex >= 0) {\n allSeries.splice(beforeIndex, 0, series);\n seriesRoot.insertBefore(series.group, before.group);\n } else {\n allSeries.push(series);\n seriesRoot.append(series.group);\n }\n\n this.initSeries(series);\n return true;\n }\n\n return false;\n };\n\n Chart.prototype.initSeries = function (series) {\n series.chart = this;\n\n if (!series.data) {\n series.data = this.data;\n }\n\n series.addEventListener('nodeClick', this.onSeriesNodeClick, this);\n };\n\n Chart.prototype.freeSeries = function (series) {\n series.chart = undefined;\n series.removeEventListener('nodeClick', this.onSeriesNodeClick, this);\n };\n\n Chart.prototype.addSeriesAfter = function (series, after) {\n var _a = this,\n allSeries = _a.series,\n seriesRoot = _a.seriesRoot;\n\n var canAdd = allSeries.indexOf(series) < 0;\n\n if (canAdd) {\n var afterIndex = after ? this.series.indexOf(after) : -1;\n\n if (afterIndex >= 0) {\n if (afterIndex + 1 < allSeries.length) {\n seriesRoot.insertBefore(series.group, allSeries[afterIndex + 1].group);\n } else {\n seriesRoot.append(series.group);\n }\n\n this.initSeries(series);\n allSeries.splice(afterIndex + 1, 0, series);\n } else {\n if (allSeries.length > 0) {\n seriesRoot.insertBefore(series.group, allSeries[0].group);\n } else {\n seriesRoot.append(series.group);\n }\n\n this.initSeries(series);\n allSeries.unshift(series);\n }\n }\n\n return false;\n };\n\n Chart.prototype.removeSeries = function (series) {\n var index = this.series.indexOf(series);\n\n if (index >= 0) {\n this.series.splice(index, 1);\n this.freeSeries(series);\n this.seriesRoot.removeChild(series.group);\n return true;\n }\n\n return false;\n };\n\n Chart.prototype.removeAllSeries = function () {\n var _this = this;\n\n this.series.forEach(function (series) {\n _this.freeSeries(series);\n\n _this.seriesRoot.removeChild(series.group);\n });\n this._series = []; // using `_series` instead of `series` to prevent infinite recursion\n };\n\n Chart.prototype.assignSeriesToAxes = function () {\n var _this = this;\n\n this.axes.forEach(function (axis) {\n axis.boundSeries = _this.series.filter(function (s) {\n var seriesAxis = axis.direction === ChartAxisDirection.X ? s.xAxis : s.yAxis;\n return seriesAxis === axis;\n });\n });\n };\n\n Chart.prototype.assignAxesToSeries = function (force) {\n var _this = this;\n\n if (force === void 0) {\n force = false;\n } // This method has to run before `assignSeriesToAxes`.\n\n\n var directionToAxesMap = {};\n this.axes.forEach(function (axis) {\n var direction = axis.direction;\n var directionAxes = directionToAxesMap[direction] || (directionToAxesMap[direction] = []);\n directionAxes.push(axis);\n });\n this.series.forEach(function (series) {\n series.directions.forEach(function (direction) {\n var currentAxis = direction === ChartAxisDirection.X ? series.xAxis : series.yAxis;\n\n if (currentAxis && !force) {\n return;\n }\n\n var directionAxes = directionToAxesMap[direction];\n\n if (!directionAxes) {\n console.warn(\"AG Charts - no available axis for direction [\" + direction + \"]; check series and axes configuration.\");\n return;\n }\n\n var seriesKeys = series.getKeys(direction);\n\n var newAxis = _this.findMatchingAxis(directionAxes, series.getKeys(direction));\n\n if (!newAxis) {\n console.warn(\"AG Charts - no matching axis for direction [\" + direction + \"] and keys [\" + seriesKeys + \"]; check series and axes configuration.\");\n return;\n }\n\n if (direction === ChartAxisDirection.X) {\n series.xAxis = newAxis;\n } else {\n series.yAxis = newAxis;\n }\n });\n });\n };\n\n Chart.prototype.findMatchingAxis = function (directionAxes, directionKeys) {\n var e_3, _a, e_4, _b;\n\n try {\n for (var directionAxes_1 = __values$f(directionAxes), directionAxes_1_1 = directionAxes_1.next(); !directionAxes_1_1.done; directionAxes_1_1 = directionAxes_1.next()) {\n var axis = directionAxes_1_1.value;\n var axisKeys = axis.keys;\n\n if (!axisKeys.length) {\n return axis;\n }\n\n if (!directionKeys) {\n continue;\n }\n\n try {\n for (var directionKeys_1 = (e_4 = void 0, __values$f(directionKeys)), directionKeys_1_1 = directionKeys_1.next(); !directionKeys_1_1.done; directionKeys_1_1 = directionKeys_1.next()) {\n var directionKey = directionKeys_1_1.value;\n\n if (axisKeys.indexOf(directionKey) >= 0) {\n return axis;\n }\n }\n } catch (e_4_1) {\n e_4 = {\n error: e_4_1\n };\n } finally {\n try {\n if (directionKeys_1_1 && !directionKeys_1_1.done && (_b = directionKeys_1.return)) _b.call(directionKeys_1);\n } finally {\n if (e_4) throw e_4.error;\n }\n }\n }\n } catch (e_3_1) {\n e_3 = {\n error: e_3_1\n };\n } finally {\n try {\n if (directionAxes_1_1 && !directionAxes_1_1.done && (_a = directionAxes_1.return)) _a.call(directionAxes_1);\n } finally {\n if (e_3) throw e_3.error;\n }\n }\n };\n\n Chart.prototype.resize = function (width, height) {\n if (this.scene.resize(width, height)) {\n this.firstResizeReceived = true;\n this.background.width = this.width;\n this.background.height = this.height;\n this.update(ChartUpdateType.PERFORM_LAYOUT, {\n forceNodeDataRefresh: true\n });\n }\n };\n\n Chart.prototype.processData = function () {\n if (this.axes.length > 0 || this.series.some(function (s) {\n return s instanceof CartesianSeries;\n })) {\n this.assignAxesToSeries(true);\n this.assignSeriesToAxes();\n }\n\n this.series.forEach(function (s) {\n return s.processData();\n });\n this.updateLegend();\n };\n\n Chart.prototype.placeLabels = function () {\n var e_5, _a;\n\n var visibleSeries = [];\n var data = [];\n\n try {\n for (var _b = __values$f(this.series), _c = _b.next(); !_c.done; _c = _b.next()) {\n var series = _c.value;\n\n if (!series.visible || !series.label.enabled) {\n continue;\n }\n\n var labelData = series.getLabelData();\n\n if (!(labelData && isPointLabelDatum(labelData[0]))) {\n continue;\n }\n\n data.push(labelData);\n visibleSeries.push(series);\n }\n } catch (e_5_1) {\n e_5 = {\n error: e_5_1\n };\n } finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally {\n if (e_5) throw e_5.error;\n }\n }\n\n var seriesRect = this.seriesRect;\n var labels = seriesRect && data.length > 0 ? placeLabels(data, {\n x: 0,\n y: 0,\n width: seriesRect.width,\n height: seriesRect.height\n }) : [];\n return new Map(labels.map(function (l, i) {\n return [visibleSeries[i], l];\n }));\n };\n\n Chart.prototype.updateLegend = function () {\n var legendData = [];\n this.series.filter(function (s) {\n return s.showInLegend;\n }).forEach(function (series) {\n return series.listSeriesItems(legendData);\n });\n var formatter = this.legend.item.label.formatter;\n\n if (formatter) {\n legendData.forEach(function (datum) {\n return datum.label.text = formatter({\n id: datum.id,\n itemId: datum.itemId,\n value: datum.label.text\n });\n });\n }\n\n this.legend.data = legendData;\n };\n\n Chart.prototype.positionCaptions = function () {\n var _a = this,\n title = _a._title,\n subtitle = _a._subtitle;\n\n var spacing = 10;\n var paddingTop = spacing;\n\n if (!title) {\n return {};\n }\n\n title.node.visible = title.enabled;\n\n if (title.enabled) {\n title.node.x = this.width / 2;\n title.node.y = paddingTop;\n var titleBBox = title.node.computeBBox(); // make sure to set node's x/y, then computeBBox\n\n if (titleBBox) {\n paddingTop = titleBBox.y + titleBBox.height;\n }\n }\n\n if (!subtitle) {\n return {};\n }\n\n subtitle.node.visible = title.enabled && subtitle.enabled;\n\n if (title.enabled && subtitle.enabled) {\n subtitle.node.x = this.width / 2;\n subtitle.node.y = paddingTop + spacing;\n var subtitleBBox = subtitle.node.computeBBox();\n\n if (subtitleBBox) {\n paddingTop = subtitleBBox.y + subtitleBBox.height;\n }\n }\n\n return {\n captionAutoPadding: Math.floor(paddingTop)\n };\n };\n\n Chart.prototype.positionLegend = function (captionAutoPadding) {\n if (!this.legend.enabled || !this.legend.data.length) {\n return;\n }\n\n var _a = this,\n legend = _a.legend,\n legendAutoPadding = _a.legendAutoPadding;\n\n var width = this.width;\n var height = this.height - captionAutoPadding;\n var legendGroup = legend.group;\n var legendSpacing = legend.spacing;\n var translationX = 0;\n var translationY = 0;\n var legendBBox;\n\n switch (legend.position) {\n case 'bottom':\n legend.performLayout(width - legendSpacing * 2, 0);\n legendBBox = legendGroup.computeBBox();\n legendGroup.visible = legendBBox.height < Math.floor(height * 0.5); // Remove legend if it takes up more than 50% of the chart height.\n\n if (legendGroup.visible) {\n translationX = (width - legendBBox.width) / 2 - legendBBox.x;\n translationY = captionAutoPadding + height - legendBBox.height - legendBBox.y - legendSpacing;\n legendAutoPadding.bottom = legendBBox.height;\n } else {\n legendAutoPadding.bottom = 0;\n }\n\n break;\n\n case 'top':\n legend.performLayout(width - legendSpacing * 2, 0);\n legendBBox = legendGroup.computeBBox();\n legendGroup.visible = legendBBox.height < Math.floor(height * 0.5);\n\n if (legendGroup.visible) {\n translationX = (width - legendBBox.width) / 2 - legendBBox.x;\n translationY = captionAutoPadding + legendSpacing - legendBBox.y;\n legendAutoPadding.top = legendBBox.height;\n } else {\n legendAutoPadding.top = 0;\n }\n\n break;\n\n case 'left':\n legend.performLayout(width, height - legendSpacing * 2);\n legendBBox = legendGroup.computeBBox();\n legendGroup.visible = legendBBox.width < Math.floor(width * 0.5); // Remove legend if it takes up more than 50% of the chart width.\n\n if (legendGroup.visible) {\n translationX = legendSpacing - legendBBox.x;\n translationY = captionAutoPadding + (height - legendBBox.height) / 2 - legendBBox.y;\n legendAutoPadding.left = legendBBox.width;\n } else {\n legendAutoPadding.left = 0;\n }\n\n break;\n\n default:\n // case 'right':\n legend.performLayout(width, height - legendSpacing * 2);\n legendBBox = legendGroup.computeBBox();\n legendGroup.visible = legendBBox.width < Math.floor(width * 0.5);\n\n if (legendGroup.visible) {\n translationX = width - legendBBox.width - legendBBox.x - legendSpacing;\n translationY = captionAutoPadding + (height - legendBBox.height) / 2 - legendBBox.y;\n legendAutoPadding.right = legendBBox.width;\n } else {\n legendAutoPadding.right = 0;\n }\n\n break;\n }\n\n if (legendGroup.visible) {\n // Round off for pixel grid alignment to work properly.\n legendGroup.translationX = Math.floor(translationX + legendGroup.translationX);\n legendGroup.translationY = Math.floor(translationY + legendGroup.translationY);\n this.legendBBox = legendGroup.computeBBox();\n }\n };\n\n Chart.prototype.setupDomListeners = function (chartElement) {\n chartElement.addEventListener('mousedown', this._onMouseDown);\n chartElement.addEventListener('mousemove', this._onMouseMove);\n chartElement.addEventListener('mouseup', this._onMouseUp);\n chartElement.addEventListener('mouseout', this._onMouseOut);\n chartElement.addEventListener('click', this._onClick);\n };\n\n Chart.prototype.cleanupDomListeners = function (chartElement) {\n chartElement.removeEventListener('mousedown', this._onMouseDown);\n chartElement.removeEventListener('mousemove', this._onMouseMove);\n chartElement.removeEventListener('mouseup', this._onMouseUp);\n chartElement.removeEventListener('mouseout', this._onMouseOut);\n chartElement.removeEventListener('click', this._onClick);\n };\n\n Chart.prototype.getSeriesRect = function () {\n return this.seriesRect;\n }; // x/y are local canvas coordinates in CSS pixels, not actual pixels\n\n\n Chart.prototype.pickSeriesNode = function (point) {\n var e_6, _a;\n\n var _b, _c;\n\n var tracking = this.tooltip.tracking;\n var start = performance.now(); // Disable 'nearest match' options if tooltip.tracking is enabled.\n\n var pickModes = tracking ? undefined : [SeriesNodePickMode.EXACT_SHAPE_MATCH]; // Iterate through series in reverse, as later declared series appears on top of earlier\n // declared series.\n\n var reverseSeries = __spread$d(this.series).reverse();\n\n var result = undefined;\n\n try {\n for (var reverseSeries_1 = __values$f(reverseSeries), reverseSeries_1_1 = reverseSeries_1.next(); !reverseSeries_1_1.done; reverseSeries_1_1 = reverseSeries_1.next()) {\n var series = reverseSeries_1_1.value;\n\n if (!series.visible || !series.group.visible) {\n continue;\n }\n\n var _d = (_b = series.pickNode(point, pickModes), _b !== null && _b !== void 0 ? _b : {}),\n match = _d.match,\n distance = _d.distance;\n\n if (!match || distance == null) {\n continue;\n }\n\n if (!result || result.distance > distance) {\n result = {\n series: series,\n distance: distance,\n datum: match\n };\n }\n\n if (distance === 0) {\n break;\n }\n }\n } catch (e_6_1) {\n e_6 = {\n error: e_6_1\n };\n } finally {\n try {\n if (reverseSeries_1_1 && !reverseSeries_1_1.done && (_a = reverseSeries_1.return)) _a.call(reverseSeries_1);\n } finally {\n if (e_6) throw e_6.error;\n }\n }\n\n this.extraDebugStats['pickSeriesNode'] = Math.round((_c = this.extraDebugStats['pickSeriesNode'], _c !== null && _c !== void 0 ? _c : 0) + (performance.now() - start));\n return result;\n };\n\n Chart.prototype.onMouseMove = function (event) {\n this.handleLegendMouseMove(event);\n\n if (this.tooltip.enabled) {\n if (this.tooltip.delay > 0) {\n this.tooltip.toggle(false);\n }\n\n this.lastTooltipMeta = {\n pageX: event.pageX,\n pageY: event.pageY,\n offsetX: event.offsetX,\n offsetY: event.offsetY,\n event: event\n };\n this.handleTooltipTrigger.schedule();\n }\n };\n\n Chart.prototype.disableTooltip = function (_a) {\n var _b = (_a === void 0 ? {} : _a).updateProcessing,\n updateProcessing = _b === void 0 ? true : _b;\n this.changeHighlightDatum(undefined, {\n updateProcessing: updateProcessing\n });\n this.tooltip.toggle(false);\n };\n\n Chart.prototype.handleTooltip = function (meta) {\n var _this = this;\n\n var lastPick = this.lastPick;\n var offsetX = meta.offsetX,\n offsetY = meta.offsetY;\n\n var disableTooltip = function disableTooltip() {\n if (lastPick) {\n // Cursor moved from a non-marker node to empty space.\n _this.disableTooltip();\n }\n };\n\n if (!(this.seriesRect && this.seriesRect.containsPoint(offsetX, offsetY))) {\n disableTooltip();\n return;\n }\n\n var pick = this.pickSeriesNode({\n x: offsetX,\n y: offsetY\n });\n\n if (!pick) {\n disableTooltip();\n return;\n }\n\n if (!lastPick || lastPick.datum !== pick.datum) {\n this.onSeriesDatumPick(meta, pick.datum);\n return;\n }\n\n lastPick.event = meta.event;\n this.tooltip.show(this.mergeTooltipDatum(meta, pick.datum));\n };\n\n Chart.prototype.onMouseDown = function (_event) {// Override point for subclasses.\n };\n\n Chart.prototype.onMouseUp = function (_event) {// Override point for subclasses.\n };\n\n Chart.prototype.onMouseOut = function (_event) {\n this.tooltip.toggle(false);\n };\n\n Chart.prototype.onClick = function (event) {\n if (this.checkSeriesNodeClick()) {\n this.update(ChartUpdateType.SERIES_UPDATE);\n return;\n }\n\n if (this.checkLegendClick(event)) {\n this.update(ChartUpdateType.PROCESS_DATA, {\n forceNodeDataRefresh: true\n });\n return;\n }\n\n this.fireEvent({\n type: 'click',\n event: event\n });\n };\n\n Chart.prototype.checkSeriesNodeClick = function () {\n var lastPick = this.lastPick;\n\n if (lastPick && lastPick.event) {\n var event_1 = lastPick.event,\n datum = lastPick.datum;\n datum.series.fireNodeClickEvent(event_1, datum);\n return true;\n }\n\n return false;\n };\n\n Chart.prototype.onSeriesNodeClick = function (event) {\n this.fireEvent(__assign$u(__assign$u({}, event), {\n type: 'seriesNodeClick'\n }));\n };\n\n Chart.prototype.checkLegendClick = function (event) {\n var _a;\n\n var _b = this,\n legend = _b.legend,\n legendItemClick = _b.legend.listeners.legendItemClick;\n\n var datum = legend.getDatumForPoint(event.offsetX, event.offsetY);\n\n if (!datum) {\n return false;\n }\n\n var id = datum.id,\n itemId = datum.itemId,\n enabled = datum.enabled;\n var series = find(this.series, function (s) {\n return s.id === id;\n });\n\n if (!series) {\n return false;\n }\n\n series.toggleSeriesItem(itemId, !enabled);\n\n if (enabled) {\n this.tooltip.toggle(false);\n }\n\n if (enabled && ((_a = this.highlightedDatum) === null || _a === void 0 ? void 0 : _a.series) === series) {\n this.highlightedDatum = undefined;\n }\n\n if (!enabled) {\n this.highlightedDatum = {\n series: series,\n itemId: itemId,\n datum: undefined\n };\n }\n\n legendItemClick({\n enabled: !enabled,\n itemId: itemId,\n seriesId: series.id\n });\n return true;\n };\n\n Chart.prototype.handleLegendMouseMove = function (event) {\n if (!this.legend.enabled) {\n return;\n }\n\n var offsetX = event.offsetX,\n offsetY = event.offsetY;\n var datum = this.legend.getDatumForPoint(offsetX, offsetY);\n var pointerInsideLegend = this.legendBBox.containsPoint(offsetX, offsetY);\n var pointerOverLegendDatum = pointerInsideLegend && datum !== undefined;\n\n if (!pointerInsideLegend && this.pointerInsideLegend) {\n this.pointerInsideLegend = false;\n this.element.style.cursor = 'default'; // Dehighlight if the pointer was inside the legend and is now leaving it.\n\n this.changeHighlightDatum();\n return;\n }\n\n if (pointerOverLegendDatum && !this.pointerOverLegendDatum) {\n this.element.style.cursor = 'pointer';\n\n if (datum && this.legend.truncatedItems.has(datum.itemId || datum.id)) {\n this.element.title = datum.label.text;\n } else {\n this.element.title = '';\n }\n }\n\n if (!pointerOverLegendDatum && this.pointerOverLegendDatum) {\n this.element.style.cursor = 'default';\n }\n\n this.pointerInsideLegend = pointerInsideLegend;\n this.pointerOverLegendDatum = pointerOverLegendDatum;\n var oldHighlightedDatum = this.highlightedDatum;\n\n if (datum) {\n var id_1 = datum.id,\n itemId = datum.itemId,\n enabled = datum.enabled;\n\n if (enabled) {\n var series = find(this.series, function (series) {\n return series.id === id_1;\n });\n\n if (series) {\n this.highlightedDatum = {\n series: series,\n itemId: itemId,\n datum: undefined\n };\n }\n } else {\n this.highlightedDatum = undefined;\n }\n } // Careful to only schedule updates when necessary.\n\n\n if (this.highlightedDatum && !oldHighlightedDatum || !this.highlightedDatum && oldHighlightedDatum || this.highlightedDatum && oldHighlightedDatum && (this.highlightedDatum.series !== oldHighlightedDatum.series || this.highlightedDatum.itemId !== oldHighlightedDatum.itemId)) {\n this.update(ChartUpdateType.SERIES_UPDATE);\n }\n };\n\n Chart.prototype.onSeriesDatumPick = function (meta, datum) {\n var lastPick = this.lastPick;\n\n if (lastPick) {\n if (lastPick.datum === datum) {\n return;\n }\n }\n\n this.changeHighlightDatum({\n datum: datum,\n event: meta.event\n });\n\n if (datum) {\n meta = this.mergeTooltipDatum(meta, datum);\n }\n\n var html = datum.series.tooltip.enabled && datum.series.getTooltipHtml(datum);\n\n if (html) {\n this.tooltip.show(meta, html);\n }\n };\n\n Chart.prototype.mergeTooltipDatum = function (meta, datum) {\n if (datum.point) {\n var _a = datum.point,\n x = _a.x,\n y = _a.y;\n var canvas = this.scene.canvas;\n var point = datum.series.group.inverseTransformPoint(x, y);\n var canvasRect = canvas.element.getBoundingClientRect();\n return __assign$u(__assign$u({}, meta), {\n pageX: Math.round(canvasRect.left + window.scrollX + point.x),\n pageY: Math.round(canvasRect.top + window.scrollY + point.y),\n offsetX: Math.round(canvasRect.left + point.y),\n offsetY: Math.round(canvasRect.top + point.y)\n });\n }\n\n return meta;\n };\n\n Chart.prototype.changeHighlightDatum = function (newPick, opts) {\n var _a = (opts !== null && opts !== void 0 ? opts : {}).updateProcessing,\n updateProcessing = _a === void 0 ? true : _a;\n var seriesToUpdate = new Set();\n\n var _b = newPick || {},\n _c = _b.datum,\n _d = (_c === void 0 ? {} : _c).series,\n newSeries = _d === void 0 ? undefined : _d,\n _e = _b.datum,\n datum = _e === void 0 ? undefined : _e;\n\n var _f = this.lastPick,\n _g = (_f === void 0 ? {} : _f).datum,\n _h = (_g === void 0 ? {} : _g).series,\n lastSeries = _h === void 0 ? undefined : _h;\n\n if (lastSeries) {\n seriesToUpdate.add(lastSeries);\n }\n\n if (newSeries) {\n seriesToUpdate.add(newSeries);\n this.element.style.cursor = newSeries.cursor;\n }\n\n this.lastPick = newPick;\n this.highlightedDatum = datum;\n\n if (!updateProcessing) {\n return;\n }\n\n var updateAll = newSeries == null || lastSeries == null;\n\n if (updateAll) {\n this.update(ChartUpdateType.SERIES_UPDATE);\n } else {\n this.update(ChartUpdateType.SERIES_UPDATE, {\n seriesToUpdate: seriesToUpdate\n });\n }\n };\n\n Chart.defaultTooltipClass = 'ag-chart-tooltip';\n Chart.tooltipDocuments = [];\n return Chart;\n}(Observable$1);\n\nvar __extends$2g = undefined && undefined.__extends || function () {\n var _extendStatics76 = function extendStatics(d, b) {\n _extendStatics76 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics76(d, b);\n };\n\n return function (d, b) {\n _extendStatics76(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$t = undefined && undefined.__assign || function () {\n __assign$t = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$t.apply(this, arguments);\n};\n\nvar __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __values$e = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n/**\n * Acts as `Group` node but with specified bounds that form a rectangle.\n * Any parts of the child nodes outside that rectangle will not be visible.\n * Unlike the `Group` node, the `ClipRect` node cannot be transformed.\n */\n\n\nvar ClipRect =\n/** @class */\nfunction (_super) {\n __extends$2g(ClipRect, _super);\n\n function ClipRect() {\n var _this = _super.call(this) || this;\n\n _this.path = new Path2D$1();\n _this.enabled = true;\n _this._dirtyPath = true;\n _this.x = 0;\n _this.y = 0;\n _this.width = 10;\n _this.height = 10;\n _this.isContainerNode = true;\n return _this;\n }\n\n ClipRect.prototype.containsPoint = function (x, y) {\n var point = this.transformPoint(x, y);\n return point.x >= this.x && point.x <= this.x + this.width && point.y >= this.y && point.y <= this.y + this.height;\n };\n\n ClipRect.prototype.updatePath = function () {\n var _a = this,\n x = _a.x,\n y = _a.y,\n width = _a.width,\n height = _a.height,\n path = _a.path;\n\n path.clear();\n path.rect(x, y, width, height);\n this._dirtyPath = false;\n };\n\n ClipRect.prototype.computeBBox = function () {\n var _a = this,\n x = _a.x,\n y = _a.y,\n width = _a.width,\n height = _a.height;\n\n return new BBox$1(x, y, width, height);\n };\n\n ClipRect.prototype.render = function (renderCtx) {\n var e_1, _a;\n\n var _b = this,\n enabled = _b.enabled,\n dirty = _b.dirty,\n _dirtyPath = _b._dirtyPath,\n children = _b.children;\n\n var ctx = renderCtx.ctx,\n forceRender = renderCtx.forceRender,\n stats = renderCtx.stats;\n\n if (dirty === RedrawType.NONE && !forceRender) {\n if (stats) stats.nodesSkipped += this.nodeCount.count;\n return;\n }\n\n if (_dirtyPath) {\n this.updatePath();\n }\n\n if (enabled) {\n ctx.save();\n this.path.draw(ctx);\n ctx.clip();\n }\n\n var clipBBox = enabled ? this.computeBBox() : undefined;\n\n var childRenderContext = __assign$t(__assign$t({}, renderCtx), {\n clipBBox: clipBBox\n });\n\n try {\n for (var children_1 = __values$e(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {\n var child = children_1_1.value;\n\n if (child.visible && (forceRender || child.dirty > RedrawType.NONE)) {\n ctx.save();\n child.render(childRenderContext);\n ctx.restore();\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n _super.prototype.render.call(this, renderCtx);\n\n if (enabled) {\n ctx.restore();\n }\n };\n\n ClipRect.className = 'ClipRect';\n\n __decorate$19([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], ClipRect.prototype, \"enabled\", void 0);\n\n __decorate$19([ScenePathChangeDetection()], ClipRect.prototype, \"x\", void 0);\n\n __decorate$19([ScenePathChangeDetection()], ClipRect.prototype, \"y\", void 0);\n\n __decorate$19([ScenePathChangeDetection()], ClipRect.prototype, \"width\", void 0);\n\n __decorate$19([ScenePathChangeDetection()], ClipRect.prototype, \"height\", void 0);\n\n return ClipRect;\n}(Node$1);\n\nvar __extends$2f = undefined && undefined.__extends || function () {\n var _extendStatics77 = function extendStatics(d, b) {\n _extendStatics77 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics77(d, b);\n };\n\n return function (d, b) {\n _extendStatics77(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar RangeHandle$1 =\n/** @class */\nfunction (_super) {\n __extends$2f(RangeHandle, _super);\n\n function RangeHandle() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this._fill = '#f2f2f2';\n _this._stroke = '#999999';\n _this._strokeWidth = 1;\n _this._lineCap = 'square';\n _this._centerX = 0;\n _this._centerY = 0; // Use an even number for better looking results.\n\n _this._width = 8; // Use an even number for better looking results.\n\n _this._gripLineGap = 2; // Use an even number for better looking results.\n\n _this._gripLineLength = 8;\n _this._height = 16;\n return _this;\n }\n\n Object.defineProperty(RangeHandle.prototype, \"centerX\", {\n get: function get() {\n return this._centerX;\n },\n set: function set(value) {\n if (this._centerX !== value) {\n this._centerX = value;\n this.dirtyPath = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RangeHandle.prototype, \"centerY\", {\n get: function get() {\n return this._centerY;\n },\n set: function set(value) {\n if (this._centerY !== value) {\n this._centerY = value;\n this.dirtyPath = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RangeHandle.prototype, \"width\", {\n get: function get() {\n return this._width;\n },\n set: function set(value) {\n if (this._width !== value) {\n this._width = value;\n this.dirtyPath = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RangeHandle.prototype, \"gripLineGap\", {\n get: function get() {\n return this._gripLineGap;\n },\n set: function set(value) {\n if (this._gripLineGap !== value) {\n this._gripLineGap = value;\n this.dirtyPath = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RangeHandle.prototype, \"gripLineLength\", {\n get: function get() {\n return this._gripLineLength;\n },\n set: function set(value) {\n if (this._gripLineLength !== value) {\n this._gripLineLength = value;\n this.dirtyPath = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RangeHandle.prototype, \"height\", {\n get: function get() {\n return this._height;\n },\n set: function set(value) {\n if (this._height !== value) {\n this._height = value;\n this.dirtyPath = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n\n RangeHandle.prototype.computeBBox = function () {\n var _a = this,\n centerX = _a.centerX,\n centerY = _a.centerY,\n width = _a.width,\n height = _a.height;\n\n var x = centerX - width / 2;\n var y = centerY - height / 2;\n return new BBox$1(x, y, width, height);\n };\n\n RangeHandle.prototype.isPointInPath = function (x, y) {\n var point = this.transformPoint(x, y);\n var bbox = this.computeBBox();\n return bbox.containsPoint(point.x, point.y);\n };\n\n RangeHandle.prototype.updatePath = function () {\n var _a = this,\n path = _a.path,\n centerX = _a.centerX,\n centerY = _a.centerY,\n width = _a.width,\n height = _a.height;\n\n path.clear();\n var x = centerX - width / 2;\n var y = centerY - height / 2;\n var ax = this.align(x);\n var ay = this.align(y);\n var axw = ax + this.align(x, width);\n var ayh = ay + this.align(y, height); // Handle.\n\n path.moveTo(ax, ay);\n path.lineTo(axw, ay);\n path.lineTo(axw, ayh);\n path.lineTo(ax, ayh);\n path.lineTo(ax, ay); // Grip lines.\n\n var dx = this.gripLineGap / 2;\n var dy = this.gripLineLength / 2;\n path.moveTo(this.align(centerX - dx), this.align(centerY - dy));\n path.lineTo(this.align(centerX - dx), this.align(centerY + dy));\n path.moveTo(this.align(centerX + dx), this.align(centerY - dy));\n path.lineTo(this.align(centerX + dx), this.align(centerY + dy));\n };\n\n RangeHandle.className = 'RangeHandle';\n return RangeHandle;\n}(Path$1);\n\nvar __extends$2e = undefined && undefined.__extends || function () {\n var _extendStatics78 = function extendStatics(d, b) {\n _extendStatics78 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics78(d, b);\n };\n\n return function (d, b) {\n _extendStatics78(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar RangeMask =\n/** @class */\nfunction (_super) {\n __extends$2e(RangeMask, _super);\n\n function RangeMask() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this._stroke = '#999999';\n _this._strokeWidth = 1;\n _this._fill = '#999999';\n _this._fillOpacity = 0.2;\n _this._lineCap = 'square';\n _this._x = 0;\n _this._y = 0;\n _this._width = 200;\n _this._height = 30;\n _this.minRange = 0.05;\n _this._min = 0;\n _this._max = 1;\n return _this;\n }\n\n Object.defineProperty(RangeMask.prototype, \"x\", {\n get: function get() {\n return this._x;\n },\n set: function set(value) {\n if (this._x !== value) {\n this._x = value;\n this.dirtyPath = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RangeMask.prototype, \"y\", {\n get: function get() {\n return this._y;\n },\n set: function set(value) {\n if (this._y !== value) {\n this._y = value;\n this.dirtyPath = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RangeMask.prototype, \"width\", {\n get: function get() {\n return this._width;\n },\n set: function set(value) {\n if (this._width !== value) {\n this._width = value;\n this.dirtyPath = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RangeMask.prototype, \"height\", {\n get: function get() {\n return this._height;\n },\n set: function set(value) {\n if (this._height !== value) {\n this._height = value;\n this.dirtyPath = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RangeMask.prototype, \"min\", {\n get: function get() {\n return this._min;\n },\n set: function set(value) {\n value = Math.min(Math.max(value, 0), this.max - this.minRange);\n\n if (isNaN(value)) {\n return;\n }\n\n if (this._min !== value) {\n this._min = value;\n this.dirtyPath = true;\n this.onRangeChange && this.onRangeChange(value, this.max);\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RangeMask.prototype, \"max\", {\n get: function get() {\n return this._max;\n },\n set: function set(value) {\n value = Math.max(Math.min(value, 1), this.min + this.minRange);\n\n if (isNaN(value)) {\n return;\n }\n\n if (this._max !== value) {\n this._max = value;\n this.dirtyPath = true;\n this.onRangeChange && this.onRangeChange(this.min, value);\n }\n },\n enumerable: true,\n configurable: true\n });\n\n RangeMask.prototype.computeBBox = function () {\n var _a = this,\n x = _a.x,\n y = _a.y,\n width = _a.width,\n height = _a.height;\n\n return new BBox$1(x, y, width, height);\n };\n\n RangeMask.prototype.computeVisibleRangeBBox = function () {\n var _a = this,\n x = _a.x,\n y = _a.y,\n width = _a.width,\n height = _a.height,\n min = _a.min,\n max = _a.max;\n\n var minX = x + width * min;\n var maxX = x + width * max;\n return new BBox$1(minX, y, maxX - minX, height);\n };\n\n RangeMask.prototype.updatePath = function () {\n var _a = this,\n path = _a.path,\n x = _a.x,\n y = _a.y,\n width = _a.width,\n height = _a.height,\n min = _a.min,\n max = _a.max;\n\n path.clear();\n var ax = this.align(x);\n var ay = this.align(y);\n var axw = ax + this.align(x, width);\n var ayh = ay + this.align(y, height); // Whole range.\n\n path.moveTo(ax, ay);\n path.lineTo(axw, ay);\n path.lineTo(axw, ayh);\n path.lineTo(ax, ayh);\n path.lineTo(ax, ay);\n var minX = this.align(x + width * min);\n var maxX = this.align(x + width * max); // Visible range.\n\n path.moveTo(minX, ay);\n path.lineTo(minX, ayh);\n path.lineTo(maxX, ayh);\n path.lineTo(maxX, ay);\n path.lineTo(minX, ay);\n };\n\n RangeMask.className = 'RangeMask';\n return RangeMask;\n}(Path$1);\n\nvar __extends$2d = undefined && undefined.__extends || function () {\n var _extendStatics79 = function extendStatics(d, b) {\n _extendStatics79 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics79(d, b);\n };\n\n return function (d, b) {\n _extendStatics79(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$s = undefined && undefined.__assign || function () {\n __assign$s = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$s.apply(this, arguments);\n};\n\nvar RangeSelector =\n/** @class */\nfunction (_super) {\n __extends$2d(RangeSelector, _super);\n\n function RangeSelector() {\n var _this = _super.call(this) || this;\n\n _this.minHandle = new RangeHandle$1();\n _this.maxHandle = new RangeHandle$1();\n\n _this.mask = function () {\n var _a = RangeSelector.defaults,\n x = _a.x,\n y = _a.y,\n width = _a.width,\n height = _a.height,\n min = _a.min,\n max = _a.max;\n var mask = new RangeMask();\n mask.x = x;\n mask.y = y;\n mask.width = width;\n mask.height = height;\n mask.min = min;\n mask.max = max;\n var _b = _this,\n minHandle = _b.minHandle,\n maxHandle = _b.maxHandle;\n minHandle.centerX = x;\n maxHandle.centerX = x + width;\n minHandle.centerY = maxHandle.centerY = y + height / 2;\n\n _this.append([mask, minHandle, maxHandle]);\n\n mask.onRangeChange = function (min, max) {\n _this.updateHandles();\n\n _this.onRangeChange && _this.onRangeChange(min, max);\n };\n\n return mask;\n }();\n\n _this._x = RangeSelector.defaults.x;\n _this._y = RangeSelector.defaults.y;\n _this._width = RangeSelector.defaults.width;\n _this._height = RangeSelector.defaults.height;\n _this._min = RangeSelector.defaults.min;\n _this._max = RangeSelector.defaults.max;\n _this.isContainerNode = true;\n return _this;\n }\n\n Object.defineProperty(RangeSelector.prototype, \"x\", {\n get: function get() {\n return this.mask.x;\n },\n set: function set(value) {\n this.mask.x = value;\n this.updateHandles();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RangeSelector.prototype, \"y\", {\n get: function get() {\n return this.mask.y;\n },\n set: function set(value) {\n this.mask.y = value;\n this.updateHandles();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RangeSelector.prototype, \"width\", {\n get: function get() {\n return this.mask.width;\n },\n set: function set(value) {\n this.mask.width = value;\n this.updateHandles();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RangeSelector.prototype, \"height\", {\n get: function get() {\n return this.mask.height;\n },\n set: function set(value) {\n this.mask.height = value;\n this.updateHandles();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RangeSelector.prototype, \"min\", {\n get: function get() {\n return this.mask.min;\n },\n set: function set(value) {\n this.mask.min = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(RangeSelector.prototype, \"max\", {\n get: function get() {\n return this.mask.max;\n },\n set: function set(value) {\n this.mask.max = value;\n },\n enumerable: true,\n configurable: true\n });\n\n RangeSelector.prototype.updateHandles = function () {\n var _a = this,\n minHandle = _a.minHandle,\n maxHandle = _a.maxHandle,\n x = _a.x,\n y = _a.y,\n width = _a.width,\n height = _a.height,\n mask = _a.mask;\n\n minHandle.centerX = x + width * mask.min;\n maxHandle.centerX = x + width * mask.max;\n minHandle.centerY = maxHandle.centerY = y + height / 2;\n };\n\n RangeSelector.prototype.computeBBox = function () {\n return this.mask.computeBBox();\n };\n\n RangeSelector.prototype.computeVisibleRangeBBox = function () {\n return this.mask.computeVisibleRangeBBox();\n };\n\n RangeSelector.prototype.render = function (renderCtx) {\n var ctx = renderCtx.ctx,\n forceRender = renderCtx.forceRender,\n stats = renderCtx.stats;\n\n if (this.dirty === RedrawType.NONE && !forceRender) {\n if (stats) stats.nodesSkipped++;\n return;\n }\n\n this.computeTransformMatrix();\n this.matrix.toContext(ctx);\n\n var _a = this,\n mask = _a.mask,\n minHandle = _a.minHandle,\n maxHandle = _a.maxHandle;\n\n [mask, minHandle, maxHandle].forEach(function (child) {\n if (child.visible && (forceRender || child.dirty > RedrawType.NONE)) {\n ctx.save();\n child.render(__assign$s(__assign$s({}, renderCtx), {\n ctx: ctx,\n forceRender: forceRender\n }));\n ctx.restore();\n }\n });\n this.markClean({\n force: true\n });\n if (stats) stats.nodesRendered++;\n };\n\n RangeSelector.className = 'Range';\n RangeSelector.defaults = {\n x: 0,\n y: 0,\n width: 200,\n height: 30,\n min: 0,\n max: 1\n };\n return RangeSelector;\n}(Group$1);\n\nvar NavigatorMask =\n/** @class */\nfunction () {\n function NavigatorMask(rangeMask) {\n this.rm = rangeMask;\n }\n\n Object.defineProperty(NavigatorMask.prototype, \"fill\", {\n get: function get() {\n return this.rm.fill;\n },\n set: function set(value) {\n this.rm.fill = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NavigatorMask.prototype, \"stroke\", {\n get: function get() {\n return this.rm.stroke;\n },\n set: function set(value) {\n this.rm.stroke = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NavigatorMask.prototype, \"strokeWidth\", {\n get: function get() {\n return this.rm.strokeWidth;\n },\n set: function set(value) {\n this.rm.strokeWidth = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NavigatorMask.prototype, \"fillOpacity\", {\n get: function get() {\n return this.rm.fillOpacity;\n },\n set: function set(value) {\n this.rm.fillOpacity = value;\n },\n enumerable: true,\n configurable: true\n });\n return NavigatorMask;\n}();\n\nvar NavigatorHandle =\n/** @class */\nfunction () {\n function NavigatorHandle(rangeHandle) {\n this.rh = rangeHandle;\n }\n\n Object.defineProperty(NavigatorHandle.prototype, \"fill\", {\n get: function get() {\n return this.rh.fill;\n },\n set: function set(value) {\n this.rh.fill = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NavigatorHandle.prototype, \"stroke\", {\n get: function get() {\n return this.rh.stroke;\n },\n set: function set(value) {\n this.rh.stroke = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NavigatorHandle.prototype, \"strokeWidth\", {\n get: function get() {\n return this.rh.strokeWidth;\n },\n set: function set(value) {\n this.rh.strokeWidth = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NavigatorHandle.prototype, \"width\", {\n get: function get() {\n return this.rh.width;\n },\n set: function set(value) {\n this.rh.width = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NavigatorHandle.prototype, \"height\", {\n get: function get() {\n return this.rh.height;\n },\n set: function set(value) {\n this.rh.height = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NavigatorHandle.prototype, \"gripLineGap\", {\n get: function get() {\n return this.rh.gripLineGap;\n },\n set: function set(value) {\n this.rh.gripLineGap = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(NavigatorHandle.prototype, \"gripLineLength\", {\n get: function get() {\n return this.rh.gripLineLength;\n },\n set: function set(value) {\n this.rh.gripLineLength = value;\n },\n enumerable: true,\n configurable: true\n });\n return NavigatorHandle;\n}();\n\nvar Navigator =\n/** @class */\nfunction () {\n function Navigator(chart) {\n var _this = this;\n\n this.rs = new RangeSelector();\n this.mask = new NavigatorMask(this.rs.mask);\n this.minHandle = new NavigatorHandle(this.rs.minHandle);\n this.maxHandle = new NavigatorHandle(this.rs.maxHandle);\n this.minHandleDragging = false;\n this.maxHandleDragging = false;\n this.panHandleOffset = NaN;\n this.changedCursor = false;\n this._margin = 10;\n this.chart = chart;\n chart.scene.root.append(this.rs);\n\n this.rs.onRangeChange = function (min, max) {\n return _this.updateAxes(min, max);\n };\n }\n\n Object.defineProperty(Navigator.prototype, \"enabled\", {\n get: function get() {\n return this.rs.visible;\n },\n set: function set(value) {\n this.rs.visible = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Navigator.prototype, \"x\", {\n get: function get() {\n return this.rs.x;\n },\n set: function set(value) {\n this.rs.x = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Navigator.prototype, \"y\", {\n get: function get() {\n return this.rs.y;\n },\n set: function set(value) {\n this.rs.y = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Navigator.prototype, \"width\", {\n get: function get() {\n return this.rs.width;\n },\n set: function set(value) {\n this.rs.width = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Navigator.prototype, \"height\", {\n get: function get() {\n return this.rs.height;\n },\n set: function set(value) {\n this.rs.height = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Navigator.prototype, \"margin\", {\n get: function get() {\n return this._margin;\n },\n set: function set(value) {\n this._margin = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Navigator.prototype, \"min\", {\n get: function get() {\n return this.rs.min;\n },\n set: function set(value) {\n this.rs.min = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Navigator.prototype, \"max\", {\n get: function get() {\n return this.rs.max;\n },\n set: function set(value) {\n this.rs.max = value;\n },\n enumerable: true,\n configurable: true\n });\n\n Navigator.prototype.updateAxes = function (min, max) {\n var chart = this.chart;\n var clipSeries = false;\n var layoutRequired = false;\n chart.axes.forEach(function (axis) {\n if (axis.direction === ChartAxisDirection.X) {\n if (!clipSeries && (min > 0 || max < 1)) {\n clipSeries = true;\n }\n\n axis.visibleRange = [min, max];\n var oldLabelAutoRotated = axis.labelAutoRotated;\n axis.update();\n\n if (axis.labelAutoRotated !== oldLabelAutoRotated) {\n layoutRequired = true;\n }\n }\n });\n chart.seriesRoot.enabled = clipSeries;\n var updateType = layoutRequired ? ChartUpdateType.PERFORM_LAYOUT : ChartUpdateType.SERIES_UPDATE;\n chart.update(updateType, {\n forceNodeDataRefresh: true\n });\n };\n\n Navigator.prototype.onDragStart = function (offset) {\n if (!this.enabled) {\n return;\n }\n\n var offsetX = offset.offsetX,\n offsetY = offset.offsetY;\n var rs = this.rs;\n var minHandle = rs.minHandle,\n maxHandle = rs.maxHandle,\n x = rs.x,\n width = rs.width,\n min = rs.min;\n var visibleRange = rs.computeVisibleRangeBBox();\n\n if (!(this.minHandleDragging || this.maxHandleDragging)) {\n if (minHandle.containsPoint(offsetX, offsetY)) {\n this.minHandleDragging = true;\n } else if (maxHandle.containsPoint(offsetX, offsetY)) {\n this.maxHandleDragging = true;\n } else if (visibleRange.containsPoint(offsetX, offsetY)) {\n this.panHandleOffset = (offsetX - x) / width - min;\n }\n }\n };\n\n Navigator.prototype.onDrag = function (offset) {\n if (!this.enabled) {\n return;\n }\n\n var _a = this,\n rs = _a.rs,\n panHandleOffset = _a.panHandleOffset;\n\n var x = rs.x,\n y = rs.y,\n width = rs.width,\n height = rs.height,\n minHandle = rs.minHandle,\n maxHandle = rs.maxHandle;\n var style = this.chart.element.style;\n var offsetX = offset.offsetX,\n offsetY = offset.offsetY;\n var minX = x + width * rs.min;\n var maxX = x + width * rs.max;\n var visibleRange = new BBox$1(minX, y, maxX - minX, height);\n\n function getRatio() {\n return Math.min(Math.max((offsetX - x) / width, 0), 1);\n }\n\n if (minHandle.containsPoint(offsetX, offsetY) || maxHandle.containsPoint(offsetX, offsetY)) {\n this.changedCursor = true;\n style.cursor = 'ew-resize';\n } else if (visibleRange.containsPoint(offsetX, offsetY)) {\n this.changedCursor = true;\n style.cursor = 'grab';\n } else if (this.changedCursor) {\n this.changedCursor = false;\n style.cursor = 'default';\n }\n\n if (this.minHandleDragging) {\n rs.min = getRatio();\n } else if (this.maxHandleDragging) {\n rs.max = getRatio();\n } else if (!isNaN(panHandleOffset)) {\n var span = rs.max - rs.min;\n var min = Math.min(getRatio() - panHandleOffset, 1 - span);\n\n if (min <= rs.min) {\n // pan left\n rs.min = min;\n rs.max = rs.min + span;\n } else {\n // pan right\n rs.max = min + span;\n rs.min = rs.max - span;\n }\n }\n };\n\n Navigator.prototype.onDragStop = function () {\n this.stopHandleDragging();\n };\n\n Navigator.prototype.stopHandleDragging = function () {\n this.minHandleDragging = this.maxHandleDragging = false;\n this.panHandleOffset = NaN;\n };\n\n return Navigator;\n}();\n\nvar __extends$2c = undefined && undefined.__extends || function () {\n var _extendStatics80 = function extendStatics(d, b) {\n _extendStatics80 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics80(d, b);\n };\n\n return function (d, b) {\n _extendStatics80(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __read$u = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar CartesianChart =\n/** @class */\nfunction (_super) {\n __extends$2c(CartesianChart, _super);\n\n function CartesianChart(document) {\n if (document === void 0) {\n document = window.document;\n }\n\n var _this = _super.call(this, document) || this;\n\n _this.seriesRoot = new ClipRect();\n _this.navigator = new Navigator(_this); // Prevent the scene from rendering chart components in an invalid state\n // (before first layout is performed).\n\n _this.scene.root.visible = false;\n var root = _this.scene.root;\n root.append(_this.seriesRoot);\n root.append(_this.legend.group);\n _this.navigator.enabled = false;\n return _this;\n }\n\n CartesianChart.prototype.performLayout = function () {\n this.scene.root.visible = true;\n\n var _a = this,\n width = _a.width,\n height = _a.height,\n legend = _a.legend,\n navigator = _a.navigator;\n\n var shrinkRect = new BBox$1(0, 0, width, height);\n var _b = this.positionCaptions().captionAutoPadding,\n captionAutoPadding = _b === void 0 ? 0 : _b;\n this.positionLegend(captionAutoPadding);\n\n if (legend.enabled && legend.data.length) {\n var legendAutoPadding = this.legendAutoPadding;\n var legendPadding = this.legend.spacing;\n shrinkRect.x += legendAutoPadding.left;\n shrinkRect.y += legendAutoPadding.top;\n shrinkRect.width -= legendAutoPadding.left + legendAutoPadding.right;\n shrinkRect.height -= legendAutoPadding.top + legendAutoPadding.bottom;\n\n switch (this.legend.position) {\n case 'right':\n shrinkRect.width -= legendPadding;\n break;\n\n case 'bottom':\n shrinkRect.height -= legendPadding;\n break;\n\n case 'left':\n shrinkRect.x += legendPadding;\n shrinkRect.width -= legendPadding;\n break;\n\n case 'top':\n shrinkRect.y += legendPadding;\n shrinkRect.height -= legendPadding;\n break;\n }\n }\n\n var padding = this.padding;\n shrinkRect.x += padding.left;\n shrinkRect.width -= padding.left + padding.right;\n shrinkRect.y += padding.top + captionAutoPadding;\n shrinkRect.height -= padding.top + captionAutoPadding + padding.bottom;\n\n if (navigator.enabled) {\n var navigatorTotalHeight = navigator.height + navigator.margin;\n shrinkRect.height -= navigatorTotalHeight;\n navigator.x = shrinkRect.x;\n navigator.y = shrinkRect.y + shrinkRect.height + navigator.margin;\n navigator.width = shrinkRect.width;\n }\n\n var seriesRect = this.updateAxes(shrinkRect).seriesRect;\n this.seriesRect = seriesRect;\n this.series.forEach(function (series) {\n series.group.translationX = Math.floor(seriesRect.x);\n series.group.translationY = Math.floor(seriesRect.y);\n });\n var seriesRoot = this.seriesRoot;\n seriesRoot.x = seriesRect.x;\n seriesRoot.y = seriesRect.y;\n seriesRoot.width = seriesRect.width;\n seriesRoot.height = seriesRect.height;\n };\n\n CartesianChart.prototype.setupDomListeners = function (chartElement) {\n _super.prototype.setupDomListeners.call(this, chartElement);\n\n this._onTouchStart = this.onTouchStart.bind(this);\n this._onTouchMove = this.onTouchMove.bind(this);\n this._onTouchEnd = this.onTouchEnd.bind(this);\n this._onTouchCancel = this.onTouchCancel.bind(this);\n chartElement.addEventListener('touchstart', this._onTouchStart, {\n passive: true\n });\n chartElement.addEventListener('touchmove', this._onTouchMove, {\n passive: true\n });\n chartElement.addEventListener('touchend', this._onTouchEnd, {\n passive: true\n });\n chartElement.addEventListener('touchcancel', this._onTouchCancel, {\n passive: true\n });\n };\n\n CartesianChart.prototype.cleanupDomListeners = function (chartElement) {\n _super.prototype.cleanupDomListeners.call(this, chartElement);\n\n chartElement.removeEventListener('touchstart', this._onTouchStart);\n chartElement.removeEventListener('touchmove', this._onTouchMove);\n chartElement.removeEventListener('touchend', this._onTouchEnd);\n chartElement.removeEventListener('touchcancel', this._onTouchCancel);\n };\n\n CartesianChart.prototype.getTouchOffset = function (event) {\n var rect = this.scene.canvas.element.getBoundingClientRect();\n var touch = event.touches[0];\n return touch ? {\n offsetX: touch.clientX - rect.left,\n offsetY: touch.clientY - rect.top\n } : undefined;\n };\n\n CartesianChart.prototype.onTouchStart = function (event) {\n var offset = this.getTouchOffset(event);\n\n if (offset) {\n this.navigator.onDragStart(offset);\n }\n };\n\n CartesianChart.prototype.onTouchMove = function (event) {\n var offset = this.getTouchOffset(event);\n\n if (offset) {\n this.navigator.onDrag(offset);\n }\n };\n\n CartesianChart.prototype.onTouchEnd = function (_event) {\n this.navigator.onDragStop();\n };\n\n CartesianChart.prototype.onTouchCancel = function (_event) {\n this.navigator.onDragStop();\n };\n\n CartesianChart.prototype.onMouseDown = function (event) {\n _super.prototype.onMouseDown.call(this, event);\n\n this.navigator.onDragStart(event);\n };\n\n CartesianChart.prototype.onMouseMove = function (event) {\n _super.prototype.onMouseMove.call(this, event);\n\n this.navigator.onDrag(event);\n };\n\n CartesianChart.prototype.onMouseUp = function (event) {\n _super.prototype.onMouseUp.call(this, event);\n\n this.navigator.onDragStop();\n };\n\n CartesianChart.prototype.onMouseOut = function (event) {\n _super.prototype.onMouseOut.call(this, event);\n\n this.navigator.onDragStop();\n };\n\n CartesianChart.prototype.updateAxes = function (inputShrinkRect) {\n var _a;\n\n var axisWidths = (_a = {}, _a[ChartAxisPosition.Top] = 0, _a[ChartAxisPosition.Bottom] = 0, _a[ChartAxisPosition.Left] = 0, _a[ChartAxisPosition.Right] = 0, _a);\n\n var stableWidths = function stableWidths(other) {\n return Object.entries(axisWidths).every(function (_a) {\n var _b = __read$u(_a, 2),\n p = _b[0],\n w = _b[1];\n\n var otherW = other[p];\n\n if (w || otherW) {\n return w === otherW;\n }\n\n return true;\n });\n };\n\n var ceilValues = function ceilValues(records) {\n return Object.entries(records).reduce(function (out, _a) {\n var _b = __read$u(_a, 2),\n key = _b[0],\n value = _b[1];\n\n if (value && Math.abs(value) === Infinity) {\n value = 0;\n }\n\n out[key] = value != null ? Math.ceil(value) : value;\n return out;\n }, {});\n }; // Iteratively try to resolve axis widths - since X axis width affects Y axis range,\n // and vice-versa, we need to iteratively try and find a fit for the axes and their\n // ticks/labels.\n\n\n var lastPass = {};\n var clipSeries = false;\n var seriesRect = undefined;\n var count = 0;\n\n do {\n Object.assign(axisWidths, lastPass);\n var result = this.updateAxesPass(axisWidths, inputShrinkRect.clone(), seriesRect);\n lastPass = ceilValues(result.axisWidths);\n clipSeries = result.clipSeries;\n seriesRect = result.seriesRect;\n\n if (count++ > 10) {\n throw new Error('AG Charts - unable to find stable axis layout.');\n }\n } while (!stableWidths(lastPass));\n\n this.seriesRoot.enabled = clipSeries;\n return {\n seriesRect: seriesRect\n };\n };\n\n CartesianChart.prototype.updateAxesPass = function (axisWidths, bounds, lastPassSeriesRect) {\n var _a = this,\n navigator = _a.navigator,\n axes = _a.axes;\n\n var visited = {};\n var newAxisWidths = {};\n var clipSeries = false;\n var primaryTickCounts = {};\n var crossLinePadding = {};\n\n if (lastPassSeriesRect) {\n this.axes.forEach(function (axis) {\n if (axis.crossLines) {\n axis.crossLines.forEach(function (crossLine) {\n crossLine.calculatePadding(crossLinePadding, lastPassSeriesRect);\n });\n }\n });\n }\n\n var buildAxisBound = function buildAxisBound() {\n var result = bounds.clone();\n var _a = crossLinePadding.top,\n top = _a === void 0 ? 0 : _a,\n _b = crossLinePadding.right,\n right = _b === void 0 ? 0 : _b,\n _c = crossLinePadding.bottom,\n bottom = _c === void 0 ? 0 : _c,\n _d = crossLinePadding.left,\n left = _d === void 0 ? 0 : _d;\n result.x += left;\n result.y += top;\n result.width -= left + right;\n result.height -= top + bottom;\n return result;\n };\n\n var axisBound = buildAxisBound();\n\n var buildSeriesRect = function buildSeriesRect() {\n var result = axisBound.clone();\n var top = axisWidths.top,\n bottom = axisWidths.bottom,\n left = axisWidths.left,\n right = axisWidths.right;\n result.x += left !== null && left !== void 0 ? left : 0;\n result.y += top !== null && top !== void 0 ? top : 0;\n result.width -= (left !== null && left !== void 0 ? left : 0) + (right !== null && right !== void 0 ? right : 0);\n result.height -= (top !== null && top !== void 0 ? top : 0) + (bottom !== null && bottom !== void 0 ? bottom : 0); // Width and height should not be negative.\n\n result.width = Math.max(0, result.width);\n result.height = Math.max(0, result.height);\n return result;\n };\n\n var seriesRect = buildSeriesRect();\n\n var clampToOutsideSeriesRect = function clampToOutsideSeriesRect(value, dimension, direction) {\n var x = seriesRect.x,\n y = seriesRect.y,\n width = seriesRect.width,\n height = seriesRect.height;\n var clampBounds = [x, y, x + width, y + height];\n var fn = direction === 1 ? Math.min : Math.max;\n var compareTo = clampBounds[(dimension === 'x' ? 0 : 1) + (direction === 1 ? 0 : 2)];\n return fn(value, compareTo);\n }; // Set the number of ticks for continuous axes based on the available range\n // before updating the axis domain via `this.updateAxes()` as the tick count has an effect on the calculated `nice` domain extent\n\n\n axes.forEach(function (axis) {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n\n var position = axis.position,\n direction = axis.direction;\n visited[position] = (_a = visited[position], _a !== null && _a !== void 0 ? _a : 0) + 1;\n\n var axisLeftRightRange = function axisLeftRightRange(axis) {\n if (axis instanceof CategoryAxis || axis instanceof GroupedCategoryAxis) {\n return [0, seriesRect.height];\n }\n\n return [seriesRect.height, 0];\n };\n\n axis.label.mirrored = ['top', 'right'].includes(position);\n var axisOffset = (_b = newAxisWidths[position], _b !== null && _b !== void 0 ? _b : 0);\n\n switch (position) {\n case ChartAxisPosition.Top:\n case ChartAxisPosition.Bottom:\n axis.range = [0, seriesRect.width];\n axis.gridLength = seriesRect.height;\n break;\n\n case ChartAxisPosition.Right:\n case ChartAxisPosition.Left:\n axis.range = axisLeftRightRange(axis);\n axis.gridLength = seriesRect.width;\n break;\n }\n\n axis.calculateTickCount();\n\n if (axis.direction === ChartAxisDirection.X) {\n var min = navigator.min,\n max = navigator.max,\n enabled = navigator.enabled;\n\n if (enabled) {\n axis.visibleRange = [min, max];\n } else {\n axis.visibleRange = [0, 1];\n }\n }\n\n if (!clipSeries && (axis.visibleRange[0] > 0 || axis.visibleRange[1] < 1)) {\n clipSeries = true;\n }\n\n var primaryTickCount = primaryTickCounts[axis.direction];\n primaryTickCount = axis.calculateDomain({\n primaryTickCount: primaryTickCount\n }).primaryTickCount;\n primaryTickCounts[axis.direction] = primaryTickCount;\n axis.update();\n var axisThickness = 0;\n\n if (axis.thickness) {\n axisThickness = axis.thickness;\n } else {\n var bbox = axis.computeBBox();\n axisThickness = direction === ChartAxisDirection.X ? bbox.height : bbox.width;\n } // for multiple axes in the same direction and position, apply padding at the top of each inner axis (i.e. between axes).\n\n\n var axisPadding = 15;\n var visitCount = (_c = visited[position], _c !== null && _c !== void 0 ? _c : 0);\n\n if (visitCount > 1) {\n axisThickness += axisPadding;\n }\n\n axisThickness = Math.ceil(axisThickness);\n\n switch (position) {\n case ChartAxisPosition.Top:\n axis.translation.x = axisBound.x + (_d = axisWidths.left, _d !== null && _d !== void 0 ? _d : 0);\n axis.translation.y = clampToOutsideSeriesRect(axisBound.y + 1 + axisOffset + axisThickness, 'y', 1);\n break;\n\n case ChartAxisPosition.Bottom:\n axis.translation.x = axisBound.x + (_e = axisWidths.left, _e !== null && _e !== void 0 ? _e : 0);\n axis.translation.y = clampToOutsideSeriesRect(axisBound.y + axisBound.height + 1 - axisThickness - axisOffset, 'y', -1);\n break;\n\n case ChartAxisPosition.Left:\n axis.translation.y = axisBound.y + (_f = axisWidths.top, _f !== null && _f !== void 0 ? _f : 0);\n axis.translation.x = clampToOutsideSeriesRect(axisBound.x + axisOffset + axisThickness, 'x', 1);\n break;\n\n case ChartAxisPosition.Right:\n axis.translation.y = axisBound.y + (_g = axisWidths.top, _g !== null && _g !== void 0 ? _g : 0);\n axis.translation.x = clampToOutsideSeriesRect(axisBound.x + axisBound.width - axisThickness - axisOffset, 'x', -1);\n break;\n }\n\n axis.update();\n newAxisWidths[position] = (_h = newAxisWidths[position], _h !== null && _h !== void 0 ? _h : 0) + axisThickness;\n });\n return {\n clipSeries: clipSeries,\n seriesRect: seriesRect,\n axisWidths: newAxisWidths\n };\n };\n\n CartesianChart.className = 'CartesianChart';\n CartesianChart.type = 'cartesian';\n return CartesianChart;\n}(Chart);\n\nvar __extends$2b = undefined && undefined.__extends || function () {\n var _extendStatics81 = function extendStatics(d, b) {\n _extendStatics81 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics81(d, b);\n };\n\n return function (d, b) {\n _extendStatics81(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar HierarchyChart =\n/** @class */\nfunction (_super) {\n __extends$2b(HierarchyChart, _super);\n\n function HierarchyChart(document) {\n if (document === void 0) {\n document = window.document;\n }\n\n var _this = _super.call(this, document) || this;\n\n _this._data = {};\n _this._seriesRoot = new ClipRect(); // Prevent the scene from rendering chart components in an invalid state\n // (before first layout is performed).\n\n _this.scene.root.visible = false;\n var root = _this.scene.root;\n root.append(_this.seriesRoot);\n root.append(_this.legend.group);\n return _this;\n }\n\n Object.defineProperty(HierarchyChart.prototype, \"seriesRoot\", {\n get: function get() {\n return this._seriesRoot;\n },\n enumerable: true,\n configurable: true\n });\n\n HierarchyChart.prototype.performLayout = function () {\n this.scene.root.visible = true;\n\n var _a = this,\n width = _a.width,\n height = _a.height,\n legend = _a.legend;\n\n var shrinkRect = new BBox$1(0, 0, width, height);\n var _b = this.positionCaptions().captionAutoPadding,\n captionAutoPadding = _b === void 0 ? 0 : _b;\n this.positionLegend(captionAutoPadding);\n\n if (legend.enabled && legend.data.length) {\n var legendAutoPadding = this.legendAutoPadding;\n var legendPadding = this.legend.spacing;\n shrinkRect.x += legendAutoPadding.left;\n shrinkRect.y += legendAutoPadding.top;\n shrinkRect.width -= legendAutoPadding.left + legendAutoPadding.right;\n shrinkRect.height -= legendAutoPadding.top + legendAutoPadding.bottom;\n\n switch (this.legend.position) {\n case 'right':\n shrinkRect.width -= legendPadding;\n break;\n\n case 'bottom':\n shrinkRect.height -= legendPadding;\n break;\n\n case 'left':\n shrinkRect.x += legendPadding;\n shrinkRect.width -= legendPadding;\n break;\n\n case 'top':\n shrinkRect.y += legendPadding;\n shrinkRect.height -= legendPadding;\n break;\n }\n }\n\n var padding = this.padding;\n shrinkRect.x += padding.left;\n shrinkRect.width -= padding.left + padding.right;\n shrinkRect.y += padding.top + captionAutoPadding;\n shrinkRect.height -= padding.top + captionAutoPadding + padding.bottom;\n this.seriesRect = shrinkRect;\n this.series.forEach(function (series) {\n series.group.translationX = Math.floor(shrinkRect.x);\n series.group.translationY = Math.floor(shrinkRect.y);\n series.update(); // this has to happen after the `updateAxes` call\n });\n var seriesRoot = this.seriesRoot;\n seriesRoot.x = shrinkRect.x;\n seriesRoot.y = shrinkRect.y;\n seriesRoot.width = shrinkRect.width;\n seriesRoot.height = shrinkRect.height;\n };\n\n HierarchyChart.className = 'HierarchyChart';\n HierarchyChart.type = 'hierarchy';\n return HierarchyChart;\n}(Chart);\n\nvar __extends$2a = undefined && undefined.__extends || function () {\n var _extendStatics82 = function extendStatics(d, b) {\n _extendStatics82 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics82(d, b);\n };\n\n return function (d, b) {\n _extendStatics82(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar GroupedCategoryChart =\n/** @class */\nfunction (_super) {\n __extends$2a(GroupedCategoryChart, _super);\n\n function GroupedCategoryChart() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n GroupedCategoryChart.className = 'GroupedCategoryChart';\n GroupedCategoryChart.type = 'groupedCategory';\n return GroupedCategoryChart;\n}(CartesianChart);\n\nvar __extends$29 = undefined && undefined.__extends || function () {\n var _extendStatics83 = function extendStatics(d, b) {\n _extendStatics83 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics83(d, b);\n };\n\n return function (d, b) {\n _extendStatics83(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar PolarSeries =\n/** @class */\nfunction (_super) {\n __extends$29(PolarSeries, _super);\n\n function PolarSeries() {\n var _a;\n\n var _this = _super.call(this, {\n pickModes: [SeriesNodePickMode.EXACT_SHAPE_MATCH]\n }) || this;\n\n _this.directionKeys = (_a = {}, _a[ChartAxisDirection.X] = ['angleKey'], _a[ChartAxisDirection.Y] = ['radiusKey'], _a);\n /**\n * The center of the polar series (for example, the center of a pie).\n * If the polar chart has multiple series, all of them will have their\n * center set to the same value as a result of the polar chart layout.\n * The center coordinates are not supposed to be set by the user.\n */\n\n _this.centerX = 0;\n _this.centerY = 0;\n /**\n * The maximum radius the series can use.\n * This value is set automatically as a result of the polar chart layout\n * and is not supposed to be set by the user.\n */\n\n _this.radius = 0;\n return _this;\n }\n\n PolarSeries.prototype.getLabelData = function () {\n return [];\n };\n\n return PolarSeries;\n}(Series);\n/** @class */\n\n\n(function (_super) {\n __extends$29(PolarSeriesMarker, _super);\n\n function PolarSeriesMarker() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n __decorate$18([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], PolarSeriesMarker.prototype, \"formatter\", void 0);\n\n return PolarSeriesMarker;\n})(SeriesMarker);\n\nvar __extends$28 = undefined && undefined.__extends || function () {\n var _extendStatics84 = function extendStatics(d, b) {\n _extendStatics84 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics84(d, b);\n };\n\n return function (d, b) {\n _extendStatics84(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar PolarChart =\n/** @class */\nfunction (_super) {\n __extends$28(PolarChart, _super);\n\n function PolarChart(document) {\n if (document === void 0) {\n document = window.document;\n }\n\n var _this = _super.call(this, document) || this;\n\n _this.padding = new Padding$1(40);\n\n _this.scene.root.append(_this.legend.group);\n\n return _this;\n }\n\n Object.defineProperty(PolarChart.prototype, \"seriesRoot\", {\n get: function get() {\n return this.scene.root;\n },\n enumerable: true,\n configurable: true\n });\n\n PolarChart.prototype.performLayout = function () {\n var shrinkRect = new BBox$1(0, 0, this.width, this.height);\n var _a = this.positionCaptions().captionAutoPadding,\n captionAutoPadding = _a === void 0 ? 0 : _a;\n this.positionLegend(captionAutoPadding);\n shrinkRect.y += captionAutoPadding;\n shrinkRect.height -= captionAutoPadding;\n\n if (this.legend.enabled && this.legend.data.length) {\n var legendAutoPadding = this.legendAutoPadding;\n shrinkRect.x += legendAutoPadding.left;\n shrinkRect.y += legendAutoPadding.top;\n shrinkRect.width -= legendAutoPadding.left + legendAutoPadding.right;\n shrinkRect.height -= legendAutoPadding.top + legendAutoPadding.bottom;\n var legendPadding = this.legend.spacing;\n\n switch (this.legend.position) {\n case 'right':\n shrinkRect.width -= legendPadding;\n break;\n\n case 'bottom':\n shrinkRect.height -= legendPadding;\n break;\n\n case 'left':\n shrinkRect.x += legendPadding;\n shrinkRect.width -= legendPadding;\n break;\n\n case 'top':\n shrinkRect.y += legendPadding;\n shrinkRect.height -= legendPadding;\n break;\n }\n }\n\n var padding = this.padding;\n shrinkRect.x += padding.left;\n shrinkRect.y += padding.top;\n shrinkRect.width -= padding.left + padding.right;\n shrinkRect.height -= padding.top + padding.bottom;\n this.seriesRect = shrinkRect;\n var centerX = shrinkRect.x + shrinkRect.width / 2;\n var centerY = shrinkRect.y + shrinkRect.height / 2;\n var radius = Math.max(0, Math.min(shrinkRect.width, shrinkRect.height) / 2); // radius shouldn't be negative\n\n this.series.forEach(function (series) {\n if (series instanceof PolarSeries) {\n series.centerX = centerX;\n series.centerY = centerY;\n series.radius = radius;\n }\n });\n };\n\n PolarChart.className = 'PolarChart';\n PolarChart.type = 'polar';\n return PolarChart;\n}(Chart);\n\nfunction equal(a, b) {\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n if (a.constructor !== b.constructor) return false;\n var length_1,\n i = void 0;\n\n if (Array.isArray(a)) {\n length_1 = a.length;\n if (length_1 != b.length) return false;\n\n for (i = length_1; i-- !== 0;) {\n if (!equal(a[i], b[i])) return false;\n }\n\n return true;\n }\n\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n var keys = Object.keys(a);\n length_1 = keys.length;\n if (length_1 !== Object.keys(b).length) return false;\n\n for (i = length_1; i-- !== 0;) {\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n }\n\n for (i = length_1; i-- !== 0;) {\n var key = keys[i];\n if (!equal(a[key], b[key])) return false;\n }\n\n return true;\n } // true if both NaN, false otherwise\n\n\n return a !== a && b !== b;\n}\n\nvar __read$t = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar interpolatePattern = /(#\\{(.*?)\\})/g;\n\nfunction interpolate(input, values, formats) {\n return input.replace(interpolatePattern, function () {\n var name = arguments[2];\n\n var _a = __read$t(name.split(':'), 2),\n valueName = _a[0],\n formatName = _a[1];\n\n var value = values[valueName];\n\n if (typeof value === 'number') {\n var format = formatName && formats && formats[formatName];\n\n if (format) {\n var _b = format,\n locales = _b.locales,\n options = _b.options;\n return value.toLocaleString(locales, options);\n }\n\n return String(value);\n }\n\n if (value instanceof Date) {\n var format = formatName && formats && formats[formatName];\n\n if (typeof format === 'string') {\n var formatter = locale$1.format(format);\n return formatter(value);\n }\n\n return value.toDateString();\n }\n\n if (typeof value === 'string' || value && value.toString) {\n return String(value);\n }\n\n return '';\n });\n}\n\nvar element = null;\n\nfunction sanitizeHtml(text) {\n element = element || document.createElement('div');\n\n if (!text) {\n return '';\n }\n\n element.innerText = text;\n return element.innerHTML;\n}\n\nvar __extends$27 = undefined && undefined.__extends || function () {\n var _extendStatics85 = function extendStatics(d, b) {\n _extendStatics85 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics85(d, b);\n };\n\n return function (d, b) {\n _extendStatics85(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __values$d = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar __read$s = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar AreaSeriesLabel =\n/** @class */\nfunction (_super) {\n __extends$27(AreaSeriesLabel, _super);\n\n function AreaSeriesLabel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.formatter = undefined;\n return _this;\n }\n\n return AreaSeriesLabel;\n}(Label$1);\n\nvar AreaSeriesTooltip =\n/** @class */\nfunction (_super) {\n __extends$27(AreaSeriesTooltip, _super);\n\n function AreaSeriesTooltip() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.renderer = undefined;\n _this.format = undefined;\n return _this;\n }\n\n return AreaSeriesTooltip;\n}(SeriesTooltip);\n\nvar AreaSeriesTag;\n\n(function (AreaSeriesTag) {\n AreaSeriesTag[AreaSeriesTag[\"Fill\"] = 0] = \"Fill\";\n AreaSeriesTag[AreaSeriesTag[\"Stroke\"] = 1] = \"Stroke\";\n AreaSeriesTag[AreaSeriesTag[\"Marker\"] = 2] = \"Marker\";\n AreaSeriesTag[AreaSeriesTag[\"Label\"] = 3] = \"Label\";\n})(AreaSeriesTag || (AreaSeriesTag = {}));\n\nvar AreaSeries =\n/** @class */\nfunction (_super) {\n __extends$27(AreaSeries, _super);\n\n function AreaSeries() {\n var _this = _super.call(this, {\n pathsPerSeries: 2,\n pathsZIndexSubOrderOffset: [0, 1000],\n pickGroupIncludes: ['markers'],\n features: ['markers']\n }) || this;\n\n _this.tooltip = new AreaSeriesTooltip();\n _this.xData = [];\n _this.yData = [];\n _this.yDomain = [];\n _this.xDomain = [];\n _this.directionKeys = {\n x: ['xKey'],\n y: ['yKeys']\n };\n _this.marker = new CartesianSeriesMarker();\n _this.label = new AreaSeriesLabel();\n _this.fills = ['#c16068', '#a2bf8a', '#ebcc87', '#80a0c3', '#b58dae', '#85c0d1'];\n _this.strokes = ['#874349', '#718661', '#a48f5f', '#5a7088', '#7f637a', '#5d8692'];\n _this.fillOpacity = 1;\n _this.strokeOpacity = 1;\n _this.lineDash = [0];\n _this.lineDashOffset = 0;\n _this._xKey = '';\n _this.xName = '';\n _this._yKeys = [];\n _this.yNames = [];\n _this.strokeWidth = 2;\n _this.shadow = undefined;\n var _a = _this,\n marker = _a.marker,\n label = _a.label;\n marker.enabled = false;\n label.enabled = false;\n return _this;\n }\n\n Object.defineProperty(AreaSeries.prototype, \"xKey\", {\n get: function get() {\n return this._xKey;\n },\n set: function set(value) {\n this._xKey = value;\n this.xData = [];\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AreaSeries.prototype, \"yKeys\", {\n get: function get() {\n return this._yKeys;\n },\n set: function set(values) {\n if (!equal(this._yKeys, values)) {\n this._yKeys = values;\n this.yData = [];\n this.processSeriesItemEnabled();\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(AreaSeries.prototype, \"visibles\", {\n get: function get() {\n return this._visibles;\n },\n set: function set(visibles) {\n this._visibles = visibles;\n this.processSeriesItemEnabled();\n },\n enumerable: true,\n configurable: true\n });\n\n AreaSeries.prototype.processSeriesItemEnabled = function () {\n var _a = this,\n seriesItemEnabled = _a.seriesItemEnabled,\n _b = _a._visibles,\n visibles = _b === void 0 ? [] : _b;\n\n seriesItemEnabled.clear();\n\n this._yKeys.forEach(function (key, idx) {\n var _a;\n\n return seriesItemEnabled.set(key, (_a = visibles[idx], _a !== null && _a !== void 0 ? _a : true));\n });\n };\n\n AreaSeries.prototype.setColors = function (fills, strokes) {\n this.fills = fills;\n this.strokes = strokes;\n };\n\n Object.defineProperty(AreaSeries.prototype, \"normalizedTo\", {\n get: function get() {\n return this._normalizedTo;\n },\n set: function set(value) {\n var absValue = value ? Math.abs(value) : undefined;\n\n if (this._normalizedTo !== absValue) {\n this._normalizedTo = absValue;\n }\n },\n enumerable: true,\n configurable: true\n });\n\n AreaSeries.prototype.processData = function () {\n var e_1, _a, e_2, _b, e_3, _c;\n\n var _d = this,\n xKey = _d.xKey,\n yKeys = _d.yKeys,\n seriesItemEnabled = _d.seriesItemEnabled,\n xAxis = _d.xAxis,\n yAxis = _d.yAxis,\n normalizedTo = _d.normalizedTo;\n\n var data = xKey && yKeys.length && this.data ? this.data : [];\n\n if (!xAxis || !yAxis) {\n return false;\n } // If the data is an array of rows like so:\n //\n // [{\n // xKey: 'Jan',\n // yKey1: 5,\n // yKey2: 7,\n // yKey3: -9,\n // }, {\n // xKey: 'Feb',\n // yKey1: 10,\n // yKey2: -15,\n // yKey3: 20\n // }]\n //\n\n\n var isContinuousX = xAxis.scale instanceof ContinuousScale$1;\n var isContinuousY = yAxis.scale instanceof ContinuousScale$1;\n var normalized = normalizedTo && isFinite(normalizedTo);\n var yData = [];\n var xData = [];\n var xValues = [];\n\n var _loop_1 = function _loop_1(datum) {\n // X datum\n if (!(xKey in datum)) {\n doOnce$1(function () {\n return console.warn(\"The key '\" + xKey + \"' was not found in the data: \", datum);\n }, xKey + \" not found in data\");\n return \"continue\";\n }\n\n var xDatum = checkDatum(datum[xKey], isContinuousX);\n\n if (isContinuousX && xDatum === undefined) {\n return \"continue\";\n } else {\n xValues.push(xDatum);\n xData.push({\n xDatum: xDatum,\n seriesDatum: datum\n });\n } // Y datum\n\n\n yKeys.forEach(function (yKey, i) {\n if (!(yKey in datum)) {\n doOnce$1(function () {\n return console.warn(\"The key '\" + yKey + \"' was not found in the data: \", datum);\n }, yKey + \" not found in data\");\n return;\n }\n\n var value = datum[yKey];\n var seriesYs = yData[i] || (yData[i] = []);\n\n if (!seriesItemEnabled.get(yKey)) {\n seriesYs.push(NaN);\n } else {\n var yDatum = checkDatum(value, isContinuousY);\n seriesYs.push(yDatum);\n }\n });\n };\n\n try {\n for (var data_1 = __values$d(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {\n var datum = data_1_1.value;\n\n _loop_1(datum);\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (data_1_1 && !data_1_1.done && (_a = data_1.return)) _a.call(data_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n this.yData = yData;\n this.xData = xData;\n this.xDomain = isContinuousX ? this.fixNumericExtent(extent$1(xValues, isContinuous$1), xAxis) : xValues; // xData: ['Jan', 'Feb', undefined]\n //\n // yData: [\n // [5, 10], <- series 1 (yKey1)\n // [7, -15], <- series 2 (yKey2)\n // [-9, 20] <- series 3 (yKey3)\n // ]\n\n var yMin = undefined;\n var yMax = undefined;\n\n for (var i = 0; i < xData.length; i++) {\n var total = {\n sum: 0,\n absSum: 0\n };\n\n try {\n for (var yData_1 = (e_2 = void 0, __values$d(yData)), yData_1_1 = yData_1.next(); !yData_1_1.done; yData_1_1 = yData_1.next()) {\n var seriesYs = yData_1_1.value;\n\n if (seriesYs[i] === undefined || isNaN(seriesYs[i])) {\n continue;\n }\n\n var y = +seriesYs[i]; // convert to number as the value could be a Date object\n\n total.absSum += Math.abs(y);\n total.sum += y;\n\n if (total.sum >= (yMax !== null && yMax !== void 0 ? yMax : 0)) {\n yMax = total.sum;\n } else if (total.sum <= (yMin !== null && yMin !== void 0 ? yMin : 0)) {\n yMin = total.sum;\n }\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally {\n try {\n if (yData_1_1 && !yData_1_1.done && (_b = yData_1.return)) _b.call(yData_1);\n } finally {\n if (e_2) throw e_2.error;\n }\n }\n\n if (!(normalized && normalizedTo)) {\n continue;\n }\n\n var normalizedTotal = undefined;\n\n try {\n // normalize y values using the absolute sum of y values in the stack\n for (var yData_2 = (e_3 = void 0, __values$d(yData)), yData_2_1 = yData_2.next(); !yData_2_1.done; yData_2_1 = yData_2.next()) {\n var seriesYs = yData_2_1.value;\n var normalizedY = +seriesYs[i] / total.absSum * normalizedTo;\n seriesYs[i] = normalizedY;\n\n if (!isNaN(normalizedY)) {\n // sum normalized values to get updated yMin and yMax of normalized area\n normalizedTotal = (normalizedTotal !== null && normalizedTotal !== void 0 ? normalizedTotal : 0) + normalizedY;\n } else {\n continue;\n }\n\n if (normalizedTotal >= (yMax !== null && yMax !== void 0 ? yMax : 0)) {\n yMax = normalizedTotal;\n } else if (normalizedTotal <= (yMin !== null && yMin !== void 0 ? yMin : 0)) {\n yMin = normalizedTotal;\n }\n }\n } catch (e_3_1) {\n e_3 = {\n error: e_3_1\n };\n } finally {\n try {\n if (yData_2_1 && !yData_2_1.done && (_c = yData_2.return)) _c.call(yData_2);\n } finally {\n if (e_3) throw e_3.error;\n }\n }\n }\n\n if (normalized && normalizedTo) {\n // multiplier to control the unused whitespace in the y domain, value selected by subjective visual 'niceness'.\n var domainWhitespaceAdjustment = 0.5; // set the yMin and yMax based on cumulative sum of normalized values\n\n yMin = (yMin !== null && yMin !== void 0 ? yMin : 0) < -normalizedTo * domainWhitespaceAdjustment ? -normalizedTo : yMin;\n yMax = (yMax !== null && yMax !== void 0 ? yMax : 0) > normalizedTo * domainWhitespaceAdjustment ? normalizedTo : yMax;\n }\n\n this.yDomain = this.fixNumericExtent(yMin === undefined && yMax === undefined ? undefined : [yMin !== null && yMin !== void 0 ? yMin : 0, yMax !== null && yMax !== void 0 ? yMax : 0], yAxis);\n return true;\n };\n\n AreaSeries.prototype.getDomain = function (direction) {\n if (direction === ChartAxisDirection.X) {\n return this.xDomain;\n } else {\n return this.yDomain;\n }\n };\n\n AreaSeries.prototype.createNodeData = function () {\n var _this = this;\n\n var _a = this,\n data = _a.data,\n xAxis = _a.xAxis,\n yAxis = _a.yAxis,\n xData = _a.xData,\n yData = _a.yData;\n\n if (!data || !xAxis || !yAxis || !xData.length || !yData.length) {\n return [];\n }\n\n var contexts = [];\n\n var _b = this,\n yKeys = _b.yKeys,\n marker = _b.marker,\n label = _b.label,\n fills = _b.fills,\n strokes = _b.strokes;\n\n var xScale = xAxis.scale;\n var yScale = yAxis.scale;\n var continuousY = yScale instanceof ContinuousScale$1;\n var xOffset = (xScale.bandwidth || 0) / 2;\n var cumulativePathValues = new Array(xData.length).fill(null).map(function () {\n return {\n left: 0,\n right: 0\n };\n });\n var cumulativeMarkerValues = new Array(xData.length).fill(0);\n\n var createPathCoordinates = function createPathCoordinates(xDatum, yDatum, idx, side) {\n var x = xScale.convert(xDatum) + xOffset;\n var prevY = cumulativePathValues[idx][side];\n var currY = cumulativePathValues[idx][side] + yDatum;\n var prevYCoordinate = yScale.convert(prevY, continuousY ? clamper$2 : undefined);\n var currYCoordinate = yScale.convert(currY, continuousY ? clamper$2 : undefined);\n cumulativePathValues[idx][side] = currY;\n return [{\n x: x,\n y: currYCoordinate,\n size: marker.size\n }, {\n x: x,\n y: prevYCoordinate,\n size: marker.size\n }];\n };\n\n var createMarkerCoordinate = function createMarkerCoordinate(xDatum, yDatum, idx, rawYDatum) {\n var currY; // if not normalized, the invalid data points will be processed as `undefined` in processData()\n // if normalized, the invalid data points will be processed as 0 rather than `undefined`\n // check if unprocessed datum is valid as we only want to show markers for valid points\n\n var normalized = _this.normalizedTo && isFinite(_this.normalizedTo);\n var normalizedAndValid = normalized && continuousY && isContinuous$1(rawYDatum);\n var valid = !normalized && !isNaN(rawYDatum) || normalizedAndValid;\n\n if (valid) {\n currY = cumulativeMarkerValues[idx] += yDatum;\n }\n\n var x = xScale.convert(xDatum) + xOffset;\n var y = yScale.convert(currY, continuousY ? clamper$2 : undefined);\n return {\n x: x,\n y: y,\n size: marker.size\n };\n };\n\n yData.forEach(function (seriesYs, seriesIdx) {\n var yKey = yKeys[seriesIdx];\n var labelSelectionData = [];\n var markerSelectionData = [];\n var strokeSelectionData = {\n itemId: yKey,\n points: [],\n yValues: []\n };\n var fillSelectionData = {\n itemId: yKey,\n points: []\n };\n contexts[seriesIdx] = {\n itemId: yKey,\n fillSelectionData: fillSelectionData,\n labelData: labelSelectionData,\n nodeData: markerSelectionData,\n strokeSelectionData: strokeSelectionData\n };\n\n if (!_this.seriesItemEnabled.get(yKey)) {\n return;\n }\n\n var fillPoints = fillSelectionData.points;\n var fillPhantomPoints = [];\n var strokePoints = strokeSelectionData.points;\n var yValues = strokeSelectionData.yValues;\n seriesYs.forEach(function (rawYDatum, datumIdx) {\n var _a;\n\n var yDatum = isNaN(rawYDatum) ? undefined : rawYDatum;\n var _b = xData[datumIdx],\n xDatum = _b.xDatum,\n seriesDatum = _b.seriesDatum;\n var nextXDatum = (_a = xData[datumIdx + 1]) === null || _a === void 0 ? void 0 : _a.xDatum;\n var rawNextYDatum = seriesYs[datumIdx + 1];\n var nextYDatum = isNaN(rawNextYDatum) ? undefined : rawNextYDatum; // marker data\n\n var point = createMarkerCoordinate(xDatum, +yDatum, datumIdx, seriesDatum[yKey]);\n\n if (marker) {\n markerSelectionData.push({\n index: datumIdx,\n series: _this,\n itemId: yKey,\n datum: seriesDatum,\n yValue: yDatum,\n yKey: yKey,\n point: point,\n fill: fills[seriesIdx % fills.length],\n stroke: strokes[seriesIdx % strokes.length]\n });\n } // label data\n\n\n var labelText;\n\n if (label.formatter) {\n labelText = label.formatter({\n value: yDatum\n });\n } else {\n labelText = isNumber$1(yDatum) ? Number(yDatum).toFixed(2) : String(yDatum);\n }\n\n if (label) {\n labelSelectionData.push({\n index: datumIdx,\n itemId: yKey,\n point: point,\n label: _this.seriesItemEnabled.get(yKey) && labelText ? {\n text: labelText,\n fontStyle: label.fontStyle,\n fontWeight: label.fontWeight,\n fontSize: label.fontSize,\n fontFamily: label.fontFamily,\n textAlign: 'center',\n textBaseline: 'bottom',\n fill: label.color\n } : undefined\n });\n } // fill data\n // Handle data in pairs of current and next x and y values\n\n\n var windowX = [xDatum, nextXDatum];\n var windowY = [yDatum, nextYDatum];\n\n if (windowX.some(function (v) {\n return v == undefined;\n })) {\n return;\n }\n\n if (windowY.some(function (v) {\n return v == undefined;\n })) {\n windowY[0] = 0;\n windowY[1] = 0;\n }\n\n var currCoordinates = createPathCoordinates(windowX[0], +windowY[0], datumIdx, 'right');\n fillPoints.push(currCoordinates[0]);\n fillPhantomPoints.push(currCoordinates[1]);\n var nextCoordinates = createPathCoordinates(windowX[1], +windowY[1], datumIdx, 'left');\n fillPoints.push(nextCoordinates[0]);\n fillPhantomPoints.push(nextCoordinates[1]); // stroke data\n\n strokePoints.push({\n x: NaN,\n y: NaN\n }); // moveTo\n\n yValues.push(undefined);\n strokePoints.push(currCoordinates[0]);\n yValues.push(yDatum);\n\n if (nextYDatum !== undefined) {\n strokePoints.push(nextCoordinates[0]);\n yValues.push(yDatum);\n }\n });\n\n for (var i = fillPhantomPoints.length - 1; i >= 0; i--) {\n fillPoints.push(fillPhantomPoints[i]);\n }\n });\n return contexts;\n };\n\n AreaSeries.prototype.isPathOrSelectionDirty = function () {\n return this.marker.isDirty();\n };\n\n AreaSeries.prototype.updatePaths = function (opts) {\n var _a = opts.contextData,\n fillSelectionData = _a.fillSelectionData,\n strokeSelectionData = _a.strokeSelectionData,\n _b = __read$s(opts.paths, 2),\n fill = _b[0],\n stroke = _b[1];\n\n fill.datum = fillSelectionData;\n fill.tag = AreaSeriesTag.Fill;\n fill.lineJoin = 'round';\n fill.stroke = undefined;\n fill.pointerEvents = PointerEvents$1.None;\n stroke.datum = strokeSelectionData;\n stroke.tag = AreaSeriesTag.Stroke;\n stroke.fill = undefined;\n stroke.lineJoin = stroke.lineCap = 'round';\n stroke.pointerEvents = PointerEvents$1.None;\n };\n\n AreaSeries.prototype.updatePathNodes = function (opts) {\n var e_4, _a, e_5, _b;\n\n var _c = __read$s(opts.paths, 2),\n fill = _c[0],\n stroke = _c[1],\n seriesIdx = opts.seriesIdx,\n itemId = opts.itemId;\n\n var _d = this,\n strokes = _d.strokes,\n fills = _d.fills,\n fillOpacity = _d.fillOpacity,\n strokeOpacity = _d.strokeOpacity,\n strokeWidth = _d.strokeWidth,\n shadow = _d.shadow;\n\n {\n var points = fill.datum.points;\n fill.fill = fills[seriesIdx % fills.length];\n fill.fillOpacity = fillOpacity;\n fill.strokeOpacity = strokeOpacity;\n fill.strokeWidth = strokeWidth;\n fill.lineDash = this.lineDash;\n fill.lineDashOffset = this.lineDashOffset;\n fill.fillShadow = shadow;\n var path = fill.path;\n path.clear({\n trackChanges: true\n });\n var i = 0;\n\n try {\n for (var points_1 = __values$d(points), points_1_1 = points_1.next(); !points_1_1.done; points_1_1 = points_1.next()) {\n var p = points_1_1.value;\n\n if (i++ > 0) {\n path.lineTo(p.x, p.y);\n } else {\n path.moveTo(p.x, p.y);\n }\n }\n } catch (e_4_1) {\n e_4 = {\n error: e_4_1\n };\n } finally {\n try {\n if (points_1_1 && !points_1_1.done && (_a = points_1.return)) _a.call(points_1);\n } finally {\n if (e_4) throw e_4.error;\n }\n }\n\n path.closePath();\n fill.checkPathDirty();\n }\n {\n var _e = stroke.datum,\n points = _e.points,\n yValues = _e.yValues;\n var moveTo_1 = true;\n stroke.stroke = strokes[seriesIdx % strokes.length];\n stroke.strokeWidth = this.getStrokeWidth(this.strokeWidth, {\n itemId: itemId\n });\n stroke.strokeOpacity = strokeOpacity;\n stroke.lineDash = this.lineDash;\n stroke.lineDashOffset = this.lineDashOffset;\n var path = stroke.path;\n path.clear({\n trackChanges: true\n });\n var i = 0;\n\n try {\n for (var points_2 = __values$d(points), points_2_1 = points_2.next(); !points_2_1.done; points_2_1 = points_2.next()) {\n var p = points_2_1.value;\n\n if (yValues[i++] === undefined) {\n moveTo_1 = true;\n } else if (moveTo_1) {\n path.moveTo(p.x, p.y);\n moveTo_1 = false;\n } else {\n path.lineTo(p.x, p.y);\n }\n }\n } catch (e_5_1) {\n e_5 = {\n error: e_5_1\n };\n } finally {\n try {\n if (points_2_1 && !points_2_1.done && (_b = points_2.return)) _b.call(points_2);\n } finally {\n if (e_5) throw e_5.error;\n }\n }\n\n stroke.checkPathDirty();\n }\n };\n\n AreaSeries.prototype.updateMarkerSelection = function (opts) {\n var nodeData = opts.nodeData,\n markerSelection = opts.markerSelection;\n var _a = this.marker,\n enabled = _a.enabled,\n shape = _a.shape;\n var data = enabled && nodeData ? nodeData : [];\n var MarkerShape = getMarker$1(shape);\n\n if (this.marker.isDirty()) {\n markerSelection = markerSelection.setData([]);\n markerSelection.exit.remove();\n }\n\n var updateMarkerSelection = markerSelection.setData(data);\n updateMarkerSelection.exit.remove();\n var enterMarkers = updateMarkerSelection.enter.append(MarkerShape).each(function (marker) {\n marker.tag = AreaSeriesTag.Marker;\n });\n return updateMarkerSelection.merge(enterMarkers);\n };\n\n AreaSeries.prototype.updateMarkerNodes = function (opts) {\n var markerSelection = opts.markerSelection,\n isDatumHighlighted = opts.isHighlight;\n\n var _a = this,\n xKey = _a.xKey,\n marker = _a.marker,\n seriesItemEnabled = _a.seriesItemEnabled,\n yKeys = _a.yKeys,\n fills = _a.fills,\n strokes = _a.strokes,\n seriesFillOpacity = _a.fillOpacity,\n _b = _a.marker.fillOpacity,\n markerFillOpacity = _b === void 0 ? seriesFillOpacity : _b,\n strokeOpacity = _a.strokeOpacity,\n _c = _a.highlightStyle,\n deprecatedFill = _c.fill,\n deprecatedStroke = _c.stroke,\n deprecatedStrokeWidth = _c.strokeWidth,\n _d = _c.item,\n _e = _d.fill,\n highlightedFill = _e === void 0 ? deprecatedFill : _e,\n _f = _d.fillOpacity,\n highlightFillOpacity = _f === void 0 ? markerFillOpacity : _f,\n _g = _d.stroke,\n highlightedStroke = _g === void 0 ? deprecatedStroke : _g,\n _h = _d.strokeWidth,\n highlightedDatumStrokeWidth = _h === void 0 ? deprecatedStrokeWidth : _h;\n\n var size = marker.size,\n formatter = marker.formatter;\n var markerStrokeWidth = marker.strokeWidth !== undefined ? marker.strokeWidth : this.strokeWidth;\n markerSelection.each(function (node, datum) {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n\n var yKeyIndex = yKeys.indexOf(datum.yKey);\n var fill = isDatumHighlighted && highlightedFill !== undefined ? highlightedFill : marker.fill || fills[yKeyIndex % fills.length];\n var fillOpacity = isDatumHighlighted ? highlightFillOpacity : markerFillOpacity;\n var stroke = isDatumHighlighted && highlightedStroke !== undefined ? highlightedStroke : marker.stroke || strokes[yKeyIndex % fills.length];\n var strokeWidth = isDatumHighlighted && highlightedDatumStrokeWidth !== undefined ? highlightedDatumStrokeWidth : markerStrokeWidth;\n var format = undefined;\n\n if (formatter) {\n format = formatter({\n datum: datum.datum,\n xKey: xKey,\n yKey: datum.yKey,\n fill: fill,\n stroke: stroke,\n strokeWidth: strokeWidth,\n size: size,\n highlighted: isDatumHighlighted\n });\n }\n\n node.fill = format && format.fill || fill;\n node.stroke = format && format.stroke || stroke;\n node.strokeWidth = format && format.strokeWidth !== undefined ? format.strokeWidth : strokeWidth;\n node.fillOpacity = fillOpacity !== null && fillOpacity !== void 0 ? fillOpacity : 1;\n node.strokeOpacity = (_b = (_a = marker.strokeOpacity, _a !== null && _a !== void 0 ? _a : strokeOpacity), _b !== null && _b !== void 0 ? _b : 1);\n node.size = format && format.size !== undefined ? format.size : size;\n node.translationX = (_d = (_c = datum.point) === null || _c === void 0 ? void 0 : _c.x, _d !== null && _d !== void 0 ? _d : 0);\n node.translationY = (_f = (_e = datum.point) === null || _e === void 0 ? void 0 : _e.y, _f !== null && _f !== void 0 ? _f : 0);\n node.visible = node.size > 0 && !!seriesItemEnabled.get(datum.yKey) && !isNaN(((_g = datum.point) === null || _g === void 0 ? void 0 : _g.x) || 0) && !isNaN(((_h = datum.point) === null || _h === void 0 ? void 0 : _h.y) || 0);\n });\n\n if (!isDatumHighlighted) {\n this.marker.markClean();\n }\n };\n\n AreaSeries.prototype.updateLabelSelection = function (opts) {\n var labelData = opts.labelData,\n labelSelection = opts.labelSelection;\n var updateLabels = labelSelection.setData(labelData);\n updateLabels.exit.remove();\n var enterLabels = updateLabels.enter.append(Text$1).each(function (text) {\n text.tag = AreaSeriesTag.Label;\n });\n return updateLabels.merge(enterLabels);\n };\n\n AreaSeries.prototype.updateLabelNodes = function (opts) {\n var labelSelection = opts.labelSelection;\n var _a = this.label,\n labelEnabled = _a.enabled,\n fontStyle = _a.fontStyle,\n fontWeight = _a.fontWeight,\n fontSize = _a.fontSize,\n fontFamily = _a.fontFamily,\n color = _a.color;\n labelSelection.each(function (text, datum) {\n var point = datum.point,\n label = datum.label;\n\n if (label && labelEnabled) {\n text.fontStyle = fontStyle;\n text.fontWeight = fontWeight;\n text.fontSize = fontSize;\n text.fontFamily = fontFamily;\n text.textAlign = label.textAlign;\n text.textBaseline = label.textBaseline;\n text.text = label.text;\n text.x = point.x;\n text.y = point.y - 10;\n text.fill = color;\n text.visible = true;\n } else {\n text.visible = false;\n }\n });\n };\n\n AreaSeries.prototype.fireNodeClickEvent = function (event, datum) {\n this.fireEvent({\n type: 'nodeClick',\n event: event,\n series: this,\n datum: datum.datum,\n xKey: this.xKey,\n yKey: datum.yKey\n });\n };\n\n AreaSeries.prototype.getTooltipHtml = function (nodeDatum) {\n var xKey = this.xKey;\n var yKey = nodeDatum.yKey;\n\n if (!(xKey && yKey) || !this.seriesItemEnabled.get(yKey)) {\n return '';\n }\n\n var datum = nodeDatum.datum;\n var xValue = datum[xKey];\n var yValue = datum[yKey];\n\n var _a = this,\n xAxis = _a.xAxis,\n yAxis = _a.yAxis;\n\n if (!(xAxis && yAxis && isNumber$1(yValue))) {\n return '';\n }\n\n var _b = this,\n xName = _b.xName,\n yKeys = _b.yKeys,\n yNames = _b.yNames,\n yData = _b.yData,\n fills = _b.fills,\n strokes = _b.strokes,\n tooltip = _b.tooltip,\n marker = _b.marker;\n\n var size = marker.size,\n markerFormatter = marker.formatter,\n markerStrokeWidth = marker.strokeWidth,\n markerFill = marker.fill,\n markerStroke = marker.stroke;\n var xString = xAxis.formatDatum(xValue);\n var yString = yAxis.formatDatum(yValue);\n var yKeyIndex = yKeys.indexOf(yKey);\n var seriesYs = yData[yKeyIndex];\n var processedYValue = seriesYs[nodeDatum.index];\n var yName = yNames[yKeyIndex];\n var title = sanitizeHtml(yName);\n var content = sanitizeHtml(xString + ': ' + yString);\n var strokeWidth = markerStrokeWidth !== undefined ? markerStrokeWidth : this.strokeWidth;\n var fill = markerFill || fills[yKeyIndex % fills.length];\n var stroke = markerStroke || strokes[yKeyIndex % fills.length];\n var format = undefined;\n\n if (markerFormatter) {\n format = markerFormatter({\n datum: datum,\n xKey: xKey,\n yKey: yKey,\n fill: fill,\n stroke: stroke,\n strokeWidth: strokeWidth,\n size: size,\n highlighted: false\n });\n }\n\n var color = format && format.fill || fill;\n var defaults = {\n title: title,\n backgroundColor: color,\n content: content\n };\n var tooltipRenderer = tooltip.renderer,\n tooltipFormat = tooltip.format;\n\n if (tooltipFormat || tooltipRenderer) {\n var params = {\n datum: datum,\n xKey: xKey,\n xName: xName,\n xValue: xValue,\n yKey: yKey,\n yValue: yValue,\n processedYValue: processedYValue,\n yName: yName,\n color: color,\n title: title\n };\n\n if (tooltipFormat) {\n return toTooltipHtml$1({\n content: interpolate(tooltipFormat, params)\n }, defaults);\n }\n\n if (tooltipRenderer) {\n return toTooltipHtml$1(tooltipRenderer(params), defaults);\n }\n }\n\n return toTooltipHtml$1(defaults);\n };\n\n AreaSeries.prototype.listSeriesItems = function (legendData) {\n var _a, _b;\n\n var _c = this,\n data = _c.data,\n id = _c.id,\n xKey = _c.xKey,\n yKeys = _c.yKeys,\n yNames = _c.yNames,\n seriesItemEnabled = _c.seriesItemEnabled,\n marker = _c.marker,\n fills = _c.fills,\n strokes = _c.strokes,\n fillOpacity = _c.fillOpacity,\n strokeOpacity = _c.strokeOpacity;\n\n if (!data || !data.length || !xKey || !yKeys.length) {\n return;\n } // Area stacks should be listed in the legend in reverse order, for symmetry with the\n // vertical stack display order.\n\n\n for (var index = yKeys.length - 1; index >= 0; index--) {\n var yKey = yKeys[index];\n legendData.push({\n id: id,\n itemId: yKey,\n enabled: seriesItemEnabled.get(yKey) || false,\n label: {\n text: yNames[index] || yKeys[index]\n },\n marker: {\n shape: marker.shape,\n fill: marker.fill || fills[index % fills.length],\n stroke: marker.stroke || strokes[index % strokes.length],\n fillOpacity: (_a = marker.fillOpacity, _a !== null && _a !== void 0 ? _a : fillOpacity),\n strokeOpacity: (_b = marker.strokeOpacity, _b !== null && _b !== void 0 ? _b : strokeOpacity)\n }\n });\n }\n };\n\n AreaSeries.className = 'AreaSeries';\n AreaSeries.type = 'area';\n return AreaSeries;\n}(CartesianSeries);\n\nvar __extends$26 = undefined && undefined.__extends || function () {\n var _extendStatics86 = function extendStatics(d, b) {\n _extendStatics86 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics86(d, b);\n };\n\n return function (d, b) {\n _extendStatics86(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __read$r = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$c = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$r(arguments[i]));\n }\n\n return ar;\n};\n\nvar __values$c = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar BarSeriesNodeTag;\n\n(function (BarSeriesNodeTag) {\n BarSeriesNodeTag[BarSeriesNodeTag[\"Bar\"] = 0] = \"Bar\";\n BarSeriesNodeTag[BarSeriesNodeTag[\"Label\"] = 1] = \"Label\";\n})(BarSeriesNodeTag || (BarSeriesNodeTag = {}));\n\nvar BarLabelPlacement;\n\n(function (BarLabelPlacement) {\n BarLabelPlacement[\"Inside\"] = \"inside\";\n BarLabelPlacement[\"Outside\"] = \"outside\";\n})(BarLabelPlacement || (BarLabelPlacement = {}));\n\nvar BarSeriesLabel =\n/** @class */\nfunction (_super) {\n __extends$26(BarSeriesLabel, _super);\n\n function BarSeriesLabel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.formatter = undefined;\n _this.placement = BarLabelPlacement.Inside;\n return _this;\n }\n\n return BarSeriesLabel;\n}(Label$1);\n\nvar BarSeriesTooltip =\n/** @class */\nfunction (_super) {\n __extends$26(BarSeriesTooltip, _super);\n\n function BarSeriesTooltip() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.renderer = undefined;\n return _this;\n }\n\n return BarSeriesTooltip;\n}(SeriesTooltip);\n\nfunction flat(arr, target) {\n if (target === void 0) {\n target = [];\n }\n\n arr.forEach(function (v) {\n if (Array.isArray(v)) {\n flat(v, target);\n } else {\n target.push(v);\n }\n });\n return target;\n}\n\nfunction is2dArray$1(array) {\n return array.length > 0 && Array.isArray(array[0]);\n}\n\nvar BarSeries =\n/** @class */\nfunction (_super) {\n __extends$26(BarSeries, _super);\n\n function BarSeries() {\n var _a;\n\n var _this = _super.call(this, {\n pickGroupIncludes: ['datumNodes'],\n pickModes: [SeriesNodePickMode.EXACT_SHAPE_MATCH],\n pathsPerSeries: 0\n }) || this;\n\n _this.xData = [];\n _this.yData = [];\n _this.yDomain = [];\n _this.label = new BarSeriesLabel();\n _this.tooltip = new BarSeriesTooltip();\n _this.flipXY = false;\n _this.fills = ['#c16068', '#a2bf8a', '#ebcc87', '#80a0c3', '#b58dae', '#85c0d1'];\n _this.strokes = ['#874349', '#718661', '#a48f5f', '#5a7088', '#7f637a', '#5d8692'];\n _this.fillOpacity = 1;\n _this.strokeOpacity = 1;\n _this.lineDash = [0];\n _this.lineDashOffset = 0;\n _this.formatter = undefined;\n /**\n * Used to get the position of bars within each group.\n */\n\n _this.groupScale = new BandScale$1();\n _this.directionKeys = (_a = {}, _a[ChartAxisDirection.X] = ['xKey'], _a[ChartAxisDirection.Y] = ['yKeys'], _a);\n _this._xKey = '';\n _this.xName = '';\n _this.cumYKeyCount = [];\n _this.flatYKeys = undefined; // only set when a user used a flat array for yKeys\n\n _this.hideInLegend = [];\n /**\n * yKeys: [['coffee']] - regular bars, each category has a single bar that shows a value for coffee\n * yKeys: [['coffee'], ['tea'], ['milk']] - each category has three bars that show values for coffee, tea and milk\n * yKeys: [['coffee', 'tea', 'milk']] - each category has a single bar with three stacks that show values for coffee, tea and milk\n * yKeys: [['coffee', 'tea', 'milk'], ['paper', 'ink']] - each category has 2 stacked bars,\n * first showing values for coffee, tea and milk and second values for paper and ink\n */\n\n _this._yKeys = [];\n _this._grouped = false;\n /**\n * A map of `yKeys` to their names (used in legends and tooltips).\n * For example, if a key is `product_name` it's name can be a more presentable `Product Name`.\n */\n\n _this._yNames = {};\n _this.strokeWidth = 1;\n _this.shadow = undefined;\n _this.smallestDataInterval = undefined;\n _this.label.enabled = false;\n return _this;\n }\n\n BarSeries.prototype.getKeys = function (direction) {\n var _this = this;\n\n var directionKeys = this.directionKeys;\n var keys = directionKeys && directionKeys[this.flipXY ? flipChartAxisDirection(direction) : direction];\n var values = [];\n\n if (keys) {\n keys.forEach(function (key) {\n var value = _this[key];\n\n if (value) {\n if (Array.isArray(value)) {\n values = values.concat(flat(value));\n } else {\n values.push(value);\n }\n }\n });\n }\n\n return values;\n };\n\n Object.defineProperty(BarSeries.prototype, \"xKey\", {\n get: function get() {\n return this._xKey;\n },\n set: function set(value) {\n this._xKey = value;\n this.xData = [];\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BarSeries.prototype, \"yKeys\", {\n get: function get() {\n return this._yKeys;\n },\n set: function set(yKeys) {\n var _this = this;\n\n var flatYKeys = undefined; // Convert from flat y-keys to grouped y-keys.\n\n if (!is2dArray$1(yKeys)) {\n flatYKeys = yKeys;\n yKeys = this.grouped ? flatYKeys.map(function (k) {\n return [k];\n }) : [flatYKeys];\n }\n\n if (!equal(this._yKeys, yKeys)) {\n this.flatYKeys = flatYKeys ? flatYKeys : undefined;\n this._yKeys = yKeys;\n var prevYKeyCount_1 = 0;\n this.cumYKeyCount = [];\n var visibleStacks_1 = [];\n yKeys.forEach(function (stack, index) {\n if (stack.length > 0) {\n visibleStacks_1.push(String(index));\n }\n\n _this.cumYKeyCount.push(prevYKeyCount_1);\n\n prevYKeyCount_1 += stack.length;\n });\n this.yData = [];\n this.processSeriesItemEnabled();\n var groupScale = this.groupScale;\n groupScale.domain = visibleStacks_1;\n groupScale.padding = 0.1;\n groupScale.round = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BarSeries.prototype, \"visibles\", {\n get: function get() {\n return this._visibles;\n },\n set: function set(visibles) {\n var flattenFn = function flattenFn(r, n) {\n return r.concat.apply(r, __spread$c(Array.isArray(n) ? n : [n]));\n };\n\n this._visibles = visibles.reduce(flattenFn, []);\n this.processSeriesItemEnabled();\n },\n enumerable: true,\n configurable: true\n });\n\n BarSeries.prototype.processSeriesItemEnabled = function () {\n var _a = this,\n seriesItemEnabled = _a.seriesItemEnabled,\n _b = _a._visibles,\n visibles = _b === void 0 ? [] : _b;\n\n seriesItemEnabled.clear();\n var visiblesIdx = 0;\n\n this._yKeys.forEach(function (stack) {\n stack.forEach(function (yKey) {\n var _a, _b;\n\n return seriesItemEnabled.set(yKey, (_b = (_a = visibles) === null || _a === void 0 ? void 0 : _a[visiblesIdx++], _b !== null && _b !== void 0 ? _b : true));\n });\n });\n };\n\n Object.defineProperty(BarSeries.prototype, \"grouped\", {\n get: function get() {\n return this._grouped;\n },\n set: function set(value) {\n if (this._grouped !== value) {\n this._grouped = value;\n\n if (this.flatYKeys) {\n this.yKeys = this.flatYKeys;\n }\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BarSeries.prototype, \"yNames\", {\n get: function get() {\n return this._yNames;\n },\n set: function set(values) {\n if (Array.isArray(values) && this.flatYKeys) {\n var map_1 = {};\n this.flatYKeys.forEach(function (k, i) {\n map_1[k] = values[i];\n });\n values = map_1;\n }\n\n this._yNames = values;\n },\n enumerable: true,\n configurable: true\n });\n\n BarSeries.prototype.setColors = function (fills, strokes) {\n this.fills = fills;\n this.strokes = strokes;\n };\n\n Object.defineProperty(BarSeries.prototype, \"normalizedTo\", {\n get: function get() {\n return this._normalizedTo;\n },\n set: function set(value) {\n var absValue = value ? Math.abs(value) : undefined;\n this._normalizedTo = absValue;\n },\n enumerable: true,\n configurable: true\n });\n\n BarSeries.prototype.processData = function () {\n var _this = this;\n\n var _a = this,\n xKey = _a.xKey,\n yKeys = _a.yKeys,\n seriesItemEnabled = _a.seriesItemEnabled;\n\n var data = xKey && yKeys.length && this.data ? this.data : [];\n var xAxis = this.getCategoryAxis();\n var yAxis = this.getValueAxis();\n\n if (!(xAxis && yAxis)) {\n return false;\n }\n\n var setSmallestXInterval = function setSmallestXInterval(curr, prev) {\n if (_this.smallestDataInterval === undefined) {\n _this.smallestDataInterval = {\n x: Infinity,\n y: Infinity\n };\n }\n\n var x = _this.smallestDataInterval.x;\n var interval = Math.abs(curr - prev);\n\n if (interval > 0 && interval < x) {\n _this.smallestDataInterval.x = interval;\n }\n };\n\n var isContinuousX = xAxis.scale instanceof ContinuousScale$1;\n var isContinuousY = yAxis.scale instanceof ContinuousScale$1;\n var keysFound = true; // only warn once\n\n var prevX = Infinity;\n this.xData = data.map(function (datum) {\n if (keysFound && !(xKey in datum)) {\n keysFound = false;\n console.warn(\"The key '\" + xKey + \"' was not found in the data: \", datum);\n }\n\n var x = checkDatum(datum[xKey], isContinuousX);\n\n if (isContinuousX) {\n setSmallestXInterval(x, prevX);\n }\n\n prevX = x;\n return x;\n });\n this.yData = data.map(function (datum) {\n return yKeys.map(function (stack) {\n return stack.map(function (yKey) {\n if (keysFound && !(yKey in datum)) {\n keysFound = false;\n console.warn(\"The key '\" + yKey + \"' was not found in the data: \", datum);\n }\n\n var yDatum = checkDatum(datum[yKey], isContinuousY);\n\n if (!seriesItemEnabled.get(yKey) || yDatum === undefined) {\n return NaN;\n }\n\n return yDatum;\n });\n });\n }); // Contains min/max values for each stack in each group,\n // where min is zero and max is a positive total of all values in the stack\n // or min is a negative total of all values in the stack and max is zero.\n\n var yMinMax = this.yData.map(function (group) {\n return group.map(function (stack) {\n return findMinMax(stack);\n });\n });\n\n var _b = this,\n yData = _b.yData,\n normalizedTo = _b.normalizedTo; // Calculate the sum of the absolute values of all items in each stack in each group. Used for normalization of stacked bars.\n\n\n var yAbsTotal = this.yData.map(function (group) {\n return group.map(function (stack) {\n return stack.reduce(function (acc, stack) {\n acc += isNaN(stack) ? 0 : Math.abs(stack);\n return acc;\n }, 0);\n });\n });\n\n var _c = this.findLargestMinMax(yMinMax),\n yMin = _c.min,\n yMax = _c.max;\n\n if (yMin === Infinity && yMax === -Infinity) {\n // There's no data in the domain.\n this.yDomain = [];\n return true;\n }\n\n if (normalizedTo && isFinite(normalizedTo)) {\n yMin = yMin < 0 ? -normalizedTo : 0;\n yMax = yMax > 0 ? normalizedTo : 0;\n yData.forEach(function (group, i) {\n group.forEach(function (stack, j) {\n stack.forEach(function (y, k) {\n stack[k] = y / yAbsTotal[i][j] * normalizedTo;\n });\n });\n });\n }\n\n this.yDomain = this.fixNumericExtent([yMin, yMax], this.yAxis);\n return true;\n };\n\n BarSeries.prototype.findLargestMinMax = function (groups) {\n var e_1, _a, e_2, _b;\n\n var tallestStackMin = Infinity;\n var tallestStackMax = -Infinity;\n\n try {\n for (var groups_1 = __values$c(groups), groups_1_1 = groups_1.next(); !groups_1_1.done; groups_1_1 = groups_1.next()) {\n var group = groups_1_1.value;\n\n try {\n for (var group_1 = (e_2 = void 0, __values$c(group)), group_1_1 = group_1.next(); !group_1_1.done; group_1_1 = group_1.next()) {\n var stack = group_1_1.value;\n var _c = stack.min,\n min = _c === void 0 ? Infinity : _c,\n _d = stack.max,\n max = _d === void 0 ? -Infinity : _d;\n\n if (min < tallestStackMin) {\n tallestStackMin = min;\n }\n\n if (max > tallestStackMax) {\n tallestStackMax = max;\n }\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally {\n try {\n if (group_1_1 && !group_1_1.done && (_b = group_1.return)) _b.call(group_1);\n } finally {\n if (e_2) throw e_2.error;\n }\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (groups_1_1 && !groups_1_1.done && (_a = groups_1.return)) _a.call(groups_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n return {\n min: tallestStackMin,\n max: tallestStackMax\n };\n };\n\n BarSeries.prototype.getDomain = function (direction) {\n if (this.flipXY) {\n direction = flipChartAxisDirection(direction);\n }\n\n if (direction === ChartAxisDirection.X) {\n return this.xData;\n } else {\n return this.yDomain;\n }\n };\n\n BarSeries.prototype.fireNodeClickEvent = function (event, datum) {\n this.fireEvent({\n type: 'nodeClick',\n event: event,\n series: this,\n datum: datum.datum,\n xKey: this.xKey,\n yKey: datum.yKey\n });\n };\n\n BarSeries.prototype.getCategoryAxis = function () {\n return this.flipXY ? this.yAxis : this.xAxis;\n };\n\n BarSeries.prototype.getValueAxis = function () {\n return this.flipXY ? this.xAxis : this.yAxis;\n };\n\n BarSeries.prototype.calculateStep = function (range) {\n var _a, _b;\n\n var smallestInterval = this.smallestDataInterval;\n var xAxis = this.getCategoryAxis();\n\n if (!xAxis) {\n return;\n } // calculate step\n\n\n var domainLength = xAxis.domain[1] - xAxis.domain[0];\n var intervals = domainLength / (_b = (_a = smallestInterval) === null || _a === void 0 ? void 0 : _a.x, _b !== null && _b !== void 0 ? _b : 1) + 1; // The number of intervals/bands is used to determine the width of individual bands by dividing the available range.\n // Allow a maximum number of bands to ensure the step does not fall below 1 pixel.\n // This means there could be some overlap of the bands in the chart.\n\n var maxBands = Math.floor(range); // A minimum of 1px per bar/column means the maximum number of bands will equal the available range\n\n var bands = Math.min(intervals, maxBands);\n var step = range / Math.max(1, bands);\n return step;\n };\n\n BarSeries.prototype.createNodeData = function () {\n var _this = this;\n\n var _a = this,\n chart = _a.chart,\n data = _a.data,\n visible = _a.visible;\n\n var xAxis = this.getCategoryAxis();\n var yAxis = this.getValueAxis();\n\n if (!(chart && data && visible && xAxis && yAxis)) {\n return [];\n }\n\n var xScale = xAxis.scale;\n var yScale = yAxis.scale;\n\n var _b = this,\n groupScale = _b.groupScale,\n yKeys = _b.yKeys,\n cumYKeyCount = _b.cumYKeyCount,\n fills = _b.fills,\n strokes = _b.strokes,\n strokeWidth = _b.strokeWidth,\n seriesItemEnabled = _b.seriesItemEnabled,\n xData = _b.xData,\n yData = _b.yData,\n label = _b.label,\n flipXY = _b.flipXY;\n\n var labelFontStyle = label.fontStyle,\n labelFontWeight = label.fontWeight,\n labelFontSize = label.fontSize,\n labelFontFamily = label.fontFamily,\n labelColor = label.color,\n labelFormatter = label.formatter,\n labelPlacement = label.placement;\n var xBandWidth = xScale.bandwidth;\n\n if (xScale instanceof ContinuousScale$1) {\n var availableRange = Math.max(xAxis.range[0], xAxis.range[1]);\n var step = this.calculateStep(availableRange);\n xBandWidth = step; // last node will be clipped if the scale is not a band scale\n // subtract last band width from the range so that the last band is not clipped\n\n xScale.range = this.flipXY ? [availableRange - (step !== null && step !== void 0 ? step : 0), 0] : [0, availableRange - (step !== null && step !== void 0 ? step : 0)];\n }\n\n groupScale.range = [0, xBandWidth];\n var barWidth = groupScale.bandwidth >= 1 ? // Pixel-rounded value for low-volume bar charts.\n groupScale.bandwidth : // Handle high-volume bar charts gracefully.\n groupScale.rawBandwidth;\n var contexts = [];\n xData.forEach(function (group, groupIndex) {\n var _a, _b;\n\n var seriesDatum = data[groupIndex];\n var x = xScale.convert(group);\n var groupYs = yData[groupIndex]; // y-data for groups of stacks\n\n for (var stackIndex = 0; stackIndex < groupYs.length; stackIndex++) {\n var stackYs = groupYs[stackIndex]; // y-data for a stack within a group\n\n contexts[stackIndex] = (_a = contexts[stackIndex], _a !== null && _a !== void 0 ? _a : []);\n var prevMinY = 0;\n var prevMaxY = 0;\n\n for (var levelIndex = 0; levelIndex < stackYs.length; levelIndex++) {\n var currY = +stackYs[levelIndex];\n var yKey = yKeys[stackIndex][levelIndex];\n var barX = x + groupScale.convert(String(stackIndex));\n contexts[stackIndex][levelIndex] = (_b = contexts[stackIndex][levelIndex], _b !== null && _b !== void 0 ? _b : {\n itemId: yKey,\n nodeData: [],\n labelData: []\n }); // Bars outside of visible range are not rendered, so we create node data\n // only for the visible subset of user data.\n\n if (!xAxis.inRange(barX, barWidth)) {\n continue;\n }\n\n if (isNaN(currY)) {\n continue;\n }\n\n var prevY = currY < 0 ? prevMinY : prevMaxY;\n var continuousY = yScale instanceof ContinuousScale$1;\n var y = yScale.convert(prevY + currY, continuousY ? clamper$2 : undefined);\n var bottomY = yScale.convert(prevY, continuousY ? clamper$2 : undefined);\n var yValue = seriesDatum[yKey]; // unprocessed y-value\n\n var labelText = void 0;\n\n if (labelFormatter) {\n labelText = labelFormatter({\n value: isNumber$1(yValue) ? yValue : undefined\n });\n } else {\n labelText = isNumber$1(yValue) ? yValue.toFixed(2) : '';\n }\n\n var labelX = void 0;\n var labelY = void 0;\n\n if (flipXY) {\n labelY = barX + barWidth / 2;\n\n if (labelPlacement === BarLabelPlacement.Inside) {\n labelX = y + (yValue >= 0 ? -1 : 1) * Math.abs(bottomY - y) / 2;\n } else {\n labelX = y + (yValue >= 0 ? 1 : -1) * 4;\n }\n } else {\n labelX = barX + barWidth / 2;\n\n if (labelPlacement === BarLabelPlacement.Inside) {\n labelY = y + (yValue >= 0 ? 1 : -1) * Math.abs(bottomY - y) / 2;\n } else {\n labelY = y + (yValue >= 0 ? -3 : 4);\n }\n }\n\n var labelTextAlign = void 0;\n var labelTextBaseline = void 0;\n\n if (labelPlacement === BarLabelPlacement.Inside) {\n labelTextAlign = 'center';\n labelTextBaseline = 'middle';\n } else {\n labelTextAlign = flipXY ? yValue >= 0 ? 'start' : 'end' : 'center';\n labelTextBaseline = flipXY ? 'middle' : yValue >= 0 ? 'bottom' : 'top';\n }\n\n var colorIndex = cumYKeyCount[stackIndex] + levelIndex;\n var nodeData = {\n index: groupIndex,\n series: _this,\n itemId: yKey,\n datum: seriesDatum,\n yValue: yValue,\n yKey: yKey,\n x: flipXY ? Math.min(y, bottomY) : barX,\n y: flipXY ? barX : Math.min(y, bottomY),\n width: flipXY ? Math.abs(bottomY - y) : barWidth,\n height: flipXY ? barWidth : Math.abs(bottomY - y),\n colorIndex: colorIndex,\n fill: fills[colorIndex % fills.length],\n stroke: strokes[colorIndex % strokes.length],\n strokeWidth: strokeWidth,\n label: seriesItemEnabled.get(yKey) && labelText ? {\n text: labelText,\n fontStyle: labelFontStyle,\n fontWeight: labelFontWeight,\n fontSize: labelFontSize,\n fontFamily: labelFontFamily,\n textAlign: labelTextAlign,\n textBaseline: labelTextBaseline,\n fill: labelColor,\n x: labelX,\n y: labelY\n } : undefined\n };\n contexts[stackIndex][levelIndex].nodeData.push(nodeData);\n contexts[stackIndex][levelIndex].labelData.push(nodeData);\n\n if (currY < 0) {\n prevMinY += currY;\n } else {\n prevMaxY += currY;\n }\n }\n }\n });\n return contexts.reduce(function (r, n) {\n return r.concat.apply(r, __spread$c(n));\n }, []);\n };\n\n BarSeries.prototype.updateDatumSelection = function (opts) {\n var nodeData = opts.nodeData,\n datumSelection = opts.datumSelection;\n var updateRects = datumSelection.setData(nodeData);\n updateRects.exit.remove();\n var enterRects = updateRects.enter.append(Rect).each(function (rect) {\n rect.tag = BarSeriesNodeTag.Bar;\n });\n return updateRects.merge(enterRects);\n };\n\n BarSeries.prototype.updateDatumNodes = function (opts) {\n var _this = this;\n\n var _a, _b;\n\n var datumSelection = opts.datumSelection,\n isDatumHighlighted = opts.isHighlight;\n\n var _c = this,\n fills = _c.fills,\n strokes = _c.strokes,\n seriesFillOpacity = _c.fillOpacity,\n strokeOpacity = _c.strokeOpacity,\n shadow = _c.shadow,\n formatter = _c.formatter,\n xKey = _c.xKey,\n flipXY = _c.flipXY,\n _d = _c.highlightStyle,\n deprecatedFill = _d.fill,\n deprecatedStroke = _d.stroke,\n deprecatedStrokeWidth = _d.strokeWidth,\n _e = _d.item,\n _f = _e.fill,\n highlightedFill = _f === void 0 ? deprecatedFill : _f,\n _g = _e.fillOpacity,\n highlightFillOpacity = _g === void 0 ? seriesFillOpacity : _g,\n _h = _e.stroke,\n highlightedStroke = _h === void 0 ? deprecatedStroke : _h,\n _j = _e.strokeWidth,\n highlightedDatumStrokeWidth = _j === void 0 ? deprecatedStrokeWidth : _j;\n\n var _k = __read$r((_b = (_a = this.xAxis) === null || _a === void 0 ? void 0 : _a.visibleRange, _b !== null && _b !== void 0 ? _b : []), 2),\n visibleMin = _k[0],\n visibleMax = _k[1];\n\n var isZoomed = visibleMin !== 0 || visibleMax !== 1;\n var crisp = !isZoomed && !datumSelection.data.some(function (d) {\n return d.width <= 0.5 || d.height <= 0.5;\n });\n datumSelection.each(function (rect, datum) {\n var colorIndex = datum.colorIndex;\n var fill = isDatumHighlighted && highlightedFill !== undefined ? highlightedFill : fills[colorIndex % fills.length];\n var stroke = isDatumHighlighted && highlightedStroke !== undefined ? highlightedStroke : strokes[colorIndex % fills.length];\n var strokeWidth = isDatumHighlighted && highlightedDatumStrokeWidth !== undefined ? highlightedDatumStrokeWidth : _this.getStrokeWidth(_this.strokeWidth, datum);\n var fillOpacity = isDatumHighlighted ? highlightFillOpacity : seriesFillOpacity;\n var format = undefined;\n\n if (formatter) {\n format = formatter({\n datum: datum.datum,\n fill: fill,\n stroke: stroke,\n strokeWidth: strokeWidth,\n highlighted: isDatumHighlighted,\n xKey: xKey,\n yKey: datum.yKey\n });\n }\n\n rect.crisp = crisp;\n rect.x = datum.x;\n rect.y = datum.y;\n rect.width = datum.width;\n rect.height = datum.height;\n rect.fill = format && format.fill || fill;\n rect.stroke = format && format.stroke || stroke;\n rect.strokeWidth = format && format.strokeWidth !== undefined ? format.strokeWidth : strokeWidth;\n rect.fillOpacity = fillOpacity;\n rect.strokeOpacity = strokeOpacity;\n rect.lineDash = _this.lineDash;\n rect.lineDashOffset = _this.lineDashOffset;\n rect.fillShadow = shadow; // Prevent stroke from rendering for zero height columns and zero width bars.\n\n rect.visible = flipXY ? datum.width > 0 : datum.height > 0;\n });\n };\n\n BarSeries.prototype.updateLabelSelection = function (opts) {\n var labelData = opts.labelData,\n labelSelection = opts.labelSelection;\n var enabled = this.label.enabled;\n var data = enabled ? labelData : [];\n var updateLabels = labelSelection.setData(data);\n updateLabels.exit.remove();\n var enterLabels = updateLabels.enter.append(Text$1).each(function (text) {\n text.tag = BarSeriesNodeTag.Label;\n text.pointerEvents = PointerEvents$1.None;\n });\n return updateLabels.merge(enterLabels);\n };\n\n BarSeries.prototype.updateLabelNodes = function (opts) {\n var labelSelection = opts.labelSelection;\n var _a = this.label,\n labelEnabled = _a.enabled,\n fontStyle = _a.fontStyle,\n fontWeight = _a.fontWeight,\n fontSize = _a.fontSize,\n fontFamily = _a.fontFamily,\n color = _a.color;\n labelSelection.each(function (text, datum) {\n var label = datum.label;\n\n if (label && labelEnabled) {\n text.fontStyle = fontStyle;\n text.fontWeight = fontWeight;\n text.fontSize = fontSize;\n text.fontFamily = fontFamily;\n text.textAlign = label.textAlign;\n text.textBaseline = label.textBaseline;\n text.text = label.text;\n text.x = label.x;\n text.y = label.y;\n text.fill = color;\n text.visible = true;\n } else {\n text.visible = false;\n }\n });\n };\n\n BarSeries.prototype.getTooltipHtml = function (nodeDatum) {\n var _a = this,\n xKey = _a.xKey,\n yKeys = _a.yKeys,\n yData = _a.yData;\n\n var xAxis = this.getCategoryAxis();\n var yAxis = this.getValueAxis();\n var yKey = nodeDatum.yKey;\n\n if (!yData.length || !xKey || !yKey || !xAxis || !yAxis) {\n return '';\n }\n\n var yGroup = yData[nodeDatum.index];\n var fillIndex = 0;\n var i = 0;\n var j = 0;\n\n for (; j < yKeys.length; j++) {\n var stack = yKeys[j];\n i = stack.indexOf(yKey);\n\n if (i >= 0) {\n fillIndex += i;\n break;\n }\n\n fillIndex += stack.length;\n }\n\n var _b = this,\n xName = _b.xName,\n yNames = _b.yNames,\n fills = _b.fills,\n strokes = _b.strokes,\n tooltip = _b.tooltip,\n formatter = _b.formatter;\n\n var tooltipRenderer = tooltip.renderer;\n var datum = nodeDatum.datum;\n var yName = yNames[yKey];\n var fill = fills[fillIndex % fills.length];\n var stroke = strokes[fillIndex % fills.length];\n var strokeWidth = this.getStrokeWidth(this.strokeWidth);\n var xValue = datum[xKey];\n var yValue = datum[yKey];\n var processedYValue = yGroup[j][i];\n var xString = sanitizeHtml(xAxis.formatDatum(xValue));\n var yString = sanitizeHtml(yAxis.formatDatum(yValue));\n var title = sanitizeHtml(yName);\n var content = xString + ': ' + yString;\n var format = undefined;\n\n if (formatter) {\n format = formatter({\n datum: datum,\n fill: fill,\n stroke: stroke,\n strokeWidth: strokeWidth,\n highlighted: false,\n xKey: xKey,\n yKey: yKey\n });\n }\n\n var color = format && format.fill || fill;\n var defaults = {\n title: title,\n backgroundColor: color,\n content: content\n };\n\n if (tooltipRenderer) {\n return toTooltipHtml$1(tooltipRenderer({\n datum: datum,\n xKey: xKey,\n xValue: xValue,\n xName: xName,\n yKey: yKey,\n yValue: yValue,\n processedYValue: processedYValue,\n yName: yName,\n color: color,\n title: title\n }), defaults);\n }\n\n return toTooltipHtml$1(defaults);\n };\n\n BarSeries.prototype.listSeriesItems = function (legendData) {\n var _a = this,\n id = _a.id,\n data = _a.data,\n xKey = _a.xKey,\n yKeys = _a.yKeys,\n yNames = _a.yNames,\n cumYKeyCount = _a.cumYKeyCount,\n seriesItemEnabled = _a.seriesItemEnabled,\n hideInLegend = _a.hideInLegend,\n fills = _a.fills,\n strokes = _a.strokes,\n fillOpacity = _a.fillOpacity,\n strokeOpacity = _a.strokeOpacity,\n flipXY = _a.flipXY;\n\n if (!data || !data.length || !xKey || !yKeys.length) {\n return;\n }\n\n this.yKeys.forEach(function (stack, stackIndex) {\n // Column stacks should be listed in the legend in reverse order, for symmetry with the\n // vertical stack display order. Bar stacks are already consistent left-to-right with\n // the legend.\n var startLevel = flipXY ? 0 : stack.length - 1;\n var endLevel = flipXY ? stack.length : -1;\n var direction = flipXY ? 1 : -1;\n\n for (var levelIndex = startLevel; levelIndex !== endLevel; levelIndex += direction) {\n var yKey = stack[levelIndex];\n\n if (hideInLegend.indexOf(yKey) >= 0) {\n return;\n }\n\n var colorIndex = cumYKeyCount[stackIndex] + levelIndex;\n legendData.push({\n id: id,\n itemId: yKey,\n enabled: seriesItemEnabled.get(yKey) || false,\n label: {\n text: yNames[yKey] || yKey\n },\n marker: {\n fill: fills[colorIndex % fills.length],\n stroke: strokes[colorIndex % strokes.length],\n fillOpacity: fillOpacity,\n strokeOpacity: strokeOpacity\n }\n });\n }\n });\n };\n\n BarSeries.prototype.toggleSeriesItem = function (itemId, enabled) {\n _super.prototype.toggleSeriesItem.call(this, itemId, enabled);\n\n var yKeys = this.yKeys.map(function (stack) {\n return stack.slice();\n }); // deep clone\n\n this.seriesItemEnabled.forEach(function (enabled, yKey) {\n if (!enabled) {\n yKeys.forEach(function (stack) {\n var index = stack.indexOf(yKey);\n\n if (index >= 0) {\n stack.splice(index, 1);\n }\n });\n }\n });\n var visibleStacks = [];\n yKeys.forEach(function (stack, index) {\n if (stack.length > 0) {\n visibleStacks.push(String(index));\n }\n });\n this.groupScale.domain = visibleStacks;\n this.nodeDataRefresh = true;\n };\n\n BarSeries.className = 'BarSeries';\n BarSeries.type = 'bar';\n return BarSeries;\n}(CartesianSeries);\n\nvar __extends$25 = undefined && undefined.__extends || function () {\n var _extendStatics87 = function extendStatics(d, b) {\n _extendStatics87 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics87(d, b);\n };\n\n return function (d, b) {\n _extendStatics87(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __values$b = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar __read$q = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar LineSeriesLabel =\n/** @class */\nfunction (_super) {\n __extends$25(LineSeriesLabel, _super);\n\n function LineSeriesLabel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.formatter = undefined;\n return _this;\n }\n\n return LineSeriesLabel;\n}(Label$1);\n\nvar LineSeriesTooltip =\n/** @class */\nfunction (_super) {\n __extends$25(LineSeriesTooltip, _super);\n\n function LineSeriesTooltip() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.renderer = undefined;\n _this.format = undefined;\n return _this;\n }\n\n return LineSeriesTooltip;\n}(SeriesTooltip);\n\nvar LineSeries =\n/** @class */\nfunction (_super) {\n __extends$25(LineSeries, _super);\n\n function LineSeries() {\n var _this = _super.call(this, {\n pickGroupIncludes: ['markers'],\n features: ['markers'],\n pickModes: [SeriesNodePickMode.NEAREST_BY_MAIN_CATEGORY_AXIS_FIRST, SeriesNodePickMode.NEAREST_NODE, SeriesNodePickMode.EXACT_SHAPE_MATCH]\n }) || this;\n\n _this.xDomain = [];\n _this.yDomain = [];\n _this.xData = [];\n _this.yData = [];\n _this.marker = new CartesianSeriesMarker();\n _this.label = new LineSeriesLabel();\n _this.title = undefined;\n _this.stroke = '#874349';\n _this.lineDash = [0];\n _this.lineDashOffset = 0;\n _this.strokeWidth = 2;\n _this.strokeOpacity = 1;\n _this.tooltip = new LineSeriesTooltip();\n _this._xKey = '';\n _this.xName = '';\n _this._yKey = '';\n _this.yName = '';\n var _a = _this,\n marker = _a.marker,\n label = _a.label;\n marker.fill = '#c16068';\n marker.stroke = '#874349';\n label.enabled = false;\n return _this;\n }\n\n LineSeries.prototype.setColors = function (fills, strokes) {\n this.stroke = fills[0];\n this.marker.stroke = strokes[0];\n this.marker.fill = fills[0];\n };\n\n Object.defineProperty(LineSeries.prototype, \"xKey\", {\n get: function get() {\n return this._xKey;\n },\n set: function set(value) {\n this._xKey = value;\n this.xData = [];\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(LineSeries.prototype, \"yKey\", {\n get: function get() {\n return this._yKey;\n },\n set: function set(value) {\n this._yKey = value;\n this.yData = [];\n },\n enumerable: true,\n configurable: true\n });\n\n LineSeries.prototype.getDomain = function (direction) {\n if (direction === ChartAxisDirection.X) {\n return this.xDomain;\n }\n\n return this.yDomain;\n };\n\n LineSeries.prototype.processData = function () {\n var e_1, _a;\n\n var _b = this,\n xAxis = _b.xAxis,\n yAxis = _b.yAxis,\n xKey = _b.xKey,\n yKey = _b.yKey,\n xData = _b.xData,\n yData = _b.yData;\n\n var data = xKey && yKey && this.data ? this.data : [];\n\n if (!xAxis || !yAxis) {\n return false;\n }\n\n var isContinuousX = xAxis.scale instanceof ContinuousScale$1;\n var isContinuousY = yAxis.scale instanceof ContinuousScale$1;\n xData.length = 0;\n yData.length = 0;\n\n try {\n for (var data_1 = __values$b(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {\n var datum = data_1_1.value;\n var x = datum[xKey];\n var y = datum[yKey];\n var xDatum = checkDatum(x, isContinuousX);\n\n if (isContinuousX && xDatum === undefined) {\n continue;\n } else {\n xData.push(xDatum);\n }\n\n var yDatum = checkDatum(y, isContinuousY);\n yData.push(yDatum);\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (data_1_1 && !data_1_1.done && (_a = data_1.return)) _a.call(data_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n this.xDomain = isContinuousX ? this.fixNumericExtent(extent$1(xData, isContinuous$1), xAxis) : xData;\n this.yDomain = isContinuousY ? this.fixNumericExtent(extent$1(yData, isContinuous$1), yAxis) : yData;\n return true;\n };\n\n LineSeries.prototype.createNodeData = function () {\n var _a;\n\n var _b = this,\n data = _b.data,\n xAxis = _b.xAxis,\n yAxis = _b.yAxis,\n _c = _b.marker,\n markerEnabled = _c.enabled,\n markerSize = _c.size,\n strokeWidth = _c.strokeWidth;\n\n if (!data || !xAxis || !yAxis) {\n return [];\n }\n\n var _d = this,\n xData = _d.xData,\n yData = _d.yData,\n label = _d.label,\n xKey = _d.xKey,\n yKey = _d.yKey;\n\n var xScale = xAxis.scale;\n var yScale = yAxis.scale;\n var xOffset = (xScale.bandwidth || 0) / 2;\n var yOffset = (yScale.bandwidth || 0) / 2;\n var nodeData = new Array(data.length);\n var size = markerEnabled ? markerSize : 0;\n var moveTo = true;\n var prevXInRange = undefined;\n var nextXYDatums = undefined;\n var actualLength = 0;\n\n for (var i = 0; i < xData.length; i++) {\n var xyDatums = nextXYDatums || [xData[i], yData[i]];\n\n if (xyDatums[1] === undefined) {\n prevXInRange = undefined;\n moveTo = true;\n } else {\n var _e = __read$q(xyDatums, 2),\n xDatum = _e[0],\n yDatum = _e[1];\n\n var x = xScale.convert(xDatum) + xOffset;\n\n if (isNaN(x)) {\n prevXInRange = undefined;\n moveTo = true;\n continue;\n }\n\n var tolerance = (xScale.bandwidth || markerSize * 0.5 + (strokeWidth || 0)) + 1;\n nextXYDatums = yData[i + 1] === undefined ? undefined : [xData[i + 1], yData[i + 1]];\n var xInRange = xAxis.inRangeEx(x, 0, tolerance);\n var nextXInRange = nextXYDatums && xAxis.inRangeEx(xScale.convert(nextXYDatums[0]) + xOffset, 0, tolerance);\n\n if (xInRange === -1 && nextXInRange === -1) {\n moveTo = true;\n continue;\n }\n\n if (xInRange === 1 && prevXInRange === 1) {\n moveTo = true;\n continue;\n }\n\n prevXInRange = xInRange;\n var y = yScale.convert(yDatum) + yOffset;\n var labelText = void 0;\n\n if (label.formatter) {\n labelText = label.formatter({\n value: yDatum\n });\n } else {\n labelText = typeof yDatum === 'number' && isFinite(yDatum) ? yDatum.toFixed(2) : yDatum ? String(yDatum) : '';\n }\n\n var seriesDatum = (_a = {}, _a[xKey] = xDatum, _a[yKey] = yDatum, _a);\n nodeData[actualLength++] = {\n series: this,\n datum: seriesDatum,\n point: {\n x: x,\n y: y,\n moveTo: moveTo,\n size: size\n },\n label: labelText ? {\n text: labelText,\n fontStyle: label.fontStyle,\n fontWeight: label.fontWeight,\n fontSize: label.fontSize,\n fontFamily: label.fontFamily,\n textAlign: 'center',\n textBaseline: 'bottom',\n fill: label.color\n } : undefined\n };\n moveTo = false;\n }\n }\n\n nodeData.length = actualLength;\n return [{\n itemId: yKey,\n nodeData: nodeData,\n labelData: nodeData\n }];\n };\n\n LineSeries.prototype.isPathOrSelectionDirty = function () {\n return this.marker.isDirty();\n };\n\n LineSeries.prototype.updatePaths = function (opts) {\n var e_2, _a;\n\n var nodeData = opts.contextData.nodeData,\n _b = __read$q(opts.paths, 1),\n lineNode = _b[0];\n\n var linePath = lineNode.path;\n lineNode.fill = undefined;\n lineNode.lineJoin = 'round';\n lineNode.pointerEvents = PointerEvents$1.None;\n linePath.clear({\n trackChanges: true\n });\n\n try {\n for (var nodeData_1 = __values$b(nodeData), nodeData_1_1 = nodeData_1.next(); !nodeData_1_1.done; nodeData_1_1 = nodeData_1.next()) {\n var data = nodeData_1_1.value;\n\n if (data.point.moveTo) {\n linePath.moveTo(data.point.x, data.point.y);\n } else {\n linePath.lineTo(data.point.x, data.point.y);\n }\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally {\n try {\n if (nodeData_1_1 && !nodeData_1_1.done && (_a = nodeData_1.return)) _a.call(nodeData_1);\n } finally {\n if (e_2) throw e_2.error;\n }\n }\n\n lineNode.checkPathDirty();\n };\n\n LineSeries.prototype.updatePathNodes = function (opts) {\n var _a = __read$q(opts.paths, 1),\n lineNode = _a[0];\n\n lineNode.stroke = this.stroke;\n lineNode.strokeWidth = this.getStrokeWidth(this.strokeWidth);\n lineNode.strokeOpacity = this.strokeOpacity;\n lineNode.lineDash = this.lineDash;\n lineNode.lineDashOffset = this.lineDashOffset;\n };\n\n LineSeries.prototype.updateMarkerSelection = function (opts) {\n var nodeData = opts.nodeData,\n markerSelection = opts.markerSelection;\n var _a = this.marker,\n shape = _a.shape,\n enabled = _a.enabled;\n nodeData = shape && enabled ? nodeData : [];\n var MarkerShape = getMarker$1(shape);\n\n if (this.marker.isDirty()) {\n markerSelection = markerSelection.setData([]);\n markerSelection.exit.remove();\n }\n\n var updateMarkerSelection = markerSelection.setData(nodeData);\n updateMarkerSelection.exit.remove();\n var enterDatumSelection = updateMarkerSelection.enter.append(MarkerShape);\n return updateMarkerSelection.merge(enterDatumSelection);\n };\n\n LineSeries.prototype.updateMarkerNodes = function (opts) {\n var markerSelection = opts.markerSelection,\n isDatumHighlighted = opts.isHighlight;\n\n var _a = this,\n marker = _a.marker,\n markerFillOpacity = _a.marker.fillOpacity,\n xKey = _a.xKey,\n yKey = _a.yKey,\n lineStroke = _a.stroke,\n strokeOpacity = _a.strokeOpacity,\n _b = _a.highlightStyle,\n deprecatedFill = _b.fill,\n deprecatedStroke = _b.stroke,\n deprecatedStrokeWidth = _b.strokeWidth,\n _c = _b.item,\n _d = _c.fill,\n highlightedFill = _d === void 0 ? deprecatedFill : _d,\n _e = _c.fillOpacity,\n highlightFillOpacity = _e === void 0 ? markerFillOpacity : _e,\n _f = _c.stroke,\n highlightedStroke = _f === void 0 ? deprecatedStroke : _f,\n _g = _c.strokeWidth,\n highlightedDatumStrokeWidth = _g === void 0 ? deprecatedStrokeWidth : _g;\n\n var size = marker.size,\n formatter = marker.formatter;\n var markerStrokeWidth = marker.strokeWidth !== undefined ? marker.strokeWidth : this.strokeWidth;\n markerSelection.each(function (node, datum) {\n var _a, _b;\n\n var fill = isDatumHighlighted && highlightedFill !== undefined ? highlightedFill : marker.fill;\n var fillOpacity = isDatumHighlighted ? highlightFillOpacity : markerFillOpacity;\n var stroke = isDatumHighlighted && highlightedStroke !== undefined ? highlightedStroke : marker.stroke || lineStroke;\n var strokeWidth = isDatumHighlighted && highlightedDatumStrokeWidth !== undefined ? highlightedDatumStrokeWidth : markerStrokeWidth;\n var format = undefined;\n\n if (formatter) {\n format = formatter({\n datum: datum.datum,\n xKey: xKey,\n yKey: yKey,\n fill: fill,\n stroke: stroke,\n strokeWidth: strokeWidth,\n size: size,\n highlighted: isDatumHighlighted\n });\n }\n\n node.fill = format && format.fill || fill;\n node.stroke = format && format.stroke || stroke;\n node.strokeWidth = format && format.strokeWidth !== undefined ? format.strokeWidth : strokeWidth;\n node.fillOpacity = fillOpacity !== null && fillOpacity !== void 0 ? fillOpacity : 1;\n node.strokeOpacity = (_b = (_a = marker.strokeOpacity, _a !== null && _a !== void 0 ? _a : strokeOpacity), _b !== null && _b !== void 0 ? _b : 1);\n node.size = format && format.size !== undefined ? format.size : size;\n node.translationX = datum.point.x;\n node.translationY = datum.point.y;\n node.visible = node.size > 0;\n });\n\n if (!isDatumHighlighted) {\n this.marker.markClean();\n }\n };\n\n LineSeries.prototype.updateLabelSelection = function (opts) {\n var labelData = opts.labelData,\n labelSelection = opts.labelSelection;\n var _a = this.marker,\n shape = _a.shape,\n enabled = _a.enabled;\n labelData = shape && enabled ? labelData : [];\n var updateTextSelection = labelSelection.setData(labelData);\n updateTextSelection.exit.remove();\n var enterTextSelection = updateTextSelection.enter.append(Text$1);\n return updateTextSelection.merge(enterTextSelection);\n };\n\n LineSeries.prototype.updateLabelNodes = function (opts) {\n var labelSelection = opts.labelSelection;\n var _a = this.label,\n labelEnabled = _a.enabled,\n fontStyle = _a.fontStyle,\n fontWeight = _a.fontWeight,\n fontSize = _a.fontSize,\n fontFamily = _a.fontFamily,\n color = _a.color;\n labelSelection.each(function (text, datum) {\n var point = datum.point,\n label = datum.label;\n\n if (datum && label && labelEnabled) {\n text.fontStyle = fontStyle;\n text.fontWeight = fontWeight;\n text.fontSize = fontSize;\n text.fontFamily = fontFamily;\n text.textAlign = label.textAlign;\n text.textBaseline = label.textBaseline;\n text.text = label.text;\n text.x = point.x;\n text.y = point.y - 10;\n text.fill = color;\n text.visible = true;\n } else {\n text.visible = false;\n }\n });\n };\n\n LineSeries.prototype.fireNodeClickEvent = function (event, datum) {\n this.fireEvent({\n type: 'nodeClick',\n event: event,\n series: this,\n datum: datum.datum,\n xKey: this.xKey,\n yKey: this.yKey\n });\n };\n\n LineSeries.prototype.getTooltipHtml = function (nodeDatum) {\n var _a = this,\n xKey = _a.xKey,\n yKey = _a.yKey,\n xAxis = _a.xAxis,\n yAxis = _a.yAxis;\n\n if (!xKey || !yKey || !xAxis || !yAxis) {\n return '';\n }\n\n var _b = this,\n xName = _b.xName,\n yName = _b.yName,\n tooltip = _b.tooltip,\n marker = _b.marker;\n\n var tooltipRenderer = tooltip.renderer,\n tooltipFormat = tooltip.format;\n var datum = nodeDatum.datum;\n var xValue = datum[xKey];\n var yValue = datum[yKey];\n var xString = xAxis.formatDatum(xValue);\n var yString = yAxis.formatDatum(yValue);\n var title = sanitizeHtml(this.title || yName);\n var content = sanitizeHtml(xString + ': ' + yString);\n var markerFormatter = marker.formatter,\n fill = marker.fill,\n stroke = marker.stroke,\n markerStrokeWidth = marker.strokeWidth,\n size = marker.size;\n var strokeWidth = markerStrokeWidth !== undefined ? markerStrokeWidth : this.strokeWidth;\n var format = undefined;\n\n if (markerFormatter) {\n format = markerFormatter({\n datum: datum,\n xKey: xKey,\n yKey: yKey,\n fill: fill,\n stroke: stroke,\n strokeWidth: strokeWidth,\n size: size,\n highlighted: false\n });\n }\n\n var color = format && format.fill || fill;\n var defaults = {\n title: title,\n backgroundColor: color,\n content: content\n };\n\n if (tooltipFormat || tooltipRenderer) {\n var params = {\n datum: datum,\n xKey: xKey,\n xValue: xValue,\n xName: xName,\n yKey: yKey,\n yValue: yValue,\n yName: yName,\n title: title,\n color: color\n };\n\n if (tooltipFormat) {\n return toTooltipHtml$1({\n content: interpolate(tooltipFormat, params)\n }, defaults);\n }\n\n if (tooltipRenderer) {\n return toTooltipHtml$1(tooltipRenderer(params), defaults);\n }\n }\n\n return toTooltipHtml$1(defaults);\n };\n\n LineSeries.prototype.listSeriesItems = function (legendData) {\n var _a, _b, _c;\n\n var _d = this,\n id = _d.id,\n data = _d.data,\n xKey = _d.xKey,\n yKey = _d.yKey,\n yName = _d.yName,\n visible = _d.visible,\n title = _d.title,\n marker = _d.marker,\n stroke = _d.stroke,\n strokeOpacity = _d.strokeOpacity;\n\n if (data && data.length && xKey && yKey) {\n legendData.push({\n id: id,\n itemId: yKey,\n enabled: visible,\n label: {\n text: title || yName || yKey\n },\n marker: {\n shape: marker.shape,\n fill: marker.fill || 'rgba(0, 0, 0, 0)',\n stroke: marker.stroke || stroke || 'rgba(0, 0, 0, 0)',\n fillOpacity: (_a = marker.fillOpacity, _a !== null && _a !== void 0 ? _a : 1),\n strokeOpacity: (_c = (_b = marker.strokeOpacity, _b !== null && _b !== void 0 ? _b : strokeOpacity), _c !== null && _c !== void 0 ? _c : 1)\n }\n });\n }\n };\n\n LineSeries.className = 'LineSeries';\n LineSeries.type = 'line';\n return LineSeries;\n}(CartesianSeries);\n\nvar __extends$24 = undefined && undefined.__extends || function () {\n var _extendStatics88 = function extendStatics(d, b) {\n _extendStatics88 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics88(d, b);\n };\n\n return function (d, b) {\n _extendStatics88(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$r = undefined && undefined.__assign || function () {\n __assign$r = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$r.apply(this, arguments);\n};\n\nvar __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ScatterSeriesTooltip =\n/** @class */\nfunction (_super) {\n __extends$24(ScatterSeriesTooltip, _super);\n\n function ScatterSeriesTooltip() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.renderer = undefined;\n return _this;\n }\n\n return ScatterSeriesTooltip;\n}(SeriesTooltip);\n\nvar ScatterSeries =\n/** @class */\nfunction (_super) {\n __extends$24(ScatterSeries, _super);\n\n function ScatterSeries() {\n var _this = _super.call(this, {\n pickGroupIncludes: ['markers'],\n pickModes: [SeriesNodePickMode.NEAREST_BY_MAIN_CATEGORY_AXIS_FIRST, SeriesNodePickMode.NEAREST_NODE, SeriesNodePickMode.EXACT_SHAPE_MATCH],\n pathsPerSeries: 0,\n features: ['markers']\n }) || this;\n\n _this.xDomain = [];\n _this.yDomain = [];\n _this.xData = [];\n _this.yData = [];\n _this.validData = [];\n _this.sizeData = [];\n _this.sizeScale = new LinearScale$1();\n _this.marker = new CartesianSeriesMarker();\n _this.label = new Label$1();\n /**\n * @deprecated Use {@link marker.fill} instead.\n */\n\n _this.fill = '#c16068';\n /**\n * @deprecated Use {@link marker.stroke} instead.\n */\n\n _this.stroke = '#874349';\n /**\n * @deprecated Use {@link marker.strokeWidth} instead.\n */\n\n _this.strokeWidth = 2;\n /**\n * @deprecated Use {@link marker.fillOpacity} instead.\n */\n\n _this.fillOpacity = 1;\n /**\n * @deprecated Use {@link marker.strokeOpacity} instead.\n */\n\n _this.strokeOpacity = 1;\n _this.title = undefined;\n _this.labelKey = undefined;\n _this.xName = '';\n _this.yName = '';\n _this.sizeName = 'Size';\n _this.labelName = 'Label';\n _this._xKey = '';\n _this._yKey = '';\n _this._sizeKey = undefined;\n _this.tooltip = new ScatterSeriesTooltip();\n var label = _this.label;\n label.enabled = false;\n return _this;\n }\n\n Object.defineProperty(ScatterSeries.prototype, \"xKey\", {\n get: function get() {\n return this._xKey;\n },\n set: function set(value) {\n this._xKey = value;\n this.xData = [];\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ScatterSeries.prototype, \"yKey\", {\n get: function get() {\n return this._yKey;\n },\n set: function set(value) {\n this._yKey = value;\n this.yData = [];\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ScatterSeries.prototype, \"sizeKey\", {\n get: function get() {\n return this._sizeKey;\n },\n set: function set(value) {\n this._sizeKey = value;\n this.sizeData = [];\n },\n enumerable: true,\n configurable: true\n });\n\n ScatterSeries.prototype.setColors = function (fills, strokes) {\n this.marker.fill = fills[0];\n this.marker.stroke = strokes[0];\n };\n\n ScatterSeries.prototype.processData = function () {\n var _a = this,\n xKey = _a.xKey,\n yKey = _a.yKey,\n sizeKey = _a.sizeKey,\n xAxis = _a.xAxis,\n yAxis = _a.yAxis,\n marker = _a.marker;\n\n if (!xAxis || !yAxis) {\n return false;\n }\n\n var data = xKey && yKey && this.data ? this.data : [];\n var xScale = xAxis.scale;\n var yScale = yAxis.scale;\n var isContinuousX = xScale instanceof ContinuousScale$1;\n var isContinuousY = yScale instanceof ContinuousScale$1;\n this.validData = data.filter(function (d) {\n return checkDatum(d[xKey], isContinuousX) !== undefined && checkDatum(d[yKey], isContinuousY) !== undefined;\n });\n this.xData = this.validData.map(function (d) {\n return d[xKey];\n });\n this.yData = this.validData.map(function (d) {\n return d[yKey];\n });\n this.sizeData = sizeKey ? this.validData.map(function (d) {\n return d[sizeKey];\n }) : [];\n this.sizeScale.domain = marker.domain ? marker.domain : extent$1(this.sizeData, isContinuous$1) || [1, 1];\n\n if (xAxis.scale instanceof ContinuousScale$1) {\n this.xDomain = this.fixNumericExtent(extent$1(this.xData, isContinuous$1), xAxis);\n } else {\n this.xDomain = this.xData;\n }\n\n if (yAxis.scale instanceof ContinuousScale$1) {\n this.yDomain = this.fixNumericExtent(extent$1(this.yData, isContinuous$1), yAxis);\n } else {\n this.yDomain = this.yData;\n }\n\n return true;\n };\n\n ScatterSeries.prototype.getDomain = function (direction) {\n if (direction === ChartAxisDirection.X) {\n return this.xDomain;\n } else {\n return this.yDomain;\n }\n };\n\n ScatterSeries.prototype.fireNodeClickEvent = function (event, datum) {\n this.fireEvent({\n type: 'nodeClick',\n event: event,\n series: this,\n datum: datum.datum,\n xKey: this.xKey,\n yKey: this.yKey,\n sizeKey: this.sizeKey\n });\n };\n\n ScatterSeries.prototype.createNodeData = function () {\n var _a = this,\n chart = _a.chart,\n data = _a.data,\n visible = _a.visible,\n xAxis = _a.xAxis,\n yAxis = _a.yAxis,\n yKey = _a.yKey,\n label = _a.label,\n labelKey = _a.labelKey;\n\n if (!(chart && data && visible && xAxis && yAxis)) {\n return [];\n }\n\n var xScale = xAxis.scale;\n var yScale = yAxis.scale;\n var isContinuousX = xScale instanceof ContinuousScale$1;\n var isContinuousY = yScale instanceof ContinuousScale$1;\n var xOffset = (xScale.bandwidth || 0) / 2;\n var yOffset = (yScale.bandwidth || 0) / 2;\n\n var _b = this,\n xData = _b.xData,\n yData = _b.yData,\n validData = _b.validData,\n sizeData = _b.sizeData,\n sizeScale = _b.sizeScale,\n marker = _b.marker;\n\n var nodeData = new Array(xData.length);\n sizeScale.range = [marker.size, marker.maxSize];\n var font = label.getFont();\n var actualLength = 0;\n\n for (var i = 0; i < xData.length; i++) {\n var xy = this.checkDomainXY(xData[i], yData[i], isContinuousX, isContinuousY);\n\n if (!xy) {\n continue;\n }\n\n var x = xScale.convert(xy[0]) + xOffset;\n var y = yScale.convert(xy[1]) + yOffset;\n\n if (!this.checkRangeXY(x, y, xAxis, yAxis)) {\n continue;\n }\n\n var text = labelKey ? String(validData[i][labelKey]) : '';\n var size = HdpiCanvas$1.getTextSize(text, font);\n var markerSize = sizeData.length ? sizeScale.convert(sizeData[i]) : marker.size;\n nodeData[actualLength++] = {\n series: this,\n itemId: yKey,\n datum: validData[i],\n point: {\n x: x,\n y: y,\n size: markerSize\n },\n label: __assign$r({\n text: text\n }, size)\n };\n }\n\n nodeData.length = actualLength;\n return [{\n itemId: this.yKey,\n nodeData: nodeData,\n labelData: nodeData\n }];\n };\n\n ScatterSeries.prototype.isPathOrSelectionDirty = function () {\n return this.marker.isDirty();\n };\n\n ScatterSeries.prototype.getLabelData = function () {\n var _a;\n\n return (_a = this.contextNodeData) === null || _a === void 0 ? void 0 : _a.reduce(function (r, n) {\n return r.concat(n.labelData);\n }, []);\n };\n\n ScatterSeries.prototype.updateMarkerSelection = function (opts) {\n var nodeData = opts.nodeData,\n markerSelection = opts.markerSelection;\n var _a = this.marker,\n enabled = _a.enabled,\n shape = _a.shape;\n var MarkerShape = getMarker$1(shape);\n\n if (this.marker.isDirty()) {\n markerSelection = markerSelection.setData([]);\n markerSelection.exit.remove();\n }\n\n var data = enabled ? nodeData : [];\n var updateMarkers = markerSelection.setData(data);\n updateMarkers.exit.remove();\n var enterMarkers = updateMarkers.enter.append(MarkerShape);\n return updateMarkers.merge(enterMarkers);\n };\n\n ScatterSeries.prototype.updateMarkerNodes = function (opts) {\n var markerSelection = opts.markerSelection,\n isDatumHighlighted = opts.isHighlight;\n\n var _a = this,\n marker = _a.marker,\n xKey = _a.xKey,\n yKey = _a.yKey,\n strokeWidth = _a.strokeWidth,\n seriesFillOpacity = _a.fillOpacity,\n seriesStrokeOpacity = _a.strokeOpacity,\n seriesFill = _a.fill,\n seriesStroke = _a.stroke,\n sizeScale = _a.sizeScale,\n _b = _a.marker,\n _c = _b.fillOpacity,\n markerFillOpacity = _c === void 0 ? seriesFillOpacity : _c,\n _d = _b.strokeOpacity,\n markerStrokeOpacity = _d === void 0 ? seriesStrokeOpacity : _d,\n _e = _a.highlightStyle,\n deprecatedFill = _e.fill,\n deprecatedStroke = _e.stroke,\n deprecatedStrokeWidth = _e.strokeWidth,\n _f = _e.item,\n _g = _f.fill,\n highlightedFill = _g === void 0 ? deprecatedFill : _g,\n _h = _f.fillOpacity,\n highlightFillOpacity = _h === void 0 ? markerFillOpacity : _h,\n _j = _f.stroke,\n highlightedStroke = _j === void 0 ? deprecatedStroke : _j,\n _k = _f.strokeWidth,\n highlightedDatumStrokeWidth = _k === void 0 ? deprecatedStrokeWidth : _k;\n\n var markerStrokeWidth = marker.strokeWidth !== undefined ? marker.strokeWidth : strokeWidth;\n var formatter = marker.formatter;\n sizeScale.range = [marker.size, marker.maxSize];\n markerSelection.each(function (node, datum) {\n var _a, _b, _c, _d, _e, _f;\n\n var fill = isDatumHighlighted && highlightedFill !== undefined ? highlightedFill : marker.fill || seriesFill;\n var fillOpacity = isDatumHighlighted ? highlightFillOpacity : markerFillOpacity;\n var stroke = isDatumHighlighted && highlightedStroke !== undefined ? highlightedStroke : marker.stroke || seriesStroke;\n var strokeOpacity = markerStrokeOpacity;\n var strokeWidth = isDatumHighlighted && highlightedDatumStrokeWidth !== undefined ? highlightedDatumStrokeWidth : markerStrokeWidth;\n var size = (_b = (_a = datum.point) === null || _a === void 0 ? void 0 : _a.size, _b !== null && _b !== void 0 ? _b : 0);\n var format = undefined;\n\n if (formatter) {\n format = formatter({\n datum: datum.datum,\n xKey: xKey,\n yKey: yKey,\n fill: fill,\n stroke: stroke,\n strokeWidth: strokeWidth,\n size: size,\n highlighted: isDatumHighlighted\n });\n }\n\n node.fill = format && format.fill || fill;\n node.stroke = format && format.stroke || stroke;\n node.strokeWidth = format && format.strokeWidth !== undefined ? format.strokeWidth : strokeWidth;\n node.size = format && format.size !== undefined ? format.size : size;\n node.fillOpacity = fillOpacity !== null && fillOpacity !== void 0 ? fillOpacity : 1;\n node.strokeOpacity = strokeOpacity !== null && strokeOpacity !== void 0 ? strokeOpacity : 1;\n node.translationX = (_d = (_c = datum.point) === null || _c === void 0 ? void 0 : _c.x, _d !== null && _d !== void 0 ? _d : 0);\n node.translationY = (_f = (_e = datum.point) === null || _e === void 0 ? void 0 : _e.y, _f !== null && _f !== void 0 ? _f : 0);\n node.visible = node.size > 0;\n });\n\n if (!isDatumHighlighted) {\n this.marker.markClean();\n }\n };\n\n ScatterSeries.prototype.updateLabelSelection = function (opts) {\n var _a, _b;\n\n var labelSelection = opts.labelSelection;\n var placedLabels = (_b = (_a = this.chart) === null || _a === void 0 ? void 0 : _a.placeLabels().get(this), _b !== null && _b !== void 0 ? _b : []);\n var placedNodeDatum = placedLabels.map(function (v) {\n return __assign$r(__assign$r({}, v.datum), {\n point: {\n x: v.x,\n y: v.y,\n size: v.datum.point.size\n }\n });\n });\n var updateLabels = labelSelection.setData(placedNodeDatum);\n updateLabels.exit.remove();\n var enterLabels = updateLabels.enter.append(Text$1);\n return updateLabels.merge(enterLabels);\n };\n\n ScatterSeries.prototype.updateLabelNodes = function (opts) {\n var labelSelection = opts.labelSelection;\n var label = this.label;\n labelSelection.each(function (text, datum) {\n var _a, _b, _c, _d;\n\n text.text = datum.label.text;\n text.fill = label.color;\n text.x = (_b = (_a = datum.point) === null || _a === void 0 ? void 0 : _a.x, _b !== null && _b !== void 0 ? _b : 0);\n text.y = (_d = (_c = datum.point) === null || _c === void 0 ? void 0 : _c.y, _d !== null && _d !== void 0 ? _d : 0);\n text.fontStyle = label.fontStyle;\n text.fontWeight = label.fontWeight;\n text.fontSize = label.fontSize;\n text.fontFamily = label.fontFamily;\n text.textAlign = 'left';\n text.textBaseline = 'top';\n });\n };\n\n ScatterSeries.prototype.getTooltipHtml = function (nodeDatum) {\n var _a, _b, _c, _d;\n\n var _e = this,\n xKey = _e.xKey,\n yKey = _e.yKey,\n xAxis = _e.xAxis,\n yAxis = _e.yAxis;\n\n if (!xKey || !yKey || !xAxis || !yAxis) {\n return '';\n }\n\n var _f = this,\n seriesFill = _f.fill,\n seriesStroke = _f.stroke,\n marker = _f.marker,\n tooltip = _f.tooltip,\n xName = _f.xName,\n yName = _f.yName,\n sizeKey = _f.sizeKey,\n sizeName = _f.sizeName,\n labelKey = _f.labelKey,\n labelName = _f.labelName;\n\n var fill = (_a = marker.fill, _a !== null && _a !== void 0 ? _a : seriesFill);\n var stroke = (_b = marker.stroke, _b !== null && _b !== void 0 ? _b : seriesStroke);\n var strokeWidth = this.getStrokeWidth(marker.strokeWidth || this.strokeWidth);\n var formatter = this.marker.formatter;\n var format = undefined;\n\n if (formatter) {\n format = formatter({\n datum: nodeDatum,\n xKey: xKey,\n yKey: yKey,\n fill: fill,\n stroke: stroke,\n strokeWidth: strokeWidth,\n size: (_d = (_c = nodeDatum.point) === null || _c === void 0 ? void 0 : _c.size, _d !== null && _d !== void 0 ? _d : 0),\n highlighted: false\n });\n }\n\n var color = format && format.fill || fill || 'gray';\n var title = this.title || yName;\n var datum = nodeDatum.datum;\n var xValue = datum[xKey];\n var yValue = datum[yKey];\n var xString = sanitizeHtml(xAxis.formatDatum(xValue));\n var yString = sanitizeHtml(yAxis.formatDatum(yValue));\n var content = \"\" + sanitizeHtml(xName || xKey) + \": \" + xString + \"
\" + (\"\" + sanitizeHtml(yName || yKey) + \": \" + yString);\n\n if (sizeKey) {\n content += \"
\" + sanitizeHtml(sizeName || sizeKey) + \": \" + sanitizeHtml(datum[sizeKey]);\n }\n\n if (labelKey) {\n content = \"\" + sanitizeHtml(labelName || labelKey) + \": \" + sanitizeHtml(datum[labelKey]) + \"
\" + content;\n }\n\n var defaults = {\n title: title,\n backgroundColor: color,\n content: content\n };\n var tooltipRenderer = tooltip.renderer;\n\n if (tooltipRenderer) {\n return toTooltipHtml$1(tooltipRenderer({\n datum: datum,\n xKey: xKey,\n xValue: xValue,\n xName: xName,\n yKey: yKey,\n yValue: yValue,\n yName: yName,\n sizeKey: sizeKey,\n sizeName: sizeName,\n labelKey: labelKey,\n labelName: labelName,\n title: title,\n color: color\n }), defaults);\n }\n\n return toTooltipHtml$1(defaults);\n };\n\n ScatterSeries.prototype.listSeriesItems = function (legendData) {\n var _a = this,\n id = _a.id,\n data = _a.data,\n xKey = _a.xKey,\n yKey = _a.yKey,\n yName = _a.yName,\n title = _a.title,\n visible = _a.visible,\n marker = _a.marker,\n fill = _a.fill,\n stroke = _a.stroke,\n fillOpacity = _a.fillOpacity,\n strokeOpacity = _a.strokeOpacity;\n\n if (data && data.length && xKey && yKey) {\n legendData.push({\n id: id,\n itemId: yKey,\n enabled: visible,\n label: {\n text: title || yName || yKey\n },\n marker: {\n shape: marker.shape,\n fill: marker.fill || fill || 'rgba(0, 0, 0, 0)',\n stroke: marker.stroke || stroke || 'rgba(0, 0, 0, 0)',\n fillOpacity: marker.fillOpacity !== undefined ? marker.fillOpacity : fillOpacity,\n strokeOpacity: marker.strokeOpacity !== undefined ? marker.strokeOpacity : strokeOpacity\n }\n });\n }\n };\n\n ScatterSeries.className = 'ScatterSeries';\n ScatterSeries.type = 'scatter';\n\n __decorate$17([Deprecated('Use marker.fill instead.', {\n default: '#c16068'\n })], ScatterSeries.prototype, \"fill\", void 0);\n\n __decorate$17([Deprecated('Use marker.stroke instead.', {\n default: '#874349'\n })], ScatterSeries.prototype, \"stroke\", void 0);\n\n __decorate$17([Deprecated('Use marker.strokeWidth instead.', {\n default: 2\n })], ScatterSeries.prototype, \"strokeWidth\", void 0);\n\n __decorate$17([Deprecated('Use marker.fillOpacity instead.', {\n default: 1\n })], ScatterSeries.prototype, \"fillOpacity\", void 0);\n\n __decorate$17([Deprecated('Use marker.strokeOpacity instead.', {\n default: 1\n })], ScatterSeries.prototype, \"strokeOpacity\", void 0);\n\n return ScatterSeries;\n}(CartesianSeries);\n\nvar __extends$23 = undefined && undefined.__extends || function () {\n var _extendStatics89 = function extendStatics(d, b) {\n _extendStatics89 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics89(d, b);\n };\n\n return function (d, b) {\n _extendStatics89(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __read$p = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$b = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$p(arguments[i]));\n }\n\n return ar;\n};\n\nvar HistogramSeriesNodeTag;\n\n(function (HistogramSeriesNodeTag) {\n HistogramSeriesNodeTag[HistogramSeriesNodeTag[\"Bin\"] = 0] = \"Bin\";\n HistogramSeriesNodeTag[HistogramSeriesNodeTag[\"Label\"] = 1] = \"Label\";\n})(HistogramSeriesNodeTag || (HistogramSeriesNodeTag = {}));\n\nvar HistogramSeriesLabel =\n/** @class */\nfunction (_super) {\n __extends$23(HistogramSeriesLabel, _super);\n\n function HistogramSeriesLabel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.formatter = undefined;\n return _this;\n }\n\n return HistogramSeriesLabel;\n}(Label$1);\n\nvar defaultBinCount = 10;\nvar aggregationFunctions = {\n count: function count(bin) {\n return bin.data.length;\n },\n sum: function sum(bin, yKey) {\n return bin.data.reduce(function (acc, datum) {\n return acc + datum[yKey];\n }, 0);\n },\n mean: function mean(bin, yKey) {\n return aggregationFunctions.sum(bin, yKey) / aggregationFunctions.count(bin, yKey);\n }\n};\n\nvar HistogramBin =\n/** @class */\nfunction () {\n function HistogramBin(_a) {\n var _b = __read$p(_a, 2),\n domainMin = _b[0],\n domainMax = _b[1];\n\n this.data = [];\n this.aggregatedValue = 0;\n this.frequency = 0;\n this.domain = [domainMin, domainMax];\n }\n\n HistogramBin.prototype.addDatum = function (datum) {\n this.data.push(datum);\n this.frequency++;\n };\n\n Object.defineProperty(HistogramBin.prototype, \"domainWidth\", {\n get: function get() {\n var _a = __read$p(this.domain, 2),\n domainMin = _a[0],\n domainMax = _a[1];\n\n return domainMax - domainMin;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(HistogramBin.prototype, \"relativeHeight\", {\n get: function get() {\n return this.aggregatedValue / this.domainWidth;\n },\n enumerable: true,\n configurable: true\n });\n\n HistogramBin.prototype.calculateAggregatedValue = function (aggregationName, yKey) {\n if (!yKey) {\n // not having a yKey forces us into a frequency plot\n aggregationName = 'count';\n }\n\n var aggregationFunction = aggregationFunctions[aggregationName];\n this.aggregatedValue = aggregationFunction(this, yKey);\n };\n\n HistogramBin.prototype.getY = function (areaPlot) {\n return areaPlot ? this.relativeHeight : this.aggregatedValue;\n };\n\n return HistogramBin;\n}();\n\nvar HistogramSeriesTooltip =\n/** @class */\nfunction (_super) {\n __extends$23(HistogramSeriesTooltip, _super);\n\n function HistogramSeriesTooltip() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.renderer = undefined;\n return _this;\n }\n\n return HistogramSeriesTooltip;\n}(SeriesTooltip);\n\nvar HistogramSeries =\n/** @class */\nfunction (_super) {\n __extends$23(HistogramSeries, _super);\n\n function HistogramSeries() {\n var _a;\n\n var _this = _super.call(this, {\n pickModes: [SeriesNodePickMode.EXACT_SHAPE_MATCH]\n }) || this;\n\n _this.binnedData = [];\n _this.xDomain = [];\n _this.yDomain = [];\n _this.label = new HistogramSeriesLabel();\n _this.tooltip = new HistogramSeriesTooltip();\n _this.fill = undefined;\n _this.stroke = undefined;\n _this.fillOpacity = 1;\n _this.strokeOpacity = 1;\n _this.lineDash = [0];\n _this.lineDashOffset = 0;\n _this.directionKeys = (_a = {}, _a[ChartAxisDirection.X] = ['xKey'], _a[ChartAxisDirection.Y] = ['yKey'], _a);\n _this.xKey = '';\n _this.areaPlot = false;\n _this.bins = undefined;\n _this.aggregation = 'count';\n _this.binCount = undefined;\n _this.xName = '';\n _this.yKey = '';\n _this.yName = '';\n _this.strokeWidth = 1;\n _this.shadow = undefined;\n _this.label.enabled = false;\n return _this;\n }\n\n HistogramSeries.prototype.getKeys = function (direction) {\n var _this = this;\n\n var directionKeys = this.directionKeys;\n var keys = directionKeys && directionKeys[direction];\n var values = [];\n\n if (keys) {\n keys.forEach(function (key) {\n var value = _this[key];\n\n if (value) {\n if (Array.isArray(value)) {\n values.push.apply(values, __spread$b(value));\n } else {\n values.push(value);\n }\n }\n });\n }\n\n return values;\n };\n\n HistogramSeries.prototype.setColors = function (fills, strokes) {\n this.fill = fills[0];\n this.stroke = strokes[0];\n }; // During processData phase, used to unify different ways of the user specifying\n // the bins. Returns bins in format[[min1, max1], [min2, max2], ... ].\n\n\n HistogramSeries.prototype.deriveBins = function () {\n var _this = this;\n\n var bins = this.bins;\n\n if (!this.data) {\n return [];\n }\n\n if (bins) {\n return bins;\n }\n\n var xData = this.data.map(function (datum) {\n return datum[_this.xKey];\n });\n var xDomain = this.fixNumericExtent(extent$1(xData, isContinuous$1));\n\n if (this.binCount === undefined) {\n var binStarts = ticks$1(xDomain[0], xDomain[1], this.binCount || defaultBinCount);\n var binSize_1 = tickStep$1(xDomain[0], xDomain[1], this.binCount || defaultBinCount);\n var firstBinEnd = binStarts[0];\n\n var expandStartToBin = function expandStartToBin(n) {\n return [n, n + binSize_1];\n };\n\n return __spread$b([[firstBinEnd - binSize_1, firstBinEnd]], binStarts.map(expandStartToBin));\n } else {\n return this.calculateNiceBins(xDomain, this.binCount);\n }\n };\n\n HistogramSeries.prototype.calculateNiceBins = function (domain, binCount) {\n var _a;\n\n var start = Math.floor(domain[0]);\n var stop = domain[1];\n var binSize;\n var segments = binCount || 1;\n _a = this.calculateNiceStart(start, stop, segments), start = _a.start, binSize = _a.binSize;\n return this.getBins(start, stop, binSize, segments);\n };\n\n HistogramSeries.prototype.getBins = function (start, stop, step, count) {\n var bins = [];\n\n for (var i = 0; i < count; i++) {\n var a = Math.round((start + i * step) * 10) / 10;\n var b = Math.round((start + (i + 1) * step) * 10) / 10;\n\n if (i === count - 1) {\n b = Math.max(b, stop);\n }\n\n bins[i] = [a, b];\n }\n\n return bins;\n };\n\n HistogramSeries.prototype.calculateNiceStart = function (a, b, segments) {\n var binSize = Math.abs(b - a) / segments;\n var order = Math.floor(Math.log10(binSize));\n var magnitude = Math.pow(10, order);\n var start = Math.floor(a / magnitude) * magnitude;\n return {\n start: start,\n binSize: binSize\n };\n };\n\n HistogramSeries.prototype.placeDataInBins = function (data) {\n var _this = this;\n\n var xKey = this.xKey;\n var derivedBins = this.deriveBins(); // creating a sorted copy allows binning in O(n) rather than O(n²)\n // but at the expense of more temporary memory\n\n var sortedData = data.slice().sort(function (a, b) {\n if (a[xKey] < b[xKey]) {\n return -1;\n }\n\n if (a[xKey] > b[xKey]) {\n return 1;\n }\n\n return 0;\n });\n var bins = [new HistogramBin(derivedBins[0])];\n var currentBin = 0;\n\n for (var i = 0; i < sortedData.length && currentBin < derivedBins.length; i++) {\n var datum = sortedData[i];\n\n while (datum[xKey] > derivedBins[currentBin][1] && currentBin < derivedBins.length) {\n currentBin++;\n bins.push(new HistogramBin(derivedBins[currentBin]));\n }\n\n if (currentBin < derivedBins.length) {\n bins[currentBin].addDatum(datum);\n }\n }\n\n bins.forEach(function (b) {\n return b.calculateAggregatedValue(_this.aggregation, _this.yKey);\n });\n return bins;\n };\n\n Object.defineProperty(HistogramSeries.prototype, \"xMax\", {\n get: function get() {\n var _this = this;\n\n return this.data && this.data.reduce(function (acc, datum) {\n return Math.max(acc, datum[_this.xKey]);\n }, Number.NEGATIVE_INFINITY);\n },\n enumerable: true,\n configurable: true\n });\n\n HistogramSeries.prototype.processData = function () {\n var _this = this;\n\n var _a = this,\n xKey = _a.xKey,\n data = _a.data;\n\n this.binnedData = this.placeDataInBins(xKey && data ? data : []);\n var yData = this.binnedData.map(function (b) {\n return b.getY(_this.areaPlot);\n });\n var yMinMax = extent$1(yData, isContinuous$1);\n this.yDomain = this.fixNumericExtent([0, yMinMax ? yMinMax[1] : 1]);\n var firstBin = this.binnedData[0];\n var lastBin = this.binnedData[this.binnedData.length - 1];\n var xMin = firstBin.domain[0];\n var xMax = lastBin.domain[1];\n this.xDomain = [xMin, xMax];\n return true;\n };\n\n HistogramSeries.prototype.getDomain = function (direction) {\n if (direction === ChartAxisDirection.X) {\n return this.xDomain;\n } else {\n return this.yDomain;\n }\n };\n\n HistogramSeries.prototype.fireNodeClickEvent = function (event, datum) {\n this.fireEvent({\n type: 'nodeClick',\n event: event,\n series: this,\n datum: datum.datum,\n xKey: this.xKey\n });\n };\n\n HistogramSeries.prototype.createNodeData = function () {\n var _this = this;\n\n var _a = this,\n xAxis = _a.xAxis,\n yAxis = _a.yAxis;\n\n if (!this.seriesItemEnabled || !xAxis || !yAxis) {\n return [];\n }\n\n var xScale = xAxis.scale;\n var yScale = yAxis.scale;\n\n var _b = this,\n fill = _b.fill,\n stroke = _b.stroke,\n strokeWidth = _b.strokeWidth;\n\n var nodeData = [];\n\n var defaultLabelFormatter = function defaultLabelFormatter(params) {\n return String(params.value);\n };\n\n var _c = this.label,\n _d = _c.formatter,\n labelFormatter = _d === void 0 ? defaultLabelFormatter : _d,\n labelFontStyle = _c.fontStyle,\n labelFontWeight = _c.fontWeight,\n labelFontSize = _c.fontSize,\n labelFontFamily = _c.fontFamily,\n labelColor = _c.color;\n this.binnedData.forEach(function (binOfData) {\n var total = binOfData.aggregatedValue,\n frequency = binOfData.frequency,\n _a = __read$p(binOfData.domain, 2),\n xDomainMin = _a[0],\n xDomainMax = _a[1],\n relativeHeight = binOfData.relativeHeight;\n\n var xMinPx = xScale.convert(xDomainMin),\n xMaxPx = xScale.convert(xDomainMax),\n // note: assuming can't be negative:\n y = _this.areaPlot ? relativeHeight : _this.yKey ? total : frequency,\n yZeroPx = yScale.convert(0),\n yMaxPx = yScale.convert(y),\n w = xMaxPx - xMinPx,\n h = Math.abs(yMaxPx - yZeroPx);\n var selectionDatumLabel = y !== 0 ? {\n text: labelFormatter({\n value: binOfData.aggregatedValue\n }),\n fontStyle: labelFontStyle,\n fontWeight: labelFontWeight,\n fontSize: labelFontSize,\n fontFamily: labelFontFamily,\n fill: labelColor,\n x: xMinPx + w / 2,\n y: yMaxPx + h / 2\n } : undefined;\n nodeData.push({\n series: _this,\n datum: binOfData,\n // since each selection is an aggregation of multiple data.\n x: xMinPx,\n y: yMaxPx,\n width: w,\n height: h,\n fill: fill,\n stroke: stroke,\n strokeWidth: strokeWidth,\n label: selectionDatumLabel\n });\n });\n return [{\n itemId: this.yKey,\n nodeData: nodeData,\n labelData: nodeData\n }];\n };\n\n HistogramSeries.prototype.updateDatumSelection = function (opts) {\n var nodeData = opts.nodeData,\n datumSelection = opts.datumSelection;\n var updateRects = datumSelection.setData(nodeData);\n updateRects.exit.remove();\n var enterRects = updateRects.enter.append(Rect).each(function (rect) {\n rect.tag = HistogramSeriesNodeTag.Bin;\n rect.crisp = true;\n });\n return updateRects.merge(enterRects);\n };\n\n HistogramSeries.prototype.updateDatumNodes = function (opts) {\n var _this = this;\n\n var datumSelection = opts.datumSelection,\n isDatumHighlighted = opts.isHighlight;\n\n var _a = this,\n seriesFillOpacity = _a.fillOpacity,\n strokeOpacity = _a.strokeOpacity,\n shadow = _a.shadow,\n _b = _a.highlightStyle,\n deprecatedFill = _b.fill,\n deprecatedStroke = _b.stroke,\n deprecatedStrokeWidth = _b.strokeWidth,\n _c = _b.item,\n _d = _c.fill,\n highlightedFill = _d === void 0 ? deprecatedFill : _d,\n _e = _c.fillOpacity,\n highlightFillOpacity = _e === void 0 ? seriesFillOpacity : _e,\n _f = _c.stroke,\n highlightedStroke = _f === void 0 ? deprecatedStroke : _f,\n _g = _c.strokeWidth,\n highlightedDatumStrokeWidth = _g === void 0 ? deprecatedStrokeWidth : _g;\n\n datumSelection.each(function (rect, datum, index) {\n var strokeWidth = isDatumHighlighted && highlightedDatumStrokeWidth !== undefined ? highlightedDatumStrokeWidth : datum.strokeWidth;\n var fillOpacity = isDatumHighlighted ? highlightFillOpacity : seriesFillOpacity;\n rect.x = datum.x;\n rect.y = datum.y;\n rect.width = datum.width;\n rect.height = datum.height;\n rect.fill = isDatumHighlighted && highlightedFill !== undefined ? highlightedFill : datum.fill;\n rect.stroke = isDatumHighlighted && highlightedStroke !== undefined ? highlightedStroke : datum.stroke;\n rect.fillOpacity = fillOpacity;\n rect.strokeOpacity = strokeOpacity;\n rect.strokeWidth = strokeWidth;\n rect.lineDash = _this.lineDash;\n rect.lineDashOffset = _this.lineDashOffset;\n rect.fillShadow = shadow;\n rect.zIndex = isDatumHighlighted ? Series.highlightedZIndex : index;\n rect.visible = datum.height > 0; // prevent stroke from rendering for zero height columns\n });\n };\n\n HistogramSeries.prototype.updateLabelSelection = function (opts) {\n var labelData = opts.labelData,\n labelSelection = opts.labelSelection;\n var updateTexts = labelSelection.setData(labelData);\n updateTexts.exit.remove();\n var enterTexts = updateTexts.enter.append(Text$1).each(function (text) {\n text.tag = HistogramSeriesNodeTag.Label;\n text.pointerEvents = PointerEvents$1.None;\n text.textAlign = 'center';\n text.textBaseline = 'middle';\n });\n return updateTexts.merge(enterTexts);\n };\n\n HistogramSeries.prototype.updateLabelNodes = function (opts) {\n var labelSelection = opts.labelSelection;\n var labelEnabled = this.label.enabled;\n labelSelection.each(function (text, datum) {\n var label = datum.label;\n\n if (label && labelEnabled) {\n text.text = label.text;\n text.x = label.x;\n text.y = label.y;\n text.fontStyle = label.fontStyle;\n text.fontWeight = label.fontWeight;\n text.fontSize = label.fontSize;\n text.fontFamily = label.fontFamily;\n text.fill = label.fill;\n text.visible = true;\n } else {\n text.visible = false;\n }\n });\n };\n\n HistogramSeries.prototype.getTooltipHtml = function (nodeDatum) {\n var _a = this,\n xKey = _a.xKey,\n yKey = _a.yKey,\n xAxis = _a.xAxis,\n yAxis = _a.yAxis;\n\n if (!xKey || !xAxis || !yAxis) {\n return '';\n }\n\n var _b = this,\n xName = _b.xName,\n yName = _b.yName,\n color = _b.fill,\n tooltip = _b.tooltip,\n aggregation = _b.aggregation;\n\n var tooltipRenderer = tooltip.renderer;\n var bin = nodeDatum.datum;\n\n var aggregatedValue = bin.aggregatedValue,\n frequency = bin.frequency,\n _c = __read$p(bin.domain, 2),\n rangeMin = _c[0],\n rangeMax = _c[1];\n\n var title = sanitizeHtml(xName || xKey) + \": \" + xAxis.formatDatum(rangeMin) + \" - \" + xAxis.formatDatum(rangeMax);\n var content = yKey ? \"\" + sanitizeHtml(yName || yKey) + \" (\" + aggregation + \"): \" + yAxis.formatDatum(aggregatedValue) + \"
\" : '';\n content += \"Frequency: \" + frequency;\n var defaults = {\n title: title,\n backgroundColor: color,\n content: content\n };\n\n if (tooltipRenderer) {\n return toTooltipHtml$1(tooltipRenderer({\n datum: bin,\n xKey: xKey,\n xValue: bin.domain,\n xName: xName,\n yKey: yKey,\n yValue: bin.aggregatedValue,\n yName: yName,\n color: color,\n title: title\n }), defaults);\n }\n\n return toTooltipHtml$1(defaults);\n };\n\n HistogramSeries.prototype.listSeriesItems = function (legendData) {\n var _a = this,\n id = _a.id,\n data = _a.data,\n xKey = _a.xKey,\n yName = _a.yName,\n visible = _a.visible,\n fill = _a.fill,\n stroke = _a.stroke,\n fillOpacity = _a.fillOpacity,\n strokeOpacity = _a.strokeOpacity;\n\n if (data && data.length) {\n legendData.push({\n id: id,\n itemId: xKey,\n enabled: visible,\n label: {\n text: yName || xKey || 'Frequency'\n },\n marker: {\n fill: fill || 'rgba(0, 0, 0, 0)',\n stroke: stroke || 'rgba(0, 0, 0, 0)',\n fillOpacity: fillOpacity,\n strokeOpacity: strokeOpacity\n }\n });\n }\n };\n\n HistogramSeries.className = 'HistogramSeries';\n HistogramSeries.type = 'histogram';\n return HistogramSeries;\n}(CartesianSeries);\n\nvar __extends$22 = undefined && undefined.__extends || function () {\n var _extendStatics90 = function extendStatics(d, b) {\n _extendStatics90 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics90(d, b);\n };\n\n return function (d, b) {\n _extendStatics90(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar HierarchySeries =\n/** @class */\nfunction (_super) {\n __extends$22(HierarchySeries, _super);\n\n function HierarchySeries() {\n return _super.call(this, {\n pickModes: [SeriesNodePickMode.EXACT_SHAPE_MATCH]\n }) || this;\n }\n\n HierarchySeries.prototype.getLabelData = function () {\n return [];\n };\n\n return HierarchySeries;\n}(Series);\n\nvar __extends$21 = undefined && undefined.__extends || function () {\n var _extendStatics91 = function extendStatics(d, b) {\n _extendStatics91 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics91(d, b);\n };\n\n return function (d, b) {\n _extendStatics91(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar DropShadow =\n/** @class */\nfunction (_super) {\n __extends$21(DropShadow, _super);\n\n function DropShadow() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.enabled = true;\n _this.color = 'rgba(0, 0, 0, 0.5)';\n _this.xOffset = 0;\n _this.yOffset = 0;\n _this.blur = 5;\n return _this;\n }\n\n __decorate$16([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], DropShadow.prototype, \"enabled\", void 0);\n\n __decorate$16([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], DropShadow.prototype, \"color\", void 0);\n\n __decorate$16([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], DropShadow.prototype, \"xOffset\", void 0);\n\n __decorate$16([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], DropShadow.prototype, \"yOffset\", void 0);\n\n __decorate$16([SceneChangeDetection({\n redraw: RedrawType.MAJOR\n })], DropShadow.prototype, \"blur\", void 0);\n\n return DropShadow;\n}(ChangeDetectable);\n\nfunction slice(parent, x0, y0, x1, y1) {\n var nodes = parent.children;\n var k = parent.value && (y1 - y0) / parent.value;\n nodes.forEach(function (node) {\n node.x0 = x0;\n node.x1 = x1;\n node.y0 = y0;\n node.y1 = y0 += node.value * k;\n });\n}\n\nfunction dice(parent, x0, y0, x1, y1) {\n var nodes = parent.children;\n var k = parent.value && (x1 - x0) / parent.value;\n nodes.forEach(function (node) {\n node.x0 = x0;\n node.x1 = x0 += node.value * k;\n node.y0 = y0;\n node.y1 = y1;\n });\n}\n\nfunction roundNode(node) {\n node.x0 = Math.round(node.x0);\n node.y0 = Math.round(node.y0);\n node.x1 = Math.round(node.x1);\n node.y1 = Math.round(node.y1);\n}\n\nfunction squarifyRatio(ratio, parent, x0, y0, x1, y1) {\n var rows = [];\n var nodes = parent.children;\n var n = nodes.length;\n var value = parent.value;\n var i0 = 0;\n var i1 = 0;\n var dx;\n var dy;\n var nodeValue;\n var sumValue;\n var minValue;\n var maxValue;\n var newRatio;\n var minRatio;\n var alpha;\n var beta;\n\n while (i0 < n) {\n dx = x1 - x0;\n dy = y1 - y0; // Find the next non-empty node.\n\n do {\n sumValue = nodes[i1++].value;\n } while (!sumValue && i1 < n);\n\n minValue = maxValue = sumValue;\n alpha = Math.max(dy / dx, dx / dy) / (value * ratio);\n beta = sumValue * sumValue * alpha;\n minRatio = Math.max(maxValue / beta, beta / minValue); // Keep adding nodes while the aspect ratio maintains or improves.\n\n for (; i1 < n; ++i1) {\n nodeValue = nodes[i1].value;\n sumValue += nodeValue;\n\n if (nodeValue < minValue) {\n minValue = nodeValue;\n }\n\n if (nodeValue > maxValue) {\n maxValue = nodeValue;\n }\n\n beta = sumValue * sumValue * alpha;\n newRatio = Math.max(maxValue / beta, beta / minValue);\n\n if (newRatio > minRatio) {\n sumValue -= nodeValue;\n break;\n }\n\n minRatio = newRatio;\n } // Position and record the row orientation.\n\n\n var row = {\n value: sumValue,\n dice: dx < dy,\n children: nodes.slice(i0, i1)\n };\n rows.push(row);\n\n if (row.dice) {\n var oldy0 = y0;\n var newy1 = y1;\n\n if (value) {\n y0 += dy * sumValue / value;\n newy1 = y0;\n }\n\n dice(row, x0, oldy0, x1, newy1);\n } else {\n var oldx0 = x0;\n var newx1 = x1;\n\n if (value) {\n x0 += dx * sumValue / value;\n newx1 = x0;\n }\n\n slice(row, oldx0, y0, newx1, y1);\n }\n\n value -= sumValue;\n i0 = i1;\n }\n\n return rows;\n}\n\nvar phi = (1 + Math.sqrt(5)) / 2;\n\nvar squarify = function custom(ratio) {\n function squarify(parent, x0, y0, x1, y1) {\n squarifyRatio(ratio, parent, x0, y0, x1, y1);\n }\n\n squarify.ratio = function (x) {\n return custom((x = +x) > 1 ? x : 1);\n };\n\n return squarify;\n}(phi);\n\nvar Treemap =\n/** @class */\nfunction () {\n function Treemap() {\n this.paddingStack = [0];\n this.dx = 1;\n this.dy = 1;\n this.round = true;\n this.tile = squarify;\n\n this.paddingInner = function (_) {\n return 0;\n };\n\n this.paddingTop = function (_) {\n return 0;\n };\n\n this.paddingRight = function (_) {\n return 0;\n };\n\n this.paddingBottom = function (_) {\n return 0;\n };\n\n this.paddingLeft = function (_) {\n return 0;\n };\n }\n\n Object.defineProperty(Treemap.prototype, \"size\", {\n get: function get() {\n return [this.dx, this.dy];\n },\n set: function set(size) {\n this.dx = size[0];\n this.dy = size[1];\n },\n enumerable: true,\n configurable: true\n });\n\n Treemap.prototype.processData = function (root) {\n root.x0 = 0;\n root.y0 = 0;\n root.x1 = this.dx;\n root.y1 = this.dy;\n root.eachBefore(this.positionNode.bind(this));\n this.paddingStack = [0];\n\n if (this.round) {\n root.eachBefore(roundNode);\n }\n\n return root;\n };\n\n Treemap.prototype.positionNode = function (node) {\n var p = this.paddingStack[node.depth];\n var x0 = node.x0 + p;\n var y0 = node.y0 + p;\n var x1 = node.x1 - p;\n var y1 = node.y1 - p;\n\n if (x1 < x0) {\n x0 = x1 = (x0 + x1) / 2;\n }\n\n if (y1 < y0) {\n y0 = y1 = (y0 + y1) / 2;\n }\n\n node.x0 = x0;\n node.y0 = y0;\n node.x1 = x1;\n node.y1 = y1;\n\n if (node.children) {\n p = this.paddingStack[node.depth + 1] = this.paddingInner(node) / 2;\n x0 += this.paddingLeft(node) - p;\n y0 += this.paddingTop(node) - p;\n x1 -= this.paddingRight(node) - p;\n y1 -= this.paddingBottom(node) - p;\n\n if (x1 < x0) {\n x0 = x1 = (x0 + x1) / 2;\n }\n\n if (y1 < y0) {\n y0 = y1 = (y0 + y1) / 2;\n }\n\n this.tile(node, x0, y0, x1, y1);\n }\n };\n\n return Treemap;\n}();\n\nvar __values$a = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar __read$o = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$a = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$o(arguments[i]));\n }\n\n return ar;\n};\n\nvar HierarchyNode =\n/** @class */\nfunction () {\n function HierarchyNode(datum) {\n this.value = 0;\n this.depth = 0;\n this.height = 0;\n this.parent = undefined;\n this.children = undefined;\n this.datum = datum;\n }\n\n HierarchyNode.prototype.countFn = function (node) {\n var sum = 0,\n children = node.children;\n\n if (!children || !children.length) {\n sum = 1;\n } else {\n var i = children.length;\n\n while (--i >= 0) {\n sum += children[i].value;\n }\n }\n\n node.value = sum;\n };\n\n HierarchyNode.prototype.count = function () {\n return this.eachAfter(this.countFn);\n };\n\n HierarchyNode.prototype.each = function (callback, scope) {\n var _this = this;\n\n var index = -1;\n this.iterator(function (node) {\n callback.call(scope, node, ++index, _this);\n });\n return this;\n };\n /**\n * Invokes the given callback for each node in post-order traversal.\n * @param callback\n * @param scope\n */\n\n\n HierarchyNode.prototype.eachAfter = function (callback, scope) {\n var node = this;\n var nodes = [node];\n var next = [];\n\n while (node = nodes.pop()) {\n next.push(node);\n var children = node.children;\n\n if (children) {\n for (var i = 0, n = children.length; i < n; ++i) {\n nodes.push(children[i]);\n }\n }\n }\n\n var index = -1;\n\n while (node = next.pop()) {\n callback.call(scope, node, ++index, this);\n }\n\n return this;\n };\n /**\n * Invokes the given callback for each node in pre-order traversal.\n * @param callback\n * @param scope\n */\n\n\n HierarchyNode.prototype.eachBefore = function (callback, scope) {\n var node = this;\n var nodes = [node];\n var index = -1;\n\n while (node = nodes.pop()) {\n callback.call(scope, node, ++index, this);\n var children = node.children;\n\n if (children) {\n for (var i = children.length - 1; i >= 0; --i) {\n var child = children[i];\n nodes.push(child);\n }\n }\n }\n\n return this;\n };\n\n HierarchyNode.prototype.find = function (callback, scope) {\n var _this = this;\n\n var index = -1;\n var result;\n this.iterator(function (node) {\n if (callback.call(scope, node, ++index, _this)) {\n result = node;\n return false;\n }\n });\n return result;\n };\n\n HierarchyNode.prototype.sum = function (value) {\n return this.eachAfter(function (node) {\n var sum = +value(node.datum) || 0;\n var children = node.children;\n\n if (children) {\n var i = children.length;\n\n while (--i >= 0) {\n sum += children[i].value;\n }\n }\n\n node.value = sum;\n });\n };\n\n HierarchyNode.prototype.sort = function (compare) {\n return this.eachBefore(function (node) {\n if (node.children) {\n node.children.sort(compare);\n }\n });\n };\n\n HierarchyNode.prototype.path = function (end) {\n var start = this;\n var ancestor = leastCommonAncestor(start, end);\n var nodes = [start];\n\n while (start !== ancestor) {\n start = start.parent;\n nodes.push(start);\n }\n\n var k = nodes.length;\n\n while (end !== ancestor) {\n nodes.splice(k, 0, end);\n end = end.parent;\n }\n\n return nodes;\n };\n\n HierarchyNode.prototype.ancestors = function () {\n var node = this;\n var nodes = [node];\n\n while (node = node.parent) {\n nodes.push(node);\n }\n\n return nodes;\n };\n\n HierarchyNode.prototype.descendants = function () {\n var nodes = [];\n this.iterator(function (node) {\n return nodes.push(node);\n });\n return nodes;\n };\n\n HierarchyNode.prototype.leaves = function () {\n var leaves = [];\n this.eachBefore(function (node) {\n if (!node.children) {\n leaves.push(node);\n }\n });\n return leaves;\n };\n\n HierarchyNode.prototype.links = function () {\n var root = this;\n var links = [];\n root.each(function (node) {\n if (node !== root) {\n // Don’t include the root’s parent, if any.\n links.push({\n source: node.parent,\n target: node\n });\n }\n });\n return links;\n };\n\n HierarchyNode.prototype.iterator = function (callback) {\n var e_1, _a;\n\n var _b = this.children,\n children = _b === void 0 ? [] : _b;\n\n if (callback(this) === false) {\n return false;\n }\n\n try {\n for (var children_1 = __values$a(children), children_1_1 = children_1.next(); !children_1_1.done; children_1_1 = children_1.next()) {\n var child = children_1_1.value;\n\n if (child.iterator(callback) === false) {\n return false;\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (children_1_1 && !children_1_1.done && (_a = children_1.return)) _a.call(children_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n return true;\n };\n\n return HierarchyNode;\n}();\n\nfunction hierarchy(data, children) {\n if (data instanceof Map) {\n data = [undefined, data];\n\n if (children === undefined) {\n children = mapChildren;\n }\n } else if (children === undefined) {\n children = objectChildren;\n }\n\n var root = new HierarchyNode(data);\n var nodes = [root];\n\n var _loop_1 = function _loop_1() {\n var node = nodes.pop();\n var datumChildren = children(node.datum);\n\n if (!datumChildren) {\n return \"continue\";\n }\n\n var newNodes = Array.from(datumChildren).map(function (dc) {\n return new HierarchyNode(dc);\n });\n newNodes.forEach(function (child) {\n child.parent = node;\n child.depth = node.depth + 1;\n });\n node.children = newNodes;\n nodes.push.apply(nodes, __spread$a(newNodes));\n };\n\n while (nodes.length > 0) {\n _loop_1();\n }\n\n return root.eachBefore(computeHeight);\n}\n\nfunction computeHeight(node) {\n var height = 0;\n\n do {\n node.height = height;\n node = node.parent;\n } while (node && node.height < ++height);\n}\n\nfunction mapChildren(d) {\n return Array.isArray(d) ? d[1] : undefined;\n}\n\nfunction objectChildren(d) {\n return d.children;\n}\n\nfunction leastCommonAncestor(a, b) {\n if (!(a && b)) {\n return undefined;\n }\n\n if (a === b) {\n return a;\n }\n\n var aNodes = a.ancestors();\n var bNodes = b.ancestors();\n var c = undefined;\n a = aNodes.pop();\n b = bNodes.pop();\n\n while (a === b) {\n c = a;\n a = aNodes.pop();\n b = bNodes.pop();\n }\n\n return c;\n}\n\nvar __extends$20 = undefined && undefined.__extends || function () {\n var _extendStatics92 = function extendStatics(d, b) {\n _extendStatics92 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics92(d, b);\n };\n\n return function (d, b) {\n _extendStatics92(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __values$9 = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar TreemapSeriesTooltip =\n/** @class */\nfunction (_super) {\n __extends$20(TreemapSeriesTooltip, _super);\n\n function TreemapSeriesTooltip() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.renderer = undefined;\n return _this;\n }\n\n return TreemapSeriesTooltip;\n}(SeriesTooltip);\n\nvar TreemapSeriesLabel =\n/** @class */\nfunction (_super) {\n __extends$20(TreemapSeriesLabel, _super);\n\n function TreemapSeriesLabel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.padding = 10;\n return _this;\n }\n\n return TreemapSeriesLabel;\n}(Label$1);\n\nvar TextNodeTag;\n\n(function (TextNodeTag) {\n TextNodeTag[TextNodeTag[\"Name\"] = 0] = \"Name\";\n TextNodeTag[TextNodeTag[\"Value\"] = 1] = \"Value\";\n})(TextNodeTag || (TextNodeTag = {}));\n\nvar TreemapSeries =\n/** @class */\nfunction (_super) {\n __extends$20(TreemapSeries, _super);\n\n function TreemapSeries() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.groupSelection = Selection$1.select(_this.pickGroup).selectAll();\n _this.highlightSelection = Selection$1.select(_this.highlightGroup).selectAll();\n _this.layout = new Treemap();\n\n _this.title = function () {\n var label = new TreemapSeriesLabel();\n label.color = 'white';\n label.fontWeight = 'bold';\n label.fontSize = 12;\n label.fontFamily = 'Verdana, sans-serif';\n label.padding = 15;\n return label;\n }();\n\n _this.subtitle = function () {\n var label = new TreemapSeriesLabel();\n label.color = 'white';\n label.fontSize = 9;\n label.fontFamily = 'Verdana, sans-serif';\n label.padding = 13;\n return label;\n }();\n\n _this.labels = {\n large: function () {\n var label = new Label$1();\n label.color = 'white';\n label.fontWeight = 'bold';\n label.fontSize = 18;\n return label;\n }(),\n medium: function () {\n var label = new Label$1();\n label.color = 'white';\n label.fontWeight = 'bold';\n label.fontSize = 14;\n return label;\n }(),\n small: function () {\n var label = new Label$1();\n label.color = 'white';\n label.fontWeight = 'bold';\n label.fontSize = 10;\n return label;\n }(),\n color: function () {\n var label = new Label$1();\n label.color = 'white';\n return label;\n }()\n };\n _this._nodePadding = 2;\n _this.labelKey = 'label';\n _this.sizeKey = 'size';\n _this.colorKey = 'color';\n _this.colorDomain = [-5, 5];\n _this.colorRange = ['#cb4b3f', '#6acb64'];\n _this.colorParents = false;\n _this.gradient = true;\n _this.colorName = 'Change';\n _this.rootName = 'Root';\n\n _this.shadow = function () {\n var shadow = new DropShadow();\n shadow.color = 'rgba(0, 0, 0, 0.4)';\n shadow.xOffset = 1.5;\n shadow.yOffset = 1.5;\n return shadow;\n }();\n\n _this.tooltip = new TreemapSeriesTooltip();\n return _this;\n }\n\n Object.defineProperty(TreemapSeries.prototype, \"nodePadding\", {\n get: function get() {\n return this._nodePadding;\n },\n set: function set(value) {\n if (this._nodePadding !== value) {\n this._nodePadding = value;\n this.updateLayoutPadding();\n }\n },\n enumerable: true,\n configurable: true\n });\n\n TreemapSeries.prototype.updateLayoutPadding = function () {\n var _a = this,\n title = _a.title,\n subtitle = _a.subtitle,\n nodePadding = _a.nodePadding,\n labelKey = _a.labelKey;\n\n this.layout.paddingRight = function (_) {\n return nodePadding;\n };\n\n this.layout.paddingBottom = function (_) {\n return nodePadding;\n };\n\n this.layout.paddingLeft = function (_) {\n return nodePadding;\n };\n\n this.layout.paddingTop = function (node) {\n var name = node.datum[labelKey] || '';\n\n if (node.children) {\n name = name.toUpperCase();\n }\n\n var font = node.depth > 1 ? subtitle : title;\n var textSize = HdpiCanvas$1.getTextSize(name, [font.fontWeight, font.fontSize + 'px', font.fontFamily].join(' ').trim());\n var innerNodeWidth = node.x1 - node.x0 - nodePadding * 2;\n var hasTitle = node.depth > 0 && node.children && textSize.width <= innerNodeWidth;\n node.hasTitle = !!hasTitle;\n return hasTitle ? textSize.height + nodePadding * 2 : nodePadding;\n };\n };\n\n TreemapSeries.prototype.processData = function () {\n if (!this.data) {\n return false;\n }\n\n var _a = this,\n data = _a.data,\n sizeKey = _a.sizeKey,\n labelKey = _a.labelKey,\n colorKey = _a.colorKey,\n colorDomain = _a.colorDomain,\n colorRange = _a.colorRange,\n colorParents = _a.colorParents;\n\n var dataRoot;\n\n if (sizeKey) {\n dataRoot = hierarchy(data).sum(function (datum) {\n return datum.children ? 1 : datum[sizeKey];\n });\n } else {\n dataRoot = hierarchy(data).sum(function (datum) {\n return datum.children ? 0 : 1;\n });\n }\n\n this.dataRoot = dataRoot;\n var colorScale = new LinearScale$1();\n colorScale.domain = colorDomain;\n colorScale.range = colorRange;\n var series = this;\n\n function traverse(root, depth) {\n if (depth === void 0) {\n depth = 0;\n }\n\n var children = root.children,\n datum = root.datum;\n var label = datum[labelKey];\n var colorValue = colorKey ? datum[colorKey] : depth;\n Object.assign(root, {\n series: series\n });\n root.fill = !children || colorParents ? colorScale.convert(colorValue) : '#272931';\n root.colorValue = colorValue;\n\n if (label) {\n root.label = children ? label.toUpperCase() : label;\n } else {\n root.label = '';\n }\n\n if (children) {\n children.forEach(function (child) {\n return traverse(child, depth + 1);\n });\n }\n }\n\n traverse(this.dataRoot);\n return true;\n };\n\n TreemapSeries.prototype.getLabelCenterX = function (datum) {\n return (datum.x0 + datum.x1) / 2;\n };\n\n TreemapSeries.prototype.getLabelCenterY = function (datum) {\n return (datum.y0 + datum.y1) / 2 + 2;\n };\n\n TreemapSeries.prototype.createNodeData = function () {\n return [];\n };\n\n TreemapSeries.prototype.update = function () {\n this.updateSelections();\n this.updateNodes();\n };\n\n TreemapSeries.prototype.updateSelections = function () {\n if (!this.nodeDataRefresh) {\n return;\n }\n\n this.nodeDataRefresh = false;\n\n var _a = this,\n chart = _a.chart,\n dataRoot = _a.dataRoot;\n\n if (!chart || !dataRoot) {\n return;\n }\n\n var seriesRect = chart.getSeriesRect();\n\n if (!seriesRect) {\n return;\n }\n\n this.layout.size = [seriesRect.width, seriesRect.height];\n this.updateLayoutPadding();\n var descendants = this.layout.processData(dataRoot).descendants();\n\n var _b = this,\n groupSelection = _b.groupSelection,\n highlightSelection = _b.highlightSelection;\n\n var update = function update(selection) {\n var updateGroups = selection.setData(descendants);\n updateGroups.exit.remove();\n var enterGroups = updateGroups.enter.append(Group$1);\n enterGroups.append(Rect);\n enterGroups.append(Text$1).each(function (node) {\n return node.tag = TextNodeTag.Name;\n });\n enterGroups.append(Text$1).each(function (node) {\n return node.tag = TextNodeTag.Value;\n });\n return updateGroups.merge(enterGroups);\n };\n\n this.groupSelection = update(groupSelection);\n this.highlightSelection = update(highlightSelection);\n };\n\n TreemapSeries.prototype.updateNodes = function () {\n var _this = this;\n\n if (!this.chart) {\n return;\n }\n\n var _a = this,\n nodePadding = _a.nodePadding,\n labels = _a.labels,\n shadow = _a.shadow,\n gradient = _a.gradient,\n highlightedDatum = _a.chart.highlightedDatum,\n _b = _a.highlightStyle,\n deprecatedFill = _b.fill,\n deprecatedStroke = _b.stroke,\n deprecatedStrokeWidth = _b.strokeWidth,\n _c = _b.item,\n _d = _c.fill,\n highlightedFill = _d === void 0 ? deprecatedFill : _d,\n highlightedFillOpacity = _c.fillOpacity,\n _e = _c.stroke,\n highlightedStroke = _e === void 0 ? deprecatedStroke : _e,\n _f = _c.strokeWidth,\n highlightedDatumStrokeWidth = _f === void 0 ? deprecatedStrokeWidth : _f;\n\n var labelMeta = this.buildLabelMeta(this.groupSelection.data);\n\n var updateRectFn = function updateRectFn(rect, datum, isDatumHighlighted) {\n var _a;\n\n var fill = isDatumHighlighted && highlightedFill !== undefined ? highlightedFill : datum.fill;\n var fillOpacity = (_a = isDatumHighlighted ? highlightedFillOpacity : 1, _a !== null && _a !== void 0 ? _a : 1);\n var stroke = isDatumHighlighted && highlightedStroke !== undefined ? highlightedStroke : datum.depth < 2 ? undefined : 'black';\n var strokeWidth = isDatumHighlighted && highlightedDatumStrokeWidth !== undefined ? highlightedDatumStrokeWidth : 1;\n rect.fill = fill;\n rect.fillOpacity = fillOpacity;\n rect.stroke = stroke;\n rect.strokeWidth = strokeWidth;\n rect.crisp = true;\n rect.gradient = gradient;\n rect.x = datum.x0;\n rect.y = datum.y0;\n rect.width = datum.x1 - datum.x0;\n rect.height = datum.y1 - datum.y0;\n\n if (isDatumHighlighted && datum.children) {\n var x0 = datum.x0,\n x1 = datum.x1,\n y0 = datum.y0,\n y1 = datum.y1;\n\n var pLeft = _this.layout.paddingLeft(datum);\n\n var pRight = _this.layout.paddingRight(datum);\n\n var pTop = _this.layout.paddingTop(datum);\n\n var pBottom = _this.layout.paddingBottom(datum);\n\n if (rect.clipPath) {\n rect.clipPath.clear();\n } else {\n rect.clipPath = new Path2D$1();\n }\n\n rect.clipMode = 'punch-out';\n rect.clipPath.moveTo(x0 + pLeft, y0 + pTop);\n rect.clipPath.lineTo(x1 - pRight, y0 + pTop);\n rect.clipPath.lineTo(x1 - pRight, y1 - pBottom);\n rect.clipPath.lineTo(x0 + pLeft, y1 - pBottom);\n rect.clipPath.lineTo(x0 + pLeft, y0 + pTop);\n rect.clipPath.closePath();\n }\n };\n\n this.groupSelection.selectByClass(Rect).each(function (rect, datum) {\n return updateRectFn(rect, datum, false);\n });\n this.highlightSelection.selectByClass(Rect).each(function (rect, datum) {\n var isDatumHighlighted = datum === highlightedDatum;\n rect.visible = isDatumHighlighted;\n\n if (rect.visible) {\n updateRectFn(rect, datum, isDatumHighlighted);\n }\n });\n\n var updateNodeFn = function updateNodeFn(text, datum, index, highlighted) {\n var _a;\n\n var hasTitle = datum.hasTitle;\n\n var _b = (_a = labelMeta[index], _a !== null && _a !== void 0 ? _a : {}),\n label = _b.label,\n textBaseline = _b.nodeBaseline;\n\n if (label != null && textBaseline != null) {\n text.textBaseline = textBaseline;\n text.fontWeight = label.fontWeight;\n text.fontSize = label.fontSize;\n text.fontFamily = label.fontFamily;\n text.textAlign = hasTitle ? 'left' : 'center';\n text.text = datum.label;\n text.fill = highlighted ? 'black' : label.color;\n text.fillShadow = !highlighted ? shadow : undefined;\n text.visible = true;\n } else {\n text.visible = false;\n }\n\n if (hasTitle) {\n text.x = datum.x0 + nodePadding;\n text.y = datum.y0 + nodePadding;\n } else {\n text.x = _this.getLabelCenterX(datum);\n text.y = _this.getLabelCenterY(datum);\n }\n };\n\n this.groupSelection.selectByTag(TextNodeTag.Name).each(function (text, datum, index) {\n return updateNodeFn(text, datum, index, false);\n });\n this.highlightSelection.selectByTag(TextNodeTag.Name).each(function (text, datum, index) {\n var isDatumHighlighted = datum === highlightedDatum;\n text.visible = isDatumHighlighted;\n\n if (text.visible) {\n updateNodeFn(text, datum, index, isDatumHighlighted);\n }\n });\n\n var updateValueFn = function updateValueFn(text, datum, index, highlighted) {\n var _a;\n\n var _b = (_a = labelMeta[index], _a !== null && _a !== void 0 ? _a : {}),\n textBaseline = _b.valueBaseline,\n valueText = _b.valueText;\n\n var label = labels.color;\n\n if (label.enabled && textBaseline != null && valueText) {\n text.fontSize = label.fontSize;\n text.fontFamily = label.fontFamily;\n text.fontStyle = label.fontStyle;\n text.fontWeight = label.fontWeight;\n text.textBaseline = textBaseline;\n text.textAlign = 'center';\n text.text = valueText;\n text.fill = highlighted ? 'black' : label.color;\n text.fillShadow = highlighted ? undefined : shadow;\n text.visible = true;\n text.x = _this.getLabelCenterX(datum);\n text.y = _this.getLabelCenterY(datum);\n } else {\n text.visible = false;\n }\n };\n\n this.groupSelection.selectByTag(TextNodeTag.Value).each(function (text, datum, index) {\n return updateValueFn(text, datum, index, false);\n });\n this.highlightSelection.selectByTag(TextNodeTag.Value).each(function (text, datum, index) {\n var isDatumHighlighted = datum === highlightedDatum;\n text.visible = isDatumHighlighted;\n\n if (text.visible) {\n updateValueFn(text, datum, index, isDatumHighlighted);\n }\n });\n };\n\n TreemapSeries.prototype.buildLabelMeta = function (data) {\n var e_1, _a;\n\n var _b = this,\n labels = _b.labels,\n title = _b.title,\n subtitle = _b.subtitle,\n nodePadding = _b.nodePadding,\n colorKey = _b.colorKey;\n\n var labelMeta = [];\n labelMeta.length = this.groupSelection.data.length;\n var text = new Text$1();\n var index = 0;\n\n try {\n for (var data_1 = __values$9(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {\n var datum = data_1_1.value;\n var value = datum.value;\n var isLeaf = !datum.children;\n var innerNodeWidth = datum.x1 - datum.x0 - nodePadding * 2;\n var innerNodeHeight = datum.y1 - datum.y0 - nodePadding * 2;\n var hasTitle = datum.hasTitle;\n var label = void 0;\n\n if (isLeaf) {\n if (innerNodeWidth > 40 && innerNodeHeight > 40) {\n label = labels.large;\n } else if (innerNodeWidth > 20 && innerNodeHeight > 20) {\n label = labels.medium;\n } else {\n label = labels.small;\n }\n } else if (datum.depth > 1) {\n label = subtitle;\n } else {\n label = title;\n }\n\n if (!label.enabled) {\n labelMeta[index++] = undefined;\n continue;\n }\n\n text.fontWeight = label.fontWeight;\n text.fontSize = label.fontSize;\n text.fontFamily = label.fontFamily;\n text.textAlign = hasTitle ? 'left' : 'center';\n text.text = datum.label;\n var nodeBBox = text.computeBBox();\n var hasNode = isLeaf && !!nodeBBox && nodeBBox.width <= innerNodeWidth && nodeBBox.height * 2 + 8 <= innerNodeHeight;\n var valueText = typeof value === 'number' && isFinite(value) ? String(toFixed(datum.colorValue)) + '%' : '';\n text.fontSize = labels.color.fontSize;\n text.fontFamily = labels.color.fontFamily;\n text.fontStyle = labels.color.fontStyle;\n text.fontWeight = labels.color.fontWeight;\n text.text = valueText;\n var valueBBox = text.computeBBox();\n var hasValue = isLeaf && !!colorKey && hasNode && !!valueBBox && valueBBox.width < innerNodeWidth;\n var nodeBaseline = hasValue ? 'bottom' : isLeaf ? 'middle' : hasTitle ? 'top' : 'middle';\n labelMeta[index++] = {\n label: label,\n nodeBaseline: hasTitle || hasNode ? nodeBaseline : undefined,\n valueBaseline: hasValue ? 'top' : undefined,\n valueText: valueText\n };\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (data_1_1 && !data_1_1.done && (_a = data_1.return)) _a.call(data_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n return labelMeta;\n };\n\n TreemapSeries.prototype.getDomain = function (_direction) {\n return [0, 1];\n };\n\n TreemapSeries.prototype.fireNodeClickEvent = function (event, datum) {\n this.fireEvent({\n type: 'nodeClick',\n event: event,\n series: this,\n datum: datum.datum,\n labelKey: this.labelKey,\n sizeKey: this.sizeKey,\n colorKey: this.colorKey\n });\n };\n\n TreemapSeries.prototype.getTooltipHtml = function (nodeDatum) {\n var _a = this,\n tooltip = _a.tooltip,\n sizeKey = _a.sizeKey,\n labelKey = _a.labelKey,\n colorKey = _a.colorKey,\n colorName = _a.colorName,\n rootName = _a.rootName;\n\n var datum = nodeDatum.datum;\n var tooltipRenderer = tooltip.renderer;\n var title = nodeDatum.depth ? datum[labelKey] : rootName || datum[labelKey];\n var content = undefined;\n var color = nodeDatum.fill || 'gray';\n\n if (colorKey && colorName) {\n var colorValue = datum[colorKey];\n\n if (typeof colorValue === 'number' && isFinite(colorValue)) {\n content = \"\" + colorName + \": \" + toFixed(datum[colorKey]);\n }\n }\n\n var defaults = {\n title: title,\n backgroundColor: color,\n content: content\n };\n\n if (tooltipRenderer) {\n return toTooltipHtml$1(tooltipRenderer({\n datum: nodeDatum,\n sizeKey: sizeKey,\n labelKey: labelKey,\n colorKey: colorKey,\n title: title,\n color: color\n }), defaults);\n }\n\n return toTooltipHtml$1(defaults);\n };\n\n TreemapSeries.prototype.listSeriesItems = function (_legendData) {// Override point for subclasses.\n };\n\n TreemapSeries.className = 'TreemapSeries';\n TreemapSeries.type = 'treemap';\n return TreemapSeries;\n}(HierarchySeries);\n\nvar __extends$1$ = undefined && undefined.__extends || function () {\n var _extendStatics93 = function extendStatics(d, b) {\n _extendStatics93 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics93(d, b);\n };\n\n return function (d, b) {\n _extendStatics93(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar Sector =\n/** @class */\nfunction (_super) {\n __extends$1$(Sector, _super);\n\n function Sector() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.centerX = 0;\n _this.centerY = 0;\n _this.centerOffset = 0;\n _this.innerRadius = 10;\n _this.outerRadius = 20;\n _this.startAngle = 0;\n _this.endAngle = Math.PI * 2;\n _this.angleOffset = 0;\n return _this;\n }\n\n Sector.prototype.computeBBox = function () {\n var radius = this.outerRadius;\n return new BBox$1(this.centerX - radius, this.centerY - radius, radius * 2, radius * 2);\n };\n\n Sector.prototype.isFullPie = function () {\n return isEqual(normalizeAngle360(this.startAngle), normalizeAngle360(this.endAngle));\n };\n\n Sector.prototype.updatePath = function () {\n var path = this.path;\n var angleOffset = this.angleOffset;\n var startAngle = Math.min(this.startAngle, this.endAngle) + angleOffset;\n var endAngle = Math.max(this.startAngle, this.endAngle) + angleOffset;\n var midAngle = (startAngle + endAngle) * 0.5;\n var innerRadius = Math.min(this.innerRadius, this.outerRadius);\n var outerRadius = Math.max(this.innerRadius, this.outerRadius);\n var centerOffset = this.centerOffset;\n var fullPie = this.isFullPie();\n var centerX = this.centerX;\n var centerY = this.centerY;\n path.clear();\n\n if (centerOffset) {\n centerX += centerOffset * Math.cos(midAngle);\n centerY += centerOffset * Math.sin(midAngle);\n }\n\n if (!fullPie) {\n path.moveTo(centerX + innerRadius * Math.cos(startAngle), centerY + innerRadius * Math.sin(startAngle));\n path.lineTo(centerX + outerRadius * Math.cos(startAngle), centerY + outerRadius * Math.sin(startAngle));\n }\n\n path.cubicArc(centerX, centerY, outerRadius, outerRadius, 0, startAngle, endAngle, 0);\n\n if (fullPie) {\n path.moveTo(centerX + innerRadius * Math.cos(endAngle), centerY + innerRadius * Math.sin(endAngle));\n } else {\n // Temp workaround for https://bugs.chromium.org/p/chromium/issues/detail?id=993330\n // Revert this commit when fixed ^^.\n var x = centerX + innerRadius * Math.cos(endAngle);\n path.lineTo(Math.abs(x) < 1e-8 ? 0 : x, centerY + innerRadius * Math.sin(endAngle));\n }\n\n path.cubicArc(centerX, centerY, innerRadius, innerRadius, 0, endAngle, startAngle, 1);\n path.closePath();\n this.dirtyPath = false;\n };\n\n Sector.className = 'Sector';\n\n __decorate$15([ScenePathChangeDetection()], Sector.prototype, \"centerX\", void 0);\n\n __decorate$15([ScenePathChangeDetection()], Sector.prototype, \"centerY\", void 0);\n\n __decorate$15([ScenePathChangeDetection()], Sector.prototype, \"centerOffset\", void 0);\n\n __decorate$15([ScenePathChangeDetection()], Sector.prototype, \"innerRadius\", void 0);\n\n __decorate$15([ScenePathChangeDetection()], Sector.prototype, \"outerRadius\", void 0);\n\n __decorate$15([ScenePathChangeDetection()], Sector.prototype, \"startAngle\", void 0);\n\n __decorate$15([ScenePathChangeDetection()], Sector.prototype, \"endAngle\", void 0);\n\n __decorate$15([ScenePathChangeDetection()], Sector.prototype, \"angleOffset\", void 0);\n\n return Sector;\n}(Path$1);\n\nvar __extends$1_ = undefined && undefined.__extends || function () {\n var _extendStatics94 = function extendStatics(d, b) {\n _extendStatics94 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics94(d, b);\n };\n\n return function (d, b) {\n _extendStatics94(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __read$n = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$9 = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$n(arguments[i]));\n }\n\n return ar;\n};\n\nvar PieHighlightStyle =\n/** @class */\nfunction (_super) {\n __extends$1_(PieHighlightStyle, _super);\n\n function PieHighlightStyle() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n return PieHighlightStyle;\n}(HighlightStyle);\n\nvar PieNodeTag;\n\n(function (PieNodeTag) {\n PieNodeTag[PieNodeTag[\"Sector\"] = 0] = \"Sector\";\n PieNodeTag[PieNodeTag[\"Callout\"] = 1] = \"Callout\";\n PieNodeTag[PieNodeTag[\"Label\"] = 2] = \"Label\";\n})(PieNodeTag || (PieNodeTag = {}));\n\nvar PieSeriesLabel =\n/** @class */\nfunction (_super) {\n __extends$1_(PieSeriesLabel, _super);\n\n function PieSeriesLabel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.offset = 3; // from the callout line\n\n _this.minAngle = 20; // in degrees\n\n _this.formatter = undefined;\n return _this;\n }\n\n return PieSeriesLabel;\n}(Label$1);\n\nvar PieSeriesCallout =\n/** @class */\nfunction (_super) {\n __extends$1_(PieSeriesCallout, _super);\n\n function PieSeriesCallout() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.colors = ['#874349', '#718661', '#a48f5f', '#5a7088', '#7f637a', '#5d8692'];\n _this.length = 10;\n _this.strokeWidth = 1;\n return _this;\n }\n\n return PieSeriesCallout;\n}(Observable$1);\n\nvar PieSeriesTooltip =\n/** @class */\nfunction (_super) {\n __extends$1_(PieSeriesTooltip, _super);\n\n function PieSeriesTooltip() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.renderer = undefined;\n return _this;\n }\n\n return PieSeriesTooltip;\n}(SeriesTooltip);\n\nvar PieTitle =\n/** @class */\nfunction (_super) {\n __extends$1_(PieTitle, _super);\n\n function PieTitle() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.showInLegend = false;\n return _this;\n }\n\n return PieTitle;\n}(Caption);\n\nvar PieSeries =\n/** @class */\nfunction (_super) {\n __extends$1_(PieSeries, _super);\n\n function PieSeries() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.radiusScale = new LinearScale$1();\n _this.groupSelection = Selection$1.select(_this.pickGroup).selectAll();\n _this.highlightSelection = Selection$1.select(_this.highlightGroup).selectAll();\n /**\n * The processed data that gets visualized.\n */\n\n _this.groupSelectionData = [];\n\n _this.angleScale = function () {\n var scale = new LinearScale$1(); // Each slice is a ratio of the whole, where all ratios add up to 1.\n\n scale.domain = [0, 1]; // Add 90 deg to start the first pie at 12 o'clock.\n\n scale.range = [-Math.PI, Math.PI].map(function (angle) {\n return angle + Math.PI / 2;\n });\n return scale;\n }(); // When a user toggles a series item (e.g. from the legend), its boolean state is recorded here.\n\n\n _this.seriesItemEnabled = [];\n _this.label = new PieSeriesLabel();\n _this.callout = new PieSeriesCallout();\n _this.tooltip = new PieSeriesTooltip();\n /**\n * The key of the numeric field to use to determine the angle (for example,\n * a pie slice angle).\n */\n\n _this.angleKey = '';\n _this.angleName = '';\n /**\n * The key of the numeric field to use to determine the radii of pie slices.\n * The largest value will correspond to the full radius and smaller values to\n * proportionally smaller radii.\n */\n\n _this.radiusKey = undefined;\n _this.radiusName = undefined;\n _this.radiusMin = undefined;\n _this.radiusMax = undefined;\n _this.labelKey = undefined;\n _this.labelName = undefined;\n _this.fills = ['#c16068', '#a2bf8a', '#ebcc87', '#80a0c3', '#b58dae', '#85c0d1'];\n _this.strokes = ['#874349', '#718661', '#a48f5f', '#5a7088', '#7f637a', '#5d8692'];\n _this.fillOpacity = 1;\n _this.strokeOpacity = 1;\n _this.lineDash = [0];\n _this.lineDashOffset = 0;\n _this.formatter = undefined;\n /**\n * The series rotation in degrees.\n */\n\n _this.rotation = 0;\n _this.outerRadiusOffset = 0;\n _this.innerRadiusOffset = 0;\n _this.strokeWidth = 1;\n _this.shadow = undefined;\n _this.highlightStyle = new PieHighlightStyle();\n return _this;\n }\n\n Object.defineProperty(PieSeries.prototype, \"title\", {\n get: function get() {\n return this._title;\n },\n set: function set(value) {\n var oldTitle = this._title;\n\n if (oldTitle !== value) {\n if (oldTitle) {\n this.seriesGroup.removeChild(oldTitle.node);\n }\n\n if (value) {\n value.node.textBaseline = 'bottom';\n this.seriesGroup.appendChild(value.node);\n }\n\n this._title = value;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(PieSeries.prototype, \"data\", {\n get: function get() {\n return this._data;\n },\n set: function set(input) {\n this._data = input;\n this.processSeriesItemEnabled();\n },\n enumerable: true,\n configurable: true\n });\n\n PieSeries.prototype.visibleChanged = function () {\n this.processSeriesItemEnabled();\n };\n\n PieSeries.prototype.processSeriesItemEnabled = function () {\n var _a;\n\n var _b = this,\n data = _b.data,\n visible = _b.visible;\n\n this.seriesItemEnabled = ((_a = data) === null || _a === void 0 ? void 0 : _a.map(function () {\n return visible;\n })) || [];\n };\n\n PieSeries.prototype.setColors = function (fills, strokes) {\n this.fills = fills;\n this.strokes = strokes;\n this.callout.colors = strokes;\n };\n\n PieSeries.prototype.getDomain = function (direction) {\n if (direction === ChartAxisDirection.X) {\n return this.angleScale.domain;\n } else {\n return this.radiusScale.domain;\n }\n };\n\n PieSeries.prototype.processData = function () {\n var _this = this;\n\n var _a = this,\n angleKey = _a.angleKey,\n radiusKey = _a.radiusKey,\n seriesItemEnabled = _a.seriesItemEnabled,\n angleScale = _a.angleScale,\n groupSelectionData = _a.groupSelectionData,\n label = _a.label;\n\n var data = angleKey && this.data ? this.data : [];\n var angleData = data.map(function (datum, index) {\n return seriesItemEnabled[index] && Math.abs(+datum[angleKey]) || 0;\n });\n var angleDataTotal = angleData.reduce(function (a, b) {\n return a + b;\n }, 0); // The ratios (in [0, 1] interval) used to calculate the end angle value for every pie slice.\n // Each slice starts where the previous one ends, so we only keep the ratios for end angles.\n\n var angleDataRatios = function () {\n var sum = 0;\n return angleData.map(function (datum) {\n return sum += datum / angleDataTotal;\n });\n }();\n\n var labelFormatter = label.formatter;\n var labelKey = label.enabled && this.labelKey;\n var labelData = [];\n var radiusData = [];\n\n if (labelKey) {\n if (labelFormatter) {\n labelData = data.map(function (datum) {\n return labelFormatter({\n value: datum[labelKey]\n });\n });\n } else {\n labelData = data.map(function (datum) {\n return String(datum[labelKey]);\n });\n }\n }\n\n if (radiusKey) {\n var _b = this,\n radiusMin = _b.radiusMin,\n radiusMax = _b.radiusMax;\n\n var radii = data.map(function (datum) {\n return Math.abs(datum[radiusKey]);\n });\n var min_1 = radiusMin !== null && radiusMin !== void 0 ? radiusMin : 0;\n var max = radiusMax ? radiusMax : Math.max.apply(Math, __spread$9(radii));\n var delta_1 = max - min_1;\n radiusData = radii.map(function (value) {\n return delta_1 ? (value - min_1) / delta_1 : 1;\n });\n }\n\n groupSelectionData.length = 0;\n var rotation = toRadians(this.rotation);\n var halfPi = Math.PI / 2;\n var datumIndex = 0;\n var quadrantTextOpts = [{\n textAlign: 'center',\n textBaseline: 'bottom'\n }, {\n textAlign: 'left',\n textBaseline: 'middle'\n }, {\n textAlign: 'center',\n textBaseline: 'hanging'\n }, {\n textAlign: 'right',\n textBaseline: 'middle'\n }]; // Process segments.\n\n var end = 0;\n angleDataRatios.forEach(function (start) {\n if (isNaN(start)) {\n return;\n } // No segments displayed - nothing to do.\n\n\n var radius = radiusKey ? radiusData[datumIndex] : 1;\n var startAngle = angleScale.convert(start) + rotation;\n var endAngle = angleScale.convert(end) + rotation;\n var midAngle = (startAngle + endAngle) / 2;\n var span = Math.abs(endAngle - startAngle);\n var midCos = Math.cos(midAngle);\n var midSin = Math.sin(midAngle);\n var labelMinAngle = toRadians(label.minAngle);\n var labelVisible = labelKey && span > labelMinAngle;\n var midAngle180 = normalizeAngle180(midAngle); // Split the circle into quadrants like so: ⊗\n\n var quadrantStart = -3 * Math.PI / 4; // same as `normalizeAngle180(toRadians(-135))`\n\n var quadrantOffset = midAngle180 - quadrantStart;\n var quadrant = Math.floor(quadrantOffset / halfPi);\n var quadrantIndex = mod(quadrant, quadrantTextOpts.length);\n var _a = quadrantTextOpts[quadrantIndex],\n textAlign = _a.textAlign,\n textBaseline = _a.textBaseline;\n groupSelectionData.push({\n series: _this,\n datum: data[datumIndex],\n itemId: datumIndex,\n index: datumIndex,\n radius: radius,\n startAngle: startAngle,\n endAngle: endAngle,\n midAngle: midAngle,\n midCos: midCos,\n midSin: midSin,\n label: labelVisible ? {\n text: labelData[datumIndex],\n textAlign: textAlign,\n textBaseline: textBaseline\n } : undefined\n });\n datumIndex++;\n end = start; // Update for next iteration.\n });\n return true;\n };\n\n PieSeries.prototype.createNodeData = function () {\n return [];\n };\n\n PieSeries.prototype.update = function () {\n var _a = this,\n radius = _a.radius,\n innerRadiusOffset = _a.innerRadiusOffset,\n outerRadiusOffset = _a.outerRadiusOffset,\n title = _a.title;\n\n this.radiusScale.range = [innerRadiusOffset ? radius + innerRadiusOffset : 0, radius + (outerRadiusOffset || 0)];\n this.group.translationX = this.centerX;\n this.group.translationY = this.centerY;\n\n if (title) {\n var outerRadius = Math.max(0, this.radiusScale.range[1]);\n\n if (outerRadius === 0) {\n title.node.visible = false;\n } else {\n title.node.translationY = -radius - outerRadiusOffset - 2;\n title.node.visible = title.enabled;\n }\n }\n\n this.updateSelections();\n this.updateNodes();\n };\n\n PieSeries.prototype.updateSelections = function () {\n this.updateGroupSelection();\n };\n\n PieSeries.prototype.updateGroupSelection = function () {\n var _this = this;\n\n var _a = this,\n groupSelection = _a.groupSelection,\n highlightSelection = _a.highlightSelection;\n\n var update = function update(selection, appendLabels) {\n var updateGroups = selection.setData(_this.groupSelectionData);\n updateGroups.exit.remove();\n var enterGroups = updateGroups.enter.append(Group$1);\n enterGroups.append(Sector).each(function (node) {\n return node.tag = PieNodeTag.Sector;\n });\n\n if (appendLabels) {\n enterGroups.append(Line$1).each(function (node) {\n node.tag = PieNodeTag.Callout;\n node.pointerEvents = PointerEvents$1.None;\n });\n enterGroups.append(Text$1).each(function (node) {\n node.tag = PieNodeTag.Label;\n node.pointerEvents = PointerEvents$1.None;\n });\n }\n\n return updateGroups.merge(enterGroups);\n };\n\n this.groupSelection = update(groupSelection, true);\n this.highlightSelection = update(highlightSelection, false);\n };\n\n PieSeries.prototype.updateNodes = function () {\n var _this = this;\n\n var _a, _b;\n\n if (!this.chart) {\n return;\n }\n\n var isVisible = this.seriesItemEnabled.indexOf(true) >= 0;\n this.group.visible = isVisible;\n this.seriesGroup.visible = isVisible;\n this.highlightGroup.visible = isVisible && ((_b = (_a = this.chart) === null || _a === void 0 ? void 0 : _a.highlightedDatum) === null || _b === void 0 ? void 0 : _b.series) === this;\n this.seriesGroup.opacity = this.getOpacity();\n\n var _c = this,\n fills = _c.fills,\n strokes = _c.strokes,\n seriesFillOpacity = _c.fillOpacity,\n strokeOpacity = _c.strokeOpacity,\n radiusScale = _c.radiusScale,\n callout = _c.callout,\n shadow = _c.shadow,\n highlightedDatum = _c.chart.highlightedDatum,\n _d = _c.highlightStyle,\n deprecatedFill = _d.fill,\n deprecatedStroke = _d.stroke,\n deprecatedStrokeWidth = _d.strokeWidth,\n _e = _d.item,\n _f = _e.fill,\n highlightedFill = _f === void 0 ? deprecatedFill : _f,\n _g = _e.fillOpacity,\n highlightFillOpacity = _g === void 0 ? seriesFillOpacity : _g,\n _h = _e.stroke,\n highlightedStroke = _h === void 0 ? deprecatedStroke : _h,\n _j = _e.strokeWidth,\n highlightedDatumStrokeWidth = _j === void 0 ? deprecatedStrokeWidth : _j,\n angleKey = _c.angleKey,\n radiusKey = _c.radiusKey,\n formatter = _c.formatter;\n\n var centerOffsets = [];\n var innerRadius = radiusScale.convert(0);\n\n var updateSectorFn = function updateSectorFn(sector, datum, index, isDatumHighlighted) {\n var radius = radiusScale.convert(datum.radius, clamper$2);\n var fill = isDatumHighlighted && highlightedFill !== undefined ? highlightedFill : fills[index % fills.length];\n var fillOpacity = isDatumHighlighted ? highlightFillOpacity : seriesFillOpacity;\n var stroke = isDatumHighlighted && highlightedStroke !== undefined ? highlightedStroke : strokes[index % strokes.length];\n var strokeWidth = isDatumHighlighted && highlightedDatumStrokeWidth !== undefined ? highlightedDatumStrokeWidth : _this.getStrokeWidth(_this.strokeWidth);\n var format = undefined;\n\n if (formatter) {\n format = formatter({\n datum: datum.datum,\n angleKey: angleKey,\n radiusKey: radiusKey,\n fill: fill,\n stroke: stroke,\n strokeWidth: strokeWidth,\n highlighted: isDatumHighlighted\n });\n } // Bring highlighted slice's parent group to front.\n\n\n var parent = sector.parent && sector.parent.parent;\n\n if (isDatumHighlighted && parent) {\n parent.removeChild(sector.parent);\n parent.appendChild(sector.parent);\n }\n\n sector.innerRadius = Math.max(0, innerRadius);\n sector.outerRadius = Math.max(0, radius);\n sector.startAngle = datum.startAngle;\n sector.endAngle = datum.endAngle;\n sector.fill = format && format.fill || fill;\n sector.stroke = format && format.stroke || stroke;\n sector.strokeWidth = format && format.strokeWidth !== undefined ? format.strokeWidth : strokeWidth;\n sector.fillOpacity = fillOpacity;\n sector.strokeOpacity = strokeOpacity;\n sector.lineDash = _this.lineDash;\n sector.lineDashOffset = _this.lineDashOffset;\n sector.fillShadow = shadow;\n sector.lineJoin = 'round';\n centerOffsets.push(sector.centerOffset);\n };\n\n this.groupSelection.selectByTag(PieNodeTag.Sector).each(function (node, datum, index) {\n return updateSectorFn(node, datum, index, false);\n });\n this.highlightSelection.selectByTag(PieNodeTag.Sector).each(function (node, datum, index) {\n var isDatumHighlighted = !!highlightedDatum && highlightedDatum.series === _this && datum.itemId === highlightedDatum.itemId;\n node.visible = isDatumHighlighted;\n\n if (node.visible) {\n updateSectorFn(node, datum, index, isDatumHighlighted);\n }\n });\n var calloutColors = callout.colors,\n calloutLength = callout.length,\n calloutStrokeWidth = callout.strokeWidth;\n this.groupSelection.selectByTag(PieNodeTag.Callout).each(function (line, datum, index) {\n var radius = radiusScale.convert(datum.radius, clamper$2);\n var outerRadius = Math.max(0, radius);\n\n if (datum.label && outerRadius !== 0) {\n line.strokeWidth = calloutStrokeWidth;\n line.stroke = calloutColors[index % calloutColors.length];\n line.x1 = datum.midCos * outerRadius;\n line.y1 = datum.midSin * outerRadius;\n line.x2 = datum.midCos * (outerRadius + calloutLength);\n line.y2 = datum.midSin * (outerRadius + calloutLength);\n } else {\n line.stroke = undefined;\n }\n });\n {\n var _k = this.label,\n offset_1 = _k.offset,\n fontStyle_1 = _k.fontStyle,\n fontWeight_1 = _k.fontWeight,\n fontSize_1 = _k.fontSize,\n fontFamily_1 = _k.fontFamily,\n color_1 = _k.color;\n this.groupSelection.selectByTag(PieNodeTag.Label).each(function (text, datum, index) {\n var label = datum.label;\n var radius = radiusScale.convert(datum.radius, clamper$2);\n var outerRadius = Math.max(0, radius);\n\n if (label && outerRadius !== 0) {\n var labelRadius = centerOffsets[index] + outerRadius + calloutLength + offset_1;\n text.fontStyle = fontStyle_1;\n text.fontWeight = fontWeight_1;\n text.fontSize = fontSize_1;\n text.fontFamily = fontFamily_1;\n text.text = label.text;\n text.x = datum.midCos * labelRadius;\n text.y = datum.midSin * labelRadius;\n text.fill = color_1;\n text.textAlign = label.textAlign;\n text.textBaseline = label.textBaseline;\n } else {\n text.fill = undefined;\n }\n });\n }\n };\n\n PieSeries.prototype.fireNodeClickEvent = function (event, datum) {\n this.fireEvent({\n type: 'nodeClick',\n event: event,\n series: this,\n datum: datum.datum,\n angleKey: this.angleKey,\n labelKey: this.labelKey,\n radiusKey: this.radiusKey\n });\n };\n\n PieSeries.prototype.getTooltipHtml = function (nodeDatum) {\n var angleKey = this.angleKey;\n\n if (!angleKey) {\n return '';\n }\n\n var _a = this,\n fills = _a.fills,\n tooltip = _a.tooltip,\n angleName = _a.angleName,\n radiusKey = _a.radiusKey,\n radiusName = _a.radiusName,\n labelKey = _a.labelKey,\n labelName = _a.labelName;\n\n var tooltipRenderer = tooltip.renderer;\n var color = fills[nodeDatum.index % fills.length];\n var datum = nodeDatum.datum;\n var label = labelKey ? datum[labelKey] + \": \" : '';\n var angleValue = datum[angleKey];\n var formattedAngleValue = typeof angleValue === 'number' ? toFixed(angleValue) : angleValue.toString();\n var title = this.title ? this.title.text : undefined;\n var content = label + formattedAngleValue;\n var defaults = {\n title: title,\n backgroundColor: color,\n content: content\n };\n\n if (tooltipRenderer) {\n return toTooltipHtml$1(tooltipRenderer({\n datum: datum,\n angleKey: angleKey,\n angleValue: angleValue,\n angleName: angleName,\n radiusKey: radiusKey,\n radiusValue: radiusKey ? datum[radiusKey] : undefined,\n radiusName: radiusName,\n labelKey: labelKey,\n labelName: labelName,\n title: title,\n color: color\n }), defaults);\n }\n\n return toTooltipHtml$1(defaults);\n };\n\n PieSeries.prototype.listSeriesItems = function (legendData) {\n var _this = this;\n\n var _a = this,\n labelKey = _a.labelKey,\n data = _a.data;\n\n if (data && data.length && labelKey) {\n var _b = this,\n fills_1 = _b.fills,\n strokes_1 = _b.strokes,\n id_1 = _b.id;\n\n var titleText_1 = this.title && this.title.showInLegend && this.title.text;\n data.forEach(function (datum, index) {\n var labelParts = [];\n titleText_1 && labelParts.push(titleText_1);\n labelParts.push(String(datum[labelKey]));\n legendData.push({\n id: id_1,\n itemId: index,\n enabled: _this.seriesItemEnabled[index],\n label: {\n text: labelParts.join(' - ')\n },\n marker: {\n fill: fills_1[index % fills_1.length],\n stroke: strokes_1[index % strokes_1.length],\n fillOpacity: _this.fillOpacity,\n strokeOpacity: _this.strokeOpacity\n }\n });\n });\n }\n };\n\n PieSeries.prototype.toggleSeriesItem = function (itemId, enabled) {\n this.seriesItemEnabled[itemId] = enabled;\n this.nodeDataRefresh = true;\n };\n\n PieSeries.className = 'PieSeries';\n PieSeries.type = 'pie';\n return PieSeries;\n}(PolarSeries);\n\nfunction floor$b(date) {\n date.setUTCSeconds(0, 0);\n}\n\nfunction offset$b(date, minutes) {\n date.setTime(date.getTime() + minutes * durationMinute$1);\n}\n\nfunction count$b(start, end) {\n return (end.getTime() - start.getTime()) / durationMinute$1;\n}\n\nfunction field$9(date) {\n return date.getUTCMinutes();\n}\n\nvar utcMinute = new CountableTimeInterval$1(floor$b, offset$b, count$b, field$9);\n\nfunction floor$a(date) {\n date.setUTCMinutes(0, 0, 0);\n}\n\nfunction offset$a(date, hours) {\n date.setTime(date.getTime() + hours * durationHour$1);\n}\n\nfunction count$a(start, end) {\n return (end.getTime() - start.getTime()) / durationHour$1;\n}\n\nfunction field$8(date) {\n return date.getUTCHours();\n}\n\nvar utcHour = new CountableTimeInterval$1(floor$a, offset$a, count$a, field$8);\n\nfunction floor$9(date) {\n date.setUTCDate(1);\n date.setUTCHours(0, 0, 0, 0);\n}\n\nfunction offset$9(date, months) {\n date.setUTCMonth(date.getUTCMonth() + months);\n}\n\nfunction count$9(start, end) {\n return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;\n}\n\nfunction field$7(date) {\n return date.getUTCMonth();\n}\n\nvar utcMonth = new CountableTimeInterval$1(floor$9, offset$9, count$9, field$7);\n\nvar __assign$q = undefined && undefined.__assign || function () {\n __assign$q = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$q.apply(this, arguments);\n};\n\nvar __read$m = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar palette$8 = {\n fills: ['#f3622d', '#fba71b', '#57b757', '#41a9c9', '#4258c9', '#9a42c8', '#c84164', '#888888'],\n strokes: ['#aa4520', '#b07513', '#3d803d', '#2d768d', '#2e3e8d', '#6c2e8c', '#8c2d46', '#5f5f5f']\n};\n\nfunction arrayMerge(_target, source, _options) {\n return source;\n}\n\nfunction isMergeableObject(value) {\n return defaultIsMergeableObject$1(value) && !(value instanceof TimeInterval$1);\n}\n\nvar mergeOptions = {\n arrayMerge: arrayMerge,\n isMergeableObject: isMergeableObject\n};\nvar BOLD = 'bold';\nvar INSIDE = 'inside';\nvar RIGHT = 'right';\n\nvar ChartTheme =\n/** @class */\nfunction () {\n function ChartTheme(options) {\n options = deepMerge$1({}, options || {}, mergeOptions);\n var _a = options.overrides,\n overrides = _a === void 0 ? null : _a,\n _b = options.palette,\n palette = _b === void 0 ? null : _b;\n var defaults = this.createChartConfigPerSeries(this.getDefaults());\n\n if (overrides) {\n var common = overrides.common,\n cartesian = overrides.cartesian,\n polar = overrides.polar,\n hierarchy = overrides.hierarchy;\n\n var applyOverrides = function applyOverrides(type, seriesTypes, overrideOpts) {\n if (overrideOpts) {\n defaults[type] = deepMerge$1(defaults[type], overrideOpts, mergeOptions);\n seriesTypes.forEach(function (seriesType) {\n defaults[seriesType] = deepMerge$1(defaults[seriesType], overrideOpts, mergeOptions);\n });\n }\n };\n\n applyOverrides('common', Object.keys(defaults), common);\n applyOverrides('cartesian', ChartTheme.cartesianSeriesTypes, cartesian);\n applyOverrides('polar', ChartTheme.polarSeriesTypes, polar);\n applyOverrides('hierarchy', ChartTheme.hierarchySeriesTypes, hierarchy);\n var seriesOverridesMap_1 = {};\n ChartTheme.seriesTypes.forEach(function (seriesType) {\n var chartConfig = overrides[seriesType];\n\n if (chartConfig) {\n if (chartConfig.series) {\n seriesOverridesMap_1[seriesType] = chartConfig.series;\n chartConfig.series = seriesOverridesMap_1;\n }\n\n defaults[seriesType] = deepMerge$1(defaults[seriesType], chartConfig, mergeOptions);\n }\n });\n }\n\n this.palette = palette !== null && palette !== void 0 ? palette : this.getPalette();\n this.config = Object.freeze(defaults);\n }\n\n ChartTheme.prototype.getPalette = function () {\n return palette$8;\n };\n\n ChartTheme.getAxisDefaults = function () {\n return {\n top: {},\n right: {},\n bottom: {},\n left: {},\n thickness: 0,\n title: {\n enabled: false,\n text: 'Axis Title',\n fontStyle: undefined,\n fontWeight: BOLD,\n fontSize: 12,\n fontFamily: this.fontFamily,\n color: 'rgb(70, 70, 70)'\n },\n label: {\n fontStyle: undefined,\n fontWeight: undefined,\n fontSize: 12,\n fontFamily: this.fontFamily,\n padding: 5,\n rotation: undefined,\n color: 'rgb(87, 87, 87)',\n formatter: undefined,\n autoRotate: false\n },\n line: {\n width: 1,\n color: 'rgb(195, 195, 195)'\n },\n tick: {\n width: 1,\n size: 6,\n color: 'rgb(195, 195, 195)'\n },\n gridStyle: [{\n stroke: 'rgb(219, 219, 219)',\n lineDash: [4, 2]\n }],\n crossLines: {\n enabled: false,\n fill: 'rgb(187,221,232)',\n stroke: 'rgb(70,162,192)',\n label: {\n enabled: false,\n fontStyle: undefined,\n fontWeight: undefined,\n fontSize: 12,\n fontFamily: this.fontFamily,\n padding: 5,\n color: 'rgb(87, 87, 87)',\n rotation: undefined\n }\n }\n };\n };\n\n ChartTheme.getSeriesDefaults = function () {\n return {\n tooltip: {\n enabled: true,\n renderer: undefined\n },\n visible: true,\n showInLegend: true,\n cursor: 'default',\n highlightStyle: {\n item: {\n fill: 'yellow',\n fillOpacity: 1\n },\n series: {\n dimOpacity: 1\n }\n }\n };\n };\n\n ChartTheme.getBarSeriesDefaults = function () {\n return __assign$q(__assign$q({}, this.getSeriesDefaults()), {\n flipXY: false,\n fillOpacity: 1,\n strokeOpacity: 1,\n xKey: '',\n xName: '',\n normalizedTo: undefined,\n strokeWidth: 1,\n lineDash: [0],\n lineDashOffset: 0,\n label: {\n enabled: false,\n fontStyle: undefined,\n fontWeight: undefined,\n fontSize: 12,\n fontFamily: this.fontFamily,\n color: 'rgb(70, 70, 70)',\n formatter: undefined,\n placement: INSIDE\n },\n shadow: {\n enabled: false,\n color: 'rgba(0, 0, 0, 0.5)',\n xOffset: 3,\n yOffset: 3,\n blur: 5\n }\n });\n };\n\n ChartTheme.getLineSeriesDefaults = function () {\n var seriesDefaults = this.getSeriesDefaults();\n return __assign$q(__assign$q({}, seriesDefaults), {\n tooltip: __assign$q(__assign$q({}, seriesDefaults.tooltip), {\n format: undefined\n })\n });\n };\n\n ChartTheme.getCartesianSeriesMarkerDefaults = function () {\n return {\n enabled: true,\n shape: 'circle',\n size: 6,\n maxSize: 30,\n strokeWidth: 1,\n formatter: undefined\n };\n };\n\n ChartTheme.getChartDefaults = function () {\n return {\n background: {\n visible: true,\n fill: 'white'\n },\n padding: {\n top: 20,\n right: 20,\n bottom: 20,\n left: 20\n },\n title: {\n enabled: false,\n text: 'Title',\n fontStyle: undefined,\n fontWeight: BOLD,\n fontSize: 16,\n fontFamily: this.fontFamily,\n color: 'rgb(70, 70, 70)'\n },\n subtitle: {\n enabled: false,\n text: 'Subtitle',\n fontStyle: undefined,\n fontWeight: undefined,\n fontSize: 12,\n fontFamily: this.fontFamily,\n color: 'rgb(140, 140, 140)'\n },\n legend: {\n enabled: true,\n position: RIGHT,\n spacing: 20,\n item: {\n paddingX: 16,\n paddingY: 8,\n marker: {\n shape: undefined,\n size: 15,\n strokeWidth: 1,\n padding: 8\n },\n label: {\n color: 'black',\n fontStyle: undefined,\n fontWeight: undefined,\n fontSize: 12,\n fontFamily: this.fontFamily,\n formatter: undefined\n }\n },\n reverseOrder: false\n },\n tooltip: {\n enabled: true,\n tracking: true,\n delay: 0,\n class: Chart.defaultTooltipClass\n }\n };\n };\n\n ChartTheme.prototype.createChartConfigPerSeries = function (config) {\n var typeToAliases = {\n cartesian: ChartTheme.cartesianSeriesTypes,\n polar: ChartTheme.polarSeriesTypes,\n hierarchy: ChartTheme.hierarchySeriesTypes,\n groupedCategory: []\n };\n Object.entries(typeToAliases).forEach(function (_a) {\n var _b = __read$m(_a, 2),\n type = _b[0],\n aliases = _b[1];\n\n aliases.forEach(function (alias) {\n if (!config[alias]) {\n config[alias] = deepMerge$1({}, config[type], mergeOptions);\n }\n });\n });\n return config;\n };\n\n ChartTheme.prototype.getConfig = function (path, defaultValue) {\n var value = getValue(this.config, path, defaultValue);\n\n if (Array.isArray(value)) {\n return deepMerge$1([], value, mergeOptions);\n }\n\n if (isObject(value)) {\n return deepMerge$1({}, value, mergeOptions);\n }\n\n return value;\n };\n /**\n * Meant to be overridden in subclasses. For example:\n * ```\n * getDefaults() {\n * const subclassDefaults = { ... };\n * return this.mergeWithParentDefaults(subclassDefaults);\n * }\n * ```\n */\n\n\n ChartTheme.prototype.getDefaults = function () {\n return deepMerge$1({}, ChartTheme.defaults, mergeOptions);\n };\n\n ChartTheme.prototype.mergeWithParentDefaults = function (parentDefaults, defaults) {\n return deepMerge$1(parentDefaults, defaults, mergeOptions);\n };\n\n ChartTheme.fontFamily = 'Verdana, sans-serif';\n ChartTheme.cartesianDefaults = __assign$q(__assign$q({}, ChartTheme.getChartDefaults()), {\n axes: {\n number: __assign$q({}, ChartTheme.getAxisDefaults()),\n log: __assign$q(__assign$q({}, ChartTheme.getAxisDefaults()), {\n base: 10\n }),\n category: __assign$q(__assign$q({}, ChartTheme.getAxisDefaults()), {\n label: __assign$q(__assign$q({}, ChartTheme.getAxisDefaults().label), {\n autoRotate: true\n })\n }),\n groupedCategory: __assign$q({}, ChartTheme.getAxisDefaults()),\n time: __assign$q({}, ChartTheme.getAxisDefaults())\n },\n series: {\n column: __assign$q(__assign$q({}, ChartTheme.getBarSeriesDefaults()), {\n flipXY: false\n }),\n bar: __assign$q(__assign$q({}, ChartTheme.getBarSeriesDefaults()), {\n flipXY: true\n }),\n line: __assign$q(__assign$q({}, ChartTheme.getLineSeriesDefaults()), {\n title: undefined,\n xKey: '',\n xName: '',\n yKey: '',\n yName: '',\n strokeWidth: 2,\n strokeOpacity: 1,\n lineDash: [0],\n lineDashOffset: 0,\n marker: __assign$q(__assign$q({}, ChartTheme.getCartesianSeriesMarkerDefaults()), {\n fillOpacity: 1,\n strokeOpacity: 1\n }),\n label: {\n enabled: false,\n fontStyle: undefined,\n fontWeight: undefined,\n fontSize: 12,\n fontFamily: ChartTheme.fontFamily,\n color: 'rgb(70, 70, 70)',\n formatter: undefined\n }\n }),\n scatter: __assign$q(__assign$q({}, ChartTheme.getSeriesDefaults()), {\n title: undefined,\n xKey: '',\n yKey: '',\n sizeKey: undefined,\n labelKey: undefined,\n xName: '',\n yName: '',\n sizeName: 'Size',\n labelName: 'Label',\n strokeWidth: 2,\n fillOpacity: 1,\n strokeOpacity: 1,\n marker: __assign$q({}, ChartTheme.getCartesianSeriesMarkerDefaults()),\n label: {\n enabled: false,\n fontStyle: undefined,\n fontWeight: undefined,\n fontSize: 12,\n fontFamily: ChartTheme.fontFamily,\n color: 'rgb(70, 70, 70)'\n }\n }),\n area: __assign$q(__assign$q({}, ChartTheme.getSeriesDefaults()), {\n xKey: '',\n xName: '',\n normalizedTo: undefined,\n fillOpacity: 0.8,\n strokeOpacity: 1,\n strokeWidth: 2,\n lineDash: [0],\n lineDashOffset: 0,\n shadow: {\n enabled: false,\n color: 'rgba(0, 0, 0, 0.5)',\n xOffset: 3,\n yOffset: 3,\n blur: 5\n },\n marker: __assign$q(__assign$q({}, ChartTheme.getCartesianSeriesMarkerDefaults()), {\n fillOpacity: 1,\n strokeOpacity: 1,\n enabled: false\n }),\n label: {\n enabled: false,\n fontStyle: undefined,\n fontWeight: undefined,\n fontSize: 12,\n fontFamily: ChartTheme.fontFamily,\n color: 'rgb(70, 70, 70)',\n formatter: undefined\n }\n }),\n histogram: __assign$q(__assign$q({}, ChartTheme.getSeriesDefaults()), {\n xKey: '',\n yKey: '',\n xName: '',\n yName: '',\n strokeWidth: 1,\n fillOpacity: 1,\n strokeOpacity: 1,\n lineDash: [0],\n lineDashOffset: 0,\n areaPlot: false,\n bins: undefined,\n aggregation: 'sum',\n label: {\n enabled: false,\n fontStyle: undefined,\n fontWeight: undefined,\n fontSize: 12,\n fontFamily: ChartTheme.fontFamily,\n color: 'rgb(70, 70, 70)',\n formatter: undefined\n },\n shadow: {\n enabled: true,\n color: 'rgba(0, 0, 0, 0.5)',\n xOffset: 0,\n yOffset: 0,\n blur: 5\n }\n })\n },\n navigator: {\n enabled: false,\n height: 30,\n mask: {\n fill: '#999999',\n stroke: '#999999',\n strokeWidth: 1,\n fillOpacity: 0.2\n },\n minHandle: {\n fill: '#f2f2f2',\n stroke: '#999999',\n strokeWidth: 1,\n width: 8,\n height: 16,\n gripLineGap: 2,\n gripLineLength: 8\n },\n maxHandle: {\n fill: '#f2f2f2',\n stroke: '#999999',\n strokeWidth: 1,\n width: 8,\n height: 16,\n gripLineGap: 2,\n gripLineLength: 8\n }\n }\n });\n ChartTheme.polarDefaults = __assign$q(__assign$q({}, ChartTheme.getChartDefaults()), {\n series: {\n pie: __assign$q(__assign$q({}, ChartTheme.getSeriesDefaults()), {\n title: {\n enabled: true,\n text: '',\n fontStyle: undefined,\n fontWeight: 'bold',\n fontSize: 14,\n fontFamily: ChartTheme.fontFamily,\n color: 'rgb(70, 70, 70)'\n },\n angleKey: '',\n angleName: '',\n radiusKey: undefined,\n radiusName: undefined,\n labelKey: undefined,\n labelName: undefined,\n label: {\n enabled: true,\n fontStyle: undefined,\n fontWeight: undefined,\n fontSize: 12,\n fontFamily: ChartTheme.fontFamily,\n color: 'rgb(70, 70, 70)',\n offset: 3,\n minAngle: 20\n },\n callout: {\n length: 10,\n strokeWidth: 2\n },\n fillOpacity: 1,\n strokeOpacity: 1,\n strokeWidth: 1,\n lineDash: [0],\n lineDashOffset: 0,\n rotation: 0,\n outerRadiusOffset: 0,\n innerRadiusOffset: 0,\n shadow: {\n enabled: false,\n color: 'rgba(0, 0, 0, 0.5)',\n xOffset: 3,\n yOffset: 3,\n blur: 5\n }\n })\n }\n });\n ChartTheme.hierarchyDefaults = __assign$q(__assign$q({}, ChartTheme.getChartDefaults()), {\n series: {\n treemap: __assign$q(__assign$q({}, ChartTheme.getSeriesDefaults()), {\n showInLegend: false,\n labelKey: 'label',\n sizeKey: 'size',\n colorKey: 'color',\n colorDomain: [-5, 5],\n colorRange: ['#cb4b3f', '#6acb64'],\n colorParents: false,\n gradient: true,\n nodePadding: 2,\n title: {\n enabled: true,\n color: 'white',\n fontStyle: undefined,\n fontWeight: 'bold',\n fontSize: 12,\n fontFamily: 'Verdana, sans-serif',\n padding: 15\n },\n subtitle: {\n enabled: true,\n color: 'white',\n fontStyle: undefined,\n fontWeight: undefined,\n fontSize: 9,\n fontFamily: 'Verdana, sans-serif',\n padding: 13\n },\n labels: {\n large: {\n enabled: true,\n fontStyle: undefined,\n fontWeight: 'bold',\n fontSize: 18,\n fontFamily: 'Verdana, sans-serif',\n color: 'white'\n },\n medium: {\n enabled: true,\n fontStyle: undefined,\n fontWeight: 'bold',\n fontSize: 14,\n fontFamily: 'Verdana, sans-serif',\n color: 'white'\n },\n small: {\n enabled: true,\n fontStyle: undefined,\n fontWeight: 'bold',\n fontSize: 10,\n fontFamily: 'Verdana, sans-serif',\n color: 'white'\n },\n color: {\n enabled: true,\n fontStyle: undefined,\n fontWeight: undefined,\n fontSize: 12,\n fontFamily: 'Verdana, sans-serif',\n color: 'white'\n }\n }\n })\n }\n });\n ChartTheme.defaults = {\n cartesian: ChartTheme.cartesianDefaults,\n groupedCategory: ChartTheme.cartesianDefaults,\n polar: ChartTheme.polarDefaults,\n hierarchy: ChartTheme.hierarchyDefaults\n };\n ChartTheme.cartesianSeriesTypes = ['line', 'area', 'bar', 'column', 'scatter', 'histogram'];\n ChartTheme.polarSeriesTypes = ['pie'];\n ChartTheme.hierarchySeriesTypes = ['treemap'];\n ChartTheme.seriesTypes = ChartTheme.cartesianSeriesTypes.concat(ChartTheme.polarSeriesTypes).concat(ChartTheme.hierarchySeriesTypes);\n return ChartTheme;\n}();\n\nvar __extends$1Z = undefined && undefined.__extends || function () {\n var _extendStatics95 = function extendStatics(d, b) {\n _extendStatics95 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics95(d, b);\n };\n\n return function (d, b) {\n _extendStatics95(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$p = undefined && undefined.__assign || function () {\n __assign$p = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$p.apply(this, arguments);\n};\n\nvar DarkTheme =\n/** @class */\nfunction (_super) {\n __extends$1Z(DarkTheme, _super);\n\n function DarkTheme(options) {\n return _super.call(this, options) || this;\n }\n\n DarkTheme.prototype.getDefaults = function () {\n var fontColor = 'rgb(200, 200, 200)';\n var mutedFontColor = 'rgb(150, 150, 150)';\n var axisDefaults = {\n title: {\n color: fontColor\n },\n label: {\n color: fontColor\n },\n gridStyle: [{\n stroke: 'rgb(88, 88, 88)',\n lineDash: [4, 2]\n }]\n };\n var seriesLabelDefaults = {\n label: {\n color: fontColor\n }\n };\n var chartAxesDefaults = {\n axes: {\n number: __assign$p({}, axisDefaults),\n category: __assign$p({}, axisDefaults),\n time: __assign$p({}, axisDefaults)\n }\n };\n var chartDefaults = {\n background: {\n fill: 'rgb(34, 38, 41)'\n },\n title: {\n color: fontColor\n },\n subtitle: {\n color: mutedFontColor\n },\n legend: {\n item: {\n label: {\n color: fontColor\n }\n }\n }\n };\n return this.mergeWithParentDefaults(_super.prototype.getDefaults.call(this), {\n cartesian: __assign$p(__assign$p(__assign$p({}, chartDefaults), chartAxesDefaults), {\n series: {\n bar: __assign$p({}, seriesLabelDefaults),\n column: __assign$p({}, seriesLabelDefaults),\n histogram: __assign$p({}, seriesLabelDefaults)\n }\n }),\n groupedCategory: __assign$p(__assign$p(__assign$p({}, chartDefaults), chartAxesDefaults), {\n series: {\n bar: __assign$p({}, seriesLabelDefaults),\n column: __assign$p({}, seriesLabelDefaults),\n histogram: __assign$p({}, seriesLabelDefaults)\n }\n }),\n polar: __assign$p(__assign$p({}, chartDefaults), {\n series: {\n pie: __assign$p(__assign$p({}, seriesLabelDefaults), {\n title: {\n color: fontColor\n }\n })\n }\n }),\n hierarchy: __assign$p(__assign$p({}, chartDefaults), {\n series: {\n treemap: {\n title: {\n color: fontColor\n },\n subtitle: {\n color: mutedFontColor\n },\n labels: {\n large: {\n color: fontColor\n },\n medium: {\n color: fontColor\n },\n small: {\n color: fontColor\n },\n color: {\n color: fontColor\n }\n }\n }\n }\n })\n });\n };\n\n return DarkTheme;\n}(ChartTheme);\n\nvar __extends$1Y = undefined && undefined.__extends || function () {\n var _extendStatics96 = function extendStatics(d, b) {\n _extendStatics96 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics96(d, b);\n };\n\n return function (d, b) {\n _extendStatics96(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar palette$7 = {\n fills: ['#f44336', '#e91e63', '#9c27b0', '#673ab7', '#3f51b5', '#2196f3', '#03a9f4', '#00bcd4', '#009688', '#4caf50', '#8bc34a', '#cddc39', '#ffeb3b', '#ffc107', '#ff9800', '#ff5722'],\n strokes: ['#ab2f26', '#a31545', '#6d1b7b', '#482980', '#2c397f', '#1769aa', '#0276ab', '#008494', '#00695f', '#357a38', '#618834', '#909a28', '#b3a429', '#b38705', '#b36a00', '#b33d18']\n};\n\nvar MaterialLight =\n/** @class */\nfunction (_super) {\n __extends$1Y(MaterialLight, _super);\n\n function MaterialLight() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n MaterialLight.prototype.getPalette = function () {\n return palette$7;\n };\n\n return MaterialLight;\n}(ChartTheme);\n\nvar __extends$1X = undefined && undefined.__extends || function () {\n var _extendStatics97 = function extendStatics(d, b) {\n _extendStatics97 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics97(d, b);\n };\n\n return function (d, b) {\n _extendStatics97(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar palette$6 = {\n fills: ['#f44336', '#e91e63', '#9c27b0', '#673ab7', '#3f51b5', '#2196f3', '#03a9f4', '#00bcd4', '#009688', '#4caf50', '#8bc34a', '#cddc39', '#ffeb3b', '#ffc107', '#ff9800', '#ff5722'],\n strokes: ['#ab2f26', '#a31545', '#6d1b7b', '#482980', '#2c397f', '#1769aa', '#0276ab', '#008494', '#00695f', '#357a38', '#618834', '#909a28', '#b3a429', '#b38705', '#b36a00', '#b33d18']\n};\n\nvar MaterialDark =\n/** @class */\nfunction (_super) {\n __extends$1X(MaterialDark, _super);\n\n function MaterialDark() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n MaterialDark.prototype.getPalette = function () {\n return palette$6;\n };\n\n return MaterialDark;\n}(DarkTheme);\n\nvar __extends$1W = undefined && undefined.__extends || function () {\n var _extendStatics98 = function extendStatics(d, b) {\n _extendStatics98 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics98(d, b);\n };\n\n return function (d, b) {\n _extendStatics98(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar palette$5 = {\n fills: ['#c16068', '#a2bf8a', '#ebcc87', '#80a0c3', '#b58dae', '#85c0d1'],\n strokes: ['#874349', '#718661', '#a48f5f', '#5a7088', '#7f637a', '#5d8692']\n};\n\nvar PastelLight =\n/** @class */\nfunction (_super) {\n __extends$1W(PastelLight, _super);\n\n function PastelLight() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n PastelLight.prototype.getPalette = function () {\n return palette$5;\n };\n\n return PastelLight;\n}(ChartTheme);\n\nvar __extends$1V = undefined && undefined.__extends || function () {\n var _extendStatics99 = function extendStatics(d, b) {\n _extendStatics99 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics99(d, b);\n };\n\n return function (d, b) {\n _extendStatics99(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar palette$4 = {\n fills: ['#c16068', '#a2bf8a', '#ebcc87', '#80a0c3', '#b58dae', '#85c0d1'],\n strokes: ['#874349', '#718661', '#a48f5f', '#5a7088', '#7f637a', '#5d8692']\n};\n\nvar PastelDark =\n/** @class */\nfunction (_super) {\n __extends$1V(PastelDark, _super);\n\n function PastelDark() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n PastelDark.prototype.getPalette = function () {\n return palette$4;\n };\n\n return PastelDark;\n}(DarkTheme);\n\nvar __extends$1U = undefined && undefined.__extends || function () {\n var _extendStatics100 = function extendStatics(d, b) {\n _extendStatics100 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics100(d, b);\n };\n\n return function (d, b) {\n _extendStatics100(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar palette$3 = {\n fills: ['#febe76', '#ff7979', '#badc58', '#f9ca23', '#f0932b', '#eb4c4b', '#6ab04c', '#7ed6df', '#e056fd', '#686de0'],\n strokes: ['#b28553', '#b35555', '#829a3e', '#ae8d19', '#a8671e', '#a43535', '#4a7b35', '#58969c', '#9d3cb1', '#494c9d']\n};\n\nvar SolarLight =\n/** @class */\nfunction (_super) {\n __extends$1U(SolarLight, _super);\n\n function SolarLight() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n SolarLight.prototype.getPalette = function () {\n return palette$3;\n };\n\n return SolarLight;\n}(ChartTheme);\n\nvar __extends$1T = undefined && undefined.__extends || function () {\n var _extendStatics101 = function extendStatics(d, b) {\n _extendStatics101 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics101(d, b);\n };\n\n return function (d, b) {\n _extendStatics101(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar palette$2 = {\n fills: ['#febe76', '#ff7979', '#badc58', '#f9ca23', '#f0932b', '#eb4c4b', '#6ab04c', '#7ed6df', '#e056fd', '#686de0'],\n strokes: ['#b28553', '#b35555', '#829a3e', '#ae8d19', '#a8671e', '#a43535', '#4a7b35', '#58969c', '#9d3cb1', '#494c9d']\n};\n\nvar SolarDark =\n/** @class */\nfunction (_super) {\n __extends$1T(SolarDark, _super);\n\n function SolarDark() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n SolarDark.prototype.getPalette = function () {\n return palette$2;\n };\n\n return SolarDark;\n}(DarkTheme);\n\nvar __extends$1S = undefined && undefined.__extends || function () {\n var _extendStatics102 = function extendStatics(d, b) {\n _extendStatics102 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics102(d, b);\n };\n\n return function (d, b) {\n _extendStatics102(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar palette$1 = {\n fills: ['#5BC0EB', '#FDE74C', '#9BC53D', '#E55934', '#FA7921', '#fa3081'],\n strokes: ['#4086a4', '#b1a235', '#6c8a2b', '#a03e24', '#af5517', '#af225a']\n};\n\nvar VividLight =\n/** @class */\nfunction (_super) {\n __extends$1S(VividLight, _super);\n\n function VividLight() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n VividLight.prototype.getPalette = function () {\n return palette$1;\n };\n\n return VividLight;\n}(ChartTheme);\n\nvar __extends$1R = undefined && undefined.__extends || function () {\n var _extendStatics103 = function extendStatics(d, b) {\n _extendStatics103 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics103(d, b);\n };\n\n return function (d, b) {\n _extendStatics103(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar palette = {\n fills: ['#5BC0EB', '#FDE74C', '#9BC53D', '#E55934', '#FA7921', '#fa3081'],\n strokes: ['#4086a4', '#b1a235', '#6c8a2b', '#a03e24', '#af5517', '#af225a']\n};\n\nvar VividDark =\n/** @class */\nfunction (_super) {\n __extends$1R(VividDark, _super);\n\n function VividDark() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n VividDark.prototype.getPalette = function () {\n return palette;\n };\n\n return VividDark;\n}(DarkTheme);\n\nvar __assign$o = undefined && undefined.__assign || function () {\n __assign$o = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$o.apply(this, arguments);\n};\n\nvar lightTheme = new ChartTheme();\nvar darkTheme = new DarkTheme();\nvar lightThemes = {\n undefined: lightTheme,\n null: lightTheme,\n 'ag-default': lightTheme,\n 'ag-material': new MaterialLight(),\n 'ag-pastel': new PastelLight(),\n 'ag-solar': new SolarLight(),\n 'ag-vivid': new VividLight()\n};\nvar darkThemes = {\n undefined: darkTheme,\n null: darkTheme,\n 'ag-default-dark': darkTheme,\n 'ag-material-dark': new MaterialDark(),\n 'ag-pastel-dark': new PastelDark(),\n 'ag-solar-dark': new SolarDark(),\n 'ag-vivid-dark': new VividDark()\n};\n\nvar themes = __assign$o(__assign$o({}, darkThemes), lightThemes);\n\nfunction getChartTheme(value) {\n if (value instanceof ChartTheme) {\n return value;\n }\n\n var stockTheme = themes[value];\n\n if (stockTheme) {\n return stockTheme;\n }\n\n value = value;\n\n if (value.baseTheme || value.overrides || value.palette) {\n var baseTheme = getChartTheme(value.baseTheme);\n return new baseTheme.constructor(value);\n }\n\n return lightTheme;\n}\n\nfunction getIntegratedChartTheme(value) {\n var theme = getChartTheme(value);\n var themeConfig = theme.config;\n\n for (var chartType in themeConfig) {\n var axes = themeConfig[chartType].axes;\n\n for (var axis in axes) {\n delete axes[axis].crossLines;\n }\n }\n\n return theme;\n}\n\nvar __extends$1Q = undefined && undefined.__extends || function () {\n var _extendStatics104 = function extendStatics(d, b) {\n _extendStatics104 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics104(d, b);\n };\n\n return function (d, b) {\n _extendStatics104(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __read$l = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar identity$3 = function identity$3(x) {\n return x;\n};\n\nvar LogScale =\n/** @class */\nfunction (_super) {\n __extends$1Q(LogScale, _super);\n\n function LogScale() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'log';\n _this._domain = [1, 10];\n _this.baseLog = identity$3; // takes a log with base `base` of `x`\n\n _this.basePow = identity$3; // raises `base` to the power of `x`\n\n _this._base = 10;\n return _this;\n }\n\n LogScale.prototype.setDomain = function (values) {\n var df = values[0];\n var dl = values[values.length - 1];\n\n if (df === 0 || dl === 0 || df < 0 && dl > 0 || df > 0 && dl < 0) {\n console.warn('Log scale domain should not start at, end at or cross zero.');\n\n if (df === 0 && dl > 0) {\n df = Number.EPSILON;\n } else if (dl === 0 && df < 0) {\n dl = -Number.EPSILON;\n } else if (df < 0 && dl > 0) {\n if (Math.abs(dl) >= Math.abs(df)) {\n df = Number.EPSILON;\n } else {\n dl = -Number.EPSILON;\n }\n } else if (df > 0 && dl < 0) {\n if (Math.abs(dl) >= Math.abs(df)) {\n df = -Number.EPSILON;\n } else {\n dl = Number.EPSILON;\n }\n }\n\n values = values.slice();\n values[0] = df;\n values[values.length - 1] = dl;\n }\n\n _super.prototype.setDomain.call(this, values);\n };\n\n LogScale.prototype.getDomain = function () {\n return _super.prototype.getDomain.call(this);\n };\n\n Object.defineProperty(LogScale.prototype, \"base\", {\n get: function get() {\n return this._base;\n },\n set: function set(value) {\n if (this._base !== value) {\n this._base = value;\n this.rescale();\n }\n },\n enumerable: true,\n configurable: true\n });\n\n LogScale.prototype.rescale = function () {\n var base = this.base;\n var baseLog = LogScale.makeLogFn(base);\n var basePow = LogScale.makePowFn(base);\n\n if (this.domain[0] < 0) {\n baseLog = this.reflect(baseLog);\n basePow = this.reflect(basePow);\n\n this.transform = function (x) {\n return -Math.log(-x);\n };\n\n this.untransform = function (x) {\n return -Math.exp(-x);\n };\n } else {\n this.transform = function (x) {\n return Math.log(x);\n };\n\n this.untransform = function (x) {\n return Math.exp(x);\n };\n }\n\n this.baseLog = baseLog;\n this.basePow = basePow;\n\n _super.prototype.rescale.call(this);\n };\n /**\n * For example, if `f` is `Math.log10`, we have\n *\n * f(100) == 2\n * f(-100) == NaN\n * rf = reflect(f)\n * rf(-100) == -2\n *\n * @param f\n */\n\n\n LogScale.prototype.reflect = function (f) {\n return function (x) {\n return -f(-x);\n };\n };\n\n LogScale.prototype.nice = function () {\n var _a, _b;\n\n var domain = this.domain;\n var i0 = 0;\n var i1 = domain.length - 1;\n var x0 = domain[i0];\n var x1 = domain[i1];\n\n if (x1 < x0) {\n _a = __read$l([i1, i0], 2), i0 = _a[0], i1 = _a[1];\n _b = __read$l([x1, x0], 2), x0 = _b[0], x1 = _b[1];\n } // For example, for base == 10:\n // [ 50, 900] becomes [ 10, 1000 ]\n\n\n domain[i0] = this.basePow(Math.floor(this.baseLog(x0)));\n domain[i1] = this.basePow(Math.ceil(this.baseLog(x1)));\n this.domain = domain;\n };\n\n LogScale.pow10 = function (x) {\n return isFinite(x) ? +('1e' + x) // to avoid precision issues, e.g. Math.pow(10, -4) is not 0.0001\n : x < 0 ? 0 : x;\n };\n\n LogScale.makePowFn = function (base) {\n if (base === 10) {\n return LogScale.pow10;\n }\n\n if (base === Math.E) {\n return Math.exp;\n }\n\n return function (x) {\n return Math.pow(base, x);\n };\n }; // Make a log function witn an arbitrary base or return a native function if exists.\n\n\n LogScale.makeLogFn = function (base) {\n if (base === Math.E) {\n return Math.log;\n }\n\n if (base === 10) {\n return Math.log10;\n }\n\n if (base === 2) {\n return Math.log2;\n }\n\n var logBase = Math.log(base);\n return function (x) {\n return Math.log(x) / logBase;\n };\n };\n\n LogScale.prototype.ticks = function (count) {\n var _a;\n\n if (count === void 0) {\n count = 10;\n }\n\n var n = count == null ? 10 : +count;\n var base = this.base;\n var domain = this.domain;\n var d0 = domain[0];\n var d1 = domain[domain.length - 1];\n var isReversed = d1 < d0;\n\n if (isReversed) {\n _a = __read$l([d1, d0], 2), d0 = _a[0], d1 = _a[1];\n }\n\n var p0 = this.baseLog(d0);\n var p1 = this.baseLog(d1);\n var z = []; // if `base` is an integer and delta in order of magnitudes is less than n\n\n if (!(base % 1) && p1 - p0 < n) {\n // For example, if n == 10, base == 10 and domain == [10^2, 10^6]\n // then p1 - p0 < n == true.\n p0 = Math.round(p0) - 1;\n p1 = Math.round(p1) + 1;\n\n if (d0 > 0) {\n for (; p0 < p1; ++p0) {\n for (var k = 1, p = this.basePow(p0); k < base; ++k) {\n var t = p * k; // The `t` checks are needed because we expanded the [p0, p1] by 1 in each direction.\n\n if (t < d0) continue;\n if (t > d1) break;\n z.push(t);\n }\n }\n } else {\n for (; p0 < p1; ++p0) {\n for (var k = base - 1, p = this.basePow(p0); k >= 1; --k) {\n var t = p * k;\n if (t < d0) continue;\n if (t > d1) break;\n z.push(t);\n }\n }\n }\n\n if (z.length * 2 < n) {\n z = ticks$1(d0, d1, n);\n }\n } else {\n // For example, if n == 4, base == 10 and domain == [10^2, 10^6]\n // then p1 - p0 < n == false.\n // `ticks` return [2, 3, 4, 5, 6], then mapped to [10^2, 10^3, 10^4, 10^5, 10^6].\n z = ticks$1(p0, p1, Math.min(p1 - p0, n)).map(this.basePow);\n }\n\n return isReversed ? z.reverse() : z;\n };\n\n LogScale.prototype.tickFormat = function (_a) {\n var _this = this;\n\n var count = _a.count,\n specifier = _a.specifier;\n var base = this.base;\n\n if (specifier == null) {\n specifier = base === 10 ? '.0e' : ',';\n }\n\n if (typeof specifier !== 'function') {\n specifier = format$1(specifier);\n }\n\n if (count === Infinity) {\n return specifier;\n }\n\n if (count == null) {\n count = 10;\n }\n\n var k = Math.max(1, base * count / this.ticks().length);\n return function (d) {\n var i = d / _this.basePow(Math.round(_this.baseLog(d)));\n\n if (i * base < base - 0.5) {\n i *= base;\n }\n\n return i <= k ? specifier(d) : '';\n };\n };\n\n return LogScale;\n}(ContinuousScale$1);\n\nvar __extends$1P = undefined && undefined.__extends || function () {\n var _extendStatics105 = function extendStatics(d, b) {\n _extendStatics105 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics105(d, b);\n };\n\n return function (d, b) {\n _extendStatics105(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar LogAxis =\n/** @class */\nfunction (_super) {\n __extends$1P(LogAxis, _super);\n\n function LogAxis() {\n var _this = _super.call(this) || this;\n\n _this.scale = new LogScale();\n _this.scale.clamper = clamper$1;\n return _this;\n }\n\n Object.defineProperty(LogAxis.prototype, \"base\", {\n get: function get() {\n return this.scale.base;\n },\n set: function set(value) {\n this.scale.base = value;\n },\n enumerable: true,\n configurable: true\n });\n LogAxis.className = 'LogAxis';\n LogAxis.type = 'log';\n return LogAxis;\n}(NumberAxis);\n\nvar __assign$n = undefined && undefined.__assign || function () {\n __assign$n = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$n.apply(this, arguments);\n};\n\nvar __read$k = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$8 = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$k(arguments[i]));\n }\n\n return ar;\n};\n\nvar __values$8 = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n/**\n * Performs a JSON-diff between a source and target JSON structure.\n *\n * On a per property basis, takes the target property value where:\n * - types are different.\n * - type is primitive.\n * - type is array and length or content have changed.\n *\n * Recurses for object types.\n *\n * @param source starting point for diff\n * @param target target for diff vs. source\n * @param opts.stringify properties to stringify for comparison purposes\n *\n * @returns `null` if no differences, or an object with the subset of properties that have changed.\n */\n\n\nfunction jsonDiff(source, target, opts) {\n var e_1, _a;\n\n var _b = (opts || {}).stringify,\n stringify = _b === void 0 ? [] : _b;\n var sourceType = classify(source);\n var targetType = classify(target);\n\n if (targetType === 'array') {\n if (sourceType !== 'array' || source.length !== target.length) {\n return __spread$8(target);\n }\n\n if (target.some(function (targetElement, i) {\n var _a;\n\n return jsonDiff((_a = source) === null || _a === void 0 ? void 0 : _a[i], targetElement) != null;\n })) {\n return __spread$8(target);\n }\n\n return null;\n }\n\n if (targetType === 'primitive') {\n if (sourceType !== 'primitive') {\n return __assign$n({}, target);\n }\n\n if (source !== target) {\n return target;\n }\n\n return null;\n }\n\n var lhs = source || {};\n var rhs = target || {};\n var allProps = new Set(__spread$8(Object.keys(lhs), Object.keys(rhs)));\n var propsChangedCount = 0;\n var result = {};\n\n var _loop_1 = function _loop_1(prop) {\n // Cheap-and-easy equality check.\n if (lhs[prop] === rhs[prop]) {\n return \"continue\";\n }\n\n var take = function take(v) {\n result[prop] = v;\n propsChangedCount++;\n };\n\n if (stringify.includes(prop)) {\n if (JSON.stringify(lhs[prop] !== JSON.stringify(rhs[prop]))) {\n take(rhs[prop]);\n }\n\n return \"continue\";\n }\n\n var lhsType = classify(lhs[prop]);\n var rhsType = classify(rhs[prop]);\n\n if (lhsType !== rhsType) {\n // Types changed, just take RHS.\n take(rhs[prop]);\n return \"continue\";\n }\n\n if (rhsType === 'primitive' || rhsType === null) {\n take(rhs[prop]);\n return \"continue\";\n }\n\n if (rhsType === 'array' && lhs[prop].length !== rhs[prop].length) {\n // Arrays are different sizes, so just take target array.\n take(rhs[prop]);\n return \"continue\";\n }\n\n if (rhsType === 'class-instance') {\n // Don't try to do anything tricky with array diffs!\n take(rhs[prop]);\n return \"continue\";\n }\n\n if (rhsType === 'function' && lhs[prop] !== rhs[prop]) {\n take(rhs[prop]);\n return \"continue\";\n }\n\n var diff = jsonDiff(lhs[prop], rhs[prop], {\n stringify: stringify\n });\n\n if (diff !== null) {\n take(diff);\n }\n };\n\n try {\n for (var allProps_1 = __values$8(allProps), allProps_1_1 = allProps_1.next(); !allProps_1_1.done; allProps_1_1 = allProps_1.next()) {\n var prop = allProps_1_1.value;\n\n _loop_1(prop);\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (allProps_1_1 && !allProps_1_1.done && (_a = allProps_1.return)) _a.call(allProps_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n return propsChangedCount === 0 ? null : result;\n}\n/**\n * Special value used by `jsonMerge` to signal that a property should be removed from the merged\n * output.\n */\n\n\nvar DELETE = Symbol('');\nvar NOT_SPECIFIED = Symbol('');\n/**\n * Merge together the provide JSON object structures, with the precedence of application running\n * from higher indexes to lower indexes.\n *\n * Deep-clones all objects to avoid mutation of the inputs changing the output object. For arrays,\n * just performs a deep-clone of the entire array, no merging of elements attempted.\n *\n * @param json all json objects to merge\n *\n * @returns the combination of all of the json inputs\n */\n\nfunction jsonMerge() {\n var e_2, _a;\n\n var json = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n json[_i] = arguments[_i];\n }\n\n var jsonTypes = json.map(function (v) {\n return classify(v);\n });\n\n if (jsonTypes.some(function (v) {\n return v === 'array';\n })) {\n // Clone final array.\n var finalValue = json[json.length - 1];\n\n if (finalValue instanceof Array) {\n return finalValue.map(function (v) {\n var type = classify(v);\n return type === 'array' ? jsonMerge([], v) : type === 'object' ? jsonMerge({}, v) : v;\n });\n }\n\n return finalValue;\n }\n\n var result = {};\n var props = new Set(json.map(function (v) {\n return v != null ? Object.keys(v) : [];\n }).reduce(function (r, n) {\n return r.concat(n);\n }, []));\n\n var _loop_2 = function _loop_2(nextProp) {\n var values = json.map(function (j) {\n return j != null && nextProp in j ? j[nextProp] : NOT_SPECIFIED;\n }).filter(function (v) {\n return v !== NOT_SPECIFIED;\n });\n\n if (values.length === 0) {\n return \"continue\";\n }\n\n var lastValue = values[values.length - 1];\n\n if (lastValue === DELETE) {\n return \"continue\";\n }\n\n var types = values.map(function (v) {\n return classify(v);\n });\n var type = types[0];\n\n if (types.some(function (t) {\n return t !== type && t !== null;\n })) {\n // Short-circuit if mismatching types.\n result[nextProp] = lastValue;\n return \"continue\";\n }\n\n if (type === 'array' || type === 'object') {\n result[nextProp] = jsonMerge.apply(void 0, __spread$8(values));\n } else {\n // Just directly assign/overwrite.\n result[nextProp] = lastValue;\n }\n };\n\n try {\n for (var props_1 = __values$8(props), props_1_1 = props_1.next(); !props_1_1.done; props_1_1 = props_1.next()) {\n var nextProp = props_1_1.value;\n\n _loop_2(nextProp);\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally {\n try {\n if (props_1_1 && !props_1_1.done && (_a = props_1.return)) _a.call(props_1);\n } finally {\n if (e_2) throw e_2.error;\n }\n }\n\n return result;\n}\n/**\n * Recursively apply a JSON object into a class-hierarchy, optionally instantiating certain classes\n * by property name.\n *\n * @param target to apply source JSON properties into\n * @param source to be applied\n * @param params.path path for logging/error purposes, to aid with pinpointing problems\n * @param params.matcherPath path for pattern matching, to lookup allowedTypes override.\n * @param params.skip property names to skip from the source\n * @param params.constructors dictionary of property name to class constructors for properties that\n * require object construction\n * @param params.allowedTypes overrides by path for allowed property types\n */\n\n\nfunction jsonApply(target, source, params) {\n if (params === void 0) {\n params = {};\n }\n\n var _a, _b, _c, _d;\n\n var _e = params.path,\n path = _e === void 0 ? undefined : _e,\n _f = params.matcherPath,\n matcherPath = _f === void 0 ? path ? path.replace(/(\\[[0-9+]{1,}\\])/i, '[]') : undefined : _f,\n _g = params.skip,\n skip = _g === void 0 ? [] : _g,\n _h = params.constructors,\n constructors = _h === void 0 ? {} : _h,\n _j = params.allowedTypes,\n allowedTypes = _j === void 0 ? {} : _j;\n\n if (target == null) {\n throw new Error(\"AG Charts - target is uninitialised: \" + (path || ''));\n }\n\n if (source == null) {\n return target;\n }\n\n var targetType = classify(target);\n\n var _loop_3 = function _loop_3(property) {\n var propertyMatcherPath = \"\" + (matcherPath ? matcherPath + '.' : '') + property;\n\n if (skip.indexOf(propertyMatcherPath) >= 0) {\n return \"continue\";\n }\n\n var newValue = source[property];\n var propertyPath = \"\" + (path ? path + '.' : '') + property;\n var targetAny = target;\n var targetClass = targetAny.constructor;\n var currentValue = targetAny[property];\n var ctr = (_a = constructors[property], _a !== null && _a !== void 0 ? _a : constructors[propertyMatcherPath]);\n\n try {\n var currentValueType = classify(currentValue);\n var newValueType = classify(newValue);\n\n if (targetType === 'class-instance' && !(property in target || targetAny.hasOwnProperty(property))) {\n console.warn(\"AG Charts - unable to set [\" + propertyPath + \"] in \" + ((_b = targetClass) === null || _b === void 0 ? void 0 : _b.name) + \" - property is unknown\");\n return \"continue\";\n }\n\n var allowableTypes = allowedTypes[propertyMatcherPath] || [currentValueType];\n\n if (currentValueType === 'class-instance' && newValueType === 'object') {// Allowed, this is the common case! - do not error.\n } else if (currentValueType != null && newValueType != null && !allowableTypes.includes(newValueType)) {\n console.warn(\"AG Charts - unable to set [\" + propertyPath + \"] in \" + ((_c = targetClass) === null || _c === void 0 ? void 0 : _c.name) + \" - can't apply type of [\" + newValueType + \"], allowed types are: [\" + allowableTypes + \"]\");\n return \"continue\";\n }\n\n if (newValueType === 'array') {\n ctr = ctr !== null && ctr !== void 0 ? ctr : constructors[propertyMatcherPath + \"[]\"];\n\n if (ctr != null) {\n var newValueArray = newValue;\n targetAny[property] = newValueArray.map(function (v) {\n return jsonApply(new ctr(), v, __assign$n(__assign$n({}, params), {\n path: propertyPath,\n matcherPath: propertyMatcherPath + '[]'\n }));\n });\n } else {\n targetAny[property] = newValue;\n }\n } else if (newValueType === 'class-instance') {\n targetAny[property] = newValue;\n } else if (newValueType === 'object') {\n if (currentValue != null) {\n jsonApply(currentValue, newValue, __assign$n(__assign$n({}, params), {\n path: propertyPath,\n matcherPath: propertyMatcherPath\n }));\n } else if (ctr != null) {\n targetAny[property] = jsonApply(new ctr(), newValue, __assign$n(__assign$n({}, params), {\n path: propertyPath,\n matcherPath: propertyMatcherPath\n }));\n } else {\n targetAny[property] = newValue;\n }\n } else {\n targetAny[property] = newValue;\n }\n } catch (error) {\n console.warn(\"AG Charts - unable to set [\" + propertyPath + \"] in [\" + ((_d = targetClass) === null || _d === void 0 ? void 0 : _d.name) + \"]; nested error is: \" + error.message);\n return \"continue\";\n }\n };\n\n for (var property in source) {\n _loop_3(property);\n }\n\n return target;\n}\n/**\n * Walk the given JSON object graphs, invoking the visit() callback for every object encountered.\n * Arrays are descended into without a callback, however their elements will have the visit()\n * callback invoked if they are objects.\n *\n * @param json to traverse\n * @param visit callback for each non-primitive and non-array object found\n * @param opts.skip property names to skip when walking\n * @param jsons to traverse in parallel\n */\n\n\nfunction jsonWalk(json, visit, opts) {\n var jsons = [];\n\n for (var _i = 3; _i < arguments.length; _i++) {\n jsons[_i - 3] = arguments[_i];\n }\n\n var _a;\n\n var jsonType = classify(json);\n var skip = opts.skip || [];\n\n if (jsonType === 'array') {\n json.forEach(function (element, index) {\n var _a;\n\n jsonWalk.apply(void 0, __spread$8([element, visit, opts], (_a = jsons) === null || _a === void 0 ? void 0 : _a.map(function (o) {\n var _a;\n\n return (_a = o) === null || _a === void 0 ? void 0 : _a[index];\n })));\n });\n return;\n } else if (jsonType !== 'object') {\n return;\n }\n\n visit.apply(void 0, __spread$8([jsonType, json], jsons));\n\n var _loop_4 = function _loop_4(property) {\n if (skip.indexOf(property) >= 0) {\n return \"continue\";\n }\n\n var value = json[property];\n var otherValues = (_a = jsons) === null || _a === void 0 ? void 0 : _a.map(function (o) {\n var _a;\n\n return (_a = o) === null || _a === void 0 ? void 0 : _a[property];\n });\n var valueType = classify(value);\n\n if (valueType === 'object' || valueType === 'array') {\n jsonWalk.apply(void 0, __spread$8([value, visit, opts], otherValues));\n }\n };\n\n for (var property in json) {\n _loop_4(property);\n }\n}\n/**\n * Classify the type of a value to assist with handling for merge purposes.\n */\n\n\nfunction classify(value) {\n if (value == null) {\n return null;\n } else if (value instanceof HTMLElement) {\n return 'primitive';\n } else if (value instanceof Array) {\n return 'array';\n } else if (value instanceof Date) {\n return 'primitive';\n } else if (typeof value === 'object' && value.constructor === Object) {\n return 'object';\n } else if (typeof value === 'function') {\n return 'function';\n } else if (typeof value === 'object' && value.constructor != null) {\n return 'class-instance';\n }\n\n return 'primitive';\n}\n\nvar DEFAULT_CARTESIAN_CHART_OVERRIDES = {\n type: 'cartesian',\n axes: [{\n type: NumberAxis.type,\n position: ChartAxisPosition.Left\n }, {\n type: CategoryAxis.type,\n position: ChartAxisPosition.Bottom\n }]\n};\nvar DEFAULT_BAR_CHART_OVERRIDES = {\n axes: [{\n type: 'number',\n position: ChartAxisPosition.Bottom\n }, {\n type: 'category',\n position: ChartAxisPosition.Left\n }]\n};\nvar DEFAULT_SCATTER_HISTOGRAM_CHART_OVERRIDES = {\n axes: [{\n type: 'number',\n position: ChartAxisPosition.Bottom\n }, {\n type: 'number',\n position: ChartAxisPosition.Left\n }]\n};\n\nvar __assign$m = undefined && undefined.__assign || function () {\n __assign$m = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$m.apply(this, arguments);\n};\n\nfunction transform(input, transforms) {\n var result = {};\n\n for (var p in input) {\n var t = transforms[p] || function (x) {\n return x;\n };\n\n result[p] = t(input[p], input);\n }\n\n return result;\n}\n\nfunction is2dArray(input) {\n return input != null && input instanceof Array && input[0] instanceof Array;\n}\n\nfunction yNamesMapping(p, src) {\n if (p == null) {\n return {};\n }\n\n if (!(p instanceof Array)) {\n return p;\n }\n\n var yKeys = src.yKeys;\n\n if (yKeys == null || is2dArray(yKeys)) {\n throw new Error('AG Charts - yNames and yKeys mismatching configuration.');\n }\n\n var result = {};\n yKeys.forEach(function (k, i) {\n result[k] = p[i];\n });\n return result;\n}\n\nfunction yKeysMapping(p, src) {\n if (p == null) {\n return [[]];\n }\n\n if (is2dArray(p)) {\n return p;\n }\n\n return src.grouped ? p.map(function (v) {\n return [v];\n }) : [p];\n}\n\nfunction labelMapping(p) {\n if (p == null) {\n return undefined;\n }\n\n var placement = p.placement;\n return __assign$m(__assign$m({}, p), {\n placement: placement === 'inside' ? BarLabelPlacement.Inside : placement === 'outside' ? BarLabelPlacement.Outside : undefined\n });\n}\n\nfunction barSeriesTransform(options) {\n var result = __assign$m(__assign$m({}, options), {\n yKeys: options.yKeys || [options.yKey]\n });\n\n delete result['yKey'];\n return transform(result, {\n yNames: yNamesMapping,\n yKeys: yKeysMapping,\n label: labelMapping\n });\n}\n\nfunction identityTransform(input) {\n return input;\n}\n\nvar SERIES_TRANSFORMS = {\n area: identityTransform,\n bar: barSeriesTransform,\n column: barSeriesTransform,\n histogram: identityTransform,\n line: identityTransform,\n pie: identityTransform,\n scatter: identityTransform,\n treemap: identityTransform\n};\n\nfunction applySeriesTransform(options) {\n var type = options.type;\n var transform = SERIES_TRANSFORMS[type || 'line'];\n return transform(options);\n}\n\nvar __assign$l = undefined && undefined.__assign || function () {\n __assign$l = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$l.apply(this, arguments);\n};\n\nvar __values$7 = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar __read$j = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$7 = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$j(arguments[i]));\n }\n\n return ar;\n};\n/**\n * Groups the series options objects if they are of type `column` or `bar` and places them in an array at the index where the first instance of this series type was found.\n * Returns an array of arrays containing the ordered and grouped series options objects.\n */\n\n\nfunction groupSeriesByType(seriesOptions) {\n var e_1, _a;\n\n var indexMap = {};\n var result = [];\n\n try {\n for (var seriesOptions_1 = __values$7(seriesOptions), seriesOptions_1_1 = seriesOptions_1.next(); !seriesOptions_1_1.done; seriesOptions_1_1 = seriesOptions_1.next()) {\n var s = seriesOptions_1_1.value;\n\n if (s.type !== 'column' && s.type !== 'bar' && (s.type !== 'area' || s.stacked !== true)) {\n // No need to use index for these cases.\n result.push([s]);\n continue;\n }\n\n var seriesType = s.type || 'line';\n var groupingKey = s.stacked ? 'stacked' : s.grouped ? 'grouped' : s.yKeys ? 'stacked' : 'grouped';\n var indexKey = seriesType + \"-\" + s.xKey + \"-\" + groupingKey;\n\n if (indexMap[indexKey] == null) {\n // Add indexed array to result on first addition.\n indexMap[indexKey] = [];\n result.push(indexMap[indexKey]);\n }\n\n indexMap[indexKey].push(s);\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (seriesOptions_1_1 && !seriesOptions_1_1.done && (_a = seriesOptions_1.return)) _a.call(seriesOptions_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n return result;\n}\n\nvar FAIL = Symbol();\nvar SKIP = Symbol();\n\nvar ARRAY_REDUCER = function ARRAY_REDUCER(prop) {\n return function (result, next) {\n var _a;\n\n return result.concat.apply(result, __spread$7((_a = next[prop], _a !== null && _a !== void 0 ? _a : [])));\n };\n};\n\nvar BOOLEAN_OR_REDUCER = function BOOLEAN_OR_REDUCER(prop, defaultValue) {\n return function (result, next) {\n if (typeof next[prop] === 'boolean') {\n return (result !== null && result !== void 0 ? result : false) || next[prop];\n }\n\n return result !== null && result !== void 0 ? result : defaultValue;\n };\n};\n\nvar DEFAULTING_ARRAY_REDUCER = function DEFAULTING_ARRAY_REDUCER(prop, defaultValue) {\n return function (result, next, idx, length) {\n var _a;\n\n var sparse = defaultValue === SKIP || defaultValue === FAIL;\n var nextValue = (_a = next[prop], _a !== null && _a !== void 0 ? _a : defaultValue);\n\n if (nextValue === FAIL) {\n throw new Error(\"AG Charts - missing value for property [\" + prop + \"] on series config.\");\n } else if (nextValue === SKIP) {\n return result;\n }\n\n if (result.length === 0 && !sparse) {\n // Pre-populate values on first invocation as we will only be invoked for series with a\n // value specified.\n while (result.length < length) {\n result = result.concat(defaultValue);\n }\n }\n\n if (!sparse) {\n result[idx] = nextValue;\n return result;\n }\n\n return result.concat(nextValue);\n };\n};\n\nvar YKEYS_REDUCER = function YKEYS_REDUCER(prop, activationValue) {\n return function (result, next) {\n if (next[prop] === activationValue) {\n return result.concat.apply(result, __spread$7(next.yKey ? [next.yKey] : next.yKeys));\n }\n\n return result;\n };\n};\n\nvar REDUCE_CONFIG = {\n yKeys: {\n outputProp: 'yKeys',\n reducer: ARRAY_REDUCER('yKeys'),\n start: []\n },\n fills: {\n outputProp: 'fills',\n reducer: ARRAY_REDUCER('fills'),\n start: []\n },\n strokes: {\n outputProp: 'strokes',\n reducer: ARRAY_REDUCER('strokes'),\n start: []\n },\n yNames: {\n outputProp: 'yNames',\n reducer: ARRAY_REDUCER('yNames'),\n start: []\n },\n hideInChart: {\n outputProp: 'hideInChart',\n reducer: ARRAY_REDUCER('hideInChart'),\n start: []\n },\n hideInLegend: {\n outputProp: 'hideInLegend',\n reducer: ARRAY_REDUCER('hideInLegend'),\n start: []\n },\n yKey: {\n outputProp: 'yKeys',\n reducer: DEFAULTING_ARRAY_REDUCER('yKey', SKIP),\n start: []\n },\n fill: {\n outputProp: 'fills',\n reducer: DEFAULTING_ARRAY_REDUCER('fill', SKIP),\n start: []\n },\n stroke: {\n outputProp: 'strokes',\n reducer: DEFAULTING_ARRAY_REDUCER('stroke', SKIP),\n start: []\n },\n yName: {\n outputProp: 'yNames',\n reducer: DEFAULTING_ARRAY_REDUCER('yName', SKIP),\n start: []\n },\n visible: {\n outputProp: 'visibles',\n reducer: DEFAULTING_ARRAY_REDUCER('visible', true),\n start: []\n },\n grouped: {\n outputProp: 'grouped',\n reducer: BOOLEAN_OR_REDUCER('grouped'),\n seriesType: ['bar', 'column'],\n start: undefined\n },\n showInLegend: {\n outputProp: 'hideInLegend',\n reducer: YKEYS_REDUCER('showInLegend', false),\n seriesType: ['bar', 'column'],\n start: []\n }\n};\n/**\n * Takes an array of bar or area series options objects and returns a single object with the combined area series options.\n */\n\nfunction reduceSeries(series) {\n var options = {};\n series.forEach(function (s, idx) {\n Object.keys(s).forEach(function (prop) {\n var _a;\n\n var reducerConfig = REDUCE_CONFIG[prop];\n\n var defaultReduce = function defaultReduce() {\n var _a, _b;\n\n options[prop] = (_b = (_a = s[prop], _a !== null && _a !== void 0 ? _a : options[prop]), _b !== null && _b !== void 0 ? _b : undefined);\n };\n\n if (!reducerConfig) {\n defaultReduce();\n return;\n }\n\n var outputProp = reducerConfig.outputProp,\n reducer = reducerConfig.reducer,\n _b = reducerConfig.start,\n start = _b === void 0 ? undefined : _b,\n _c = reducerConfig.seriesType,\n seriesType = _c === void 0 ? [s.type] : _c;\n\n if (!seriesType.includes(s.type)) {\n defaultReduce();\n return;\n }\n\n var result = reducer((_a = options[outputProp], _a !== null && _a !== void 0 ? _a : start), s, idx, series.length);\n\n if (result !== undefined) {\n options[outputProp] = result;\n }\n });\n });\n return options;\n}\n/**\n * Transforms provided series options array into an array containing series options which are compatible with standalone charts series options.\n */\n\n\nfunction processSeriesOptions(seriesOptions) {\n var e_2, _a;\n\n var result = [];\n var preprocessed = seriesOptions.map(function (series) {\n // Change the default for bar/columns when yKey is used to be grouped rather than stacked.\n if ((series.type === 'bar' || series.type === 'column') && series.yKey != null && !series.stacked) {\n return __assign$l(__assign$l({}, series), {\n grouped: series.grouped != null ? series.grouped : true\n });\n }\n\n return series;\n });\n\n try {\n for (var _b = __values$7(groupSeriesByType(preprocessed)), _c = _b.next(); !_c.done; _c = _b.next()) {\n var series = _c.value;\n\n switch (series[0].type) {\n case 'column':\n case 'bar':\n case 'area':\n result.push(reduceSeries(series));\n break;\n\n case 'line':\n default:\n if (series.length > 1) {\n console.warn('AG Charts - unexpected grouping of series type: ' + series[0].type);\n }\n\n result.push(series[0]);\n break;\n }\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally {\n if (e_2) throw e_2.error;\n }\n }\n\n return result;\n}\n\nvar __assign$k = undefined && undefined.__assign || function () {\n __assign$k = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$k.apply(this, arguments);\n};\n\nvar __values$6 = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar __read$i = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$6 = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$i(arguments[i]));\n }\n\n return ar;\n};\n\nfunction optionsType(input) {\n var _a, _b, _c, _d;\n\n return _d = (_a = input.type, _a !== null && _a !== void 0 ? _a : (_c = (_b = input.series) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.type), _d !== null && _d !== void 0 ? _d : 'line';\n}\n\nfunction isAgCartesianChartOptions(input) {\n var specifiedType = optionsType(input);\n\n if (specifiedType == null) {\n return true;\n }\n\n switch (specifiedType) {\n case 'cartesian':\n case 'area':\n case 'bar':\n case 'column':\n case 'groupedCategory':\n case 'histogram':\n case 'line':\n case 'scatter':\n return true;\n\n default:\n return false;\n }\n}\n\nfunction isAgHierarchyChartOptions(input) {\n var specifiedType = optionsType(input);\n\n if (specifiedType == null) {\n return false;\n }\n\n switch (input.type) {\n case 'hierarchy': // fall-through - hierarchy and treemap are synonyms.\n\n case 'treemap':\n return true;\n\n default:\n return false;\n }\n}\n\nfunction isAgPolarChartOptions(input) {\n var specifiedType = optionsType(input);\n\n if (specifiedType == null) {\n return false;\n }\n\n switch (input.type) {\n case 'polar': // fall-through - polar and pie are synonyms.\n\n case 'pie':\n return true;\n\n default:\n return false;\n }\n}\n\nfunction isSeriesOptionType(input) {\n if (input == null) {\n return false;\n }\n\n return ['line', 'bar', 'column', 'histogram', 'scatter', 'area', 'pie', 'treemap'].indexOf(input) >= 0;\n}\n\nfunction countArrayElements(input) {\n var e_1, _a;\n\n var count = 0;\n\n try {\n for (var input_1 = __values$6(input), input_1_1 = input_1.next(); !input_1_1.done; input_1_1 = input_1.next()) {\n var next = input_1_1.value;\n\n if (next instanceof Array) {\n count += countArrayElements(next);\n }\n\n if (next != null) {\n count++;\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (input_1_1 && !input_1_1.done && (_a = input_1.return)) _a.call(input_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n return count;\n}\n\nfunction takeColours(context, colours, maxCount) {\n var result = [];\n\n for (var count = 0; count < maxCount; count++) {\n result.push(colours[(count + context.colourIndex) % colours.length]);\n }\n\n return result;\n}\n\nfunction prepareOptions(newOptions) {\n var fallbackOptions = [];\n\n for (var _i = 1; _i < arguments.length; _i++) {\n fallbackOptions[_i - 1] = arguments[_i];\n }\n\n var _a;\n\n var options = fallbackOptions == null ? newOptions : jsonMerge.apply(void 0, __spread$6(fallbackOptions, [newOptions]));\n sanityCheckOptions(options); // Determine type and ensure it's explicit in the options config.\n\n var userSuppliedOptionsType = options.type;\n var type = optionsType(options);\n options = __assign$k(__assign$k({}, options), {\n type: type\n });\n var defaultSeriesType = isAgCartesianChartOptions(options) ? 'line' : isAgHierarchyChartOptions(options) ? 'treemap' : isAgPolarChartOptions(options) ? 'pie' : 'line';\n var defaultOverrides = type === 'bar' ? DEFAULT_BAR_CHART_OVERRIDES : type === 'scatter' ? DEFAULT_SCATTER_HISTOGRAM_CHART_OVERRIDES : type === 'histogram' ? DEFAULT_SCATTER_HISTOGRAM_CHART_OVERRIDES : isAgCartesianChartOptions(options) ? DEFAULT_CARTESIAN_CHART_OVERRIDES : {};\n\n var _b = prepareMainOptions(defaultOverrides, options),\n context = _b.context,\n mergedOptions = _b.mergedOptions,\n axesThemes = _b.axesThemes,\n seriesThemes = _b.seriesThemes; // Special cases where we have arrays of elements which need their own defaults.\n // Apply series themes before calling processSeriesOptions() as it reduces and renames some\n // properties, and in that case then cannot correctly have themes applied.\n\n\n mergedOptions.series = processSeriesOptions((mergedOptions.series || []).map(function (s) {\n var type = s.type ? s.type : isSeriesOptionType(userSuppliedOptionsType) ? userSuppliedOptionsType : defaultSeriesType;\n return jsonMerge(seriesThemes[type] || {}, __assign$k(__assign$k({}, s), {\n type: type\n }));\n })).map(function (s) {\n return prepareSeries(context, s);\n });\n\n if (isAgCartesianChartOptions(mergedOptions)) {\n mergedOptions.axes = (_a = mergedOptions.axes) === null || _a === void 0 ? void 0 : _a.map(function (a) {\n var type = a.type || 'number';\n\n var axis = __assign$k(__assign$k({}, a), {\n type: type\n });\n\n var axesTheme = jsonMerge(axesThemes[type], axesThemes[type][a.position || 'unknown'] || {});\n return prepareAxis(axis, axesTheme);\n });\n }\n\n prepareEnabledOptions(options, mergedOptions);\n return mergedOptions;\n}\n\nfunction sanityCheckOptions(options) {\n var _a, _b;\n\n if ((_a = options.series) === null || _a === void 0 ? void 0 : _a.some(function (s) {\n return s.yKeys != null && s.yKey != null;\n })) {\n console.warn('AG Charts - series options yKeys and yKey are mutually exclusive, please only use yKey for future compatibility.');\n }\n\n if ((_b = options.series) === null || _b === void 0 ? void 0 : _b.some(function (s) {\n return s.yNames != null && s.yName != null;\n })) {\n console.warn('AG Charts - series options yNames and yName are mutually exclusive, please only use yName for future compatibility.');\n }\n}\n\nfunction prepareMainOptions(defaultOverrides, options) {\n var _a = prepareTheme(options),\n theme = _a.theme,\n cleanedTheme = _a.cleanedTheme,\n axesThemes = _a.axesThemes,\n seriesThemes = _a.seriesThemes;\n\n var context = {\n colourIndex: 0,\n palette: theme.palette\n };\n var mergedOptions = jsonMerge(defaultOverrides, cleanedTheme, options);\n return {\n context: context,\n mergedOptions: mergedOptions,\n axesThemes: axesThemes,\n seriesThemes: seriesThemes\n };\n}\n\nfunction prepareTheme(options) {\n var theme = getChartTheme(options.theme);\n var themeConfig = theme.getConfig(optionsType(options) || 'cartesian');\n return {\n theme: theme,\n axesThemes: themeConfig['axes'] || {},\n seriesThemes: themeConfig['series'] || {},\n cleanedTheme: jsonMerge(themeConfig, {\n axes: DELETE,\n series: DELETE\n })\n };\n}\n\nfunction prepareSeries(context, input) {\n var defaults = [];\n\n for (var _i = 2; _i < arguments.length; _i++) {\n defaults[_i - 2] = arguments[_i];\n }\n\n var paletteOptions = calculateSeriesPalette(context, input); // Part of the options interface, but not directly consumed by the series implementations.\n\n var removeOptions = {\n stacked: DELETE\n };\n var mergedResult = jsonMerge.apply(void 0, __spread$6(defaults, [paletteOptions, input, removeOptions]));\n return applySeriesTransform(mergedResult);\n}\n\nfunction calculateSeriesPalette(context, input) {\n var paletteOptions = {};\n var _a = context.palette,\n fills = _a.fills,\n strokes = _a.strokes;\n var inputAny = input;\n var colourCount = countArrayElements(inputAny['yKeys'] || []) || 1; // Defaults to 1 if no yKeys.\n\n switch (input.type) {\n case 'pie':\n colourCount = Math.max(fills.length, strokes.length);\n // fall-through - only colourCount varies for `pie`.\n\n case 'area':\n case 'bar':\n case 'column':\n paletteOptions.fills = takeColours(context, fills, colourCount);\n paletteOptions.strokes = takeColours(context, strokes, colourCount);\n break;\n\n case 'histogram':\n paletteOptions.fill = takeColours(context, fills, 1)[0];\n paletteOptions.stroke = takeColours(context, strokes, 1)[0];\n break;\n\n case 'scatter':\n paletteOptions.marker = {\n stroke: takeColours(context, strokes, 1)[0],\n fill: takeColours(context, fills, 1)[0]\n };\n break;\n\n case 'line':\n paletteOptions.stroke = takeColours(context, fills, 1)[0];\n paletteOptions.marker = {\n stroke: takeColours(context, strokes, 1)[0],\n fill: takeColours(context, fills, 1)[0]\n };\n break;\n\n case 'treemap':\n break;\n\n default:\n throw new Error('AG Charts - unknown series type: ' + input.type);\n }\n\n context.colourIndex += colourCount;\n return paletteOptions;\n}\n\nfunction prepareAxis(axis, axisTheme) {\n // Remove redundant theme overload keys.\n var removeOptions = {\n top: DELETE,\n bottom: DELETE,\n left: DELETE,\n right: DELETE\n }; // Special cross lines case where we have an arrays of cross line elements which need their own defaults.\n\n if (axis.crossLines) {\n if (!Array.isArray(axis.crossLines)) {\n console.warn('AG Charts - axis[].crossLines should be an array.');\n axis.crossLines = [];\n }\n\n var crossLinesTheme_1 = axisTheme.crossLines;\n axis.crossLines = axis.crossLines.map(function (crossLine) {\n return jsonMerge(crossLinesTheme_1, crossLine);\n });\n }\n\n var cleanTheme = {\n crossLines: DELETE\n };\n return jsonMerge(axisTheme, cleanTheme, axis, removeOptions);\n}\n\nfunction prepareEnabledOptions(options, mergedOptions) {\n // Set `enabled: true` for all option objects where the user has provided values.\n jsonWalk(options, function (_, userOpts, mergedOpts) {\n if (!mergedOpts) {\n return;\n }\n\n if ('enabled' in mergedOpts && userOpts.enabled == null) {\n mergedOpts.enabled = true;\n }\n }, {\n skip: ['data']\n }, mergedOptions);\n}\n\nvar horizontalCrosslineTranslationDirections = {\n top: {\n xTranslationDirection: 0,\n yTranslationDirection: -1\n },\n bottom: {\n xTranslationDirection: 0,\n yTranslationDirection: 1\n },\n left: {\n xTranslationDirection: -1,\n yTranslationDirection: 0\n },\n right: {\n xTranslationDirection: 1,\n yTranslationDirection: 0\n },\n topLeft: {\n xTranslationDirection: 1,\n yTranslationDirection: -1\n },\n topRight: {\n xTranslationDirection: -1,\n yTranslationDirection: -1\n },\n bottomLeft: {\n xTranslationDirection: 1,\n yTranslationDirection: 1\n },\n bottomRight: {\n xTranslationDirection: -1,\n yTranslationDirection: 1\n },\n inside: {\n xTranslationDirection: 0,\n yTranslationDirection: 0\n },\n insideLeft: {\n xTranslationDirection: 1,\n yTranslationDirection: 0\n },\n insideRight: {\n xTranslationDirection: -1,\n yTranslationDirection: 0\n },\n insideTop: {\n xTranslationDirection: 0,\n yTranslationDirection: 1\n },\n insideBottom: {\n xTranslationDirection: 0,\n yTranslationDirection: -1\n },\n insideTopLeft: {\n xTranslationDirection: 1,\n yTranslationDirection: 1\n },\n insideBottomLeft: {\n xTranslationDirection: 1,\n yTranslationDirection: -1\n },\n insideTopRight: {\n xTranslationDirection: -1,\n yTranslationDirection: 1\n },\n insideBottomRight: {\n xTranslationDirection: -1,\n yTranslationDirection: -1\n }\n};\nvar verticalCrossLineTranslationDirections = {\n top: {\n xTranslationDirection: 1,\n yTranslationDirection: 0\n },\n bottom: {\n xTranslationDirection: -1,\n yTranslationDirection: 0\n },\n left: {\n xTranslationDirection: 0,\n yTranslationDirection: -1\n },\n right: {\n xTranslationDirection: 0,\n yTranslationDirection: 1\n },\n topLeft: {\n xTranslationDirection: -1,\n yTranslationDirection: -1\n },\n topRight: {\n xTranslationDirection: -1,\n yTranslationDirection: 1\n },\n bottomLeft: {\n xTranslationDirection: 1,\n yTranslationDirection: -1\n },\n bottomRight: {\n xTranslationDirection: 1,\n yTranslationDirection: 1\n },\n inside: {\n xTranslationDirection: 0,\n yTranslationDirection: 0\n },\n insideLeft: {\n xTranslationDirection: 0,\n yTranslationDirection: 1\n },\n insideRight: {\n xTranslationDirection: 0,\n yTranslationDirection: -1\n },\n insideTop: {\n xTranslationDirection: -1,\n yTranslationDirection: 0\n },\n insideBottom: {\n xTranslationDirection: 1,\n yTranslationDirection: 0\n },\n insideTopLeft: {\n xTranslationDirection: -1,\n yTranslationDirection: 1\n },\n insideBottomLeft: {\n xTranslationDirection: 1,\n yTranslationDirection: 1\n },\n insideTopRight: {\n xTranslationDirection: -1,\n yTranslationDirection: -1\n },\n insideBottomRight: {\n xTranslationDirection: 1,\n yTranslationDirection: -1\n }\n};\n\nvar calculateLabelTranslation = function calculateLabelTranslation(_a) {\n var yDirection = _a.yDirection,\n _b = _a.padding,\n padding = _b === void 0 ? 0 : _b,\n position = _a.position,\n bbox = _a.bbox;\n\n var _c;\n\n var crossLineTranslationDirections = yDirection ? horizontalCrosslineTranslationDirections : verticalCrossLineTranslationDirections;\n\n var _d = (_c = crossLineTranslationDirections[position], _c !== null && _c !== void 0 ? _c : crossLineTranslationDirections['top']),\n xTranslationDirection = _d.xTranslationDirection,\n yTranslationDirection = _d.yTranslationDirection;\n\n var w = yDirection ? bbox.width : bbox.height;\n var h = yDirection ? bbox.height : bbox.width;\n var xTranslation = xTranslationDirection * (padding + w / 2);\n var yTranslation = yTranslationDirection * (padding + h / 2);\n return {\n xTranslation: xTranslation,\n yTranslation: yTranslation\n };\n};\n\nvar POSITION_TOP_COORDINATES = function POSITION_TOP_COORDINATES(_a) {\n var yDirection = _a.yDirection,\n xEnd = _a.xEnd,\n yStart = _a.yStart,\n yEnd = _a.yEnd;\n\n if (yDirection) {\n return {\n x: xEnd / 2,\n y: !isNaN(yEnd) ? yEnd : yStart\n };\n } else {\n return {\n x: xEnd,\n y: !isNaN(yEnd) ? (yStart + yEnd) / 2 : yStart\n };\n }\n};\n\nvar POSITION_LEFT_COORDINATES = function POSITION_LEFT_COORDINATES(_a) {\n var yDirection = _a.yDirection,\n xStart = _a.xStart,\n xEnd = _a.xEnd,\n yStart = _a.yStart,\n yEnd = _a.yEnd;\n\n if (yDirection) {\n return {\n x: xStart,\n y: !isNaN(yEnd) ? (yStart + yEnd) / 2 : yStart\n };\n } else {\n return {\n x: xEnd / 2,\n y: yStart\n };\n }\n};\n\nvar POSITION_RIGHT_COORDINATES = function POSITION_RIGHT_COORDINATES(_a) {\n var yDirection = _a.yDirection,\n xEnd = _a.xEnd,\n yStart = _a.yStart,\n yEnd = _a.yEnd;\n\n if (yDirection) {\n return {\n x: xEnd,\n y: !isNaN(yEnd) ? (yStart + yEnd) / 2 : yStart\n };\n } else {\n return {\n x: xEnd / 2,\n y: !isNaN(yEnd) ? yEnd : yStart\n };\n }\n};\n\nvar POSITION_BOTTOM_COORDINATES = function POSITION_BOTTOM_COORDINATES(_a) {\n var yDirection = _a.yDirection,\n xStart = _a.xStart,\n xEnd = _a.xEnd,\n yStart = _a.yStart,\n yEnd = _a.yEnd;\n\n if (yDirection) {\n return {\n x: xEnd / 2,\n y: yStart\n };\n } else {\n return {\n x: xStart,\n y: !isNaN(yEnd) ? (yStart + yEnd) / 2 : yStart\n };\n }\n};\n\nvar POSITION_INSIDE_COORDINATES = function POSITION_INSIDE_COORDINATES(_a) {\n var xEnd = _a.xEnd,\n yStart = _a.yStart,\n yEnd = _a.yEnd;\n return {\n x: xEnd / 2,\n y: !isNaN(yEnd) ? (yStart + yEnd) / 2 : yStart\n };\n};\n\nvar POSITION_TOP_LEFT_COORDINATES = function POSITION_TOP_LEFT_COORDINATES(_a) {\n var yDirection = _a.yDirection,\n xStart = _a.xStart,\n xEnd = _a.xEnd,\n yStart = _a.yStart,\n yEnd = _a.yEnd;\n\n if (yDirection) {\n return {\n x: xStart / 2,\n y: !isNaN(yEnd) ? yEnd : yStart\n };\n } else {\n return {\n x: xEnd,\n y: yStart\n };\n }\n};\n\nvar POSITION_BOTTOM_LEFT_COORDINATES = function POSITION_BOTTOM_LEFT_COORDINATES(_a) {\n var xStart = _a.xStart,\n yStart = _a.yStart;\n return {\n x: xStart,\n y: yStart\n };\n};\n\nvar POSITION_TOP_RIGHT_COORDINATES = function POSITION_TOP_RIGHT_COORDINATES(_a) {\n var xEnd = _a.xEnd,\n yStart = _a.yStart,\n yEnd = _a.yEnd;\n return {\n x: xEnd,\n y: !isNaN(yEnd) ? yEnd : yStart\n };\n};\n\nvar POSITION_BOTTOM_RIGHT_COORDINATES = function POSITION_BOTTOM_RIGHT_COORDINATES(_a) {\n var yDirection = _a.yDirection,\n xStart = _a.xStart,\n xEnd = _a.xEnd,\n yStart = _a.yStart,\n yEnd = _a.yEnd;\n\n if (yDirection) {\n return {\n x: xEnd,\n y: yStart\n };\n } else {\n return {\n x: xStart,\n y: !isNaN(yEnd) ? yEnd : yStart\n };\n }\n};\n\nvar labeldDirectionHandling = {\n top: {\n c: POSITION_TOP_COORDINATES\n },\n bottom: {\n c: POSITION_BOTTOM_COORDINATES\n },\n left: {\n c: POSITION_LEFT_COORDINATES\n },\n right: {\n c: POSITION_RIGHT_COORDINATES\n },\n topLeft: {\n c: POSITION_TOP_LEFT_COORDINATES\n },\n topRight: {\n c: POSITION_TOP_RIGHT_COORDINATES\n },\n bottomLeft: {\n c: POSITION_BOTTOM_LEFT_COORDINATES\n },\n bottomRight: {\n c: POSITION_BOTTOM_RIGHT_COORDINATES\n },\n inside: {\n c: POSITION_INSIDE_COORDINATES\n },\n insideLeft: {\n c: POSITION_LEFT_COORDINATES\n },\n insideRight: {\n c: POSITION_RIGHT_COORDINATES\n },\n insideTop: {\n c: POSITION_TOP_COORDINATES\n },\n insideBottom: {\n c: POSITION_BOTTOM_COORDINATES\n },\n insideTopLeft: {\n c: POSITION_TOP_LEFT_COORDINATES\n },\n insideBottomLeft: {\n c: POSITION_BOTTOM_LEFT_COORDINATES\n },\n insideTopRight: {\n c: POSITION_TOP_RIGHT_COORDINATES\n },\n insideBottomRight: {\n c: POSITION_BOTTOM_RIGHT_COORDINATES\n }\n};\n\nvar __read$h = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar CrossLineLabel =\n/** @class */\nfunction () {\n function CrossLineLabel() {\n this.enabled = undefined;\n this.text = undefined;\n this.fontStyle = undefined;\n this.fontWeight = undefined;\n this.fontSize = 14;\n this.fontFamily = 'Verdana, sans-serif';\n /**\n * The padding between the label and the line.\n */\n\n this.padding = 5;\n /**\n * The color of the labels.\n */\n\n this.color = 'rgba(87, 87, 87, 1)';\n this.position = undefined;\n this.rotation = undefined;\n this.parallel = undefined;\n }\n\n return CrossLineLabel;\n}();\n\nvar CrossLine =\n/** @class */\nfunction () {\n function CrossLine() {\n this.id = createId$1(this);\n this.enabled = undefined;\n this.type = undefined;\n this.range = undefined;\n this.value = undefined;\n this.fill = undefined;\n this.fillOpacity = undefined;\n this.stroke = undefined;\n this.strokeWidth = undefined;\n this.strokeOpacity = undefined;\n this.lineDash = undefined;\n this.label = new CrossLineLabel();\n this.scale = undefined;\n this.gridLength = 0;\n this.sideFlag = -1;\n this.parallelFlipRotation = 0;\n this.regularFlipRotation = 0;\n this.direction = ChartAxisDirection.X;\n this.group = new Group$1({\n name: \"\" + this.id,\n layer: true,\n zIndex: CrossLine.LINE_LAYER_ZINDEX\n });\n this.crossLineLabel = new Text$1();\n this.crossLineLine = new Path$1();\n this.crossLineRange = new Path$1();\n this.labelPoint = undefined;\n this.fillData = undefined;\n this.strokeData = undefined;\n\n var _a = this,\n group = _a.group,\n crossLineLine = _a.crossLineLine,\n crossLineRange = _a.crossLineRange,\n crossLineLabel = _a.crossLineLabel;\n\n group.append([crossLineRange, crossLineLine, crossLineLabel]);\n crossLineLine.fill = undefined;\n crossLineLine.pointerEvents = PointerEvents$1.None;\n crossLineRange.pointerEvents = PointerEvents$1.None;\n }\n\n CrossLine.prototype.getZIndex = function (type) {\n if (type === void 0) {\n type = 'line';\n }\n\n if (type === 'range') {\n return CrossLine.RANGE_LAYER_ZINDEX;\n }\n\n return CrossLine.LINE_LAYER_ZINDEX;\n };\n\n CrossLine.prototype.update = function (visible) {\n if (!this.enabled || !this.type) {\n return;\n }\n\n this.group.visible = visible;\n\n if (!visible) {\n return;\n }\n\n this.group.zIndex = this.getZIndex(this.type);\n var dataCreated = this.createNodeData();\n\n if (!dataCreated) {\n this.group.visible = false;\n return;\n }\n\n this.updatePaths();\n };\n\n CrossLine.prototype.updatePaths = function () {\n this.updateLinePath();\n this.updateLineNode();\n\n if (this.type === 'range') {\n this.updateRangePath();\n this.updateRangeNode();\n }\n\n if (this.label.enabled) {\n this.updateLabel();\n this.positionLabel();\n }\n };\n\n CrossLine.prototype.createNodeData = function () {\n var _a, _b, _c, _d;\n\n var _e, _f;\n\n var _g = this,\n scale = _g.scale,\n gridLength = _g.gridLength,\n sideFlag = _g.sideFlag,\n direction = _g.direction,\n _h = _g.label.position,\n position = _h === void 0 ? 'top' : _h;\n\n if (!scale) {\n return false;\n }\n\n var isContinuous = scale instanceof ContinuousScale$1;\n var bandwidth = (_e = scale.bandwidth, _e !== null && _e !== void 0 ? _e : 0);\n var xStart, xEnd, yStart, yEnd, clampedYStart, clampedYEnd;\n this.fillData = {\n points: []\n };\n this.strokeData = {\n points: []\n };\n _a = __read$h([0, sideFlag * gridLength], 2), xStart = _a[0], xEnd = _a[1];\n _b = __read$h(this.getRange(), 2), yStart = _b[0], yEnd = _b[1];\n var isLine = false;\n\n if (yStart === undefined) {\n return false;\n } else if (yEnd === undefined) {\n isLine = true;\n }\n\n _c = __read$h([Number(scale.convert(yStart, isContinuous ? clamper$2 : undefined)), scale.convert(yEnd, isContinuous ? clamper$2 : undefined) + bandwidth], 2), clampedYStart = _c[0], clampedYEnd = _c[1];\n _d = __read$h([Number(scale.convert(yStart)), scale.convert(yEnd) + bandwidth], 2), yStart = _d[0], yEnd = _d[1];\n var isValidLine = yStart === clampedYStart;\n var isValidRange = yStart === clampedYStart || yEnd === clampedYEnd || clampedYStart !== clampedYEnd;\n\n if (isLine && !isValidLine || !isLine && !isValidRange) {\n return false;\n }\n\n this.strokeData.points.push({\n x: xStart,\n y: yStart\n }, {\n x: xEnd,\n y: yStart\n }, {\n x: xEnd,\n y: yEnd\n }, {\n x: xStart,\n y: yEnd\n });\n this.fillData.points.push({\n x: xStart,\n y: clampedYStart\n }, {\n x: xEnd,\n y: clampedYStart\n }, {\n x: xEnd,\n y: clampedYEnd\n }, {\n x: xStart,\n y: clampedYEnd\n });\n\n if (this.label.enabled) {\n var yDirection = direction === ChartAxisDirection.Y;\n var _j = (_f = labeldDirectionHandling[position], _f !== null && _f !== void 0 ? _f : {}).c,\n c = _j === void 0 ? POSITION_TOP_COORDINATES : _j;\n\n var _k = c({\n yDirection: yDirection,\n xStart: xStart,\n xEnd: xEnd,\n yStart: clampedYStart,\n yEnd: clampedYEnd\n }),\n labelX = _k.x,\n labelY = _k.y;\n\n this.labelPoint = {\n x: labelX,\n y: labelY\n };\n }\n\n return true;\n };\n\n CrossLine.prototype.updateLinePath = function () {\n var _a = this,\n crossLineLine = _a.crossLineLine,\n _b = _a.strokeData,\n strokeData = _b === void 0 ? {\n points: []\n } : _b;\n\n var pathMethods = ['moveTo', 'lineTo', 'moveTo', 'lineTo'];\n var points = strokeData.points;\n var path = crossLineLine.path;\n path.clear({\n trackChanges: true\n });\n pathMethods.forEach(function (method, i) {\n var _a = points[i],\n x = _a.x,\n y = _a.y;\n path[method](x, y);\n });\n crossLineLine.checkPathDirty();\n };\n\n CrossLine.prototype.updateLineNode = function () {\n var _a;\n\n var _b = this,\n crossLineLine = _b.crossLineLine,\n stroke = _b.stroke,\n strokeWidth = _b.strokeWidth,\n lineDash = _b.lineDash;\n\n crossLineLine.stroke = stroke;\n crossLineLine.strokeWidth = strokeWidth !== null && strokeWidth !== void 0 ? strokeWidth : 1;\n crossLineLine.opacity = (_a = this.strokeOpacity, _a !== null && _a !== void 0 ? _a : 1);\n crossLineLine.lineDash = lineDash;\n };\n\n CrossLine.prototype.updateRangeNode = function () {\n var _a = this,\n crossLineRange = _a.crossLineRange,\n fill = _a.fill,\n fillOpacity = _a.fillOpacity;\n\n crossLineRange.fill = fill;\n crossLineRange.opacity = fillOpacity !== null && fillOpacity !== void 0 ? fillOpacity : 1;\n };\n\n CrossLine.prototype.updateRangePath = function () {\n var _a = this,\n crossLineRange = _a.crossLineRange,\n _b = _a.fillData,\n fillData = _b === void 0 ? {\n points: []\n } : _b;\n\n var points = fillData.points;\n var path = crossLineRange.path;\n path.clear({\n trackChanges: true\n });\n points.forEach(function (point, i) {\n var x = point.x,\n y = point.y;\n path[i > 0 ? 'lineTo' : 'moveTo'](x, y);\n });\n path.closePath();\n crossLineRange.checkPathDirty();\n };\n\n CrossLine.prototype.updateLabel = function () {\n var _a = this,\n crossLineLabel = _a.crossLineLabel,\n label = _a.label;\n\n if (!label.text) {\n return;\n }\n\n crossLineLabel.fontStyle = label.fontStyle;\n crossLineLabel.fontWeight = label.fontWeight;\n crossLineLabel.fontSize = label.fontSize;\n crossLineLabel.fontFamily = label.fontFamily;\n crossLineLabel.fill = label.color;\n crossLineLabel.text = label.text;\n };\n\n CrossLine.prototype.positionLabel = function () {\n var _a = this,\n crossLineLabel = _a.crossLineLabel,\n _b = _a.labelPoint,\n _c = _b === void 0 ? {} : _b,\n _d = _c.x,\n x = _d === void 0 ? undefined : _d,\n _e = _c.y,\n y = _e === void 0 ? undefined : _e,\n _f = _a.label,\n parallel = _f.parallel,\n rotation = _f.rotation,\n _g = _f.position,\n position = _g === void 0 ? 'top' : _g,\n _h = _f.padding,\n padding = _h === void 0 ? 0 : _h,\n direction = _a.direction,\n parallelFlipRotation = _a.parallelFlipRotation,\n regularFlipRotation = _a.regularFlipRotation;\n\n if (x === undefined || y === undefined) {\n return;\n }\n\n var labelRotation = rotation ? normalizeAngle360(toRadians(rotation)) : 0;\n var parallelFlipFlag = !labelRotation && parallelFlipRotation >= 0 && parallelFlipRotation <= Math.PI ? -1 : 1;\n var regularFlipFlag = !labelRotation && regularFlipRotation >= 0 && regularFlipRotation <= Math.PI ? -1 : 1;\n var autoRotation = parallel ? parallelFlipFlag * Math.PI / 2 : regularFlipFlag === -1 ? Math.PI : 0;\n crossLineLabel.rotation = autoRotation + labelRotation;\n crossLineLabel.textBaseline = 'middle';\n crossLineLabel.textAlign = 'center';\n var bbox = this.computeLabelBBox();\n\n if (!bbox) {\n return;\n }\n\n var yDirection = direction === ChartAxisDirection.Y;\n\n var _j = calculateLabelTranslation({\n yDirection: yDirection,\n padding: padding,\n position: position,\n bbox: bbox\n }),\n xTranslation = _j.xTranslation,\n yTranslation = _j.yTranslation;\n\n crossLineLabel.translationX = x + xTranslation;\n crossLineLabel.translationY = y + yTranslation;\n };\n\n CrossLine.prototype.getRange = function () {\n var _a;\n\n var _b = this,\n value = _b.value,\n range = _b.range,\n scale = _b.scale;\n\n var isContinuous = scale instanceof ContinuousScale$1;\n\n var _c = __read$h(range !== null && range !== void 0 ? range : [value, undefined], 2),\n start = _c[0],\n end = _c[1];\n\n if (!isContinuous && end === undefined) {\n end = start;\n }\n\n _a = __read$h([checkDatum(start, isContinuous), checkDatum(end, isContinuous)], 2), start = _a[0], end = _a[1];\n\n if (isContinuous && start === end) {\n end = undefined;\n }\n\n if (start === undefined && end !== undefined) {\n start = end;\n end = undefined;\n }\n\n return [start, end];\n };\n\n CrossLine.prototype.computeLabelBBox = function () {\n return this.crossLineLabel.computeTransformedBBox();\n };\n\n CrossLine.prototype.calculatePadding = function (padding, seriesRect) {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;\n\n var crossLineLabelBBox = this.computeLabelBBox();\n var labelX = (_a = crossLineLabelBBox) === null || _a === void 0 ? void 0 : _a.x;\n var labelY = (_b = crossLineLabelBBox) === null || _b === void 0 ? void 0 : _b.y;\n\n if (labelX == undefined || labelY == undefined) {\n return;\n }\n\n var labelWidth = (_d = (_c = crossLineLabelBBox) === null || _c === void 0 ? void 0 : _c.width, _d !== null && _d !== void 0 ? _d : 0);\n var labelHeight = (_f = (_e = crossLineLabelBBox) === null || _e === void 0 ? void 0 : _e.height, _f !== null && _f !== void 0 ? _f : 0);\n\n if (labelX + labelWidth >= seriesRect.x + seriesRect.width) {\n var paddingRight = labelX + labelWidth - (seriesRect.x + seriesRect.width);\n padding.right = (_g = padding.right, _g !== null && _g !== void 0 ? _g : 0) >= paddingRight ? padding.right : paddingRight;\n } else if (labelX <= seriesRect.x) {\n var paddingLeft = seriesRect.x - labelX;\n padding.left = (_h = padding.left, _h !== null && _h !== void 0 ? _h : 0) >= paddingLeft ? padding.left : paddingLeft;\n }\n\n if (labelY + labelHeight >= seriesRect.y + seriesRect.height) {\n var paddingbottom = labelY + labelHeight - (seriesRect.y + seriesRect.height);\n padding.bottom = (_j = padding.bottom, _j !== null && _j !== void 0 ? _j : 0) >= paddingbottom ? padding.bottom : paddingbottom;\n } else if (labelY <= seriesRect.y) {\n var paddingTop = seriesRect.y - labelY;\n padding.top = (_k = padding.top, _k !== null && _k !== void 0 ? _k : 0) >= paddingTop ? padding.top : paddingTop;\n }\n };\n\n CrossLine.LINE_LAYER_ZINDEX = Layers.SERIES_CROSSLINE_LINE_ZINDEX;\n CrossLine.RANGE_LAYER_ZINDEX = Layers.SERIES_CROSSLINE_RANGE_ZINDEX;\n CrossLine.className = 'CrossLine';\n return CrossLine;\n}();\n\nvar __assign$j = undefined && undefined.__assign || function () {\n __assign$j = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$j.apply(this, arguments);\n};\n\nvar __read$g = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$5 = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$g(arguments[i]));\n }\n\n return ar;\n};\n\nvar __values$5 = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nfunction chartType(options) {\n if (isAgCartesianChartOptions(options)) {\n return 'cartesian';\n } else if (isAgPolarChartOptions(options)) {\n return 'polar';\n } else if (isAgHierarchyChartOptions(options)) {\n return 'hierarchy';\n }\n\n throw new Error('AG Chart - unknown type of chart for options with type: ' + options.type);\n} // Backwards-compatibility layer.\n\n\nvar AgChart =\n/** @class */\nfunction () {\n function AgChart() {}\n /** @deprecated use AgChart.create() or AgChart.update() instead. */\n\n\n AgChart.createComponent = function (options, type) {\n // console.warn('AG Charts - createComponent should no longer be used, use AgChart.update() instead.')\n if (type.indexOf('.series') >= 0) {\n var optionsWithType = __assign$j(__assign$j({}, options), {\n type: options.type || type.split('.')[0]\n });\n\n return createSeries([optionsWithType])[0];\n }\n\n return null;\n };\n\n AgChart.create = function (options, _container, _data) {\n return AgChartV2.create(options);\n };\n\n AgChart.update = function (chart, options, _container, _data) {\n return AgChartV2.update(chart, options);\n };\n\n return AgChart;\n}();\n\nvar AgChartV2 =\n/** @class */\nfunction () {\n function AgChartV2() {}\n\n AgChartV2.create = function (userOptions) {\n debug('user options', userOptions);\n var mixinOpts = {};\n\n if (AgChartV2.DEBUG()) {\n mixinOpts['debug'] = true;\n }\n\n var mergedOptions = prepareOptions(userOptions, mixinOpts);\n var chart = isAgCartesianChartOptions(mergedOptions) ? mergedOptions.type === 'groupedCategory' ? new GroupedCategoryChart(document) : new CartesianChart(document) : isAgHierarchyChartOptions(mergedOptions) ? new HierarchyChart(document) : isAgPolarChartOptions(mergedOptions) ? new PolarChart(document) : undefined;\n\n if (!chart) {\n throw new Error(\"AG Charts - couldn't apply configuration, check type of options: \" + mergedOptions['type']);\n }\n\n AgChartV2.updateDelta(chart, mergedOptions, userOptions);\n return chart;\n };\n\n AgChartV2.update = function (chart, userOptions) {\n debug('user options', userOptions);\n var mixinOpts = {};\n\n if (AgChartV2.DEBUG()) {\n mixinOpts['debug'] = true;\n }\n\n var mergedOptions = prepareOptions(userOptions, chart.userOptions, mixinOpts);\n\n if (chartType(mergedOptions) !== chartType(chart.options)) {\n chart.destroy();\n console.warn('AG Charts - options supplied require a different type of chart, please recreate the chart.');\n return;\n }\n\n var deltaOptions = jsonDiff(chart.options, mergedOptions, {\n stringify: ['data']\n });\n\n if (deltaOptions == null) {\n return;\n }\n\n AgChartV2.updateDelta(chart, deltaOptions, userOptions);\n };\n\n AgChartV2.updateDelta = function (chart, update, userOptions) {\n if (update.type == null) {\n update = __assign$j(__assign$j({}, update), {\n type: chart.options.type || optionsType(update)\n });\n }\n\n debug('delta update', update);\n applyChartOptions(chart, update, userOptions);\n };\n\n AgChartV2.DEBUG = function () {\n var _a;\n\n return _a = windowValue('agChartsDebug'), _a !== null && _a !== void 0 ? _a : false;\n };\n\n return AgChartV2;\n}();\n\nfunction debug(message) {\n var optionalParams = [];\n\n for (var _i = 1; _i < arguments.length; _i++) {\n optionalParams[_i - 1] = arguments[_i];\n }\n\n if (AgChartV2.DEBUG()) {\n console.log.apply(console, __spread$5([message], optionalParams));\n }\n}\n\nfunction applyChartOptions(chart, options, userOptions) {\n var _a, _b;\n\n if (isAgCartesianChartOptions(options)) {\n applyOptionValues(chart, options, {\n skip: ['type', 'data', 'series', 'axes', 'autoSize', 'listeners', 'theme']\n });\n } else if (isAgPolarChartOptions(options)) {\n applyOptionValues(chart, options, {\n skip: ['type', 'data', 'series', 'autoSize', 'listeners', 'theme']\n });\n } else if (isAgHierarchyChartOptions(options)) {\n applyOptionValues(chart, options, {\n skip: ['type', 'data', 'series', 'autoSize', 'listeners', 'theme']\n });\n } else {\n throw new Error(\"AG Charts - couldn't apply configuration, check type of options and chart: \" + options['type']);\n }\n\n var updateType = ChartUpdateType.PERFORM_LAYOUT;\n\n if (options.series && options.series.length > 0) {\n applySeries(chart, options);\n }\n\n if (isAgCartesianChartOptions(options) && options.axes) {\n var axesPresent = applyAxes(chart, options);\n\n if (axesPresent) {\n updateType = ChartUpdateType.PROCESS_DATA;\n }\n }\n\n var seriesOpts = options.series;\n\n if (options.data) {\n chart.data = options.data;\n updateType = ChartUpdateType.PROCESS_DATA;\n } else if ((_a = seriesOpts) === null || _a === void 0 ? void 0 : _a.some(function (s) {\n return s.data != null;\n })) {\n updateType = ChartUpdateType.PROCESS_DATA;\n } // Needs to be done last to avoid overrides by width/height properties.\n\n\n if (options.autoSize != null) {\n chart.autoSize = options.autoSize;\n }\n\n if (options.listeners) {\n registerListeners(chart, options.listeners);\n }\n\n if ((_b = options.legend) === null || _b === void 0 ? void 0 : _b.listeners) {\n Object.assign(chart.legend.listeners, options.legend.listeners);\n }\n\n chart.options = jsonMerge(chart.options || {}, options);\n chart.userOptions = jsonMerge(chart.userOptions || {}, userOptions);\n chart.update(updateType);\n}\n\nfunction applySeries(chart, options) {\n var optSeries = options.series;\n\n if (!optSeries) {\n return;\n }\n\n var matchingTypes = chart.series.length === optSeries.length && chart.series.every(function (s, i) {\n var _a;\n\n return s.type === ((_a = optSeries[i]) === null || _a === void 0 ? void 0 : _a.type);\n }); // Try to optimise series updates if series count and types didn't change.\n\n if (matchingTypes) {\n chart.series.forEach(function (s, i) {\n var _a, _b;\n\n var previousOpts = ((_b = (_a = chart.options) === null || _a === void 0 ? void 0 : _a.series) === null || _b === void 0 ? void 0 : _b[i]) || {};\n var seriesDiff = jsonDiff(previousOpts, optSeries[i] || {});\n\n if (!seriesDiff) {\n return;\n }\n\n debug(\"applying series diff idx \" + i, seriesDiff);\n applySeriesValues(s, seriesDiff, {\n path: \"series[\" + i + \"]\"\n });\n s.markNodeDataDirty();\n });\n return;\n }\n\n chart.series = createSeries(optSeries);\n}\n\nfunction applyAxes(chart, options) {\n var optAxes = options.axes;\n\n if (!optAxes) {\n return false;\n }\n\n var matchingTypes = chart.axes.length === optAxes.length && chart.axes.every(function (a, i) {\n return a.type === optAxes[i].type;\n }); // Try to optimise series updates if series count and types didn't change.\n\n if (matchingTypes) {\n var oldOpts_1 = chart.options;\n\n if (isAgCartesianChartOptions(oldOpts_1)) {\n chart.axes.forEach(function (a, i) {\n var _a;\n\n var previousOpts = ((_a = oldOpts_1.axes) === null || _a === void 0 ? void 0 : _a[i]) || {};\n var axisDiff = jsonDiff(previousOpts, optAxes[i]);\n debug(\"applying axis diff idx \" + i, axisDiff);\n var path = \"axes[\" + i + \"]\";\n var skip = ['axes[].type'];\n applyOptionValues(a, axisDiff, {\n path: path,\n skip: skip\n });\n });\n return true;\n }\n }\n\n chart.axes = createAxis(optAxes);\n return true;\n}\n\nfunction createSeries(options) {\n var e_1, _a;\n\n var series = [];\n var index = 0;\n\n try {\n for (var _b = __values$5(options || []), _c = _b.next(); !_c.done; _c = _b.next()) {\n var seriesOptions = _c.value;\n var path = \"series[\" + index++ + \"]\";\n\n switch (seriesOptions.type) {\n case 'area':\n series.push(applySeriesValues(new AreaSeries(), seriesOptions, {\n path: path\n }));\n break;\n\n case 'bar': // fall-through - bar and column are synonyms.\n\n case 'column':\n series.push(applySeriesValues(new BarSeries(), seriesOptions, {\n path: path\n }));\n break;\n\n case 'histogram':\n series.push(applySeriesValues(new HistogramSeries(), seriesOptions, {\n path: path\n }));\n break;\n\n case 'line':\n series.push(applySeriesValues(new LineSeries(), seriesOptions, {\n path: path\n }));\n break;\n\n case 'scatter':\n series.push(applySeriesValues(new ScatterSeries(), seriesOptions, {\n path: path\n }));\n break;\n\n case 'pie':\n series.push(applySeriesValues(new PieSeries(), seriesOptions, {\n path: path\n }));\n break;\n\n case 'treemap':\n series.push(applySeriesValues(new TreemapSeries(), seriesOptions, {\n path: path\n }));\n break;\n\n default:\n throw new Error('AG Charts - unknown series type: ' + seriesOptions.type);\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n return series;\n}\n\nfunction createAxis(options) {\n var e_2, _a;\n\n var axes = [];\n var index = 0;\n\n try {\n for (var _b = __values$5(options || []), _c = _b.next(); !_c.done; _c = _b.next()) {\n var axisOptions = _c.value;\n var path = \"axes[\" + index++ + \"]\";\n var skip = ['axes[].type'];\n\n switch (axisOptions.type) {\n case 'number':\n axes.push(applyOptionValues(new NumberAxis(), axisOptions, {\n path: path,\n skip: skip\n }));\n break;\n\n case LogAxis.type:\n axes.push(applyOptionValues(new LogAxis(), axisOptions, {\n path: path,\n skip: skip\n }));\n break;\n\n case CategoryAxis.type:\n axes.push(applyOptionValues(new CategoryAxis(), axisOptions, {\n path: path,\n skip: skip\n }));\n break;\n\n case GroupedCategoryAxis.type:\n axes.push(applyOptionValues(new GroupedCategoryAxis(), axisOptions, {\n path: path,\n skip: skip\n }));\n break;\n\n case TimeAxis.type:\n axes.push(applyOptionValues(new TimeAxis(), axisOptions, {\n path: path,\n skip: skip\n }));\n break;\n\n default:\n throw new Error('AG Charts - unknown axis type: ' + axisOptions['type']);\n }\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally {\n if (e_2) throw e_2.error;\n }\n }\n\n return axes;\n}\n\nfunction registerListeners(source, listeners) {\n source.clearEventListeners();\n\n for (var property in listeners) {\n source.addEventListener(property, listeners[property]);\n }\n}\n\nvar JSON_APPLY_OPTIONS = {\n constructors: {\n title: Caption,\n subtitle: Caption,\n shadow: DropShadow,\n 'axes[].crossLines[]': CrossLine\n },\n allowedTypes: {\n 'series[].marker.shape': ['primitive', 'function'],\n 'axis[].tick.count': ['primitive', 'class-instance']\n }\n};\n\nfunction applyOptionValues(target, options, _a) {\n var _b = _a === void 0 ? {} : _a,\n skip = _b.skip,\n path = _b.path;\n\n var applyOpts = __assign$j(__assign$j(__assign$j({}, JSON_APPLY_OPTIONS), {\n skip: skip\n }), path ? {\n path: path\n } : {});\n\n return jsonApply(target, options, applyOpts);\n}\n\nfunction applySeriesValues(target, options, _a) {\n var path = (_a === void 0 ? {} : _a).path;\n\n var _b, _c;\n\n var skip = ['series[].listeners'];\n var ctrs = ((_b = JSON_APPLY_OPTIONS) === null || _b === void 0 ? void 0 : _b.constructors) || {};\n var seriesTypeOverrides = {\n constructors: __assign$j(__assign$j({}, ctrs), {\n title: target.type === 'pie' ? PieTitle : ctrs['title']\n })\n };\n\n var applyOpts = __assign$j(__assign$j(__assign$j(__assign$j({}, JSON_APPLY_OPTIONS), seriesTypeOverrides), {\n skip: __spread$5(['series[].type'], skip || [])\n }), path ? {\n path: path\n } : {});\n\n var result = jsonApply(target, options, applyOpts);\n var listeners = (_c = options) === null || _c === void 0 ? void 0 : _c.listeners;\n\n if (listeners != null) {\n registerListeners(target, listeners);\n }\n\n return result;\n}\n\nvar time = {\n millisecond: millisecond$1,\n second: second$1,\n minute: minute$1,\n hour: hour$1,\n day: day$1,\n sunday: sunday$1,\n monday: monday$1,\n tuesday: tuesday,\n wednesday: wednesday,\n thursday: thursday$1,\n friday: friday,\n saturday: saturday,\n month: month$1,\n year: year$1,\n utcMinute: utcMinute,\n utcHour: utcHour,\n utcDay: utcDay$1,\n utcMonth: utcMonth,\n utcYear: utcYear$1\n};\n\nfunction getSeriesType(chartType) {\n switch (chartType) {\n case 'bar':\n case 'groupedBar':\n case 'stackedBar':\n case 'normalizedBar':\n return 'bar';\n\n case 'column':\n case 'groupedColumn':\n case 'stackedColumn':\n case 'normalizedColumn':\n return 'column';\n\n case 'line':\n return 'line';\n\n case 'area':\n case 'stackedArea':\n case 'normalizedArea':\n return 'area';\n\n case 'scatter':\n case 'bubble':\n return 'scatter';\n\n case 'histogram':\n return 'histogram';\n\n case 'pie':\n case 'doughnut':\n return 'pie';\n\n default:\n return 'cartesian';\n }\n}\n\nvar __extends$1O = undefined && undefined.__extends || function () {\n var _extendStatics106 = function extendStatics(d, b) {\n _extendStatics106 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics106(d, b);\n };\n\n return function (d, b) {\n _extendStatics106(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ChartController =\n/** @class */\nfunction (_super) {\n __extends$1O(ChartController, _super);\n\n function ChartController(model) {\n var _this = _super.call(this) || this;\n\n _this.model = model;\n return _this;\n }\n\n ChartController.prototype.init = function () {\n var _this = this;\n\n this.setChartRange();\n this.addManagedListener(this.eventService, Events.EVENT_RANGE_SELECTION_CHANGED, function (event) {\n if (event.id && event.id === _this.model.chartId) {\n _this.updateForRangeChange();\n }\n });\n\n if (this.model.unlinked) {\n if (this.rangeService) {\n this.rangeService.setCellRanges([]);\n }\n }\n\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_MOVED, this.updateForGridChange.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PINNED, this.updateForGridChange.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_VISIBLE, this.updateForGridChange.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, this.updateForGridChange.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_MODEL_UPDATED, this.updateForGridChange.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_CELL_VALUE_CHANGED, this.updateForDataChange.bind(this));\n };\n\n ChartController.prototype.updateForGridChange = function () {\n if (this.model.unlinked) {\n return;\n }\n\n this.model.updateCellRanges();\n this.setChartRange();\n };\n\n ChartController.prototype.updateForDataChange = function () {\n if (this.model.unlinked) {\n return;\n }\n\n this.model.updateData();\n this.raiseChartUpdatedEvent();\n };\n\n ChartController.prototype.updateForRangeChange = function () {\n this.updateForGridChange();\n this.raiseChartRangeSelectionChangedEvent();\n };\n\n ChartController.prototype.updateForPanelChange = function (updatedCol) {\n this.model.updateCellRanges(updatedCol);\n this.setChartRange();\n this.raiseChartRangeSelectionChangedEvent();\n };\n\n ChartController.prototype.getChartUpdateParams = function () {\n var selectedCols = this.getSelectedValueColState();\n var fields = selectedCols.map(function (c) {\n return {\n colId: c.colId,\n displayName: c.displayName\n };\n });\n var data = this.getChartData();\n var selectedDimension = this.getSelectedDimension();\n return {\n data: data,\n grouping: this.isGrouping(),\n category: {\n id: selectedDimension.colId,\n name: selectedDimension.displayName,\n chartDataType: this.model.getChartDataType(selectedDimension.colId)\n },\n fields: fields,\n chartId: this.getChartId(),\n getCrossFilteringContext: function getCrossFilteringContext() {\n return {\n lastSelectedChartId: 'xxx'\n };\n },\n seriesChartTypes: this.getSeriesChartTypes()\n };\n };\n\n ChartController.prototype.getChartModel = function () {\n var modelType = this.model.pivotChart ? 'pivot' : 'range';\n var seriesChartTypes = this.isComboChart() ? this.model.seriesChartTypes : undefined;\n return {\n modelType: modelType,\n chartId: this.model.chartId,\n chartType: this.model.chartType,\n chartThemeName: this.model.chartThemeName,\n chartOptions: this.chartProxy.getChartOptions(),\n chartPalette: this.chartProxy.getChartPalette(),\n cellRange: this.getCellRangeParams(),\n suppressChartRanges: this.model.suppressChartRanges,\n aggFunc: this.model.aggFunc,\n unlinkChart: this.model.unlinked,\n seriesChartTypes: seriesChartTypes\n };\n };\n\n ChartController.prototype.getChartId = function () {\n return this.model.chartId;\n };\n\n ChartController.prototype.getChartData = function () {\n return this.model.chartData;\n };\n\n ChartController.prototype.getChartType = function () {\n return this.model.chartType;\n };\n\n ChartController.prototype.setChartType = function (chartType) {\n this.model.chartType = chartType;\n this.model.updateSeriesChartTypes();\n this.raiseChartUpdatedEvent();\n this.raiseChartOptionsChangedEvent();\n };\n\n ChartController.prototype.setChartThemeName = function (chartThemeName) {\n this.model.chartThemeName = chartThemeName;\n this.raiseChartUpdatedEvent();\n this.raiseChartOptionsChangedEvent();\n };\n\n ChartController.prototype.getChartThemeName = function () {\n return this.model.chartThemeName;\n };\n\n ChartController.prototype.isPivotChart = function () {\n return this.model.pivotChart;\n };\n\n ChartController.prototype.isPivotMode = function () {\n return this.model.isPivotMode();\n };\n\n ChartController.prototype.isGrouping = function () {\n return this.model.isGrouping();\n };\n\n ChartController.prototype.getThemes = function () {\n return this.gridOptionsWrapper.getChartThemes();\n };\n\n ChartController.prototype.getPalettes = function () {\n var _this = this;\n\n var themeNames = this.gridOptionsWrapper.getChartThemes();\n return themeNames.map(function (themeName) {\n var stockTheme = _this.chartProxy.isStockTheme(themeName);\n\n var theme = stockTheme ? themeName : _this.chartProxy.lookupCustomChartTheme(themeName);\n return getChartTheme(theme).palette;\n });\n };\n\n ChartController.prototype.getValueColState = function () {\n return this.model.valueColState.map(this.displayNameMapper.bind(this));\n };\n\n ChartController.prototype.getSelectedValueColState = function () {\n return this.getValueColState().filter(function (cs) {\n return cs.selected;\n });\n };\n\n ChartController.prototype.getDimensionColState = function () {\n return this.model.dimensionColState;\n };\n\n ChartController.prototype.getSelectedDimension = function () {\n return this.model.getSelectedDimension();\n };\n\n ChartController.prototype.displayNameMapper = function (col) {\n var columnNames = this.model.columnNames[col.colId];\n col.displayName = columnNames ? columnNames.join(' - ') : this.model.getColDisplayName(col.column);\n return col;\n };\n\n ChartController.prototype.getColStateForMenu = function () {\n return {\n dimensionCols: this.model.dimensionColState,\n valueCols: this.getValueColState()\n };\n };\n\n ChartController.prototype.isDefaultCategorySelected = function () {\n return this.model.getSelectedDimension().colId === ChartDataModel.DEFAULT_CATEGORY;\n };\n\n ChartController.prototype.setChartRange = function (silent) {\n if (silent === void 0) {\n silent = false;\n }\n\n if (this.rangeService && !this.model.suppressChartRanges && !this.model.unlinked) {\n this.rangeService.setCellRanges(this.getCellRanges());\n }\n\n if (!silent) {\n this.raiseChartUpdatedEvent();\n }\n };\n\n ChartController.prototype.detachChartRange = function () {\n // when chart is detached it won't listen to changes from the grid\n this.model.unlinked = !this.model.unlinked;\n\n if (this.model.unlinked) {\n // remove range from grid\n if (this.rangeService) {\n this.rangeService.setCellRanges([]);\n }\n } else {\n // update chart data may have changed\n this.updateForGridChange();\n }\n };\n\n ChartController.prototype.setChartProxy = function (chartProxy) {\n this.chartProxy = chartProxy;\n };\n\n ChartController.prototype.getChartProxy = function () {\n return this.chartProxy;\n };\n\n ChartController.prototype.isActiveXYChart = function () {\n return _.includes(['scatter', 'bubble'], this.getChartType());\n };\n\n ChartController.prototype.isChartLinked = function () {\n return !this.model.unlinked;\n };\n\n ChartController.prototype.customComboExists = function () {\n return this.model.savedCustomSeriesChartTypes && this.model.savedCustomSeriesChartTypes.length > 0;\n };\n\n ChartController.prototype.getSeriesChartTypes = function () {\n return this.model.seriesChartTypes;\n };\n\n ChartController.prototype.isComboChart = function () {\n return this.model.isComboChart();\n };\n\n ChartController.prototype.updateSeriesChartType = function (colId, chartType, secondaryAxis) {\n var seriesChartType = this.model.seriesChartTypes.find(function (s) {\n return s.colId === colId;\n });\n\n if (seriesChartType) {\n // once a combo chart has been modified it is now a 'customCombo' chart\n var updateChartType = this.model.chartType !== 'customCombo';\n\n if (updateChartType) {\n this.model.chartType = 'customCombo';\n }\n\n var prevSeriesChartType = seriesChartType.chartType;\n\n if (chartType != null) {\n seriesChartType.chartType = chartType;\n }\n\n if (secondaryAxis != null) {\n seriesChartType.secondaryAxis = secondaryAxis;\n } // replace existing custom series types with this latest version\n\n\n this.model.savedCustomSeriesChartTypes = this.model.seriesChartTypes; // series chart types can be modified, i.e. column chart types should be moved to primary axis\n\n this.model.updateSeriesChartTypes();\n this.updateForDataChange();\n\n if (updateChartType) {\n // update the settings panel by raising an EVENT_CHART_TYPE_CHANGED event\n this.dispatchEvent(Object.freeze({\n type: ChartController.EVENT_CHART_TYPE_CHANGED\n }));\n }\n\n if (prevSeriesChartType !== chartType) {\n // update the format panel by raising an EVENT_CHART_SERIES_CHART_TYPE_CHANGED event\n this.dispatchEvent(Object.freeze({\n type: ChartController.EVENT_CHART_SERIES_CHART_TYPE_CHANGED\n }));\n }\n }\n };\n\n ChartController.prototype.getActiveSeriesChartTypes = function () {\n var selectedColIds = this.getSelectedValueColState().map(function (c) {\n return c.colId;\n });\n return this.getSeriesChartTypes().filter(function (s) {\n return selectedColIds.includes(s.colId);\n });\n };\n\n ChartController.prototype.getChartSeriesTypes = function () {\n var supportedComboSeriesTypes = ['line', 'column', 'area'];\n return this.isComboChart() ? supportedComboSeriesTypes : [getSeriesType(this.getChartType())];\n };\n\n ChartController.prototype.getCellRanges = function () {\n return [this.model.dimensionCellRange, this.model.valueCellRange].filter(function (r) {\n return r;\n });\n };\n\n ChartController.prototype.getCellRangeParams = function () {\n var cellRanges = this.getCellRanges();\n var firstCellRange = cellRanges[0];\n var startRow = firstCellRange && firstCellRange.startRow || null;\n var endRow = firstCellRange && firstCellRange.endRow || null;\n return {\n rowStartIndex: startRow && startRow.rowIndex,\n rowStartPinned: startRow && startRow.rowPinned,\n rowEndIndex: endRow && endRow.rowIndex,\n rowEndPinned: endRow && endRow.rowPinned,\n columns: cellRanges.reduce(function (columns, value) {\n return columns.concat(value.columns.map(function (c) {\n return c.getId();\n }));\n }, [])\n };\n };\n\n ChartController.prototype.raiseChartUpdatedEvent = function () {\n var event = Object.freeze({\n type: ChartController.EVENT_CHART_UPDATED\n });\n this.dispatchEvent(event);\n };\n\n ChartController.prototype.raiseChartOptionsChangedEvent = function () {\n var _a = this.getChartModel(),\n chartId = _a.chartId,\n chartType = _a.chartType;\n\n var event = Object.freeze({\n type: Events.EVENT_CHART_OPTIONS_CHANGED,\n chartId: chartId,\n chartType: chartType,\n chartThemeName: this.model.chartThemeName,\n chartOptions: this.chartProxy.getChartOptions()\n });\n this.eventService.dispatchEvent(event);\n };\n\n ChartController.prototype.raiseChartRangeSelectionChangedEvent = function () {\n var event = Object.freeze({\n type: Events.EVENT_CHART_RANGE_SELECTION_CHANGED,\n id: this.model.chartId,\n chartId: this.model.chartId,\n cellRange: this.getCellRangeParams()\n });\n this.eventService.dispatchEvent(event);\n };\n\n ChartController.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n\n if (this.rangeService) {\n this.rangeService.setCellRanges([]);\n }\n };\n\n ChartController.EVENT_CHART_UPDATED = 'chartUpdated';\n ChartController.EVENT_CHART_TYPE_CHANGED = 'chartTypeChanged';\n ChartController.EVENT_CHART_SERIES_CHART_TYPE_CHANGED = 'chartSeriesChartTypeChanged';\n\n __decorate$14([Autowired('rangeService')], ChartController.prototype, \"rangeService\", void 0);\n\n __decorate$14([PostConstruct], ChartController.prototype, \"init\", null);\n\n return ChartController;\n}(BeanStub);\n\nvar __extends$1N = undefined && undefined.__extends || function () {\n var _extendStatics107 = function extendStatics(d, b) {\n _extendStatics107 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics107(d, b);\n };\n\n return function (d, b) {\n _extendStatics107(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$f = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$4 = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$f(arguments[i]));\n }\n\n return ar;\n};\n\nvar __values$4 = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar ChartDataPanel =\n/** @class */\nfunction (_super) {\n __extends$1N(ChartDataPanel, _super);\n\n function ChartDataPanel(chartController, chartOptionsService) {\n var _this = _super.call(this, ChartDataPanel.TEMPLATE) || this;\n\n _this.chartController = chartController;\n _this.chartOptionsService = chartOptionsService;\n _this.columnComps = new Map();\n return _this;\n }\n\n ChartDataPanel.prototype.init = function () {\n this.updatePanels();\n this.addManagedListener(this.chartController, ChartController.EVENT_CHART_UPDATED, this.updatePanels.bind(this));\n this.createAutoScrollService();\n };\n\n ChartDataPanel.prototype.destroy = function () {\n this.clearComponents();\n\n _super.prototype.destroy.call(this);\n };\n\n ChartDataPanel.prototype.updatePanels = function () {\n var _this = this;\n\n var currentChartType = this.chartType;\n\n var _a = this.chartController.getColStateForMenu(),\n dimensionCols = _a.dimensionCols,\n valueCols = _a.valueCols;\n\n var colIds = dimensionCols.map(function (c) {\n return c.colId;\n }).concat(valueCols.map(function (c) {\n return c.colId;\n }));\n this.chartType = this.chartController.getChartType();\n var groupExpandedState = this.getGroupExpandedState();\n\n if (_.areEqual(_.keys(this.columnComps), colIds) && this.chartType === currentChartType) {\n // if possible, we just update existing components\n __spread$4(dimensionCols, valueCols).forEach(function (col) {\n _this.columnComps.get(col.colId).setValue(col.selected, true);\n });\n\n if (this.chartController.isActiveXYChart()) {\n var getSeriesLabel_1 = this.generateGetSeriesLabel();\n valueCols.forEach(function (col) {\n _this.columnComps.get(col.colId).setLabel(getSeriesLabel_1(col));\n });\n } // recreate series chart type group if it exists as series may be added or removed via series group panel\n\n\n _.removeFromParent(this.getGui().querySelector('#seriesChartTypeGroup'));\n\n this.seriesChartTypeGroupComp = this.destroyBean(this.seriesChartTypeGroupComp);\n this.createSeriesChartTypeGroup(valueCols);\n } else {\n // otherwise, we re-create everything\n this.clearComponents();\n this.createCategoriesGroup(dimensionCols);\n this.createSeriesGroup(valueCols);\n this.createSeriesChartTypeGroup(valueCols);\n }\n\n this.restoreGroupExpandedState(groupExpandedState);\n };\n\n ChartDataPanel.prototype.getGroupExpandedState = function () {\n return [this.categoriesGroupComp, this.seriesGroupComp, this.seriesChartTypeGroupComp].map(function (group) {\n return !group ? true : group.isExpanded();\n });\n };\n\n ChartDataPanel.prototype.restoreGroupExpandedState = function (groupExpandedState) {\n [this.categoriesGroupComp, this.seriesGroupComp, this.seriesChartTypeGroupComp].forEach(function (group, idx) {\n if (!group) {\n return;\n }\n\n group.toggleGroupExpand(groupExpandedState[idx]);\n });\n };\n\n ChartDataPanel.prototype.createAutoScrollService = function () {\n var eGui = this.getGui();\n this.autoScrollService = new AutoScrollService({\n scrollContainer: eGui,\n scrollAxis: 'y',\n getVerticalPosition: function getVerticalPosition() {\n return eGui.scrollTop;\n },\n setVerticalPosition: function setVerticalPosition(position) {\n return eGui.scrollTop = position;\n }\n });\n };\n\n ChartDataPanel.prototype.addComponent = function (parent, component, id) {\n var eDiv = document.createElement('div');\n eDiv.id = id;\n eDiv.className = 'ag-chart-data-section';\n eDiv.appendChild(component.getGui());\n parent.appendChild(eDiv);\n };\n\n ChartDataPanel.prototype.addChangeListener = function (component, columnState) {\n var _this = this;\n\n this.addManagedListener(component, AgAbstractField.EVENT_CHANGED, function () {\n columnState.selected = component.getValue();\n\n _this.chartController.updateForPanelChange(columnState);\n });\n };\n\n ChartDataPanel.prototype.createCategoriesGroup = function (columns) {\n var _this = this;\n\n this.categoriesGroupComp = this.createBean(new AgGroupComponent({\n title: this.getCategoryGroupTitle(),\n enabled: true,\n suppressEnabledCheckbox: true,\n suppressOpenCloseIcons: false,\n cssIdentifier: 'charts-data'\n }));\n var inputName = \"chartDimension\" + this.getCompId();\n columns.forEach(function (col) {\n var comp = _this.categoriesGroupComp.createManagedBean(new AgRadioButton());\n\n comp.setLabel(_.escapeString(col.displayName));\n comp.setValue(col.selected);\n comp.setInputName(inputName);\n\n _this.addChangeListener(comp, col);\n\n _this.categoriesGroupComp.addItem(comp);\n\n _this.columnComps.set(col.colId, comp);\n });\n this.addComponent(this.getGui(), this.categoriesGroupComp, 'categoriesGroup');\n };\n\n ChartDataPanel.prototype.createSeriesGroup = function (columns) {\n var _this = this;\n\n this.seriesGroupComp = this.createManagedBean(new AgGroupComponent({\n title: this.getSeriesGroupTitle(),\n enabled: true,\n suppressEnabledCheckbox: true,\n suppressOpenCloseIcons: false,\n cssIdentifier: 'charts-data'\n }));\n\n if (this.chartController.isActiveXYChart()) {\n var pairedModeToggle = this.seriesGroupComp.createManagedBean(new AgToggleButton());\n pairedModeToggle.setLabel(this.chartTranslationService.translate('paired')).setLabelAlignment('left').setLabelWidth('flex').setInputWidth(45).setValue(this.chartOptionsService.getPairedMode()).onValueChange(function (newValue) {\n _this.chartOptionsService.setPairedMode(!!newValue);\n\n _this.chartController.updateForGridChange();\n });\n this.seriesGroupComp.addItem(pairedModeToggle);\n }\n\n var getSeriesLabel = this.generateGetSeriesLabel();\n columns.forEach(function (col) {\n var comp = _this.seriesGroupComp.createManagedBean(new AgCheckbox());\n\n comp.addCssClass('ag-data-select-checkbox');\n var label = getSeriesLabel(col);\n comp.setLabel(label);\n comp.setValue(col.selected);\n\n _this.addChangeListener(comp, col);\n\n _this.seriesGroupComp.addItem(comp);\n\n _this.columnComps.set(col.colId, comp);\n\n _this.addDragHandle(comp, col);\n });\n this.addComponent(this.getGui(), this.seriesGroupComp, 'seriesGroup');\n var dropTarget = {\n getIconName: function getIconName() {\n return DragAndDropService.ICON_MOVE;\n },\n getContainer: function getContainer() {\n return _this.seriesGroupComp.getGui();\n },\n onDragging: function onDragging(params) {\n return _this.onDragging(params);\n },\n onDragLeave: function onDragLeave() {\n return _this.onDragLeave();\n },\n isInterestedIn: this.isInterestedIn.bind(this),\n targetContainsSource: true\n };\n this.dragAndDropService.addDropTarget(dropTarget);\n };\n\n ChartDataPanel.prototype.createSeriesChartTypeGroup = function (columns) {\n var _this = this;\n\n if (!this.chartController.isComboChart()) {\n return;\n }\n\n this.seriesChartTypeGroupComp = this.createManagedBean(new AgGroupComponent({\n title: this.chartTranslationService.translate('seriesChartType'),\n enabled: true,\n suppressEnabledCheckbox: true,\n suppressOpenCloseIcons: false,\n cssIdentifier: 'charts-data'\n }));\n var seriesChartTypes = this.chartController.getSeriesChartTypes();\n columns.forEach(function (col) {\n if (!col.selected) {\n return;\n }\n\n var seriesChartType = seriesChartTypes.filter(function (s) {\n return s.colId === col.colId;\n })[0];\n\n if (!seriesChartType) {\n return;\n }\n\n var seriesItemGroup = _this.seriesChartTypeGroupComp.createManagedBean(new AgGroupComponent({\n title: col.displayName,\n enabled: true,\n suppressEnabledCheckbox: true,\n suppressOpenCloseIcons: true,\n cssIdentifier: 'charts-format-sub-level'\n }));\n\n var secondaryAxisComp = _this.seriesChartTypeGroupComp.createManagedBean(new AgCheckbox()).setLabel(_this.chartTranslationService.translate('secondaryAxis')).setLabelWidth(\"flex\").setDisabled(['groupedColumn', 'stackedColumn', 'stackedArea'].includes(seriesChartType.chartType)).setValue(!!seriesChartType.secondaryAxis).onValueChange(function (enabled) {\n return _this.chartController.updateSeriesChartType(col.colId, undefined, enabled);\n });\n\n seriesItemGroup.addItem(secondaryAxisComp);\n\n var translate = function translate(key, defaultText) {\n return _this.chartTranslationService.translate(key, defaultText);\n };\n\n var availableChartTypes = [{\n value: 'line',\n text: translate('line', 'Line')\n }, {\n value: 'area',\n text: translate('area', 'Area')\n }, {\n value: 'stackedArea',\n text: translate('stackedArea', 'StackedArea')\n }, {\n value: 'groupedColumn',\n text: translate('groupedColumn', 'Grouped Column')\n }, {\n value: 'stackedColumn',\n text: translate('stackedColumn', 'Stacked Column')\n }];\n var chartTypeComp = seriesItemGroup.createManagedBean(new AgSelect());\n chartTypeComp.setLabelAlignment('left').setLabelWidth(\"flex\").addOptions(availableChartTypes).setValue(seriesChartType.chartType).onValueChange(function (chartType) {\n return _this.chartController.updateSeriesChartType(col.colId, chartType);\n });\n seriesItemGroup.addItem(chartTypeComp);\n\n _this.seriesChartTypeGroupComp.addItem(seriesItemGroup);\n });\n this.addComponent(this.getGui(), this.seriesChartTypeGroupComp, 'seriesChartTypeGroup');\n };\n\n ChartDataPanel.prototype.addDragHandle = function (comp, col) {\n var _this = this;\n\n var eDragHandle = _.createIconNoSpan('columnDrag', this.gridOptionsWrapper);\n\n eDragHandle.classList.add('ag-drag-handle', 'ag-chart-data-column-drag-handle');\n comp.getGui().insertAdjacentElement('beforeend', eDragHandle);\n var dragSource = {\n type: DragSourceType.ChartPanel,\n eElement: eDragHandle,\n dragItemName: col.displayName,\n getDragItem: function getDragItem() {\n return {\n columns: [col.column]\n };\n },\n onDragStopped: function onDragStopped() {\n return _this.onDragStop();\n }\n };\n this.dragAndDropService.addDragSource(dragSource, true);\n this.addDestroyFunc(function () {\n return _this.dragAndDropService.removeDragSource(dragSource);\n });\n };\n\n ChartDataPanel.prototype.generateGetSeriesLabel = function () {\n if (!this.chartController.isActiveXYChart()) {\n return function (col) {\n return _.escapeString(col.displayName);\n };\n }\n\n var isBubble = this.chartType === 'bubble';\n var isInPairedMode = this.isInPairedMode();\n var selectedValuesCount = 0;\n var indexToAxisLabel = new Map();\n indexToAxisLabel.set(0, 'X');\n indexToAxisLabel.set(1, 'Y');\n indexToAxisLabel.set(2, 'size');\n return function (col) {\n var escapedLabel = _.escapeString(col.displayName);\n\n if (!col.selected) {\n return escapedLabel;\n }\n\n var axisLabel;\n\n if (isInPairedMode) {\n axisLabel = indexToAxisLabel.get(selectedValuesCount % (isBubble ? 3 : 2));\n } else {\n if (selectedValuesCount === 0) {\n axisLabel = 'X';\n } else {\n axisLabel = isBubble && selectedValuesCount % 2 === 0 ? 'size' : 'Y';\n }\n }\n\n selectedValuesCount++;\n return escapedLabel + \" (\" + axisLabel + \")\";\n };\n };\n\n ChartDataPanel.prototype.getCategoryGroupTitle = function () {\n return this.chartTranslationService.translate(this.chartController.isActiveXYChart() ? 'labels' : 'categories');\n };\n\n ChartDataPanel.prototype.getSeriesGroupTitle = function () {\n return this.chartTranslationService.translate(this.chartController.isActiveXYChart() ? 'xyValues' : 'series');\n };\n\n ChartDataPanel.prototype.isInPairedMode = function () {\n return this.chartController.isActiveXYChart() && this.chartOptionsService.getSeriesOption('paired', 'scatter');\n };\n\n ChartDataPanel.prototype.clearComponents = function () {\n _.clearElement(this.getGui());\n\n this.categoriesGroupComp = this.destroyBean(this.categoriesGroupComp);\n this.seriesGroupComp = this.destroyBean(this.seriesGroupComp);\n this.seriesChartTypeGroupComp = this.destroyBean(this.seriesChartTypeGroupComp);\n this.columnComps.clear();\n };\n\n ChartDataPanel.prototype.onDragging = function (draggingEvent) {\n var itemHovered = this.checkHoveredItem(draggingEvent);\n\n if (!itemHovered) {\n return;\n }\n\n this.lastDraggedColumn = draggingEvent.dragItem.columns[0];\n var comp = itemHovered.comp,\n position = itemHovered.position;\n\n var _a = this.lastHoveredItem || {},\n lastHoveredComp = _a.comp,\n lastHoveredPosition = _a.position;\n\n if (comp === lastHoveredComp && position === lastHoveredPosition) {\n return;\n }\n\n this.autoScrollService.check(draggingEvent.event);\n this.clearHoveredItems();\n this.lastHoveredItem = {\n comp: comp,\n position: position\n };\n var eGui = comp.getGui();\n eGui.classList.add('ag-list-item-hovered', \"ag-item-highlight-\" + position);\n };\n\n ChartDataPanel.prototype.checkHoveredItem = function (draggingEvent) {\n var e_1, _a;\n\n if (_.missing(draggingEvent.vDirection)) {\n return null;\n }\n\n var mouseEvent = draggingEvent.event;\n\n try {\n for (var _b = __values$4(this.columnComps.values()), _c = _b.next(); !_c.done; _c = _b.next()) {\n var comp = _c.value;\n var eGui = comp.getGui();\n\n if (!eGui.querySelector('.ag-chart-data-column-drag-handle')) {\n continue;\n }\n\n var rect = eGui.getBoundingClientRect();\n var isOverComp = mouseEvent.clientY >= rect.top && mouseEvent.clientY <= rect.bottom;\n\n if (isOverComp) {\n var height = eGui.clientHeight;\n var position = mouseEvent.clientY > rect.top + height / 2 ? 'bottom' : 'top';\n return {\n comp: comp,\n position: position\n };\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n return null;\n };\n\n ChartDataPanel.prototype.onDragLeave = function () {\n this.clearHoveredItems();\n };\n\n ChartDataPanel.prototype.onDragStop = function () {\n var _this = this;\n\n if (this.lastHoveredItem) {\n var _a = this.chartController.getColStateForMenu(),\n dimensionCols = _a.dimensionCols,\n valueCols = _a.valueCols;\n\n var draggedColumnState = __spread$4(dimensionCols, valueCols).find(function (state) {\n return state.column === _this.lastDraggedColumn;\n });\n\n if (draggedColumnState) {\n var targetIndex = Array.from(this.columnComps.values()).indexOf(this.lastHoveredItem.comp);\n\n if (this.lastHoveredItem.position === 'bottom') {\n targetIndex++;\n }\n\n draggedColumnState.order = targetIndex;\n this.chartController.updateForPanelChange(draggedColumnState);\n }\n }\n\n this.clearHoveredItems();\n this.lastDraggedColumn = undefined;\n this.autoScrollService.ensureCleared();\n };\n\n ChartDataPanel.prototype.clearHoveredItems = function () {\n this.columnComps.forEach(function (columnComp) {\n columnComp.getGui().classList.remove('ag-list-item-hovered', 'ag-item-highlight-top', 'ag-item-highlight-bottom');\n });\n this.lastHoveredItem = undefined;\n };\n\n ChartDataPanel.prototype.isInterestedIn = function (type) {\n return type === DragSourceType.ChartPanel;\n };\n\n ChartDataPanel.TEMPLATE = \"
\";\n\n __decorate$13([Autowired('dragAndDropService')], ChartDataPanel.prototype, \"dragAndDropService\", void 0);\n\n __decorate$13([Autowired('chartTranslationService')], ChartDataPanel.prototype, \"chartTranslationService\", void 0);\n\n __decorate$13([PostConstruct], ChartDataPanel.prototype, \"init\", null);\n\n return ChartDataPanel;\n}(Component);\n\nvar __extends$1M = undefined && undefined.__extends || function () {\n var _extendStatics108 = function extendStatics(d, b) {\n _extendStatics108 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics108(d, b);\n };\n\n return function (d, b) {\n _extendStatics108(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar FontPanel =\n/** @class */\nfunction (_super) {\n __extends$1M(FontPanel, _super);\n\n function FontPanel(params) {\n var _this = _super.call(this) || this;\n\n _this.activeComps = [];\n _this.params = params;\n return _this;\n }\n\n FontPanel.prototype.init = function () {\n var groupParams = {\n cssIdentifier: 'charts-format-sub-level',\n direction: 'vertical',\n suppressOpenCloseIcons: true\n };\n this.setTemplate(FontPanel.TEMPLATE, {\n fontGroup: groupParams\n });\n this.initGroup();\n this.initFontFamilySelect();\n this.initFontWeightStyleSelect();\n this.initFontSizeSelect();\n this.initFontColorPicker();\n };\n\n FontPanel.prototype.addCompToPanel = function (comp) {\n this.fontGroup.addItem(comp);\n this.activeComps.push(comp);\n };\n\n FontPanel.prototype.setEnabled = function (enabled) {\n this.fontGroup.setEnabled(enabled);\n };\n\n FontPanel.prototype.initGroup = function () {\n var _this = this;\n\n this.fontGroup.setTitle(this.params.name || this.chartTranslationService.translate('font')).setEnabled(this.params.enabled).hideEnabledCheckbox(!!this.params.suppressEnabledCheckbox).hideOpenCloseIcons(true).onEnableChange(function (enabled) {\n if (_this.params.setEnabled) {\n _this.params.setEnabled(enabled);\n }\n });\n };\n\n FontPanel.prototype.initFontFamilySelect = function () {\n var _this = this;\n\n var families = ['Arial, sans-serif', 'Aria Black, sans-serif', 'Book Antiqua, serif', 'Charcoal, sans-serif', 'Comic Sans MS, cursive', 'Courier, monospace', 'Courier New, monospace', 'Gadget, sans-serif', 'Geneva, sans-serif', 'Helvetica, sans-serif', 'Impact, sans-serif', 'Lucida Console, monospace', 'Lucida Grande, sans-serif', 'Lucida Sans Unicode, sans-serif', 'Monaco, monospace', 'Palatino Linotype, serif', 'Palatino, serif', 'Times New Roman, serif', 'Times, serif', 'Verdana, sans-serif'];\n var family = this.params.initialFont.family;\n var initialValue = families[0];\n\n if (family) {\n // check for known values using lowercase\n var lowerCaseValues = families.map(function (f) {\n return f.toLowerCase();\n });\n var valueIndex = lowerCaseValues.indexOf(family.toLowerCase());\n\n if (valueIndex >= 0) {\n initialValue = families[valueIndex];\n } else {\n // add user provided value to list\n var capitalisedFontValue = _.capitalise(family);\n\n families.push(capitalisedFontValue);\n initialValue = capitalisedFontValue;\n }\n }\n\n var options = families.sort().map(function (value) {\n return {\n value: value,\n text: value\n };\n });\n this.familySelect.addOptions(options).setInputWidth('flex').setValue(\"\" + initialValue).onValueChange(function (newValue) {\n return _this.params.setFont({\n family: newValue\n });\n });\n };\n\n FontPanel.prototype.initFontSizeSelect = function () {\n var _this = this;\n\n var sizes = [8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36];\n var size = this.params.initialFont.size;\n\n if (!_.includes(sizes, size)) {\n sizes.push(size);\n }\n\n var options = sizes.sort(function (a, b) {\n return a - b;\n }).map(function (value) {\n return {\n value: \"\" + value,\n text: \"\" + value\n };\n });\n this.sizeSelect.addOptions(options).setInputWidth('flex').setValue(\"\" + size).onValueChange(function (newValue) {\n return _this.params.setFont({\n size: parseInt(newValue, 10)\n });\n });\n this.sizeSelect.setLabel(this.chartTranslationService.translate('size'));\n };\n\n FontPanel.prototype.initFontWeightStyleSelect = function () {\n var _this = this;\n\n var _a = this.params.initialFont,\n _b = _a.weight,\n weight = _b === void 0 ? 'normal' : _b,\n _c = _a.style,\n style = _c === void 0 ? 'normal' : _c;\n var weightStyles = [{\n name: 'normal',\n weight: 'normal',\n style: 'normal'\n }, {\n name: 'bold',\n weight: 'bold',\n style: 'normal'\n }, {\n name: 'italic',\n weight: 'normal',\n style: 'italic'\n }, {\n name: 'boldItalic',\n weight: 'bold',\n style: 'italic'\n }];\n var selectedOption = weightStyles.find(function (x) {\n return x.weight === weight && x.style === style;\n });\n\n if (!selectedOption) {\n selectedOption = {\n name: 'predefined',\n weight: weight,\n style: style\n };\n weightStyles.unshift(selectedOption);\n }\n\n var options = weightStyles.map(function (ws) {\n return {\n value: ws.name,\n text: _this.chartTranslationService.translate(ws.name)\n };\n });\n this.weightStyleSelect.addOptions(options).setInputWidth('flex').setValue(selectedOption.name).onValueChange(function (newValue) {\n var selectedWeightStyle = weightStyles.find(function (x) {\n return x.name === newValue;\n });\n\n _this.params.setFont({\n weight: selectedWeightStyle.weight,\n style: selectedWeightStyle.style\n });\n });\n };\n\n FontPanel.prototype.initFontColorPicker = function () {\n var _this = this;\n\n this.colorPicker.setLabel(this.chartTranslationService.translate('color')).setInputWidth(45).setValue(\"\" + this.params.initialFont.color).onValueChange(function (newColor) {\n return _this.params.setFont({\n color: newColor\n });\n });\n };\n\n FontPanel.prototype.destroyActiveComps = function () {\n var _this = this;\n\n this.activeComps.forEach(function (comp) {\n _.removeFromParent(comp.getGui());\n\n _this.destroyBean(comp);\n });\n };\n\n FontPanel.prototype.destroy = function () {\n this.destroyActiveComps();\n\n _super.prototype.destroy.call(this);\n };\n\n FontPanel.TEMPLATE = \"
\\n \\n \\n \\n
\\n \\n \\n
\\n
\\n
\";\n\n __decorate$12([RefSelector('fontGroup')], FontPanel.prototype, \"fontGroup\", void 0);\n\n __decorate$12([RefSelector('familySelect')], FontPanel.prototype, \"familySelect\", void 0);\n\n __decorate$12([RefSelector('weightStyleSelect')], FontPanel.prototype, \"weightStyleSelect\", void 0);\n\n __decorate$12([RefSelector('sizeSelect')], FontPanel.prototype, \"sizeSelect\", void 0);\n\n __decorate$12([RefSelector('colorPicker')], FontPanel.prototype, \"colorPicker\", void 0);\n\n __decorate$12([Autowired('chartTranslationService')], FontPanel.prototype, \"chartTranslationService\", void 0);\n\n __decorate$12([PostConstruct], FontPanel.prototype, \"init\", null);\n\n return FontPanel;\n}(Component);\n\nvar __extends$1L = undefined && undefined.__extends || function () {\n var _extendStatics109 = function extendStatics(d, b) {\n _extendStatics109 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics109(d, b);\n };\n\n return function (d, b) {\n _extendStatics109(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar LegendPanel =\n/** @class */\nfunction (_super) {\n __extends$1L(LegendPanel, _super);\n\n function LegendPanel(chartOptionsService) {\n var _this = _super.call(this) || this;\n\n _this.chartOptionsService = chartOptionsService;\n _this.activePanels = [];\n return _this;\n }\n\n LegendPanel.prototype.init = function () {\n var groupParams = {\n cssIdentifier: 'charts-format-top-level',\n direction: 'vertical'\n };\n this.setTemplate(LegendPanel.TEMPLATE, {\n legendGroup: groupParams\n });\n this.initLegendGroup();\n this.initLegendPosition();\n this.initLegendPadding();\n this.initLegendItems();\n this.initLabelPanel();\n };\n\n LegendPanel.prototype.initLegendGroup = function () {\n var _this = this;\n\n this.legendGroup.setTitle(this.chartTranslationService.translate(\"legend\")).hideEnabledCheckbox(false).setEnabled(this.chartOptionsService.getChartOption(\"legend.enabled\") || false).toggleGroupExpand(false).onEnableChange(function (enabled) {\n _this.chartOptionsService.setChartOption(\"legend.enabled\", enabled);\n\n _this.legendGroup.toggleGroupExpand(true);\n });\n };\n\n LegendPanel.prototype.initLegendPosition = function () {\n var _this = this;\n\n var positions = [LegendPosition.Top, LegendPosition.Right, LegendPosition.Bottom, LegendPosition.Left];\n this.legendPositionSelect.setLabel(this.chartTranslationService.translate(\"position\")).setLabelWidth(\"flex\").setInputWidth(80).addOptions(positions.map(function (position) {\n return {\n value: position,\n text: _this.chartTranslationService.translate(position)\n };\n })).setValue(this.chartOptionsService.getChartOption(\"legend.position\")).onValueChange(function (newValue) {\n return _this.chartOptionsService.setChartOption(\"legend.position\", newValue);\n });\n };\n\n LegendPanel.prototype.initLegendPadding = function () {\n var _this = this;\n\n var currentValue = this.chartOptionsService.getChartOption(\"legend.spacing\");\n this.legendPaddingSlider.setLabel(this.chartTranslationService.translate(\"spacing\")).setMaxValue(getMaxValue(currentValue, 200)).setValue(\"\" + currentValue).setTextFieldWidth(45).onValueChange(function (newValue) {\n return _this.chartOptionsService.setChartOption(\"legend.spacing\", newValue);\n });\n };\n\n LegendPanel.prototype.initLegendItems = function () {\n var _this = this;\n\n var initSlider = function initSlider(expression, labelKey, input, defaultMaxValue) {\n var currentValue = _this.chartOptionsService.getChartOption(\"legend.\" + expression);\n\n input.setLabel(_this.chartTranslationService.translate(labelKey)).setMaxValue(getMaxValue(currentValue, defaultMaxValue)).setValue(\"\" + currentValue).setTextFieldWidth(45).onValueChange(function (newValue) {\n _this.chartOptionsService.setChartOption(\"legend.\" + expression, newValue);\n });\n };\n\n initSlider(\"item.marker.size\", \"markerSize\", this.markerSizeSlider, 40);\n initSlider(\"item.marker.strokeWidth\", \"markerStroke\", this.markerStrokeSlider, 10);\n initSlider(\"item.marker.padding\", \"itemSpacing\", this.markerPaddingSlider, 20);\n initSlider(\"item.paddingX\", \"layoutHorizontalSpacing\", this.itemPaddingXSlider, 50);\n initSlider(\"item.paddingY\", \"layoutVerticalSpacing\", this.itemPaddingYSlider, 50);\n };\n\n LegendPanel.prototype.initLabelPanel = function () {\n var _this = this;\n\n var chartProxy = this.chartOptionsService;\n var initialFont = {\n family: chartProxy.getChartOption(\"legend.item.label.fontFamily\"),\n style: chartProxy.getChartOption(\"legend.item.label.fontStyle\"),\n weight: chartProxy.getChartOption(\"legend.item.label.fontWeight\"),\n size: chartProxy.getChartOption(\"legend.item.label.fontSize\"),\n color: chartProxy.getChartOption(\"legend.item.label.color\")\n };\n\n var setFont = function setFont(font) {\n var proxy = _this.chartOptionsService;\n\n if (font.family) {\n proxy.setChartOption(\"legend.item.label.fontFamily\", font.family);\n }\n\n if (font.weight) {\n proxy.setChartOption(\"legend.item.label.fontWeight\", font.weight);\n }\n\n if (font.style) {\n proxy.setChartOption(\"legend.item.label.fontStyle\", font.style);\n }\n\n if (font.size) {\n proxy.setChartOption(\"legend.item.label.fontSize\", font.size);\n }\n\n if (font.color) {\n proxy.setChartOption(\"legend.item.label.color\", font.color);\n }\n };\n\n var params = {\n enabled: true,\n suppressEnabledCheckbox: true,\n initialFont: initialFont,\n setFont: setFont\n };\n var fontPanelComp = this.createBean(new FontPanel(params));\n this.legendGroup.addItem(fontPanelComp);\n this.activePanels.push(fontPanelComp);\n };\n\n LegendPanel.prototype.destroyActivePanels = function () {\n var _this = this;\n\n this.activePanels.forEach(function (panel) {\n _.removeFromParent(panel.getGui());\n\n _this.destroyBean(panel);\n });\n };\n\n LegendPanel.prototype.destroy = function () {\n this.destroyActivePanels();\n\n _super.prototype.destroy.call(this);\n };\n\n LegendPanel.TEMPLATE = \"
\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
\";\n\n __decorate$11([RefSelector('legendGroup')], LegendPanel.prototype, \"legendGroup\", void 0);\n\n __decorate$11([RefSelector('legendPositionSelect')], LegendPanel.prototype, \"legendPositionSelect\", void 0);\n\n __decorate$11([RefSelector('legendPaddingSlider')], LegendPanel.prototype, \"legendPaddingSlider\", void 0);\n\n __decorate$11([RefSelector('markerSizeSlider')], LegendPanel.prototype, \"markerSizeSlider\", void 0);\n\n __decorate$11([RefSelector('markerStrokeSlider')], LegendPanel.prototype, \"markerStrokeSlider\", void 0);\n\n __decorate$11([RefSelector('markerPaddingSlider')], LegendPanel.prototype, \"markerPaddingSlider\", void 0);\n\n __decorate$11([RefSelector('itemPaddingXSlider')], LegendPanel.prototype, \"itemPaddingXSlider\", void 0);\n\n __decorate$11([RefSelector('itemPaddingYSlider')], LegendPanel.prototype, \"itemPaddingYSlider\", void 0);\n\n __decorate$11([Autowired('chartTranslationService')], LegendPanel.prototype, \"chartTranslationService\", void 0);\n\n __decorate$11([PostConstruct], LegendPanel.prototype, \"init\", null);\n\n return LegendPanel;\n}(Component);\n\nvar __extends$1K = undefined && undefined.__extends || function () {\n var _extendStatics110 = function extendStatics(d, b) {\n _extendStatics110 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics110(d, b);\n };\n\n return function (d, b) {\n _extendStatics110(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AxisTicksPanel =\n/** @class */\nfunction (_super) {\n __extends$1K(AxisTicksPanel, _super);\n\n function AxisTicksPanel(chartOptionsService) {\n var _this = _super.call(this) || this;\n\n _this.chartOptionsService = chartOptionsService;\n return _this;\n }\n\n AxisTicksPanel.prototype.init = function () {\n var groupParams = {\n cssIdentifier: 'charts-format-sub-level',\n direction: 'vertical',\n suppressOpenCloseIcons: true\n };\n this.setTemplate(AxisTicksPanel.TEMPLATE, {\n axisTicksGroup: groupParams\n });\n this.initAxisTicks();\n };\n\n AxisTicksPanel.prototype.initAxisTicks = function () {\n var _this = this;\n\n this.axisTicksGroup.setTitle(this.chartTranslationService.translate(\"ticks\")).hideOpenCloseIcons(true).hideEnabledCheckbox(true);\n this.axisTicksColorPicker.setLabel(this.chartTranslationService.translate(\"color\")).setLabelWidth(\"flex\").setInputWidth(45).setValue(this.chartOptionsService.getAxisProperty(\"tick.color\")).onValueChange(function (newColor) {\n return _this.chartOptionsService.setAxisProperty(\"tick.color\", newColor);\n });\n\n var initInput = function initInput(expression, input, label, defaultMaxValue) {\n var currentValue = _this.chartOptionsService.getAxisProperty(expression);\n\n input.setLabel(label).setMaxValue(getMaxValue(currentValue, defaultMaxValue)).setValue(\"\" + currentValue).setTextFieldWidth(45).onValueChange(function (newValue) {\n return _this.chartOptionsService.setAxisProperty(expression, newValue);\n });\n };\n\n initInput(\"tick.width\", this.axisTicksWidthSlider, this.chartTranslationService.translate(\"width\"), 10);\n initInput(\"tick.size\", this.axisTicksSizeSlider, this.chartTranslationService.translate(\"length\"), 30);\n };\n\n AxisTicksPanel.TEMPLATE = \"
\\n \\n \\n \\n \\n \\n
\";\n\n __decorate$10([RefSelector('axisTicksGroup')], AxisTicksPanel.prototype, \"axisTicksGroup\", void 0);\n\n __decorate$10([RefSelector('axisTicksColorPicker')], AxisTicksPanel.prototype, \"axisTicksColorPicker\", void 0);\n\n __decorate$10([RefSelector('axisTicksWidthSlider')], AxisTicksPanel.prototype, \"axisTicksWidthSlider\", void 0);\n\n __decorate$10([RefSelector('axisTicksSizeSlider')], AxisTicksPanel.prototype, \"axisTicksSizeSlider\", void 0);\n\n __decorate$10([Autowired('chartTranslationService')], AxisTicksPanel.prototype, \"chartTranslationService\", void 0);\n\n __decorate$10([PostConstruct], AxisTicksPanel.prototype, \"init\", null);\n\n return AxisTicksPanel;\n}(Component);\n\nvar __extends$1J = undefined && undefined.__extends || function () {\n var _extendStatics111 = function extendStatics(d, b) {\n _extendStatics111 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics111(d, b);\n };\n\n return function (d, b) {\n _extendStatics111(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AxisPanel =\n/** @class */\nfunction (_super) {\n __extends$1J(AxisPanel, _super);\n\n function AxisPanel(chartController, chartOptionsService) {\n var _this = _super.call(this) || this;\n\n _this.chartController = chartController;\n _this.chartOptionsService = chartOptionsService;\n _this.activePanels = [];\n _this.axisLabelUpdateFuncs = [];\n _this.prevXRotation = 0;\n _this.prevYRotation = 0;\n return _this;\n }\n\n AxisPanel.prototype.init = function () {\n var _this = this;\n\n var groupParams = {\n cssIdentifier: 'charts-format-top-level',\n direction: 'vertical'\n };\n this.setTemplate(AxisPanel.TEMPLATE, {\n axisGroup: groupParams\n });\n this.initAxis();\n this.initAxisTicks();\n this.initAxisLabels();\n\n var updateAxisLabelRotations = function updateAxisLabelRotations() {\n return _this.axisLabelUpdateFuncs.forEach(function (func) {\n return func();\n });\n };\n\n this.addManagedListener(this.chartController, ChartController.EVENT_CHART_UPDATED, updateAxisLabelRotations);\n };\n\n AxisPanel.prototype.initAxis = function () {\n var _this = this;\n\n this.axisGroup.setTitle(this.translate(\"axis\")).toggleGroupExpand(false).hideEnabledCheckbox(true);\n this.axisColorInput.setLabel(this.translate(\"color\")).setLabelWidth(\"flex\").setInputWidth(45).setValue(this.chartOptionsService.getAxisProperty(\"line.color\")).onValueChange(function (newColor) {\n return _this.chartOptionsService.setAxisProperty(\"line.color\", newColor);\n });\n var currentValue = this.chartOptionsService.getAxisProperty(\"line.width\");\n this.axisLineWidthSlider.setMaxValue(getMaxValue(currentValue, 10)).setLabel(this.translate(\"thickness\")).setTextFieldWidth(45).setValue(\"\" + currentValue).onValueChange(function (newValue) {\n return _this.chartOptionsService.setAxisProperty(\"line.width\", newValue);\n });\n\n if (_.includes(['line', 'scatter', 'bubble'], this.chartController.getChartType()) && !this.chartController.isGrouping()) {\n var options_1 = [{\n value: '',\n text: this.translate('automatic')\n }];\n ['category', 'time', 'number'].forEach(function (type) {\n options_1.push({\n value: type,\n text: _this.translate(type)\n });\n });\n this.xAxisTypeSelect.setLabel(this.translate('xType')).setLabelWidth('flex').addOptions(options_1).setValue(this.chartOptionsService.getChartOption('xAxis.type') || '').onValueChange(function (newValue) {\n _this.chartOptionsService.setChartOption('xAxis.type', typeof newValue === 'string' && newValue.length && newValue);\n\n _this.chartController.updateForDataChange();\n });\n } else {\n this.xAxisTypeSelect.setDisplayed(false);\n }\n };\n\n AxisPanel.prototype.initAxisTicks = function () {\n var axisTicksComp = this.createBean(new AxisTicksPanel(this.chartOptionsService));\n this.axisGroup.addItem(axisTicksComp);\n this.activePanels.push(axisTicksComp);\n };\n\n AxisPanel.prototype.initAxisLabels = function () {\n var _this = this;\n\n var initialFont = {\n family: this.chartOptionsService.getAxisProperty(\"label.fontFamily\"),\n style: this.chartOptionsService.getAxisProperty(\"label.fontStyle\"),\n weight: this.chartOptionsService.getAxisProperty(\"label.fontWeight\"),\n size: this.chartOptionsService.getAxisProperty(\"label.fontSize\"),\n color: this.chartOptionsService.getAxisProperty(\"label.color\")\n };\n\n var setFont = function setFont(font) {\n if (font.family) {\n _this.chartOptionsService.setAxisProperty(\"label.fontFamily\", font.family);\n }\n\n if (font.weight) {\n _this.chartOptionsService.setAxisProperty(\"label.fontWeight\", font.weight);\n }\n\n if (font.style) {\n _this.chartOptionsService.setAxisProperty(\"label.fontStyle\", font.style);\n }\n\n if (font.size) {\n _this.chartOptionsService.setAxisProperty(\"label.fontSize\", font.size);\n }\n\n if (font.color) {\n _this.chartOptionsService.setAxisProperty(\"label.color\", font.color);\n }\n };\n\n var params = {\n name: this.translate(\"labels\"),\n enabled: true,\n suppressEnabledCheckbox: true,\n initialFont: initialFont,\n setFont: setFont\n };\n var labelPanelComp = this.createBean(new FontPanel(params));\n this.axisGroup.addItem(labelPanelComp);\n this.activePanels.push(labelPanelComp);\n this.addAdditionalLabelComps(labelPanelComp);\n };\n\n AxisPanel.prototype.addAdditionalLabelComps = function (labelPanelComp) {\n this.addLabelPadding(labelPanelComp);\n\n var _a = this.createRotationWidgets(),\n xRotationComp = _a.xRotationComp,\n yRotationComp = _a.yRotationComp;\n\n var autoRotateCb = this.initLabelRotations(xRotationComp, yRotationComp);\n labelPanelComp.addCompToPanel(autoRotateCb);\n labelPanelComp.addCompToPanel(xRotationComp);\n labelPanelComp.addCompToPanel(yRotationComp);\n };\n\n AxisPanel.prototype.initLabelRotations = function (xRotationComp, yRotationComp) {\n var _this = this;\n\n var getLabelRotation = function getLabelRotation(axisType) {\n return _this.chartOptionsService.getLabelRotation(axisType);\n };\n\n var setLabelRotation = function setLabelRotation(axisType, value) {\n _this.chartOptionsService.setLabelRotation(axisType, value);\n };\n\n var updateAutoRotate = function updateAutoRotate(autoRotate) {\n _this.chartOptionsService.setAxisProperty(\"label.autoRotate\", autoRotate);\n\n if (autoRotate) {\n // store prev rotations before we remove them from the options\n _this.prevXRotation = getLabelRotation(\"xAxis\");\n _this.prevYRotation = getLabelRotation(\"yAxis\"); // `autoRotate` is only\n\n setLabelRotation(\"xAxis\", undefined);\n setLabelRotation(\"yAxis\", undefined);\n } else {\n // reinstate prev rotations\n setLabelRotation(\"xAxis\", _this.prevXRotation);\n setLabelRotation(\"yAxis\", _this.prevYRotation);\n }\n\n xRotationComp.setDisabled(autoRotate);\n yRotationComp.setDisabled(autoRotate);\n };\n\n var getAutoRotateValue = function getAutoRotateValue() {\n var xRotation = getLabelRotation(\"xAxis\");\n var yRotation = getLabelRotation(\"yAxis\");\n\n if (xRotation == undefined && yRotation == undefined) {\n return _this.chartOptionsService.getAxisProperty(\"label.autoRotate\");\n }\n\n return false;\n };\n\n var autoRotate = getAutoRotateValue();\n var autoRotateCheckbox = this.createBean(new AgCheckbox()).setLabel(this.translate('autoRotate')).setValue(autoRotate).onValueChange(updateAutoRotate); // init rotation comp state\n\n xRotationComp.setDisabled(autoRotate);\n yRotationComp.setDisabled(autoRotate);\n return autoRotateCheckbox;\n };\n\n AxisPanel.prototype.createRotationWidgets = function () {\n var _this = this;\n\n var degreesSymbol = String.fromCharCode(176);\n\n var createRotationComp = function createRotationComp(labelKey, axisType) {\n var label = _this.chartTranslationService.translate(labelKey) + \" \" + degreesSymbol;\n\n var value = _this.chartOptionsService.getLabelRotation(axisType);\n\n var angleSelect = new AgAngleSelect().setLabel(label).setLabelWidth(\"flex\").setValue(value || 0).onValueChange(function (newValue) {\n return _this.chartOptionsService.setLabelRotation(axisType, newValue);\n }); // the axis label rotation needs to be updated when the default category changes in the data panel\n\n _this.axisLabelUpdateFuncs.push(function () {\n var value = _this.chartOptionsService.getLabelRotation(axisType);\n\n angleSelect.setValue(value || 0);\n });\n\n return _this.createBean(angleSelect);\n };\n\n return {\n xRotationComp: createRotationComp(\"xRotation\", \"xAxis\"),\n yRotationComp: createRotationComp(\"yRotation\", \"yAxis\")\n };\n };\n\n AxisPanel.prototype.addLabelPadding = function (labelPanelComp) {\n var _this = this;\n\n var labelPaddingSlider = this.createBean(new AgSlider());\n var currentValue = this.chartOptionsService.getAxisProperty(\"label.padding\");\n labelPaddingSlider.setLabel(this.chartTranslationService.translate(\"padding\")).setMaxValue(getMaxValue(currentValue, 30)).setValue(\"\" + currentValue).setTextFieldWidth(45).onValueChange(function (newValue) {\n return _this.chartOptionsService.setAxisProperty(\"label.padding\", newValue);\n });\n labelPanelComp.addCompToPanel(labelPaddingSlider);\n };\n\n AxisPanel.prototype.translate = function (key, defaultText) {\n return this.chartTranslationService.translate(key, defaultText);\n };\n\n AxisPanel.prototype.destroyActivePanels = function () {\n var _this = this;\n\n this.activePanels.forEach(function (panel) {\n _.removeFromParent(panel.getGui());\n\n _this.destroyBean(panel);\n });\n };\n\n AxisPanel.prototype.destroy = function () {\n this.destroyActivePanels();\n\n _super.prototype.destroy.call(this);\n };\n\n AxisPanel.TEMPLATE = \"
\\n \\n \\n \\n \\n \\n
\";\n\n __decorate$$([RefSelector('axisGroup')], AxisPanel.prototype, \"axisGroup\", void 0);\n\n __decorate$$([RefSelector('axisColorInput')], AxisPanel.prototype, \"axisColorInput\", void 0);\n\n __decorate$$([RefSelector('axisLineWidthSlider')], AxisPanel.prototype, \"axisLineWidthSlider\", void 0);\n\n __decorate$$([RefSelector('xAxisTypeSelect')], AxisPanel.prototype, \"xAxisTypeSelect\", void 0);\n\n __decorate$$([Autowired('chartTranslationService')], AxisPanel.prototype, \"chartTranslationService\", void 0);\n\n __decorate$$([PostConstruct], AxisPanel.prototype, \"init\", null);\n\n return AxisPanel;\n}(Component);\n\nvar __extends$1I = undefined && undefined.__extends || function () {\n var _extendStatics112 = function extendStatics(d, b) {\n _extendStatics112 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics112(d, b);\n };\n\n return function (d, b) {\n _extendStatics112(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar NavigatorPanel =\n/** @class */\nfunction (_super) {\n __extends$1I(NavigatorPanel, _super);\n\n function NavigatorPanel(chartOptionsService) {\n var _this = _super.call(this) || this;\n\n _this.chartOptionsService = chartOptionsService;\n return _this;\n }\n\n NavigatorPanel.prototype.init = function () {\n var groupParams = {\n cssIdentifier: 'charts-format-top-level',\n direction: 'vertical'\n };\n this.setTemplate(NavigatorPanel.TEMPLATE, {\n navigatorGroup: groupParams\n });\n this.initNavigator();\n };\n\n NavigatorPanel.prototype.initNavigator = function () {\n var _this = this;\n\n var chartTranslationService = this.chartTranslationService;\n this.navigatorGroup.setTitle(chartTranslationService.translate(\"navigator\")).toggleGroupExpand(false).hideEnabledCheckbox(false).setEnabled(this.chartOptionsService.getChartOption(\"navigator.enabled\") || false).onEnableChange(function (enabled) {\n _this.chartOptionsService.setChartOption(\"navigator.enabled\", enabled);\n\n _this.navigatorGroup.toggleGroupExpand(true);\n });\n var currentValue = this.chartOptionsService.getChartOption(\"navigator.height\");\n this.navigatorHeightSlider.setLabel(chartTranslationService.translate(\"height\")).setMinValue(10).setMaxValue(getMaxValue(currentValue, 60)).setTextFieldWidth(45).setValue(\"\" + (currentValue || 30)).onValueChange(function (height) {\n return _this.chartOptionsService.setChartOption(\"navigator.height\", height);\n });\n };\n\n NavigatorPanel.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n NavigatorPanel.TEMPLATE = \"
\\n \\n \\n \\n
\";\n\n __decorate$_([RefSelector('navigatorGroup')], NavigatorPanel.prototype, \"navigatorGroup\", void 0);\n\n __decorate$_([RefSelector('navigatorHeightSlider')], NavigatorPanel.prototype, \"navigatorHeightSlider\", void 0);\n\n __decorate$_([Autowired('chartTranslationService')], NavigatorPanel.prototype, \"chartTranslationService\", void 0);\n\n __decorate$_([PostConstruct], NavigatorPanel.prototype, \"init\", null);\n\n return NavigatorPanel;\n}(Component);\n\nvar __extends$1H = undefined && undefined.__extends || function () {\n var _extendStatics113 = function extendStatics(d, b) {\n _extendStatics113 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics113(d, b);\n };\n\n return function (d, b) {\n _extendStatics113(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar PaddingPanel =\n/** @class */\nfunction (_super) {\n __extends$1H(PaddingPanel, _super);\n\n function PaddingPanel(chartOptionsService) {\n var _this = _super.call(this) || this;\n\n _this.chartOptionsService = chartOptionsService;\n return _this;\n }\n\n PaddingPanel.prototype.init = function () {\n var groupParams = {\n cssIdentifier: 'charts-format-sub-level',\n direction: 'vertical',\n suppressOpenCloseIcons: true\n };\n this.setTemplate(PaddingPanel.TEMPLATE, {\n chartPaddingGroup: groupParams\n });\n this.initGroup();\n this.initChartPaddingItems();\n };\n\n PaddingPanel.prototype.initGroup = function () {\n this.chartPaddingGroup.setTitle(this.chartTranslationService.translate(\"padding\")).hideOpenCloseIcons(true).hideEnabledCheckbox(true);\n };\n\n PaddingPanel.prototype.initChartPaddingItems = function () {\n var _this = this;\n\n var initInput = function initInput(property, input) {\n var currentValue = _this.chartOptionsService.getChartOption('padding.' + property);\n\n input.setLabel(_this.chartTranslationService.translate(property)).setMaxValue(getMaxValue(currentValue, 200)).setValue(\"\" + currentValue).setTextFieldWidth(45).onValueChange(function (newValue) {\n return _this.chartOptionsService.setChartOption('padding.' + property, newValue);\n });\n };\n\n initInput('top', this.paddingTopSlider);\n initInput('right', this.paddingRightSlider);\n initInput('bottom', this.paddingBottomSlider);\n initInput('left', this.paddingLeftSlider);\n };\n\n PaddingPanel.TEMPLATE = \"
\\n \\n \\n \\n \\n \\n \\n
\";\n\n __decorate$Z([RefSelector('chartPaddingGroup')], PaddingPanel.prototype, \"chartPaddingGroup\", void 0);\n\n __decorate$Z([RefSelector('paddingTopSlider')], PaddingPanel.prototype, \"paddingTopSlider\", void 0);\n\n __decorate$Z([RefSelector('paddingRightSlider')], PaddingPanel.prototype, \"paddingRightSlider\", void 0);\n\n __decorate$Z([RefSelector('paddingBottomSlider')], PaddingPanel.prototype, \"paddingBottomSlider\", void 0);\n\n __decorate$Z([RefSelector('paddingLeftSlider')], PaddingPanel.prototype, \"paddingLeftSlider\", void 0);\n\n __decorate$Z([Autowired('chartTranslationService')], PaddingPanel.prototype, \"chartTranslationService\", void 0);\n\n __decorate$Z([PostConstruct], PaddingPanel.prototype, \"init\", null);\n\n return PaddingPanel;\n}(Component);\n\nvar __extends$1G = undefined && undefined.__extends || function () {\n var _extendStatics114 = function extendStatics(d, b) {\n _extendStatics114 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics114(d, b);\n };\n\n return function (d, b) {\n _extendStatics114(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar BackgroundPanel =\n/** @class */\nfunction (_super) {\n __extends$1G(BackgroundPanel, _super);\n\n function BackgroundPanel(chartOptionsService) {\n var _this = _super.call(this) || this;\n\n _this.chartOptionsService = chartOptionsService;\n return _this;\n }\n\n BackgroundPanel.prototype.init = function () {\n var groupParams = {\n cssIdentifier: 'charts-format-sub-level',\n direction: 'vertical',\n suppressOpenCloseIcons: true\n };\n this.setTemplate(BackgroundPanel.TEMPLATE, {\n chartBackgroundGroup: groupParams\n });\n this.initGroup();\n this.initColorPicker();\n };\n\n BackgroundPanel.prototype.initGroup = function () {\n var _this = this;\n\n this.group.setTitle(this.chartTranslationService.translate('background')).setEnabled(this.chartOptionsService.getChartOption('background.visible')).hideOpenCloseIcons(true).hideEnabledCheckbox(false).onEnableChange(function (enabled) {\n return _this.chartOptionsService.setChartOption('background.visible', enabled);\n });\n };\n\n BackgroundPanel.prototype.initColorPicker = function () {\n var _this = this;\n\n this.colorPicker.setLabel(this.chartTranslationService.translate('color')).setLabelWidth('flex').setInputWidth(45).setValue(this.chartOptionsService.getChartOption('background.fill')).onValueChange(function (newColor) {\n return _this.chartOptionsService.setChartOption('background.fill', newColor);\n });\n };\n\n BackgroundPanel.TEMPLATE = \"
\\n \\n \\n \\n
\";\n\n __decorate$Y([RefSelector('chartBackgroundGroup')], BackgroundPanel.prototype, \"group\", void 0);\n\n __decorate$Y([RefSelector('colorPicker')], BackgroundPanel.prototype, \"colorPicker\", void 0);\n\n __decorate$Y([Autowired('chartTranslationService')], BackgroundPanel.prototype, \"chartTranslationService\", void 0);\n\n __decorate$Y([PostConstruct], BackgroundPanel.prototype, \"init\", null);\n\n return BackgroundPanel;\n}(Component);\n\nvar __extends$1F = undefined && undefined.__extends || function () {\n var _extendStatics115 = function extendStatics(d, b) {\n _extendStatics115 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics115(d, b);\n };\n\n return function (d, b) {\n _extendStatics115(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar TitlePanel =\n/** @class */\nfunction (_super) {\n __extends$1F(TitlePanel, _super);\n\n function TitlePanel(chartOptionsService) {\n var _this = _super.call(this, TitlePanel.TEMPLATE) || this;\n\n _this.chartOptionsService = chartOptionsService;\n _this.activePanels = [];\n return _this;\n }\n\n TitlePanel.prototype.init = function () {\n this.initFontPanel();\n this.titlePlaceholder = this.chartTranslationService.translate('titlePlaceholder');\n };\n\n TitlePanel.prototype.hasTitle = function () {\n var title = this.getOption('title');\n return title && title.enabled && title.text && title.text.length > 0;\n };\n\n TitlePanel.prototype.initFontPanel = function () {\n var _this = this;\n\n var hasTitle = this.hasTitle;\n\n var setFont = function setFont(font) {\n if (font.family) {\n _this.setOption('title.fontFamily', font.family);\n }\n\n if (font.weight) {\n _this.setOption('title.fontWeight', font.weight);\n }\n\n if (font.style) {\n _this.setOption('title.fontStyle', font.style);\n }\n\n if (font.size) {\n _this.setOption('title.fontSize', font.size);\n }\n\n if (font.color) {\n _this.setOption('title.color', font.color);\n }\n };\n\n var initialFont = {\n family: this.getOption('title.fontFamily'),\n style: this.getOption('title.fontStyle'),\n weight: this.getOption('title.fontWeight'),\n size: this.getOption('title.fontSize'),\n color: this.getOption('title.color')\n };\n\n if (!hasTitle) {\n setFont(initialFont);\n }\n\n var fontPanelParams = {\n name: this.chartTranslationService.translate('title'),\n enabled: this.hasTitle(),\n suppressEnabledCheckbox: false,\n initialFont: initialFont,\n setFont: setFont,\n setEnabled: function setEnabled(enabled) {\n _this.setOption('title.enabled', enabled);\n\n var currentTitleText = _this.getOption('title.text');\n\n if (enabled && currentTitleText === 'Title') {\n _this.setOption('title.text', _this.titlePlaceholder);\n }\n }\n };\n var fontPanelComp = this.createBean(new FontPanel(fontPanelParams));\n this.getGui().appendChild(fontPanelComp.getGui());\n this.activePanels.push(fontPanelComp); // edits to the title can disable it, so keep the checkbox in sync:\n\n this.addManagedListener(this.eventService, 'chartTitleEdit', function () {\n fontPanelComp.setEnabled(_this.hasTitle());\n });\n };\n\n TitlePanel.prototype.getOption = function (expression) {\n return this.chartOptionsService.getChartOption(expression);\n };\n\n TitlePanel.prototype.setOption = function (property, value) {\n this.chartOptionsService.setChartOption(property, value);\n };\n\n TitlePanel.prototype.destroyActivePanels = function () {\n var _this = this;\n\n this.activePanels.forEach(function (panel) {\n _.removeFromParent(panel.getGui());\n\n _this.destroyBean(panel);\n });\n };\n\n TitlePanel.prototype.destroy = function () {\n this.destroyActivePanels();\n\n _super.prototype.destroy.call(this);\n };\n\n TitlePanel.TEMPLATE = \"
\";\n\n __decorate$X([Autowired('chartTranslationService')], TitlePanel.prototype, \"chartTranslationService\", void 0);\n\n __decorate$X([PostConstruct], TitlePanel.prototype, \"init\", null);\n\n return TitlePanel;\n}(Component);\n\nvar __extends$1E = undefined && undefined.__extends || function () {\n var _extendStatics116 = function extendStatics(d, b) {\n _extendStatics116 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics116(d, b);\n };\n\n return function (d, b) {\n _extendStatics116(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ChartPanel =\n/** @class */\nfunction (_super) {\n __extends$1E(ChartPanel, _super);\n\n function ChartPanel(chartOptionsService) {\n var _this = _super.call(this) || this;\n\n _this.chartOptionsService = chartOptionsService;\n _this.activePanels = [];\n return _this;\n }\n\n ChartPanel.prototype.init = function () {\n var groupParams = {\n cssIdentifier: 'charts-format-top-level',\n direction: 'vertical'\n };\n this.setTemplate(ChartPanel.TEMPLATE, {\n chartGroup: groupParams\n });\n this.initGroup();\n this.initTitles();\n this.initPaddingPanel();\n this.initBackgroundPanel();\n };\n\n ChartPanel.prototype.initGroup = function () {\n this.chartGroup.setTitle(this.chartTranslationService.translate('chart')).toggleGroupExpand(false).hideEnabledCheckbox(true);\n };\n\n ChartPanel.prototype.initTitles = function () {\n var titlePanelComp = this.createBean(new TitlePanel(this.chartOptionsService));\n this.chartGroup.addItem(titlePanelComp);\n this.activePanels.push(titlePanelComp);\n };\n\n ChartPanel.prototype.initPaddingPanel = function () {\n var paddingPanelComp = this.createBean(new PaddingPanel(this.chartOptionsService));\n this.chartGroup.addItem(paddingPanelComp);\n this.activePanels.push(paddingPanelComp);\n };\n\n ChartPanel.prototype.initBackgroundPanel = function () {\n var backgroundPanelComp = this.createBean(new BackgroundPanel(this.chartOptionsService));\n this.chartGroup.addItem(backgroundPanelComp);\n this.activePanels.push(backgroundPanelComp);\n };\n\n ChartPanel.prototype.destroyActivePanels = function () {\n var _this = this;\n\n this.activePanels.forEach(function (panel) {\n _.removeFromParent(panel.getGui());\n\n _this.destroyBean(panel);\n });\n };\n\n ChartPanel.prototype.destroy = function () {\n this.destroyActivePanels();\n\n _super.prototype.destroy.call(this);\n };\n\n ChartPanel.TEMPLATE = \"
\\n \\n
\";\n\n __decorate$W([RefSelector('chartGroup')], ChartPanel.prototype, \"chartGroup\", void 0);\n\n __decorate$W([Autowired('chartTranslationService')], ChartPanel.prototype, \"chartTranslationService\", void 0);\n\n __decorate$W([PostConstruct], ChartPanel.prototype, \"init\", null);\n\n return ChartPanel;\n}(Component);\n\nvar __extends$1D = undefined && undefined.__extends || function () {\n var _extendStatics117 = function extendStatics(d, b) {\n _extendStatics117 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics117(d, b);\n };\n\n return function (d, b) {\n _extendStatics117(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ShadowPanel =\n/** @class */\nfunction (_super) {\n __extends$1D(ShadowPanel, _super);\n\n function ShadowPanel(chartOptionsService, getSelectedSeries) {\n var _this = _super.call(this) || this;\n\n _this.chartOptionsService = chartOptionsService;\n _this.getSelectedSeries = getSelectedSeries;\n return _this;\n }\n\n ShadowPanel.prototype.init = function () {\n var groupParams = {\n cssIdentifier: 'charts-format-sub-level',\n direction: 'vertical',\n suppressOpenCloseIcons: true\n };\n this.setTemplate(ShadowPanel.TEMPLATE, {\n shadowGroup: groupParams\n });\n this.shadowBlurSlider.setTextFieldWidth(45);\n this.shadowXOffsetSlider.setTextFieldWidth(45);\n this.shadowYOffsetSlider.setTextFieldWidth(45);\n this.initSeriesShadow();\n };\n\n ShadowPanel.prototype.initSeriesShadow = function () {\n var _this = this;\n\n this.shadowGroup.setTitle(this.chartTranslationService.translate(\"shadow\")).setEnabled(this.chartOptionsService.getSeriesOption(\"shadow.enabled\", this.getSelectedSeries())).hideOpenCloseIcons(true).hideEnabledCheckbox(false).onEnableChange(function (newValue) {\n return _this.chartOptionsService.setSeriesOption(\"shadow.enabled\", newValue, _this.getSelectedSeries());\n });\n this.shadowColorPicker.setLabel(this.chartTranslationService.translate(\"color\")).setLabelWidth(\"flex\").setInputWidth(45).setValue(this.chartOptionsService.getSeriesOption(\"shadow.color\", this.getSelectedSeries())).onValueChange(function (newValue) {\n return _this.chartOptionsService.setSeriesOption(\"shadow.color\", newValue, _this.getSelectedSeries());\n });\n\n var initInput = function initInput(input, property, minValue, defaultMaxValue) {\n var currentValue = _this.chartOptionsService.getSeriesOption(\"shadow.\" + property, _this.getSelectedSeries());\n\n input.setLabel(_this.chartTranslationService.translate(property)).setMinValue(minValue).setMaxValue(getMaxValue(currentValue, defaultMaxValue)).setValue(\"\" + currentValue).onValueChange(function (newValue) {\n return _this.chartOptionsService.setSeriesOption(\"shadow.\" + property, newValue, _this.getSelectedSeries());\n });\n };\n\n initInput(this.shadowBlurSlider, \"blur\", 0, 20);\n initInput(this.shadowXOffsetSlider, \"xOffset\", -10, 10);\n initInput(this.shadowYOffsetSlider, \"yOffset\", -10, 10);\n };\n\n ShadowPanel.TEMPLATE = \"
\\n \\n \\n \\n \\n \\n \\n
\";\n\n __decorate$V([RefSelector('shadowGroup')], ShadowPanel.prototype, \"shadowGroup\", void 0);\n\n __decorate$V([RefSelector('shadowColorPicker')], ShadowPanel.prototype, \"shadowColorPicker\", void 0);\n\n __decorate$V([RefSelector('shadowBlurSlider')], ShadowPanel.prototype, \"shadowBlurSlider\", void 0);\n\n __decorate$V([RefSelector('shadowXOffsetSlider')], ShadowPanel.prototype, \"shadowXOffsetSlider\", void 0);\n\n __decorate$V([RefSelector('shadowYOffsetSlider')], ShadowPanel.prototype, \"shadowYOffsetSlider\", void 0);\n\n __decorate$V([Autowired('chartTranslationService')], ShadowPanel.prototype, \"chartTranslationService\", void 0);\n\n __decorate$V([PostConstruct], ShadowPanel.prototype, \"init\", null);\n\n return ShadowPanel;\n}(Component);\n\nfunction initFontPanelParams(chartTranslationService, chartOptionsService, getSelectedSeries) {\n var initialFont = {\n family: chartOptionsService.getSeriesOption(\"label.fontFamily\", getSelectedSeries()),\n style: chartOptionsService.getSeriesOption(\"label.fontStyle\", getSelectedSeries()),\n weight: chartOptionsService.getSeriesOption(\"label.fontWeight\", getSelectedSeries()),\n size: chartOptionsService.getSeriesOption(\"label.fontSize\", getSelectedSeries()),\n color: chartOptionsService.getSeriesOption(\"label.color\", getSelectedSeries())\n };\n\n var setFont = function setFont(font) {\n if (font.family) {\n chartOptionsService.setSeriesOption(\"label.fontFamily\", font.family, getSelectedSeries());\n }\n\n if (font.weight) {\n chartOptionsService.setSeriesOption(\"label.fontWeight\", font.weight, getSelectedSeries());\n }\n\n if (font.style) {\n chartOptionsService.setSeriesOption(\"label.fontStyle\", font.style, getSelectedSeries());\n }\n\n if (font.size) {\n chartOptionsService.setSeriesOption(\"label.fontSize\", font.size, getSelectedSeries());\n }\n\n if (font.color) {\n chartOptionsService.setSeriesOption(\"label.color\", font.color, getSelectedSeries());\n }\n };\n\n var params = {\n name: chartTranslationService.translate('labels'),\n enabled: chartOptionsService.getSeriesOption(\"label.enabled\", getSelectedSeries()) || false,\n setEnabled: function setEnabled(enabled) {\n return chartOptionsService.setSeriesOption(\"label.enabled\", enabled, getSelectedSeries());\n },\n suppressEnabledCheckbox: false,\n initialFont: initialFont,\n setFont: setFont\n };\n return params;\n}\n\nvar __extends$1C = undefined && undefined.__extends || function () {\n var _extendStatics118 = function extendStatics(d, b) {\n _extendStatics118 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics118(d, b);\n };\n\n return function (d, b) {\n _extendStatics118(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar MarkersPanel =\n/** @class */\nfunction (_super) {\n __extends$1C(MarkersPanel, _super);\n\n function MarkersPanel(chartOptionsService, getSelectedSeries) {\n var _this = _super.call(this) || this;\n\n _this.chartOptionsService = chartOptionsService;\n _this.getSelectedSeries = getSelectedSeries;\n return _this;\n }\n\n MarkersPanel.prototype.init = function () {\n var groupParams = {\n cssIdentifier: 'charts-format-sub-level',\n direction: 'vertical'\n };\n this.setTemplate(MarkersPanel.TEMPLATE, {\n seriesMarkersGroup: groupParams\n });\n this.initMarkers();\n };\n\n MarkersPanel.prototype.initMarkers = function () {\n var _this = this;\n\n var seriesMarkerShapeOptions = [{\n value: 'square',\n text: 'Square'\n }, {\n value: 'circle',\n text: 'Circle'\n }, {\n value: 'cross',\n text: 'Cross'\n }, {\n value: 'diamond',\n text: 'Diamond'\n }, {\n value: 'plus',\n text: 'Plus'\n }, {\n value: 'triangle',\n text: 'Triangle'\n }, {\n value: 'heart',\n text: 'Heart'\n }];\n this.seriesMarkerShapeSelect.addOptions(seriesMarkerShapeOptions).setLabel(this.chartTranslationService.translate('shape')).setValue(this.getSeriesOption(\"marker.shape\")).onValueChange(function (value) {\n return _this.setSeriesOption(\"marker.shape\", value);\n }); // scatter charts should always show markers\n\n var chartType = this.chartOptionsService.getChartType();\n\n var shouldHideEnabledCheckbox = _.includes(['scatter', 'bubble'], chartType);\n\n this.seriesMarkersGroup.setTitle(this.chartTranslationService.translate(\"markers\")).hideEnabledCheckbox(shouldHideEnabledCheckbox).setEnabled(this.getSeriesOption(\"marker.enabled\") || false).hideOpenCloseIcons(true).onEnableChange(function (newValue) {\n return _this.setSeriesOption(\"marker.enabled\", newValue);\n });\n\n var initInput = function initInput(expression, input, labelKey, defaultMaxValue) {\n var currentValue = _this.getSeriesOption(expression);\n\n input.setLabel(_this.chartTranslationService.translate(labelKey)).setMaxValue(getMaxValue(currentValue, defaultMaxValue)).setValue(\"\" + currentValue).setTextFieldWidth(45).onValueChange(function (newValue) {\n return _this.setSeriesOption(expression, newValue);\n });\n };\n\n if (chartType === 'bubble') {\n initInput(\"marker.maxSize\", this.seriesMarkerMinSizeSlider, \"maxSize\", 60);\n initInput(\"marker.size\", this.seriesMarkerSizeSlider, \"minSize\", 60);\n } else {\n this.seriesMarkerMinSizeSlider.setDisplayed(false);\n initInput(\"marker.size\", this.seriesMarkerSizeSlider, \"size\", 60);\n }\n\n initInput(\"marker.strokeWidth\", this.seriesMarkerStrokeWidthSlider, \"strokeWidth\", 10);\n };\n\n MarkersPanel.prototype.getSeriesOption = function (expression) {\n return this.chartOptionsService.getSeriesOption(expression, this.getSelectedSeries());\n };\n\n MarkersPanel.prototype.setSeriesOption = function (expression, newValue) {\n this.chartOptionsService.setSeriesOption(expression, newValue, this.getSelectedSeries());\n };\n\n MarkersPanel.TEMPLATE = \"
\\n \\n \\n \\n \\n \\n \\n
\";\n\n __decorate$U([RefSelector('seriesMarkersGroup')], MarkersPanel.prototype, \"seriesMarkersGroup\", void 0);\n\n __decorate$U([RefSelector('seriesMarkerShapeSelect')], MarkersPanel.prototype, \"seriesMarkerShapeSelect\", void 0);\n\n __decorate$U([RefSelector('seriesMarkerSizeSlider')], MarkersPanel.prototype, \"seriesMarkerSizeSlider\", void 0);\n\n __decorate$U([RefSelector('seriesMarkerMinSizeSlider')], MarkersPanel.prototype, \"seriesMarkerMinSizeSlider\", void 0);\n\n __decorate$U([RefSelector('seriesMarkerStrokeWidthSlider')], MarkersPanel.prototype, \"seriesMarkerStrokeWidthSlider\", void 0);\n\n __decorate$U([Autowired('chartTranslationService')], MarkersPanel.prototype, \"chartTranslationService\", void 0);\n\n __decorate$U([PostConstruct], MarkersPanel.prototype, \"init\", null);\n\n return MarkersPanel;\n}(Component);\n\nvar __extends$1B = undefined && undefined.__extends || function () {\n var _extendStatics119 = function extendStatics(d, b) {\n _extendStatics119 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics119(d, b);\n };\n\n return function (d, b) {\n _extendStatics119(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar CalloutPanel =\n/** @class */\nfunction (_super) {\n __extends$1B(CalloutPanel, _super);\n\n function CalloutPanel(chartOptionsService, getSelectedSeries) {\n var _this = _super.call(this) || this;\n\n _this.chartOptionsService = chartOptionsService;\n _this.getSelectedSeries = getSelectedSeries;\n return _this;\n }\n\n CalloutPanel.prototype.init = function () {\n var groupParams = {\n cssIdentifier: 'charts-format-sub-level',\n direction: 'vertical'\n };\n this.setTemplate(CalloutPanel.TEMPLATE, {\n calloutGroup: groupParams\n });\n this.initCalloutOptions();\n };\n\n CalloutPanel.prototype.initCalloutOptions = function () {\n var _this = this;\n\n this.calloutGroup.setTitle(this.chartTranslationService.translate(\"callout\")).setEnabled(true).hideOpenCloseIcons(true).hideEnabledCheckbox(true);\n\n var initInput = function initInput(expression, input, labelKey, defaultMaxValue) {\n var currentValue = _this.chartOptionsService.getSeriesOption(expression, _this.getSelectedSeries());\n\n input.setLabel(_this.chartTranslationService.translate(labelKey)).setMaxValue(getMaxValue(currentValue, defaultMaxValue)).setValue(\"\" + currentValue).setTextFieldWidth(45).onValueChange(function (newValue) {\n return _this.chartOptionsService.setSeriesOption(expression, newValue, _this.getSelectedSeries());\n });\n };\n\n initInput(\"callout.length\", this.calloutLengthSlider, \"length\", 40);\n initInput(\"callout.strokeWidth\", this.calloutStrokeWidthSlider, \"strokeWidth\", 10);\n initInput(\"label.offset\", this.labelOffsetSlider, \"offset\", 30);\n };\n\n CalloutPanel.TEMPLATE = \"
\\n \\n \\n \\n \\n \\n
\";\n\n __decorate$T([RefSelector('calloutGroup')], CalloutPanel.prototype, \"calloutGroup\", void 0);\n\n __decorate$T([RefSelector('calloutLengthSlider')], CalloutPanel.prototype, \"calloutLengthSlider\", void 0);\n\n __decorate$T([RefSelector('calloutStrokeWidthSlider')], CalloutPanel.prototype, \"calloutStrokeWidthSlider\", void 0);\n\n __decorate$T([RefSelector('labelOffsetSlider')], CalloutPanel.prototype, \"labelOffsetSlider\", void 0);\n\n __decorate$T([Autowired('chartTranslationService')], CalloutPanel.prototype, \"chartTranslationService\", void 0);\n\n __decorate$T([PostConstruct], CalloutPanel.prototype, \"init\", null);\n\n return CalloutPanel;\n}(Component);\n\nvar __extends$1A = undefined && undefined.__extends || function () {\n var _extendStatics120 = function extendStatics(d, b) {\n _extendStatics120 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics120(d, b);\n };\n\n return function (d, b) {\n _extendStatics120(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SeriesPanel =\n/** @class */\nfunction (_super) {\n __extends$1A(SeriesPanel, _super);\n\n function SeriesPanel(chartController, chartOptionsService, seriesType) {\n var _this = _super.call(this) || this;\n\n _this.chartController = chartController;\n _this.chartOptionsService = chartOptionsService;\n _this.activePanels = [];\n _this.widgetFuncs = {\n 'lineWidth': function lineWidth() {\n return _this.initLineWidth();\n },\n 'strokeWidth': function strokeWidth() {\n return _this.initStrokeWidth();\n },\n 'lineDash': function lineDash() {\n return _this.initLineDash();\n },\n 'lineOpacity': function lineOpacity() {\n return _this.initLineOpacity();\n },\n 'fillOpacity': function fillOpacity() {\n return _this.initFillOpacity();\n },\n 'markers': function markers() {\n return _this.initMarkers();\n },\n 'labels': function labels() {\n return _this.initLabels();\n },\n 'shadow': function shadow() {\n return _this.initShadow();\n },\n 'tooltips': function tooltips() {\n return _this.initTooltips();\n },\n 'bins': function bins() {\n return _this.initBins();\n }\n };\n _this.seriesWidgetMappings = {\n 'area': ['tooltips', 'lineWidth', 'lineDash', 'lineOpacity', 'fillOpacity', 'markers', 'labels', 'shadow'],\n 'bar': ['tooltips', 'strokeWidth', 'lineDash', 'lineOpacity', 'fillOpacity', 'labels', 'shadow'],\n 'column': ['tooltips', 'strokeWidth', 'lineDash', 'lineOpacity', 'fillOpacity', 'labels', 'shadow'],\n 'line': ['tooltips', 'lineWidth', 'lineDash', 'lineOpacity', 'markers', 'labels'],\n 'histogram': ['tooltips', 'bins', 'strokeWidth', 'lineDash', 'lineOpacity', 'fillOpacity', 'labels', 'shadow'],\n 'scatter': ['tooltips', 'markers', 'labels'],\n 'pie': ['tooltips', 'strokeWidth', 'lineOpacity', 'fillOpacity', 'labels', 'shadow']\n };\n _this.seriesType = seriesType || _this.getChartSeriesType();\n return _this;\n }\n\n SeriesPanel.prototype.init = function () {\n var groupParams = {\n cssIdentifier: 'charts-format-top-level',\n direction: 'vertical'\n };\n this.setTemplate(SeriesPanel.TEMPLATE, {\n seriesGroup: groupParams\n });\n this.seriesGroup.setTitle(this.translate(\"series\")).toggleGroupExpand(false).hideEnabledCheckbox(true);\n this.addManagedListener(this.chartController, ChartController.EVENT_CHART_SERIES_CHART_TYPE_CHANGED, this.refreshWidgets.bind(this));\n this.refreshWidgets();\n };\n\n SeriesPanel.prototype.refreshWidgets = function () {\n var _this = this;\n\n this.destroyActivePanels();\n\n if (this.chartController.isComboChart()) {\n this.updateSeriesType();\n this.initSeriesSelect();\n }\n\n this.seriesWidgetMappings[this.seriesType].forEach(function (w) {\n return _this.widgetFuncs[w]();\n });\n };\n\n SeriesPanel.prototype.initSeriesSelect = function () {\n var _this = this;\n\n var seriesSelect = this.seriesGroup.createManagedBean(new AgSelect());\n seriesSelect.setLabel(this.translate('seriesType')).setLabelAlignment(\"left\").setLabelWidth('flex').setInputWidth(100).addOptions(this.getSeriesSelectOptions()).setValue(\"\" + this.seriesType).onValueChange(function (newValue) {\n _this.seriesType = newValue;\n\n _this.refreshWidgets();\n });\n this.seriesGroup.addItem(seriesSelect);\n this.activePanels.push(seriesSelect);\n };\n\n SeriesPanel.prototype.initTooltips = function () {\n var _this = this;\n\n var seriesTooltipsToggle = this.createBean(new AgToggleButton());\n seriesTooltipsToggle.setLabel(this.translate(\"tooltips\")).setLabelAlignment(\"left\").setLabelWidth(\"flex\").setInputWidth(45).setValue(this.getSeriesOption(\"tooltip.enabled\") || false).onValueChange(function (newValue) {\n return _this.setSeriesOption(\"tooltip.enabled\", newValue);\n });\n this.addWidget(seriesTooltipsToggle);\n };\n\n SeriesPanel.prototype.initStrokeWidth = function () {\n var _this = this;\n\n var currentValue = this.getSeriesOption(\"strokeWidth\");\n var seriesStrokeWidthSlider = this.createBean(new AgSlider());\n seriesStrokeWidthSlider.setLabel(this.translate(\"strokeWidth\")).setMaxValue(getMaxValue(currentValue, 10)).setTextFieldWidth(45).setValue(\"\" + currentValue).onValueChange(function (newValue) {\n return _this.setSeriesOption(\"strokeWidth\", newValue);\n });\n this.addWidget(seriesStrokeWidthSlider);\n };\n\n SeriesPanel.prototype.initLineWidth = function () {\n var _this = this;\n\n var currentValue = this.getSeriesOption(\"strokeWidth\");\n var seriesLineWidthSlider = this.createBean(new AgSlider());\n seriesLineWidthSlider.setLabel(this.translate('lineWidth')).setMaxValue(getMaxValue(currentValue, 10)).setTextFieldWidth(45).setValue(\"\" + currentValue).onValueChange(function (newValue) {\n return _this.setSeriesOption(\"strokeWidth\", newValue);\n });\n this.addWidget(seriesLineWidthSlider);\n };\n\n SeriesPanel.prototype.initLineDash = function () {\n var _this = this;\n\n var lineDash = this.getSeriesOption(\"lineDash\");\n var currentValue = lineDash ? lineDash[0] : 0;\n var seriesLineDashSlider = this.createBean(new AgSlider());\n seriesLineDashSlider.setLabel(this.translate('lineDash')).setMaxValue(getMaxValue(currentValue, 30)).setTextFieldWidth(45).setValue(\"\" + currentValue).onValueChange(function (newValue) {\n return _this.setSeriesOption(\"lineDash\", [newValue]);\n });\n this.addWidget(seriesLineDashSlider);\n };\n\n SeriesPanel.prototype.initLineOpacity = function () {\n var _this = this;\n\n var currentValue = this.getSeriesOption(\"strokeOpacity\");\n var seriesLineOpacitySlider = this.createBean(new AgSlider());\n seriesLineOpacitySlider.setLabel(this.translate(\"strokeOpacity\")).setStep(0.05).setMaxValue(getMaxValue(currentValue, 1)).setTextFieldWidth(45).setValue(\"\" + currentValue).onValueChange(function (newValue) {\n return _this.setSeriesOption(\"strokeOpacity\", newValue);\n });\n this.addWidget(seriesLineOpacitySlider);\n };\n\n SeriesPanel.prototype.initFillOpacity = function () {\n var _this = this;\n\n var currentValue = this.getSeriesOption(\"fillOpacity\");\n var seriesFillOpacitySlider = this.createBean(new AgSlider());\n seriesFillOpacitySlider.setLabel(this.translate(\"fillOpacity\")).setStep(0.05).setMaxValue(getMaxValue(currentValue, 1)).setTextFieldWidth(45).setValue(\"\" + currentValue).onValueChange(function (newValue) {\n return _this.setSeriesOption(\"fillOpacity\", newValue);\n });\n this.addWidget(seriesFillOpacitySlider);\n };\n\n SeriesPanel.prototype.initLabels = function () {\n var _this = this;\n\n var params = initFontPanelParams(this.chartTranslationService, this.chartOptionsService, function () {\n return _this.seriesType;\n });\n var labelPanelComp = this.createBean(new FontPanel(params));\n\n if (this.seriesType === 'pie') {\n var calloutPanelComp = this.createBean(new CalloutPanel(this.chartOptionsService, function () {\n return _this.seriesType;\n }));\n labelPanelComp.addCompToPanel(calloutPanelComp);\n this.activePanels.push(calloutPanelComp);\n }\n\n this.addWidget(labelPanelComp);\n };\n\n SeriesPanel.prototype.initShadow = function () {\n var _this = this;\n\n var shadowPanelComp = this.createBean(new ShadowPanel(this.chartOptionsService, function () {\n return _this.seriesType;\n }));\n this.addWidget(shadowPanelComp);\n };\n\n SeriesPanel.prototype.initMarkers = function () {\n var _this = this;\n\n var markersPanelComp = this.createBean(new MarkersPanel(this.chartOptionsService, function () {\n return _this.seriesType;\n }));\n this.addWidget(markersPanelComp);\n };\n\n SeriesPanel.prototype.initBins = function () {\n var _this = this;\n\n var currentValue = this.getSeriesOption(\"binCount\");\n var seriesBinCountSlider = this.createBean(new AgSlider());\n seriesBinCountSlider.setLabel(this.translate(\"histogramBinCount\")).setMinValue(4).setMaxValue(getMaxValue(currentValue, 100)).setTextFieldWidth(45).setValue(\"\" + currentValue).onValueChange(function (newValue) {\n return _this.setSeriesOption(\"binCount\", newValue);\n });\n this.addWidget(seriesBinCountSlider);\n };\n\n SeriesPanel.prototype.addWidget = function (widget) {\n this.seriesGroup.addItem(widget);\n this.activePanels.push(widget);\n };\n\n SeriesPanel.prototype.getSeriesOption = function (expression) {\n return this.chartOptionsService.getSeriesOption(expression, this.seriesType);\n };\n\n SeriesPanel.prototype.setSeriesOption = function (expression, newValue) {\n this.chartOptionsService.setSeriesOption(expression, newValue, this.seriesType);\n };\n\n SeriesPanel.prototype.getChartSeriesType = function () {\n if (this.chartController.getSeriesChartTypes().length === 0) {\n return 'column';\n }\n\n var ct = this.chartController.getSeriesChartTypes()[0].chartType;\n return ct === 'columnLineCombo' ? 'column' : ct === 'areaColumnCombo' ? 'area' : getSeriesType(ct);\n };\n\n SeriesPanel.prototype.getSeriesSelectOptions = function () {\n var _this = this;\n\n if (!this.seriesSelectOptions) {\n // lazy init options as they are only required for combo charts\n this.seriesSelectOptions = new Map([['area', {\n value: 'area',\n text: this.translate('area', 'Area')\n }], ['bar', {\n value: 'bar',\n text: this.translate('bar', 'Bar')\n }], ['column', {\n value: 'column',\n text: this.translate('column', 'Column')\n }], ['line', {\n value: 'line',\n text: this.translate('line', 'Line')\n }], ['scatter', {\n value: 'scatter',\n text: this.translate('scatter', 'Scatter')\n }], ['histogram', {\n value: 'histogram',\n text: this.translate('histogram', 'Histogram')\n }], ['pie', {\n value: 'pie',\n text: this.translate('pie', 'Pie')\n }]]);\n }\n\n var seriesSelectOptions = new Set();\n this.chartController.getActiveSeriesChartTypes().forEach(function (s) {\n var chartType = getSeriesType(s.chartType);\n seriesSelectOptions.add(_this.seriesSelectOptions.get(chartType));\n });\n return Array.from(seriesSelectOptions);\n };\n\n SeriesPanel.prototype.updateSeriesType = function () {\n var activeChartTypes = this.chartController.getActiveSeriesChartTypes().map(function (s) {\n return getSeriesType(s.chartType);\n });\n var invalidSeriesType = !activeChartTypes.includes(this.seriesType);\n\n if (invalidSeriesType && activeChartTypes.length > 0) {\n this.seriesType = activeChartTypes[0]; // default to first active series type\n }\n };\n\n SeriesPanel.prototype.translate = function (key, defaultText) {\n return this.chartTranslationService.translate(key, defaultText);\n };\n\n SeriesPanel.prototype.destroyActivePanels = function () {\n var _this = this;\n\n this.activePanels.forEach(function (panel) {\n _.removeFromParent(panel.getGui());\n\n _this.destroyBean(panel);\n });\n };\n\n SeriesPanel.prototype.destroy = function () {\n this.destroyActivePanels();\n\n _super.prototype.destroy.call(this);\n };\n\n SeriesPanel.TEMPLATE = \"
\\n \\n \\n
\";\n\n __decorate$S([RefSelector('seriesGroup')], SeriesPanel.prototype, \"seriesGroup\", void 0);\n\n __decorate$S([Autowired('chartTranslationService')], SeriesPanel.prototype, \"chartTranslationService\", void 0);\n\n __decorate$S([PostConstruct], SeriesPanel.prototype, \"init\", null);\n\n return SeriesPanel;\n}(Component);\n\nvar __extends$1z = undefined && undefined.__extends || function () {\n var _extendStatics121 = function extendStatics(d, b) {\n _extendStatics121 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics121(d, b);\n };\n\n return function (d, b) {\n _extendStatics121(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nfunction getMaxValue(currentValue, defaultMaxValue) {\n return Math.max(currentValue, defaultMaxValue);\n}\n\nvar FormatPanel =\n/** @class */\nfunction (_super) {\n __extends$1z(FormatPanel, _super);\n\n function FormatPanel(chartController, chartOptionsService) {\n var _this = _super.call(this, FormatPanel.TEMPLATE) || this;\n\n _this.chartController = chartController;\n _this.chartOptionsService = chartOptionsService;\n _this.panels = [];\n return _this;\n }\n\n FormatPanel.prototype.init = function () {\n this.createPanels();\n this.addManagedListener(this.chartController, ChartController.EVENT_CHART_UPDATED, this.createPanels.bind(this));\n };\n\n FormatPanel.prototype.createPanels = function () {\n var chartType = this.chartController.getChartType();\n var isGrouping = this.chartController.isGrouping();\n\n if (chartType === this.chartType && isGrouping === this.isGrouping) {\n // existing panels can be re-used\n return;\n }\n\n this.destroyPanels();\n this.addComponent(new ChartPanel(this.chartOptionsService));\n this.addComponent(new LegendPanel(this.chartOptionsService));\n\n switch (chartType) {\n case 'groupedColumn':\n case 'stackedColumn':\n case 'normalizedColumn':\n this.addComponent(new AxisPanel(this.chartController, this.chartOptionsService));\n this.addComponent(new SeriesPanel(this.chartController, this.chartOptionsService, 'column'));\n this.addComponent(new NavigatorPanel(this.chartOptionsService));\n break;\n\n case 'groupedBar':\n case 'stackedBar':\n case 'normalizedBar':\n this.addComponent(new AxisPanel(this.chartController, this.chartOptionsService));\n this.addComponent(new SeriesPanel(this.chartController, this.chartOptionsService, 'bar'));\n this.addComponent(new NavigatorPanel(this.chartOptionsService));\n break;\n\n case 'pie':\n case 'doughnut':\n this.addComponent(new SeriesPanel(this.chartController, this.chartOptionsService, 'pie'));\n break;\n\n case 'line':\n this.addComponent(new AxisPanel(this.chartController, this.chartOptionsService));\n this.addComponent(new SeriesPanel(this.chartController, this.chartOptionsService, 'line'));\n this.addComponent(new NavigatorPanel(this.chartOptionsService));\n break;\n\n case 'scatter':\n case 'bubble':\n this.addComponent(new AxisPanel(this.chartController, this.chartOptionsService));\n this.addComponent(new SeriesPanel(this.chartController, this.chartOptionsService, 'scatter'));\n this.addComponent(new NavigatorPanel(this.chartOptionsService));\n break;\n\n case 'area':\n case 'stackedArea':\n case 'normalizedArea':\n this.addComponent(new AxisPanel(this.chartController, this.chartOptionsService));\n this.addComponent(new SeriesPanel(this.chartController, this.chartOptionsService, 'area'));\n this.addComponent(new NavigatorPanel(this.chartOptionsService));\n break;\n\n case 'histogram':\n this.addComponent(new AxisPanel(this.chartController, this.chartOptionsService));\n this.addComponent(new SeriesPanel(this.chartController, this.chartOptionsService, 'histogram'));\n this.addComponent(new NavigatorPanel(this.chartOptionsService));\n break;\n\n case 'columnLineCombo':\n case 'areaColumnCombo':\n case 'customCombo':\n this.addComponent(new AxisPanel(this.chartController, this.chartOptionsService)); // there is no single series type supplied for combo charts, it is inferred by the Series Panel\n\n this.addComponent(new SeriesPanel(this.chartController, this.chartOptionsService));\n this.addComponent(new NavigatorPanel(this.chartOptionsService));\n break;\n\n default:\n // warn vanilla javascript users when they supply invalid chart type\n console.warn(\"AG Grid: ChartFormattingPanel - unexpected chart type index: \" + chartType + \" supplied\");\n }\n\n this.chartType = chartType;\n this.isGrouping = isGrouping;\n };\n\n FormatPanel.prototype.addComponent = function (component) {\n this.createBean(component);\n this.panels.push(component);\n component.addCssClass('ag-chart-format-section');\n this.getGui().appendChild(component.getGui());\n };\n\n FormatPanel.prototype.destroyPanels = function () {\n var _this = this;\n\n this.panels.forEach(function (panel) {\n _.removeFromParent(panel.getGui());\n\n _this.destroyBean(panel);\n });\n };\n\n FormatPanel.prototype.destroy = function () {\n this.destroyPanels();\n\n _super.prototype.destroy.call(this);\n };\n\n FormatPanel.TEMPLATE = \"
\";\n\n __decorate$R([PostConstruct], FormatPanel.prototype, \"init\", null);\n\n return FormatPanel;\n}(Component);\n\nvar __extends$1y = undefined && undefined.__extends || function () {\n var _extendStatics122 = function extendStatics(d, b) {\n _extendStatics122 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics122(d, b);\n };\n\n return function (d, b) {\n _extendStatics122(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar MiniChart =\n/** @class */\nfunction (_super) {\n __extends$1y(MiniChart, _super);\n\n function MiniChart(container, tooltipName) {\n var _this = _super.call(this) || this;\n\n _this.size = 58;\n _this.padding = 5;\n _this.root = new Group$1();\n var scene = new Scene$1({\n document: window.document,\n width: _this.size,\n height: _this.size\n });\n scene.canvas.element.classList.add('ag-chart-mini-thumbnail-canvas');\n scene.root = _this.root;\n scene.container = container;\n _this.scene = scene;\n _this.tooltipName = tooltipName;\n return _this;\n }\n\n MiniChart.prototype.init = function () {\n this.scene.canvas.element.title = this.chartTranslationService.translate(this.tooltipName); // necessary to force scene graph render as we are not using the standalone factory!\n\n this.scene.render();\n };\n\n __decorate$Q([Autowired('chartTranslationService')], MiniChart.prototype, \"chartTranslationService\", void 0);\n\n __decorate$Q([PostConstruct], MiniChart.prototype, \"init\", null);\n\n return MiniChart;\n}(Component);\n\nvar __extends$1x = undefined && undefined.__extends || function () {\n var _extendStatics123 = function extendStatics(d, b) {\n _extendStatics123 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics123(d, b);\n };\n\n return function (d, b) {\n _extendStatics123(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar MiniChartWithAxes =\n/** @class */\nfunction (_super) {\n __extends$1x(MiniChartWithAxes, _super);\n\n function MiniChartWithAxes(container, tooltipName) {\n var _this = _super.call(this, container, tooltipName) || this;\n\n _this.stroke = 'gray';\n _this.axisOvershoot = 3;\n return _this;\n }\n\n MiniChartWithAxes.prototype.addAxes = function () {\n var size = this.size;\n var padding = this.padding;\n var leftAxis = new Line$1();\n leftAxis.x1 = padding;\n leftAxis.y1 = padding;\n leftAxis.x2 = padding;\n leftAxis.y2 = size - padding + this.axisOvershoot;\n leftAxis.stroke = this.stroke;\n var bottomAxis = new Line$1();\n bottomAxis.x1 = padding - this.axisOvershoot + 1;\n bottomAxis.y1 = size - padding;\n bottomAxis.x2 = size - padding + 1;\n bottomAxis.y2 = size - padding;\n bottomAxis.stroke = this.stroke;\n var root = this.root;\n root.append(leftAxis);\n root.append(bottomAxis);\n };\n\n __decorate$P([PostConstruct], MiniChartWithAxes.prototype, \"addAxes\", null);\n\n return MiniChartWithAxes;\n}(MiniChart);\n\nfunction createColumnRects(params) {\n var stacked = params.stacked,\n size = params.size,\n padding = params.padding,\n xScalePadding = params.xScalePadding,\n xScaleDomain = params.xScaleDomain,\n yScaleDomain = params.yScaleDomain;\n var xScale = new BandScale$1();\n xScale.domain = xScaleDomain;\n xScale.range = [padding, size - padding];\n xScale.paddingInner = xScalePadding;\n xScale.paddingOuter = xScalePadding;\n var yScale = new LinearScale$1();\n yScale.domain = yScaleDomain;\n yScale.range = [size - padding, padding];\n\n var createBars = function createBars(series, xScale, yScale) {\n return series.map(function (datum, i) {\n var top = yScale.convert(datum);\n var rect = new Rect();\n rect.x = xScale.convert(i);\n rect.y = top;\n rect.width = xScale.bandwidth;\n rect.height = yScale.convert(0) - top;\n rect.strokeWidth = 1;\n rect.crisp = true;\n return rect;\n });\n };\n\n if (stacked) {\n return params.data.map(function (d) {\n return createBars(d, xScale, yScale);\n });\n }\n\n return createBars(params.data, xScale, yScale);\n}\n\nfunction createLinePaths(root, data, size, padding) {\n var xScale = new LinearScale$1();\n xScale.domain = [0, 4];\n xScale.range = [padding, size - padding];\n var yScale = new LinearScale$1();\n yScale.domain = [0, 10];\n yScale.range = [size - padding, padding];\n var lines = data.map(function (series) {\n var line = new Path$1();\n line.strokeWidth = 3;\n line.lineCap = \"round\";\n line.fill = undefined;\n series.forEach(function (datum, i) {\n line.path[i > 0 ? \"lineTo\" : \"moveTo\"](xScale.convert(i), yScale.convert(datum));\n });\n return line;\n });\n var clipRect = new ClipRect();\n clipRect.x = clipRect.y = padding;\n clipRect.width = clipRect.height = size - padding * 2;\n clipRect.append(lines);\n root.append(clipRect);\n return lines;\n}\n\nvar __extends$1w = undefined && undefined.__extends || function () {\n var _extendStatics124 = function extendStatics(d, b) {\n _extendStatics124 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics124(d, b);\n };\n\n return function (d, b) {\n _extendStatics124(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar MiniColumn =\n/** @class */\nfunction (_super) {\n __extends$1w(MiniColumn, _super);\n\n function MiniColumn(container, fills, strokes) {\n var _this = _super.call(this, container, \"groupedColumnTooltip\") || this;\n\n _this.columnData = [2, 3, 4];\n var _a = _this,\n root = _a.root,\n columnData = _a.columnData,\n size = _a.size,\n padding = _a.padding;\n _this.columns = createColumnRects({\n stacked: false,\n root: root,\n data: columnData,\n size: size,\n padding: padding,\n xScaleDomain: [0, 1, 2],\n yScaleDomain: [0, 4],\n xScalePadding: 0.3\n });\n root.append(_this.columns);\n\n _this.updateColors(fills, strokes);\n\n return _this;\n }\n\n MiniColumn.prototype.updateColors = function (fills, strokes) {\n this.columns.forEach(function (column, i) {\n column.fill = fills[i];\n column.stroke = strokes[i];\n });\n };\n\n MiniColumn.chartType = 'groupedColumn';\n return MiniColumn;\n}(MiniChartWithAxes);\n\nvar __extends$1v = undefined && undefined.__extends || function () {\n var _extendStatics125 = function extendStatics(d, b) {\n _extendStatics125 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics125(d, b);\n };\n\n return function (d, b) {\n _extendStatics125(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar MiniStackedColumn =\n/** @class */\nfunction (_super) {\n __extends$1v(MiniStackedColumn, _super);\n\n function MiniStackedColumn(container, fills, strokes, data, yScaleDomain, tooltipName) {\n if (data === void 0) {\n data = MiniStackedColumn.data;\n }\n\n if (yScaleDomain === void 0) {\n yScaleDomain = [0, 16];\n }\n\n if (tooltipName === void 0) {\n tooltipName = \"stackedColumnTooltip\";\n }\n\n var _this = _super.call(this, container, tooltipName) || this;\n\n var _a = _this,\n root = _a.root,\n size = _a.size,\n padding = _a.padding;\n _this.stackedColumns = createColumnRects({\n stacked: true,\n root: root,\n data: data,\n size: size,\n padding: padding,\n xScaleDomain: [0, 1, 2],\n yScaleDomain: yScaleDomain,\n xScalePadding: 0.3\n });\n root.append([].concat.apply([], _this.stackedColumns));\n\n _this.updateColors(fills, strokes);\n\n return _this;\n }\n\n MiniStackedColumn.prototype.updateColors = function (fills, strokes) {\n this.stackedColumns.forEach(function (series, i) {\n return series.forEach(function (column) {\n column.fill = fills[i];\n column.stroke = strokes[i];\n });\n });\n };\n\n MiniStackedColumn.chartType = 'stackedColumn';\n MiniStackedColumn.data = [[8, 12, 16], [6, 9, 12], [2, 3, 4]];\n return MiniStackedColumn;\n}(MiniChartWithAxes);\n\nvar __extends$1u = undefined && undefined.__extends || function () {\n var _extendStatics126 = function extendStatics(d, b) {\n _extendStatics126 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics126(d, b);\n };\n\n return function (d, b) {\n _extendStatics126(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar MiniNormalizedColumn =\n/** @class */\nfunction (_super) {\n __extends$1u(MiniNormalizedColumn, _super);\n\n function MiniNormalizedColumn(container, fills, strokes) {\n return _super.call(this, container, fills, strokes, MiniNormalizedColumn.data, [0, 10], \"normalizedColumnTooltip\") || this;\n }\n\n MiniNormalizedColumn.chartType = 'normalizedColumn';\n MiniNormalizedColumn.data = [[10, 10, 10], [6, 7, 8], [2, 4, 6]];\n return MiniNormalizedColumn;\n}(MiniStackedColumn);\n\nvar __extends$1t = undefined && undefined.__extends || function () {\n var _extendStatics127 = function extendStatics(d, b) {\n _extendStatics127 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics127(d, b);\n };\n\n return function (d, b) {\n _extendStatics127(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar MiniBar =\n/** @class */\nfunction (_super) {\n __extends$1t(MiniBar, _super);\n\n function MiniBar(container, fills, strokes) {\n var _this = _super.call(this, container, \"groupedBarTooltip\") || this;\n\n var padding = _this.padding;\n var size = _this.size;\n var data = [2, 3, 4];\n var yScale = new BandScale$1();\n yScale.domain = [0, 1, 2];\n yScale.range = [padding, size - padding];\n yScale.paddingInner = 0.3;\n yScale.paddingOuter = 0.3;\n var xScale = new LinearScale$1();\n xScale.domain = [0, 4];\n xScale.range = [size - padding, padding];\n var bottom = xScale.convert(0);\n var height = yScale.bandwidth;\n _this.bars = data.map(function (datum, i) {\n var rect = new Rect();\n rect.x = padding;\n rect.y = yScale.convert(i);\n rect.width = bottom - xScale.convert(datum);\n rect.height = height;\n rect.strokeWidth = 1;\n rect.crisp = true;\n return rect;\n });\n\n _this.updateColors(fills, strokes);\n\n _this.root.append(_this.bars);\n\n return _this;\n }\n\n MiniBar.prototype.updateColors = function (fills, strokes) {\n this.bars.forEach(function (bar, i) {\n bar.fill = fills[i];\n bar.stroke = strokes[i];\n });\n };\n\n MiniBar.chartType = 'groupedBar';\n return MiniBar;\n}(MiniChartWithAxes);\n\nvar __extends$1s = undefined && undefined.__extends || function () {\n var _extendStatics128 = function extendStatics(d, b) {\n _extendStatics128 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics128(d, b);\n };\n\n return function (d, b) {\n _extendStatics128(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar MiniStackedBar =\n/** @class */\nfunction (_super) {\n __extends$1s(MiniStackedBar, _super);\n\n function MiniStackedBar(container, fills, strokes, data, xScaleDomain, tooltipName) {\n if (data === void 0) {\n data = MiniStackedBar.data;\n }\n\n if (xScaleDomain === void 0) {\n xScaleDomain = [0, 16];\n }\n\n if (tooltipName === void 0) {\n tooltipName = \"stackedBarTooltip\";\n }\n\n var _this = _super.call(this, container, tooltipName) || this;\n\n var size = _this.size;\n var padding = _this.padding;\n var yScale = new BandScale$1();\n yScale.domain = [0, 1, 2];\n yScale.range = [padding, size - padding];\n yScale.paddingInner = 0.3;\n yScale.paddingOuter = 0.3;\n var xScale = new LinearScale$1();\n xScale.domain = xScaleDomain;\n xScale.range = [size - padding, padding];\n var bottom = xScale.convert(0);\n var height = yScale.bandwidth;\n _this.bars = data.map(function (series) {\n return series.map(function (datum, i) {\n var rect = new Rect();\n rect.x = padding;\n rect.y = yScale.convert(i);\n rect.width = bottom - xScale.convert(datum);\n rect.height = height;\n rect.strokeWidth = 1;\n rect.crisp = true;\n return rect;\n });\n });\n\n _this.updateColors(fills, strokes);\n\n _this.root.append([].concat.apply([], _this.bars));\n\n return _this;\n }\n\n MiniStackedBar.prototype.updateColors = function (fills, strokes) {\n this.bars.forEach(function (series, i) {\n return series.forEach(function (bar) {\n bar.fill = fills[i];\n bar.stroke = strokes[i];\n });\n });\n };\n\n MiniStackedBar.chartType = 'stackedBar';\n MiniStackedBar.data = [[8, 12, 16], [6, 9, 12], [2, 3, 4]];\n return MiniStackedBar;\n}(MiniChartWithAxes);\n\nvar __extends$1r = undefined && undefined.__extends || function () {\n var _extendStatics129 = function extendStatics(d, b) {\n _extendStatics129 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics129(d, b);\n };\n\n return function (d, b) {\n _extendStatics129(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar MiniNormalizedBar =\n/** @class */\nfunction (_super) {\n __extends$1r(MiniNormalizedBar, _super);\n\n function MiniNormalizedBar(container, fills, strokes) {\n return _super.call(this, container, fills, strokes, MiniNormalizedBar.data, [0, 10], \"normalizedBarTooltip\") || this;\n }\n\n MiniNormalizedBar.chartType = 'normalizedBar';\n MiniNormalizedBar.data = [[10, 10, 10], [6, 7, 8], [2, 4, 6]];\n return MiniNormalizedBar;\n}(MiniStackedBar);\n\nvar __extends$1q = undefined && undefined.__extends || function () {\n var _extendStatics130 = function extendStatics(d, b) {\n _extendStatics130 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics130(d, b);\n };\n\n return function (d, b) {\n _extendStatics130(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __read$e = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar MiniDoughnut =\n/** @class */\nfunction (_super) {\n __extends$1q(MiniDoughnut, _super);\n\n function MiniDoughnut(container, fills, strokes, centerRadiusScaler, tooltipName) {\n if (centerRadiusScaler === void 0) {\n centerRadiusScaler = 0.6;\n }\n\n if (tooltipName === void 0) {\n tooltipName = \"doughnutTooltip\";\n }\n\n var _this = _super.call(this, container, tooltipName) || this;\n\n var radius = (_this.size - _this.padding * 2) / 2;\n var center = radius + _this.padding;\n var angles = [[toRadians(-90), toRadians(30)], [toRadians(30), toRadians(120)], [toRadians(120), toRadians(180)], [toRadians(180), toRadians(210)], [toRadians(210), toRadians(240)], [toRadians(240), toRadians(270)]];\n _this.sectors = angles.map(function (_a) {\n var _b = __read$e(_a, 2),\n startAngle = _b[0],\n endAngle = _b[1];\n\n var sector = new Sector();\n sector.centerX = center;\n sector.centerY = center;\n sector.innerRadius = radius * centerRadiusScaler;\n sector.outerRadius = radius;\n sector.startAngle = startAngle;\n sector.endAngle = endAngle;\n sector.stroke = undefined;\n sector.strokeWidth = 1;\n return sector;\n });\n\n _this.updateColors(fills, strokes);\n\n _this.root.append(_this.sectors);\n\n return _this;\n }\n\n MiniDoughnut.prototype.updateColors = function (fills, strokes) {\n this.sectors.forEach(function (sector, i) {\n sector.fill = fills[i % fills.length];\n sector.stroke = strokes[i % strokes.length];\n });\n };\n\n MiniDoughnut.chartType = 'doughnut';\n return MiniDoughnut;\n}(MiniChart);\n\nvar __extends$1p = undefined && undefined.__extends || function () {\n var _extendStatics131 = function extendStatics(d, b) {\n _extendStatics131 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics131(d, b);\n };\n\n return function (d, b) {\n _extendStatics131(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar MiniPie =\n/** @class */\nfunction (_super) {\n __extends$1p(MiniPie, _super);\n\n function MiniPie(container, fills, strokes) {\n return _super.call(this, container, fills, strokes, 0, \"pieTooltip\") || this;\n }\n\n MiniPie.chartType = 'pie';\n return MiniPie;\n}(MiniDoughnut);\n\nvar __extends$1o = undefined && undefined.__extends || function () {\n var _extendStatics132 = function extendStatics(d, b) {\n _extendStatics132 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics132(d, b);\n };\n\n return function (d, b) {\n _extendStatics132(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar MiniLine =\n/** @class */\nfunction (_super) {\n __extends$1o(MiniLine, _super);\n\n function MiniLine(container, fills, strokes) {\n var _this = _super.call(this, container, \"lineTooltip\") || this;\n\n _this.data = [[9, 7, 8, 5, 6], [5, 6, 3, 4, 1], [1, 3, 4, 8, 7]];\n _this.lines = createLinePaths(_this.root, _this.data, _this.size, _this.padding);\n\n _this.updateColors(fills, strokes);\n\n return _this;\n }\n\n MiniLine.prototype.updateColors = function (fills, strokes) {\n this.lines.forEach(function (line, i) {\n line.stroke = fills[i];\n });\n };\n\n MiniLine.chartType = 'line';\n return MiniLine;\n}(MiniChartWithAxes);\n\nvar __extends$1n = undefined && undefined.__extends || function () {\n var _extendStatics133 = function extendStatics(d, b) {\n _extendStatics133 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics133(d, b);\n };\n\n return function (d, b) {\n _extendStatics133(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __read$d = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar MiniScatter =\n/** @class */\nfunction (_super) {\n __extends$1n(MiniScatter, _super);\n\n function MiniScatter(container, fills, strokes) {\n var _this = _super.call(this, container, \"scatterTooltip\") || this;\n\n var size = _this.size;\n var padding = _this.padding; // [x, y] pairs\n\n var data = [[[0.3, 3], [1.1, 0.9], [2, 0.4], [3.4, 2.4]], [[0, 0.3], [1, 2], [2.4, 1.4], [3, 0]]];\n var xScale = new LinearScale$1();\n xScale.domain = [-0.5, 4];\n xScale.range = [padding * 2, size - padding];\n var yScale = new LinearScale$1();\n yScale.domain = [-0.5, 3.5];\n yScale.range = [size - padding, padding];\n var points = [];\n data.forEach(function (series) {\n series.forEach(function (_a) {\n var _b = __read$d(_a, 2),\n x = _b[0],\n y = _b[1];\n\n var arc = new Arc();\n arc.strokeWidth = 1;\n arc.centerX = xScale.convert(x);\n arc.centerY = yScale.convert(y);\n arc.radiusX = arc.radiusY = 2.5;\n points.push(arc);\n });\n });\n _this.points = points;\n\n _this.updateColors(fills, strokes);\n\n var clipRect = new ClipRect();\n clipRect.x = clipRect.y = padding;\n clipRect.width = clipRect.height = size - padding * 2;\n clipRect.append(_this.points);\n\n _this.root.append(clipRect);\n\n return _this;\n }\n\n MiniScatter.prototype.updateColors = function (fills, strokes) {\n this.points.forEach(function (line, i) {\n line.stroke = strokes[i % strokes.length];\n line.fill = fills[i % fills.length];\n });\n };\n\n MiniScatter.chartType = 'scatter';\n return MiniScatter;\n}(MiniChartWithAxes);\n\nvar __extends$1m = undefined && undefined.__extends || function () {\n var _extendStatics134 = function extendStatics(d, b) {\n _extendStatics134 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics134(d, b);\n };\n\n return function (d, b) {\n _extendStatics134(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __read$c = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar MiniBubble =\n/** @class */\nfunction (_super) {\n __extends$1m(MiniBubble, _super);\n\n function MiniBubble(container, fills, strokes) {\n var _this = _super.call(this, container, \"bubbleTooltip\") || this;\n\n var size = _this.size;\n var padding = _this.padding; // [x, y, radius] triples\n\n var data = [[[0.1, 0.3, 5], [0.5, 0.4, 7], [0.2, 0.8, 7]], [[0.8, 0.7, 5], [0.7, 0.3, 9]]];\n var xScale = new LinearScale$1();\n xScale.domain = [0, 1];\n xScale.range = [padding * 2, size - padding];\n var yScale = new LinearScale$1();\n yScale.domain = [0, 1];\n yScale.range = [size - padding, padding];\n var points = [];\n data.forEach(function (series) {\n series.forEach(function (_a) {\n var _b = __read$c(_a, 3),\n x = _b[0],\n y = _b[1],\n radius = _b[2];\n\n var arc = new Arc();\n arc.strokeWidth = 1;\n arc.centerX = xScale.convert(x);\n arc.centerY = yScale.convert(y);\n arc.radiusX = arc.radiusY = radius;\n arc.fillOpacity = 0.7;\n points.push(arc);\n });\n });\n _this.points = points;\n\n _this.updateColors(fills, strokes);\n\n var clipRect = new ClipRect();\n clipRect.x = padding;\n clipRect.y = padding;\n clipRect.width = size - padding * 2;\n clipRect.height = size - padding * 2;\n clipRect.append(_this.points);\n\n _this.root.append(clipRect);\n\n return _this;\n }\n\n MiniBubble.prototype.updateColors = function (fills, strokes) {\n this.points.forEach(function (line, i) {\n line.stroke = strokes[i % strokes.length];\n line.fill = fills[i % fills.length];\n });\n };\n\n MiniBubble.chartType = 'bubble';\n return MiniBubble;\n}(MiniChartWithAxes);\n\nvar __extends$1l = undefined && undefined.__extends || function () {\n var _extendStatics135 = function extendStatics(d, b) {\n _extendStatics135 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics135(d, b);\n };\n\n return function (d, b) {\n _extendStatics135(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar MiniArea =\n/** @class */\nfunction (_super) {\n __extends$1l(MiniArea, _super);\n\n function MiniArea(container, fills, strokes, data) {\n if (data === void 0) {\n data = MiniArea.data;\n }\n\n var _this = _super.call(this, container, \"groupedAreaTooltip\") || this;\n\n var size = _this.size;\n var padding = _this.padding;\n var xScale = new BandScale$1();\n xScale.domain = [0, 1, 2];\n xScale.paddingInner = 1;\n xScale.paddingOuter = 0;\n xScale.range = [padding + 0.5, size - padding - 0.5];\n var yScale = new LinearScale$1();\n yScale.domain = [0, 6];\n yScale.range = [size - padding + 0.5, padding];\n var xCount = data.length;\n var last = xCount * 2 - 1;\n var pathData = [];\n var bottomY = yScale.convert(0);\n data.forEach(function (datum, i) {\n var x = xScale.convert(i);\n datum.forEach(function (yDatum, j) {\n var y = yScale.convert(yDatum);\n var points = pathData[j] || (pathData[j] = []);\n points[i] = {\n x: x,\n y: y\n };\n points[last - i] = {\n x: x,\n y: bottomY\n };\n });\n });\n _this.areas = pathData.reverse().map(function (points) {\n var area = new Path$1();\n area.strokeWidth = 1;\n area.fillOpacity = 0.7;\n var path = area.path;\n path.clear();\n points.forEach(function (point, i) {\n return path[i > 0 ? \"lineTo\" : \"moveTo\"](point.x, point.y);\n });\n path.closePath();\n return area;\n });\n\n _this.updateColors(fills, strokes);\n\n _this.root.append(_this.areas);\n\n return _this;\n }\n\n MiniArea.prototype.updateColors = function (fills, strokes) {\n this.areas.forEach(function (area, i) {\n area.fill = fills[i];\n area.stroke = strokes[i];\n });\n };\n\n MiniArea.chartType = 'area';\n MiniArea.data = [[1, 3, 5], [2, 6, 4], [5, 3, 1]];\n return MiniArea;\n}(MiniChartWithAxes);\n\nvar __extends$1k = undefined && undefined.__extends || function () {\n var _extendStatics136 = function extendStatics(d, b) {\n _extendStatics136 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics136(d, b);\n };\n\n return function (d, b) {\n _extendStatics136(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar MiniStackedArea =\n/** @class */\nfunction (_super) {\n __extends$1k(MiniStackedArea, _super);\n\n function MiniStackedArea(container, fills, strokes, data, tooltipName) {\n if (data === void 0) {\n data = MiniStackedArea.data;\n }\n\n if (tooltipName === void 0) {\n tooltipName = \"stackedAreaTooltip\";\n }\n\n var _this = _super.call(this, container, tooltipName) || this;\n\n var size = _this.size;\n var padding = _this.padding;\n var xScale = new BandScale$1();\n xScale.domain = [0, 1, 2];\n xScale.paddingInner = 1;\n xScale.paddingOuter = 0;\n xScale.range = [padding + 0.5, size - padding - 0.5];\n var yScale = new LinearScale$1();\n yScale.domain = [0, 16];\n yScale.range = [size - padding + 0.5, padding + 0.5];\n var xCount = data.length;\n var last = xCount * 2 - 1;\n var pathData = [];\n data.forEach(function (datum, i) {\n var x = xScale.convert(i);\n var total = 0;\n datum.forEach(function (yDatum, j) {\n var y = yScale.convert(total + yDatum);\n var points = pathData[j] || (pathData[j] = []);\n points[i] = {\n x: x,\n y: y\n };\n points[last - i] = {\n x: x,\n y: yScale.convert(total) // bottom y\n\n };\n total += yDatum;\n });\n });\n _this.areas = pathData.map(function (points) {\n var area = new Path$1();\n area.strokeWidth = 1;\n var path = area.path;\n path.clear();\n points.forEach(function (point, i) {\n return path[i > 0 ? \"lineTo\" : \"moveTo\"](point.x, point.y);\n });\n path.closePath();\n return area;\n });\n\n _this.updateColors(fills, strokes);\n\n _this.root.append(_this.areas);\n\n return _this;\n }\n\n MiniStackedArea.prototype.updateColors = function (fills, strokes) {\n this.areas.forEach(function (area, i) {\n area.fill = fills[i];\n area.stroke = strokes[i];\n });\n };\n\n MiniStackedArea.chartType = 'stackedArea';\n MiniStackedArea.data = [[2, 3, 2], [3, 6, 5], [6, 2, 2]];\n return MiniStackedArea;\n}(MiniChartWithAxes);\n\nvar __extends$1j = undefined && undefined.__extends || function () {\n var _extendStatics137 = function extendStatics(d, b) {\n _extendStatics137 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics137(d, b);\n };\n\n return function (d, b) {\n _extendStatics137(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar MiniNormalizedArea =\n/** @class */\nfunction (_super) {\n __extends$1j(MiniNormalizedArea, _super);\n\n function MiniNormalizedArea(container, fills, strokes, data) {\n if (data === void 0) {\n data = MiniNormalizedArea.data;\n }\n\n return _super.call(this, container, fills, strokes, data, \"normalizedAreaTooltip\") || this;\n }\n\n MiniNormalizedArea.chartType = 'normalizedArea';\n MiniNormalizedArea.data = MiniStackedArea.data.map(function (stack) {\n var sum = stack.reduce(function (p, c) {\n return p + c;\n }, 0);\n return stack.map(function (v) {\n return v / sum * 16;\n });\n });\n return MiniNormalizedArea;\n}(MiniStackedArea);\n\nvar __extends$1i = undefined && undefined.__extends || function () {\n var _extendStatics138 = function extendStatics(d, b) {\n _extendStatics138 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics138(d, b);\n };\n\n return function (d, b) {\n _extendStatics138(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __read$b = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar MiniHistogram =\n/** @class */\nfunction (_super) {\n __extends$1i(MiniHistogram, _super);\n\n function MiniHistogram(container, fills, strokes) {\n var _this = _super.call(this, container, \"histogramTooltip\") || this;\n\n var padding = _this.padding;\n var size = _this.size; // approx normal curve\n\n var data = [2, 5, 11, 13, 10, 6, 1];\n var xScale = new LinearScale$1();\n xScale.domain = [0, data.length];\n xScale.range = [padding, size - padding];\n var yScale = new LinearScale$1();\n yScale.domain = [0, data.reduce(function (a, b) {\n return Math.max(a, b);\n }, 0)];\n yScale.range = [size - padding, padding];\n var bottom = yScale.convert(0);\n _this.bars = data.map(function (datum, i) {\n var top = yScale.convert(datum);\n var left = xScale.convert(i);\n var right = xScale.convert(i + 1);\n var rect = new Rect();\n rect.x = left;\n rect.y = top;\n rect.width = right - left;\n rect.height = bottom - top;\n rect.strokeWidth = 1;\n rect.crisp = true;\n return rect;\n });\n\n _this.updateColors(fills, strokes);\n\n _this.root.append(_this.bars);\n\n return _this;\n }\n\n MiniHistogram.prototype.updateColors = function (_a, _b) {\n var _c = __read$b(_a, 1),\n fill = _c[0];\n\n var _d = __read$b(_b, 1),\n stroke = _d[0];\n\n this.bars.forEach(function (bar) {\n bar.fill = fill;\n bar.stroke = stroke;\n });\n };\n\n MiniHistogram.chartType = 'histogram';\n return MiniHistogram;\n}(MiniChartWithAxes);\n\nvar __extends$1h = undefined && undefined.__extends || function () {\n var _extendStatics139 = function extendStatics(d, b) {\n _extendStatics139 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics139(d, b);\n };\n\n return function (d, b) {\n _extendStatics139(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar MiniColumnLineCombo =\n/** @class */\nfunction (_super) {\n __extends$1h(MiniColumnLineCombo, _super);\n\n function MiniColumnLineCombo(container, fills, strokes) {\n var _this = _super.call(this, container, \"columnLineComboTooltip\") || this;\n\n _this.columnData = [3, 4];\n _this.lineData = [[5, 4, 6, 5, 4]];\n var _a = _this,\n root = _a.root,\n columnData = _a.columnData,\n lineData = _a.lineData,\n size = _a.size,\n padding = _a.padding;\n _this.columns = createColumnRects({\n stacked: false,\n root: root,\n data: columnData,\n size: size,\n padding: padding,\n xScaleDomain: [0, 1],\n yScaleDomain: [0, 4],\n xScalePadding: 0.5\n });\n root.append(_this.columns);\n _this.lines = createLinePaths(root, lineData, size, padding);\n\n _this.updateColors(fills, strokes);\n\n return _this;\n }\n\n MiniColumnLineCombo.prototype.updateColors = function (fills, strokes) {\n this.columns.forEach(function (bar, i) {\n bar.fill = fills[i];\n bar.stroke = strokes[i];\n });\n this.lines.forEach(function (line, i) {\n line.stroke = fills[i + 2];\n });\n };\n\n MiniColumnLineCombo.chartType = 'columnLineCombo';\n return MiniColumnLineCombo;\n}(MiniChartWithAxes);\n\nvar __extends$1g = undefined && undefined.__extends || function () {\n var _extendStatics140 = function extendStatics(d, b) {\n _extendStatics140 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics140(d, b);\n };\n\n return function (d, b) {\n _extendStatics140(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar MiniAreaColumnCombo =\n/** @class */\nfunction (_super) {\n __extends$1g(MiniAreaColumnCombo, _super);\n\n function MiniAreaColumnCombo(container, fills, strokes) {\n var _this = _super.call(this, container, \"areaColumnComboTooltip\") || this;\n\n _this.columnData = [3, 4.5];\n _this.areaData = [[5, 4, 6, 5, 4]];\n var _a = _this,\n root = _a.root,\n columnData = _a.columnData,\n areaData = _a.areaData,\n size = _a.size,\n padding = _a.padding;\n _this.columns = createColumnRects({\n stacked: false,\n root: root,\n data: columnData,\n size: size,\n padding: padding,\n xScaleDomain: [0, 1],\n yScaleDomain: [0, 6],\n xScalePadding: 0.5\n }); // scale for area series\n\n var xScale = new BandScale$1();\n xScale.range = [padding, size - padding];\n xScale.domain = [0, 1, 2, 3, 4];\n xScale.paddingInner = 1;\n xScale.paddingOuter = 0;\n var yScale = new LinearScale$1();\n yScale.range = [size - padding, padding];\n yScale.domain = [0, 6];\n var pathData = [];\n var yZero = yScale.convert(0);\n var firstX = xScale.convert(0);\n areaData.forEach(function (series, i) {\n var points = pathData[i] || (pathData[i] = []);\n series.forEach(function (data, j) {\n var yDatum = data;\n var xDatum = j;\n var x = xScale.convert(xDatum);\n var y = yScale.convert(yDatum);\n points[j] = {\n x: x,\n y: y\n };\n });\n var lastX = xScale.convert(series.length - 1);\n pathData[i].push({\n x: lastX,\n y: yZero\n }, {\n x: firstX,\n y: yZero\n });\n });\n _this.areas = pathData.map(function (points) {\n var area = new Path$1();\n area.strokeWidth = 1;\n area.fillOpacity = 0.8;\n var path = area.path;\n points.forEach(function (point, i) {\n return path[i > 0 ? 'lineTo' : 'moveTo'](point.x, point.y);\n });\n return area;\n });\n root.append(_this.areas);\n root.append([].concat.apply([], _this.columns));\n\n _this.updateColors(fills, strokes);\n\n return _this;\n }\n\n MiniAreaColumnCombo.prototype.updateColors = function (fills, strokes) {\n this.areas.forEach(function (area, i) {\n area.fill = fills[i];\n area.stroke = strokes[i];\n });\n this.columns.forEach(function (bar, i) {\n bar.fill = fills[i + 1];\n bar.stroke = strokes[i + 1];\n });\n };\n\n MiniAreaColumnCombo.chartType = 'areaColumnCombo';\n return MiniAreaColumnCombo;\n}(MiniChartWithAxes);\n\nvar __extends$1f = undefined && undefined.__extends || function () {\n var _extendStatics141 = function extendStatics(d, b) {\n _extendStatics141 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics141(d, b);\n };\n\n return function (d, b) {\n _extendStatics141(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar MiniCustomCombo =\n/** @class */\nfunction (_super) {\n __extends$1f(MiniCustomCombo, _super);\n\n function MiniCustomCombo(container, fills, strokes) {\n var _this = _super.call(this, container, 'customComboTooltip') || this;\n\n _this.columnData = [3, 4];\n _this.lineData = [[5, 4, 6, 5, 4]];\n var _a = _this,\n root = _a.root,\n columnData = _a.columnData,\n lineData = _a.lineData,\n size = _a.size,\n padding = _a.padding;\n _this.columns = createColumnRects({\n stacked: false,\n root: root,\n data: columnData,\n size: size,\n padding: padding,\n xScaleDomain: [0, 1],\n yScaleDomain: [0, 4],\n xScalePadding: 0.5\n });\n root.append(_this.columns);\n _this.lines = createLinePaths(root, lineData, size, padding);\n var axisStroke = 'grey';\n var axisOvershoot = 3;\n var leftAxis = new Line$1();\n leftAxis.x1 = padding;\n leftAxis.y1 = padding;\n leftAxis.x2 = padding;\n leftAxis.y2 = size - padding + axisOvershoot;\n leftAxis.stroke = axisStroke;\n var bottomAxis = new Line$1();\n bottomAxis.x1 = padding - axisOvershoot + 1;\n bottomAxis.y1 = size - padding;\n bottomAxis.x2 = size - padding + 1;\n bottomAxis.y2 = size - padding;\n bottomAxis.stroke = axisStroke;\n var penIcon = new Path$1();\n\n _this.buildPenIconPath(penIcon);\n\n penIcon.fill = 'whitesmoke';\n penIcon.stroke = 'darkslategrey';\n penIcon.strokeWidth = 1;\n root.append([bottomAxis, leftAxis, penIcon]);\n\n _this.updateColors(fills, strokes);\n\n return _this;\n }\n\n MiniCustomCombo.prototype.updateColors = function (fills, strokes) {\n this.columns.forEach(function (bar, i) {\n bar.fill = fills[i];\n bar.stroke = strokes[i];\n });\n this.lines.forEach(function (line, i) {\n line.stroke = fills[i + 2];\n });\n };\n\n MiniCustomCombo.prototype.buildPenIconPath = function (penIcon) {\n var path = penIcon.path;\n path.moveTo(25.76, 43.46);\n path.lineTo(31.27, 48.53);\n path.moveTo(49.86, 22);\n path.lineTo(49.86, 22);\n path.cubicCurveTo(49.01994659053345, 21.317514933510974, 47.89593834348529, 21.09645997825817, 46.86, 21.41);\n path.lineTo(46.86, 21.41);\n path.cubicCurveTo(45.55460035985361, 21.77260167850787, 44.38777081121966, 22.517979360321792, 43.51, 23.55);\n path.lineTo(25.51, 43.8);\n path.lineTo(25.43, 43.89);\n path.lineTo(23.01, 51.89);\n path.lineTo(22.83, 52.46);\n path.lineTo(31.02, 48.86);\n path.lineTo(49.02, 28.52);\n path.lineTo(49.02, 28.52);\n path.cubicCurveTo(49.940716461596224, 27.521914221246085, 50.54302631059587, 26.2720342455763, 50.75, 24.93);\n path.lineTo(50.75, 24.93);\n path.cubicCurveTo(50.95363374988308, 23.866379846512814, 50.62080640232334, 22.77066734274871, 49.86, 22.0);\n path.closePath();\n path.moveTo(41.76, 25.5);\n path.lineTo(47.34, 30.5);\n path.moveTo(40.74, 26.65);\n path.lineTo(46.25, 31.71);\n };\n\n MiniCustomCombo.chartType = 'customCombo';\n return MiniCustomCombo;\n}(MiniChart);\n\nvar __extends$1e = undefined && undefined.__extends || function () {\n var _extendStatics142 = function extendStatics(d, b) {\n _extendStatics142 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics142(d, b);\n };\n\n return function (d, b) {\n _extendStatics142(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar MiniChartsContainer =\n/** @class */\nfunction (_super) {\n __extends$1e(MiniChartsContainer, _super);\n\n function MiniChartsContainer(chartController, fills, strokes) {\n var _this = _super.call(this, MiniChartsContainer.TEMPLATE) || this;\n\n _this.wrappers = {};\n _this.chartGroups = {\n columnGroup: [MiniColumn, MiniStackedColumn, MiniNormalizedColumn],\n barGroup: [MiniBar, MiniStackedBar, MiniNormalizedBar],\n pieGroup: [MiniPie, MiniDoughnut],\n lineGroup: [MiniLine],\n scatterGroup: [MiniScatter, MiniBubble],\n areaGroup: [MiniArea, MiniStackedArea, MiniNormalizedArea],\n histogramGroup: [MiniHistogram],\n combinationGroup: [MiniColumnLineCombo, MiniAreaColumnCombo, MiniCustomCombo]\n };\n _this.chartController = chartController;\n _this.fills = fills;\n _this.strokes = strokes;\n return _this;\n }\n\n MiniChartsContainer.prototype.init = function () {\n var _this = this; // hide MiniCustomCombo if no custom combo exists\n\n\n if (!this.chartController.customComboExists()) {\n this.chartGroups.combinationGroup = this.chartGroups.combinationGroup.filter(function (miniChart) {\n return miniChart !== MiniCustomCombo;\n });\n }\n\n var eGui = this.getGui();\n Object.keys(this.chartGroups).forEach(function (group) {\n var chartGroup = _this.chartGroups[group];\n\n var groupComponent = _this.createBean(new AgGroupComponent({\n title: _this.chartTranslationService.translate(group),\n suppressEnabledCheckbox: true,\n enabled: true,\n suppressOpenCloseIcons: true,\n cssIdentifier: 'charts-settings',\n direction: 'horizontal'\n }));\n\n chartGroup.forEach(function (MiniClass) {\n var miniWrapper = document.createElement('div');\n miniWrapper.classList.add('ag-chart-mini-thumbnail');\n\n _this.addManagedListener(miniWrapper, 'click', function () {\n _this.chartController.setChartType(MiniClass.chartType);\n\n _this.updateSelectedMiniChart();\n });\n\n _this.wrappers[MiniClass.chartType] = miniWrapper;\n\n _this.createBean(new MiniClass(miniWrapper, _this.fills, _this.strokes));\n\n groupComponent.addItem(miniWrapper);\n });\n eGui.appendChild(groupComponent.getGui());\n });\n this.updateSelectedMiniChart();\n };\n\n MiniChartsContainer.prototype.updateSelectedMiniChart = function () {\n var selectedChartType = this.chartController.getChartType();\n\n for (var miniChartType in this.wrappers) {\n var miniChart = this.wrappers[miniChartType];\n var selected = miniChartType === selectedChartType;\n miniChart.classList.toggle('ag-selected', selected);\n }\n };\n\n MiniChartsContainer.TEMPLATE = \"
\";\n\n __decorate$O([Autowired('chartTranslationService')], MiniChartsContainer.prototype, \"chartTranslationService\", void 0);\n\n __decorate$O([PostConstruct], MiniChartsContainer.prototype, \"init\", null);\n\n return MiniChartsContainer;\n}(Component);\n\nvar __extends$1d = undefined && undefined.__extends || function () {\n var _extendStatics143 = function extendStatics(d, b) {\n _extendStatics143 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics143(d, b);\n };\n\n return function (d, b) {\n _extendStatics143(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ChartSettingsPanel =\n/** @class */\nfunction (_super) {\n __extends$1d(ChartSettingsPanel, _super);\n\n function ChartSettingsPanel(chartController) {\n var _this = _super.call(this, ChartSettingsPanel.TEMPLATE) || this;\n\n _this.miniCharts = [];\n _this.cardItems = [];\n _this.activePaletteIndex = 0;\n _this.palettes = [];\n _this.themes = [];\n _this.chartController = chartController;\n return _this;\n }\n\n ChartSettingsPanel.prototype.postConstruct = function () {\n var _this = this;\n\n this.resetPalettes();\n this.ePrevBtn.insertAdjacentElement('afterbegin', _.createIconNoSpan('previous', this.gridOptionsWrapper));\n this.eNextBtn.insertAdjacentElement('afterbegin', _.createIconNoSpan('next', this.gridOptionsWrapper));\n this.addManagedListener(this.ePrevBtn, 'click', function () {\n return _this.setActivePalette(_this.getPrev(), 'left');\n });\n this.addManagedListener(this.eNextBtn, 'click', function () {\n return _this.setActivePalette(_this.getNext(), 'right');\n }); // change the selected chart when a combo chart is modified via the data panel, i.e. the custom combo should be selected\n\n this.addManagedListener(this.chartController, ChartController.EVENT_CHART_TYPE_CHANGED, function () {\n return _this.resetPalettes(true);\n });\n this.scrollSelectedIntoView();\n };\n\n ChartSettingsPanel.prototype.scrollSelectedIntoView = function () {\n var _this = this; // the panel is not immediately visible due to the slide animation, so we add a\n // setTimeout to wait until the panel animation is over and is able to scroll\n\n\n setTimeout(function () {\n var currentPallet = _this.miniCharts.find(function (pallet) {\n return !pallet.getGui().classList.contains('ag-hidden');\n });\n\n var currentChart = currentPallet.getGui().querySelector('.ag-selected');\n\n if (currentChart) {\n currentChart.scrollIntoView({\n block: 'nearest'\n });\n }\n }, 250);\n };\n\n ChartSettingsPanel.prototype.resetPalettes = function (forceReset) {\n var _this = this;\n\n var palettes = this.chartController.getPalettes();\n\n if (_.shallowCompare(palettes, this.palettes) && !forceReset || this.isAnimating) {\n return;\n }\n\n this.palettes = palettes;\n this.themes = this.chartController.getThemes();\n this.activePaletteIndex = this.themes.findIndex(function (name) {\n return name === _this.chartController.getChartThemeName();\n });\n this.cardItems = [];\n\n _.clearElement(this.eCardSelector);\n\n this.destroyMiniCharts();\n this.palettes.forEach(function (palette, index) {\n var isActivePalette = _this.activePaletteIndex === index;\n var fills = palette.fills,\n strokes = palette.strokes;\n\n var miniChartsContainer = _this.createBean(new MiniChartsContainer(_this.chartController, fills, strokes));\n\n _this.miniCharts.push(miniChartsContainer);\n\n _this.eMiniChartsContainer.appendChild(miniChartsContainer.getGui());\n\n _this.addCardLink(index);\n\n if (isActivePalette) {\n miniChartsContainer.updateSelectedMiniChart();\n } else {\n miniChartsContainer.addCssClass('ag-hidden');\n }\n });\n this.eNavBar.classList.toggle('ag-hidden', this.palettes.length <= 1);\n\n _.radioCssClass(this.cardItems[this.activePaletteIndex], 'ag-selected', 'ag-not-selected');\n };\n\n ChartSettingsPanel.prototype.addCardLink = function (index) {\n var _this = this;\n\n var link = document.createElement('div');\n link.classList.add('ag-chart-settings-card-item');\n this.addManagedListener(link, 'click', function () {\n _this.setActivePalette(index, index < _this.activePaletteIndex ? 'left' : 'right');\n });\n this.eCardSelector.appendChild(link);\n this.cardItems.push(link);\n };\n\n ChartSettingsPanel.prototype.getPrev = function () {\n var prev = this.activePaletteIndex - 1;\n\n if (prev < 0) {\n prev = this.palettes.length - 1;\n }\n\n return prev;\n };\n\n ChartSettingsPanel.prototype.getNext = function () {\n var next = this.activePaletteIndex + 1;\n\n if (next >= this.palettes.length) {\n next = 0;\n }\n\n return next;\n };\n\n ChartSettingsPanel.prototype.setActivePalette = function (index, animationDirection) {\n var _this = this;\n\n if (this.isAnimating || this.activePaletteIndex === index) {\n return;\n }\n\n _.radioCssClass(this.cardItems[index], 'ag-selected', 'ag-not-selected');\n\n var currentPalette = this.miniCharts[this.activePaletteIndex];\n var currentGui = currentPalette.getGui();\n var futurePalette = this.miniCharts[index];\n var nextGui = futurePalette.getGui();\n currentPalette.updateSelectedMiniChart();\n futurePalette.updateSelectedMiniChart();\n var multiplier = animationDirection === 'left' ? -1 : 1;\n var final = nextGui.style.left = _.getAbsoluteWidth(this.getGui()) * multiplier + \"px\";\n this.activePaletteIndex = index;\n this.isAnimating = true;\n var animatingClass = 'ag-animating';\n futurePalette.removeCssClass('ag-hidden');\n currentPalette.addCssClass(animatingClass);\n futurePalette.addCssClass(animatingClass);\n this.chartController.setChartThemeName(this.themes[index]);\n window.setTimeout(function () {\n currentGui.style.left = -parseFloat(final) + \"px\";\n nextGui.style.left = '0px';\n }, 0);\n window.setTimeout(function () {\n _this.isAnimating = false;\n currentPalette.removeCssClass(animatingClass);\n futurePalette.removeCssClass(animatingClass);\n currentPalette.addCssClass('ag-hidden');\n }, 300);\n };\n\n ChartSettingsPanel.prototype.destroyMiniCharts = function () {\n _.clearElement(this.eMiniChartsContainer);\n\n this.miniCharts = this.destroyBeans(this.miniCharts);\n };\n\n ChartSettingsPanel.prototype.destroy = function () {\n this.destroyMiniCharts();\n\n _super.prototype.destroy.call(this);\n };\n\n ChartSettingsPanel.TEMPLATE = \"
\\n
\\n
\\n
\\n \\n
\\n
\\n
\\n \\n
\\n
\\n
\";\n\n __decorate$N([Autowired('resizeObserverService')], ChartSettingsPanel.prototype, \"resizeObserverService\", void 0);\n\n __decorate$N([RefSelector('eMiniChartsContainer')], ChartSettingsPanel.prototype, \"eMiniChartsContainer\", void 0);\n\n __decorate$N([RefSelector('eNavBar')], ChartSettingsPanel.prototype, \"eNavBar\", void 0);\n\n __decorate$N([RefSelector('eCardSelector')], ChartSettingsPanel.prototype, \"eCardSelector\", void 0);\n\n __decorate$N([RefSelector('ePrevBtn')], ChartSettingsPanel.prototype, \"ePrevBtn\", void 0);\n\n __decorate$N([RefSelector('eNextBtn')], ChartSettingsPanel.prototype, \"eNextBtn\", void 0);\n\n __decorate$N([PostConstruct], ChartSettingsPanel.prototype, \"postConstruct\", null);\n\n return ChartSettingsPanel;\n}(Component);\n\nvar __extends$1c = undefined && undefined.__extends || function () {\n var _extendStatics144 = function extendStatics(d, b) {\n _extendStatics144 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics144(d, b);\n };\n\n return function (d, b) {\n _extendStatics144(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar TabbedChartMenu =\n/** @class */\nfunction (_super) {\n __extends$1c(TabbedChartMenu, _super);\n\n function TabbedChartMenu(params) {\n var _this = _super.call(this) || this;\n\n _this.tabs = [];\n var controller = params.controller,\n panels = params.panels,\n chartOptionsService = params.chartOptionsService;\n _this.chartController = controller;\n _this.chartOptionsService = chartOptionsService;\n _this.panels = panels;\n return _this;\n }\n\n TabbedChartMenu.prototype.init = function () {\n var _this = this;\n\n this.panels.forEach(function (panel) {\n var panelType = panel.replace('chart', '').toLowerCase();\n\n var _a = _this.createTab(panel, panelType, _this.getPanelClass(panelType)),\n comp = _a.comp,\n tab = _a.tab;\n\n _this.tabs.push(tab);\n\n _this.addDestroyFunc(function () {\n return _this.destroyBean(comp);\n });\n });\n this.tabbedLayout = new TabbedLayout({\n items: this.tabs,\n cssClass: 'ag-chart-tabbed-menu',\n keepScrollPosition: true\n });\n this.getContext().createBean(this.tabbedLayout);\n };\n\n TabbedChartMenu.prototype.createTab = function (name, title, TabPanelClass) {\n var eWrapperDiv = document.createElement('div');\n eWrapperDiv.classList.add('ag-chart-tab', \"ag-chart-\" + title);\n var comp = new TabPanelClass(this.chartController, this.chartOptionsService);\n this.getContext().createBean(comp);\n eWrapperDiv.appendChild(comp.getGui());\n var titleEl = document.createElement('div');\n var translatedTitle = this.chartTranslationService.translate(title);\n titleEl.innerText = translatedTitle;\n return {\n comp: comp,\n tab: {\n title: titleEl,\n titleLabel: translatedTitle,\n bodyPromise: AgPromise.resolve(eWrapperDiv),\n getScrollableContainer: function getScrollableContainer() {\n var scrollableContainer = eWrapperDiv.querySelector('.ag-scrollable-container');\n return scrollableContainer || eWrapperDiv;\n },\n name: name\n }\n };\n };\n\n TabbedChartMenu.prototype.showTab = function (tab) {\n var tabItem = this.tabs[tab];\n this.tabbedLayout.showItem(tabItem);\n };\n\n TabbedChartMenu.prototype.getGui = function () {\n return this.tabbedLayout && this.tabbedLayout.getGui();\n };\n\n TabbedChartMenu.prototype.destroy = function () {\n if (this.parentComponent && this.parentComponent.isAlive()) {\n this.destroyBean(this.parentComponent);\n }\n\n _super.prototype.destroy.call(this);\n };\n\n TabbedChartMenu.prototype.getPanelClass = function (panelType) {\n switch (panelType) {\n case TabbedChartMenu.TAB_DATA:\n return ChartDataPanel;\n\n case TabbedChartMenu.TAB_FORMAT:\n return FormatPanel;\n\n default:\n return ChartSettingsPanel;\n }\n };\n\n TabbedChartMenu.TAB_DATA = 'data';\n TabbedChartMenu.TAB_FORMAT = 'format';\n\n __decorate$M([Autowired('chartTranslationService')], TabbedChartMenu.prototype, \"chartTranslationService\", void 0);\n\n __decorate$M([PostConstruct], TabbedChartMenu.prototype, \"init\", null);\n\n return TabbedChartMenu;\n}(Component);\n\nvar __extends$1b = undefined && undefined.__extends || function () {\n var _extendStatics145 = function extendStatics(d, b) {\n _extendStatics145 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics145(d, b);\n };\n\n return function (d, b) {\n _extendStatics145(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$a = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar ChartMenu =\n/** @class */\nfunction (_super) {\n __extends$1b(ChartMenu, _super);\n\n function ChartMenu(eChartContainer, eMenuPanelContainer, chartController, chartOptionsService) {\n var _this = _super.call(this, ChartMenu.TEMPLATE) || this;\n\n _this.eChartContainer = eChartContainer;\n _this.eMenuPanelContainer = eMenuPanelContainer;\n _this.chartController = chartController;\n _this.chartOptionsService = chartOptionsService;\n _this.buttons = {\n chartSettings: ['menu', function () {\n return _this.showMenu(\"chartSettings\");\n }],\n chartData: ['menu', function () {\n return _this.showMenu(\"chartData\");\n }],\n chartFormat: ['menu', function () {\n return _this.showMenu(\"chartFormat\");\n }],\n chartLink: ['linked', function (e) {\n return _this.toggleDetached(e);\n }],\n chartUnlink: ['unlinked', function (e) {\n return _this.toggleDetached(e);\n }],\n chartDownload: ['save', function () {\n return _this.saveChart();\n }]\n };\n _this.tabs = [];\n _this.menuVisible = false;\n return _this;\n }\n\n ChartMenu.prototype.postConstruct = function () {\n this.createButtons();\n this.refreshMenuClasses(); // TODO requires a better solution as this causes the docs the 'jump' when pages are reloaded\n // this.addManagedListener(this.eventService, Events.EVENT_CHART_CREATED, (e: ChartCreated) => {\n // // creating settings panel ahead of time to prevent an undesirable 'jitter' when the canvas resizes\n // // caused as a result of scrollIntoView() when the selected chart type is scrolled into view\n // if (e.chartId === this.chartController.getChartId()) {\n // this.createMenuPanel(0);\n // }\n // });\n };\n\n ChartMenu.prototype.isVisible = function () {\n return this.menuVisible;\n };\n\n ChartMenu.prototype.getToolbarOptions = function () {\n var _this = this;\n\n var tabOptions = ['chartSettings', 'chartData', 'chartFormat', this.chartController.isChartLinked() ? 'chartLink' : 'chartUnlink', 'chartDownload'];\n var toolbarItemsFunc = this.gridOptionsWrapper.getChartToolbarItemsFunc();\n\n if (toolbarItemsFunc) {\n var params = {\n defaultItems: tabOptions\n };\n tabOptions = toolbarItemsFunc(params).filter(function (option) {\n if (!_this.buttons[option]) {\n console.warn(\"AG Grid: '\" + option + \" is not a valid Chart Toolbar Option\");\n return false;\n }\n\n return true;\n });\n } // pivot charts use the column tool panel instead of the data panel\n\n\n if (this.chartController.isPivotChart()) {\n tabOptions = tabOptions.filter(function (option) {\n return option !== 'chartData';\n });\n }\n\n var ignoreOptions = ['chartUnlink', 'chartLink', 'chartDownload'];\n this.tabs = tabOptions.filter(function (option) {\n return ignoreOptions.indexOf(option) === -1;\n });\n return tabOptions.filter(function (value) {\n return ignoreOptions.indexOf(value) !== -1 || _this.tabs.length && value === _this.tabs[0];\n });\n };\n\n ChartMenu.prototype.toggleDetached = function (e) {\n var target = e.target;\n var active = target.classList.contains('ag-icon-linked');\n target.classList.toggle('ag-icon-linked', !active);\n target.classList.toggle('ag-icon-unlinked', active);\n var tooltipKey = active ? 'chartUnlinkToolbarTooltip' : 'chartLinkToolbarTooltip';\n var tooltipTitle = this.chartTranslationService.translate(tooltipKey);\n\n if (tooltipTitle) {\n target.title = tooltipTitle;\n }\n\n this.chartController.detachChartRange();\n };\n\n ChartMenu.prototype.createButtons = function () {\n var _this = this;\n\n var chartToolbarOptions = this.getToolbarOptions();\n var gui = this.getGui();\n chartToolbarOptions.forEach(function (button) {\n var buttonConfig = _this.buttons[button];\n\n var _a = __read$a(buttonConfig, 2),\n iconName = _a[0],\n callback = _a[1];\n\n var buttonEl = _.createIconNoSpan(iconName, _this.gridOptionsWrapper, undefined, true);\n\n buttonEl.classList.add('ag-chart-menu-icon');\n\n var tooltipTitle = _this.chartTranslationService.translate(button + 'ToolbarTooltip');\n\n if (tooltipTitle) {\n buttonEl.title = tooltipTitle;\n }\n\n _this.addManagedListener(buttonEl, 'click', callback);\n\n gui.appendChild(buttonEl);\n });\n };\n\n ChartMenu.prototype.saveChart = function () {\n var event = {\n type: ChartMenu.EVENT_DOWNLOAD_CHART\n };\n this.dispatchEvent(event);\n };\n\n ChartMenu.prototype.createMenuPanel = function (defaultTab) {\n var _this = this;\n\n var width = this.gridOptionsWrapper.chartMenuPanelWidth();\n var menuPanel = this.menuPanel = this.createBean(new AgPanel({\n minWidth: width,\n width: width,\n height: '100%',\n closable: true,\n hideTitleBar: true,\n cssIdentifier: 'chart-menu'\n }));\n menuPanel.setParentComponent(this);\n this.eMenuPanelContainer.appendChild(menuPanel.getGui());\n this.tabbedMenu = this.createBean(new TabbedChartMenu({\n controller: this.chartController,\n type: this.chartController.getChartType(),\n panels: this.tabs,\n chartOptionsService: this.chartOptionsService\n }));\n this.addManagedListener(menuPanel, Component.EVENT_DESTROYED, function () {\n return _this.destroyBean(_this.tabbedMenu);\n });\n return new AgPromise(function (res) {\n window.setTimeout(function () {\n menuPanel.setBodyComponent(_this.tabbedMenu);\n\n _this.tabbedMenu.showTab(defaultTab);\n\n _this.addManagedListener(_this.eChartContainer, 'click', function (event) {\n if (_this.getGui().contains(event.target)) {\n return;\n }\n\n if (_this.menuVisible) {\n _this.hideMenu();\n }\n });\n\n res(menuPanel);\n }, 100);\n });\n };\n\n ChartMenu.prototype.showContainer = function () {\n if (!this.menuPanel) {\n return;\n }\n\n this.menuVisible = true;\n this.showParent(this.menuPanel.getWidth());\n this.refreshMenuClasses();\n };\n\n ChartMenu.prototype.showMenu = function (tabName) {\n var tab = this.tabs.indexOf(tabName);\n\n if (!this.menuPanel) {\n this.createMenuPanel(tab).then(this.showContainer.bind(this));\n } else {\n this.showContainer();\n }\n };\n\n ChartMenu.prototype.hideMenu = function () {\n var _this = this;\n\n this.hideParent();\n window.setTimeout(function () {\n _this.menuVisible = false;\n\n _this.refreshMenuClasses();\n }, 500);\n };\n\n ChartMenu.prototype.refreshMenuClasses = function () {\n this.eChartContainer.classList.toggle('ag-chart-menu-visible', this.menuVisible);\n this.eChartContainer.classList.toggle('ag-chart-menu-hidden', !this.menuVisible);\n };\n\n ChartMenu.prototype.showParent = function (width) {\n this.eMenuPanelContainer.style.minWidth = width + \"px\";\n };\n\n ChartMenu.prototype.hideParent = function () {\n this.eMenuPanelContainer.style.minWidth = '0';\n };\n\n ChartMenu.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n\n if (this.menuPanel && this.menuPanel.isAlive()) {\n this.destroyBean(this.menuPanel);\n }\n };\n\n ChartMenu.EVENT_DOWNLOAD_CHART = \"downloadChart\";\n ChartMenu.TEMPLATE = \"
\";\n\n __decorate$L([Autowired('chartTranslationService')], ChartMenu.prototype, \"chartTranslationService\", void 0);\n\n __decorate$L([PostConstruct], ChartMenu.prototype, \"postConstruct\", null);\n\n return ChartMenu;\n}(Component);\n\nvar __extends$1a = undefined && undefined.__extends || function () {\n var _extendStatics146 = function extendStatics(d, b) {\n _extendStatics146 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics146(d, b);\n };\n\n return function (d, b) {\n _extendStatics146(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$i = undefined && undefined.__assign || function () {\n __assign$i = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$i.apply(this, arguments);\n};\n\nvar __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar TitleEdit =\n/** @class */\nfunction (_super) {\n __extends$1a(TitleEdit, _super);\n\n function TitleEdit(chartMenu) {\n var _this = _super.call(this, TitleEdit.TEMPLATE) || this;\n\n _this.chartMenu = chartMenu;\n return _this;\n }\n\n TitleEdit.prototype.init = function () {\n var _this = this;\n\n this.addManagedListener(this.getGui(), 'keypress', function (e) {\n if (e.key === 'Enter') {\n _this.endEditing();\n }\n });\n this.addManagedListener(this.getGui(), 'blur', this.endEditing.bind(this));\n };\n /* should be called when the containing component changes to a new chart proxy */\n\n\n TitleEdit.prototype.refreshTitle = function (chartController, chartOptionsService) {\n var _this = this;\n\n this.chartController = chartController;\n this.chartOptionsService = chartOptionsService;\n var chartProxy = this.chartController.getChartProxy();\n\n if (chartProxy) {\n for (var i = 0; i++; i < this.destroyableChartListeners.length) {\n this.destroyableChartListeners[i]();\n }\n\n this.destroyableChartListeners = [];\n }\n\n var chart = chartProxy.getChart();\n var canvas = chart.scene.canvas.element;\n var destroyDbleClickListener = this.addManagedListener(canvas, 'dblclick', function (event) {\n var title = chart.title;\n\n if (title && title.node.containsPoint(event.offsetX, event.offsetY)) {\n var bbox = title.node.computeBBox();\n var xy = title.node.inverseTransformPoint(bbox.x, bbox.y);\n\n _this.startEditing(__assign$i(__assign$i({}, bbox), xy));\n }\n });\n var wasInTitle = false;\n var destroyMouseMoveListener = this.addManagedListener(canvas, 'mousemove', function (event) {\n var title = chart.title;\n var inTitle = !!(title && title.enabled && title.node.containsPoint(event.offsetX, event.offsetY));\n\n if (wasInTitle !== inTitle) {\n canvas.style.cursor = inTitle ? 'pointer' : '';\n }\n\n wasInTitle = inTitle;\n });\n this.destroyableChartListeners = [destroyDbleClickListener, destroyMouseMoveListener];\n };\n\n TitleEdit.prototype.startEditing = function (titleBBox) {\n if (this.chartMenu && this.chartMenu.isVisible()) {\n // currently, we ignore requests to edit the chart title while the chart menu is showing\n // because the click to edit the chart will also close the chart menu, making the position\n // of the title change.\n return;\n }\n\n var minimumTargetInputWidth = 300;\n var maximumInputWidth = this.chartController.getChartProxy().getChart().width;\n var inputWidth = Math.max(Math.min(titleBBox.width + 20, maximumInputWidth), minimumTargetInputWidth);\n var inputElement = this.getGui();\n inputElement.classList.add('currently-editing');\n var inputStyle = inputElement.style; // match style of input to title that we're editing\n\n inputStyle.fontFamily = this.chartOptionsService.getChartOption('title.fontFamily');\n inputStyle.fontWeight = this.chartOptionsService.getChartOption('title.fontWeight');\n inputStyle.fontStyle = this.chartOptionsService.getChartOption('title.fontStyle');\n inputStyle.fontSize = this.chartOptionsService.getChartOption('title.fontSize') + 'px';\n inputStyle.color = this.chartOptionsService.getChartOption('title.color'); // populate the input with the title, unless the title is the placeholder:\n\n var oldTitle = this.chartOptionsService.getChartOption('title.text');\n var isTitlePlaceholder = oldTitle === this.chartTranslationService.translate('titlePlaceholder');\n inputElement.value = isTitlePlaceholder ? '' : oldTitle;\n var inputRect = inputElement.getBoundingClientRect();\n inputStyle.left = Math.round(titleBBox.x + titleBBox.width / 2 - inputWidth / 2) + 'px';\n inputStyle.top = Math.round(titleBBox.y + titleBBox.height / 2 - inputRect.height / 2) + 'px';\n inputStyle.width = Math.round(inputWidth) + 'px';\n inputElement.focus();\n };\n\n TitleEdit.prototype.endEditing = function () {\n var value = this.getGui().value;\n this.chartOptionsService.setChartOption('title.text', value);\n this.eventService.dispatchEvent({\n type: 'chartTitleEdit'\n });\n this.getGui().classList.remove('currently-editing');\n };\n\n TitleEdit.TEMPLATE = \"\\n \";\n\n __decorate$K([Autowired('chartTranslationService')], TitleEdit.prototype, \"chartTranslationService\", void 0);\n\n __decorate$K([PostConstruct], TitleEdit.prototype, \"init\", null);\n\n return TitleEdit;\n}(Component); // deepMerge\n\n\nfunction emptyTarget(value) {\n return Array.isArray(value) ? [] : {};\n}\n\nfunction cloneUnlessOtherwiseSpecified(value, options) {\n return options.clone !== false && options.isMergeableObject(value) ? deepMerge(emptyTarget(value), value, options) : value;\n}\n\nfunction defaultArrayMerge(target, source, options) {\n return target.concat(source).map(function (element) {\n return cloneUnlessOtherwiseSpecified(element, options);\n });\n}\n\nfunction getMergeFunction(key, options) {\n if (!options.customMerge) {\n return deepMerge;\n }\n\n var customMerge = options.customMerge(key);\n return typeof customMerge === 'function' ? customMerge : deepMerge;\n}\n\nfunction getEnumerableOwnPropertySymbols(target) {\n // @ts-ignore\n return Object.getOwnPropertySymbols // @ts-ignore\n ? Object.getOwnPropertySymbols(target).filter(function (symbol) {\n return target.propertyIsEnumerable(symbol);\n }) : [];\n}\n\nfunction getKeys(target) {\n return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));\n}\n\nfunction propertyIsOnObject(object, property) {\n try {\n return property in object;\n } catch (_) {\n return false;\n }\n} // Protects from prototype poisoning and unexpected merging up the prototype chain.\n\n\nfunction propertyIsUnsafe(target, key) {\n return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,\n && !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,\n && Object.propertyIsEnumerable.call(target, key)); // and also unsafe if they're nonenumerable.\n}\n\nfunction mergeObject(target, source, options) {\n var destination = {};\n\n if (options.isMergeableObject(target)) {\n getKeys(target).forEach(function (key) {\n destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);\n });\n }\n\n getKeys(source).forEach(function (key) {\n if (propertyIsUnsafe(target, key)) {\n return;\n }\n\n if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {\n destination[key] = getMergeFunction(key, options)(target[key], source[key], options);\n } else {\n destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);\n }\n });\n return destination;\n}\n\nfunction defaultIsMergeableObject(value) {\n return isNonNullObject(value) && !isSpecial(value);\n}\n\nfunction isNonNullObject(value) {\n return !!value && typeof value === 'object';\n}\n\nfunction isSpecial(value) {\n var stringValue = Object.prototype.toString.call(value);\n return stringValue === '[object RegExp]' || stringValue === '[object Date]';\n}\n\nfunction deepMerge(target, source, options) {\n options = options || {};\n options.arrayMerge = options.arrayMerge || defaultArrayMerge;\n options.isMergeableObject = options.isMergeableObject || defaultIsMergeableObject; // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()\n // implementations can use it. The caller may not replace it.\n\n options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;\n var sourceIsArray = Array.isArray(source);\n var targetIsArray = Array.isArray(target);\n var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n\n if (!sourceAndTargetTypesMatch) {\n return cloneUnlessOtherwiseSpecified(source, options);\n } else if (sourceIsArray) {\n return options.arrayMerge(target, source, options);\n } else {\n return mergeObject(target, source, options);\n }\n}\n\nvar __assign$h = undefined && undefined.__assign || function () {\n __assign$h = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$h.apply(this, arguments);\n};\n\nvar ChartProxy =\n/** @class */\nfunction () {\n function ChartProxy(chartProxyParams) {\n this.chartProxyParams = chartProxyParams;\n this.chartType = chartProxyParams.chartType;\n this.crossFiltering = chartProxyParams.crossFiltering;\n this.crossFilterCallback = chartProxyParams.crossFilterCallback;\n this.standaloneChartType = getSeriesType(this.chartType);\n\n if (this.chartProxyParams.chartOptionsToRestore) {\n this.chartOptions = this.chartProxyParams.chartOptionsToRestore;\n this.chartPalette = this.chartProxyParams.chartPaletteToRestore;\n var themeOverrides = {\n overrides: this.chartOptions,\n palette: this.chartPalette\n };\n this.chartTheme = getIntegratedChartTheme(__assign$h({\n baseTheme: this.getSelectedTheme()\n }, themeOverrides));\n return;\n }\n\n this.chartTheme = this.createChartTheme();\n this.chartOptions = this.convertConfigToOverrides(this.chartTheme.config);\n this.chartPalette = this.chartTheme.palette;\n }\n\n ChartProxy.prototype.recreateChart = function () {\n var _this = this;\n\n if (this.chart) {\n this.destroyChart();\n }\n\n this.chart = this.createChart();\n\n if (this.crossFiltering) {\n // add event listener to chart canvas to detect when user wishes to reset filters\n var resetFilters_1 = true;\n this.chart.addEventListener('click', function (e) {\n return _this.crossFilterCallback(e, resetFilters_1);\n });\n }\n };\n\n ChartProxy.prototype.getChart = function () {\n return this.chart;\n };\n\n ChartProxy.prototype.createChartTheme = function () {\n var _this = this;\n\n var themeName = this.getSelectedTheme();\n var stockTheme = this.isStockTheme(themeName);\n var gridOptionsThemeOverrides = this.chartProxyParams.getGridOptionsChartThemeOverrides();\n var apiThemeOverrides = this.chartProxyParams.apiChartThemeOverrides;\n\n if (gridOptionsThemeOverrides || apiThemeOverrides) {\n var themeOverrides_1 = {\n overrides: ChartProxy.mergeThemeOverrides(gridOptionsThemeOverrides, apiThemeOverrides)\n };\n\n var getCustomTheme = function getCustomTheme() {\n return deepMerge(_this.lookupCustomChartTheme(themeName), themeOverrides_1);\n };\n\n return getIntegratedChartTheme(stockTheme ? __assign$h({\n baseTheme: themeName\n }, themeOverrides_1) : getCustomTheme());\n }\n\n return getIntegratedChartTheme(stockTheme ? themeName : this.lookupCustomChartTheme(themeName));\n };\n\n ChartProxy.prototype.isStockTheme = function (themeName) {\n return _.includes(Object.keys(themes), themeName);\n };\n\n ChartProxy.prototype.getSelectedTheme = function () {\n var chartThemeName = this.chartProxyParams.getChartThemeName();\n var availableThemes = this.chartProxyParams.getChartThemes();\n\n if (!_.includes(availableThemes, chartThemeName)) {\n chartThemeName = availableThemes[0];\n }\n\n return chartThemeName;\n };\n\n ChartProxy.prototype.lookupCustomChartTheme = function (name) {\n var customChartThemes = this.chartProxyParams.customChartThemes;\n var customChartTheme = customChartThemes && customChartThemes[name];\n\n if (!customChartTheme) {\n console.warn(\"AG Grid: no stock theme exists with the name '\" + name + \"' and no \" + \"custom chart theme with that name was supplied to 'customChartThemes'\");\n }\n\n return customChartTheme;\n };\n\n ChartProxy.mergeThemeOverrides = function (gridOptionsThemeOverrides, apiThemeOverrides) {\n if (!gridOptionsThemeOverrides) {\n return apiThemeOverrides;\n }\n\n if (!apiThemeOverrides) {\n return gridOptionsThemeOverrides;\n }\n\n return deepMerge(gridOptionsThemeOverrides, apiThemeOverrides);\n };\n\n ChartProxy.prototype.downloadChart = function () {\n var chart = this.chart;\n var fileName = chart.title ? chart.title.text : 'chart';\n chart.scene.download(fileName);\n };\n\n ChartProxy.prototype.getChartImageDataURL = function (type) {\n return this.chart.scene.getDataURL(type);\n };\n\n ChartProxy.prototype.getChartOptions = function () {\n return this.chartOptions;\n };\n\n ChartProxy.prototype.getChartPalette = function () {\n return this.chartPalette;\n };\n\n ChartProxy.prototype.transformData = function (data, categoryKey, categoryAxis) {\n if (categoryAxis) {\n // replace the values for the selected category with a complex object to allow for duplicated categories\n return data.map(function (d, index) {\n var value = d[categoryKey];\n var valueString = value && value.toString ? value.toString() : '';\n\n var datum = __assign$h({}, d);\n\n datum[categoryKey] = {\n id: index,\n value: value,\n toString: function toString() {\n return valueString;\n }\n };\n return datum;\n });\n }\n\n return data;\n };\n\n ChartProxy.prototype.getCommonChartOptions = function () {\n var _this = this;\n\n var getChartOption = function getChartOption(propertyKey) {\n return _.get(_this.chartOptions, _this.standaloneChartType + \".\" + propertyKey, undefined);\n };\n\n return {\n padding: getChartOption('padding'),\n background: getChartOption('background'),\n title: getChartOption('title'),\n subtitle: getChartOption('subtitle'),\n tooltip: getChartOption('tooltip'),\n legend: getChartOption('legend'),\n navigator: getChartOption('navigator')\n };\n };\n\n ChartProxy.prototype.convertConfigToOverrides = function (config) {\n var isComboChart = ['columnLineCombo', 'areaColumnCombo', 'customCombo'].includes(this.chartType);\n var overrideObjs = isComboChart ? ['line', 'area', 'column', 'cartesian'] : [this.standaloneChartType];\n var overrides = {};\n overrideObjs.forEach(function (overrideObj) {\n var chartOverrides = deepMerge({}, config[overrideObj]);\n chartOverrides.series = chartOverrides.series[overrideObj]; // special handing to add the scatter paired mode to the chart options\n\n if (overrideObj === 'scatter') {\n chartOverrides.paired = true;\n }\n\n overrides[overrideObj] = chartOverrides;\n });\n return overrides;\n };\n\n ChartProxy.prototype.destroy = function () {\n this.destroyChart();\n };\n\n ChartProxy.prototype.destroyChart = function () {\n if (this.chart) {\n this.chart.destroy();\n this.chart = undefined;\n }\n };\n\n return ChartProxy;\n}();\n\nvar __extends$19 = undefined && undefined.__extends || function () {\n var _extendStatics147 = function extendStatics(d, b) {\n _extendStatics147 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics147(d, b);\n };\n\n return function (d, b) {\n _extendStatics147(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$g = undefined && undefined.__assign || function () {\n __assign$g = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$g.apply(this, arguments);\n};\n\nvar CartesianChartProxy =\n/** @class */\nfunction (_super) {\n __extends$19(CartesianChartProxy, _super);\n\n function CartesianChartProxy(params) {\n var _this = _super.call(this, params) || this;\n\n _this.supportsAxesUpdates = true;\n _this.axisTypeToClassMap = {\n number: NumberAxis,\n category: CategoryAxis,\n groupedCategory: GroupedCategoryAxis,\n time: TimeAxis\n };\n _this.crossFilteringAllPoints = new Set();\n _this.crossFilteringSelectedPoints = [];\n return _this;\n }\n\n CartesianChartProxy.prototype.createChart = function () {\n return AgChart.create({\n container: this.chartProxyParams.parentElement,\n theme: this.chartTheme\n });\n };\n\n CartesianChartProxy.prototype.update = function (params) {\n if (this.supportsAxesUpdates) {\n this.updateAxes(params);\n }\n\n var options = __assign$g(__assign$g({}, this.getCommonChartOptions()), {\n data: this.getData(params),\n axes: this.getAxes(params),\n series: this.getSeries(params)\n });\n\n if (this.crossFiltering) {\n options = this.addCrossFilterOptions(options);\n }\n\n AgChart.update(this.chart, options);\n };\n\n CartesianChartProxy.prototype.getDataTransformedData = function (params) {\n var isCategoryAxis = this.xAxisType === 'category';\n return this.transformData(params.data, params.category.id, isCategoryAxis);\n };\n\n CartesianChartProxy.prototype.addCrossFilterOptions = function (options) {\n var _this = this;\n\n var seriesOverrides = this.extractSeriesOverrides();\n options.tooltip = __assign$g(__assign$g({}, options.tooltip), {\n delay: 500\n });\n options.legend = __assign$g(__assign$g(__assign$g({}, options.legend), seriesOverrides.legend), {\n listeners: {\n legendItemClick: function legendItemClick(e) {\n _this.chart.series.forEach(function (s) {\n s.toggleSeriesItem(e.itemId, e.enabled);\n s.toggleSeriesItem(e.itemId + \"-filtered-out\", e.enabled);\n });\n }\n }\n });\n return options;\n };\n\n CartesianChartProxy.prototype.extractSeriesOverrides = function (chartSeriesType) {\n var seriesOverrides = this.chartOptions[chartSeriesType ? chartSeriesType : this.standaloneChartType].series; // TODO: remove once `yKeys` and `yNames` have been removed from the options\n\n delete seriesOverrides.yKeys;\n delete seriesOverrides.yNames;\n return seriesOverrides;\n };\n\n CartesianChartProxy.prototype.updateAxes = function (params) {\n // when grouping recreate chart if the axis is not a 'groupedCategory', otherwise return\n if (params.grouping) {\n if (!(this.axisTypeToClassMap[this.xAxisType] === GroupedCategoryAxis)) {\n this.xAxisType = 'groupedCategory';\n this.recreateChart();\n }\n\n return;\n } // only update axis has changed and recreate the chart, i.e. switching from 'category' to 'time' axis\n\n\n var newXAxisType = CartesianChartProxy.isTimeAxis(params) ? 'time' : 'category';\n\n if (newXAxisType !== this.xAxisType) {\n this.xAxisType = newXAxisType;\n this.recreateChart();\n }\n };\n\n CartesianChartProxy.prototype.getAxesOptions = function (chartSeriesType) {\n if (chartSeriesType === void 0) {\n chartSeriesType = this.standaloneChartType;\n }\n\n return this.chartOptions[chartSeriesType].axes;\n };\n\n CartesianChartProxy.isTimeAxis = function (params) {\n if (params.category && params.category.chartDataType) {\n return params.category.chartDataType === 'time';\n }\n\n var testDatum = params.data[0];\n return (testDatum && testDatum[params.category.id]) instanceof Date;\n };\n\n CartesianChartProxy.prototype.crossFilteringReset = function () {\n this.crossFilteringSelectedPoints = [];\n this.crossFilteringAllPoints.clear();\n };\n\n CartesianChartProxy.prototype.crossFilteringPointSelected = function (point) {\n return this.crossFilteringSelectedPoints.length == 0 || this.crossFilteringSelectedPoints.includes(point);\n };\n\n CartesianChartProxy.prototype.crossFilteringDeselectedPoints = function () {\n return this.crossFilteringSelectedPoints.length > 0 && this.crossFilteringAllPoints.size !== this.crossFilteringSelectedPoints.length;\n };\n\n CartesianChartProxy.prototype.extractLineAreaCrossFilterSeries = function (series, params) {\n var _this = this;\n\n var getYKey = function getYKey(yKey) {\n if (_this.standaloneChartType === 'area') {\n var lastSelectedChartId = params.getCrossFilteringContext().lastSelectedChartId;\n return lastSelectedChartId === params.chartId ? yKey + '-total' : yKey;\n }\n\n return yKey + '-total';\n };\n\n return series.map(function (s) {\n var seriesOverrides = _this.extractSeriesOverrides();\n\n s.yKey = getYKey(s.yKey);\n s.listeners = __assign$g(__assign$g({}, seriesOverrides.listeners), {\n nodeClick: function nodeClick(e) {\n var value = e.datum[s.xKey];\n var multiSelection = e.event.metaKey || e.event.ctrlKey;\n\n _this.crossFilteringAddSelectedPoint(multiSelection, value);\n\n _this.crossFilterCallback(e);\n }\n });\n s.marker = {\n formatter: function formatter(p) {\n var category = p.datum[params.category.id];\n return {\n fill: p.highlighted ? 'yellow' : p.fill,\n size: p.highlighted ? 14 : _this.crossFilteringPointSelected(category) ? 8 : 0\n };\n }\n };\n\n if (_this.standaloneChartType === 'area') {\n s.fillOpacity = _this.crossFilteringDeselectedPoints() ? 0.3 : 1;\n }\n\n if (_this.standaloneChartType === 'line') {\n s.strokeOpacity = _this.crossFilteringDeselectedPoints() ? 0.3 : 1;\n }\n\n return s;\n });\n };\n\n CartesianChartProxy.prototype.getLineAreaCrossFilterData = function (params) {\n var _this = this;\n\n this.crossFilteringAllPoints.clear();\n var colId = params.fields[0].colId;\n var filteredOutColId = colId + \"-filtered-out\";\n var lastSelectedChartId = params.getCrossFilteringContext().lastSelectedChartId;\n return params.data.map(function (d) {\n var category = d[params.category.id];\n\n _this.crossFilteringAllPoints.add(category);\n\n var pointSelected = _this.crossFilteringPointSelected(category);\n\n if (_this.standaloneChartType === 'area' && lastSelectedChartId === params.chartId) {\n d[colId + \"-total\"] = pointSelected ? d[colId] : d[colId] + d[filteredOutColId];\n }\n\n if (_this.standaloneChartType === 'line') {\n d[colId + \"-total\"] = pointSelected ? d[colId] : d[colId] + d[filteredOutColId];\n }\n\n return d;\n });\n };\n\n CartesianChartProxy.prototype.crossFilteringAddSelectedPoint = function (multiSelection, value) {\n multiSelection ? this.crossFilteringSelectedPoints.push(value) : this.crossFilteringSelectedPoints = [value];\n };\n\n return CartesianChartProxy;\n}(ChartProxy);\n\nfunction hexToRGBA(hex, alpha) {\n var r = parseInt(hex.slice(1, 3), 16);\n var g = parseInt(hex.slice(3, 5), 16);\n var b = parseInt(hex.slice(5, 7), 16);\n return alpha ? \"rgba(\" + r + \", \" + g + \", \" + b + \", \" + alpha + \")\" : \"rgba(\" + r + \", \" + g + \", \" + b + \")\";\n}\n\nfunction changeOpacity(fills, alpha) {\n return fills.map(function (fill) {\n var c = Color$2.fromString(fill);\n return new Color$2(c.r, c.g, c.b, alpha).toHexString();\n });\n}\n\nvar __extends$18 = undefined && undefined.__extends || function () {\n var _extendStatics148 = function extendStatics(d, b) {\n _extendStatics148 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics148(d, b);\n };\n\n return function (d, b) {\n _extendStatics148(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$f = undefined && undefined.__assign || function () {\n __assign$f = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$f.apply(this, arguments);\n};\n\nvar BarChartProxy =\n/** @class */\nfunction (_super) {\n __extends$18(BarChartProxy, _super);\n\n function BarChartProxy(params) {\n var _this = _super.call(this, params) || this; // when the standalone chart type is 'bar' - xAxis is positioned to the 'left'\n\n\n _this.xAxisType = params.grouping ? 'groupedCategory' : 'category';\n _this.yAxisType = 'number';\n\n _this.recreateChart();\n\n return _this;\n }\n\n BarChartProxy.prototype.getData = function (params) {\n return this.getDataTransformedData(params);\n };\n\n BarChartProxy.prototype.getAxes = function () {\n var isBar = this.standaloneChartType === 'bar';\n var axisOptions = this.getAxesOptions();\n var axes = [__assign$f(__assign$f({}, deepMerge(axisOptions[this.xAxisType], axisOptions[this.xAxisType].bottom)), {\n type: this.xAxisType,\n position: isBar ? ChartAxisPosition.Left : ChartAxisPosition.Bottom\n }), __assign$f(__assign$f({}, deepMerge(axisOptions[this.yAxisType], axisOptions[this.yAxisType].left)), {\n type: this.yAxisType,\n position: isBar ? ChartAxisPosition.Bottom : ChartAxisPosition.Left\n })]; // special handling to add a default label formatter to show '%' for normalized charts if none is provided\n\n if (this.isNormalised()) {\n var numberAxis = axes[1];\n numberAxis.label = __assign$f(__assign$f({}, numberAxis.label), {\n formatter: function formatter(params) {\n return Math.round(params.value) + '%';\n }\n });\n }\n\n return axes;\n };\n\n BarChartProxy.prototype.getSeries = function (params) {\n var _this = this;\n\n var groupedCharts = ['groupedColumn', 'groupedBar'];\n\n var isGrouped = !this.crossFiltering && _.includes(groupedCharts, this.chartType);\n\n var series = params.fields.map(function (f) {\n return __assign$f(__assign$f({}, _this.extractSeriesOverrides()), {\n type: _this.standaloneChartType,\n grouped: isGrouped,\n normalizedTo: _this.isNormalised() ? 100 : undefined,\n xKey: params.category.id,\n xName: params.category.name,\n yKey: f.colId,\n yName: f.displayName\n });\n });\n return this.crossFiltering ? this.extractCrossFilterSeries(series) : series;\n };\n\n BarChartProxy.prototype.extractCrossFilterSeries = function (series) {\n var _this = this;\n\n var palette = this.chartTheme.palette;\n\n var updatePrimarySeries = function updatePrimarySeries(seriesOptions, index) {\n return __assign$f(__assign$f({}, seriesOptions), {\n highlightStyle: {\n item: {\n fill: undefined\n }\n },\n fill: palette.fills[index],\n stroke: palette.strokes[index],\n listeners: __assign$f(__assign$f({}, _this.extractSeriesOverrides().listeners), {\n nodeClick: _this.crossFilterCallback\n })\n });\n };\n\n var updateFilteredOutSeries = function updateFilteredOutSeries(seriesOptions) {\n var yKey = seriesOptions.yKey + '-filtered-out';\n return __assign$f(__assign$f({}, deepMerge({}, seriesOptions)), {\n yKey: yKey,\n fill: hexToRGBA(seriesOptions.fill, '0.3'),\n stroke: hexToRGBA(seriesOptions.stroke, '0.3'),\n hideInLegend: [yKey]\n });\n };\n\n var allSeries = [];\n\n for (var i = 0; i < series.length; i++) {\n // update primary series\n var primarySeries = updatePrimarySeries(series[i], i);\n allSeries.push(primarySeries); // add 'filtered-out' series\n\n allSeries.push(updateFilteredOutSeries(primarySeries));\n }\n\n return allSeries;\n };\n\n BarChartProxy.prototype.isNormalised = function () {\n var normalisedCharts = ['normalizedColumn', 'normalizedBar'];\n return !this.crossFiltering && _.includes(normalisedCharts, this.chartType);\n };\n\n return BarChartProxy;\n}(CartesianChartProxy);\n\nvar __extends$17 = undefined && undefined.__extends || function () {\n var _extendStatics149 = function extendStatics(d, b) {\n _extendStatics149 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics149(d, b);\n };\n\n return function (d, b) {\n _extendStatics149(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$e = undefined && undefined.__assign || function () {\n __assign$e = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$e.apply(this, arguments);\n};\n\nvar AreaChartProxy =\n/** @class */\nfunction (_super) {\n __extends$17(AreaChartProxy, _super);\n\n function AreaChartProxy(params) {\n var _this = _super.call(this, params) || this;\n\n _this.xAxisType = params.grouping ? 'groupedCategory' : 'category';\n _this.yAxisType = 'number';\n\n _this.recreateChart();\n\n return _this;\n }\n\n AreaChartProxy.prototype.getData = function (params) {\n return this.crossFiltering ? this.getLineAreaCrossFilterData(params) : this.getDataTransformedData(params);\n };\n\n AreaChartProxy.prototype.getAxes = function () {\n var axisOptions = this.getAxesOptions();\n return [__assign$e(__assign$e({}, deepMerge(axisOptions[this.xAxisType], axisOptions[this.xAxisType].bottom)), {\n type: this.xAxisType,\n position: ChartAxisPosition.Bottom\n }), __assign$e(__assign$e({}, deepMerge(axisOptions[this.yAxisType], axisOptions[this.yAxisType].left)), {\n type: this.yAxisType,\n position: ChartAxisPosition.Left\n })];\n };\n\n AreaChartProxy.prototype.getSeries = function (params) {\n var _this = this;\n\n var series = params.fields.map(function (f) {\n return __assign$e(__assign$e({}, _this.extractSeriesOverrides()), {\n type: _this.standaloneChartType,\n xKey: params.category.id,\n xName: params.category.name,\n yKey: f.colId,\n yName: f.displayName,\n normalizedTo: _this.chartType === 'normalizedArea' ? 100 : undefined,\n stacked: ['normalizedArea', 'stackedArea'].includes(_this.chartType)\n });\n });\n return this.crossFiltering ? this.extractLineAreaCrossFilterSeries(series, params) : series;\n };\n\n return AreaChartProxy;\n}(CartesianChartProxy);\n\nvar __extends$16 = undefined && undefined.__extends || function () {\n var _extendStatics150 = function extendStatics(d, b) {\n _extendStatics150 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics150(d, b);\n };\n\n return function (d, b) {\n _extendStatics150(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$d = undefined && undefined.__assign || function () {\n __assign$d = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$d.apply(this, arguments);\n};\n\nvar LineChartProxy =\n/** @class */\nfunction (_super) {\n __extends$16(LineChartProxy, _super);\n\n function LineChartProxy(params) {\n var _this = _super.call(this, params) || this;\n\n _this.xAxisType = params.grouping ? 'groupedCategory' : 'category';\n _this.yAxisType = 'number';\n\n _this.recreateChart();\n\n return _this;\n }\n\n LineChartProxy.prototype.getData = function (params) {\n return this.crossFiltering ? this.getLineAreaCrossFilterData(params) : this.getDataTransformedData(params);\n };\n\n LineChartProxy.prototype.getAxes = function () {\n var axisOptions = this.getAxesOptions();\n return [__assign$d(__assign$d({}, deepMerge(axisOptions[this.xAxisType], axisOptions[this.xAxisType].bottom)), {\n type: this.xAxisType,\n position: ChartAxisPosition.Bottom\n }), __assign$d(__assign$d({}, deepMerge(axisOptions[this.yAxisType], axisOptions[this.yAxisType].left)), {\n type: this.yAxisType,\n position: ChartAxisPosition.Left\n })];\n };\n\n LineChartProxy.prototype.getSeries = function (params) {\n var _this = this;\n\n var series = params.fields.map(function (f) {\n return __assign$d(__assign$d({}, _this.extractSeriesOverrides()), {\n type: _this.standaloneChartType,\n xKey: params.category.id,\n xName: params.category.name,\n yKey: f.colId,\n yName: f.displayName\n });\n });\n return this.crossFiltering ? this.extractLineAreaCrossFilterSeries(series, params) : series;\n };\n\n return LineChartProxy;\n}(CartesianChartProxy);\n\nvar __extends$15 = undefined && undefined.__extends || function () {\n var _extendStatics151 = function extendStatics(d, b) {\n _extendStatics151 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics151(d, b);\n };\n\n return function (d, b) {\n _extendStatics151(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$c = undefined && undefined.__assign || function () {\n __assign$c = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$c.apply(this, arguments);\n};\n\nvar PieChartProxy =\n/** @class */\nfunction (_super) {\n __extends$15(PieChartProxy, _super);\n\n function PieChartProxy(params) {\n var _this = _super.call(this, params) || this;\n\n _this.recreateChart();\n\n return _this;\n }\n\n PieChartProxy.prototype.createChart = function () {\n return AgChart.create({\n type: 'pie',\n container: this.chartProxyParams.parentElement,\n theme: this.chartTheme\n });\n };\n\n PieChartProxy.prototype.update = function (params) {\n var data = params.data,\n category = params.category;\n\n var options = __assign$c(__assign$c({}, this.getCommonChartOptions()), {\n data: this.crossFiltering ? this.getCrossFilterData(params) : this.transformData(data, category.id),\n series: this.getSeries(params)\n });\n\n if (this.crossFiltering) {\n options = this.getCrossFilterChartOptions(options);\n }\n\n AgChart.update(this.chart, options);\n };\n\n PieChartProxy.prototype.getSeries = function (params) {\n var _this = this;\n\n var numFields = params.fields.length;\n var offset = {\n currentOffset: 0,\n offsetAmount: numFields > 1 ? 20 : 40\n };\n var series = this.getFields(params).map(function (f) {\n var seriesDefaults = _this.extractSeriesOverrides(); // options shared by 'pie' and 'doughnut' charts\n\n\n var options = __assign$c(__assign$c({}, seriesDefaults), {\n type: _this.standaloneChartType,\n angleKey: f.colId,\n angleName: f.displayName,\n labelKey: params.category.id,\n labelName: params.category.name\n });\n\n if (_this.chartType === 'doughnut') {\n var _a = PieChartProxy.calculateOffsets(offset),\n outerRadiusOffset = _a.outerRadiusOffset,\n innerRadiusOffset = _a.innerRadiusOffset; // augment shared options with 'doughnut' specific options\n\n\n return __assign$c(__assign$c({}, options), {\n outerRadiusOffset: outerRadiusOffset,\n innerRadiusOffset: innerRadiusOffset,\n title: __assign$c(__assign$c({}, seriesDefaults.title), {\n text: seriesDefaults.title.text || f.displayName,\n showInLegend: numFields > 1\n }),\n callout: __assign$c(__assign$c({}, seriesDefaults.callout), {\n colors: _this.chartTheme.palette.strokes\n })\n });\n }\n\n return options;\n });\n return this.crossFiltering ? this.extractCrossFilterSeries(series) : series;\n };\n\n PieChartProxy.prototype.getCrossFilterChartOptions = function (options) {\n var _this = this;\n\n var seriesOverrides = this.extractSeriesOverrides();\n return __assign$c(__assign$c({}, options), {\n tooltip: __assign$c(__assign$c({}, seriesOverrides.tooltip), {\n delay: 500\n }),\n legend: __assign$c(__assign$c({}, seriesOverrides.legend), {\n listeners: {\n legendItemClick: function legendItemClick(e) {\n _this.chart.series.forEach(function (s) {\n return s.toggleSeriesItem(e.itemId, e.enabled);\n });\n }\n }\n })\n });\n };\n\n PieChartProxy.prototype.getCrossFilterData = function (params) {\n var colId = params.fields[0].colId;\n var filteredOutColId = colId + \"-filtered-out\";\n return params.data.map(function (d) {\n var total = d[colId] + d[filteredOutColId];\n d[colId + \"-total\"] = total;\n d[filteredOutColId] = 1; // normalise to 1\n\n d[colId] = d[colId] / total; // fraction of 1\n\n return d;\n });\n };\n\n PieChartProxy.prototype.extractCrossFilterSeries = function (series) {\n var _this = this;\n\n var palette = this.chartTheme.palette;\n var seriesOverrides = this.extractSeriesOverrides();\n\n var primaryOptions = function primaryOptions(seriesOptions) {\n return __assign$c(__assign$c({}, seriesOptions), {\n label: {\n enabled: false\n },\n highlightStyle: {\n item: {\n fill: undefined\n }\n },\n radiusKey: seriesOptions.angleKey,\n angleKey: seriesOptions.angleKey + '-total',\n radiusMin: 0,\n radiusMax: 1,\n listeners: __assign$c(__assign$c({}, seriesOverrides.listeners), {\n nodeClick: _this.crossFilterCallback\n }),\n tooltip: __assign$c(__assign$c({}, seriesOverrides.tooltip), {\n renderer: _this.getCrossFilterTooltipRenderer(\"\" + seriesOptions.angleName)\n })\n });\n };\n\n var filteredOutOptions = function filteredOutOptions(seriesOptions, angleKey) {\n var _a, _b, _c;\n\n return __assign$c(__assign$c({}, deepMerge({}, primaryOpts)), {\n radiusKey: angleKey + '-filtered-out',\n label: seriesOverrides.label,\n callout: __assign$c(__assign$c({}, seriesOverrides.callout), {\n colors: (_a = seriesOverrides.callout.colors, _a !== null && _a !== void 0 ? _a : palette.strokes)\n }),\n fills: changeOpacity((_b = seriesOptions.fills, _b !== null && _b !== void 0 ? _b : palette.fills), 0.3),\n strokes: changeOpacity((_c = seriesOptions.strokes, _c !== null && _c !== void 0 ? _c : palette.strokes), 0.3),\n showInLegend: false\n });\n }; // currently, only single 'doughnut' cross-filter series are supported\n\n\n var primarySeries = series[0]; // update primary series\n\n var angleKey = primarySeries.angleKey;\n var primaryOpts = primaryOptions(primarySeries);\n return [primaryOpts, filteredOutOptions(primarySeries, angleKey)];\n };\n\n PieChartProxy.calculateOffsets = function (offset) {\n var outerRadiusOffset = offset.currentOffset;\n offset.currentOffset -= offset.offsetAmount;\n var innerRadiusOffset = offset.currentOffset;\n offset.currentOffset -= offset.offsetAmount;\n return {\n outerRadiusOffset: outerRadiusOffset,\n innerRadiusOffset: innerRadiusOffset\n };\n };\n\n PieChartProxy.prototype.getFields = function (params) {\n return this.chartType === 'pie' ? params.fields.slice(0, 1) : params.fields;\n };\n\n PieChartProxy.prototype.getCrossFilterTooltipRenderer = function (title) {\n return function (params) {\n var label = params.datum[params.labelKey];\n var ratio = params.datum[params.radiusKey];\n var totalValue = params.angleValue;\n return {\n title: title,\n content: label + \": \" + totalValue * ratio\n };\n };\n };\n\n PieChartProxy.prototype.extractSeriesOverrides = function () {\n return this.chartOptions[this.standaloneChartType].series;\n };\n\n PieChartProxy.prototype.crossFilteringReset = function () {// not required in pie charts\n };\n\n return PieChartProxy;\n}(ChartProxy);\n\nvar __extends$14 = undefined && undefined.__extends || function () {\n var _extendStatics152 = function extendStatics(d, b) {\n _extendStatics152 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics152(d, b);\n };\n\n return function (d, b) {\n _extendStatics152(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$b = undefined && undefined.__assign || function () {\n __assign$b = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$b.apply(this, arguments);\n};\n\nvar __values$3 = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar __read$9 = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$3 = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$9(arguments[i]));\n }\n\n return ar;\n};\n\nvar ScatterChartProxy =\n/** @class */\nfunction (_super) {\n __extends$14(ScatterChartProxy, _super);\n\n function ScatterChartProxy(params) {\n var _this = _super.call(this, params) || this;\n\n _this.supportsAxesUpdates = false;\n _this.xAxisType = 'number';\n _this.yAxisType = 'number';\n\n _this.recreateChart();\n\n return _this;\n }\n\n ScatterChartProxy.prototype.getData = function (params) {\n return this.getDataTransformedData(params);\n };\n\n ScatterChartProxy.prototype.getAxes = function () {\n var axisOptions = this.getAxesOptions();\n return [__assign$b(__assign$b({}, deepMerge(axisOptions[this.xAxisType], axisOptions[this.xAxisType].bottom)), {\n type: this.xAxisType,\n position: ChartAxisPosition.Bottom\n }), __assign$b(__assign$b({}, deepMerge(axisOptions[this.yAxisType], axisOptions[this.yAxisType].left)), {\n type: this.yAxisType,\n position: ChartAxisPosition.Left\n })];\n };\n\n ScatterChartProxy.prototype.getSeries = function (params) {\n var _this = this;\n\n var paired = this.chartOptions[this.standaloneChartType].paired;\n var seriesDefinitions = this.getSeriesDefinitions(params.fields, paired);\n var labelFieldDefinition = params.category.id === ChartDataModel.DEFAULT_CATEGORY ? undefined : params.category;\n var series = seriesDefinitions.map(function (seriesDefinition) {\n return __assign$b(__assign$b({}, _this.extractSeriesOverrides()), {\n type: _this.standaloneChartType,\n xKey: seriesDefinition.xField.colId,\n xName: seriesDefinition.xField.displayName,\n yKey: seriesDefinition.yField.colId,\n yName: seriesDefinition.yField.displayName,\n title: seriesDefinition.yField.displayName + \" vs \" + seriesDefinition.xField.displayName,\n sizeKey: seriesDefinition.sizeField ? seriesDefinition.sizeField.colId : undefined,\n sizeName: seriesDefinition.sizeField ? seriesDefinition.sizeField.displayName : undefined,\n labelKey: labelFieldDefinition ? labelFieldDefinition.id : seriesDefinition.yField.colId,\n labelName: labelFieldDefinition ? labelFieldDefinition.name : undefined\n });\n });\n return this.crossFiltering ? this.extractCrossFilterSeries(series, params) : series;\n };\n\n ScatterChartProxy.prototype.extractCrossFilterSeries = function (series, params) {\n var _this = this;\n\n var data = params.data;\n var palette = this.chartTheme.palette;\n\n var filteredOutKey = function filteredOutKey(key) {\n return key + \"-filtered-out\";\n };\n\n var calcMarkerDomain = function calcMarkerDomain(data, sizeKey) {\n var e_1, _a;\n\n var _b;\n\n var markerDomain = [Infinity, -Infinity];\n\n if (sizeKey != null) {\n try {\n for (var data_1 = __values$3(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {\n var datum = data_1_1.value;\n var value = (_b = datum[sizeKey], _b !== null && _b !== void 0 ? _b : datum[filteredOutKey(sizeKey)]);\n\n if (value < markerDomain[0]) {\n markerDomain[0] = value;\n }\n\n if (value > markerDomain[1]) {\n markerDomain[1] = value;\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (data_1_1 && !data_1_1.done && (_a = data_1.return)) _a.call(data_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n }\n\n if (markerDomain[0] <= markerDomain[1]) {\n return markerDomain;\n }\n\n return undefined;\n };\n\n var updatePrimarySeries = function updatePrimarySeries(series, idx) {\n var sizeKey = series.sizeKey;\n var fill = palette.fills[idx];\n var stroke = palette.strokes[idx];\n var markerDomain = calcMarkerDomain(data, sizeKey);\n\n var marker = __assign$b(__assign$b({}, series.marker), {\n fill: fill,\n stroke: stroke,\n domain: markerDomain\n });\n\n return __assign$b(__assign$b({}, series), {\n marker: marker,\n highlightStyle: {\n item: {\n fill: 'yellow'\n }\n },\n listeners: __assign$b(__assign$b({}, series.listeners), {\n nodeClick: _this.crossFilterCallback\n })\n });\n };\n\n var updateFilteredOutSeries = function updateFilteredOutSeries(series) {\n var sizeKey = series.sizeKey,\n yKey = series.yKey,\n xKey = series.xKey;\n\n if (sizeKey != null) {\n sizeKey = filteredOutKey(sizeKey);\n }\n\n return __assign$b(__assign$b({}, series), {\n yKey: filteredOutKey(yKey),\n xKey: filteredOutKey(xKey),\n marker: __assign$b(__assign$b({}, series.marker), {\n fillOpacity: 0.3,\n strokeOpacity: 0.3\n }),\n sizeKey: sizeKey,\n showInLegend: false,\n listeners: __assign$b(__assign$b({}, series.listeners), {\n nodeClick: function nodeClick(e) {\n var _a;\n\n var value = e.datum[e.series.xKey]; // Need to remove the `-filtered-out` suffixes from the event so that\n // upstream processing maps the event correctly onto grid column ids.\n\n var filterableEvent = __assign$b(__assign$b({}, e), {\n xKey: xKey,\n datum: __assign$b(__assign$b({}, e.datum), (_a = {}, _a[xKey] = value, _a))\n });\n\n _this.crossFilterCallback(filterableEvent);\n }\n })\n });\n };\n\n var updatedSeries = series.map(updatePrimarySeries);\n return __spread$3(updatedSeries, updatedSeries.map(updateFilteredOutSeries));\n };\n\n ScatterChartProxy.prototype.getSeriesDefinitions = function (fields, paired) {\n if (fields.length < 2) {\n return [];\n }\n\n var isBubbleChart = this.chartType === 'bubble';\n\n if (paired) {\n if (isBubbleChart) {\n return fields.map(function (currentXField, i) {\n return i % 3 === 0 ? {\n xField: currentXField,\n yField: fields[i + 1],\n sizeField: fields[i + 2]\n } : null;\n }).filter(function (x) {\n return x && x.yField && x.sizeField;\n });\n }\n\n return fields.map(function (currentXField, i) {\n return i % 2 === 0 ? {\n xField: currentXField,\n yField: fields[i + 1]\n } : null;\n }).filter(function (x) {\n return x && x.yField;\n });\n }\n\n var xField = fields[0];\n\n if (isBubbleChart) {\n return fields.map(function (yField, i) {\n return i % 2 === 1 ? {\n xField: xField,\n yField: yField,\n sizeField: fields[i + 1]\n } : null;\n }).filter(function (x) {\n return x && x.sizeField;\n });\n }\n\n return fields.filter(function (value, i) {\n return i > 0;\n }).map(function (yField) {\n return {\n xField: xField,\n yField: yField\n };\n });\n };\n\n return ScatterChartProxy;\n}(CartesianChartProxy);\n\nvar __extends$13 = undefined && undefined.__extends || function () {\n var _extendStatics153 = function extendStatics(d, b) {\n _extendStatics153 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics153(d, b);\n };\n\n return function (d, b) {\n _extendStatics153(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$a = undefined && undefined.__assign || function () {\n __assign$a = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$a.apply(this, arguments);\n};\n\nvar HistogramChartProxy =\n/** @class */\nfunction (_super) {\n __extends$13(HistogramChartProxy, _super);\n\n function HistogramChartProxy(params) {\n var _this = _super.call(this, params) || this;\n\n _this.supportsAxesUpdates = false;\n _this.xAxisType = 'number';\n _this.yAxisType = 'number';\n\n _this.recreateChart();\n\n return _this;\n }\n\n HistogramChartProxy.prototype.getData = function (params) {\n return this.getDataTransformedData(params);\n };\n\n HistogramChartProxy.prototype.getSeries = function (params) {\n var firstField = params.fields[0]; // multiple series are not supported!\n\n return [__assign$a(__assign$a({}, this.extractSeriesOverrides()), {\n type: this.standaloneChartType,\n xKey: firstField.colId,\n xName: firstField.displayName,\n areaPlot: false\n })];\n };\n\n HistogramChartProxy.prototype.getAxes = function () {\n var axisOptions = this.getAxesOptions();\n return [__assign$a(__assign$a({}, deepMerge(axisOptions[this.xAxisType], axisOptions[this.xAxisType].bottom)), {\n type: this.xAxisType,\n position: ChartAxisPosition.Bottom\n }), __assign$a(__assign$a({}, deepMerge(axisOptions[this.yAxisType], axisOptions[this.yAxisType].left)), {\n type: this.yAxisType,\n position: ChartAxisPosition.Left\n })];\n };\n\n return HistogramChartProxy;\n}(CartesianChartProxy);\n\nvar __extends$12 = undefined && undefined.__extends || function () {\n var _extendStatics154 = function extendStatics(d, b) {\n _extendStatics154 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics154(d, b);\n };\n\n return function (d, b) {\n _extendStatics154(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ChartOptionsService =\n/** @class */\nfunction (_super) {\n __extends$12(ChartOptionsService, _super);\n\n function ChartOptionsService(chartController) {\n var _this = _super.call(this) || this;\n\n _this.chartController = chartController;\n return _this;\n }\n\n ChartOptionsService.prototype.getChartOption = function (expression) {\n return _.get(this.getChart(), expression, undefined);\n };\n\n ChartOptionsService.prototype.setChartOption = function (expression, value) {\n var _this = this;\n\n var chartSeriesTypes = this.chartController.getChartSeriesTypes();\n\n if (this.chartController.isComboChart()) {\n chartSeriesTypes.push('cartesian');\n } // we need to update chart options on each series type for combo charts\n\n\n chartSeriesTypes.forEach(function (optionsType) {\n // update options\n var options = _.get(_this.getChartOptions(), \"\" + optionsType, undefined);\n\n _.set(options, expression, value);\n }); // update chart\n\n this.updateChart();\n this.raiseChartOptionsChangedEvent();\n };\n\n ChartOptionsService.prototype.getAxisProperty = function (expression) {\n return _.get(this.getChart().axes[0], expression, undefined);\n };\n\n ChartOptionsService.prototype.setAxisProperty = function (expression, value) {\n var _this = this; // update axis options\n\n\n var chart = this.getChart();\n chart.axes.forEach(function (axis) {\n _this.updateAxisOptions(axis, expression, value);\n }); // update chart\n\n this.updateChart();\n this.raiseChartOptionsChangedEvent();\n };\n\n ChartOptionsService.prototype.getLabelRotation = function (axisType) {\n var axis = this.getAxis(axisType);\n return _.get(axis, 'label.rotation', undefined);\n };\n\n ChartOptionsService.prototype.setLabelRotation = function (axisType, value) {\n var chartAxis = this.getAxis(axisType);\n\n if (chartAxis) {\n this.updateAxisOptions(chartAxis, 'label.rotation', value);\n this.updateChart();\n this.raiseChartOptionsChangedEvent();\n }\n };\n\n ChartOptionsService.prototype.getSeriesOption = function (expression, seriesType) {\n var series = this.getChart().series.find(function (s) {\n return ChartOptionsService.isMatchingSeries(seriesType, s);\n });\n return _.get(series, expression, undefined);\n };\n\n ChartOptionsService.prototype.setSeriesOption = function (expression, value, seriesType) {\n // update series options\n var options = this.getChartOptions();\n\n if (!options[seriesType]) {\n options[seriesType] = {};\n }\n\n _.set(options[seriesType].series, expression, value); // update chart\n\n\n this.updateChart();\n this.raiseChartOptionsChangedEvent();\n };\n\n ChartOptionsService.prototype.getPairedMode = function () {\n var optionsType = getSeriesType(this.getChartType());\n return _.get(this.getChartOptions(), optionsType + \".paired\", undefined);\n };\n\n ChartOptionsService.prototype.setPairedMode = function (paired) {\n var optionsType = getSeriesType(this.getChartType());\n\n var options = _.get(this.getChartOptions(), \"\" + optionsType, undefined);\n\n _.set(options, 'paired', paired);\n };\n\n ChartOptionsService.prototype.getAxis = function (axisType) {\n var chart = this.getChart();\n\n if (!chart.axes || chart.axes.length < 1) {\n return undefined;\n }\n\n if (axisType === 'xAxis') {\n return chart.axes && chart.axes[0].direction === 'x' ? chart.axes[0] : chart.axes[1];\n }\n\n return chart.axes && chart.axes[1].direction === 'y' ? chart.axes[1] : chart.axes[0];\n };\n\n ChartOptionsService.prototype.updateAxisOptions = function (chartAxis, expression, value) {\n var optionsType = getSeriesType(this.getChartType());\n var axisOptions = this.getChartOptions()[optionsType].axes;\n\n if (chartAxis instanceof NumberAxis) {\n _.set(axisOptions.number, expression, value);\n } else if (chartAxis instanceof CategoryAxis) {\n _.set(axisOptions.category, expression, value);\n } else if (chartAxis instanceof TimeAxis) {\n _.set(axisOptions.time, expression, value);\n } else if (chartAxis instanceof GroupedCategoryAxis) {\n _.set(axisOptions.groupedCategory, expression, value);\n }\n };\n\n ChartOptionsService.prototype.getChartType = function () {\n return this.chartController.getChartType();\n };\n\n ChartOptionsService.prototype.getChart = function () {\n return this.chartController.getChartProxy().getChart();\n };\n\n ChartOptionsService.prototype.getChartOptions = function () {\n return this.chartController.getChartProxy().getChartOptions();\n };\n\n ChartOptionsService.prototype.updateChart = function () {\n var chartUpdateParams = this.chartController.getChartUpdateParams();\n this.chartController.getChartProxy().update(chartUpdateParams);\n };\n\n ChartOptionsService.prototype.raiseChartOptionsChangedEvent = function () {\n var chartModel = this.chartController.getChartModel();\n var event = Object.freeze({\n type: Events.EVENT_CHART_OPTIONS_CHANGED,\n chartId: chartModel.chartId,\n chartType: chartModel.chartType,\n chartThemeName: chartModel.chartThemeName,\n chartOptions: chartModel.chartOptions\n });\n this.eventService.dispatchEvent(event);\n };\n\n ChartOptionsService.isMatchingSeries = function (seriesType, series) {\n return seriesType === 'area' && series instanceof AreaSeries ? true : seriesType === 'bar' && series instanceof BarSeries ? true : seriesType === 'column' && series instanceof BarSeries ? true : seriesType === 'histogram' && series instanceof HistogramSeries ? true : seriesType === 'line' && series instanceof LineSeries ? true : seriesType === 'pie' && series instanceof PieSeries ? true : seriesType === 'scatter' && series instanceof ScatterSeries;\n };\n\n ChartOptionsService.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n __decorate$J([Autowired('gridApi')], ChartOptionsService.prototype, \"gridApi\", void 0);\n\n __decorate$J([Autowired('columnApi')], ChartOptionsService.prototype, \"columnApi\", void 0);\n\n return ChartOptionsService;\n}(BeanStub);\n\nvar __extends$11 = undefined && undefined.__extends || function () {\n var _extendStatics155 = function extendStatics(d, b) {\n _extendStatics155 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics155(d, b);\n };\n\n return function (d, b) {\n _extendStatics155(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$9 = undefined && undefined.__assign || function () {\n __assign$9 = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$9.apply(this, arguments);\n};\n\nvar ComboChartProxy =\n/** @class */\nfunction (_super) {\n __extends$11(ComboChartProxy, _super);\n\n function ComboChartProxy(params) {\n var _this = _super.call(this, params) || this;\n\n _this.xAxisType = params.grouping ? 'groupedCategory' : 'category';\n _this.yAxisType = 'number';\n\n _this.recreateChart();\n\n return _this;\n }\n\n ComboChartProxy.prototype.getData = function (params) {\n return this.getDataTransformedData(params);\n };\n\n ComboChartProxy.prototype.getAxes = function (params) {\n var _this = this;\n\n var _a;\n\n this.xAxisType = params.grouping ? 'groupedCategory' : 'category';\n var fields = params ? params.fields : [];\n var fieldsMap = new Map(fields.map(function (f) {\n return [f.colId, f];\n }));\n\n var _b = this.getYKeys(fields, params.seriesChartTypes),\n primaryYKeys = _b.primaryYKeys,\n secondaryYKeys = _b.secondaryYKeys;\n\n var _c = this.getAxisOptions(),\n bottomOptions = _c.bottomOptions,\n leftOptions = _c.leftOptions,\n rightOptions = _c.rightOptions;\n\n var axes = [__assign$9(__assign$9({}, bottomOptions), {\n type: this.xAxisType,\n position: ChartAxisPosition.Bottom,\n gridStyle: [{\n strokeWidth: 0\n }]\n })];\n\n if (primaryYKeys.length > 0) {\n axes.push(__assign$9(__assign$9({}, leftOptions), {\n type: this.yAxisType,\n keys: primaryYKeys,\n position: ChartAxisPosition.Left,\n title: __assign$9({}, deepMerge(leftOptions.title, {\n enabled: (_a = leftOptions.title) === null || _a === void 0 ? void 0 : _a.enabled,\n text: primaryYKeys.map(function (key) {\n var field = fieldsMap.get(key);\n return field ? field.displayName : key;\n }).join(' / ')\n }))\n }));\n }\n\n if (secondaryYKeys.length > 0) {\n secondaryYKeys.forEach(function (secondaryYKey, i) {\n var _a;\n\n var field = fieldsMap.get(secondaryYKey);\n var secondaryAxisIsVisible = field && field.colId === secondaryYKey;\n\n if (!secondaryAxisIsVisible) {\n return;\n }\n\n var secondaryAxisOptions = __assign$9(__assign$9({}, rightOptions), {\n type: _this.yAxisType,\n keys: [secondaryYKey],\n position: ChartAxisPosition.Right,\n title: __assign$9({}, deepMerge(rightOptions.title, {\n enabled: (_a = rightOptions.title) === null || _a === void 0 ? void 0 : _a.enabled,\n text: field ? field.displayName : secondaryYKey\n }))\n });\n\n var primaryYAxis = primaryYKeys.some(function (primaryYKey) {\n return !!fieldsMap.get(primaryYKey);\n });\n var lastSecondaryAxis = i === secondaryYKeys.length - 1;\n if (!primaryYAxis && lastSecondaryAxis) ;else {\n secondaryAxisOptions.gridStyle = [{\n strokeWidth: 0\n }];\n }\n axes.push(secondaryAxisOptions);\n });\n }\n\n return axes;\n };\n\n ComboChartProxy.prototype.getSeries = function (params) {\n var _this = this;\n\n var fields = params.fields,\n category = params.category,\n seriesChartTypes = params.seriesChartTypes;\n return fields.map(function (field) {\n var seriesChartType = seriesChartTypes.find(function (s) {\n return s.colId === field.colId;\n });\n\n if (seriesChartType) {\n var chartType = seriesChartType.chartType;\n return __assign$9(__assign$9({}, _this.extractSeriesOverrides(getSeriesType(seriesChartType.chartType))), {\n type: getSeriesType(chartType),\n xKey: category.id,\n yKey: field.colId,\n yName: field.displayName,\n grouped: ['groupedColumn', 'groupedBar', 'groupedArea'].includes(chartType),\n stacked: ['stackedArea', 'stackedColumn'].includes(chartType)\n });\n }\n });\n };\n\n ComboChartProxy.prototype.getAxisOptions = function () {\n var axisOptions = this.getAxesOptions('cartesian');\n return {\n bottomOptions: deepMerge(axisOptions[this.xAxisType], axisOptions[this.xAxisType].bottom),\n leftOptions: deepMerge(axisOptions[this.yAxisType], axisOptions[this.yAxisType].left),\n rightOptions: deepMerge(axisOptions[this.yAxisType], axisOptions[this.yAxisType].right)\n };\n };\n\n ComboChartProxy.prototype.getYKeys = function (fields, seriesChartTypes) {\n var primaryYKeys = [];\n var secondaryYKeys = [];\n fields.forEach(function (field) {\n var colId = field.colId;\n var seriesChartType = seriesChartTypes.find(function (s) {\n return s.colId === colId;\n });\n\n if (seriesChartType) {\n seriesChartType.secondaryAxis ? secondaryYKeys.push(colId) : primaryYKeys.push(colId);\n }\n });\n return {\n primaryYKeys: primaryYKeys,\n secondaryYKeys: secondaryYKeys\n };\n };\n\n return ComboChartProxy;\n}(CartesianChartProxy);\n\nvar __extends$10 = undefined && undefined.__extends || function () {\n var _extendStatics156 = function extendStatics(d, b) {\n _extendStatics156 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics156(d, b);\n };\n\n return function (d, b) {\n _extendStatics156(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar GridChartComp =\n/** @class */\nfunction (_super) {\n __extends$10(GridChartComp, _super);\n\n function GridChartComp(params) {\n var _this = _super.call(this, GridChartComp.TEMPLATE) || this;\n\n _this.params = params;\n return _this;\n }\n\n GridChartComp.prototype.init = function () {\n var availableChartThemes = this.gridOptionsWrapper.getChartThemes();\n\n if (availableChartThemes.length < 1) {\n throw new Error('Cannot create chart: no chart themes are available to be used.');\n }\n\n var chartThemeName = this.params.chartThemeName;\n\n if (!_.includes(availableChartThemes, chartThemeName)) {\n chartThemeName = availableChartThemes[0];\n }\n\n var modelParams = {\n chartId: this.params.chartId,\n pivotChart: this.params.pivotChart,\n chartType: this.params.chartType,\n chartThemeName: chartThemeName,\n aggFunc: this.params.aggFunc,\n cellRange: this.params.cellRange,\n suppressChartRanges: this.params.suppressChartRanges,\n unlinkChart: this.params.unlinkChart,\n crossFiltering: this.params.crossFiltering,\n seriesChartTypes: this.params.seriesChartTypes\n };\n var isRtl = this.gridOptionsWrapper.isEnableRtl();\n this.addCssClass(isRtl ? 'ag-rtl' : 'ag-ltr'); // only the chart controller interacts with the chart model\n\n var model = this.createBean(new ChartDataModel(modelParams));\n this.chartController = this.createManagedBean(new ChartController(model));\n this.validateCustomThemes(); // create chart before dialog to ensure dialog is correct size\n\n this.createChart();\n\n if (this.params.insideDialog) {\n this.addDialog();\n }\n\n this.addMenu();\n this.addTitleEditComp();\n this.addManagedListener(this.getGui(), 'focusin', this.setActiveChartCellRange.bind(this));\n this.addManagedListener(this.chartController, ChartController.EVENT_CHART_UPDATED, this.refresh.bind(this));\n\n if (this.chartMenu) {\n // chart menu may not exist, i.e. cross filtering\n this.addManagedListener(this.chartMenu, ChartMenu.EVENT_DOWNLOAD_CHART, this.downloadChart.bind(this));\n }\n\n this.refresh();\n this.raiseChartCreatedEvent();\n };\n\n GridChartComp.prototype.validateCustomThemes = function () {\n var suppliedThemes = this.gridOptionsWrapper.getChartThemes();\n var customChartThemes = this.gridOptionsWrapper.getCustomChartThemes();\n\n if (customChartThemes) {\n _.getAllKeysInObjects([customChartThemes]).forEach(function (customThemeName) {\n if (!_.includes(suppliedThemes, customThemeName)) {\n console.warn(\"AG Grid: a custom chart theme with the name '\" + customThemeName + \"' has been \" + \"supplied but not added to the 'chartThemes' list\");\n }\n });\n }\n };\n\n GridChartComp.prototype.createChart = function () {\n var _this = this; // if chart already exists, destroy it and remove it from DOM\n\n\n if (this.chartProxy) {\n this.chartProxy.destroy();\n }\n\n var crossFilterCallback = function crossFilterCallback(event, reset) {\n var ctx = _this.params.crossFilteringContext;\n ctx.lastSelectedChartId = reset ? '' : _this.chartController.getChartId();\n\n if (reset) {\n _this.params.crossFilteringResetCallback();\n }\n\n _this.crossFilterService.filter(event, reset);\n };\n\n var chartType = this.chartController.getChartType();\n var chartProxyParams = {\n chartType: chartType,\n getChartThemeName: this.getChartThemeName.bind(this),\n getChartThemes: this.getChartThemes.bind(this),\n customChartThemes: this.gridOptionsWrapper.getCustomChartThemes(),\n getGridOptionsChartThemeOverrides: this.getGridOptionsChartThemeOverrides.bind(this),\n apiChartThemeOverrides: this.params.chartThemeOverrides,\n crossFiltering: this.params.crossFiltering,\n crossFilterCallback: crossFilterCallback,\n parentElement: this.eChart,\n grouping: this.chartController.isGrouping(),\n chartOptionsToRestore: this.params.chartOptionsToRestore,\n chartPaletteToRestore: this.params.chartPaletteToRestore,\n seriesChartTypes: this.chartController.getSeriesChartTypes()\n }; // ensure 'restoring' options are not reused when switching chart types\n\n this.params.chartOptionsToRestore = undefined; // set local state used to detect when chart changes\n\n this.chartType = chartType;\n this.chartThemeName = this.chartController.getChartThemeName();\n this.chartProxy = GridChartComp.createChartProxy(chartProxyParams);\n\n if (!this.chartProxy) {\n console.warn('AG Grid: invalid chart type supplied: ', chartProxyParams.chartType);\n return;\n }\n\n var canvas = this.eChart.querySelector('canvas');\n\n if (canvas) {\n canvas.classList.add('ag-charts-canvas');\n }\n\n this.chartController.setChartProxy(this.chartProxy);\n this.chartOptionsService = this.createBean(new ChartOptionsService(this.chartController));\n this.titleEdit && this.titleEdit.refreshTitle(this.chartController, this.chartOptionsService);\n };\n\n GridChartComp.prototype.getChartThemeName = function () {\n return this.chartController.getChartThemeName();\n };\n\n GridChartComp.prototype.getChartThemes = function () {\n return this.chartController.getThemes();\n };\n\n GridChartComp.prototype.getGridOptionsChartThemeOverrides = function () {\n return this.gridOptionsWrapper.getChartThemeOverrides();\n };\n\n GridChartComp.createChartProxy = function (chartProxyParams) {\n switch (chartProxyParams.chartType) {\n case 'column':\n case 'bar':\n case 'groupedColumn':\n case 'stackedColumn':\n case 'normalizedColumn':\n case 'groupedBar':\n case 'stackedBar':\n case 'normalizedBar':\n return new BarChartProxy(chartProxyParams);\n\n case 'pie':\n case 'doughnut':\n return new PieChartProxy(chartProxyParams);\n\n case 'area':\n case 'stackedArea':\n case 'normalizedArea':\n return new AreaChartProxy(chartProxyParams);\n\n case 'line':\n return new LineChartProxy(chartProxyParams);\n\n case 'scatter':\n case 'bubble':\n return new ScatterChartProxy(chartProxyParams);\n\n case 'histogram':\n return new HistogramChartProxy(chartProxyParams);\n\n case 'columnLineCombo':\n case 'areaColumnCombo':\n case 'customCombo':\n return new ComboChartProxy(chartProxyParams);\n\n default:\n throw \"AG Grid: Unable to create chart as an invalid chartType = '\" + chartProxyParams.chartType + \"' was supplied.\";\n }\n };\n\n GridChartComp.prototype.addDialog = function () {\n var _this = this;\n\n var title = this.chartTranslationService.translate(this.params.pivotChart ? 'pivotChartTitle' : 'rangeChartTitle');\n\n var _a = this.getBestDialogSize(),\n width = _a.width,\n height = _a.height;\n\n this.chartDialog = new AgDialog({\n resizable: true,\n movable: true,\n maximizable: true,\n title: title,\n width: width,\n height: height,\n component: this,\n centered: true,\n closable: true\n });\n this.getContext().createBean(this.chartDialog);\n this.chartDialog.addEventListener(AgDialog.EVENT_DESTROYED, function () {\n return _this.destroy();\n });\n };\n\n GridChartComp.prototype.getBestDialogSize = function () {\n var popupParent = this.popupService.getPopupParent();\n var maxWidth = _.getAbsoluteWidth(popupParent) * 0.75;\n var maxHeight = _.getAbsoluteHeight(popupParent) * 0.75;\n var ratio = 0.553;\n var chart = this.chartProxy.getChart();\n var width = this.params.insideDialog ? 850 : chart.width;\n var height = this.params.insideDialog ? 470 : chart.height;\n\n if (width > maxWidth || height > maxHeight) {\n width = Math.min(width, maxWidth);\n height = Math.round(width * ratio);\n\n if (height > maxHeight) {\n height = maxHeight;\n width = Math.min(width, Math.round(height / ratio));\n }\n }\n\n return {\n width: width,\n height: height\n };\n };\n\n GridChartComp.prototype.addMenu = function () {\n if (!this.params.crossFiltering) {\n this.chartMenu = this.createBean(new ChartMenu(this.eChartContainer, this.eMenuContainer, this.chartController, this.chartOptionsService));\n this.eChartContainer.appendChild(this.chartMenu.getGui());\n }\n };\n\n GridChartComp.prototype.addTitleEditComp = function () {\n this.titleEdit = this.createBean(new TitleEdit(this.chartMenu));\n this.eTitleEditContainer.appendChild(this.titleEdit.getGui());\n\n if (this.chartProxy) {\n this.titleEdit.refreshTitle(this.chartController, this.chartOptionsService);\n }\n };\n\n GridChartComp.prototype.refresh = function () {\n if (this.shouldRecreateChart()) {\n this.createChart();\n }\n\n this.updateChart();\n };\n\n GridChartComp.prototype.shouldRecreateChart = function () {\n return this.chartType !== this.chartController.getChartType() || this.chartThemeName !== this.chartController.getChartThemeName();\n };\n\n GridChartComp.prototype.getCurrentChartType = function () {\n return this.chartType;\n };\n\n GridChartComp.prototype.getChartModel = function () {\n return this.chartController.getChartModel();\n };\n\n GridChartComp.prototype.getChartImageDataURL = function (fileFormat) {\n return this.chartProxy.getChartImageDataURL(fileFormat);\n };\n\n GridChartComp.prototype.updateChart = function () {\n var chartProxy = this.chartProxy;\n var selectedCols = this.chartController.getSelectedValueColState();\n var fields = selectedCols.map(function (c) {\n return {\n colId: c.colId,\n displayName: c.displayName\n };\n });\n var data = this.chartController.getChartData();\n var chartEmpty = this.handleEmptyChart(data, fields);\n\n if (chartEmpty) {\n return;\n }\n\n var chartUpdateParams = this.chartController.getChartUpdateParams();\n chartProxy.update(chartUpdateParams);\n this.titleEdit.refreshTitle(this.chartController, this.chartOptionsService);\n };\n\n GridChartComp.prototype.handleEmptyChart = function (data, fields) {\n var container = this.chartProxy.getChart().container;\n var pivotModeDisabled = this.chartController.isPivotChart() && !this.chartController.isPivotMode();\n var minFieldsRequired = 1;\n\n if (this.chartController.isActiveXYChart()) {\n minFieldsRequired = this.chartController.getChartType() === 'bubble' ? 3 : 2;\n }\n\n var isEmptyChart = fields.length < minFieldsRequired || data.length === 0;\n\n if (container) {\n var isEmpty = pivotModeDisabled || isEmptyChart;\n\n _.setDisplayed(this.eChart, !isEmpty);\n\n _.setDisplayed(this.eEmpty, isEmpty);\n }\n\n if (pivotModeDisabled) {\n this.eEmpty.innerText = this.chartTranslationService.translate('pivotChartRequiresPivotMode');\n return true;\n }\n\n if (isEmptyChart) {\n this.eEmpty.innerText = this.chartTranslationService.translate('noDataToChart');\n return true;\n }\n\n return false;\n };\n\n GridChartComp.prototype.downloadChart = function () {\n this.chartProxy.downloadChart();\n };\n\n GridChartComp.prototype.getChartId = function () {\n return this.chartController.getChartId();\n };\n\n GridChartComp.prototype.getUnderlyingChart = function () {\n return this.chartProxy.getChart();\n };\n\n GridChartComp.prototype.crossFilteringReset = function () {\n this.chartProxy.crossFilteringReset();\n };\n\n GridChartComp.prototype.setActiveChartCellRange = function (focusEvent) {\n if (this.getGui().contains(focusEvent.relatedTarget)) {\n return;\n }\n\n this.chartController.setChartRange(true);\n this.gridApi.focusService.clearFocusedCell();\n };\n\n GridChartComp.prototype.raiseChartCreatedEvent = function () {\n var event = Object.freeze({\n type: Events.EVENT_CHART_CREATED,\n chartId: this.chartController.getChartId()\n });\n this.eventService.dispatchEvent(event);\n };\n\n GridChartComp.prototype.raiseChartDestroyedEvent = function () {\n var event = Object.freeze({\n type: Events.EVENT_CHART_DESTROYED,\n chartId: this.chartController.getChartId()\n });\n this.eventService.dispatchEvent(event);\n };\n\n GridChartComp.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n\n if (this.chartProxy) {\n this.chartProxy.destroy();\n }\n\n this.destroyBean(this.chartMenu); // don't want to invoke destroy() on the Dialog (prevents destroy loop)\n\n if (this.chartDialog && this.chartDialog.isAlive()) {\n this.destroyBean(this.chartDialog);\n } // if the user is providing containers for the charts, we need to clean up, otherwise the old chart\n // data will still be visible although the chart is no longer bound to the grid\n\n\n var eGui = this.getGui();\n\n _.clearElement(eGui); // remove from parent, so if user provided container, we detach from the provided dom element\n\n\n _.removeFromParent(eGui);\n\n this.raiseChartDestroyedEvent();\n };\n\n GridChartComp.TEMPLATE = \"
\\n
\\n
\\n
\\n
\\n
\\n
\\n
\";\n\n __decorate$I([RefSelector('eChart')], GridChartComp.prototype, \"eChart\", void 0);\n\n __decorate$I([RefSelector('eChartContainer')], GridChartComp.prototype, \"eChartContainer\", void 0);\n\n __decorate$I([RefSelector('eMenuContainer')], GridChartComp.prototype, \"eMenuContainer\", void 0);\n\n __decorate$I([RefSelector('eEmpty')], GridChartComp.prototype, \"eEmpty\", void 0);\n\n __decorate$I([RefSelector('eTitleEditContainer')], GridChartComp.prototype, \"eTitleEditContainer\", void 0);\n\n __decorate$I([Autowired('chartCrossFilterService')], GridChartComp.prototype, \"crossFilterService\", void 0);\n\n __decorate$I([Autowired('chartTranslationService')], GridChartComp.prototype, \"chartTranslationService\", void 0);\n\n __decorate$I([Autowired('gridApi')], GridChartComp.prototype, \"gridApi\", void 0);\n\n __decorate$I([Autowired('popupService')], GridChartComp.prototype, \"popupService\", void 0);\n\n __decorate$I([PostConstruct], GridChartComp.prototype, \"init\", null);\n\n return GridChartComp;\n}(Component); // the line below is automatically modified during releases - do not modify\n// (see scripts/release/updateChartModel.js)\n\n\nvar CURRENT_VERSION = \"28.1.1\";\n\nfunction upgradeChartModel(model) {\n if (model.version == null) {\n // First release with version field.\n model.version = \"27.1.0\";\n }\n\n versionParts(model.version); // TODO: Add some transforms as the model changes over time.\n // if (major < 28) {\n // model = migrateToV28Model(model);\n // }\n\n return model;\n}\n\nfunction versionParts(version) {\n var split = typeof version === 'string' ? version.split('.').map(function (v) {\n return Number(v);\n }) : [];\n\n if (split.length !== 3 || split.some(function (v) {\n return isNaN(v);\n })) {\n throw new Error('AG Grid - Illegal version string: ' + version);\n }\n\n return {\n major: split[0],\n minor: split[1],\n patch: split[2]\n };\n}\n\nvar __extends$$ = undefined && undefined.__extends || function () {\n var _extendStatics157 = function extendStatics(d, b) {\n _extendStatics157 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics157(d, b);\n };\n\n return function (d, b) {\n _extendStatics157(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$8 = undefined && undefined.__assign || function () {\n __assign$8 = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$8.apply(this, arguments);\n};\n\nvar __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ChartService =\n/** @class */\nfunction (_super) {\n __extends$$(ChartService, _super);\n\n function ChartService() {\n var _this = _super !== null && _super.apply(this, arguments) || this; // we destroy all charts bound to this grid when grid is destroyed. activeCharts contains all charts, including\n // those in developer provided containers.\n\n\n _this.activeCharts = new Set();\n _this.activeChartComps = new Set(); // this shared (singleton) context is used by cross filtering in line and area charts\n\n _this.crossFilteringContext = {\n lastSelectedChartId: ''\n };\n return _this;\n }\n\n ChartService.prototype.getChartModels = function () {\n var models = [];\n\n var versionedModel = function versionedModel(c) {\n return __assign$8(__assign$8({}, c), {\n version: CURRENT_VERSION\n });\n };\n\n this.activeChartComps.forEach(function (c) {\n return models.push(versionedModel(c.getChartModel()));\n });\n return models;\n };\n\n ChartService.prototype.getChartRef = function (chartId) {\n var chartRef;\n this.activeCharts.forEach(function (cr) {\n if (cr.chartId === chartId) {\n chartRef = cr;\n }\n });\n return chartRef;\n };\n\n ChartService.prototype.getChartImageDataURL = function (params) {\n var url;\n this.activeChartComps.forEach(function (c) {\n if (c.getChartId() === params.chartId) {\n url = c.getChartImageDataURL(params.fileFormat);\n }\n });\n return url;\n };\n\n ChartService.prototype.createChartFromCurrentRange = function (chartType) {\n if (chartType === void 0) {\n chartType = 'groupedColumn';\n }\n\n var selectedRange = this.getSelectedRange();\n return this.createChart(selectedRange, chartType);\n };\n\n ChartService.prototype.restoreChart = function (model, chartContainer) {\n var _this = this;\n\n if (!model) {\n console.warn(\"AG Grid - unable to restore chart as no chart model is provided\");\n return;\n }\n\n if (model.version !== CURRENT_VERSION) {\n model = upgradeChartModel(model);\n }\n\n var params = {\n cellRange: model.cellRange,\n chartType: model.chartType,\n chartThemeName: model.chartThemeName,\n chartContainer: chartContainer,\n suppressChartRanges: model.suppressChartRanges,\n aggFunc: model.aggFunc,\n unlinkChart: model.unlinkChart,\n seriesChartTypes: model.seriesChartTypes\n };\n\n var getCellRange = function getCellRange(cellRangeParams) {\n return _this.rangeService ? _this.rangeService.createCellRangeFromCellRangeParams(cellRangeParams) : undefined;\n };\n\n if (model.modelType === 'pivot') {\n // if required enter pivot mode\n if (!this.columnModel.isPivotMode()) {\n this.columnModel.setPivotMode(true, \"pivotChart\");\n } // pivot chart range contains all visible column without a row range to include all rows\n\n\n var columns = this.columnModel.getAllDisplayedColumns().map(function (col) {\n return col.getColId();\n });\n var chartAllRangeParams = {\n rowStartIndex: null,\n rowStartPinned: undefined,\n rowEndIndex: null,\n rowEndPinned: undefined,\n columns: columns\n };\n var cellRange_1 = getCellRange(chartAllRangeParams);\n\n if (!cellRange_1) {\n console.warn(\"AG Grid - unable to create chart as there are no columns in the grid.\");\n return;\n }\n\n return this.createChart(cellRange_1, params.chartType, params.chartThemeName, true, true, params.chartContainer, undefined, undefined, params.unlinkChart, false, model.chartOptions);\n }\n\n var cellRange = getCellRange(params.cellRange);\n\n if (!cellRange) {\n console.warn(\"AG Grid - unable to create chart as no range is selected\");\n return;\n }\n\n return this.createChart(cellRange, params.chartType, params.chartThemeName, false, params.suppressChartRanges, params.chartContainer, params.aggFunc, undefined, params.unlinkChart, false, model.chartOptions, model.chartPalette, params.seriesChartTypes);\n };\n\n ChartService.prototype.createRangeChart = function (params) {\n var cellRange = this.rangeService ? this.rangeService.createCellRangeFromCellRangeParams(params.cellRange) : undefined;\n\n if (!cellRange) {\n console.warn(\"AG Grid - unable to create chart as no range is selected\");\n return;\n }\n\n return this.createChart(cellRange, params.chartType, params.chartThemeName, false, params.suppressChartRanges, params.chartContainer, params.aggFunc, params.chartThemeOverrides, params.unlinkChart, undefined, undefined, undefined, params.seriesChartTypes);\n };\n\n ChartService.prototype.createPivotChart = function (params) {\n // if required enter pivot mode\n if (!this.columnModel.isPivotMode()) {\n this.columnModel.setPivotMode(true, \"pivotChart\");\n } // pivot chart range contains all visible column without a row range to include all rows\n\n\n var chartAllRangeParams = {\n rowStartIndex: null,\n rowStartPinned: undefined,\n rowEndIndex: null,\n rowEndPinned: undefined,\n columns: this.columnModel.getAllDisplayedColumns().map(function (col) {\n return col.getColId();\n })\n };\n var cellRange = this.rangeService ? this.rangeService.createCellRangeFromCellRangeParams(chartAllRangeParams) : undefined;\n\n if (!cellRange) {\n console.warn(\"AG Grid - unable to create chart as there are no columns in the grid.\");\n return;\n }\n\n return this.createChart(cellRange, params.chartType, params.chartThemeName, true, true, params.chartContainer, undefined, params.chartThemeOverrides, params.unlinkChart);\n };\n\n ChartService.prototype.createCrossFilterChart = function (params) {\n var cellRange = this.rangeService ? this.rangeService.createCellRangeFromCellRangeParams(params.cellRange) : undefined;\n\n if (!cellRange) {\n console.warn(\"AG Grid - unable to create chart as no range is selected\");\n return;\n }\n\n var crossFiltering = true;\n var suppressChartRangesSupplied = typeof params.suppressChartRanges !== 'undefined' && params.suppressChartRanges !== null;\n var suppressChartRanges = suppressChartRangesSupplied ? params.suppressChartRanges : true;\n return this.createChart(cellRange, params.chartType, params.chartThemeName, false, suppressChartRanges, params.chartContainer, params.aggFunc, params.chartThemeOverrides, params.unlinkChart, crossFiltering);\n };\n\n ChartService.prototype.createChart = function (cellRange, chartType, chartThemeName, pivotChart, suppressChartRanges, container, aggFunc, chartThemeOverrides, unlinkChart, crossFiltering, chartOptionsToRestore, chartPaletteToRestore, seriesChartTypes) {\n var _this = this;\n\n if (pivotChart === void 0) {\n pivotChart = false;\n }\n\n if (suppressChartRanges === void 0) {\n suppressChartRanges = false;\n }\n\n if (unlinkChart === void 0) {\n unlinkChart = false;\n }\n\n if (crossFiltering === void 0) {\n crossFiltering = false;\n }\n\n var createChartContainerFunc = this.gridOptionsWrapper.getCreateChartContainerFunc();\n var params = {\n chartId: this.generateId(),\n pivotChart: pivotChart,\n cellRange: cellRange,\n chartType: chartType,\n chartThemeName: chartThemeName,\n insideDialog: !(container || createChartContainerFunc),\n suppressChartRanges: suppressChartRanges,\n aggFunc: aggFunc,\n chartThemeOverrides: chartThemeOverrides,\n unlinkChart: unlinkChart,\n crossFiltering: crossFiltering,\n crossFilteringContext: this.crossFilteringContext,\n chartOptionsToRestore: chartOptionsToRestore,\n chartPaletteToRestore: chartPaletteToRestore,\n seriesChartTypes: seriesChartTypes,\n crossFilteringResetCallback: function crossFilteringResetCallback() {\n return _this.activeChartComps.forEach(function (c) {\n return c.crossFilteringReset();\n });\n }\n };\n var chartComp = new GridChartComp(params);\n this.context.createBean(chartComp);\n var chartRef = this.createChartRef(chartComp);\n\n if (container) {\n // if container exists, means developer initiated chart create via API, so place in provided container\n container.appendChild(chartComp.getGui()); // if the chart container was placed outside of an element that\n // has the grid's theme, we manually add the current theme to\n // make sure all styles for the chartMenu are rendered correctly\n\n var theme = this.environment.getTheme();\n\n if (theme.el && !theme.el.contains(container)) {\n container.classList.add(theme.theme);\n }\n } else if (createChartContainerFunc) {\n // otherwise user created chart via grid UI, check if developer provides containers (eg if the application\n // is using its own dialogs rather than the grid provided dialogs)\n createChartContainerFunc(chartRef);\n } else {\n // add listener to remove from active charts list when charts are destroyed, e.g. closing chart dialog\n chartComp.addEventListener(GridChartComp.EVENT_DESTROYED, function () {\n _this.activeChartComps.delete(chartComp);\n\n _this.activeCharts.delete(chartRef);\n });\n }\n\n return chartRef;\n };\n\n ChartService.prototype.createChartRef = function (chartComp) {\n var _this = this;\n\n var chartRef = {\n destroyChart: function destroyChart() {\n if (_this.activeCharts.has(chartRef)) {\n _this.context.destroyBean(chartComp);\n\n _this.activeChartComps.delete(chartComp);\n\n _this.activeCharts.delete(chartRef);\n }\n },\n chartElement: chartComp.getGui(),\n chart: chartComp.getUnderlyingChart(),\n chartId: chartComp.getChartModel().chartId\n };\n this.activeCharts.add(chartRef);\n this.activeChartComps.add(chartComp);\n return chartRef;\n };\n\n ChartService.prototype.getSelectedRange = function () {\n var ranges = this.rangeService.getCellRanges();\n return ranges.length > 0 ? ranges[0] : {};\n };\n\n ChartService.prototype.generateId = function () {\n return 'id-' + Math.random().toString(36).substr(2, 16);\n };\n\n ChartService.prototype.destroyAllActiveCharts = function () {\n this.activeCharts.forEach(function (chart) {\n return chart.destroyChart();\n });\n };\n\n __decorate$H([Optional('rangeService')], ChartService.prototype, \"rangeService\", void 0);\n\n __decorate$H([Autowired('columnModel')], ChartService.prototype, \"columnModel\", void 0);\n\n __decorate$H([Autowired('environment')], ChartService.prototype, \"environment\", void 0);\n\n __decorate$H([PreDestroy], ChartService.prototype, \"destroyAllActiveCharts\", null);\n\n ChartService = __decorate$H([Bean('chartService')], ChartService);\n return ChartService;\n}(BeanStub);\n\nvar __extends$_ = undefined && undefined.__extends || function () {\n var _extendStatics158 = function extendStatics(d, b) {\n _extendStatics158 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics158(d, b);\n };\n\n return function (d, b) {\n _extendStatics158(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ChartTranslationService =\n/** @class */\nfunction (_super) {\n __extends$_(ChartTranslationService, _super);\n\n function ChartTranslationService() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n ChartTranslationService_1 = ChartTranslationService;\n\n ChartTranslationService.prototype.translate = function (toTranslate, defaultText) {\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var defaultTranslation = ChartTranslationService_1.DEFAULT_TRANSLATIONS[toTranslate] || defaultText;\n return translate(toTranslate, defaultTranslation);\n };\n\n var ChartTranslationService_1;\n ChartTranslationService.DEFAULT_TRANSLATIONS = {\n pivotChartTitle: 'Pivot Chart',\n rangeChartTitle: 'Range Chart',\n settings: 'Settings',\n data: 'Data',\n format: 'Format',\n categories: 'Categories',\n defaultCategory: '(None)',\n series: 'Series',\n xyValues: 'X Y Values',\n paired: 'Paired Mode',\n axis: 'Axis',\n navigator: 'Navigator',\n color: 'Color',\n thickness: 'Thickness',\n xType: 'X Type',\n automatic: 'Automatic',\n category: 'Category',\n number: 'Number',\n time: 'Time',\n autoRotate: 'Auto Rotate',\n xRotation: 'X Rotation',\n yRotation: 'Y Rotation',\n ticks: 'Ticks',\n width: 'Width',\n height: 'Height',\n length: 'Length',\n padding: 'Padding',\n spacing: 'Spacing',\n chart: 'Chart',\n title: 'Title',\n titlePlaceholder: 'Chart title - double click to edit',\n background: 'Background',\n font: 'Font',\n top: 'Top',\n right: 'Right',\n bottom: 'Bottom',\n left: 'Left',\n labels: 'Labels',\n size: 'Size',\n shape: 'Shape',\n minSize: 'Minimum Size',\n maxSize: 'Maximum Size',\n legend: 'Legend',\n position: 'Position',\n markerSize: 'Marker Size',\n markerStroke: 'Marker Stroke',\n markerPadding: 'Marker Padding',\n itemSpacing: 'Item Spacing',\n itemPaddingX: 'Item Padding X',\n itemPaddingY: 'Item Padding Y',\n layoutHorizontalSpacing: 'Horizontal Spacing',\n layoutVerticalSpacing: 'Vertical Spacing',\n strokeWidth: 'Stroke Width',\n offset: 'Offset',\n offsets: 'Offsets',\n tooltips: 'Tooltips',\n callout: 'Callout',\n markers: 'Markers',\n shadow: 'Shadow',\n blur: 'Blur',\n xOffset: 'X Offset',\n yOffset: 'Y Offset',\n lineWidth: 'Line Width',\n lineDash: 'Line Dash',\n normal: 'Normal',\n bold: 'Bold',\n italic: 'Italic',\n boldItalic: 'Bold Italic',\n predefined: 'Predefined',\n fillOpacity: 'Fill Opacity',\n strokeOpacity: 'Line Opacity',\n histogramBinCount: 'Bin count',\n columnGroup: 'Column',\n barGroup: 'Bar',\n pieGroup: 'Pie',\n lineGroup: 'Line',\n scatterGroup: 'X Y (Scatter)',\n areaGroup: 'Area',\n histogramGroup: 'Histogram',\n combinationGroup: 'Combination',\n groupedColumnTooltip: 'Grouped',\n stackedColumnTooltip: 'Stacked',\n normalizedColumnTooltip: '100% Stacked',\n groupedBarTooltip: 'Grouped',\n stackedBarTooltip: 'Stacked',\n normalizedBarTooltip: '100% Stacked',\n pieTooltip: 'Pie',\n doughnutTooltip: 'Doughnut',\n lineTooltip: 'Line',\n groupedAreaTooltip: 'Area',\n stackedAreaTooltip: 'Stacked',\n normalizedAreaTooltip: '100% Stacked',\n scatterTooltip: 'Scatter',\n bubbleTooltip: 'Bubble',\n histogramTooltip: 'Histogram',\n columnLineComboTooltip: 'Column & Line',\n areaColumnComboTooltip: 'Area & Column',\n customComboTooltip: 'Custom Combination',\n noDataToChart: 'No data available to be charted.',\n pivotChartRequiresPivotMode: 'Pivot Chart requires Pivot Mode enabled.',\n chartSettingsToolbarTooltip: 'Menu',\n chartLinkToolbarTooltip: 'Linked to Grid',\n chartUnlinkToolbarTooltip: 'Unlinked from Grid',\n chartDownloadToolbarTooltip: 'Download Chart',\n seriesChartType: 'Series Chart Type',\n seriesType: 'Series Type',\n secondaryAxis: 'Secondary Axis'\n };\n ChartTranslationService = ChartTranslationService_1 = __decorate$G([Bean(\"chartTranslationService\")], ChartTranslationService);\n return ChartTranslationService;\n}(BeanStub);\n\nvar __extends$Z = undefined && undefined.__extends || function () {\n var _extendStatics159 = function extendStatics(d, b) {\n _extendStatics159 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics159(d, b);\n };\n\n return function (d, b) {\n _extendStatics159(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ChartCrossFilterService =\n/** @class */\nfunction (_super) {\n __extends$Z(ChartCrossFilterService, _super);\n\n function ChartCrossFilterService() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n ChartCrossFilterService_1 = ChartCrossFilterService;\n\n ChartCrossFilterService.prototype.filter = function (event, reset) {\n if (reset === void 0) {\n reset = false;\n }\n\n var filterModel = this.gridApi.getFilterModel(); // filters should be reset when user clicks on canvas background\n\n if (reset) {\n this.resetFilters(filterModel);\n return;\n }\n\n var colId = ChartCrossFilterService_1.extractFilterColId(event);\n\n if (this.isValidColumnFilter(colId)) {\n // update filters based on current chart selections\n this.updateFilters(filterModel, event, colId);\n } else {\n console.warn(\"AG Grid: cross filtering requires a 'agSetColumnFilter' or 'agMultiColumnFilter' \" + \"to be defined on the column with id: '\" + colId + \"'\");\n }\n };\n\n ChartCrossFilterService.prototype.resetFilters = function (filterModel) {\n var filtersExist = Object.keys(filterModel).length > 0;\n\n if (filtersExist) {\n // only reset filters / charts when necessary to prevent undesirable flickering effect\n this.gridApi.setFilterModel(null);\n this.gridApi.onFilterChanged();\n }\n };\n\n ChartCrossFilterService.prototype.updateFilters = function (filterModel, event, colId) {\n var _a;\n\n var dataKey = ChartCrossFilterService_1.extractFilterColId(event);\n var rawValue = event.datum[dataKey];\n\n if (rawValue === undefined) {\n return;\n }\n\n var selectedValue = rawValue.toString();\n\n if (event.event.metaKey || event.event.ctrlKey) {\n var existingGridValues = this.getCurrentGridValuesForCategory(colId);\n\n var valueAlreadyExists = _.includes(existingGridValues, selectedValue);\n\n var updatedValues = void 0;\n\n if (valueAlreadyExists) {\n updatedValues = existingGridValues.filter(function (v) {\n return v !== selectedValue;\n });\n } else {\n updatedValues = existingGridValues;\n updatedValues.push(selectedValue);\n }\n\n filterModel[colId] = this.getUpdatedFilterModel(colId, updatedValues);\n } else {\n var updatedValues = [selectedValue];\n filterModel = (_a = {}, _a[colId] = this.getUpdatedFilterModel(colId, updatedValues), _a);\n }\n\n this.gridApi.setFilterModel(filterModel);\n };\n\n ChartCrossFilterService.prototype.getUpdatedFilterModel = function (colId, updatedValues) {\n var columnFilterType = this.getColumnFilterType(colId);\n\n if (columnFilterType === 'agMultiColumnFilter') {\n return {\n filterType: 'multi',\n filterModels: [null, {\n filterType: 'set',\n values: updatedValues\n }]\n };\n }\n\n return {\n filterType: 'set',\n values: updatedValues\n };\n };\n\n ChartCrossFilterService.prototype.getCurrentGridValuesForCategory = function (colId) {\n var _this = this;\n\n var filteredValues = [];\n var column = this.getColumnById(colId);\n this.gridApi.forEachNodeAfterFilter(function (rowNode) {\n if (column && !rowNode.group) {\n var value = _this.valueService.getValue(column, rowNode) + '';\n\n if (!filteredValues.includes(value)) {\n filteredValues.push(value);\n }\n }\n });\n return filteredValues;\n };\n\n ChartCrossFilterService.extractFilterColId = function (event) {\n return event.xKey ? event.xKey : event.labelKey;\n };\n\n ChartCrossFilterService.prototype.isValidColumnFilter = function (colId) {\n if (colId.indexOf('-filtered-out')) {\n colId = colId.replace('-filtered-out', '');\n }\n\n var filterType = this.getColumnFilterType(colId);\n\n if (typeof filterType === 'boolean') {\n return filterType;\n }\n\n return _.includes(['agSetColumnFilter', 'agMultiColumnFilter'], filterType);\n };\n\n ChartCrossFilterService.prototype.getColumnFilterType = function (colId) {\n var gridColumn = this.getColumnById(colId);\n\n if (gridColumn) {\n var colDef = gridColumn.getColDef();\n return colDef.filter != null ? colDef.filter : colDef.filterFramework;\n }\n };\n\n ChartCrossFilterService.prototype.getColumnById = function (colId) {\n return this.columnModel.getGridColumn(colId);\n };\n\n var ChartCrossFilterService_1;\n\n __decorate$F([Autowired('gridApi')], ChartCrossFilterService.prototype, \"gridApi\", void 0);\n\n __decorate$F([Autowired('columnModel')], ChartCrossFilterService.prototype, \"columnModel\", void 0);\n\n __decorate$F([Autowired('valueService')], ChartCrossFilterService.prototype, \"valueService\", void 0);\n\n ChartCrossFilterService = ChartCrossFilterService_1 = __decorate$F([Bean(\"chartCrossFilterService\")], ChartCrossFilterService);\n return ChartCrossFilterService;\n}(BeanStub);\n\nvar __extends$Y = undefined && undefined.__extends || function () {\n var _extendStatics160 = function extendStatics(d, b) {\n _extendStatics160 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics160(d, b);\n };\n\n return function (d, b) {\n _extendStatics160(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$7 = undefined && undefined.__assign || function () {\n __assign$7 = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$7.apply(this, arguments);\n};\n\nvar __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$8 = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$2 = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$8(arguments[i]));\n }\n\n return ar;\n};\n\nvar __values$2 = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar RangeService =\n/** @class */\nfunction (_super) {\n __extends$Y(RangeService, _super);\n\n function RangeService() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.cellRanges = [];\n _this.bodyScrollListener = _this.onBodyScroll.bind(_this);\n _this.dragging = false;\n _this.intersectionRange = false; // When dragging ends, the current range will be used to intersect all other ranges\n\n return _this;\n }\n\n RangeService.prototype.init = function () {\n var _this = this;\n\n this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, function () {\n return _this.onColumnsChanged();\n });\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_VISIBLE, this.onColumnsChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_VALUE_CHANGED, this.onColumnsChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, function () {\n return _this.removeAllCellRanges();\n });\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, function () {\n return _this.removeAllCellRanges();\n });\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_CHANGED, function () {\n return _this.removeAllCellRanges();\n });\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_GROUP_OPENED, this.refreshLastRangeStart.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_MOVED, this.refreshLastRangeStart.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PINNED, this.refreshLastRangeStart.bind(this));\n this.ctrlsService.whenReady(function () {\n var gridBodyCtrl = _this.ctrlsService.getGridBodyCtrl();\n\n _this.autoScrollService = new AutoScrollService({\n scrollContainer: gridBodyCtrl.getBodyViewportElement(),\n scrollAxis: 'xy',\n getVerticalPosition: function getVerticalPosition() {\n return gridBodyCtrl.getScrollFeature().getVScrollPosition().top;\n },\n setVerticalPosition: function setVerticalPosition(position) {\n return gridBodyCtrl.getScrollFeature().setVerticalScrollPosition(position);\n },\n getHorizontalPosition: function getHorizontalPosition() {\n return gridBodyCtrl.getScrollFeature().getHScrollPosition().left;\n },\n setHorizontalPosition: function setHorizontalPosition(position) {\n return gridBodyCtrl.getScrollFeature().setHorizontalScrollPosition(position);\n },\n shouldSkipVerticalScroll: function shouldSkipVerticalScroll() {\n return _this.gridOptionsWrapper.getDomLayout() !== Constants.DOM_LAYOUT_NORMAL;\n },\n shouldSkipHorizontalScroll: function shouldSkipHorizontalScroll() {\n return gridBodyCtrl.getScrollFeature().isHorizontalScrollShowing();\n }\n });\n });\n }; // Called for both columns loaded & column visibility events\n\n\n RangeService.prototype.onColumnsChanged = function () {\n var _this = this; // first move start column in last cell range (i.e. series chart range)\n\n\n this.refreshLastRangeStart();\n var allColumns = this.columnModel.getAllDisplayedColumns(); // check that the columns in each range still exist and are visible\n\n this.cellRanges.forEach(function (cellRange) {\n var beforeCols = cellRange.columns; // remove hidden or removed cols from cell range\n\n cellRange.columns = cellRange.columns.filter(function (col) {\n return col.isVisible() && allColumns.indexOf(col) !== -1;\n });\n var colsInRangeChanged = !_.areEqual(beforeCols, cellRange.columns);\n\n if (colsInRangeChanged) {\n // notify users and other parts of grid (i.e. status panel) that range has changed\n _this.dispatchChangedEvent(false, true, cellRange.id);\n }\n }); // Remove empty cell ranges\n\n var countBefore = this.cellRanges.length;\n this.cellRanges = this.cellRanges.filter(function (range) {\n return range.columns.length > 0;\n });\n\n if (countBefore > this.cellRanges.length) {\n this.dispatchChangedEvent(false, true);\n }\n };\n\n RangeService.prototype.refreshLastRangeStart = function () {\n var lastRange = _.last(this.cellRanges);\n\n if (!lastRange) {\n return;\n }\n\n this.refreshRangeStart(lastRange);\n };\n\n RangeService.prototype.isContiguousRange = function (cellRange) {\n var rangeColumns = cellRange.columns;\n\n if (!rangeColumns.length) {\n return false;\n }\n\n var allColumns = this.columnModel.getAllDisplayedColumns();\n var allPositions = rangeColumns.map(function (c) {\n return allColumns.indexOf(c);\n }).sort(function (a, b) {\n return a - b;\n });\n return _.last(allPositions) - allPositions[0] + 1 === rangeColumns.length;\n };\n\n RangeService.prototype.getRangeStartRow = function (cellRange) {\n if (cellRange.startRow && cellRange.endRow) {\n return this.rowPositionUtils.before(cellRange.startRow, cellRange.endRow) ? cellRange.startRow : cellRange.endRow;\n }\n\n var rowPinned = this.pinnedRowModel.getPinnedTopRowCount() > 0 ? Constants.PINNED_TOP : null;\n return {\n rowIndex: 0,\n rowPinned: rowPinned\n };\n };\n\n RangeService.prototype.getRangeEndRow = function (cellRange) {\n if (cellRange.startRow && cellRange.endRow) {\n return this.rowPositionUtils.before(cellRange.startRow, cellRange.endRow) ? cellRange.endRow : cellRange.startRow;\n }\n\n var pinnedBottomRowCount = this.pinnedRowModel.getPinnedBottomRowCount();\n var pinnedBottom = pinnedBottomRowCount > 0;\n\n if (pinnedBottom) {\n return {\n rowIndex: pinnedBottomRowCount - 1,\n rowPinned: Constants.PINNED_BOTTOM\n };\n }\n\n return {\n rowIndex: this.rowModel.getRowCount() - 1,\n rowPinned: null\n };\n };\n\n RangeService.prototype.setRangeToCell = function (cell, appendRange) {\n if (appendRange === void 0) {\n appendRange = false;\n }\n\n if (!this.gridOptionsWrapper.isEnableRangeSelection()) {\n return;\n }\n\n var columns = this.calculateColumnsBetween(cell.column, cell.column);\n\n if (!columns) {\n return;\n }\n\n var suppressMultiRangeSelections = this.gridOptionsWrapper.isSuppressMultiRangeSelection(); // if not appending, then clear previous range selections\n\n if (suppressMultiRangeSelections || !appendRange || _.missing(this.cellRanges)) {\n this.removeAllCellRanges(true);\n }\n\n var rowForCell = {\n rowIndex: cell.rowIndex,\n rowPinned: cell.rowPinned\n };\n var cellRange = {\n startRow: rowForCell,\n endRow: rowForCell,\n columns: columns,\n startColumn: cell.column\n };\n this.cellRanges.push(cellRange);\n this.setNewestRangeStartCell(cell);\n this.onDragStop();\n this.dispatchChangedEvent(true, true);\n };\n\n RangeService.prototype.extendLatestRangeToCell = function (cellPosition) {\n if (this.isEmpty() || !this.newestRangeStartCell) {\n return;\n }\n\n var cellRange = _.last(this.cellRanges);\n\n this.updateRangeEnd(cellRange, cellPosition);\n };\n\n RangeService.prototype.updateRangeEnd = function (cellRange, cellPosition, silent) {\n if (silent === void 0) {\n silent = false;\n }\n\n var endColumn = cellPosition.column;\n var colsToAdd = this.calculateColumnsBetween(cellRange.startColumn, endColumn);\n\n if (!colsToAdd || this.isLastCellOfRange(cellRange, cellPosition)) {\n return;\n }\n\n cellRange.columns = colsToAdd;\n cellRange.endRow = {\n rowIndex: cellPosition.rowIndex,\n rowPinned: cellPosition.rowPinned\n };\n\n if (!silent) {\n this.dispatchChangedEvent(true, true, cellRange.id);\n }\n };\n\n RangeService.prototype.refreshRangeStart = function (cellRange) {\n var startColumn = cellRange.startColumn,\n columns = cellRange.columns;\n\n var moveColInCellRange = function moveColInCellRange(colToMove, moveToFront) {\n var otherCols = cellRange.columns.filter(function (col) {\n return col !== colToMove;\n });\n\n if (colToMove) {\n cellRange.startColumn = colToMove;\n cellRange.columns = moveToFront ? __spread$2([colToMove], otherCols) : __spread$2(otherCols, [colToMove]);\n } else {\n cellRange.columns = otherCols;\n }\n };\n\n var _a = this.getRangeEdgeColumns(cellRange),\n left = _a.left,\n right = _a.right;\n\n var shouldMoveLeftCol = startColumn === columns[0] && startColumn !== left;\n\n if (shouldMoveLeftCol) {\n moveColInCellRange(left, true);\n return;\n }\n\n var shouldMoveRightCol = startColumn === _.last(columns) && startColumn === right;\n\n if (shouldMoveRightCol) {\n moveColInCellRange(right, false);\n return;\n }\n };\n\n RangeService.prototype.getRangeEdgeColumns = function (cellRange) {\n var allColumns = this.columnModel.getAllDisplayedColumns();\n var allIndices = cellRange.columns.map(function (c) {\n return allColumns.indexOf(c);\n }).filter(function (i) {\n return i > -1;\n }).sort(function (a, b) {\n return a - b;\n });\n return {\n left: allColumns[allIndices[0]],\n right: allColumns[_.last(allIndices)]\n };\n }; // returns true if successful, false if not successful\n\n\n RangeService.prototype.extendLatestRangeInDirection = function (event) {\n if (this.isEmpty() || !this.newestRangeStartCell) {\n return;\n }\n\n var key = event.key;\n var ctrlKey = event.ctrlKey || event.metaKey;\n\n var lastRange = _.last(this.cellRanges);\n\n var startCell = this.newestRangeStartCell;\n var firstCol = lastRange.columns[0];\n\n var lastCol = _.last(lastRange.columns); // find the cell that is at the furthest away corner from the starting cell\n\n\n var endCellIndex = lastRange.endRow.rowIndex;\n var endCellFloating = lastRange.endRow.rowPinned;\n var endCellColumn = startCell.column === firstCol ? lastCol : firstCol;\n var endCell = {\n column: endCellColumn,\n rowIndex: endCellIndex,\n rowPinned: endCellFloating\n };\n var newEndCell = this.cellNavigationService.getNextCellToFocus(key, endCell, ctrlKey); // if user is at end of grid, so no cell to extend to, we return false\n\n if (!newEndCell) {\n return;\n }\n\n this.setCellRange({\n rowStartIndex: startCell.rowIndex,\n rowStartPinned: startCell.rowPinned,\n rowEndIndex: newEndCell.rowIndex,\n rowEndPinned: newEndCell.rowPinned,\n columnStart: startCell.column,\n columnEnd: newEndCell.column\n });\n return newEndCell;\n };\n\n RangeService.prototype.setCellRange = function (params) {\n if (!this.gridOptionsWrapper.isEnableRangeSelection()) {\n return;\n }\n\n this.removeAllCellRanges(true);\n this.addCellRange(params);\n };\n\n RangeService.prototype.setCellRanges = function (cellRanges) {\n var _this = this;\n\n if (_.shallowCompare(this.cellRanges, cellRanges)) {\n return;\n }\n\n this.removeAllCellRanges(true);\n cellRanges.forEach(function (newRange) {\n if (newRange.columns && newRange.startRow) {\n _this.setNewestRangeStartCell({\n rowIndex: newRange.startRow.rowIndex,\n rowPinned: newRange.startRow.rowPinned,\n column: newRange.columns[0]\n });\n }\n\n _this.cellRanges.push(newRange);\n });\n this.dispatchChangedEvent(false, true);\n };\n\n RangeService.prototype.setNewestRangeStartCell = function (position) {\n this.newestRangeStartCell = position;\n };\n\n RangeService.prototype.createCellRangeFromCellRangeParams = function (params) {\n var _this = this;\n\n var columns;\n var startsOnTheRight = false;\n\n if (params.columns) {\n columns = params.columns.map(function (c) {\n return _this.columnModel.getColumnWithValidation(c);\n }).filter(function (c) {\n return c;\n });\n } else {\n var columnStart = this.columnModel.getColumnWithValidation(params.columnStart);\n var columnEnd = this.columnModel.getColumnWithValidation(params.columnEnd);\n\n if (!columnStart || !columnEnd) {\n return;\n }\n\n columns = this.calculateColumnsBetween(columnStart, columnEnd);\n\n if (columns && columns.length) {\n startsOnTheRight = columns[0] !== columnStart;\n }\n }\n\n if (!columns) {\n return;\n }\n\n var startRow = params.rowStartIndex != null ? {\n rowIndex: params.rowStartIndex,\n rowPinned: params.rowStartPinned || null\n } : undefined;\n var endRow = params.rowEndIndex != null ? {\n rowIndex: params.rowEndIndex,\n rowPinned: params.rowEndPinned || null\n } : undefined;\n return {\n startRow: startRow,\n endRow: endRow,\n columns: columns,\n startColumn: startsOnTheRight ? _.last(columns) : columns[0]\n };\n };\n\n RangeService.prototype.addCellRange = function (params) {\n if (!this.gridOptionsWrapper.isEnableRangeSelection()) {\n return;\n }\n\n var newRange = this.createCellRangeFromCellRangeParams(params);\n\n if (newRange) {\n if (newRange.startRow) {\n this.setNewestRangeStartCell({\n rowIndex: newRange.startRow.rowIndex,\n rowPinned: newRange.startRow.rowPinned,\n column: newRange.startColumn\n });\n }\n\n this.cellRanges.push(newRange);\n this.dispatchChangedEvent(false, true, newRange.id);\n }\n };\n\n RangeService.prototype.getCellRanges = function () {\n return this.cellRanges;\n };\n\n RangeService.prototype.isEmpty = function () {\n return this.cellRanges.length === 0;\n };\n\n RangeService.prototype.isMoreThanOneCell = function () {\n var len = this.cellRanges.length;\n\n if (len === 0) {\n return false;\n }\n\n if (len > 1) {\n return true; // Assumes a cell range must contain at least one cell\n } // only one range, return true if range has more than one\n\n\n var range = this.cellRanges[0];\n var startRow = this.getRangeStartRow(range);\n var endRow = this.getRangeEndRow(range);\n return startRow.rowPinned !== endRow.rowPinned || startRow.rowIndex !== endRow.rowIndex || range.columns.length !== 1;\n };\n\n RangeService.prototype.areAllRangesAbleToMerge = function () {\n var e_1, _a;\n\n var _this = this;\n\n var rowToColumnMap = new Map();\n var len = this.cellRanges.length;\n if (len <= 1) return true;\n this.cellRanges.forEach(function (range) {\n var topRow = _this.getRangeStartRow(range);\n\n var bottomRow = _this.getRangeEndRow(range);\n\n var currentRow = topRow;\n\n var _loop_1 = function _loop_1() {\n var rowName = (currentRow.rowPinned || 'normal') + \"_\" + currentRow.rowIndex;\n var columns = rowToColumnMap.get(rowName);\n var currentRangeColIds = range.columns.map(function (col) {\n return col.getId();\n });\n\n if (columns) {\n var filteredColumns = currentRangeColIds.filter(function (col) {\n return columns.indexOf(col) === -1;\n });\n columns.push.apply(columns, __spread$2(filteredColumns));\n } else {\n rowToColumnMap.set(rowName, currentRangeColIds);\n }\n\n if (_this.rowPositionUtils.sameRow(currentRow, bottomRow)) {\n return \"break\";\n }\n\n currentRow = _this.cellNavigationService.getRowBelow(currentRow);\n };\n\n while (currentRow) {\n var state_1 = _loop_1();\n\n if (state_1 === \"break\") break;\n }\n });\n var columnsString;\n\n try {\n for (var _b = __values$2(rowToColumnMap.values()), _c = _b.next(); !_c.done; _c = _b.next()) {\n var val = _c.value;\n var currentValString = val.sort().join();\n\n if (columnsString === undefined) {\n columnsString = currentValString;\n continue;\n }\n\n if (columnsString !== currentValString) {\n return false;\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n return true;\n };\n\n RangeService.prototype.removeAllCellRanges = function (silent) {\n if (this.isEmpty()) {\n return;\n }\n\n this.onDragStop();\n this.cellRanges.length = 0;\n\n if (!silent) {\n this.dispatchChangedEvent(false, true);\n }\n }; // as the user is dragging outside of the panel, the div starts to scroll, which in turn\n // means we are selection more (or less) cells, but the mouse isn't moving, so we recalculate\n // the selection my mimicking a new mouse event\n\n\n RangeService.prototype.onBodyScroll = function () {\n if (this.dragging && this.lastMouseEvent) {\n this.onDragging(this.lastMouseEvent);\n }\n };\n\n RangeService.prototype.isCellInAnyRange = function (cell) {\n return this.getCellRangeCount(cell) > 0;\n };\n\n RangeService.prototype.isCellInSpecificRange = function (cell, range) {\n var columnInRange = range.columns !== null && _.includes(range.columns, cell.column);\n\n var rowInRange = this.isRowInRange(cell.rowIndex, cell.rowPinned, range);\n return columnInRange && rowInRange;\n };\n\n RangeService.prototype.isLastCellOfRange = function (cellRange, cell) {\n var startRow = cellRange.startRow,\n endRow = cellRange.endRow;\n var lastRow = this.rowPositionUtils.before(startRow, endRow) ? endRow : startRow;\n var isLastRow = cell.rowIndex === lastRow.rowIndex && cell.rowPinned === lastRow.rowPinned;\n var rangeFirstIndexColumn = cellRange.columns[0];\n\n var rangeLastIndexColumn = _.last(cellRange.columns);\n\n var lastRangeColumn = cellRange.startColumn === rangeFirstIndexColumn ? rangeLastIndexColumn : rangeFirstIndexColumn;\n var isLastColumn = cell.column === lastRangeColumn;\n return isLastColumn && isLastRow;\n };\n\n RangeService.prototype.isBottomRightCell = function (cellRange, cell) {\n var allColumns = this.columnModel.getAllDisplayedColumns();\n var allPositions = cellRange.columns.map(function (c) {\n return allColumns.indexOf(c);\n }).sort(function (a, b) {\n return a - b;\n });\n var startRow = cellRange.startRow,\n endRow = cellRange.endRow;\n var lastRow = this.rowPositionUtils.before(startRow, endRow) ? endRow : startRow;\n\n var isRightColumn = allColumns.indexOf(cell.column) === _.last(allPositions);\n\n var isLastRow = cell.rowIndex === lastRow.rowIndex && _.makeNull(cell.rowPinned) === _.makeNull(lastRow.rowPinned);\n\n return isRightColumn && isLastRow;\n }; // returns the number of ranges this cell is in\n\n\n RangeService.prototype.getCellRangeCount = function (cell) {\n var _this = this;\n\n if (this.isEmpty()) {\n return 0;\n }\n\n return this.cellRanges.filter(function (cellRange) {\n return _this.isCellInSpecificRange(cell, cellRange);\n }).length;\n };\n\n RangeService.prototype.isRowInRange = function (rowIndex, floating, cellRange) {\n var firstRow = this.getRangeStartRow(cellRange);\n var lastRow = this.getRangeEndRow(cellRange);\n var thisRow = {\n rowIndex: rowIndex,\n rowPinned: floating || null\n }; // compare rowPinned with == instead of === because it can be `null` or `undefined`\n\n var equalsFirstRow = thisRow.rowIndex === firstRow.rowIndex && thisRow.rowPinned == firstRow.rowPinned;\n var equalsLastRow = thisRow.rowIndex === lastRow.rowIndex && thisRow.rowPinned == lastRow.rowPinned;\n\n if (equalsFirstRow || equalsLastRow) {\n return true;\n }\n\n var afterFirstRow = !this.rowPositionUtils.before(thisRow, firstRow);\n var beforeLastRow = this.rowPositionUtils.before(thisRow, lastRow);\n return afterFirstRow && beforeLastRow;\n };\n\n RangeService.prototype.getDraggingRange = function () {\n return this.draggingRange;\n };\n\n RangeService.prototype.onDragStart = function (mouseEvent) {\n if (!this.gridOptionsWrapper.isEnableRangeSelection()) {\n return;\n }\n\n var ctrlKey = mouseEvent.ctrlKey,\n metaKey = mouseEvent.metaKey,\n shiftKey = mouseEvent.shiftKey; // ctrlKey for windows, metaKey for Apple\n\n var multiKeyPressed = ctrlKey || metaKey;\n var allowMulti = !this.gridOptionsWrapper.isSuppressMultiRangeSelection();\n var multiSelectKeyPressed = allowMulti ? multiKeyPressed : false;\n\n var extendRange = shiftKey && _.existsAndNotEmpty(this.cellRanges);\n\n if (!multiSelectKeyPressed && (!extendRange || _.exists(_.last(this.cellRanges).type))) {\n this.removeAllCellRanges(true);\n } // The DragService used by this service (RangeService), automatically adds a `mousemove`\n // listener the document of the page that will then call `onDragging`. If you are in a shadow DOM\n // DOM elements outside your component's wrapper will be inaccessible to you, so here, we add a \n // temporary `mousemove` listener to the gridPanel to be able to update the last hovered cell.\n\n\n this.cellHoverListener = this.addManagedListener(this.ctrlsService.getGridCtrl().getGui(), 'mousemove', this.updateValuesOnMove.bind(this)); // This is the mouse start event, so we need to call `updateValuesOnMove` \n // manually once to get the necessary variables initiated.\n\n this.updateValuesOnMove(mouseEvent);\n\n if (!this.lastCellHovered) {\n return;\n }\n\n this.dragging = true;\n this.lastMouseEvent = mouseEvent;\n this.intersectionRange = multiSelectKeyPressed && this.getCellRangeCount(this.lastCellHovered) > 1;\n\n if (!extendRange) {\n this.setNewestRangeStartCell(this.lastCellHovered);\n } // if we didn't clear the ranges, then dragging means the user clicked, and when the\n // user clicks it means a range of one cell was created. we need to extend this range\n // rather than creating another range. otherwise we end up with two distinct ranges\n // from a drag operation (one from click, and one from drag).\n\n\n if (this.cellRanges.length > 0) {\n this.draggingRange = _.last(this.cellRanges);\n } else {\n var mouseRowPosition = {\n rowIndex: this.lastCellHovered.rowIndex,\n rowPinned: this.lastCellHovered.rowPinned\n };\n this.draggingRange = {\n startRow: mouseRowPosition,\n endRow: mouseRowPosition,\n columns: [this.lastCellHovered.column],\n startColumn: this.newestRangeStartCell.column\n };\n this.cellRanges.push(this.draggingRange);\n }\n\n this.ctrlsService.getGridBodyCtrl().addScrollEventListener(this.bodyScrollListener);\n this.dispatchChangedEvent(true, false, this.draggingRange.id);\n };\n\n RangeService.prototype.intersectLastRange = function (fromMouseClick) {\n var _this = this; // when ranges are created due to a mouse click without drag (happens in cellMouseListener)\n // this method will be called with `fromMouseClick=true`.\n\n\n if (fromMouseClick && this.dragging) {\n return;\n }\n\n if (this.gridOptionsWrapper.isSuppressMultiRangeSelection()) {\n return;\n }\n\n if (this.isEmpty()) {\n return;\n }\n\n var lastRange = _.last(this.cellRanges);\n\n var intersectionStartRow = this.getRangeStartRow(lastRange);\n var intersectionEndRow = this.getRangeEndRow(lastRange);\n var newRanges = [];\n this.cellRanges.slice(0, -1).forEach(function (range) {\n var startRow = _this.getRangeStartRow(range);\n\n var endRow = _this.getRangeEndRow(range);\n\n var cols = range.columns;\n var intersectCols = cols.filter(function (col) {\n return lastRange.columns.indexOf(col) === -1;\n });\n\n if (intersectCols.length === cols.length) {\n // No overlapping columns, retain previous range\n newRanges.push(range);\n return;\n }\n\n if (_this.rowPositionUtils.before(intersectionEndRow, startRow) || _this.rowPositionUtils.before(endRow, intersectionStartRow)) {\n // No overlapping rows, retain previous range\n newRanges.push(range);\n return;\n }\n\n var rangeCountBefore = newRanges.length; // Top\n\n if (_this.rowPositionUtils.before(startRow, intersectionStartRow)) {\n var top_1 = {\n columns: __spread$2(cols),\n startColumn: lastRange.startColumn,\n startRow: __assign$7({}, startRow),\n endRow: _this.cellNavigationService.getRowAbove(intersectionStartRow)\n };\n newRanges.push(top_1);\n } // Left & Right (not contiguous with columns)\n\n\n if (intersectCols.length > 0) {\n var middle = {\n columns: intersectCols,\n startColumn: _.includes(intersectCols, lastRange.startColumn) ? lastRange.startColumn : intersectCols[0],\n startRow: _this.rowPositionUtils.rowMax([__assign$7({}, intersectionStartRow), __assign$7({}, startRow)]),\n endRow: _this.rowPositionUtils.rowMin([__assign$7({}, intersectionEndRow), __assign$7({}, endRow)])\n };\n newRanges.push(middle);\n } // Bottom\n\n\n if (_this.rowPositionUtils.before(intersectionEndRow, endRow)) {\n newRanges.push({\n columns: __spread$2(cols),\n startColumn: lastRange.startColumn,\n startRow: _this.cellNavigationService.getRowBelow(intersectionEndRow),\n endRow: __assign$7({}, endRow)\n });\n }\n\n if (newRanges.length - rangeCountBefore === 1) {\n // Only one range result from the intersection.\n // Copy the source range's id, since essentially we just reduced it's size\n newRanges[newRanges.length - 1].id = range.id;\n }\n });\n this.cellRanges = newRanges; // when this is called because of a clickEvent and the ranges were changed\n // we need to force a dragEnd event to update the UI.\n\n if (fromMouseClick) {\n this.dispatchChangedEvent(false, true);\n }\n };\n\n RangeService.prototype.updateValuesOnMove = function (mouseEvent) {\n var cell = this.mouseEventService.getCellPositionForEvent(mouseEvent);\n this.cellHasChanged = false;\n\n if (!cell || this.lastCellHovered && this.cellPositionUtils.equals(cell, this.lastCellHovered)) {\n return;\n }\n\n if (this.lastCellHovered) {\n this.cellHasChanged = true;\n }\n\n this.lastCellHovered = cell;\n };\n\n RangeService.prototype.onDragging = function (mouseEvent) {\n var _this = this;\n\n if (!this.dragging || !mouseEvent) {\n return;\n }\n\n this.lastMouseEvent = mouseEvent;\n var cellPosition = this.lastCellHovered;\n\n var isMouseAndStartInPinned = function isMouseAndStartInPinned(position) {\n return cellPosition && cellPosition.rowPinned === position && _this.newestRangeStartCell.rowPinned === position;\n };\n\n var skipVerticalScroll = isMouseAndStartInPinned('top') || isMouseAndStartInPinned('bottom');\n this.autoScrollService.check(mouseEvent, skipVerticalScroll);\n\n if (!this.cellHasChanged) {\n return;\n }\n\n var columns = this.calculateColumnsBetween(this.newestRangeStartCell.column, cellPosition.column);\n\n if (!columns) {\n return;\n }\n\n this.draggingRange.endRow = {\n rowIndex: cellPosition.rowIndex,\n rowPinned: cellPosition.rowPinned\n };\n this.draggingRange.columns = columns;\n this.dispatchChangedEvent(false, false, this.draggingRange.id);\n };\n\n RangeService.prototype.onDragStop = function () {\n if (this.cellHoverListener) {\n this.cellHoverListener();\n this.cellHoverListener = undefined;\n }\n\n if (!this.dragging) {\n return;\n }\n\n var id = this.draggingRange.id;\n this.autoScrollService.ensureCleared();\n this.ctrlsService.getGridBodyCtrl().removeScrollEventListener(this.bodyScrollListener);\n this.lastMouseEvent = null;\n this.dragging = false;\n this.draggingRange = undefined;\n this.lastCellHovered = undefined;\n\n if (this.intersectionRange) {\n this.intersectionRange = false;\n this.intersectLastRange();\n }\n\n this.dispatchChangedEvent(false, true, id);\n };\n\n RangeService.prototype.dispatchChangedEvent = function (started, finished, id) {\n var event = Object.freeze({\n type: Events.EVENT_RANGE_SELECTION_CHANGED,\n started: started,\n finished: finished,\n id: id\n });\n this.eventService.dispatchEvent(event);\n };\n\n RangeService.prototype.calculateColumnsBetween = function (columnFrom, columnTo) {\n var allColumns = this.columnModel.getAllDisplayedColumns();\n var isSameColumn = columnFrom === columnTo;\n var fromIndex = allColumns.indexOf(columnFrom);\n\n if (fromIndex < 0) {\n console.warn(\"AG Grid: column \" + columnFrom.getId() + \" is not visible\");\n return;\n }\n\n var toIndex = isSameColumn ? fromIndex : allColumns.indexOf(columnTo);\n\n if (toIndex < 0) {\n console.warn(\"AG Grid: column \" + columnTo.getId() + \" is not visible\");\n return;\n }\n\n if (isSameColumn) {\n return [columnFrom];\n }\n\n var firstIndex = Math.min(fromIndex, toIndex);\n var lastIndex = firstIndex === fromIndex ? toIndex : fromIndex;\n var columns = [];\n\n for (var i = firstIndex; i <= lastIndex; i++) {\n columns.push(allColumns[i]);\n }\n\n return columns;\n };\n\n __decorate$E([Autowired('rowModel')], RangeService.prototype, \"rowModel\", void 0);\n\n __decorate$E([Autowired('columnModel')], RangeService.prototype, \"columnModel\", void 0);\n\n __decorate$E([Autowired('mouseEventService')], RangeService.prototype, \"mouseEventService\", void 0);\n\n __decorate$E([Autowired('cellNavigationService')], RangeService.prototype, \"cellNavigationService\", void 0);\n\n __decorate$E([Autowired(\"pinnedRowModel\")], RangeService.prototype, \"pinnedRowModel\", void 0);\n\n __decorate$E([Autowired('rowPositionUtils')], RangeService.prototype, \"rowPositionUtils\", void 0);\n\n __decorate$E([Autowired('cellPositionUtils')], RangeService.prototype, \"cellPositionUtils\", void 0);\n\n __decorate$E([Autowired('ctrlsService')], RangeService.prototype, \"ctrlsService\", void 0);\n\n __decorate$E([PostConstruct], RangeService.prototype, \"init\", null);\n\n RangeService = __decorate$E([Bean('rangeService')], RangeService);\n return RangeService;\n}(BeanStub);\n\nvar __extends$X = undefined && undefined.__extends || function () {\n var _extendStatics161 = function extendStatics(d, b) {\n _extendStatics161 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics161(d, b);\n };\n\n return function (d, b) {\n _extendStatics161(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AbstractSelectionHandle =\n/** @class */\nfunction (_super) {\n __extends$X(AbstractSelectionHandle, _super);\n\n function AbstractSelectionHandle() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.changedCalculatedValues = false;\n _this.dragging = false;\n _this.shouldDestroyOnEndDragging = false;\n return _this;\n }\n\n AbstractSelectionHandle.prototype.init = function () {\n var _this = this;\n\n this.dragService.addDragSource({\n dragStartPixels: 0,\n eElement: this.getGui(),\n onDragStart: this.onDragStart.bind(this),\n onDragging: function onDragging(e) {\n _this.dragging = true;\n\n _this.rangeService.autoScrollService.check(e);\n\n if (_this.changedCalculatedValues) {\n _this.onDrag(e);\n\n _this.changedCalculatedValues = false;\n }\n },\n onDragStop: function onDragStop(e) {\n _this.dragging = false;\n\n _this.onDragEnd(e);\n\n _this.clearValues();\n\n _this.rangeService.autoScrollService.ensureCleared(); // TODO: this causes a bug where if there are multiple grids in the same page, all of them will\n // be affected by a drag on any. Move it to the root element.\n\n\n document.body.classList.remove(_this.getDraggingCssClass());\n\n if (_this.shouldDestroyOnEndDragging) {\n _this.destroy();\n }\n }\n });\n this.addManagedListener(this.getGui(), 'mousedown', this.preventRangeExtension.bind(this));\n };\n\n AbstractSelectionHandle.prototype.isDragging = function () {\n return this.dragging;\n };\n\n AbstractSelectionHandle.prototype.getCellCtrl = function () {\n return this.cellCtrl;\n };\n\n AbstractSelectionHandle.prototype.setCellCtrl = function (cellComp) {\n this.cellCtrl = cellComp;\n };\n\n AbstractSelectionHandle.prototype.getCellRange = function () {\n return this.cellRange;\n };\n\n AbstractSelectionHandle.prototype.setCellRange = function (range) {\n this.cellRange = range;\n };\n\n AbstractSelectionHandle.prototype.getRangeStartRow = function () {\n return this.rangeStartRow;\n };\n\n AbstractSelectionHandle.prototype.setRangeStartRow = function (row) {\n this.rangeStartRow = row;\n };\n\n AbstractSelectionHandle.prototype.getRangeEndRow = function () {\n return this.rangeEndRow;\n };\n\n AbstractSelectionHandle.prototype.setRangeEndRow = function (row) {\n this.rangeEndRow = row;\n };\n\n AbstractSelectionHandle.prototype.getLastCellHovered = function () {\n return this.lastCellHovered;\n };\n\n AbstractSelectionHandle.prototype.preventRangeExtension = function (e) {\n e.preventDefault();\n e.stopPropagation();\n };\n\n AbstractSelectionHandle.prototype.onDragStart = function (e) {\n this.cellHoverListener = this.addManagedListener(this.ctrlsService.getGridCtrl().getGui(), 'mousemove', this.updateValuesOnMove.bind(this));\n document.body.classList.add(this.getDraggingCssClass());\n };\n\n AbstractSelectionHandle.prototype.getDraggingCssClass = function () {\n return \"ag-dragging-\" + (this.type === SelectionHandleType.FILL ? 'fill' : 'range') + \"-handle\";\n };\n\n AbstractSelectionHandle.prototype.updateValuesOnMove = function (e) {\n var cell = this.mouseEventService.getCellPositionForEvent(e);\n\n if (!cell || this.lastCellHovered && this.cellPositionUtils.equals(cell, this.lastCellHovered)) {\n return;\n }\n\n this.lastCellHovered = cell;\n this.changedCalculatedValues = true;\n };\n\n AbstractSelectionHandle.prototype.getType = function () {\n return this.type;\n };\n\n AbstractSelectionHandle.prototype.refresh = function (cellCtrl) {\n var oldCellComp = this.getCellCtrl();\n var eGui = this.getGui();\n\n var cellRange = _.last(this.rangeService.getCellRanges());\n\n var start = cellRange.startRow;\n var end = cellRange.endRow;\n\n if (start && end) {\n var isBefore = this.rowPositionUtils.before(end, start);\n\n if (isBefore) {\n this.setRangeStartRow(end);\n this.setRangeEndRow(start);\n } else {\n this.setRangeStartRow(start);\n this.setRangeEndRow(end);\n }\n }\n\n if (oldCellComp !== cellCtrl || !_.isVisible(eGui)) {\n this.setCellCtrl(cellCtrl);\n var eParentOfValue = cellCtrl.getComp().getParentOfValue();\n\n if (eParentOfValue) {\n eParentOfValue.appendChild(eGui);\n }\n }\n\n this.setCellRange(cellRange);\n };\n\n AbstractSelectionHandle.prototype.clearValues = function () {\n this.lastCellHovered = undefined;\n this.removeListeners();\n };\n\n AbstractSelectionHandle.prototype.removeListeners = function () {\n if (this.cellHoverListener) {\n this.cellHoverListener();\n this.cellHoverListener = undefined;\n }\n };\n\n AbstractSelectionHandle.prototype.destroy = function () {\n if (!this.shouldDestroyOnEndDragging && this.isDragging()) {\n _.setDisplayed(this.getGui(), false);\n\n this.shouldDestroyOnEndDragging = true;\n return;\n }\n\n this.shouldDestroyOnEndDragging = false;\n\n _super.prototype.destroy.call(this);\n\n this.removeListeners();\n var eGui = this.getGui();\n\n if (eGui.parentElement) {\n eGui.parentElement.removeChild(eGui);\n }\n };\n\n __decorate$D([Autowired(\"rowRenderer\")], AbstractSelectionHandle.prototype, \"rowRenderer\", void 0);\n\n __decorate$D([Autowired(\"dragService\")], AbstractSelectionHandle.prototype, \"dragService\", void 0);\n\n __decorate$D([Autowired(\"rangeService\")], AbstractSelectionHandle.prototype, \"rangeService\", void 0);\n\n __decorate$D([Autowired(\"mouseEventService\")], AbstractSelectionHandle.prototype, \"mouseEventService\", void 0);\n\n __decorate$D([Autowired(\"columnModel\")], AbstractSelectionHandle.prototype, \"columnModel\", void 0);\n\n __decorate$D([Autowired(\"cellNavigationService\")], AbstractSelectionHandle.prototype, \"cellNavigationService\", void 0);\n\n __decorate$D([Autowired(\"navigationService\")], AbstractSelectionHandle.prototype, \"navigationService\", void 0);\n\n __decorate$D([Autowired('rowPositionUtils')], AbstractSelectionHandle.prototype, \"rowPositionUtils\", void 0);\n\n __decorate$D([Autowired('cellPositionUtils')], AbstractSelectionHandle.prototype, \"cellPositionUtils\", void 0);\n\n __decorate$D([Autowired('ctrlsService')], AbstractSelectionHandle.prototype, \"ctrlsService\", void 0);\n\n __decorate$D([PostConstruct], AbstractSelectionHandle.prototype, \"init\", null);\n\n return AbstractSelectionHandle;\n}(Component);\n\nvar __extends$W = undefined && undefined.__extends || function () {\n var _extendStatics162 = function extendStatics(d, b) {\n _extendStatics162 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics162(d, b);\n };\n\n return function (d, b) {\n _extendStatics162(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$6 = undefined && undefined.__assign || function () {\n __assign$6 = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$6.apply(this, arguments);\n};\n\nvar __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __read$7 = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread$1 = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$7(arguments[i]));\n }\n\n return ar;\n};\n\nvar FillHandle =\n/** @class */\nfunction (_super) {\n __extends$W(FillHandle, _super);\n\n function FillHandle() {\n var _this = _super.call(this, FillHandle.TEMPLATE) || this;\n\n _this.markedCells = [];\n _this.cellValues = [];\n _this.isUp = false;\n _this.isLeft = false;\n _this.isReduce = false;\n _this.type = SelectionHandleType.FILL;\n return _this;\n }\n\n FillHandle.prototype.updateValuesOnMove = function (e) {\n _super.prototype.updateValuesOnMove.call(this, e);\n\n if (!this.initialXY) {\n this.initialXY = this.mouseEventService.getNormalisedPosition(e);\n }\n\n var _a = this.initialXY,\n x = _a.x,\n y = _a.y;\n\n var _b = this.mouseEventService.getNormalisedPosition(e),\n newX = _b.x,\n newY = _b.y;\n\n var diffX = Math.abs(x - newX);\n var diffY = Math.abs(y - newY);\n var allowedDirection = this.gridOptionsWrapper.getFillHandleDirection();\n var direction;\n\n if (allowedDirection === 'xy') {\n direction = diffX > diffY ? 'x' : 'y';\n } else {\n direction = allowedDirection;\n }\n\n if (direction !== this.dragAxis) {\n this.dragAxis = direction;\n this.changedCalculatedValues = true;\n }\n };\n\n FillHandle.prototype.onDrag = function (e) {\n if (!this.initialPosition) {\n var cellCtrl = this.getCellCtrl();\n\n if (!cellCtrl) {\n return;\n }\n\n this.initialPosition = cellCtrl.getCellPosition();\n }\n\n var lastCellHovered = this.getLastCellHovered();\n\n if (lastCellHovered) {\n this.markPathFrom(this.initialPosition, lastCellHovered);\n }\n };\n\n FillHandle.prototype.onDragEnd = function (e) {\n this.initialXY = null;\n\n if (!this.markedCells.length) {\n return;\n }\n\n var isX = this.dragAxis === 'x';\n var initialRange = this.getCellRange();\n var colLen = initialRange.columns.length;\n var rangeStartRow = this.getRangeStartRow();\n var rangeEndRow = this.getRangeEndRow();\n var finalRange;\n\n if (!this.isUp && !this.isLeft) {\n finalRange = this.rangeService.createCellRangeFromCellRangeParams({\n rowStartIndex: rangeStartRow.rowIndex,\n rowStartPinned: rangeStartRow.rowPinned,\n columnStart: initialRange.columns[0],\n rowEndIndex: isX ? rangeEndRow.rowIndex : this.lastCellMarked.rowIndex,\n rowEndPinned: isX ? rangeEndRow.rowPinned : this.lastCellMarked.rowPinned,\n columnEnd: isX ? this.lastCellMarked.column : initialRange.columns[colLen - 1]\n });\n } else {\n var startRow = isX ? rangeStartRow : this.lastCellMarked;\n finalRange = this.rangeService.createCellRangeFromCellRangeParams({\n rowStartIndex: startRow.rowIndex,\n rowStartPinned: startRow.rowPinned,\n columnStart: isX ? this.lastCellMarked.column : initialRange.columns[0],\n rowEndIndex: rangeEndRow.rowIndex,\n rowEndPinned: rangeEndRow.rowPinned,\n columnEnd: initialRange.columns[colLen - 1]\n });\n }\n\n if (finalRange) {\n // raising fill events for undo / redo\n this.raiseFillStartEvent();\n this.handleValueChanged(initialRange, finalRange, e);\n this.rangeService.setCellRanges([finalRange]);\n this.raiseFillEndEvent(initialRange, finalRange);\n }\n };\n\n FillHandle.prototype.raiseFillStartEvent = function () {\n var fillStartEvent = {\n type: Events.EVENT_FILL_START\n };\n this.eventService.dispatchEvent(fillStartEvent);\n };\n\n FillHandle.prototype.raiseFillEndEvent = function (initialRange, finalRange) {\n var fillEndEvent = {\n type: Events.EVENT_FILL_END,\n initialRange: initialRange,\n finalRange: finalRange\n };\n this.eventService.dispatchEvent(fillEndEvent);\n };\n\n FillHandle.prototype.handleValueChanged = function (initialRange, finalRange, e) {\n var _this = this;\n\n var initialRangeEndRow = this.rangeService.getRangeEndRow(initialRange);\n var initialRangeStartRow = this.rangeService.getRangeStartRow(initialRange);\n var finalRangeEndRow = this.rangeService.getRangeEndRow(finalRange);\n var finalRangeStartRow = this.rangeService.getRangeStartRow(finalRange);\n var isVertical = this.dragAxis === 'y'; // if the range is being reduced in size, all we need to do is\n // clear the cells that are no longer part of the range\n\n if (this.isReduce && !this.gridOptionsWrapper.isSuppressClearOnFillReduction()) {\n var columns = isVertical ? initialRange.columns : initialRange.columns.filter(function (col) {\n return finalRange.columns.indexOf(col) < 0;\n });\n var startRow = isVertical ? this.cellNavigationService.getRowBelow(finalRangeEndRow) : finalRangeStartRow;\n\n if (startRow) {\n this.clearCellsInRange(startRow, initialRangeEndRow, columns);\n }\n\n return;\n }\n\n var withinInitialRange = true;\n var values = [];\n var initialValues = [];\n var idx = 0;\n\n var resetValues = function resetValues() {\n values.length = 0;\n initialValues.length = 0;\n idx = 0;\n };\n\n var iterateAcrossCells = function iterateAcrossCells(column, columns) {\n var currentRow = _this.isUp ? initialRangeEndRow : initialRangeStartRow;\n var finished = false;\n\n if (isVertical) {\n withinInitialRange = true;\n resetValues();\n }\n\n var _loop_1 = function _loop_1() {\n var rowNode = _this.rowPositionUtils.getRowNode(currentRow);\n\n if (!rowNode) {\n return \"break\";\n }\n\n if (isVertical && column) {\n fillValues(values, column, rowNode, function () {\n return !_this.rowPositionUtils.sameRow(currentRow, _this.isUp ? initialRangeStartRow : initialRangeEndRow);\n });\n } else if (columns) {\n withinInitialRange = true;\n resetValues();\n columns.forEach(function (col) {\n return fillValues(values, col, rowNode, function () {\n return col !== (_this.isLeft ? initialRange.columns[0] : _.last(initialRange.columns));\n });\n });\n }\n\n finished = _this.rowPositionUtils.sameRow(currentRow, _this.isUp ? finalRangeStartRow : finalRangeEndRow);\n currentRow = _this.isUp ? _this.cellNavigationService.getRowAbove(currentRow) : _this.cellNavigationService.getRowBelow(currentRow);\n };\n\n while (!finished && currentRow) {\n var state_1 = _loop_1();\n\n if (state_1 === \"break\") break;\n }\n };\n\n var fillValues = function fillValues(currentValues, col, rowNode, updateInitialSet) {\n var currentValue;\n var skipValue = false;\n\n if (withinInitialRange) {\n currentValue = _this.valueService.getValue(col, rowNode);\n initialValues.push(currentValue);\n withinInitialRange = updateInitialSet();\n } else {\n var _a = _this.processValues(e, currentValues, initialValues, col, rowNode, idx++),\n value = _a.value,\n fromUserFunction = _a.fromUserFunction;\n\n currentValue = value;\n\n if (col.isCellEditable(rowNode)) {\n var cellValue = _this.valueService.getValue(col, rowNode);\n\n if (!fromUserFunction || cellValue !== currentValue) {\n rowNode.setDataValue(col, currentValue);\n } else {\n skipValue = true;\n }\n }\n }\n\n if (!skipValue) {\n currentValues.push(currentValue);\n }\n };\n\n if (isVertical) {\n initialRange.columns.forEach(function (col) {\n iterateAcrossCells(col);\n });\n } else {\n var columns = this.isLeft ? __spread$1(finalRange.columns).reverse() : finalRange.columns;\n iterateAcrossCells(undefined, columns);\n }\n };\n\n FillHandle.prototype.clearCellsInRange = function (startRow, endRow, columns) {\n var currentRow = startRow;\n var finished = false;\n\n var _loop_2 = function _loop_2() {\n var rowNode = this_1.rowPositionUtils.getRowNode(currentRow); // should never happen, defensive programming\n\n if (!rowNode) {\n return \"break\";\n }\n\n columns.forEach(function (col) {\n if (col.isCellEditable(rowNode)) {\n rowNode.setDataValue(col, null);\n }\n });\n finished = this_1.rowPositionUtils.sameRow(currentRow, endRow);\n currentRow = this_1.cellNavigationService.getRowBelow(currentRow);\n };\n\n var this_1 = this;\n\n while (!finished && currentRow) {\n var state_2 = _loop_2();\n\n if (state_2 === \"break\") break;\n }\n };\n\n FillHandle.prototype.processValues = function (event, values, initialValues, col, rowNode, idx) {\n var userFillOperation = this.gridOptionsWrapper.getFillOperation();\n var isVertical = this.dragAxis === 'y';\n var direction;\n\n if (isVertical) {\n direction = this.isUp ? 'up' : 'down';\n } else {\n direction = this.isLeft ? 'left' : 'right';\n }\n\n if (userFillOperation) {\n var params = {\n event: event,\n values: values,\n initialValues: initialValues,\n currentIndex: idx,\n currentCellValue: this.valueService.getValue(col, rowNode),\n direction: direction,\n column: col,\n rowNode: rowNode\n };\n var userResult = userFillOperation(params);\n\n if (userResult !== false) {\n return {\n value: userResult,\n fromUserFunction: true\n };\n }\n }\n\n var allNumbers = !values.some(function (val) {\n var asFloat = parseFloat(val);\n return isNaN(asFloat) || asFloat.toString() !== val.toString();\n }); // values should be copied in order if the alt key is pressed\n // or if the values contain strings and numbers\n // However, if we only have one initial value selected, and that\n // value is a number and we are also pressing alt, then we should\n // increment or decrement the value by 1 based on direction.\n\n if (event.altKey || !allNumbers) {\n if (allNumbers && initialValues.length === 1) {\n var multiplier = this.isUp || this.isLeft ? -1 : 1;\n return {\n value: parseFloat(_.last(values)) + 1 * multiplier,\n fromUserFunction: false\n };\n }\n\n return {\n value: values[idx % values.length],\n fromUserFunction: false\n };\n }\n\n return {\n value: _.last(_.findLineByLeastSquares(values.map(Number))),\n fromUserFunction: false\n };\n };\n\n FillHandle.prototype.clearValues = function () {\n this.clearMarkedPath();\n this.clearCellValues();\n this.lastCellMarked = undefined;\n\n _super.prototype.clearValues.call(this);\n };\n\n FillHandle.prototype.clearMarkedPath = function () {\n this.markedCells.forEach(function (cell) {\n if (!cell.isAlive()) {\n return;\n }\n\n var comp = cell.getComp();\n comp.addOrRemoveCssClass('ag-selection-fill-top', false);\n comp.addOrRemoveCssClass('ag-selection-fill-right', false);\n comp.addOrRemoveCssClass('ag-selection-fill-bottom', false);\n comp.addOrRemoveCssClass('ag-selection-fill-left', false);\n });\n this.markedCells.length = 0;\n this.isUp = false;\n this.isLeft = false;\n this.isReduce = false;\n };\n\n FillHandle.prototype.clearCellValues = function () {\n this.cellValues.length = 0;\n };\n\n FillHandle.prototype.markPathFrom = function (initialPosition, currentPosition) {\n this.clearMarkedPath();\n this.clearCellValues();\n\n if (this.dragAxis === 'y') {\n if (this.rowPositionUtils.sameRow(currentPosition, initialPosition)) {\n return;\n }\n\n var isBefore = this.rowPositionUtils.before(currentPosition, initialPosition);\n var rangeStartRow = this.getRangeStartRow();\n var rangeEndRow = this.getRangeEndRow();\n\n if (isBefore && (currentPosition.rowPinned == rangeStartRow.rowPinned && currentPosition.rowIndex >= rangeStartRow.rowIndex || rangeStartRow.rowPinned != rangeEndRow.rowPinned && currentPosition.rowPinned == rangeEndRow.rowPinned && currentPosition.rowIndex <= rangeEndRow.rowIndex)) {\n this.reduceVertical(initialPosition, currentPosition);\n this.isReduce = true;\n } else {\n this.extendVertical(initialPosition, currentPosition, isBefore);\n this.isReduce = false;\n }\n } else {\n var initialColumn = initialPosition.column;\n var currentColumn = currentPosition.column;\n\n if (initialColumn === currentColumn) {\n return;\n }\n\n var displayedColumns = this.columnModel.getAllDisplayedColumns();\n var initialIndex = displayedColumns.indexOf(initialColumn);\n var currentIndex = displayedColumns.indexOf(currentColumn);\n\n if (currentIndex <= initialIndex && currentIndex >= displayedColumns.indexOf(this.getCellRange().columns[0])) {\n this.reduceHorizontal(initialPosition, currentPosition);\n this.isReduce = true;\n } else {\n this.extendHorizontal(initialPosition, currentPosition, currentIndex < initialIndex);\n this.isReduce = false;\n }\n }\n\n this.lastCellMarked = currentPosition;\n };\n\n FillHandle.prototype.extendVertical = function (initialPosition, endPosition, isMovingUp) {\n var _a = this,\n navigationService = _a.navigationService,\n rangeService = _a.rangeService;\n\n var row = initialPosition;\n\n do {\n var cellRange = this.getCellRange();\n var colLen = cellRange.columns.length;\n\n for (var i = 0; i < colLen; i++) {\n var column = cellRange.columns[i];\n var rowPos = {\n rowIndex: row.rowIndex,\n rowPinned: row.rowPinned\n };\n\n var cellPos = __assign$6(__assign$6({}, rowPos), {\n column: column\n });\n\n var cellInRange = rangeService.isCellInSpecificRange(cellPos, cellRange);\n var isInitialRow = this.rowPositionUtils.sameRow(row, initialPosition);\n\n if (isMovingUp) {\n this.isUp = true;\n }\n\n if (!isInitialRow) {\n var cell = navigationService.getCellByPosition(cellPos);\n\n if (cell) {\n this.markedCells.push(cell);\n var cellCtrl = cell.getComp();\n\n if (!cellInRange) {\n cellCtrl.addOrRemoveCssClass('ag-selection-fill-left', i === 0);\n cellCtrl.addOrRemoveCssClass('ag-selection-fill-right', i === colLen - 1);\n }\n\n cellCtrl.addOrRemoveCssClass(isMovingUp ? 'ag-selection-fill-top' : 'ag-selection-fill-bottom', this.rowPositionUtils.sameRow(row, endPosition));\n }\n }\n }\n\n if (this.rowPositionUtils.sameRow(row, endPosition)) {\n break;\n }\n } while ( // tslint:disable-next-line\n row = isMovingUp ? this.cellNavigationService.getRowAbove(row) : this.cellNavigationService.getRowBelow(row));\n };\n\n FillHandle.prototype.reduceVertical = function (initialPosition, endPosition) {\n var row = initialPosition;\n\n do {\n var cellRange = this.getCellRange();\n var colLen = cellRange.columns.length;\n var isLastRow = this.rowPositionUtils.sameRow(row, endPosition);\n\n for (var i = 0; i < colLen; i++) {\n var rowPos = {\n rowIndex: row.rowIndex,\n rowPinned: row.rowPinned\n };\n\n var celPos = __assign$6(__assign$6({}, rowPos), {\n column: cellRange.columns[i]\n });\n\n var cell = this.navigationService.getCellByPosition(celPos);\n\n if (cell) {\n this.markedCells.push(cell);\n var cellComp = cell.getComp();\n cellComp.addOrRemoveCssClass('ag-selection-fill-bottom', this.rowPositionUtils.sameRow(row, endPosition));\n }\n }\n\n if (isLastRow) {\n break;\n } // tslint:disable-next-line\n\n } while (row = this.cellNavigationService.getRowAbove(row));\n };\n\n FillHandle.prototype.extendHorizontal = function (initialPosition, endPosition, isMovingLeft) {\n var _this = this;\n\n var allCols = this.columnModel.getAllDisplayedColumns();\n var startCol = allCols.indexOf(isMovingLeft ? endPosition.column : initialPosition.column);\n var endCol = allCols.indexOf(isMovingLeft ? this.getCellRange().columns[0] : endPosition.column);\n var offset = isMovingLeft ? 0 : 1;\n var colsToMark = allCols.slice(startCol + offset, endCol + offset);\n var rangeStartRow = this.getRangeStartRow();\n var rangeEndRow = this.getRangeEndRow();\n colsToMark.forEach(function (column) {\n var row = rangeStartRow;\n var isLastRow = false;\n\n do {\n isLastRow = _this.rowPositionUtils.sameRow(row, rangeEndRow);\n\n var cell = _this.navigationService.getCellByPosition({\n rowIndex: row.rowIndex,\n rowPinned: row.rowPinned,\n column: column\n });\n\n if (cell) {\n _this.markedCells.push(cell);\n\n var cellComp = cell.getComp();\n cellComp.addOrRemoveCssClass('ag-selection-fill-top', _this.rowPositionUtils.sameRow(row, rangeStartRow));\n cellComp.addOrRemoveCssClass('ag-selection-fill-bottom', _this.rowPositionUtils.sameRow(row, rangeEndRow));\n\n if (isMovingLeft) {\n _this.isLeft = true;\n cellComp.addOrRemoveCssClass('ag-selection-fill-left', column === colsToMark[0]);\n } else {\n cellComp.addOrRemoveCssClass('ag-selection-fill-right', column === _.last(colsToMark));\n }\n }\n\n row = _this.cellNavigationService.getRowBelow(row);\n } while (!isLastRow);\n });\n };\n\n FillHandle.prototype.reduceHorizontal = function (initialPosition, endPosition) {\n var _this = this;\n\n var allCols = this.columnModel.getAllDisplayedColumns();\n var startCol = allCols.indexOf(endPosition.column);\n var endCol = allCols.indexOf(initialPosition.column);\n var colsToMark = allCols.slice(startCol, endCol);\n var rangeStartRow = this.getRangeStartRow();\n var rangeEndRow = this.getRangeEndRow();\n colsToMark.forEach(function (column) {\n var row = rangeStartRow;\n var isLastRow = false;\n\n do {\n isLastRow = _this.rowPositionUtils.sameRow(row, rangeEndRow);\n\n var cell = _this.navigationService.getCellByPosition({\n rowIndex: row.rowIndex,\n rowPinned: row.rowPinned,\n column: column\n });\n\n if (cell) {\n _this.markedCells.push(cell);\n\n var cellComp = cell.getComp();\n cellComp.addOrRemoveCssClass('ag-selection-fill-right', column === colsToMark[0]);\n }\n\n row = _this.cellNavigationService.getRowBelow(row);\n } while (!isLastRow);\n });\n };\n\n FillHandle.prototype.refresh = function (cellCtrl) {\n var cellRange = this.rangeService.getCellRanges()[0];\n var isColumnRange = !cellRange.startRow || !cellRange.endRow;\n\n if (isColumnRange) {\n this.destroy();\n return;\n }\n\n _super.prototype.refresh.call(this, cellCtrl);\n };\n\n FillHandle.TEMPLATE = \"
\";\n\n __decorate$C([Autowired('valueService')], FillHandle.prototype, \"valueService\", void 0);\n\n return FillHandle;\n}(AbstractSelectionHandle);\n\nvar __extends$V = undefined && undefined.__extends || function () {\n var _extendStatics163 = function extendStatics(d, b) {\n _extendStatics163 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics163(d, b);\n };\n\n return function (d, b) {\n _extendStatics163(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$5 = undefined && undefined.__assign || function () {\n __assign$5 = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$5.apply(this, arguments);\n};\n\nvar RangeHandle =\n/** @class */\nfunction (_super) {\n __extends$V(RangeHandle, _super);\n\n function RangeHandle() {\n var _this = _super.call(this, RangeHandle.TEMPLATE) || this;\n\n _this.type = SelectionHandleType.RANGE;\n _this.rangeFixed = false;\n return _this;\n }\n\n RangeHandle.prototype.onDrag = function (e) {\n var lastCellHovered = this.getLastCellHovered();\n\n if (!lastCellHovered) {\n return;\n }\n\n var cellRanges = this.rangeService.getCellRanges();\n\n var lastRange = _.last(cellRanges);\n\n if (!this.rangeFixed) {\n this.fixRangeStartEnd(lastRange);\n this.rangeFixed = true;\n }\n\n this.endPosition = {\n rowIndex: lastCellHovered.rowIndex,\n rowPinned: lastCellHovered.rowPinned,\n column: lastCellHovered.column\n }; // check if the cell ranges are for a chart\n\n if (cellRanges.length === 2 && cellRanges[0].type === CellRangeType.DIMENSION && lastRange.type === CellRangeType.VALUE) {\n var rowChanged = !this.rowPositionUtils.sameRow(this.endPosition, this.rangeService.getRangeEndRow(lastRange));\n\n if (rowChanged) {\n // ensure the dimension range is kept in sync with the value range (which has the handle)\n this.rangeService.updateRangeEnd(cellRanges[0], __assign$5(__assign$5({}, this.endPosition), {\n column: cellRanges[0].columns[0]\n }), true);\n }\n }\n\n this.rangeService.extendLatestRangeToCell(this.endPosition);\n };\n\n RangeHandle.prototype.onDragEnd = function (e) {\n var cellRange = _.last(this.rangeService.getCellRanges());\n\n this.fixRangeStartEnd(cellRange);\n this.rangeFixed = false;\n };\n\n RangeHandle.prototype.fixRangeStartEnd = function (cellRange) {\n var startRow = this.rangeService.getRangeStartRow(cellRange);\n var endRow = this.rangeService.getRangeEndRow(cellRange);\n var column = cellRange.columns[0];\n cellRange.startRow = startRow;\n cellRange.endRow = endRow;\n cellRange.startColumn = column;\n };\n\n RangeHandle.TEMPLATE = \"
\";\n return RangeHandle;\n}(AbstractSelectionHandle);\n\nvar __extends$U = undefined && undefined.__extends || function () {\n var _extendStatics164 = function extendStatics(d, b) {\n _extendStatics164 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics164(d, b);\n };\n\n return function (d, b) {\n _extendStatics164(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SelectionHandleFactory =\n/** @class */\nfunction (_super) {\n __extends$U(SelectionHandleFactory, _super);\n\n function SelectionHandleFactory() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n SelectionHandleFactory.prototype.createSelectionHandle = function (type) {\n return this.createBean(type === SelectionHandleType.RANGE ? new RangeHandle() : new FillHandle());\n };\n\n SelectionHandleFactory = __decorate$B([Bean('selectionHandleFactory')], SelectionHandleFactory);\n return SelectionHandleFactory;\n}(BeanStub);\n\nvar RangeSelectionModule = {\n moduleName: ModuleNames.RangeSelectionModule,\n beans: [RangeService, SelectionHandleFactory],\n agStackComponents: [{\n componentName: 'AgFillHandle',\n componentClass: FillHandle\n }, {\n componentName: 'AgRangeHandle',\n componentClass: RangeHandle\n }],\n dependantModules: [EnterpriseCoreModule]\n};\nvar GridChartsModule = {\n moduleName: ModuleNames.GridChartsModule,\n beans: [ChartService, ChartTranslationService, ChartCrossFilterService],\n dependantModules: [RangeSelectionModule, EnterpriseCoreModule]\n};\nvar agCharts = {\n time: time\n};\n\nvar __extends$T = undefined && undefined.__extends || function () {\n var _extendStatics165 = function extendStatics(d, b) {\n _extendStatics165 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics165(d, b);\n };\n\n return function (d, b) {\n _extendStatics165(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$4 = undefined && undefined.__assign || function () {\n __assign$4 = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$4.apply(this, arguments);\n};\n\nvar __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar DetailCellRendererCtrl =\n/** @class */\nfunction (_super) {\n __extends$T(DetailCellRendererCtrl, _super);\n\n function DetailCellRendererCtrl() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.loadRowDataVersion = 0;\n _this.needRefresh = false;\n return _this;\n }\n\n DetailCellRendererCtrl.prototype.init = function (comp, params) {\n var _this = this;\n\n this.params = params;\n this.comp = comp;\n var doNothingBecauseInsidePinnedSection = params.pinned != null;\n\n if (doNothingBecauseInsidePinnedSection) {\n return;\n }\n\n this.setAutoHeightClasses();\n this.setupRefreshStrategy();\n this.addThemeToDetailGrid();\n this.createDetailGrid();\n this.loadRowData();\n this.addManagedListener(params.node.parent, RowNode.EVENT_DATA_CHANGED, function () {\n _this.needRefresh = true;\n });\n this.addManagedListener(this.eventService, Events.EVENT_FULL_WIDTH_ROW_FOCUSED, this.onFullWidthRowFocused.bind(this));\n };\n\n DetailCellRendererCtrl.prototype.onFullWidthRowFocused = function (e) {\n var params = this.params;\n var row = {\n rowIndex: params.node.rowIndex,\n rowPinned: params.node.rowPinned\n };\n var eventRow = {\n rowIndex: e.rowIndex,\n rowPinned: e.rowPinned\n };\n var isSameRow = this.rowPositionUtils.sameRow(row, eventRow);\n\n if (!isSameRow) {\n return;\n }\n\n this.focusService.focusInto(this.comp.getGui(), e.fromBelow);\n };\n\n DetailCellRendererCtrl.prototype.setAutoHeightClasses = function () {\n var autoHeight = this.gridOptionsWrapper.isDetailRowAutoHeight();\n var parentClass = autoHeight ? 'ag-details-row-auto-height' : 'ag-details-row-fixed-height';\n var detailClass = autoHeight ? 'ag-details-grid-auto-height' : 'ag-details-grid-fixed-height';\n this.comp.addOrRemoveCssClass(parentClass, true);\n this.comp.addOrRemoveDetailGridCssClass(detailClass, true);\n };\n\n DetailCellRendererCtrl.prototype.setupRefreshStrategy = function () {\n if (this.params.suppressRefresh) {\n console.warn(\"AG Grid: as of v23.2.0, cellRendererParams.suppressRefresh for Detail Cell Renderer is no \" + \"longer used. Please set cellRendererParams.refreshStrategy = 'nothing' instead.\");\n this.refreshStrategy = 'nothing';\n return;\n }\n\n var providedStrategy = this.params.refreshStrategy;\n var validSelection = providedStrategy == 'everything' || providedStrategy == 'nothing' || providedStrategy == 'rows';\n\n if (validSelection) {\n this.refreshStrategy = providedStrategy;\n return;\n }\n\n if (providedStrategy != null) {\n console.warn(\"AG Grid: invalid cellRendererParams.refreshStrategy = '\" + providedStrategy + \"' supplied, defaulting to refreshStrategy = 'rows'.\");\n }\n\n this.refreshStrategy = 'rows';\n };\n\n DetailCellRendererCtrl.prototype.addThemeToDetailGrid = function () {\n // this is needed by environment service of the child grid, the class needs to be on\n // the grid div itself - the browser's CSS on the other hand just inherits from the parent grid theme.\n var theme = this.environment.getTheme().theme;\n\n if (theme) {\n this.comp.addOrRemoveDetailGridCssClass(theme, true);\n }\n };\n\n DetailCellRendererCtrl.prototype.createDetailGrid = function () {\n if (_.missing(this.params.detailGridOptions)) {\n console.warn('AG Grid: could not find detail grid options for master detail, ' + 'please set gridOptions.detailCellRendererParams.detailGridOptions');\n return;\n }\n\n var autoHeight = this.gridOptionsWrapper.isDetailRowAutoHeight(); // we clone the detail grid options, as otherwise it would be shared\n // across many instances, and that would be a problem because we set\n // api and columnApi into gridOptions\n\n var gridOptions = __assign$4({}, this.params.detailGridOptions);\n\n if (autoHeight) {\n gridOptions.domLayout = 'autoHeight';\n }\n\n this.comp.setDetailGrid(gridOptions);\n };\n\n DetailCellRendererCtrl.prototype.registerDetailWithMaster = function (api, columnApi) {\n var rowId = this.params.node.id;\n var masterGridApi = this.params.api;\n var gridInfo = {\n id: rowId,\n api: api,\n columnApi: columnApi\n };\n var rowNode = this.params.node; // register with api\n\n masterGridApi.addDetailGridInfo(rowId, gridInfo); // register with node\n\n rowNode.detailGridInfo = gridInfo;\n this.addDestroyFunc(function () {\n // the gridInfo can be stale if a refresh happens and\n // a new row is created before the old one is destroyed.\n if (rowNode.detailGridInfo !== gridInfo) {\n return;\n }\n\n masterGridApi.removeDetailGridInfo(rowId); // unregister from api\n\n rowNode.detailGridInfo = null; // unregister from node\n });\n };\n\n DetailCellRendererCtrl.prototype.loadRowData = function () {\n var _this = this; // in case a refresh happens before the last refresh completes (as we depend on async\n // application logic) we keep track on what the latest call was.\n\n\n this.loadRowDataVersion++;\n var versionThisCall = this.loadRowDataVersion;\n var userFunc = this.params.getDetailRowData;\n\n if (!userFunc) {\n console.warn('AG Grid: could not find getDetailRowData for master / detail, ' + 'please set gridOptions.detailCellRendererParams.getDetailRowData');\n return;\n }\n\n var successCallback = function successCallback(rowData) {\n var mostRecentCall = _this.loadRowDataVersion === versionThisCall;\n\n if (mostRecentCall) {\n _this.comp.setRowData(rowData);\n }\n };\n\n var funcParams = {\n node: this.params.node,\n // we take data from node, rather than params.data\n // as the data could have been updated with new instance\n data: this.params.node.data,\n successCallback: successCallback,\n context: this.gridOptionsWrapper.getContext()\n };\n userFunc(funcParams);\n };\n\n DetailCellRendererCtrl.prototype.refresh = function () {\n var GET_GRID_TO_REFRESH = false;\n var GET_GRID_TO_DO_NOTHING = true; // if we return true, it means we pretend to the grid\n // that we have refreshed, so refresh will never happen.\n\n var doNotRefresh = !this.needRefresh || this.refreshStrategy === 'nothing';\n\n if (doNotRefresh) {\n // we do nothing in this refresh method, and also tell the grid to do nothing\n return GET_GRID_TO_DO_NOTHING;\n } // reset flag, so don't refresh again until more data changes.\n\n\n this.needRefresh = false;\n\n if (this.refreshStrategy === 'everything') {\n // we want full refresh, so tell the grid to destroy and recreate this cell\n return GET_GRID_TO_REFRESH;\n } else {\n // do the refresh here, and tell the grid to do nothing\n this.loadRowData();\n return GET_GRID_TO_DO_NOTHING;\n }\n };\n\n __decorate$A([Autowired('environment')], DetailCellRendererCtrl.prototype, \"environment\", void 0);\n\n __decorate$A([Autowired('rowPositionUtils')], DetailCellRendererCtrl.prototype, \"rowPositionUtils\", void 0);\n\n __decorate$A([Autowired('focusService')], DetailCellRendererCtrl.prototype, \"focusService\", void 0);\n\n return DetailCellRendererCtrl;\n}(BeanStub);\n\nvar __extends$S = undefined && undefined.__extends || function () {\n var _extendStatics166 = function extendStatics(d, b) {\n _extendStatics166 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics166(d, b);\n };\n\n return function (d, b) {\n _extendStatics166(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar DetailCellRenderer =\n/** @class */\nfunction (_super) {\n __extends$S(DetailCellRenderer, _super);\n\n function DetailCellRenderer() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n DetailCellRenderer.prototype.init = function (params) {\n var _this = this;\n\n this.params = params;\n this.selectAndSetTemplate();\n var compProxy = {\n addOrRemoveCssClass: function addOrRemoveCssClass(cssClassName, on) {\n return _this.addOrRemoveCssClass(cssClassName, on);\n },\n addOrRemoveDetailGridCssClass: function addOrRemoveDetailGridCssClass(cssClassName, on) {\n return _this.eDetailGrid.classList.toggle(cssClassName, on);\n },\n setDetailGrid: function setDetailGrid(gridOptions) {\n return _this.setDetailGrid(gridOptions);\n },\n setRowData: function setRowData(rowData) {\n return _this.setRowData(rowData);\n },\n getGui: function getGui() {\n return _this.eDetailGrid;\n }\n };\n this.ctrl = this.createManagedBean(new DetailCellRendererCtrl());\n this.ctrl.init(compProxy, params);\n };\n\n DetailCellRenderer.prototype.refresh = function () {\n return this.ctrl && this.ctrl.refresh();\n }; // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n // so we need to override destroy() just to make the method public.\n\n\n DetailCellRenderer.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n DetailCellRenderer.prototype.selectAndSetTemplate = function () {\n var _this = this;\n\n if (this.params.pinned) {\n this.setTemplate('
');\n return;\n }\n\n var setDefaultTemplate = function setDefaultTemplate() {\n _this.setTemplate(DetailCellRenderer.TEMPLATE);\n };\n\n if (_.missing(this.params.template)) {\n // use default template\n setDefaultTemplate();\n } else {\n // use user provided template\n if (typeof this.params.template === 'string') {\n this.setTemplate(this.params.template);\n } else if (typeof this.params.template === 'function') {\n var templateFunc = this.params.template;\n var template = templateFunc(this.params);\n this.setTemplate(template);\n } else {\n console.warn('AG Grid: detailCellRendererParams.template should be function or string');\n setDefaultTemplate();\n }\n }\n\n if (this.eDetailGrid == null) {\n console.warn('AG Grid: reference to eDetailGrid was missing from the details template. ' + 'Please add ref=\"eDetailGrid\" to the template.');\n }\n };\n\n DetailCellRenderer.prototype.setDetailGrid = function (gridOptions) {\n if (!this.eDetailGrid) {\n return;\n } // AG-1715\n // this is only needed when reactUi=false, once we remove the old way\n // of doing react, and Master / Details is all native React, then we\n // can remove this code.\n\n\n var agGridReact = this.context.getBean('agGridReact');\n var agGridReactCloned = agGridReact ? _.cloneObject(agGridReact) : undefined; // when we create detail grid, the detail grid needs frameworkComponentWrapper so that\n // it created child components correctly, ie Angular detail grid can have Angular cell renderer.\n // this is only used by Angular and Vue, as React uses native React AG Grid detail grids\n\n var frameworkComponentWrapper = this.context.getBean('frameworkComponentWrapper');\n var frameworkOverrides = this.getFrameworkOverrides(); // tslint:disable-next-line\n\n new Grid(this.eDetailGrid, gridOptions, {\n frameworkOverrides: frameworkOverrides,\n providedBeanInstances: {\n agGridReact: agGridReactCloned,\n frameworkComponentWrapper: frameworkComponentWrapper\n }\n });\n this.detailApi = gridOptions.api;\n this.ctrl.registerDetailWithMaster(gridOptions.api, gridOptions.columnApi);\n this.addDestroyFunc(function () {\n if (gridOptions.api) {\n gridOptions.api.destroy();\n }\n });\n };\n\n DetailCellRenderer.prototype.setRowData = function (rowData) {\n // ensure detail grid api still exists (grid may be destroyed when async call tries to set data)\n this.detailApi && this.detailApi.setRowData(rowData);\n };\n\n DetailCellRenderer.TEMPLATE = \"
\\n
\\n
\";\n\n __decorate$z([RefSelector('eDetailGrid')], DetailCellRenderer.prototype, \"eDetailGrid\", void 0);\n\n return DetailCellRenderer;\n}(Component);\n\nvar MasterDetailModule = {\n moduleName: ModuleNames.MasterDetailModule,\n beans: [],\n userComponents: [{\n componentName: 'agDetailCellRenderer',\n componentClass: DetailCellRenderer\n }],\n controllers: [{\n controllerName: 'detailCellRenderer',\n controllerClass: DetailCellRendererCtrl\n }],\n dependantModules: [EnterpriseCoreModule]\n};\n\nvar __extends$R = undefined && undefined.__extends || function () {\n var _extendStatics167 = function extendStatics(d, b) {\n _extendStatics167 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics167(d, b);\n };\n\n return function (d, b) {\n _extendStatics167(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar EnterpriseMenuFactory =\n/** @class */\nfunction (_super) {\n __extends$R(EnterpriseMenuFactory, _super);\n\n function EnterpriseMenuFactory() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n EnterpriseMenuFactory.prototype.hideActiveMenu = function () {\n this.destroyBean(this.activeMenu);\n };\n\n EnterpriseMenuFactory.prototype.showMenuAfterMouseEvent = function (column, mouseEvent, defaultTab) {\n var _this = this;\n\n this.showMenu(column, function (menu) {\n var ePopup = menu.getGui();\n\n _this.popupService.positionPopupUnderMouseEvent({\n type: 'columnMenu',\n column: column,\n mouseEvent: mouseEvent,\n ePopup: ePopup\n });\n\n if (defaultTab) {\n menu.showTab(defaultTab);\n }\n }, 'columnMenu', defaultTab, undefined, mouseEvent.target);\n };\n\n EnterpriseMenuFactory.prototype.showMenuAfterButtonClick = function (column, eventSource, containerType, defaultTab, restrictToTabs) {\n var _this = this;\n\n var multiplier = -1;\n var alignSide = 'left';\n\n if (this.gridOptionsWrapper.isEnableRtl()) {\n multiplier = 1;\n alignSide = 'right';\n }\n\n this.showMenu(column, function (menu) {\n var ePopup = menu.getGui();\n\n _this.popupService.positionPopupUnderComponent({\n type: containerType,\n column: column,\n eventSource: eventSource,\n ePopup: ePopup,\n alignSide: alignSide,\n nudgeX: 9 * multiplier,\n nudgeY: -23,\n keepWithinBounds: true\n });\n\n if (defaultTab) {\n menu.showTab(defaultTab);\n }\n }, containerType, defaultTab, restrictToTabs, eventSource);\n };\n\n EnterpriseMenuFactory.prototype.showMenu = function (column, _positionCallback, containerType, defaultTab, restrictToTabs, eventSource) {\n var _this = this;\n\n var menu = this.createBean(new EnterpriseMenu(column, this.lastSelectedTab, restrictToTabs));\n var eMenuGui = menu.getGui();\n var anchorToElement = eventSource || this.ctrlsService.getGridBodyCtrl().getGui();\n var closedFuncs = [];\n closedFuncs.push(function (e) {\n _this.destroyBean(menu);\n\n column.setMenuVisible(false, 'contextMenu');\n var isKeyboardEvent = e instanceof KeyboardEvent;\n\n if (isKeyboardEvent && eventSource && _.isVisible(eventSource)) {\n var focusableEl = _this.focusService.findTabbableParent(eventSource);\n\n if (focusableEl) {\n focusableEl.focus();\n }\n }\n });\n var translate = this.gridOptionsWrapper.getLocaleTextFunc(); // need to show filter before positioning, as only after filter\n // is visible can we find out what the width of it is\n\n var addPopupRes = this.popupService.addPopup({\n modal: true,\n eChild: eMenuGui,\n closeOnEsc: true,\n closedCallback: function closedCallback(e) {\n closedFuncs.forEach(function (f) {\n return f(e);\n });\n },\n afterGuiAttached: function afterGuiAttached(params) {\n return menu.afterGuiAttached(Object.assign({}, {\n container: containerType\n }, params));\n },\n positionCallback: function positionCallback() {\n return _positionCallback(menu);\n },\n anchorToElement: anchorToElement,\n ariaLabel: translate('ariaLabelColumnMenu', 'Column Menu')\n });\n\n if (addPopupRes) {\n // if user starts showing / hiding columns, or otherwise move the underlying column\n // for this menu, we want to stop tracking the menu with the column position. otherwise\n // the menu would move as the user is using the columns tab inside the menu.\n var stopAnchoringPromise = addPopupRes.stopAnchoringPromise;\n\n if (stopAnchoringPromise) {\n stopAnchoringPromise.then(function (stopAnchoringFunc) {\n column.addEventListener(Column.EVENT_LEFT_CHANGED, stopAnchoringFunc);\n column.addEventListener(Column.EVENT_VISIBLE_CHANGED, stopAnchoringFunc);\n closedFuncs.push(function () {\n column.removeEventListener(Column.EVENT_LEFT_CHANGED, stopAnchoringFunc);\n column.removeEventListener(Column.EVENT_VISIBLE_CHANGED, stopAnchoringFunc);\n });\n });\n }\n }\n\n if (!defaultTab) {\n menu.showTabBasedOnPreviousSelection(); // reposition the menu because the method above could load\n // an element that is bigger than enterpriseMenu header.\n\n _positionCallback(menu);\n }\n\n menu.addEventListener(EnterpriseMenu.EVENT_TAB_SELECTED, function (event) {\n _this.lastSelectedTab = event.key;\n });\n column.setMenuVisible(true, 'contextMenu');\n this.activeMenu = menu;\n menu.addEventListener(BeanStub.EVENT_DESTROYED, function () {\n if (_this.activeMenu === menu) {\n _this.activeMenu = null;\n }\n });\n };\n\n EnterpriseMenuFactory.prototype.isMenuEnabled = function (column) {\n return column.getMenuTabs(EnterpriseMenu.TABS_DEFAULT).length > 0;\n };\n\n __decorate$y([Autowired('popupService')], EnterpriseMenuFactory.prototype, \"popupService\", void 0);\n\n __decorate$y([Autowired('focusService')], EnterpriseMenuFactory.prototype, \"focusService\", void 0);\n\n __decorate$y([Autowired('ctrlsService')], EnterpriseMenuFactory.prototype, \"ctrlsService\", void 0);\n\n EnterpriseMenuFactory = __decorate$y([Bean('menuFactory')], EnterpriseMenuFactory);\n return EnterpriseMenuFactory;\n}(BeanStub);\n\nvar EnterpriseMenu =\n/** @class */\nfunction (_super) {\n __extends$R(EnterpriseMenu, _super);\n\n function EnterpriseMenu(column, initialSelection, restrictTo) {\n var _this = _super.call(this) || this;\n\n _this.tabFactories = {};\n _this.includeChecks = {};\n _this.column = column;\n _this.initialSelection = initialSelection;\n _this.tabFactories[EnterpriseMenu.TAB_GENERAL] = _this.createMainPanel.bind(_this);\n _this.tabFactories[EnterpriseMenu.TAB_FILTER] = _this.createFilterPanel.bind(_this);\n _this.tabFactories[EnterpriseMenu.TAB_COLUMNS] = _this.createColumnsPanel.bind(_this);\n\n _this.includeChecks[EnterpriseMenu.TAB_GENERAL] = function () {\n return true;\n };\n\n _this.includeChecks[EnterpriseMenu.TAB_FILTER] = function () {\n return column.isFilterAllowed();\n };\n\n _this.includeChecks[EnterpriseMenu.TAB_COLUMNS] = function () {\n return true;\n };\n\n _this.restrictTo = restrictTo;\n return _this;\n }\n\n EnterpriseMenu.prototype.init = function () {\n var _this = this;\n\n var tabs = this.getTabsToCreate().map(function (name) {\n return _this.createTab(name);\n });\n this.tabbedLayout = new TabbedLayout({\n items: tabs,\n cssClass: 'ag-menu',\n onActiveItemClicked: this.onHidePopup.bind(this),\n onItemClicked: this.onTabItemClicked.bind(this)\n });\n this.createBean(this.tabbedLayout);\n\n if (this.mainMenuList) {\n this.mainMenuList.setParentComponent(this.tabbedLayout);\n }\n };\n\n EnterpriseMenu.prototype.getTabsToCreate = function () {\n var _this = this;\n\n if (this.restrictTo) {\n return this.restrictTo;\n }\n\n return this.column.getMenuTabs(EnterpriseMenu.TABS_DEFAULT).filter(function (tabName) {\n return _this.isValidMenuTabItem(tabName);\n }).filter(function (tabName) {\n return _this.isNotSuppressed(tabName);\n }).filter(function (tabName) {\n return _this.isModuleLoaded(tabName);\n });\n };\n\n EnterpriseMenu.prototype.isModuleLoaded = function (menuTabName) {\n if (menuTabName === EnterpriseMenu.TAB_COLUMNS) {\n return ModuleRegistry.isRegistered(ModuleNames.ColumnToolPanelModule);\n }\n\n return true;\n };\n\n EnterpriseMenu.prototype.isValidMenuTabItem = function (menuTabName) {\n var isValid = true;\n var itemsToConsider = EnterpriseMenu.TABS_DEFAULT;\n\n if (this.restrictTo != null) {\n isValid = this.restrictTo.indexOf(menuTabName) > -1;\n itemsToConsider = this.restrictTo;\n }\n\n isValid = isValid && EnterpriseMenu.TABS_DEFAULT.indexOf(menuTabName) > -1;\n\n if (!isValid) {\n console.warn(\"AG Grid: Trying to render an invalid menu item '\" + menuTabName + \"'. Check that your 'menuTabs' contains one of [\" + itemsToConsider + \"]\");\n }\n\n return isValid;\n };\n\n EnterpriseMenu.prototype.isNotSuppressed = function (menuTabName) {\n return this.includeChecks[menuTabName]();\n };\n\n EnterpriseMenu.prototype.createTab = function (name) {\n return this.tabFactories[name]();\n };\n\n EnterpriseMenu.prototype.showTabBasedOnPreviousSelection = function () {\n // show the tab the user was on last time they had a menu open\n this.showTab(this.initialSelection);\n };\n\n EnterpriseMenu.prototype.showTab = function (toShow) {\n if (this.tabItemColumns && toShow === EnterpriseMenu.TAB_COLUMNS) {\n this.tabbedLayout.showItem(this.tabItemColumns);\n } else if (this.tabItemFilter && toShow === EnterpriseMenu.TAB_FILTER) {\n this.tabbedLayout.showItem(this.tabItemFilter);\n } else if (this.tabItemGeneral && toShow === EnterpriseMenu.TAB_GENERAL) {\n this.tabbedLayout.showItem(this.tabItemGeneral);\n } else {\n this.tabbedLayout.showFirstItem();\n }\n };\n\n EnterpriseMenu.prototype.onTabItemClicked = function (event) {\n var key = null;\n\n switch (event.item) {\n case this.tabItemColumns:\n key = EnterpriseMenu.TAB_COLUMNS;\n break;\n\n case this.tabItemFilter:\n key = EnterpriseMenu.TAB_FILTER;\n break;\n\n case this.tabItemGeneral:\n key = EnterpriseMenu.TAB_GENERAL;\n break;\n }\n\n if (key) {\n this.activateTab(key);\n }\n };\n\n EnterpriseMenu.prototype.activateTab = function (tab) {\n var ev = {\n type: EnterpriseMenu.EVENT_TAB_SELECTED,\n key: tab\n };\n this.dispatchEvent(ev);\n };\n\n EnterpriseMenu.prototype.getMenuItems = function () {\n var defaultMenuOptions = this.getDefaultMenuOptions();\n var result;\n var userFunc = this.gridOptionsWrapper.getMainMenuItemsFunc();\n\n if (userFunc) {\n result = userFunc({\n column: this.column,\n defaultItems: defaultMenuOptions\n });\n } else {\n result = defaultMenuOptions;\n } // GUI looks weird when two separators are side by side. this can happen accidentally\n // if we remove items from the menu then two separators can edit up adjacent.\n\n\n _.removeRepeatsFromArray(result, EnterpriseMenu.MENU_ITEM_SEPARATOR);\n\n return result;\n };\n\n EnterpriseMenu.prototype.getDefaultMenuOptions = function () {\n var result = [];\n var allowPinning = !this.column.getColDef().lockPinned;\n var rowGroupCount = this.columnModel.getRowGroupColumns().length;\n var doingGrouping = rowGroupCount > 0;\n var groupedByThisColumn = this.columnModel.getRowGroupColumns().indexOf(this.column) >= 0;\n var allowValue = this.column.isAllowValue();\n var allowRowGroup = this.column.isAllowRowGroup();\n var isPrimary = this.column.isPrimary();\n var pivotModeOn = this.columnModel.isPivotMode();\n var isInMemoryRowModel = this.rowModel.getType() === Constants.ROW_MODEL_TYPE_CLIENT_SIDE;\n var usingTreeData = this.gridOptionsWrapper.isTreeData();\n var allowValueAgg = // if primary, then only allow aggValue if grouping and it's a value columns\n isPrimary && doingGrouping && allowValue || // secondary columns can always have aggValue, as it means it's a pivot value column\n !isPrimary;\n\n if (allowPinning) {\n result.push('pinSubMenu');\n }\n\n if (allowValueAgg) {\n result.push('valueAggSubMenu');\n }\n\n if (allowPinning || allowValueAgg) {\n result.push(EnterpriseMenu.MENU_ITEM_SEPARATOR);\n }\n\n result.push('autoSizeThis');\n result.push('autoSizeAll');\n result.push(EnterpriseMenu.MENU_ITEM_SEPARATOR);\n\n if (allowRowGroup && this.column.isPrimary()) {\n if (groupedByThisColumn) {\n result.push('rowUnGroup');\n } else {\n result.push('rowGroup');\n }\n }\n\n result.push(EnterpriseMenu.MENU_ITEM_SEPARATOR);\n result.push('resetColumns'); // only add grouping expand/collapse if grouping in the InMemoryRowModel\n // if pivoting, we only have expandable groups if grouping by 2 or more columns\n // as the lowest level group is not expandable while pivoting.\n // if not pivoting, then any active row group can be expanded.\n\n var allowExpandAndContract = isInMemoryRowModel && (usingTreeData || rowGroupCount > (pivotModeOn ? 1 : 0));\n\n if (allowExpandAndContract) {\n result.push('expandAll');\n result.push('contractAll');\n }\n\n return result;\n };\n\n EnterpriseMenu.prototype.createMainPanel = function () {\n this.mainMenuList = this.createManagedBean(new AgMenuList());\n var menuItems = this.getMenuItems();\n var menuItemsMapped = this.menuItemMapper.mapWithStockItems(menuItems, this.column);\n this.mainMenuList.addMenuItems(menuItemsMapped);\n this.mainMenuList.addEventListener(AgMenuItemComponent.EVENT_MENU_ITEM_SELECTED, this.onHidePopup.bind(this));\n this.tabItemGeneral = {\n title: _.createIconNoSpan('menu', this.gridOptionsWrapper, this.column),\n titleLabel: EnterpriseMenu.TAB_GENERAL.replace('MenuTab', ''),\n bodyPromise: AgPromise.resolve(this.mainMenuList.getGui()),\n name: EnterpriseMenu.TAB_GENERAL\n };\n return this.tabItemGeneral;\n };\n\n EnterpriseMenu.prototype.onHidePopup = function (event) {\n var keyboardEvent;\n\n if (event && event.event && event.event instanceof KeyboardEvent) {\n keyboardEvent = event.event;\n }\n\n this.hidePopupFunc(keyboardEvent && {\n keyboardEvent: keyboardEvent\n }); // this method only gets called when the menu was closed by selection an option\n // in this case we highlight the cell that was previously highlighted\n\n var focusedCell = this.focusService.getFocusedCell();\n var eDocument = this.gridOptionsWrapper.getDocument();\n\n if (eDocument.activeElement === eDocument.body && focusedCell) {\n var rowIndex = focusedCell.rowIndex,\n rowPinned = focusedCell.rowPinned,\n column = focusedCell.column;\n this.focusService.setFocusedCell({\n rowIndex: rowIndex,\n column: column,\n rowPinned: rowPinned,\n forceBrowserFocus: true\n });\n }\n };\n\n EnterpriseMenu.prototype.createFilterPanel = function () {\n var _a;\n\n var filterWrapper = this.filterManager.getOrCreateFilterWrapper(this.column, 'COLUMN_MENU');\n\n if (!filterWrapper) {\n throw new Error('AG Grid - Unable to instantiate filter');\n }\n\n var afterFilterAttachedCallback = function afterFilterAttachedCallback(params) {\n var _a;\n\n if (!((_a = filterWrapper) === null || _a === void 0 ? void 0 : _a.filterPromise)) {\n return;\n } // slightly odd block this - this promise will always have been resolved by the time it gets here, so won't be\n // async (_unless_ in react or similar, but if so why not encountered before now?).\n // I'd suggest a future improvement would be to remove/replace this promise as this block just wont work if it is\n // async and is confusing if you don't have this context\n\n\n filterWrapper.filterPromise.then(function (filter) {\n if (filter && filter.afterGuiAttached) {\n filter.afterGuiAttached(params);\n }\n });\n };\n\n this.tabItemFilter = {\n title: _.createIconNoSpan('filter', this.gridOptionsWrapper, this.column),\n titleLabel: EnterpriseMenu.TAB_FILTER.replace('MenuTab', ''),\n bodyPromise: (_a = filterWrapper) === null || _a === void 0 ? void 0 : _a.guiPromise,\n afterAttachedCallback: afterFilterAttachedCallback,\n name: EnterpriseMenu.TAB_FILTER\n };\n return this.tabItemFilter;\n };\n\n EnterpriseMenu.prototype.createColumnsPanel = function () {\n var eWrapperDiv = document.createElement('div');\n eWrapperDiv.classList.add('ag-menu-column-select-wrapper');\n this.columnSelectPanel = this.createManagedBean(new PrimaryColsPanel());\n var columnsMenuParams = this.column.getColDef().columnsMenuParams;\n\n if (!columnsMenuParams) {\n columnsMenuParams = {};\n }\n\n this.columnSelectPanel.init(false, {\n suppressColumnMove: false,\n suppressValues: false,\n suppressPivots: false,\n suppressRowGroups: false,\n suppressPivotMode: false,\n contractColumnSelection: !!columnsMenuParams.contractColumnSelection,\n suppressColumnExpandAll: !!columnsMenuParams.suppressColumnExpandAll,\n suppressColumnFilter: !!columnsMenuParams.suppressColumnFilter,\n suppressColumnSelectAll: !!columnsMenuParams.suppressColumnSelectAll,\n suppressSyncLayoutWithGrid: !!columnsMenuParams.suppressSyncLayoutWithGrid,\n api: this.gridApi,\n columnApi: this.columnApi,\n context: this.gridOptionsWrapper.getContext()\n }, 'columnMenu');\n var columnSelectPanelGui = this.columnSelectPanel.getGui();\n columnSelectPanelGui.classList.add('ag-menu-column-select');\n eWrapperDiv.appendChild(columnSelectPanelGui);\n this.tabItemColumns = {\n title: _.createIconNoSpan('columns', this.gridOptionsWrapper, this.column),\n titleLabel: EnterpriseMenu.TAB_COLUMNS.replace('MenuTab', ''),\n bodyPromise: AgPromise.resolve(eWrapperDiv),\n name: EnterpriseMenu.TAB_COLUMNS\n };\n return this.tabItemColumns;\n };\n\n EnterpriseMenu.prototype.afterGuiAttached = function (params) {\n var container = params.container,\n hidePopup = params.hidePopup;\n this.tabbedLayout.setAfterAttachedParams({\n container: container,\n hidePopup: hidePopup\n });\n\n if (hidePopup) {\n this.hidePopupFunc = hidePopup;\n this.addDestroyFunc(hidePopup);\n }\n };\n\n EnterpriseMenu.prototype.getGui = function () {\n return this.tabbedLayout.getGui();\n };\n\n EnterpriseMenu.EVENT_TAB_SELECTED = 'tabSelected';\n EnterpriseMenu.TAB_FILTER = 'filterMenuTab';\n EnterpriseMenu.TAB_GENERAL = 'generalMenuTab';\n EnterpriseMenu.TAB_COLUMNS = 'columnsMenuTab';\n EnterpriseMenu.TABS_DEFAULT = [EnterpriseMenu.TAB_GENERAL, EnterpriseMenu.TAB_FILTER, EnterpriseMenu.TAB_COLUMNS];\n EnterpriseMenu.MENU_ITEM_SEPARATOR = 'separator';\n\n __decorate$y([Autowired('columnModel')], EnterpriseMenu.prototype, \"columnModel\", void 0);\n\n __decorate$y([Autowired('filterManager')], EnterpriseMenu.prototype, \"filterManager\", void 0);\n\n __decorate$y([Autowired('gridApi')], EnterpriseMenu.prototype, \"gridApi\", void 0);\n\n __decorate$y([Autowired('columnApi')], EnterpriseMenu.prototype, \"columnApi\", void 0);\n\n __decorate$y([Autowired('menuItemMapper')], EnterpriseMenu.prototype, \"menuItemMapper\", void 0);\n\n __decorate$y([Autowired('rowModel')], EnterpriseMenu.prototype, \"rowModel\", void 0);\n\n __decorate$y([Autowired('focusService')], EnterpriseMenu.prototype, \"focusService\", void 0);\n\n __decorate$y([PostConstruct], EnterpriseMenu.prototype, \"init\", null);\n\n return EnterpriseMenu;\n}(BeanStub);\n\nvar __extends$Q = undefined && undefined.__extends || function () {\n var _extendStatics168 = function extendStatics(d, b) {\n _extendStatics168 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics168(d, b);\n };\n\n return function (d, b) {\n _extendStatics168(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar CSS_MENU = 'ag-menu';\nvar CSS_CONTEXT_MENU_OPEN = 'ag-context-menu-open';\n\nvar ContextMenuFactory =\n/** @class */\nfunction (_super) {\n __extends$Q(ContextMenuFactory, _super);\n\n function ContextMenuFactory() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n ContextMenuFactory.prototype.hideActiveMenu = function () {\n this.destroyBean(this.activeMenu);\n };\n\n ContextMenuFactory.prototype.getMenuItems = function (node, column, value) {\n var defaultMenuOptions = [];\n\n if (_.exists(node) && ModuleRegistry.isRegistered(ModuleNames.ClipboardModule)) {\n if (column) {\n // only makes sense if column exists, could have originated from a row\n defaultMenuOptions.push('copy', 'copyWithHeaders', 'copyWithGroupHeaders', 'paste', 'separator');\n }\n }\n\n if (this.gridOptionsWrapper.isEnableCharts() && ModuleRegistry.isRegistered(ModuleNames.RangeSelectionModule) && ModuleRegistry.isRegistered(ModuleNames.GridChartsModule)) {\n if (this.columnModel.isPivotMode()) {\n defaultMenuOptions.push('pivotChart');\n }\n\n if (this.rangeService && !this.rangeService.isEmpty()) {\n defaultMenuOptions.push('chartRange');\n }\n }\n\n if (_.exists(node)) {\n // if user clicks a cell\n var csvModuleMissing = !ModuleRegistry.isRegistered(ModuleNames.CsvExportModule);\n var excelModuleMissing = !ModuleRegistry.isRegistered(ModuleNames.ExcelExportModule);\n var suppressExcel = this.gridOptionsWrapper.isSuppressExcelExport() || excelModuleMissing;\n var suppressCsv = this.gridOptionsWrapper.isSuppressCsvExport() || csvModuleMissing;\n\n var onIPad = _.isIOSUserAgent();\n\n var anyExport = !onIPad && (!suppressExcel || !suppressCsv);\n\n if (anyExport) {\n defaultMenuOptions.push('export');\n }\n }\n\n if (this.gridOptionsWrapper.getContextMenuItemsFunc()) {\n var userFunc = this.gridOptionsWrapper.getContextMenuItemsFunc();\n var params = {\n node: node,\n column: column,\n value: value,\n defaultItems: defaultMenuOptions.length ? defaultMenuOptions : undefined\n };\n return userFunc ? userFunc(params) : undefined;\n }\n\n return defaultMenuOptions;\n };\n\n ContextMenuFactory.prototype.onContextMenu = function (mouseEvent, touchEvent, rowNode, column, value, anchorToElement) {\n // to allow us to debug in chrome, we ignore the event if ctrl is pressed.\n // not everyone wants this, so first 'if' below allows to turn this hack off.\n if (!this.gridOptionsWrapper.isAllowContextMenuWithControlKey()) {\n // then do the check\n if (mouseEvent && (mouseEvent.ctrlKey || mouseEvent.metaKey)) {\n return;\n }\n } // need to do this regardless of context menu showing or not, so doing\n // before the isSuppressContextMenu() check\n\n\n if (mouseEvent) {\n this.blockMiddleClickScrollsIfNeeded(mouseEvent);\n }\n\n if (this.gridOptionsWrapper.isSuppressContextMenu()) {\n return;\n }\n\n var eventOrTouch = mouseEvent ? mouseEvent : touchEvent.touches[0];\n\n if (this.showMenu(rowNode, column, value, eventOrTouch, anchorToElement)) {\n var event_1 = mouseEvent ? mouseEvent : touchEvent;\n event_1.preventDefault();\n }\n };\n\n ContextMenuFactory.prototype.blockMiddleClickScrollsIfNeeded = function (mouseEvent) {\n // if we don't do this, then middle click will never result in a 'click' event, as 'mousedown'\n // will be consumed by the browser to mean 'scroll' (as you can scroll with the middle mouse\n // button in the browser). so this property allows the user to receive middle button clicks if\n // they want.\n var gridOptionsWrapper = this.gridOptionsWrapper;\n var which = mouseEvent.which;\n\n if (gridOptionsWrapper.isSuppressMiddleClickScrolls() && which === 2) {\n mouseEvent.preventDefault();\n }\n };\n\n ContextMenuFactory.prototype.showMenu = function (node, column, value, mouseEvent, anchorToElement) {\n var _this = this;\n\n var menuItems = this.getMenuItems(node, column, value);\n var eGridBodyGui = this.ctrlsService.getGridBodyCtrl().getGui();\n\n if (menuItems === undefined || _.missingOrEmpty(menuItems)) {\n return false;\n }\n\n var menu = new ContextMenu(menuItems);\n this.createBean(menu);\n var eMenuGui = menu.getGui();\n var positionParams = {\n column: column,\n rowNode: node,\n type: 'contextMenu',\n mouseEvent: mouseEvent,\n ePopup: eMenuGui,\n // move one pixel away so that accidentally double clicking\n // won't show the browser's contextmenu\n nudgeY: 1\n };\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var addPopupRes = this.popupService.addPopup({\n modal: true,\n eChild: eMenuGui,\n closeOnEsc: true,\n closedCallback: function closedCallback() {\n eGridBodyGui.classList.remove(CSS_CONTEXT_MENU_OPEN);\n\n _this.destroyBean(menu);\n },\n click: mouseEvent,\n positionCallback: function positionCallback() {\n _this.popupService.positionPopupUnderMouseEvent(Object.assign({}, {\n nudgeX: _this.gridOptionsWrapper.isEnableRtl() ? (eMenuGui.offsetWidth + 1) * -1 : 1\n }, positionParams));\n },\n // so when browser is scrolled down, or grid is scrolled, context menu stays with cell\n anchorToElement: anchorToElement,\n ariaLabel: translate('ariaLabelContextMenu', 'Context Menu')\n });\n\n if (addPopupRes) {\n eGridBodyGui.classList.add(CSS_CONTEXT_MENU_OPEN);\n menu.afterGuiAttached({\n container: 'contextMenu',\n hidePopup: addPopupRes.hideFunc\n });\n } // there should never be an active menu at this point, however it was found\n // that you could right click a second time just 1 or 2 pixels from the first\n // click, and another menu would pop up. so somehow the logic for closing the\n // first menu (clicking outside should close it) was glitchy somehow. an easy\n // way to avoid this is just remove the old context menu here if it exists.\n\n\n if (this.activeMenu) {\n this.hideActiveMenu();\n }\n\n this.activeMenu = menu;\n menu.addEventListener(BeanStub.EVENT_DESTROYED, function () {\n if (_this.activeMenu === menu) {\n _this.activeMenu = null;\n }\n }); // hide the popup if something gets selected\n\n if (addPopupRes) {\n menu.addEventListener(AgMenuItemComponent.EVENT_MENU_ITEM_SELECTED, addPopupRes.hideFunc);\n }\n\n return true;\n };\n\n __decorate$x([Autowired('popupService')], ContextMenuFactory.prototype, \"popupService\", void 0);\n\n __decorate$x([Optional('rangeService')], ContextMenuFactory.prototype, \"rangeService\", void 0);\n\n __decorate$x([Autowired('ctrlsService')], ContextMenuFactory.prototype, \"ctrlsService\", void 0);\n\n __decorate$x([Autowired('columnModel')], ContextMenuFactory.prototype, \"columnModel\", void 0);\n\n ContextMenuFactory = __decorate$x([Bean('contextMenuFactory')], ContextMenuFactory);\n return ContextMenuFactory;\n}(BeanStub);\n\nvar ContextMenu =\n/** @class */\nfunction (_super) {\n __extends$Q(ContextMenu, _super);\n\n function ContextMenu(menuItems) {\n var _this = _super.call(this,\n /* html */\n \"
\") || this;\n\n _this.menuList = null;\n _this.focusedCell = null;\n _this.menuItems = menuItems;\n return _this;\n }\n\n ContextMenu.prototype.addMenuItems = function () {\n var _this = this;\n\n var menuList = this.createManagedBean(new AgMenuList());\n var menuItemsMapped = this.menuItemMapper.mapWithStockItems(this.menuItems, null);\n menuList.addMenuItems(menuItemsMapped);\n this.appendChild(menuList);\n this.menuList = menuList;\n menuList.addEventListener(AgMenuItemComponent.EVENT_MENU_ITEM_SELECTED, function (e) {\n return _this.dispatchEvent(e);\n });\n };\n\n ContextMenu.prototype.afterGuiAttached = function (params) {\n if (params.hidePopup) {\n this.addDestroyFunc(params.hidePopup);\n }\n\n this.focusedCell = this.focusService.getFocusedCell();\n\n if (this.menuList) {\n this.focusService.focusInto(this.menuList.getGui());\n }\n };\n\n ContextMenu.prototype.restoreFocusedCell = function () {\n var currentFocusedCell = this.focusService.getFocusedCell();\n\n if (currentFocusedCell && this.focusedCell && this.cellPositionUtils.equals(currentFocusedCell, this.focusedCell)) {\n var _a = this.focusedCell,\n rowIndex = _a.rowIndex,\n rowPinned = _a.rowPinned,\n column = _a.column;\n var doc = this.gridOptionsWrapper.getDocument();\n\n if (doc.activeElement === doc.body) {\n this.focusService.setFocusedCell({\n rowIndex: rowIndex,\n column: column,\n rowPinned: rowPinned,\n forceBrowserFocus: true\n });\n }\n }\n };\n\n ContextMenu.prototype.destroy = function () {\n this.restoreFocusedCell();\n\n _super.prototype.destroy.call(this);\n };\n\n __decorate$x([Autowired('menuItemMapper')], ContextMenu.prototype, \"menuItemMapper\", void 0);\n\n __decorate$x([Autowired('focusService')], ContextMenu.prototype, \"focusService\", void 0);\n\n __decorate$x([Autowired('cellPositionUtils')], ContextMenu.prototype, \"cellPositionUtils\", void 0);\n\n __decorate$x([PostConstruct], ContextMenu.prototype, \"addMenuItems\", null);\n\n return ContextMenu;\n}(Component);\n\nvar __extends$P = undefined && undefined.__extends || function () {\n var _extendStatics169 = function extendStatics(d, b) {\n _extendStatics169 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics169(d, b);\n };\n\n return function (d, b) {\n _extendStatics169(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar MenuItemMapper =\n/** @class */\nfunction (_super) {\n __extends$P(MenuItemMapper, _super);\n\n function MenuItemMapper() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n MenuItemMapper.prototype.mapWithStockItems = function (originalList, column) {\n var _this = this;\n\n if (!originalList) {\n return [];\n }\n\n var resultList = [];\n originalList.forEach(function (menuItemOrString) {\n var result;\n\n if (typeof menuItemOrString === 'string') {\n result = _this.getStockMenuItem(menuItemOrString, column);\n } else {\n result = menuItemOrString;\n } // if no mapping, can happen when module is not loaded but user tries to use module anyway\n\n\n if (!result) {\n return;\n }\n\n var resultDef = result;\n var subMenu = resultDef.subMenu;\n\n if (subMenu && subMenu instanceof Array) {\n resultDef.subMenu = _this.mapWithStockItems(resultDef.subMenu, column);\n }\n\n if (result != null) {\n resultList.push(result);\n }\n });\n return resultList;\n };\n\n MenuItemMapper.prototype.getStockMenuItem = function (key, column) {\n var _this = this;\n\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n var skipHeaderOnAutoSize = this.gridOptionsWrapper.isSkipHeaderOnAutoSize();\n\n switch (key) {\n case 'pinSubMenu':\n return {\n name: localeTextFunc('pinColumn', 'Pin Column'),\n icon: _.createIconNoSpan('menuPin', this.gridOptionsWrapper, null),\n subMenu: ['pinLeft', 'pinRight', 'clearPinned']\n };\n\n case 'pinLeft':\n return {\n name: localeTextFunc('pinLeft', 'Pin Left'),\n action: function action() {\n return _this.columnModel.setColumnPinned(column, Constants.PINNED_LEFT, \"contextMenu\");\n },\n checked: !!column && column.isPinnedLeft()\n };\n\n case 'pinRight':\n return {\n name: localeTextFunc('pinRight', 'Pin Right'),\n action: function action() {\n return _this.columnModel.setColumnPinned(column, Constants.PINNED_RIGHT, \"contextMenu\");\n },\n checked: !!column && column.isPinnedRight()\n };\n\n case 'clearPinned':\n return {\n name: localeTextFunc('noPin', 'No Pin'),\n action: function action() {\n return _this.columnModel.setColumnPinned(column, null, \"contextMenu\");\n },\n checked: !!column && !column.isPinned()\n };\n\n case 'valueAggSubMenu':\n if (ModuleRegistry.assertRegistered(ModuleNames.RowGroupingModule, 'Aggregation from Menu')) {\n return {\n name: localeTextFunc('valueAggregation', 'Value Aggregation'),\n icon: _.createIconNoSpan('menuValue', this.gridOptionsWrapper, null),\n subMenu: this.createAggregationSubMenu(column)\n };\n } else {\n return null;\n }\n\n case 'autoSizeThis':\n return {\n name: localeTextFunc('autosizeThiscolumn', 'Autosize This Column'),\n action: function action() {\n return _this.columnModel.autoSizeColumn(column, skipHeaderOnAutoSize, \"contextMenu\");\n }\n };\n\n case 'autoSizeAll':\n return {\n name: localeTextFunc('autosizeAllColumns', 'Autosize All Columns'),\n action: function action() {\n return _this.columnModel.autoSizeAllColumns(skipHeaderOnAutoSize, \"contextMenu\");\n }\n };\n\n case 'rowGroup':\n return {\n name: localeTextFunc('groupBy', 'Group by') + ' ' + _.escapeString(this.columnModel.getDisplayNameForColumn(column, 'header')),\n action: function action() {\n return _this.columnModel.addRowGroupColumn(column, \"contextMenu\");\n },\n icon: _.createIconNoSpan('menuAddRowGroup', this.gridOptionsWrapper, null)\n };\n\n case 'rowUnGroup':\n return {\n name: localeTextFunc('ungroupBy', 'Un-Group by') + ' ' + _.escapeString(this.columnModel.getDisplayNameForColumn(column, 'header')),\n action: function action() {\n return _this.columnModel.removeRowGroupColumn(column, \"contextMenu\");\n },\n icon: _.createIconNoSpan('menuRemoveRowGroup', this.gridOptionsWrapper, null)\n };\n\n case 'resetColumns':\n return {\n name: localeTextFunc('resetColumns', 'Reset Columns'),\n action: function action() {\n return _this.columnModel.resetColumnState(\"contextMenu\");\n }\n };\n\n case 'expandAll':\n return {\n name: localeTextFunc('expandAll', 'Expand All'),\n action: function action() {\n return _this.gridApi.expandAll();\n }\n };\n\n case 'contractAll':\n return {\n name: localeTextFunc('collapseAll', 'Collapse All'),\n action: function action() {\n return _this.gridApi.collapseAll();\n }\n };\n\n case 'copy':\n if (ModuleRegistry.assertRegistered(ModuleNames.ClipboardModule, 'Copy from Menu')) {\n return {\n name: localeTextFunc('copy', 'Copy'),\n shortcut: localeTextFunc('ctrlC', 'Ctrl+C'),\n icon: _.createIconNoSpan('clipboardCopy', this.gridOptionsWrapper, null),\n action: function action() {\n return _this.clipboardService.copyToClipboard();\n }\n };\n } else {\n return null;\n }\n\n case 'copyWithHeaders':\n if (ModuleRegistry.assertRegistered(ModuleNames.ClipboardModule, 'Copy with Headers from Menu')) {\n return {\n name: localeTextFunc('copyWithHeaders', 'Copy with Headers'),\n // shortcut: localeTextFunc('ctrlC','Ctrl+C'),\n icon: _.createIconNoSpan('clipboardCopy', this.gridOptionsWrapper, null),\n action: function action() {\n return _this.clipboardService.copyToClipboard({\n includeHeaders: true\n });\n }\n };\n } else {\n return null;\n }\n\n case 'copyWithGroupHeaders':\n if (ModuleRegistry.assertRegistered(ModuleNames.ClipboardModule, 'Copy with Group Headers from Menu')) {\n return {\n name: localeTextFunc('copyWithGroupHeaders', 'Copy with Group Headers'),\n // shortcut: localeTextFunc('ctrlC','Ctrl+C'),\n icon: _.createIconNoSpan('clipboardCopy', this.gridOptionsWrapper, null),\n action: function action() {\n return _this.clipboardService.copyToClipboard({\n includeHeaders: true,\n includeGroupHeaders: true\n });\n }\n };\n } else {\n return null;\n }\n\n case 'paste':\n if (ModuleRegistry.assertRegistered(ModuleNames.ClipboardModule, 'Paste from Clipboard')) {\n return {\n name: localeTextFunc('paste', 'Paste'),\n shortcut: localeTextFunc('ctrlV', 'Ctrl+V'),\n disabled: true,\n icon: _.createIconNoSpan('clipboardPaste', this.gridOptionsWrapper, null),\n action: function action() {\n return _this.clipboardService.pasteFromClipboard();\n }\n };\n } else {\n return null;\n }\n\n case 'export':\n var exportSubMenuItems = [];\n var csvModuleLoaded = ModuleRegistry.isRegistered(ModuleNames.CsvExportModule);\n var excelModuleLoaded = ModuleRegistry.isRegistered(ModuleNames.ExcelExportModule);\n\n if (!this.gridOptionsWrapper.isSuppressCsvExport() && csvModuleLoaded) {\n exportSubMenuItems.push('csvExport');\n }\n\n if (!this.gridOptionsWrapper.isSuppressExcelExport() && excelModuleLoaded) {\n exportSubMenuItems.push('excelExport');\n }\n\n return {\n name: localeTextFunc('export', 'Export'),\n subMenu: exportSubMenuItems,\n icon: _.createIconNoSpan('save', this.gridOptionsWrapper, null)\n };\n\n case 'csvExport':\n return {\n name: localeTextFunc('csvExport', 'CSV Export'),\n icon: _.createIconNoSpan('csvExport', this.gridOptionsWrapper, null),\n action: function action() {\n return _this.gridApi.exportDataAsCsv({});\n }\n };\n\n case 'excelExport':\n return {\n name: localeTextFunc('excelExport', 'Excel Export'),\n icon: _.createIconNoSpan('excelExport', this.gridOptionsWrapper, null),\n action: function action() {\n return _this.gridApi.exportDataAsExcel();\n }\n };\n\n case 'separator':\n return 'separator';\n\n default:\n var chartMenuItem = this.getChartItems(key);\n\n if (chartMenuItem) {\n return chartMenuItem;\n } else {\n console.warn(\"AG Grid: unknown menu item type \" + key);\n return null;\n }\n\n }\n };\n\n MenuItemMapper.prototype.getChartItems = function (key) {\n var _this = this;\n\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n\n var pivotChartMenuItem = function pivotChartMenuItem(localeKey, defaultText, chartType) {\n return {\n name: localeTextFunc(localeKey, defaultText),\n action: function action() {\n return _this.chartService.createPivotChart({\n chartType: chartType\n });\n }\n };\n };\n\n var rangeChartMenuItem = function rangeChartMenuItem(localeKey, defaultText, chartType) {\n return {\n name: localeTextFunc(localeKey, defaultText),\n action: function action() {\n return _this.chartService.createChartFromCurrentRange(chartType);\n }\n };\n };\n\n switch (key) {\n case 'pivotChart':\n return {\n name: localeTextFunc('pivotChart', 'Pivot Chart'),\n subMenu: ['pivotColumnChart', 'pivotBarChart', 'pivotPieChart', 'pivotLineChart', 'pivotXYChart', 'pivotAreaChart'],\n icon: _.createIconNoSpan('chart', this.gridOptionsWrapper, null)\n };\n\n case 'chartRange':\n return {\n name: localeTextFunc('chartRange', 'Chart Range'),\n subMenu: ['rangeColumnChart', 'rangeBarChart', 'rangePieChart', 'rangeLineChart', 'rangeXYChart', 'rangeAreaChart', 'rangeHistogramChart', 'rangeCombinationChart'],\n icon: _.createIconNoSpan('chart', this.gridOptionsWrapper, null)\n };\n\n case 'pivotColumnChart':\n return {\n name: localeTextFunc('columnChart', 'Column'),\n subMenu: ['pivotGroupedColumn', 'pivotStackedColumn', 'pivotNormalizedColumn']\n };\n\n case 'pivotGroupedColumn':\n return pivotChartMenuItem('groupedColumn', 'Grouped‎', 'groupedColumn');\n\n case 'pivotStackedColumn':\n return pivotChartMenuItem('stackedColumn', 'Stacked‎', 'stackedColumn');\n\n case 'pivotNormalizedColumn':\n return pivotChartMenuItem('normalizedColumn', '100% Stacked‎', 'normalizedColumn');\n\n case 'rangeColumnChart':\n return {\n name: localeTextFunc('columnChart', 'Column'),\n subMenu: ['rangeGroupedColumn', 'rangeStackedColumn', 'rangeNormalizedColumn']\n };\n\n case 'rangeGroupedColumn':\n return rangeChartMenuItem('groupedColumn', 'Grouped‎', 'groupedColumn');\n\n case 'rangeStackedColumn':\n return rangeChartMenuItem('stackedColumn', 'Stacked‎', 'stackedColumn');\n\n case 'rangeNormalizedColumn':\n return rangeChartMenuItem('normalizedColumn', '100% Stacked‎', 'normalizedColumn');\n\n case 'pivotBarChart':\n return {\n name: localeTextFunc('barChart', 'Bar'),\n subMenu: ['pivotGroupedBar', 'pivotStackedBar', 'pivotNormalizedBar']\n };\n\n case 'pivotGroupedBar':\n return pivotChartMenuItem('groupedBar', 'Grouped‎', 'groupedBar');\n\n case 'pivotStackedBar':\n return pivotChartMenuItem('stackedBar', 'Stacked‎', 'stackedBar');\n\n case 'pivotNormalizedBar':\n return pivotChartMenuItem('normalizedBar', '100% Stacked‎', 'normalizedBar');\n\n case 'rangeBarChart':\n return {\n name: localeTextFunc('barChart', 'Bar'),\n subMenu: ['rangeGroupedBar', 'rangeStackedBar', 'rangeNormalizedBar']\n };\n\n case 'rangeGroupedBar':\n return rangeChartMenuItem('groupedBar', 'Grouped‎', 'groupedBar');\n\n case 'rangeStackedBar':\n return rangeChartMenuItem('stackedBar', 'Stacked‎', 'stackedBar');\n\n case 'rangeNormalizedBar':\n return rangeChartMenuItem('normalizedBar', '100% Stacked‎', 'normalizedBar');\n\n case 'pivotPieChart':\n return {\n name: localeTextFunc('pieChart', 'Pie'),\n subMenu: ['pivotPie', 'pivotDoughnut']\n };\n\n case 'pivotPie':\n return pivotChartMenuItem('pie', 'Pie‎', 'pie');\n\n case 'pivotDoughnut':\n return pivotChartMenuItem('doughnut', 'Doughnut‎', 'doughnut');\n\n case 'rangePieChart':\n return {\n name: localeTextFunc('pieChart', 'Pie'),\n subMenu: ['rangePie', 'rangeDoughnut']\n };\n\n case 'rangePie':\n return rangeChartMenuItem('pie', 'Pie‎', 'pie');\n\n case 'rangeDoughnut':\n return rangeChartMenuItem('doughnut', 'Doughnut‎', 'doughnut');\n\n case 'pivotLineChart':\n return pivotChartMenuItem('line', 'Line‎', 'line');\n\n case 'rangeLineChart':\n return rangeChartMenuItem('line', 'Line‎', 'line');\n\n case 'pivotXYChart':\n return {\n name: localeTextFunc('xyChart', 'X Y (Scatter)'),\n subMenu: ['pivotScatter', 'pivotBubble']\n };\n\n case 'pivotScatter':\n return pivotChartMenuItem('scatter', 'Scatter‎', 'scatter');\n\n case 'pivotBubble':\n return pivotChartMenuItem('bubble', 'Bubble‎', 'bubble');\n\n case 'rangeXYChart':\n return {\n name: localeTextFunc('xyChart', 'X Y (Scatter)'),\n subMenu: ['rangeScatter', 'rangeBubble']\n };\n\n case 'rangeScatter':\n return rangeChartMenuItem('scatter', 'Scatter‎', 'scatter');\n\n case 'rangeBubble':\n return rangeChartMenuItem('bubble', 'Bubble‎', 'bubble');\n\n case 'pivotAreaChart':\n return {\n name: localeTextFunc('areaChart', 'Area'),\n subMenu: ['pivotArea', 'pivotStackedArea', 'pivotNormalizedArea']\n };\n\n case 'pivotArea':\n return pivotChartMenuItem('area', 'Area‎', 'area');\n\n case 'pivotStackedArea':\n return pivotChartMenuItem('stackedArea', 'Stacked‎', 'stackedArea');\n\n case 'pivotNormalizedArea':\n return pivotChartMenuItem('normalizedArea', '100% Stacked‎', 'normalizedArea');\n\n case 'rangeAreaChart':\n return {\n name: localeTextFunc('areaChart', 'Area'),\n subMenu: ['rangeArea', 'rangeStackedArea', 'rangeNormalizedArea']\n };\n\n case 'rangeArea':\n return rangeChartMenuItem('area', 'Area‎', 'area');\n\n case 'rangeStackedArea':\n return rangeChartMenuItem('stackedArea', 'Stacked‎', 'stackedArea');\n\n case 'rangeNormalizedArea':\n return rangeChartMenuItem('normalizedArea', '100% Stacked‎', 'normalizedArea');\n\n case 'rangeHistogramChart':\n return rangeChartMenuItem('histogramChart', 'Histogram‎', 'histogram');\n\n case 'rangeColumnLineCombo':\n return rangeChartMenuItem('columnLineCombo', 'Column & Line‎', 'columnLineCombo');\n\n case 'rangeAreaColumnCombo':\n return rangeChartMenuItem('AreaColumnCombo', 'Area & Column‎', 'areaColumnCombo');\n\n case 'rangeCombinationChart':\n return {\n name: localeTextFunc('combinationChart', 'Combination'),\n subMenu: ['rangeColumnLineCombo', 'rangeAreaColumnCombo']\n };\n\n default:\n return null;\n }\n };\n\n MenuItemMapper.prototype.createAggregationSubMenu = function (column) {\n var _this = this;\n\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n var columnIsAlreadyAggValue = column.isValueActive();\n var funcNames = this.aggFuncService.getFuncNames(column);\n var columnToUse;\n\n if (column.isPrimary()) {\n columnToUse = column;\n } else {\n var pivotValueColumn = column.getColDef().pivotValueColumn;\n columnToUse = _.exists(pivotValueColumn) ? pivotValueColumn : undefined;\n }\n\n var result = [];\n funcNames.forEach(function (funcName) {\n result.push({\n name: localeTextFunc(funcName, funcName),\n action: function action() {\n _this.columnModel.setColumnAggFunc(columnToUse, funcName, \"contextMenu\");\n\n _this.columnModel.addValueColumn(columnToUse, \"contextMenu\");\n },\n checked: columnIsAlreadyAggValue && columnToUse.getAggFunc() === funcName\n });\n });\n return result;\n };\n\n __decorate$w([Autowired('columnModel')], MenuItemMapper.prototype, \"columnModel\", void 0);\n\n __decorate$w([Autowired('gridApi')], MenuItemMapper.prototype, \"gridApi\", void 0);\n\n __decorate$w([Optional('clipboardService')], MenuItemMapper.prototype, \"clipboardService\", void 0);\n\n __decorate$w([Optional('aggFuncService')], MenuItemMapper.prototype, \"aggFuncService\", void 0);\n\n __decorate$w([Optional('chartService')], MenuItemMapper.prototype, \"chartService\", void 0);\n\n MenuItemMapper = __decorate$w([Bean('menuItemMapper')], MenuItemMapper);\n return MenuItemMapper;\n}(BeanStub);\n\nvar MenuModule = {\n moduleName: ModuleNames.MenuModule,\n beans: [EnterpriseMenuFactory, ContextMenuFactory, MenuItemMapper],\n dependantModules: [EnterpriseCoreModule]\n};\n\nvar __extends$O = undefined && undefined.__extends || function () {\n var _extendStatics170 = function extendStatics(d, b) {\n _extendStatics170 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics170(d, b);\n };\n\n return function (d, b) {\n _extendStatics170(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$3 = undefined && undefined.__assign || function () {\n __assign$3 = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$3.apply(this, arguments);\n};\n\nvar __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar MultiFilter =\n/** @class */\nfunction (_super) {\n __extends$O(MultiFilter, _super);\n\n function MultiFilter() {\n var _this = _super.call(this,\n /* html */\n \"
\") || this;\n\n _this.filterDefs = [];\n _this.filters = [];\n _this.guiDestroyFuncs = [];\n _this.activeFilterIndices = [];\n _this.lastActivatedMenuItem = null;\n _this.afterFiltersReadyFuncs = [];\n return _this;\n }\n\n MultiFilter.prototype.postConstruct = function () {\n var _this = this;\n\n this.initialiseTabGuard({\n onFocusIn: function onFocusIn(e) {\n return _this.onFocusIn(e);\n }\n });\n };\n\n MultiFilter.getFilterDefs = function (params) {\n var filters = params.filters;\n return filters && filters.length > 0 ? filters : [{\n filter: 'agTextColumnFilter'\n }, {\n filter: 'agSetColumnFilter'\n }];\n };\n\n MultiFilter.prototype.init = function (params) {\n var _this = this;\n\n this.params = params;\n this.filterDefs = MultiFilter.getFilterDefs(params);\n var column = params.column,\n filterChangedCallback = params.filterChangedCallback;\n this.column = column;\n this.filterChangedCallback = filterChangedCallback;\n var filterPromises = [];\n this.filterDefs.forEach(function (filterDef, index) {\n var filterPromise = _this.createFilter(filterDef, index);\n\n if (filterPromise != null) {\n filterPromises.push(filterPromise);\n }\n }); // we have to refresh the GUI here to ensure that Angular components are not rendered in odd places\n\n return AgPromise.all(filterPromises).then(function (filters) {\n _this.filters = filters;\n\n _this.refreshGui('columnMenu');\n\n _this.afterFiltersReadyFuncs.forEach(function (f) {\n return f();\n });\n\n _this.afterFiltersReadyFuncs.length = 0;\n });\n };\n\n MultiFilter.prototype.refreshGui = function (container) {\n var _this = this;\n\n if (container === this.lastOpenedInContainer) {\n return;\n }\n\n this.removeAllChildrenExceptTabGuards();\n this.destroyChildren();\n this.filters.forEach(function (filter, index) {\n if (index > 0) {\n _this.appendChild(_.loadTemplate(\n /* html */\n \"
\"));\n }\n\n var filterDef = _this.filterDefs[index];\n\n var filterTitle = _this.getFilterTitle(filter, filterDef);\n\n var filterGui;\n\n if (filterDef.display === 'subMenu' && container !== 'toolPanel') {\n // prevent sub-menu being used in tool panel\n var menuItem = _this.insertFilterMenu(filter, filterTitle);\n\n filterGui = menuItem.getGui();\n } else if (filterDef.display === 'subMenu' || filterDef.display === 'accordion') {\n // sub-menus should appear as groups in the tool panel\n var group = _this.insertFilterGroup(filter, filterTitle);\n\n filterGui = group.getGui();\n } else {\n // display inline\n filterGui = filter.getGui();\n }\n\n _this.appendChild(filterGui);\n });\n this.lastOpenedInContainer = container;\n };\n\n MultiFilter.prototype.getFilterTitle = function (filter, filterDef) {\n if (filterDef.title != null) {\n return filterDef.title;\n }\n\n var filterWithoutType = filter;\n return typeof filterWithoutType.getFilterTitle === 'function' ? filterWithoutType.getFilterTitle() : 'Filter';\n };\n\n MultiFilter.prototype.destroyChildren = function () {\n this.guiDestroyFuncs.forEach(function (func) {\n return func();\n });\n this.guiDestroyFuncs.length = 0;\n };\n\n MultiFilter.prototype.insertFilterMenu = function (filter, name) {\n var _this = this;\n\n var menuItem = this.createBean(new AgMenuItemComponent({\n name: name,\n subMenu: filter,\n cssClasses: ['ag-multi-filter-menu-item'],\n isCompact: true,\n isAnotherSubMenuOpen: function isAnotherSubMenuOpen() {\n return false;\n }\n }));\n menuItem.setParentComponent(this);\n this.guiDestroyFuncs.push(function () {\n return _this.destroyBean(menuItem);\n });\n this.addManagedListener(menuItem, AgMenuItemComponent.EVENT_MENU_ITEM_ACTIVATED, function (event) {\n if (_this.lastActivatedMenuItem && _this.lastActivatedMenuItem !== event.menuItem) {\n _this.lastActivatedMenuItem.deactivate();\n }\n\n _this.lastActivatedMenuItem = event.menuItem;\n });\n menuItem.addGuiEventListener('focusin', function () {\n return menuItem.activate();\n });\n menuItem.addGuiEventListener('focusout', function () {\n if (!menuItem.isSubMenuOpen()) {\n menuItem.deactivate();\n }\n });\n return menuItem;\n };\n\n MultiFilter.prototype.insertFilterGroup = function (filter, title) {\n var _this = this;\n\n var group = this.createBean(new AgGroupComponent({\n title: title,\n cssIdentifier: 'multi-filter'\n }));\n this.guiDestroyFuncs.push(function () {\n return _this.destroyBean(group);\n });\n group.addItem(filter.getGui());\n group.toggleGroupExpand(false);\n\n if (filter.afterGuiAttached) {\n var params_1 = {\n container: this.lastOpenedInContainer,\n suppressFocus: true\n };\n group.addManagedListener(group, AgGroupComponent.EVENT_EXPANDED, function () {\n return filter.afterGuiAttached(params_1);\n });\n }\n\n return group;\n };\n\n MultiFilter.prototype.isFilterActive = function () {\n return this.filters.some(function (filter) {\n return filter.isFilterActive();\n });\n };\n\n MultiFilter.prototype.getLastActiveFilterIndex = function () {\n return this.activeFilterIndices.length > 0 ? this.activeFilterIndices[this.activeFilterIndices.length - 1] : null;\n };\n\n MultiFilter.prototype.doesFilterPass = function (params, filterToSkip) {\n var rowPasses = true;\n this.filters.forEach(function (filter) {\n if (!rowPasses || filter === filterToSkip || !filter.isFilterActive()) {\n return;\n }\n\n rowPasses = filter.doesFilterPass(params);\n });\n return rowPasses;\n };\n\n MultiFilter.prototype.getFilterType = function () {\n return 'multi';\n };\n\n MultiFilter.prototype.getModelFromUi = function () {\n var model = {\n filterType: this.getFilterType(),\n filterModels: this.filters.map(function (filter) {\n var providedFilter = filter;\n\n if (typeof providedFilter.getModelFromUi === 'function') {\n return providedFilter.getModelFromUi();\n }\n\n return null;\n })\n };\n return model;\n };\n\n MultiFilter.prototype.getModel = function () {\n if (!this.isFilterActive()) {\n return null;\n }\n\n var model = {\n filterType: this.getFilterType(),\n filterModels: this.filters.map(function (filter) {\n if (filter.isFilterActive()) {\n return filter.getModel();\n }\n\n return null;\n })\n };\n return model;\n };\n\n MultiFilter.prototype.setModel = function (model) {\n var _this = this;\n\n var setFilterModel = function setFilterModel(filter, filterModel) {\n return new AgPromise(function (resolve) {\n var promise = filter.setModel(filterModel);\n promise ? promise.then(function () {\n return resolve();\n }) : resolve();\n });\n };\n\n var promises = [];\n\n if (model == null) {\n promises = this.filters.map(function (filter, index) {\n var res = setFilterModel(filter, null);\n\n _this.updateActiveList(index);\n\n return res;\n });\n } else {\n this.filters.forEach(function (filter, index) {\n var filterModel = model.filterModels.length > index ? model.filterModels[index] : null;\n var res = setFilterModel(filter, filterModel);\n promises.push(res);\n\n _this.updateActiveList(index);\n });\n }\n\n return AgPromise.all(promises).then(function () {});\n };\n\n MultiFilter.prototype.applyModel = function () {\n var result = false;\n this.filters.forEach(function (filter) {\n if (filter instanceof ProvidedFilter) {\n result = filter.applyModel() || result;\n }\n });\n return result;\n };\n\n MultiFilter.prototype.getChildFilterInstance = function (index) {\n return this.filters[index];\n };\n\n MultiFilter.prototype.afterGuiAttached = function (params) {\n if (params) {\n this.refreshGui(params.container);\n }\n\n var filters = this.params.filters;\n var suppressFocus = filters && filters.some(function (filter) {\n return filter.display && filter.display !== 'inline';\n });\n this.executeFunctionIfExists('afterGuiAttached', __assign$3(__assign$3({}, params || {}), {\n suppressFocus: suppressFocus\n }));\n var eDocument = this.gridOptionsWrapper.getDocument();\n var activeEl = eDocument.activeElement; // if suppress focus is true, we might run into two scenarios:\n // 1 - we are loading the filter for the first time and the component isn't ready,\n // which means the document will have focus.\n // 2 - The focus will be somewhere inside the component due to auto focus\n // In both cases we need to force the focus somewhere valid but outside the filter.\n\n if (suppressFocus && (activeEl === eDocument.body || this.getGui().contains(activeEl))) {\n // reset focus to the top of the container, and blur\n this.forceFocusOutOfContainer(true);\n }\n };\n\n MultiFilter.prototype.onAnyFilterChanged = function () {\n this.executeFunctionIfExists('onAnyFilterChanged');\n };\n\n MultiFilter.prototype.onNewRowsLoaded = function () {\n this.executeFunctionIfExists('onNewRowsLoaded');\n };\n\n MultiFilter.prototype.destroy = function () {\n var _this = this;\n\n this.filters.forEach(function (filter) {\n filter.setModel(null);\n\n _this.destroyBean(filter);\n });\n this.filters.length = 0;\n this.destroyChildren();\n\n _super.prototype.destroy.call(this);\n };\n\n MultiFilter.prototype.executeFunctionIfExists = function (name) {\n var params = [];\n\n for (var _i = 1; _i < arguments.length; _i++) {\n params[_i - 1] = arguments[_i];\n } // The first filter is always the \"dominant\" one. By iterating in reverse order we ensure the first filter\n // always gets the last say\n\n\n _.forEachReverse(this.filters, function (filter) {\n var func = filter[name];\n\n if (typeof func === 'function') {\n func.apply(filter, params);\n }\n });\n };\n\n MultiFilter.prototype.createFilter = function (filterDef, index) {\n var _this = this;\n\n var _a = this.params,\n filterModifiedCallback = _a.filterModifiedCallback,\n _doesRowPassOtherFilter = _a.doesRowPassOtherFilter;\n var filterInstance;\n\n var filterParams = __assign$3(__assign$3({}, this.filterManager.createFilterParams(this.column, this.column.getColDef())), {\n filterModifiedCallback: filterModifiedCallback,\n filterChangedCallback: function filterChangedCallback(additionalEventAttributes) {\n _this.executeWhenAllFiltersReady(function () {\n return _this.filterChanged(index, additionalEventAttributes);\n });\n },\n doesRowPassOtherFilter: function doesRowPassOtherFilter(node) {\n return _doesRowPassOtherFilter(node) && _this.doesFilterPass({\n node: node,\n data: node.data\n }, filterInstance);\n }\n });\n\n var compDetails = this.userComponentFactory.getFilterDetails(filterDef, filterParams, 'agTextColumnFilter');\n\n if (!compDetails) {\n return null;\n }\n\n var filterPromise = compDetails.newAgStackInstance();\n\n if (filterPromise) {\n filterPromise.then(function (filter) {\n return filterInstance = filter;\n });\n }\n\n return filterPromise;\n };\n\n MultiFilter.prototype.executeWhenAllFiltersReady = function (action) {\n if (this.filters && this.filters.length > 0) {\n action();\n } else {\n this.afterFiltersReadyFuncs.push(action);\n }\n };\n\n MultiFilter.prototype.updateActiveList = function (index) {\n var changedFilter = this.filters[index];\n\n _.removeFromArray(this.activeFilterIndices, index);\n\n if (changedFilter.isFilterActive()) {\n this.activeFilterIndices.push(index);\n }\n };\n\n MultiFilter.prototype.filterChanged = function (index, additionalEventAttributes) {\n this.updateActiveList(index);\n this.filterChangedCallback(additionalEventAttributes);\n var changedFilter = this.filters[index];\n this.filters.forEach(function (filter) {\n if (filter === changedFilter) {\n return;\n }\n\n if (typeof filter.onAnyFilterChanged === 'function') {\n filter.onAnyFilterChanged();\n }\n });\n };\n\n MultiFilter.prototype.onFocusIn = function (e) {\n if (this.lastActivatedMenuItem != null && !this.lastActivatedMenuItem.getGui().contains(e.target)) {\n this.lastActivatedMenuItem.deactivate();\n this.lastActivatedMenuItem = null;\n }\n\n return true;\n };\n\n __decorate$v([Autowired('filterManager')], MultiFilter.prototype, \"filterManager\", void 0);\n\n __decorate$v([Autowired('userComponentFactory')], MultiFilter.prototype, \"userComponentFactory\", void 0);\n\n __decorate$v([PostConstruct], MultiFilter.prototype, \"postConstruct\", null);\n\n return MultiFilter;\n}(TabGuardComp);\n\nvar __extends$N = undefined && undefined.__extends || function () {\n var _extendStatics171 = function extendStatics(d, b) {\n _extendStatics171 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics171(d, b);\n };\n\n return function (d, b) {\n _extendStatics171(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign$2 = undefined && undefined.__assign || function () {\n __assign$2 = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$2.apply(this, arguments);\n};\n\nvar __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar MultiFloatingFilterComp =\n/** @class */\nfunction (_super) {\n __extends$N(MultiFloatingFilterComp, _super);\n\n function MultiFloatingFilterComp() {\n var _this = _super.call(this,\n /* html */\n \"
\") || this;\n\n _this.floatingFilters = [];\n return _this;\n }\n\n MultiFloatingFilterComp.prototype.init = function (params) {\n var _this = this;\n\n this.params = params;\n var filterParams = params.filterParams;\n var floatingFilterPromises = [];\n MultiFilter.getFilterDefs(filterParams).forEach(function (filterDef, index) {\n var floatingFilterParams = __assign$2(__assign$2({}, params), {\n // set the parent filter instance for each floating filter to the relevant child filter instance\n parentFilterInstance: function parentFilterInstance(callback) {\n _this.parentMultiFilterInstance(function (parent) {\n var child = parent.getChildFilterInstance(index);\n\n if (child == null) {\n return;\n }\n\n callback(child);\n });\n }\n });\n\n var floatingFilterPromise = _this.createFloatingFilter(filterDef, floatingFilterParams);\n\n if (floatingFilterPromise != null) {\n floatingFilterPromises.push(floatingFilterPromise);\n }\n });\n return AgPromise.all(floatingFilterPromises).then(function (floatingFilters) {\n floatingFilters.forEach(function (floatingFilter, index) {\n _this.floatingFilters.push(floatingFilter);\n\n var gui = floatingFilter.getGui();\n\n _this.appendChild(gui);\n\n if (index > 0) {\n _.setDisplayed(gui, false);\n }\n });\n });\n };\n\n MultiFloatingFilterComp.prototype.onParentModelChanged = function (model, event) {\n var _this = this; // We don't want to update the floating filter if the floating filter caused the change,\n // because the UI is already in sync. if we didn't do this, the UI would behave strangely\n // as it would be updating as the user is typing\n\n\n if (event && event.afterFloatingFilter) {\n return;\n }\n\n this.parentMultiFilterInstance(function (parent) {\n if (model == null) {\n _this.floatingFilters.forEach(function (filter, i) {\n filter.onParentModelChanged(null, event);\n\n _.setDisplayed(filter.getGui(), i === 0);\n });\n } else {\n var lastActiveFloatingFilterIndex_1 = parent.getLastActiveFilterIndex();\n\n _this.floatingFilters.forEach(function (filter, i) {\n var filterModel = model.filterModels.length > i ? model.filterModels[i] : null;\n filter.onParentModelChanged(filterModel, event);\n var shouldShow = lastActiveFloatingFilterIndex_1 == null ? i === 0 : i === lastActiveFloatingFilterIndex_1;\n\n _.setDisplayed(filter.getGui(), shouldShow);\n });\n }\n });\n };\n\n MultiFloatingFilterComp.prototype.destroy = function () {\n this.destroyBeans(this.floatingFilters);\n this.floatingFilters.length = 0;\n\n _super.prototype.destroy.call(this);\n };\n\n MultiFloatingFilterComp.prototype.createFloatingFilter = function (filterDef, params) {\n var defaultComponentName = this.userComponentFactory.getDefaultFloatingFilterType(filterDef) || 'agTextColumnFloatingFilter';\n var compDetails = this.userComponentFactory.getFloatingFilterCompDetails(filterDef, params, defaultComponentName);\n return compDetails ? compDetails.newAgStackInstance() : null;\n };\n\n MultiFloatingFilterComp.prototype.parentMultiFilterInstance = function (cb) {\n this.params.parentFilterInstance(function (parent) {\n if (!(parent instanceof MultiFilter)) {\n throw new Error('AG Grid - MultiFloatingFilterComp expects MultiFilter as it\\'s parent');\n }\n\n cb(parent);\n });\n };\n\n __decorate$u([Autowired('userComponentFactory')], MultiFloatingFilterComp.prototype, \"userComponentFactory\", void 0);\n\n return MultiFloatingFilterComp;\n}(Component);\n\nvar MultiFilterModule = {\n moduleName: ModuleNames.MultiFilterModule,\n beans: [],\n userComponents: [{\n componentName: 'agMultiColumnFilter',\n componentClass: MultiFilter\n }, {\n componentName: 'agMultiColumnFloatingFilter',\n componentClass: MultiFloatingFilterComp\n }],\n dependantModules: [EnterpriseCoreModule]\n};\n\nvar __extends$M = undefined && undefined.__extends || function () {\n var _extendStatics172 = function extendStatics(d, b) {\n _extendStatics172 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics172(d, b);\n };\n\n return function (d, b) {\n _extendStatics172(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar RichSelectRow =\n/** @class */\nfunction (_super) {\n __extends$M(RichSelectRow, _super);\n\n function RichSelectRow(params) {\n var _this = _super.call(this,\n /* html */\n \"
\") || this;\n\n _this.params = params;\n return _this;\n }\n\n RichSelectRow.prototype.setState = function (value, valueFormatted, selected) {\n var rendererSuccessful = this.populateWithRenderer(value, valueFormatted);\n\n if (!rendererSuccessful) {\n this.populateWithoutRenderer(value, valueFormatted);\n }\n\n this.updateSelected(selected);\n };\n\n RichSelectRow.prototype.updateSelected = function (selected) {\n this.addOrRemoveCssClass('ag-rich-select-row-selected', selected);\n };\n\n RichSelectRow.prototype.populateWithoutRenderer = function (value, valueFormatted) {\n var valueFormattedExits = valueFormatted !== null && valueFormatted !== undefined;\n var valueToRender = valueFormattedExits ? valueFormatted : value;\n\n if (_.exists(valueToRender) && valueToRender !== '') {\n // not using innerHTML to prevent injection of HTML\n // https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML#Security_considerations\n this.getGui().textContent = valueToRender.toString();\n } else {\n // putting in blank, so if missing, at least the user can click on it\n this.getGui().innerHTML = ' ';\n }\n };\n\n RichSelectRow.prototype.populateWithRenderer = function (value, valueFormatted) {\n var _this = this; // bad coder here - we are not populating all values of the cellRendererParams\n\n\n var params = {\n value: value,\n valueFormatted: valueFormatted,\n api: this.gridOptionsWrapper.getApi()\n };\n var compDetails = this.userComponentFactory.getCellRendererDetails(this.params, params);\n var cellRendererPromise = compDetails ? compDetails.newAgStackInstance() : undefined;\n\n if (cellRendererPromise != null) {\n _.bindCellRendererToHtmlElement(cellRendererPromise, this.getGui());\n } else {\n this.getGui().innerText = params.valueFormatted != null ? params.valueFormatted : params.value;\n }\n\n if (cellRendererPromise) {\n cellRendererPromise.then(function (childComponent) {\n _this.addDestroyFunc(function () {\n _this.getContext().destroyBean(childComponent);\n });\n });\n return true;\n }\n\n return false;\n };\n\n __decorate$t([Autowired('userComponentFactory')], RichSelectRow.prototype, \"userComponentFactory\", void 0);\n\n return RichSelectRow;\n}(Component);\n\nvar __extends$L = undefined && undefined.__extends || function () {\n var _extendStatics173 = function extendStatics(d, b) {\n _extendStatics173 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics173(d, b);\n };\n\n return function (d, b) {\n _extendStatics173(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar RichSelectCellEditor =\n/** @class */\nfunction (_super) {\n __extends$L(RichSelectCellEditor, _super);\n\n function RichSelectCellEditor() {\n var _this = _super.call(this, RichSelectCellEditor.TEMPLATE) || this;\n\n _this.selectionConfirmed = false;\n _this.searchString = '';\n return _this;\n }\n\n RichSelectCellEditor.prototype.init = function (params) {\n this.params = params;\n this.selectedValue = params.value;\n this.originalSelectedValue = params.value;\n this.focusAfterAttached = params.cellStartedEdit;\n\n var icon = _.createIconNoSpan('smallDown', this.gridOptionsWrapper);\n\n icon.classList.add('ag-rich-select-value-icon');\n this.eValue.appendChild(icon);\n this.virtualList = this.getContext().createBean(new VirtualList('rich-select'));\n this.virtualList.setComponentCreator(this.createRowComponent.bind(this));\n this.eList.appendChild(this.virtualList.getGui());\n\n if (_.exists(this.params.cellHeight)) {\n this.virtualList.setRowHeight(this.params.cellHeight);\n }\n\n this.renderSelectedValue();\n\n if (_.missing(params.values)) {\n console.warn('AG Grid: richSelectCellEditor requires values for it to work');\n return;\n }\n\n var values = params.values;\n this.virtualList.setModel({\n getRowCount: function getRowCount() {\n return values.length;\n },\n getRow: function getRow(index) {\n return values[index];\n }\n });\n this.addGuiEventListener('keydown', this.onKeyDown.bind(this));\n var virtualListGui = this.virtualList.getGui();\n this.addManagedListener(virtualListGui, 'click', this.onClick.bind(this));\n this.addManagedListener(virtualListGui, 'mousemove', this.onMouseMove.bind(this));\n var debounceDelay = _.exists(params.searchDebounceDelay) ? params.searchDebounceDelay : 300;\n this.clearSearchString = _.debounce(this.clearSearchString, debounceDelay);\n\n if (_.exists(params.charPress)) {\n this.searchText(params.charPress);\n }\n };\n\n RichSelectCellEditor.prototype.onKeyDown = function (event) {\n var key = event.key;\n event.preventDefault();\n\n switch (key) {\n case KeyCode.ENTER:\n this.onEnterKeyDown();\n break;\n\n case KeyCode.TAB:\n this.confirmSelection();\n break;\n\n case KeyCode.DOWN:\n case KeyCode.UP:\n this.onNavigationKeyPressed(event, key);\n break;\n\n default:\n this.searchText(event);\n }\n };\n\n RichSelectCellEditor.prototype.confirmSelection = function () {\n this.selectionConfirmed = true;\n };\n\n RichSelectCellEditor.prototype.onEnterKeyDown = function () {\n this.confirmSelection();\n this.params.stopEditing();\n };\n\n RichSelectCellEditor.prototype.onNavigationKeyPressed = function (event, key) {\n // if we don't preventDefault the page body and/or grid scroll will move.\n event.preventDefault();\n var oldIndex = this.params.values.indexOf(this.selectedValue);\n var newIndex = key === KeyCode.UP ? oldIndex - 1 : oldIndex + 1;\n\n if (newIndex >= 0 && newIndex < this.params.values.length) {\n var valueToSelect = this.params.values[newIndex];\n this.setSelectedValue(valueToSelect);\n }\n };\n\n RichSelectCellEditor.prototype.searchText = function (key) {\n if (typeof key !== 'string') {\n var keyString = key.key;\n\n if (keyString === KeyCode.BACKSPACE) {\n this.searchString = this.searchString.slice(0, -1);\n keyString = '';\n } else if (!_.isEventFromPrintableCharacter(key)) {\n return;\n }\n\n this.searchText(keyString);\n return;\n }\n\n this.searchString += key;\n this.runSearch();\n this.clearSearchString();\n };\n\n RichSelectCellEditor.prototype.runSearch = function () {\n var _this = this;\n\n var values = this.params.values;\n var searchStrings;\n\n if (typeof values[0] === 'number' || typeof values[0] === 'string') {\n searchStrings = values.map(String);\n }\n\n if (typeof values[0] === 'object' && this.params.colDef.keyCreator) {\n searchStrings = values.map(function (value) {\n var keyParams = {\n value: value,\n colDef: _this.params.colDef,\n column: _this.params.column,\n node: _this.params.node,\n data: _this.params.data,\n api: _this.gridOptionsWrapper.getApi(),\n columnApi: _this.gridOptionsWrapper.getColumnApi(),\n context: _this.gridOptionsWrapper.getContext()\n };\n return _this.params.colDef.keyCreator(keyParams);\n });\n }\n\n if (!searchStrings) {\n return;\n }\n\n var topSuggestion = _.fuzzySuggestions(this.searchString, searchStrings, true, true)[0];\n\n if (!topSuggestion) {\n return;\n }\n\n var topSuggestionIndex = searchStrings.indexOf(topSuggestion);\n var topValue = values[topSuggestionIndex];\n this.setSelectedValue(topValue);\n };\n\n RichSelectCellEditor.prototype.clearSearchString = function () {\n this.searchString = '';\n };\n\n RichSelectCellEditor.prototype.renderSelectedValue = function () {\n var _this = this;\n\n var valueFormatted = this.params.formatValue(this.selectedValue);\n var eValue = this.eValue;\n var params = {\n value: this.selectedValue,\n valueFormatted: valueFormatted,\n api: this.gridOptionsWrapper.getApi()\n };\n var compDetails = this.userComponentFactory.getCellRendererDetails(this.params, params);\n var promise = compDetails ? compDetails.newAgStackInstance() : undefined;\n\n if (promise) {\n _.bindCellRendererToHtmlElement(promise, eValue);\n\n promise.then(function (renderer) {\n _this.addDestroyFunc(function () {\n return _this.getContext().destroyBean(renderer);\n });\n });\n } else {\n if (_.exists(this.selectedValue)) {\n eValue.innerHTML = valueFormatted;\n } else {\n _.clearElement(eValue);\n }\n }\n };\n\n RichSelectCellEditor.prototype.setSelectedValue = function (value) {\n if (this.selectedValue === value) {\n return;\n }\n\n var index = this.params.values.indexOf(value);\n\n if (index === -1) {\n return;\n }\n\n this.selectedValue = value;\n this.virtualList.ensureIndexVisible(index);\n this.virtualList.forEachRenderedRow(function (cmp, idx) {\n cmp.updateSelected(index === idx);\n });\n this.virtualList.focusRow(index);\n };\n\n RichSelectCellEditor.prototype.createRowComponent = function (value) {\n var valueFormatted = this.params.formatValue(value);\n var row = new RichSelectRow(this.params);\n this.getContext().createBean(row);\n row.setState(value, valueFormatted, value === this.selectedValue);\n return row;\n };\n\n RichSelectCellEditor.prototype.onMouseMove = function (mouseEvent) {\n var rect = this.virtualList.getGui().getBoundingClientRect();\n var scrollTop = this.virtualList.getScrollTop();\n var mouseY = mouseEvent.clientY - rect.top + scrollTop;\n var row = Math.floor(mouseY / this.virtualList.getRowHeight());\n var value = this.params.values[row]; // not using utils.exist() as want empty string test to pass\n\n if (value !== undefined) {\n this.setSelectedValue(value);\n }\n };\n\n RichSelectCellEditor.prototype.onClick = function () {\n this.confirmSelection();\n this.params.stopEditing();\n }; // we need to have the gui attached before we can draw the virtual rows, as the\n // virtual row logic needs info about the gui state\n\n\n RichSelectCellEditor.prototype.afterGuiAttached = function () {\n var selectedIndex = this.params.values.indexOf(this.selectedValue); // we have to call this here to get the list to have the right height, ie\n // otherwise it would not have scrolls yet and ensureIndexVisible would do nothing\n\n this.virtualList.refresh();\n\n if (selectedIndex >= 0) {\n this.virtualList.ensureIndexVisible(selectedIndex);\n } // we call refresh again, as the list could of moved, and we need to render the new rows\n\n\n this.virtualList.refresh();\n\n if (this.focusAfterAttached) {\n var indexToSelect = selectedIndex !== -1 ? selectedIndex : 0;\n\n if (this.params.values.length) {\n this.virtualList.focusRow(indexToSelect);\n } else {\n this.getGui().focus();\n }\n }\n };\n\n RichSelectCellEditor.prototype.getValue = function () {\n // NOTE: we don't use valueParser for Set Filter. The user should provide values that are to be\n // set into the data. valueParser only really makese sense when the user is typing in text (not picking\n // form a set).\n return this.selectionConfirmed ? this.selectedValue : this.originalSelectedValue;\n }; // tab index is needed so we can focus, which is needed for keyboard events\n\n\n RichSelectCellEditor.TEMPLATE = \"
\\n
\\n
\\n
\";\n\n __decorate$s([Autowired('userComponentFactory')], RichSelectCellEditor.prototype, \"userComponentFactory\", void 0);\n\n __decorate$s([RefSelector('eValue')], RichSelectCellEditor.prototype, \"eValue\", void 0);\n\n __decorate$s([RefSelector('eList')], RichSelectCellEditor.prototype, \"eList\", void 0);\n\n return RichSelectCellEditor;\n}(PopupComponent);\n\nvar RichSelectModule = {\n moduleName: ModuleNames.RichSelectModule,\n beans: [],\n userComponents: [{\n componentName: 'agRichSelect',\n componentClass: RichSelectCellEditor\n }, {\n componentName: 'agRichSelectCellEditor',\n componentClass: RichSelectCellEditor\n }],\n dependantModules: [EnterpriseCoreModule]\n};\n\nvar __extends$K = undefined && undefined.__extends || function () {\n var _extendStatics174 = function extendStatics(d, b) {\n _extendStatics174 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics174(d, b);\n };\n\n return function (d, b) {\n _extendStatics174(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ServerSideRowModel =\n/** @class */\nfunction (_super) {\n __extends$K(ServerSideRowModel, _super);\n\n function ServerSideRowModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.pauseStoreUpdateListening = false;\n _this.started = false;\n return _this;\n } // we don't implement as lazy row heights is not supported in this row model\n\n\n ServerSideRowModel.prototype.ensureRowHeightsValid = function () {\n return false;\n };\n\n ServerSideRowModel.prototype.start = function () {\n this.started = true;\n var datasource = this.gridOptionsWrapper.getServerSideDatasource();\n\n if (datasource) {\n this.setDatasource(datasource);\n }\n };\n\n ServerSideRowModel.prototype.destroyDatasource = function () {\n if (!this.datasource) {\n return;\n }\n\n if (this.datasource.destroy) {\n this.datasource.destroy();\n }\n\n this.rowRenderer.datasourceChanged();\n this.datasource = undefined;\n };\n\n ServerSideRowModel.prototype.addEventListeners = function () {\n this.addManagedListener(this.eventService, Events.EVENT_NEW_COLUMNS_LOADED, this.onColumnEverything.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_STORE_UPDATED, this.onStoreUpdated.bind(this));\n var resetListener = this.resetRootStore.bind(this);\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_VALUE_CHANGED, resetListener);\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_CHANGED, resetListener);\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_ROW_GROUP_CHANGED, resetListener);\n this.addManagedListener(this.eventService, Events.EVENT_COLUMN_PIVOT_MODE_CHANGED, resetListener);\n this.verifyProps();\n };\n\n ServerSideRowModel.prototype.verifyProps = function () {\n if (this.gridOptionsWrapper.getInitialGroupOrderComparator() != null) {\n var message_1 = \"AG Grid: initialGroupOrderComparator cannot be used with Server Side Row Model. If using Full Store, then provide the rows to the grid in the desired sort order. If using Infinite Scroll, then sorting is done on the server side, nothing to do with the client.\";\n\n _.doOnce(function () {\n return console.warn(message_1);\n }, 'SSRM.InitialGroupOrderComparator');\n }\n\n if (this.gridOptionsWrapper.isRowSelection() && this.gridOptionsWrapper.getRowIdFunc() == null) {\n var message_2 = \"AG Grid: getRowId callback must be provided for Server Side Row Model selection to work correctly.\";\n\n _.doOnce(function () {\n return console.warn(message_2);\n }, 'SSRM.SelectionNeedsRowNodeIdFunc');\n }\n };\n\n ServerSideRowModel.prototype.setDatasource = function (datasource) {\n // sometimes React, due to async, can call gridApi.setDatasource() before we have started.\n // this happens when React app does this:\n // useEffect(() => setDatasource(ds), []);\n // thus if we set the datasource before the grid UI has finished initialising, we do not set it,\n // and the ssrm.start() method will set the datasoure when the grid is ready.\n if (!this.started) {\n return;\n }\n\n this.destroyDatasource();\n this.datasource = datasource;\n this.resetRootStore();\n };\n\n ServerSideRowModel.prototype.isLastRowIndexKnown = function () {\n var cache = this.getRootStore();\n\n if (!cache) {\n return false;\n }\n\n return cache.isLastRowIndexKnown();\n };\n\n ServerSideRowModel.prototype.onColumnEverything = function () {\n // this is a hack for one customer only, so they can suppress the resetting of the columns.\n // The problem the customer had was they were api.setColumnDefs() after the data source came\n // back with data. So this stops the reload from the grid after the data comes back.\n // Once we have \"AG-1591 Allow delta changes to columns\" fixed, then this hack can be taken out.\n if (this.gridOptionsWrapper.isSuppressEnterpriseResetOnNewColumns()) {\n return;\n } // every other customer can continue as normal and have it working!!!\n // if first time, alwasy reset\n\n\n if (!this.storeParams) {\n this.resetRootStore();\n return;\n } // check if anything pertaining to fetching data has changed, and if it has, reset, but if\n // it has not, don't reset\n\n\n var rowGroupColumnVos = this.columnsToValueObjects(this.columnModel.getRowGroupColumns());\n var valueColumnVos = this.columnsToValueObjects(this.columnModel.getValueColumns());\n var pivotColumnVos = this.columnsToValueObjects(this.columnModel.getPivotColumns());\n var sortModelDifferent = !_.jsonEquals(this.storeParams.sortModel, this.sortController.getSortModel());\n var rowGroupDifferent = !_.jsonEquals(this.storeParams.rowGroupCols, rowGroupColumnVos);\n var pivotDifferent = !_.jsonEquals(this.storeParams.pivotCols, pivotColumnVos);\n var valuesDifferent = !_.jsonEquals(this.storeParams.valueCols, valueColumnVos);\n var resetRequired = sortModelDifferent || rowGroupDifferent || pivotDifferent || valuesDifferent;\n\n if (resetRequired) {\n this.resetRootStore();\n }\n };\n\n ServerSideRowModel.prototype.destroyRootStore = function () {\n if (!this.rootNode || !this.rootNode.childStore) {\n return;\n }\n\n this.rootNode.childStore = this.destroyBean(this.rootNode.childStore);\n this.nodeManager.clear();\n };\n\n ServerSideRowModel.prototype.refreshAfterSort = function (newSortModel, params) {\n if (this.storeParams) {\n this.storeParams.sortModel = newSortModel;\n }\n\n var rootStore = this.getRootStore();\n\n if (!rootStore) {\n return;\n }\n\n rootStore.refreshAfterSort(params);\n this.onStoreUpdated();\n };\n\n ServerSideRowModel.prototype.resetRootStore = function () {\n this.destroyRootStore();\n this.rootNode = new RowNode(this.beans);\n this.rootNode.group = true;\n this.rootNode.level = -1;\n\n if (this.datasource) {\n this.storeParams = this.createStoreParams();\n this.rootNode.childStore = this.createBean(this.storeFactory.createStore(this.storeParams, this.rootNode));\n this.updateRowIndexesAndBounds();\n } // this event shows/hides 'no rows' overlay\n\n\n var rowDataChangedEvent = {\n type: Events.EVENT_ROW_DATA_UPDATED\n };\n this.eventService.dispatchEvent(rowDataChangedEvent); // this gets the row to render rows (or remove the previously rendered rows, as it's blank to start).\n // important to NOT pass in an event with keepRenderedRows or animate, as we want the renderer\n // to treat the rows as new rows, as it's all new data\n\n this.dispatchModelUpdated(true);\n };\n\n ServerSideRowModel.prototype.columnsToValueObjects = function (columns) {\n var _this = this;\n\n return columns.map(function (col) {\n return {\n id: col.getId(),\n aggFunc: col.getAggFunc(),\n displayName: _this.columnModel.getDisplayNameForColumn(col, 'model'),\n field: col.getColDef().field\n };\n });\n };\n\n ServerSideRowModel.prototype.createStoreParams = function () {\n var rowGroupColumnVos = this.columnsToValueObjects(this.columnModel.getRowGroupColumns());\n var valueColumnVos = this.columnsToValueObjects(this.columnModel.getValueColumns());\n var pivotColumnVos = this.columnsToValueObjects(this.columnModel.getPivotColumns());\n var dynamicRowHeight = this.gridOptionsWrapper.isDynamicRowHeight();\n var params = {\n // the columns the user has grouped and aggregated by\n valueCols: valueColumnVos,\n rowGroupCols: rowGroupColumnVos,\n pivotCols: pivotColumnVos,\n pivotMode: this.columnModel.isPivotMode(),\n // sort and filter model\n filterModel: this.filterManager.getFilterModel(),\n sortModel: this.sortListener.extractSortModel(),\n datasource: this.datasource,\n lastAccessedSequence: new NumberSequence(),\n // blockSize: blockSize == null ? 100 : blockSize,\n dynamicRowHeight: dynamicRowHeight\n };\n return params;\n };\n\n ServerSideRowModel.prototype.getParams = function () {\n return this.storeParams;\n };\n\n ServerSideRowModel.prototype.dispatchModelUpdated = function (reset) {\n if (reset === void 0) {\n reset = false;\n }\n\n var modelUpdatedEvent = {\n type: Events.EVENT_MODEL_UPDATED,\n animate: !reset,\n keepRenderedRows: !reset,\n newPage: false,\n newData: false\n };\n this.eventService.dispatchEvent(modelUpdatedEvent);\n };\n\n ServerSideRowModel.prototype.onStoreUpdated = function () {\n // sometimes if doing a batch update, we do the batch first,\n // then call onStoreUpdated manually. eg expandAll() method.\n if (this.pauseStoreUpdateListening) {\n return;\n }\n\n this.updateRowIndexesAndBounds();\n this.dispatchModelUpdated();\n };\n\n ServerSideRowModel.prototype.onRowHeightChanged = function () {\n this.updateRowIndexesAndBounds();\n this.dispatchModelUpdated();\n };\n\n ServerSideRowModel.prototype.updateRowIndexesAndBounds = function () {\n var rootStore = this.getRootStore();\n\n if (!rootStore) {\n return;\n }\n\n rootStore.setDisplayIndexes(new NumberSequence(), {\n value: 0\n });\n };\n\n ServerSideRowModel.prototype.retryLoads = function () {\n var rootStore = this.getRootStore();\n\n if (!rootStore) {\n return;\n }\n\n rootStore.retryLoads();\n this.onStoreUpdated();\n };\n\n ServerSideRowModel.prototype.getRow = function (index) {\n var rootStore = this.getRootStore();\n\n if (!rootStore) {\n return undefined;\n }\n\n return rootStore.getRowUsingDisplayIndex(index);\n };\n\n ServerSideRowModel.prototype.expandAll = function (value) {\n // if we don't pause store updating, we are needlessly\n // recalculating row-indexes etc, and also getting rendering\n // engine to re-render (listens on ModelUpdated event)\n this.pauseStoreUpdateListening = true;\n this.forEachNode(function (node) {\n if (node.group && !node.stub) {\n node.setExpanded(value);\n }\n });\n this.pauseStoreUpdateListening = false;\n this.onStoreUpdated();\n };\n\n ServerSideRowModel.prototype.refreshAfterFilter = function (newFilterModel, params) {\n if (this.storeParams) {\n this.storeParams.filterModel = newFilterModel;\n }\n\n var rootStore = this.getRootStore();\n\n if (!rootStore) {\n return;\n }\n\n rootStore.refreshAfterFilter(params);\n this.onStoreUpdated();\n };\n\n ServerSideRowModel.prototype.getRootStore = function () {\n if (this.rootNode && this.rootNode.childStore) {\n return this.rootNode.childStore;\n }\n };\n\n ServerSideRowModel.prototype.getRowCount = function () {\n var rootStore = this.getRootStore();\n\n if (!rootStore) {\n return 0;\n }\n\n return rootStore.getDisplayIndexEnd();\n };\n\n ServerSideRowModel.prototype.getTopLevelRowCount = function () {\n var rootStore = this.getRootStore();\n\n if (!rootStore) {\n return 1;\n }\n\n return rootStore.getRowCount();\n };\n\n ServerSideRowModel.prototype.getTopLevelRowDisplayedIndex = function (topLevelIndex) {\n var rootStore = this.getRootStore();\n\n if (!rootStore) {\n return topLevelIndex;\n }\n\n return rootStore.getTopLevelRowDisplayedIndex(topLevelIndex);\n };\n\n ServerSideRowModel.prototype.getRowBounds = function (index) {\n var rootStore = this.getRootStore();\n\n if (!rootStore) {\n var rowHeight = this.gridOptionsWrapper.getRowHeightAsNumber();\n return {\n rowTop: 0,\n rowHeight: rowHeight\n };\n }\n\n return rootStore.getRowBounds(index);\n };\n\n ServerSideRowModel.prototype.getRowIndexAtPixel = function (pixel) {\n var rootStore = this.getRootStore();\n\n if (pixel <= 0 || !rootStore) {\n return 0;\n }\n\n return rootStore.getRowIndexAtPixel(pixel);\n };\n\n ServerSideRowModel.prototype.isEmpty = function () {\n return false;\n };\n\n ServerSideRowModel.prototype.isRowsToRender = function () {\n return this.getRootStore() != null && this.getRowCount() > 0;\n };\n\n ServerSideRowModel.prototype.getType = function () {\n return Constants.ROW_MODEL_TYPE_SERVER_SIDE;\n };\n\n ServerSideRowModel.prototype.forEachNode = function (callback) {\n var rootStore = this.getRootStore();\n\n if (!rootStore) {\n return;\n }\n\n rootStore.forEachNodeDeep(callback);\n };\n\n ServerSideRowModel.prototype.forEachNodeAfterFilterAndSort = function (callback) {\n var rootStore = this.getRootStore();\n\n if (!rootStore) {\n return;\n }\n\n rootStore.forEachNodeDeepAfterFilterAndSort(callback);\n };\n\n ServerSideRowModel.prototype.executeOnStore = function (route, callback) {\n var rootStore = this.getRootStore();\n\n if (!rootStore) {\n return;\n }\n\n var storeToExecuteOn = rootStore.getChildStore(route);\n\n if (storeToExecuteOn) {\n callback(storeToExecuteOn);\n }\n };\n\n ServerSideRowModel.prototype.refreshStore = function (params) {\n if (params === void 0) {\n params = {};\n }\n\n var route = params.route ? params.route : [];\n this.executeOnStore(route, function (store) {\n return store.refreshStore(params.purge == true);\n });\n };\n\n ServerSideRowModel.prototype.getStoreState = function () {\n var res = [];\n var rootStore = this.getRootStore();\n\n if (rootStore) {\n rootStore.addStoreStates(res);\n }\n\n return res;\n };\n\n ServerSideRowModel.prototype.getNodesInRangeForSelection = function (firstInRange, lastInRange) {\n if (_.exists(lastInRange) && firstInRange.parent !== lastInRange.parent) {\n return [];\n }\n\n return firstInRange.parent.childStore.getRowNodesInRange(lastInRange, firstInRange);\n };\n\n ServerSideRowModel.prototype.getRowNode = function (id) {\n var result;\n this.forEachNode(function (rowNode) {\n if (rowNode.id === id) {\n result = rowNode;\n }\n\n if (rowNode.detailNode && rowNode.detailNode.id === id) {\n result = rowNode.detailNode;\n }\n });\n return result;\n };\n\n ServerSideRowModel.prototype.isRowPresent = function (rowNode) {\n var foundRowNode = this.getRowNode(rowNode.id);\n return !!foundRowNode;\n };\n\n __decorate$r([Autowired('columnModel')], ServerSideRowModel.prototype, \"columnModel\", void 0);\n\n __decorate$r([Autowired('filterManager')], ServerSideRowModel.prototype, \"filterManager\", void 0);\n\n __decorate$r([Autowired('sortController')], ServerSideRowModel.prototype, \"sortController\", void 0);\n\n __decorate$r([Autowired('rowRenderer')], ServerSideRowModel.prototype, \"rowRenderer\", void 0);\n\n __decorate$r([Autowired('ssrmSortService')], ServerSideRowModel.prototype, \"sortListener\", void 0);\n\n __decorate$r([Autowired('ssrmNodeManager')], ServerSideRowModel.prototype, \"nodeManager\", void 0);\n\n __decorate$r([Autowired('ssrmStoreFactory')], ServerSideRowModel.prototype, \"storeFactory\", void 0);\n\n __decorate$r([Autowired('beans')], ServerSideRowModel.prototype, \"beans\", void 0);\n\n __decorate$r([PreDestroy], ServerSideRowModel.prototype, \"destroyDatasource\", null);\n\n __decorate$r([PostConstruct], ServerSideRowModel.prototype, \"addEventListeners\", null);\n\n __decorate$r([PreDestroy], ServerSideRowModel.prototype, \"destroyRootStore\", null);\n\n ServerSideRowModel = __decorate$r([Bean('rowModel')], ServerSideRowModel);\n return ServerSideRowModel;\n}(BeanStub);\n\nvar __extends$J = undefined && undefined.__extends || function () {\n var _extendStatics175 = function extendStatics(d, b) {\n _extendStatics175 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics175(d, b);\n };\n\n return function (d, b) {\n _extendStatics175(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar StoreUtils =\n/** @class */\nfunction (_super) {\n __extends$J(StoreUtils, _super);\n\n function StoreUtils() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n StoreUtils.prototype.loadFromDatasource = function (p) {\n var storeParams = p.storeParams,\n parentBlock = p.parentBlock,\n parentNode = p.parentNode;\n var groupKeys = parentNode.getGroupKeys();\n\n if (!storeParams.datasource) {\n return;\n }\n\n var request = {\n startRow: p.startRow,\n endRow: p.endRow,\n rowGroupCols: storeParams.rowGroupCols,\n valueCols: storeParams.valueCols,\n pivotCols: storeParams.pivotCols,\n pivotMode: storeParams.pivotMode,\n groupKeys: groupKeys,\n filterModel: storeParams.filterModel,\n sortModel: storeParams.sortModel\n };\n var getRowsParams = {\n successCallback: p.successCallback,\n success: p.success,\n failCallback: p.failCallback,\n fail: p.fail,\n request: request,\n parentNode: p.parentNode,\n api: this.gridApi,\n columnApi: this.columnApi,\n context: this.gridOptionsWrapper.getContext()\n };\n window.setTimeout(function () {\n if (!storeParams.datasource || !parentBlock.isAlive()) {\n // failCallback() is important, to reduce the 'RowNodeBlockLoader.activeBlockLoadsCount' count\n p.failCallback();\n return;\n }\n\n storeParams.datasource.getRows(getRowsParams);\n }, 0);\n };\n\n StoreUtils.prototype.getChildStore = function (keys, currentCache, findNodeFunc) {\n if (_.missingOrEmpty(keys)) {\n return currentCache;\n }\n\n var nextKey = keys[0];\n var nextNode = findNodeFunc(nextKey);\n\n if (nextNode) {\n var keyListForNextLevel = keys.slice(1, keys.length);\n var nextStore = nextNode.childStore;\n return nextStore ? nextStore.getChildStore(keyListForNextLevel) : null;\n }\n\n return null;\n };\n\n StoreUtils.prototype.isServerRefreshNeeded = function (parentRowNode, rowGroupCols, params) {\n if (params.valueColChanged || params.secondaryColChanged) {\n return true;\n }\n\n var level = parentRowNode.level + 1;\n var grouping = level < rowGroupCols.length;\n var leafNodes = !grouping;\n\n if (leafNodes) {\n return true;\n }\n\n var colIdThisGroup = rowGroupCols[level].id;\n var actionOnThisGroup = params.changedColumns.indexOf(colIdThisGroup) > -1;\n\n if (actionOnThisGroup) {\n return true;\n }\n\n var allCols = this.columnModel.getAllGridColumns();\n var affectedGroupCols = allCols // find all impacted cols which also a group display column\n .filter(function (col) {\n return col.getColDef().showRowGroup && params.changedColumns.includes(col.getId());\n }).map(function (col) {\n return col.getColDef().showRowGroup;\n }) // if displaying all groups, or displaying the effected col for this group, refresh\n .some(function (group) {\n return group === true || group === colIdThisGroup;\n });\n return affectedGroupCols;\n };\n\n __decorate$q([Autowired('columnApi')], StoreUtils.prototype, \"columnApi\", void 0);\n\n __decorate$q([Autowired('columnModel')], StoreUtils.prototype, \"columnModel\", void 0);\n\n __decorate$q([Autowired('gridApi')], StoreUtils.prototype, \"gridApi\", void 0);\n\n StoreUtils = __decorate$q([Bean('ssrmStoreUtils')], StoreUtils);\n return StoreUtils;\n}(BeanStub);\n\nvar __extends$I = undefined && undefined.__extends || function () {\n var _extendStatics176 = function extendStatics(d, b) {\n _extendStatics176 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics176(d, b);\n };\n\n return function (d, b) {\n _extendStatics176(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar BlockUtils =\n/** @class */\nfunction (_super) {\n __extends$I(BlockUtils, _super);\n\n function BlockUtils() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n BlockUtils.prototype.postConstruct = function () {\n this.rowHeight = this.gridOptionsWrapper.getRowHeightAsNumber();\n this.usingTreeData = this.gridOptionsWrapper.isTreeData();\n this.usingMasterDetail = this.gridOptionsWrapper.isMasterDetail();\n };\n\n BlockUtils.prototype.createRowNode = function (params) {\n var rowNode = new RowNode(this.beans);\n var rowHeight = params.rowHeight != null ? params.rowHeight : this.rowHeight;\n rowNode.setRowHeight(rowHeight);\n rowNode.group = params.group;\n rowNode.leafGroup = params.leafGroup;\n rowNode.level = params.level;\n rowNode.uiLevel = params.level;\n rowNode.parent = params.parent; // stub gets set to true here, and then false when this rowNode gets it's data\n\n rowNode.stub = true;\n\n if (rowNode.group) {\n rowNode.expanded = false;\n rowNode.field = params.field;\n rowNode.rowGroupColumn = params.rowGroupColumn;\n }\n\n return rowNode;\n };\n\n BlockUtils.prototype.destroyRowNodes = function (rowNodes) {\n var _this = this;\n\n if (rowNodes) {\n rowNodes.forEach(function (row) {\n return _this.destroyRowNode(row);\n });\n }\n };\n\n BlockUtils.prototype.destroyRowNode = function (rowNode, preserveStore) {\n if (preserveStore === void 0) {\n preserveStore = false;\n }\n\n if (rowNode.childStore && !preserveStore) {\n this.destroyBean(rowNode.childStore);\n rowNode.childStore = null;\n } // this is needed, so row render knows to fade out the row, otherwise it\n // sees row top is present, and thinks the row should be shown. maybe\n // rowNode should have a flag on whether it is visible???\n\n\n rowNode.clearRowTopAndRowIndex();\n\n if (rowNode.id != null) {\n this.nodeManager.removeNode(rowNode);\n }\n };\n\n BlockUtils.prototype.setTreeGroupInfo = function (rowNode) {\n var isGroupFunc = this.gridOptionsWrapper.getIsServerSideGroupFunc();\n var getKeyFunc = this.gridOptionsWrapper.getServerSideGroupKeyFunc();\n\n if (isGroupFunc != null) {\n rowNode.setGroup(isGroupFunc(rowNode.data));\n\n if (rowNode.group && getKeyFunc != null) {\n rowNode.key = getKeyFunc(rowNode.data);\n }\n }\n\n if (!rowNode.group && rowNode.childStore != null) {\n this.destroyBean(rowNode.childStore);\n rowNode.childStore = null;\n }\n };\n\n BlockUtils.prototype.setRowGroupInfo = function (rowNode) {\n rowNode.key = this.valueService.getValue(rowNode.rowGroupColumn, rowNode);\n\n if (rowNode.key === null || rowNode.key === undefined) {\n _.doOnce(function () {\n console.warn(\"AG Grid: null and undefined values are not allowed for server side row model keys\");\n\n if (rowNode.rowGroupColumn) {\n console.warn(\"column = \" + rowNode.rowGroupColumn.getId());\n }\n\n console.warn(\"data is \", rowNode.data);\n }, 'ServerSideBlock-CannotHaveNullOrUndefinedForKey');\n }\n };\n\n BlockUtils.prototype.setMasterDetailInfo = function (rowNode) {\n var isMasterFunc = this.gridOptionsWrapper.getIsRowMasterFunc();\n\n if (isMasterFunc != null) {\n rowNode.master = isMasterFunc(rowNode.data);\n } else {\n rowNode.master = true;\n }\n };\n\n BlockUtils.prototype.updateDataIntoRowNode = function (rowNode, data) {\n rowNode.updateData(data);\n\n if (this.usingTreeData) {\n this.setTreeGroupInfo(rowNode);\n } else if (rowNode.group) ;else if (this.usingMasterDetail) ;\n };\n\n BlockUtils.prototype.setDataIntoRowNode = function (rowNode, data, defaultId, cachedRowHeight) {\n rowNode.stub = false;\n\n if (_.exists(data)) {\n rowNode.setDataAndId(data, defaultId);\n\n if (this.usingTreeData) {\n this.setTreeGroupInfo(rowNode);\n } else if (rowNode.group) {\n this.setRowGroupInfo(rowNode);\n } else if (this.usingMasterDetail) {\n this.setMasterDetailInfo(rowNode);\n }\n } else {\n rowNode.setDataAndId(undefined, undefined);\n rowNode.key = null;\n }\n\n if (this.usingTreeData || rowNode.group) {\n this.setGroupDataIntoRowNode(rowNode);\n this.setChildCountIntoRowNode(rowNode);\n } // this needs to be done AFTER setGroupDataIntoRowNode(), as the height can depend on the group data\n // getting set, if it's a group node and colDef.autoHeight=true\n\n\n if (_.exists(data)) {\n rowNode.setRowHeight(this.gridOptionsWrapper.getRowHeightForNode(rowNode, false, cachedRowHeight).height);\n }\n };\n\n BlockUtils.prototype.setChildCountIntoRowNode = function (rowNode) {\n var getChildCount = this.gridOptionsWrapper.getChildCountFunc();\n\n if (getChildCount) {\n rowNode.allChildrenCount = getChildCount(rowNode.data);\n }\n };\n\n BlockUtils.prototype.setGroupDataIntoRowNode = function (rowNode) {\n var _this = this;\n\n var groupDisplayCols = this.columnModel.getGroupDisplayColumns();\n var usingTreeData = this.gridOptionsWrapper.isTreeData();\n groupDisplayCols.forEach(function (col) {\n if (rowNode.groupData == null) {\n rowNode.groupData = {};\n }\n\n if (usingTreeData) {\n rowNode.groupData[col.getColId()] = rowNode.key;\n } else if (col.isRowGroupDisplayed(rowNode.rowGroupColumn.getId())) {\n var groupValue = _this.valueService.getValue(rowNode.rowGroupColumn, rowNode);\n\n rowNode.groupData[col.getColId()] = groupValue;\n }\n });\n };\n\n BlockUtils.prototype.clearDisplayIndex = function (rowNode) {\n rowNode.clearRowTopAndRowIndex();\n\n var hasChildStore = rowNode.group && _.exists(rowNode.childStore);\n\n if (hasChildStore) {\n var childStore = rowNode.childStore;\n childStore.clearDisplayIndexes();\n }\n\n var hasDetailNode = rowNode.master && rowNode.detailNode;\n\n if (hasDetailNode) {\n rowNode.detailNode.clearRowTopAndRowIndex();\n }\n };\n\n BlockUtils.prototype.setDisplayIndex = function (rowNode, displayIndexSeq, nextRowTop) {\n // set this row\n rowNode.setRowIndex(displayIndexSeq.next());\n rowNode.setRowTop(nextRowTop.value);\n nextRowTop.value += rowNode.rowHeight; // set child for master / detail\n\n var hasDetailRow = rowNode.master;\n\n if (hasDetailRow) {\n if (rowNode.expanded && rowNode.detailNode) {\n rowNode.detailNode.setRowIndex(displayIndexSeq.next());\n rowNode.detailNode.setRowTop(nextRowTop.value);\n nextRowTop.value += rowNode.detailNode.rowHeight;\n } else if (rowNode.detailNode) {\n rowNode.detailNode.clearRowTopAndRowIndex();\n }\n } // set children for SSRM child rows\n\n\n var hasChildStore = rowNode.group && _.exists(rowNode.childStore);\n\n if (hasChildStore) {\n var childStore = rowNode.childStore;\n\n if (rowNode.expanded) {\n childStore.setDisplayIndexes(displayIndexSeq, nextRowTop);\n } else {\n // we need to clear the row tops, as the row renderer depends on\n // this to know if the row should be faded out\n childStore.clearDisplayIndexes();\n }\n }\n };\n\n BlockUtils.prototype.binarySearchForDisplayIndex = function (displayRowIndex, rowNodes) {\n var bottomPointer = 0;\n var topPointer = rowNodes.length - 1;\n\n if (_.missing(topPointer) || _.missing(bottomPointer)) {\n console.warn(\"AG Grid: error: topPointer = \" + topPointer + \", bottomPointer = \" + bottomPointer);\n return undefined;\n }\n\n while (true) {\n var midPointer = Math.floor((bottomPointer + topPointer) / 2);\n var currentRowNode = rowNodes[midPointer]; // first check current row for index\n\n if (currentRowNode.rowIndex === displayRowIndex) {\n return currentRowNode;\n } // then check if current row contains a detail row with the index\n\n\n var expandedMasterRow = currentRowNode.master && currentRowNode.expanded;\n var detailNode = currentRowNode.detailNode;\n\n if (expandedMasterRow && detailNode && detailNode.rowIndex === displayRowIndex) {\n return currentRowNode.detailNode;\n } // then check if child cache contains index\n\n\n var childStore = currentRowNode.childStore;\n\n if (currentRowNode.expanded && childStore && childStore.isDisplayIndexInStore(displayRowIndex)) {\n return childStore.getRowUsingDisplayIndex(displayRowIndex);\n } // otherwise adjust pointers to continue searching for index\n\n\n if (currentRowNode.rowIndex < displayRowIndex) {\n bottomPointer = midPointer + 1;\n } else if (currentRowNode.rowIndex > displayRowIndex) {\n topPointer = midPointer - 1;\n } else {\n console.warn(\"AG Grid: error: unable to locate rowIndex = \" + displayRowIndex + \" in cache\");\n return undefined;\n }\n }\n };\n\n BlockUtils.prototype.extractRowBounds = function (rowNode, index) {\n var extractRowBounds = function extractRowBounds(currentRowNode) {\n return {\n rowHeight: currentRowNode.rowHeight,\n rowTop: currentRowNode.rowTop\n };\n };\n\n if (rowNode.rowIndex === index) {\n return extractRowBounds(rowNode);\n }\n\n if (rowNode.group && rowNode.expanded && _.exists(rowNode.childStore)) {\n var childStore = rowNode.childStore;\n\n if (childStore.isDisplayIndexInStore(index)) {\n return childStore.getRowBounds(index);\n }\n } else if (rowNode.master && rowNode.expanded && _.exists(rowNode.detailNode)) {\n if (rowNode.detailNode.rowIndex === index) {\n return extractRowBounds(rowNode.detailNode);\n }\n }\n };\n\n BlockUtils.prototype.getIndexAtPixel = function (rowNode, pixel) {\n // first check if pixel is in range of current row\n if (rowNode.isPixelInRange(pixel)) {\n return rowNode.rowIndex;\n } // then check if current row contains a detail row with pixel in range\n\n\n var expandedMasterRow = rowNode.master && rowNode.expanded;\n var detailNode = rowNode.detailNode;\n\n if (expandedMasterRow && detailNode && detailNode.isPixelInRange(pixel)) {\n return rowNode.detailNode.rowIndex;\n } // then check if it's a group row with a child cache with pixel in range\n\n\n if (rowNode.group && rowNode.expanded && _.exists(rowNode.childStore)) {\n var childStore = rowNode.childStore;\n\n if (childStore.isPixelInRange(pixel)) {\n return childStore.getRowIndexAtPixel(pixel);\n }\n }\n\n return null; // pixel is not within this row node or it's children / detail, so return undefined\n };\n\n BlockUtils.prototype.createNodeIdPrefix = function (parentRowNode) {\n var parts = [];\n var rowNode = parentRowNode; // pull keys from all parent nodes, but do not include the root node\n\n while (rowNode && rowNode.level >= 0) {\n parts.push(rowNode.key);\n rowNode = rowNode.parent;\n }\n\n if (parts.length > 0) {\n return parts.reverse().join('-');\n } // no prefix, so node id's are left as they are\n\n\n return undefined;\n };\n\n BlockUtils.prototype.checkOpenByDefault = function (rowNode) {\n if (!rowNode.isExpandable()) {\n return;\n }\n\n var userFunc = this.gridOptionsWrapper.getIsServerSideGroupOpenByDefaultFunc();\n\n if (!userFunc) {\n return;\n }\n\n var params = {\n data: rowNode.data,\n rowNode: rowNode\n };\n var userFuncRes = userFunc(params);\n\n if (userFuncRes) {\n // we do this in a timeout, so that we don't expand a row node while in the middle\n // of setting up rows, setting up rows is complex enough without another chunk of work\n // getting added to the call stack. this is also helpful as openByDefault may or may\n // not happen (so makes setting up rows more deterministic by expands never happening)\n // and also checkOpenByDefault is shard with both store types, so easier control how it\n // impacts things by keeping it in new VM turn.\n window.setTimeout(function () {\n return rowNode.setExpanded(true);\n }, 0);\n }\n };\n\n __decorate$p([Autowired('valueService')], BlockUtils.prototype, \"valueService\", void 0);\n\n __decorate$p([Autowired('columnModel')], BlockUtils.prototype, \"columnModel\", void 0);\n\n __decorate$p([Autowired('ssrmNodeManager')], BlockUtils.prototype, \"nodeManager\", void 0);\n\n __decorate$p([Autowired('beans')], BlockUtils.prototype, \"beans\", void 0);\n\n __decorate$p([PostConstruct], BlockUtils.prototype, \"postConstruct\", null);\n\n BlockUtils = __decorate$p([Bean('ssrmBlockUtils')], BlockUtils);\n return BlockUtils;\n}(BeanStub);\n\nvar __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar NodeManager =\n/** @class */\nfunction () {\n function NodeManager() {\n this.rowNodes = {};\n }\n\n NodeManager.prototype.addRowNode = function (rowNode) {\n var id = rowNode.id;\n\n if (this.rowNodes[id]) {\n console.warn(\"AG Grid: Duplicate node id \" + rowNode.id + \". Row ID's are provided via the getRowId() callback. Please modify the getRowId() callback code to provide unique row id values.\");\n console.warn('first instance', this.rowNodes[id].data);\n console.warn('second instance', rowNode.data);\n }\n\n this.rowNodes[id] = rowNode;\n };\n\n NodeManager.prototype.removeNode = function (rowNode) {\n var id = rowNode.id;\n\n if (this.rowNodes[id]) {\n this.rowNodes[id] = undefined;\n }\n };\n\n NodeManager.prototype.clear = function () {\n this.rowNodes = {};\n };\n\n __decorate$o([PreDestroy], NodeManager.prototype, \"clear\", null);\n\n NodeManager = __decorate$o([Bean('ssrmNodeManager')], NodeManager);\n return NodeManager;\n}();\n\nvar __extends$H = undefined && undefined.__extends || function () {\n var _extendStatics177 = function extendStatics(d, b) {\n _extendStatics177 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics177(d, b);\n };\n\n return function (d, b) {\n _extendStatics177(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar TransactionManager =\n/** @class */\nfunction (_super) {\n __extends$H(TransactionManager, _super);\n\n function TransactionManager() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.asyncTransactions = [];\n return _this;\n }\n\n TransactionManager.prototype.postConstruct = function () {\n // only want to be active if SSRM active, otherwise would be interfering with other row models\n if (!this.gridOptionsWrapper.isRowModelServerSide()) {\n return;\n }\n };\n\n TransactionManager.prototype.applyTransactionAsync = function (transaction, callback) {\n if (this.asyncTransactionsTimeout == null) {\n this.scheduleExecuteAsync();\n }\n\n this.asyncTransactions.push({\n transaction: transaction,\n callback: callback\n });\n };\n\n TransactionManager.prototype.scheduleExecuteAsync = function () {\n var _this = this;\n\n var waitMillis = this.gridOptionsWrapper.getAsyncTransactionWaitMillis();\n this.asyncTransactionsTimeout = window.setTimeout(function () {\n _this.executeAsyncTransactions();\n }, waitMillis);\n };\n\n TransactionManager.prototype.executeAsyncTransactions = function () {\n var _this = this;\n\n if (!this.asyncTransactions) {\n return;\n }\n\n var resultFuncs = [];\n var resultsForEvent = [];\n var transactionsToRetry = [];\n var atLeastOneTransactionApplied = false;\n this.asyncTransactions.forEach(function (txWrapper) {\n var result;\n\n _this.serverSideRowModel.executeOnStore(txWrapper.transaction.route, function (cache) {\n result = cache.applyTransaction(txWrapper.transaction);\n });\n\n if (result == undefined) {\n result = {\n status: ServerSideTransactionResultStatus.StoreNotFound\n };\n }\n\n resultsForEvent.push(result);\n var retryTransaction = result.status == ServerSideTransactionResultStatus.StoreLoading;\n\n if (retryTransaction) {\n transactionsToRetry.push(txWrapper);\n return;\n }\n\n if (txWrapper.callback) {\n resultFuncs.push(function () {\n return txWrapper.callback(result);\n });\n }\n\n if (result.status === ServerSideTransactionResultStatus.Applied) {\n atLeastOneTransactionApplied = true;\n }\n }); // do callbacks in next VM turn so it's async\n\n if (resultFuncs.length > 0) {\n window.setTimeout(function () {\n resultFuncs.forEach(function (func) {\n return func();\n });\n }, 0);\n }\n\n this.asyncTransactionsTimeout = undefined; // this will be empty list if nothing to retry\n\n this.asyncTransactions = transactionsToRetry;\n\n if (atLeastOneTransactionApplied) {\n this.valueCache.onDataChanged();\n this.eventService.dispatchEvent({\n type: Events.EVENT_STORE_UPDATED\n });\n }\n\n if (resultsForEvent.length > 0) {\n var event_1 = {\n type: Events.EVENT_ASYNC_TRANSACTIONS_FLUSHED,\n results: resultsForEvent\n };\n this.eventService.dispatchEvent(event_1);\n }\n };\n\n TransactionManager.prototype.flushAsyncTransactions = function () {\n // the timeout could be missing, if we are flushing due to row data loaded\n if (this.asyncTransactionsTimeout != null) {\n clearTimeout(this.asyncTransactionsTimeout);\n }\n\n this.executeAsyncTransactions();\n };\n\n TransactionManager.prototype.applyTransaction = function (transaction) {\n var _this = this;\n\n var res;\n this.serverSideRowModel.executeOnStore(transaction.route, function (store) {\n res = store.applyTransaction(transaction);\n });\n\n if (res) {\n this.valueCache.onDataChanged();\n this.eventService.dispatchEvent({\n type: Events.EVENT_STORE_UPDATED\n });\n\n if (res.update && res.update.length) {\n // this set timeout is necessary to queue behind the listener for EVENT_STORE_UPDATED in ssrm which recalculates the rowIndexes\n // if the rowIndex isn't calculated first the binarySearchForDisplayIndex will not be able to find the required rows\n setTimeout(function () {\n // refresh the full width rows\n _this.rowRenderer.refreshFullWidthRows(res.update);\n }, 0);\n }\n\n return res;\n } else {\n return {\n status: ServerSideTransactionResultStatus.StoreNotFound\n };\n }\n };\n\n __decorate$n([Autowired('rowNodeBlockLoader')], TransactionManager.prototype, \"rowNodeBlockLoader\", void 0);\n\n __decorate$n([Autowired('valueCache')], TransactionManager.prototype, \"valueCache\", void 0);\n\n __decorate$n([Autowired('rowModel')], TransactionManager.prototype, \"serverSideRowModel\", void 0);\n\n __decorate$n([Autowired('rowRenderer')], TransactionManager.prototype, \"rowRenderer\", void 0);\n\n __decorate$n([PostConstruct], TransactionManager.prototype, \"postConstruct\", null);\n\n TransactionManager = __decorate$n([Bean('ssrmTransactionManager')], TransactionManager);\n return TransactionManager;\n}(BeanStub);\n\nvar __extends$G = undefined && undefined.__extends || function () {\n var _extendStatics178 = function extendStatics(d, b) {\n _extendStatics178 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics178(d, b);\n };\n\n return function (d, b) {\n _extendStatics178(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ExpandListener =\n/** @class */\nfunction (_super) {\n __extends$G(ExpandListener, _super);\n\n function ExpandListener() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n ExpandListener.prototype.postConstruct = function () {\n // only want to be active if SSRM active, otherwise would be interfering with other row models\n if (!this.gridOptionsWrapper.isRowModelServerSide()) {\n return;\n }\n\n this.addManagedListener(this.eventService, Events.EVENT_ROW_GROUP_OPENED, this.onRowGroupOpened.bind(this));\n };\n\n ExpandListener.prototype.onRowGroupOpened = function (event) {\n var rowNode = event.node;\n\n if (rowNode.expanded) {\n if (rowNode.master) {\n this.createDetailNode(rowNode);\n } else if (_.missing(rowNode.childStore)) {\n var storeParams = this.serverSideRowModel.getParams();\n rowNode.childStore = this.createBean(this.storeFactory.createStore(storeParams, rowNode));\n }\n } else if (this.gridOptionsWrapper.isPurgeClosedRowNodes() && _.exists(rowNode.childStore)) {\n rowNode.childStore = this.destroyBean(rowNode.childStore);\n }\n\n var storeUpdatedEvent = {\n type: Events.EVENT_STORE_UPDATED\n };\n this.eventService.dispatchEvent(storeUpdatedEvent);\n };\n\n ExpandListener.prototype.createDetailNode = function (masterNode) {\n if (_.exists(masterNode.detailNode)) {\n return masterNode.detailNode;\n }\n\n var detailNode = new RowNode(this.beans);\n detailNode.detail = true;\n detailNode.selectable = false;\n detailNode.parent = masterNode;\n\n if (_.exists(masterNode.id)) {\n detailNode.id = 'detail_' + masterNode.id;\n }\n\n detailNode.data = masterNode.data;\n detailNode.level = masterNode.level + 1;\n var defaultDetailRowHeight = 200;\n var rowHeight = this.gridOptionsWrapper.getRowHeightForNode(detailNode).height;\n detailNode.rowHeight = rowHeight ? rowHeight : defaultDetailRowHeight;\n masterNode.detailNode = detailNode;\n return detailNode;\n };\n\n __decorate$m([Autowired('rowModel')], ExpandListener.prototype, \"serverSideRowModel\", void 0);\n\n __decorate$m([Autowired('ssrmStoreFactory')], ExpandListener.prototype, \"storeFactory\", void 0);\n\n __decorate$m([Autowired('beans')], ExpandListener.prototype, \"beans\", void 0);\n\n __decorate$m([PostConstruct], ExpandListener.prototype, \"postConstruct\", null);\n\n ExpandListener = __decorate$m([Bean('ssrmExpandListener')], ExpandListener);\n return ExpandListener;\n}(BeanStub);\n\nvar __extends$F = undefined && undefined.__extends || function () {\n var _extendStatics179 = function extendStatics(d, b) {\n _extendStatics179 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics179(d, b);\n };\n\n return function (d, b) {\n _extendStatics179(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SortListener =\n/** @class */\nfunction (_super) {\n __extends$F(SortListener, _super);\n\n function SortListener() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n SortListener.prototype.postConstruct = function () {\n // only want to be active if SSRM active, otherwise would be interfering with other row models\n if (!this.gridOptionsWrapper.isRowModelServerSide()) {\n return;\n }\n\n this.addManagedListener(this.eventService, Events.EVENT_SORT_CHANGED, this.onSortChanged.bind(this));\n };\n\n SortListener.prototype.extractSortModel = function () {\n var sortModel = this.sortController.getSortModel(); // when using tree data we just return the sort model with the 'ag-Grid-AutoColumn' as is, i.e not broken out\n // into it's constitute group columns as they are not defined up front and can vary per node.\n\n if (this.gridOptionsWrapper.isTreeData()) {\n return sortModel;\n } // it autoCol is active, we don't want to send this to the server. instead we want to\n // send the\n\n\n this.replaceAutoGroupColumnWithActualRowGroupColumns(sortModel);\n this.removeMultiColumnPrefixOnColumnIds(sortModel);\n return sortModel;\n };\n\n SortListener.prototype.removeMultiColumnPrefixOnColumnIds = function (sortModel) {\n if (this.gridOptionsWrapper.isGroupMultiAutoColumn()) {\n var multiColumnPrefix = Constants.GROUP_AUTO_COLUMN_ID + \"-\";\n\n for (var i = 0; i < sortModel.length; ++i) {\n if (sortModel[i].colId.indexOf(multiColumnPrefix) > -1) {\n sortModel[i].colId = sortModel[i].colId.substr(multiColumnPrefix.length);\n }\n }\n }\n };\n\n SortListener.prototype.replaceAutoGroupColumnWithActualRowGroupColumns = function (sortModel) {\n // find index of auto group column in sort model\n var autoGroupSortModel = sortModel.find(function (sm) {\n return sm.colId == Constants.GROUP_AUTO_COLUMN_ID;\n }); // replace auto column with individual group columns\n\n if (autoGroupSortModel) {\n // remove auto group column\n var autoGroupIndex = sortModel.indexOf(autoGroupSortModel);\n\n _.removeFromArray(sortModel, autoGroupSortModel);\n\n var isNotInSortModel = function isNotInSortModel(col) {\n return sortModel.filter(function (sm) {\n return sm.colId === col.getColId();\n }).length == 0;\n };\n\n var mapColumnToSortModel = function mapColumnToSortModel(col) {\n return {\n colId: col.getId(),\n sort: autoGroupSortModel.sort\n };\n };\n\n var newModels = this.columnModel.getRowGroupColumns().filter(isNotInSortModel).map(mapColumnToSortModel);\n\n _.insertArrayIntoArray(sortModel, newModels, autoGroupIndex);\n }\n };\n\n SortListener.prototype.onSortChanged = function () {\n var storeParams = this.serverSideRowModel.getParams();\n\n if (!storeParams) {\n return;\n } // params is undefined if no datasource set\n\n\n var newSortModel = this.extractSortModel();\n var oldSortModel = storeParams.sortModel;\n var changedColumns = this.findChangedColumnsInSort(newSortModel, oldSortModel);\n var valueColChanged = this.listenerUtils.isSortingWithValueColumn(changedColumns);\n var secondaryColChanged = this.listenerUtils.isSortingWithSecondaryColumn(changedColumns);\n var params = {\n valueColChanged: valueColChanged,\n secondaryColChanged: secondaryColChanged,\n changedColumns: changedColumns\n };\n this.serverSideRowModel.refreshAfterSort(newSortModel, params);\n }; // returns back all the cols that were effected by the sorting. eg if we were sorting by col A,\n // and now we are sorting by col B, the list of impacted cols should be A and B. so if a cache\n // is impacted by sorting on A or B then it needs to be refreshed. this includes where the cache\n // was previously sorted by A and then the A sort now needs to be cleared.\n\n\n SortListener.prototype.findChangedColumnsInSort = function (newSortModel, oldSortModel) {\n var allColsInBothSorts = [];\n [newSortModel, oldSortModel].forEach(function (sortModel) {\n if (sortModel) {\n var ids = sortModel.map(function (sm) {\n return sm.colId;\n });\n allColsInBothSorts = allColsInBothSorts.concat(ids);\n }\n });\n\n var differentSorts = function differentSorts(oldSortItem, newSortItem) {\n var oldSort = oldSortItem ? oldSortItem.sort : null;\n var newSort = newSortItem ? newSortItem.sort : null;\n return oldSort !== newSort;\n };\n\n var differentIndexes = function differentIndexes(oldSortItem, newSortItem) {\n var oldIndex = oldSortItem ? oldSortModel.indexOf(oldSortItem) : -1;\n var newIndex = newSortItem ? newSortModel.indexOf(newSortItem) : -1;\n return oldIndex !== newIndex;\n };\n\n return allColsInBothSorts.filter(function (colId) {\n var oldSortItem = oldSortModel.find(function (sm) {\n return sm.colId === colId;\n });\n var newSortItem = newSortModel.find(function (sm) {\n return sm.colId === colId;\n });\n return differentSorts(oldSortItem, newSortItem) || differentIndexes(oldSortItem, newSortItem);\n });\n };\n\n __decorate$l([Autowired('sortController')], SortListener.prototype, \"sortController\", void 0);\n\n __decorate$l([Autowired('columnModel')], SortListener.prototype, \"columnModel\", void 0);\n\n __decorate$l([Autowired('rowModel')], SortListener.prototype, \"serverSideRowModel\", void 0);\n\n __decorate$l([Autowired('ssrmListenerUtils')], SortListener.prototype, \"listenerUtils\", void 0);\n\n __decorate$l([PostConstruct], SortListener.prototype, \"postConstruct\", null);\n\n SortListener = __decorate$l([Bean('ssrmSortService')], SortListener);\n return SortListener;\n}(BeanStub);\n\nvar __extends$E = undefined && undefined.__extends || function () {\n var _extendStatics180 = function extendStatics(d, b) {\n _extendStatics180 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics180(d, b);\n };\n\n return function (d, b) {\n _extendStatics180(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar FilterListener =\n/** @class */\nfunction (_super) {\n __extends$E(FilterListener, _super);\n\n function FilterListener() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n FilterListener.prototype.postConstruct = function () {\n // only want to be active if SSRM active, otherwise would be interfering with other row models\n if (!this.gridOptionsWrapper.isRowModelServerSide()) {\n return;\n }\n\n this.addManagedListener(this.eventService, Events.EVENT_FILTER_CHANGED, this.onFilterChanged.bind(this));\n };\n\n FilterListener.prototype.onFilterChanged = function () {\n var storeParams = this.serverSideRowModel.getParams();\n\n if (!storeParams) {\n return;\n } // params is undefined if no datasource set\n\n\n var newModel = this.filterManager.getFilterModel();\n var oldModel = storeParams ? storeParams.filterModel : {};\n var changedColumns = this.findChangedColumns(newModel, oldModel);\n var valueColChanged = this.listenerUtils.isSortingWithValueColumn(changedColumns);\n var secondaryColChanged = this.listenerUtils.isSortingWithSecondaryColumn(changedColumns);\n var params = {\n valueColChanged: valueColChanged,\n secondaryColChanged: secondaryColChanged,\n changedColumns: changedColumns\n };\n this.serverSideRowModel.refreshAfterFilter(newModel, params);\n };\n\n FilterListener.prototype.findChangedColumns = function (oldModel, newModel) {\n var allColKeysMap = {};\n Object.keys(oldModel).forEach(function (key) {\n return allColKeysMap[key] = true;\n });\n Object.keys(newModel).forEach(function (key) {\n return allColKeysMap[key] = true;\n });\n var res = [];\n Object.keys(allColKeysMap).forEach(function (key) {\n var oldJson = JSON.stringify(oldModel[key]);\n var newJson = JSON.stringify(newModel[key]);\n var filterChanged = oldJson != newJson;\n\n if (filterChanged) {\n res.push(key);\n }\n });\n return res;\n };\n\n __decorate$k([Autowired('rowModel')], FilterListener.prototype, \"serverSideRowModel\", void 0);\n\n __decorate$k([Autowired('filterManager')], FilterListener.prototype, \"filterManager\", void 0);\n\n __decorate$k([Autowired('ssrmListenerUtils')], FilterListener.prototype, \"listenerUtils\", void 0);\n\n __decorate$k([PostConstruct], FilterListener.prototype, \"postConstruct\", null);\n\n FilterListener = __decorate$k([Bean('ssrmFilterListener')], FilterListener);\n return FilterListener;\n}(BeanStub);\n\nvar __extends$D = undefined && undefined.__extends || function () {\n var _extendStatics181 = function extendStatics(d, b) {\n _extendStatics181 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics181(d, b);\n };\n\n return function (d, b) {\n _extendStatics181(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __param$1 = undefined && undefined.__param || function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n};\n\nvar __values$1 = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar InfiniteStoreBlock =\n/** @class */\nfunction (_super) {\n __extends$D(InfiniteStoreBlock, _super);\n\n function InfiniteStoreBlock(blockNumber, parentRowNode, ssrmParams, storeParams, parentStore) {\n var _this = _super.call(this, blockNumber) || this;\n\n _this.ssrmParams = ssrmParams;\n _this.storeParams = storeParams;\n _this.parentRowNode = parentRowNode; // we don't need to calculate these now, as the inputs don't change,\n // however it makes the code easier to read if we work them out up front\n\n _this.startRow = blockNumber * storeParams.cacheBlockSize;\n _this.parentStore = parentStore;\n _this.level = parentRowNode.level + 1;\n _this.groupLevel = ssrmParams.rowGroupCols ? _this.level < ssrmParams.rowGroupCols.length : undefined;\n _this.leafGroup = ssrmParams.rowGroupCols ? _this.level === ssrmParams.rowGroupCols.length - 1 : false;\n return _this;\n }\n\n InfiniteStoreBlock.prototype.postConstruct = function () {\n this.usingTreeData = this.gridOptionsWrapper.isTreeData();\n\n if (!this.usingTreeData && this.groupLevel) {\n var groupColVo = this.ssrmParams.rowGroupCols[this.level];\n this.groupField = groupColVo.field;\n this.rowGroupColumn = this.columnModel.getRowGroupColumns()[this.level];\n }\n\n this.nodeIdPrefix = this.blockUtils.createNodeIdPrefix(this.parentRowNode);\n this.setData([]);\n };\n\n InfiniteStoreBlock.prototype.isDisplayIndexInBlock = function (displayIndex) {\n return displayIndex >= this.displayIndexStart && displayIndex < this.displayIndexEnd;\n };\n\n InfiniteStoreBlock.prototype.isBlockBefore = function (displayIndex) {\n return displayIndex >= this.displayIndexEnd;\n };\n\n InfiniteStoreBlock.prototype.getDisplayIndexStart = function () {\n return this.displayIndexStart;\n };\n\n InfiniteStoreBlock.prototype.getDisplayIndexEnd = function () {\n return this.displayIndexEnd;\n };\n\n InfiniteStoreBlock.prototype.getBlockHeightPx = function () {\n return this.blockHeightPx;\n };\n\n InfiniteStoreBlock.prototype.getBlockTopPx = function () {\n return this.blockTopPx;\n };\n\n InfiniteStoreBlock.prototype.isGroupLevel = function () {\n return this.groupLevel;\n };\n\n InfiniteStoreBlock.prototype.getGroupField = function () {\n return this.groupField;\n };\n\n InfiniteStoreBlock.prototype.prefixId = function (id) {\n if (this.nodeIdPrefix != null) {\n return this.nodeIdPrefix + '-' + id;\n } else {\n return id.toString();\n }\n };\n\n InfiniteStoreBlock.prototype.getBlockStateJson = function () {\n return {\n id: this.prefixId(this.getId()),\n state: {\n blockNumber: this.getId(),\n startRow: this.startRow,\n endRow: this.startRow + this.storeParams.cacheBlockSize,\n pageStatus: this.getState()\n }\n };\n };\n\n InfiniteStoreBlock.prototype.isAnyNodeOpen = function () {\n var openNodeCount = this.rowNodes.filter(function (node) {\n return node.expanded;\n }).length;\n return openNodeCount > 0;\n }; // this method is repeated, see forEachRowNode, why?\n\n\n InfiniteStoreBlock.prototype.forEachNode = function (callback, sequence, includeChildren, filterAndSort) {\n if (sequence === void 0) {\n sequence = new NumberSequence();\n }\n\n this.rowNodes.forEach(function (rowNode) {\n callback(rowNode, sequence.next()); // this will only every happen for server side row model, as infinite\n // row model doesn't have groups\n\n if (includeChildren && rowNode.childStore) {\n var childStore = rowNode.childStore;\n\n if (filterAndSort) {\n childStore.forEachNodeDeepAfterFilterAndSort(callback, sequence);\n } else {\n childStore.forEachNodeDeep(callback, sequence);\n }\n }\n });\n };\n\n InfiniteStoreBlock.prototype.forEachNodeDeep = function (callback, sequence) {\n this.forEachNode(callback, sequence, true, false);\n };\n\n InfiniteStoreBlock.prototype.forEachNodeAfterFilterAndSort = function (callback, sequence) {\n this.forEachNode(callback, sequence, true, true);\n };\n\n InfiniteStoreBlock.prototype.forEachNodeShallow = function (callback, sequence) {\n this.forEachNode(callback, sequence, false, false);\n };\n\n InfiniteStoreBlock.prototype.getLastAccessed = function () {\n return this.lastAccessed;\n };\n\n InfiniteStoreBlock.prototype.getRowUsingLocalIndex = function (rowIndex) {\n return this.rowNodes[rowIndex - this.startRow];\n };\n\n InfiniteStoreBlock.prototype.touchLastAccessed = function () {\n this.lastAccessed = this.ssrmParams.lastAccessedSequence.next();\n };\n\n InfiniteStoreBlock.prototype.processServerFail = function () {\n this.parentStore.onBlockLoadFailed(this);\n };\n\n InfiniteStoreBlock.prototype.retryLoads = function () {\n if (this.getState() === RowNodeBlock.STATE_FAILED) {\n this.setStateWaitingToLoad();\n this.rowNodeBlockLoader.checkBlockToLoad();\n this.setData();\n }\n\n this.forEachNodeShallow(function (node) {\n if (node.childStore) {\n node.childStore.retryLoads();\n }\n });\n };\n\n InfiniteStoreBlock.prototype.processServerResult = function (params) {\n this.parentStore.onBlockLoaded(this, params);\n };\n\n InfiniteStoreBlock.prototype.setData = function (rows, failedLoad) {\n var _this = this;\n\n if (rows === void 0) {\n rows = [];\n }\n\n if (failedLoad === void 0) {\n failedLoad = false;\n }\n\n this.destroyRowNodes();\n var storeRowCount = this.parentStore.getRowCount();\n var startRow = this.getId() * this.storeParams.cacheBlockSize;\n var endRow = Math.min(startRow + this.storeParams.cacheBlockSize, storeRowCount);\n var rowsToCreate = endRow - startRow; // when using autoHeight, we default the row heights to a height to fill the old height of the block.\n // we only ever do this to autoHeight, as we could be setting invalid heights (especially if different\n // number of rows in the block due to a filter, less rows would mean bigger rows), and autoHeight is\n // the only pattern that will automatically correct this. we check for visible autoHeight cols,\n // to omit the case where all autoHeight cols are hidden.\n\n var showingAutoHeightCols = this.columnModel.getAllDisplayedAutoHeightCols().length > 0;\n var cachedBlockHeight = showingAutoHeightCols ? this.parentStore.getCachedBlockHeight(this.getId()) : undefined;\n var cachedRowHeight = cachedBlockHeight ? Math.round(cachedBlockHeight / rowsToCreate) : undefined;\n\n var _loop_1 = function _loop_1(i) {\n var dataLoadedForThisRow = i < rows.length;\n\n var getNodeWithData = function getNodeWithData(existingNode) {\n // if there's not an existing node to reuse, create a fresh node\n var rowNode = existingNode !== null && existingNode !== void 0 ? existingNode : _this.blockUtils.createRowNode({\n field: _this.groupField,\n group: _this.groupLevel,\n leafGroup: _this.leafGroup,\n level: _this.level,\n parent: _this.parentRowNode,\n rowGroupColumn: _this.rowGroupColumn,\n rowHeight: cachedRowHeight\n });\n\n if (dataLoadedForThisRow) {\n var data = rows[i];\n\n if (!!existingNode) {\n _this.blockUtils.updateDataIntoRowNode(rowNode, data);\n } else {\n var defaultId = _this.prefixId(_this.startRow + i);\n\n _this.blockUtils.setDataIntoRowNode(rowNode, data, defaultId, cachedRowHeight);\n\n _this.blockUtils.checkOpenByDefault(rowNode);\n }\n\n _this.parentStore.removeDuplicateNode(rowNode.id);\n\n _this.nodeManager.addRowNode(rowNode);\n\n _this.allNodesMap[rowNode.id] = rowNode;\n }\n\n if (failedLoad) {\n rowNode.failedLoad = true;\n }\n\n return rowNode;\n };\n\n var getRowIdFunc = this_1.gridOptionsWrapper.getRowIdFunc();\n var row = void 0;\n\n if (getRowIdFunc && dataLoadedForThisRow) {\n var data = rows[i];\n var parentKeys = this_1.parentRowNode.getGroupKeys();\n var id = getRowIdFunc({\n data: data,\n level: this_1.level,\n parentKeys: parentKeys.length > 0 ? parentKeys : undefined\n });\n var cachedRow = this_1.parentStore.retrieveNodeFromCache(id);\n row = getNodeWithData(cachedRow);\n }\n\n if (!row) {\n row = getNodeWithData();\n }\n\n this_1.rowNodes.push(row);\n };\n\n var this_1 = this;\n\n for (var i = 0; i < rowsToCreate; i++) {\n _loop_1(i);\n }\n }; // to safeguard the grid against duplicate nodes, when a row is loaded, we check\n // for another row in the same cache. if another row does exist, we delete it.\n // this covers for when user refreshes the store (which typically happens after a\n // data change) and the same row ends up coming back in a different block, and the\n // new block finishes refreshing before the old block has finished refreshing.\n\n\n InfiniteStoreBlock.prototype.removeDuplicateNode = function (id) {\n // we don't remove duplicates if this block is loaded, as that's a duplicate ID.\n // we are only interested in removing rows in blocks that are in the middle of a refresh,\n // ie two blocks, A and B, both are refreshed (as in the same cache) but A comes back\n // first and some rows have moved from B to A, we must remove the old rows from B.\n // however if B is not also getting refreshed (ie it's loaded) this is a bug\n // we need to tell the application about, as they provided duplicate ID's (done in Node Manager)\n if (this.getState() == RowNodeBlock.STATE_LOADED) {\n return;\n }\n\n var rowNode = this.allNodesMap[id];\n\n if (!rowNode) {\n return;\n }\n\n this.blockUtils.destroyRowNode(rowNode);\n var index = this.rowNodes.indexOf(rowNode);\n var stubRowNode = this.blockUtils.createRowNode({\n field: this.groupField,\n group: this.groupLevel,\n leafGroup: this.leafGroup,\n level: this.level,\n parent: this.parentRowNode,\n rowGroupColumn: this.rowGroupColumn\n });\n this.rowNodes[index] = stubRowNode;\n };\n\n InfiniteStoreBlock.prototype.refresh = function () {\n if (this.getState() !== RowNodeBlock.STATE_WAITING_TO_LOAD) {\n this.setStateWaitingToLoad();\n }\n };\n\n InfiniteStoreBlock.prototype.destroyRowNodes = function () {\n var _this = this;\n\n var _a;\n\n (_a = this.rowNodes) === null || _a === void 0 ? void 0 : _a.forEach(function (row) {\n var isStoreCachingNode = _this.parentStore.isNodeCached(row.id);\n\n _this.blockUtils.destroyRowNode(row, isStoreCachingNode);\n });\n this.rowNodes = [];\n this.allNodesMap = {};\n };\n\n InfiniteStoreBlock.prototype.setBeans = function (loggerFactory) {\n this.logger = loggerFactory.create('ServerSideBlock');\n };\n\n InfiniteStoreBlock.prototype.getRowUsingDisplayIndex = function (displayRowIndex) {\n this.touchLastAccessed();\n var res = this.blockUtils.binarySearchForDisplayIndex(displayRowIndex, this.rowNodes);\n return res;\n };\n\n InfiniteStoreBlock.prototype.loadFromDatasource = function () {\n this.storeUtils.loadFromDatasource({\n startRow: this.startRow,\n endRow: this.startRow + this.storeParams.cacheBlockSize,\n parentBlock: this,\n parentNode: this.parentRowNode,\n storeParams: this.ssrmParams,\n successCallback: this.pageLoaded.bind(this, this.getVersion()),\n success: this.success.bind(this, this.getVersion()),\n failCallback: this.pageLoadFailed.bind(this, this.getVersion()),\n fail: this.pageLoadFailed.bind(this, this.getVersion())\n });\n };\n\n InfiniteStoreBlock.prototype.isPixelInRange = function (pixel) {\n return pixel >= this.blockTopPx && pixel < this.blockTopPx + this.blockHeightPx;\n };\n\n InfiniteStoreBlock.prototype.getRowBounds = function (index) {\n var e_1, _a;\n\n this.touchLastAccessed();\n var res;\n\n try {\n for (var _b = __values$1(this.rowNodes), _c = _b.next(); !_c.done; _c = _b.next()) {\n var rowNode = _c.value;\n res = this.blockUtils.extractRowBounds(rowNode, index);\n\n if (res != null) {\n break;\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n\n return res;\n };\n\n InfiniteStoreBlock.prototype.getRowIndexAtPixel = function (pixel) {\n var e_2, _a;\n\n this.touchLastAccessed();\n var res = null;\n\n try {\n for (var _b = __values$1(this.rowNodes), _c = _b.next(); !_c.done; _c = _b.next()) {\n var rowNode = _c.value;\n res = this.blockUtils.getIndexAtPixel(rowNode, pixel);\n\n if (res != null) {\n break;\n }\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n } finally {\n if (e_2) throw e_2.error;\n }\n }\n\n return res;\n };\n\n InfiniteStoreBlock.prototype.clearDisplayIndexes = function () {\n var _this = this;\n\n this.displayIndexEnd = undefined;\n this.displayIndexStart = undefined;\n this.rowNodes.forEach(function (rowNode) {\n return _this.blockUtils.clearDisplayIndex(rowNode);\n });\n };\n\n InfiniteStoreBlock.prototype.setDisplayIndexes = function (displayIndexSeq, nextRowTop) {\n var _this = this;\n\n this.displayIndexStart = displayIndexSeq.peek();\n this.blockTopPx = nextRowTop.value;\n this.rowNodes.forEach(function (rowNode) {\n return _this.blockUtils.setDisplayIndex(rowNode, displayIndexSeq, nextRowTop);\n });\n this.displayIndexEnd = displayIndexSeq.peek();\n this.blockHeightPx = nextRowTop.value - this.blockTopPx;\n };\n\n __decorate$j([Autowired('columnModel')], InfiniteStoreBlock.prototype, \"columnModel\", void 0);\n\n __decorate$j([Autowired('ssrmStoreUtils')], InfiniteStoreBlock.prototype, \"storeUtils\", void 0);\n\n __decorate$j([Autowired('ssrmBlockUtils')], InfiniteStoreBlock.prototype, \"blockUtils\", void 0);\n\n __decorate$j([Autowired('ssrmNodeManager')], InfiniteStoreBlock.prototype, \"nodeManager\", void 0);\n\n __decorate$j([Autowired('rowNodeBlockLoader')], InfiniteStoreBlock.prototype, \"rowNodeBlockLoader\", void 0);\n\n __decorate$j([PostConstruct], InfiniteStoreBlock.prototype, \"postConstruct\", null);\n\n __decorate$j([PreDestroy], InfiniteStoreBlock.prototype, \"destroyRowNodes\", null);\n\n __decorate$j([__param$1(0, Qualifier('loggerFactory'))], InfiniteStoreBlock.prototype, \"setBeans\", null);\n\n return InfiniteStoreBlock;\n}(RowNodeBlock);\n\nvar __extends$C = undefined && undefined.__extends || function () {\n var _extendStatics182 = function extendStatics(d, b) {\n _extendStatics182 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics182(d, b);\n };\n\n return function (d, b) {\n _extendStatics182(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar __param = undefined && undefined.__param || function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n};\n\nvar FindResult;\n\n(function (FindResult) {\n FindResult[FindResult[\"FOUND\"] = 0] = \"FOUND\";\n FindResult[FindResult[\"CONTINUE_FIND\"] = 1] = \"CONTINUE_FIND\";\n FindResult[FindResult[\"BREAK_FIND\"] = 2] = \"BREAK_FIND\";\n})(FindResult || (FindResult = {}));\n\nvar InfiniteStore =\n/** @class */\nfunction (_super) {\n __extends$C(InfiniteStore, _super);\n\n function InfiniteStore(ssrmParams, storeParams, parentRowNode) {\n var _this = _super.call(this) || this;\n\n _this.blocks = {};\n _this.blockHeights = {};\n _this.lastRowIndexKnown = false; // this will always be zero for the top level cache only,\n // all the other ones change as the groups open and close\n\n _this.displayIndexStart = 0;\n _this.displayIndexEnd = 0; // not sure if setting this one to zero is necessary\n\n _this.cacheTopPixel = 0;\n _this.info = {};\n _this.refreshedNodeCache = {};\n _this.ssrmParams = ssrmParams;\n _this.storeParams = storeParams;\n _this.parentRowNode = parentRowNode;\n return _this;\n }\n\n InfiniteStore.prototype.postConstruct = function () {\n this.defaultRowHeight = this.gridOptionsWrapper.getRowHeightAsNumber();\n var isRootStore = this.parentRowNode.level === -1;\n var initialRowCount = isRootStore ? this.gridOptionsWrapper.getServerSideInitialRowCount() : InfiniteStore.INITIAL_ROW_COUNT;\n this.rowCount = initialRowCount;\n };\n\n InfiniteStore.prototype.destroyAllBlocks = function () {\n var _this = this;\n\n this.getBlocksInOrder().forEach(function (block) {\n return _this.destroyBlock(block);\n });\n this.blockUtils.destroyRowNodes(Object.values(this.refreshedNodeCache));\n };\n\n InfiniteStore.prototype.setBeans = function (loggerFactory) {\n this.logger = loggerFactory.create('ServerSideCache');\n };\n\n InfiniteStore.prototype.getRowCount = function () {\n return this.rowCount;\n };\n\n InfiniteStore.prototype.isLastRowIndexKnown = function () {\n return this.lastRowIndexKnown;\n };\n\n InfiniteStore.prototype.retryLoads = function () {\n this.getBlocksInOrder().forEach(function (block) {\n return block.retryLoads();\n });\n };\n\n InfiniteStore.prototype.onBlockLoadFailed = function (block) {\n block.setData([], true);\n this.fireCacheUpdatedEvent();\n };\n\n InfiniteStore.prototype.onBlockLoaded = function (block, params) {\n this.logger.log(\"onPageLoaded: page = \" + block.getId() + \", lastRow = \" + params.rowCount);\n var info = params.storeInfo || params.groupLevelInfo;\n\n if (info) {\n Object.assign(this.info, info);\n }\n\n if (!params.rowData) {\n var message_1 = 'AG Grid: \"params.rowData\" is missing from Server-Side Row Model success() callback. Please use the \"rowData\" attribute. If no data is returned, set an empty list.';\n\n _.doOnce(function () {\n return console.warn(message_1, params);\n }, 'InfiniteStore.noData');\n }\n\n var finalRowCount = params.rowCount != null && params.rowCount >= 0 ? params.rowCount : undefined; // if we are not active, then we ignore all events, otherwise we could end up getting the\n // grid to refresh even though we are no longer the active cache\n\n if (!this.isAlive()) {\n return;\n }\n\n this.checkRowCount(block, finalRowCount);\n block.setData(params.rowData); // if the virtualRowCount is shortened, then it's possible blocks exist that are no longer\n // in the valid range. so we must remove these. this can happen if the datasource returns a\n // result and sets lastRow to something less than virtualRowCount (can happen if user scrolls\n // down, server reduces dataset size).\n\n this.destroyAllBlocksPastVirtualRowCount();\n this.fireCacheUpdatedEvent();\n };\n\n InfiniteStore.prototype.purgeBlocksIfNeeded = function (blockToExclude) {\n var _this = this; // we exclude checking for the page just created, as this has yet to be accessed and hence\n // the lastAccessed stamp will not be updated for the first time yet\n\n\n var blocksForPurging = this.getBlocksInOrder().filter(function (b) {\n return b != blockToExclude;\n });\n\n var lastAccessedComparator = function lastAccessedComparator(a, b) {\n return b.getLastAccessed() - a.getLastAccessed();\n };\n\n blocksForPurging.sort(lastAccessedComparator); // we remove (maxBlocksInCache - 1) as we already excluded the 'just created' page.\n // in other words, after the splice operation below, we have taken out the blocks\n // we want to keep, which means we are left with blocks that we can potentially purge\n\n var maxBlocksProvided = this.storeParams.maxBlocksInCache > 0;\n var blocksToKeep = maxBlocksProvided ? this.storeParams.maxBlocksInCache - 1 : null;\n var emptyBlocksToKeep = InfiniteStore.MAX_EMPTY_BLOCKS_TO_KEEP - 1;\n blocksForPurging.forEach(function (block, index) {\n var purgeBecauseBlockEmpty = block.getState() === InfiniteStoreBlock.STATE_WAITING_TO_LOAD && index >= emptyBlocksToKeep;\n var purgeBecauseCacheFull = maxBlocksProvided ? index >= blocksToKeep : false;\n\n if (purgeBecauseBlockEmpty || purgeBecauseCacheFull) {\n // we never purge blocks if they are open, as purging them would mess up with\n // our indexes, it would be very messy to restore the purged block to it's\n // previous state if it had open children.\n if (block.isAnyNodeOpen()) {\n return;\n } // if the block currently has rows been displayed, then don't remove it either.\n // this can happen if user has maxBlocks=2, and blockSize=5 (thus 10 max rows in cache)\n // but the screen is showing 20 rows, so at least 4 blocks are needed.\n\n\n if (_this.isBlockCurrentlyDisplayed(block)) {\n return;\n } // don't want to loose keyboard focus, so keyboard navigation can continue. so keep focused blocks.\n\n\n if (_this.isBlockFocused(block)) {\n return;\n } // at this point, block is not needed, and no open nodes, so burn baby burn\n\n\n _this.destroyBlock(block);\n }\n });\n };\n\n InfiniteStore.prototype.isBlockFocused = function (block) {\n var focusedCell = this.focusService.getFocusCellToUseAfterRefresh();\n\n if (!focusedCell) {\n return false;\n }\n\n if (focusedCell.rowPinned != null) {\n return false;\n }\n\n var blockIndexStart = block.getDisplayIndexStart();\n var blockIndexEnd = block.getDisplayIndexEnd();\n\n if (blockIndexEnd == null || blockIndexStart == null) {\n return false;\n }\n\n var hasFocus = focusedCell.rowIndex >= blockIndexStart && focusedCell.rowIndex < blockIndexEnd;\n return hasFocus;\n };\n\n InfiniteStore.prototype.isBlockCurrentlyDisplayed = function (block) {\n var startIndex = block.getDisplayIndexStart();\n var endIndex = block.getDisplayIndexEnd() - 1;\n return this.rowRenderer.isRangeInRenderedViewport(startIndex, endIndex);\n };\n\n InfiniteStore.prototype.removeDuplicateNode = function (id) {\n this.getBlocksInOrder().forEach(function (block) {\n return block.removeDuplicateNode(id);\n });\n };\n\n InfiniteStore.prototype.checkRowCount = function (block, lastRow) {\n // if client provided a last row, we always use it, as it could change between server calls\n // if user deleted data and then called refresh on the grid.\n if (typeof lastRow === 'number' && lastRow >= 0) {\n this.rowCount = lastRow;\n this.lastRowIndexKnown = true;\n } else if (!this.lastRowIndexKnown) {\n // otherwise, see if we need to add some virtual rows\n var lastRowIndex = (block.getId() + 1) * this.storeParams.cacheBlockSize;\n var lastRowIndexPlusOverflow = lastRowIndex + InfiniteStore.OVERFLOW_SIZE;\n\n if (this.rowCount < lastRowIndexPlusOverflow) {\n this.rowCount = lastRowIndexPlusOverflow;\n }\n }\n };\n\n InfiniteStore.prototype.forEachNodeDeep = function (callback, sequence) {\n if (sequence === void 0) {\n sequence = new NumberSequence();\n }\n\n this.getBlocksInOrder().forEach(function (block) {\n return block.forEachNodeDeep(callback, sequence);\n });\n };\n\n InfiniteStore.prototype.forEachNodeDeepAfterFilterAndSort = function (callback, sequence) {\n if (sequence === void 0) {\n sequence = new NumberSequence();\n }\n\n this.getBlocksInOrder().forEach(function (block) {\n return block.forEachNodeAfterFilterAndSort(callback, sequence);\n });\n };\n\n InfiniteStore.prototype.getBlocksInOrder = function () {\n // get all page id's as NUMBERS (not strings, as we need to sort as numbers) and in descending order\n var blockComparator = function blockComparator(a, b) {\n return a.getId() - b.getId();\n };\n\n var blocks = _.getAllValuesInObject(this.blocks).sort(blockComparator);\n\n return blocks;\n };\n\n InfiniteStore.prototype.destroyBlock = function (block) {\n delete this.blocks[block.getId()];\n this.destroyBean(block);\n this.rowNodeBlockLoader.removeBlock(block);\n }; // gets called 1) row count changed 2) cache purged 3) items inserted\n\n\n InfiniteStore.prototype.fireCacheUpdatedEvent = function () {\n // this results in row model firing ModelUpdated.\n // server side row model also updates the row indexes first\n var event = {\n type: Events.EVENT_STORE_UPDATED\n };\n this.eventService.dispatchEvent(event);\n };\n\n InfiniteStore.prototype.destroyAllBlocksPastVirtualRowCount = function () {\n var _this = this;\n\n var blocksToDestroy = [];\n this.getBlocksInOrder().forEach(function (block) {\n var startRow = block.getId() * _this.storeParams.cacheBlockSize;\n\n if (startRow >= _this.rowCount) {\n blocksToDestroy.push(block);\n }\n });\n\n if (blocksToDestroy.length > 0) {\n blocksToDestroy.forEach(function (block) {\n return _this.destroyBlock(block);\n });\n }\n };\n\n InfiniteStore.prototype.refreshStore = function (purge) {\n var noBlocksToRefresh = this.getRowCount() == 0;\n\n if (noBlocksToRefresh || purge) {\n this.resetStore();\n } else {\n this.refreshBlocks();\n }\n\n this.fireCacheUpdatedEvent();\n };\n\n InfiniteStore.prototype.isNodeCached = function (id) {\n return !!this.refreshedNodeCache[id];\n };\n\n InfiniteStore.prototype.retrieveNodeFromCache = function (id) {\n var node = this.refreshedNodeCache[id];\n\n if (node) {\n delete this.refreshedNodeCache[id];\n }\n\n return node;\n };\n\n InfiniteStore.prototype.buildRowNodeCache = function () {\n var rowCache = {};\n this.getBlocksInOrder().forEach(function (block) {\n block.rowNodes.forEach(function (row) {\n if (row.group) {\n rowCache[row.id] = row;\n }\n });\n });\n this.refreshedNodeCache = rowCache;\n };\n\n InfiniteStore.prototype.refreshBlocks = function () {\n this.buildRowNodeCache();\n this.getBlocksInOrder().forEach(function (block) {\n block.refresh();\n });\n this.lastRowIndexKnown = false;\n this.rowNodeBlockLoader.checkBlockToLoad();\n };\n\n InfiniteStore.prototype.resetStore = function () {\n this.destroyAllBlocks();\n this.lastRowIndexKnown = false; // if zero rows in the cache, we need to get the SSRM to start asking for rows again.\n // otherwise if set to zero rows last time, and we don't update the row count, then after\n // the purge there will still be zero rows, meaning the SSRM won't request any rows.\n // to kick things off, at least one row needs to be asked for.\n\n if (this.columnModel.isAutoRowHeightActive() || this.rowCount === 0) {\n this.rowCount = InfiniteStore.INITIAL_ROW_COUNT;\n }\n };\n\n InfiniteStore.prototype.getRowNodesInRange = function (firstInRange, lastInRange) {\n var result = [];\n var lastBlockId = -1;\n var inActiveRange = false; // if only one node passed, we start the selection at the top\n\n if (_.missing(firstInRange)) {\n inActiveRange = true;\n }\n\n var foundGapInSelection = false;\n this.getBlocksInOrder().forEach(function (block) {\n if (foundGapInSelection) {\n return;\n }\n\n if (inActiveRange && lastBlockId + 1 !== block.getId()) {\n foundGapInSelection = true;\n return;\n }\n\n lastBlockId = block.getId();\n block.forEachNodeShallow(function (rowNode) {\n var hitFirstOrLast = rowNode === firstInRange || rowNode === lastInRange;\n\n if (inActiveRange || hitFirstOrLast) {\n result.push(rowNode);\n }\n\n if (hitFirstOrLast) {\n inActiveRange = !inActiveRange;\n }\n });\n }); // inActiveRange will be still true if we never hit the second rowNode\n\n var invalidRange = foundGapInSelection || inActiveRange;\n return invalidRange ? [] : result;\n };\n\n InfiniteStore.prototype.findBlockAndExecute = function (matchBlockFunc, blockFoundFunc, blockNotFoundFunc) {\n var blockFound = false;\n var breakSearch = false;\n var lastBlock = null;\n var res;\n this.getBlocksInOrder().forEach(function (block) {\n if (blockFound || breakSearch) {\n return;\n }\n\n var comparatorResult = matchBlockFunc(block);\n\n if (comparatorResult == FindResult.FOUND) {\n res = blockFoundFunc(block);\n blockFound = true;\n } else if (comparatorResult == FindResult.CONTINUE_FIND) {\n lastBlock = block;\n } else if (comparatorResult == FindResult.BREAK_FIND) {\n breakSearch = true;\n }\n });\n\n if (!blockFound) {\n res = blockNotFoundFunc(lastBlock);\n }\n\n return res;\n };\n\n InfiniteStore.prototype.getRowBounds = function (index) {\n var _this = this;\n\n var matchBlockFunc = function matchBlockFunc(block) {\n if (block.isDisplayIndexInBlock(index)) {\n return FindResult.FOUND;\n } else {\n return block.isBlockBefore(index) ? FindResult.CONTINUE_FIND : FindResult.BREAK_FIND;\n }\n };\n\n var blockFoundFunc = function blockFoundFunc(foundBlock) {\n return foundBlock.getRowBounds(index);\n };\n\n var blockNotFoundFunc = function blockNotFoundFunc(previousBlock) {\n var nextRowTop;\n var nextRowIndex;\n\n if (previousBlock !== null) {\n nextRowTop = previousBlock.getBlockTopPx() + previousBlock.getBlockHeightPx();\n nextRowIndex = previousBlock.getDisplayIndexEnd();\n } else {\n nextRowTop = _this.cacheTopPixel;\n nextRowIndex = _this.displayIndexStart;\n }\n\n var rowsBetween = index - nextRowIndex;\n return {\n rowHeight: _this.defaultRowHeight,\n rowTop: nextRowTop + rowsBetween * _this.defaultRowHeight\n };\n };\n\n return this.findBlockAndExecute(matchBlockFunc, blockFoundFunc, blockNotFoundFunc);\n };\n\n InfiniteStore.prototype.getRowIndexAtPixel = function (pixel) {\n var _this = this;\n\n var matchBlockFunc = function matchBlockFunc(block) {\n if (block.isPixelInRange(pixel)) {\n return FindResult.FOUND;\n } else {\n return block.getBlockTopPx() < pixel ? FindResult.CONTINUE_FIND : FindResult.BREAK_FIND;\n }\n };\n\n var blockFoundFunc = function blockFoundFunc(foundBlock) {\n return foundBlock.getRowIndexAtPixel(pixel);\n };\n\n var blockNotFoundFunc = function blockNotFoundFunc(previousBlock) {\n var nextRowTop;\n var nextRowIndex;\n\n if (previousBlock) {\n nextRowTop = previousBlock.getBlockTopPx() + previousBlock.getBlockHeightPx();\n nextRowIndex = previousBlock.getDisplayIndexEnd();\n } else {\n nextRowTop = _this.cacheTopPixel;\n nextRowIndex = _this.displayIndexStart;\n } // we start at the last loaded block before this block, and go down\n // block by block, adding in the block sizes (using cached sizes if available)\n // until we get to a block that does should have the pixel\n\n\n var blockSize = _this.storeParams.cacheBlockSize;\n var defaultBlockHeight = _this.defaultRowHeight * blockSize;\n var nextBlockId = previousBlock ? previousBlock.getId() + 1 : 0;\n\n var getBlockDetails = function getBlockDetails(id) {\n var cachedBlockHeight = _this.getCachedBlockHeight(id);\n\n var blockHeight = cachedBlockHeight != null ? cachedBlockHeight : defaultBlockHeight;\n var pixelInBlock = pixel <= blockHeight + nextRowTop;\n return {\n height: blockHeight,\n pixelInBlock: pixelInBlock\n };\n };\n\n var blockDetails = getBlockDetails(nextBlockId);\n\n while (!blockDetails.pixelInBlock) {\n nextRowTop += blockDetails.height;\n nextRowIndex += blockSize;\n nextBlockId++;\n blockDetails = getBlockDetails(nextBlockId);\n }\n\n var pixelsBetween = pixel - nextRowTop;\n var rowHeight = blockDetails.height / blockSize;\n var rowsBetween = Math.floor(pixelsBetween / rowHeight) | 0;\n return nextRowIndex + rowsBetween;\n };\n\n var result = this.findBlockAndExecute(matchBlockFunc, blockFoundFunc, blockNotFoundFunc);\n var lastAllowedIndex = this.getDisplayIndexEnd() - 1;\n result = Math.min(result, lastAllowedIndex);\n return result;\n };\n\n InfiniteStore.prototype.clearDisplayIndexes = function () {\n this.displayIndexStart = undefined;\n this.displayIndexEnd = undefined;\n this.getBlocksInOrder().forEach(function (block) {\n return block.clearDisplayIndexes();\n });\n };\n\n InfiniteStore.prototype.setDisplayIndexes = function (displayIndexSeq, nextRowTop) {\n var _this = this;\n\n this.displayIndexStart = displayIndexSeq.peek();\n this.cacheTopPixel = nextRowTop.value;\n var lastBlockId = -1;\n var blockSize = this.storeParams.cacheBlockSize;\n this.getBlocksInOrder().forEach(function (currentBlock) {\n // if we skipped blocks, then we need to skip the row indexes. we assume that all missing\n // blocks are made up of closed RowNodes only (if they were groups), as we never expire from\n // the cache if any row nodes are open.\n var blockId = currentBlock.getId();\n var blocksSkippedCount = blockId - lastBlockId - 1;\n var rowsSkippedCount = blocksSkippedCount * blockSize;\n\n if (rowsSkippedCount > 0) {\n displayIndexSeq.skip(rowsSkippedCount);\n }\n\n for (var i = 1; i <= blocksSkippedCount; i++) {\n var blockToAddId = blockId - i;\n\n if (_.exists(_this.blockHeights[blockToAddId])) {\n nextRowTop.value += _this.blockHeights[blockToAddId];\n } else {\n nextRowTop.value += blockSize * _this.defaultRowHeight;\n }\n }\n\n lastBlockId = blockId;\n currentBlock.setDisplayIndexes(displayIndexSeq, nextRowTop);\n _this.blockHeights[blockId] = currentBlock.getBlockHeightPx();\n }); // if any blocks missing at the end, need to increase the row index for them also\n // eg if block size = 10, we have total rows of 25 (indexes 0 .. 24), but first 2 blocks loaded (because\n // last row was ejected from cache), then:\n // lastVisitedRow = 19, virtualRowCount = 25, rows not accounted for = 5 (24 - 19)\n\n var lastVisitedRow = (lastBlockId + 1) * blockSize - 1;\n var rowCount = this.getRowCount();\n var rowsNotAccountedFor = rowCount - lastVisitedRow - 1;\n\n if (rowsNotAccountedFor > 0) {\n displayIndexSeq.skip(rowsNotAccountedFor);\n nextRowTop.value += rowsNotAccountedFor * this.defaultRowHeight;\n }\n\n this.displayIndexEnd = displayIndexSeq.peek();\n this.cacheHeightPixels = nextRowTop.value - this.cacheTopPixel;\n }; // gets called in a) init() above and b) by the grid\n\n\n InfiniteStore.prototype.getRowUsingDisplayIndex = function (displayRowIndex, dontCreateBlock) {\n var _this = this;\n\n if (dontCreateBlock === void 0) {\n dontCreateBlock = false;\n } // this can happen if asking for a row that doesn't exist in the model,\n // eg if a cell range is selected, and the user filters so rows no longer exists\n\n\n if (!this.isDisplayIndexInStore(displayRowIndex)) {\n return undefined;\n }\n\n var matchBlockFunc = function matchBlockFunc(block) {\n if (block.isDisplayIndexInBlock(displayRowIndex)) {\n return FindResult.FOUND;\n } else {\n return block.isBlockBefore(displayRowIndex) ? FindResult.CONTINUE_FIND : FindResult.BREAK_FIND;\n }\n };\n\n var blockFoundFunc = function blockFoundFunc(foundBlock) {\n return foundBlock.getRowUsingDisplayIndex(displayRowIndex);\n };\n\n var blockNotFoundFunc = function blockNotFoundFunc(previousBlock) {\n if (dontCreateBlock) {\n return;\n }\n\n var blockNumber;\n var displayIndexStart;\n var nextRowTop;\n var blockSize = _this.storeParams.cacheBlockSize; // because missing blocks are always fully closed, we can work out\n // the start index of the block we want by hopping from the closest block,\n // as we know the row count in closed blocks is equal to the page size\n\n if (previousBlock) {\n blockNumber = previousBlock.getId() + 1;\n displayIndexStart = previousBlock.getDisplayIndexEnd();\n nextRowTop = previousBlock.getBlockHeightPx() + previousBlock.getBlockTopPx();\n\n var isInRange = function isInRange() {\n return displayRowIndex >= displayIndexStart && displayRowIndex < displayIndexStart + blockSize;\n };\n\n while (!isInRange()) {\n displayIndexStart += blockSize;\n var cachedBlockHeight = _this.blockHeights[blockNumber];\n\n if (_.exists(cachedBlockHeight)) {\n nextRowTop += cachedBlockHeight;\n } else {\n nextRowTop += _this.defaultRowHeight * blockSize;\n }\n\n blockNumber++;\n }\n } else {\n var localIndex = displayRowIndex - _this.displayIndexStart;\n blockNumber = Math.floor(localIndex / blockSize);\n displayIndexStart = _this.displayIndexStart + blockNumber * blockSize;\n nextRowTop = _this.cacheTopPixel + blockNumber * blockSize * _this.defaultRowHeight;\n }\n\n _this.logger.log(\"block missing, rowIndex = \" + displayRowIndex + \", creating #\" + blockNumber + \", displayIndexStart = \" + displayIndexStart);\n\n var newBlock = _this.createBlock(blockNumber, displayIndexStart, {\n value: nextRowTop\n });\n\n return newBlock.getRowUsingDisplayIndex(displayRowIndex);\n };\n\n return this.findBlockAndExecute(matchBlockFunc, blockFoundFunc, blockNotFoundFunc);\n };\n\n InfiniteStore.prototype.getTopLevelRowDisplayedIndex = function (topLevelIndex) {\n var blockSize = this.storeParams.cacheBlockSize;\n var blockId = Math.floor(topLevelIndex / blockSize);\n\n var matchBlockFunc = function matchBlockFunc(block) {\n if (block.getId() === blockId) {\n return FindResult.FOUND;\n }\n\n return block.getId() < blockId ? FindResult.CONTINUE_FIND : FindResult.BREAK_FIND;\n };\n\n var blockFoundFunc = function blockFoundFunc(foundBlock) {\n var rowNode = foundBlock.getRowUsingLocalIndex(topLevelIndex);\n return rowNode.rowIndex;\n };\n\n var blockNotFoundFunc = function blockNotFoundFunc(previousBlock) {\n if (!previousBlock) {\n return topLevelIndex;\n } // note: the local index is the same as the top level index, two terms for same thing\n //\n // get index of the last row before this row\n // eg if blocksize = 100, then:\n // last row of first block is 99 (100 * 1) -1;\n // last row of second block is 199 (100 * 2) -1;\n\n\n var lastRowTopLevelIndex = blockSize * (previousBlock.getId() + 1) - 1; // get the last top level node in the block before the wanted block. this will be the last\n // loaded displayed top level node.\n\n var lastRowNode = previousBlock.getRowUsingLocalIndex(lastRowTopLevelIndex); // we want the index of the last displayed node, not just the top level node, so if the last top level node\n // is open, we get the index of the last displayed child node.\n\n var lastDisplayedNodeIndexInBlockBefore;\n\n if (lastRowNode.expanded && lastRowNode.childStore) {\n var serverSideCache = lastRowNode.childStore;\n lastDisplayedNodeIndexInBlockBefore = serverSideCache.getDisplayIndexEnd() - 1;\n } else if (lastRowNode.expanded && lastRowNode.detailNode) {\n lastDisplayedNodeIndexInBlockBefore = lastRowNode.detailNode.rowIndex;\n } else {\n lastDisplayedNodeIndexInBlockBefore = lastRowNode.rowIndex;\n } // we are guaranteed no rows are open. so the difference between the topTopIndex will be the\n // same as the difference between the displayed index\n\n\n var indexDiff = topLevelIndex - lastRowTopLevelIndex;\n return lastDisplayedNodeIndexInBlockBefore + indexDiff;\n };\n\n return this.findBlockAndExecute(matchBlockFunc, blockFoundFunc, blockNotFoundFunc);\n };\n\n InfiniteStore.prototype.addStoreStates = function (result) {\n result.push({\n infiniteScroll: true,\n route: this.parentRowNode.getGroupKeys(),\n rowCount: this.rowCount,\n lastRowIndexKnown: this.lastRowIndexKnown,\n info: this.info,\n maxBlocksInCache: this.storeParams.maxBlocksInCache,\n cacheBlockSize: this.storeParams.cacheBlockSize\n });\n this.forEachChildStoreShallow(function (childStore) {\n return childStore.addStoreStates(result);\n });\n };\n\n InfiniteStore.prototype.getCachedBlockHeight = function (blockNumber) {\n return this.blockHeights[blockNumber];\n };\n\n InfiniteStore.prototype.createBlock = function (blockNumber, displayIndex, nextRowTop) {\n var block = this.createBean(new InfiniteStoreBlock(blockNumber, this.parentRowNode, this.ssrmParams, this.storeParams, this));\n block.setDisplayIndexes(new NumberSequence(displayIndex), nextRowTop);\n this.blocks[block.getId()] = block;\n this.purgeBlocksIfNeeded(block);\n this.rowNodeBlockLoader.addBlock(block);\n return block;\n };\n\n InfiniteStore.prototype.getDisplayIndexEnd = function () {\n return this.displayIndexEnd;\n };\n\n InfiniteStore.prototype.isDisplayIndexInStore = function (displayIndex) {\n if (this.getRowCount() === 0) {\n return false;\n }\n\n return displayIndex >= this.displayIndexStart && displayIndex < this.displayIndexEnd;\n };\n\n InfiniteStore.prototype.applyTransaction = function (transaction) {\n return {\n status: ServerSideTransactionResultStatus.StoreWrongType\n };\n };\n\n InfiniteStore.prototype.getChildStore = function (keys) {\n var _this = this;\n\n var findNodeCallback = function findNodeCallback(key) {\n var nextNode = null;\n\n _this.getBlocksInOrder().forEach(function (block) {\n block.forEachNodeShallow(function (rowNode) {\n if (rowNode.key == key) {\n nextNode = rowNode;\n }\n }, new NumberSequence());\n });\n\n return nextNode;\n };\n\n return this.storeUtils.getChildStore(keys, this, findNodeCallback);\n };\n\n InfiniteStore.prototype.isPixelInRange = function (pixel) {\n if (this.getRowCount() === 0) {\n return false;\n }\n\n return pixel >= this.cacheTopPixel && pixel < this.cacheTopPixel + this.cacheHeightPixels;\n };\n\n InfiniteStore.prototype.refreshAfterFilter = function (params) {\n var serverFiltersAllLevels = this.gridOptionsWrapper.isServerSideFilterAllLevels();\n\n if (serverFiltersAllLevels || this.storeUtils.isServerRefreshNeeded(this.parentRowNode, this.ssrmParams.rowGroupCols, params)) {\n this.resetStore();\n return;\n } // call refreshAfterSort on children, as we did not purge.\n // if we did purge, no need to do this as all children were destroyed\n\n\n this.forEachChildStoreShallow(function (store) {\n return store.refreshAfterFilter(params);\n });\n };\n\n InfiniteStore.prototype.refreshAfterSort = function (params) {\n var serverSortsAllLevels = this.gridOptionsWrapper.isServerSideSortAllLevels();\n\n if (serverSortsAllLevels || this.storeUtils.isServerRefreshNeeded(this.parentRowNode, this.ssrmParams.rowGroupCols, params)) {\n this.resetStore();\n return;\n } // call refreshAfterSort on children, as we did not purge.\n // if we did purge, no need to do this as all children were destroyed\n\n\n this.forEachChildStoreShallow(function (store) {\n return store.refreshAfterSort(params);\n });\n };\n\n InfiniteStore.prototype.forEachChildStoreShallow = function (callback) {\n this.getBlocksInOrder().forEach(function (block) {\n if (block.isGroupLevel()) {\n var innerCallback = function innerCallback(rowNode) {\n var nextCache = rowNode.childStore;\n\n if (nextCache) {\n callback(nextCache);\n }\n };\n\n block.forEachNodeShallow(innerCallback, new NumberSequence());\n }\n });\n }; // this property says how many empty blocks should be in a cache, eg if scrolls down fast and creates 10\n // blocks all for loading, the grid will only load the last 2 - it will assume the blocks the user quickly\n // scrolled over are not needed to be loaded.\n\n\n InfiniteStore.MAX_EMPTY_BLOCKS_TO_KEEP = 2;\n InfiniteStore.INITIAL_ROW_COUNT = 1;\n InfiniteStore.OVERFLOW_SIZE = 1;\n\n __decorate$i([Autowired('rowRenderer')], InfiniteStore.prototype, \"rowRenderer\", void 0);\n\n __decorate$i([Autowired('rowNodeBlockLoader')], InfiniteStore.prototype, \"rowNodeBlockLoader\", void 0);\n\n __decorate$i([Autowired('ssrmStoreUtils')], InfiniteStore.prototype, \"storeUtils\", void 0);\n\n __decorate$i([Autowired(\"focusService\")], InfiniteStore.prototype, \"focusService\", void 0);\n\n __decorate$i([Autowired(\"columnModel\")], InfiniteStore.prototype, \"columnModel\", void 0);\n\n __decorate$i([Autowired('ssrmBlockUtils')], InfiniteStore.prototype, \"blockUtils\", void 0);\n\n __decorate$i([PostConstruct], InfiniteStore.prototype, \"postConstruct\", null);\n\n __decorate$i([PreDestroy], InfiniteStore.prototype, \"destroyAllBlocks\", null);\n\n __decorate$i([__param(0, Qualifier('loggerFactory'))], InfiniteStore.prototype, \"setBeans\", null);\n\n return InfiniteStore;\n}(BeanStub);\n\nvar __extends$B = undefined && undefined.__extends || function () {\n var _extendStatics183 = function extendStatics(d, b) {\n _extendStatics183 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics183(d, b);\n };\n\n return function (d, b) {\n _extendStatics183(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar FullStore =\n/** @class */\nfunction (_super) {\n __extends$B(FullStore, _super);\n\n function FullStore(ssrmParams, storeParams, parentRowNode) {\n var _this = // finite block represents a cache with just one block, thus 0 is the id, it's the first block\n _super.call(this, 0) || this;\n\n _this.nodeIdSequence = new NumberSequence();\n _this.info = {};\n _this.ssrmParams = ssrmParams;\n _this.parentRowNode = parentRowNode;\n _this.level = parentRowNode.level + 1;\n _this.groupLevel = ssrmParams.rowGroupCols ? _this.level < ssrmParams.rowGroupCols.length : undefined;\n _this.leafGroup = ssrmParams.rowGroupCols ? _this.level === ssrmParams.rowGroupCols.length - 1 : false;\n return _this;\n }\n\n FullStore.prototype.postConstruct = function () {\n var _this = this;\n\n this.usingTreeData = this.gridOptionsWrapper.isTreeData();\n this.nodeIdPrefix = this.blockUtils.createNodeIdPrefix(this.parentRowNode);\n\n if (!this.usingTreeData && this.groupLevel) {\n var groupColVo = this.ssrmParams.rowGroupCols[this.level];\n this.groupField = groupColVo.field;\n this.rowGroupColumn = this.columnModel.getRowGroupColumns()[this.level];\n }\n\n var initialRowCount = 1;\n var isRootStore = this.parentRowNode.level === -1;\n var userInitialRowCount = this.gridOptionsWrapper.getServerSideInitialRowCount();\n\n if (isRootStore && userInitialRowCount !== undefined) {\n initialRowCount = userInitialRowCount;\n }\n\n this.initialiseRowNodes(initialRowCount);\n this.rowNodeBlockLoader.addBlock(this);\n this.addDestroyFunc(function () {\n return _this.rowNodeBlockLoader.removeBlock(_this);\n });\n };\n\n FullStore.prototype.destroyRowNodes = function () {\n this.blockUtils.destroyRowNodes(this.allRowNodes);\n this.allRowNodes = [];\n this.nodesAfterSort = [];\n this.nodesAfterFilter = [];\n this.allNodesMap = {};\n };\n\n FullStore.prototype.initialiseRowNodes = function (loadingRowsCount, failedLoad) {\n if (failedLoad === void 0) {\n failedLoad = false;\n }\n\n this.destroyRowNodes();\n\n for (var i = 0; i < loadingRowsCount; i++) {\n var loadingRowNode = this.blockUtils.createRowNode({\n field: this.groupField,\n group: this.groupLevel,\n leafGroup: this.leafGroup,\n level: this.level,\n parent: this.parentRowNode,\n rowGroupColumn: this.rowGroupColumn\n });\n\n if (failedLoad) {\n loadingRowNode.failedLoad = true;\n }\n\n this.allRowNodes.push(loadingRowNode);\n this.nodesAfterFilter.push(loadingRowNode);\n this.nodesAfterSort.push(loadingRowNode);\n }\n };\n\n FullStore.prototype.getBlockStateJson = function () {\n return {\n id: this.nodeIdPrefix ? this.nodeIdPrefix : '',\n state: this.getState()\n };\n };\n\n FullStore.prototype.loadFromDatasource = function () {\n this.storeUtils.loadFromDatasource({\n startRow: undefined,\n endRow: undefined,\n parentBlock: this,\n parentNode: this.parentRowNode,\n storeParams: this.ssrmParams,\n successCallback: this.pageLoaded.bind(this, this.getVersion()),\n success: this.success.bind(this, this.getVersion()),\n failCallback: this.pageLoadFailed.bind(this, this.getVersion()),\n fail: this.pageLoadFailed.bind(this, this.getVersion())\n });\n };\n\n FullStore.prototype.getStartRow = function () {\n return 0; // always zero as not in a cache\n };\n\n FullStore.prototype.getEndRow = function () {\n return this.nodesAfterSort.length;\n };\n\n FullStore.prototype.createDataNode = function (data, index) {\n var rowNode = this.blockUtils.createRowNode({\n field: this.groupField,\n group: this.groupLevel,\n leafGroup: this.leafGroup,\n level: this.level,\n parent: this.parentRowNode,\n rowGroupColumn: this.rowGroupColumn\n });\n\n if (index != null) {\n _.insertIntoArray(this.allRowNodes, rowNode, index);\n } else {\n this.allRowNodes.push(rowNode);\n }\n\n var defaultId = this.prefixId(this.nodeIdSequence.next());\n this.blockUtils.setDataIntoRowNode(rowNode, data, defaultId, undefined);\n this.nodeManager.addRowNode(rowNode);\n this.blockUtils.checkOpenByDefault(rowNode);\n this.allNodesMap[rowNode.id] = rowNode;\n return rowNode;\n };\n\n FullStore.prototype.prefixId = function (id) {\n if (this.nodeIdPrefix) {\n return this.nodeIdPrefix + '-' + id;\n } else {\n return id.toString();\n }\n };\n\n FullStore.prototype.processServerFail = function () {\n this.initialiseRowNodes(1, true);\n this.fireStoreUpdatedEvent();\n this.flushAsyncTransactions();\n };\n\n FullStore.prototype.processServerResult = function (params) {\n if (!this.isAlive()) {\n return;\n }\n\n var info = params.storeInfo || params.groupLevelInfo;\n\n if (info) {\n Object.assign(this.info, info);\n }\n\n var nodesToRecycle = this.allRowNodes.length > 0 ? this.allNodesMap : undefined;\n this.allRowNodes = [];\n this.nodesAfterSort = [];\n this.nodesAfterFilter = [];\n this.allNodesMap = {};\n\n if (!params.rowData) {\n var message_1 = 'AG Grid: \"params.data\" is missing from Server-Side Row Model success() callback. Please use the \"data\" attribute. If no data is returned, set an empty list.';\n\n _.doOnce(function () {\n return console.warn(message_1, params);\n }, 'FullStore.noData');\n }\n\n this.createOrRecycleNodes(nodesToRecycle, params.rowData);\n\n if (nodesToRecycle) {\n this.blockUtils.destroyRowNodes(_.getAllValuesInObject(nodesToRecycle));\n }\n\n this.filterAndSortNodes();\n this.fireStoreUpdatedEvent();\n this.flushAsyncTransactions();\n };\n\n FullStore.prototype.createOrRecycleNodes = function (nodesToRecycle, rowData) {\n var _this = this;\n\n if (!rowData) {\n return;\n }\n\n var lookupNodeToRecycle = function lookupNodeToRecycle(data) {\n if (!nodesToRecycle) {\n return undefined;\n }\n\n var getRowIdFunc = _this.gridOptionsWrapper.getRowIdFunc();\n\n if (!getRowIdFunc) {\n return undefined;\n }\n\n var parentKeys = _this.parentRowNode.getGroupKeys();\n\n var level = _this.level;\n var id = getRowIdFunc({\n data: data,\n parentKeys: parentKeys.length > 0 ? parentKeys : undefined,\n level: level\n });\n var foundNode = nodesToRecycle[id];\n\n if (!foundNode) {\n return undefined;\n }\n\n delete nodesToRecycle[id];\n return foundNode;\n };\n\n var recycleNode = function recycleNode(rowNode, dataItem) {\n _this.allNodesMap[rowNode.id] = rowNode;\n\n _this.blockUtils.updateDataIntoRowNode(rowNode, dataItem);\n\n _this.allRowNodes.push(rowNode);\n };\n\n rowData.forEach(function (dataItem) {\n var nodeToRecycle = lookupNodeToRecycle(dataItem);\n\n if (nodeToRecycle) {\n recycleNode(nodeToRecycle, dataItem);\n } else {\n _this.createDataNode(dataItem);\n }\n });\n };\n\n FullStore.prototype.flushAsyncTransactions = function () {\n var _this = this; // we want to update the store with any outstanding transactions straight away,\n // as otherwise if waitTimeMillis is large (eg 5s), then the user could be looking\n // at old data for a few seconds before the transactions is applied, which isn't what\n // you would expect when we advertise 'transaction is applied when data is loaded'.\n // we do this in a timeout as flushAsyncTransactions expects the grid to be in a settled\n // state, not in the middle of loading rows! keeps the VM Turns more simple and deterministic.\n\n\n window.setTimeout(function () {\n return _this.transactionManager.flushAsyncTransactions();\n }, 0);\n };\n\n FullStore.prototype.filterAndSortNodes = function () {\n this.filterRowNodes();\n this.sortRowNodes();\n };\n\n FullStore.prototype.sortRowNodes = function () {\n var serverIsSorting = this.gridOptionsWrapper.isServerSideSortAllLevels() || this.gridOptionsWrapper.isServerSideSortOnServer();\n var sortOptions = this.sortController.getSortOptions();\n var noSortApplied = !sortOptions || sortOptions.length == 0;\n\n if (serverIsSorting || noSortApplied) {\n this.nodesAfterSort = this.nodesAfterFilter;\n return;\n }\n\n this.nodesAfterSort = this.rowNodeSorter.doFullSort(this.nodesAfterFilter, sortOptions);\n };\n\n FullStore.prototype.filterRowNodes = function () {\n var _this = this;\n\n var serverIsFiltering = this.gridOptionsWrapper.isServerSideFilterAllLevels() || this.gridOptionsWrapper.isServerSideFilterOnServer(); // filtering for InFullStore only works at lowest level details.\n // reason is the logic for group filtering was to difficult to work out how it should work at time of writing.\n\n var groupLevel = this.groupLevel;\n\n if (serverIsFiltering || groupLevel) {\n this.nodesAfterFilter = this.allRowNodes;\n return;\n }\n\n this.nodesAfterFilter = this.allRowNodes.filter(function (rowNode) {\n return _this.filterManager.doesRowPassFilter({\n rowNode: rowNode\n });\n });\n };\n\n FullStore.prototype.clearDisplayIndexes = function () {\n var _this = this;\n\n this.displayIndexStart = undefined;\n this.displayIndexEnd = undefined;\n this.allRowNodes.forEach(function (rowNode) {\n return _this.blockUtils.clearDisplayIndex(rowNode);\n });\n };\n\n FullStore.prototype.getDisplayIndexEnd = function () {\n return this.displayIndexEnd;\n };\n\n FullStore.prototype.isDisplayIndexInStore = function (displayIndex) {\n if (this.getRowCount() === 0) {\n return false;\n }\n\n return displayIndex >= this.displayIndexStart && displayIndex < this.displayIndexEnd;\n };\n\n FullStore.prototype.setDisplayIndexes = function (displayIndexSeq, nextRowTop) {\n var _this = this;\n\n this.displayIndexStart = displayIndexSeq.peek();\n this.topPx = nextRowTop.value;\n var visibleNodeIds = {}; // set on all visible nodes\n\n this.nodesAfterSort.forEach(function (rowNode) {\n _this.blockUtils.setDisplayIndex(rowNode, displayIndexSeq, nextRowTop);\n\n visibleNodeIds[rowNode.id] = true;\n }); // and clear on all non-visible nodes\n\n this.allRowNodes.forEach(function (rowNode) {\n if (!visibleNodeIds[rowNode.id]) {\n _this.blockUtils.clearDisplayIndex(rowNode);\n }\n });\n this.displayIndexEnd = displayIndexSeq.peek();\n this.heightPx = nextRowTop.value - this.topPx;\n };\n\n FullStore.prototype.forEachNodeDeep = function (callback, sequence) {\n if (sequence === void 0) {\n sequence = new NumberSequence();\n }\n\n this.allRowNodes.forEach(function (rowNode) {\n callback(rowNode, sequence.next());\n var childCache = rowNode.childStore;\n\n if (childCache) {\n childCache.forEachNodeDeep(callback, sequence);\n }\n });\n };\n\n FullStore.prototype.forEachNodeDeepAfterFilterAndSort = function (callback, sequence) {\n if (sequence === void 0) {\n sequence = new NumberSequence();\n }\n\n this.nodesAfterSort.forEach(function (rowNode) {\n callback(rowNode, sequence.next());\n var childCache = rowNode.childStore;\n\n if (childCache) {\n childCache.forEachNodeDeepAfterFilterAndSort(callback, sequence);\n }\n });\n };\n\n FullStore.prototype.getRowUsingDisplayIndex = function (displayRowIndex) {\n // this can happen if asking for a row that doesn't exist in the model,\n // eg if a cell range is selected, and the user filters so rows no longer exists\n if (!this.isDisplayIndexInStore(displayRowIndex)) {\n return undefined;\n }\n\n var res = this.blockUtils.binarySearchForDisplayIndex(displayRowIndex, this.nodesAfterSort);\n return res;\n };\n\n FullStore.prototype.getRowBounds = function (index) {\n for (var i = 0; i < this.nodesAfterSort.length; i++) {\n var rowNode = this.nodesAfterSort[i];\n var res = this.blockUtils.extractRowBounds(rowNode, index);\n\n if (res) {\n return res;\n }\n }\n\n return null;\n };\n\n FullStore.prototype.isPixelInRange = function (pixel) {\n return pixel >= this.topPx && pixel < this.topPx + this.heightPx;\n };\n\n FullStore.prototype.getRowIndexAtPixel = function (pixel) {\n var _this = this; // if pixel before block, return first row\n\n\n var pixelBeforeThisStore = pixel <= this.topPx;\n\n if (pixelBeforeThisStore) {\n var firstNode = this.nodesAfterSort[0];\n return firstNode.rowIndex;\n } // if pixel after store, return last row, however the last\n // row could be a child store\n\n\n var pixelAfterThisStore = pixel >= this.topPx + this.heightPx;\n\n if (pixelAfterThisStore) {\n var lastRowNode = this.nodesAfterSort[this.nodesAfterSort.length - 1];\n var lastRowNodeBottomPx = lastRowNode.rowTop + lastRowNode.rowHeight;\n\n if (pixel >= lastRowNodeBottomPx && lastRowNode.expanded) {\n if (lastRowNode.childStore && lastRowNode.childStore.getRowCount() > 0) {\n return lastRowNode.childStore.getRowIndexAtPixel(pixel);\n }\n\n if (lastRowNode.detailNode) {\n return lastRowNode.detailNode.rowIndex;\n }\n }\n\n return lastRowNode.rowIndex;\n }\n\n var res = null;\n this.nodesAfterSort.forEach(function (rowNode) {\n var res2 = _this.blockUtils.getIndexAtPixel(rowNode, pixel);\n\n if (res2 != null) {\n res = res2;\n }\n });\n var pixelIsPastLastRow = res == null;\n\n if (pixelIsPastLastRow) {\n return this.displayIndexEnd - 1;\n }\n\n return res;\n };\n\n FullStore.prototype.getChildStore = function (keys) {\n var _this = this;\n\n return this.storeUtils.getChildStore(keys, this, function (key) {\n var rowNode = _this.allRowNodes.find(function (currentRowNode) {\n return currentRowNode.key == key;\n });\n\n return rowNode;\n });\n };\n\n FullStore.prototype.forEachChildStoreShallow = function (callback) {\n this.allRowNodes.forEach(function (rowNode) {\n var childStore = rowNode.childStore;\n\n if (childStore) {\n callback(childStore);\n }\n });\n };\n\n FullStore.prototype.refreshAfterFilter = function (params) {\n var serverIsFiltering = this.gridOptionsWrapper.isServerSideFilterOnServer();\n var storeIsImpacted = this.storeUtils.isServerRefreshNeeded(this.parentRowNode, this.ssrmParams.rowGroupCols, params);\n var serverIsFilteringAllLevels = this.gridOptionsWrapper.isServerSideFilterAllLevels();\n\n if (serverIsFilteringAllLevels || serverIsFiltering && storeIsImpacted) {\n this.refreshStore(true);\n this.sortRowNodes();\n return;\n }\n\n this.filterRowNodes();\n this.sortRowNodes();\n this.forEachChildStoreShallow(function (store) {\n return store.refreshAfterFilter(params);\n });\n };\n\n FullStore.prototype.refreshAfterSort = function (params) {\n var serverIsSorting = this.gridOptionsWrapper.isServerSideSortOnServer();\n var storeIsImpacted = this.storeUtils.isServerRefreshNeeded(this.parentRowNode, this.ssrmParams.rowGroupCols, params);\n var serverIsSortingAllLevels = this.gridOptionsWrapper.isServerSideSortAllLevels();\n\n if (serverIsSortingAllLevels || serverIsSorting && storeIsImpacted) {\n this.refreshStore(true);\n this.filterRowNodes();\n return;\n }\n\n this.filterRowNodes();\n this.sortRowNodes();\n this.forEachChildStoreShallow(function (store) {\n return store.refreshAfterSort(params);\n });\n };\n\n FullStore.prototype.applyTransaction = function (transaction) {\n // we only apply transactions to loaded state\n switch (this.getState()) {\n case RowNodeBlock.STATE_FAILED:\n return {\n status: ServerSideTransactionResultStatus.StoreLoadingFailed\n };\n\n case RowNodeBlock.STATE_LOADING:\n return {\n status: ServerSideTransactionResultStatus.StoreLoading\n };\n\n case RowNodeBlock.STATE_WAITING_TO_LOAD:\n return {\n status: ServerSideTransactionResultStatus.StoreWaitingToLoad\n };\n }\n\n var applyCallback = this.gridOptionsWrapper.getIsApplyServerSideTransactionFunc();\n\n if (applyCallback) {\n var params = {\n transaction: transaction,\n parentNode: this.parentRowNode,\n storeInfo: this.info,\n groupLevelInfo: this.info\n };\n var apply = applyCallback(params);\n\n if (!apply) {\n return {\n status: ServerSideTransactionResultStatus.Cancelled\n };\n }\n }\n\n var res = {\n status: ServerSideTransactionResultStatus.Applied,\n remove: [],\n update: [],\n add: []\n };\n var nodesToUnselect = [];\n this.executeAdd(transaction, res);\n this.executeRemove(transaction, res, nodesToUnselect);\n this.executeUpdate(transaction, res, nodesToUnselect);\n this.filterAndSortNodes();\n this.updateSelection(nodesToUnselect);\n return res;\n };\n\n FullStore.prototype.updateSelection = function (nodesToUnselect) {\n var selectionChanged = nodesToUnselect.length > 0;\n\n if (selectionChanged) {\n nodesToUnselect.forEach(function (rowNode) {\n rowNode.setSelected(false, false, true);\n });\n var event_1 = {\n type: Events.EVENT_SELECTION_CHANGED\n };\n this.eventService.dispatchEvent(event_1);\n }\n };\n\n FullStore.prototype.executeAdd = function (rowDataTran, rowNodeTransaction) {\n var _this = this;\n\n var add = rowDataTran.add,\n addIndex = rowDataTran.addIndex;\n\n if (_.missingOrEmpty(add)) {\n return;\n }\n\n var useIndex = typeof addIndex === 'number' && addIndex >= 0;\n\n if (useIndex) {\n // items get inserted in reverse order for index insertion\n add.reverse().forEach(function (item) {\n var newRowNode = _this.createDataNode(item, addIndex);\n\n rowNodeTransaction.add.push(newRowNode);\n });\n } else {\n add.forEach(function (item) {\n var newRowNode = _this.createDataNode(item);\n\n rowNodeTransaction.add.push(newRowNode);\n });\n }\n };\n\n FullStore.prototype.executeRemove = function (rowDataTran, rowNodeTransaction, nodesToUnselect) {\n var _this = this;\n\n var remove = rowDataTran.remove;\n\n if (remove == null) {\n return;\n }\n\n var rowIdsRemoved = {};\n remove.forEach(function (item) {\n var rowNode = _this.lookupRowNode(item);\n\n if (!rowNode) {\n return;\n } // do delete - setting 'suppressFinishActions = true' to ensure EVENT_SELECTION_CHANGED is not raised for\n // each row node updated, instead it is raised once by the calling code if any selected nodes exist.\n\n\n if (rowNode.isSelected()) {\n nodesToUnselect.push(rowNode);\n } // so row renderer knows to fade row out (and not reposition it)\n\n\n rowNode.clearRowTopAndRowIndex(); // NOTE: were we could remove from allLeaveChildren, however _.removeFromArray() is expensive, especially\n // if called multiple times (eg deleting lots of rows) and if allLeafChildren is a large list\n\n rowIdsRemoved[rowNode.id] = true; // _.removeFromArray(this.rootNode.allLeafChildren, rowNode);\n\n delete _this.allNodesMap[rowNode.id];\n rowNodeTransaction.remove.push(rowNode);\n\n _this.nodeManager.removeNode(rowNode);\n });\n this.allRowNodes = this.allRowNodes.filter(function (rowNode) {\n return !rowIdsRemoved[rowNode.id];\n });\n };\n\n FullStore.prototype.executeUpdate = function (rowDataTran, rowNodeTransaction, nodesToUnselect) {\n var _this = this;\n\n var update = rowDataTran.update;\n\n if (update == null) {\n return;\n }\n\n update.forEach(function (item) {\n var rowNode = _this.lookupRowNode(item);\n\n if (!rowNode) {\n return;\n }\n\n rowNode.updateData(item);\n\n if (!rowNode.selectable && rowNode.isSelected()) {\n nodesToUnselect.push(rowNode);\n }\n\n rowNodeTransaction.update.push(rowNode);\n });\n };\n\n FullStore.prototype.lookupRowNode = function (data) {\n var getRowIdFunc = this.gridOptionsWrapper.getRowIdFunc();\n var rowNode;\n\n if (getRowIdFunc != null) {\n // find rowNode using id\n var level = this.level;\n var parentKeys = this.parentRowNode.getGroupKeys();\n var id = getRowIdFunc({\n data: data,\n parentKeys: parentKeys.length > 0 ? parentKeys : undefined,\n level: level\n });\n rowNode = this.allNodesMap[id];\n\n if (!rowNode) {\n console.error(\"AG Grid: could not find row id=\" + id + \", data item was not found for this id\");\n return null;\n }\n } else {\n // find rowNode using object references\n rowNode = this.allRowNodes.find(function (currentRowNode) {\n return currentRowNode.data === data;\n });\n\n if (!rowNode) {\n console.error(\"AG Grid: could not find data item as object was not found\", data);\n return null;\n }\n }\n\n return rowNode;\n };\n\n FullStore.prototype.addStoreStates = function (result) {\n result.push({\n infiniteScroll: false,\n route: this.parentRowNode.getGroupKeys(),\n rowCount: this.allRowNodes.length,\n info: this.info\n });\n this.forEachChildStoreShallow(function (childStore) {\n return childStore.addStoreStates(result);\n });\n };\n\n FullStore.prototype.refreshStore = function (purge) {\n if (purge) {\n var loadingRowsToShow = this.nodesAfterSort ? this.nodesAfterSort.length : 1;\n this.initialiseRowNodes(loadingRowsToShow);\n }\n\n this.scheduleLoad();\n this.fireStoreUpdatedEvent();\n };\n\n FullStore.prototype.retryLoads = function () {\n if (this.getState() === RowNodeBlock.STATE_FAILED) {\n this.initialiseRowNodes(1);\n this.scheduleLoad();\n }\n\n this.forEachChildStoreShallow(function (store) {\n return store.retryLoads();\n });\n };\n\n FullStore.prototype.scheduleLoad = function () {\n this.setStateWaitingToLoad();\n this.rowNodeBlockLoader.checkBlockToLoad();\n }; // gets called 1) row count changed 2) cache purged 3) items inserted\n\n\n FullStore.prototype.fireStoreUpdatedEvent = function () {\n // this results in row model firing ModelUpdated.\n // server side row model also updates the row indexes first\n var event = {\n type: Events.EVENT_STORE_UPDATED\n };\n this.eventService.dispatchEvent(event);\n };\n\n FullStore.prototype.getRowCount = function () {\n return this.nodesAfterSort.length;\n };\n\n FullStore.prototype.getTopLevelRowDisplayedIndex = function (topLevelIndex) {\n var rowNode = this.nodesAfterSort[topLevelIndex];\n return rowNode.rowIndex;\n };\n\n FullStore.prototype.isLastRowIndexKnown = function () {\n return this.getState() == RowNodeBlock.STATE_LOADED;\n };\n\n FullStore.prototype.getRowNodesInRange = function (firstInRange, lastInRange) {\n var result = [];\n var inActiveRange = false; // if only one node passed, we start the selection at the top\n\n if (_.missing(firstInRange)) {\n inActiveRange = true;\n }\n\n this.nodesAfterSort.forEach(function (rowNode) {\n var hitFirstOrLast = rowNode === firstInRange || rowNode === lastInRange;\n\n if (inActiveRange || hitFirstOrLast) {\n result.push(rowNode);\n }\n\n if (hitFirstOrLast) {\n inActiveRange = !inActiveRange;\n }\n }); // inActiveRange will be still true if we never hit the second rowNode\n\n var invalidRange = inActiveRange;\n return invalidRange ? [] : result;\n };\n\n __decorate$h([Autowired('ssrmStoreUtils')], FullStore.prototype, \"storeUtils\", void 0);\n\n __decorate$h([Autowired('ssrmBlockUtils')], FullStore.prototype, \"blockUtils\", void 0);\n\n __decorate$h([Autowired('columnModel')], FullStore.prototype, \"columnModel\", void 0);\n\n __decorate$h([Autowired('rowNodeBlockLoader')], FullStore.prototype, \"rowNodeBlockLoader\", void 0);\n\n __decorate$h([Autowired('rowNodeSorter')], FullStore.prototype, \"rowNodeSorter\", void 0);\n\n __decorate$h([Autowired('sortController')], FullStore.prototype, \"sortController\", void 0);\n\n __decorate$h([Autowired('ssrmNodeManager')], FullStore.prototype, \"nodeManager\", void 0);\n\n __decorate$h([Autowired('filterManager')], FullStore.prototype, \"filterManager\", void 0);\n\n __decorate$h([Autowired('ssrmTransactionManager')], FullStore.prototype, \"transactionManager\", void 0);\n\n __decorate$h([PostConstruct], FullStore.prototype, \"postConstruct\", null);\n\n __decorate$h([PreDestroy], FullStore.prototype, \"destroyRowNodes\", null);\n\n return FullStore;\n}(RowNodeBlock);\n\nvar __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar StoreFactory =\n/** @class */\nfunction () {\n function StoreFactory() {}\n\n StoreFactory.prototype.createStore = function (ssrmParams, parentNode) {\n var storeParams = this.getStoreParams(ssrmParams, parentNode);\n var CacheClass = storeParams.infiniteScroll ? InfiniteStore : FullStore;\n return new CacheClass(ssrmParams, storeParams, parentNode);\n };\n\n StoreFactory.prototype.getStoreParams = function (ssrmParams, parentNode) {\n var userStoreParams = this.getLevelSpecificParams(parentNode); // if user provided overrideParams, we take infiniteScroll from there if it exists\n\n var infiniteScroll = this.isInfiniteScroll(userStoreParams);\n var cacheBlockSize = this.getBlockSize(infiniteScroll, userStoreParams);\n var maxBlocksInCache = this.getMaxBlocksInCache(infiniteScroll, ssrmParams, userStoreParams);\n var storeParams = {\n infiniteScroll: infiniteScroll,\n cacheBlockSize: cacheBlockSize,\n maxBlocksInCache: maxBlocksInCache\n };\n return storeParams;\n };\n\n StoreFactory.prototype.getMaxBlocksInCache = function (infiniteScroll, ssrmParams, userStoreParams) {\n if (!infiniteScroll) {\n return undefined;\n }\n\n var maxBlocksInCache = userStoreParams && userStoreParams.maxBlocksInCache != null ? userStoreParams.maxBlocksInCache : this.gridOptionsWrapper.getMaxBlocksInCache();\n var maxBlocksActive = maxBlocksInCache != null && maxBlocksInCache >= 0;\n\n if (!maxBlocksActive) {\n return undefined;\n }\n\n if (ssrmParams.dynamicRowHeight) {\n var message_1 = 'AG Grid: Server Side Row Model does not support Dynamic Row Height and Cache Purging. ' + 'Either a) remove getRowHeight() callback or b) remove maxBlocksInCache property. Purging has been disabled.';\n\n _.doOnce(function () {\n return console.warn(message_1);\n }, 'storeFactory.maxBlocksInCache.dynamicRowHeight');\n\n return undefined;\n }\n\n if (this.columnModel.isAutoRowHeightActive()) {\n var message_2 = 'AG Grid: Server Side Row Model does not support Auto Row Height and Cache Purging. ' + 'Either a) remove colDef.autoHeight or b) remove maxBlocksInCache property. Purging has been disabled.';\n\n _.doOnce(function () {\n return console.warn(message_2);\n }, 'storeFactory.maxBlocksInCache.autoRowHeightActive');\n\n return undefined;\n }\n\n return maxBlocksInCache;\n };\n\n StoreFactory.prototype.getBlockSize = function (infiniteScroll, userStoreParams) {\n if (!infiniteScroll) {\n return undefined;\n }\n\n var blockSize = userStoreParams && userStoreParams.cacheBlockSize != null ? userStoreParams.cacheBlockSize : this.gridOptionsWrapper.getCacheBlockSize();\n\n if (blockSize != null && blockSize > 0) {\n return blockSize;\n } else {\n return 100;\n }\n };\n\n StoreFactory.prototype.getLevelSpecificParams = function (parentNode) {\n var callback = this.gridOptionsWrapper.getServerSideGroupLevelParamsFunc();\n\n if (!callback) {\n return undefined;\n }\n\n var params = {\n level: parentNode.level + 1,\n parentRowNode: parentNode.level >= 0 ? parentNode : undefined,\n rowGroupColumns: this.columnModel.getRowGroupColumns(),\n pivotColumns: this.columnModel.getPivotColumns(),\n pivotMode: this.columnModel.isPivotMode()\n };\n var res = callback(params);\n\n if (res.storeType != null) {\n res.infiniteScroll = res.storeType === \"partial\";\n }\n\n return res;\n };\n\n StoreFactory.prototype.isInfiniteScroll = function (storeParams) {\n var res = storeParams && storeParams.infiniteScroll != null ? storeParams.infiniteScroll : this.gridOptionsWrapper.isServerSideInfiniteScroll();\n return res;\n };\n\n __decorate$g([Autowired('gridOptionsWrapper')], StoreFactory.prototype, \"gridOptionsWrapper\", void 0);\n\n __decorate$g([Autowired('columnModel')], StoreFactory.prototype, \"columnModel\", void 0);\n\n StoreFactory = __decorate$g([Bean('ssrmStoreFactory')], StoreFactory);\n return StoreFactory;\n}();\n\nvar __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ListenerUtils =\n/** @class */\nfunction () {\n function ListenerUtils() {}\n\n ListenerUtils.prototype.isSortingWithValueColumn = function (changedColumnsInSort) {\n var valueColIds = this.columnModel.getValueColumns().map(function (col) {\n return col.getColId();\n });\n\n for (var i = 0; i < changedColumnsInSort.length; i++) {\n if (valueColIds.indexOf(changedColumnsInSort[i]) > -1) {\n return true;\n }\n }\n\n return false;\n };\n\n ListenerUtils.prototype.isSortingWithSecondaryColumn = function (changedColumnsInSort) {\n if (!this.columnModel.getSecondaryColumns()) {\n return false;\n }\n\n var secondaryColIds = this.columnModel.getSecondaryColumns().map(function (col) {\n return col.getColId();\n });\n\n for (var i = 0; i < changedColumnsInSort.length; i++) {\n if (secondaryColIds.indexOf(changedColumnsInSort[i]) > -1) {\n return true;\n }\n }\n\n return false;\n };\n\n __decorate$f([Autowired('columnModel')], ListenerUtils.prototype, \"columnModel\", void 0);\n\n ListenerUtils = __decorate$f([Bean('ssrmListenerUtils')], ListenerUtils);\n return ListenerUtils;\n}();\n\nvar ServerSideRowModelModule = {\n moduleName: ModuleNames.ServerSideRowModelModule,\n rowModels: {\n serverSide: ServerSideRowModel\n },\n beans: [ExpandListener, SortListener, StoreUtils, BlockUtils, NodeManager, TransactionManager, FilterListener, StoreFactory, ListenerUtils],\n dependantModules: [EnterpriseCoreModule]\n};\nvar NULL_SUBSTITUTE$1 = '____';\n\nvar ClientSideValuesExtractor =\n/** @class */\nfunction () {\n function ClientSideValuesExtractor(rowModel, filterParams, caseFormat) {\n this.rowModel = rowModel;\n this.filterParams = filterParams;\n this.caseFormat = caseFormat;\n }\n\n ClientSideValuesExtractor.prototype.extractUniqueValues = function (predicate) {\n var _this = this;\n\n var values = {};\n var keyCreator = this.filterParams.colDef.keyCreator;\n\n var addValue = function addValue(value) {\n // NOTE: We don't care about the keys later on (only values in the dictionary are\n // returned), so as long as we use a non-conflicting key for the `null` value this\n // will behave correctly.\n var valueKey = value != null ? _this.caseFormat(value) : NULL_SUBSTITUTE$1;\n\n if (valueKey && values[valueKey] == null) {\n values[valueKey] = value;\n }\n };\n\n this.rowModel.forEachLeafNode(function (node) {\n // only pull values from rows that have data. this means we skip filler group nodes.\n if (!node.data || !predicate(node)) {\n return;\n }\n\n var _a = _this.filterParams,\n api = _a.api,\n colDef = _a.colDef,\n column = _a.column,\n columnApi = _a.columnApi,\n context = _a.context;\n\n var value = _this.filterParams.valueGetter({\n api: api,\n colDef: colDef,\n column: column,\n columnApi: columnApi,\n context: context,\n data: node.data,\n getValue: function getValue(field) {\n return node.data[field];\n },\n node: node\n });\n\n if (keyCreator) {\n var params = {\n value: value,\n colDef: _this.filterParams.colDef,\n column: _this.filterParams.column,\n node: node,\n data: node.data,\n api: _this.filterParams.api,\n columnApi: _this.filterParams.columnApi,\n context: _this.filterParams.context\n };\n value = keyCreator(params);\n }\n\n value = _.makeNull(value);\n\n if (value != null && Array.isArray(value)) {\n value.forEach(function (x) {\n var formatted = _.toStringOrNull(_.makeNull(x));\n\n addValue(formatted);\n });\n } else {\n addValue(_.toStringOrNull(value));\n }\n });\n return _.values(values);\n };\n\n return ClientSideValuesExtractor;\n}();\n\nvar SetFilterModelValuesType;\n\n(function (SetFilterModelValuesType) {\n SetFilterModelValuesType[SetFilterModelValuesType[\"PROVIDED_LIST\"] = 0] = \"PROVIDED_LIST\";\n SetFilterModelValuesType[SetFilterModelValuesType[\"PROVIDED_CALLBACK\"] = 1] = \"PROVIDED_CALLBACK\";\n SetFilterModelValuesType[SetFilterModelValuesType[\"TAKEN_FROM_GRID_VALUES\"] = 2] = \"TAKEN_FROM_GRID_VALUES\";\n})(SetFilterModelValuesType || (SetFilterModelValuesType = {}));\n\nvar NULL_SUBSTITUTE = '____';\n\nvar SetValueModel =\n/** @class */\nfunction () {\n function SetValueModel(filterParams, setIsLoading, valueFormatterService, translate, caseFormat) {\n var _this = this;\n\n this.filterParams = filterParams;\n this.setIsLoading = setIsLoading;\n this.valueFormatterService = valueFormatterService;\n this.translate = translate;\n this.caseFormat = caseFormat;\n this.localEventService = new EventService();\n this.miniFilterText = null; // The lookup for a set is much faster than the lookup for an array, especially when the length of the array is\n // thousands of records long, so where lookups are important we use a set.\n\n /** Values provided to the filter for use. */\n\n this.providedValues = null;\n /** All possible values for the filter, sorted if required. */\n\n this.allValues = [];\n /** Remaining values when filters from other columns have been applied. */\n\n this.availableValues = new Set();\n /** All values that are currently displayed, after the mini-filter has been applied. */\n\n this.displayedValues = [];\n /** Values that have been selected for this filter. */\n\n this.selectedValues = new Set();\n this.initialised = false;\n var column = filterParams.column,\n colDef = filterParams.colDef,\n textFormatter = filterParams.textFormatter,\n doesRowPassOtherFilter = filterParams.doesRowPassOtherFilter,\n suppressSorting = filterParams.suppressSorting,\n comparator = filterParams.comparator,\n rowModel = filterParams.rowModel,\n values = filterParams.values;\n filterParams.caseSensitive;\n this.column = column;\n this.formatter = textFormatter || TextFilter.DEFAULT_FORMATTER;\n this.doesRowPassOtherFilters = doesRowPassOtherFilter;\n this.suppressSorting = suppressSorting || false;\n this.comparator = comparator || colDef.comparator || _.defaultComparator;\n\n if (rowModel.getType() === Constants.ROW_MODEL_TYPE_CLIENT_SIDE) {\n this.clientSideValuesExtractor = new ClientSideValuesExtractor(rowModel, this.filterParams, this.caseFormat);\n }\n\n if (values == null) {\n this.valuesType = SetFilterModelValuesType.TAKEN_FROM_GRID_VALUES;\n } else {\n this.valuesType = Array.isArray(values) ? SetFilterModelValuesType.PROVIDED_LIST : SetFilterModelValuesType.PROVIDED_CALLBACK;\n this.providedValues = values;\n }\n\n this.updateAllValues().then(function (updatedValues) {\n return _this.resetSelectionState(updatedValues || []);\n });\n }\n\n SetValueModel.prototype.addEventListener = function (eventType, listener, async) {\n this.localEventService.addEventListener(eventType, listener, async);\n };\n\n SetValueModel.prototype.removeEventListener = function (eventType, listener, async) {\n this.localEventService.removeEventListener(eventType, listener, async);\n };\n /**\n * Re-fetches the values used in the filter from the value source.\n * If keepSelection is false, the filter selection will be reset to everything selected,\n * otherwise the current selection will be preserved.\n */\n\n\n SetValueModel.prototype.refreshValues = function () {\n var currentModel = this.getModel();\n this.updateAllValues(); // ensure model is updated for new values\n\n return this.setModel(currentModel);\n };\n /**\n * Overrides the current values being used for the set filter.\n * If keepSelection is false, the filter selection will be reset to everything selected,\n * otherwise the current selection will be preserved.\n */\n\n\n SetValueModel.prototype.overrideValues = function (valuesToUse) {\n var _this = this;\n\n return new AgPromise(function (resolve) {\n // wait for any existing values to be populated before overriding\n _this.allValuesPromise.then(function () {\n _this.valuesType = SetFilterModelValuesType.PROVIDED_LIST;\n _this.providedValues = valuesToUse;\n\n _this.refreshValues().then(function () {\n return resolve();\n });\n });\n });\n };\n\n SetValueModel.prototype.refreshAfterAnyFilterChanged = function () {\n var _this = this;\n\n return this.showAvailableOnly() ? this.allValuesPromise.then(function (values) {\n return _this.updateAvailableValues(values || []);\n }) : AgPromise.resolve();\n };\n\n SetValueModel.prototype.isInitialised = function () {\n return this.initialised;\n };\n\n SetValueModel.prototype.updateAllValues = function () {\n var _this = this;\n\n this.allValuesPromise = new AgPromise(function (resolve) {\n switch (_this.valuesType) {\n case SetFilterModelValuesType.TAKEN_FROM_GRID_VALUES:\n case SetFilterModelValuesType.PROVIDED_LIST:\n {\n var values = _this.valuesType === SetFilterModelValuesType.TAKEN_FROM_GRID_VALUES ? _this.getValuesFromRows(false) : _this.uniqueUnsortedStringArray(_this.providedValues);\n\n var sortedValues = _this.sortValues(values || []);\n\n _this.allValues = sortedValues;\n resolve(sortedValues);\n break;\n }\n\n case SetFilterModelValuesType.PROVIDED_CALLBACK:\n {\n _this.setIsLoading(true);\n\n var callback_1 = _this.providedValues;\n var _a = _this.filterParams,\n columnApi = _a.columnApi,\n api = _a.api,\n context = _a.context,\n column = _a.column,\n colDef = _a.colDef;\n var params_1 = {\n success: function success(values) {\n var processedValues = _this.uniqueUnsortedStringArray(values || []);\n\n _this.setIsLoading(false);\n\n var sortedValues = _this.sortValues(processedValues || []);\n\n _this.allValues = sortedValues;\n resolve(sortedValues);\n },\n colDef: colDef,\n column: column,\n columnApi: columnApi,\n api: api,\n context: context\n };\n window.setTimeout(function () {\n return callback_1(params_1);\n }, 0);\n break;\n }\n\n default:\n throw new Error('Unrecognised valuesType');\n }\n });\n this.allValuesPromise.then(function (values) {\n return _this.updateAvailableValues(values || []);\n }).then(function () {\n return _this.initialised = true;\n });\n return this.allValuesPromise;\n };\n\n SetValueModel.prototype.setValuesType = function (value) {\n this.valuesType = value;\n };\n\n SetValueModel.prototype.getValuesType = function () {\n return this.valuesType;\n };\n\n SetValueModel.prototype.isValueAvailable = function (value) {\n return this.availableValues.has(value);\n };\n\n SetValueModel.prototype.showAvailableOnly = function () {\n return this.valuesType === SetFilterModelValuesType.TAKEN_FROM_GRID_VALUES;\n };\n\n SetValueModel.prototype.updateAvailableValues = function (allValues) {\n var availableValues = this.showAvailableOnly() ? this.sortValues(this.getValuesFromRows(true)) : allValues;\n this.availableValues = _.convertToSet(availableValues);\n this.localEventService.dispatchEvent({\n type: SetValueModel.EVENT_AVAILABLE_VALUES_CHANGED\n });\n this.updateDisplayedValues();\n };\n\n SetValueModel.prototype.sortValues = function (values) {\n if (this.suppressSorting) {\n return values;\n }\n\n if (!this.filterParams.excelMode || values.indexOf(null) < 0) {\n return values.sort(this.comparator);\n } // ensure the blank value always appears last\n\n\n return values.filter(function (v) {\n return v != null;\n }).sort(this.comparator).concat(null);\n };\n\n SetValueModel.prototype.getValuesFromRows = function (removeUnavailableValues) {\n var _this = this;\n\n if (removeUnavailableValues === void 0) {\n removeUnavailableValues = false;\n }\n\n if (!this.clientSideValuesExtractor) {\n console.error('AG Grid: Set Filter cannot initialise because you are using a row model that does not contain all rows in the browser. Either use a different filter type, or configure Set Filter such that you provide it with values');\n return [];\n }\n\n var predicate = function predicate(node) {\n return !removeUnavailableValues || _this.doesRowPassOtherFilters(node);\n };\n\n return this.clientSideValuesExtractor.extractUniqueValues(predicate);\n };\n /** Sets mini filter value. Returns true if it changed from last value, otherwise false. */\n\n\n SetValueModel.prototype.setMiniFilter = function (value) {\n value = _.makeNull(value);\n\n if (this.miniFilterText === value) {\n //do nothing if filter has not changed\n return false;\n }\n\n this.miniFilterText = value;\n this.updateDisplayedValues();\n return true;\n };\n\n SetValueModel.prototype.getMiniFilter = function () {\n return this.miniFilterText;\n };\n\n SetValueModel.prototype.updateDisplayedValues = function () {\n var _this = this; // if no filter, just display all available values\n\n\n if (this.miniFilterText == null) {\n this.displayedValues = _.values(this.availableValues);\n return;\n } // if filter present, we filter down the list\n\n\n this.displayedValues = []; // to allow for case insensitive searches, upper-case both filter text and value\n\n var formattedFilterText = this.caseFormat(this.formatter(this.miniFilterText) || '');\n\n var matchesFilter = function matchesFilter(valueToCheck) {\n return valueToCheck != null && _this.caseFormat(valueToCheck).indexOf(formattedFilterText) >= 0;\n };\n\n this.availableValues.forEach(function (value) {\n if (value == null) {\n if (_this.filterParams.excelMode && matchesFilter(_this.translate('blanks'))) {\n _this.displayedValues.push(value);\n }\n } else {\n var textFormatterValue = _this.formatter(value); // TODO: should this be applying the text formatter *after* the value formatter?\n\n\n var valueFormatterValue = _this.valueFormatterService.formatValue(_this.column, null, textFormatterValue, _this.filterParams.valueFormatter, false);\n\n if (matchesFilter(textFormatterValue) || matchesFilter(valueFormatterValue)) {\n _this.displayedValues.push(value);\n }\n }\n });\n };\n\n SetValueModel.prototype.getDisplayedValueCount = function () {\n return this.displayedValues.length;\n };\n\n SetValueModel.prototype.getDisplayedValue = function (index) {\n return this.displayedValues[index];\n };\n\n SetValueModel.prototype.hasSelections = function () {\n return this.filterParams.defaultToNothingSelected ? this.selectedValues.size > 0 : this.allValues.length !== this.selectedValues.size;\n };\n\n SetValueModel.prototype.getValues = function () {\n return this.allValues.slice();\n };\n\n SetValueModel.prototype.selectAllMatchingMiniFilter = function (clearExistingSelection) {\n var _this = this;\n\n if (clearExistingSelection === void 0) {\n clearExistingSelection = false;\n }\n\n if (this.miniFilterText == null) {\n // ensure everything is selected\n this.selectedValues = _.convertToSet(this.allValues);\n } else {\n // ensure everything that matches the mini filter is selected\n if (clearExistingSelection) {\n this.selectedValues.clear();\n }\n\n this.displayedValues.forEach(function (value) {\n return _this.selectedValues.add(value);\n });\n }\n };\n\n SetValueModel.prototype.deselectAllMatchingMiniFilter = function () {\n var _this = this;\n\n if (this.miniFilterText == null) {\n // ensure everything is deselected\n this.selectedValues.clear();\n } else {\n // ensure everything that matches the mini filter is deselected\n this.displayedValues.forEach(function (value) {\n return _this.selectedValues.delete(value);\n });\n }\n };\n\n SetValueModel.prototype.selectValue = function (value) {\n this.selectedValues.add(value);\n };\n\n SetValueModel.prototype.deselectValue = function (value) {\n if (this.filterParams.excelMode && this.isEverythingVisibleSelected()) {\n // ensure we're starting from the correct \"everything selected\" state\n this.resetSelectionState(this.displayedValues);\n }\n\n this.selectedValues.delete(value);\n };\n\n SetValueModel.prototype.isValueSelected = function (value) {\n return this.selectedValues.has(value);\n };\n\n SetValueModel.prototype.isEverythingVisibleSelected = function () {\n var _this = this;\n\n return this.displayedValues.filter(function (it) {\n return _this.isValueSelected(it);\n }).length === this.displayedValues.length;\n };\n\n SetValueModel.prototype.isNothingVisibleSelected = function () {\n var _this = this;\n\n return this.displayedValues.filter(function (it) {\n return _this.isValueSelected(it);\n }).length === 0;\n };\n\n SetValueModel.prototype.getModel = function () {\n return this.hasSelections() ? _.values(this.selectedValues) : null;\n };\n\n SetValueModel.prototype.setModel = function (model) {\n var _this = this;\n\n return this.allValuesPromise.then(function (values) {\n if (model == null) {\n _this.resetSelectionState(values || []);\n } else {\n // select all values from the model that exist in the filter\n _this.selectedValues.clear();\n\n var allValues_1 = _this.uniqueValues(values || []);\n\n model.forEach(function (value) {\n var allValue = allValues_1[_this.uniqueKey(value)];\n\n if (allValue !== undefined) {\n _this.selectedValues.add(allValue);\n }\n });\n }\n });\n };\n\n SetValueModel.prototype.uniqueUnsortedStringArray = function (values) {\n var _this = this;\n\n var stringifiedResults = _.toStrings(values);\n\n if (!stringifiedResults) {\n return [];\n }\n\n var uniqueValues = this.uniqueValues(stringifiedResults);\n /*\n * It is not possible to simply use Object.values(uniqueValues) here as the keys inside uniqueValues could be numeric.\n * Javascript objects sort numeric keys and do not fully respect the insert order, as such to trust the results are unsorted\n * we need to reference the order of the original array as done here.\n */\n\n return stringifiedResults.map(_.makeNull).filter(function (value) {\n var key = _this.uniqueKey(value);\n\n if (key in uniqueValues) {\n delete uniqueValues[key];\n return true;\n }\n\n return false;\n });\n };\n\n SetValueModel.prototype.uniqueValues = function (values) {\n var _this = this; // Honour case-sensitivity setting for matching purposes here, preserving original casing\n // in the selectedValues output.\n\n\n var uniqueValues = {};\n (values || []).forEach(function (rawValue) {\n var value = _.makeNull(rawValue);\n\n var key = _this.uniqueKey(value);\n\n if (uniqueValues[key] === undefined) {\n uniqueValues[key] = value;\n }\n });\n return uniqueValues;\n };\n\n SetValueModel.prototype.uniqueKey = function (v) {\n return v == null ? NULL_SUBSTITUTE : this.caseFormat(v);\n };\n\n SetValueModel.prototype.resetSelectionState = function (values) {\n if (this.filterParams.defaultToNothingSelected) {\n this.selectedValues.clear();\n } else {\n this.selectedValues = _.convertToSet(values || []);\n }\n };\n\n SetValueModel.EVENT_AVAILABLE_VALUES_CHANGED = 'availableValuesChanged';\n return SetValueModel;\n}();\n\nvar __extends$A = undefined && undefined.__extends || function () {\n var _extendStatics184 = function extendStatics(d, b) {\n _extendStatics184 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics184(d, b);\n };\n\n return function (d, b) {\n _extendStatics184(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SetFilterListItem =\n/** @class */\nfunction (_super) {\n __extends$A(SetFilterListItem, _super);\n\n function SetFilterListItem(value, params, translate, isSelected) {\n var _this = _super.call(this, SetFilterListItem.TEMPLATE) || this;\n\n _this.value = value;\n _this.params = params;\n _this.translate = translate;\n _this.isSelected = isSelected;\n return _this;\n }\n\n SetFilterListItem.prototype.init = function () {\n var _this = this;\n\n this.render();\n this.eCheckbox.setValue(this.isSelected, true);\n this.eCheckbox.setDisabled(!!this.params.readOnly);\n\n if (!!this.params.readOnly) {\n // Don't add event listeners if we're read-only.\n return;\n }\n\n this.eCheckbox.onValueChange(function (value) {\n var parsedValue = value || false;\n _this.isSelected = parsedValue;\n var event = {\n type: SetFilterListItem.EVENT_SELECTION_CHANGED,\n isSelected: parsedValue\n };\n\n _this.dispatchEvent(event);\n });\n };\n\n SetFilterListItem.prototype.toggleSelected = function () {\n if (!!this.params.readOnly) {\n return;\n }\n\n this.isSelected = !this.isSelected;\n this.eCheckbox.setValue(this.isSelected);\n };\n\n SetFilterListItem.prototype.render = function () {\n var column = this.params.column;\n var value = this.value;\n var formattedValue = null;\n\n if (typeof value === 'function') {\n value = value();\n } else {\n formattedValue = this.getFormattedValue(this.params, column, value);\n }\n\n if (this.params.showTooltips) {\n var tooltipValue = formattedValue != null ? formattedValue : value;\n this.setTooltip(tooltipValue);\n }\n\n var params = {\n value: value,\n valueFormatted: formattedValue,\n api: this.gridOptionsWrapper.getApi(),\n columnApi: this.gridOptionsWrapper.getColumnApi(),\n context: this.gridOptionsWrapper.getContext(),\n colDef: this.params.colDef,\n column: this.params.column\n };\n this.renderCell(params);\n };\n\n SetFilterListItem.prototype.getTooltipParams = function () {\n var res = _super.prototype.getTooltipParams.call(this);\n\n res.location = 'setFilterValue';\n res.colDef = this.getComponentHolder();\n return res;\n };\n\n SetFilterListItem.prototype.getFormattedValue = function (filterParams, column, value) {\n var formatter = filterParams && filterParams.valueFormatter;\n return this.valueFormatterService.formatValue(column, null, value, formatter, false);\n };\n\n SetFilterListItem.prototype.renderCell = function (params) {\n var _this = this;\n\n var compDetails = this.userComponentFactory.getSetFilterCellRendererDetails(this.params, params);\n var cellRendererPromise = compDetails ? compDetails.newAgStackInstance() : undefined;\n\n if (cellRendererPromise == null) {\n var valueToRender = params.valueFormatted == null ? params.value : params.valueFormatted;\n this.eCheckbox.setLabel(valueToRender == null ? this.translate('blanks') : valueToRender);\n return;\n }\n\n cellRendererPromise.then(function (component) {\n if (component) {\n _this.eCheckbox.setLabel(component.getGui());\n\n _this.addDestroyFunc(function () {\n return _this.destroyBean(component);\n });\n }\n });\n };\n\n SetFilterListItem.prototype.getComponentHolder = function () {\n return this.params.column.getColDef();\n };\n\n SetFilterListItem.EVENT_SELECTION_CHANGED = 'selectionChanged';\n SetFilterListItem.TEMPLATE = \"\\n
\\n \\n
\";\n\n __decorate$e([Autowired('valueFormatterService')], SetFilterListItem.prototype, \"valueFormatterService\", void 0);\n\n __decorate$e([Autowired('userComponentFactory')], SetFilterListItem.prototype, \"userComponentFactory\", void 0);\n\n __decorate$e([RefSelector('eCheckbox')], SetFilterListItem.prototype, \"eCheckbox\", void 0);\n\n __decorate$e([PostConstruct], SetFilterListItem.prototype, \"init\", null);\n\n return SetFilterListItem;\n}(Component);\n\nvar DEFAULT_LOCALE_TEXT = {\n loadingOoo: 'Loading...',\n blanks: '(Blanks)',\n searchOoo: 'Search...',\n selectAll: '(Select All)',\n selectAllSearchResults: '(Select All Search Results)',\n noMatches: 'No matches.'\n};\n\nvar __extends$z = undefined && undefined.__extends || function () {\n var _extendStatics185 = function extendStatics(d, b) {\n _extendStatics185 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics185(d, b);\n };\n\n return function (d, b) {\n _extendStatics185(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SetFilter =\n/** @class */\nfunction (_super) {\n __extends$z(SetFilter, _super);\n\n function SetFilter() {\n var _this = _super.call(this, 'setFilter') || this;\n\n _this.valueModel = null;\n _this.setFilterParams = null;\n _this.virtualList = null;\n _this.caseSensitive = false; // To make the filtering super fast, we store the values in an object, and check for the boolean value.\n // Although Set would be a more natural choice of data structure, its performance across browsers is\n // significantly worse than using an object: https://jsbench.me/hdk91jbw1h/\n\n _this.appliedModelValues = null;\n return _this;\n }\n\n SetFilter.prototype.postConstruct = function () {\n _super.prototype.postConstruct.call(this);\n\n this.positionableFeature = new PositionableFeature(this.eSetFilterList, {\n forcePopupParentAsOffsetParent: true\n });\n this.createBean(this.positionableFeature);\n }; // unlike the simple filters, nothing in the set filter UI shows/hides.\n // maybe this method belongs in abstractSimpleFilter???\n\n\n SetFilter.prototype.updateUiVisibility = function () {};\n\n SetFilter.prototype.createBodyTemplate = function () {\n return (\n /* html */\n \"\\n
\\n
\" + this.translateForSetFilter('loadingOoo') + \"
\\n \\n
\" + this.translateForSetFilter('noMatches') + \"
\\n
\\n
\"\n );\n };\n\n SetFilter.prototype.handleKeyDown = function (e) {\n _super.prototype.handleKeyDown.call(this, e);\n\n if (e.defaultPrevented) {\n return;\n }\n\n switch (e.key) {\n case KeyCode.SPACE:\n this.handleKeySpace(e);\n break;\n\n case KeyCode.ENTER:\n this.handleKeyEnter(e);\n break;\n }\n };\n\n SetFilter.prototype.handleKeySpace = function (e) {\n var eDocument = this.gridOptionsWrapper.getDocument();\n\n if (!this.eSetFilterList.contains(eDocument.activeElement) || !this.virtualList) {\n return;\n }\n\n var currentItem = this.virtualList.getLastFocusedRow();\n\n if (currentItem == null) {\n return;\n }\n\n var component = this.virtualList.getComponentAt(currentItem);\n\n if (component == null) {\n return;\n }\n\n e.preventDefault();\n var readOnly = (this.setFilterParams || {}).readOnly;\n\n if (!!readOnly) {\n return;\n }\n\n component.toggleSelected();\n };\n\n SetFilter.prototype.handleKeyEnter = function (e) {\n if (!this.setFilterParams) {\n return;\n }\n\n var _a = this.setFilterParams || {},\n excelMode = _a.excelMode,\n readOnly = _a.readOnly;\n\n if (!excelMode || !!readOnly) {\n return;\n }\n\n e.preventDefault(); // in Excel Mode, hitting Enter is the same as pressing the Apply button\n\n this.onBtApply(false, false, e);\n\n if (this.setFilterParams.excelMode === 'mac') {\n // in Mac version, select all the input text\n this.eMiniFilter.getInputElement().select();\n }\n };\n\n SetFilter.prototype.getCssIdentifier = function () {\n return 'set-filter';\n };\n\n SetFilter.prototype.setModelAndRefresh = function (values) {\n var _this = this;\n\n return this.valueModel ? this.valueModel.setModel(values).then(function () {\n return _this.refresh();\n }) : AgPromise.resolve();\n };\n\n SetFilter.prototype.resetUiToDefaults = function () {\n this.setMiniFilter(null);\n return this.setModelAndRefresh(null);\n };\n\n SetFilter.prototype.setModelIntoUi = function (model) {\n this.setMiniFilter(null);\n var values = model == null ? null : model.values;\n return this.setModelAndRefresh(values);\n };\n\n SetFilter.prototype.getModelFromUi = function () {\n if (!this.valueModel) {\n throw new Error('Value model has not been created.');\n }\n\n var values = this.valueModel.getModel();\n\n if (!values) {\n return null;\n }\n\n return {\n values: values,\n filterType: this.getFilterType()\n };\n };\n\n SetFilter.prototype.getFilterType = function () {\n return 'set';\n };\n\n SetFilter.prototype.getValueModel = function () {\n return this.valueModel;\n };\n\n SetFilter.prototype.areModelsEqual = function (a, b) {\n // both are missing\n if (a == null && b == null) {\n return true;\n }\n\n return a != null && b != null && _.areEqual(a.values, b.values);\n };\n\n SetFilter.prototype.setParams = function (params) {\n var _this = this;\n\n this.applyExcelModeOptions(params);\n\n _super.prototype.setParams.call(this, params);\n\n this.setFilterParams = params;\n this.caseSensitive = params.caseSensitive || false;\n this.valueModel = new SetValueModel(params, function (loading) {\n return _this.showOrHideLoadingScreen(loading);\n }, this.valueFormatterService, function (key) {\n return _this.translateForSetFilter(key);\n }, function (v) {\n return _this.caseFormat(v);\n });\n this.initialiseFilterBodyUi();\n this.addEventListenersForDataChanges();\n };\n\n SetFilter.prototype.applyExcelModeOptions = function (params) {\n // apply default options to match Excel behaviour, unless they have already been specified\n if (params.excelMode === 'windows') {\n if (!params.buttons) {\n params.buttons = ['apply', 'cancel'];\n }\n\n if (params.closeOnApply == null) {\n params.closeOnApply = true;\n }\n } else if (params.excelMode === 'mac') {\n if (!params.buttons) {\n params.buttons = ['reset'];\n }\n\n if (params.applyMiniFilterWhileTyping == null) {\n params.applyMiniFilterWhileTyping = true;\n }\n\n if (params.debounceMs == null) {\n params.debounceMs = 500;\n }\n }\n };\n\n SetFilter.prototype.addEventListenersForDataChanges = function () {\n var _this = this;\n\n if (!this.isValuesTakenFromGrid()) {\n return;\n }\n\n this.addManagedListener(this.eventService, Events.EVENT_CELL_VALUE_CHANGED, function (event) {\n // only interested in changes to do with this column\n if (_this.setFilterParams && event.column === _this.setFilterParams.column) {\n _this.syncAfterDataChange();\n }\n });\n };\n\n SetFilter.prototype.syncAfterDataChange = function () {\n var _this = this;\n\n if (!this.valueModel) {\n throw new Error('Value model has not been created.');\n }\n\n var promise = this.valueModel.refreshValues();\n return promise.then(function () {\n _this.refresh();\n\n _this.onBtApply(false, true);\n });\n };\n\n SetFilter.prototype.showOrHideLoadingScreen = function (isLoading) {\n _.setDisplayed(this.eFilterLoading, isLoading);\n };\n\n SetFilter.prototype.initialiseFilterBodyUi = function () {\n this.initVirtualList();\n this.initMiniFilter();\n };\n\n SetFilter.prototype.initVirtualList = function () {\n var _this = this;\n\n if (!this.setFilterParams) {\n throw new Error('Set filter params have not been provided.');\n }\n\n if (!this.valueModel) {\n throw new Error('Value model has not been created.');\n }\n\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n var filterListName = translate('ariaFilterList', 'Filter List');\n var virtualList = this.virtualList = this.createBean(new VirtualList('filter', 'listbox', filterListName));\n var eSetFilterList = this.getRefElement('eSetFilterList');\n\n if (eSetFilterList) {\n eSetFilterList.appendChild(virtualList.getGui());\n }\n\n var cellHeight = this.setFilterParams.cellHeight;\n\n if (cellHeight != null) {\n virtualList.setRowHeight(cellHeight);\n }\n\n virtualList.setComponentCreator(function (value) {\n return _this.createSetListItem(value);\n });\n var model;\n\n if (this.setFilterParams.suppressSelectAll) {\n model = new ModelWrapper(this.valueModel);\n } else {\n model = new ModelWrapperWithSelectAll(this.valueModel, function () {\n return _this.isSelectAllSelected();\n });\n }\n\n virtualList.setModel(model);\n };\n\n SetFilter.prototype.getSelectAllLabel = function () {\n if (!this.setFilterParams) {\n throw new Error('Set filter params have not been provided.');\n }\n\n if (!this.valueModel) {\n throw new Error('Value model has not been created.');\n }\n\n var key = this.valueModel.getMiniFilter() == null || !this.setFilterParams.excelMode ? 'selectAll' : 'selectAllSearchResults';\n return this.translateForSetFilter(key);\n };\n\n SetFilter.prototype.createSetListItem = function (value) {\n var _this = this;\n\n if (!this.setFilterParams) {\n throw new Error('Set filter params have not been provided.');\n }\n\n if (!this.valueModel) {\n throw new Error('Value model has not been created.');\n }\n\n var listItem;\n\n if (value === SetFilter.SELECT_ALL_VALUE) {\n listItem = this.createBean(new SetFilterListItem(function () {\n return _this.getSelectAllLabel();\n }, this.setFilterParams, function (key) {\n return _this.translateForSetFilter(key);\n }, this.isSelectAllSelected()));\n listItem.addEventListener(SetFilterListItem.EVENT_SELECTION_CHANGED, function (e) {\n return _this.onSelectAll(e.isSelected);\n });\n return listItem;\n }\n\n listItem = this.createBean(new SetFilterListItem(value, this.setFilterParams, function (key) {\n return _this.translateForSetFilter(key);\n }, this.valueModel.isValueSelected(value)));\n listItem.addEventListener(SetFilterListItem.EVENT_SELECTION_CHANGED, function (e) {\n return _this.onItemSelected(value, e.isSelected);\n });\n return listItem;\n };\n\n SetFilter.prototype.initMiniFilter = function () {\n var _this = this;\n\n if (!this.setFilterParams) {\n throw new Error('Set filter params have not been provided.');\n }\n\n if (!this.valueModel) {\n throw new Error('Value model has not been created.');\n }\n\n var _a = this,\n eMiniFilter = _a.eMiniFilter,\n gridOptionsWrapper = _a.gridOptionsWrapper;\n\n var translate = gridOptionsWrapper.getLocaleTextFunc();\n eMiniFilter.setDisplayed(!this.setFilterParams.suppressMiniFilter);\n eMiniFilter.setValue(this.valueModel.getMiniFilter());\n eMiniFilter.onValueChange(function () {\n return _this.onMiniFilterInput();\n });\n eMiniFilter.setInputAriaLabel(translate('ariaSearchFilterValues', 'Search filter values'));\n this.addManagedListener(eMiniFilter.getInputElement(), 'keypress', function (e) {\n return _this.onMiniFilterKeyPress(e);\n });\n }; // we need to have the GUI attached before we can draw the virtual rows, as the\n // virtual row logic needs info about the GUI state\n\n\n SetFilter.prototype.afterGuiAttached = function (params) {\n if (!this.setFilterParams) {\n throw new Error('Set filter params have not been provided.');\n }\n\n _super.prototype.afterGuiAttached.call(this, params);\n\n if (this.setFilterParams.excelMode) {\n this.resetUiToActiveModel();\n this.showOrHideResults();\n }\n\n this.refreshVirtualList();\n var eMiniFilter = this.eMiniFilter;\n eMiniFilter.setInputPlaceholder(this.translateForSetFilter('searchOoo'));\n\n if (!params || !params.suppressFocus) {\n eMiniFilter.getFocusableElement().focus();\n }\n\n var resizable = !!(params && params.container === 'floatingFilter');\n var resizableObject;\n\n if (this.gridOptionsWrapper.isEnableRtl()) {\n resizableObject = {\n bottom: true,\n bottomLeft: true,\n left: true\n };\n } else {\n resizableObject = {\n bottom: true,\n bottomRight: true,\n right: true\n };\n }\n\n if (resizable) {\n this.positionableFeature.restoreLastSize();\n this.positionableFeature.setResizable(resizableObject);\n } else {\n this.positionableFeature.removeSizeFromEl();\n this.positionableFeature.setResizable(false);\n }\n };\n\n SetFilter.prototype.applyModel = function () {\n var _this = this;\n\n if (!this.setFilterParams) {\n throw new Error('Set filter params have not been provided.');\n }\n\n if (!this.valueModel) {\n throw new Error('Value model has not been created.');\n }\n\n if (this.setFilterParams.excelMode && this.valueModel.isEverythingVisibleSelected()) {\n // In Excel, if the filter is applied with all visible values selected, then any active filter on the\n // column is removed. This ensures the filter is removed in this situation.\n this.valueModel.selectAllMatchingMiniFilter();\n }\n\n var result = _super.prototype.applyModel.call(this); // keep appliedModelValues in sync with the applied model\n\n\n var appliedModel = this.getModel();\n\n if (appliedModel) {\n this.appliedModelValues = appliedModel.values.reduce(function (values, value) {\n values[_this.caseFormat(String(value))] = true;\n return values;\n }, {});\n } else {\n this.appliedModelValues = null;\n }\n\n return result;\n };\n\n SetFilter.prototype.isModelValid = function (model) {\n return this.setFilterParams && this.setFilterParams.excelMode ? model == null || model.values.length > 0 : true;\n };\n\n SetFilter.prototype.doesFilterPass = function (params) {\n var _this = this;\n\n if (!this.setFilterParams || !this.valueModel || !this.appliedModelValues) {\n return true;\n }\n\n var node = params.node,\n data = params.data;\n var _a = this.setFilterParams,\n valueGetter = _a.valueGetter,\n keyCreator = _a.colDef.keyCreator,\n api = _a.api,\n colDef = _a.colDef,\n column = _a.column,\n columnApi = _a.columnApi,\n context = _a.context;\n var value = valueGetter({\n api: api,\n colDef: colDef,\n column: column,\n columnApi: columnApi,\n context: context,\n data: data,\n getValue: function getValue(field) {\n return data[field];\n },\n node: node\n });\n\n if (keyCreator) {\n var keyParams = {\n value: value,\n colDef: colDef,\n column: column,\n node: node,\n data: data,\n api: api,\n columnApi: columnApi,\n context: context\n };\n value = keyCreator(keyParams);\n }\n\n value = _.makeNull(value);\n\n if (Array.isArray(value)) {\n return value.some(function (v) {\n return _this.appliedModelValues[_this.caseFormat(String(_.makeNull(v)))] === true;\n });\n } // Comparing against a value performs better than just checking for undefined\n // https://jsbench.me/hdk91jbw1h/\n\n\n return this.appliedModelValues[this.caseFormat(String(value))] === true;\n };\n\n SetFilter.prototype.onNewRowsLoaded = function () {\n if (!this.isValuesTakenFromGrid()) {\n return;\n }\n\n this.syncAfterDataChange();\n };\n\n SetFilter.prototype.isValuesTakenFromGrid = function () {\n if (!this.valueModel) {\n return false;\n }\n\n var valuesType = this.valueModel.getValuesType();\n return valuesType === SetFilterModelValuesType.TAKEN_FROM_GRID_VALUES;\n }; //noinspection JSUnusedGlobalSymbols\n\n /**\n * Public method provided so the user can change the value of the filter once\n * the filter has been already started\n * @param options The options to use.\n */\n\n\n SetFilter.prototype.setFilterValues = function (options) {\n var _this = this;\n\n if (!this.valueModel) {\n throw new Error('Value model has not been created.');\n }\n\n this.valueModel.overrideValues(options).then(function () {\n _this.refresh();\n\n _this.onUiChanged();\n });\n }; //noinspection JSUnusedGlobalSymbols\n\n /**\n * Public method provided so the user can reset the values of the filter once that it has started.\n */\n\n\n SetFilter.prototype.resetFilterValues = function () {\n if (!this.valueModel) {\n throw new Error('Value model has not been created.');\n }\n\n this.valueModel.setValuesType(SetFilterModelValuesType.TAKEN_FROM_GRID_VALUES);\n this.syncAfterDataChange();\n };\n\n SetFilter.prototype.refreshFilterValues = function () {\n var _this = this;\n\n if (!this.valueModel) {\n throw new Error('Value model has not been created.');\n } // the model is still being initialised\n\n\n if (!this.valueModel.isInitialised()) {\n return;\n }\n\n this.valueModel.refreshValues().then(function () {\n _this.refresh();\n\n _this.onUiChanged();\n });\n };\n\n SetFilter.prototype.onAnyFilterChanged = function () {\n var _this = this; // don't block the current action when updating the values for this filter\n\n\n setTimeout(function () {\n if (!_this.isAlive()) {\n return;\n }\n\n if (!_this.valueModel) {\n throw new Error('Value model has not been created.');\n }\n\n _this.valueModel.refreshAfterAnyFilterChanged().then(function () {\n return _this.refresh();\n });\n }, 0);\n };\n\n SetFilter.prototype.onMiniFilterInput = function () {\n if (!this.setFilterParams) {\n throw new Error('Set filter params have not been provided.');\n }\n\n if (!this.valueModel) {\n throw new Error('Value model has not been created.');\n }\n\n if (!this.valueModel.setMiniFilter(this.eMiniFilter.getValue())) {\n return;\n }\n\n var _a = this.setFilterParams || {},\n applyMiniFilterWhileTyping = _a.applyMiniFilterWhileTyping,\n readOnly = _a.readOnly;\n\n if (!readOnly && applyMiniFilterWhileTyping) {\n this.filterOnAllVisibleValues(false);\n } else {\n this.updateUiAfterMiniFilterChange();\n }\n };\n\n SetFilter.prototype.updateUiAfterMiniFilterChange = function () {\n if (!this.setFilterParams) {\n throw new Error('Set filter params have not been provided.');\n }\n\n if (!this.valueModel) {\n throw new Error('Value model has not been created.');\n }\n\n var _a = this.setFilterParams || {},\n excelMode = _a.excelMode,\n readOnly = _a.readOnly;\n\n if (excelMode == null || !!readOnly) {\n this.refresh();\n } else if (this.valueModel.getMiniFilter() == null) {\n this.resetUiToActiveModel();\n } else {\n this.valueModel.selectAllMatchingMiniFilter(true);\n this.refresh();\n this.onUiChanged();\n }\n\n this.showOrHideResults();\n };\n\n SetFilter.prototype.showOrHideResults = function () {\n if (!this.valueModel) {\n throw new Error('Value model has not been created.');\n }\n\n var hideResults = this.valueModel.getMiniFilter() != null && this.valueModel.getDisplayedValueCount() < 1;\n\n _.setDisplayed(this.eNoMatches, hideResults);\n\n _.setDisplayed(this.eSetFilterList, !hideResults);\n };\n\n SetFilter.prototype.resetUiToActiveModel = function () {\n var _this = this;\n\n if (!this.valueModel) {\n throw new Error('Value model has not been created.');\n }\n\n this.eMiniFilter.setValue(null, true);\n this.valueModel.setMiniFilter(null);\n this.setModelIntoUi(this.getModel()).then(function () {\n return _this.onUiChanged(false, 'prevent');\n });\n };\n\n SetFilter.prototype.onMiniFilterKeyPress = function (e) {\n var _a = this.setFilterParams || {},\n excelMode = _a.excelMode,\n readOnly = _a.readOnly;\n\n if (e.key === KeyCode.ENTER && !excelMode && !readOnly) {\n this.filterOnAllVisibleValues();\n }\n };\n\n SetFilter.prototype.filterOnAllVisibleValues = function (applyImmediately) {\n if (applyImmediately === void 0) {\n applyImmediately = true;\n }\n\n var readOnly = (this.setFilterParams || {}).readOnly;\n\n if (!this.valueModel) {\n throw new Error('Value model has not been created.');\n }\n\n if (!!readOnly) {\n throw new Error('Unable to filter in readOnly mode.');\n }\n\n this.valueModel.selectAllMatchingMiniFilter(true);\n this.refresh();\n this.onUiChanged(false, applyImmediately ? 'immediately' : 'debounce');\n this.showOrHideResults();\n };\n\n SetFilter.prototype.focusRowIfAlive = function (rowIndex) {\n var _this = this;\n\n if (rowIndex == null) {\n return;\n }\n\n window.setTimeout(function () {\n if (!_this.virtualList) {\n throw new Error('Virtual list has not been created.');\n }\n\n if (_this.isAlive()) {\n _this.virtualList.focusRow(rowIndex);\n }\n }, 0);\n };\n\n SetFilter.prototype.onSelectAll = function (isSelected) {\n if (!this.valueModel) {\n throw new Error('Value model has not been created.');\n }\n\n if (!this.virtualList) {\n throw new Error('Virtual list has not been created.');\n }\n\n if (isSelected) {\n this.valueModel.selectAllMatchingMiniFilter();\n } else {\n this.valueModel.deselectAllMatchingMiniFilter();\n }\n\n var focusedRow = this.virtualList.getLastFocusedRow();\n this.refresh();\n this.onUiChanged();\n this.focusRowIfAlive(focusedRow);\n };\n\n SetFilter.prototype.onItemSelected = function (value, isSelected) {\n if (!this.valueModel) {\n throw new Error('Value model has not been created.');\n }\n\n if (!this.virtualList) {\n throw new Error('Virtual list has not been created.');\n }\n\n if (isSelected) {\n this.valueModel.selectValue(value);\n } else {\n this.valueModel.deselectValue(value);\n }\n\n var focusedRow = this.virtualList.getLastFocusedRow();\n this.refresh();\n this.onUiChanged();\n this.focusRowIfAlive(focusedRow);\n };\n\n SetFilter.prototype.setMiniFilter = function (newMiniFilter) {\n this.eMiniFilter.setValue(newMiniFilter);\n this.onMiniFilterInput();\n };\n\n SetFilter.prototype.getMiniFilter = function () {\n return this.valueModel ? this.valueModel.getMiniFilter() : null;\n };\n\n SetFilter.prototype.refresh = function () {\n if (!this.virtualList) {\n throw new Error('Virtual list has not been created.');\n }\n\n this.virtualList.refresh();\n };\n\n SetFilter.prototype.getValues = function () {\n return this.valueModel ? this.valueModel.getValues() : [];\n };\n\n SetFilter.prototype.refreshVirtualList = function () {\n if (this.setFilterParams && this.setFilterParams.refreshValuesOnOpen) {\n this.refreshFilterValues();\n } else {\n this.refresh();\n }\n };\n\n SetFilter.prototype.translateForSetFilter = function (key) {\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n return translate(key, DEFAULT_LOCALE_TEXT[key]);\n };\n\n SetFilter.prototype.isSelectAllSelected = function () {\n if (!this.setFilterParams || !this.valueModel) {\n return false;\n }\n\n if (!this.setFilterParams.defaultToNothingSelected) {\n // everything selected by default\n if (this.valueModel.hasSelections() && this.valueModel.isNothingVisibleSelected()) {\n return false;\n }\n\n if (this.valueModel.isEverythingVisibleSelected()) {\n return true;\n }\n } else {\n // nothing selected by default\n if (this.valueModel.hasSelections() && this.valueModel.isEverythingVisibleSelected()) {\n return true;\n }\n\n if (this.valueModel.isNothingVisibleSelected()) {\n return false;\n }\n } // returning `undefined` means the checkbox status is indeterminate.\n\n\n return undefined;\n };\n\n SetFilter.prototype.destroy = function () {\n if (this.virtualList != null) {\n this.virtualList.destroy();\n this.virtualList = null;\n }\n\n _super.prototype.destroy.call(this);\n };\n\n SetFilter.prototype.caseFormat = function (valueToFormat) {\n if (valueToFormat == null || typeof valueToFormat !== 'string') {\n return valueToFormat;\n }\n\n return this.caseSensitive ? valueToFormat : valueToFormat.toUpperCase();\n };\n\n SetFilter.SELECT_ALL_VALUE = '__AG_SELECT_ALL__';\n\n __decorate$d([RefSelector('eMiniFilter')], SetFilter.prototype, \"eMiniFilter\", void 0);\n\n __decorate$d([RefSelector('eFilterLoading')], SetFilter.prototype, \"eFilterLoading\", void 0);\n\n __decorate$d([RefSelector('eSetFilterList')], SetFilter.prototype, \"eSetFilterList\", void 0);\n\n __decorate$d([RefSelector('eFilterNoMatches')], SetFilter.prototype, \"eNoMatches\", void 0);\n\n __decorate$d([Autowired('valueFormatterService')], SetFilter.prototype, \"valueFormatterService\", void 0);\n\n return SetFilter;\n}(ProvidedFilter);\n\nvar ModelWrapper =\n/** @class */\nfunction () {\n function ModelWrapper(model) {\n this.model = model;\n }\n\n ModelWrapper.prototype.getRowCount = function () {\n return this.model.getDisplayedValueCount();\n };\n\n ModelWrapper.prototype.getRow = function (index) {\n return this.model.getDisplayedValue(index);\n };\n\n ModelWrapper.prototype.isRowSelected = function (index) {\n return this.model.isValueSelected(this.getRow(index));\n };\n\n return ModelWrapper;\n}();\n\nvar ModelWrapperWithSelectAll =\n/** @class */\nfunction () {\n function ModelWrapperWithSelectAll(model, isSelectAllSelected) {\n this.model = model;\n this.isSelectAllSelected = isSelectAllSelected;\n }\n\n ModelWrapperWithSelectAll.prototype.getRowCount = function () {\n return this.model.getDisplayedValueCount() + 1;\n };\n\n ModelWrapperWithSelectAll.prototype.getRow = function (index) {\n return index === 0 ? SetFilter.SELECT_ALL_VALUE : this.model.getDisplayedValue(index - 1);\n };\n\n ModelWrapperWithSelectAll.prototype.isRowSelected = function (index) {\n return index === 0 ? this.isSelectAllSelected() : this.model.isValueSelected(this.getRow(index));\n };\n\n return ModelWrapperWithSelectAll;\n}();\n\nvar __extends$y = undefined && undefined.__extends || function () {\n var _extendStatics186 = function extendStatics(d, b) {\n _extendStatics186 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics186(d, b);\n };\n\n return function (d, b) {\n _extendStatics186(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SetFloatingFilterComp =\n/** @class */\nfunction (_super) {\n __extends$y(SetFloatingFilterComp, _super);\n\n function SetFloatingFilterComp() {\n var _this = _super.call(this,\n /* html */\n \"\\n
\\n \\n
\") || this;\n\n _this.availableValuesListenerAdded = false;\n return _this;\n } // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n // so we need to override destroy() just to make the method public.\n\n\n SetFloatingFilterComp.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n SetFloatingFilterComp.prototype.init = function (params) {\n var displayName = this.columnModel.getDisplayNameForColumn(params.column, 'header', true);\n var translate = this.gridOptionsWrapper.getLocaleTextFunc();\n this.eFloatingFilterText.setDisabled(true).setInputAriaLabel(displayName + \" \" + translate('ariaFilterInput', 'Filter Input')).addGuiEventListener('click', function () {\n return params.showParentFilter();\n });\n this.params = params;\n };\n\n SetFloatingFilterComp.prototype.onParentModelChanged = function (parentModel) {\n this.updateFloatingFilterText(parentModel);\n };\n\n SetFloatingFilterComp.prototype.parentSetFilterInstance = function (cb) {\n this.params.parentFilterInstance(function (filter) {\n if (!(filter instanceof SetFilter)) {\n throw new Error('AG Grid - SetFloatingFilter expects SetFilter as it\\'s parent');\n }\n\n cb(filter);\n });\n };\n\n SetFloatingFilterComp.prototype.addAvailableValuesListener = function () {\n var _this = this;\n\n this.parentSetFilterInstance(function (setFilter) {\n var setValueModel = setFilter.getValueModel();\n\n if (!setValueModel) {\n return;\n } // unlike other filters, what we show in the floating filter can be different, even\n // if another filter changes. this is due to how set filter restricts its values based\n // on selections in other filters, e.g. if you filter Language to English, then the set filter\n // on Country will only show English speaking countries. Thus the list of items to show\n // in the floating filter can change.\n\n\n _this.addManagedListener(setValueModel, SetValueModel.EVENT_AVAILABLE_VALUES_CHANGED, function () {\n return _this.updateFloatingFilterText();\n });\n });\n this.availableValuesListenerAdded = true;\n };\n\n SetFloatingFilterComp.prototype.updateFloatingFilterText = function (parentModel) {\n var _this = this;\n\n if (!this.availableValuesListenerAdded) {\n this.addAvailableValuesListener();\n }\n\n this.parentSetFilterInstance(function (setFilter) {\n var values = (parentModel || setFilter.getModel() || {}).values;\n var valueModel = setFilter.getValueModel();\n\n if (values == null || valueModel == null) {\n _this.eFloatingFilterText.setValue('');\n\n return;\n }\n\n var localeTextFunc = _this.gridOptionsWrapper.getLocaleTextFunc();\n\n var availableValues = values.filter(function (v) {\n return valueModel.isValueAvailable(v);\n }); // format all the values, if a formatter is provided\n\n var formattedValues = availableValues.map(function (value) {\n var _a = _this.params,\n column = _a.column,\n filterParams = _a.filterParams;\n\n var formattedValue = _this.valueFormatterService.formatValue(column, null, value, filterParams.valueFormatter, false);\n\n var valueToRender = formattedValue != null ? formattedValue : value;\n return valueToRender == null ? localeTextFunc('blanks', DEFAULT_LOCALE_TEXT.blanks) : valueToRender;\n });\n var arrayToDisplay = formattedValues.length > 10 ? formattedValues.slice(0, 10).concat('...') : formattedValues;\n var valuesString = \"(\" + formattedValues.length + \") \" + arrayToDisplay.join(',');\n\n _this.eFloatingFilterText.setValue(valuesString);\n });\n };\n\n __decorate$c([RefSelector('eFloatingFilterText')], SetFloatingFilterComp.prototype, \"eFloatingFilterText\", void 0);\n\n __decorate$c([Autowired('valueFormatterService')], SetFloatingFilterComp.prototype, \"valueFormatterService\", void 0);\n\n __decorate$c([Autowired('columnModel')], SetFloatingFilterComp.prototype, \"columnModel\", void 0);\n\n return SetFloatingFilterComp;\n}(Component);\n\nvar SetFilterModule = {\n moduleName: ModuleNames.SetFilterModule,\n beans: [],\n userComponents: [{\n componentName: 'agSetColumnFilter',\n componentClass: SetFilter\n }, {\n componentName: 'agSetColumnFloatingFilter',\n componentClass: SetFloatingFilterComp\n }],\n dependantModules: [EnterpriseCoreModule]\n};\n\nvar __extends$x = undefined && undefined.__extends || function () {\n var _extendStatics187 = function extendStatics(d, b) {\n _extendStatics187 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics187(d, b);\n };\n\n return function (d, b) {\n _extendStatics187(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar StatusBarService =\n/** @class */\nfunction (_super) {\n __extends$x(StatusBarService, _super); // tslint:disable-next-line\n\n\n function StatusBarService() {\n var _this = _super.call(this) || this;\n\n _this.allComponents = {};\n return _this;\n }\n\n StatusBarService.prototype.registerStatusPanel = function (key, component) {\n this.allComponents[key] = component;\n };\n\n StatusBarService.prototype.getStatusPanel = function (key) {\n return this.allComponents[key];\n };\n\n StatusBarService = __decorate$b([Bean('statusBarService')], StatusBarService);\n return StatusBarService;\n}(BeanStub);\n\nvar __extends$w = undefined && undefined.__extends || function () {\n var _extendStatics188 = function extendStatics(d, b) {\n _extendStatics188 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics188(d, b);\n };\n\n return function (d, b) {\n _extendStatics188(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar StatusBar =\n/** @class */\nfunction (_super) {\n __extends$w(StatusBar, _super);\n\n function StatusBar() {\n return _super.call(this, StatusBar.TEMPLATE) || this;\n }\n\n StatusBar.prototype.postConstruct = function () {\n if (this.gridOptions.statusBar && this.gridOptions.statusBar.statusPanels) {\n var leftStatusPanelComponents = this.gridOptions.statusBar.statusPanels.filter(function (componentConfig) {\n return componentConfig.align === 'left';\n });\n this.createAndRenderComponents(leftStatusPanelComponents, this.eStatusBarLeft);\n var centerStatusPanelComponents = this.gridOptions.statusBar.statusPanels.filter(function (componentConfig) {\n return componentConfig.align === 'center';\n });\n this.createAndRenderComponents(centerStatusPanelComponents, this.eStatusBarCenter);\n var rightStatusPanelComponents = this.gridOptions.statusBar.statusPanels.filter(function (componentConfig) {\n return !componentConfig.align || componentConfig.align === 'right';\n });\n this.createAndRenderComponents(rightStatusPanelComponents, this.eStatusBarRight);\n } else {\n this.setDisplayed(false);\n }\n };\n\n StatusBar.prototype.createAndRenderComponents = function (statusBarComponents, ePanelComponent) {\n var _this = this;\n\n var componentDetails = [];\n statusBarComponents.forEach(function (componentConfig) {\n var params = {};\n\n var compDetails = _this.userComponentFactory.getStatusPanelCompDetails(componentConfig, params);\n\n var promise = compDetails.newAgStackInstance();\n\n if (!promise) {\n return;\n }\n\n componentDetails.push({\n // default to the component name if no key supplied\n key: componentConfig.key || componentConfig.statusPanel,\n promise: promise\n });\n });\n AgPromise.all(componentDetails.map(function (details) {\n return details.promise;\n })).then(function () {\n componentDetails.forEach(function (componentDetail) {\n componentDetail.promise.then(function (component) {\n var destroyFunc = function destroyFunc() {\n _this.getContext().destroyBean(component);\n };\n\n if (_this.isAlive()) {\n _this.statusBarService.registerStatusPanel(componentDetail.key, component);\n\n ePanelComponent.appendChild(component.getGui());\n\n _this.addDestroyFunc(destroyFunc);\n } else {\n destroyFunc();\n }\n });\n });\n });\n };\n\n StatusBar.TEMPLATE = \"
\\n
\\n
\\n
\\n
\";\n\n __decorate$a([Autowired('gridOptions')], StatusBar.prototype, \"gridOptions\", void 0);\n\n __decorate$a([Autowired('userComponentFactory')], StatusBar.prototype, \"userComponentFactory\", void 0);\n\n __decorate$a([Autowired('statusBarService')], StatusBar.prototype, \"statusBarService\", void 0);\n\n __decorate$a([RefSelector('eStatusBarLeft')], StatusBar.prototype, \"eStatusBarLeft\", void 0);\n\n __decorate$a([RefSelector('eStatusBarCenter')], StatusBar.prototype, \"eStatusBarCenter\", void 0);\n\n __decorate$a([RefSelector('eStatusBarRight')], StatusBar.prototype, \"eStatusBarRight\", void 0);\n\n __decorate$a([PostConstruct], StatusBar.prototype, \"postConstruct\", null);\n\n return StatusBar;\n}(Component);\n\nvar __extends$v = undefined && undefined.__extends || function () {\n var _extendStatics189 = function extendStatics(d, b) {\n _extendStatics189 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics189(d, b);\n };\n\n return function (d, b) {\n _extendStatics189(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar NameValueComp =\n/** @class */\nfunction (_super) {\n __extends$v(NameValueComp, _super);\n\n function NameValueComp() {\n return _super.call(this, NameValueComp.TEMPLATE) || this;\n }\n\n NameValueComp.prototype.setLabel = function (key, defaultValue) {\n // we want to hide until the first value comes in\n this.setDisplayed(false);\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n this.eLabel.innerHTML = localeTextFunc(key, defaultValue);\n };\n\n NameValueComp.prototype.setValue = function (value) {\n this.eValue.innerHTML = value;\n };\n\n NameValueComp.TEMPLATE = \"
\\n : \\n \\n
\";\n\n __decorate$9([RefSelector('eLabel')], NameValueComp.prototype, \"eLabel\", void 0);\n\n __decorate$9([RefSelector('eValue')], NameValueComp.prototype, \"eValue\", void 0);\n\n return NameValueComp;\n}(Component);\n\nvar __extends$u = undefined && undefined.__extends || function () {\n var _extendStatics190 = function extendStatics(d, b) {\n _extendStatics190 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics190(d, b);\n };\n\n return function (d, b) {\n _extendStatics190(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar TotalAndFilteredRowsComp =\n/** @class */\nfunction (_super) {\n __extends$u(TotalAndFilteredRowsComp, _super);\n\n function TotalAndFilteredRowsComp() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n TotalAndFilteredRowsComp.prototype.postConstruct = function () {\n // this component is only really useful with client side row model\n if (this.gridApi.getModel().getType() !== 'clientSide') {\n console.warn(\"AG Grid: agTotalAndFilteredRowCountComponent should only be used with the client side row model.\");\n return;\n }\n\n this.setLabel('totalAndFilteredRows', 'Rows');\n this.addCssClass('ag-status-panel');\n this.addCssClass('ag-status-panel-total-and-filtered-row-count');\n this.setDisplayed(true);\n this.addManagedListener(this.eventService, Events.EVENT_MODEL_UPDATED, this.onDataChanged.bind(this));\n this.onDataChanged();\n };\n\n TotalAndFilteredRowsComp.prototype.onDataChanged = function () {\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n var thousandSeparator = localeTextFunc('thousandSeparator', ',');\n var decimalSeparator = localeTextFunc('decimalSeparator', '.');\n\n var rowCount = _.formatNumberCommas(this.getFilteredRowCountValue(), thousandSeparator, decimalSeparator);\n\n var totalRowCount = _.formatNumberCommas(this.getTotalRowCount(), thousandSeparator, decimalSeparator);\n\n if (rowCount === totalRowCount) {\n this.setValue(rowCount);\n } else {\n var localeTextFunc_1 = this.gridOptionsWrapper.getLocaleTextFunc();\n this.setValue(rowCount + \" \" + localeTextFunc_1('of', 'of') + \" \" + totalRowCount);\n }\n };\n\n TotalAndFilteredRowsComp.prototype.getFilteredRowCountValue = function () {\n var filteredRowCount = 0;\n this.gridApi.forEachNodeAfterFilter(function (node) {\n if (!node.group) {\n filteredRowCount++;\n }\n });\n return filteredRowCount;\n };\n\n TotalAndFilteredRowsComp.prototype.getTotalRowCount = function () {\n var totalRowCount = 0;\n this.gridApi.forEachNode(function (node) {\n if (!node.group) {\n totalRowCount++;\n }\n });\n return totalRowCount;\n };\n\n TotalAndFilteredRowsComp.prototype.init = function () {}; // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n // so we need to override destroy() just to make the method public.\n\n\n TotalAndFilteredRowsComp.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n __decorate$8([Autowired('gridApi')], TotalAndFilteredRowsComp.prototype, \"gridApi\", void 0);\n\n __decorate$8([PostConstruct], TotalAndFilteredRowsComp.prototype, \"postConstruct\", null);\n\n return TotalAndFilteredRowsComp;\n}(NameValueComp);\n\nvar __extends$t = undefined && undefined.__extends || function () {\n var _extendStatics191 = function extendStatics(d, b) {\n _extendStatics191 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics191(d, b);\n };\n\n return function (d, b) {\n _extendStatics191(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar FilteredRowsComp =\n/** @class */\nfunction (_super) {\n __extends$t(FilteredRowsComp, _super);\n\n function FilteredRowsComp() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n FilteredRowsComp.prototype.postConstruct = function () {\n this.setLabel('filteredRows', 'Filtered'); // this component is only really useful with client side row model\n\n if (this.gridApi.getModel().getType() !== 'clientSide') {\n console.warn(\"AG Grid: agFilteredRowCountComponent should only be used with the client side row model.\");\n return;\n }\n\n this.addCssClass('ag-status-panel');\n this.addCssClass('ag-status-panel-filtered-row-count');\n this.setDisplayed(true);\n var listener = this.onDataChanged.bind(this);\n this.addManagedListener(this.eventService, Events.EVENT_MODEL_UPDATED, listener);\n listener();\n };\n\n FilteredRowsComp.prototype.onDataChanged = function () {\n var totalRowCountValue = this.getTotalRowCountValue();\n var filteredRowCountValue = this.getFilteredRowCountValue();\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n var thousandSeparator = localeTextFunc('thousandSeparator', ',');\n var decimalSeparator = localeTextFunc('decimalSeparator', '.');\n this.setValue(_.formatNumberCommas(filteredRowCountValue, thousandSeparator, decimalSeparator));\n this.setDisplayed(totalRowCountValue !== filteredRowCountValue);\n };\n\n FilteredRowsComp.prototype.getTotalRowCountValue = function () {\n var totalRowCount = 0;\n this.gridApi.forEachNode(function (node) {\n return totalRowCount += 1;\n });\n return totalRowCount;\n };\n\n FilteredRowsComp.prototype.getFilteredRowCountValue = function () {\n var filteredRowCount = 0;\n this.gridApi.forEachNodeAfterFilter(function (node) {\n if (!node.group) {\n filteredRowCount += 1;\n }\n });\n return filteredRowCount;\n };\n\n FilteredRowsComp.prototype.init = function () {}; // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n // so we need to override destroy() just to make the method public.\n\n\n FilteredRowsComp.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n __decorate$7([Autowired('gridApi')], FilteredRowsComp.prototype, \"gridApi\", void 0);\n\n __decorate$7([PostConstruct], FilteredRowsComp.prototype, \"postConstruct\", null);\n\n return FilteredRowsComp;\n}(NameValueComp);\n\nvar __extends$s = undefined && undefined.__extends || function () {\n var _extendStatics192 = function extendStatics(d, b) {\n _extendStatics192 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics192(d, b);\n };\n\n return function (d, b) {\n _extendStatics192(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar TotalRowsComp =\n/** @class */\nfunction (_super) {\n __extends$s(TotalRowsComp, _super);\n\n function TotalRowsComp() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n TotalRowsComp.prototype.postConstruct = function () {\n this.setLabel('totalRows', 'Total Rows'); // this component is only really useful with client side row model\n\n if (this.gridApi.getModel().getType() !== 'clientSide') {\n console.warn(\"AG Grid: agTotalRowCountComponent should only be used with the client side row model.\");\n return;\n }\n\n this.addCssClass('ag-status-panel');\n this.addCssClass('ag-status-panel-total-row-count');\n this.setDisplayed(true);\n this.addManagedListener(this.eventService, Events.EVENT_MODEL_UPDATED, this.onDataChanged.bind(this));\n this.onDataChanged();\n };\n\n TotalRowsComp.prototype.onDataChanged = function () {\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n var thousandSeparator = localeTextFunc('thousandSeparator', ',');\n var decimalSeparator = localeTextFunc('decimalSeparator', '.');\n this.setValue(_.formatNumberCommas(this.getRowCountValue(), thousandSeparator, decimalSeparator));\n };\n\n TotalRowsComp.prototype.getRowCountValue = function () {\n var totalRowCount = 0;\n this.gridApi.forEachLeafNode(function (node) {\n return totalRowCount += 1;\n });\n return totalRowCount;\n };\n\n TotalRowsComp.prototype.init = function () {}; // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n // so we need to override destroy() just to make the method public.\n\n\n TotalRowsComp.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n __decorate$6([Autowired('gridApi')], TotalRowsComp.prototype, \"gridApi\", void 0);\n\n __decorate$6([PostConstruct], TotalRowsComp.prototype, \"postConstruct\", null);\n\n return TotalRowsComp;\n}(NameValueComp);\n\nvar __extends$r = undefined && undefined.__extends || function () {\n var _extendStatics193 = function extendStatics(d, b) {\n _extendStatics193 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics193(d, b);\n };\n\n return function (d, b) {\n _extendStatics193(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SelectedRowsComp =\n/** @class */\nfunction (_super) {\n __extends$r(SelectedRowsComp, _super);\n\n function SelectedRowsComp() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n SelectedRowsComp.prototype.postConstruct = function () {\n if (!this.isValidRowModel()) {\n console.warn(\"AG Grid: agSelectedRowCountComponent should only be used with the client and server side row model.\");\n return;\n }\n\n this.setLabel('selectedRows', 'Selected');\n this.addCssClass('ag-status-panel');\n this.addCssClass('ag-status-panel-selected-row-count');\n var selectedRowCount = this.gridApi.getSelectedRows().length;\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n var thousandSeparator = localeTextFunc('thousandSeparator', ',');\n var decimalSeparator = localeTextFunc('decimalSeparator', '.');\n this.setValue(_.formatNumberCommas(selectedRowCount, thousandSeparator, decimalSeparator));\n this.setDisplayed(selectedRowCount > 0);\n var eventListener = this.onRowSelectionChanged.bind(this);\n this.addManagedListener(this.eventService, Events.EVENT_MODEL_UPDATED, eventListener);\n this.addManagedListener(this.eventService, Events.EVENT_SELECTION_CHANGED, eventListener);\n };\n\n SelectedRowsComp.prototype.isValidRowModel = function () {\n // this component is only really useful with client or server side rowmodels\n var rowModelType = this.gridApi.getModel().getType();\n return rowModelType === 'clientSide' || rowModelType === 'serverSide';\n };\n\n SelectedRowsComp.prototype.onRowSelectionChanged = function () {\n var selectedRowCount = this.gridApi.getSelectedRows().length;\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n var thousandSeparator = localeTextFunc('thousandSeparator', ',');\n var decimalSeparator = localeTextFunc('decimalSeparator', '.');\n this.setValue(_.formatNumberCommas(selectedRowCount, thousandSeparator, decimalSeparator));\n this.setDisplayed(selectedRowCount > 0);\n };\n\n SelectedRowsComp.prototype.init = function () {}; // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n // so we need to override destroy() just to make the method public.\n\n\n SelectedRowsComp.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n __decorate$5([Autowired('gridApi')], SelectedRowsComp.prototype, \"gridApi\", void 0);\n\n __decorate$5([PostConstruct], SelectedRowsComp.prototype, \"postConstruct\", null);\n\n return SelectedRowsComp;\n}(NameValueComp);\n\nvar __extends$q = undefined && undefined.__extends || function () {\n var _extendStatics194 = function extendStatics(d, b) {\n _extendStatics194 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics194(d, b);\n };\n\n return function (d, b) {\n _extendStatics194(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar AggregationComp =\n/** @class */\nfunction (_super) {\n __extends$q(AggregationComp, _super);\n\n function AggregationComp() {\n return _super.call(this, AggregationComp.TEMPLATE) || this;\n } // this is a user component, and IComponent has \"public destroy()\" as part of the interface.\n // so we need to override destroy() just to make the method public.\n\n\n AggregationComp.prototype.destroy = function () {\n _super.prototype.destroy.call(this);\n };\n\n AggregationComp.prototype.postConstruct = function () {\n if (!this.isValidRowModel()) {\n console.warn(\"AG Grid: agAggregationComponent should only be used with the client and server side row model.\");\n return;\n }\n\n this.avgAggregationComp.setLabel('avg', 'Average');\n this.countAggregationComp.setLabel('count', 'Count');\n this.minAggregationComp.setLabel('min', 'Min');\n this.maxAggregationComp.setLabel('max', 'Max');\n this.sumAggregationComp.setLabel('sum', 'Sum');\n this.addManagedListener(this.eventService, Events.EVENT_RANGE_SELECTION_CHANGED, this.onRangeSelectionChanged.bind(this));\n this.addManagedListener(this.eventService, Events.EVENT_MODEL_UPDATED, this.onRangeSelectionChanged.bind(this));\n };\n\n AggregationComp.prototype.isValidRowModel = function () {\n // this component is only really useful with client or server side rowmodels\n var rowModelType = this.gridApi.getModel().getType();\n return rowModelType === 'clientSide' || rowModelType === 'serverSide';\n };\n\n AggregationComp.prototype.init = function () {};\n\n AggregationComp.prototype.setAggregationComponentValue = function (aggFuncName, value, visible) {\n var statusBarValueComponent = this.getAggregationValueComponent(aggFuncName);\n\n if (_.exists(statusBarValueComponent) && statusBarValueComponent) {\n var localeTextFunc = this.gridOptionsWrapper.getLocaleTextFunc();\n var thousandSeparator = localeTextFunc('thousandSeparator', ',');\n var decimalSeparator = localeTextFunc('decimalSeparator', '.');\n statusBarValueComponent.setValue(_.formatNumberTwoDecimalPlacesAndCommas(value, thousandSeparator, decimalSeparator));\n statusBarValueComponent.setDisplayed(visible);\n }\n };\n\n AggregationComp.prototype.getAggregationValueComponent = function (aggFuncName) {\n // converts user supplied agg name to our reference - eg: sum => sumAggregationComp\n var refComponentName = aggFuncName + \"AggregationComp\"; // if the user has specified the agAggregationPanelComp but no aggFuncs we show the all\n // if the user has specified the agAggregationPanelComp and aggFuncs, then we only show the aggFuncs listed\n\n var statusBarValueComponent = null;\n var aggregationPanelConfig = _.exists(this.gridOptions.statusBar) && this.gridOptions.statusBar ? this.gridOptions.statusBar.statusPanels.find(function (panel) {\n return panel.statusPanel === 'agAggregationComponent';\n }) : null;\n\n if (_.exists(aggregationPanelConfig) && aggregationPanelConfig) {\n // a little defensive here - if no statusPanelParams show it, if componentParams we also expect aggFuncs\n if (!_.exists(aggregationPanelConfig.statusPanelParams) || _.exists(aggregationPanelConfig.statusPanelParams) && _.exists(aggregationPanelConfig.statusPanelParams.aggFuncs) && _.exists(aggregationPanelConfig.statusPanelParams.aggFuncs.find(function (func) {\n return func === aggFuncName;\n }))) {\n statusBarValueComponent = this[refComponentName];\n }\n } else {\n // components not specified - assume we can show this component\n statusBarValueComponent = this[refComponentName];\n } // either we can't find it (which would indicate a typo or similar user side), or the user has deliberately\n // not listed the component in aggFuncs\n\n\n return statusBarValueComponent;\n };\n\n AggregationComp.prototype.onRangeSelectionChanged = function () {\n var _this = this;\n\n var cellRanges = this.rangeService ? this.rangeService.getCellRanges() : undefined;\n var sum = 0;\n var count = 0;\n var numberCount = 0;\n var min = null;\n var max = null;\n var cellsSoFar = {};\n\n if (cellRanges && !_.missingOrEmpty(cellRanges)) {\n cellRanges.forEach(function (cellRange) {\n var currentRow = _this.rangeService.getRangeStartRow(cellRange);\n\n var lastRow = _this.rangeService.getRangeEndRow(cellRange);\n\n while (true) {\n var finishedAllRows = _.missing(currentRow) || !currentRow || _this.rowPositionUtils.before(lastRow, currentRow);\n\n if (finishedAllRows || !currentRow || !cellRange.columns) {\n break;\n }\n\n cellRange.columns.forEach(function (col) {\n if (currentRow === null) {\n return;\n } // we only want to include each cell once, in case a cell is in multiple ranges\n\n\n var cellId = _this.cellPositionUtils.createId({\n rowPinned: currentRow.rowPinned,\n column: col,\n rowIndex: currentRow.rowIndex\n });\n\n if (cellsSoFar[cellId]) {\n return;\n }\n\n cellsSoFar[cellId] = true;\n\n var rowNode = _this.rowRenderer.getRowNode(currentRow);\n\n if (_.missing(rowNode)) {\n return;\n }\n\n var value = _this.valueService.getValue(col, rowNode); // if empty cell, skip it, doesn't impact count or anything\n\n\n if (_.missing(value) || value === '') {\n return;\n } // see if value is wrapped, can happen when doing count() or avg() functions\n\n\n if (value.value) {\n value = value.value;\n }\n\n if (typeof value === 'string') {\n value = Number(value);\n }\n\n if (typeof value === 'number' && !isNaN(value)) {\n sum += value;\n\n if (max === null || value > max) {\n max = value;\n }\n\n if (min === null || value < min) {\n min = value;\n }\n\n numberCount++;\n }\n\n count++;\n });\n currentRow = _this.cellNavigationService.getRowBelow(currentRow);\n }\n });\n }\n\n var gotResult = count > 1;\n var gotNumberResult = numberCount > 1; // we show count even if no numbers\n\n this.setAggregationComponentValue('count', count, gotResult); // show if numbers found\n\n this.setAggregationComponentValue('sum', sum, gotNumberResult);\n this.setAggregationComponentValue('min', min, gotNumberResult);\n this.setAggregationComponentValue('max', max, gotNumberResult);\n this.setAggregationComponentValue('avg', sum / numberCount, gotNumberResult);\n };\n\n AggregationComp.TEMPLATE = \"
\\n \\n \\n \\n \\n \\n
\";\n\n __decorate$4([Optional('rangeService')], AggregationComp.prototype, \"rangeService\", void 0);\n\n __decorate$4([Autowired('valueService')], AggregationComp.prototype, \"valueService\", void 0);\n\n __decorate$4([Autowired('cellNavigationService')], AggregationComp.prototype, \"cellNavigationService\", void 0);\n\n __decorate$4([Autowired('rowRenderer')], AggregationComp.prototype, \"rowRenderer\", void 0);\n\n __decorate$4([Autowired('gridOptions')], AggregationComp.prototype, \"gridOptions\", void 0);\n\n __decorate$4([Autowired('gridApi')], AggregationComp.prototype, \"gridApi\", void 0);\n\n __decorate$4([Autowired('cellPositionUtils')], AggregationComp.prototype, \"cellPositionUtils\", void 0);\n\n __decorate$4([Autowired('rowPositionUtils')], AggregationComp.prototype, \"rowPositionUtils\", void 0);\n\n __decorate$4([RefSelector('sumAggregationComp')], AggregationComp.prototype, \"sumAggregationComp\", void 0);\n\n __decorate$4([RefSelector('countAggregationComp')], AggregationComp.prototype, \"countAggregationComp\", void 0);\n\n __decorate$4([RefSelector('minAggregationComp')], AggregationComp.prototype, \"minAggregationComp\", void 0);\n\n __decorate$4([RefSelector('maxAggregationComp')], AggregationComp.prototype, \"maxAggregationComp\", void 0);\n\n __decorate$4([RefSelector('avgAggregationComp')], AggregationComp.prototype, \"avgAggregationComp\", void 0);\n\n __decorate$4([PostConstruct], AggregationComp.prototype, \"postConstruct\", null);\n\n return AggregationComp;\n}(Component);\n\nvar StatusBarModule = {\n moduleName: ModuleNames.StatusBarModule,\n beans: [StatusBarService],\n agStackComponents: [{\n componentName: 'AgStatusBar',\n componentClass: StatusBar\n }, {\n componentName: 'AgNameValue',\n componentClass: NameValueComp\n }],\n userComponents: [{\n componentName: 'agAggregationComponent',\n componentClass: AggregationComp\n }, {\n componentName: 'agSelectedRowCountComponent',\n componentClass: SelectedRowsComp\n }, {\n componentName: 'agTotalRowCountComponent',\n componentClass: TotalRowsComp\n }, {\n componentName: 'agFilteredRowCountComponent',\n componentClass: FilteredRowsComp\n }, {\n componentName: 'agTotalAndFilteredRowCountComponent',\n componentClass: TotalAndFilteredRowsComp\n }],\n dependantModules: [EnterpriseCoreModule]\n};\n\nvar __extends$p = undefined && undefined.__extends || function () {\n var _extendStatics195 = function extendStatics(d, b) {\n _extendStatics195 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics195(d, b);\n };\n\n return function (d, b) {\n _extendStatics195(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar ViewportRowModel =\n/** @class */\nfunction (_super) {\n __extends$p(ViewportRowModel, _super);\n\n function ViewportRowModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this; // rowRenderer tells us these\n\n\n _this.firstRow = -1;\n _this.lastRow = -1; // datasource tells us this\n\n _this.rowCount = -1;\n _this.rowNodesByIndex = {};\n return _this;\n } // we don't implement as lazy row heights is not supported in this row model\n\n\n ViewportRowModel.prototype.ensureRowHeightsValid = function (startPixel, endPixel, startLimitIndex, endLimitIndex) {\n return false;\n };\n\n ViewportRowModel.prototype.init = function () {\n this.rowHeight = this.gridOptionsWrapper.getRowHeightAsNumber();\n this.addManagedListener(this.eventService, Events.EVENT_VIEWPORT_CHANGED, this.onViewportChanged.bind(this));\n };\n\n ViewportRowModel.prototype.start = function () {\n if (this.gridOptionsWrapper.getViewportDatasource()) {\n this.setViewportDatasource(this.gridOptionsWrapper.getViewportDatasource());\n }\n };\n\n ViewportRowModel.prototype.isLastRowIndexKnown = function () {\n return true;\n };\n\n ViewportRowModel.prototype.destroyDatasource = function () {\n if (!this.viewportDatasource) {\n return;\n }\n\n if (this.viewportDatasource.destroy) {\n this.viewportDatasource.destroy();\n }\n\n this.rowRenderer.datasourceChanged();\n this.firstRow = -1;\n this.lastRow = -1;\n };\n\n ViewportRowModel.prototype.calculateFirstRow = function (firstRenderedRow) {\n var bufferSize = this.gridOptionsWrapper.getViewportRowModelBufferSize();\n var pageSize = this.gridOptionsWrapper.getViewportRowModelPageSize();\n var afterBuffer = firstRenderedRow - bufferSize;\n\n if (afterBuffer < 0) {\n return 0;\n }\n\n return Math.floor(afterBuffer / pageSize) * pageSize;\n };\n\n ViewportRowModel.prototype.calculateLastRow = function (lastRenderedRow) {\n if (lastRenderedRow === -1) {\n return lastRenderedRow;\n }\n\n var bufferSize = this.gridOptionsWrapper.getViewportRowModelBufferSize();\n var pageSize = this.gridOptionsWrapper.getViewportRowModelPageSize();\n var afterBuffer = lastRenderedRow + bufferSize;\n var result = Math.ceil(afterBuffer / pageSize) * pageSize;\n var lastRowIndex = this.rowCount - 1;\n return Math.min(result, lastRowIndex);\n };\n\n ViewportRowModel.prototype.onViewportChanged = function (event) {\n var newFirst = this.calculateFirstRow(event.firstRow);\n var newLast = this.calculateLastRow(event.lastRow);\n\n if (this.firstRow !== newFirst || this.lastRow !== newLast) {\n this.firstRow = newFirst;\n this.lastRow = newLast;\n this.purgeRowsNotInViewport();\n\n if (this.viewportDatasource) {\n this.viewportDatasource.setViewportRange(this.firstRow, this.lastRow);\n }\n }\n };\n\n ViewportRowModel.prototype.purgeRowsNotInViewport = function () {\n var _this = this;\n\n Object.keys(this.rowNodesByIndex).forEach(function (indexStr) {\n var index = parseInt(indexStr, 10);\n\n if (index < _this.firstRow || index > _this.lastRow) {\n if (_this.isRowFocused(index)) {\n return;\n }\n\n delete _this.rowNodesByIndex[index];\n }\n });\n };\n\n ViewportRowModel.prototype.isRowFocused = function (rowIndex) {\n var focusedCell = this.focusService.getFocusCellToUseAfterRefresh();\n\n if (!focusedCell) {\n return false;\n }\n\n if (focusedCell.rowPinned != null) {\n return false;\n }\n\n var hasFocus = focusedCell.rowIndex === rowIndex;\n return hasFocus;\n };\n\n ViewportRowModel.prototype.setViewportDatasource = function (viewportDatasource) {\n this.destroyDatasource();\n this.viewportDatasource = viewportDatasource;\n this.rowCount = 0;\n\n if (!viewportDatasource.init) {\n console.warn('AG Grid: viewport is missing init method.');\n } else {\n viewportDatasource.init({\n setRowCount: this.setRowCount.bind(this),\n setRowData: this.setRowData.bind(this),\n getRow: this.getRow.bind(this)\n });\n }\n };\n\n ViewportRowModel.prototype.getType = function () {\n return Constants.ROW_MODEL_TYPE_VIEWPORT;\n };\n\n ViewportRowModel.prototype.getRow = function (rowIndex) {\n if (!this.rowNodesByIndex[rowIndex]) {\n this.rowNodesByIndex[rowIndex] = this.createBlankRowNode(rowIndex);\n }\n\n return this.rowNodesByIndex[rowIndex];\n };\n\n ViewportRowModel.prototype.getRowNode = function (id) {\n var result;\n this.forEachNode(function (rowNode) {\n if (rowNode.id === id) {\n result = rowNode;\n }\n });\n return result;\n };\n\n ViewportRowModel.prototype.getRowCount = function () {\n return this.rowCount;\n };\n\n ViewportRowModel.prototype.getRowIndexAtPixel = function (pixel) {\n if (this.rowHeight !== 0) {\n // avoid divide by zero error\n return Math.floor(pixel / this.rowHeight);\n }\n\n return 0;\n };\n\n ViewportRowModel.prototype.getRowBounds = function (index) {\n return {\n rowHeight: this.rowHeight,\n rowTop: this.rowHeight * index\n };\n };\n\n ViewportRowModel.prototype.getTopLevelRowCount = function () {\n return this.getRowCount();\n };\n\n ViewportRowModel.prototype.getTopLevelRowDisplayedIndex = function (topLevelIndex) {\n return topLevelIndex;\n };\n\n ViewportRowModel.prototype.isEmpty = function () {\n return this.rowCount > 0;\n };\n\n ViewportRowModel.prototype.isRowsToRender = function () {\n return this.rowCount > 0;\n };\n\n ViewportRowModel.prototype.getNodesInRangeForSelection = function (firstInRange, lastInRange) {\n var firstIndex = _.missing(firstInRange) ? 0 : firstInRange.rowIndex;\n var lastIndex = lastInRange.rowIndex;\n var firstNodeOutOfRange = firstIndex < this.firstRow || firstIndex > this.lastRow;\n var lastNodeOutOfRange = lastIndex < this.firstRow || lastIndex > this.lastRow;\n\n if (firstNodeOutOfRange || lastNodeOutOfRange) {\n return [];\n }\n\n var result = [];\n var startIndex = firstIndex <= lastIndex ? firstIndex : lastIndex;\n var endIndex = firstIndex <= lastIndex ? lastIndex : firstIndex;\n\n for (var i = startIndex; i <= endIndex; i++) {\n result.push(this.rowNodesByIndex[i]);\n }\n\n return result;\n };\n\n ViewportRowModel.prototype.forEachNode = function (callback) {\n var _this = this;\n\n var callbackCount = 0;\n Object.keys(this.rowNodesByIndex).forEach(function (indexStr) {\n var index = parseInt(indexStr, 10);\n var rowNode = _this.rowNodesByIndex[index];\n callback(rowNode, callbackCount);\n callbackCount++;\n });\n };\n\n ViewportRowModel.prototype.setRowData = function (rowData) {\n var _this = this;\n\n _.iterateObject(rowData, function (indexStr, dataItem) {\n var index = parseInt(indexStr, 10); // we should never keep rows that we didn't specifically ask for, this\n // guarantees the contract we have with the server.\n\n if (index >= _this.firstRow && index <= _this.lastRow) {\n var rowNode = _this.rowNodesByIndex[index]; // the abnormal case is we requested a row even though the grid didn't need it\n // as a result of the paging and buffer (ie the row is off screen), in which\n // case we need to create a new node now\n\n if (_.missing(rowNode)) {\n rowNode = _this.createBlankRowNode(index);\n _this.rowNodesByIndex[index] = rowNode;\n } // now we deffo have a row node, so set in the details\n // if the grid already asked for this row (the normal case), then we would\n // of put a placeholder node in place.\n\n\n rowNode.setDataAndId(dataItem, index.toString());\n }\n });\n };\n\n ViewportRowModel.prototype.createBlankRowNode = function (rowIndex) {\n var rowNode = new RowNode(this.beans);\n rowNode.setRowHeight(this.rowHeight);\n rowNode.setRowTop(this.rowHeight * rowIndex);\n rowNode.setRowIndex(rowIndex);\n return rowNode;\n };\n\n ViewportRowModel.prototype.setRowCount = function (rowCount, keepRenderedRows) {\n if (keepRenderedRows === void 0) {\n keepRenderedRows = false;\n }\n\n if (rowCount === this.rowCount) {\n return;\n }\n\n this.rowCount = rowCount;\n var event = {\n type: Events.EVENT_MODEL_UPDATED,\n newData: false,\n newPage: false,\n keepRenderedRows: keepRenderedRows,\n animate: false\n };\n this.eventService.dispatchEvent(event);\n };\n\n ViewportRowModel.prototype.isRowPresent = function (rowNode) {\n var foundRowNode = this.getRowNode(rowNode.id);\n return !!foundRowNode;\n };\n\n __decorate$3([Autowired('rowRenderer')], ViewportRowModel.prototype, \"rowRenderer\", void 0);\n\n __decorate$3([Autowired('focusService')], ViewportRowModel.prototype, \"focusService\", void 0);\n\n __decorate$3([Autowired('beans')], ViewportRowModel.prototype, \"beans\", void 0);\n\n __decorate$3([PostConstruct], ViewportRowModel.prototype, \"init\", null);\n\n __decorate$3([PreDestroy], ViewportRowModel.prototype, \"destroyDatasource\", null);\n\n ViewportRowModel = __decorate$3([Bean('rowModel')], ViewportRowModel);\n return ViewportRowModel;\n}(BeanStub);\n\nvar ViewportRowModelModule = {\n moduleName: ModuleNames.ViewportRowModelModule,\n rowModels: {\n viewport: ViewportRowModel\n },\n dependantModules: [EnterpriseCoreModule]\n}; // For small data structs like a bounding box, objects are superior to arrays\n// in terms of performance (by 3-4% in Chrome 71, Safari 12 and by 20% in Firefox 64).\n// They are also self descriptive and harder to abuse.\n// For example, one has to do:\n// `ctx.strokeRect(bbox.x, bbox.y, bbox.width, bbox.height);`\n// rather than become enticed by the much slower:\n// `ctx.strokeRect(...bbox);`\n// https://jsperf.com/array-vs-object-create-access\n\nvar BBox =\n/** @class */\nfunction () {\n function BBox(x, y, width, height) {\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n }\n\n BBox.prototype.isValid = function () {\n return isFinite(this.x) && isFinite(this.y) && isFinite(this.width) && isFinite(this.height);\n };\n\n BBox.prototype.dilate = function (value) {\n this.x -= value;\n this.y -= value;\n this.width += value * 2;\n this.height += value * 2;\n };\n\n BBox.prototype.containsPoint = function (x, y) {\n return x >= this.x && x <= this.x + this.width && y >= this.y && y <= this.y + this.height;\n };\n\n BBox.prototype.render = function (ctx, params) {\n if (params === void 0) {\n params = BBox.noParams;\n }\n\n ctx.save();\n\n if (params.resetTransform) {\n ctx.setTransform(1, 0, 0, 1, 0, 0);\n }\n\n ctx.strokeStyle = params.strokeStyle || 'cyan';\n ctx.lineWidth = params.lineWidth || 1;\n ctx.strokeRect(this.x, this.y, this.width, this.height);\n\n if (params.label) {\n ctx.fillStyle = params.fillStyle || 'black';\n ctx.textBaseline = 'bottom';\n ctx.fillText(params.label, this.x, this.y);\n }\n\n ctx.restore();\n };\n\n BBox.noParams = {};\n return BBox;\n}();\n\nvar __read$6 = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n/**\n * As of Jan 8, 2019, Firefox still doesn't implement\n * `getTransform(): DOMMatrix;`\n * `setTransform(transform?: DOMMatrix2DInit)`\n * in the `CanvasRenderingContext2D`.\n * Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=928150\n * IE11 and Edge 44 also don't have the support.\n * Thus this class, to keep track of the current transform and\n * combine transformations.\n * Standards:\n * https://html.spec.whatwg.org/dev/canvas.html\n * https://www.w3.org/TR/geometry-1/\n */\n\n\nvar Matrix =\n/** @class */\nfunction () {\n function Matrix(elements) {\n if (elements === void 0) {\n elements = [1, 0, 0, 1, 0, 0];\n }\n\n this.elements = elements;\n }\n\n Matrix.prototype.setElements = function (elements) {\n var e = this.elements; // `this.elements = elements.slice()` is 4-5 times slower\n // (in Chrome 71 and FF 64) than manually copying elements,\n // since slicing allocates new memory.\n // The performance of passing parameters individually\n // vs as an array is about the same in both browsers, so we\n // go with a single (array of elements) parameter, because\n // `setElements(elements)` and `setElements([a, b, c, d, e, f])`\n // calls give us roughly the same performance, versus\n // `setElements(...elements)` and `setElements(a, b, c, d, e, f)`,\n // where the spread operator causes a 20-30x performance drop\n // (30x when compiled to ES5's `.apply(this, elements)`\n // 20x when used natively).\n\n e[0] = elements[0];\n e[1] = elements[1];\n e[2] = elements[2];\n e[3] = elements[3];\n e[4] = elements[4];\n e[5] = elements[5];\n return this;\n };\n\n Matrix.prototype.setIdentityElements = function () {\n var e = this.elements;\n e[0] = 1;\n e[1] = 0;\n e[2] = 0;\n e[3] = 1;\n e[4] = 0;\n e[5] = 0;\n return this;\n };\n\n Object.defineProperty(Matrix.prototype, \"identity\", {\n get: function get() {\n var e = this.elements;\n return e[0] === 1 && e[1] === 0 && e[2] === 0 && e[3] === 1 && e[4] === 0 && e[5] === 0;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Matrix.prototype, \"a\", {\n get: function get() {\n return this.elements[0];\n },\n set: function set(value) {\n this.elements[0] = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Matrix.prototype, \"b\", {\n get: function get() {\n return this.elements[1];\n },\n set: function set(value) {\n this.elements[1] = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Matrix.prototype, \"c\", {\n get: function get() {\n return this.elements[2];\n },\n set: function set(value) {\n this.elements[2] = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Matrix.prototype, \"d\", {\n get: function get() {\n return this.elements[3];\n },\n set: function set(value) {\n this.elements[3] = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Matrix.prototype, \"e\", {\n get: function get() {\n return this.elements[4];\n },\n set: function set(value) {\n this.elements[4] = value;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Matrix.prototype, \"f\", {\n get: function get() {\n return this.elements[5];\n },\n set: function set(value) {\n this.elements[5] = value;\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Performs the AxB matrix multiplication and saves the result\n * to `C`, if given, or to `A` otherwise.\n */\n\n Matrix.prototype.AxB = function (A, B, C) {\n var _a = __read$6(A, 6),\n m11 = _a[0],\n m12 = _a[1],\n m21 = _a[2],\n m22 = _a[3],\n m31 = _a[4],\n m32 = _a[5];\n\n var _b = __read$6(B, 6),\n o11 = _b[0],\n o12 = _b[1],\n o21 = _b[2],\n o22 = _b[3],\n o31 = _b[4],\n o32 = _b[5];\n\n C = C || A;\n C[0] = m11 * o11 + m21 * o12;\n C[1] = m12 * o11 + m22 * o12;\n C[2] = m11 * o21 + m21 * o22;\n C[3] = m12 * o21 + m22 * o22;\n C[4] = m11 * o31 + m21 * o32 + m31;\n C[5] = m12 * o31 + m22 * o32 + m32;\n };\n /**\n * The `other` matrix gets post-multiplied to the current matrix.\n * Returns the current matrix.\n * @param other\n */\n\n\n Matrix.prototype.multiplySelf = function (other) {\n this.AxB(this.elements, other.elements);\n return this;\n };\n /**\n * The `other` matrix gets post-multiplied to the current matrix.\n * Returns a new matrix.\n * @param other\n */\n\n\n Matrix.prototype.multiply = function (other) {\n var elements = new Array(6);\n this.AxB(this.elements, other.elements, elements);\n return new Matrix(elements);\n };\n\n Matrix.prototype.preMultiplySelf = function (other) {\n this.AxB(other.elements, this.elements, this.elements);\n return this;\n };\n /**\n * Returns the inverse of this matrix as a new matrix.\n */\n\n\n Matrix.prototype.inverse = function () {\n var _a = __read$6(this.elements, 6),\n a = _a[0],\n b = _a[1],\n c = _a[2],\n d = _a[3],\n e = _a[4],\n f = _a[5];\n\n var rD = 1 / (a * d - b * c); // reciprocal of determinant\n\n a *= rD;\n b *= rD;\n c *= rD;\n d *= rD;\n return new Matrix([d, -b, -c, a, c * f - d * e, b * e - a * f]);\n };\n /**\n * Save the inverse of this matrix to the given matrix.\n */\n\n\n Matrix.prototype.inverseTo = function (other) {\n var _a = __read$6(this.elements, 6),\n a = _a[0],\n b = _a[1],\n c = _a[2],\n d = _a[3],\n e = _a[4],\n f = _a[5];\n\n var rD = 1 / (a * d - b * c); // reciprocal of determinant\n\n a *= rD;\n b *= rD;\n c *= rD;\n d *= rD;\n other.setElements([d, -b, -c, a, c * f - d * e, b * e - a * f]);\n return this;\n };\n\n Matrix.prototype.invertSelf = function () {\n var elements = this.elements;\n\n var _a = __read$6(elements, 6),\n a = _a[0],\n b = _a[1],\n c = _a[2],\n d = _a[3],\n e = _a[4],\n f = _a[5];\n\n var rD = 1 / (a * d - b * c); // reciprocal of determinant\n\n a *= rD;\n b *= rD;\n c *= rD;\n d *= rD;\n elements[0] = d;\n elements[1] = -b;\n elements[2] = -c;\n elements[3] = a;\n elements[4] = c * f - d * e;\n elements[5] = b * e - a * f;\n return this;\n };\n\n Matrix.prototype.clone = function () {\n return new Matrix(this.elements.slice());\n };\n\n Matrix.prototype.transformPoint = function (x, y) {\n var e = this.elements;\n return {\n x: x * e[0] + y * e[2] + e[4],\n y: x * e[1] + y * e[3] + e[5]\n };\n };\n\n Matrix.prototype.transformBBox = function (bbox, radius, target) {\n if (radius === void 0) {\n radius = 0;\n }\n\n var elements = this.elements;\n var xx = elements[0];\n var xy = elements[1];\n var yx = elements[2];\n var yy = elements[3];\n var h_w = bbox.width * 0.5;\n var h_h = bbox.height * 0.5;\n var cx = bbox.x + h_w;\n var cy = bbox.y + h_h;\n var w, h;\n\n if (radius) {\n h_w -= radius;\n h_h -= radius;\n var sx = Math.sqrt(xx * xx + yx * yx);\n var sy = Math.sqrt(xy * xy + yy * yy);\n w = Math.abs(h_w * xx) + Math.abs(h_h * yx) + Math.abs(sx * radius);\n h = Math.abs(h_w * xy) + Math.abs(h_h * yy) + Math.abs(sy * radius);\n } else {\n w = Math.abs(h_w * xx) + Math.abs(h_h * yx);\n h = Math.abs(h_w * xy) + Math.abs(h_h * yy);\n }\n\n if (!target) {\n target = new BBox(0, 0, 0, 0);\n }\n\n target.x = cx * xx + cy * yx + elements[4] - w;\n target.y = cx * xy + cy * yy + elements[5] - h;\n target.width = w + w;\n target.height = h + h;\n return target;\n };\n\n Matrix.prototype.toContext = function (ctx) {\n // It's fair to say that matrix multiplications are not cheap.\n // However, updating path definitions on every frame isn't either, so\n // it may be cheaper to just translate paths. It's also fair to\n // say, that most paths will have to be re-rendered anyway, say\n // rectangle paths in a bar chart, where an animation would happen when\n // the data set changes and existing bars are morphed into new ones.\n // Or a pie chart, where old sectors are also morphed into new ones.\n // Same for the line chart. The only plausible case where translating\n // existing paths would be enough, is the scatter chart, where marker\n // icons, typically circles, stay the same size. But if circle radii\n // are bound to some data points, even circle paths would have to be\n // updated. And thus it makes sense to optimize for fewer matrix\n // transforms, where transform matrices of paths are mostly identity\n // matrices and `x`/`y`, `centerX`/`centerY` and similar properties\n // are used to define a path at specific coordinates. And only groups\n // are used to collectively apply a transform to a set of nodes.\n // If the matrix is mostly identity (95% of the time),\n // the `if (this.isIdentity)` check can make this call 3-4 times\n // faster on average: https://jsperf.com/matrix-check-first-vs-always-set\n if (this.identity) {\n return;\n }\n\n var e = this.elements;\n ctx.transform(e[0], e[1], e[2], e[3], e[4], e[5]);\n };\n\n Matrix.flyweight = function (elements) {\n if (elements) {\n if (elements instanceof Matrix) {\n Matrix.matrix.setElements(elements.elements);\n } else {\n Matrix.matrix.setElements(elements);\n }\n } else {\n Matrix.matrix.setIdentityElements();\n }\n\n return Matrix.matrix;\n };\n\n Matrix.matrix = new Matrix();\n return Matrix;\n}();\n\nfunction createId(instance) {\n var constructor = instance.constructor;\n var className = constructor.className;\n\n if (!className) {\n throw new Error(\"The \" + constructor + \" is missing the 'className' property.\");\n }\n\n return className + '-' + (constructor.id = (constructor.id || 0) + 1);\n}\n\nvar __read$5 = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar PointerEvents;\n\n(function (PointerEvents) {\n PointerEvents[PointerEvents[\"All\"] = 0] = \"All\";\n PointerEvents[PointerEvents[\"None\"] = 1] = \"None\";\n})(PointerEvents || (PointerEvents = {}));\n/**\n * Abstract scene graph node.\n * Each node can have zero or one parent and belong to zero or one scene.\n */\n\n\nvar Node =\n/** @class */\nfunction () {\n function Node() {\n /**\n * Unique node ID in the form `ClassName-NaturalNumber`.\n */\n this.id = createId(this);\n /**\n * Some number to identify this node, typically within a `Group` node.\n * Usually this will be some enum value used as a selector.\n */\n\n this.tag = NaN;\n /**\n * To simplify the type system (especially in Selections) we don't have the `Parent` node\n * (one that has children). Instead, we mimic HTML DOM, where any node can have children.\n * But we still need to distinguish regular leaf nodes from container leafs somehow.\n */\n\n this.isContainerNode = false;\n this._children = []; // Used to check for duplicate nodes.\n\n this.childSet = {}; // new Set()\n // These matrices may need to have package level visibility\n // for performance optimization purposes.\n\n this.matrix = new Matrix();\n this.inverseMatrix = new Matrix();\n this._dirtyTransform = false;\n this._scalingX = 1;\n this._scalingY = 1;\n /**\n * The center of scaling.\n * The default value of `null` means the scaling center will be\n * determined automatically, as the center of the bounding box\n * of a node.\n */\n\n this._scalingCenterX = null;\n this._scalingCenterY = null;\n this._rotationCenterX = null;\n this._rotationCenterY = null;\n /**\n * Rotation angle in radians.\n * The value is set as is. No normalization to the [-180, 180) or [0, 360)\n * interval is performed.\n */\n\n this._rotation = 0;\n this._translationX = 0;\n this._translationY = 0;\n /**\n * Each time a property of the node that effects how it renders changes\n * the `dirty` property of the node should be set to `true`. The change\n * to the `dirty` property of the node will propagate up to its parents\n * and eventually to the scene, at which point an animation frame callback\n * will be scheduled to rerender the scene and its nodes and reset the `dirty`\n * flags of all nodes and the {@link Scene._dirty | Scene} back to `false`.\n * Since changes to node properties are not rendered immediately, it's possible\n * to change as many properties on as many nodes as needed and the rendering\n * will still only happen once in the next animation frame callback.\n * The animation frame callback is only scheduled if it hasn't been already.\n */\n\n this._dirty = true;\n this._visible = true;\n this.pointerEvents = PointerEvents.All;\n }\n /**\n * This is meaningfully faster than `instanceof` and should be the preferred way\n * of checking inside loops.\n * @param node\n */\n\n\n Node.isNode = function (node) {\n return node ? node.matrix !== undefined : false;\n };\n\n Node.prototype._setScene = function (value) {\n this._scene = value;\n var children = this.children;\n var n = children.length;\n\n for (var i = 0; i < n; i++) {\n children[i]._setScene(value);\n }\n };\n\n Object.defineProperty(Node.prototype, \"scene\", {\n get: function get() {\n return this._scene;\n },\n enumerable: true,\n configurable: true\n });\n\n Node.prototype._setParent = function (value) {\n this._parent = value;\n };\n\n Object.defineProperty(Node.prototype, \"parent\", {\n get: function get() {\n return this._parent;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"children\", {\n get: function get() {\n return this._children;\n },\n enumerable: true,\n configurable: true\n });\n\n Node.prototype.countChildren = function (depth) {\n if (depth === void 0) {\n depth = Node.MAX_SAFE_INTEGER;\n }\n\n if (depth <= 0) {\n return 0;\n }\n\n var children = this.children;\n var n = children.length;\n var size = n;\n\n for (var i = 0; i < n; i++) {\n size += children[i].countChildren(depth - 1);\n }\n\n return size;\n };\n /**\n * Appends one or more new node instances to this parent.\n * If one needs to:\n * - move a child to the end of the list of children\n * - move a child from one parent to another (including parents in other scenes)\n * one should use the {@link insertBefore} method instead.\n * @param nodes A node or nodes to append.\n */\n\n\n Node.prototype.append = function (nodes) {\n // Passing a single parameter to an open-ended version of `append`\n // would be 30-35% slower than this.\n if (Node.isNode(nodes)) {\n nodes = [nodes];\n } // The function takes an array rather than having open-ended\n // arguments like `...nodes: Node[]` because the latter is\n // transpiled to a function where the `arguments` object\n // is copied to a temporary array inside a loop.\n // So an array is created either way. And if we already have\n // an array of nodes we want to add, we have to use the prohibitively\n // expensive spread operator to pass it to the function,\n // and, on top of that, the copy of the `arguments` is still made.\n\n\n var n = nodes.length;\n\n for (var i = 0; i < n; i++) {\n var node = nodes[i];\n\n if (node.parent) {\n throw new Error(node + \" already belongs to another parent: \" + node.parent + \".\");\n }\n\n if (node.scene) {\n throw new Error(node + \" already belongs a scene: \" + node.scene + \".\");\n }\n\n if (this.childSet[node.id]) {\n // Cast to `any` to avoid `Property 'name' does not exist on type 'Function'`.\n throw new Error(\"Duplicate \" + node.constructor.name + \" node: \" + node);\n }\n\n this._children.push(node);\n\n this.childSet[node.id] = true;\n\n node._setParent(this);\n\n node._setScene(this.scene);\n }\n\n this.dirty = true;\n };\n\n Node.prototype.appendChild = function (node) {\n if (node.parent) {\n throw new Error(node + \" already belongs to another parent: \" + node.parent + \".\");\n }\n\n if (node.scene) {\n throw new Error(node + \" already belongs to a scene: \" + node.scene + \".\");\n }\n\n if (this.childSet[node.id]) {\n // Cast to `any` to avoid `Property 'name' does not exist on type 'Function'`.\n throw new Error(\"Duplicate \" + node.constructor.name + \" node: \" + node);\n }\n\n this._children.push(node);\n\n this.childSet[node.id] = true;\n\n node._setParent(this);\n\n node._setScene(this.scene);\n\n this.dirty = true;\n return node;\n };\n\n Node.prototype.removeChild = function (node) {\n if (node.parent === this) {\n var i = this.children.indexOf(node);\n\n if (i >= 0) {\n this._children.splice(i, 1);\n\n delete this.childSet[node.id];\n\n node._setParent();\n\n node._setScene();\n\n this.dirty = true;\n return node;\n }\n }\n\n throw new Error(\"The node to be removed is not a child of this node.\");\n };\n /**\n * Inserts the node `node` before the existing child node `nextNode`.\n * If `nextNode` is null, insert `node` at the end of the list of children.\n * If the `node` belongs to another parent, it is first removed.\n * Returns the `node`.\n * @param node\n * @param nextNode\n */\n\n\n Node.prototype.insertBefore = function (node, nextNode) {\n var parent = node.parent;\n\n if (node.parent) {\n node.parent.removeChild(node);\n }\n\n if (nextNode && nextNode.parent === this) {\n var i = this.children.indexOf(nextNode);\n\n if (i >= 0) {\n this._children.splice(i, 0, node);\n\n this.childSet[node.id] = true;\n\n node._setParent(this);\n\n node._setScene(this.scene);\n } else {\n throw new Error(nextNode + \" has \" + parent + \" as the parent, \" + \"but is not in its list of children.\");\n }\n\n this.dirty = true;\n } else {\n this.append(node);\n }\n\n return node;\n };\n\n Object.defineProperty(Node.prototype, \"nextSibling\", {\n get: function get() {\n var parent = this.parent;\n\n if (parent) {\n var children = parent.children;\n var index = children.indexOf(this);\n\n if (index >= 0 && index <= children.length - 1) {\n return children[index + 1];\n }\n }\n },\n enumerable: true,\n configurable: true\n });\n\n Node.prototype.transformPoint = function (x, y) {\n var matrix = Matrix.flyweight(this.matrix);\n var parent = this.parent;\n\n while (parent) {\n matrix.preMultiplySelf(parent.matrix);\n parent = parent.parent;\n }\n\n return matrix.invertSelf().transformPoint(x, y);\n };\n\n Node.prototype.inverseTransformPoint = function (x, y) {\n var matrix = Matrix.flyweight(this.matrix);\n var parent = this.parent;\n\n while (parent) {\n matrix.preMultiplySelf(parent.matrix);\n parent = parent.parent;\n }\n\n return matrix.transformPoint(x, y);\n };\n\n Object.defineProperty(Node.prototype, \"dirtyTransform\", {\n get: function get() {\n return this._dirtyTransform;\n },\n set: function set(value) {\n this._dirtyTransform = value;\n\n if (value) {\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"scalingX\", {\n get: function get() {\n return this._scalingX;\n },\n set: function set(value) {\n if (this._scalingX !== value) {\n this._scalingX = value;\n this.dirtyTransform = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"scalingY\", {\n get: function get() {\n return this._scalingY;\n },\n set: function set(value) {\n if (this._scalingY !== value) {\n this._scalingY = value;\n this.dirtyTransform = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"scalingCenterX\", {\n get: function get() {\n return this._scalingCenterX;\n },\n set: function set(value) {\n if (this._scalingCenterX !== value) {\n this._scalingCenterX = value;\n this.dirtyTransform = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"scalingCenterY\", {\n get: function get() {\n return this._scalingCenterY;\n },\n set: function set(value) {\n if (this._scalingCenterY !== value) {\n this._scalingCenterY = value;\n this.dirtyTransform = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"rotationCenterX\", {\n get: function get() {\n return this._rotationCenterX;\n },\n set: function set(value) {\n if (this._rotationCenterX !== value) {\n this._rotationCenterX = value;\n this.dirtyTransform = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"rotationCenterY\", {\n get: function get() {\n return this._rotationCenterY;\n },\n set: function set(value) {\n if (this._rotationCenterY !== value) {\n this._rotationCenterY = value;\n this.dirtyTransform = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"rotation\", {\n get: function get() {\n return this._rotation;\n },\n set: function set(value) {\n if (this._rotation !== value) {\n this._rotation = value;\n this.dirtyTransform = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"rotationDeg\", {\n get: function get() {\n return this.rotation / Math.PI * 180;\n },\n\n /**\n * For performance reasons the rotation angle's internal representation\n * is in radians. Therefore, don't expect to get the same number you set.\n * Even with integer angles about a quarter of them from 0 to 359 cannot\n * be converted to radians and back without precision loss.\n * For example:\n *\n * node.rotationDeg = 11;\n * console.log(node.rotationDeg); // 10.999999999999998\n *\n * @param value Rotation angle in degrees.\n */\n set: function set(value) {\n this.rotation = value / 180 * Math.PI;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"translationX\", {\n get: function get() {\n return this._translationX;\n },\n set: function set(value) {\n if (this._translationX !== value) {\n this._translationX = value;\n this.dirtyTransform = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"translationY\", {\n get: function get() {\n return this._translationY;\n },\n set: function set(value) {\n if (this._translationY !== value) {\n this._translationY = value;\n this.dirtyTransform = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n\n Node.prototype.containsPoint = function (x, y) {\n return false;\n };\n /**\n * Hit testing method.\n * Recursively checks if the given point is inside this node or any of its children.\n * Returns the first matching node or `undefined`.\n * Nodes that render later (show on top) are hit tested first.\n * @param x\n * @param y\n */\n\n\n Node.prototype.pickNode = function (x, y) {\n if (!this.visible || this.pointerEvents === PointerEvents.None || !this.containsPoint(x, y)) {\n return;\n }\n\n var children = this.children;\n\n if (children.length) {\n // Nodes added later should be hit-tested first,\n // as they are rendered on top of the previously added nodes.\n for (var i = children.length - 1; i >= 0; i--) {\n var hit = children[i].pickNode(x, y);\n\n if (hit) {\n return hit;\n }\n }\n } else if (!this.isContainerNode) {\n // a leaf node, but not a container leaf\n return this;\n }\n };\n\n Node.prototype.computeBBox = function () {\n return;\n };\n\n Node.prototype.computeBBoxCenter = function () {\n var bbox = this.computeBBox && this.computeBBox();\n\n if (bbox) {\n return [bbox.x + bbox.width * 0.5, bbox.y + bbox.height * 0.5];\n }\n\n return [0, 0];\n };\n\n Node.prototype.computeTransformMatrix = function () {\n // TODO: transforms without center of scaling and rotation correspond directly\n // to `setAttribute('transform', 'translate(tx, ty) rotate(rDeg) scale(sx, sy)')`\n // in SVG. Our use cases will mostly require positioning elements (rects, circles)\n // within a group, rotating groups at right angles (e.g. for axis) and translating\n // groups. We shouldn't even need `scale(1, -1)` (invert vertically), since this\n // can be done using D3-like scales already by inverting the output range.\n // So for now, just assume that centers of scaling and rotation are at the origin.\n // const [bbcx, bbcy] = this.computeBBoxCenter();\n var _a = __read$5([0, 0], 2),\n bbcx = _a[0],\n bbcy = _a[1];\n\n var sx = this.scalingX;\n var sy = this.scalingY;\n var scx;\n var scy;\n\n if (sx === 1 && sy === 1) {\n scx = 0;\n scy = 0;\n } else {\n scx = this.scalingCenterX === null ? bbcx : this.scalingCenterX;\n scy = this.scalingCenterY === null ? bbcy : this.scalingCenterY;\n }\n\n var r = this.rotation;\n var cos = Math.cos(r);\n var sin = Math.sin(r);\n var rcx;\n var rcy;\n\n if (r === 0) {\n rcx = 0;\n rcy = 0;\n } else {\n rcx = this.rotationCenterX === null ? bbcx : this.rotationCenterX;\n rcy = this.rotationCenterY === null ? bbcy : this.rotationCenterY;\n }\n\n var tx = this.translationX;\n var ty = this.translationY; // The transform matrix `M` is a result of the following transformations:\n // 1) translate the center of scaling to the origin\n // 2) scale\n // 3) translate back\n // 4) translate the center of rotation to the origin\n // 5) rotate\n // 6) translate back\n // 7) translate\n // (7) (6) (5) (4) (3) (2) (1)\n // | 1 0 tx | | 1 0 rcx | | cos -sin 0 | | 1 0 -rcx | | 1 0 scx | | sx 0 0 | | 1 0 -scx |\n // M = | 0 1 ty | * | 0 1 rcy | * | sin cos 0 | * | 0 1 -rcy | * | 0 1 scy | * | 0 sy 0 | * | 0 1 -scy |\n // | 0 0 1 | | 0 0 1 | | 0 0 1 | | 0 0 1 | | 0 0 1 | | 0 0 0 | | 0 0 1 |\n // Translation after steps 1-4 above:\n\n var tx4 = scx * (1 - sx) - rcx;\n var ty4 = scy * (1 - sy) - rcy;\n this.dirtyTransform = false;\n this.matrix.setElements([cos * sx, sin * sx, -sin * sy, cos * sy, cos * tx4 - sin * ty4 + rcx + tx, sin * tx4 + cos * ty4 + rcy + ty]).inverseTo(this.inverseMatrix);\n };\n\n Object.defineProperty(Node.prototype, \"dirty\", {\n get: function get() {\n return this._dirty;\n },\n set: function set(value) {\n // TODO: check if we are already dirty (e.g. if (this._dirty !== value))\n // if we are, then all parents and the scene have been\n // notified already, and we are doing redundant work\n // (but test if this is indeed the case)\n this._dirty = value;\n\n if (value) {\n if (this.parent) {\n this.parent.dirty = true;\n } else if (this.scene) {\n this.scene.dirty = true;\n }\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"visible\", {\n get: function get() {\n return this._visible;\n },\n set: function set(value) {\n if (this._visible !== value) {\n this._visible = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Node.MAX_SAFE_INTEGER = Math.pow(2, 53) - 1; // Number.MAX_SAFE_INTEGER\n\n return Node;\n}();\n\nvar __extends$o = undefined && undefined.__extends || function () {\n var _extendStatics196 = function extendStatics(d, b) {\n _extendStatics196 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics196(d, b);\n };\n\n return function (d, b) {\n _extendStatics196(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar Group =\n/** @class */\nfunction (_super) {\n __extends$o(Group, _super);\n\n function Group() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.isContainerNode = true;\n _this._opacity = 1;\n return _this;\n }\n\n Object.defineProperty(Group.prototype, \"opacity\", {\n get: function get() {\n return this._opacity;\n },\n set: function set(value) {\n value = Math.min(1, Math.max(0, value));\n\n if (this._opacity !== value) {\n this._opacity = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n }); // We consider a group to be boundless, thus any point belongs to it.\n\n Group.prototype.containsPoint = function (x, y) {\n return true;\n };\n\n Group.prototype.computeBBox = function () {\n var left = Infinity;\n var right = -Infinity;\n var top = Infinity;\n var bottom = -Infinity;\n\n if (this.dirtyTransform) {\n this.computeTransformMatrix();\n }\n\n this.children.forEach(function (child) {\n if (!child.visible) {\n return;\n }\n\n var bbox = child.computeBBox();\n\n if (!bbox) {\n return;\n }\n\n if (!(child instanceof Group)) {\n if (child.dirtyTransform) {\n child.computeTransformMatrix();\n }\n\n var matrix = Matrix.flyweight(child.matrix);\n var parent_1 = child.parent;\n\n while (parent_1) {\n matrix.preMultiplySelf(parent_1.matrix);\n parent_1 = parent_1.parent;\n }\n\n matrix.transformBBox(bbox, 0, bbox);\n }\n\n var x = bbox.x;\n var y = bbox.y;\n\n if (x < left) {\n left = x;\n }\n\n if (y < top) {\n top = y;\n }\n\n if (x + bbox.width > right) {\n right = x + bbox.width;\n }\n\n if (y + bbox.height > bottom) {\n bottom = y + bbox.height;\n }\n });\n return new BBox(left, top, right - left, bottom - top);\n };\n\n Group.prototype.render = function (ctx) {\n // A group can have `scaling`, `rotation`, `translation` properties\n // that are applied to the canvas context before children are rendered,\n // so all children can be transformed at once.\n if (this.dirtyTransform) {\n this.computeTransformMatrix();\n }\n\n this.matrix.toContext(ctx);\n var children = this.children;\n var n = children.length;\n ctx.globalAlpha *= this.opacity;\n\n for (var i = 0; i < n; i++) {\n var child = children[i];\n\n if (child.visible) {\n ctx.save();\n child.render(ctx);\n ctx.restore();\n }\n } // debug\n // this.computeBBox().render(ctx, {\n // label: this.id,\n // resetTransform: true,\n // fillStyle: 'rgba(0, 0, 0, 0.5)'\n // });\n\n };\n\n Group.className = 'Group';\n return Group;\n}(Node);\n/**\n * Creates a new object with a `parent` as its prototype\n * and copies properties from the `child` into it.\n * @param parent\n * @param child\n */\n\n\nfunction chainObjects(parent, child) {\n var obj = Object.create(parent);\n\n for (var prop in child) {\n if (child.hasOwnProperty(prop)) {\n obj[prop] = child[prop];\n }\n }\n\n return obj;\n}\n\nvar __extends$n = undefined && undefined.__extends || function () {\n var _extendStatics197 = function extendStatics(d, b) {\n _extendStatics197 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics197(d, b);\n };\n\n return function (d, b) {\n _extendStatics197(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar Shape =\n/** @class */\nfunction (_super) {\n __extends$n(Shape, _super);\n\n function Shape() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.lastInstanceId = 0;\n _this._fillOpacity = 1;\n _this._strokeOpacity = 1;\n _this._fill = Shape.defaultStyles.fill;\n /**\n * Note that `strokeStyle = null` means invisible stroke,\n * while `lineWidth = 0` means no stroke, and sometimes this can mean different things.\n * For example, a rect shape with an invisible stroke may not align to the pixel grid\n * properly because the stroke affects the rules of alignment, and arc shapes forming\n * a pie chart will have a gap between them if they have an invisible stroke, whereas\n * there would be not gap if there was no stroke at all.\n * The preferred way of making the stroke invisible is setting the `lineWidth` to zero,\n * unless specific looks that is achieved by having an invisible stroke is desired.\n */\n\n _this._stroke = Shape.defaultStyles.stroke;\n _this._strokeWidth = Shape.defaultStyles.strokeWidth;\n _this._lineDash = Shape.defaultStyles.lineDash;\n _this._lineDashOffset = Shape.defaultStyles.lineDashOffset;\n _this._lineCap = Shape.defaultStyles.lineCap;\n _this._lineJoin = Shape.defaultStyles.lineJoin;\n _this._opacity = Shape.defaultStyles.opacity;\n\n _this.onShadowChange = function () {\n _this.dirty = true;\n };\n\n _this._fillShadow = Shape.defaultStyles.fillShadow;\n _this._strokeShadow = Shape.defaultStyles.strokeShadow;\n return _this;\n }\n /**\n * Creates a light-weight instance of the given shape (that serves as a template).\n * The created instance only stores the properites set on the instance itself\n * and the rest of the properties come via the prototype chain from the template.\n * This can greatly reduce memory usage in cases where one has many simular shapes,\n * for example, circles of different size, position and color. The exact memory usage\n * reduction will depend on the size of the template and the number of own properties\n * set on its lightweight instances, but will typically be around an order of magnitude\n * or more.\n *\n * Note: template shapes are not supposed to be part of the scene graph (they should not\n * have a parent).\n *\n * @param template\n */\n\n\n Shape.createInstance = function (template) {\n var shape = Object.create(template);\n\n shape._setParent(undefined);\n\n shape.id = template.id + '-Instance-' + String(++template.lastInstanceId);\n return shape;\n };\n /**\n * Restores the default styles introduced by this subclass.\n */\n\n\n Shape.prototype.restoreOwnStyles = function () {\n var styles = this.constructor.defaultStyles;\n var keys = Object.getOwnPropertyNames(styles); // getOwnPropertyNames is about 2.5 times faster than\n // for..in with the hasOwnProperty check and in this\n // case, where most properties are inherited, can be\n // more then an order of magnitude faster.\n\n for (var i = 0, n = keys.length; i < n; i++) {\n var key = keys[i];\n this[key] = styles[key];\n }\n };\n\n Shape.prototype.restoreAllStyles = function () {\n var styles = this.constructor.defaultStyles;\n\n for (var property in styles) {\n this[property] = styles[property];\n }\n };\n /**\n * Restores the base class default styles that have been overridden by this subclass.\n */\n\n\n Shape.prototype.restoreOverriddenStyles = function () {\n var styles = this.constructor.defaultStyles;\n var protoStyles = Object.getPrototypeOf(styles);\n\n for (var property in styles) {\n if (styles.hasOwnProperty(property) && protoStyles.hasOwnProperty(property)) {\n this[property] = styles[property];\n }\n }\n };\n\n Object.defineProperty(Shape.prototype, \"fillOpacity\", {\n get: function get() {\n return this._fillOpacity;\n },\n set: function set(value) {\n if (this._fillOpacity !== value) {\n this._fillOpacity = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Shape.prototype, \"strokeOpacity\", {\n get: function get() {\n return this._strokeOpacity;\n },\n set: function set(value) {\n if (this._strokeOpacity !== value) {\n this._strokeOpacity = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Shape.prototype, \"fill\", {\n get: function get() {\n return this._fill;\n },\n set: function set(value) {\n if (this._fill !== value) {\n this._fill = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Shape.prototype, \"stroke\", {\n get: function get() {\n return this._stroke;\n },\n set: function set(value) {\n if (this._stroke !== value) {\n this._stroke = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Shape.prototype, \"strokeWidth\", {\n get: function get() {\n return this._strokeWidth;\n },\n set: function set(value) {\n if (this._strokeWidth !== value) {\n this._strokeWidth = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Shape.prototype, \"alignment\", {\n // An offset value to align to the pixel grid.\n get: function get() {\n return Math.floor(this.strokeWidth) % 2 / 2;\n },\n enumerable: true,\n configurable: true\n }); // Returns the aligned `start` or `length` value.\n // For example: `start` could be `y` and `length` could be `height` of a rectangle.\n\n Shape.prototype.align = function (alignment, start, length) {\n if (length != undefined) {\n return Math.floor(length) + Math.floor(start % 1 + length % 1);\n }\n\n return Math.floor(start) + alignment;\n };\n\n Object.defineProperty(Shape.prototype, \"lineDash\", {\n get: function get() {\n return this._lineDash;\n },\n set: function set(value) {\n var oldValue = this._lineDash;\n\n if (oldValue !== value) {\n if (oldValue && value && oldValue.length === value.length) {\n var identical = true;\n var n = value.length;\n\n for (var i = 0; i < n; i++) {\n if (oldValue[i] !== value[i]) {\n identical = false;\n break;\n }\n }\n\n if (identical) {\n return;\n }\n }\n\n this._lineDash = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Shape.prototype, \"lineDashOffset\", {\n get: function get() {\n return this._lineDashOffset;\n },\n set: function set(value) {\n if (this._lineDashOffset !== value) {\n this._lineDashOffset = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Shape.prototype, \"lineCap\", {\n get: function get() {\n return this._lineCap;\n },\n set: function set(value) {\n if (this._lineCap !== value) {\n this._lineCap = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Shape.prototype, \"lineJoin\", {\n get: function get() {\n return this._lineJoin;\n },\n set: function set(value) {\n if (this._lineJoin !== value) {\n this._lineJoin = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Shape.prototype, \"opacity\", {\n get: function get() {\n return this._opacity;\n },\n set: function set(value) {\n value = Math.min(1, Math.max(0, value));\n\n if (this._opacity !== value) {\n this._opacity = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Shape.prototype, \"fillShadow\", {\n get: function get() {\n return this._fillShadow;\n },\n set: function set(value) {\n var oldValue = this._fillShadow;\n\n if (oldValue !== value) {\n if (oldValue) {\n oldValue.removeEventListener('change', this.onShadowChange);\n }\n\n if (value) {\n value.addEventListener('change', this.onShadowChange);\n }\n\n this._fillShadow = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Shape.prototype, \"strokeShadow\", {\n get: function get() {\n return this._strokeShadow;\n },\n set: function set(value) {\n var oldValue = this._strokeShadow;\n\n if (oldValue !== value) {\n if (oldValue) {\n oldValue.removeEventListener('change', this.onShadowChange);\n }\n\n if (value) {\n value.addEventListener('change', this.onShadowChange);\n }\n\n this._strokeShadow = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n\n Shape.prototype.fillStroke = function (ctx) {\n if (!this.scene) {\n return;\n }\n\n var pixelRatio = this.scene.canvas.pixelRatio || 1;\n var globalAlpha = ctx.globalAlpha;\n\n if (this.fill) {\n ctx.fillStyle = this.fill;\n ctx.globalAlpha = globalAlpha * this.opacity * this.fillOpacity; // The canvas context scaling (depends on the device's pixel ratio)\n // has no effect on shadows, so we have to account for the pixel ratio\n // manually here.\n\n var fillShadow = this.fillShadow;\n\n if (fillShadow && fillShadow.enabled) {\n ctx.shadowColor = fillShadow.color;\n ctx.shadowOffsetX = fillShadow.xOffset * pixelRatio;\n ctx.shadowOffsetY = fillShadow.yOffset * pixelRatio;\n ctx.shadowBlur = fillShadow.blur * pixelRatio;\n }\n\n ctx.fill();\n }\n\n ctx.shadowColor = 'rgba(0, 0, 0, 0)';\n\n if (this.stroke && this.strokeWidth) {\n ctx.strokeStyle = this.stroke;\n ctx.globalAlpha = globalAlpha * this.opacity * this.strokeOpacity;\n ctx.lineWidth = this.strokeWidth;\n\n if (this.lineDash) {\n ctx.setLineDash(this.lineDash);\n }\n\n if (this.lineDashOffset) {\n ctx.lineDashOffset = this.lineDashOffset;\n }\n\n if (this.lineCap) {\n ctx.lineCap = this.lineCap;\n }\n\n if (this.lineJoin) {\n ctx.lineJoin = this.lineJoin;\n }\n\n var strokeShadow = this.strokeShadow;\n\n if (strokeShadow && strokeShadow.enabled) {\n ctx.shadowColor = strokeShadow.color;\n ctx.shadowOffsetX = strokeShadow.xOffset * pixelRatio;\n ctx.shadowOffsetY = strokeShadow.yOffset * pixelRatio;\n ctx.shadowBlur = strokeShadow.blur * pixelRatio;\n }\n\n ctx.stroke();\n }\n };\n\n Shape.prototype.containsPoint = function (x, y) {\n return this.isPointInPath(x, y);\n };\n /**\n * Defaults for style properties. Note that properties that affect the position\n * and shape of the node are not considered style properties, for example:\n * `x`, `y`, `width`, `height`, `radius`, `rotation`, etc.\n * Can be used to reset to the original styling after some custom styling\n * has been applied (using the `restoreOwnStyles` and `restoreAllStyles` methods).\n * These static defaults are meant to be inherited by subclasses.\n */\n\n\n Shape.defaultStyles = chainObjects({}, {\n fill: 'black',\n stroke: undefined,\n strokeWidth: 0,\n lineDash: undefined,\n lineDashOffset: 0,\n lineCap: undefined,\n lineJoin: undefined,\n opacity: 1,\n fillShadow: undefined,\n strokeShadow: undefined\n });\n return Shape;\n}(Node); // @ts-ignore Suppress tsc error: Property 'sign' does not exist on type 'Math'\n\n\nvar sign = Math.sign ? Math.sign : function (x) {\n x = +x;\n\n if (x === 0 || isNaN(x)) {\n return x;\n }\n\n return x > 0 ? 1 : -1;\n};\n/**\n * Finds the roots of a parametric linear equation in `t`,\n * where `t` lies in the interval of `[0,1]`.\n */\n\nfunction linearRoot(a, b) {\n var t = -b / a;\n return a !== 0 && t >= 0 && t <= 1 ? [t] : [];\n}\n/**\n * Finds the roots of a parametric quadratic equation in `t`,\n * where `t` lies in the interval of `[0,1]`.\n */\n\n\nfunction quadraticRoots(a, b, c) {\n if (a === 0) {\n return linearRoot(b, c);\n }\n\n var D = b * b - 4 * a * c; // The polynomial's discriminant.\n\n var roots = [];\n\n if (D === 0) {\n // A single real root.\n var t = -b / (2 * a);\n\n if (t >= 0 && t <= 1) {\n roots.push(t);\n }\n } else if (D > 0) {\n // A pair of distinct real roots.\n var rD = Math.sqrt(D);\n var t1 = (-b - rD) / (2 * a);\n var t2 = (-b + rD) / (2 * a);\n\n if (t1 >= 0 && t1 <= 1) {\n roots.push(t1);\n }\n\n if (t2 >= 0 && t2 <= 1) {\n roots.push(t2);\n }\n } // else -> Complex roots.\n\n\n return roots;\n}\n/**\n * Finds the roots of a parametric cubic equation in `t`,\n * where `t` lies in the interval of `[0,1]`.\n * Returns an array of parametric intersection locations along the cubic,\n * excluding out-of-bounds intersections (before or after the end point\n * or in the imaginary plane).\n * An adaptation of http://www.particleincell.com/blog/2013/cubic-line-intersection/\n */\n\n\nfunction cubicRoots(a, b, c, d) {\n if (a === 0) {\n return quadraticRoots(b, c, d);\n }\n\n var A = b / a;\n var B = c / a;\n var C = d / a;\n var Q = (3 * B - A * A) / 9;\n var R = (9 * A * B - 27 * C - 2 * A * A * A) / 54;\n var D = Q * Q * Q + R * R; // The polynomial's discriminant.\n\n var third = 1 / 3;\n var roots = [];\n\n if (D >= 0) {\n // Complex or duplicate roots.\n var rD = Math.sqrt(D);\n var S = sign(R + rD) * Math.pow(Math.abs(R + rD), third);\n var T = sign(R - rD) * Math.pow(Math.abs(R - rD), third);\n var Im = Math.abs(Math.sqrt(3) * (S - T) / 2); // Complex part of the root pair.\n\n var t = -third * A + (S + T); // A real root.\n\n if (t >= 0 && t <= 1) {\n roots.push(t);\n }\n\n if (Im === 0) {\n var t_1 = -third * A - (S + T) / 2; // The real part of a complex root.\n\n if (t_1 >= 0 && t_1 <= 1) {\n roots.push(t_1);\n }\n }\n } else {\n // Distinct real roots.\n var theta = Math.acos(R / Math.sqrt(-Q * Q * Q));\n var thirdA = third * A;\n var twoSqrtQ = 2 * Math.sqrt(-Q);\n var t1 = twoSqrtQ * Math.cos(third * theta) - thirdA;\n var t2 = twoSqrtQ * Math.cos(third * (theta + 2 * Math.PI)) - thirdA;\n var t3 = twoSqrtQ * Math.cos(third * (theta + 4 * Math.PI)) - thirdA;\n\n if (t1 >= 0 && t1 <= 1) {\n roots.push(t1);\n }\n\n if (t2 >= 0 && t2 <= 1) {\n roots.push(t2);\n }\n\n if (t3 >= 0 && t3 <= 1) {\n roots.push(t3);\n }\n }\n\n return roots;\n}\n/**\n * Returns the intersection point for the given pair of line segments, or null,\n * if the segments are parallel or don't intersect.\n * Based on http://paulbourke.net/geometry/pointlineplane/\n */\n\n\nfunction segmentIntersection(ax1, ay1, ax2, ay2, bx1, by1, bx2, by2) {\n var d = (ax2 - ax1) * (by2 - by1) - (ay2 - ay1) * (bx2 - bx1);\n\n if (d === 0) {\n // The lines are parallel.\n return null;\n }\n\n var ua = ((bx2 - bx1) * (ay1 - by1) - (ax1 - bx1) * (by2 - by1)) / d;\n var ub = ((ax2 - ax1) * (ay1 - by1) - (ay2 - ay1) * (ax1 - bx1)) / d;\n\n if (ua >= 0 && ua <= 1 && ub >= 0 && ub <= 1) {\n return {\n x: ax1 + ua * (ax2 - ax1),\n y: ay1 + ua * (ay2 - ay1)\n };\n }\n\n return null; // The intersection point is outside either or both segments.\n}\n/**\n * Returns intersection points of the given cubic curve and the line segment.\n * Takes in x/y components of cubic control points and line segment start/end points\n * as parameters.\n */\n\n\nfunction cubicSegmentIntersections(px1, py1, px2, py2, px3, py3, px4, py4, x1, y1, x2, y2) {\n var intersections = []; // Find line equation coefficients.\n\n var A = y1 - y2;\n var B = x2 - x1;\n var C = x1 * (y2 - y1) - y1 * (x2 - x1); // Find cubic Bezier curve equation coefficients from control points.\n\n var bx = bezierCoefficients(px1, px2, px3, px4);\n var by = bezierCoefficients(py1, py2, py3, py4);\n var a = A * bx[0] + B * by[0]; // t^3\n\n var b = A * bx[1] + B * by[1]; // t^2\n\n var c = A * bx[2] + B * by[2]; // t\n\n var d = A * bx[3] + B * by[3] + C; // 1\n\n var roots = cubicRoots(a, b, c, d); // Verify that the roots are within bounds of the linear segment.\n\n for (var i = 0; i < roots.length; i++) {\n var t = roots[i];\n var tt = t * t;\n var ttt = t * tt; // Find the cartesian plane coordinates for the parametric root `t`.\n\n var x = bx[0] * ttt + bx[1] * tt + bx[2] * t + bx[3];\n var y = by[0] * ttt + by[1] * tt + by[2] * t + by[3]; // The parametric cubic roots we found are intersection points\n // with an infinite line, and so the x/y coordinates above are as well.\n // Make sure the x/y is also within the bounds of the given segment.\n\n var s = void 0;\n\n if (x1 !== x2) {\n s = (x - x1) / (x2 - x1);\n } else {\n // the line is vertical\n s = (y - y1) / (y2 - y1);\n }\n\n if (s >= 0 && s <= 1) {\n intersections.push({\n x: x,\n y: y\n });\n }\n }\n\n return intersections;\n}\n/**\n * Returns the given coordinates vector multiplied by the coefficient matrix\n * of the parametric cubic Bézier equation.\n */\n\n\nfunction bezierCoefficients(P1, P2, P3, P4) {\n return [-P1 + 3 * P2 - 3 * P3 + P4, 3 * P1 - 6 * P2 + 3 * P3, -3 * P1 + 3 * P2, P1 // | 1 0 0 0| |P4|\n ];\n}\n\nvar Path2D =\n/** @class */\nfunction () {\n function Path2D() {\n // The methods of this class will likely be called many times per animation frame,\n // and any allocation can trigger a GC cycle during animation, so we attempt\n // to minimize the number of allocations.\n this.commands = [];\n this.params = [];\n this._closedPath = false;\n }\n\n Path2D.prototype.moveTo = function (x, y) {\n if (this.xy) {\n this.xy[0] = x;\n this.xy[1] = y;\n } else {\n this.xy = [x, y];\n }\n\n this.commands.push('M');\n this.params.push(x, y);\n };\n\n Path2D.prototype.lineTo = function (x, y) {\n if (this.xy) {\n this.commands.push('L');\n this.params.push(x, y);\n this.xy[0] = x;\n this.xy[1] = y;\n } else {\n this.moveTo(x, y);\n }\n };\n\n Path2D.prototype.rect = function (x, y, width, height) {\n this.moveTo(x, y);\n this.lineTo(x + width, y);\n this.lineTo(x + width, y + height);\n this.lineTo(x, y + height);\n this.closePath();\n };\n /**\n * Adds an arc segment to the path definition.\n * https://www.w3.org/TR/SVG11/paths.html#PathDataEllipticalArcCommands\n * @param rx The major-axis radius.\n * @param ry The minor-axis radius.\n * @param rotation The x-axis rotation, expressed in radians.\n * @param fA The large arc flag. `1` to use angle > π.\n * @param fS The sweep flag. `1` for the arc that goes to `x`/`y` clockwise.\n * @param x2 The x coordinate to arc to.\n * @param y2 The y coordinate to arc to.\n */\n\n\n Path2D.prototype.arcTo = function (rx, ry, rotation, fA, fS, x2, y2) {\n // Convert from endpoint to center parametrization:\n // https://www.w3.org/TR/SVG/implnote.html#ArcImplementationNotes\n var xy = this.xy;\n\n if (!xy) {\n return;\n }\n\n if (rx < 0) {\n rx = -rx;\n }\n\n if (ry < 0) {\n ry = -ry;\n }\n\n var x1 = xy[0];\n var y1 = xy[1];\n var hdx = (x1 - x2) / 2;\n var hdy = (y1 - y2) / 2;\n var sinPhi = Math.sin(rotation);\n var cosPhi = Math.cos(rotation);\n var xp = cosPhi * hdx + sinPhi * hdy;\n var yp = -sinPhi * hdx + cosPhi * hdy;\n var ratX = xp / rx;\n var ratY = yp / ry;\n var lambda = ratX * ratX + ratY * ratY;\n var cx = (x1 + x2) / 2;\n var cy = (y1 + y2) / 2;\n var cpx = 0;\n var cpy = 0;\n\n if (lambda >= 1) {\n lambda = Math.sqrt(lambda);\n rx *= lambda;\n ry *= lambda; // me gives lambda == cpx == cpy == 0;\n } else {\n lambda = Math.sqrt(1 / lambda - 1);\n\n if (fA === fS) {\n lambda = -lambda;\n }\n\n cpx = lambda * rx * ratY;\n cpy = -lambda * ry * ratX;\n cx += cosPhi * cpx - sinPhi * cpy;\n cy += sinPhi * cpx + cosPhi * cpy;\n }\n\n var theta1 = Math.atan2((yp - cpy) / ry, (xp - cpx) / rx);\n var deltaTheta = Math.atan2((-yp - cpy) / ry, (-xp - cpx) / rx) - theta1; // if (fS) {\n // if (deltaTheta <= 0) {\n // deltaTheta += Math.PI * 2;\n // }\n // }\n // else {\n // if (deltaTheta >= 0) {\n // deltaTheta -= Math.PI * 2;\n // }\n // }\n\n this.cubicArc(cx, cy, rx, ry, rotation, theta1, theta1 + deltaTheta, 1 - fS);\n };\n /**\n * Approximates an elliptical arc with up to four cubic Bézier curves.\n * @param commands The string array to write SVG command letters to.\n * @param params The number array to write SVG command parameters (cubic control points) to.\n * @param cx The x-axis coordinate for the ellipse's center.\n * @param cy The y-axis coordinate for the ellipse's center.\n * @param rx The ellipse's major-axis radius.\n * @param ry The ellipse's minor-axis radius.\n * @param phi The rotation for this ellipse, expressed in radians.\n * @param theta1 The starting angle, measured clockwise from the positive x-axis and expressed in radians.\n * @param theta2 The ending angle, measured clockwise from the positive x-axis and expressed in radians.\n * @param anticlockwise The arc control points are always placed clockwise from `theta1` to `theta2`,\n * even when `theta1 > theta2`, unless this flag is set to `1`.\n */\n\n\n Path2D.cubicArc = function (commands, params, cx, cy, rx, ry, phi, theta1, theta2, anticlockwise) {\n if (anticlockwise) {\n var temp = theta1;\n theta1 = theta2;\n theta2 = temp;\n }\n\n var start = params.length; // See https://pomax.github.io/bezierinfo/#circles_cubic\n // Arc of unit circle (start angle = 0, end angle <= π/2) in cubic Bézier coordinates:\n // S = [1, 0]\n // C1 = [1, f]\n // C2 = [cos(θ) + f * sin(θ), sin(θ) - f * cos(θ)]\n // E = [cos(θ), sin(θ)]\n // f = 4/3 * tan(θ/4)\n\n var f90 = 0.5522847498307935; // f for θ = π/2 is 4/3 * (Math.sqrt(2) - 1)\n\n var sinTheta1 = Math.sin(theta1);\n var cosTheta1 = Math.cos(theta1);\n var sinPhi = Math.sin(phi);\n var cosPhi = Math.cos(phi);\n var rightAngle = Math.PI / 2; // Since we know how to draw an arc of a unit circle with a cubic Bézier,\n // to draw an elliptical arc with arbitrary rotation and radii we:\n // 1) rotate the Bézier coordinates that represent a circular arc by θ\n // 2) scale the circular arc separately along the x/y axes, making it elliptical\n // 3) rotate elliptical arc by φ\n // |cos(φ) -sin(φ)| |sx 0| |cos(θ) -sin(θ)| -> |xx xy|\n // |sin(φ) cos(φ)| | 0 sy| |sin(θ) cos(θ)| -> |yx yy|\n\n var xx = cosPhi * cosTheta1 * rx - sinPhi * sinTheta1 * ry;\n var yx = sinPhi * cosTheta1 * rx + cosPhi * sinTheta1 * ry;\n var xy = -cosPhi * sinTheta1 * rx - sinPhi * cosTheta1 * ry;\n var yy = -sinPhi * sinTheta1 * rx + cosPhi * cosTheta1 * ry; // TODO: what if delta between θ1 and θ2 is greater than 2π?\n // Always draw clockwise from θ1 to θ2.\n\n theta2 -= theta1;\n\n if (theta2 < 0) {\n theta2 += Math.PI * 2;\n } // Multiplying each point [x, y] by:\n // |xx xy cx| |x|\n // |yx yy cy| |y|\n // | 0 0 1| |1|\n // TODO: This move command may be redundant, if we are already at this point.\n // The coordinates of the point calculated here may differ ever so slightly\n // because of precision error.\n\n\n commands.push('M');\n params.push(xx + cx, yx + cy);\n\n while (theta2 >= rightAngle) {\n theta2 -= rightAngle;\n commands.push('C'); // Temp workaround for https://bugs.chromium.org/p/chromium/issues/detail?id=993330\n // Revert this commit when fixed ^^.\n\n var lastX = xy + cx;\n params.push(xx + xy * f90 + cx, yx + yy * f90 + cy, xx * f90 + xy + cx, yx * f90 + yy + cy, Math.abs(lastX) < 1e-8 ? 0 : lastX, yy + cy); // Prepend π/2 rotation matrix.\n // |xx xy| | 0 1| -> | xy -xx|\n // |yx yy| |-1 0| -> | yy -yx|\n // [xx, yx, xy, yy] = [xy, yy, -xx, -yx];\n // Compared to swapping with a temp variable, destructuring is:\n // - 10% faster in Chrome 70\n // - 99% slower in Firefox 63\n // Temp variable solution is 45% faster in FF than Chrome.\n // https://jsperf.com/multi-swap\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1165569\n\n var temp = xx;\n xx = xy;\n xy = -temp;\n temp = yx;\n yx = yy;\n yy = -temp;\n }\n\n if (theta2) {\n var f = 4 / 3 * Math.tan(theta2 / 4);\n var sinPhi2 = Math.sin(theta2);\n var cosPhi2 = Math.cos(theta2);\n var C2x = cosPhi2 + f * sinPhi2;\n var C2y = sinPhi2 - f * cosPhi2;\n commands.push('C'); // Temp workaround for https://bugs.chromium.org/p/chromium/issues/detail?id=993330\n // Revert this commit when fixed ^^.\n\n var lastX = xx * cosPhi2 + xy * sinPhi2 + cx;\n params.push(xx + xy * f + cx, yx + yy * f + cy, xx * C2x + xy * C2y + cx, yx * C2x + yy * C2y + cy, Math.abs(lastX) < 1e-8 ? 0 : lastX, yx * cosPhi2 + yy * sinPhi2 + cy);\n }\n\n if (anticlockwise) {\n for (var i = start, j = params.length - 2; i < j; i += 2, j -= 2) {\n var temp = params[i];\n params[i] = params[j];\n params[j] = temp;\n temp = params[i + 1];\n params[i + 1] = params[j + 1];\n params[j + 1] = temp;\n }\n }\n };\n\n Path2D.prototype.cubicArc = function (cx, cy, rx, ry, phi, theta1, theta2, anticlockwise) {\n var commands = this.commands;\n var params = this.params;\n var start = commands.length;\n Path2D.cubicArc(commands, params, cx, cy, rx, ry, phi, theta1, theta2, anticlockwise);\n var x = params[params.length - 2];\n var y = params[params.length - 1];\n\n if (this.xy) {\n commands[start] = 'L';\n this.xy[0] = x;\n this.xy[1] = y;\n } else {\n this.xy = [x, y];\n }\n };\n /**\n * Returns the `[x, y]` coordinates of the curve at `t`.\n * @param points `(n + 1) * 2` control point coordinates for a Bézier curve of n-th order.\n * @param t\n */\n\n\n Path2D.prototype.deCasteljau = function (points, t) {\n var n = points.length;\n\n if (n < 2 || n % 2 === 1) {\n throw new Error('Fewer than two points or not an even count.');\n } else if (n === 2 || t === 0) {\n return points.slice(0, 2);\n } else if (t === 1) {\n return points.slice(-2);\n } else {\n var newPoints = [];\n var last = n - 2;\n\n for (var i = 0; i < last; i += 2) {\n newPoints.push((1 - t) * points[i] + t * points[i + 2], // x\n (1 - t) * points[i + 1] + t * points[i + 3] // y\n );\n }\n\n return this.deCasteljau(newPoints, t);\n }\n };\n /**\n * Approximates the given curve using `n` line segments.\n * @param points `(n + 1) * 2` control point coordinates for a Bézier curve of n-th order.\n * @param n\n */\n\n\n Path2D.prototype.approximateCurve = function (points, n) {\n var xy = this.deCasteljau(points, 0);\n this.moveTo(xy[0], xy[1]);\n var step = 1 / n;\n\n for (var t = step; t <= 1; t += step) {\n var xy_1 = this.deCasteljau(points, t);\n this.lineTo(xy_1[0], xy_1[1]);\n }\n };\n /**\n * Adds a quadratic curve segment to the path definition.\n * Note: the given quadratic segment is converted and stored as a cubic one.\n * @param cx x-component of the curve's control point\n * @param cy y-component of the curve's control point\n * @param x x-component of the end point\n * @param y y-component of the end point\n */\n\n\n Path2D.prototype.quadraticCurveTo = function (cx, cy, x, y) {\n if (!this.xy) {\n this.moveTo(cx, cy);\n } // See https://pomax.github.io/bezierinfo/#reordering\n\n\n this.cubicCurveTo((this.xy[0] + 2 * cx) / 3, (this.xy[1] + 2 * cy) / 3, // 1/3 start + 2/3 control\n (2 * cx + x) / 3, (2 * cy + y) / 3, // 2/3 control + 1/3 end\n x, y);\n };\n\n Path2D.prototype.cubicCurveTo = function (cx1, cy1, cx2, cy2, x, y) {\n if (!this.xy) {\n this.moveTo(cx1, cy1);\n }\n\n this.commands.push('C');\n this.params.push(cx1, cy1, cx2, cy2, x, y);\n this.xy[0] = x;\n this.xy[1] = y;\n };\n\n Object.defineProperty(Path2D.prototype, \"closedPath\", {\n get: function get() {\n return this._closedPath;\n },\n enumerable: true,\n configurable: true\n });\n\n Path2D.prototype.closePath = function () {\n if (this.xy) {\n this.xy = undefined;\n this.commands.push('Z');\n this._closedPath = true;\n }\n };\n\n Path2D.prototype.clear = function () {\n this.commands.length = 0;\n this.params.length = 0;\n this.xy = undefined;\n this._closedPath = false;\n };\n\n Path2D.prototype.isPointInPath = function (x, y) {\n var commands = this.commands;\n var params = this.params;\n var cn = commands.length; // Hit testing using ray casting method, where the ray's origin is some point\n // outside the path. In this case, an offscreen point that is remote enough, so that\n // even if the path itself is large and is partially offscreen, the ray's origin\n // will likely be outside the path anyway. To test if the given point is inside the\n // path or not, we cast a ray from the origin to the given point and check the number\n // of intersections of this segment with the path. If the number of intersections is\n // even, then the ray both entered and exited the path an equal number of times,\n // therefore the point is outside the path, and inside the path, if the number of\n // intersections is odd. Since the path is compound, we check if the ray segment\n // intersects with each of the path's segments, which can be either a line segment\n // (one or no intersection points) or a Bézier curve segment (up to 3 intersection\n // points).\n\n var ox = -10000;\n var oy = -10000; // the starting point of the current path\n\n var sx = NaN;\n var sy = NaN; // the previous point of the current path\n\n var px = 0;\n var py = 0;\n var intersectionCount = 0;\n\n for (var ci = 0, pi = 0; ci < cn; ci++) {\n switch (commands[ci]) {\n case 'M':\n if (!isNaN(sx)) {\n if (segmentIntersection(sx, sy, px, py, ox, oy, x, y)) {\n intersectionCount++;\n }\n }\n\n sx = px = params[pi++];\n sy = py = params[pi++];\n break;\n\n case 'L':\n if (segmentIntersection(px, py, px = params[pi++], py = params[pi++], ox, oy, x, y)) {\n intersectionCount++;\n }\n\n break;\n\n case 'C':\n intersectionCount += cubicSegmentIntersections(px, py, params[pi++], params[pi++], params[pi++], params[pi++], px = params[pi++], py = params[pi++], ox, oy, x, y).length;\n break;\n\n case 'Z':\n if (!isNaN(sx)) {\n if (segmentIntersection(sx, sy, px, py, ox, oy, x, y)) {\n intersectionCount++;\n }\n }\n\n break;\n }\n }\n\n return intersectionCount % 2 === 1;\n };\n\n Path2D.fromString = function (value) {\n var path = new Path2D();\n path.setFromString(value);\n return path;\n };\n /**\n * Split the SVG path at command letters,\n * then extract the command letter and parameters from each substring.\n * @param value\n */\n\n\n Path2D.parseSvgPath = function (value) {\n return value.trim().split(Path2D.splitCommandsRe).map(function (part) {\n var strParams = part.match(Path2D.matchParamsRe);\n return {\n command: part.substr(0, 1),\n params: strParams ? strParams.map(parseFloat) : []\n };\n });\n };\n\n Path2D.prettifySvgPath = function (value) {\n return Path2D.parseSvgPath(value).map(function (d) {\n return d.command + d.params.join(',');\n }).join('\\n');\n };\n /**\n * See https://www.w3.org/TR/SVG11/paths.html\n * @param value\n */\n\n\n Path2D.prototype.setFromString = function (value) {\n var _this = this;\n\n this.clear();\n var parts = Path2D.parseSvgPath(value); // Current point.\n\n var x;\n var y; // Last control point. Used to calculate the reflection point\n // for `S`, `s`, `T`, `t` commands.\n\n var cpx;\n var cpy;\n var lastCommand;\n\n function checkQuadraticCP() {\n if (!lastCommand.match(Path2D.quadraticCommandRe)) {\n cpx = x;\n cpy = y;\n }\n }\n\n function checkCubicCP() {\n if (!lastCommand.match(Path2D.cubicCommandRe)) {\n cpx = x;\n cpy = y;\n }\n } // But that will make compiler complain about x/y, cpx/cpy\n // being used without being set first.\n\n\n parts.forEach(function (part) {\n var p = part.params;\n var n = p.length;\n var i = 0;\n\n switch (part.command) {\n case 'M':\n _this.moveTo(x = p[i++], y = p[i++]);\n\n while (i < n) {\n _this.lineTo(x = p[i++], y = p[i++]);\n }\n\n break;\n\n case 'm':\n _this.moveTo(x += p[i++], y += p[i++]);\n\n while (i < n) {\n _this.lineTo(x += p[i++], y += p[i++]);\n }\n\n break;\n\n case 'L':\n while (i < n) {\n _this.lineTo(x = p[i++], y = p[i++]);\n }\n\n break;\n\n case 'l':\n while (i < n) {\n _this.lineTo(x += p[i++], y += p[i++]);\n }\n\n break;\n\n case 'C':\n while (i < n) {\n _this.cubicCurveTo(p[i++], p[i++], cpx = p[i++], cpy = p[i++], x = p[i++], y = p[i++]);\n }\n\n break;\n\n case 'c':\n while (i < n) {\n _this.cubicCurveTo(x + p[i++], y + p[i++], cpx = x + p[i++], cpy = y + p[i++], x += p[i++], y += p[i++]);\n }\n\n break;\n\n case 'S':\n checkCubicCP();\n\n while (i < n) {\n _this.cubicCurveTo(x + x - cpx, y + y - cpy, cpx = p[i++], cpy = p[i++], x = p[i++], y = p[i++]);\n }\n\n break;\n\n case 's':\n checkCubicCP();\n\n while (i < n) {\n _this.cubicCurveTo(x + x - cpx, y + y - cpy, cpx = x + p[i++], cpy = y + p[i++], x += p[i++], y += p[i++]);\n }\n\n break;\n\n case 'Q':\n while (i < n) {\n _this.quadraticCurveTo(cpx = p[i++], cpy = p[i++], x = p[i++], y = p[i++]);\n }\n\n break;\n\n case 'q':\n while (i < n) {\n _this.quadraticCurveTo(cpx = x + p[i++], cpy = y + p[i++], x += p[i++], y += p[i++]);\n }\n\n break;\n\n case 'T':\n checkQuadraticCP();\n\n while (i < n) {\n _this.quadraticCurveTo(cpx = x + x - cpx, cpy = y + y - cpy, x = p[i++], y = p[i++]);\n }\n\n break;\n\n case 't':\n checkQuadraticCP();\n\n while (i < n) {\n _this.quadraticCurveTo(cpx = x + x - cpx, cpy = y + y - cpy, x += p[i++], y += p[i++]);\n }\n\n break;\n\n case 'A':\n while (i < n) {\n _this.arcTo(p[i++], p[i++], p[i++] * Math.PI / 180, p[i++], p[i++], x = p[i++], y = p[i++]);\n }\n\n break;\n\n case 'a':\n while (i < n) {\n _this.arcTo(p[i++], p[i++], p[i++] * Math.PI / 180, p[i++], p[i++], x += p[i++], y += p[i++]);\n }\n\n break;\n\n case 'Z':\n case 'z':\n _this.closePath();\n\n break;\n\n case 'H':\n while (i < n) {\n _this.lineTo(x = p[i++], y);\n }\n\n break;\n\n case 'h':\n while (i < n) {\n _this.lineTo(x += p[i++], y);\n }\n\n break;\n\n case 'V':\n while (i < n) {\n _this.lineTo(x, y = p[i++]);\n }\n\n break;\n\n case 'v':\n while (i < n) {\n _this.lineTo(x, y += p[i++]);\n }\n\n break;\n }\n\n lastCommand = part.command;\n });\n };\n\n Path2D.prototype.toString = function () {\n var c = this.commands;\n var p = this.params;\n var cn = c.length;\n var out = [];\n\n for (var ci = 0, pi = 0; ci < cn; ci++) {\n switch (c[ci]) {\n case 'M':\n out.push('M' + p[pi++] + ',' + p[pi++]);\n break;\n\n case 'L':\n out.push('L' + p[pi++] + ',' + p[pi++]);\n break;\n\n case 'C':\n out.push('C' + p[pi++] + ',' + p[pi++] + ' ' + p[pi++] + ',' + p[pi++] + ' ' + p[pi++] + ',' + p[pi++]);\n break;\n\n case 'Z':\n out.push('Z');\n break;\n }\n }\n\n return out.join('');\n };\n\n Path2D.prototype.toPrettyString = function () {\n return Path2D.prettifySvgPath(this.toString());\n };\n\n Path2D.prototype.toSvg = function () {\n return Path2D.xmlDeclaration + \"\\n\\n \\n\";\n };\n\n Path2D.prototype.toDebugSvg = function () {\n var d = Path2D.prettifySvgPath(this.toString());\n return Path2D.xmlDeclaration + \"\\n\\n \\n\";\n };\n /**\n * Returns an array of sub-paths of this Path,\n * where each sub-path is represented exclusively by cubic segments.\n */\n\n\n Path2D.prototype.toCubicPaths = function () {\n // Each sub-path is an array of `(n * 3 + 1) * 2` numbers,\n // where `n` is the number of segments.\n var paths = [];\n var params = this.params; // current path\n\n var path; // the starting point of the current path\n\n var sx;\n var sy; // the previous point of the current path\n\n var px;\n var py;\n var i = 0; // current parameter\n\n this.commands.forEach(function (command) {\n switch (command) {\n case 'M':\n path = [sx = px = params[i++], sy = py = params[i++]];\n paths.push(path);\n break;\n\n case 'L':\n var x = params[i++];\n var y = params[i++]; // Place control points along the line `a + (b - a) * t`\n // at t = 1/3 and 2/3:\n\n path.push((px + px + x) / 3, (py + py + y) / 3, (px + x + x) / 3, (py + y + y) / 3, px = x, py = y);\n break;\n\n case 'C':\n path.push(params[i++], params[i++], params[i++], params[i++], px = params[i++], py = params[i++]);\n break;\n\n case 'Z':\n path.push((px + px + sx) / 3, (py + py + sy) / 3, (px + sx + sx) / 3, (py + sy + sy) / 3, px = sx, py = sy);\n break;\n }\n });\n return paths;\n };\n\n Path2D.cubicPathToString = function (path) {\n var n = path.length;\n\n if (!(n % 2 === 0 && (n / 2 - 1) / 2 >= 1)) {\n throw new Error('Invalid path.');\n }\n\n return 'M' + path.slice(0, 2).join(',') + 'C' + path.slice(2).join(',');\n };\n\n Path2D.splitCommandsRe = /(?=[AaCcHhLlMmQqSsTtVvZz])/g;\n Path2D.matchParamsRe = /-?[0-9]*\\.?\\d+/g;\n Path2D.quadraticCommandRe = /[QqTt]/;\n Path2D.cubicCommandRe = /[CcSs]/;\n Path2D.xmlDeclaration = '';\n Path2D.xmlns = 'http://www.w3.org/2000/svg';\n return Path2D;\n}();\n\nvar __extends$m = undefined && undefined.__extends || function () {\n var _extendStatics198 = function extendStatics(d, b) {\n _extendStatics198 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics198(d, b);\n };\n\n return function (d, b) {\n _extendStatics198(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar Path =\n/** @class */\nfunction (_super) {\n __extends$m(Path, _super);\n\n function Path() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n /**\n * Declare a path to retain for later rendering and hit testing\n * using custom Path2D class. Think of it as a TypeScript version\n * of the native Path2D (with some differences) that works in all browsers.\n */\n\n\n _this.path = new Path2D();\n /**\n * The path only has to be updated when certain attributes change.\n * For example, if transform attributes (such as `translationX`)\n * are changed, we don't have to update the path. The `dirtyPath` flag\n * is how we keep track if the path has to be updated or not.\n */\n\n _this._dirtyPath = true;\n /**\n * Path definition in SVG path syntax:\n * https://www.w3.org/TR/SVG11/paths.html#DAttribute\n */\n\n _this._svgPath = '';\n return _this;\n }\n\n Object.defineProperty(Path.prototype, \"dirtyPath\", {\n get: function get() {\n return this._dirtyPath;\n },\n set: function set(value) {\n if (this._dirtyPath !== value) {\n this._dirtyPath = value;\n\n if (value) {\n this.dirty = true;\n }\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Path.prototype, \"svgPath\", {\n get: function get() {\n return this._svgPath;\n },\n set: function set(value) {\n if (this._svgPath !== value) {\n this._svgPath = value;\n this.path.setFromString(value);\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n\n Path.prototype.isPointInPath = function (x, y) {\n var point = this.transformPoint(x, y);\n return this.path.closedPath && this.path.isPointInPath(point.x, point.y);\n };\n\n Path.prototype.isPointInStroke = function (x, y) {\n return false;\n };\n\n Path.prototype.updatePath = function () {};\n\n Path.prototype.render = function (ctx) {\n var scene = this.scene;\n\n if (this.dirtyTransform) {\n this.computeTransformMatrix();\n } // if (scene.debug.renderBoundingBoxes) {\n // const bbox = this.computeBBox();\n // if (bbox) {\n // this.matrix.transformBBox(bbox).render(ctx);\n // }\n // }\n\n\n this.matrix.toContext(ctx);\n\n if (this.dirtyPath) {\n this.updatePath();\n this.dirtyPath = false;\n }\n\n scene.appendPath(this.path);\n this.fillStroke(ctx);\n this.dirty = false;\n };\n\n Path.className = 'Path';\n return Path;\n}(Shape);\n\nvar __extends$l = undefined && undefined.__extends || function () {\n var _extendStatics199 = function extendStatics(d, b) {\n _extendStatics199 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics199(d, b);\n };\n\n return function (d, b) {\n _extendStatics199(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar Line =\n/** @class */\nfunction (_super) {\n __extends$l(Line, _super);\n\n function Line() {\n var _this = _super.call(this) || this;\n\n _this._x1 = 0;\n _this._y1 = 0;\n _this._x2 = 0;\n _this._y2 = 0;\n\n _this.restoreOwnStyles();\n\n return _this;\n }\n\n Object.defineProperty(Line.prototype, \"x1\", {\n get: function get() {\n // TODO: Investigate getter performance further in the context\n // of the scene graph.\n // In isolated benchmarks using a getter has the same\n // performance as a direct property access in Firefox 64.\n // But in Chrome 71 the getter is 60% slower than direct access.\n // Direct read is 4.5+ times slower in Chrome than it is in Firefox.\n // Property access and direct read have the same performance\n // in Safari 12, which is 2+ times faster than Firefox at this.\n // https://jsperf.com/es5-getters-setters-versus-getter-setter-methods/18\n // This is a know Chrome issue. They say it's not a regression, since\n // the behavior is observed since M60, but jsperf.com history shows the\n // 10x slowdown happened between Chrome 48 and Chrome 57.\n // https://bugs.chromium.org/p/chromium/issues/detail?id=908743\n return this._x1;\n },\n set: function set(value) {\n if (this._x1 !== value) {\n this._x1 = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Line.prototype, \"y1\", {\n get: function get() {\n return this._y1;\n },\n set: function set(value) {\n if (this._y1 !== value) {\n this._y1 = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Line.prototype, \"x2\", {\n get: function get() {\n return this._x2;\n },\n set: function set(value) {\n if (this._x2 !== value) {\n this._x2 = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Line.prototype, \"y2\", {\n get: function get() {\n return this._y2;\n },\n set: function set(value) {\n if (this._y2 !== value) {\n this._y2 = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n\n Line.prototype.computeBBox = function () {\n return new BBox(this.x1, this.y1, this.x2 - this.x1, this.y2 - this.y1);\n };\n\n Line.prototype.isPointInPath = function (x, y) {\n return false;\n };\n\n Line.prototype.isPointInStroke = function (x, y) {\n return false;\n };\n\n Line.prototype.render = function (ctx) {\n if (this.dirtyTransform) {\n this.computeTransformMatrix();\n }\n\n this.matrix.toContext(ctx);\n var x1 = this.x1;\n var y1 = this.y1;\n var x2 = this.x2;\n var y2 = this.y2; // Align to the pixel grid if the line is strictly vertical\n // or horizontal (but not both, i.e. a dot).\n\n if (x1 === x2) {\n var x = Math.round(x1) + Math.floor(this.strokeWidth) % 2 / 2;\n x1 = x;\n x2 = x;\n } else if (y1 === y2) {\n var y = Math.round(y1) + Math.floor(this.strokeWidth) % 2 / 2;\n y1 = y;\n y2 = y;\n }\n\n ctx.beginPath();\n ctx.moveTo(x1, y1);\n ctx.lineTo(x2, y2);\n this.fillStroke(ctx);\n this.dirty = false;\n };\n\n Line.className = 'Line';\n Line.defaultStyles = chainObjects(Shape.defaultStyles, {\n fill: undefined,\n strokeWidth: 1\n });\n return Line;\n}(Shape);\n\nvar __read$4 = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n/**\n * Maps a discrete domain to a continuous numeric range.\n * See https://github.com/d3/d3-scale#band-scales for more info.\n */\n\n\nvar BandScale =\n/** @class */\nfunction () {\n function BandScale() {\n this.type = 'band';\n /**\n * Maps datum to its index in the {@link domain} array.\n * Used to check for duplicate datums (not allowed).\n */\n\n this.index = new Map();\n /**\n * The output range values for datum at each index.\n */\n\n this.ordinalRange = [];\n /**\n * Contains unique datums only. Since `{}` is used in place of `Map`\n * for IE11 compatibility, the datums are converted `toString` before\n * the uniqueness check.\n */\n\n this._domain = [];\n this._range = [0, 1];\n this._bandwidth = 1;\n /**\n * The ratio of the range that is reserved for space between bands.\n */\n\n this._paddingInner = 0;\n /**\n * The ratio of the range that is reserved for space before the first\n * and after the last band.\n */\n\n this._paddingOuter = 0;\n this._round = false;\n /**\n * How the leftover range is distributed.\n * `0.5` - equal distribution of space before the first and after the last band,\n * with bands effectively centered within the range.\n */\n\n this._align = 0.5;\n }\n\n Object.defineProperty(BandScale.prototype, \"domain\", {\n get: function get() {\n return this._domain;\n },\n set: function set(values) {\n var domain = this._domain;\n domain.length = 0;\n this.index = new Map();\n var index = this.index; // In case one wants to have duplicate domain values, for example, two 'Italy' categories,\n // one should use objects rather than strings for domain values like so:\n // { toString: () => 'Italy' }\n // { toString: () => 'Italy' }\n\n values.forEach(function (value) {\n if (index.get(value) === undefined) {\n index.set(value, domain.push(value) - 1);\n }\n });\n this.rescale();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BandScale.prototype, \"range\", {\n get: function get() {\n return this._range;\n },\n set: function set(values) {\n this._range[0] = values[0];\n this._range[1] = values[1];\n this.rescale();\n },\n enumerable: true,\n configurable: true\n });\n\n BandScale.prototype.ticks = function () {\n return this._domain;\n };\n\n BandScale.prototype.convert = function (d) {\n var i = this.index.get(d);\n\n if (i === undefined) {\n return NaN;\n }\n\n var r = this.ordinalRange[i];\n\n if (r === undefined) {\n return NaN;\n }\n\n return r;\n };\n\n Object.defineProperty(BandScale.prototype, \"bandwidth\", {\n get: function get() {\n return this._bandwidth;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BandScale.prototype, \"padding\", {\n get: function get() {\n return this._paddingInner;\n },\n set: function set(value) {\n value = Math.max(0, Math.min(1, value));\n this._paddingInner = value;\n this._paddingOuter = value;\n this.rescale();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BandScale.prototype, \"paddingInner\", {\n get: function get() {\n return this._paddingInner;\n },\n set: function set(value) {\n this._paddingInner = Math.max(0, Math.min(1, value)); // [0, 1]\n\n this.rescale();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BandScale.prototype, \"paddingOuter\", {\n get: function get() {\n return this._paddingOuter;\n },\n set: function set(value) {\n this._paddingOuter = Math.max(0, Math.min(1, value)); // [0, 1]\n\n this.rescale();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BandScale.prototype, \"round\", {\n get: function get() {\n return this._round;\n },\n set: function set(value) {\n this._round = value;\n this.rescale();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(BandScale.prototype, \"align\", {\n get: function get() {\n return this._align;\n },\n set: function set(value) {\n this._align = Math.max(0, Math.min(1, value)); // [0, 1]\n\n this.rescale();\n },\n enumerable: true,\n configurable: true\n });\n\n BandScale.prototype.rescale = function () {\n var _a;\n\n var n = this._domain.length;\n\n if (!n) {\n return;\n }\n\n var _b = __read$4(this._range, 2),\n a = _b[0],\n b = _b[1];\n\n var reversed = b < a;\n\n if (reversed) {\n _a = __read$4([b, a], 2), a = _a[0], b = _a[1];\n }\n\n var step = (b - a) / Math.max(1, n - this._paddingInner + this._paddingOuter * 2);\n\n if (this._round) {\n step = Math.floor(step);\n }\n\n a += (b - a - step * (n - this._paddingInner)) * this._align;\n this._bandwidth = step * (1 - this._paddingInner);\n\n if (this._round) {\n a = Math.round(a);\n this._bandwidth = Math.round(this._bandwidth);\n }\n\n var values = [];\n\n for (var i = 0; i < n; i++) {\n values.push(a + step * i);\n }\n\n this.ordinalRange = reversed ? values.reverse() : values;\n };\n\n return BandScale;\n}();\n\nvar EnterNode =\n/** @class */\nfunction () {\n function EnterNode(parent, datum) {\n this.next = null;\n this.scene = parent.scene;\n this.parent = parent;\n this.datum = datum;\n }\n\n EnterNode.prototype.appendChild = function (node) {\n // This doesn't work without the `strict: true` in the `tsconfig.json`,\n // so we must have two `if` checks below, instead of this single one.\n // if (this.next && !Node.isNode(this.next)) {\n // throw new Error(`${this.next} is not a Node.`);\n // }\n if (this.next === null) {\n return this.parent.insertBefore(node, null);\n }\n\n if (!Node.isNode(this.next)) {\n throw new Error(this.next + \" is not a Node.\");\n }\n\n return this.parent.insertBefore(node, this.next);\n };\n\n EnterNode.prototype.insertBefore = function (node, nextNode) {\n return this.parent.insertBefore(node, nextNode);\n };\n\n return EnterNode;\n}();\n/**\n * G - type of the selected node(s).\n * GDatum - type of the datum of the selected node(s).\n * P - type of the parent node(s).\n * PDatum - type of the datum of the parent node(s).\n */\n\n\nvar Selection =\n/** @class */\nfunction () {\n function Selection(groups, parents) {\n this.groups = groups;\n this.parents = parents;\n }\n\n Selection.select = function (node) {\n return new Selection([[typeof node === 'function' ? node() : node]], [undefined]);\n };\n\n Selection.selectAll = function (nodes) {\n return new Selection([nodes == null ? [] : nodes], [undefined]);\n };\n /**\n * Creates new nodes, appends them to the nodes of this selection and returns them\n * as a new selection. The created nodes inherit the datums and the parents of the nodes\n * they replace.\n * @param Class The constructor function to use to create the new nodes.\n */\n\n\n Selection.prototype.append = function (Class) {\n return this.select(function (node) {\n return node.appendChild(new Class());\n });\n };\n /**\n * Same as the {@link append}, but accepts a custom creator function with the\n * {@link NodeSelector} signature rather than a constructor function.\n * @param creator\n */\n\n\n Selection.prototype.appendFn = function (creator) {\n return this.select(function (node, data, index, group) {\n return node.appendChild(creator(node, data, index, group));\n });\n };\n /**\n * Runs the given selector that returns a single node for every node in each group.\n * The original nodes are then replaced by the nodes returned by the selector\n * and returned as a new selection.\n * The selected nodes inherit the datums and the parents of the original nodes.\n */\n\n\n Selection.prototype.select = function (selector) {\n var groups = this.groups;\n var numGroups = groups.length;\n var subgroups = [];\n\n for (var j = 0; j < numGroups; j++) {\n var group = groups[j];\n var groupSize = group.length;\n var subgroup = subgroups[j] = new Array(groupSize);\n\n for (var i = 0; i < groupSize; i++) {\n var node = group[i];\n\n if (node) {\n var subnode = selector(node, node.datum, i, group);\n\n if (subnode) {\n subnode.datum = node.datum;\n }\n\n subgroup[i] = subnode;\n } // else this can be a group of the `enter` selection,\n // for example, with no nodes at the i-th position,\n // only nodes at the end of the group\n\n }\n }\n\n return new Selection(subgroups, this.parents);\n };\n /**\n * Same as {@link select}, but uses the given {@param Class} (constructor) as a selector.\n * @param Class The constructor function to use to find matching nodes.\n */\n\n\n Selection.prototype.selectByClass = function (Class) {\n return this.select(function (node) {\n if (Node.isNode(node)) {\n var children = node.children;\n var n = children.length;\n\n for (var i = 0; i < n; i++) {\n var child = children[i];\n\n if (child instanceof Class) {\n return child;\n }\n }\n }\n });\n };\n\n Selection.prototype.selectByTag = function (tag) {\n return this.select(function (node) {\n if (Node.isNode(node)) {\n var children = node.children;\n var n = children.length;\n\n for (var i = 0; i < n; i++) {\n var child = children[i];\n\n if (child.tag === tag) {\n return child;\n }\n }\n }\n });\n };\n\n Selection.prototype.selectAllByClass = function (Class) {\n return this.selectAll(function (node) {\n var nodes = [];\n\n if (Node.isNode(node)) {\n var children = node.children;\n var n = children.length;\n\n for (var i = 0; i < n; i++) {\n var child = children[i];\n\n if (child instanceof Class) {\n nodes.push(child);\n }\n }\n }\n\n return nodes;\n });\n };\n\n Selection.prototype.selectAllByTag = function (tag) {\n return this.selectAll(function (node) {\n var nodes = [];\n\n if (Node.isNode(node)) {\n var children = node.children;\n var n = children.length;\n\n for (var i = 0; i < n; i++) {\n var child = children[i];\n\n if (child.tag === tag) {\n nodes.push(child);\n }\n }\n }\n\n return nodes;\n });\n };\n\n Selection.prototype.selectNone = function () {\n return [];\n };\n /**\n * Runs the given selector that returns a group of nodes for every node in each group.\n * The original nodes are then replaced by the groups of nodes returned by the selector\n * and returned as a new selection. The original nodes become the parent nodes for each\n * group in the new selection. The selected nodes do not inherit the datums of the original nodes.\n * If called without any parameters, creates a new selection with an empty group for each\n * node in this selection.\n */\n\n\n Selection.prototype.selectAll = function (selectorAll) {\n if (!selectorAll) {\n selectorAll = this.selectNone;\n } // Each subgroup is populated with the selector (run on each group node) results.\n\n\n var subgroups = []; // In the new selection that we return, subgroups become groups,\n // and group nodes become parents.\n\n var parents = [];\n var groups = this.groups;\n var groupCount = groups.length;\n\n for (var j = 0; j < groupCount; j++) {\n var group = groups[j];\n var groupLength = group.length;\n\n for (var i = 0; i < groupLength; i++) {\n var node = group[i];\n\n if (node) {\n subgroups.push(selectorAll(node, node.datum, i, group));\n parents.push(node);\n }\n }\n }\n\n return new Selection(subgroups, parents);\n };\n /**\n * Runs the given callback for every node in this selection and returns this selection.\n * @param cb\n */\n\n\n Selection.prototype.each = function (cb) {\n var groups = this.groups;\n var numGroups = groups.length;\n\n for (var j = 0; j < numGroups; j++) {\n var group = groups[j];\n var groupSize = group.length;\n\n for (var i = 0; i < groupSize; i++) {\n var node = group[i];\n\n if (node) {\n cb(node, node.datum, i, group);\n }\n }\n }\n\n return this;\n };\n\n Selection.prototype.remove = function () {\n return this.each(function (node) {\n if (Node.isNode(node)) {\n var parent_1 = node.parent;\n\n if (parent_1) {\n parent_1.removeChild(node);\n }\n }\n });\n };\n\n Selection.prototype.merge = function (other) {\n var groups0 = this.groups;\n var groups1 = other.groups;\n var m0 = groups0.length;\n var m1 = groups1.length;\n var m = Math.min(m0, m1);\n var merges = new Array(m0);\n var j = 0;\n\n for (; j < m; j++) {\n var group0 = groups0[j];\n var group1 = groups1[j];\n var n = group0.length;\n var merge = merges[j] = new Array(n);\n\n for (var i = 0; i < n; i++) {\n var node = group0[i] || group1[i];\n merge[i] = node || undefined;\n }\n }\n\n for (; j < m0; j++) {\n merges[j] = groups0[j];\n }\n\n return new Selection(merges, this.parents);\n };\n /**\n * Return the first non-null element in this selection.\n * If the selection is empty, returns null.\n */\n\n\n Selection.prototype.node = function () {\n var groups = this.groups;\n var numGroups = groups.length;\n\n for (var j = 0; j < numGroups; j++) {\n var group = groups[j];\n var groupSize = group.length;\n\n for (var i = 0; i < groupSize; i++) {\n var node = group[i];\n\n if (node) {\n return node;\n }\n }\n }\n\n return null;\n };\n\n Selection.prototype.attr = function (name, value) {\n this.each(function (node) {\n node[name] = value;\n });\n return this;\n };\n\n Selection.prototype.attrFn = function (name, value) {\n this.each(function (node, datum, index, group) {\n node[name] = value(node, datum, index, group);\n });\n return this;\n };\n /**\n * Invokes the given function once, passing in this selection.\n * Returns this selection. Facilitates method chaining.\n * @param cb\n */\n\n\n Selection.prototype.call = function (cb) {\n cb(this);\n return this;\n };\n\n Object.defineProperty(Selection.prototype, \"size\", {\n /**\n * Returns the total number of nodes in this selection.\n */\n get: function get() {\n var size = 0;\n this.each(function () {\n return size++;\n });\n return size;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Selection.prototype, \"data\", {\n /**\n * Returns the array of data for the selected elements.\n */\n get: function get() {\n var data = [];\n this.each(function (_, datum) {\n return data.push(datum);\n });\n return data;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Selection.prototype, \"enter\", {\n get: function get() {\n return new Selection(this.enterGroups ? this.enterGroups : [[]], this.parents);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Selection.prototype, \"exit\", {\n get: function get() {\n return new Selection(this.exitGroups ? this.exitGroups : [[]], this.parents);\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Binds the given value to each selected node and returns this selection\n * with its {@link GDatum} type changed to the type of the given value.\n * This method doesn't compute a join and doesn't affect indexes or the enter and exit selections.\n * This method can also be used to clear bound data.\n * @param value\n */\n\n Selection.prototype.setDatum = function (value) {\n return this.each(function (node) {\n node.datum = value;\n });\n };\n\n Object.defineProperty(Selection.prototype, \"datum\", {\n /**\n * Returns the bound datum for the first non-null element in the selection.\n * This is generally useful only if you know the selection contains exactly one element.\n */\n get: function get() {\n var node = this.node();\n return node ? node.datum : null;\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Binds the specified array of values with the selected nodes, returning a new selection\n * that represents the _update_ selection: the nodes successfully bound to the values.\n * Also defines the {@link enter} and {@link exit} selections on the returned selection,\n * which can be used to add or remove the nodes to correspond to the new data.\n * The `values` is an array of values of a particular type, or a function that returns\n * an array of values for each group.\n * When values are assigned to the nodes, they are stored in the {@link Node.datum} property.\n * @param values\n * @param key\n */\n\n Selection.prototype.setData = function (values, key) {\n if (typeof values !== 'function') {\n var data_1 = values;\n\n values = function values() {\n return data_1;\n };\n }\n\n var groups = this.groups;\n var parents = this.parents;\n var numGroups = groups.length;\n var updateGroups = new Array(numGroups);\n var enterGroups = new Array(numGroups);\n var exitGroups = new Array(numGroups);\n\n for (var j = 0; j < numGroups; j++) {\n var group = groups[j];\n var parent_2 = parents[j];\n\n if (!parent_2) {\n throw new Error(\"Group #\" + j + \" has no parent: \" + group);\n }\n\n var groupSize = group.length;\n var data = values(parent_2, parent_2.datum, j, parents);\n var dataSize = data.length;\n var enterGroup = enterGroups[j] = new Array(dataSize);\n var updateGroup = updateGroups[j] = new Array(dataSize);\n var exitGroup = exitGroups[j] = new Array(groupSize);\n\n if (key) {\n this.bindKey(parent_2, group, enterGroup, updateGroup, exitGroup, data, key);\n } else {\n this.bindIndex(parent_2, group, enterGroup, updateGroup, exitGroup, data);\n } // Now connect the enter nodes to their following update node, such that\n // appendChild can insert the materialized enter node before this node,\n // rather than at the end of the parent node.\n\n\n for (var i0 = 0, i1 = 0; i0 < dataSize; i0++) {\n var previous = enterGroup[i0];\n\n if (previous) {\n if (i0 >= i1) {\n i1 = i0 + 1;\n }\n\n var next = void 0;\n\n while (!(next = updateGroup[i1]) && i1 < dataSize) {\n i1++;\n }\n\n previous.next = next || null;\n }\n }\n }\n\n var result = new Selection(updateGroups, parents);\n result.enterGroups = enterGroups;\n result.exitGroups = exitGroups;\n return result;\n };\n\n Selection.prototype.bindIndex = function (parent, group, enter, update, exit, data) {\n var groupSize = group.length;\n var dataSize = data.length;\n var i = 0;\n\n for (; i < dataSize; i++) {\n var node = group[i];\n\n if (node) {\n node.datum = data[i];\n update[i] = node;\n } else {\n // more datums than group nodes\n enter[i] = new EnterNode(parent, data[i]);\n }\n } // more group nodes than datums\n\n\n for (; i < groupSize; i++) {\n var node = group[i];\n\n if (node) {\n exit[i] = node;\n }\n }\n };\n\n Selection.prototype.bindKey = function (parent, group, enter, update, exit, data, key) {\n var groupSize = group.length;\n var dataSize = data.length;\n var keyValues = new Array(groupSize);\n var nodeByKeyValue = {}; // Compute the key for each node.\n // If multiple nodes have the same key, the duplicates are added to exit.\n\n for (var i = 0; i < groupSize; i++) {\n var node = group[i];\n\n if (node) {\n var keyValue = keyValues[i] = Selection.keyPrefix + key(node, node.datum, i, group);\n\n if (keyValue in nodeByKeyValue) {\n exit[i] = node;\n } else {\n nodeByKeyValue[keyValue] = node;\n }\n }\n } // Compute the key for each datum.\n // If there is a node associated with this key, join and add it to update.\n // If there is not (or the key is a duplicate), add it to enter.\n\n\n for (var i = 0; i < dataSize; i++) {\n var keyValue = Selection.keyPrefix + key(parent, data[i], i, data);\n var node = nodeByKeyValue[keyValue];\n\n if (node) {\n update[i] = node;\n node.datum = data[i];\n nodeByKeyValue[keyValue] = undefined;\n } else {\n enter[i] = new EnterNode(parent, data[i]);\n }\n } // Add any remaining nodes that were not bound to data to exit.\n\n\n for (var i = 0; i < groupSize; i++) {\n var node = group[i];\n\n if (node && nodeByKeyValue[keyValues[i]] === node) {\n exit[i] = node;\n }\n }\n };\n\n Selection.keyPrefix = '$'; // Protect against keys like '__proto__'.\n\n return Selection;\n}();\n/**\n * Wraps the native Canvas element and overrides its CanvasRenderingContext2D to\n * provide resolution independent rendering based on `window.devicePixelRatio`.\n */\n\n\nvar HdpiCanvas =\n/** @class */\nfunction () {\n // The width/height attributes of the Canvas element default to\n // 300/150 according to w3.org.\n function HdpiCanvas(document, width, height) {\n if (document === void 0) {\n document = window.document;\n }\n\n if (width === void 0) {\n width = 600;\n }\n\n if (height === void 0) {\n height = 300;\n }\n\n this._container = undefined; // `NaN` is deliberate here, so that overrides are always applied\n // and the `resetTransform` inside the `resize` method works in IE11.\n\n this._pixelRatio = NaN;\n this._width = 100;\n this._height = 100;\n this.document = document;\n this.element = document.createElement('canvas');\n this.context = this.element.getContext('2d');\n this.element.style.userSelect = 'none';\n this.element.style.display = 'block';\n this.setPixelRatio();\n this.resize(width, height);\n }\n\n Object.defineProperty(HdpiCanvas.prototype, \"container\", {\n get: function get() {\n return this._container;\n },\n set: function set(value) {\n if (this._container !== value) {\n this.remove();\n\n if (value) {\n value.appendChild(this.element);\n }\n\n this._container = value;\n }\n },\n enumerable: true,\n configurable: true\n });\n\n HdpiCanvas.prototype.remove = function () {\n var parentNode = this.element.parentNode;\n\n if (parentNode != null) {\n parentNode.removeChild(this.element);\n }\n };\n\n HdpiCanvas.prototype.destroy = function () {\n this.element.remove();\n this._canvas = undefined;\n Object.freeze(this);\n };\n\n HdpiCanvas.prototype.clear = function () {\n this.context.save();\n this.context.setTransform(1, 0, 0, 1, 0, 0);\n this.context.clearRect(0, 0, this.element.width, this.element.height);\n this.context.restore();\n };\n\n HdpiCanvas.prototype.toImage = function () {\n var img = this.document.createElement('img');\n img.src = this.getDataURL();\n return img;\n };\n\n HdpiCanvas.prototype.getDataURL = function (type) {\n return this.element.toDataURL(type);\n };\n /**\n * @param fileName The name of the file upon save. The `.png` extension is going to be added automatically.\n */\n\n\n HdpiCanvas.prototype.download = function (fileName) {\n fileName = ((fileName || '').trim() || 'image') + '.png'; // Chart images saved as JPEG are a few times larger at 50% quality than PNG images,\n // so we don't support saving to JPEG.\n\n var type = 'image/png';\n var dataUrl = this.getDataURL(type);\n var document = this.document;\n var a = document.createElement('a');\n a.href = dataUrl;\n a.download = fileName;\n a.style.display = 'none';\n document.body.appendChild(a); // required for the `click` to work in Firefox\n\n a.click();\n document.body.removeChild(a);\n };\n\n Object.defineProperty(HdpiCanvas.prototype, \"pixelRatio\", {\n get: function get() {\n return this._pixelRatio;\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Changes the pixel ratio of the Canvas element to the given value,\n * or uses the window.devicePixelRatio (default), then resizes the Canvas\n * element accordingly (default).\n */\n\n HdpiCanvas.prototype.setPixelRatio = function (ratio) {\n var pixelRatio = ratio || window.devicePixelRatio;\n\n if (pixelRatio === this.pixelRatio) {\n return;\n }\n\n HdpiCanvas.overrideScale(this.context, pixelRatio);\n this._pixelRatio = pixelRatio;\n this.resize(this.width, this.height);\n };\n\n Object.defineProperty(HdpiCanvas.prototype, \"pixelated\", {\n get: function get() {\n return this.element.style.imageRendering === 'pixelated';\n },\n set: function set(value) {\n this.element.style.imageRendering = value ? 'pixelated' : 'auto';\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(HdpiCanvas.prototype, \"width\", {\n get: function get() {\n return this._width;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(HdpiCanvas.prototype, \"height\", {\n get: function get() {\n return this._height;\n },\n enumerable: true,\n configurable: true\n });\n\n HdpiCanvas.prototype.resize = function (width, height) {\n if (!(width > 0 && height > 0)) {\n return;\n }\n\n var _a = this,\n element = _a.element,\n context = _a.context,\n pixelRatio = _a.pixelRatio;\n\n element.width = Math.round(width * pixelRatio);\n element.height = Math.round(height * pixelRatio);\n element.style.width = width + 'px';\n element.style.height = height + 'px';\n context.resetTransform();\n this._width = width;\n this._height = height;\n };\n\n Object.defineProperty(HdpiCanvas, \"textMeasuringContext\", {\n get: function get() {\n if (this._textMeasuringContext) {\n return this._textMeasuringContext;\n }\n\n var canvas = document.createElement('canvas');\n this._textMeasuringContext = canvas.getContext('2d');\n return this._textMeasuringContext;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(HdpiCanvas, \"svgText\", {\n get: function get() {\n if (this._svgText) {\n return this._svgText;\n }\n\n var xmlns = 'http://www.w3.org/2000/svg';\n var svg = document.createElementNS(xmlns, 'svg');\n svg.setAttribute('width', '100');\n svg.setAttribute('height', '100'); // Add a descriptive class name in case someone sees this SVG element\n // in devtools and wonders about its purpose:\n\n if (svg.classList) {\n svg.classList.add('text-measuring-svg');\n } else {\n svg.setAttribute('class', 'text-measuring-svg');\n }\n\n svg.style.position = 'absolute';\n svg.style.top = '-1000px';\n svg.style.visibility = 'hidden';\n var svgText = document.createElementNS(xmlns, 'text');\n svgText.setAttribute('x', '0');\n svgText.setAttribute('y', '30');\n svgText.setAttribute('text', 'black');\n svg.appendChild(svgText);\n document.body.appendChild(svg);\n this._svgText = svgText;\n return svgText;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(HdpiCanvas, \"has\", {\n get: function get() {\n if (this._has) {\n return this._has;\n }\n\n var isChrome = navigator.userAgent.indexOf('Chrome') > -1;\n var isFirefox = navigator.userAgent.indexOf('Firefox') > -1;\n var isSafari = !isChrome && navigator.userAgent.indexOf('Safari') > -1;\n this._has = Object.freeze({\n textMetrics: this.textMeasuringContext.measureText('test').actualBoundingBoxDescent !== undefined // Firefox implemented advanced TextMetrics object in v74:\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1102584\n // but it's buggy, so we'll keed using the SVG for text measurement in Firefox for now.\n && !isFirefox && !isSafari,\n getTransform: this.textMeasuringContext.getTransform !== undefined\n });\n return this._has;\n },\n enumerable: true,\n configurable: true\n });\n\n HdpiCanvas.measureText = function (text, font, textBaseline, textAlign) {\n var ctx = this.textMeasuringContext;\n ctx.font = font;\n ctx.textBaseline = textBaseline;\n ctx.textAlign = textAlign;\n return ctx.measureText(text);\n };\n /**\n * Returns the width and height of the measured text.\n * @param text The single-line text to measure.\n * @param font The font shorthand string.\n */\n\n\n HdpiCanvas.getTextSize = function (text, font) {\n if (this.has.textMetrics) {\n var ctx = this.textMeasuringContext;\n ctx.font = font;\n var metrics = ctx.measureText(text);\n return {\n width: metrics.width,\n height: metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent\n };\n } else {\n return this.measureSvgText(text, font);\n }\n };\n\n HdpiCanvas.measureSvgText = function (text, font) {\n var cache = this.textSizeCache;\n var fontCache = cache[font]; // Note: consider not caching the size of numeric strings.\n // For example: if (isNaN(+text)) { // skip\n\n if (fontCache) {\n var size_1 = fontCache[text];\n\n if (size_1) {\n return size_1;\n }\n } else {\n cache[font] = {};\n }\n\n var svgText = this.svgText;\n svgText.style.font = font;\n svgText.textContent = text; // `getBBox` returns an instance of `SVGRect` with the same `width` and `height`\n // measurements as `DOMRect` instance returned by the `getBoundingClientRect`.\n // But the `SVGRect` instance has half the properties of the `DOMRect`,\n // so we use the `getBBox` method.\n\n var bbox = svgText.getBBox();\n var size = {\n width: bbox.width,\n height: bbox.height\n };\n cache[font][text] = size;\n return size;\n };\n\n HdpiCanvas.overrideScale = function (ctx, scale) {\n var depth = 0;\n var overrides = {\n save: function save() {\n this.$save();\n depth++;\n },\n restore: function restore() {\n if (depth > 0) {\n this.$restore();\n depth--;\n }\n },\n setTransform: function setTransform(a, b, c, d, e, f) {\n this.$setTransform(a * scale, b * scale, c * scale, d * scale, e * scale, f * scale);\n },\n resetTransform: function resetTransform() {\n // As of Jan 8, 2019, `resetTransform` is still an \"experimental technology\",\n // and doesn't work in IE11 and Edge 44.\n this.$setTransform(scale, 0, 0, scale, 0, 0);\n this.save();\n depth = 0; // The scale above will be impossible to restore,\n // because we override the `ctx.restore` above and\n // check `depth` there.\n }\n };\n\n for (var name_1 in overrides) {\n if (overrides.hasOwnProperty(name_1)) {\n // Save native methods under prefixed names,\n // if this hasn't been done by the previous overrides already.\n if (!ctx['$' + name_1]) {\n ctx['$' + name_1] = ctx[name_1];\n } // Replace native methods with overrides,\n // or previous overrides with the new ones.\n\n\n ctx[name_1] = overrides[name_1];\n }\n }\n };\n\n HdpiCanvas.textSizeCache = {};\n return HdpiCanvas;\n}();\n\nvar __read$3 = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread = undefined && undefined.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read$3(arguments[i]));\n }\n\n return ar;\n};\n\nvar Scene =\n/** @class */\nfunction () {\n // As a rule of thumb, constructors with no parameters are preferred.\n // A few exceptions are:\n // - we absolutely need to know something at construction time (document)\n // - knowing something at construction time meaningfully improves performance (width, height)\n function Scene(document, width, height) {\n var _this = this;\n\n if (document === void 0) {\n document = window.document;\n }\n\n this.id = createId(this);\n this._dirty = false;\n this.animationFrameId = 0;\n this._root = null;\n this.debug = {\n renderFrameIndex: false,\n renderBoundingBoxes: false\n };\n this._frameIndex = 0;\n\n this.render = function () {\n var _a;\n\n var _b = _this,\n canvas = _b.canvas,\n ctx = _b.ctx,\n root = _b.root,\n pendingSize = _b.pendingSize;\n _this.animationFrameId = 0;\n\n if (pendingSize) {\n (_a = _this.canvas).resize.apply(_a, __spread(pendingSize));\n\n _this.pendingSize = undefined;\n }\n\n if (root && !root.visible) {\n _this.dirty = false;\n return;\n } // start with a blank canvas, clear previous drawing\n\n\n canvas.clear();\n\n if (root) {\n ctx.save();\n\n if (root.visible) {\n root.render(ctx);\n }\n\n ctx.restore();\n }\n\n _this._frameIndex++;\n\n if (_this.debug.renderFrameIndex) {\n ctx.fillStyle = 'white';\n ctx.fillRect(0, 0, 40, 15);\n ctx.fillStyle = 'black';\n ctx.fillText(_this.frameIndex.toString(), 2, 10);\n }\n\n _this.dirty = false;\n };\n\n this.canvas = new HdpiCanvas(document, width, height);\n this.ctx = this.canvas.context;\n }\n\n Object.defineProperty(Scene.prototype, \"container\", {\n get: function get() {\n return this.canvas.container;\n },\n set: function set(value) {\n this.canvas.container = value;\n },\n enumerable: true,\n configurable: true\n });\n\n Scene.prototype.download = function (fileName) {\n this.canvas.download(fileName);\n };\n\n Scene.prototype.getDataURL = function (type) {\n return this.canvas.getDataURL(type);\n };\n\n Object.defineProperty(Scene.prototype, \"width\", {\n get: function get() {\n return this.pendingSize ? this.pendingSize[0] : this.canvas.width;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Scene.prototype, \"height\", {\n get: function get() {\n return this.pendingSize ? this.pendingSize[1] : this.canvas.height;\n },\n enumerable: true,\n configurable: true\n });\n\n Scene.prototype.resize = function (width, height) {\n width = Math.round(width);\n height = Math.round(height);\n\n if (width === this.width && height === this.height) {\n return;\n }\n\n this.pendingSize = [width, height];\n this.dirty = true;\n };\n\n Object.defineProperty(Scene.prototype, \"dirty\", {\n get: function get() {\n return this._dirty;\n },\n set: function set(dirty) {\n if (dirty && !this._dirty) {\n this.animationFrameId = requestAnimationFrame(this.render);\n }\n\n this._dirty = dirty;\n },\n enumerable: true,\n configurable: true\n });\n\n Scene.prototype.cancelRender = function () {\n if (this.animationFrameId) {\n cancelAnimationFrame(this.animationFrameId);\n this.animationFrameId = 0;\n this._dirty = false;\n }\n };\n\n Object.defineProperty(Scene.prototype, \"root\", {\n get: function get() {\n return this._root;\n },\n set: function set(node) {\n if (node === this._root) {\n return;\n }\n\n if (this._root) {\n this._root._setScene();\n }\n\n this._root = node;\n\n if (node) {\n // If `node` is the root node of another scene ...\n if (node.parent === null && node.scene && node.scene !== this) {\n node.scene.root = null;\n }\n\n node._setScene(this);\n }\n\n this.dirty = true;\n },\n enumerable: true,\n configurable: true\n });\n\n Scene.prototype.appendPath = function (path) {\n var ctx = this.ctx;\n var commands = path.commands;\n var params = path.params;\n var n = commands.length;\n var j = 0;\n ctx.beginPath();\n\n for (var i = 0; i < n; i++) {\n switch (commands[i]) {\n case 'M':\n ctx.moveTo(params[j++], params[j++]);\n break;\n\n case 'L':\n ctx.lineTo(params[j++], params[j++]);\n break;\n\n case 'C':\n ctx.bezierCurveTo(params[j++], params[j++], params[j++], params[j++], params[j++], params[j++]);\n break;\n\n case 'Z':\n ctx.closePath();\n break;\n }\n }\n };\n\n Object.defineProperty(Scene.prototype, \"frameIndex\", {\n get: function get() {\n return this._frameIndex;\n },\n enumerable: true,\n configurable: true\n });\n Scene.className = 'Scene';\n return Scene;\n}();\n\nvar __assign$1 = undefined && undefined.__assign || function () {\n __assign$1 = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign$1.apply(this, arguments);\n};\n\nvar Observable =\n/** @class */\nfunction () {\n function Observable() {\n // Note that these maps can't be specified generically, so they are kept untyped.\n // Some methods in this class only need generics in their signatures, the generics inside the methods\n // are just for clarity. The generics in signatures allow for static type checking of user provided\n // listeners and for type inference, so that the users wouldn't have to specify the type of parameters\n // of their inline lambdas.\n this.allPropertyListeners = new Map(); // property name => property change listener => scopes\n\n this.allEventListeners = new Map(); // event type => event listener => scopes\n }\n\n Observable.prototype.addPropertyListener = function (name, listener, scope) {\n if (scope === void 0) {\n scope = this;\n }\n\n var allPropertyListeners = this.allPropertyListeners;\n var propertyListeners = allPropertyListeners.get(name);\n\n if (!propertyListeners) {\n propertyListeners = new Map();\n allPropertyListeners.set(name, propertyListeners);\n }\n\n if (!propertyListeners.has(listener)) {\n var scopes_1 = new Set();\n propertyListeners.set(listener, scopes_1);\n }\n\n var scopes = propertyListeners.get(listener);\n\n if (scopes) {\n scopes.add(scope);\n }\n };\n\n Observable.prototype.removePropertyListener = function (name, listener, scope) {\n if (scope === void 0) {\n scope = this;\n }\n\n var allPropertyListeners = this.allPropertyListeners;\n var propertyListeners = allPropertyListeners.get(name);\n\n if (propertyListeners) {\n if (listener) {\n var scopes = propertyListeners.get(listener);\n\n if (scopes) {\n scopes.delete(scope);\n\n if (!scopes.size) {\n propertyListeners.delete(listener);\n }\n }\n } else {\n propertyListeners.clear();\n }\n }\n };\n\n Observable.prototype.notifyPropertyListeners = function (name, oldValue, value) {\n var _this = this;\n\n var allPropertyListeners = this.allPropertyListeners;\n var propertyListeners = allPropertyListeners.get(name);\n\n if (propertyListeners) {\n propertyListeners.forEach(function (scopes, listener) {\n scopes.forEach(function (scope) {\n return listener.call(scope, {\n type: name,\n source: _this,\n value: value,\n oldValue: oldValue\n });\n });\n });\n }\n };\n\n Observable.prototype.addEventListener = function (type, listener, scope) {\n if (scope === void 0) {\n scope = this;\n }\n\n var allEventListeners = this.allEventListeners;\n var eventListeners = allEventListeners.get(type);\n\n if (!eventListeners) {\n eventListeners = new Map();\n allEventListeners.set(type, eventListeners);\n }\n\n if (!eventListeners.has(listener)) {\n var scopes_2 = new Set();\n eventListeners.set(listener, scopes_2);\n }\n\n var scopes = eventListeners.get(listener);\n\n if (scopes) {\n scopes.add(scope);\n }\n };\n\n Observable.prototype.removeEventListener = function (type, listener, scope) {\n if (scope === void 0) {\n scope = this;\n }\n\n var allEventListeners = this.allEventListeners;\n var eventListeners = allEventListeners.get(type);\n\n if (eventListeners) {\n if (listener) {\n var scopes = eventListeners.get(listener);\n\n if (scopes) {\n scopes.delete(scope);\n\n if (!scopes.size) {\n eventListeners.delete(listener);\n }\n }\n } else {\n eventListeners.clear();\n }\n }\n };\n\n Observable.prototype.notifyEventListeners = function (types) {\n var _this = this;\n\n var allEventListeners = this.allEventListeners;\n types.forEach(function (type) {\n var listeners = allEventListeners.get(type);\n\n if (listeners) {\n listeners.forEach(function (scopes, listener) {\n scopes.forEach(function (scope) {\n return listener.call(scope, {\n type: type,\n source: _this\n });\n });\n });\n }\n });\n }; // 'source' is added automatically and is always the object this method belongs to.\n\n\n Observable.prototype.fireEvent = function (event) {\n var _this = this;\n\n var listeners = this.allEventListeners.get(event.type);\n\n if (listeners) {\n listeners.forEach(function (scopes, listener) {\n scopes.forEach(function (scope) {\n return listener.call(scope, __assign$1(__assign$1({}, event), {\n source: _this\n }));\n });\n });\n }\n };\n\n Observable.privateKeyPrefix = '_';\n return Observable;\n}();\n\nfunction reactive() {\n var events = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n events[_i] = arguments[_i];\n }\n\n var debug = events.indexOf('debugger') >= 0;\n return function (target, key) {\n // `target` is either a constructor (static member) or prototype (instance member)\n var privateKey = Observable.privateKeyPrefix + key;\n var privateKeyEvents = privateKey + 'Events';\n\n if (!target[key]) {\n if (events) {\n target[privateKeyEvents] = events;\n }\n\n Object.defineProperty(target, key, {\n set: function set(value) {\n var oldValue = this[privateKey]; // This is a way to stop inside the setter by adding the special\n // 'debugger' event to a reactive property, for example:\n // @reactive('layoutChange', 'debugger') title?: Caption;\n\n if (debug) {\n // DO NOT REMOVE\n debugger;\n }\n\n if (value !== oldValue || typeof value === 'object' && value !== null) {\n this[privateKey] = value;\n this.notifyPropertyListeners(key, oldValue, value);\n var events_1 = this[privateKeyEvents];\n\n if (events_1) {\n this.notifyEventListeners(events_1);\n }\n }\n },\n get: function get() {\n return this[privateKey];\n },\n enumerable: true,\n configurable: true\n });\n }\n };\n}\n\nvar Padding =\n/** @class */\nfunction () {\n function Padding(top, right, bottom, left) {\n if (top === void 0) {\n top = 0;\n }\n\n if (right === void 0) {\n right = top;\n }\n\n if (bottom === void 0) {\n bottom = top;\n }\n\n if (left === void 0) {\n left = right;\n }\n\n this.top = top;\n this.right = right;\n this.bottom = bottom;\n this.left = left;\n }\n\n Padding.prototype.clear = function () {\n this.top = this.right = this.bottom = this.left = 0;\n };\n\n return Padding;\n}();\n\nvar defaultTooltipCss = \"\\n.ag-sparkline-tooltip-wrapper {\\n position: absolute;\\n user-select: none;\\n pointer-events: none;\\n}\\n\\n.ag-sparkline-tooltip {\\n position: relative;\\n font: 12px arial,sans-serif;\\n border-radius: 2px;\\n box-shadow: 0 1px 3px rgb(0 0 0 / 20%), 0 1px 1px rgb(0 0 0 / 14%);\\n line-height: 1.7em;\\n overflow: hidden;\\n white-space: nowrap;\\n z-index: 99999;\\n background-color: rgb(255, 255, 255);\\n color: rgba(0,0,0, 0.67);\\n}\\n\\n.ag-sparkline-tooltip-content {\\n padding: 0 7px;\\n}\\n\\n.ag-sparkline-tooltip-title {\\n padding-left: 7px;\\n}\\n\\n.ag-sparkline-tooltip-wrapper-hidden {\\n top: -10000px !important;\\n}\\n\\n.ag-sparkline-wrapper {\\n box-sizing: border-box;\\n overflow: hidden;\\n}\\n\"; // Simplified version of https://github.com/plotly/fast-isnumeric\n// that doesn't treat number strings with leading/trailing whitespace as numbers.\n\nfunction isNumber(value) {\n if (typeof value !== 'number') {\n return false;\n }\n\n return Number.isFinite(value);\n}\n\nfunction isNumberObject(value) {\n return !!value && value.hasOwnProperty('valueOf') && isNumber(value.valueOf());\n}\n\nfunction isNumeric(value) {\n return isNumber(value) || isNumberObject(value);\n}\n\nfunction isDate(value) {\n return value instanceof Date && !isNaN(+value);\n}\n\nfunction isString(value) {\n return typeof value === 'string';\n}\n\nfunction isStringObject(value) {\n return !!value && value.hasOwnProperty('toString') && isString(value.toString());\n}\n\nfunction isContinuous(value) {\n return isNumeric(value) || isDate(value);\n}\n\nvar constant$1 = function constant$1(x) {\n return function () {\n return x;\n };\n};\n\nfunction interpolateNumber(a, b) {\n a = +a;\n b = +b;\n return function (t) {\n return a * (1 - t) + b * t;\n };\n}\n\nfunction date(a, b) {\n var date = new Date();\n var msA = +a;\n var msB = +b;\n return function (t) {\n date.setTime(msA * (1 - t) + msB * t);\n return date;\n };\n}\n\nfunction array(a, b) {\n var nb = b ? b.length : 0;\n var na = a ? Math.min(nb, a.length) : 0;\n var x = new Array(na);\n var c = new Array(nb);\n var i;\n\n for (i = 0; i < na; ++i) {\n x[i] = interpolateValue(a[i], b[i]);\n }\n\n for (; i < nb; ++i) {\n c[i] = b[i];\n }\n\n return function (t) {\n for (i = 0; i < na; ++i) {\n c[i] = x[i](t);\n }\n\n return c;\n };\n}\n\nfunction object(a, b) {\n var i = {};\n var c = {};\n var k;\n\n if (a === null || typeof a !== 'object') {\n a = {};\n }\n\n if (b === null || typeof b !== 'object') {\n b = {};\n }\n\n for (k in b) {\n if (k in a) {\n i[k] = interpolateValue(a[k], b[k]);\n } else {\n c[k] = b[k];\n }\n }\n\n return function (t) {\n for (k in i) {\n c[k] = i[k](t);\n }\n\n return c;\n };\n}\n\nvar __read$2 = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar Color =\n/** @class */\nfunction () {\n /**\n * Every color component should be in the [0, 1] range.\n * Some easing functions (such as elastic easing) can overshoot the target value by some amount.\n * So, when animating colors, if the source or target color components are already near\n * or at the edge of the allowed [0, 1] range, it is possible for the intermediate color\n * component value to end up outside of that range mid-animation. For this reason the constructor\n * performs range checking/constraining.\n * @param r Red component.\n * @param g Green component.\n * @param b Blue component.\n * @param a Alpha (opacity) component.\n */\n function Color(r, g, b, a) {\n if (a === void 0) {\n a = 1;\n } // NaN is treated as 0.\n\n\n this.r = Math.min(1, Math.max(0, r || 0));\n this.g = Math.min(1, Math.max(0, g || 0));\n this.b = Math.min(1, Math.max(0, b || 0));\n this.a = Math.min(1, Math.max(0, a || 0));\n }\n /**\n * The given string can be in one of the following formats:\n * - #rgb\n * - #rrggbb\n * - rgb(r, g, b)\n * - rgba(r, g, b, a)\n * - CSS color name such as 'white', 'orange', 'cyan', etc.\n * @param str\n */\n\n\n Color.fromString = function (str) {\n // hexadecimal notation\n if (str.indexOf('#') >= 0) {\n // there can be some leading whitespace\n return Color.fromHexString(str);\n } // color name\n\n\n var hex = Color.nameToHex[str];\n\n if (hex) {\n return Color.fromHexString(hex);\n } // rgb(a) notation\n\n\n if (str.indexOf('rgb') >= 0) {\n return Color.fromRgbaString(str);\n }\n\n throw new Error(\"Invalid color string: '\" + str + \"'\");\n }; // See https://drafts.csswg.org/css-color/#hex-notation\n\n\n Color.parseHex = function (input) {\n input = input.replace(/ /g, '').slice(1);\n var parts;\n\n switch (input.length) {\n case 6:\n case 8:\n parts = [];\n\n for (var i = 0; i < input.length; i += 2) {\n parts.push(parseInt(\"\" + input[i] + input[i + 1], 16));\n }\n\n break;\n\n case 3:\n case 4:\n parts = input.split('').map(function (p) {\n return parseInt(p, 16);\n }).map(function (p) {\n return p + p * 16;\n });\n break;\n }\n\n if (parts.length >= 3) {\n if (parts.every(function (p) {\n return p >= 0;\n })) {\n if (parts.length === 3) {\n parts.push(255);\n }\n\n return parts;\n }\n }\n };\n\n Color.fromHexString = function (str) {\n var values = Color.parseHex(str);\n\n if (values) {\n var _a = __read$2(values, 4),\n r = _a[0],\n g = _a[1],\n b = _a[2],\n a = _a[3];\n\n return new Color(r / 255, g / 255, b / 255, a / 255);\n }\n\n throw new Error(\"Malformed hexadecimal color string: '\" + str + \"'\");\n };\n\n Color.stringToRgba = function (str) {\n // Find positions of opening and closing parentheses.\n var _a = __read$2([NaN, NaN], 2),\n po = _a[0],\n pc = _a[1];\n\n for (var i = 0; i < str.length; i++) {\n var c = str[i];\n\n if (!po && c === '(') {\n po = i;\n } else if (c === ')') {\n pc = i;\n break;\n }\n }\n\n var contents = po && pc && str.substring(po + 1, pc);\n\n if (!contents) {\n return;\n }\n\n var parts = contents.split(',');\n var rgba = [];\n\n for (var i = 0; i < parts.length; i++) {\n var part = parts[i];\n var value = parseFloat(part);\n\n if (isNaN(value)) {\n return;\n }\n\n if (part.indexOf('%') >= 0) {\n // percentage r, g, or b value\n value = Math.max(0, Math.min(100, value));\n value /= 100;\n } else {\n if (i === 3) {\n // alpha component\n value = Math.max(0, Math.min(1, value));\n } else {\n // absolute r, g, or b value\n value = Math.max(0, Math.min(255, value));\n value /= 255;\n }\n }\n\n rgba.push(value);\n }\n\n return rgba;\n };\n\n Color.fromRgbaString = function (str) {\n var rgba = Color.stringToRgba(str);\n\n if (rgba) {\n if (rgba.length === 3) {\n return new Color(rgba[0], rgba[1], rgba[2]);\n } else if (rgba.length === 4) {\n return new Color(rgba[0], rgba[1], rgba[2], rgba[3]);\n }\n }\n\n throw new Error(\"Malformed rgb/rgba color string: '\" + str + \"'\");\n };\n\n Color.fromArray = function (arr) {\n if (arr.length === 4) {\n return new Color(arr[0], arr[1], arr[2], arr[3]);\n }\n\n if (arr.length === 3) {\n return new Color(arr[0], arr[1], arr[2]);\n }\n\n throw new Error('The given array should contain 3 or 4 color components (numbers).');\n };\n\n Color.fromHSB = function (h, s, b, alpha) {\n if (alpha === void 0) {\n alpha = 1;\n }\n\n var rgb = Color.HSBtoRGB(h, s, b);\n return new Color(rgb[0], rgb[1], rgb[2], alpha);\n };\n\n Color.padHex = function (str) {\n // Can't use `padStart(2, '0')` here because of IE.\n return str.length === 1 ? '0' + str : str;\n };\n\n Color.prototype.toHexString = function () {\n var hex = '#' + Color.padHex(Math.round(this.r * 255).toString(16)) + Color.padHex(Math.round(this.g * 255).toString(16)) + Color.padHex(Math.round(this.b * 255).toString(16));\n\n if (this.a < 1) {\n hex += Color.padHex(Math.round(this.a * 255).toString(16));\n }\n\n return hex;\n };\n\n Color.prototype.toRgbaString = function (fractionDigits) {\n if (fractionDigits === void 0) {\n fractionDigits = 3;\n }\n\n var components = [Math.round(this.r * 255), Math.round(this.g * 255), Math.round(this.b * 255)];\n var k = Math.pow(10, fractionDigits);\n\n if (this.a !== 1) {\n components.push(Math.round(this.a * k) / k);\n return \"rgba(\" + components.join(', ') + \")\";\n }\n\n return \"rgb(\" + components.join(', ') + \")\";\n };\n\n Color.prototype.toString = function () {\n if (this.a === 1) {\n return this.toHexString();\n }\n\n return this.toRgbaString();\n };\n\n Color.prototype.toHSB = function () {\n return Color.RGBtoHSB(this.r, this.g, this.b);\n };\n /**\n * Converts the given RGB triple to an array of HSB (HSV) components.\n * The hue component will be `NaN` for achromatic colors.\n */\n\n\n Color.RGBtoHSB = function (r, g, b) {\n var min = Math.min(r, g, b);\n var max = Math.max(r, g, b);\n var S = max !== 0 ? (max - min) / max : 0;\n var H = NaN; // min == max, means all components are the same\n // and the color is a shade of gray with no hue (H is NaN)\n\n if (min !== max) {\n var delta = max - min;\n var rc = (max - r) / delta;\n var gc = (max - g) / delta;\n var bc = (max - b) / delta;\n\n if (r === max) {\n H = bc - gc;\n } else if (g === max) {\n H = 2.0 + rc - bc;\n } else {\n H = 4.0 + gc - rc;\n }\n\n H /= 6.0;\n\n if (H < 0) {\n H = H + 1.0;\n }\n }\n\n return [H * 360, S, max];\n };\n /**\n * Converts the given HSB (HSV) triple to an array of RGB components.\n */\n\n\n Color.HSBtoRGB = function (H, S, B) {\n if (isNaN(H)) {\n H = 0;\n }\n\n H = (H % 360 + 360) % 360 / 360; // normalize hue to [0, 360] interval, then scale to [0, 1]\n\n var r = 0;\n var g = 0;\n var b = 0;\n\n if (S === 0) {\n r = g = b = B;\n } else {\n var h = (H - Math.floor(H)) * 6;\n var f = h - Math.floor(h);\n var p = B * (1 - S);\n var q = B * (1 - S * f);\n var t = B * (1 - S * (1 - f));\n\n switch (h >> 0) {\n // discard the floating point part of the number\n case 0:\n r = B;\n g = t;\n b = p;\n break;\n\n case 1:\n r = q;\n g = B;\n b = p;\n break;\n\n case 2:\n r = p;\n g = B;\n b = t;\n break;\n\n case 3:\n r = p;\n g = q;\n b = B;\n break;\n\n case 4:\n r = t;\n g = p;\n b = B;\n break;\n\n case 5:\n r = B;\n g = p;\n b = q;\n break;\n }\n }\n\n return [r, g, b];\n };\n\n Color.prototype.derive = function (hueShift, saturationFactor, brightnessFactor, opacityFactor) {\n var hsb = Color.RGBtoHSB(this.r, this.g, this.b);\n var b = hsb[2];\n\n if (b == 0 && brightnessFactor > 1.0) {\n b = 0.05;\n }\n\n var h = ((hsb[0] + hueShift) % 360 + 360) % 360;\n var s = Math.max(Math.min(hsb[1] * saturationFactor, 1.0), 0.0);\n b = Math.max(Math.min(b * brightnessFactor, 1.0), 0.0);\n var a = Math.max(Math.min(this.a * opacityFactor, 1.0), 0.0);\n var rgba = Color.HSBtoRGB(h, s, b);\n rgba.push(a);\n return Color.fromArray(rgba);\n };\n\n Color.prototype.brighter = function () {\n return this.derive(0, 1.0, 1.0 / 0.7, 1.0);\n };\n\n Color.prototype.darker = function () {\n return this.derive(0, 1.0, 0.7, 1.0);\n };\n /**\n * CSS Color Module Level 4:\n * https://drafts.csswg.org/css-color/#named-colors\n */\n\n\n Color.nameToHex = Object.freeze({\n aliceblue: '#F0F8FF',\n antiquewhite: '#FAEBD7',\n aqua: '#00FFFF',\n aquamarine: '#7FFFD4',\n azure: '#F0FFFF',\n beige: '#F5F5DC',\n bisque: '#FFE4C4',\n black: '#000000',\n blanchedalmond: '#FFEBCD',\n blue: '#0000FF',\n blueviolet: '#8A2BE2',\n brown: '#A52A2A',\n burlywood: '#DEB887',\n cadetblue: '#5F9EA0',\n chartreuse: '#7FFF00',\n chocolate: '#D2691E',\n coral: '#FF7F50',\n cornflowerblue: '#6495ED',\n cornsilk: '#FFF8DC',\n crimson: '#DC143C',\n cyan: '#00FFFF',\n darkblue: '#00008B',\n darkcyan: '#008B8B',\n darkgoldenrod: '#B8860B',\n darkgray: '#A9A9A9',\n darkgreen: '#006400',\n darkgrey: '#A9A9A9',\n darkkhaki: '#BDB76B',\n darkmagenta: '#8B008B',\n darkolivegreen: '#556B2F',\n darkorange: '#FF8C00',\n darkorchid: '#9932CC',\n darkred: '#8B0000',\n darksalmon: '#E9967A',\n darkseagreen: '#8FBC8F',\n darkslateblue: '#483D8B',\n darkslategray: '#2F4F4F',\n darkslategrey: '#2F4F4F',\n darkturquoise: '#00CED1',\n darkviolet: '#9400D3',\n deeppink: '#FF1493',\n deepskyblue: '#00BFFF',\n dimgray: '#696969',\n dimgrey: '#696969',\n dodgerblue: '#1E90FF',\n firebrick: '#B22222',\n floralwhite: '#FFFAF0',\n forestgreen: '#228B22',\n fuchsia: '#FF00FF',\n gainsboro: '#DCDCDC',\n ghostwhite: '#F8F8FF',\n gold: '#FFD700',\n goldenrod: '#DAA520',\n gray: '#808080',\n green: '#008000',\n greenyellow: '#ADFF2F',\n grey: '#808080',\n honeydew: '#F0FFF0',\n hotpink: '#FF69B4',\n indianred: '#CD5C5C',\n indigo: '#4B0082',\n ivory: '#FFFFF0',\n khaki: '#F0E68C',\n lavender: '#E6E6FA',\n lavenderblush: '#FFF0F5',\n lawngreen: '#7CFC00',\n lemonchiffon: '#FFFACD',\n lightblue: '#ADD8E6',\n lightcoral: '#F08080',\n lightcyan: '#E0FFFF',\n lightgoldenrodyellow: '#FAFAD2',\n lightgray: '#D3D3D3',\n lightgreen: '#90EE90',\n lightgrey: '#D3D3D3',\n lightpink: '#FFB6C1',\n lightsalmon: '#FFA07A',\n lightseagreen: '#20B2AA',\n lightskyblue: '#87CEFA',\n lightslategray: '#778899',\n lightslategrey: '#778899',\n lightsteelblue: '#B0C4DE',\n lightyellow: '#FFFFE0',\n lime: '#00FF00',\n limegreen: '#32CD32',\n linen: '#FAF0E6',\n magenta: '#FF00FF',\n maroon: '#800000',\n mediumaquamarine: '#66CDAA',\n mediumblue: '#0000CD',\n mediumorchid: '#BA55D3',\n mediumpurple: '#9370DB',\n mediumseagreen: '#3CB371',\n mediumslateblue: '#7B68EE',\n mediumspringgreen: '#00FA9A',\n mediumturquoise: '#48D1CC',\n mediumvioletred: '#C71585',\n midnightblue: '#191970',\n mintcream: '#F5FFFA',\n mistyrose: '#FFE4E1',\n moccasin: '#FFE4B5',\n navajowhite: '#FFDEAD',\n navy: '#000080',\n oldlace: '#FDF5E6',\n olive: '#808000',\n olivedrab: '#6B8E23',\n orange: '#FFA500',\n orangered: '#FF4500',\n orchid: '#DA70D6',\n palegoldenrod: '#EEE8AA',\n palegreen: '#98FB98',\n paleturquoise: '#AFEEEE',\n palevioletred: '#DB7093',\n papayawhip: '#FFEFD5',\n peachpuff: '#FFDAB9',\n peru: '#CD853F',\n pink: '#FFC0CB',\n plum: '#DDA0DD',\n powderblue: '#B0E0E6',\n purple: '#800080',\n rebeccapurple: '#663399',\n red: '#FF0000',\n rosybrown: '#BC8F8F',\n royalblue: '#4169E1',\n saddlebrown: '#8B4513',\n salmon: '#FA8072',\n sandybrown: '#F4A460',\n seagreen: '#2E8B57',\n seashell: '#FFF5EE',\n sienna: '#A0522D',\n silver: '#C0C0C0',\n skyblue: '#87CEEB',\n slateblue: '#6A5ACD',\n slategray: '#708090',\n slategrey: '#708090',\n snow: '#FFFAFA',\n springgreen: '#00FF7F',\n steelblue: '#4682B4',\n tan: '#D2B48C',\n teal: '#008080',\n thistle: '#D8BFD8',\n tomato: '#FF6347',\n turquoise: '#40E0D0',\n violet: '#EE82EE',\n wheat: '#F5DEB3',\n white: '#FFFFFF',\n whitesmoke: '#F5F5F5',\n yellow: '#FFFF00',\n yellowgreen: '#9ACD32'\n });\n return Color;\n}();\n\nfunction color(a, b) {\n if (typeof a === 'string') {\n try {\n a = Color.fromString(a);\n } catch (e) {\n a = Color.fromArray([0, 0, 0]);\n }\n }\n\n if (typeof b === 'string') {\n try {\n b = Color.fromString(b);\n } catch (e) {\n b = Color.fromArray([0, 0, 0]);\n }\n }\n\n var red = interpolateNumber(a.r, b.r);\n var green = interpolateNumber(a.g, b.g);\n var blue = interpolateNumber(a.b, b.b);\n var alpha = interpolateNumber(a.a, b.a);\n return function (t) {\n return Color.fromArray([red(t), green(t), blue(t), alpha(t)]).toRgbaString();\n };\n}\n\nfunction interpolateValue(a, b) {\n var t = typeof b;\n var c;\n\n if (b == null || t === 'boolean') {\n return constant$1(b);\n }\n\n if (t === 'number') {\n return interpolateNumber(a, b);\n }\n\n if (t === 'string') {\n try {\n c = Color.fromString(b);\n b = c;\n return color(a, b);\n } catch (e) {// return string(a, b);\n }\n }\n\n if (b instanceof Color) {\n return color(a, b);\n }\n\n if (b instanceof Date) {\n return date(a, b);\n }\n\n if (Array.isArray(b)) {\n return array(a, b);\n }\n\n if (typeof b.valueOf !== 'function' && typeof b.toString !== 'function' || isNaN(b)) {\n return object(a, b);\n }\n\n return interpolateNumber(a, b);\n}\n\nvar __read$1 = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar constant = function constant(x) {\n return function () {\n return x;\n };\n};\n\nvar identity$2 = function identity$2(x) {\n return x;\n};\n\nfunction clamper(domain) {\n var _a;\n\n var a = domain[0];\n var b = domain[domain.length - 1];\n\n if (a > b) {\n _a = __read$1([b, a], 2), a = _a[0], b = _a[1];\n }\n\n return function (x) {\n return Math.max(a, Math.min(b, x));\n };\n}\n\nvar ContinuousScale =\n/** @class */\nfunction () {\n function ContinuousScale() {\n /**\n * The output value of the scale for `undefined` or `NaN` input values.\n */\n this.unknown = undefined;\n this._clamp = identity$2;\n this._domain = [0, 1];\n this._range = [0, 1];\n this.transform = identity$2; // transforms domain value\n\n this.untransform = identity$2; // untransforms domain value\n\n this._interpolate = interpolateValue;\n this.rescale();\n }\n\n Object.defineProperty(ContinuousScale.prototype, \"clamp\", {\n get: function get() {\n return this._clamp !== identity$2;\n },\n set: function set(value) {\n this._clamp = value ? clamper(this.domain) : identity$2;\n },\n enumerable: true,\n configurable: true\n });\n\n ContinuousScale.prototype.setDomain = function (values) {\n this._domain = Array.prototype.map.call(values, function (v) {\n return +v;\n });\n\n if (this._clamp !== identity$2) {\n this._clamp = clamper(this.domain);\n }\n\n this.rescale();\n };\n\n ContinuousScale.prototype.getDomain = function () {\n return this._domain.slice();\n };\n\n Object.defineProperty(ContinuousScale.prototype, \"domain\", {\n get: function get() {\n return this.getDomain();\n },\n set: function set(values) {\n this.setDomain(values);\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ContinuousScale.prototype, \"range\", {\n get: function get() {\n return this._range.slice();\n },\n set: function set(values) {\n this._range = Array.prototype.slice.call(values);\n this.rescale();\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(ContinuousScale.prototype, \"interpolate\", {\n get: function get() {\n return this._interpolate;\n },\n set: function set(value) {\n this._interpolate = value;\n this.rescale();\n },\n enumerable: true,\n configurable: true\n });\n\n ContinuousScale.prototype.rescale = function () {\n this.piecewise = this.bimap;\n this.output = undefined;\n this.input = undefined;\n };\n /**\n * Returns a function that converts `x` in `[a, b]` to `t` in `[0, 1]`. Non-clamping.\n * @param a\n * @param b\n */\n\n\n ContinuousScale.prototype.normalize = function (a, b) {\n return (b -= a = +a) ? function (x) {\n return (x - a) / b;\n } : constant(isNaN(b) ? NaN : 0.5);\n };\n\n ContinuousScale.prototype.bimap = function (domain, range, interpolate) {\n var x0 = domain[0];\n var x1 = domain[1];\n var y0 = range[0];\n var y1 = range[1];\n var xt;\n var ty;\n\n if (x1 < x0) {\n xt = this.normalize(x1, x0);\n ty = interpolate(y1, y0);\n } else {\n xt = this.normalize(x0, x1);\n ty = interpolate(y0, y1);\n }\n\n return function (x) {\n return ty(xt(x));\n }; // domain value x --> t in [0, 1] --> range value y\n };\n\n ContinuousScale.prototype.convert = function (x) {\n x = +x;\n\n if (isNaN(x)) {\n return this.unknown;\n } else {\n if (!this.output) {\n this.output = this.piecewise(this.domain.map(this.transform), this.range, this.interpolate);\n }\n\n return this.output(this.transform(this._clamp(x)));\n }\n };\n\n ContinuousScale.prototype.invert = function (y) {\n if (!this.input) {\n this.input = this.piecewise(this.range, this.domain.map(this.transform), interpolateNumber);\n }\n\n return this._clamp(this.untransform(this.input(y)));\n };\n\n return ContinuousScale;\n}();\n\nvar __extends$k = undefined && undefined.__extends || function () {\n var _extendStatics200 = function extendStatics(d, b) {\n _extendStatics200 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics200(d, b);\n };\n\n return function (d, b) {\n _extendStatics200(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nfunction ticks(a, b, count) {\n var step = tickStep(a, b, count);\n a = Math.ceil(a / step) * step;\n b = Math.floor(b / step) * step + step / 2; // Add half a step here so that the array returned by `range` includes the last tick.\n\n return range(a, b, step);\n}\n\nvar e10 = Math.sqrt(50);\nvar e5 = Math.sqrt(10);\nvar e2 = Math.sqrt(2);\n\nfunction tickStep(a, b, count) {\n var rawStep = Math.abs(b - a) / Math.max(0, count);\n var step = Math.pow(10, Math.floor(Math.log(rawStep) / Math.LN10)); // = Math.log10(rawStep)\n\n var error = rawStep / step;\n\n if (error >= e10) {\n step *= 10;\n } else if (error >= e5) {\n step *= 5;\n } else if (error >= e2) {\n step *= 2;\n }\n\n return b < a ? -step : step;\n}\n\nfunction tickIncrement(a, b, count) {\n var rawStep = (b - a) / Math.max(0, count);\n var power = Math.floor(Math.log(rawStep) / Math.LN10);\n var error = rawStep / Math.pow(10, power);\n return power >= 0 ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power) : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);\n}\n\nvar NumericTicks =\n/** @class */\nfunction (_super) {\n __extends$k(NumericTicks, _super);\n\n function NumericTicks(fractionDigits, elements) {\n var _this = _super.call(this) || this;\n\n if (elements) {\n for (var i = 0, n = elements.length; i < n; i++) {\n _this[i] = elements[i];\n }\n }\n\n _this.fractionDigits = fractionDigits;\n return _this;\n }\n\n return NumericTicks;\n}(Array);\n\nfunction range(a, b, step) {\n if (step === void 0) {\n step = 1;\n }\n\n var absStep = Math.abs(step);\n var fractionDigits = absStep > 0 && absStep < 1 ? Math.abs(Math.floor(Math.log(absStep) / Math.LN10)) : 0;\n var f = Math.pow(10, fractionDigits);\n var n = Math.max(0, Math.ceil((b - a) / step)) || 0;\n var values = new NumericTicks(fractionDigits);\n\n for (var i = 0; i < n; i++) {\n var value = a + step * i;\n values[i] = Math.round(value * f) / f;\n }\n\n return values;\n}\n\nfunction formatDefault(x, p) {\n var xs = x.toPrecision(p);\n\n out: for (var n = xs.length, i = 1, i0 = -1, i1 = 0; i < n; ++i) {\n switch (xs[i]) {\n case '.':\n i0 = i1 = i;\n break;\n\n case '0':\n if (i0 === 0) {\n i0 = i;\n }\n\n i1 = i;\n break;\n\n case 'e':\n break out;\n\n default:\n if (i0 > 0) {\n i0 = 0;\n }\n\n break;\n }\n }\n\n return i0 > 0 ? xs.slice(0, i0) + xs.slice(i1 + 1) : xs;\n}\n\nvar formatTypes = {\n '': formatDefault,\n // Multiply by 100, and then decimal notation with a percent sign.\n '%': function _(x, p) {\n return (x * 100).toFixed(p);\n },\n // Binary notation, rounded to integer.\n 'b': function b(x) {\n return Math.round(x).toString(2);\n },\n // Converts the integer to the corresponding unicode character before printing.\n 'c': function c(x) {\n return String(x);\n },\n // Decimal notation, rounded to integer.\n 'd': formatDecimal,\n // Exponent notation.\n 'e': function e(x, p) {\n return x.toExponential(p);\n },\n // Fixed point notation.\n 'f': function f(x, p) {\n return x.toFixed(p);\n },\n // Either decimal or exponent notation, rounded to significant digits.\n 'g': function g(x, p) {\n return x.toPrecision(p);\n },\n // Octal notation, rounded to integer.\n 'o': function o(x) {\n return Math.round(x).toString(8);\n },\n // Multiply by 100, round to significant digits, and then decimal notation with a percent sign.\n 'p': function p(x, _p3) {\n return formatRounded(x * 100, _p3);\n },\n // Decimal notation, rounded to significant digits.\n 'r': formatRounded,\n // Decimal notation with a SI prefix, rounded to significant digits.\n 's': formatPrefixAuto,\n // Hexadecimal notation, using upper-case letters, rounded to integer.\n 'X': function X(x) {\n return Math.round(x).toString(16).toUpperCase();\n },\n // Hexadecimal notation, using lower-case letters, rounded to integer.\n 'x': function x(_x3) {\n return Math.round(_x3).toString(16);\n }\n};\nvar prefixes = ['y', 'z', 'a', 'f', 'p', 'n', '\\xB5', 'm', '', 'k', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y'];\n/**\n * [[fill]align][sign][#][0][width][grouping_option][.precision][type]\n */\n\nvar FormatSpecifier =\n/** @class */\nfunction () {\n function FormatSpecifier(specifier) {\n if (specifier instanceof FormatSpecifier) {\n this.fill = specifier.fill;\n this.align = specifier.align;\n this.sign = specifier.sign;\n this.symbol = specifier.symbol;\n this.zero = specifier.zero;\n this.width = specifier.width;\n this.comma = specifier.comma;\n this.precision = specifier.precision;\n this.trim = specifier.trim;\n this.type = specifier.type;\n this.string = specifier.string;\n } else {\n this.fill = specifier.fill === undefined ? ' ' : String(specifier.fill);\n this.align = specifier.align === undefined ? '>' : String(specifier.align);\n this.sign = specifier.sign === undefined ? '-' : String(specifier.sign);\n this.symbol = specifier.symbol === undefined ? '' : String(specifier.symbol);\n this.zero = !!specifier.zero;\n this.width = specifier.width === undefined ? undefined : +specifier.width;\n this.comma = !!specifier.comma;\n this.precision = specifier.precision === undefined ? undefined : +specifier.precision;\n this.trim = !!specifier.trim;\n this.type = specifier.type === undefined ? '' : String(specifier.type);\n this.string = specifier.string;\n }\n }\n\n return FormatSpecifier;\n}(); // [[fill]align][sign][symbol][0][width][,][.precision][~][type]\n\n\nvar formatRegEx = /^(?:(.)?([<>=^]))?([+\\-( ])?([$#])?(0)?(\\d+)?(,)?(\\.\\d+)?(~)?([a-z%])?$/i;\nvar interpolateRegEx = /(#\\{(.*?)\\})/g;\n\nfunction makeFormatSpecifier(specifier) {\n if (specifier instanceof FormatSpecifier) {\n return new FormatSpecifier(specifier);\n }\n\n var found = false;\n var string = specifier.replace(interpolateRegEx, function () {\n if (!found) {\n specifier = arguments[2];\n found = true;\n }\n\n return '#{}';\n });\n var match = formatRegEx.exec(specifier);\n\n if (!match) {\n throw new Error(\"Invalid format: \" + specifier);\n }\n\n return new FormatSpecifier({\n fill: match[1],\n align: match[2],\n sign: match[3],\n symbol: match[4],\n zero: match[5],\n width: match[6],\n comma: match[7],\n precision: match[8] && match[8].slice(1),\n trim: match[9],\n type: match[10],\n string: found ? string : undefined\n });\n}\n\nfunction tickFormat(start, stop, count, specifier) {\n var step = tickStep(start, stop, count);\n var formatSpecifier = makeFormatSpecifier(specifier == undefined ? ',f' : specifier);\n var precision;\n\n switch (formatSpecifier.type) {\n case 's':\n {\n var value = Math.max(Math.abs(start), Math.abs(stop));\n\n if (formatSpecifier.precision == null && !isNaN(precision = precisionPrefix(step, value))) {\n formatSpecifier.precision = precision;\n }\n\n return formatPrefix(formatSpecifier, value);\n }\n\n case '':\n case 'e':\n case 'g':\n case 'p':\n case 'r':\n {\n if (formatSpecifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) {\n formatSpecifier.precision = precision - +(formatSpecifier.type === 'e');\n }\n\n break;\n }\n\n case 'f':\n case '%':\n {\n if (formatSpecifier.precision == null && !isNaN(precision = precisionFixed(step))) {\n formatSpecifier.precision = precision - +(formatSpecifier.type === '%') * 2;\n }\n\n break;\n }\n }\n\n return format(formatSpecifier);\n}\n\nvar prefixExponent;\n\nfunction formatPrefixAuto(x, p) {\n if (p === void 0) {\n p = 0;\n }\n\n var d = formatDecimalParts(x, p);\n\n if (!d) {\n return String(x);\n }\n\n var coefficient = d[0];\n var exponent = d[1];\n prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3;\n var i = exponent - prefixExponent + 1;\n var n = coefficient.length;\n\n if (i === n) {\n return coefficient;\n } else {\n if (i > n) {\n return coefficient + new Array(i - n + 1).join('0');\n }\n\n if (i > 0) {\n return coefficient.slice(0, i) + '.' + coefficient.slice(i);\n } else {\n var parts = formatDecimalParts(x, Math.max(0, p + i - 1));\n return '0.' + new Array(1 - i).join('0') + parts[0]; // less than 1y!\n }\n }\n}\n\nfunction formatDecimal(x) {\n return Math.abs(x = Math.round(x)) >= 1e21 ? x.toLocaleString('en').replace(/,/g, '') : x.toString(10);\n}\n\nfunction formatGroup(grouping, thousands) {\n return function (value, width) {\n var t = [];\n var i = value.length;\n var j = 0;\n var g = grouping[0];\n var length = 0;\n\n while (i > 0 && g > 0) {\n if (length + g + 1 > width) {\n g = Math.max(1, width - length);\n }\n\n t.push(value.substring(i -= g, i + g));\n\n if ((length += g + 1) > width) {\n break;\n }\n\n g = grouping[j = (j + 1) % grouping.length];\n }\n\n return t.reverse().join(thousands);\n };\n}\n\nfunction formatNumerals(numerals) {\n return function (value) {\n return value.replace(/[0-9]/g, function (i) {\n return numerals[+i];\n });\n };\n} // Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.\n\n\nfunction formatTrim(s) {\n out: for (var n = s.length, i = 1, i0 = -1, i1 = 0; i < n; ++i) {\n switch (s[i]) {\n case '.':\n i0 = i1 = i;\n break;\n\n case '0':\n if (i0 === 0) {\n i0 = i;\n }\n\n i1 = i;\n break;\n\n default:\n if (!+s[i]) {\n break out;\n }\n\n if (i0 > 0) {\n i0 = 0;\n }\n\n break;\n }\n }\n\n return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;\n}\n\nfunction formatRounded(x, p) {\n var d = formatDecimalParts(x, p);\n\n if (!d) {\n return String(x);\n }\n\n var coefficient = d[0];\n var exponent = d[1];\n\n if (exponent < 0) {\n return '0.' + new Array(-exponent).join('0') + coefficient;\n } else {\n if (coefficient.length > exponent + 1) {\n return coefficient.slice(0, exponent + 1) + '.' + coefficient.slice(exponent + 1);\n } else {\n return coefficient + new Array(exponent - coefficient.length + 2).join('0');\n }\n }\n} // Computes the decimal coefficient and exponent of the specified number x with\n// significant digits p, where x is positive and p is in [1, 21] or undefined.\n// For example, formatDecimalParts(1.23) returns ['123', 0].\n\n\nfunction formatDecimalParts(x, p) {\n var sx = p ? x.toExponential(p - 1) : x.toExponential();\n var i = sx.indexOf('e');\n\n if (i < 0) {\n // NaN, ±Infinity\n return undefined;\n }\n\n var coefficient = sx.slice(0, i); // The string returned by toExponential either has the form \\d\\.\\d+e[-+]\\d+\n // (e.g., 1.2e+3) or the form \\de[-+]\\d+ (e.g., 1e+3).\n\n return [coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient, +sx.slice(i + 1)];\n}\n\nfunction identity$1(x) {\n return x;\n}\n\nvar formatDefaultLocale;\nvar format;\nvar formatPrefix;\ndefaultLocale({\n thousands: ',',\n grouping: [3],\n currency: ['$', '']\n});\n\nfunction defaultLocale(definition) {\n formatDefaultLocale = formatLocale$1(definition);\n format = formatDefaultLocale.format;\n formatPrefix = formatDefaultLocale.formatPrefix;\n}\n\nfunction exponent(x) {\n var parts = formatDecimalParts(Math.abs(x));\n\n if (parts) {\n return parts[1];\n }\n\n return NaN;\n}\n\nfunction precisionFixed(step) {\n return Math.max(0, -exponent(Math.abs(step)));\n}\n\nfunction precisionPrefix(step, value) {\n var x = Math.floor(exponent(value) / 3);\n x = Math.min(8, x);\n x = Math.max(-8, x);\n return Math.max(0, x * 3 - exponent(Math.abs(step)));\n}\n\nfunction precisionRound(step, max) {\n step = Math.abs(step);\n max = Math.abs(max) - step;\n return Math.max(0, exponent(max) - exponent(step)) + 1;\n}\n\nfunction formatLocale$1(locale) {\n var group = locale.grouping === undefined || locale.thousands === undefined ? identity$1 : formatGroup(Array.prototype.map.call(locale.grouping, Number), String(locale.thousands));\n var currencyPrefix = locale.currency === undefined ? '' : String(locale.currency[0]);\n var currencySuffix = locale.currency === undefined ? '' : String(locale.currency[1]);\n var decimal = locale.decimal === undefined ? '.' : String(locale.decimal);\n var numerals = locale.numerals === undefined ? identity$1 : formatNumerals(Array.prototype.map.call(locale.numerals, String));\n var percent = locale.percent === undefined ? '%' : String(locale.percent);\n var minus = locale.minus === undefined ? \"\\u2212\" : String(locale.minus);\n var nan = locale.nan === undefined ? 'NaN' : String(locale.nan);\n\n function newFormat(specifier) {\n var formatSpecifier = makeFormatSpecifier(specifier);\n var fill = formatSpecifier.fill;\n var align = formatSpecifier.align;\n var sign = formatSpecifier.sign;\n var symbol = formatSpecifier.symbol;\n var zero = formatSpecifier.zero;\n var width = formatSpecifier.width;\n var comma = formatSpecifier.comma;\n var precision = formatSpecifier.precision;\n var trim = formatSpecifier.trim;\n var type = formatSpecifier.type; // The 'n' type is an alias for ',g'.\n\n if (type === 'n') {\n comma = true;\n type = 'g';\n } else if (!formatTypes[type]) {\n // The '' type, and any invalid type, is an alias for '.12~g'.\n if (precision === undefined) {\n precision = 12;\n }\n\n trim = true;\n type = 'g';\n } // If zero fill is specified, padding goes after sign and before digits.\n\n\n if (zero || fill === '0' && align === '=') {\n zero = true;\n fill = '0';\n align = '=';\n } // Compute the prefix and suffix.\n // For SI-prefix, the suffix is lazily computed.\n\n\n var prefix = symbol === '$' ? currencyPrefix : symbol === '#' && /[boxX]/.test(type) ? '0' + type.toLowerCase() : '';\n var suffix = symbol === '$' ? currencySuffix : /[%p]/.test(type) ? percent : ''; // What format function should we use?\n // Is this an integer type?\n // Can this type generate exponential notation?\n\n var formatType = formatTypes[type];\n var maybeSuffix = /[defgprs%]/.test(type); // Set the default precision if not specified,\n // or clamp the specified precision to the supported range.\n // For significant precision, it must be in [1, 21].\n // For fixed precision, it must be in [0, 20].\n\n if (precision === undefined) {\n precision = 6;\n } else if (/[gprs]/.test(type)) {\n precision = Math.max(1, Math.min(21, precision));\n } else {\n precision = Math.max(0, Math.min(20, precision));\n }\n\n function format(x) {\n var valuePrefix = prefix;\n var valueSuffix = suffix;\n var value;\n\n if (type === 'c') {\n valueSuffix = formatType(+x) + valueSuffix;\n value = '';\n } else {\n var nx = +x; // Determine the sign. -0 is not less than 0, but 1 / -0 is!\n\n var valueNegative = x < 0 || 1 / nx < 0; // Perform the initial formatting.\n\n value = isNaN(nx) ? nan : formatType(Math.abs(nx), precision); // Trim insignificant zeros.\n\n if (trim) {\n value = formatTrim(value);\n } // If a negative value rounds to zero after formatting, and no explicit positive sign is requested, hide the sign.\n\n\n if (valueNegative && +value === 0 && sign !== '+') {\n valueNegative = false;\n } // Compute the prefix and suffix.\n\n\n var signPrefix = valueNegative ? sign === '(' ? sign : minus : sign === '-' || sign === '(' ? '' : sign;\n var signSuffix = valueNegative && sign === '(' ? ')' : '';\n valuePrefix = signPrefix + valuePrefix;\n valueSuffix = (type === 's' ? prefixes[8 + prefixExponent / 3] : '') + valueSuffix + signSuffix; // Break the formatted value into the integer “value” part that can be\n // grouped, and fractional or exponential “suffix” part that is not.\n\n if (maybeSuffix) {\n for (var i = 0, n = value.length; i < n; i++) {\n var c = value.charCodeAt(i);\n\n if (48 > c || c > 57) {\n valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;\n value = value.slice(0, i);\n break;\n }\n }\n }\n } // If the fill character is not '0', grouping is applied before padding.\n\n\n if (comma && !zero) {\n value = group(value, Infinity);\n } // Compute the padding.\n\n\n var length = valuePrefix.length + value.length + valueSuffix.length;\n var padding = length < width ? new Array(width - length + 1).join(fill) : ''; // If the fill character is '0', grouping is applied after padding.\n\n if (comma && zero) {\n value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity);\n padding = '';\n } // Reconstruct the final output based on the desired alignment.\n\n\n switch (align) {\n case '<':\n value = valuePrefix + value + valueSuffix + padding;\n break;\n\n case '=':\n value = valuePrefix + padding + value + valueSuffix;\n break;\n\n case '^':\n value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length);\n break;\n\n default:\n value = padding + valuePrefix + value + valueSuffix;\n break;\n }\n\n var string = formatSpecifier.string;\n\n if (string) {\n return string.replace(interpolateRegEx, function () {\n return numerals(value);\n });\n }\n\n return numerals(value);\n }\n\n return format;\n }\n\n function formatPrefix(specifier, value) {\n var formatSpecifier = makeFormatSpecifier(specifier);\n formatSpecifier.type = 'f';\n var f = newFormat(formatSpecifier);\n var e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3;\n var k = Math.pow(10, -e);\n var prefix = prefixes[8 + e / 3];\n return function (value) {\n return f(k * +value) + prefix;\n };\n }\n\n return {\n format: newFormat,\n formatPrefix: formatPrefix\n };\n}\n\nvar __extends$j = undefined && undefined.__extends || function () {\n var _extendStatics201 = function extendStatics(d, b) {\n _extendStatics201 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics201(d, b);\n };\n\n return function (d, b) {\n _extendStatics201(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n/**\n * Maps continuous domain to a continuous range.\n */\n\n\nvar LinearScale =\n/** @class */\nfunction (_super) {\n __extends$j(LinearScale, _super);\n\n function LinearScale() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'linear';\n return _this;\n }\n\n LinearScale.prototype.ticks = function (count) {\n if (count === void 0) {\n count = 10;\n }\n\n var d = this._domain;\n return ticks(d[0], d[d.length - 1], count);\n };\n /**\n * Extends the domain so that it starts and ends on nice round values.\n * @param count Tick count.\n */\n\n\n LinearScale.prototype.nice = function (count) {\n if (count === void 0) {\n count = 10;\n }\n\n var d = this.domain;\n var i0 = 0;\n var i1 = d.length - 1;\n var start = d[i0];\n var stop = d[i1];\n var step;\n\n if (stop < start) {\n step = start;\n start = stop;\n stop = step;\n step = i0;\n i0 = i1;\n i1 = step;\n }\n\n step = tickIncrement(start, stop, count);\n\n if (step > 0) {\n start = Math.floor(start / step) * step;\n stop = Math.ceil(stop / step) * step;\n step = tickIncrement(start, stop, count);\n } else if (step < 0) {\n start = Math.ceil(start * step) / step;\n stop = Math.floor(stop * step) / step;\n step = tickIncrement(start, stop, count);\n }\n\n if (step > 0) {\n d[i0] = Math.floor(start / step) * step;\n d[i1] = Math.ceil(stop / step) * step;\n this.domain = d;\n } else if (step < 0) {\n d[i0] = Math.ceil(start * step) / step;\n d[i1] = Math.floor(stop * step) / step;\n this.domain = d;\n }\n };\n\n LinearScale.prototype.tickFormat = function (count, specifier) {\n var d = this.domain;\n return tickFormat(d[0], d[d.length - 1], count == undefined ? 10 : count, specifier);\n };\n\n return LinearScale;\n}(ContinuousScale);\n\nvar __extends$i = undefined && undefined.__extends || function () {\n var _extendStatics202 = function extendStatics(d, b) {\n _extendStatics202 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics202(d, b);\n };\n\n return function (d, b) {\n _extendStatics202(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar t0 = new Date();\nvar t1 = new Date();\n/**\n * The interval methods don't mutate Date parameters.\n */\n\nvar TimeInterval =\n/** @class */\nfunction () {\n function TimeInterval(floor, offset) {\n this._floor = floor;\n this._offset = offset;\n }\n /**\n * Returns a new date representing the latest interval boundary date before or equal to date.\n * For example, `day.floor(date)` typically returns 12:00 AM local time on the given date.\n * @param date\n */\n\n\n TimeInterval.prototype.floor = function (date) {\n date = new Date(+date);\n\n this._floor(date);\n\n return date;\n };\n /**\n * Returns a new date representing the earliest interval boundary date after or equal to date.\n * @param date\n */\n\n\n TimeInterval.prototype.ceil = function (date) {\n date = new Date(+date - 1);\n\n this._floor(date);\n\n this._offset(date, 1);\n\n this._floor(date);\n\n return date;\n };\n /**\n * Returns a new date representing the closest interval boundary date to date.\n * @param date\n */\n\n\n TimeInterval.prototype.round = function (date) {\n var d0 = this.floor(date);\n var d1 = this.ceil(date);\n var ms = +date;\n return ms - d0.getTime() < d1.getTime() - ms ? d0 : d1;\n };\n /**\n * Returns a new date equal to date plus step intervals.\n * @param date\n * @param step\n */\n\n\n TimeInterval.prototype.offset = function (date, step) {\n if (step === void 0) {\n step = 1;\n }\n\n date = new Date(+date);\n\n this._offset(date, Math.floor(step));\n\n return date;\n };\n /**\n * Returns an array of dates representing every interval boundary after or equal to start (inclusive) and before stop (exclusive).\n * @param start\n * @param stop\n * @param step\n */\n\n\n TimeInterval.prototype.range = function (start, stop, step) {\n if (step === void 0) {\n step = 1;\n }\n\n var range = [];\n start = this.ceil(start);\n step = Math.floor(step);\n\n if (start > stop || step <= 0) {\n return range;\n }\n\n var previous;\n\n do {\n previous = new Date(+start);\n range.push(previous);\n\n this._offset(start, step);\n\n this._floor(start);\n } while (previous < start && start < stop);\n\n return range;\n }; // Returns an interval that is a subset of this interval.\n // For example, to create an interval that return 1st, 11th, 21st and 31st of each month:\n // day.filter(date => (date.getDate() - 1) % 10 === 0)\n\n\n TimeInterval.prototype.filter = function (test) {\n var _this = this;\n\n var floor = function floor(date) {\n if (date instanceof Date) {\n _this._floor(date);\n\n while (!test(date)) {\n date.setTime(date.getTime() - 1);\n\n _this._floor(date);\n }\n }\n\n return date;\n };\n\n var offset = function offset(date, step) {\n if (date instanceof Date) {\n if (step < 0) {\n while (++step <= 0) {\n do {\n _this._offset(date, -1);\n } while (!test(date));\n }\n } else {\n while (--step >= 0) {\n do {\n _this._offset(date, 1);\n } while (!test(date));\n }\n }\n }\n\n return date;\n };\n\n return new TimeInterval(floor, offset);\n };\n\n return TimeInterval;\n}();\n\nvar CountableTimeInterval =\n/** @class */\nfunction (_super) {\n __extends$i(CountableTimeInterval, _super);\n\n function CountableTimeInterval(floor, offset, count, field) {\n var _this = _super.call(this, floor, offset) || this;\n\n _this._count = count;\n _this._field = field;\n return _this;\n }\n /**\n * Returns the number of interval boundaries after start (exclusive) and before or equal to end (inclusive).\n * @param start\n * @param end\n */\n\n\n CountableTimeInterval.prototype.count = function (start, end) {\n t0.setTime(+start);\n t1.setTime(+end);\n\n this._floor(t0);\n\n this._floor(t1);\n\n return Math.floor(this._count(t0, t1));\n };\n /**\n * Returns a filtered view of this interval representing every step'th date.\n * The meaning of step is dependent on this interval’s parent interval as defined by the `field` function.\n * @param step\n */\n\n\n CountableTimeInterval.prototype.every = function (step) {\n var _this = this;\n\n var result;\n step = Math.floor(step);\n\n if (isFinite(step) && step > 0) {\n if (step > 1) {\n var field_1 = this._field;\n\n if (field_1) {\n result = this.filter(function (d) {\n return field_1(d) % step === 0;\n });\n } else {\n result = this.filter(function (d) {\n return _this.count(0, d) % step === 0;\n });\n }\n } else {\n result = this;\n }\n }\n\n return result;\n };\n\n return CountableTimeInterval;\n}(TimeInterval);\n\nfunction floor$8(date) {\n return date;\n}\n\nfunction offset$8(date, milliseconds) {\n date.setTime(date.getTime() + milliseconds);\n}\n\nfunction count$8(start, end) {\n return end.getTime() - start.getTime();\n}\n\nvar millisecond = new CountableTimeInterval(floor$8, offset$8, count$8); // Common time unit sizes in milliseconds.\n\nvar durationSecond = 1000;\nvar durationMinute = durationSecond * 60;\nvar durationHour = durationMinute * 60;\nvar durationDay = durationHour * 24;\nvar durationWeek = durationDay * 7;\nvar durationMonth = durationDay * 30;\nvar durationYear = durationDay * 365;\n\nfunction floor$7(date) {\n date.setTime(date.getTime() - date.getMilliseconds());\n}\n\nfunction offset$7(date, seconds) {\n date.setTime(date.getTime() + seconds * durationSecond);\n}\n\nfunction count$7(start, end) {\n return (end.getTime() - start.getTime()) / durationSecond;\n}\n\nvar second = new CountableTimeInterval(floor$7, offset$7, count$7);\n\nfunction floor$6(date) {\n date.setTime(date.getTime() - date.getMilliseconds() - date.getSeconds() * durationSecond);\n}\n\nfunction offset$6(date, minutes) {\n date.setTime(date.getTime() + minutes * durationMinute);\n}\n\nfunction count$6(start, end) {\n return (end.getTime() - start.getTime()) / durationMinute;\n}\n\nfunction field$6(date) {\n return date.getMinutes();\n}\n\nvar minute = new CountableTimeInterval(floor$6, offset$6, count$6, field$6);\n\nfunction floor$5(date) {\n date.setTime(date.getTime() - date.getMilliseconds() - date.getSeconds() * durationSecond - date.getMinutes() * durationMinute);\n}\n\nfunction offset$5(date, hours) {\n date.setTime(date.getTime() + hours * durationHour);\n}\n\nfunction count$5(start, end) {\n return (end.getTime() - start.getTime()) / durationHour;\n}\n\nfunction field$5(date) {\n return date.getHours();\n}\n\nvar hour = new CountableTimeInterval(floor$5, offset$5, count$5, field$5);\n\nfunction floor$4(date) {\n date.setHours(0, 0, 0, 0);\n}\n\nfunction offset$4(date, days) {\n date.setDate(date.getDate() + days);\n}\n\nfunction count$4(start, end) {\n var tzMinuteDelta = end.getTimezoneOffset() - start.getTimezoneOffset();\n return (end.getTime() - start.getTime() - tzMinuteDelta * durationMinute) / durationDay;\n}\n\nfunction field$4(date) {\n return date.getDate() - 1;\n}\n\nvar day = new CountableTimeInterval(floor$4, offset$4, count$4, field$4); // Set date to n-th day of the week.\n\nfunction weekday$1(n) {\n // Sets the `date` to the start of the `n`-th day of the current week.\n // n == 0 is Sunday.\n function floor(date) {\n // 1..31 1..7\n date.setDate(date.getDate() - (date.getDay() + 7 - n) % 7);\n date.setHours(0, 0, 0, 0); // h, m, s, ms\n } // Offset the date by the given number of weeks.\n\n\n function offset(date, weeks) {\n date.setDate(date.getDate() + weeks * 7);\n } // Count the number of weeks between the start and end dates.\n\n\n function count(start, end) {\n var msDelta = end.getTime() - start.getTime();\n var tzMinuteDelta = end.getTimezoneOffset() - start.getTimezoneOffset();\n return (msDelta - tzMinuteDelta * durationMinute) / durationWeek;\n }\n\n return new CountableTimeInterval(floor, offset, count);\n}\n\nvar sunday = weekday$1(0);\nvar monday = weekday$1(1);\nweekday$1(2);\nweekday$1(3);\nvar thursday = weekday$1(4);\nweekday$1(5);\nweekday$1(6);\n\nfunction floor$3(date) {\n date.setDate(1);\n date.setHours(0, 0, 0, 0);\n}\n\nfunction offset$3(date, months) {\n date.setMonth(date.getMonth() + months);\n}\n\nfunction count$3(start, end) {\n return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;\n}\n\nfunction field$3(date) {\n return date.getMonth();\n}\n\nvar month = new CountableTimeInterval(floor$3, offset$3, count$3, field$3);\n\nfunction floor$2(date) {\n date.setMonth(0, 1);\n date.setHours(0, 0, 0, 0);\n}\n\nfunction offset$2(date, years) {\n date.setFullYear(date.getFullYear() + years);\n}\n\nfunction count$2(start, end) {\n return end.getFullYear() - start.getFullYear();\n}\n\nfunction field$2(date) {\n return date.getFullYear();\n}\n\nvar year = new CountableTimeInterval(floor$2, offset$2, count$2, field$2);\n\nfunction ascending(a, b) {\n return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n\nfunction complexBisectRight(list, x, map, lo, hi) {\n if (lo === void 0) {\n lo = 0;\n }\n\n if (hi === void 0) {\n hi = list.length;\n }\n\n var comparator = ascendingComparator(map);\n\n while (lo < hi) {\n var mid = lo + hi >>> 1;\n\n if (comparator(list[mid], x) < 0) {\n lo = mid + 1;\n } else {\n hi = mid;\n }\n }\n\n return lo;\n}\n\nfunction ascendingComparator(map) {\n return function (item, x) {\n return ascending(map(item), x);\n };\n}\n\nfunction floor$1(date) {\n date.setUTCHours(0, 0, 0, 0);\n}\n\nfunction offset$1(date, days) {\n date.setUTCDate(date.getUTCDate() + days);\n}\n\nfunction count$1(start, end) {\n return (end.getTime() - start.getTime()) / durationDay;\n}\n\nfunction field$1(date) {\n return date.getUTCDate() - 1;\n}\n\nvar utcDay = new CountableTimeInterval(floor$1, offset$1, count$1, field$1);\n\nfunction floor(date) {\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n}\n\nfunction offset(date, years) {\n date.setUTCFullYear(date.getUTCFullYear() + years);\n}\n\nfunction count(start, end) {\n return end.getUTCFullYear() - start.getUTCFullYear();\n}\n\nfunction field(date) {\n return date.getUTCFullYear();\n}\n\nvar utcYear = new CountableTimeInterval(floor, offset, count, field); // Set date to n-th day of the week.\n\nfunction weekday(n) {\n // Sets the `date` to the start of the `n`-th day of the current week.\n // n == 0 is Sunday.\n function floor(date) {\n date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - n) % 7);\n date.setHours(0, 0, 0, 0); // h, m, s, ms\n } // Offset the date by the given number of weeks.\n\n\n function offset(date, weeks) {\n date.setUTCDate(date.getUTCDate() + weeks * 7);\n } // Count the number of weeks between the start and end dates.\n\n\n function count(start, end) {\n return (end.getTime() - start.getTime()) / durationWeek;\n }\n\n return new CountableTimeInterval(floor, offset, count);\n}\n\nvar utcSunday = weekday(0);\nvar utcMonday = weekday(1);\nweekday(2);\nweekday(3);\nvar utcThursday = weekday(4);\nweekday(5);\nweekday(6);\n\nfunction localDate(d) {\n // For JS Dates the [0, 100) interval is a time warp, a fast forward to the 20th century.\n // For example, -1 is -0001 BC, 0 is already 1900 AD.\n if (d.y >= 0 && d.y < 100) {\n var date = new Date(-1, d.m, d.d, d.H, d.M, d.S, d.L);\n date.setFullYear(d.y);\n return date;\n }\n\n return new Date(d.y, d.m, d.d, d.H, d.M, d.S, d.L);\n}\n\nfunction utcDate(d) {\n if (d.y >= 0 && d.y < 100) {\n var date = new Date(Date.UTC(-1, d.m, d.d, d.H, d.M, d.S, d.L));\n date.setUTCFullYear(d.y);\n return date;\n }\n\n return new Date(Date.UTC(d.y, d.m, d.d, d.H, d.M, d.S, d.L));\n}\n/**\n * Creates a lookup map for array of names to go from a name to index.\n * @param names\n */\n\n\nfunction formatLookup(names) {\n var map = {};\n\n for (var i = 0, n = names.length; i < n; i++) {\n map[names[i].toLowerCase()] = i;\n }\n\n return map;\n}\n\nfunction newYear(y) {\n return {\n y: y,\n m: 0,\n d: 1,\n H: 0,\n M: 0,\n S: 0,\n L: 0\n };\n}\n\nvar percentCharCode = 37;\nvar numberRe = /^\\s*\\d+/; // ignores next directive\n\nvar percentRe = /^%/;\nvar requoteRe = /[\\\\^$*+?|[\\]().{}]/g;\n/**\n * Prepends any character in the `requoteRe` set with a backslash.\n * @param s\n */\n\nvar requote = function requote(s) {\n return s.replace(requoteRe, '\\\\$&');\n}; // $& - matched substring\n\n/**\n * Returns a RegExp that matches any string that starts with any of the given names (case insensitive).\n * @param names\n */\n\n\nvar formatRe = function formatRe(names) {\n return new RegExp('^(?:' + names.map(requote).join('|') + ')', 'i');\n}; // A map of padding modifiers to padding strings. Default is `0`.\n\n\nvar pads = {\n '-': '',\n '_': ' ',\n '0': '0'\n};\n\nfunction pad(value, fill, width) {\n var sign = value < 0 ? '-' : '';\n var string = String(sign ? -value : value);\n var length = string.length;\n return sign + (length < width ? new Array(width - length + 1).join(fill) + string : string);\n}\n/**\n * Create a new time-locale-based object which exposes time-formatting\n * methods for the specified locale definition.\n *\n * @param timeLocale A time locale definition.\n */\n\n\nfunction formatLocale(timeLocale) {\n var lDateTime = timeLocale.dateTime;\n var lDate = timeLocale.date;\n var lTime = timeLocale.time;\n var lPeriods = timeLocale.periods;\n var lWeekdays = timeLocale.days;\n var lShortWeekdays = timeLocale.shortDays;\n var lMonths = timeLocale.months;\n var lShortMonths = timeLocale.shortMonths;\n var periodRe = formatRe(lPeriods);\n var periodLookup = formatLookup(lPeriods);\n var weekdayRe = formatRe(lWeekdays);\n var weekdayLookup = formatLookup(lWeekdays);\n var shortWeekdayRe = formatRe(lShortWeekdays);\n var shortWeekdayLookup = formatLookup(lShortWeekdays);\n var monthRe = formatRe(lMonths);\n var monthLookup = formatLookup(lMonths);\n var shortMonthRe = formatRe(lShortMonths);\n var shortMonthLookup = formatLookup(lShortMonths);\n var formats = {\n 'a': formatShortWeekday,\n 'A': formatWeekday,\n 'b': formatShortMonth,\n 'B': formatMonth,\n 'c': undefined,\n 'd': formatDayOfMonth,\n 'e': formatDayOfMonth,\n 'f': formatMicroseconds,\n 'H': formatHour24,\n 'I': formatHour12,\n 'j': formatDayOfYear,\n 'L': formatMilliseconds,\n 'm': formatMonthNumber,\n 'M': formatMinutes,\n 'p': formatPeriod,\n 'Q': formatUnixTimestamp,\n 's': formatUnixTimestampSeconds,\n 'S': formatSeconds,\n 'u': formatWeekdayNumberMonday,\n 'U': formatWeekNumberSunday,\n 'V': formatWeekNumberISO,\n 'w': formatWeekdayNumberSunday,\n 'W': formatWeekNumberMonday,\n 'x': undefined,\n 'X': undefined,\n 'y': formatYear,\n 'Y': formatFullYear,\n 'Z': formatZone,\n '%': formatLiteralPercent\n };\n var utcFormats = {\n 'a': formatUTCShortWeekday,\n 'A': formatUTCWeekday,\n 'b': formatUTCShortMonth,\n 'B': formatUTCMonth,\n 'c': undefined,\n 'd': formatUTCDayOfMonth,\n 'e': formatUTCDayOfMonth,\n 'f': formatUTCMicroseconds,\n 'H': formatUTCHour24,\n 'I': formatUTCHour12,\n 'j': formatUTCDayOfYear,\n 'L': formatUTCMilliseconds,\n 'm': formatUTCMonthNumber,\n 'M': formatUTCMinutes,\n 'p': formatUTCPeriod,\n 'Q': formatUnixTimestamp,\n 's': formatUnixTimestampSeconds,\n 'S': formatUTCSeconds,\n 'u': formatUTCWeekdayNumberMonday,\n 'U': formatUTCWeekNumberSunday,\n 'V': formatUTCWeekNumberISO,\n 'w': formatUTCWeekdayNumberSunday,\n 'W': formatUTCWeekNumberMonday,\n 'x': undefined,\n 'X': undefined,\n 'y': formatUTCYear,\n 'Y': formatUTCFullYear,\n 'Z': formatUTCZone,\n '%': formatLiteralPercent\n };\n var parses = {\n 'a': parseShortWeekday,\n 'A': parseWeekday,\n 'b': parseShortMonth,\n 'B': parseMonth,\n 'c': parseLocaleDateTime,\n 'd': parseDayOfMonth,\n 'e': parseDayOfMonth,\n 'f': parseMicroseconds,\n 'H': parseHour24,\n 'I': parseHour24,\n 'j': parseDayOfYear,\n 'L': parseMilliseconds,\n 'm': parseMonthNumber,\n 'M': parseMinutes,\n 'p': parsePeriod,\n 'Q': parseUnixTimestamp,\n 's': parseUnixTimestampSeconds,\n 'S': parseSeconds,\n 'u': parseWeekdayNumberMonday,\n 'U': parseWeekNumberSunday,\n 'V': parseWeekNumberISO,\n 'w': parseWeekdayNumberSunday,\n 'W': parseWeekNumberMonday,\n 'x': parseLocaleDate,\n 'X': parseLocaleTime,\n 'y': parseYear,\n 'Y': parseFullYear,\n 'Z': parseZone,\n '%': parseLiteralPercent\n }; // Recursive definitions.\n\n formats.x = newFormat(lDate, formats);\n formats.X = newFormat(lTime, formats);\n formats.c = newFormat(lDateTime, formats);\n utcFormats.x = newFormat(lDate, utcFormats);\n utcFormats.X = newFormat(lTime, utcFormats);\n utcFormats.c = newFormat(lDateTime, utcFormats);\n\n function newParse(specifier, newDate) {\n return function (str) {\n var d = newYear(1900);\n var i = parseSpecifier(d, specifier, str += '', 0);\n\n if (i != str.length) {\n return undefined;\n } // If a UNIX timestamp is specified, return it.\n\n\n if ('Q' in d) {\n return new Date(d.Q);\n } // The am-pm flag is 0 for AM, and 1 for PM.\n\n\n if ('p' in d) {\n d.H = d.H % 12 + d.p * 12;\n } // Convert day-of-week and week-of-year to day-of-year.\n\n\n if ('V' in d) {\n if (d.V < 1 || d.V > 53) {\n return undefined;\n }\n\n if (!('w' in d)) {\n d.w = 1;\n }\n\n if ('Z' in d) {\n var week = utcDate(newYear(d.y));\n var day$1 = week.getUTCDay();\n week = day$1 > 4 || day$1 === 0 ? utcMonday.ceil(week) : utcMonday.floor(week);\n week = utcDay.offset(week, (d.V - 1) * 7);\n d.y = week.getUTCFullYear();\n d.m = week.getUTCMonth();\n d.d = week.getUTCDate() + (d.w + 6) % 7;\n } else {\n var week = newDate(newYear(d.y));\n var day$1 = week.getDay();\n week = day$1 > 4 || day$1 === 0 ? monday.ceil(week) : monday.floor(week);\n week = day.offset(week, (d.V - 1) * 7);\n d.y = week.getFullYear();\n d.m = week.getMonth();\n d.d = week.getDate() + (d.w + 6) % 7;\n }\n } else if ('W' in d || 'U' in d) {\n if (!('w' in d)) {\n d.w = 'u' in d ? d.u % 7 : 'W' in d ? 1 : 0;\n }\n\n var day$1 = 'Z' in d ? utcDate(newYear(d.y)).getUTCDay() : newDate(newYear(d.y)).getDay();\n d.m = 0;\n d.d = 'W' in d ? (d.w + 6) % 7 + d.W * 7 - (day$1 + 5) % 7 : d.w + d.U * 7 - (day$1 + 6) % 7;\n } // If a time zone is specified, all fields are interpreted as UTC and then\n // offset according to the specified time zone.\n\n\n if ('Z' in d) {\n d.H += d.Z / 100 | 0;\n d.M += d.Z % 100;\n return utcDate(d);\n } // Otherwise, all fields are in local time.\n\n\n return newDate(d);\n };\n }\n /**\n * Creates a new function that formats the given Date or timestamp according to specifier.\n * @param specifier\n * @param formats\n */\n\n\n function newFormat(specifier, formats) {\n return function (date) {\n var string = [];\n var n = specifier.length;\n var i = -1;\n var j = 0;\n\n if (!(date instanceof Date)) {\n date = new Date(+date);\n }\n\n while (++i < n) {\n if (specifier.charCodeAt(i) === percentCharCode) {\n string.push(specifier.slice(j, i)); // copy the chunks of specifier with no directives as is\n\n var c = specifier.charAt(++i);\n var pad_1 = pads[c];\n\n if (pad_1 != undefined) {\n // if format directive has a padding modifier in front of it\n c = specifier.charAt(++i); // fetch the directive itself\n } else {\n pad_1 = c === 'e' ? ' ' : '0'; // use the default padding modifier\n }\n\n var format = formats[c];\n\n if (format) {\n // if the directive has a corresponding formatting function\n c = format(date, pad_1); // replace the directive with the formatted date\n }\n\n string.push(c);\n j = i + 1;\n }\n }\n\n string.push(specifier.slice(j, i));\n return string.join('');\n };\n } // Simultaneously walks over the specifier and the parsed string, populating the `d` map with parsed values.\n // The returned number is expected to equal the length of the parsed `string`, if parsing succeeded.\n\n\n function parseSpecifier(d, specifier, string, j) {\n // i - `specifier` string index\n // j - parsed `string` index\n var i = 0;\n var n = specifier.length;\n var m = string.length;\n\n while (i < n) {\n if (j >= m) {\n return -1;\n }\n\n var code = specifier.charCodeAt(i++);\n\n if (code === percentCharCode) {\n var char = specifier.charAt(i++);\n var parse = parses[char in pads ? specifier.charAt(i++) : char];\n\n if (!parse || (j = parse(d, string, j)) < 0) {\n return -1;\n }\n } else if (code != string.charCodeAt(j++)) {\n return -1;\n }\n }\n\n return j;\n } // ----------------------------- formats ----------------------------------\n\n\n function formatMicroseconds(date, fill) {\n return formatMilliseconds(date, fill) + '000';\n }\n\n function formatMilliseconds(date, fill) {\n return pad(date.getMilliseconds(), fill, 3);\n }\n\n function formatSeconds(date, fill) {\n return pad(date.getSeconds(), fill, 2);\n }\n\n function formatMinutes(date, fill) {\n return pad(date.getMinutes(), fill, 2);\n }\n\n function formatHour12(date, fill) {\n return pad(date.getHours() % 12 || 12, fill, 2);\n }\n\n function formatHour24(date, fill) {\n return pad(date.getHours(), fill, 2);\n }\n\n function formatPeriod(date) {\n return lPeriods[date.getHours() >= 12 ? 1 : 0];\n }\n\n function formatShortWeekday(date) {\n return lShortWeekdays[date.getDay()];\n }\n\n function formatWeekday(date) {\n return lWeekdays[date.getDay()];\n }\n\n function formatWeekdayNumberMonday(date) {\n var dayOfWeek = date.getDay();\n return dayOfWeek === 0 ? 7 : dayOfWeek;\n }\n\n function formatWeekNumberSunday(date, fill) {\n return pad(sunday.count(year.floor(date), date), fill, 2);\n }\n\n function formatWeekNumberISO(date, fill) {\n var day = date.getDay();\n date = day >= 4 || day === 0 ? thursday.floor(date) : thursday.ceil(date);\n var yearStart = year.floor(date);\n return pad(thursday.count(yearStart, date) + (yearStart.getDay() === 4 ? 1 : 0), fill, 2);\n }\n\n function formatWeekdayNumberSunday(date) {\n return date.getDay();\n }\n\n function formatWeekNumberMonday(date, fill) {\n return pad(monday.count(year.floor(date), date), fill, 2);\n }\n\n function formatDayOfMonth(date, fill) {\n return pad(date.getDate(), fill, 2);\n }\n\n function formatDayOfYear(date, fill) {\n return pad(1 + day.count(year.floor(date), date), fill, 3);\n }\n\n function formatShortMonth(date) {\n return lShortMonths[date.getMonth()];\n }\n\n function formatMonth(date) {\n return lMonths[date.getMonth()];\n }\n\n function formatMonthNumber(date, fill) {\n return pad(date.getMonth() + 1, fill, 2);\n }\n\n function formatYear(date, fill) {\n return pad(date.getFullYear() % 100, fill, 2);\n }\n\n function formatFullYear(date, fill) {\n return pad(date.getFullYear() % 10000, fill, 4);\n }\n\n function formatZone(date) {\n var z = date.getTimezoneOffset();\n return (z > 0 ? '-' : (z *= -1, '+')) + pad(Math.floor(z / 60), '0', 2) + pad(z % 60, '0', 2);\n } // -------------------------- UTC formats -----------------------------------\n\n\n function formatUTCMicroseconds(date, fill) {\n return formatUTCMilliseconds(date, fill) + '000';\n }\n\n function formatUTCMilliseconds(date, fill) {\n return pad(date.getUTCMilliseconds(), fill, 3);\n }\n\n function formatUTCSeconds(date, fill) {\n return pad(date.getUTCSeconds(), fill, 2);\n }\n\n function formatUTCMinutes(date, fill) {\n return pad(date.getUTCMinutes(), fill, 2);\n }\n\n function formatUTCHour12(date, fill) {\n return pad(date.getUTCHours() % 12 || 12, fill, 2);\n }\n\n function formatUTCHour24(date, fill) {\n return pad(date.getUTCHours(), fill, 2);\n }\n\n function formatUTCPeriod(date) {\n return lPeriods[date.getUTCHours() >= 12 ? 1 : 0];\n }\n\n function formatUTCDayOfMonth(date, fill) {\n return pad(date.getUTCDate(), fill, 2);\n }\n\n function formatUTCDayOfYear(date, fill) {\n return pad(1 + utcDay.count(utcYear.floor(date), date), fill, 3);\n }\n\n function formatUTCMonthNumber(date, fill) {\n return pad(date.getUTCMonth() + 1, fill, 2);\n }\n\n function formatUTCShortMonth(date) {\n return lShortMonths[date.getUTCMonth()];\n }\n\n function formatUTCMonth(date) {\n return lMonths[date.getUTCMonth()];\n }\n\n function formatUTCShortWeekday(date) {\n return lShortWeekdays[date.getUTCDay()];\n }\n\n function formatUTCWeekday(date) {\n return lWeekdays[date.getUTCDay()];\n }\n\n function formatUTCWeekdayNumberMonday(date) {\n var dayOfWeek = date.getUTCDay();\n return dayOfWeek === 0 ? 7 : dayOfWeek;\n }\n\n function formatUTCWeekNumberSunday(date, fill) {\n return pad(utcSunday.count(utcYear.floor(date), date), fill, 2);\n }\n\n function formatUTCWeekNumberISO(date, fill) {\n var day = date.getUTCDay();\n date = day >= 4 || day === 0 ? utcThursday.floor(date) : utcThursday.ceil(date);\n var yearStart = utcYear.floor(date);\n return pad(utcThursday.count(yearStart, date) + (yearStart.getUTCDay() === 4 ? 1 : 0), fill, 4);\n }\n\n function formatUTCWeekdayNumberSunday(date) {\n return date.getUTCDay();\n }\n\n function formatUTCWeekNumberMonday(date, fill) {\n return pad(utcMonday.count(utcYear.floor(date), date), fill, 2);\n }\n\n function formatUTCYear(date, fill) {\n return pad(date.getUTCFullYear() % 100, fill, 2);\n }\n\n function formatUTCFullYear(date, fill) {\n return pad(date.getUTCFullYear() % 10000, fill, 4);\n }\n\n function formatUTCZone() {\n return '+0000';\n }\n\n function formatLiteralPercent(date) {\n return '%';\n }\n\n function formatUnixTimestamp(date) {\n return date.getTime();\n }\n\n function formatUnixTimestampSeconds(date) {\n return Math.floor(date.getTime() / 1000);\n } // ------------------------------- parsers ------------------------------------\n\n\n function parseMicroseconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 6));\n return n ? (d.L = Math.floor(parseFloat(n[0]) / 1000), i + n[0].length) : -1;\n }\n\n function parseMilliseconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 3));\n return n ? (d.L = +n[0], i + n[0].length) : -1;\n }\n\n function parseSeconds(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.S = +n[0], i + n[0].length) : -1;\n }\n\n function parseMinutes(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.M = +n[0], i + n[0].length) : -1;\n }\n\n function parseHour24(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.H = +n[0], i + n[0].length) : -1;\n }\n\n function parsePeriod(d, string, i) {\n var n = periodRe.exec(string.slice(i));\n return n ? (d.p = periodLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseDayOfMonth(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.d = +n[0], i + n[0].length) : -1;\n }\n\n function parseDayOfYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 3));\n return n ? (d.m = 0, d.d = +n[0], i + n[0].length) : -1;\n }\n\n function parseShortWeekday(d, string, i) {\n var n = shortWeekdayRe.exec(string.slice(i));\n return n ? (d.w = shortWeekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseWeekday(d, string, i) {\n var n = weekdayRe.exec(string.slice(i));\n return n ? (d.w = weekdayLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseWeekdayNumberMonday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.u = +n[0], i + n[0].length) : -1;\n }\n\n function parseWeekNumberSunday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.U = +n[0], i + n[0].length) : -1;\n }\n\n function parseWeekNumberISO(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.V = +n[0], i + n[0].length) : -1;\n }\n\n function parseWeekNumberMonday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.W = +n[0], i + n[0].length) : -1;\n }\n\n function parseWeekdayNumberSunday(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 1));\n return n ? (d.w = +n[0], i + n[0].length) : -1;\n }\n\n function parseShortMonth(d, string, i) {\n var n = shortMonthRe.exec(string.slice(i));\n return n ? (d.m = shortMonthLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseMonth(d, string, i) {\n var n = monthRe.exec(string.slice(i));\n return n ? (d.m = monthLookup[n[0].toLowerCase()], i + n[0].length) : -1;\n }\n\n function parseMonthNumber(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.m = parseFloat(n[0]) - 1, i + n[0].length) : -1;\n }\n\n function parseLocaleDateTime(d, string, i) {\n return parseSpecifier(d, lDateTime, string, i);\n }\n\n function parseLocaleDate(d, string, i) {\n return parseSpecifier(d, lDate, string, i);\n }\n\n function parseLocaleTime(d, string, i) {\n return parseSpecifier(d, lTime, string, i);\n }\n\n function parseUnixTimestamp(d, string, i) {\n var n = numberRe.exec(string.slice(i));\n return n ? (d.Q = +n[0], i + n[0].length) : -1;\n }\n\n function parseUnixTimestampSeconds(d, string, i) {\n var n = numberRe.exec(string.slice(i));\n return n ? (d.Q = +n[0] * 1000, i + n[0].length) : -1;\n }\n\n function parseYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 2));\n return n ? (d.y = +n[0] + (+n[0] > 68 ? 1900 : 2000), i + n[0].length) : -1;\n }\n\n function parseFullYear(d, string, i) {\n var n = numberRe.exec(string.slice(i, i + 4));\n return n ? (d.y = +n[0], i + n[0].length) : -1;\n }\n\n function parseZone(d, string, i) {\n var n = /^(Z)|^([+-]\\d\\d)(?::?(\\d\\d))?/.exec(string.slice(i, i + 6));\n return n ? (d.Z = n[1] ? 0 : -(n[2] + (n[3] || '00')), i + n[0].length) : -1;\n }\n\n function parseLiteralPercent(d, string, i) {\n var n = percentRe.exec(string.slice(i, i + 1));\n return n ? i + n[0].length : -1;\n }\n\n return {\n format: function format(specifier) {\n var f = newFormat(specifier, formats);\n\n f.toString = function () {\n return specifier;\n };\n\n return f;\n },\n parse: function parse(specifier) {\n var p = newParse(specifier, localDate);\n\n p.toString = function () {\n return specifier;\n };\n\n return p;\n },\n utcFormat: function utcFormat(specifier) {\n var f = newFormat(specifier, utcFormats);\n\n f.toString = function () {\n return specifier;\n };\n\n return f;\n },\n utcParse: function utcParse(specifier) {\n var p = newParse(specifier, utcDate);\n\n p.toString = function () {\n return specifier;\n };\n\n return p;\n }\n };\n}\n\nvar locale;\nsetDefaultLocale({\n dateTime: '%x, %X',\n date: '%-m/%-d/%Y',\n time: '%-I:%M:%S %p',\n periods: ['AM', 'PM'],\n days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],\n shortDays: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],\n shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']\n});\n\nfunction setDefaultLocale(definition) {\n return locale = formatLocale(definition);\n}\n\nvar __extends$h = undefined && undefined.__extends || function () {\n var _extendStatics203 = function extendStatics(d, b) {\n _extendStatics203 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics203(d, b);\n };\n\n return function (d, b) {\n _extendStatics203(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __read = undefined && undefined.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar TimeScale =\n/** @class */\nfunction (_super) {\n __extends$h(TimeScale, _super);\n\n function TimeScale() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'time';\n _this.year = year;\n _this.month = month;\n _this.week = sunday;\n _this.day = day;\n _this.hour = hour;\n _this.minute = minute;\n _this.second = second;\n _this.millisecond = millisecond;\n _this.format = locale.format;\n /**\n * Array of default tick intervals in the following format:\n *\n * [\n * interval (unit of time),\n * number of units (step),\n * the length of that number of units in milliseconds\n * ]\n */\n\n _this.tickIntervals = [[_this.second, 1, durationSecond], [_this.second, 5, 5 * durationSecond], [_this.second, 15, 15 * durationSecond], [_this.second, 30, 30 * durationSecond], [_this.minute, 1, durationMinute], [_this.minute, 5, 5 * durationMinute], [_this.minute, 15, 15 * durationMinute], [_this.minute, 30, 30 * durationMinute], [_this.hour, 1, durationHour], [_this.hour, 3, 3 * durationHour], [_this.hour, 6, 6 * durationHour], [_this.hour, 12, 12 * durationHour], [_this.day, 1, durationDay], [_this.day, 2, 2 * durationDay], [_this.week, 1, durationWeek], [_this.month, 1, durationMonth], [_this.month, 3, 3 * durationMonth], [_this.year, 1, durationYear]];\n _this.formatMillisecond = _this.format('.%L');\n _this.formatSecond = _this.format(':%S');\n _this.formatMinute = _this.format('%I:%M');\n _this.formatHour = _this.format('%I %p');\n _this.formatDay = _this.format('%a %d');\n _this.formatWeek = _this.format('%b %d');\n _this.formatMonth = _this.format('%B');\n _this.formatYear = _this.format('%Y');\n _this._domain = [new Date(2000, 0, 1), new Date(2000, 0, 2)];\n return _this;\n }\n\n TimeScale.prototype.defaultTickFormat = function (date) {\n return (this.second.floor(date) < date ? this.formatMillisecond : this.minute.floor(date) < date ? this.formatSecond : this.hour.floor(date) < date ? this.formatMinute : this.day.floor(date) < date ? this.formatHour : this.month.floor(date) < date ? this.week.floor(date) < date ? this.formatDay : this.formatWeek : this.year.floor(date) < date ? this.formatMonth : this.formatYear)(date);\n };\n /**\n *\n * @param interval If the `interval` is a number, it's interpreted as the desired tick count\n * and the method tries to pick an appropriate interval automatically, based on the extent of the domain.\n * If the `interval` is `undefined`, it defaults to `10`.\n * If the `interval` is a time interval, simply use it.\n * @param start The start time (timestamp).\n * @param stop The end time (timestamp).\n * @param step Number of intervals between ticks.\n */\n\n\n TimeScale.prototype.tickInterval = function (interval, start, stop, step) {\n var _a;\n\n if (typeof interval === 'number') {\n var tickCount = interval;\n var tickIntervals = this.tickIntervals;\n var target = Math.abs(stop - start) / tickCount;\n var i = complexBisectRight(tickIntervals, target, function (interval) {\n return interval[2];\n });\n\n if (i === tickIntervals.length) {\n step = tickStep(start / durationYear, stop / durationYear, tickCount);\n interval = this.year;\n } else if (i) {\n _a = __read(tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i], 2), interval = _a[0], step = _a[1];\n } else {\n step = Math.max(tickStep(start, stop, interval), 1);\n interval = this.millisecond;\n }\n }\n\n return step == undefined ? interval : interval.every(step);\n };\n\n Object.defineProperty(TimeScale.prototype, \"domain\", {\n get: function get() {\n return _super.prototype.getDomain.call(this).map(function (t) {\n return new Date(t);\n });\n },\n set: function set(values) {\n _super.prototype.setDomain.call(this, Array.prototype.map.call(values, function (t) {\n return t instanceof Date ? +t : +new Date(+t);\n }));\n },\n enumerable: true,\n configurable: true\n });\n\n TimeScale.prototype.invert = function (y) {\n return new Date(_super.prototype.invert.call(this, y));\n };\n /**\n * Returns uniformly-spaced dates that represent the scale's domain.\n * @param interval The desired tick count or a time interval object.\n */\n\n\n TimeScale.prototype.ticks = function (interval) {\n if (interval === void 0) {\n interval = 10;\n }\n\n var d = _super.prototype.getDomain.call(this);\n\n var t0 = d[0];\n var t1 = d[d.length - 1];\n var reverse = t1 < t0;\n\n if (reverse) {\n var _ = t0;\n t0 = t1;\n t1 = _;\n }\n\n var t = this.tickInterval(interval, t0, t1);\n var i = t ? t.range(t0, t1 + 1) : []; // inclusive stop\n\n return reverse ? i.reverse() : i;\n };\n /**\n * Returns a time format function suitable for displaying tick values.\n * @param count Ignored. Used only to satisfy the {@link Scale} interface.\n * @param specifier If the specifier string is provided, this method is equivalent to\n * the {@link TimeLocaleObject.format} method.\n * If no specifier is provided, this method returns the default time format function.\n */\n\n\n TimeScale.prototype.tickFormat = function (_count, specifier) {\n return specifier == undefined ? this.defaultTickFormat.bind(this) : this.format(specifier);\n };\n /**\n * Extends the domain so that it starts and ends on nice round values.\n * This method typically modifies the scale’s domain, and may only extend the bounds to the nearest round value.\n * @param interval\n */\n\n\n TimeScale.prototype.nice = function (interval) {\n if (interval === void 0) {\n interval = 10;\n }\n\n var d = _super.prototype.getDomain.call(this);\n\n var i = this.tickInterval(interval, d[0], d[d.length - 1]);\n\n if (i) {\n this.domain = this._nice(d, i);\n }\n };\n\n TimeScale.prototype._nice = function (domain, interval) {\n var _a, _b;\n\n domain = domain.slice();\n var i0 = 0;\n var i1 = domain.length - 1;\n var x0 = domain[i0];\n var x1 = domain[i1];\n\n if (x1 < x0) {\n _a = __read([i1, i0], 2), i0 = _a[0], i1 = _a[1];\n _b = __read([x1, x0], 2), x0 = _b[0], x1 = _b[1];\n }\n\n domain[i0] = interval.floor(x0);\n domain[i1] = interval.ceil(x1);\n return domain;\n };\n\n return TimeScale;\n}(ContinuousScale);\n\nundefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nfunction identity(value) {\n return value;\n}\n\nfunction extent(values, predicate, map) {\n var transform = map || identity;\n var n = values.length;\n var i = -1;\n var value;\n var min;\n var max;\n\n while (++i < n) {\n // Find the first value.\n value = values[i];\n\n if (predicate(value)) {\n min = max = value;\n\n while (++i < n) {\n // Compare the remaining values.\n value = values[i];\n\n if (predicate(value)) {\n if (min > value) {\n min = value;\n }\n\n if (max < value) {\n max = value;\n }\n }\n }\n }\n }\n\n return min === undefined || max === undefined ? undefined : [transform(min), transform(max)];\n}\n\nvar __extends$g = undefined && undefined.__extends || function () {\n var _extendStatics204 = function extendStatics(d, b) {\n _extendStatics204 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics204(d, b);\n };\n\n return function (d, b) {\n _extendStatics204(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __values = undefined && undefined.__values || function (o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n\nvar SparklineAxis =\n/** @class */\nfunction (_super) {\n __extends$g(SparklineAxis, _super);\n\n function SparklineAxis() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = 'category';\n _this.stroke = 'rgb(204, 214, 235)';\n _this.strokeWidth = 1;\n return _this;\n }\n\n return SparklineAxis;\n}(Observable);\n\nvar Sparkline =\n/** @class */\nfunction (_super) {\n __extends$g(Sparkline, _super);\n\n function Sparkline() {\n var _this = _super.call(this) || this;\n\n _this.id = createId(_this);\n _this.seriesRect = {\n x: 0,\n y: 0,\n width: 0,\n height: 0\n };\n _this._context = undefined;\n _this._container = undefined;\n _this._data = undefined;\n _this.padding = new Padding(3);\n _this.xKey = 'x';\n _this.yKey = 'y';\n _this.dataType = undefined;\n _this.xData = [];\n _this.yData = []; // Minimum y value in provided data.\n\n _this.min = undefined; // Maximum y value in provided data.\n\n _this.max = undefined;\n _this.yScale = new LinearScale();\n _this.axis = new SparklineAxis();\n _this.highlightStyle = {\n size: 6,\n fill: 'yellow',\n stroke: 'silver',\n strokeWidth: 1\n };\n _this._width = 100;\n _this._height = 100;\n _this.smallestInterval = undefined;\n _this.layoutId = 0;\n _this.defaultDateFormatter = locale.format('%m/%d/%y, %H:%M:%S');\n _this._onMouseMove = _this.onMouseMove.bind(_this);\n _this._onMouseOut = _this.onMouseOut.bind(_this);\n var root = new Group();\n _this.rootGroup = root;\n var element = document.createElement('div');\n element.setAttribute('class', 'ag-sparkline-wrapper');\n var scene = new Scene(document);\n _this.scene = scene;\n _this.canvasElement = scene.canvas.element;\n scene.root = root;\n scene.container = element;\n scene.resize(_this.width, _this.height);\n _this.seriesRect.width = _this.width;\n _this.seriesRect.height = _this.height; // one style element for tooltip styles per document\n\n if (Sparkline.tooltipDocuments.indexOf(document) === -1) {\n var styleElement = document.createElement('style');\n styleElement.innerHTML = defaultTooltipCss;\n document.head.insertBefore(styleElement, document.head.querySelector('style'));\n Sparkline.tooltipDocuments.push(document);\n }\n\n _this.setupDomEventListeners(_this.scene.canvas.element);\n\n return _this;\n }\n\n Object.defineProperty(Sparkline.prototype, \"context\", {\n get: function get() {\n return this._context;\n },\n set: function set(value) {\n if (this._context !== value) {\n this._context = value;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Sparkline.prototype, \"container\", {\n get: function get() {\n return this._container;\n },\n set: function set(value) {\n if (this._container !== value) {\n var parentNode = this.canvasElement.parentNode;\n\n if (parentNode != null) {\n parentNode.removeChild(this.canvasElement);\n }\n\n if (value) {\n value.appendChild(this.canvasElement);\n }\n\n this._container = value;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Sparkline.prototype, \"data\", {\n get: function get() {\n return this._data;\n },\n set: function set(value) {\n if (this._data !== value) {\n this._data = value;\n this.processData();\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Sparkline.prototype, \"width\", {\n get: function get() {\n return this._width;\n },\n set: function set(value) {\n if (this._width !== value) {\n this._width = value;\n this.scene.resize(value, this.height);\n this.scheduleLayout();\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Sparkline.prototype, \"height\", {\n get: function get() {\n return this._height;\n },\n set: function set(value) {\n if (this._height !== value) {\n this._height = value;\n this.scene.resize(this.width, value);\n this.scheduleLayout();\n }\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Generate node data from processed data.\n * Produce data joins.\n * Update selection's nodes using node data.\n */\n\n Sparkline.prototype.update = function () {}; // Update y scale based on processed data.\n\n\n Sparkline.prototype.updateYScale = function () {\n this.updateYScaleRange();\n this.updateYScaleDomain();\n }; // Update y scale domain based on processed data.\n\n\n Sparkline.prototype.updateYScaleDomain = function () {}; // Update y scale range based on height and padding (seriesRect).\n\n\n Sparkline.prototype.updateYScaleRange = function () {\n var _a = this,\n yScale = _a.yScale,\n seriesRect = _a.seriesRect;\n\n yScale.range = [seriesRect.height, 0];\n }; // Update x scale based on processed data.\n\n\n Sparkline.prototype.updateXScale = function () {\n var type = this.axis.type;\n this.xScale = this.getXScale(type);\n this.updateXScaleRange();\n this.updateXScaleDomain();\n }; // Update x scale range based on width and padding (seriesRect).\n\n\n Sparkline.prototype.updateXScaleRange = function () {\n this.xScale.range = [0, this.seriesRect.width];\n }; // Update x scale domain based on processed data and type of scale.\n\n\n Sparkline.prototype.updateXScaleDomain = function () {\n var _a = this,\n xData = _a.xData,\n xScale = _a.xScale;\n\n var xMinMax;\n\n if (xScale instanceof LinearScale) {\n xMinMax = extent(xData, isNumber);\n } else if (xScale instanceof TimeScale) {\n xMinMax = extent(xData, isContinuous);\n }\n\n this.xScale.domain = xMinMax ? xMinMax.slice() : xData;\n };\n /**\n * Return xScale instance based on the provided type or return a `BandScale` by default.\n * The default type is `category`.\n * @param type\n */\n\n\n Sparkline.prototype.getXScale = function (type) {\n if (type === void 0) {\n type = 'category';\n }\n\n switch (type) {\n case 'number':\n return new LinearScale();\n\n case 'time':\n return new TimeScale();\n\n case 'category':\n default:\n return new BandScale();\n }\n }; // Update axis line.\n\n\n Sparkline.prototype.updateAxisLine = function () {}; // Update X and Y scales and the axis line.\n\n\n Sparkline.prototype.updateAxes = function () {\n this.updateYScale();\n this.updateXScale();\n this.updateAxisLine();\n }; // Update horizontal and vertical crosshair lines.\n\n\n Sparkline.prototype.updateCrosshairs = function () {\n this.updateXCrosshairLine();\n this.updateYCrosshairLine();\n }; // Using processed data, generate data that backs visible nodes.\n\n\n Sparkline.prototype.generateNodeData = function () {\n return [];\n }; // Returns persisted node data associated with the sparkline's data.\n\n\n Sparkline.prototype.getNodeData = function () {\n return [];\n }; // Update the selection's nodes.\n\n\n Sparkline.prototype.updateNodes = function () {}; // Update the vertical crosshair line.\n\n\n Sparkline.prototype.updateXCrosshairLine = function () {}; // Update the horizontal crosshair line.\n\n\n Sparkline.prototype.updateYCrosshairLine = function () {};\n\n Sparkline.prototype.highlightDatum = function (closestDatum) {\n this.updateNodes();\n };\n\n Sparkline.prototype.dehighlightDatum = function () {\n this.highlightedDatum = undefined;\n this.updateNodes();\n this.updateCrosshairs();\n };\n /**\n * Highlight closest datum and display tooltip if enabled.\n * Only update if necessary, i.e. only update if the highlighted datum is different from previously highlighted datum,\n * or if there is no previously highlighted datum.\n * @param event\n */\n\n\n Sparkline.prototype.onMouseMove = function (event) {\n var closestDatum = this.pickClosestSeriesNodeDatum(event.offsetX, event.offsetY);\n\n if (!closestDatum) {\n return;\n }\n\n var oldHighlightedDatum = this.highlightedDatum;\n this.highlightedDatum = closestDatum;\n\n if (this.highlightedDatum && !oldHighlightedDatum || this.highlightedDatum && oldHighlightedDatum && this.highlightedDatum !== oldHighlightedDatum) {\n this.highlightDatum(closestDatum);\n this.updateCrosshairs();\n }\n\n if (this.tooltip.enabled) {\n this.handleTooltip(event, closestDatum);\n }\n };\n /**\n * Dehighlight all nodes and remove tooltip.\n * @param event\n */\n\n\n Sparkline.prototype.onMouseOut = function (event) {\n this.dehighlightDatum();\n this.tooltip.toggle(false);\n }; // Fetch required values from the data object and process them.\n\n\n Sparkline.prototype.processData = function () {\n var _this = this;\n\n var _a = this,\n data = _a.data,\n yData = _a.yData,\n xData = _a.xData;\n\n if (!data || this.invalidData(this.data)) {\n return;\n }\n\n yData.length = 0;\n xData.length = 0;\n var n = data.length;\n var dataType = this.getDataType(data);\n this.dataType = dataType;\n var xValueType = this.axis.type;\n var xType = xValueType !== 'number' && xValueType !== 'time' ? 'category' : xValueType;\n var isContinuousX = xType === 'number' || xType === 'time';\n\n var setSmallestXInterval = function setSmallestXInterval(curr, prev) {\n if (_this.smallestInterval == undefined) {\n _this.smallestInterval = {\n x: Infinity,\n y: Infinity\n };\n }\n\n var x = _this.smallestInterval.x;\n var interval = Math.abs(curr - prev);\n\n if (interval > 0 && interval < x) {\n _this.smallestInterval.x = interval;\n }\n };\n\n var prevX;\n\n if (dataType === 'number') {\n for (var i = 0; i < n; i++) {\n var xDatum = i;\n var yDatum = data[i];\n var x = this.getDatum(xDatum, xType);\n var y = this.getDatum(yDatum, 'number');\n\n if (isContinuousX) {\n setSmallestXInterval(x, prevX);\n }\n\n xData.push(x);\n yData.push(y);\n prevX = x;\n }\n } else if (dataType === 'array') {\n for (var i = 0; i < n; i++) {\n var datum = data[i];\n\n if (Array.isArray(datum)) {\n var xDatum = datum[0];\n var yDatum = datum[1];\n var x = this.getDatum(xDatum, xType);\n var y = this.getDatum(yDatum, 'number');\n\n if (x == undefined) {\n continue;\n }\n\n if (isContinuousX) {\n setSmallestXInterval(x, prevX);\n }\n\n xData.push(x);\n yData.push(y);\n prevX = x;\n }\n }\n } else if (dataType === 'object') {\n var _b = this,\n yKey = _b.yKey,\n xKey = _b.xKey;\n\n for (var i = 0; i < n; i++) {\n var datum = data[i];\n\n if (typeof datum === 'object' && !Array.isArray(datum)) {\n var xDatum = datum[xKey];\n var yDatum = datum[yKey];\n var x = this.getDatum(xDatum, xType);\n var y = this.getDatum(yDatum, 'number');\n\n if (x == undefined) {\n continue;\n }\n\n if (isContinuousX) {\n setSmallestXInterval(x, prevX);\n }\n\n xData.push(x);\n yData.push(y);\n prevX = x;\n }\n }\n } // update axes\n\n\n this.updateAxes(); // produce data joins and update selection's nodes\n\n this.update();\n };\n /**\n * Return the type of data provided to the sparkline based on the first truthy value in the data array.\n * If the value is not a number, array or object, return `undefined`.\n * @param data\n */\n\n\n Sparkline.prototype.getDataType = function (data) {\n var e_1, _a;\n\n try {\n for (var data_1 = __values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {\n var datum = data_1_1.value;\n\n if (datum != undefined) {\n if (isNumber(datum)) {\n return 'number';\n } else if (Array.isArray(datum)) {\n return 'array';\n } else if (typeof datum === 'object') {\n return 'object';\n }\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (data_1_1 && !data_1_1.done && (_a = data_1.return)) _a.call(data_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n };\n /**\n * Return the given value depending on the type of axis.\n * Return `undefined` if the value is invalid for the given axis type.\n * @param value\n */\n\n\n Sparkline.prototype.getDatum = function (value, type) {\n if (type === 'number' && isNumber(value) || type === 'time' && (isNumber(value) || isDate(value))) {\n return value;\n } else if (type === 'category') {\n if (isString(value) || isDate(value) || isNumber(value)) {\n return {\n toString: function toString() {\n return String(value);\n }\n };\n } else if (isStringObject(value)) {\n return value;\n }\n }\n };\n\n Object.defineProperty(Sparkline.prototype, \"layoutScheduled\", {\n /**\n * Only `true` while we are waiting for the layout to start.\n * This will be `false` if the layout has already started and is ongoing.\n */\n get: function get() {\n return !!this.layoutId;\n },\n enumerable: true,\n configurable: true\n });\n /**\n * Execute update method on the next available screen repaint to make changes to the canvas.\n * If we are waiting for a layout to start and a new layout is requested,\n * cancel the previous layout using the non 0 integer (this.layoutId) returned from requestAnimationFrame.\n */\n\n Sparkline.prototype.scheduleLayout = function () {\n var _this = this;\n\n if (this.layoutId) {\n cancelAnimationFrame(this.layoutId);\n }\n\n this.layoutId = requestAnimationFrame(function () {\n _this.setSparklineDimensions();\n\n if (_this.invalidData(_this.data)) {\n return;\n } // update axes ranges\n\n\n _this.updateXScaleRange();\n\n _this.updateYScaleRange(); // update axis line\n\n\n _this.updateAxisLine(); // produce data joins and update selection's nodes\n\n\n _this.update();\n\n _this.layoutId = 0;\n });\n };\n\n Sparkline.prototype.setSparklineDimensions = function () {\n var _a = this,\n width = _a.width,\n height = _a.height,\n padding = _a.padding,\n seriesRect = _a.seriesRect,\n rootGroup = _a.rootGroup;\n\n var shrunkWidth = width - padding.left - padding.right;\n var shrunkHeight = height - padding.top - padding.bottom;\n seriesRect.width = shrunkWidth;\n seriesRect.height = shrunkHeight;\n seriesRect.x = padding.left;\n seriesRect.y = padding.top;\n rootGroup.translationX = seriesRect.x;\n rootGroup.translationY = seriesRect.y;\n };\n /**\n * Return the closest data point to x/y canvas coordinates.\n * @param x\n * @param y\n */\n\n\n Sparkline.prototype.pickClosestSeriesNodeDatum = function (x, y) {\n var minDistance = Infinity;\n var closestDatum;\n var hitPoint = this.rootGroup.transformPoint(x, y);\n var nodeData = this.getNodeData();\n\n for (var i = 0; i < nodeData.length; i++) {\n var datum = nodeData[i];\n\n if (!datum.point) {\n return;\n }\n\n var distance = this.getDistance(hitPoint, datum.point);\n\n if (distance <= minDistance) {\n minDistance = distance;\n closestDatum = datum;\n }\n }\n\n return closestDatum;\n };\n /**\n * Return the relevant distance between two points.\n * The distance will be calculated based on the x value of the points for all sparklines except bar sparkline, where the distance is based on the y values.\n * @param x\n * @param y\n */\n\n\n Sparkline.prototype.getDistance = function (p1, p2) {\n return Math.abs(p1.x - p2.x);\n };\n /**\n * calculate x/y coordinates for tooltip based on coordinates of highlighted datum, position of canvas and page offset.\n * @param datum\n */\n\n\n Sparkline.prototype.handleTooltip = function (event, datum) {\n var seriesDatum = datum.seriesDatum;\n var canvasElement = this.canvasElement;\n var clientX = event.clientX,\n clientY = event.clientY; // confine tooltip to sparkline width if tooltip container not provided.\n\n if (this.tooltip.container == undefined) {\n this.tooltip.container = canvasElement;\n }\n\n var meta = {\n pageX: clientX,\n pageY: clientY\n };\n var yValue = seriesDatum.y;\n var xValue = seriesDatum.x; // check if tooltip is enabled for this specific data point\n\n var enabled = this.tooltip.enabled;\n\n if (this.tooltip.renderer) {\n var tooltipRendererResult = this.tooltip.renderer({\n context: this.context,\n datum: seriesDatum,\n yValue: yValue,\n xValue: xValue\n });\n enabled = typeof tooltipRendererResult !== 'string' && tooltipRendererResult.enabled !== undefined ? tooltipRendererResult.enabled : enabled;\n }\n\n var html = enabled && seriesDatum.y !== undefined && this.getTooltipHtml(datum);\n\n if (html) {\n this.tooltip.show(meta, html);\n }\n };\n\n Sparkline.prototype.formatNumericDatum = function (datum) {\n return String(Math.round(datum * 10) / 10);\n };\n\n Sparkline.prototype.formatDatum = function (datum) {\n var type = this.axis.type || 'category';\n\n if (type === 'number' && typeof datum === 'number') {\n return this.formatNumericDatum(datum);\n } else if (type === 'time' && (datum instanceof Date || isNumber(datum))) {\n return this.defaultDateFormatter(datum);\n } else {\n return String(datum);\n }\n };\n\n Sparkline.prototype.setupDomEventListeners = function (chartElement) {\n chartElement.addEventListener('mousemove', this._onMouseMove);\n chartElement.addEventListener('mouseout', this._onMouseOut);\n };\n\n Sparkline.prototype.cleanupDomEventListeners = function (chartElement) {\n chartElement.removeEventListener('mousemove', this._onMouseMove);\n chartElement.removeEventListener('mouseout', this._onMouseOut);\n };\n\n Sparkline.prototype.invalidData = function (data) {\n return !data || !Array.isArray(data) || data.length === 0;\n };\n /**\n * Cleanup and remove canvas element from the DOM.\n */\n\n\n Sparkline.prototype.destroy = function () {\n this.scene.container = undefined; // remove canvas element from the DOM\n\n this.container = undefined;\n this.cleanupDomEventListeners(this.scene.canvas.element);\n };\n\n Sparkline.tooltipDocuments = [];\n return Sparkline;\n}(Observable);\n\nvar __extends$f = undefined && undefined.__extends || function () {\n var _extendStatics205 = function extendStatics(d, b) {\n _extendStatics205 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics205(d, b);\n };\n\n return function (d, b) {\n _extendStatics205(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nfunction toTooltipHtml(input, defaults) {\n if (typeof input === 'string') {\n return input;\n }\n\n defaults = defaults || {};\n var _a = input.content,\n content = _a === void 0 ? defaults.content || '' : _a,\n _b = input.title,\n title = _b === void 0 ? defaults.title || undefined : _b,\n _c = input.color,\n color = _c === void 0 ? defaults.color : _c,\n _d = input.backgroundColor,\n backgroundColor = _d === void 0 ? defaults.backgroundColor : _d,\n _e = input.opacity,\n opacity = _e === void 0 ? defaults.opacity || 1 : _e;\n var titleHtml;\n var contentHtml;\n\n if (color) {\n titleHtml = title ? \"\" + title + \"\" : '';\n contentHtml = \"\" + content + \"\";\n } else {\n titleHtml = title ? \"\" + title + \"\" : '';\n contentHtml = \"\" + content + \"\";\n }\n\n if (backgroundColor) {\n var bgColor = Color.fromString(backgroundColor.toLowerCase());\n var r = bgColor.r,\n g = bgColor.g,\n b = bgColor.b;\n bgColor.a; // TODO: combine a and opacity for alpha?\n\n var alpha = opacity;\n var bgColorWithAlpha = Color.fromArray([r, g, b, alpha]);\n var bgColorRgbaString = bgColorWithAlpha.toRgbaString();\n return \"
\\n \" + titleHtml + \"\\n \" + contentHtml + \"\\n
\";\n } else {\n return \"
\\n \" + titleHtml + \"\\n \" + contentHtml + \"\\n
\";\n }\n}\n\nvar SparklineTooltip =\n/** @class */\nfunction (_super) {\n __extends$f(SparklineTooltip, _super);\n\n function SparklineTooltip() {\n var _this = _super.call(this) || this;\n\n _this.element = document.createElement('div');\n _this.enabled = true;\n _this.container = undefined;\n _this.xOffset = 10;\n _this.yOffset = 0;\n _this.renderer = undefined;\n var tooltipRoot = document.body;\n tooltipRoot.appendChild(_this.element);\n return _this;\n }\n\n SparklineTooltip.prototype.isVisible = function () {\n var element = this.element;\n\n if (element.classList) {\n return !element.classList.contains(SparklineTooltip.class + \"-wrapper-hidden\");\n } // IE11\n\n\n var classes = element.getAttribute('class');\n\n if (classes) {\n return classes.split(' ').indexOf(SparklineTooltip.class + \"-wrapper-hidden\") < 0;\n }\n\n return false;\n };\n\n SparklineTooltip.prototype.updateClass = function (visible) {\n var classList = [SparklineTooltip.class + \"-wrapper\"];\n\n if (visible !== true) {\n classList.push(SparklineTooltip.class + \"-wrapper-hidden\");\n }\n\n this.element.setAttribute('class', classList.join(' '));\n };\n\n SparklineTooltip.prototype.show = function (meta, html) {\n this.toggle(false);\n var element = this.element;\n\n if (html !== undefined) {\n element.innerHTML = html;\n } else if (!element.innerHTML) {\n return;\n }\n\n var left = meta.pageX + this.xOffset;\n var top = meta.pageY + this.yOffset;\n var tooltipRect = element.getBoundingClientRect();\n var maxLeft = window.innerWidth - tooltipRect.width;\n\n if (this.container) {\n var containerRect = this.container.getBoundingClientRect();\n maxLeft = containerRect.left + (containerRect.width - tooltipRect.width);\n }\n\n if (left > maxLeft) {\n left = meta.pageX - element.clientWidth - this.xOffset;\n }\n\n element.style.left = Math.round(left) + \"px\";\n element.style.top = Math.round(top) + \"px\";\n this.toggle(true);\n };\n\n SparklineTooltip.prototype.toggle = function (visible) {\n this.updateClass(visible);\n };\n\n SparklineTooltip.prototype.destroy = function () {\n var parentNode = this.element.parentNode;\n\n if (parentNode) {\n parentNode.removeChild(this.element);\n }\n };\n\n SparklineTooltip.class = 'ag-sparkline-tooltip';\n return SparklineTooltip;\n}(Observable);\n\nvar __extends$e = undefined && undefined.__extends || function () {\n var _extendStatics206 = function extendStatics(d, b) {\n _extendStatics206 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics206(d, b);\n };\n\n return function (d, b) {\n _extendStatics206(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar Marker =\n/** @class */\nfunction (_super) {\n __extends$e(Marker, _super);\n\n function Marker() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this._x = 0;\n _this._y = 0;\n _this._size = 3;\n return _this;\n }\n\n Object.defineProperty(Marker.prototype, \"x\", {\n get: function get() {\n return this._x;\n },\n set: function set(value) {\n if (this._x !== value) {\n this._x = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Marker.prototype, \"y\", {\n get: function get() {\n return this._y;\n },\n set: function set(value) {\n if (this._y !== value) {\n this._y = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Marker.prototype, \"size\", {\n get: function get() {\n return this._size;\n },\n set: function set(value) {\n if (this._size !== value) {\n this._size = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n return Marker;\n}(Shape);\n\nvar __extends$d = undefined && undefined.__extends || function () {\n var _extendStatics207 = function extendStatics(d, b) {\n _extendStatics207 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics207(d, b);\n };\n\n return function (d, b) {\n _extendStatics207(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar Circle =\n/** @class */\nfunction (_super) {\n __extends$d(Circle, _super);\n\n function Circle() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n Circle.prototype.isPointInPath = function (x, y) {\n return false;\n };\n\n Circle.prototype.isPointInStroke = function (x, y) {\n return false;\n };\n\n Circle.prototype.render = function (ctx) {\n if (this.dirtyTransform) {\n this.computeTransformMatrix();\n }\n\n this.matrix.toContext(ctx);\n\n var _a = this,\n x = _a.x,\n y = _a.y,\n size = _a.size;\n\n var radius = size / 2;\n ctx.beginPath();\n ctx.arc(x, y, radius, 0, 2 * Math.PI, false);\n this.fillStroke(ctx);\n this.dirty = false;\n };\n\n Circle.className = 'Circle';\n return Circle;\n}(Marker);\n\nvar __extends$c = undefined && undefined.__extends || function () {\n var _extendStatics208 = function extendStatics(d, b) {\n _extendStatics208 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics208(d, b);\n };\n\n return function (d, b) {\n _extendStatics208(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar Diamond =\n/** @class */\nfunction (_super) {\n __extends$c(Diamond, _super);\n\n function Diamond() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n Diamond.prototype.isPointInStroke = function (x, y) {\n return false;\n };\n\n Diamond.prototype.isPointInPath = function (x, y) {\n return false;\n };\n\n Diamond.prototype.render = function (ctx) {\n if (this.dirtyTransform) {\n this.computeTransformMatrix();\n }\n\n this.matrix.toContext(ctx);\n\n var _a = this,\n x = _a.x,\n y = _a.y,\n size = _a.size;\n\n var hs = size / 2;\n ctx.beginPath();\n ctx.moveTo(x, y -= hs);\n ctx.lineTo(x += hs, y += hs);\n ctx.lineTo(x -= hs, y += hs);\n ctx.lineTo(x -= hs, y -= hs);\n ctx.lineTo(x + hs, y - hs);\n ctx.closePath();\n this.fillStroke(ctx);\n this.dirty = false;\n };\n\n Diamond.className = 'Diamond';\n return Diamond;\n}(Marker);\n\nvar __extends$b = undefined && undefined.__extends || function () {\n var _extendStatics209 = function extendStatics(d, b) {\n _extendStatics209 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics209(d, b);\n };\n\n return function (d, b) {\n _extendStatics209(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar Square =\n/** @class */\nfunction (_super) {\n __extends$b(Square, _super);\n\n function Square() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n Square.prototype.isPointInStroke = function (x, y) {\n return false;\n };\n\n Square.prototype.isPointInPath = function (x, y) {\n return false;\n };\n\n Square.prototype.render = function (ctx) {\n if (this.dirtyTransform) {\n this.computeTransformMatrix();\n }\n\n this.matrix.toContext(ctx);\n\n var _a = this,\n x = _a.x,\n y = _a.y,\n size = _a.size;\n\n var hs = size / 2;\n ctx.beginPath();\n ctx.moveTo(x -= hs, y -= hs);\n ctx.lineTo(x += size, y);\n ctx.lineTo(x, y += size);\n ctx.lineTo(x -= size, y);\n ctx.lineTo(x, y -= size);\n ctx.closePath();\n this.fillStroke(ctx);\n this.dirty = false;\n };\n\n Square.className = 'Square';\n return Square;\n}(Marker);\n\nfunction getMarker(shape) {\n switch (shape) {\n case 'circle':\n return Circle;\n\n case 'square':\n return Square;\n\n case 'diamond':\n return Diamond;\n\n default:\n return Circle;\n }\n}\n\nfunction getLineDash(lineCap, lineDash) {\n if (lineDash === void 0) {\n lineDash = 'solid';\n }\n\n var buttOrNull = {\n solid: [],\n dash: [4, 3],\n dot: [1, 3],\n dashDot: [4, 3, 1, 3],\n dashDotDot: [4, 3, 1, 3, 1, 3],\n shortDot: [1, 1],\n shortDash: [3, 1],\n shortDashDot: [3, 1, 1, 1],\n shortDashDotDot: [3, 1, 1, 1, 1, 1],\n longDash: [8, 3],\n longDashDot: [8, 3, 1, 3],\n longDashDotDot: [8, 3, 1, 3, 1, 3]\n };\n var roundOrSquare = {\n solid: [],\n dash: [3, 3],\n dot: [0, 3],\n dashDot: [3, 3, 0, 3],\n dashDotDot: [3, 3, 0, 3, 0, 3],\n shortDot: [0, 2],\n shortDash: [2, 2],\n shortDashDot: [2, 2, 0, 2],\n shortDashDotDot: [2, 2, 0, 2, 0, 2],\n longDash: [7, 3],\n longDashDot: [7, 3, 0, 3],\n longDashDotDot: [7, 3, 0, 3, 0, 3]\n };\n\n if (lineCap === 'round' || lineCap === 'square') {\n if (roundOrSquare[lineDash] == undefined) {\n console.warn(\"'\" + lineDash + \"' is not a valid 'lineDash' option.\");\n return roundOrSquare.solid;\n }\n\n return roundOrSquare[lineDash];\n }\n\n if (buttOrNull[lineDash] == undefined) {\n console.warn(\"'\" + lineDash + \"' is not a valid 'lineDash' option.\");\n return buttOrNull.solid;\n }\n\n return buttOrNull[lineDash];\n}\n\nvar __extends$a = undefined && undefined.__extends || function () {\n var _extendStatics210 = function extendStatics(d, b) {\n _extendStatics210 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics210(d, b);\n };\n\n return function (d, b) {\n _extendStatics210(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar SparklineMarker$1 =\n/** @class */\nfunction () {\n function SparklineMarker() {\n this.enabled = true;\n this.shape = 'circle';\n this.size = 0;\n this.fill = 'rgb(124, 181, 236)';\n this.stroke = 'rgb(124, 181, 236)';\n this.strokeWidth = 1;\n this.formatter = undefined;\n }\n\n return SparklineMarker;\n}();\n\nvar SparklineLine$1 =\n/** @class */\nfunction () {\n function SparklineLine() {\n this.stroke = 'rgb(124, 181, 236)';\n this.strokeWidth = 1;\n }\n\n return SparklineLine;\n}();\n\nvar SparklineCrosshairs$1 =\n/** @class */\nfunction () {\n function SparklineCrosshairs() {\n this.xLine = {\n enabled: true,\n stroke: 'rgba(0,0,0, 0.54)',\n strokeWidth: 1,\n lineDash: 'solid',\n lineCap: undefined\n };\n this.yLine = {\n enabled: false,\n stroke: 'rgba(0,0,0, 0.54)',\n strokeWidth: 1,\n lineDash: 'solid',\n lineCap: undefined\n };\n }\n\n return SparklineCrosshairs;\n}();\n\nvar AreaSparkline =\n/** @class */\nfunction (_super) {\n __extends$a(AreaSparkline, _super);\n\n function AreaSparkline() {\n var _this = _super.call(this) || this;\n\n _this.fill = 'rgba(124, 181, 236, 0.25)';\n _this.strokePath = new Path();\n _this.fillPath = new Path();\n _this.xCrosshairLine = new Line();\n _this.yCrosshairLine = new Line();\n _this.areaSparklineGroup = new Group();\n _this.fillPathData = [];\n _this.strokePathData = [];\n _this.xAxisLine = new Line();\n _this.markers = new Group();\n _this.markerSelection = Selection.select(_this.markers).selectAll();\n _this.markerSelectionData = [];\n _this.marker = new SparklineMarker$1();\n _this.line = new SparklineLine$1();\n _this.crosshairs = new SparklineCrosshairs$1();\n\n _this.rootGroup.append(_this.areaSparklineGroup);\n\n _this.areaSparklineGroup.append([_this.fillPath, _this.xAxisLine, _this.strokePath, _this.xCrosshairLine, _this.yCrosshairLine, _this.markers]);\n\n return _this;\n }\n\n AreaSparkline.prototype.getNodeData = function () {\n return this.markerSelectionData;\n };\n /**\n * If marker shape is changed, this method should be called to remove the previous marker nodes selection.\n */\n\n\n AreaSparkline.prototype.onMarkerShapeChange = function () {\n this.markerSelection = this.markerSelection.setData([]);\n this.markerSelection.exit.remove();\n this.scheduleLayout();\n };\n\n AreaSparkline.prototype.update = function () {\n var data = this.generateNodeData();\n\n if (!data) {\n return;\n }\n\n var nodeData = data.nodeData,\n fillData = data.fillData,\n strokeData = data.strokeData;\n this.markerSelectionData = nodeData;\n this.fillPathData = fillData;\n this.strokePathData = strokeData;\n this.updateSelection(nodeData);\n this.updateNodes();\n this.updateStroke(strokeData);\n this.updateFill(fillData);\n };\n\n AreaSparkline.prototype.updateYScaleDomain = function () {\n var _a = this,\n yData = _a.yData,\n yScale = _a.yScale;\n\n var yMinMax = extent(yData, isNumber);\n var yMin = 0;\n var yMax = 1;\n\n if (yMinMax !== undefined) {\n yMin = this.min = yMinMax[0];\n yMax = this.max = yMinMax[1];\n } // if yMin is positive, set yMin to 0\n\n\n yMin = yMin < 0 ? yMin : 0; // if yMax is negative, set yMax to 0\n\n yMax = yMax < 0 ? 0 : yMax;\n yScale.domain = [yMin, yMax];\n };\n\n AreaSparkline.prototype.generateNodeData = function () {\n var _a = this,\n data = _a.data,\n yData = _a.yData,\n xData = _a.xData,\n xScale = _a.xScale,\n yScale = _a.yScale;\n\n if (!data) {\n return;\n }\n\n var offsetX = xScale instanceof BandScale ? xScale.bandwidth / 2 : 0;\n var n = yData.length;\n var nodeData = [];\n var fillData = [];\n var strokeData = [];\n var firstValidX;\n var lastValidX;\n var previousX;\n var nextX;\n var yZero = yScale.convert(0);\n\n for (var i = 0; i < n; i++) {\n var yDatum = yData[i];\n var xDatum = xData[i];\n var x = xScale.convert(xDatum) + offsetX;\n var y = yScale.convert(yDatum); // if this iteration is not the last, set nextX using the next value in the data array\n\n if (i + 1 < n) {\n nextX = xScale.convert(xData[i + 1]) + offsetX;\n } // set stroke data regardless of missing/ undefined values. Undefined values will be handled in the updateStroke() method\n\n\n strokeData.push({\n seriesDatum: {\n x: xDatum,\n y: yDatum\n },\n point: {\n x: x,\n y: y\n }\n });\n\n if (yDatum === undefined && previousX !== undefined) {\n // if yDatum is undefined and there is a valid previous data point, add a phantom point at yZero\n // if a next data point exists, add a phantom point at yZero at the next X\n fillData.push({\n seriesDatum: undefined,\n point: {\n x: previousX,\n y: yZero\n }\n });\n\n if (nextX !== undefined) {\n fillData.push({\n seriesDatum: undefined,\n point: {\n x: nextX,\n y: yZero\n }\n });\n }\n } else if (yDatum !== undefined) {\n fillData.push({\n seriesDatum: {\n x: xDatum,\n y: yDatum\n },\n point: {\n x: x,\n y: y\n }\n }); // set node data only if yDatum is not undefined. These values are used in the updateSelection() method to update markers\n\n nodeData.push({\n seriesDatum: {\n x: xDatum,\n y: yDatum\n },\n point: {\n x: x,\n y: y\n }\n });\n firstValidX = firstValidX !== undefined ? firstValidX : x;\n lastValidX = x;\n }\n\n previousX = x;\n } // phantom points for creating closed area\n\n\n fillData.push({\n seriesDatum: undefined,\n point: {\n x: lastValidX,\n y: yZero\n }\n }, {\n seriesDatum: undefined,\n point: {\n x: firstValidX,\n y: yZero\n }\n });\n return {\n nodeData: nodeData,\n fillData: fillData,\n strokeData: strokeData\n };\n };\n\n AreaSparkline.prototype.updateAxisLine = function () {\n var _a = this,\n xScale = _a.xScale,\n yScale = _a.yScale,\n axis = _a.axis,\n xAxisLine = _a.xAxisLine;\n\n xAxisLine.x1 = xScale.range[0];\n xAxisLine.x2 = xScale.range[1];\n xAxisLine.y1 = xAxisLine.y2 = 0;\n xAxisLine.stroke = axis.stroke;\n xAxisLine.strokeWidth = axis.strokeWidth;\n var yZero = yScale.convert(0);\n xAxisLine.translationY = yZero;\n };\n\n AreaSparkline.prototype.updateSelection = function (selectionData) {\n var marker = this.marker;\n var shape = getMarker(marker.shape);\n var updateMarkerSelection = this.markerSelection.setData(selectionData);\n var enterMarkerSelection = updateMarkerSelection.enter.append(shape);\n updateMarkerSelection.exit.remove();\n this.markerSelection = updateMarkerSelection.merge(enterMarkerSelection);\n };\n\n AreaSparkline.prototype.updateNodes = function () {\n var _this = this;\n\n var _a = this,\n highlightedDatum = _a.highlightedDatum,\n highlightStyle = _a.highlightStyle,\n marker = _a.marker;\n\n var highlightSize = highlightStyle.size,\n highlightFill = highlightStyle.fill,\n highlightStroke = highlightStyle.stroke,\n highlightStrokeWidth = highlightStyle.strokeWidth;\n var markerFormatter = marker.formatter;\n this.markerSelection.each(function (node, datum, index) {\n var point = datum.point,\n seriesDatum = datum.seriesDatum;\n\n if (!point) {\n return;\n }\n\n var highlighted = datum === highlightedDatum;\n var markerFill = highlighted && highlightFill !== undefined ? highlightFill : marker.fill;\n var markerStroke = highlighted && highlightStroke !== undefined ? highlightStroke : marker.stroke;\n var markerStrokeWidth = highlighted && highlightStrokeWidth !== undefined ? highlightStrokeWidth : marker.strokeWidth;\n var markerSize = highlighted && highlightSize !== undefined ? highlightSize : marker.size;\n var markerFormat;\n\n if (markerFormatter) {\n var first = index === 0;\n var last = index === _this.markerSelectionData.length - 1;\n var min = seriesDatum.y === _this.min;\n var max = seriesDatum.y === _this.max;\n markerFormat = markerFormatter({\n datum: datum,\n xValue: seriesDatum.x,\n yValue: seriesDatum.y,\n min: min,\n max: max,\n first: first,\n last: last,\n fill: markerFill,\n stroke: markerStroke,\n strokeWidth: markerStrokeWidth,\n size: markerSize,\n highlighted: highlighted\n });\n }\n\n node.size = markerFormat && markerFormat.size != undefined ? markerFormat.size : markerSize;\n node.fill = markerFormat && markerFormat.fill != undefined ? markerFormat.fill : markerFill;\n node.stroke = markerFormat && markerFormat.stroke != undefined ? markerFormat.stroke : markerStroke;\n node.strokeWidth = markerFormat && markerFormat.strokeWidth != undefined ? markerFormat.strokeWidth : markerStrokeWidth;\n node.translationX = point.x;\n node.translationY = point.y;\n node.visible = markerFormat && markerFormat.enabled != undefined ? markerFormat.enabled : marker.enabled && node.size > 0;\n });\n };\n\n AreaSparkline.prototype.updateStroke = function (strokeData) {\n var _a = this,\n strokePath = _a.strokePath,\n yData = _a.yData,\n line = _a.line;\n\n if (yData.length < 2) {\n return;\n }\n\n var path = strokePath.path;\n var n = strokeData.length;\n var moveTo = true;\n path.clear();\n\n for (var i = 0; i < n; i++) {\n var _b = strokeData[i],\n point = _b.point,\n seriesDatum = _b.seriesDatum;\n var x = point.x;\n var y = point.y;\n\n if (seriesDatum.y == undefined) {\n moveTo = true;\n } else {\n if (moveTo) {\n path.moveTo(x, y);\n moveTo = false;\n } else {\n path.lineTo(x, y);\n }\n }\n }\n\n strokePath.lineJoin = strokePath.lineCap = 'round';\n strokePath.fill = undefined;\n strokePath.stroke = line.stroke;\n strokePath.strokeWidth = line.strokeWidth;\n };\n\n AreaSparkline.prototype.updateFill = function (areaData) {\n var _a = this,\n fillPath = _a.fillPath,\n yData = _a.yData,\n fill = _a.fill;\n\n var path = fillPath.path;\n var n = areaData.length;\n path.clear();\n\n if (yData.length < 2) {\n return;\n }\n\n for (var i = 0; i < n; i++) {\n var point = areaData[i].point;\n var x = point.x;\n var y = point.y;\n\n if (i > 0) {\n path.lineTo(x, y);\n } else {\n path.moveTo(x, y);\n }\n }\n\n path.closePath();\n fillPath.lineJoin = 'round';\n fillPath.stroke = undefined;\n fillPath.fill = fill;\n };\n\n AreaSparkline.prototype.updateXCrosshairLine = function () {\n var _a = this,\n yScale = _a.yScale,\n xCrosshairLine = _a.xCrosshairLine,\n highlightedDatum = _a.highlightedDatum,\n xLine = _a.crosshairs.xLine;\n\n if (!xLine.enabled || highlightedDatum == undefined) {\n xCrosshairLine.strokeWidth = 0;\n return;\n }\n\n xCrosshairLine.y1 = yScale.range[0];\n xCrosshairLine.y2 = yScale.range[1];\n xCrosshairLine.x1 = xCrosshairLine.x2 = 0;\n xCrosshairLine.stroke = xLine.stroke;\n xCrosshairLine.strokeWidth = xLine.strokeWidth || 1;\n xCrosshairLine.lineCap = xLine.lineCap === 'round' || xLine.lineCap === 'square' ? xLine.lineCap : undefined;\n var lineDash = xLine.lineDash;\n xCrosshairLine.lineDash = Array.isArray(lineDash) ? lineDash : getLineDash(xCrosshairLine.lineCap, xLine.lineDash);\n xCrosshairLine.translationX = highlightedDatum.point.x;\n };\n\n AreaSparkline.prototype.updateYCrosshairLine = function () {\n var _a = this,\n xScale = _a.xScale,\n yCrosshairLine = _a.yCrosshairLine,\n highlightedDatum = _a.highlightedDatum,\n yLine = _a.crosshairs.yLine;\n\n if (!yLine.enabled || highlightedDatum == undefined) {\n yCrosshairLine.strokeWidth = 0;\n return;\n }\n\n yCrosshairLine.x1 = xScale.range[0];\n yCrosshairLine.x2 = xScale.range[1];\n yCrosshairLine.y1 = yCrosshairLine.y2 = 0;\n yCrosshairLine.stroke = yLine.stroke;\n yCrosshairLine.strokeWidth = yLine.strokeWidth || 1;\n yCrosshairLine.lineCap = yLine.lineCap === 'round' || yLine.lineCap === 'square' ? yLine.lineCap : undefined;\n var lineDash = yLine.lineDash;\n yCrosshairLine.lineDash = Array.isArray(lineDash) ? lineDash : getLineDash(yCrosshairLine.lineCap, yLine.lineDash);\n yCrosshairLine.translationY = highlightedDatum.point.y;\n };\n\n AreaSparkline.prototype.getTooltipHtml = function (datum) {\n var dataType = this.dataType;\n var seriesDatum = datum.seriesDatum;\n var yValue = seriesDatum.y;\n var xValue = seriesDatum.x;\n var content = this.formatNumericDatum(yValue);\n var title = dataType === 'array' || dataType === 'object' ? this.formatDatum(xValue) : undefined;\n var defaults = {\n content: content,\n title: title\n };\n\n if (this.tooltip.renderer) {\n return toTooltipHtml(this.tooltip.renderer({\n context: this.context,\n datum: seriesDatum,\n yValue: yValue,\n xValue: xValue\n }), defaults);\n }\n\n return toTooltipHtml(defaults);\n };\n\n AreaSparkline.className = 'AreaSparkline';\n return AreaSparkline;\n}(Sparkline);\n\nvar __extends$9 = undefined && undefined.__extends || function () {\n var _extendStatics211 = function extendStatics(d, b) {\n _extendStatics211 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics211(d, b);\n };\n\n return function (d, b) {\n _extendStatics211(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar SparklineMarker =\n/** @class */\nfunction () {\n function SparklineMarker() {\n this.enabled = true;\n this.shape = 'circle';\n this.size = 0;\n this.fill = 'rgb(124, 181, 236)';\n this.stroke = 'rgb(124, 181, 236)';\n this.strokeWidth = 1;\n this.formatter = undefined;\n }\n\n return SparklineMarker;\n}();\n\nvar SparklineLine =\n/** @class */\nfunction () {\n function SparklineLine() {\n this.stroke = 'rgb(124, 181, 236)';\n this.strokeWidth = 1;\n }\n\n return SparklineLine;\n}();\n\nvar SparklineCrosshairs =\n/** @class */\nfunction () {\n function SparklineCrosshairs() {\n this.xLine = {\n enabled: true,\n stroke: 'rgba(0,0,0, 0.54)',\n strokeWidth: 1,\n lineDash: 'solid',\n lineCap: undefined\n };\n this.yLine = {\n enabled: false,\n stroke: 'rgba(0,0,0, 0.54)',\n strokeWidth: 1,\n lineDash: 'solid',\n lineCap: undefined\n };\n }\n\n return SparklineCrosshairs;\n}();\n\nvar LineSparkline =\n/** @class */\nfunction (_super) {\n __extends$9(LineSparkline, _super);\n\n function LineSparkline() {\n var _this = _super.call(this) || this;\n\n _this.linePath = new Path();\n _this.xCrosshairLine = new Line();\n _this.yCrosshairLine = new Line();\n _this.lineSparklineGroup = new Group();\n _this.markers = new Group();\n _this.markerSelection = Selection.select(_this.markers).selectAll();\n _this.markerSelectionData = [];\n _this.marker = new SparklineMarker();\n _this.line = new SparklineLine();\n _this.crosshairs = new SparklineCrosshairs();\n\n _this.rootGroup.append(_this.lineSparklineGroup);\n\n _this.lineSparklineGroup.append([_this.linePath, _this.xCrosshairLine, _this.yCrosshairLine, _this.markers]);\n\n return _this;\n }\n\n LineSparkline.prototype.getNodeData = function () {\n return this.markerSelectionData;\n };\n /**\n * If marker shape is changed, this method should be called to remove the previous marker nodes selection.\n */\n\n\n LineSparkline.prototype.onMarkerShapeChange = function () {\n this.markerSelection = this.markerSelection.setData([]);\n this.markerSelection.exit.remove();\n this.scheduleLayout();\n };\n\n LineSparkline.prototype.update = function () {\n var nodeData = this.generateNodeData();\n\n if (!nodeData) {\n return;\n }\n\n this.markerSelectionData = nodeData;\n this.updateSelection(nodeData);\n this.updateNodes();\n this.updateLine();\n };\n\n LineSparkline.prototype.updateYScaleDomain = function () {\n var _a = this,\n yData = _a.yData,\n yScale = _a.yScale;\n\n var yMinMax = extent(yData, isNumber);\n var yMin = 0;\n var yMax = 1;\n\n if (yMinMax !== undefined) {\n yMin = this.min = yMinMax[0];\n yMax = this.max = yMinMax[1];\n }\n\n if (yMin === yMax) {\n // if all values in the data are the same, yMin and yMax will be equal, need to adjust the domain with some padding\n var padding = Math.abs(yMin * 0.01);\n yMin -= padding;\n yMax += padding;\n }\n\n yScale.domain = [yMin, yMax];\n };\n\n LineSparkline.prototype.generateNodeData = function () {\n var _a = this,\n data = _a.data,\n yData = _a.yData,\n xData = _a.xData,\n xScale = _a.xScale,\n yScale = _a.yScale;\n\n if (!data) {\n return;\n }\n\n var offsetX = xScale instanceof BandScale ? xScale.bandwidth / 2 : 0;\n var nodeData = [];\n\n for (var i = 0; i < yData.length; i++) {\n var yDatum = yData[i];\n var xDatum = xData[i];\n\n if (yDatum == undefined) {\n continue;\n }\n\n var x = xScale.convert(xDatum) + offsetX;\n var y = yScale.convert(yDatum);\n nodeData.push({\n seriesDatum: {\n x: xDatum,\n y: yDatum\n },\n point: {\n x: x,\n y: y\n }\n });\n }\n\n return nodeData;\n };\n\n LineSparkline.prototype.updateSelection = function (selectionData) {\n var marker = this.marker;\n var shape = getMarker(marker.shape);\n var updateMarkerSelection = this.markerSelection.setData(selectionData);\n var enterMarkerSelection = updateMarkerSelection.enter.append(shape);\n updateMarkerSelection.exit.remove();\n this.markerSelection = updateMarkerSelection.merge(enterMarkerSelection);\n };\n\n LineSparkline.prototype.updateNodes = function () {\n var _this = this;\n\n var _a = this,\n highlightedDatum = _a.highlightedDatum,\n highlightStyle = _a.highlightStyle,\n marker = _a.marker;\n\n var highlightSize = highlightStyle.size,\n highlightFill = highlightStyle.fill,\n highlightStroke = highlightStyle.stroke,\n highlightStrokeWidth = highlightStyle.strokeWidth;\n var markerFormatter = marker.formatter;\n this.markerSelection.each(function (node, datum, index) {\n var highlighted = datum === highlightedDatum;\n var markerFill = highlighted && highlightFill !== undefined ? highlightFill : marker.fill;\n var markerStroke = highlighted && highlightStroke !== undefined ? highlightStroke : marker.stroke;\n var markerStrokeWidth = highlighted && highlightStrokeWidth !== undefined ? highlightStrokeWidth : marker.strokeWidth;\n var markerSize = highlighted && highlightSize !== undefined ? highlightSize : marker.size;\n var markerFormat;\n var seriesDatum = datum.seriesDatum,\n point = datum.point;\n\n if (markerFormatter) {\n var first = index === 0;\n var last = index === _this.markerSelectionData.length - 1;\n var min = seriesDatum.y === _this.min;\n var max = seriesDatum.y === _this.max;\n markerFormat = markerFormatter({\n datum: datum,\n xValue: seriesDatum.x,\n yValue: seriesDatum.y,\n min: min,\n max: max,\n first: first,\n last: last,\n fill: markerFill,\n stroke: markerStroke,\n strokeWidth: markerStrokeWidth,\n size: markerSize,\n highlighted: highlighted\n });\n }\n\n node.size = markerFormat && markerFormat.size != undefined ? markerFormat.size : markerSize;\n node.fill = markerFormat && markerFormat.fill != undefined ? markerFormat.fill : markerFill;\n node.stroke = markerFormat && markerFormat.stroke != undefined ? markerFormat.stroke : markerStroke;\n node.strokeWidth = markerFormat && markerFormat.strokeWidth != undefined ? markerFormat.strokeWidth : markerStrokeWidth;\n node.translationX = point.x;\n node.translationY = point.y;\n node.visible = markerFormat && markerFormat.enabled != undefined ? markerFormat.enabled : marker.enabled && node.size > 0;\n });\n };\n\n LineSparkline.prototype.updateLine = function () {\n var _a = this,\n linePath = _a.linePath,\n yData = _a.yData,\n xData = _a.xData,\n xScale = _a.xScale,\n yScale = _a.yScale,\n line = _a.line;\n\n if (yData.length < 2) {\n return;\n }\n\n var path = linePath.path;\n var n = yData.length;\n var offsetX = xScale instanceof BandScale ? xScale.bandwidth / 2 : 0;\n var moveTo = true;\n path.clear();\n\n for (var i = 0; i < n; i++) {\n var xDatum = xData[i];\n var yDatum = yData[i];\n var x = xScale.convert(xDatum) + offsetX;\n var y = yScale.convert(yDatum);\n\n if (yDatum == undefined) {\n moveTo = true;\n } else {\n if (moveTo) {\n path.moveTo(x, y);\n moveTo = false;\n } else {\n path.lineTo(x, y);\n }\n }\n }\n\n linePath.fill = undefined;\n linePath.stroke = line.stroke;\n linePath.strokeWidth = line.strokeWidth;\n };\n\n LineSparkline.prototype.updateXCrosshairLine = function () {\n var _a = this,\n yScale = _a.yScale,\n xCrosshairLine = _a.xCrosshairLine,\n highlightedDatum = _a.highlightedDatum,\n xLine = _a.crosshairs.xLine;\n\n if (!xLine.enabled || highlightedDatum == undefined) {\n xCrosshairLine.strokeWidth = 0;\n return;\n }\n\n xCrosshairLine.y1 = yScale.range[0];\n xCrosshairLine.y2 = yScale.range[1];\n xCrosshairLine.x1 = xCrosshairLine.x2 = 0;\n xCrosshairLine.stroke = xLine.stroke;\n xCrosshairLine.strokeWidth = xLine.strokeWidth || 1;\n xCrosshairLine.lineCap = xLine.lineCap === 'round' || xLine.lineCap === 'square' ? xLine.lineCap : undefined;\n var lineDash = xLine.lineDash;\n xCrosshairLine.lineDash = Array.isArray(lineDash) ? lineDash : getLineDash(xCrosshairLine.lineCap, xLine.lineDash);\n xCrosshairLine.translationX = highlightedDatum.point.x;\n };\n\n LineSparkline.prototype.updateYCrosshairLine = function () {\n var _a = this,\n xScale = _a.xScale,\n yCrosshairLine = _a.yCrosshairLine,\n highlightedDatum = _a.highlightedDatum,\n yLine = _a.crosshairs.yLine;\n\n if (!yLine.enabled || highlightedDatum == undefined) {\n yCrosshairLine.strokeWidth = 0;\n return;\n }\n\n yCrosshairLine.x1 = xScale.range[0];\n yCrosshairLine.x2 = xScale.range[1];\n yCrosshairLine.y1 = yCrosshairLine.y2 = 0;\n yCrosshairLine.stroke = yLine.stroke;\n yCrosshairLine.strokeWidth = yLine.strokeWidth || 1;\n yCrosshairLine.lineCap = yLine.lineCap === 'round' || yLine.lineCap === 'square' ? yLine.lineCap : undefined;\n var lineDash = yLine.lineDash;\n yCrosshairLine.lineDash = Array.isArray(lineDash) ? lineDash : getLineDash(yCrosshairLine.lineCap, yLine.lineDash);\n yCrosshairLine.translationY = highlightedDatum.point.y;\n };\n\n LineSparkline.prototype.getTooltipHtml = function (datum) {\n var dataType = this.dataType;\n var seriesDatum = datum.seriesDatum;\n var yValue = seriesDatum.y;\n var xValue = seriesDatum.x;\n var content = this.formatNumericDatum(yValue);\n var title = dataType === 'array' || dataType === 'object' ? this.formatDatum(xValue) : undefined;\n var defaults = {\n content: content,\n title: title\n };\n\n if (this.tooltip.renderer) {\n return toTooltipHtml(this.tooltip.renderer({\n context: this.context,\n datum: seriesDatum,\n yValue: yValue,\n xValue: xValue\n }), defaults);\n }\n\n return toTooltipHtml(defaults);\n };\n\n LineSparkline.className = 'LineSparkline';\n return LineSparkline;\n}(Sparkline);\n\nvar __extends$8 = undefined && undefined.__extends || function () {\n var _extendStatics212 = function extendStatics(d, b) {\n _extendStatics212 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics212(d, b);\n };\n\n return function (d, b) {\n _extendStatics212(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar Rectangle =\n/** @class */\nfunction (_super) {\n __extends$8(Rectangle, _super);\n\n function Rectangle() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this._x = 0;\n _this._y = 0;\n _this._width = 0;\n _this._height = 0;\n /**\n * If `true`, the rect is aligned to the pixel grid for crisp looking lines.\n */\n\n _this._crisp = false;\n return _this;\n }\n\n Object.defineProperty(Rectangle.prototype, \"x\", {\n get: function get() {\n return this._x;\n },\n set: function set(value) {\n if (this._x !== value) {\n this._x = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Rectangle.prototype, \"y\", {\n get: function get() {\n return this._y;\n },\n set: function set(value) {\n if (this._y !== value) {\n this._y = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Rectangle.prototype, \"width\", {\n get: function get() {\n return this._width;\n },\n set: function set(value) {\n if (this._width !== value) {\n this._width = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Rectangle.prototype, \"height\", {\n get: function get() {\n return this._height;\n },\n set: function set(value) {\n if (this._height !== value) {\n this._height = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Rectangle.prototype, \"crisp\", {\n get: function get() {\n return this._crisp;\n },\n set: function set(value) {\n if (this._crisp !== value) {\n this._crisp = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n\n Rectangle.prototype.isPointInStroke = function (x, y) {\n return false;\n };\n\n Rectangle.prototype.isPointInPath = function (x, y) {\n return false;\n };\n\n Rectangle.prototype.render = function (ctx) {\n if (this.dirtyTransform) {\n this.computeTransformMatrix();\n }\n\n this.matrix.toContext(ctx);\n\n var _a = this,\n x = _a.x,\n y = _a.y,\n width = _a.width,\n height = _a.height,\n crisp = _a.crisp;\n\n ctx.beginPath();\n\n if (crisp) {\n // ensure stroke aligns to the pixel grid\n var _b = this,\n a = _b.alignment,\n al = _b.align;\n\n ctx.rect(al(a, x), al(a, y), al(a, x, width), al(a, y, height));\n } else {\n ctx.rect(x, y, width, height);\n }\n\n this.fillStroke(ctx);\n this.dirty = false;\n };\n\n Rectangle.className = 'Column';\n return Rectangle;\n}(Shape);\n\nvar __extends$7 = undefined && undefined.__extends || function () {\n var _extendStatics213 = function extendStatics(d, b) {\n _extendStatics213 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics213(d, b);\n };\n\n return function (d, b) {\n _extendStatics213(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n/** @class */\n\n\n(function (_super) {\n __extends$7(Text, _super);\n\n function Text() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this._x = 0;\n _this._y = 0;\n _this.lineBreakRegex = /\\r?\\n/g;\n _this.lines = [];\n _this._text = '';\n _this._dirtyFont = true;\n _this._fontSize = 10;\n _this._fontFamily = 'sans-serif';\n _this._textAlign = Text.defaultStyles.textAlign;\n _this._textBaseline = Text.defaultStyles.textBaseline;\n _this._lineHeight = 14;\n return _this;\n }\n\n Object.defineProperty(Text.prototype, \"x\", {\n get: function get() {\n return this._x;\n },\n set: function set(value) {\n if (this._x !== value) {\n this._x = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"y\", {\n get: function get() {\n return this._y;\n },\n set: function set(value) {\n if (this._y !== value) {\n this._y = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n\n Text.prototype.splitText = function () {\n this.lines = this._text.split(this.lineBreakRegex);\n };\n\n Object.defineProperty(Text.prototype, \"text\", {\n get: function get() {\n return this._text;\n },\n set: function set(value) {\n var str = String(value); // `value` can be an object here\n\n if (this._text !== str) {\n this._text = str;\n this.splitText();\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"font\", {\n get: function get() {\n if (this.dirtyFont) {\n this.dirtyFont = false;\n this._font = getFont$1(this.fontSize, this.fontFamily, this.fontStyle, this.fontWeight);\n }\n\n return this._font;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"dirtyFont\", {\n get: function get() {\n return this._dirtyFont;\n },\n set: function set(value) {\n if (this._dirtyFont !== value) {\n this._dirtyFont = value;\n\n if (value) {\n this.dirty = true;\n }\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"fontStyle\", {\n get: function get() {\n return this._fontStyle;\n },\n set: function set(value) {\n if (this._fontStyle !== value) {\n this._fontStyle = value;\n this.dirtyFont = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"fontWeight\", {\n get: function get() {\n return this._fontWeight;\n },\n set: function set(value) {\n if (this._fontWeight !== value) {\n this._fontWeight = value;\n this.dirtyFont = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"fontSize\", {\n get: function get() {\n return this._fontSize;\n },\n set: function set(value) {\n if (!isFinite(value)) {\n value = 10;\n }\n\n if (this._fontSize !== value) {\n this._fontSize = value;\n this.dirtyFont = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"fontFamily\", {\n get: function get() {\n return this._fontFamily;\n },\n set: function set(value) {\n if (this._fontFamily !== value) {\n this._fontFamily = value;\n this.dirtyFont = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"textAlign\", {\n get: function get() {\n return this._textAlign;\n },\n set: function set(value) {\n if (this._textAlign !== value) {\n this._textAlign = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"textBaseline\", {\n get: function get() {\n return this._textBaseline;\n },\n set: function set(value) {\n if (this._textBaseline !== value) {\n this._textBaseline = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"lineHeight\", {\n get: function get() {\n return this._lineHeight;\n },\n set: function set(value) {\n // Multi-line text is complicated because:\n // - Canvas does not support it natively, so we have to implement it manually\n // - need to know the height of each line -> need to parse the font shorthand ->\n // generally impossible to do because font size may not be in pixels\n // - so, need to measure the text instead, each line individually -> expensive\n // - or make the user provide the line height manually for multi-line text\n // - computeBBox should use the lineHeight for multi-line text but ignore it otherwise\n // - textBaseline kind of loses its meaning for multi-line text\n if (this._lineHeight !== value) {\n this._lineHeight = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n\n Text.prototype.computeBBox = function () {\n return HdpiCanvas.has.textMetrics ? this.getPreciseBBox() : this.getApproximateBBox();\n };\n\n Text.prototype.getPreciseBBox = function () {\n var metrics = HdpiCanvas.measureText(this.text, this.font, this.textBaseline, this.textAlign);\n return new BBox(this.x - metrics.actualBoundingBoxLeft, this.y - metrics.actualBoundingBoxAscent, metrics.width, metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent);\n };\n\n Text.prototype.getApproximateBBox = function () {\n var size = HdpiCanvas.getTextSize(this.text, this.font);\n\n var _a = this,\n x = _a.x,\n y = _a.y;\n\n switch (this.textAlign) {\n case 'end':\n case 'right':\n x -= size.width;\n break;\n\n case 'center':\n x -= size.width / 2;\n }\n\n switch (this.textBaseline) {\n case 'alphabetic':\n y -= size.height * 0.7;\n break;\n\n case 'middle':\n y -= size.height * 0.45;\n break;\n\n case 'ideographic':\n y -= size.height;\n break;\n\n case 'hanging':\n y -= size.height * 0.2;\n break;\n\n case 'bottom':\n y -= size.height;\n break;\n }\n\n return new BBox(x, y, size.width, size.height);\n };\n\n Text.prototype.isPointInPath = function (x, y) {\n var point = this.transformPoint(x, y);\n var bbox = this.computeBBox();\n return bbox ? bbox.containsPoint(point.x, point.y) : false;\n };\n\n Text.prototype.isPointInStroke = function (x, y) {\n return false;\n };\n\n Text.prototype.render = function (ctx) {\n if (!this.lines.length || !this.scene) {\n return;\n }\n\n if (this.dirtyTransform) {\n this.computeTransformMatrix();\n } // this.matrix.transformBBox(this.computeBBox!()).render(ctx); // debug\n\n\n this.matrix.toContext(ctx);\n\n var _a = this,\n fill = _a.fill,\n stroke = _a.stroke,\n strokeWidth = _a.strokeWidth;\n\n ctx.font = this.font;\n ctx.textAlign = this.textAlign;\n ctx.textBaseline = this.textBaseline;\n var pixelRatio = this.scene.canvas.pixelRatio || 1;\n var globalAlpha = ctx.globalAlpha;\n\n if (fill) {\n ctx.fillStyle = fill;\n ctx.globalAlpha = globalAlpha * this.opacity * this.fillOpacity;\n\n var _b = this,\n fillShadow = _b.fillShadow,\n text = _b.text,\n x = _b.x,\n y = _b.y;\n\n if (fillShadow && fillShadow.enabled) {\n ctx.shadowColor = fillShadow.color;\n ctx.shadowOffsetX = fillShadow.xOffset * pixelRatio;\n ctx.shadowOffsetY = fillShadow.yOffset * pixelRatio;\n ctx.shadowBlur = fillShadow.blur * pixelRatio;\n }\n\n ctx.fillText(text, x, y);\n }\n\n if (stroke && strokeWidth) {\n ctx.strokeStyle = stroke;\n ctx.lineWidth = strokeWidth;\n ctx.globalAlpha = globalAlpha * this.opacity * this.strokeOpacity;\n\n var _c = this,\n lineDash = _c.lineDash,\n lineDashOffset = _c.lineDashOffset,\n lineCap = _c.lineCap,\n lineJoin = _c.lineJoin,\n strokeShadow = _c.strokeShadow,\n text = _c.text,\n x = _c.x,\n y = _c.y;\n\n if (lineDash) {\n ctx.setLineDash(lineDash);\n }\n\n if (lineDashOffset) {\n ctx.lineDashOffset = lineDashOffset;\n }\n\n if (lineCap) {\n ctx.lineCap = lineCap;\n }\n\n if (lineJoin) {\n ctx.lineJoin = lineJoin;\n }\n\n if (strokeShadow && strokeShadow.enabled) {\n ctx.shadowColor = strokeShadow.color;\n ctx.shadowOffsetX = strokeShadow.xOffset * pixelRatio;\n ctx.shadowOffsetY = strokeShadow.yOffset * pixelRatio;\n ctx.shadowBlur = strokeShadow.blur * pixelRatio;\n }\n\n ctx.strokeText(text, x, y);\n }\n\n this.dirty = false;\n };\n\n Text.className = 'Text';\n Text.defaultStyles = chainObjects(Shape.defaultStyles, {\n textAlign: 'start',\n fontStyle: undefined,\n fontWeight: undefined,\n fontSize: 10,\n fontFamily: 'sans-serif',\n textBaseline: 'alphabetic'\n });\n return Text;\n})(Shape);\n\nfunction getFont$1(fontSize, fontFamily, fontStyle, fontWeight) {\n return [fontStyle || '', fontWeight || '', fontSize + 'px', fontFamily].join(' ').trim();\n}\n\nvar __extends$6 = undefined && undefined.__extends || function () {\n var _extendStatics214 = function extendStatics(d, b) {\n _extendStatics214 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics214(d, b);\n };\n\n return function (d, b) {\n _extendStatics214(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar Label =\n/** @class */\nfunction (_super) {\n __extends$6(Label, _super);\n\n function Label() {\n var _this = _super.call(this) || this;\n\n _this.enabled = true;\n _this.fontSize = 8;\n _this.fontFamily = 'Verdana, sans-serif';\n _this.color = 'rgba(70, 70, 70, 1)';\n return _this;\n }\n\n Label.prototype.getFont = function () {\n return getFont$1(this.fontSize, this.fontFamily, this.fontStyle, this.fontWeight);\n };\n\n __decorate$2([reactive('change', 'dataChange')], Label.prototype, \"enabled\", void 0);\n\n __decorate$2([reactive('change')], Label.prototype, \"fontSize\", void 0);\n\n __decorate$2([reactive('change')], Label.prototype, \"fontFamily\", void 0);\n\n __decorate$2([reactive('change')], Label.prototype, \"fontStyle\", void 0);\n\n __decorate$2([reactive('change')], Label.prototype, \"fontWeight\", void 0);\n\n __decorate$2([reactive('change')], Label.prototype, \"color\", void 0);\n\n return Label;\n}(Observable);\n\nvar __extends$5 = undefined && undefined.__extends || function () {\n var _extendStatics215 = function extendStatics(d, b) {\n _extendStatics215 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics215(d, b);\n };\n\n return function (d, b) {\n _extendStatics215(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar Text =\n/** @class */\nfunction (_super) {\n __extends$5(Text, _super);\n\n function Text() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this._x = 0;\n _this._y = 0;\n _this.lineBreakRegex = /\\r?\\n/g;\n _this.lines = [];\n _this._text = '';\n _this._dirtyFont = true;\n _this._fontSize = 10;\n _this._fontFamily = 'sans-serif';\n _this._textAlign = Text.defaultStyles.textAlign;\n _this._textBaseline = Text.defaultStyles.textBaseline;\n _this._lineHeight = 14;\n return _this;\n }\n\n Object.defineProperty(Text.prototype, \"x\", {\n get: function get() {\n return this._x;\n },\n set: function set(value) {\n if (this._x !== value) {\n this._x = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"y\", {\n get: function get() {\n return this._y;\n },\n set: function set(value) {\n if (this._y !== value) {\n this._y = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n\n Text.prototype.splitText = function () {\n this.lines = this._text.split(this.lineBreakRegex);\n };\n\n Object.defineProperty(Text.prototype, \"text\", {\n get: function get() {\n return this._text;\n },\n set: function set(value) {\n var str = String(value); // `value` can be an object here\n\n if (this._text !== str) {\n this._text = str;\n this.splitText();\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"font\", {\n get: function get() {\n if (this.dirtyFont) {\n this.dirtyFont = false;\n this._font = getFont(this.fontSize, this.fontFamily, this.fontStyle, this.fontWeight);\n }\n\n return this._font;\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"dirtyFont\", {\n get: function get() {\n return this._dirtyFont;\n },\n set: function set(value) {\n if (this._dirtyFont !== value) {\n this._dirtyFont = value;\n\n if (value) {\n this.dirty = true;\n }\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"fontStyle\", {\n get: function get() {\n return this._fontStyle;\n },\n set: function set(value) {\n if (this._fontStyle !== value) {\n this._fontStyle = value;\n this.dirtyFont = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"fontWeight\", {\n get: function get() {\n return this._fontWeight;\n },\n set: function set(value) {\n if (this._fontWeight !== value) {\n this._fontWeight = value;\n this.dirtyFont = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"fontSize\", {\n get: function get() {\n return this._fontSize;\n },\n set: function set(value) {\n if (!isFinite(value)) {\n value = 10;\n }\n\n if (this._fontSize !== value) {\n this._fontSize = value;\n this.dirtyFont = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"fontFamily\", {\n get: function get() {\n return this._fontFamily;\n },\n set: function set(value) {\n if (this._fontFamily !== value) {\n this._fontFamily = value;\n this.dirtyFont = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"textAlign\", {\n get: function get() {\n return this._textAlign;\n },\n set: function set(value) {\n if (this._textAlign !== value) {\n this._textAlign = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"textBaseline\", {\n get: function get() {\n return this._textBaseline;\n },\n set: function set(value) {\n if (this._textBaseline !== value) {\n this._textBaseline = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(Text.prototype, \"lineHeight\", {\n get: function get() {\n return this._lineHeight;\n },\n set: function set(value) {\n // Multi-line text is complicated because:\n // - Canvas does not support it natively, so we have to implement it manually\n // - need to know the height of each line -> need to parse the font shorthand ->\n // generally impossible to do because font size may not be in pixels\n // - so, need to measure the text instead, each line individually -> expensive\n // - or make the user provide the line height manually for multi-line text\n // - computeBBox should use the lineHeight for multi-line text but ignore it otherwise\n // - textBaseline kind of loses its meaning for multi-line text\n if (this._lineHeight !== value) {\n this._lineHeight = value;\n this.dirty = true;\n }\n },\n enumerable: true,\n configurable: true\n });\n\n Text.prototype.computeBBox = function () {\n return HdpiCanvas.has.textMetrics ? this.getPreciseBBox() : this.getApproximateBBox();\n };\n\n Text.prototype.getPreciseBBox = function () {\n var metrics = HdpiCanvas.measureText(this.text, this.font, this.textBaseline, this.textAlign);\n return new BBox(this.x - metrics.actualBoundingBoxLeft, this.y - metrics.actualBoundingBoxAscent, metrics.width, metrics.actualBoundingBoxAscent + metrics.actualBoundingBoxDescent);\n };\n\n Text.prototype.getApproximateBBox = function () {\n var size = HdpiCanvas.getTextSize(this.text, this.font);\n\n var _a = this,\n x = _a.x,\n y = _a.y;\n\n switch (this.textAlign) {\n case 'end':\n case 'right':\n x -= size.width;\n break;\n\n case 'center':\n x -= size.width / 2;\n }\n\n switch (this.textBaseline) {\n case 'alphabetic':\n y -= size.height * 0.7;\n break;\n\n case 'middle':\n y -= size.height * 0.45;\n break;\n\n case 'ideographic':\n y -= size.height;\n break;\n\n case 'hanging':\n y -= size.height * 0.2;\n break;\n\n case 'bottom':\n y -= size.height;\n break;\n }\n\n return new BBox(x, y, size.width, size.height);\n };\n\n Text.prototype.isPointInPath = function (x, y) {\n var point = this.transformPoint(x, y);\n var bbox = this.computeBBox();\n return bbox ? bbox.containsPoint(point.x, point.y) : false;\n };\n\n Text.prototype.isPointInStroke = function (x, y) {\n return false;\n };\n\n Text.prototype.render = function (ctx) {\n if (!this.lines.length || !this.scene) {\n return;\n }\n\n if (this.dirtyTransform) {\n this.computeTransformMatrix();\n } // this.matrix.transformBBox(this.computeBBox!()).render(ctx); // debug\n\n\n this.matrix.toContext(ctx);\n\n var _a = this,\n fill = _a.fill,\n stroke = _a.stroke,\n strokeWidth = _a.strokeWidth;\n\n ctx.font = this.font;\n ctx.textAlign = this.textAlign;\n ctx.textBaseline = this.textBaseline;\n var pixelRatio = this.scene.canvas.pixelRatio || 1;\n var globalAlpha = ctx.globalAlpha;\n\n if (fill) {\n ctx.fillStyle = fill;\n ctx.globalAlpha = globalAlpha * this.opacity * this.fillOpacity;\n\n var _b = this,\n fillShadow = _b.fillShadow,\n text = _b.text,\n x = _b.x,\n y = _b.y;\n\n if (fillShadow && fillShadow.enabled) {\n ctx.shadowColor = fillShadow.color;\n ctx.shadowOffsetX = fillShadow.xOffset * pixelRatio;\n ctx.shadowOffsetY = fillShadow.yOffset * pixelRatio;\n ctx.shadowBlur = fillShadow.blur * pixelRatio;\n }\n\n ctx.fillText(text, x, y);\n }\n\n if (stroke && strokeWidth) {\n ctx.strokeStyle = stroke;\n ctx.lineWidth = strokeWidth;\n ctx.globalAlpha = globalAlpha * this.opacity * this.strokeOpacity;\n\n var _c = this,\n lineDash = _c.lineDash,\n lineDashOffset = _c.lineDashOffset,\n lineCap = _c.lineCap,\n lineJoin = _c.lineJoin,\n strokeShadow = _c.strokeShadow,\n text = _c.text,\n x = _c.x,\n y = _c.y;\n\n if (lineDash) {\n ctx.setLineDash(lineDash);\n }\n\n if (lineDashOffset) {\n ctx.lineDashOffset = lineDashOffset;\n }\n\n if (lineCap) {\n ctx.lineCap = lineCap;\n }\n\n if (lineJoin) {\n ctx.lineJoin = lineJoin;\n }\n\n if (strokeShadow && strokeShadow.enabled) {\n ctx.shadowColor = strokeShadow.color;\n ctx.shadowOffsetX = strokeShadow.xOffset * pixelRatio;\n ctx.shadowOffsetY = strokeShadow.yOffset * pixelRatio;\n ctx.shadowBlur = strokeShadow.blur * pixelRatio;\n }\n\n ctx.strokeText(text, x, y);\n }\n\n this.dirty = false;\n };\n\n Text.className = 'Text';\n Text.defaultStyles = chainObjects(Shape.defaultStyles, {\n textAlign: 'start',\n fontStyle: undefined,\n fontWeight: undefined,\n fontSize: 10,\n fontFamily: 'sans-serif',\n textBaseline: 'alphabetic'\n });\n return Text;\n}(Shape);\n\nfunction getFont(fontSize, fontFamily, fontStyle, fontWeight) {\n return [fontStyle || '', fontWeight || '', fontSize + 'px', fontFamily].join(' ').trim();\n}\n\nvar __extends$4 = undefined && undefined.__extends || function () {\n var _extendStatics216 = function extendStatics(d, b) {\n _extendStatics216 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics216(d, b);\n };\n\n return function (d, b) {\n _extendStatics216(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar BarColumnNodeTag;\n\n(function (BarColumnNodeTag) {\n BarColumnNodeTag[BarColumnNodeTag[\"Rect\"] = 0] = \"Rect\";\n BarColumnNodeTag[BarColumnNodeTag[\"Label\"] = 1] = \"Label\";\n})(BarColumnNodeTag || (BarColumnNodeTag = {}));\n\nvar BarColumnLabelPlacement;\n\n(function (BarColumnLabelPlacement) {\n BarColumnLabelPlacement[\"InsideBase\"] = \"insideBase\";\n BarColumnLabelPlacement[\"InsideEnd\"] = \"insideEnd\";\n BarColumnLabelPlacement[\"Center\"] = \"center\";\n BarColumnLabelPlacement[\"OutsideEnd\"] = \"outsideEnd\";\n})(BarColumnLabelPlacement || (BarColumnLabelPlacement = {}));\n\nvar BarColumnLabel =\n/** @class */\nfunction (_super) {\n __extends$4(BarColumnLabel, _super);\n\n function BarColumnLabel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.formatter = undefined;\n _this.placement = BarColumnLabelPlacement.InsideEnd;\n return _this;\n }\n\n return BarColumnLabel;\n}(Label);\n\nvar BarColumnSparkline =\n/** @class */\nfunction (_super) {\n __extends$4(BarColumnSparkline, _super);\n\n function BarColumnSparkline() {\n var _this = _super.call(this) || this;\n\n _this.fill = 'rgb(124, 181, 236)';\n _this.stroke = 'silver';\n _this.strokeWidth = 0;\n _this.paddingInner = 0.1;\n _this.paddingOuter = 0.2;\n _this.valueAxisDomain = undefined;\n _this.formatter = undefined;\n _this.axisLine = new Line();\n _this.bandWidth = 0;\n _this.sparklineGroup = new Group();\n _this.rectGroup = new Group();\n _this.labelGroup = new Group();\n _this.rectSelection = Selection.select(_this.rectGroup).selectAll();\n _this.labelSelection = Selection.select(_this.labelGroup).selectAll();\n _this.nodeSelectionData = [];\n _this.label = new BarColumnLabel();\n\n _this.rootGroup.append(_this.sparklineGroup);\n\n _this.sparklineGroup.append([_this.rectGroup, _this.axisLine, _this.labelGroup]);\n\n _this.axisLine.lineCap = 'round';\n _this.label.enabled = false;\n return _this;\n }\n\n BarColumnSparkline.prototype.getNodeData = function () {\n return this.nodeSelectionData;\n };\n\n BarColumnSparkline.prototype.update = function () {\n this.updateSelections();\n this.updateNodes();\n };\n\n BarColumnSparkline.prototype.updateSelections = function () {\n var nodeData = this.generateNodeData();\n\n if (!nodeData) {\n return;\n }\n\n this.nodeSelectionData = nodeData;\n this.updateRectSelection(nodeData);\n this.updateLabelSelection(nodeData);\n };\n\n BarColumnSparkline.prototype.updateNodes = function () {\n this.updateRectNodes();\n this.updateLabelNodes();\n };\n\n BarColumnSparkline.prototype.calculateStep = function (range) {\n var _a, _b;\n\n var _c = this,\n xScale = _c.xScale,\n paddingInner = _c.paddingInner,\n paddingOuter = _c.paddingOuter,\n smallestInterval = _c.smallestInterval; // calculate step\n\n\n var domainLength = xScale.domain[1] - xScale.domain[0];\n var intervals = domainLength / (_b = (_a = smallestInterval) === null || _a === void 0 ? void 0 : _a.x, _b !== null && _b !== void 0 ? _b : 1) + 1; // The number of intervals/bands is used to determine the width of individual bands by dividing the available range.\n // Allow a maximum of 50 bands to ensure the step (width of individual bands + padding) does not fall below a certain number of pixels.\n // If the number of intervals exceeds 50, calculate the step for 50 bands within the given range.\n // This means there could be some overlap of the bands in the sparkline.\n\n var maxBands = 50;\n var bands = Math.min(intervals, maxBands);\n var gaps = bands - 1; // number of gaps (padding between bands)\n\n var step = range / Math.max(1, 2 * paddingOuter + gaps * paddingInner + bands); // step width is a combination of band width and gap width\n\n return step;\n };\n\n BarColumnSparkline.prototype.updateYScaleDomain = function () {\n var _a = this,\n yScale = _a.yScale,\n yData = _a.yData,\n valueAxisDomain = _a.valueAxisDomain;\n\n var yMinMax = extent(yData, isNumber);\n var yMin = 0;\n var yMax = 1;\n\n if (yMinMax !== undefined) {\n yMin = this.min = yMinMax[0];\n yMax = this.max = yMinMax[1];\n } // if yMin is positive, set yMin to 0\n\n\n yMin = yMin < 0 ? yMin : 0; // if yMax is negative, set yMax to 0\n\n yMax = yMax < 0 ? 0 : yMax;\n\n if (valueAxisDomain) {\n if (valueAxisDomain[1] < yMax) {\n valueAxisDomain[1] = yMax;\n }\n\n if (valueAxisDomain[0] > yMin) {\n valueAxisDomain[0] = yMin;\n }\n }\n\n yScale.domain = valueAxisDomain ? valueAxisDomain : [yMin, yMax];\n };\n\n BarColumnSparkline.prototype.updateRectSelection = function (selectionData) {\n var updateRectSelection = this.rectSelection.setData(selectionData);\n var enterRectSelection = updateRectSelection.enter.append(Rectangle);\n updateRectSelection.exit.remove();\n this.rectSelection = updateRectSelection.merge(enterRectSelection);\n };\n\n BarColumnSparkline.prototype.updateRectNodes = function () {\n var _this = this;\n\n var _a = this,\n highlightedDatum = _a.highlightedDatum,\n nodeFormatter = _a.formatter,\n fill = _a.fill,\n stroke = _a.stroke,\n strokeWidth = _a.strokeWidth;\n\n var _b = this.highlightStyle,\n highlightFill = _b.fill,\n highlightStroke = _b.stroke,\n highlightStrokeWidth = _b.strokeWidth;\n this.rectSelection.each(function (node, datum, index) {\n var highlighted = datum === highlightedDatum;\n var nodeFill = highlighted && highlightFill !== undefined ? highlightFill : fill;\n var nodeStroke = highlighted && highlightStroke !== undefined ? highlightStroke : stroke;\n var nodeStrokeWidth = highlighted && highlightStrokeWidth !== undefined ? highlightStrokeWidth : strokeWidth;\n var nodeFormat;\n var x = datum.x,\n y = datum.y,\n width = datum.width,\n height = datum.height,\n seriesDatum = datum.seriesDatum;\n\n if (nodeFormatter) {\n var first = index === 0;\n var last = index === _this.nodeSelectionData.length - 1;\n var min = seriesDatum.y === _this.min;\n var max = seriesDatum.y === _this.max;\n nodeFormat = nodeFormatter({\n datum: datum,\n xValue: seriesDatum.x,\n yValue: seriesDatum.y,\n width: width,\n height: height,\n min: min,\n max: max,\n first: first,\n last: last,\n fill: nodeFill,\n stroke: nodeStroke,\n strokeWidth: nodeStrokeWidth,\n highlighted: highlighted\n });\n }\n\n node.fill = nodeFormat && nodeFormat.fill || nodeFill;\n node.stroke = nodeFormat && nodeFormat.stroke || nodeStroke;\n node.strokeWidth = nodeFormat && nodeFormat.strokeWidth || nodeStrokeWidth;\n node.x = node.y = 0;\n node.width = width;\n node.height = height;\n node.visible = node.height > 0;\n node.translationX = x;\n node.translationY = y; // shifts bars upwards?\n // node.crisp = true;\n });\n };\n\n BarColumnSparkline.prototype.updateLabelSelection = function (selectionData) {\n var updateLabels = this.labelSelection.setData(selectionData);\n var enterLabels = updateLabels.enter.append(Text).each(function (text) {\n text.tag = BarColumnNodeTag.Label, text.pointerEvents = PointerEvents.None;\n });\n updateLabels.exit.remove();\n this.labelSelection = updateLabels.merge(enterLabels);\n };\n\n BarColumnSparkline.prototype.updateLabelNodes = function () {\n var _a = this.label,\n labelEnabled = _a.enabled,\n fontStyle = _a.fontStyle,\n fontWeight = _a.fontWeight,\n fontSize = _a.fontSize,\n fontFamily = _a.fontFamily,\n color = _a.color;\n this.labelSelection.each(function (text, datum) {\n var label = datum.label;\n\n if (label && labelEnabled) {\n text.fontStyle = fontStyle;\n text.fontWeight = fontWeight;\n text.fontSize = fontSize;\n text.fontFamily = fontFamily;\n text.textAlign = label.textAlign;\n text.textBaseline = label.textBaseline;\n text.text = label.text;\n text.x = label.x;\n text.y = label.y;\n text.fill = color;\n text.visible = true;\n } else {\n text.visible = false;\n }\n });\n };\n\n BarColumnSparkline.prototype.getTooltipHtml = function (datum) {\n var dataType = this.dataType;\n var seriesDatum = datum.seriesDatum;\n var yValue = seriesDatum.y;\n var xValue = seriesDatum.x;\n var content = this.formatNumericDatum(yValue);\n var title = dataType === 'array' || dataType === 'object' ? this.formatDatum(xValue) : undefined;\n var defaults = {\n content: content,\n title: title\n };\n\n if (this.tooltip.renderer) {\n return toTooltipHtml(this.tooltip.renderer({\n context: this.context,\n datum: seriesDatum,\n yValue: yValue,\n xValue: xValue\n }), defaults);\n }\n\n return toTooltipHtml(defaults);\n };\n\n BarColumnSparkline.prototype.formatLabelValue = function (value) {\n return value % 1 !== 0 ? value.toFixed(1) : value.toFixed(0);\n };\n\n return BarColumnSparkline;\n}(Sparkline);\n\nvar __extends$3 = undefined && undefined.__extends || function () {\n var _extendStatics217 = function extendStatics(d, b) {\n _extendStatics217 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics217(d, b);\n };\n\n return function (d, b) {\n _extendStatics217(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar BarSparkline =\n/** @class */\nfunction (_super) {\n __extends$3(BarSparkline, _super);\n\n function BarSparkline() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n BarSparkline.prototype.updateYScaleRange = function () {\n var _a = this,\n seriesRect = _a.seriesRect,\n yScale = _a.yScale;\n\n yScale.range = [0, seriesRect.width];\n };\n\n BarSparkline.prototype.updateXScaleRange = function () {\n var _a = this,\n xScale = _a.xScale,\n seriesRect = _a.seriesRect,\n paddingOuter = _a.paddingOuter,\n paddingInner = _a.paddingInner;\n\n if (xScale instanceof BandScale) {\n xScale.range = [0, seriesRect.height];\n xScale.paddingInner = paddingInner;\n xScale.paddingOuter = paddingOuter;\n } else {\n // last node will be clipped if the scale is not a band scale\n // subtract last band width from the range so that the last band is not clipped\n var step = this.calculateStep(seriesRect.height); // PaddingOuter and paddingInner are fractions of the step with values between 0 and 1\n\n var padding = step * paddingOuter; // left and right outer padding\n\n this.bandWidth = step * (1 - paddingInner);\n xScale.range = [padding, seriesRect.height - padding - this.bandWidth];\n }\n };\n\n BarSparkline.prototype.updateAxisLine = function () {\n var _a = this,\n yScale = _a.yScale,\n axis = _a.axis,\n axisLine = _a.axisLine,\n seriesRect = _a.seriesRect;\n\n var strokeWidth = axis.strokeWidth;\n axisLine.x1 = 0;\n axisLine.x2 = 0;\n axisLine.y1 = 0;\n axisLine.y2 = seriesRect.height;\n axisLine.stroke = axis.stroke;\n axisLine.strokeWidth = strokeWidth + (strokeWidth % 2 === 1 ? 1 : 0);\n var yZero = yScale.convert(0);\n axisLine.translationX = yZero;\n };\n\n BarSparkline.prototype.generateNodeData = function () {\n var _a = this,\n data = _a.data,\n yData = _a.yData,\n xData = _a.xData,\n xScale = _a.xScale,\n yScale = _a.yScale,\n fill = _a.fill,\n stroke = _a.stroke,\n strokeWidth = _a.strokeWidth,\n label = _a.label;\n\n if (!data) {\n return;\n }\n\n var labelFontStyle = label.fontStyle,\n labelFontWeight = label.fontWeight,\n labelFontSize = label.fontSize,\n labelFontFamily = label.fontFamily,\n labelColor = label.color,\n labelFormatter = label.formatter,\n labelPlacement = label.placement;\n var nodeData = [];\n var yZero = yScale.convert(0);\n\n for (var i = 0, n = yData.length; i < n; i++) {\n var yDatum = yData[i];\n var xDatum = xData[i];\n var invalidDatum = yDatum === undefined;\n\n if (invalidDatum) {\n yDatum = 0;\n }\n\n var y = xScale.convert(xDatum);\n var x = Math.min(yScale.convert(yDatum), yZero);\n var bottom = Math.max(yScale.convert(yDatum), yZero); // if the scale is a band scale, the width of the rects will be the bandwidth, otherwise the width of the rects will be the range / number of items in the data\n\n var height = xScale instanceof BandScale ? xScale.bandwidth : this.bandWidth;\n var width = bottom - x;\n var midPoint = {\n x: yZero,\n y: y\n };\n var labelText = void 0;\n\n if (labelFormatter) {\n labelText = labelFormatter({\n value: yDatum\n });\n } else {\n labelText = yDatum !== undefined && isNumber(yDatum) ? this.formatLabelValue(yDatum) : '';\n }\n\n var labelY = y + height / 2;\n var labelX = void 0;\n var labelTextBaseline = 'middle';\n var labelTextAlign = void 0;\n var isPositiveY = yDatum !== undefined && yDatum >= 0;\n var labelPadding = 4;\n\n if (labelPlacement === BarColumnLabelPlacement.Center) {\n labelX = x + width / 2;\n labelTextAlign = 'center';\n } else if (labelPlacement === BarColumnLabelPlacement.OutsideEnd) {\n labelX = x + (isPositiveY ? width + labelPadding : -labelPadding);\n labelTextAlign = isPositiveY ? 'start' : 'end';\n } else if (labelPlacement === BarColumnLabelPlacement.InsideEnd) {\n labelX = x + (isPositiveY ? width - labelPadding : labelPadding);\n labelTextAlign = isPositiveY ? 'end' : 'start';\n var textSize = HdpiCanvas.getTextSize(labelText, labelFontFamily);\n var textWidth = textSize.width || 20;\n var positiveBoundary = yZero + textWidth;\n var negativeBoundary = yZero - textWidth;\n var exceedsBoundaries = isPositiveY && labelX < positiveBoundary || !isPositiveY && labelX > negativeBoundary;\n\n if (exceedsBoundaries) {\n // if labelX exceeds the boundary, labels should be positioned at `insideBase`.\n labelX = yZero + labelPadding * (isPositiveY ? 1 : -1);\n labelTextAlign = isPositiveY ? 'start' : 'end';\n }\n } else {\n // if labelPlacement === BarColumnLabelPlacement.InsideBase\n labelX = yZero + labelPadding * (isPositiveY ? 1 : -1);\n labelTextAlign = isPositiveY ? 'start' : 'end';\n }\n\n nodeData.push({\n x: x,\n y: y,\n width: width,\n height: height,\n fill: fill,\n stroke: stroke,\n strokeWidth: strokeWidth,\n seriesDatum: {\n x: xDatum,\n y: invalidDatum ? undefined : yDatum\n },\n point: midPoint,\n label: {\n x: labelX,\n y: labelY,\n text: labelText,\n fontStyle: labelFontStyle,\n fontWeight: labelFontWeight,\n fontSize: labelFontSize,\n fontFamily: labelFontFamily,\n textAlign: labelTextAlign,\n textBaseline: labelTextBaseline,\n fill: labelColor\n }\n });\n }\n\n return nodeData;\n };\n\n BarSparkline.prototype.getDistance = function (p1, p2) {\n return Math.abs(p1.y - p2.y);\n };\n\n BarSparkline.className = 'BarSparkline';\n return BarSparkline;\n}(BarColumnSparkline);\n\nvar __extends$2 = undefined && undefined.__extends || function () {\n var _extendStatics218 = function extendStatics(d, b) {\n _extendStatics218 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics218(d, b);\n };\n\n return function (d, b) {\n _extendStatics218(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar ColumnSparkline =\n/** @class */\nfunction (_super) {\n __extends$2(ColumnSparkline, _super);\n\n function ColumnSparkline() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n ColumnSparkline.prototype.updateYScaleRange = function () {\n var _a = this,\n seriesRect = _a.seriesRect,\n yScale = _a.yScale;\n\n yScale.range = [seriesRect.height, 0];\n };\n\n ColumnSparkline.prototype.updateXScaleRange = function () {\n var _a = this,\n xScale = _a.xScale,\n seriesRect = _a.seriesRect,\n paddingOuter = _a.paddingOuter,\n paddingInner = _a.paddingInner;\n\n if (xScale instanceof BandScale) {\n xScale.range = [0, seriesRect.width];\n xScale.paddingInner = paddingInner;\n xScale.paddingOuter = paddingOuter;\n } else {\n // last node will be clipped if the scale is not a band scale\n // subtract last band width from the range so that the last band is not clipped\n var step = this.calculateStep(seriesRect.width); // PaddingOuter and paddingInner are fractions of the step with values between 0 and 1\n\n var padding = step * paddingOuter; // left and right outer padding\n\n this.bandWidth = step * (1 - paddingInner);\n xScale.range = [padding, seriesRect.width - padding - this.bandWidth];\n }\n };\n\n ColumnSparkline.prototype.updateAxisLine = function () {\n var _a = this,\n yScale = _a.yScale,\n axis = _a.axis,\n axisLine = _a.axisLine,\n seriesRect = _a.seriesRect;\n\n var strokeWidth = axis.strokeWidth;\n axisLine.x1 = 0;\n axisLine.x2 = seriesRect.width;\n axisLine.y1 = 0;\n axisLine.y2 = 0;\n axisLine.stroke = axis.stroke;\n axisLine.strokeWidth = strokeWidth + (strokeWidth % 2 === 1 ? 1 : 0);\n var yZero = yScale.convert(0);\n axisLine.translationY = yZero;\n };\n\n ColumnSparkline.prototype.generateNodeData = function () {\n var _a = this,\n data = _a.data,\n yData = _a.yData,\n xData = _a.xData,\n xScale = _a.xScale,\n yScale = _a.yScale,\n fill = _a.fill,\n stroke = _a.stroke,\n strokeWidth = _a.strokeWidth,\n label = _a.label;\n\n if (!data) {\n return;\n }\n\n var labelFontStyle = label.fontStyle,\n labelFontWeight = label.fontWeight,\n labelFontSize = label.fontSize,\n labelFontFamily = label.fontFamily,\n labelColor = label.color,\n labelFormatter = label.formatter,\n labelPlacement = label.placement;\n var nodeData = [];\n var yZero = yScale.convert(0);\n\n for (var i = 0, n = yData.length; i < n; i++) {\n var yDatum = yData[i];\n var xDatum = xData[i];\n var invalidDatum = yDatum === undefined;\n\n if (invalidDatum) {\n yDatum = 0;\n }\n\n var y = Math.min(yScale.convert(yDatum), yZero);\n var x = xScale.convert(xDatum);\n var bottom = Math.max(yScale.convert(yDatum), yZero); // if the scale is a band scale, the width of the rects will be the bandwidth, otherwise the width of the rects will be the range / number of items in the data\n\n var width = xScale instanceof BandScale ? xScale.bandwidth : this.bandWidth;\n var height = bottom - y;\n var midPoint = {\n x: x + width / 2,\n y: yZero\n };\n var labelText = void 0;\n\n if (labelFormatter) {\n labelText = labelFormatter({\n value: yDatum\n });\n } else {\n labelText = yDatum !== undefined && isNumber(yDatum) ? this.formatLabelValue(yDatum) : '';\n }\n\n var labelX = x + width / 2;\n var labelY = void 0;\n var labelTextAlign = 'center';\n var labelTextBaseline = void 0;\n var isPositiveY = yDatum !== undefined && yDatum >= 0;\n var labelPadding = 2;\n\n if (labelPlacement === BarColumnLabelPlacement.Center) {\n labelY = y + height / 2;\n labelTextBaseline = 'middle';\n } else if (labelPlacement === BarColumnLabelPlacement.OutsideEnd) {\n labelY = y + (isPositiveY ? -labelPadding : height + labelPadding);\n labelTextBaseline = isPositiveY ? 'bottom' : 'top';\n } else if (labelPlacement === BarColumnLabelPlacement.InsideEnd) {\n labelY = y + (isPositiveY ? labelPadding : height - labelPadding);\n labelTextBaseline = isPositiveY ? 'top' : 'bottom';\n var textSize = HdpiCanvas.getTextSize(labelText, labelFontFamily);\n var textHeight = textSize.height || 10;\n var positiveBoundary = yZero - textHeight;\n var negativeBoundary = yZero + textHeight;\n var exceedsBoundaries = isPositiveY && labelY > positiveBoundary || !isPositiveY && labelY < negativeBoundary;\n\n if (exceedsBoundaries) {\n // if labelY exceeds the y boundary, labels should be positioned at the insideBase\n labelY = yZero + labelPadding * (isPositiveY ? -1 : 1);\n labelTextBaseline = isPositiveY ? 'bottom' : 'top';\n }\n } else {\n // if labelPlacement === BarColumnLabelPlacement.InsideBase\n labelY = yZero + labelPadding * (isPositiveY ? -1 : 1);\n labelTextBaseline = isPositiveY ? 'bottom' : 'top';\n }\n\n nodeData.push({\n x: x,\n y: y,\n width: width,\n height: height,\n fill: fill,\n stroke: stroke,\n strokeWidth: strokeWidth,\n seriesDatum: {\n x: xDatum,\n y: invalidDatum ? undefined : yDatum\n },\n point: midPoint,\n label: {\n x: labelX,\n y: labelY,\n text: labelText,\n fontStyle: labelFontStyle,\n fontWeight: labelFontWeight,\n fontSize: labelFontSize,\n fontFamily: labelFontFamily,\n textAlign: labelTextAlign,\n textBaseline: labelTextBaseline,\n fill: labelColor\n }\n });\n }\n\n return nodeData;\n };\n\n ColumnSparkline.className = 'ColumnSparkline';\n return ColumnSparkline;\n}(BarColumnSparkline);\n\nvar AgSparkline =\n/** @class */\nfunction () {\n function AgSparkline() {}\n\n AgSparkline.create = function (options, tooltip) {\n // avoid mutating user provided options\n options = Object.create(options);\n var sparkline = getSparklineInstance(options.type);\n\n if (tooltip) {\n sparkline.tooltip = tooltip;\n }\n\n initSparkline(sparkline, options);\n initSparklineByType(sparkline, options);\n\n if (options.data) {\n sparkline.data = options.data;\n }\n\n return sparkline;\n };\n\n return AgSparkline;\n}();\n\nfunction getSparklineInstance(type) {\n if (type === void 0) {\n type = 'line';\n }\n\n switch (type) {\n case 'column':\n return new ColumnSparkline();\n\n case 'bar':\n return new BarSparkline();\n\n case 'area':\n return new AreaSparkline();\n\n case 'line':\n default:\n return new LineSparkline();\n }\n}\n\nfunction initSparklineByType(sparkline, options) {\n switch (options.type) {\n case 'bar':\n initBarColumnSparkline(sparkline, options);\n break;\n\n case 'column':\n initBarColumnSparkline(sparkline, options);\n break;\n\n case 'area':\n initAreaSparkline(sparkline, options);\n break;\n\n case 'line':\n default:\n initLineSparkline(sparkline, options);\n break;\n }\n}\n\nfunction initSparkline(sparkline, options) {\n setValueIfPropertyExists(sparkline, 'context', options.context, options);\n setValueIfPropertyExists(sparkline, 'width', options.width, options);\n setValueIfPropertyExists(sparkline, 'height', options.height, options);\n setValueIfPropertyExists(sparkline, 'container', options.container, options);\n setValueIfPropertyExists(sparkline, 'xKey', options.xKey, options);\n setValueIfPropertyExists(sparkline, 'yKey', options.yKey, options);\n\n if (options.padding) {\n initPaddingOptions(sparkline.padding, options.padding);\n }\n\n if (options.axis) {\n initAxisOptions(sparkline.axis, options.axis);\n }\n\n if (options.highlightStyle) {\n initHighlightStyleOptions(sparkline.highlightStyle, options.highlightStyle);\n }\n\n if (options.tooltip && sparkline.tooltip) {\n initTooltipOptions(sparkline.tooltip, options.tooltip);\n }\n}\n\nfunction initLineSparkline(sparkline, options) {\n if (options.marker) {\n initMarkerOptions(sparkline.marker, options.marker);\n }\n\n if (options.line) {\n initLineOptions(sparkline.line, options.line);\n }\n\n if (options.crosshairs) {\n initCrosshairsOptions(sparkline.crosshairs, options.crosshairs);\n }\n}\n\nfunction initAreaSparkline(sparkline, options) {\n setValueIfPropertyExists(sparkline, 'fill', options.fill, options);\n\n if (options.marker) {\n initMarkerOptions(sparkline.marker, options.marker);\n }\n\n if (options.line) {\n initLineOptions(sparkline.line, options.line);\n }\n\n if (options.crosshairs) {\n initCrosshairsOptions(sparkline.crosshairs, options.crosshairs);\n }\n}\n\nfunction initBarColumnSparkline(sparkline, options) {\n setValueIfPropertyExists(sparkline, 'valueAxisDomain', options.valueAxisDomain, options);\n setValueIfPropertyExists(sparkline, 'fill', options.fill, options);\n setValueIfPropertyExists(sparkline, 'stroke', options.stroke, options);\n setValueIfPropertyExists(sparkline, 'strokeWidth', options.strokeWidth, options);\n setValueIfPropertyExists(sparkline, 'paddingInner', options.paddingInner, options);\n setValueIfPropertyExists(sparkline, 'paddingOuter', options.paddingOuter, options);\n setValueIfPropertyExists(sparkline, 'formatter', options.formatter, options);\n\n if (options.label) {\n initLabelOptions(sparkline.label, options.label);\n }\n}\n\nfunction initPaddingOptions(target, options) {\n setValueIfPropertyExists(target, 'top', options.top, options);\n setValueIfPropertyExists(target, 'right', options.right, options);\n setValueIfPropertyExists(target, 'bottom', options.bottom, options);\n setValueIfPropertyExists(target, 'left', options.left, options);\n}\n\nfunction initMarkerOptions(target, options) {\n setValueIfPropertyExists(target, 'enabled', options.enabled, options);\n setValueIfPropertyExists(target, 'size', options.size, options);\n setValueIfPropertyExists(target, 'shape', options.shape, options);\n setValueIfPropertyExists(target, 'fill', options.fill, options);\n setValueIfPropertyExists(target, 'stroke', options.stroke, options);\n setValueIfPropertyExists(target, 'strokeWidth', options.strokeWidth, options);\n setValueIfPropertyExists(target, 'formatter', options.formatter, options);\n}\n\nfunction initLabelOptions(target, options) {\n setValueIfPropertyExists(target, 'enabled', options.enabled, options);\n setValueIfPropertyExists(target, 'fontStyle', options.fontStyle, options);\n setValueIfPropertyExists(target, 'fontWeight', options.fontWeight, options);\n setValueIfPropertyExists(target, 'fontSize', options.fontSize, options);\n setValueIfPropertyExists(target, 'fontFamily', options.fontFamily, options);\n setValueIfPropertyExists(target, 'textAlign', options.textAlign, options);\n setValueIfPropertyExists(target, 'textBaseline', options.textBaseline, options);\n setValueIfPropertyExists(target, 'color', options.color, options);\n setValueIfPropertyExists(target, 'formatter', options.formatter, options);\n setValueIfPropertyExists(target, 'placement', options.placement, options);\n}\n\nfunction initLineOptions(target, options) {\n setValueIfPropertyExists(target, 'stroke', options.stroke, options);\n setValueIfPropertyExists(target, 'strokeWidth', options.strokeWidth, options);\n}\n\nfunction initAxisOptions(target, options) {\n setValueIfPropertyExists(target, 'type', options.type, options);\n setValueIfPropertyExists(target, 'stroke', options.stroke, options);\n setValueIfPropertyExists(target, 'strokeWidth', options.strokeWidth, options);\n}\n\nfunction initHighlightStyleOptions(target, options) {\n setValueIfPropertyExists(target, 'fill', options.fill, options);\n setValueIfPropertyExists(target, 'size', options.size, options);\n setValueIfPropertyExists(target, 'stroke', options.stroke, options);\n setValueIfPropertyExists(target, 'strokeWidth', options.strokeWidth, options);\n}\n\nfunction initTooltipOptions(target, options) {\n setValueIfPropertyExists(target, 'enabled', options.enabled, options);\n setValueIfPropertyExists(target, 'container', options.container, options);\n setValueIfPropertyExists(target, 'xOffset', options.xOffset, options);\n setValueIfPropertyExists(target, 'yOffset', options.yOffset, options);\n setValueIfPropertyExists(target, 'renderer', options.renderer, options);\n}\n\nfunction initCrosshairsOptions(target, options) {\n if (target.xLine && options.xLine) {\n initCrosshairLineOptions(target.xLine, options.xLine);\n }\n\n if (target.yLine && options.yLine) {\n initCrosshairLineOptions(target.yLine, options.yLine);\n }\n}\n\nfunction initCrosshairLineOptions(target, options) {\n setValueIfPropertyExists(target, 'enabled', options.enabled, options);\n setValueIfPropertyExists(target, 'stroke', options.stroke, options);\n setValueIfPropertyExists(target, 'strokeWidth', options.strokeWidth, options);\n setValueIfPropertyExists(target, 'lineDash', options.lineDash, options);\n setValueIfPropertyExists(target, 'lineCap', options.lineCap, options);\n}\n\nvar doOnceFlags = {};\n/**\n * If the key was passed before, then doesn't execute the func\n * @param {Function} func\n * @param {string} key\n */\n\nfunction doOnce(func, key) {\n if (doOnceFlags[key]) {\n return;\n }\n\n func();\n doOnceFlags[key] = true;\n}\n\nvar offsetValidator = function offsetValidator(property, value, defaultOffset) {\n if (isNumber(value)) {\n return true;\n }\n\n var message = \"AG Charts: \" + property + \" must be a number, the value you provided is not a valid number. Using the default of \" + defaultOffset + \"px.\";\n doOnce(function () {\n return console.warn(message);\n }, property + \" not a number\");\n return false;\n};\n\nvar validators = {\n xOffset: offsetValidator,\n yOffset: offsetValidator\n};\n\nfunction setValueIfPropertyExists(target, property, value, options) {\n if (property in options) {\n if (property in target) {\n var validator = validators[property];\n var isValid = validator ? validator(property, value, target[property]) : true;\n\n if (isValid && target[property] !== value) {\n // only set property if the value is different to new value\n target[property] = value;\n }\n } else {\n console.warn(\"Property \" + property + \" does not exist on the target object.\");\n }\n }\n}\n\nvar __extends$1 = undefined && undefined.__extends || function () {\n var _extendStatics219 = function extendStatics(d, b) {\n _extendStatics219 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics219(d, b);\n };\n\n return function (d, b) {\n _extendStatics219(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign = undefined && undefined.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign.apply(this, arguments);\n};\n\nvar __decorate$1 = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\nvar SparklineCellRenderer =\n/** @class */\nfunction (_super) {\n __extends$1(SparklineCellRenderer, _super);\n\n function SparklineCellRenderer() {\n return _super.call(this, SparklineCellRenderer.TEMPLATE) || this;\n }\n\n SparklineCellRenderer.prototype.init = function (params) {\n var _this = this;\n\n var firstTimeIn = true;\n\n var updateSparkline = function updateSparkline() {\n var _a = _this.getGui(),\n clientWidth = _a.clientWidth,\n clientHeight = _a.clientHeight;\n\n if (clientWidth === 0 || clientHeight === 0) {\n return;\n }\n\n if (firstTimeIn) {\n var options = __assign({\n data: params.value,\n width: clientWidth,\n height: clientHeight,\n context: {\n data: params.data\n }\n }, params.sparklineOptions); // create new instance of sparkline\n\n\n _this.sparkline = AgSparkline.create(options, _this.sparklineTooltipSingleton.getSparklineTooltip()); // append sparkline canvas to cell renderer element\n\n _this.eSparkline.appendChild(_this.sparkline.canvasElement);\n\n firstTimeIn = false;\n } else {\n _this.sparkline.width = clientWidth;\n _this.sparkline.height = clientHeight;\n }\n };\n\n var unsubscribeFromResize = this.resizeObserverService.observeResize(this.getGui(), updateSparkline);\n this.addDestroyFunc(function () {\n return unsubscribeFromResize();\n });\n };\n\n SparklineCellRenderer.prototype.refresh = function (params) {\n if (this.sparkline) {\n this.sparkline.data = params.value;\n return true;\n }\n\n return false;\n };\n\n SparklineCellRenderer.prototype.destroy = function () {\n if (this.sparkline) {\n this.sparkline.destroy();\n }\n\n _super.prototype.destroy.call(this);\n };\n\n SparklineCellRenderer.TEMPLATE\n /* html */\n = \"
\\n \\n
\";\n\n __decorate$1([RefSelector('eSparkline')], SparklineCellRenderer.prototype, \"eSparkline\", void 0);\n\n __decorate$1([Autowired('resizeObserverService')], SparklineCellRenderer.prototype, \"resizeObserverService\", void 0);\n\n __decorate$1([Autowired('sparklineTooltipSingleton')], SparklineCellRenderer.prototype, \"sparklineTooltipSingleton\", void 0);\n\n return SparklineCellRenderer;\n}(Component);\n\nvar __extends = undefined && undefined.__extends || function () {\n var _extendStatics220 = function extendStatics(d, b) {\n _extendStatics220 = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics220(d, b);\n };\n\n return function (d, b) {\n _extendStatics220(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {\n if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n }\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n/**\n * This 'bean' creates a single sparkline tooltip that is bound to the grid lifecycle.\n */\n\n\nvar SparklineTooltipSingleton =\n/** @class */\nfunction (_super) {\n __extends(SparklineTooltipSingleton, _super);\n\n function SparklineTooltipSingleton() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n\n SparklineTooltipSingleton.prototype.postConstruct = function () {\n this.tooltip = new SparklineTooltip();\n };\n\n SparklineTooltipSingleton.prototype.getSparklineTooltip = function () {\n return this.tooltip;\n };\n\n SparklineTooltipSingleton.prototype.destroyTooltip = function () {\n if (this.tooltip) {\n this.tooltip.destroy();\n }\n };\n\n __decorate([PostConstruct], SparklineTooltipSingleton.prototype, \"postConstruct\", null);\n\n __decorate([PreDestroy], SparklineTooltipSingleton.prototype, \"destroyTooltip\", null);\n\n SparklineTooltipSingleton = __decorate([Bean('sparklineTooltipSingleton')], SparklineTooltipSingleton);\n return SparklineTooltipSingleton;\n}(BeanStub);\n\nvar SparklinesModule = {\n moduleName: ModuleNames.SparklinesModule,\n beans: [SparklineTooltipSingleton],\n userComponents: [{\n componentName: 'agSparklineCellRenderer',\n componentClass: SparklineCellRenderer\n }],\n dependantModules: [EnterpriseCoreModule]\n};\nvar AllEnterpriseModules = [ClipboardModule, ColumnsToolPanelModule, ExcelExportModule, FiltersToolPanelModule, GridChartsModule, MasterDetailModule, MenuModule, MultiFilterModule, RangeSelectionModule, RichSelectModule, RowGroupingModule, ServerSideRowModelModule, SetFilterModule, SideBarModule, StatusBarModule, ViewportRowModelModule, SparklinesModule];\nvar AllModules = AllCommunityModules.concat(AllEnterpriseModules);\nModuleRegistry.registerModules(AllEnterpriseModules);\nexport { AllEnterpriseModules, AllModules, ClipboardModule, ColumnsToolPanelModule, EnterpriseCoreModule, ExcelExportModule, FiltersToolPanelModule, GridChartsModule, LicenseManager, MasterDetailModule, MenuModule, MultiFilter, MultiFilterModule, PivotDropZonePanel, PrimaryColsPanel, RangeSelectionModule, RichSelectModule, RowGroupDropZonePanel, RowGroupingModule, ServerSideRowModelModule, SetFilter, SetFilterModule, SideBarModule, SparklinesModule, StatusBarModule, ToolPanelColDefService, ValuesDropZonePanel, ViewportRowModelModule, agCharts, exportMultipleSheetsAsExcel, getMultipleSheetsAsExcel };","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}","/**!\n * @fileOverview Kickass library to create and place poppers near their reference elements.\n * @version 1.16.1\n * @license\n * Copyright (c) 2016 Federico Zivolo and contributors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nvar isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';\n\nvar timeoutDuration = function () {\n var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];\n\n for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {\n if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {\n return 1;\n }\n }\n\n return 0;\n}();\n\nfunction microtaskDebounce(fn) {\n var called = false;\n return function () {\n if (called) {\n return;\n }\n\n called = true;\n window.Promise.resolve().then(function () {\n called = false;\n fn();\n });\n };\n}\n\nfunction taskDebounce(fn) {\n var scheduled = false;\n return function () {\n if (!scheduled) {\n scheduled = true;\n setTimeout(function () {\n scheduled = false;\n fn();\n }, timeoutDuration);\n }\n };\n}\n\nvar supportsMicroTasks = isBrowser && window.Promise;\n/**\n* Create a debounced version of a method, that's asynchronously deferred\n* but called in the minimum time possible.\n*\n* @method\n* @memberof Popper.Utils\n* @argument {Function} fn\n* @returns {Function}\n*/\n\nvar debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce;\n/**\n * Check if the given variable is a function\n * @method\n * @memberof Popper.Utils\n * @argument {Any} functionToCheck - variable to check\n * @returns {Boolean} answer to: is a function?\n */\n\nfunction isFunction(functionToCheck) {\n var getType = {};\n return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';\n}\n/**\n * Get CSS computed property of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Eement} element\n * @argument {String} property\n */\n\n\nfunction getStyleComputedProperty(element, property) {\n if (element.nodeType !== 1) {\n return [];\n } // NOTE: 1 DOM access here\n\n\n var window = element.ownerDocument.defaultView;\n var css = window.getComputedStyle(element, null);\n return property ? css[property] : css;\n}\n/**\n * Returns the parentNode or the host of the element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} parent\n */\n\n\nfunction getParentNode(element) {\n if (element.nodeName === 'HTML') {\n return element;\n }\n\n return element.parentNode || element.host;\n}\n/**\n * Returns the scrolling parent of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} scroll parent\n */\n\n\nfunction getScrollParent(element) {\n // Return body, `getScroll` will take care to get the correct `scrollTop` from it\n if (!element) {\n return document.body;\n }\n\n switch (element.nodeName) {\n case 'HTML':\n case 'BODY':\n return element.ownerDocument.body;\n\n case '#document':\n return element.body;\n } // Firefox want us to check `-x` and `-y` variations as well\n\n\n var _getStyleComputedProp = getStyleComputedProperty(element),\n overflow = _getStyleComputedProp.overflow,\n overflowX = _getStyleComputedProp.overflowX,\n overflowY = _getStyleComputedProp.overflowY;\n\n if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) {\n return element;\n }\n\n return getScrollParent(getParentNode(element));\n}\n/**\n * Returns the reference node of the reference object, or the reference object itself.\n * @method\n * @memberof Popper.Utils\n * @param {Element|Object} reference - the reference element (the popper will be relative to this)\n * @returns {Element} parent\n */\n\n\nfunction getReferenceNode(reference) {\n return reference && reference.referenceNode ? reference.referenceNode : reference;\n}\n\nvar isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode);\nvar isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent);\n/**\n * Determines if the browser is Internet Explorer\n * @method\n * @memberof Popper.Utils\n * @param {Number} version to check\n * @returns {Boolean} isIE\n */\n\nfunction isIE(version) {\n if (version === 11) {\n return isIE11;\n }\n\n if (version === 10) {\n return isIE10;\n }\n\n return isIE11 || isIE10;\n}\n/**\n * Returns the offset parent of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} offset parent\n */\n\n\nfunction getOffsetParent(element) {\n if (!element) {\n return document.documentElement;\n }\n\n var noOffsetParent = isIE(10) ? document.body : null; // NOTE: 1 DOM access here\n\n var offsetParent = element.offsetParent || null; // Skip hidden elements which don't have an offsetParent\n\n while (offsetParent === noOffsetParent && element.nextElementSibling) {\n offsetParent = (element = element.nextElementSibling).offsetParent;\n }\n\n var nodeName = offsetParent && offsetParent.nodeName;\n\n if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') {\n return element ? element.ownerDocument.documentElement : document.documentElement;\n } // .offsetParent will return the closest TH, TD or TABLE in case\n // no offsetParent is present, I hate this job...\n\n\n if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') {\n return getOffsetParent(offsetParent);\n }\n\n return offsetParent;\n}\n\nfunction isOffsetContainer(element) {\n var nodeName = element.nodeName;\n\n if (nodeName === 'BODY') {\n return false;\n }\n\n return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element;\n}\n/**\n * Finds the root node (document, shadowDOM root) of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} node\n * @returns {Element} root node\n */\n\n\nfunction getRoot(node) {\n if (node.parentNode !== null) {\n return getRoot(node.parentNode);\n }\n\n return node;\n}\n/**\n * Finds the offset parent common to the two provided nodes\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element1\n * @argument {Element} element2\n * @returns {Element} common offset parent\n */\n\n\nfunction findCommonOffsetParent(element1, element2) {\n // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) {\n return document.documentElement;\n } // Here we make sure to give as \"start\" the element that comes first in the DOM\n\n\n var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING;\n var start = order ? element1 : element2;\n var end = order ? element2 : element1; // Get common ancestor container\n\n var range = document.createRange();\n range.setStart(start, 0);\n range.setEnd(end, 0);\n var commonAncestorContainer = range.commonAncestorContainer; // Both nodes are inside #document\n\n if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) {\n if (isOffsetContainer(commonAncestorContainer)) {\n return commonAncestorContainer;\n }\n\n return getOffsetParent(commonAncestorContainer);\n } // one of the nodes is inside shadowDOM, find which one\n\n\n var element1root = getRoot(element1);\n\n if (element1root.host) {\n return findCommonOffsetParent(element1root.host, element2);\n } else {\n return findCommonOffsetParent(element1, getRoot(element2).host);\n }\n}\n/**\n * Gets the scroll value of the given element in the given side (top and left)\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @argument {String} side `top` or `left`\n * @returns {number} amount of scrolled pixels\n */\n\n\nfunction getScroll(element) {\n var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top';\n var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft';\n var nodeName = element.nodeName;\n\n if (nodeName === 'BODY' || nodeName === 'HTML') {\n var html = element.ownerDocument.documentElement;\n var scrollingElement = element.ownerDocument.scrollingElement || html;\n return scrollingElement[upperSide];\n }\n\n return element[upperSide];\n}\n/*\n * Sum or subtract the element scroll values (left and top) from a given rect object\n * @method\n * @memberof Popper.Utils\n * @param {Object} rect - Rect object you want to change\n * @param {HTMLElement} element - The element from the function reads the scroll values\n * @param {Boolean} subtract - set to true if you want to subtract the scroll values\n * @return {Object} rect - The modifier rect object\n */\n\n\nfunction includeScroll(rect, element) {\n var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var scrollTop = getScroll(element, 'top');\n var scrollLeft = getScroll(element, 'left');\n var modifier = subtract ? -1 : 1;\n rect.top += scrollTop * modifier;\n rect.bottom += scrollTop * modifier;\n rect.left += scrollLeft * modifier;\n rect.right += scrollLeft * modifier;\n return rect;\n}\n/*\n * Helper to detect borders of a given element\n * @method\n * @memberof Popper.Utils\n * @param {CSSStyleDeclaration} styles\n * Result of `getStyleComputedProperty` on the given element\n * @param {String} axis - `x` or `y`\n * @return {number} borders - The borders size of the given axis\n */\n\n\nfunction getBordersSize(styles, axis) {\n var sideA = axis === 'x' ? 'Left' : 'Top';\n var sideB = sideA === 'Left' ? 'Right' : 'Bottom';\n return parseFloat(styles['border' + sideA + 'Width']) + parseFloat(styles['border' + sideB + 'Width']);\n}\n\nfunction getSize(axis, body, html, computedStyle) {\n return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0);\n}\n\nfunction getWindowSizes(document) {\n var body = document.body;\n var html = document.documentElement;\n var computedStyle = isIE(10) && getComputedStyle(html);\n return {\n height: getSize('Height', body, html, computedStyle),\n width: getSize('Width', body, html, computedStyle)\n };\n}\n\nvar classCallCheck = function classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nvar createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\nvar defineProperty = function defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n};\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n/**\n * Given element offsets, generate an output similar to getBoundingClientRect\n * @method\n * @memberof Popper.Utils\n * @argument {Object} offsets\n * @returns {Object} ClientRect like output\n */\n\n\nfunction getClientRect(offsets) {\n return _extends({}, offsets, {\n right: offsets.left + offsets.width,\n bottom: offsets.top + offsets.height\n });\n}\n/**\n * Get bounding client rect of given element\n * @method\n * @memberof Popper.Utils\n * @param {HTMLElement} element\n * @return {Object} client rect\n */\n\n\nfunction getBoundingClientRect(element) {\n var rect = {}; // IE10 10 FIX: Please, don't ask, the element isn't\n // considered in DOM in some circumstances...\n // This isn't reproducible in IE10 compatibility mode of IE11\n\n try {\n if (isIE(10)) {\n rect = element.getBoundingClientRect();\n var scrollTop = getScroll(element, 'top');\n var scrollLeft = getScroll(element, 'left');\n rect.top += scrollTop;\n rect.left += scrollLeft;\n rect.bottom += scrollTop;\n rect.right += scrollLeft;\n } else {\n rect = element.getBoundingClientRect();\n }\n } catch (e) {}\n\n var result = {\n left: rect.left,\n top: rect.top,\n width: rect.right - rect.left,\n height: rect.bottom - rect.top\n }; // subtract scrollbar size from sizes\n\n var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};\n var width = sizes.width || element.clientWidth || result.width;\n var height = sizes.height || element.clientHeight || result.height;\n var horizScrollbar = element.offsetWidth - width;\n var vertScrollbar = element.offsetHeight - height; // if an hypothetical scrollbar is detected, we must be sure it's not a `border`\n // we make this check conditional for performance reasons\n\n if (horizScrollbar || vertScrollbar) {\n var styles = getStyleComputedProperty(element);\n horizScrollbar -= getBordersSize(styles, 'x');\n vertScrollbar -= getBordersSize(styles, 'y');\n result.width -= horizScrollbar;\n result.height -= vertScrollbar;\n }\n\n return getClientRect(result);\n}\n\nfunction getOffsetRectRelativeToArbitraryNode(children, parent) {\n var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var isIE10 = isIE(10);\n var isHTML = parent.nodeName === 'HTML';\n var childrenRect = getBoundingClientRect(children);\n var parentRect = getBoundingClientRect(parent);\n var scrollParent = getScrollParent(children);\n var styles = getStyleComputedProperty(parent);\n var borderTopWidth = parseFloat(styles.borderTopWidth);\n var borderLeftWidth = parseFloat(styles.borderLeftWidth); // In cases where the parent is fixed, we must ignore negative scroll in offset calc\n\n if (fixedPosition && isHTML) {\n parentRect.top = Math.max(parentRect.top, 0);\n parentRect.left = Math.max(parentRect.left, 0);\n }\n\n var offsets = getClientRect({\n top: childrenRect.top - parentRect.top - borderTopWidth,\n left: childrenRect.left - parentRect.left - borderLeftWidth,\n width: childrenRect.width,\n height: childrenRect.height\n });\n offsets.marginTop = 0;\n offsets.marginLeft = 0; // Subtract margins of documentElement in case it's being used as parent\n // we do this only on HTML because it's the only element that behaves\n // differently when margins are applied to it. The margins are included in\n // the box of the documentElement, in the other cases not.\n\n if (!isIE10 && isHTML) {\n var marginTop = parseFloat(styles.marginTop);\n var marginLeft = parseFloat(styles.marginLeft);\n offsets.top -= borderTopWidth - marginTop;\n offsets.bottom -= borderTopWidth - marginTop;\n offsets.left -= borderLeftWidth - marginLeft;\n offsets.right -= borderLeftWidth - marginLeft; // Attach marginTop and marginLeft because in some circumstances we may need them\n\n offsets.marginTop = marginTop;\n offsets.marginLeft = marginLeft;\n }\n\n if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') {\n offsets = includeScroll(offsets, parent);\n }\n\n return offsets;\n}\n\nfunction getViewportOffsetRectRelativeToArtbitraryNode(element) {\n var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var html = element.ownerDocument.documentElement;\n var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html);\n var width = Math.max(html.clientWidth, window.innerWidth || 0);\n var height = Math.max(html.clientHeight, window.innerHeight || 0);\n var scrollTop = !excludeScroll ? getScroll(html) : 0;\n var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0;\n var offset = {\n top: scrollTop - relativeOffset.top + relativeOffset.marginTop,\n left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft,\n width: width,\n height: height\n };\n return getClientRect(offset);\n}\n/**\n * Check if the given element is fixed or is inside a fixed parent\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @argument {Element} customContainer\n * @returns {Boolean} answer to \"isFixed?\"\n */\n\n\nfunction isFixed(element) {\n var nodeName = element.nodeName;\n\n if (nodeName === 'BODY' || nodeName === 'HTML') {\n return false;\n }\n\n if (getStyleComputedProperty(element, 'position') === 'fixed') {\n return true;\n }\n\n var parentNode = getParentNode(element);\n\n if (!parentNode) {\n return false;\n }\n\n return isFixed(parentNode);\n}\n/**\n * Finds the first parent of an element that has a transformed property defined\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} first transformed parent or documentElement\n */\n\n\nfunction getFixedPositionOffsetParent(element) {\n // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n if (!element || !element.parentElement || isIE()) {\n return document.documentElement;\n }\n\n var el = element.parentElement;\n\n while (el && getStyleComputedProperty(el, 'transform') === 'none') {\n el = el.parentElement;\n }\n\n return el || document.documentElement;\n}\n/**\n * Computed the boundaries limits and return them\n * @method\n * @memberof Popper.Utils\n * @param {HTMLElement} popper\n * @param {HTMLElement} reference\n * @param {number} padding\n * @param {HTMLElement} boundariesElement - Element used to define the boundaries\n * @param {Boolean} fixedPosition - Is in fixed position mode\n * @returns {Object} Coordinates of the boundaries\n */\n\n\nfunction getBoundaries(popper, reference, padding, boundariesElement) {\n var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; // NOTE: 1 DOM access here\n\n var boundaries = {\n top: 0,\n left: 0\n };\n var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference)); // Handle viewport case\n\n if (boundariesElement === 'viewport') {\n boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition);\n } else {\n // Handle other cases based on DOM element used as boundaries\n var boundariesNode = void 0;\n\n if (boundariesElement === 'scrollParent') {\n boundariesNode = getScrollParent(getParentNode(reference));\n\n if (boundariesNode.nodeName === 'BODY') {\n boundariesNode = popper.ownerDocument.documentElement;\n }\n } else if (boundariesElement === 'window') {\n boundariesNode = popper.ownerDocument.documentElement;\n } else {\n boundariesNode = boundariesElement;\n }\n\n var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition); // In case of HTML, we need a different computation\n\n if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {\n var _getWindowSizes = getWindowSizes(popper.ownerDocument),\n height = _getWindowSizes.height,\n width = _getWindowSizes.width;\n\n boundaries.top += offsets.top - offsets.marginTop;\n boundaries.bottom = height + offsets.top;\n boundaries.left += offsets.left - offsets.marginLeft;\n boundaries.right = width + offsets.left;\n } else {\n // for all the other DOM elements, this one is good\n boundaries = offsets;\n }\n } // Add paddings\n\n\n padding = padding || 0;\n var isPaddingNumber = typeof padding === 'number';\n boundaries.left += isPaddingNumber ? padding : padding.left || 0;\n boundaries.top += isPaddingNumber ? padding : padding.top || 0;\n boundaries.right -= isPaddingNumber ? padding : padding.right || 0;\n boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0;\n return boundaries;\n}\n\nfunction getArea(_ref) {\n var width = _ref.width,\n height = _ref.height;\n return width * height;\n}\n/**\n * Utility used to transform the `auto` placement to the placement with more\n * available space.\n * @method\n * @memberof Popper.Utils\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) {\n var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;\n\n if (placement.indexOf('auto') === -1) {\n return placement;\n }\n\n var boundaries = getBoundaries(popper, reference, padding, boundariesElement);\n var rects = {\n top: {\n width: boundaries.width,\n height: refRect.top - boundaries.top\n },\n right: {\n width: boundaries.right - refRect.right,\n height: boundaries.height\n },\n bottom: {\n width: boundaries.width,\n height: boundaries.bottom - refRect.bottom\n },\n left: {\n width: refRect.left - boundaries.left,\n height: boundaries.height\n }\n };\n var sortedAreas = Object.keys(rects).map(function (key) {\n return _extends({\n key: key\n }, rects[key], {\n area: getArea(rects[key])\n });\n }).sort(function (a, b) {\n return b.area - a.area;\n });\n var filteredAreas = sortedAreas.filter(function (_ref2) {\n var width = _ref2.width,\n height = _ref2.height;\n return width >= popper.clientWidth && height >= popper.clientHeight;\n });\n var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key;\n var variation = placement.split('-')[1];\n return computedPlacement + (variation ? '-' + variation : '');\n}\n/**\n * Get offsets to the reference element\n * @method\n * @memberof Popper.Utils\n * @param {Object} state\n * @param {Element} popper - the popper element\n * @param {Element} reference - the reference element (the popper will be relative to this)\n * @param {Element} fixedPosition - is in fixed position mode\n * @returns {Object} An object containing the offsets which will be applied to the popper\n */\n\n\nfunction getReferenceOffsets(state, popper, reference) {\n var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;\n var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));\n return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition);\n}\n/**\n * Get the outer sizes of the given element (offset size + margins)\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Object} object containing width and height properties\n */\n\n\nfunction getOuterSizes(element) {\n var window = element.ownerDocument.defaultView;\n var styles = window.getComputedStyle(element);\n var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0);\n var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0);\n var result = {\n width: element.offsetWidth + y,\n height: element.offsetHeight + x\n };\n return result;\n}\n/**\n * Get the opposite placement of the given one\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement\n * @returns {String} flipped placement\n */\n\n\nfunction getOppositePlacement(placement) {\n var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n };\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}\n/**\n * Get offsets to the popper\n * @method\n * @memberof Popper.Utils\n * @param {Object} position - CSS position the Popper will get applied\n * @param {HTMLElement} popper - the popper element\n * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this)\n * @param {String} placement - one of the valid placement options\n * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper\n */\n\n\nfunction getPopperOffsets(popper, referenceOffsets, placement) {\n placement = placement.split('-')[0]; // Get popper node sizes\n\n var popperRect = getOuterSizes(popper); // Add position, width and height to our offsets object\n\n var popperOffsets = {\n width: popperRect.width,\n height: popperRect.height\n }; // depending by the popper placement we have to compute its offsets slightly differently\n\n var isHoriz = ['right', 'left'].indexOf(placement) !== -1;\n var mainSide = isHoriz ? 'top' : 'left';\n var secondarySide = isHoriz ? 'left' : 'top';\n var measurement = isHoriz ? 'height' : 'width';\n var secondaryMeasurement = !isHoriz ? 'height' : 'width';\n popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2;\n\n if (placement === secondarySide) {\n popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement];\n } else {\n popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)];\n }\n\n return popperOffsets;\n}\n/**\n * Mimics the `find` method of Array\n * @method\n * @memberof Popper.Utils\n * @argument {Array} arr\n * @argument prop\n * @argument value\n * @returns index or -1\n */\n\n\nfunction find(arr, check) {\n // use native find if supported\n if (Array.prototype.find) {\n return arr.find(check);\n } // use `filter` to obtain the same behavior of `find`\n\n\n return arr.filter(check)[0];\n}\n/**\n * Return the index of the matching object\n * @method\n * @memberof Popper.Utils\n * @argument {Array} arr\n * @argument prop\n * @argument value\n * @returns index or -1\n */\n\n\nfunction findIndex(arr, prop, value) {\n // use native findIndex if supported\n if (Array.prototype.findIndex) {\n return arr.findIndex(function (cur) {\n return cur[prop] === value;\n });\n } // use `find` + `indexOf` if `findIndex` isn't supported\n\n\n var match = find(arr, function (obj) {\n return obj[prop] === value;\n });\n return arr.indexOf(match);\n}\n/**\n * Loop trough the list of modifiers and run them in order,\n * each of them will then edit the data object.\n * @method\n * @memberof Popper.Utils\n * @param {dataObject} data\n * @param {Array} modifiers\n * @param {String} ends - Optional modifier name used as stopper\n * @returns {dataObject}\n */\n\n\nfunction runModifiers(modifiers, data, ends) {\n var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends));\n modifiersToRun.forEach(function (modifier) {\n if (modifier['function']) {\n // eslint-disable-line dot-notation\n console.warn('`modifier.function` is deprecated, use `modifier.fn`!');\n }\n\n var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation\n\n if (modifier.enabled && isFunction(fn)) {\n // Add properties to offsets to make them a complete clientRect object\n // we do this before each modifier to make sure the previous one doesn't\n // mess with these values\n data.offsets.popper = getClientRect(data.offsets.popper);\n data.offsets.reference = getClientRect(data.offsets.reference);\n data = fn(data, modifier);\n }\n });\n return data;\n}\n/**\n * Updates the position of the popper, computing the new offsets and applying\n * the new style.
\n * Prefer `scheduleUpdate` over `update` because of performance reasons.\n * @method\n * @memberof Popper\n */\n\n\nfunction update() {\n // if popper is destroyed, don't perform any further update\n if (this.state.isDestroyed) {\n return;\n }\n\n var data = {\n instance: this,\n styles: {},\n arrowStyles: {},\n attributes: {},\n flipped: false,\n offsets: {}\n }; // compute reference element offsets\n\n data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed); // compute auto placement, store placement inside the data object,\n // modifiers will be able to edit `placement` if needed\n // and refer to originalPlacement to know the original value\n\n data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding); // store the computed placement inside `originalPlacement`\n\n data.originalPlacement = data.placement;\n data.positionFixed = this.options.positionFixed; // compute the popper offsets\n\n data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement);\n data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute'; // run the modifiers\n\n data = runModifiers(this.modifiers, data); // the first `update` will call `onCreate` callback\n // the other ones will call `onUpdate` callback\n\n if (!this.state.isCreated) {\n this.state.isCreated = true;\n this.options.onCreate(data);\n } else {\n this.options.onUpdate(data);\n }\n}\n/**\n * Helper used to know if the given modifier is enabled.\n * @method\n * @memberof Popper.Utils\n * @returns {Boolean}\n */\n\n\nfunction isModifierEnabled(modifiers, modifierName) {\n return modifiers.some(function (_ref) {\n var name = _ref.name,\n enabled = _ref.enabled;\n return enabled && name === modifierName;\n });\n}\n/**\n * Get the prefixed supported property name\n * @method\n * @memberof Popper.Utils\n * @argument {String} property (camelCase)\n * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix)\n */\n\n\nfunction getSupportedPropertyName(property) {\n var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O'];\n var upperProp = property.charAt(0).toUpperCase() + property.slice(1);\n\n for (var i = 0; i < prefixes.length; i++) {\n var prefix = prefixes[i];\n var toCheck = prefix ? '' + prefix + upperProp : property;\n\n if (typeof document.body.style[toCheck] !== 'undefined') {\n return toCheck;\n }\n }\n\n return null;\n}\n/**\n * Destroys the popper.\n * @method\n * @memberof Popper\n */\n\n\nfunction destroy() {\n this.state.isDestroyed = true; // touch DOM only if `applyStyle` modifier is enabled\n\n if (isModifierEnabled(this.modifiers, 'applyStyle')) {\n this.popper.removeAttribute('x-placement');\n this.popper.style.position = '';\n this.popper.style.top = '';\n this.popper.style.left = '';\n this.popper.style.right = '';\n this.popper.style.bottom = '';\n this.popper.style.willChange = '';\n this.popper.style[getSupportedPropertyName('transform')] = '';\n }\n\n this.disableEventListeners(); // remove the popper if user explicitly asked for the deletion on destroy\n // do not use `remove` because IE11 doesn't support it\n\n if (this.options.removeOnDestroy) {\n this.popper.parentNode.removeChild(this.popper);\n }\n\n return this;\n}\n/**\n * Get the window associated with the element\n * @argument {Element} element\n * @returns {Window}\n */\n\n\nfunction getWindow(element) {\n var ownerDocument = element.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView : window;\n}\n\nfunction attachToScrollParents(scrollParent, event, callback, scrollParents) {\n var isBody = scrollParent.nodeName === 'BODY';\n var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent;\n target.addEventListener(event, callback, {\n passive: true\n });\n\n if (!isBody) {\n attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents);\n }\n\n scrollParents.push(target);\n}\n/**\n * Setup needed event listeners used to update the popper position\n * @method\n * @memberof Popper.Utils\n * @private\n */\n\n\nfunction setupEventListeners(reference, options, state, updateBound) {\n // Resize event listener on window\n state.updateBound = updateBound;\n getWindow(reference).addEventListener('resize', state.updateBound, {\n passive: true\n }); // Scroll event listener on scroll parents\n\n var scrollElement = getScrollParent(reference);\n attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents);\n state.scrollElement = scrollElement;\n state.eventsEnabled = true;\n return state;\n}\n/**\n * It will add resize/scroll events and start recalculating\n * position of the popper element when they are triggered.\n * @method\n * @memberof Popper\n */\n\n\nfunction enableEventListeners() {\n if (!this.state.eventsEnabled) {\n this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate);\n }\n}\n/**\n * Remove event listeners used to update the popper position\n * @method\n * @memberof Popper.Utils\n * @private\n */\n\n\nfunction removeEventListeners(reference, state) {\n // Remove resize event listener on window\n getWindow(reference).removeEventListener('resize', state.updateBound); // Remove scroll event listener on scroll parents\n\n state.scrollParents.forEach(function (target) {\n target.removeEventListener('scroll', state.updateBound);\n }); // Reset state\n\n state.updateBound = null;\n state.scrollParents = [];\n state.scrollElement = null;\n state.eventsEnabled = false;\n return state;\n}\n/**\n * It will remove resize/scroll events and won't recalculate popper position\n * when they are triggered. It also won't trigger `onUpdate` callback anymore,\n * unless you call `update` method manually.\n * @method\n * @memberof Popper\n */\n\n\nfunction disableEventListeners() {\n if (this.state.eventsEnabled) {\n cancelAnimationFrame(this.scheduleUpdate);\n this.state = removeEventListeners(this.reference, this.state);\n }\n}\n/**\n * Tells if a given input is a number\n * @method\n * @memberof Popper.Utils\n * @param {*} input to check\n * @return {Boolean}\n */\n\n\nfunction isNumeric(n) {\n return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);\n}\n/**\n * Set the style to the given popper\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element - Element to apply the style to\n * @argument {Object} styles\n * Object with a list of properties and values which will be applied to the element\n */\n\n\nfunction setStyles(element, styles) {\n Object.keys(styles).forEach(function (prop) {\n var unit = ''; // add unit if the value is numeric and is one of the following\n\n if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) {\n unit = 'px';\n }\n\n element.style[prop] = styles[prop] + unit;\n });\n}\n/**\n * Set the attributes to the given popper\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element - Element to apply the attributes to\n * @argument {Object} styles\n * Object with a list of properties and values which will be applied to the element\n */\n\n\nfunction setAttributes(element, attributes) {\n Object.keys(attributes).forEach(function (prop) {\n var value = attributes[prop];\n\n if (value !== false) {\n element.setAttribute(prop, attributes[prop]);\n } else {\n element.removeAttribute(prop);\n }\n });\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} data.styles - List of style properties - values to apply to popper element\n * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The same data object\n */\n\n\nfunction applyStyle(data) {\n // any property present in `data.styles` will be applied to the popper,\n // in this way we can make the 3rd party modifiers add custom styles to it\n // Be aware, modifiers could override the properties defined in the previous\n // lines of this modifier!\n setStyles(data.instance.popper, data.styles); // any property present in `data.attributes` will be applied to the popper,\n // they will be set as HTML attributes of the element\n\n setAttributes(data.instance.popper, data.attributes); // if arrowElement is defined and arrowStyles has some properties\n\n if (data.arrowElement && Object.keys(data.arrowStyles).length) {\n setStyles(data.arrowElement, data.arrowStyles);\n }\n\n return data;\n}\n/**\n * Set the x-placement attribute before everything else because it could be used\n * to add margins to the popper margins needs to be calculated to get the\n * correct popper offsets.\n * @method\n * @memberof Popper.modifiers\n * @param {HTMLElement} reference - The reference element used to position the popper\n * @param {HTMLElement} popper - The HTML element used as popper\n * @param {Object} options - Popper.js options\n */\n\n\nfunction applyStyleOnLoad(reference, popper, options, modifierOptions, state) {\n // compute reference element offsets\n var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed); // compute auto placement, store placement inside the data object,\n // modifiers will be able to edit `placement` if needed\n // and refer to originalPlacement to know the original value\n\n var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding);\n popper.setAttribute('x-placement', placement); // Apply `position` to popper before anything else because\n // without the position applied we can't guarantee correct computations\n\n setStyles(popper, {\n position: options.positionFixed ? 'fixed' : 'absolute'\n });\n return options;\n}\n/**\n * @function\n * @memberof Popper.Utils\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Boolean} shouldRound - If the offsets should be rounded at all\n * @returns {Object} The popper's position offsets rounded\n *\n * The tale of pixel-perfect positioning. It's still not 100% perfect, but as\n * good as it can be within reason.\n * Discussion here: https://github.com/FezVrasta/popper.js/pull/715\n *\n * Low DPI screens cause a popper to be blurry if not using full pixels (Safari\n * as well on High DPI screens).\n *\n * Firefox prefers no rounding for positioning and does not have blurriness on\n * high DPI screens.\n *\n * Only horizontal placement and left/right values need to be considered.\n */\n\n\nfunction getRoundedOffsets(data, shouldRound) {\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var round = Math.round,\n floor = Math.floor;\n\n var noRound = function noRound(v) {\n return v;\n };\n\n var referenceWidth = round(reference.width);\n var popperWidth = round(popper.width);\n var isVertical = ['left', 'right'].indexOf(data.placement) !== -1;\n var isVariation = data.placement.indexOf('-') !== -1;\n var sameWidthParity = referenceWidth % 2 === popperWidth % 2;\n var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1;\n var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor;\n var verticalToInteger = !shouldRound ? noRound : round;\n return {\n left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left),\n top: verticalToInteger(popper.top),\n bottom: verticalToInteger(popper.bottom),\n right: horizontalToInteger(popper.right)\n };\n}\n\nvar isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\nfunction computeStyle(data, options) {\n var x = options.x,\n y = options.y;\n var popper = data.offsets.popper; // Remove this legacy support in Popper.js v2\n\n var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) {\n return modifier.name === 'applyStyle';\n }).gpuAcceleration;\n\n if (legacyGpuAccelerationOption !== undefined) {\n console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');\n }\n\n var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration;\n var offsetParent = getOffsetParent(data.instance.popper);\n var offsetParentRect = getBoundingClientRect(offsetParent); // Styles\n\n var styles = {\n position: popper.position\n };\n var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox);\n var sideA = x === 'bottom' ? 'top' : 'bottom';\n var sideB = y === 'right' ? 'left' : 'right'; // if gpuAcceleration is set to `true` and transform is supported,\n // we use `translate3d` to apply the position to the popper we\n // automatically use the supported prefixed version if needed\n\n var prefixedProperty = getSupportedPropertyName('transform'); // now, let's make a step back and look at this code closely (wtf?)\n // If the content of the popper grows once it's been positioned, it\n // may happen that the popper gets misplaced because of the new content\n // overflowing its reference element\n // To avoid this problem, we provide two options (x and y), which allow\n // the consumer to define the offset origin.\n // If we position a popper on top of a reference element, we can set\n // `x` to `top` to make the popper grow towards its top instead of\n // its bottom.\n\n var left = void 0,\n top = void 0;\n\n if (sideA === 'bottom') {\n // when offsetParent is the positioning is relative to the bottom of the screen (excluding the scrollbar)\n // and not the bottom of the html element\n if (offsetParent.nodeName === 'HTML') {\n top = -offsetParent.clientHeight + offsets.bottom;\n } else {\n top = -offsetParentRect.height + offsets.bottom;\n }\n } else {\n top = offsets.top;\n }\n\n if (sideB === 'right') {\n if (offsetParent.nodeName === 'HTML') {\n left = -offsetParent.clientWidth + offsets.right;\n } else {\n left = -offsetParentRect.width + offsets.right;\n }\n } else {\n left = offsets.left;\n }\n\n if (gpuAcceleration && prefixedProperty) {\n styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';\n styles[sideA] = 0;\n styles[sideB] = 0;\n styles.willChange = 'transform';\n } else {\n // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties\n var invertTop = sideA === 'bottom' ? -1 : 1;\n var invertLeft = sideB === 'right' ? -1 : 1;\n styles[sideA] = top * invertTop;\n styles[sideB] = left * invertLeft;\n styles.willChange = sideA + ', ' + sideB;\n } // Attributes\n\n\n var attributes = {\n 'x-placement': data.placement\n }; // Update `data` attributes, styles and arrowStyles\n\n data.attributes = _extends({}, attributes, data.attributes);\n data.styles = _extends({}, styles, data.styles);\n data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);\n return data;\n}\n/**\n * Helper used to know if the given modifier depends from another one.
\n * It checks if the needed modifier is listed and enabled.\n * @method\n * @memberof Popper.Utils\n * @param {Array} modifiers - list of modifiers\n * @param {String} requestingName - name of requesting modifier\n * @param {String} requestedName - name of requested modifier\n * @returns {Boolean}\n */\n\n\nfunction isModifierRequired(modifiers, requestingName, requestedName) {\n var requesting = find(modifiers, function (_ref) {\n var name = _ref.name;\n return name === requestingName;\n });\n var isRequired = !!requesting && modifiers.some(function (modifier) {\n return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order;\n });\n\n if (!isRequired) {\n var _requesting = '`' + requestingName + '`';\n\n var requested = '`' + requestedName + '`';\n console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!');\n }\n\n return isRequired;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction arrow(data, options) {\n var _data$offsets$arrow; // arrow depends on keepTogether in order to work\n\n\n if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) {\n return data;\n }\n\n var arrowElement = options.element; // if arrowElement is a string, suppose it's a CSS selector\n\n if (typeof arrowElement === 'string') {\n arrowElement = data.instance.popper.querySelector(arrowElement); // if arrowElement is not found, don't run the modifier\n\n if (!arrowElement) {\n return data;\n }\n } else {\n // if the arrowElement isn't a query selector we must check that the\n // provided DOM node is child of its popper node\n if (!data.instance.popper.contains(arrowElement)) {\n console.warn('WARNING: `arrow.element` must be child of its popper element!');\n return data;\n }\n }\n\n var placement = data.placement.split('-')[0];\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var isVertical = ['left', 'right'].indexOf(placement) !== -1;\n var len = isVertical ? 'height' : 'width';\n var sideCapitalized = isVertical ? 'Top' : 'Left';\n var side = sideCapitalized.toLowerCase();\n var altSide = isVertical ? 'left' : 'top';\n var opSide = isVertical ? 'bottom' : 'right';\n var arrowElementSize = getOuterSizes(arrowElement)[len]; //\n // extends keepTogether behavior making sure the popper and its\n // reference have enough pixels in conjunction\n //\n // top/left side\n\n if (reference[opSide] - arrowElementSize < popper[side]) {\n data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize);\n } // bottom/right side\n\n\n if (reference[side] + arrowElementSize > popper[opSide]) {\n data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide];\n }\n\n data.offsets.popper = getClientRect(data.offsets.popper); // compute center of the popper\n\n var center = reference[side] + reference[len] / 2 - arrowElementSize / 2; // Compute the sideValue using the updated popper offsets\n // take popper margin in account because we don't have this info available\n\n var css = getStyleComputedProperty(data.instance.popper);\n var popperMarginSide = parseFloat(css['margin' + sideCapitalized]);\n var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width']);\n var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide; // prevent arrowElement from being placed not contiguously to its popper\n\n sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0);\n data.arrowElement = arrowElement;\n data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow);\n return data;\n}\n/**\n * Get the opposite placement variation of the given one\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement variation\n * @returns {String} flipped placement variation\n */\n\n\nfunction getOppositeVariation(variation) {\n if (variation === 'end') {\n return 'start';\n } else if (variation === 'start') {\n return 'end';\n }\n\n return variation;\n}\n/**\n * List of accepted placements to use as values of the `placement` option.
\n * Valid placements are:\n * - `auto`\n * - `top`\n * - `right`\n * - `bottom`\n * - `left`\n *\n * Each placement can have a variation from this list:\n * - `-start`\n * - `-end`\n *\n * Variations are interpreted easily if you think of them as the left to right\n * written languages. Horizontally (`top` and `bottom`), `start` is left and `end`\n * is right.
\n * Vertically (`left` and `right`), `start` is top and `end` is bottom.\n *\n * Some valid examples are:\n * - `top-end` (on top of reference, right aligned)\n * - `right-start` (on right of reference, top aligned)\n * - `bottom` (on bottom, centered)\n * - `auto-end` (on the side with more space available, alignment depends by placement)\n *\n * @static\n * @type {Array}\n * @enum {String}\n * @readonly\n * @method placements\n * @memberof Popper\n */\n\n\nvar placements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start']; // Get rid of `auto` `auto-start` and `auto-end`\n\nvar validPlacements = placements.slice(3);\n/**\n * Given an initial placement, returns all the subsequent placements\n * clockwise (or counter-clockwise).\n *\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement - A valid placement (it accepts variations)\n * @argument {Boolean} counter - Set to true to walk the placements counterclockwise\n * @returns {Array} placements including their variations\n */\n\nfunction clockwise(placement) {\n var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var index = validPlacements.indexOf(placement);\n var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index));\n return counter ? arr.reverse() : arr;\n}\n\nvar BEHAVIORS = {\n FLIP: 'flip',\n CLOCKWISE: 'clockwise',\n COUNTERCLOCKWISE: 'counterclockwise'\n};\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\nfunction flip(data, options) {\n // if `inner` modifier is enabled, we can't use the `flip` modifier\n if (isModifierEnabled(data.instance.modifiers, 'inner')) {\n return data;\n }\n\n if (data.flipped && data.placement === data.originalPlacement) {\n // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides\n return data;\n }\n\n var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed);\n var placement = data.placement.split('-')[0];\n var placementOpposite = getOppositePlacement(placement);\n var variation = data.placement.split('-')[1] || '';\n var flipOrder = [];\n\n switch (options.behavior) {\n case BEHAVIORS.FLIP:\n flipOrder = [placement, placementOpposite];\n break;\n\n case BEHAVIORS.CLOCKWISE:\n flipOrder = clockwise(placement);\n break;\n\n case BEHAVIORS.COUNTERCLOCKWISE:\n flipOrder = clockwise(placement, true);\n break;\n\n default:\n flipOrder = options.behavior;\n }\n\n flipOrder.forEach(function (step, index) {\n if (placement !== step || flipOrder.length === index + 1) {\n return data;\n }\n\n placement = data.placement.split('-')[0];\n placementOpposite = getOppositePlacement(placement);\n var popperOffsets = data.offsets.popper;\n var refOffsets = data.offsets.reference; // using floor because the reference offsets may contain decimals we are not going to consider here\n\n var floor = Math.floor;\n var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom);\n var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left);\n var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right);\n var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top);\n var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom);\n var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom; // flip the variation if required\n\n var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; // flips variation if reference element overflows boundaries\n\n var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom); // flips variation if popper content overflows boundaries\n\n var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop);\n var flippedVariation = flippedVariationByRef || flippedVariationByContent;\n\n if (overlapsRef || overflowsBoundaries || flippedVariation) {\n // this boolean to detect any flip loop\n data.flipped = true;\n\n if (overlapsRef || overflowsBoundaries) {\n placement = flipOrder[index + 1];\n }\n\n if (flippedVariation) {\n variation = getOppositeVariation(variation);\n }\n\n data.placement = placement + (variation ? '-' + variation : ''); // this object contains `position`, we want to preserve it along with\n // any additional property we may add in the future\n\n data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));\n data = runModifiers(data.instance.modifiers, data, 'flip');\n }\n });\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction keepTogether(data) {\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var placement = data.placement.split('-')[0];\n var floor = Math.floor;\n var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;\n var side = isVertical ? 'right' : 'bottom';\n var opSide = isVertical ? 'left' : 'top';\n var measurement = isVertical ? 'width' : 'height';\n\n if (popper[side] < floor(reference[opSide])) {\n data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement];\n }\n\n if (popper[opSide] > floor(reference[side])) {\n data.offsets.popper[opSide] = floor(reference[side]);\n }\n\n return data;\n}\n/**\n * Converts a string containing value + unit into a px value number\n * @function\n * @memberof {modifiers~offset}\n * @private\n * @argument {String} str - Value + unit string\n * @argument {String} measurement - `height` or `width`\n * @argument {Object} popperOffsets\n * @argument {Object} referenceOffsets\n * @returns {Number|String}\n * Value in pixels, or original string if no values were extracted\n */\n\n\nfunction toValue(str, measurement, popperOffsets, referenceOffsets) {\n // separate value from unit\n var split = str.match(/((?:\\-|\\+)?\\d*\\.?\\d*)(.*)/);\n var value = +split[1];\n var unit = split[2]; // If it's not a number it's an operator, I guess\n\n if (!value) {\n return str;\n }\n\n if (unit.indexOf('%') === 0) {\n var element = void 0;\n\n switch (unit) {\n case '%p':\n element = popperOffsets;\n break;\n\n case '%':\n case '%r':\n default:\n element = referenceOffsets;\n }\n\n var rect = getClientRect(element);\n return rect[measurement] / 100 * value;\n } else if (unit === 'vh' || unit === 'vw') {\n // if is a vh or vw, we calculate the size based on the viewport\n var size = void 0;\n\n if (unit === 'vh') {\n size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);\n } else {\n size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);\n }\n\n return size / 100 * value;\n } else {\n // if is an explicit pixel unit, we get rid of the unit and keep the value\n // if is an implicit unit, it's px, and we return just the value\n return value;\n }\n}\n/**\n * Parse an `offset` string to extrapolate `x` and `y` numeric offsets.\n * @function\n * @memberof {modifiers~offset}\n * @private\n * @argument {String} offset\n * @argument {Object} popperOffsets\n * @argument {Object} referenceOffsets\n * @argument {String} basePlacement\n * @returns {Array} a two cells array with x and y offsets in numbers\n */\n\n\nfunction parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) {\n var offsets = [0, 0]; // Use height if placement is left or right and index is 0 otherwise use width\n // in this way the first offset will use an axis and the second one\n // will use the other one\n\n var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1; // Split the offset string to obtain a list of values and operands\n // The regex addresses values with the plus or minus sign in front (+10, -20, etc)\n\n var fragments = offset.split(/(\\+|\\-)/).map(function (frag) {\n return frag.trim();\n }); // Detect if the offset string contains a pair of values or a single one\n // they could be separated by comma or space\n\n var divider = fragments.indexOf(find(fragments, function (frag) {\n return frag.search(/,|\\s/) !== -1;\n }));\n\n if (fragments[divider] && fragments[divider].indexOf(',') === -1) {\n console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');\n } // If divider is found, we divide the list of values and operands to divide\n // them by ofset X and Y.\n\n\n var splitRegex = /\\s*,\\s*|\\s+/;\n var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments]; // Convert the values with units to absolute pixels to allow our computations\n\n ops = ops.map(function (op, index) {\n // Most of the units rely on the orientation of the popper\n var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width';\n var mergeWithPrevious = false;\n return op // This aggregates any `+` or `-` sign that aren't considered operators\n // e.g.: 10 + +5 => [10, +, +5]\n .reduce(function (a, b) {\n if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) {\n a[a.length - 1] = b;\n mergeWithPrevious = true;\n return a;\n } else if (mergeWithPrevious) {\n a[a.length - 1] += b;\n mergeWithPrevious = false;\n return a;\n } else {\n return a.concat(b);\n }\n }, []) // Here we convert the string values into number values (in px)\n .map(function (str) {\n return toValue(str, measurement, popperOffsets, referenceOffsets);\n });\n }); // Loop trough the offsets arrays and execute the operations\n\n ops.forEach(function (op, index) {\n op.forEach(function (frag, index2) {\n if (isNumeric(frag)) {\n offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1);\n }\n });\n });\n return offsets;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @argument {Number|String} options.offset=0\n * The offset value as described in the modifier description\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction offset(data, _ref) {\n var offset = _ref.offset;\n var placement = data.placement,\n _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var basePlacement = placement.split('-')[0];\n var offsets = void 0;\n\n if (isNumeric(+offset)) {\n offsets = [+offset, 0];\n } else {\n offsets = parseOffset(offset, popper, reference, basePlacement);\n }\n\n if (basePlacement === 'left') {\n popper.top += offsets[0];\n popper.left -= offsets[1];\n } else if (basePlacement === 'right') {\n popper.top += offsets[0];\n popper.left += offsets[1];\n } else if (basePlacement === 'top') {\n popper.left += offsets[0];\n popper.top -= offsets[1];\n } else if (basePlacement === 'bottom') {\n popper.left += offsets[0];\n popper.top += offsets[1];\n }\n\n data.popper = popper;\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction preventOverflow(data, options) {\n var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper); // If offsetParent is the reference element, we really want to\n // go one step up and use the next offsetParent as reference to\n // avoid to make this modifier completely useless and look like broken\n\n if (data.instance.reference === boundariesElement) {\n boundariesElement = getOffsetParent(boundariesElement);\n } // NOTE: DOM access here\n // resets the popper's position so that the document size can be calculated excluding\n // the size of the popper element itself\n\n\n var transformProp = getSupportedPropertyName('transform');\n var popperStyles = data.instance.popper.style; // assignment to help minification\n\n var top = popperStyles.top,\n left = popperStyles.left,\n transform = popperStyles[transformProp];\n popperStyles.top = '';\n popperStyles.left = '';\n popperStyles[transformProp] = '';\n var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed); // NOTE: DOM access here\n // restores the original style properties after the offsets have been computed\n\n popperStyles.top = top;\n popperStyles.left = left;\n popperStyles[transformProp] = transform;\n options.boundaries = boundaries;\n var order = options.priority;\n var popper = data.offsets.popper;\n var check = {\n primary: function primary(placement) {\n var value = popper[placement];\n\n if (popper[placement] < boundaries[placement] && !options.escapeWithReference) {\n value = Math.max(popper[placement], boundaries[placement]);\n }\n\n return defineProperty({}, placement, value);\n },\n secondary: function secondary(placement) {\n var mainSide = placement === 'right' ? 'left' : 'top';\n var value = popper[mainSide];\n\n if (popper[placement] > boundaries[placement] && !options.escapeWithReference) {\n value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height));\n }\n\n return defineProperty({}, mainSide, value);\n }\n };\n order.forEach(function (placement) {\n var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary';\n popper = _extends({}, popper, check[side](placement));\n });\n data.offsets.popper = popper;\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction shift(data) {\n var placement = data.placement;\n var basePlacement = placement.split('-')[0];\n var shiftvariation = placement.split('-')[1]; // if shift shiftvariation is specified, run the modifier\n\n if (shiftvariation) {\n var _data$offsets = data.offsets,\n reference = _data$offsets.reference,\n popper = _data$offsets.popper;\n var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1;\n var side = isVertical ? 'left' : 'top';\n var measurement = isVertical ? 'width' : 'height';\n var shiftOffsets = {\n start: defineProperty({}, side, reference[side]),\n end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])\n };\n data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);\n }\n\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction hide(data) {\n if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) {\n return data;\n }\n\n var refRect = data.offsets.reference;\n var bound = find(data.instance.modifiers, function (modifier) {\n return modifier.name === 'preventOverflow';\n }).boundaries;\n\n if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) {\n // Avoid unnecessary DOM access if visibility hasn't changed\n if (data.hide === true) {\n return data;\n }\n\n data.hide = true;\n data.attributes['x-out-of-boundaries'] = '';\n } else {\n // Avoid unnecessary DOM access if visibility hasn't changed\n if (data.hide === false) {\n return data;\n }\n\n data.hide = false;\n data.attributes['x-out-of-boundaries'] = false;\n }\n\n return data;\n}\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\n\n\nfunction inner(data) {\n var placement = data.placement;\n var basePlacement = placement.split('-')[0];\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1;\n var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1;\n popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0);\n data.placement = getOppositePlacement(placement);\n data.offsets.popper = getClientRect(popper);\n return data;\n}\n/**\n * Modifier function, each modifier can have a function of this type assigned\n * to its `fn` property.
\n * These functions will be called on each update, this means that you must\n * make sure they are performant enough to avoid performance bottlenecks.\n *\n * @function ModifierFn\n * @argument {dataObject} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {dataObject} The data object, properly modified\n */\n\n/**\n * Modifiers are plugins used to alter the behavior of your poppers.
\n * Popper.js uses a set of 9 modifiers to provide all the basic functionalities\n * needed by the library.\n *\n * Usually you don't want to override the `order`, `fn` and `onLoad` props.\n * All the other properties are configurations that could be tweaked.\n * @namespace modifiers\n */\n\n\nvar modifiers = {\n /**\n * Modifier used to shift the popper on the start or end of its reference\n * element.
\n * It will read the variation of the `placement` property.
\n * It can be one either `-end` or `-start`.\n * @memberof modifiers\n * @inner\n */\n shift: {\n /** @prop {number} order=100 - Index used to define the order of execution */\n order: 100,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: shift\n },\n\n /**\n * The `offset` modifier can shift your popper on both its axis.\n *\n * It accepts the following units:\n * - `px` or unit-less, interpreted as pixels\n * - `%` or `%r`, percentage relative to the length of the reference element\n * - `%p`, percentage relative to the length of the popper element\n * - `vw`, CSS viewport width unit\n * - `vh`, CSS viewport height unit\n *\n * For length is intended the main axis relative to the placement of the popper.
\n * This means that if the placement is `top` or `bottom`, the length will be the\n * `width`. In case of `left` or `right`, it will be the `height`.\n *\n * You can provide a single value (as `Number` or `String`), or a pair of values\n * as `String` divided by a comma or one (or more) white spaces.
\n * The latter is a deprecated method because it leads to confusion and will be\n * removed in v2.
\n * Additionally, it accepts additions and subtractions between different units.\n * Note that multiplications and divisions aren't supported.\n *\n * Valid examples are:\n * ```\n * 10\n * '10%'\n * '10, 10'\n * '10%, 10'\n * '10 + 10%'\n * '10 - 5vh + 3%'\n * '-10px + 5vh, 5px - 6%'\n * ```\n * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap\n * > with their reference element, unfortunately, you will have to disable the `flip` modifier.\n * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).\n *\n * @memberof modifiers\n * @inner\n */\n offset: {\n /** @prop {number} order=200 - Index used to define the order of execution */\n order: 200,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: offset,\n\n /** @prop {Number|String} offset=0\n * The offset value as described in the modifier description\n */\n offset: 0\n },\n\n /**\n * Modifier used to prevent the popper from being positioned outside the boundary.\n *\n * A scenario exists where the reference itself is not within the boundaries.
\n * We can say it has \"escaped the boundaries\" — or just \"escaped\".
\n * In this case we need to decide whether the popper should either:\n *\n * - detach from the reference and remain \"trapped\" in the boundaries, or\n * - if it should ignore the boundary and \"escape with its reference\"\n *\n * When `escapeWithReference` is set to`true` and reference is completely\n * outside its boundaries, the popper will overflow (or completely leave)\n * the boundaries in order to remain attached to the edge of the reference.\n *\n * @memberof modifiers\n * @inner\n */\n preventOverflow: {\n /** @prop {number} order=300 - Index used to define the order of execution */\n order: 300,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: preventOverflow,\n\n /**\n * @prop {Array} [priority=['left','right','top','bottom']]\n * Popper will try to prevent overflow following these priorities by default,\n * then, it could overflow on the left and on top of the `boundariesElement`\n */\n priority: ['left', 'right', 'top', 'bottom'],\n\n /**\n * @prop {number} padding=5\n * Amount of pixel used to define a minimum distance between the boundaries\n * and the popper. This makes sure the popper always has a little padding\n * between the edges of its container\n */\n padding: 5,\n\n /**\n * @prop {String|HTMLElement} boundariesElement='scrollParent'\n * Boundaries used by the modifier. Can be `scrollParent`, `window`,\n * `viewport` or any DOM element.\n */\n boundariesElement: 'scrollParent'\n },\n\n /**\n * Modifier used to make sure the reference and its popper stay near each other\n * without leaving any gap between the two. Especially useful when the arrow is\n * enabled and you want to ensure that it points to its reference element.\n * It cares only about the first axis. You can still have poppers with margin\n * between the popper and its reference element.\n * @memberof modifiers\n * @inner\n */\n keepTogether: {\n /** @prop {number} order=400 - Index used to define the order of execution */\n order: 400,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: keepTogether\n },\n\n /**\n * This modifier is used to move the `arrowElement` of the popper to make\n * sure it is positioned between the reference element and its popper element.\n * It will read the outer size of the `arrowElement` node to detect how many\n * pixels of conjunction are needed.\n *\n * It has no effect if no `arrowElement` is provided.\n * @memberof modifiers\n * @inner\n */\n arrow: {\n /** @prop {number} order=500 - Index used to define the order of execution */\n order: 500,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: arrow,\n\n /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */\n element: '[x-arrow]'\n },\n\n /**\n * Modifier used to flip the popper's placement when it starts to overlap its\n * reference element.\n *\n * Requires the `preventOverflow` modifier before it in order to work.\n *\n * **NOTE:** this modifier will interrupt the current update cycle and will\n * restart it if it detects the need to flip the placement.\n * @memberof modifiers\n * @inner\n */\n flip: {\n /** @prop {number} order=600 - Index used to define the order of execution */\n order: 600,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: flip,\n\n /**\n * @prop {String|Array} behavior='flip'\n * The behavior used to change the popper's placement. It can be one of\n * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid\n * placements (with optional variations)\n */\n behavior: 'flip',\n\n /**\n * @prop {number} padding=5\n * The popper will flip if it hits the edges of the `boundariesElement`\n */\n padding: 5,\n\n /**\n * @prop {String|HTMLElement} boundariesElement='viewport'\n * The element which will define the boundaries of the popper position.\n * The popper will never be placed outside of the defined boundaries\n * (except if `keepTogether` is enabled)\n */\n boundariesElement: 'viewport',\n\n /**\n * @prop {Boolean} flipVariations=false\n * The popper will switch placement variation between `-start` and `-end` when\n * the reference element overlaps its boundaries.\n *\n * The original placement should have a set variation.\n */\n flipVariations: false,\n\n /**\n * @prop {Boolean} flipVariationsByContent=false\n * The popper will switch placement variation between `-start` and `-end` when\n * the popper element overlaps its reference boundaries.\n *\n * The original placement should have a set variation.\n */\n flipVariationsByContent: false\n },\n\n /**\n * Modifier used to make the popper flow toward the inner of the reference element.\n * By default, when this modifier is disabled, the popper will be placed outside\n * the reference element.\n * @memberof modifiers\n * @inner\n */\n inner: {\n /** @prop {number} order=700 - Index used to define the order of execution */\n order: 700,\n\n /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */\n enabled: false,\n\n /** @prop {ModifierFn} */\n fn: inner\n },\n\n /**\n * Modifier used to hide the popper when its reference element is outside of the\n * popper boundaries. It will set a `x-out-of-boundaries` attribute which can\n * be used to hide with a CSS selector the popper when its reference is\n * out of boundaries.\n *\n * Requires the `preventOverflow` modifier before it in order to work.\n * @memberof modifiers\n * @inner\n */\n hide: {\n /** @prop {number} order=800 - Index used to define the order of execution */\n order: 800,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: hide\n },\n\n /**\n * Computes the style that will be applied to the popper element to gets\n * properly positioned.\n *\n * Note that this modifier will not touch the DOM, it just prepares the styles\n * so that `applyStyle` modifier can apply it. This separation is useful\n * in case you need to replace `applyStyle` with a custom implementation.\n *\n * This modifier has `850` as `order` value to maintain backward compatibility\n * with previous versions of Popper.js. Expect the modifiers ordering method\n * to change in future major versions of the library.\n *\n * @memberof modifiers\n * @inner\n */\n computeStyle: {\n /** @prop {number} order=850 - Index used to define the order of execution */\n order: 850,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: computeStyle,\n\n /**\n * @prop {Boolean} gpuAcceleration=true\n * If true, it uses the CSS 3D transformation to position the popper.\n * Otherwise, it will use the `top` and `left` properties\n */\n gpuAcceleration: true,\n\n /**\n * @prop {string} [x='bottom']\n * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin.\n * Change this if your popper should grow in a direction different from `bottom`\n */\n x: 'bottom',\n\n /**\n * @prop {string} [x='left']\n * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin.\n * Change this if your popper should grow in a direction different from `right`\n */\n y: 'right'\n },\n\n /**\n * Applies the computed styles to the popper element.\n *\n * All the DOM manipulations are limited to this modifier. This is useful in case\n * you want to integrate Popper.js inside a framework or view library and you\n * want to delegate all the DOM manipulations to it.\n *\n * Note that if you disable this modifier, you must make sure the popper element\n * has its position set to `absolute` before Popper.js can do its work!\n *\n * Just disable this modifier and define your own to achieve the desired effect.\n *\n * @memberof modifiers\n * @inner\n */\n applyStyle: {\n /** @prop {number} order=900 - Index used to define the order of execution */\n order: 900,\n\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n\n /** @prop {ModifierFn} */\n fn: applyStyle,\n\n /** @prop {Function} */\n onLoad: applyStyleOnLoad,\n\n /**\n * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier\n * @prop {Boolean} gpuAcceleration=true\n * If true, it uses the CSS 3D transformation to position the popper.\n * Otherwise, it will use the `top` and `left` properties\n */\n gpuAcceleration: undefined\n }\n};\n/**\n * The `dataObject` is an object containing all the information used by Popper.js.\n * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks.\n * @name dataObject\n * @property {Object} data.instance The Popper.js instance\n * @property {String} data.placement Placement applied to popper\n * @property {String} data.originalPlacement Placement originally defined on init\n * @property {Boolean} data.flipped True if popper has been flipped by flip modifier\n * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper\n * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier\n * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`)\n * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`)\n * @property {Object} data.boundaries Offsets of the popper boundaries\n * @property {Object} data.offsets The measurements of popper, reference and arrow elements\n * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values\n * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values\n * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0\n */\n\n/**\n * Default options provided to Popper.js constructor.
\n * These can be overridden using the `options` argument of Popper.js.
\n * To override an option, simply pass an object with the same\n * structure of the `options` object, as the 3rd argument. For example:\n * ```\n * new Popper(ref, pop, {\n * modifiers: {\n * preventOverflow: { enabled: false }\n * }\n * })\n * ```\n * @type {Object}\n * @static\n * @memberof Popper\n */\n\nvar Defaults = {\n /**\n * Popper's placement.\n * @prop {Popper.placements} placement='bottom'\n */\n placement: 'bottom',\n\n /**\n * Set this to true if you want popper to position it self in 'fixed' mode\n * @prop {Boolean} positionFixed=false\n */\n positionFixed: false,\n\n /**\n * Whether events (resize, scroll) are initially enabled.\n * @prop {Boolean} eventsEnabled=true\n */\n eventsEnabled: true,\n\n /**\n * Set to true if you want to automatically remove the popper when\n * you call the `destroy` method.\n * @prop {Boolean} removeOnDestroy=false\n */\n removeOnDestroy: false,\n\n /**\n * Callback called when the popper is created.
\n * By default, it is set to no-op.
\n * Access Popper.js instance with `data.instance`.\n * @prop {onCreate}\n */\n onCreate: function onCreate() {},\n\n /**\n * Callback called when the popper is updated. This callback is not called\n * on the initialization/creation of the popper, but only on subsequent\n * updates.
\n * By default, it is set to no-op.
\n * Access Popper.js instance with `data.instance`.\n * @prop {onUpdate}\n */\n onUpdate: function onUpdate() {},\n\n /**\n * List of modifiers used to modify the offsets before they are applied to the popper.\n * They provide most of the functionalities of Popper.js.\n * @prop {modifiers}\n */\n modifiers: modifiers\n};\n/**\n * @callback onCreate\n * @param {dataObject} data\n */\n\n/**\n * @callback onUpdate\n * @param {dataObject} data\n */\n// Utils\n// Methods\n\nvar Popper = function () {\n /**\n * Creates a new Popper.js instance.\n * @class Popper\n * @param {Element|referenceObject} reference - The reference element used to position the popper\n * @param {Element} popper - The HTML / XML element used as the popper\n * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults)\n * @return {Object} instance - The generated Popper.js instance\n */\n function Popper(reference, popper) {\n var _this = this;\n\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n classCallCheck(this, Popper);\n\n this.scheduleUpdate = function () {\n return requestAnimationFrame(_this.update);\n }; // make update() debounced, so that it only runs at most once-per-tick\n\n\n this.update = debounce(this.update.bind(this)); // with {} we create a new object with the options inside it\n\n this.options = _extends({}, Popper.Defaults, options); // init state\n\n this.state = {\n isDestroyed: false,\n isCreated: false,\n scrollParents: []\n }; // get reference and popper elements (allow jQuery wrappers)\n\n this.reference = reference && reference.jquery ? reference[0] : reference;\n this.popper = popper && popper.jquery ? popper[0] : popper; // Deep merge modifiers options\n\n this.options.modifiers = {};\n Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {\n _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});\n }); // Refactoring modifiers' list (Object => Array)\n\n this.modifiers = Object.keys(this.options.modifiers).map(function (name) {\n return _extends({\n name: name\n }, _this.options.modifiers[name]);\n }) // sort the modifiers by order\n .sort(function (a, b) {\n return a.order - b.order;\n }); // modifiers have the ability to execute arbitrary code when Popper.js get inited\n // such code is executed in the same order of its modifier\n // they could add new properties to their options configuration\n // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`!\n\n this.modifiers.forEach(function (modifierOptions) {\n if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) {\n modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state);\n }\n }); // fire the first update to position the popper in the right place\n\n this.update();\n var eventsEnabled = this.options.eventsEnabled;\n\n if (eventsEnabled) {\n // setup event listeners, they will take care of update the position in specific situations\n this.enableEventListeners();\n }\n\n this.state.eventsEnabled = eventsEnabled;\n } // We can't use class properties because they don't get listed in the\n // class prototype and break stuff like Sinon stubs\n\n\n createClass(Popper, [{\n key: 'update',\n value: function update$$1() {\n return update.call(this);\n }\n }, {\n key: 'destroy',\n value: function destroy$$1() {\n return destroy.call(this);\n }\n }, {\n key: 'enableEventListeners',\n value: function enableEventListeners$$1() {\n return enableEventListeners.call(this);\n }\n }, {\n key: 'disableEventListeners',\n value: function disableEventListeners$$1() {\n return disableEventListeners.call(this);\n }\n /**\n * Schedules an update. It will run on the next UI update available.\n * @method scheduleUpdate\n * @memberof Popper\n */\n\n /**\n * Collection of utilities useful when writing custom modifiers.\n * Starting from version 1.7, this method is available only if you\n * include `popper-utils.js` before `popper.js`.\n *\n * **DEPRECATION**: This way to access PopperUtils is deprecated\n * and will be removed in v2! Use the PopperUtils module directly instead.\n * Due to the high instability of the methods contained in Utils, we can't\n * guarantee them to follow semver. Use them at your own risk!\n * @static\n * @private\n * @type {Object}\n * @deprecated since version 1.8\n * @member Utils\n * @memberof Popper\n */\n\n }]);\n return Popper;\n}();\n/**\n * The `referenceObject` is an object that provides an interface compatible with Popper.js\n * and lets you use it as replacement of a real DOM node.
\n * You can use this method to position a popper relatively to a set of coordinates\n * in case you don't have a DOM node to use as reference.\n *\n * ```\n * new Popper(referenceObject, popperNode);\n * ```\n *\n * NB: This feature isn't supported in Internet Explorer 10.\n * @name referenceObject\n * @property {Function} data.getBoundingClientRect\n * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method.\n * @property {number} data.clientWidth\n * An ES6 getter that will return the width of the virtual reference element.\n * @property {number} data.clientHeight\n * An ES6 getter that will return the height of the virtual reference element.\n */\n\n\nPopper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils;\nPopper.placements = placements;\nPopper.Defaults = Defaults;\nexport default Popper;","'use strict';\n\nexports.__esModule = true;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _implementation = require('./implementation');\n\nvar _implementation2 = _interopRequireDefault(_implementation);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nexports.default = _react2.default.createContext || _implementation2.default;\nmodule.exports = exports['default'];","var isarray = require('isarray');\n/**\n * Expose `pathToRegexp`.\n */\n\n\nmodule.exports = pathToRegexp;\nmodule.exports.parse = parse;\nmodule.exports.compile = compile;\nmodule.exports.tokensToFunction = tokensToFunction;\nmodule.exports.tokensToRegExp = tokensToRegExp;\n/**\n * The main path matching regexp utility.\n *\n * @type {RegExp}\n */\n\nvar PATH_REGEXP = new RegExp([// Match escaped characters that would otherwise appear in future matches.\n// This allows the user to escape special characters that won't transform.\n'(\\\\\\\\.)', // Match Express-style parameters and un-named parameters with a prefix\n// and optional suffixes. Matches appear as:\n//\n// \"/:test(\\\\d+)?\" => [\"/\", \"test\", \"\\d+\", undefined, \"?\", undefined]\n// \"/route(\\\\d+)\" => [undefined, undefined, undefined, \"\\d+\", undefined, undefined]\n// \"/*\" => [\"/\", undefined, undefined, undefined, undefined, \"*\"]\n'([\\\\/.])?(?:(?:\\\\:(\\\\w+)(?:\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))?|\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))([+*?])?|(\\\\*))'].join('|'), 'g');\n/**\n * Parse a string for the raw tokens.\n *\n * @param {string} str\n * @param {Object=} options\n * @return {!Array}\n */\n\nfunction parse(str, options) {\n var tokens = [];\n var key = 0;\n var index = 0;\n var path = '';\n var defaultDelimiter = options && options.delimiter || '/';\n var res;\n\n while ((res = PATH_REGEXP.exec(str)) != null) {\n var m = res[0];\n var escaped = res[1];\n var offset = res.index;\n path += str.slice(index, offset);\n index = offset + m.length; // Ignore already escaped sequences.\n\n if (escaped) {\n path += escaped[1];\n continue;\n }\n\n var next = str[index];\n var prefix = res[2];\n var name = res[3];\n var capture = res[4];\n var group = res[5];\n var modifier = res[6];\n var asterisk = res[7]; // Push the current path onto the tokens.\n\n if (path) {\n tokens.push(path);\n path = '';\n }\n\n var partial = prefix != null && next != null && next !== prefix;\n var repeat = modifier === '+' || modifier === '*';\n var optional = modifier === '?' || modifier === '*';\n var delimiter = res[2] || defaultDelimiter;\n var pattern = capture || group;\n tokens.push({\n name: name || key++,\n prefix: prefix || '',\n delimiter: delimiter,\n optional: optional,\n repeat: repeat,\n partial: partial,\n asterisk: !!asterisk,\n pattern: pattern ? escapeGroup(pattern) : asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?'\n });\n } // Match any characters still remaining.\n\n\n if (index < str.length) {\n path += str.substr(index);\n } // If the path exists, push it onto the end.\n\n\n if (path) {\n tokens.push(path);\n }\n\n return tokens;\n}\n/**\n * Compile a string to a template function for the path.\n *\n * @param {string} str\n * @param {Object=} options\n * @return {!function(Object=, Object=)}\n */\n\n\nfunction compile(str, options) {\n return tokensToFunction(parse(str, options), options);\n}\n/**\n * Prettier encoding of URI path segments.\n *\n * @param {string}\n * @return {string}\n */\n\n\nfunction encodeURIComponentPretty(str) {\n return encodeURI(str).replace(/[\\/?#]/g, function (c) {\n return '%' + c.charCodeAt(0).toString(16).toUpperCase();\n });\n}\n/**\n * Encode the asterisk parameter. Similar to `pretty`, but allows slashes.\n *\n * @param {string}\n * @return {string}\n */\n\n\nfunction encodeAsterisk(str) {\n return encodeURI(str).replace(/[?#]/g, function (c) {\n return '%' + c.charCodeAt(0).toString(16).toUpperCase();\n });\n}\n/**\n * Expose a method for transforming tokens into the path function.\n */\n\n\nfunction tokensToFunction(tokens, options) {\n // Compile all the tokens into regexps.\n var matches = new Array(tokens.length); // Compile all the patterns before compilation.\n\n for (var i = 0; i < tokens.length; i++) {\n if (typeof tokens[i] === 'object') {\n matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options));\n }\n }\n\n return function (obj, opts) {\n var path = '';\n var data = obj || {};\n var options = opts || {};\n var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent;\n\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i];\n\n if (typeof token === 'string') {\n path += token;\n continue;\n }\n\n var value = data[token.name];\n var segment;\n\n if (value == null) {\n if (token.optional) {\n // Prepend partial segment prefixes.\n if (token.partial) {\n path += token.prefix;\n }\n\n continue;\n } else {\n throw new TypeError('Expected \"' + token.name + '\" to be defined');\n }\n }\n\n if (isarray(value)) {\n if (!token.repeat) {\n throw new TypeError('Expected \"' + token.name + '\" to not repeat, but received `' + JSON.stringify(value) + '`');\n }\n\n if (value.length === 0) {\n if (token.optional) {\n continue;\n } else {\n throw new TypeError('Expected \"' + token.name + '\" to not be empty');\n }\n }\n\n for (var j = 0; j < value.length; j++) {\n segment = encode(value[j]);\n\n if (!matches[i].test(segment)) {\n throw new TypeError('Expected all \"' + token.name + '\" to match \"' + token.pattern + '\", but received `' + JSON.stringify(segment) + '`');\n }\n\n path += (j === 0 ? token.prefix : token.delimiter) + segment;\n }\n\n continue;\n }\n\n segment = token.asterisk ? encodeAsterisk(value) : encode(value);\n\n if (!matches[i].test(segment)) {\n throw new TypeError('Expected \"' + token.name + '\" to match \"' + token.pattern + '\", but received \"' + segment + '\"');\n }\n\n path += token.prefix + segment;\n }\n\n return path;\n };\n}\n/**\n * Escape a regular expression string.\n *\n * @param {string} str\n * @return {string}\n */\n\n\nfunction escapeString(str) {\n return str.replace(/([.+*?=^!:${}()[\\]|\\/\\\\])/g, '\\\\$1');\n}\n/**\n * Escape the capturing group by escaping special characters and meaning.\n *\n * @param {string} group\n * @return {string}\n */\n\n\nfunction escapeGroup(group) {\n return group.replace(/([=!:$\\/()])/g, '\\\\$1');\n}\n/**\n * Attach the keys as a property of the regexp.\n *\n * @param {!RegExp} re\n * @param {Array} keys\n * @return {!RegExp}\n */\n\n\nfunction attachKeys(re, keys) {\n re.keys = keys;\n return re;\n}\n/**\n * Get the flags for a regexp from the options.\n *\n * @param {Object} options\n * @return {string}\n */\n\n\nfunction flags(options) {\n return options && options.sensitive ? '' : 'i';\n}\n/**\n * Pull out keys from a regexp.\n *\n * @param {!RegExp} path\n * @param {!Array} keys\n * @return {!RegExp}\n */\n\n\nfunction regexpToRegexp(path, keys) {\n // Use a negative lookahead to match only capturing groups.\n var groups = path.source.match(/\\((?!\\?)/g);\n\n if (groups) {\n for (var i = 0; i < groups.length; i++) {\n keys.push({\n name: i,\n prefix: null,\n delimiter: null,\n optional: false,\n repeat: false,\n partial: false,\n asterisk: false,\n pattern: null\n });\n }\n }\n\n return attachKeys(path, keys);\n}\n/**\n * Transform an array into a regexp.\n *\n * @param {!Array} path\n * @param {Array} keys\n * @param {!Object} options\n * @return {!RegExp}\n */\n\n\nfunction arrayToRegexp(path, keys, options) {\n var parts = [];\n\n for (var i = 0; i < path.length; i++) {\n parts.push(pathToRegexp(path[i], keys, options).source);\n }\n\n var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options));\n return attachKeys(regexp, keys);\n}\n/**\n * Create a path regexp from string input.\n *\n * @param {string} path\n * @param {!Array} keys\n * @param {!Object} options\n * @return {!RegExp}\n */\n\n\nfunction stringToRegexp(path, keys, options) {\n return tokensToRegExp(parse(path, options), keys, options);\n}\n/**\n * Expose a function for taking tokens and returning a RegExp.\n *\n * @param {!Array} tokens\n * @param {(Array|Object)=} keys\n * @param {Object=} options\n * @return {!RegExp}\n */\n\n\nfunction tokensToRegExp(tokens, keys, options) {\n if (!isarray(keys)) {\n options =\n /** @type {!Object} */\n keys || options;\n keys = [];\n }\n\n options = options || {};\n var strict = options.strict;\n var end = options.end !== false;\n var route = ''; // Iterate over the tokens and create our regexp string.\n\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i];\n\n if (typeof token === 'string') {\n route += escapeString(token);\n } else {\n var prefix = escapeString(token.prefix);\n var capture = '(?:' + token.pattern + ')';\n keys.push(token);\n\n if (token.repeat) {\n capture += '(?:' + prefix + capture + ')*';\n }\n\n if (token.optional) {\n if (!token.partial) {\n capture = '(?:' + prefix + '(' + capture + '))?';\n } else {\n capture = prefix + '(' + capture + ')?';\n }\n } else {\n capture = prefix + '(' + capture + ')';\n }\n\n route += capture;\n }\n }\n\n var delimiter = escapeString(options.delimiter || '/');\n var endsWithDelimiter = route.slice(-delimiter.length) === delimiter; // In non-strict mode we allow a slash at the end of match. If the path to\n // match already ends with a slash, we remove it for consistency. The slash\n // is valid at the end of a path match, not in the middle. This is important\n // in non-ending mode, where \"/test/\" shouldn't match \"/test//route\".\n\n if (!strict) {\n route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?';\n }\n\n if (end) {\n route += '$';\n } else {\n // In non-ending mode, we need the capturing groups to match as much as\n // possible by using a positive lookahead to the end or next path segment.\n route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)';\n }\n\n return attachKeys(new RegExp('^' + route, flags(options)), keys);\n}\n/**\n * Normalize the given path string, returning a regular expression.\n *\n * An empty array can be passed in for the keys, which will hold the\n * placeholder key descriptions. For example, using `/user/:id`, `keys` will\n * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.\n *\n * @param {(string|RegExp|Array)} path\n * @param {(Array|Object)=} keys\n * @param {Object=} options\n * @return {!RegExp}\n */\n\n\nfunction pathToRegexp(path, keys, options) {\n if (!isarray(keys)) {\n options =\n /** @type {!Object} */\n keys || options;\n keys = [];\n }\n\n options = options || {};\n\n if (path instanceof RegExp) {\n return regexpToRegexp(path,\n /** @type {!Array} */\n keys);\n }\n\n if (isarray(path)) {\n return arrayToRegexp(\n /** @type {!Array} */\n path,\n /** @type {!Array} */\n keys, options);\n }\n\n return stringToRegexp(\n /** @type {string} */\n path,\n /** @type {!Array} */\n keys, options);\n}","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n'use strict';\n\nvar _prodInvariant = require('./reactProdInvariant'),\n _assign = require('object-assign');\n\nvar ReactNoopUpdateQueue = require('./ReactNoopUpdateQueue');\n\nvar canDefineProperty = require('./canDefineProperty');\n\nvar emptyObject = require('fbjs/lib/emptyObject');\n\nvar invariant = require('fbjs/lib/invariant');\n\nvar lowPriorityWarning = require('./lowPriorityWarning');\n/**\n * Base class helpers for the updating state of a component.\n */\n\n\nfunction ReactComponent(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the\n // renderer.\n\n this.updater = updater || ReactNoopUpdateQueue;\n}\n\nReactComponent.prototype.isReactComponent = {};\n/**\n * Sets a subset of the state. Always use this to mutate\n * state. You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * There is no guarantee that calls to `setState` will run synchronously,\n * as they may eventually be batched together. You can provide an optional\n * callback that will be executed when the call to setState is actually\n * completed.\n *\n * When a function is provided to setState, it will be called at some point in\n * the future (not synchronously). It will be called with the up to date\n * component arguments (state, props, context). These values can be different\n * from this.* because your function may be called after receiveProps but before\n * shouldComponentUpdate, and this new state, props, and context will not yet be\n * assigned to this.\n *\n * @param {object|function} partialState Next partial state or function to\n * produce next partial state to be merged with current state.\n * @param {?function} callback Called after state is updated.\n * @final\n * @protected\n */\n\nReactComponent.prototype.setState = function (partialState, callback) {\n !(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : _prodInvariant('85') : void 0;\n this.updater.enqueueSetState(this, partialState);\n\n if (callback) {\n this.updater.enqueueCallback(this, callback, 'setState');\n }\n};\n/**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {?function} callback Called after update is complete.\n * @final\n * @protected\n */\n\n\nReactComponent.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this);\n\n if (callback) {\n this.updater.enqueueCallback(this, callback, 'forceUpdate');\n }\n};\n/**\n * Deprecated APIs. These APIs used to exist on classic React classes but since\n * we would like to deprecate them, we're not going to move them over to this\n * modern base class. Instead, we define a getter that warns if it's accessed.\n */\n\n\nif (process.env.NODE_ENV !== 'production') {\n var deprecatedAPIs = {\n isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],\n replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']\n };\n\n var defineDeprecationWarning = function defineDeprecationWarning(methodName, info) {\n if (canDefineProperty) {\n Object.defineProperty(ReactComponent.prototype, methodName, {\n get: function get() {\n lowPriorityWarning(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);\n return undefined;\n }\n });\n }\n };\n\n for (var fnName in deprecatedAPIs) {\n if (deprecatedAPIs.hasOwnProperty(fnName)) {\n defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);\n }\n }\n}\n/**\n * Base class helpers for the updating state of a component.\n */\n\n\nfunction ReactPureComponent(props, context, updater) {\n // Duplicated from ReactComponent.\n this.props = props;\n this.context = context;\n this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the\n // renderer.\n\n this.updater = updater || ReactNoopUpdateQueue;\n}\n\nfunction ComponentDummy() {}\n\nComponentDummy.prototype = ReactComponent.prototype;\nReactPureComponent.prototype = new ComponentDummy();\nReactPureComponent.prototype.constructor = ReactPureComponent; // Avoid an extra prototype jump for these methods.\n\n_assign(ReactPureComponent.prototype, ReactComponent.prototype);\n\nReactPureComponent.prototype.isPureReactComponent = true;\nmodule.exports = {\n Component: ReactComponent,\n PureComponent: ReactPureComponent\n};","/**\n * Copyright (c) 2015-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n'use strict';\n\nvar warning = require('fbjs/lib/warning');\n\nfunction warnNoop(publicInstance, callerName) {\n if (process.env.NODE_ENV !== 'production') {\n var constructor = publicInstance.constructor;\n process.env.NODE_ENV !== 'production' ? warning(false, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op. Please check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : void 0;\n }\n}\n/**\n * This is the abstract API for an update queue.\n */\n\n\nvar ReactNoopUpdateQueue = {\n /**\n * Checks whether or not this composite component is mounted.\n * @param {ReactClass} publicInstance The instance we want to test.\n * @return {boolean} True if mounted, false otherwise.\n * @protected\n * @final\n */\n isMounted: function isMounted(publicInstance) {\n return false;\n },\n\n /**\n * Enqueue a callback that will be executed after all the pending updates\n * have processed.\n *\n * @param {ReactClass} publicInstance The instance to use as `this` context.\n * @param {?function} callback Called after state is updated.\n * @internal\n */\n enqueueCallback: function enqueueCallback(publicInstance, callback) {},\n\n /**\n * Forces an update. This should only be invoked when it is known with\n * certainty that we are **not** in a DOM transaction.\n *\n * You may want to call this when you know that some deeper aspect of the\n * component's state has changed but `setState` was not called.\n *\n * This will not invoke `shouldComponentUpdate`, but it will invoke\n * `componentWillUpdate` and `componentDidUpdate`.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @internal\n */\n enqueueForceUpdate: function enqueueForceUpdate(publicInstance) {\n warnNoop(publicInstance, 'forceUpdate');\n },\n\n /**\n * Replaces all of the state. Always use this or `setState` to mutate state.\n * You should treat `this.state` as immutable.\n *\n * There is no guarantee that `this.state` will be immediately updated, so\n * accessing `this.state` after calling this method may return the old value.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} completeState Next state.\n * @internal\n */\n enqueueReplaceState: function enqueueReplaceState(publicInstance, completeState) {\n warnNoop(publicInstance, 'replaceState');\n },\n\n /**\n * Sets a subset of the state. This only exists because _pendingState is\n * internal. This provides a merging strategy that is not available to deep\n * properties which is confusing. TODO: Expose pendingState or don't use it\n * during the merge.\n *\n * @param {ReactClass} publicInstance The instance that should rerender.\n * @param {object} partialState Next partial state to be merged with state.\n * @internal\n */\n enqueueSetState: function enqueueSetState(publicInstance, partialState) {\n warnNoop(publicInstance, 'setState');\n }\n};\nmodule.exports = ReactNoopUpdateQueue;","\"use strict\";\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\n\n\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\n\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\n\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n'use strict';\n\nvar canDefineProperty = false;\n\nif (process.env.NODE_ENV !== 'production') {\n try {\n // $FlowFixMe https://github.com/facebook/flow/issues/285\n Object.defineProperty({}, 'x', {\n get: function get() {}\n });\n canDefineProperty = true;\n } catch (x) {// IE will fail on defineProperty\n }\n}\n\nmodule.exports = canDefineProperty;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n'use strict';\n\nvar emptyObject = {};\n\nif (process.env.NODE_ENV !== 'production') {\n Object.freeze(emptyObject);\n}\n\nmodule.exports = emptyObject;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n'use strict';\n/**\n * Keeps track of the current owner.\n *\n * The current owner is the component who should own any components that are\n * currently being constructed.\n */\n\nvar ReactCurrentOwner = {\n /**\n * @internal\n * @type {ReactComponent}\n */\n current: null\n};\nmodule.exports = ReactCurrentOwner;","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n'use strict'; // The Symbol used to tag the ReactElement type. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\n\nvar REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;\nmodule.exports = REACT_ELEMENT_TYPE;","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\nmodule.exports = ReactPropTypesSecret;","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n\n return fn.apply(thisArg, args);\n };\n};","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).replace(/%40/gi, '@').replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');\n}\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\n\n\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};","'use strict';\n\nvar utils = require('./utils');\n\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n\n return adapter;\n}\n\nvar defaults = {\n adapter: getDefaultAdapter(),\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n\n if (utils.isFormData(data) || utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data)) {\n return data;\n }\n\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n\n if (utils.isObject(data)) {\n setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n return JSON.stringify(data);\n }\n\n return data;\n }],\n transformResponse: [function transformResponse(data) {\n /*eslint no-param-reassign:0*/\n if (typeof data === 'string') {\n try {\n data = JSON.parse(data);\n } catch (e) {\n /* Ignore */\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n maxContentLength: -1,\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\nmodule.exports = defaults;","'use strict';\n\nvar utils = require('./../utils');\n\nvar settle = require('./../core/settle');\n\nvar buildURL = require('./../helpers/buildURL');\n\nvar buildFullPath = require('../core/buildFullPath');\n\nvar parseHeaders = require('./../helpers/parseHeaders');\n\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\n\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest(); // HTTP basic authentication\n\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password || '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); // Set the request timeout in MS\n\n request.timeout = config.timeout; // Listen for ready state\n\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n } // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n\n\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n } // Prepare the response\n\n\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n settle(resolve, reject, response); // Clean up request\n\n request = null;\n }; // Handle browser request cancellation (as opposed to a manual cancellation)\n\n\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request)); // Clean up request\n\n request = null;\n }; // Handle low level network errors\n\n\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request)); // Clean up request\n\n request = null;\n }; // Handle timeout\n\n\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n\n reject(createError(timeoutErrorMessage, config, 'ECONNABORTED', request)); // Clean up request\n\n request = null;\n }; // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n\n\n if (utils.isStandardBrowserEnv()) {\n var cookies = require('./../helpers/cookies'); // Add xsrf header\n\n\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? cookies.read(config.xsrfCookieName) : undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n } // Add headers to the request\n\n\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n } // Add withCredentials to request if needed\n\n\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n } // Add responseType to request if needed\n\n\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.\n // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.\n if (config.responseType !== 'json') {\n throw e;\n }\n }\n } // Handle progress if needed\n\n\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n } // Not all browsers support upload events\n\n\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel); // Clean up request\n\n request = null;\n });\n }\n\n if (requestData === undefined) {\n requestData = null;\n } // Send the request\n\n\n request.send(requestData);\n });\n};","'use strict';\n\nvar enhanceError = require('./enhanceError');\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\n\n\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};","'use strict';\n\nvar utils = require('../utils');\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\n\n\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n var valueFromConfig2Keys = ['url', 'method', 'params', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy'];\n var defaultToConfig2Keys = ['baseURL', 'url', 'transformRequest', 'transformResponse', 'paramsSerializer', 'timeout', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'maxContentLength', 'validateStatus', 'maxRedirects', 'httpAgent', 'httpsAgent', 'cancelToken', 'socketPath'];\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n }\n });\n utils.forEach(mergeDeepPropertiesKeys, function mergeDeepProperties(prop) {\n if (utils.isObject(config2[prop])) {\n config[prop] = utils.deepMerge(config1[prop], config2[prop]);\n } else if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (utils.isObject(config1[prop])) {\n config[prop] = utils.deepMerge(config1[prop]);\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys);\n var otherKeys = Object.keys(config2).filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n utils.forEach(otherKeys, function otherKeysDefaultToConfig2(prop) {\n if (typeof config2[prop] !== 'undefined') {\n config[prop] = config2[prop];\n } else if (typeof config1[prop] !== 'undefined') {\n config[prop] = config1[prop];\n }\n });\n return config;\n};","'use strict';\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\n\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\nmodule.exports = Cancel;","'use strict';\n\nvar slice = Array.prototype.slice;\n\nvar isArgs = require('./isArguments');\n\nvar origKeys = Object.keys;\nvar keysShim = origKeys ? function keys(o) {\n return origKeys(o);\n} : require('./implementation');\nvar originalKeys = Object.keys;\n\nkeysShim.shim = function shimObjectKeys() {\n if (Object.keys) {\n var keysWorksWithArguments = function () {\n // Safari 5.0 bug\n var args = Object.keys(arguments);\n return args && args.length === arguments.length;\n }(1, 2);\n\n if (!keysWorksWithArguments) {\n Object.keys = function keys(object) {\n // eslint-disable-line func-name-matching\n if (isArgs(object)) {\n return originalKeys(slice.call(object));\n }\n\n return originalKeys(object);\n };\n }\n } else {\n Object.keys = keysShim;\n }\n\n return Object.keys || keysShim;\n};\n\nmodule.exports = keysShim;","'use strict';\n\nvar toStr = Object.prototype.toString;\n\nmodule.exports = function isArguments(value) {\n var str = toStr.call(value);\n var isArgs = str === '[object Arguments]';\n\n if (!isArgs) {\n isArgs = str !== '[object Array]' && value !== null && typeof value === 'object' && typeof value.length === 'number' && value.length >= 0 && toStr.call(value.callee) === '[object Function]';\n }\n\n return isArgs;\n};","'use strict';\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\n\nmodule.exports = function hasSymbols() {\n if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') {\n return false;\n }\n\n if (typeof Symbol.iterator === 'symbol') {\n return true;\n }\n\n var obj = {};\n var sym = Symbol('test');\n var symObj = Object(sym);\n\n if (typeof sym === 'string') {\n return false;\n }\n\n if (Object.prototype.toString.call(sym) !== '[object Symbol]') {\n return false;\n }\n\n if (Object.prototype.toString.call(symObj) !== '[object Symbol]') {\n return false;\n } // temp disabled per https://github.com/ljharb/object.assign/issues/17\n // if (sym instanceof Symbol) { return false; }\n // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n // if (!(symObj instanceof Symbol)) { return false; }\n // if (typeof Symbol.prototype.toString !== 'function') { return false; }\n // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\n var symVal = 42;\n obj[sym] = symVal;\n\n for (sym in obj) {\n return false;\n } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\n\n if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) {\n return false;\n }\n\n if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) {\n return false;\n }\n\n var syms = Object.getOwnPropertySymbols(obj);\n\n if (syms.length !== 1 || syms[0] !== sym) {\n return false;\n }\n\n if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {\n return false;\n }\n\n if (typeof Object.getOwnPropertyDescriptor === 'function') {\n var descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\n if (descriptor.value !== symVal || descriptor.enumerable !== true) {\n return false;\n }\n }\n\n return true;\n};","'use strict';\n\nvar bind = require('function-bind');\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $apply = GetIntrinsic('%Function.prototype.apply%');\nvar $call = GetIntrinsic('%Function.prototype.call%');\nvar $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);\nvar $defineProperty = GetIntrinsic('%Object.defineProperty%', true);\nvar $max = GetIntrinsic('%Math.max%');\n\nif ($defineProperty) {\n try {\n $defineProperty({}, 'a', {\n value: 1\n });\n } catch (e) {\n // IE 8 has a broken defineProperty\n $defineProperty = null;\n }\n}\n\nmodule.exports = function callBind(originalFunction) {\n var func = $reflectApply(bind, $call, arguments);\n\n if ($gOPD && $defineProperty) {\n var desc = $gOPD(func, 'length');\n\n if (desc.configurable) {\n // original length, plus the receiver, minus any additional arguments (after the receiver)\n $defineProperty(func, 'length', {\n value: 1 + $max(0, originalFunction.length - (arguments.length - 1))\n });\n }\n }\n\n return func;\n};\n\nvar applyBind = function applyBind() {\n return $reflectApply(bind, $apply, arguments);\n};\n\nif ($defineProperty) {\n $defineProperty(module.exports, 'apply', {\n value: applyBind\n });\n} else {\n module.exports.apply = applyBind;\n}","'use strict';\n\nvar functionsHaveConfigurableNames = require('functions-have-names').functionsHaveConfigurableNames();\n\nvar $Object = Object;\nvar $TypeError = TypeError;\n\nmodule.exports = function flags() {\n if (this != null && this !== $Object(this)) {\n throw new $TypeError('RegExp.prototype.flags getter called on non-object');\n }\n\n var result = '';\n\n if (this.hasIndices) {\n result += 'd';\n }\n\n if (this.global) {\n result += 'g';\n }\n\n if (this.ignoreCase) {\n result += 'i';\n }\n\n if (this.multiline) {\n result += 'm';\n }\n\n if (this.dotAll) {\n result += 's';\n }\n\n if (this.unicode) {\n result += 'u';\n }\n\n if (this.sticky) {\n result += 'y';\n }\n\n return result;\n};\n\nif (functionsHaveConfigurableNames && Object.defineProperty) {\n Object.defineProperty(module.exports, 'name', {\n value: 'get flags'\n });\n}","'use strict';\n\nvar implementation = require('./implementation');\n\nvar supportsDescriptors = require('define-properties').supportsDescriptors;\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\n\nmodule.exports = function getPolyfill() {\n if (supportsDescriptors && /a/mig.flags === 'gim') {\n var descriptor = $gOPD(RegExp.prototype, 'flags');\n\n if (descriptor && typeof descriptor.get === 'function' && typeof RegExp.prototype.dotAll === 'boolean' && typeof RegExp.prototype.hasIndices === 'boolean') {\n /* eslint getter-return: 0 */\n var calls = '';\n var o = {};\n Object.defineProperty(o, 'hasIndices', {\n get: function get() {\n calls += 'd';\n }\n });\n Object.defineProperty(o, 'sticky', {\n get: function get() {\n calls += 'y';\n }\n });\n\n if (calls === 'dy') {\n return descriptor.get;\n }\n }\n }\n\n return implementation;\n};","// ag-grid-react v28.1.1\n\"use strict\";\n\nvar __extends = this && this.__extends || function () {\n var _extendStatics = function extendStatics(d, b) {\n _extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics(d, b);\n };\n\n return function (d, b) {\n _extendStatics(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar BaseReactComponent =\n/** @class */\nfunction () {\n function BaseReactComponent() {}\n\n return BaseReactComponent;\n}();\n\nvar ReactComponent =\n/** @class */\nfunction (_super) {\n __extends(ReactComponent, _super);\n\n function ReactComponent(reactComponent, portalManager, componentType) {\n var _this = _super.call(this) || this;\n\n _this.portal = null;\n _this.reactComponent = reactComponent;\n _this.portalManager = portalManager;\n _this.componentType = componentType;\n _this.statelessComponent = _this.isStateless(_this.reactComponent);\n return _this;\n }\n\n ReactComponent.prototype.getGui = function () {\n return this.eParentElement;\n };\n\n ReactComponent.prototype.destroy = function () {\n if (this.componentInstance && typeof this.componentInstance.destroy == 'function') {\n this.componentInstance.destroy();\n }\n\n return this.portalManager.destroyPortal(this.portal);\n };\n\n ReactComponent.prototype.createParentElement = function (params) {\n var componentWrappingElement = this.portalManager.getComponentWrappingElement();\n var eParentElement = document.createElement(componentWrappingElement || 'div');\n eParentElement.classList.add('ag-react-container'); // DEPRECATED - use componentInstance.getReactContainerStyle or componentInstance.getReactContainerClasses instead\n // so user can have access to the react container, to add css class or style\n\n params.reactContainer = eParentElement;\n return eParentElement;\n };\n\n ReactComponent.prototype.addParentContainerStyleAndClasses = function () {\n var _this = this;\n\n if (!this.componentInstance) {\n return;\n }\n\n if (this.componentInstance.getReactContainerStyle && this.componentInstance.getReactContainerStyle()) {\n Object.assign(this.eParentElement.style, this.componentInstance.getReactContainerStyle());\n }\n\n if (this.componentInstance.getReactContainerClasses && this.componentInstance.getReactContainerClasses()) {\n var parentContainerClasses = this.componentInstance.getReactContainerClasses();\n parentContainerClasses.forEach(function (className) {\n return _this.eParentElement.classList.add(className);\n });\n }\n };\n\n ReactComponent.prototype.statelessComponentRendered = function () {\n // fixed fragmentsFuncRendererCreateDestroy funcRendererWithNan (changeDetectionService too for NaN)\n return this.eParentElement.childElementCount > 0 || this.eParentElement.childNodes.length > 0;\n };\n\n ReactComponent.prototype.getFrameworkComponentInstance = function () {\n return this.componentInstance;\n };\n\n ReactComponent.prototype.isStatelessComponent = function () {\n return this.statelessComponent;\n };\n\n ReactComponent.prototype.getReactComponentName = function () {\n return this.reactComponent.name;\n };\n\n ReactComponent.prototype.getMemoType = function () {\n return this.hasSymbol() ? Symbol.for('react.memo') : 0xead3;\n };\n\n ReactComponent.prototype.hasSymbol = function () {\n return typeof Symbol === 'function' && Symbol.for;\n };\n\n ReactComponent.prototype.isStateless = function (Component) {\n return typeof Component === 'function' && !(Component.prototype && Component.prototype.isReactComponent) || typeof Component === 'object' && Component.$$typeof === this.getMemoType();\n };\n\n ReactComponent.prototype.hasMethod = function (name) {\n var frameworkComponentInstance = this.getFrameworkComponentInstance();\n return !!frameworkComponentInstance && frameworkComponentInstance[name] !== null || this.fallbackMethodAvailable(name);\n };\n\n ReactComponent.prototype.callMethod = function (name, args) {\n var _this = this;\n\n var frameworkComponentInstance = this.getFrameworkComponentInstance();\n\n if (this.isStatelessComponent()) {\n return this.fallbackMethod(name, !!args && args[0] ? args[0] : {});\n } else if (!!!frameworkComponentInstance) {\n // instance not ready yet - wait for it\n setTimeout(function () {\n return _this.callMethod(name, args);\n });\n return;\n }\n\n var method = frameworkComponentInstance[name];\n\n if (!!method) {\n return method.apply(frameworkComponentInstance, args);\n }\n\n if (this.fallbackMethodAvailable(name)) {\n return this.fallbackMethod(name, !!args && args[0] ? args[0] : {});\n }\n };\n\n ReactComponent.prototype.addMethod = function (name, callback) {\n this[name] = callback;\n };\n\n return ReactComponent;\n}(BaseReactComponent);\n\nexports.ReactComponent = ReactComponent;","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-dom-server.browser.production.min.js');\n} else {\n module.exports = require('./cjs/react-dom-server.browser.development.js');\n}","// ag-grid-react v28.1.1\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar counter = 0;\n\nfunction generateNewKey() {\n return \"agPortalKey_\" + ++counter;\n}\n\nexports.default = generateNewKey;","// ag-grid-react v28.1.1\n\"use strict\";\n\nvar __extends = this && this.__extends || function () {\n var _extendStatics = function extendStatics(d, b) {\n _extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics(d, b);\n };\n\n return function (d, b) {\n _extendStatics(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign = this && this.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign.apply(this, arguments);\n};\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar react_1 = require(\"react\");\n\nvar react_dom_1 = require(\"react-dom\");\n\nvar ag_grid_community_1 = require(\"ag-grid-community\");\n\nvar reactComponent_1 = require(\"./reactComponent\");\n\nvar server_1 = require(\"react-dom/server\");\n\nvar keyGenerator_1 = __importDefault(require(\"./keyGenerator\"));\n\nvar NewReactComponent =\n/** @class */\nfunction (_super) {\n __extends(NewReactComponent, _super);\n\n function NewReactComponent(reactComponent, parentComponent, componentType) {\n var _this = _super.call(this, reactComponent, parentComponent, componentType) || this;\n\n _this.oldPortal = null;\n _this.key = keyGenerator_1.default();\n _this.portalKey = keyGenerator_1.default();\n return _this;\n }\n\n NewReactComponent.prototype.init = function (params) {\n var _this = this;\n\n this.eParentElement = this.createParentElement(params);\n this.params = params;\n this.createOrUpdatePortal(params);\n return new ag_grid_community_1.AgPromise(function (resolve) {\n return _this.createReactComponent(resolve);\n });\n };\n\n NewReactComponent.prototype.createOrUpdatePortal = function (params) {\n var _this = this;\n\n if (!this.isStatelessComponent()) {\n // grab hold of the actual instance created\n params.ref = function (element) {\n _this.componentInstance = element;\n\n _this.addParentContainerStyleAndClasses();\n };\n }\n\n this.reactElement = react_1.createElement(this.reactComponent, __assign(__assign({}, params), {\n key: this.key\n }));\n this.portal = react_dom_1.createPortal(this.reactElement, this.eParentElement, this.portalKey // fixed deltaRowModeRefreshCompRenderer\n );\n };\n\n NewReactComponent.prototype.createReactComponent = function (resolve) {\n this.portalManager.mountReactPortal(this.portal, this, function (value) {\n resolve(value);\n });\n };\n\n NewReactComponent.prototype.isNullValue = function () {\n return this.valueRenderedIsNull(this.params);\n };\n\n NewReactComponent.prototype.rendered = function () {\n return this.isStatelessComponent() && this.statelessComponentRendered() || !!(!this.isStatelessComponent() && this.getFrameworkComponentInstance());\n };\n\n NewReactComponent.prototype.valueRenderedIsNull = function (params) {\n // we only do this for cellRenderers\n if (!this.componentType.cellRenderer) {\n return false;\n } // we've no way of knowing if a component returns null without rendering it first\n // so we render it to markup and check the output - if it'll be null we know and won't timeout\n // waiting for a component that will never be created\n\n\n var originalConsoleError = console.error;\n\n try {\n // if a user is doing anything that uses useLayoutEffect (like material ui) then it will throw and we\n // can't do anything to stop it; this is just a warning and has no effect on anything so just suppress it\n // for this single operation\n console.error = function () {};\n\n var staticMarkup = server_1.renderToStaticMarkup(react_1.createElement(this.reactComponent, params));\n return staticMarkup === '';\n } catch (ignore) {} finally {\n console.error = originalConsoleError;\n }\n\n return false;\n };\n /*\n * fallback methods - these will be invoked if a corresponding instance method is not present\n * for example if refresh is called and is not available on the component instance, then refreshComponent on this\n * class will be invoked instead\n *\n * Currently only refresh is supported\n */\n\n\n NewReactComponent.prototype.refreshComponent = function (args) {\n this.oldPortal = this.portal;\n this.createOrUpdatePortal(args);\n this.portalManager.updateReactPortal(this.oldPortal, this.portal);\n };\n\n NewReactComponent.prototype.fallbackMethod = function (name, params) {\n var method = this[name + \"Component\"];\n\n if (!!method) {\n return method.bind(this)(params);\n }\n };\n\n NewReactComponent.prototype.fallbackMethodAvailable = function (name) {\n var method = this[name + \"Component\"];\n return !!method;\n };\n\n return NewReactComponent;\n}(reactComponent_1.ReactComponent);\n\nexports.NewReactComponent = NewReactComponent;","// ag-grid-react v28.1.1\n\"use strict\";\n\nvar __spreadArrays = this && this.__spreadArrays || function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) {\n s += arguments[i].length;\n }\n\n for (var r = Array(s), k = 0, i = 0; i < il; i++) {\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) {\n r[k] = a[j];\n }\n }\n\n return r;\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar PortalManager =\n/** @class */\nfunction () {\n function PortalManager(parent, wrappingElement, maxComponentCreationTimeMs) {\n this.destroyed = false;\n this.portals = [];\n this.hasPendingPortalUpdate = false;\n this.wrappingElement = wrappingElement ? wrappingElement : 'div';\n this.parent = parent;\n this.maxComponentCreationTimeMs = maxComponentCreationTimeMs ? maxComponentCreationTimeMs : PortalManager.MAX_COMPONENT_CREATION_TIME_IN_MS;\n }\n\n PortalManager.prototype.getPortals = function () {\n return this.portals;\n };\n\n PortalManager.prototype.destroy = function () {\n this.destroyed = true;\n };\n\n PortalManager.prototype.destroyPortal = function (portal) {\n this.portals = this.portals.filter(function (curPortal) {\n return curPortal !== portal;\n });\n this.batchUpdate();\n };\n\n PortalManager.prototype.getComponentWrappingElement = function () {\n return this.wrappingElement;\n };\n\n PortalManager.prototype.mountReactPortal = function (portal, reactComponent, resolve) {\n this.portals = __spreadArrays(this.portals, [portal]);\n this.waitForInstance(reactComponent, resolve);\n this.batchUpdate();\n };\n\n PortalManager.prototype.updateReactPortal = function (oldPortal, newPortal) {\n this.portals[this.portals.indexOf(oldPortal)] = newPortal;\n this.batchUpdate();\n };\n\n PortalManager.prototype.batchUpdate = function () {\n var _this = this;\n\n if (this.hasPendingPortalUpdate) {\n return;\n }\n\n setTimeout(function () {\n if (!_this.destroyed) {\n // destroyed?\n _this.parent.forceUpdate(function () {\n _this.hasPendingPortalUpdate = false;\n });\n }\n });\n this.hasPendingPortalUpdate = true;\n };\n\n PortalManager.prototype.waitForInstance = function (reactComponent, resolve, startTime) {\n var _this = this;\n\n if (startTime === void 0) {\n startTime = Date.now();\n } // if the grid has been destroyed in the meantime just resolve\n\n\n if (this.destroyed) {\n resolve(null);\n return;\n }\n\n if (reactComponent.rendered()) {\n resolve(reactComponent);\n } else {\n if (Date.now() - startTime >= this.maxComponentCreationTimeMs && !this.hasPendingPortalUpdate) {\n // last check - we check if this is a null value being rendered - we do this last as using SSR to check the value\n // can mess up contexts\n if (reactComponent.isNullValue()) {\n resolve(reactComponent);\n return;\n }\n\n console.error(\"AG Grid: React Component '\" + reactComponent.getReactComponentName() + \"' not created within \" + this.maxComponentCreationTimeMs + \"ms\");\n return;\n }\n\n window.setTimeout(function () {\n _this.waitForInstance(reactComponent, resolve, startTime);\n });\n }\n };\n\n PortalManager.MAX_COMPONENT_CREATION_TIME_IN_MS = 1000; // a second should be more than enough to instantiate a component\n\n return PortalManager;\n}();\n\nexports.PortalManager = PortalManager;","// ag-grid-react v28.1.1\n\"use strict\";\n\nvar __extends = this && this.__extends || function () {\n var _extendStatics = function extendStatics(d, b) {\n _extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (b.hasOwnProperty(p)) d[p] = b[p];\n }\n };\n\n return _extendStatics(d, b);\n };\n\n return function (d, b) {\n _extendStatics(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __importDefault = this && this.__importDefault || function (mod) {\n return mod && mod.__esModule ? mod : {\n \"default\": mod\n };\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar ag_grid_community_1 = require(\"ag-grid-community\");\n\nvar groupCellRenderer_1 = __importDefault(require(\"../reactUi/cellRenderer/groupCellRenderer\"));\n\nvar detailCellRenderer_1 = __importDefault(require(\"../reactUi/cellRenderer/detailCellRenderer\"));\n\nvar ReactFrameworkOverrides =\n/** @class */\nfunction (_super) {\n __extends(ReactFrameworkOverrides, _super);\n\n function ReactFrameworkOverrides(reactUi) {\n var _this = _super.call(this) || this;\n\n _this.frameworkComponents = {\n agGroupCellRenderer: groupCellRenderer_1.default,\n agGroupRowRenderer: groupCellRenderer_1.default,\n agDetailCellRenderer: detailCellRenderer_1.default\n };\n _this.reactUi = reactUi;\n return _this;\n }\n\n ReactFrameworkOverrides.prototype.frameworkComponent = function (name) {\n if (!this.reactUi) {\n return;\n }\n\n return this.frameworkComponents[name];\n };\n\n ReactFrameworkOverrides.prototype.isFrameworkComponent = function (comp) {\n if (!comp) {\n return false;\n }\n\n var prototype = comp.prototype;\n var isJsComp = prototype && 'getGui' in prototype;\n return !isJsComp;\n };\n\n return ReactFrameworkOverrides;\n}(ag_grid_community_1.VanillaFrameworkOverrides);\n\nexports.ReactFrameworkOverrides = ReactFrameworkOverrides;","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nexport default stubFalse;","import root from './_root.js';\n/** Detect free variable `exports`. */\n\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n/** Detect free variable `module`. */\n\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n/** Detect the popular CommonJS extension `module.exports`. */\n\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n/** Built-in value references. */\n\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\n\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n buffer.copy(result);\n return result;\n}\n\nexport default cloneBuffer;","/**\n * Topological sorting function\n *\n * @param {Array} edges\n * @returns {Array}\n */\nmodule.exports = function (edges) {\n return toposort(uniqueNodes(edges), edges);\n};\n\nmodule.exports.array = toposort;\n\nfunction toposort(nodes, edges) {\n var cursor = nodes.length,\n sorted = new Array(cursor),\n visited = {},\n i = cursor // Better data structures make algorithm much faster.\n ,\n outgoingEdges = makeOutgoingEdges(edges),\n nodesHash = makeNodesHash(nodes); // check for unknown nodes\n\n edges.forEach(function (edge) {\n if (!nodesHash.has(edge[0]) || !nodesHash.has(edge[1])) {\n throw new Error('Unknown node. There is an unknown node in the supplied edges.');\n }\n });\n\n while (i--) {\n if (!visited[i]) visit(nodes[i], i, new Set());\n }\n\n return sorted;\n\n function visit(node, i, predecessors) {\n if (predecessors.has(node)) {\n var nodeRep;\n\n try {\n nodeRep = \", node was:\" + JSON.stringify(node);\n } catch (e) {\n nodeRep = \"\";\n }\n\n throw new Error('Cyclic dependency' + nodeRep);\n }\n\n if (!nodesHash.has(node)) {\n throw new Error('Found unknown node. Make sure to provided all involved nodes. Unknown node: ' + JSON.stringify(node));\n }\n\n if (visited[i]) return;\n visited[i] = true;\n var outgoing = outgoingEdges.get(node) || new Set();\n outgoing = Array.from(outgoing);\n\n if (i = outgoing.length) {\n predecessors.add(node);\n\n do {\n var child = outgoing[--i];\n visit(child, nodesHash.get(child), predecessors);\n } while (i);\n\n predecessors.delete(node);\n }\n\n sorted[--cursor] = node;\n }\n}\n\nfunction uniqueNodes(arr) {\n var res = new Set();\n\n for (var i = 0, len = arr.length; i < len; i++) {\n var edge = arr[i];\n res.add(edge[0]);\n res.add(edge[1]);\n }\n\n return Array.from(res);\n}\n\nfunction makeOutgoingEdges(arr) {\n var edges = new Map();\n\n for (var i = 0, len = arr.length; i < len; i++) {\n var edge = arr[i];\n if (!edges.has(edge[0])) edges.set(edge[0], new Set());\n if (!edges.has(edge[1])) edges.set(edge[1], new Set());\n edges.get(edge[0]).add(edge[1]);\n }\n\n return edges;\n}\n\nfunction makeNodesHash(arr) {\n var res = new Map();\n\n for (var i = 0, len = arr.length; i < len; i++) {\n res.set(arr[i], i);\n }\n\n return res;\n}","module.exports = function (e) {\n function r(n) {\n if (t[n]) return t[n].exports;\n var o = t[n] = {\n i: n,\n l: !1,\n exports: {}\n };\n return e[n].call(o.exports, o, o.exports, r), o.l = !0, o.exports;\n }\n\n var t = {};\n return r.m = e, r.c = t, r.d = function (e, t, n) {\n r.o(e, t) || Object.defineProperty(e, t, {\n configurable: !1,\n enumerable: !0,\n get: n\n });\n }, r.n = function (e) {\n var t = e && e.__esModule ? function () {\n return e.default;\n } : function () {\n return e;\n };\n return r.d(t, \"a\", t), t;\n }, r.o = function (e, r) {\n return Object.prototype.hasOwnProperty.call(e, r);\n }, r.p = \"\", r(r.s = 0);\n}([function (e, r, t) {\n \"use strict\";\n\n r.__esModule = !0, r.default = function (e, r) {\n if (e && r) {\n var t = Array.isArray(r) ? r : r.split(\",\"),\n n = e.name || \"\",\n o = e.type || \"\",\n u = o.replace(/\\/.*$/, \"\");\n return t.some(function (e) {\n var r = e.trim();\n return \".\" === r.charAt(0) ? n.toLowerCase().endsWith(r.toLowerCase()) : r.endsWith(\"/*\") ? u === r.replace(/\\/.*$/, \"\") : o === r;\n });\n }\n\n return !0;\n };\n}]);","!function (e, t) {\n \"object\" == typeof exports && \"undefined\" != typeof module ? t(exports, require(\"react\"), require(\"prop-types\"), require(\"classnames\"), require(\"date-fns/isDate\"), require(\"date-fns/isValid\"), require(\"date-fns/format\"), require(\"date-fns/addMinutes\"), require(\"date-fns/addHours\"), require(\"date-fns/addDays\"), require(\"date-fns/addWeeks\"), require(\"date-fns/addMonths\"), require(\"date-fns/addYears\"), require(\"date-fns/subMinutes\"), require(\"date-fns/subHours\"), require(\"date-fns/subDays\"), require(\"date-fns/subWeeks\"), require(\"date-fns/subMonths\"), require(\"date-fns/subYears\"), require(\"date-fns/getSeconds\"), require(\"date-fns/getMinutes\"), require(\"date-fns/getHours\"), require(\"date-fns/getDay\"), require(\"date-fns/getDate\"), require(\"date-fns/getWeek\"), require(\"date-fns/getMonth\"), require(\"date-fns/getQuarter\"), require(\"date-fns/getYear\"), require(\"date-fns/getTime\"), require(\"date-fns/setSeconds\"), require(\"date-fns/setMinutes\"), require(\"date-fns/setHours\"), require(\"date-fns/setMonth\"), require(\"date-fns/setQuarter\"), require(\"date-fns/setYear\"), require(\"date-fns/min\"), require(\"date-fns/max\"), require(\"date-fns/differenceInCalendarDays\"), require(\"date-fns/differenceInCalendarMonths\"), require(\"date-fns/differenceInCalendarWeeks\"), require(\"date-fns/differenceInCalendarYears\"), require(\"date-fns/startOfDay\"), require(\"date-fns/startOfWeek\"), require(\"date-fns/startOfMonth\"), require(\"date-fns/startOfQuarter\"), require(\"date-fns/startOfYear\"), require(\"date-fns/endOfDay\"), require(\"date-fns/endOfWeek\"), require(\"date-fns/endOfMonth\"), require(\"date-fns/isEqual\"), require(\"date-fns/isSameDay\"), require(\"date-fns/isSameMonth\"), require(\"date-fns/isSameYear\"), require(\"date-fns/isSameQuarter\"), require(\"date-fns/isAfter\"), require(\"date-fns/isBefore\"), require(\"date-fns/isWithinInterval\"), require(\"date-fns/toDate\"), require(\"date-fns/parse\"), require(\"date-fns/parseISO\"), require(\"react-onclickoutside\"), require(\"react-popper\")) : \"function\" == typeof define && define.amd ? define([\"exports\", \"react\", \"prop-types\", \"classnames\", \"date-fns/isDate\", \"date-fns/isValid\", \"date-fns/format\", \"date-fns/addMinutes\", \"date-fns/addHours\", \"date-fns/addDays\", \"date-fns/addWeeks\", \"date-fns/addMonths\", \"date-fns/addYears\", \"date-fns/subMinutes\", \"date-fns/subHours\", \"date-fns/subDays\", \"date-fns/subWeeks\", \"date-fns/subMonths\", \"date-fns/subYears\", \"date-fns/getSeconds\", \"date-fns/getMinutes\", \"date-fns/getHours\", \"date-fns/getDay\", \"date-fns/getDate\", \"date-fns/getWeek\", \"date-fns/getMonth\", \"date-fns/getQuarter\", \"date-fns/getYear\", \"date-fns/getTime\", \"date-fns/setSeconds\", \"date-fns/setMinutes\", \"date-fns/setHours\", \"date-fns/setMonth\", \"date-fns/setQuarter\", \"date-fns/setYear\", \"date-fns/min\", \"date-fns/max\", \"date-fns/differenceInCalendarDays\", \"date-fns/differenceInCalendarMonths\", \"date-fns/differenceInCalendarWeeks\", \"date-fns/differenceInCalendarYears\", \"date-fns/startOfDay\", \"date-fns/startOfWeek\", \"date-fns/startOfMonth\", \"date-fns/startOfQuarter\", \"date-fns/startOfYear\", \"date-fns/endOfDay\", \"date-fns/endOfWeek\", \"date-fns/endOfMonth\", \"date-fns/isEqual\", \"date-fns/isSameDay\", \"date-fns/isSameMonth\", \"date-fns/isSameYear\", \"date-fns/isSameQuarter\", \"date-fns/isAfter\", \"date-fns/isBefore\", \"date-fns/isWithinInterval\", \"date-fns/toDate\", \"date-fns/parse\", \"date-fns/parseISO\", \"react-onclickoutside\", \"react-popper\"], t) : t((e = e || self).DatePicker = {}, e.React, e.PropTypes, e.classNames, e.isDate, e.isValidDate, e.format, e.addMinutes, e.addHours, e.utils, e.utils$1, e.addMonths, e.addYears, e.subMinutes, e.subHours, e.subDays, e.subWeeks, e.subMonths, e.subYears, e.getSeconds, e.getMinutes, e.getHours, e.getDay, e.getDate, e.dfgetWeek, e.getMonth, e.getQuarter, e.getYear, e.getTime, e.setSeconds, e.setMinutes, e.setHours, e.utils$2, e.utils$3, e.setYear, e.min, e.max, e.differenceInCalendarDays, e.differenceInCalendarMonths, e.differenceInCalendarWeeks, e.differenceInCalendarYears, e.startOfDay, e.startOfWeek, e.startOfMonth, e.startOfQuarter, e.startOfYear, e.endOfDay, e.endOfWeek, e.endOfMonth, e.dfIsEqual, e.dfIsSameDay, e.dfIsSameMonth, e.dfIsSameYear, e.dfIsSameQuarter, e.isAfter, e.isBefore, e.isWithinInterval, e.toDate, e.parse, e.parseISO, e.onClickOutside, e.ReactPopper);\n}(this, function (e, t, r, n, a, o, s, i, p, c, l, d, u, h, f, m, y, D, v, w, g, k, b, C, _, S, M, O, P, E, N, x, T, Y, I, L, q, F, W, A, B, R, j, H, K, Q, V, U, $, z, G, J, X, Z, ee, te, re, ne, ae, oe, se, ie) {\n \"use strict\";\n\n function pe(e) {\n return (pe = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (e) {\n return typeof e;\n } : function (e) {\n return e && \"function\" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? \"symbol\" : typeof e;\n })(e);\n }\n\n function ce(e, t) {\n if (!(e instanceof t)) throw new TypeError(\"Cannot call a class as a function\");\n }\n\n function le(e, t) {\n for (var r = 0; r < t.length; r++) {\n var n = t[r];\n n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);\n }\n }\n\n function de(e, t, r) {\n return t && le(e.prototype, t), r && le(e, r), e;\n }\n\n function ue(e, t, r) {\n return t in e ? Object.defineProperty(e, t, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[t] = r, e;\n }\n\n function he() {\n return (he = Object.assign || function (e) {\n for (var t = 1; t < arguments.length; t++) {\n var r = arguments[t];\n\n for (var n in r) {\n Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);\n }\n }\n\n return e;\n }).apply(this, arguments);\n }\n\n function fe(e, t) {\n var r = Object.keys(e);\n\n if (Object.getOwnPropertySymbols) {\n var n = Object.getOwnPropertySymbols(e);\n t && (n = n.filter(function (t) {\n return Object.getOwnPropertyDescriptor(e, t).enumerable;\n })), r.push.apply(r, n);\n }\n\n return r;\n }\n\n function me(e, t) {\n if (\"function\" != typeof t && null !== t) throw new TypeError(\"Super expression must either be null or a function\");\n e.prototype = Object.create(t && t.prototype, {\n constructor: {\n value: e,\n writable: !0,\n configurable: !0\n }\n }), t && De(e, t);\n }\n\n function ye(e) {\n return (ye = Object.setPrototypeOf ? Object.getPrototypeOf : function (e) {\n return e.__proto__ || Object.getPrototypeOf(e);\n })(e);\n }\n\n function De(e, t) {\n return (De = Object.setPrototypeOf || function (e, t) {\n return e.__proto__ = t, e;\n })(e, t);\n }\n\n function ve(e) {\n if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return e;\n }\n\n function we(e, t) {\n return !t || \"object\" != typeof t && \"function\" != typeof t ? ve(e) : t;\n }\n\n function ge(e, t) {\n switch (e) {\n case \"P\":\n return t.date({\n width: \"short\"\n });\n\n case \"PP\":\n return t.date({\n width: \"medium\"\n });\n\n case \"PPP\":\n return t.date({\n width: \"long\"\n });\n\n case \"PPPP\":\n default:\n return t.date({\n width: \"full\"\n });\n }\n }\n\n function ke(e, t) {\n switch (e) {\n case \"p\":\n return t.time({\n width: \"short\"\n });\n\n case \"pp\":\n return t.time({\n width: \"medium\"\n });\n\n case \"ppp\":\n return t.time({\n width: \"long\"\n });\n\n case \"pppp\":\n default:\n return t.time({\n width: \"full\"\n });\n }\n }\n\n t = t && t.hasOwnProperty(\"default\") ? t.default : t, r = r && r.hasOwnProperty(\"default\") ? r.default : r, n = n && n.hasOwnProperty(\"default\") ? n.default : n, a = a && a.hasOwnProperty(\"default\") ? a.default : a, o = o && o.hasOwnProperty(\"default\") ? o.default : o, s = s && s.hasOwnProperty(\"default\") ? s.default : s, i = i && i.hasOwnProperty(\"default\") ? i.default : i, p = p && p.hasOwnProperty(\"default\") ? p.default : p, c = c && c.hasOwnProperty(\"default\") ? c.default : c, l = l && l.hasOwnProperty(\"default\") ? l.default : l, d = d && d.hasOwnProperty(\"default\") ? d.default : d, u = u && u.hasOwnProperty(\"default\") ? u.default : u, h = h && h.hasOwnProperty(\"default\") ? h.default : h, f = f && f.hasOwnProperty(\"default\") ? f.default : f, m = m && m.hasOwnProperty(\"default\") ? m.default : m, y = y && y.hasOwnProperty(\"default\") ? y.default : y, D = D && D.hasOwnProperty(\"default\") ? D.default : D, v = v && v.hasOwnProperty(\"default\") ? v.default : v, w = w && w.hasOwnProperty(\"default\") ? w.default : w, g = g && g.hasOwnProperty(\"default\") ? g.default : g, k = k && k.hasOwnProperty(\"default\") ? k.default : k, b = b && b.hasOwnProperty(\"default\") ? b.default : b, C = C && C.hasOwnProperty(\"default\") ? C.default : C, _ = _ && _.hasOwnProperty(\"default\") ? _.default : _, S = S && S.hasOwnProperty(\"default\") ? S.default : S, M = M && M.hasOwnProperty(\"default\") ? M.default : M, O = O && O.hasOwnProperty(\"default\") ? O.default : O, P = P && P.hasOwnProperty(\"default\") ? P.default : P, E = E && E.hasOwnProperty(\"default\") ? E.default : E, N = N && N.hasOwnProperty(\"default\") ? N.default : N, x = x && x.hasOwnProperty(\"default\") ? x.default : x, T = T && T.hasOwnProperty(\"default\") ? T.default : T, Y = Y && Y.hasOwnProperty(\"default\") ? Y.default : Y, I = I && I.hasOwnProperty(\"default\") ? I.default : I, L = L && L.hasOwnProperty(\"default\") ? L.default : L, q = q && q.hasOwnProperty(\"default\") ? q.default : q, F = F && F.hasOwnProperty(\"default\") ? F.default : F, W = W && W.hasOwnProperty(\"default\") ? W.default : W, A = A && A.hasOwnProperty(\"default\") ? A.default : A, B = B && B.hasOwnProperty(\"default\") ? B.default : B, R = R && R.hasOwnProperty(\"default\") ? R.default : R, j = j && j.hasOwnProperty(\"default\") ? j.default : j, H = H && H.hasOwnProperty(\"default\") ? H.default : H, K = K && K.hasOwnProperty(\"default\") ? K.default : K, Q = Q && Q.hasOwnProperty(\"default\") ? Q.default : Q, V = V && V.hasOwnProperty(\"default\") ? V.default : V, U = U && U.hasOwnProperty(\"default\") ? U.default : U, $ = $ && $.hasOwnProperty(\"default\") ? $.default : $, z = z && z.hasOwnProperty(\"default\") ? z.default : z, G = G && G.hasOwnProperty(\"default\") ? G.default : G, J = J && J.hasOwnProperty(\"default\") ? J.default : J, X = X && X.hasOwnProperty(\"default\") ? X.default : X, Z = Z && Z.hasOwnProperty(\"default\") ? Z.default : Z, ee = ee && ee.hasOwnProperty(\"default\") ? ee.default : ee, te = te && te.hasOwnProperty(\"default\") ? te.default : te, re = re && re.hasOwnProperty(\"default\") ? re.default : re, ne = ne && ne.hasOwnProperty(\"default\") ? ne.default : ne, ae = ae && ae.hasOwnProperty(\"default\") ? ae.default : ae, oe = oe && oe.hasOwnProperty(\"default\") ? oe.default : oe, se = se && se.hasOwnProperty(\"default\") ? se.default : se;\n var be = {\n p: ke,\n P: function P(e, t) {\n var r,\n n = e.match(/(P+)(p+)?/),\n a = n[1],\n o = n[2];\n if (!o) return ge(e, t);\n\n switch (a) {\n case \"P\":\n r = t.dateTime({\n width: \"short\"\n });\n break;\n\n case \"PP\":\n r = t.dateTime({\n width: \"medium\"\n });\n break;\n\n case \"PPP\":\n r = t.dateTime({\n width: \"long\"\n });\n break;\n\n case \"PPPP\":\n default:\n r = t.dateTime({\n width: \"full\"\n });\n }\n\n return r.replace(\"{{date}}\", ge(a, t)).replace(\"{{time}}\", ke(o, t));\n }\n },\n Ce = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\n function _e(e) {\n var t = e ? \"string\" == typeof e || e instanceof String ? oe(e) : ne(e) : new Date();\n return Me(t) ? t : null;\n }\n\n function Se(e, t, r, n) {\n var a = null,\n o = We(r) || Fe(),\n i = !0;\n return Array.isArray(t) ? (t.forEach(function (t) {\n var r = ae(e, t, new Date(), {\n locale: o\n });\n n && (i = Me(r) && e === s(r, t, {\n awareOfUnicodeTokens: !0\n })), Me(r) && i && (a = r);\n }), a) : (a = ae(e, t, new Date(), {\n locale: o\n }), n ? i = Me(a) && e === s(a, t, {\n awareOfUnicodeTokens: !0\n }) : Me(a) || (t = t.match(Ce).map(function (e) {\n var t = e[0];\n\n if (\"p\" === t || \"P\" === t) {\n var r = be[t];\n return o ? r(e, o.formatLong) : t;\n }\n\n return e;\n }).join(\"\"), e.length > 0 && (a = ae(e, t.slice(0, e.length), new Date())), Me(a) || (a = new Date(e))), Me(a) && i ? a : null);\n }\n\n function Me(e) {\n return o(e) && ee(e, new Date(\"1/1/1000\"));\n }\n\n function Oe(e, t, r) {\n if (\"en\" === r) return s(e, t, {\n awareOfUnicodeTokens: !0\n });\n var n = We(r);\n return r && !n && console.warn('A locale object was not found for the provided string [\"'.concat(r, '\"].')), !n && Fe() && We(Fe()) && (n = We(Fe())), s(e, t, {\n locale: n || null,\n awareOfUnicodeTokens: !0\n });\n }\n\n function Pe(e, t) {\n var r = t.hour,\n n = void 0 === r ? 0 : r,\n a = t.minute,\n o = void 0 === a ? 0 : a,\n s = t.second;\n return x(N(E(e, void 0 === s ? 0 : s), o), n);\n }\n\n function Ee(e, t) {\n var r = We(t || Fe());\n return j(e, {\n locale: r\n });\n }\n\n function Ne(e) {\n return H(e);\n }\n\n function xe(e, t) {\n return e && t ? X(e, t) : !e && !t;\n }\n\n function Te(e, t) {\n return e && t ? J(e, t) : !e && !t;\n }\n\n function Ye(e, t) {\n return e && t ? Z(e, t) : !e && !t;\n }\n\n function Ie(e, t) {\n return e && t ? G(e, t) : !e && !t;\n }\n\n function Le(e, t) {\n return e && t ? z(e, t) : !e && !t;\n }\n\n function qe(e, t, r) {\n var n,\n a = R(t),\n o = V(r);\n\n try {\n n = re(e, {\n start: a,\n end: o\n });\n } catch (e) {\n n = !1;\n }\n\n return n;\n }\n\n function Fe() {\n return (\"undefined\" != typeof window ? window : global).__localeId__;\n }\n\n function We(e) {\n if (\"string\" == typeof e) {\n var t = \"undefined\" != typeof window ? window : global;\n return t.__localeData__ ? t.__localeData__[e] : null;\n }\n\n return e;\n }\n\n function Ae(e, t) {\n return Oe(T(_e(), e), \"LLL\", t);\n }\n\n function Be(e) {\n var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},\n r = t.minDate,\n n = t.maxDate,\n a = t.excludeDates,\n o = t.includeDates,\n s = t.filterDate;\n return Qe(e, {\n minDate: r,\n maxDate: n\n }) || a && a.some(function (t) {\n return Ie(e, t);\n }) || o && !o.some(function (t) {\n return Ie(e, t);\n }) || s && !s(_e(e)) || !1;\n }\n\n function Re(e) {\n var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},\n r = t.minDate,\n n = t.maxDate,\n a = t.excludeDates,\n o = t.includeDates,\n s = t.filterDate;\n return Qe(e, {\n minDate: r,\n maxDate: n\n }) || a && a.some(function (t) {\n return Te(e, t);\n }) || o && !o.some(function (t) {\n return Te(e, t);\n }) || s && !s(_e(e)) || !1;\n }\n\n function je(e, t, r, n) {\n var a = O(e),\n o = S(e),\n s = O(t),\n i = S(t),\n p = O(n);\n return a === s && a === p ? o <= r && r <= i : a < s ? p === a && o <= r || p === s && i >= r || p < s && p > a : void 0;\n }\n\n function He(e) {\n var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},\n r = t.minDate,\n n = t.maxDate,\n a = t.excludeDates,\n o = t.includeDates,\n s = t.filterDate;\n return Qe(e, {\n minDate: r,\n maxDate: n\n }) || a && a.some(function (t) {\n return Ye(e, t);\n }) || o && !o.some(function (t) {\n return Ye(e, t);\n }) || s && !s(_e(e)) || !1;\n }\n\n function Ke(e, t, r, n) {\n var a = O(e),\n o = M(e),\n s = O(t),\n i = M(t),\n p = O(n);\n return a === s && a === p ? o <= r && r <= i : a < s ? p === a && o <= r || p === s && i >= r || p < s && p > a : void 0;\n }\n\n function Qe(e) {\n var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},\n r = t.minDate,\n n = t.maxDate;\n return r && F(e, r) < 0 || n && F(e, n) > 0;\n }\n\n function Ve(e, t) {\n for (var r = t.length, n = 0; n < r; n++) {\n if (k(t[n]) === k(e) && g(t[n]) === g(e)) return !0;\n }\n\n return !1;\n }\n\n function Ue(e, t) {\n var r = t.minTime,\n n = t.maxTime;\n if (!r || !n) throw new Error(\"Both minTime and maxTime props required\");\n\n var a,\n o = _e(),\n s = x(N(o, g(e)), k(e)),\n i = x(N(o, g(r)), k(r)),\n p = x(N(o, g(n)), k(n));\n\n try {\n a = !re(s, {\n start: i,\n end: p\n });\n } catch (e) {\n a = !1;\n }\n\n return a;\n }\n\n function $e(e) {\n var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},\n r = t.minDate,\n n = t.includeDates,\n a = D(e, 1);\n return r && W(r, a) > 0 || n && n.every(function (e) {\n return W(e, a) > 0;\n }) || !1;\n }\n\n function ze(e) {\n var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},\n r = t.maxDate,\n n = t.includeDates,\n a = d(e, 1);\n return r && W(a, r) > 0 || n && n.every(function (e) {\n return W(a, e) > 0;\n }) || !1;\n }\n\n function Ge(e) {\n var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},\n r = t.minDate,\n n = t.includeDates,\n a = v(e, 1);\n return r && B(r, a) > 0 || n && n.every(function (e) {\n return B(e, a) > 0;\n }) || !1;\n }\n\n function Je(e) {\n var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},\n r = t.maxDate,\n n = t.includeDates,\n a = u(e, 1);\n return r && B(a, r) > 0 || n && n.every(function (e) {\n return B(a, e) > 0;\n }) || !1;\n }\n\n function Xe(e) {\n var t = e.minDate,\n r = e.includeDates;\n\n if (r && t) {\n var n = r.filter(function (e) {\n return F(e, t) >= 0;\n });\n return L(n);\n }\n\n return r ? L(r) : t;\n }\n\n function Ze(e) {\n var t = e.maxDate,\n r = e.includeDates;\n\n if (r && t) {\n var n = r.filter(function (e) {\n return F(e, t) <= 0;\n });\n return q(n);\n }\n\n return r ? q(r) : t;\n }\n\n function et() {\n for (var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : \"react-datepicker__day--highlighted\", r = new Map(), n = 0, o = e.length; n < o; n++) {\n var s = e[n];\n\n if (a(s)) {\n var i = Oe(s, \"MM.dd.yyyy\"),\n p = r.get(i) || [];\n p.includes(t) || (p.push(t), r.set(i, p));\n } else if (\"object\" === pe(s)) {\n var c = Object.keys(s),\n l = c[0],\n d = s[c[0]];\n if (\"string\" == typeof l && d.constructor === Array) for (var u = 0, h = d.length; u < h; u++) {\n var f = Oe(d[u], \"MM.dd.yyyy\"),\n m = r.get(f) || [];\n m.includes(l) || (m.push(l), r.set(f, m));\n }\n }\n }\n\n return r;\n }\n\n function tt(e, t, r, n, a) {\n for (var o = a.length, s = [], c = 0; c < o; c++) {\n var l = i(p(e, k(a[c])), g(a[c])),\n d = i(e, (r + 1) * n);\n ee(l, t) && te(l, d) && s.push(a[c]);\n }\n\n return s;\n }\n\n function rt(e) {\n return e < 10 ? \"0\".concat(e) : \"\".concat(e);\n }\n\n function nt(e, t, r, n) {\n for (var a = [], o = 0; o < 2 * t + 1; o++) {\n var s = e + t - o,\n i = !0;\n r && (i = O(r) <= s), n && i && (i = O(n) >= s), i && a.push(s);\n }\n\n return a;\n }\n\n var at = se(function (e) {\n function r(e) {\n var n;\n ce(this, r), ue(ve(n = we(this, ye(r).call(this, e))), \"renderOptions\", function () {\n var e = n.props.year,\n r = n.state.yearsList.map(function (r) {\n return t.createElement(\"div\", {\n className: e === r ? \"react-datepicker__year-option react-datepicker__year-option--selected_year\" : \"react-datepicker__year-option\",\n key: r,\n ref: r,\n onClick: n.onChange.bind(ve(n), r)\n }, e === r ? t.createElement(\"span\", {\n className: \"react-datepicker__year-option--selected\"\n }, \"✓\") : \"\", r);\n }),\n a = n.props.minDate ? O(n.props.minDate) : null,\n o = n.props.maxDate ? O(n.props.maxDate) : null;\n return o && n.state.yearsList.find(function (e) {\n return e === o;\n }) || r.unshift(t.createElement(\"div\", {\n className: \"react-datepicker__year-option\",\n ref: \"upcoming\",\n key: \"upcoming\",\n onClick: n.incrementYears\n }, t.createElement(\"a\", {\n className: \"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming\"\n }))), a && n.state.yearsList.find(function (e) {\n return e === a;\n }) || r.push(t.createElement(\"div\", {\n className: \"react-datepicker__year-option\",\n ref: \"previous\",\n key: \"previous\",\n onClick: n.decrementYears\n }, t.createElement(\"a\", {\n className: \"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous\"\n }))), r;\n }), ue(ve(n), \"onChange\", function (e) {\n n.props.onChange(e);\n }), ue(ve(n), \"handleClickOutside\", function () {\n n.props.onCancel();\n }), ue(ve(n), \"shiftYears\", function (e) {\n var t = n.state.yearsList.map(function (t) {\n return t + e;\n });\n n.setState({\n yearsList: t\n });\n }), ue(ve(n), \"incrementYears\", function () {\n return n.shiftYears(1);\n }), ue(ve(n), \"decrementYears\", function () {\n return n.shiftYears(-1);\n });\n var a = e.yearDropdownItemNumber,\n o = e.scrollableYearDropdown,\n s = a || (o ? 10 : 5);\n return n.state = {\n yearsList: nt(n.props.year, s, n.props.minDate, n.props.maxDate)\n }, n;\n }\n\n return me(r, e), de(r, [{\n key: \"render\",\n value: function value() {\n var e = n({\n \"react-datepicker__year-dropdown\": !0,\n \"react-datepicker__year-dropdown--scrollable\": this.props.scrollableYearDropdown\n });\n return t.createElement(\"div\", {\n className: e\n }, this.renderOptions());\n }\n }]), r;\n }(t.Component)),\n ot = function (e) {\n function r() {\n var e, n;\n ce(this, r);\n\n for (var a = arguments.length, o = new Array(a), s = 0; s < a; s++) {\n o[s] = arguments[s];\n }\n\n return ue(ve(n = we(this, (e = ye(r)).call.apply(e, [this].concat(o)))), \"state\", {\n dropdownVisible: !1\n }), ue(ve(n), \"renderSelectOptions\", function () {\n for (var e = n.props.minDate ? O(n.props.minDate) : 1900, r = n.props.maxDate ? O(n.props.maxDate) : 2100, a = [], o = e; o <= r; o++) {\n a.push(t.createElement(\"option\", {\n key: o,\n value: o\n }, o));\n }\n\n return a;\n }), ue(ve(n), \"onSelectChange\", function (e) {\n n.onChange(e.target.value);\n }), ue(ve(n), \"renderSelectMode\", function () {\n return t.createElement(\"select\", {\n value: n.props.year,\n className: \"react-datepicker__year-select\",\n onChange: n.onSelectChange\n }, n.renderSelectOptions());\n }), ue(ve(n), \"renderReadView\", function (e) {\n return t.createElement(\"div\", {\n key: \"read\",\n style: {\n visibility: e ? \"visible\" : \"hidden\"\n },\n className: \"react-datepicker__year-read-view\",\n onClick: function onClick(e) {\n return n.toggleDropdown(e);\n }\n }, t.createElement(\"span\", {\n className: \"react-datepicker__year-read-view--down-arrow\"\n }), t.createElement(\"span\", {\n className: \"react-datepicker__year-read-view--selected-year\"\n }, n.props.year));\n }), ue(ve(n), \"renderDropdown\", function () {\n return t.createElement(at, {\n key: \"dropdown\",\n ref: \"options\",\n year: n.props.year,\n onChange: n.onChange,\n onCancel: n.toggleDropdown,\n minDate: n.props.minDate,\n maxDate: n.props.maxDate,\n scrollableYearDropdown: n.props.scrollableYearDropdown,\n yearDropdownItemNumber: n.props.yearDropdownItemNumber\n });\n }), ue(ve(n), \"renderScrollMode\", function () {\n var e = n.state.dropdownVisible,\n t = [n.renderReadView(!e)];\n return e && t.unshift(n.renderDropdown()), t;\n }), ue(ve(n), \"onChange\", function (e) {\n n.toggleDropdown(), e !== n.props.year && n.props.onChange(e);\n }), ue(ve(n), \"toggleDropdown\", function (e) {\n n.setState({\n dropdownVisible: !n.state.dropdownVisible\n }, function () {\n n.props.adjustDateOnChange && n.handleYearChange(n.props.date, e);\n });\n }), ue(ve(n), \"handleYearChange\", function (e, t) {\n n.onSelect(e, t), n.setOpen();\n }), ue(ve(n), \"onSelect\", function (e, t) {\n n.props.onSelect && n.props.onSelect(e, t);\n }), ue(ve(n), \"setOpen\", function () {\n n.props.setOpen && n.props.setOpen(!0);\n }), n;\n }\n\n return me(r, e), de(r, [{\n key: \"render\",\n value: function value() {\n var e;\n\n switch (this.props.dropdownMode) {\n case \"scroll\":\n e = this.renderScrollMode();\n break;\n\n case \"select\":\n e = this.renderSelectMode();\n }\n\n return t.createElement(\"div\", {\n className: \"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--\".concat(this.props.dropdownMode)\n }, e);\n }\n }]), r;\n }(t.Component),\n st = se(function (e) {\n function r() {\n var e, n;\n ce(this, r);\n\n for (var a = arguments.length, o = new Array(a), s = 0; s < a; s++) {\n o[s] = arguments[s];\n }\n\n return ue(ve(n = we(this, (e = ye(r)).call.apply(e, [this].concat(o)))), \"renderOptions\", function () {\n return n.props.monthNames.map(function (e, r) {\n return t.createElement(\"div\", {\n className: n.props.month === r ? \"react-datepicker__month-option react-datepicker__month-option--selected_month\" : \"react-datepicker__month-option\",\n key: e,\n ref: e,\n onClick: n.onChange.bind(ve(n), r)\n }, n.props.month === r ? t.createElement(\"span\", {\n className: \"react-datepicker__month-option--selected\"\n }, \"✓\") : \"\", e);\n });\n }), ue(ve(n), \"onChange\", function (e) {\n return n.props.onChange(e);\n }), ue(ve(n), \"handleClickOutside\", function () {\n return n.props.onCancel();\n }), n;\n }\n\n return me(r, e), de(r, [{\n key: \"render\",\n value: function value() {\n return t.createElement(\"div\", {\n className: \"react-datepicker__month-dropdown\"\n }, this.renderOptions());\n }\n }]), r;\n }(t.Component)),\n it = function (e) {\n function r() {\n var e, n;\n ce(this, r);\n\n for (var a = arguments.length, o = new Array(a), s = 0; s < a; s++) {\n o[s] = arguments[s];\n }\n\n return ue(ve(n = we(this, (e = ye(r)).call.apply(e, [this].concat(o)))), \"state\", {\n dropdownVisible: !1\n }), ue(ve(n), \"renderSelectOptions\", function (e) {\n return e.map(function (e, r) {\n return t.createElement(\"option\", {\n key: r,\n value: r\n }, e);\n });\n }), ue(ve(n), \"renderSelectMode\", function (e) {\n return t.createElement(\"select\", {\n value: n.props.month,\n className: \"react-datepicker__month-select\",\n onChange: function onChange(e) {\n return n.onChange(e.target.value);\n }\n }, n.renderSelectOptions(e));\n }), ue(ve(n), \"renderReadView\", function (e, r) {\n return t.createElement(\"div\", {\n key: \"read\",\n style: {\n visibility: e ? \"visible\" : \"hidden\"\n },\n className: \"react-datepicker__month-read-view\",\n onClick: n.toggleDropdown\n }, t.createElement(\"span\", {\n className: \"react-datepicker__month-read-view--down-arrow\"\n }), t.createElement(\"span\", {\n className: \"react-datepicker__month-read-view--selected-month\"\n }, r[n.props.month]));\n }), ue(ve(n), \"renderDropdown\", function (e) {\n return t.createElement(st, {\n key: \"dropdown\",\n ref: \"options\",\n month: n.props.month,\n monthNames: e,\n onChange: n.onChange,\n onCancel: n.toggleDropdown\n });\n }), ue(ve(n), \"renderScrollMode\", function (e) {\n var t = n.state.dropdownVisible,\n r = [n.renderReadView(!t, e)];\n return t && r.unshift(n.renderDropdown(e)), r;\n }), ue(ve(n), \"onChange\", function (e) {\n n.toggleDropdown(), e !== n.props.month && n.props.onChange(e);\n }), ue(ve(n), \"toggleDropdown\", function () {\n return n.setState({\n dropdownVisible: !n.state.dropdownVisible\n });\n }), n;\n }\n\n return me(r, e), de(r, [{\n key: \"render\",\n value: function value() {\n var e,\n r = this,\n n = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].map(this.props.useShortMonthInDropdown ? function (e) {\n return Ae(e, r.props.locale);\n } : function (e) {\n return t = e, n = r.props.locale, Oe(T(_e(), t), \"LLLL\", n);\n var t, n;\n });\n\n switch (this.props.dropdownMode) {\n case \"scroll\":\n e = this.renderScrollMode(n);\n break;\n\n case \"select\":\n e = this.renderSelectMode(n);\n }\n\n return t.createElement(\"div\", {\n className: \"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--\".concat(this.props.dropdownMode)\n }, e);\n }\n }]), r;\n }(t.Component);\n\n function pt(e, t) {\n for (var r = [], n = Ne(e), a = Ne(t); !ee(n, a);) {\n r.push(_e(n)), n = d(n, 1);\n }\n\n return r;\n }\n\n var ct = se(function (e) {\n function r(e) {\n var n;\n return ce(this, r), ue(ve(n = we(this, ye(r).call(this, e))), \"renderOptions\", function () {\n return n.state.monthYearsList.map(function (e) {\n var r = P(e),\n a = xe(n.props.date, e) && Te(n.props.date, e);\n return t.createElement(\"div\", {\n className: a ? \"react-datepicker__month-year-option --selected_month-year\" : \"react-datepicker__month-year-option\",\n key: r,\n ref: r,\n onClick: n.onChange.bind(ve(n), r)\n }, a ? t.createElement(\"span\", {\n className: \"react-datepicker__month-year-option--selected\"\n }, \"✓\") : \"\", Oe(e, n.props.dateFormat));\n });\n }), ue(ve(n), \"onChange\", function (e) {\n return n.props.onChange(e);\n }), ue(ve(n), \"handleClickOutside\", function () {\n n.props.onCancel();\n }), n.state = {\n monthYearsList: pt(n.props.minDate, n.props.maxDate)\n }, n;\n }\n\n return me(r, e), de(r, [{\n key: \"render\",\n value: function value() {\n var e = n({\n \"react-datepicker__month-year-dropdown\": !0,\n \"react-datepicker__month-year-dropdown--scrollable\": this.props.scrollableMonthYearDropdown\n });\n return t.createElement(\"div\", {\n className: e\n }, this.renderOptions());\n }\n }]), r;\n }(t.Component)),\n lt = function (e) {\n function r() {\n var e, n;\n ce(this, r);\n\n for (var a = arguments.length, o = new Array(a), s = 0; s < a; s++) {\n o[s] = arguments[s];\n }\n\n return ue(ve(n = we(this, (e = ye(r)).call.apply(e, [this].concat(o)))), \"state\", {\n dropdownVisible: !1\n }), ue(ve(n), \"renderSelectOptions\", function () {\n for (var e = Ne(n.props.minDate), r = Ne(n.props.maxDate), a = []; !ee(e, r);) {\n var o = P(e);\n a.push(t.createElement(\"option\", {\n key: o,\n value: o\n }, Oe(e, n.props.dateFormat, n.props.locale))), e = d(e, 1);\n }\n\n return a;\n }), ue(ve(n), \"onSelectChange\", function (e) {\n n.onChange(e.target.value);\n }), ue(ve(n), \"renderSelectMode\", function () {\n return t.createElement(\"select\", {\n value: P(Ne(n.props.date)),\n className: \"react-datepicker__month-year-select\",\n onChange: n.onSelectChange\n }, n.renderSelectOptions());\n }), ue(ve(n), \"renderReadView\", function (e) {\n var r = Oe(n.props.date, n.props.dateFormat, n.props.locale);\n return t.createElement(\"div\", {\n key: \"read\",\n style: {\n visibility: e ? \"visible\" : \"hidden\"\n },\n className: \"react-datepicker__month-year-read-view\",\n onClick: function onClick(e) {\n return n.toggleDropdown(e);\n }\n }, t.createElement(\"span\", {\n className: \"react-datepicker__month-year-read-view--down-arrow\"\n }), t.createElement(\"span\", {\n className: \"react-datepicker__month-year-read-view--selected-month-year\"\n }, r));\n }), ue(ve(n), \"renderDropdown\", function () {\n return t.createElement(ct, {\n key: \"dropdown\",\n ref: \"options\",\n date: n.props.date,\n dateFormat: n.props.dateFormat,\n onChange: n.onChange,\n onCancel: n.toggleDropdown,\n minDate: n.props.minDate,\n maxDate: n.props.maxDate,\n scrollableMonthYearDropdown: n.props.scrollableMonthYearDropdown\n });\n }), ue(ve(n), \"renderScrollMode\", function () {\n var e = n.state.dropdownVisible,\n t = [n.renderReadView(!e)];\n return e && t.unshift(n.renderDropdown()), t;\n }), ue(ve(n), \"onChange\", function (e) {\n n.toggleDropdown();\n\n var t = _e(parseInt(e));\n\n xe(n.props.date, t) && Te(n.props.date, t) || n.props.onChange(t);\n }), ue(ve(n), \"toggleDropdown\", function () {\n return n.setState({\n dropdownVisible: !n.state.dropdownVisible\n });\n }), n;\n }\n\n return me(r, e), de(r, [{\n key: \"render\",\n value: function value() {\n var e;\n\n switch (this.props.dropdownMode) {\n case \"scroll\":\n e = this.renderScrollMode();\n break;\n\n case \"select\":\n e = this.renderSelectMode();\n }\n\n return t.createElement(\"div\", {\n className: \"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--\".concat(this.props.dropdownMode)\n }, e);\n }\n }]), r;\n }(t.Component),\n dt = function (e) {\n function r() {\n var e, a;\n ce(this, r);\n\n for (var o = arguments.length, s = new Array(o), i = 0; i < o; i++) {\n s[i] = arguments[i];\n }\n\n return ue(ve(a = we(this, (e = ye(r)).call.apply(e, [this].concat(s)))), \"dayEl\", t.createRef()), ue(ve(a), \"handleClick\", function (e) {\n !a.isDisabled() && a.props.onClick && a.props.onClick(e);\n }), ue(ve(a), \"handleMouseEnter\", function (e) {\n !a.isDisabled() && a.props.onMouseEnter && a.props.onMouseEnter(e);\n }), ue(ve(a), \"handleOnKeyDown\", function (e) {\n \" \" === e.key && (e.preventDefault(), e.key = \"Enter\"), a.props.handleOnKeyDown(e);\n }), ue(ve(a), \"isSameDay\", function (e) {\n return Ie(a.props.day, e);\n }), ue(ve(a), \"isKeyboardSelected\", function () {\n return !a.props.disabledKeyboardNavigation && !a.props.inline && !a.isSameDay(a.props.selected) && a.isSameDay(a.props.preSelection);\n }), ue(ve(a), \"isDisabled\", function () {\n return Be(a.props.day, a.props);\n }), ue(ve(a), \"isExcluded\", function () {\n return function (e) {\n var t = (arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}).excludeDates;\n return t && t.some(function (t) {\n return Ie(e, t);\n }) || !1;\n }(a.props.day, a.props);\n }), ue(ve(a), \"getHighLightedClass\", function (e) {\n var t = a.props,\n r = t.day,\n n = t.highlightDates;\n if (!n) return !1;\n var o = Oe(r, \"MM.dd.yyyy\");\n return n.get(o);\n }), ue(ve(a), \"isInRange\", function () {\n var e = a.props,\n t = e.day,\n r = e.startDate,\n n = e.endDate;\n return !(!r || !n) && qe(t, r, n);\n }), ue(ve(a), \"isInSelectingRange\", function () {\n var e = a.props,\n t = e.day,\n r = e.selectsStart,\n n = e.selectsEnd,\n o = e.selectingDate,\n s = e.startDate,\n i = e.endDate;\n return !(!r && !n || !o || a.isDisabled()) && (r && i && (te(o, i) || Le(o, i)) ? qe(t, o, i) : !(!n || !s || !ee(o, s) && !Le(o, s)) && qe(t, s, o));\n }), ue(ve(a), \"isSelectingRangeStart\", function () {\n if (!a.isInSelectingRange()) return !1;\n var e = a.props,\n t = e.day,\n r = e.selectingDate,\n n = e.startDate;\n return Ie(t, e.selectsStart ? r : n);\n }), ue(ve(a), \"isSelectingRangeEnd\", function () {\n if (!a.isInSelectingRange()) return !1;\n var e = a.props,\n t = e.day,\n r = e.selectingDate,\n n = e.endDate;\n return Ie(t, e.selectsEnd ? r : n);\n }), ue(ve(a), \"isRangeStart\", function () {\n var e = a.props,\n t = e.day,\n r = e.startDate,\n n = e.endDate;\n return !(!r || !n) && Ie(r, t);\n }), ue(ve(a), \"isRangeEnd\", function () {\n var e = a.props,\n t = e.day,\n r = e.startDate,\n n = e.endDate;\n return !(!r || !n) && Ie(n, t);\n }), ue(ve(a), \"isWeekend\", function () {\n var e = b(a.props.day);\n return 0 === e || 6 === e;\n }), ue(ve(a), \"isOutsideMonth\", function () {\n return void 0 !== a.props.month && a.props.month !== S(a.props.day);\n }), ue(ve(a), \"getClassNames\", function (e) {\n var t,\n r = a.props.dayClassName ? a.props.dayClassName(e) : void 0;\n return n(\"react-datepicker__day\", r, \"react-datepicker__day--\" + Oe(a.props.day, \"ddd\", t), {\n \"react-datepicker__day--disabled\": a.isDisabled(),\n \"react-datepicker__day--excluded\": a.isExcluded(),\n \"react-datepicker__day--selected\": a.isSameDay(a.props.selected),\n \"react-datepicker__day--keyboard-selected\": a.isKeyboardSelected(),\n \"react-datepicker__day--range-start\": a.isRangeStart(),\n \"react-datepicker__day--range-end\": a.isRangeEnd(),\n \"react-datepicker__day--in-range\": a.isInRange(),\n \"react-datepicker__day--in-selecting-range\": a.isInSelectingRange(),\n \"react-datepicker__day--selecting-range-start\": a.isSelectingRangeStart(),\n \"react-datepicker__day--selecting-range-end\": a.isSelectingRangeEnd(),\n \"react-datepicker__day--today\": a.isSameDay(_e()),\n \"react-datepicker__day--weekend\": a.isWeekend(),\n \"react-datepicker__day--outside-month\": a.isOutsideMonth()\n }, a.getHighLightedClass(\"react-datepicker__day--highlighted\"));\n }), ue(ve(a), \"getAriaLabel\", function () {\n var e = a.props,\n t = e.day,\n r = e.ariaLabelPrefixWhenEnabled,\n n = void 0 === r ? \"Choose\" : r,\n o = e.ariaLabelPrefixWhenDisabled,\n s = void 0 === o ? \"Not available\" : o,\n i = a.isDisabled() || a.isExcluded() ? s : n;\n return \"\".concat(i, \" \").concat(Oe(t, \"PPPP\"));\n }), ue(ve(a), \"getTabIndex\", function (e, t) {\n var r = e || a.props.selected,\n n = t || a.props.preSelection;\n return a.isKeyboardSelected() || a.isSameDay(r) && Ie(n, r) ? 0 : -1;\n }), ue(ve(a), \"render\", function () {\n return t.createElement(\"div\", {\n ref: a.dayEl,\n className: a.getClassNames(a.props.day),\n onKeyDown: a.handleOnKeyDown,\n onClick: a.handleClick,\n onMouseEnter: a.handleMouseEnter,\n tabIndex: a.getTabIndex(),\n \"aria-label\": a.getAriaLabel(),\n role: \"option\",\n \"aria-disabled\": a.isDisabled()\n }, a.props.renderDayContents ? a.props.renderDayContents(C(a.props.day), a.props.day) : C(a.props.day));\n }), a;\n }\n\n return me(r, e), de(r, [{\n key: \"componentDidMount\",\n value: function value() {\n 0 === this.getTabIndex() && this.isSameDay(this.props.preSelection) && (!document.activeElement || document.activeElement === document.body) && this.dayEl.current.focus();\n }\n }, {\n key: \"componentDidUpdate\",\n value: function value(e) {\n 0 === this.getTabIndex() && this.isSameDay(this.props.preSelection) !== this.isSameDay(e.preSelection) && !e.isInputFocused && this.dayEl.current.focus();\n }\n }]), r;\n }(t.Component),\n ut = function (e) {\n function r() {\n var e, t;\n ce(this, r);\n\n for (var n = arguments.length, a = new Array(n), o = 0; o < n; o++) {\n a[o] = arguments[o];\n }\n\n return ue(ve(t = we(this, (e = ye(r)).call.apply(e, [this].concat(a)))), \"handleClick\", function (e) {\n t.props.onClick && t.props.onClick(e);\n }), t;\n }\n\n return me(r, e), de(r, [{\n key: \"render\",\n value: function value() {\n var e = this.props,\n r = e.weekNumber,\n a = e.ariaLabelPrefix,\n o = void 0 === a ? \"week \" : a,\n s = {\n \"react-datepicker__week-number\": !0,\n \"react-datepicker__week-number--clickable\": !!e.onClick\n };\n return t.createElement(\"div\", {\n className: n(s),\n \"aria-label\": \"\".concat(o, \" \").concat(this.props.weekNumber),\n onClick: this.handleClick\n }, r);\n }\n }]), r;\n }(t.Component),\n ht = function (e) {\n function r() {\n var e, n;\n ce(this, r);\n\n for (var a = arguments.length, o = new Array(a), s = 0; s < a; s++) {\n o[s] = arguments[s];\n }\n\n return ue(ve(n = we(this, (e = ye(r)).call.apply(e, [this].concat(o)))), \"handleDayClick\", function (e, t) {\n n.props.onDayClick && n.props.onDayClick(e, t);\n }), ue(ve(n), \"handleDayMouseEnter\", function (e) {\n n.props.onDayMouseEnter && n.props.onDayMouseEnter(e);\n }), ue(ve(n), \"handleWeekClick\", function (e, t, r) {\n \"function\" == typeof n.props.onWeekSelect && n.props.onWeekSelect(e, t, r), n.props.shouldCloseOnSelect && n.props.setOpen(!1);\n }), ue(ve(n), \"formatWeekNumber\", function (e) {\n return n.props.formatWeekNumber ? n.props.formatWeekNumber(e) : function (e, t) {\n var r = t && We(t) || Fe() && We(Fe());\n return _(e, r ? {\n locale: r\n } : null);\n }(e, n.props.locale);\n }), ue(ve(n), \"renderDays\", function () {\n var e = Ee(n.props.day, n.props.locale),\n r = [],\n a = n.formatWeekNumber(e);\n\n if (n.props.showWeekNumber) {\n var o = n.props.onWeekSelect ? n.handleWeekClick.bind(ve(n), e, a) : void 0;\n r.push(t.createElement(ut, {\n key: \"W\",\n weekNumber: a,\n onClick: o,\n ariaLabelPrefix: n.props.ariaLabelPrefix\n }));\n }\n\n return r.concat([0, 1, 2, 3, 4, 5, 6].map(function (r) {\n var a = c(e, r);\n return t.createElement(dt, {\n ariaLabelPrefixWhenEnabled: n.props.chooseDayAriaLabelPrefix,\n ariaLabelPrefixWhenDisabled: n.props.disabledDayAriaLabelPrefix,\n key: a.valueOf(),\n day: a,\n month: n.props.month,\n onClick: n.handleDayClick.bind(ve(n), a),\n onMouseEnter: n.handleDayMouseEnter.bind(ve(n), a),\n minDate: n.props.minDate,\n maxDate: n.props.maxDate,\n excludeDates: n.props.excludeDates,\n includeDates: n.props.includeDates,\n inline: n.props.inline,\n highlightDates: n.props.highlightDates,\n selectingDate: n.props.selectingDate,\n filterDate: n.props.filterDate,\n preSelection: n.props.preSelection,\n selected: n.props.selected,\n selectsStart: n.props.selectsStart,\n selectsEnd: n.props.selectsEnd,\n startDate: n.props.startDate,\n endDate: n.props.endDate,\n dayClassName: n.props.dayClassName,\n renderDayContents: n.props.renderDayContents,\n disabledKeyboardNavigation: n.props.disabledKeyboardNavigation,\n handleOnKeyDown: n.props.handleOnKeyDown,\n isInputFocused: n.props.isInputFocused\n });\n }));\n }), n;\n }\n\n return me(r, e), de(r, [{\n key: \"render\",\n value: function value() {\n return t.createElement(\"div\", {\n className: \"react-datepicker__week\"\n }, this.renderDays());\n }\n }], [{\n key: \"defaultProps\",\n get: function get() {\n return {\n shouldCloseOnSelect: !0\n };\n }\n }]), r;\n }(t.Component),\n ft = 6,\n mt = function (e) {\n function r() {\n var e, a;\n ce(this, r);\n\n for (var o = arguments.length, s = new Array(o), i = 0; i < o; i++) {\n s[i] = arguments[i];\n }\n\n return ue(ve(a = we(this, (e = ye(r)).call.apply(e, [this].concat(s)))), \"handleDayClick\", function (e, t) {\n a.props.onDayClick && a.props.onDayClick(e, t, a.props.orderInDisplay);\n }), ue(ve(a), \"handleDayMouseEnter\", function (e) {\n a.props.onDayMouseEnter && a.props.onDayMouseEnter(e);\n }), ue(ve(a), \"handleMouseLeave\", function () {\n a.props.onMouseLeave && a.props.onMouseLeave();\n }), ue(ve(a), \"isRangeStartMonth\", function (e) {\n var t = a.props,\n r = t.day,\n n = t.startDate,\n o = t.endDate;\n return !(!n || !o) && Te(T(r, e), n);\n }), ue(ve(a), \"isRangeStartQuarter\", function (e) {\n var t = a.props,\n r = t.day,\n n = t.startDate,\n o = t.endDate;\n return !(!n || !o) && Ye(Y(r, e), n);\n }), ue(ve(a), \"isRangeEndMonth\", function (e) {\n var t = a.props,\n r = t.day,\n n = t.startDate,\n o = t.endDate;\n return !(!n || !o) && Te(T(r, e), o);\n }), ue(ve(a), \"isRangeEndQuarter\", function (e) {\n var t = a.props,\n r = t.day,\n n = t.startDate,\n o = t.endDate;\n return !(!n || !o) && Ye(Y(r, e), o);\n }), ue(ve(a), \"isWeekInMonth\", function (e) {\n var t = a.props.day,\n r = c(e, 6);\n return Te(e, t) || Te(r, t);\n }), ue(ve(a), \"renderWeeks\", function () {\n for (var e = [], r = a.props.fixedHeight, n = Ee(Ne(a.props.day), a.props.locale), o = 0, s = !1; e.push(t.createElement(ht, {\n ariaLabelPrefix: a.props.weekAriaLabelPrefix,\n chooseDayAriaLabelPrefix: a.props.chooseDayAriaLabelPrefix,\n disabledDayAriaLabelPrefix: a.props.disabledDayAriaLabelPrefix,\n key: o,\n day: n,\n month: S(a.props.day),\n onDayClick: a.handleDayClick,\n onDayMouseEnter: a.handleDayMouseEnter,\n onWeekSelect: a.props.onWeekSelect,\n formatWeekNumber: a.props.formatWeekNumber,\n locale: a.props.locale,\n minDate: a.props.minDate,\n maxDate: a.props.maxDate,\n excludeDates: a.props.excludeDates,\n includeDates: a.props.includeDates,\n inline: a.props.inline,\n highlightDates: a.props.highlightDates,\n selectingDate: a.props.selectingDate,\n filterDate: a.props.filterDate,\n preSelection: a.props.preSelection,\n selected: a.props.selected,\n selectsStart: a.props.selectsStart,\n selectsEnd: a.props.selectsEnd,\n showWeekNumber: a.props.showWeekNumbers,\n startDate: a.props.startDate,\n endDate: a.props.endDate,\n dayClassName: a.props.dayClassName,\n setOpen: a.props.setOpen,\n shouldCloseOnSelect: a.props.shouldCloseOnSelect,\n disabledKeyboardNavigation: a.props.disabledKeyboardNavigation,\n renderDayContents: a.props.renderDayContents,\n handleOnKeyDown: a.props.handleOnKeyDown,\n isInputFocused: a.props.isInputFocused\n })), !s;) {\n o++, n = l(n, 1);\n var i = r && o >= ft,\n p = !r && !a.isWeekInMonth(n);\n\n if (i || p) {\n if (!a.props.peekNextMonth) break;\n s = !0;\n }\n }\n\n return e;\n }), ue(ve(a), \"onMonthClick\", function (e, t) {\n a.handleDayClick(Ne(T(a.props.day, t)), e);\n }), ue(ve(a), \"onQuarterClick\", function (e, t) {\n var r;\n a.handleDayClick((r = Y(a.props.day, t), K(r)), e);\n }), ue(ve(a), \"getMonthClassNames\", function (e) {\n var t = a.props,\n r = t.day,\n o = t.startDate,\n s = t.endDate,\n i = t.selected,\n p = t.minDate,\n c = t.maxDate;\n return n(\"react-datepicker__month-text\", \"react-datepicker__month-\".concat(e), {\n \"react-datepicker__month--disabled\": (p || c) && Re(T(r, e), a.props),\n \"react-datepicker__month--selected\": S(r) === e && O(r) === O(i),\n \"react-datepicker__month--in-range\": je(o, s, e, r),\n \"react-datepicker__month--range-start\": a.isRangeStartMonth(e),\n \"react-datepicker__month--range-end\": a.isRangeEndMonth(e)\n });\n }), ue(ve(a), \"getQuarterClassNames\", function (e) {\n var t = a.props,\n r = t.day,\n o = t.startDate,\n s = t.endDate,\n i = t.selected,\n p = t.minDate,\n c = t.maxDate;\n return n(\"react-datepicker__quarter-text\", \"react-datepicker__quarter-\".concat(e), {\n \"react-datepicker__quarter--disabled\": (p || c) && He(Y(r, e), a.props),\n \"react-datepicker__quarter--selected\": M(r) === e && O(r) === O(i),\n \"react-datepicker__quarter--in-range\": Ke(o, s, e, r),\n \"react-datepicker__quarter--range-start\": a.isRangeStartQuarter(e),\n \"react-datepicker__quarter--range-end\": a.isRangeEndQuarter(e)\n });\n }), ue(ve(a), \"renderMonths\", function () {\n return [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9, 10, 11]].map(function (e, r) {\n return t.createElement(\"div\", {\n className: \"react-datepicker__month-wrapper\",\n key: r\n }, e.map(function (e, r) {\n return t.createElement(\"div\", {\n key: r,\n onClick: function onClick(t) {\n a.onMonthClick(t, e);\n },\n className: a.getMonthClassNames(e)\n }, Ae(e, a.props.locale));\n }));\n });\n }), ue(ve(a), \"renderQuarters\", function () {\n return t.createElement(\"div\", {\n className: \"react-datepicker__quarter-wrapper\"\n }, [1, 2, 3, 4].map(function (e, r) {\n return t.createElement(\"div\", {\n key: r,\n onClick: function onClick(t) {\n a.onQuarterClick(t, e);\n },\n className: a.getQuarterClassNames(e)\n }, (n = e, o = a.props.locale, Oe(Y(_e(), n), \"QQQ\", o)));\n var n, o;\n }));\n }), ue(ve(a), \"getClassNames\", function () {\n var e = a.props,\n t = e.selectingDate,\n r = e.selectsStart,\n o = e.selectsEnd,\n s = e.showMonthYearPicker,\n i = e.showQuarterYearPicker;\n return n(\"react-datepicker__month\", {\n \"react-datepicker__month--selecting-range\": t && (r || o)\n }, {\n \"react-datepicker__monthPicker\": s\n }, {\n \"react-datepicker__quarterPicker\": i\n });\n }), a;\n }\n\n return me(r, e), de(r, [{\n key: \"render\",\n value: function value() {\n var e = this.props,\n r = e.showMonthYearPicker,\n n = e.showQuarterYearPicker,\n a = e.day,\n o = e.ariaLabelPrefix,\n s = void 0 === o ? \"month \" : o;\n return t.createElement(\"div\", {\n className: this.getClassNames(),\n onMouseLeave: this.handleMouseLeave,\n role: \"listbox\",\n \"aria-label\": \"\".concat(s, \" \").concat(Oe(a, \"yyyy-MM\"))\n }, r ? this.renderMonths() : n ? this.renderQuarters() : this.renderWeeks());\n }\n }]), r;\n }(t.Component),\n yt = function (e) {\n function r() {\n var e, n;\n ce(this, r);\n\n for (var a = arguments.length, o = new Array(a), s = 0; s < a; s++) {\n o[s] = arguments[s];\n }\n\n return ue(ve(n = we(this, (e = ye(r)).call.apply(e, [this].concat(o)))), \"state\", {\n height: null\n }), ue(ve(n), \"handleClick\", function (e) {\n (n.props.minTime || n.props.maxTime) && Ue(e, n.props) || n.props.excludeTimes && Ve(e, n.props.excludeTimes) || n.props.includeTimes && !Ve(e, n.props.includeTimes) || n.props.onChange(e);\n }), ue(ve(n), \"liClasses\", function (e, t, r) {\n var a = [\"react-datepicker__time-list-item\", n.props.timeClassName ? n.props.timeClassName(e, t, r) : void 0];\n return n.props.selected && t === k(e) && r === g(e) && a.push(\"react-datepicker__time-list-item--selected\"), ((n.props.minTime || n.props.maxTime) && Ue(e, n.props) || n.props.excludeTimes && Ve(e, n.props.excludeTimes) || n.props.includeTimes && !Ve(e, n.props.includeTimes)) && a.push(\"react-datepicker__time-list-item--disabled\"), n.props.injectTimes && (60 * k(e) + g(e)) % n.props.intervals != 0 && a.push(\"react-datepicker__time-list-item--injected\"), a.join(\" \");\n }), ue(ve(n), \"renderTimes\", function () {\n for (var e, r = [], a = n.props.format ? n.props.format : \"p\", o = n.props.intervals, s = n.props.selected || n.props.openToDate || _e(), p = k(s), c = g(s), l = (e = _e(), R(e)), d = 1440 / o, u = n.props.injectTimes && n.props.injectTimes.sort(function (e, t) {\n return e - t;\n }), h = 0; h < d; h++) {\n var f = i(l, h * o);\n\n if (r.push(f), u) {\n var m = tt(l, f, h, o, u);\n r = r.concat(m);\n }\n }\n\n return r.map(function (e, r) {\n return t.createElement(\"li\", {\n key: r,\n onClick: n.handleClick.bind(ve(n), e),\n className: n.liClasses(e, p, c),\n ref: function ref(t) {\n p === k(e) && c >= g(e) && (n.centerLi = t);\n }\n }, Oe(e, a, n.props.locale));\n });\n }), n;\n }\n\n return me(r, e), de(r, [{\n key: \"componentDidMount\",\n value: function value() {\n this.list.scrollTop = r.calcCenterPosition(this.props.monthRef ? this.props.monthRef.clientHeight - this.header.clientHeight : this.list.clientHeight, this.centerLi), this.props.monthRef && this.header && this.setState({\n height: this.props.monthRef.clientHeight - this.header.clientHeight\n });\n }\n }, {\n key: \"render\",\n value: function value() {\n var e = this,\n r = this.state.height;\n return t.createElement(\"div\", {\n className: \"react-datepicker__time-container \".concat(this.props.todayButton ? \"react-datepicker__time-container--with-today-button\" : \"\")\n }, t.createElement(\"div\", {\n className: \"react-datepicker__header react-datepicker__header--time\",\n ref: function ref(t) {\n e.header = t;\n }\n }, t.createElement(\"div\", {\n className: \"react-datepicker-time__header\"\n }, this.props.timeCaption)), t.createElement(\"div\", {\n className: \"react-datepicker__time\"\n }, t.createElement(\"div\", {\n className: \"react-datepicker__time-box\"\n }, t.createElement(\"ul\", {\n className: \"react-datepicker__time-list\",\n ref: function ref(t) {\n e.list = t;\n },\n style: r ? {\n height: r\n } : {}\n }, this.renderTimes()))));\n }\n }], [{\n key: \"defaultProps\",\n get: function get() {\n return {\n intervals: 30,\n onTimeChange: function onTimeChange() {},\n todayButton: null,\n timeCaption: \"Time\"\n };\n }\n }]), r;\n }(t.Component);\n\n ue(yt, \"calcCenterPosition\", function (e, t) {\n return t.offsetTop - (e / 2 - t.clientHeight / 2);\n });\n\n var Dt = function (e) {\n function r(e) {\n var n;\n return ce(this, r), ue(ve(n = we(this, ye(r).call(this, e))), \"onTimeChange\", function (e) {\n n.setState({\n time: e\n });\n var t = new Date();\n t.setHours(e.split(\":\")[0]), t.setMinutes(e.split(\":\")[1]), n.props.onChange(t);\n }), ue(ve(n), \"renderTimeInput\", function () {\n var e = n.state.time,\n r = n.props,\n a = r.timeString,\n o = r.customTimeInput;\n return o ? t.cloneElement(o, {\n value: e,\n onChange: n.onTimeChange\n }) : t.createElement(\"input\", {\n type: \"time\",\n className: \"react-datepicker-time__input\",\n placeholder: \"Time\",\n name: \"time-input\",\n required: !0,\n value: e,\n onChange: function onChange(e) {\n n.onTimeChange(e.target.value || a);\n }\n });\n }), n.state = {\n time: n.props.timeString\n }, n;\n }\n\n return me(r, e), de(r, [{\n key: \"render\",\n value: function value() {\n return t.createElement(\"div\", {\n className: \"react-datepicker__input-time-container\"\n }, t.createElement(\"div\", {\n className: \"react-datepicker-time__caption\"\n }, this.props.timeInputLabel), t.createElement(\"div\", {\n className: \"react-datepicker-time__input-container\"\n }, t.createElement(\"div\", {\n className: \"react-datepicker-time__input\"\n }, this.renderTimeInput())));\n }\n }]), r;\n }(t.Component);\n\n function vt(e) {\n var r = e.className,\n n = e.children,\n a = e.showPopperArrow,\n o = e.arrowProps,\n s = void 0 === o ? {} : o;\n return t.createElement(\"div\", {\n className: r\n }, a && t.createElement(\"div\", he({\n className: \"react-datepicker__triangle\"\n }, s)), n);\n }\n\n var wt = [\"react-datepicker__year-select\", \"react-datepicker__month-select\", \"react-datepicker__month-year-select\"],\n gt = function gt() {\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},\n t = (e.className || \"\").split(/\\s+/);\n return wt.some(function (e) {\n return t.indexOf(e) >= 0;\n });\n },\n kt = function (e) {\n function r(e) {\n var n;\n return ce(this, r), ue(ve(n = we(this, ye(r).call(this, e))), \"handleClickOutside\", function (e) {\n n.props.onClickOutside(e);\n }), ue(ve(n), \"setClickOutsideRef\", function () {\n return n.containerRef.current;\n }), ue(ve(n), \"handleDropdownFocus\", function (e) {\n gt(e.target) && n.props.onDropdownFocus();\n }), ue(ve(n), \"getDateInView\", function () {\n var e = n.props,\n t = e.preSelection,\n r = e.selected,\n a = e.openToDate,\n o = Xe(n.props),\n s = Ze(n.props),\n i = _e(),\n p = a || r || t;\n\n return p || (o && te(i, o) ? o : s && ee(i, s) ? s : i);\n }), ue(ve(n), \"increaseMonth\", function () {\n n.setState(function (e) {\n var t = e.date;\n return {\n date: d(t, 1)\n };\n }, function () {\n return n.handleMonthChange(n.state.date);\n });\n }), ue(ve(n), \"decreaseMonth\", function () {\n n.setState(function (e) {\n var t = e.date;\n return {\n date: D(t, 1)\n };\n }, function () {\n return n.handleMonthChange(n.state.date);\n });\n }), ue(ve(n), \"handleDayClick\", function (e, t, r) {\n return n.props.onSelect(e, t, r);\n }), ue(ve(n), \"handleDayMouseEnter\", function (e) {\n n.setState({\n selectingDate: e\n }), n.props.onDayMouseEnter && n.props.onDayMouseEnter(e);\n }), ue(ve(n), \"handleMonthMouseLeave\", function () {\n n.setState({\n selectingDate: null\n }), n.props.onMonthMouseLeave && n.props.onMonthMouseLeave();\n }), ue(ve(n), \"handleYearChange\", function (e) {\n n.props.onYearChange && n.props.onYearChange(e);\n }), ue(ve(n), \"handleMonthChange\", function (e) {\n n.props.onMonthChange && n.props.onMonthChange(e), n.props.adjustDateOnChange && (n.props.onSelect && n.props.onSelect(e), n.props.setOpen && n.props.setOpen(!0));\n }), ue(ve(n), \"handleMonthYearChange\", function (e) {\n n.handleYearChange(e), n.handleMonthChange(e);\n }), ue(ve(n), \"changeYear\", function (e) {\n n.setState(function (t) {\n var r = t.date;\n return {\n date: I(r, e)\n };\n }, function () {\n return n.handleYearChange(n.state.date);\n });\n }), ue(ve(n), \"changeMonth\", function (e) {\n n.setState(function (t) {\n var r = t.date;\n return {\n date: T(r, e)\n };\n }, function () {\n return n.handleMonthChange(n.state.date);\n });\n }), ue(ve(n), \"changeMonthYear\", function (e) {\n n.setState(function (t) {\n var r = t.date;\n return {\n date: I(T(r, S(e)), O(e))\n };\n }, function () {\n return n.handleMonthYearChange(n.state.date);\n });\n }), ue(ve(n), \"header\", function () {\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : n.state.date,\n r = Ee(e, n.props.locale),\n a = [];\n return n.props.showWeekNumbers && a.push(t.createElement(\"div\", {\n key: \"W\",\n className: \"react-datepicker__day-name\"\n }, n.props.weekLabel || \"#\")), a.concat([0, 1, 2, 3, 4, 5, 6].map(function (e) {\n var a = c(r, e),\n o = n.formatWeekday(a, n.props.locale);\n return t.createElement(\"div\", {\n key: e,\n className: \"react-datepicker__day-name\"\n }, o);\n }));\n }), ue(ve(n), \"formatWeekday\", function (e, t) {\n return n.props.formatWeekDay ? function (e, t, r) {\n return t(Oe(e, \"EEEE\", r));\n }(e, n.props.formatWeekDay, t) : n.props.useWeekdaysShort ? function (e, t) {\n return Oe(e, \"EEE\", t);\n }(e, t) : function (e, t) {\n return Oe(e, \"EEEEEE\", t);\n }(e, t);\n }), ue(ve(n), \"decreaseYear\", function () {\n n.setState(function (e) {\n var t = e.date;\n return {\n date: v(t, 1)\n };\n }, function () {\n return n.handleYearChange(n.state.date);\n });\n }), ue(ve(n), \"renderPreviousButton\", function () {\n if (!n.props.renderCustomHeader) {\n var e = n.props.showMonthYearPicker ? Ge(n.state.date, n.props) : $e(n.state.date, n.props);\n\n if ((n.props.forceShowMonthNavigation || n.props.showDisabledMonthNavigation || !e) && !n.props.showTimeSelectOnly) {\n var r = [\"react-datepicker__navigation\", \"react-datepicker__navigation--previous\"],\n a = n.decreaseMonth;\n (n.props.showMonthYearPicker || n.props.showQuarterYearPicker) && (a = n.decreaseYear), e && n.props.showDisabledMonthNavigation && (r.push(\"react-datepicker__navigation--previous--disabled\"), a = null);\n var o = n.props.showMonthYearPicker || n.props.showQuarterYearPicker,\n s = n.props,\n i = s.previousMonthAriaLabel,\n p = void 0 === i ? \"Previous Month\" : i,\n c = s.previousYearAriaLabel,\n l = void 0 === c ? \"Previous Year\" : c;\n return t.createElement(\"button\", {\n type: \"button\",\n className: r.join(\" \"),\n onClick: a,\n \"aria-label\": o ? l : p\n }, o ? n.props.previousYearButtonLabel : n.props.previousMonthButtonLabel);\n }\n }\n }), ue(ve(n), \"increaseYear\", function () {\n n.setState(function (e) {\n var t = e.date;\n return {\n date: u(t, 1)\n };\n }, function () {\n return n.handleYearChange(n.state.date);\n });\n }), ue(ve(n), \"renderNextButton\", function () {\n if (!n.props.renderCustomHeader) {\n var e = n.props.showMonthYearPicker ? Je(n.state.date, n.props) : ze(n.state.date, n.props);\n\n if ((n.props.forceShowMonthNavigation || n.props.showDisabledMonthNavigation || !e) && !n.props.showTimeSelectOnly) {\n var r = [\"react-datepicker__navigation\", \"react-datepicker__navigation--next\"];\n n.props.showTimeSelect && r.push(\"react-datepicker__navigation--next--with-time\"), n.props.todayButton && r.push(\"react-datepicker__navigation--next--with-today-button\");\n var a = n.increaseMonth;\n (n.props.showMonthYearPicker || n.props.showQuarterYearPicker) && (a = n.increaseYear), e && n.props.showDisabledMonthNavigation && (r.push(\"react-datepicker__navigation--next--disabled\"), a = null);\n var o = n.props.showMonthYearPicker || n.props.showQuarterYearPicker,\n s = n.props,\n i = s.nextMonthAriaLabel,\n p = void 0 === i ? \"Next Month\" : i,\n c = s.nextYearAriaLabel,\n l = void 0 === c ? \"Next Year\" : c;\n return t.createElement(\"button\", {\n type: \"button\",\n className: r.join(\" \"),\n onClick: a,\n \"aria-label\": o ? l : p\n }, o ? n.props.nextYearButtonLabel : n.props.nextMonthButtonLabel);\n }\n }\n }), ue(ve(n), \"renderCurrentMonth\", function () {\n var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : n.state.date,\n r = [\"react-datepicker__current-month\"];\n return n.props.showYearDropdown && r.push(\"react-datepicker__current-month--hasYearDropdown\"), n.props.showMonthDropdown && r.push(\"react-datepicker__current-month--hasMonthDropdown\"), n.props.showMonthYearDropdown && r.push(\"react-datepicker__current-month--hasMonthYearDropdown\"), t.createElement(\"div\", {\n className: r.join(\" \")\n }, Oe(e, n.props.dateFormat, n.props.locale));\n }), ue(ve(n), \"renderYearDropdown\", function () {\n var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0];\n if (n.props.showYearDropdown && !e) return t.createElement(ot, {\n adjustDateOnChange: n.props.adjustDateOnChange,\n date: n.state.date,\n onSelect: n.props.onSelect,\n setOpen: n.props.setOpen,\n dropdownMode: n.props.dropdownMode,\n onChange: n.changeYear,\n minDate: n.props.minDate,\n maxDate: n.props.maxDate,\n year: O(n.state.date),\n scrollableYearDropdown: n.props.scrollableYearDropdown,\n yearDropdownItemNumber: n.props.yearDropdownItemNumber\n });\n }), ue(ve(n), \"renderMonthDropdown\", function () {\n var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0];\n if (n.props.showMonthDropdown && !e) return t.createElement(it, {\n dropdownMode: n.props.dropdownMode,\n locale: n.props.locale,\n onChange: n.changeMonth,\n month: S(n.state.date),\n useShortMonthInDropdown: n.props.useShortMonthInDropdown\n });\n }), ue(ve(n), \"renderMonthYearDropdown\", function () {\n var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0];\n if (n.props.showMonthYearDropdown && !e) return t.createElement(lt, {\n dropdownMode: n.props.dropdownMode,\n locale: n.props.locale,\n dateFormat: n.props.dateFormat,\n onChange: n.changeMonthYear,\n minDate: n.props.minDate,\n maxDate: n.props.maxDate,\n date: n.state.date,\n scrollableMonthYearDropdown: n.props.scrollableMonthYearDropdown\n });\n }), ue(ve(n), \"renderTodayButton\", function () {\n if (n.props.todayButton && !n.props.showTimeSelectOnly) return t.createElement(\"div\", {\n className: \"react-datepicker__today-button\",\n onClick: function onClick(e) {\n return n.props.onSelect(R(_e()), e);\n }\n }, n.props.todayButton);\n }), ue(ve(n), \"renderDefaultHeader\", function (e) {\n var r = e.monthDate,\n a = e.i;\n return t.createElement(\"div\", {\n className: \"react-datepicker__header\"\n }, n.renderCurrentMonth(r), t.createElement(\"div\", {\n className: \"react-datepicker__header__dropdown react-datepicker__header__dropdown--\".concat(n.props.dropdownMode),\n onFocus: n.handleDropdownFocus\n }, n.renderMonthDropdown(0 !== a), n.renderMonthYearDropdown(0 !== a), n.renderYearDropdown(0 !== a)), t.createElement(\"div\", {\n className: \"react-datepicker__day-names\"\n }, n.header(r)));\n }), ue(ve(n), \"renderCustomHeader\", function (e) {\n var r = e.monthDate;\n if (0 !== e.i) return null;\n var a = $e(n.state.date, n.props),\n o = ze(n.state.date, n.props),\n s = Ge(n.state.date, n.props),\n i = Je(n.state.date, n.props);\n return t.createElement(\"div\", {\n className: \"react-datepicker__header react-datepicker__header--custom\",\n onFocus: n.props.onDropdownFocus\n }, n.props.renderCustomHeader(function (e) {\n for (var t = 1; t < arguments.length; t++) {\n var r = null != arguments[t] ? arguments[t] : {};\n t % 2 ? fe(Object(r), !0).forEach(function (t) {\n ue(e, t, r[t]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : fe(Object(r)).forEach(function (t) {\n Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));\n });\n }\n\n return e;\n }({}, n.state, {\n changeMonth: n.changeMonth,\n changeYear: n.changeYear,\n decreaseMonth: n.decreaseMonth,\n increaseMonth: n.increaseMonth,\n decreaseYear: n.decreaseYear,\n increaseYear: n.increaseYear,\n prevMonthButtonDisabled: a,\n nextMonthButtonDisabled: o,\n prevYearButtonDisabled: s,\n nextYearButtonDisabled: i\n })), t.createElement(\"div\", {\n className: \"react-datepicker__day-names\"\n }, n.header(r)));\n }), ue(ve(n), \"renderYearHeader\", function () {\n return t.createElement(\"div\", {\n className: \"react-datepicker__header react-datepicker-year-header\"\n }, O(n.state.date));\n }), ue(ve(n), \"renderHeader\", function (e) {\n switch (!0) {\n case void 0 !== n.props.renderCustomHeader:\n return n.renderCustomHeader(e);\n\n case n.props.showMonthYearPicker || n.props.showQuarterYearPicker:\n return n.renderYearHeader(e);\n\n default:\n return n.renderDefaultHeader(e);\n }\n }), ue(ve(n), \"renderMonths\", function () {\n if (!n.props.showTimeSelectOnly) {\n for (var e = [], r = n.props.showPreviousMonths ? n.props.monthsShown - 1 : 0, a = D(n.state.date, r), o = 0; o < n.props.monthsShown; ++o) {\n var s = o - n.props.monthSelectedIn,\n i = d(a, s),\n p = \"month-\".concat(o);\n e.push(t.createElement(\"div\", {\n key: p,\n ref: function ref(e) {\n n.monthContainer = e;\n },\n className: \"react-datepicker__month-container\"\n }, n.renderHeader({\n monthDate: i,\n i: o\n }), t.createElement(mt, {\n chooseDayAriaLabelPrefix: n.props.chooseDayAriaLabelPrefix,\n disabledDayAriaLabelPrefix: n.props.disabledDayAriaLabelPrefix,\n weekAriaLabelPrefix: n.props.weekAriaLabelPrefix,\n onChange: n.changeMonthYear,\n day: i,\n dayClassName: n.props.dayClassName,\n monthClassName: n.props.monthClassName,\n onDayClick: n.handleDayClick,\n handleOnKeyDown: n.props.handleOnKeyDown,\n onDayMouseEnter: n.handleDayMouseEnter,\n onMouseLeave: n.handleMonthMouseLeave,\n onWeekSelect: n.props.onWeekSelect,\n orderInDisplay: o,\n formatWeekNumber: n.props.formatWeekNumber,\n locale: n.props.locale,\n minDate: n.props.minDate,\n maxDate: n.props.maxDate,\n excludeDates: n.props.excludeDates,\n highlightDates: n.props.highlightDates,\n selectingDate: n.state.selectingDate,\n includeDates: n.props.includeDates,\n inline: n.props.inline,\n fixedHeight: n.props.fixedHeight,\n filterDate: n.props.filterDate,\n preSelection: n.props.preSelection,\n selected: n.props.selected,\n selectsStart: n.props.selectsStart,\n selectsEnd: n.props.selectsEnd,\n showWeekNumbers: n.props.showWeekNumbers,\n startDate: n.props.startDate,\n endDate: n.props.endDate,\n peekNextMonth: n.props.peekNextMonth,\n setOpen: n.props.setOpen,\n shouldCloseOnSelect: n.props.shouldCloseOnSelect,\n renderDayContents: n.props.renderDayContents,\n disabledKeyboardNavigation: n.props.disabledKeyboardNavigation,\n showMonthYearPicker: n.props.showMonthYearPicker,\n showQuarterYearPicker: n.props.showQuarterYearPicker,\n isInputFocused: n.props.isInputFocused\n })));\n }\n\n return e;\n }\n }), ue(ve(n), \"renderTimeSection\", function () {\n if (n.props.showTimeSelect && (n.state.monthContainer || n.props.showTimeSelectOnly)) return t.createElement(yt, {\n selected: n.props.selected,\n openToDate: n.props.openToDate,\n onChange: n.props.onTimeChange,\n timeClassName: n.props.timeClassName,\n format: n.props.timeFormat,\n includeTimes: n.props.includeTimes,\n intervals: n.props.timeIntervals,\n minTime: n.props.minTime,\n maxTime: n.props.maxTime,\n excludeTimes: n.props.excludeTimes,\n timeCaption: n.props.timeCaption,\n todayButton: n.props.todayButton,\n showMonthDropdown: n.props.showMonthDropdown,\n showMonthYearDropdown: n.props.showMonthYearDropdown,\n showYearDropdown: n.props.showYearDropdown,\n withPortal: n.props.withPortal,\n monthRef: n.state.monthContainer,\n injectTimes: n.props.injectTimes,\n locale: n.props.locale\n });\n }), ue(ve(n), \"renderInputTimeSection\", function () {\n var e = new Date(n.props.selected),\n r = \"\".concat(rt(e.getHours()), \":\").concat(rt(e.getMinutes()));\n if (n.props.showTimeInput) return t.createElement(Dt, {\n timeString: r,\n timeInputLabel: n.props.timeInputLabel,\n onChange: n.props.onTimeChange,\n customTimeInput: n.props.customTimeInput\n });\n }), n.containerRef = t.createRef(), n.state = {\n date: n.getDateInView(),\n selectingDate: null,\n monthContainer: null\n }, n;\n }\n\n return me(r, e), de(r, null, [{\n key: \"defaultProps\",\n get: function get() {\n return {\n onDropdownFocus: function onDropdownFocus() {},\n monthsShown: 1,\n monthSelectedIn: 0,\n forceShowMonthNavigation: !1,\n timeCaption: \"Time\",\n previousYearButtonLabel: \"Previous Year\",\n nextYearButtonLabel: \"Next Year\",\n previousMonthButtonLabel: \"Previous Month\",\n nextMonthButtonLabel: \"Next Month\",\n customTimeInput: null\n };\n }\n }]), de(r, [{\n key: \"componentDidMount\",\n value: function value() {\n var e = this;\n this.props.showTimeSelect && (this.assignMonthContainer = void e.setState({\n monthContainer: e.monthContainer\n }));\n }\n }, {\n key: \"componentDidUpdate\",\n value: function value(e) {\n this.props.preSelection && !Ie(this.props.preSelection, e.preSelection) ? this.setState({\n date: this.props.preSelection\n }) : this.props.openToDate && !Ie(this.props.openToDate, e.openToDate) && this.setState({\n date: this.props.openToDate\n });\n }\n }, {\n key: \"render\",\n value: function value() {\n var e = this.props.container || vt;\n return t.createElement(\"div\", {\n ref: this.containerRef\n }, t.createElement(e, {\n className: n(\"react-datepicker\", this.props.className, {\n \"react-datepicker--time-only\": this.props.showTimeSelectOnly\n }),\n showPopperArrow: this.props.showPopperArrow\n }, this.renderPreviousButton(), this.renderNextButton(), this.renderMonths(), this.renderTodayButton(), this.renderTimeSection(), this.renderInputTimeSection(), this.props.children));\n }\n }]), r;\n }(t.Component),\n bt = \"[tabindex], a, button, input, select, textarea\",\n Ct = function Ct(e) {\n return !e.disabled && -1 !== e.tabIndex;\n },\n _t = function (e) {\n function r(e) {\n var n;\n return ce(this, r), ue(ve(n = we(this, ye(r).call(this, e))), \"getTabChildren\", function () {\n return Array.prototype.slice.call(n.tabLoopRef.current.querySelectorAll(bt), 1, -1).filter(Ct);\n }), ue(ve(n), \"handleFocusStart\", function (e) {\n var t = n.getTabChildren();\n t && t.length > 1 && t[t.length - 1].focus();\n }), ue(ve(n), \"handleFocusEnd\", function (e) {\n var t = n.getTabChildren();\n t && t.length > 1 && t[0].focus();\n }), n.tabLoopRef = t.createRef(), n;\n }\n\n return me(r, e), de(r, null, [{\n key: \"defaultProps\",\n get: function get() {\n return {\n enableTabLoop: !0\n };\n }\n }]), de(r, [{\n key: \"render\",\n value: function value() {\n return this.props.enableTabLoop ? t.createElement(\"div\", {\n className: \"react-datepicker__tab-loop\",\n ref: this.tabLoopRef\n }, t.createElement(\"div\", {\n className: \"react-datepicker__tab-loop__start\",\n tabIndex: \"0\",\n onFocus: this.handleFocusStart\n }), this.props.children, t.createElement(\"div\", {\n className: \"react-datepicker__tab-loop__end\",\n tabIndex: \"0\",\n onFocus: this.handleFocusEnd\n })) : this.props.children;\n }\n }]), r;\n }(t.Component),\n St = function (e) {\n function r() {\n return ce(this, r), we(this, ye(r).apply(this, arguments));\n }\n\n return me(r, e), de(r, [{\n key: \"render\",\n value: function value() {\n var e,\n r = this.props,\n a = r.className,\n o = r.wrapperClassName,\n s = r.hidePopper,\n i = r.popperComponent,\n p = r.popperModifiers,\n c = r.popperPlacement,\n l = r.popperProps,\n d = r.targetComponent,\n u = r.enableTabLoop,\n h = r.popperOnKeyDown;\n\n if (!s) {\n var f = n(\"react-datepicker-popper\", a);\n e = t.createElement(ie.Popper, he({\n modifiers: p,\n placement: c\n }, l), function (e) {\n var r = e.ref,\n n = e.style,\n a = e.placement,\n o = e.arrowProps;\n return t.createElement(_t, {\n enableTabLoop: u\n }, t.createElement(\"div\", he({\n ref: r,\n style: n\n }, {\n className: f,\n \"data-placement\": a,\n onKeyDown: h\n }), t.cloneElement(i, {\n arrowProps: o\n })));\n });\n }\n\n this.props.popperContainer && (e = t.createElement(this.props.popperContainer, {}, e));\n var m = n(\"react-datepicker-wrapper\", o);\n return t.createElement(ie.Manager, {\n className: \"react-datepicker-manager\"\n }, t.createElement(ie.Reference, null, function (e) {\n var r = e.ref;\n return t.createElement(\"div\", {\n ref: r,\n className: m\n }, d);\n }), e);\n }\n }], [{\n key: \"defaultProps\",\n get: function get() {\n return {\n hidePopper: !0,\n popperModifiers: {\n preventOverflow: {\n enabled: !0,\n escapeWithReference: !0,\n boundariesElement: \"viewport\"\n }\n },\n popperProps: {},\n popperPlacement: \"bottom-start\"\n };\n }\n }]), r;\n }(t.Component),\n Mt = \"react-datepicker-ignore-onclickoutside\",\n Ot = se(kt);\n\n var Pt = \"Date input not valid.\",\n Et = function (e) {\n function r(e) {\n var o;\n return ce(this, r), ue(ve(o = we(this, ye(r).call(this, e))), \"getPreSelection\", function () {\n return o.props.openToDate ? o.props.openToDate : o.props.selectsEnd && o.props.startDate ? o.props.startDate : o.props.selectsStart && o.props.endDate ? o.props.endDate : _e();\n }), ue(ve(o), \"calcInitialState\", function () {\n var e = o.getPreSelection(),\n t = Xe(o.props),\n r = Ze(o.props),\n n = t && te(e, t) ? t : r && ee(e, r) ? r : e;\n return {\n open: o.props.startOpen || !1,\n preventFocus: !1,\n preSelection: o.props.selected ? o.props.selected : n,\n highlightDates: et(o.props.highlightDates),\n focused: !1\n };\n }), ue(ve(o), \"clearPreventFocusTimeout\", function () {\n o.preventFocusTimeout && clearTimeout(o.preventFocusTimeout);\n }), ue(ve(o), \"setFocus\", function () {\n o.input && o.input.focus && o.input.focus();\n }), ue(ve(o), \"setBlur\", function () {\n o.input && o.input.blur && o.input.blur(), o.cancelFocusInput();\n }), ue(ve(o), \"setOpen\", function (e) {\n var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];\n o.setState({\n open: e,\n preSelection: e && o.state.open ? o.state.preSelection : o.calcInitialState().preSelection,\n lastPreSelectChange: xt\n }, function () {\n e || o.setState(function (e) {\n return {\n focused: !!t && e.focused\n };\n }, function () {\n !t && o.setBlur(), o.setState({\n inputValue: null\n });\n });\n });\n }), ue(ve(o), \"inputOk\", function () {\n return a(o.state.preSelection);\n }), ue(ve(o), \"isCalendarOpen\", function () {\n return void 0 === o.props.open ? o.state.open && !o.props.disabled && !o.props.readOnly : o.props.open;\n }), ue(ve(o), \"handleFocus\", function (e) {\n o.state.preventFocus || (o.props.onFocus(e), o.props.preventOpenOnFocus || o.props.readOnly || o.setOpen(!0)), o.setState({\n focused: !0\n });\n }), ue(ve(o), \"cancelFocusInput\", function () {\n clearTimeout(o.inputFocusTimeout), o.inputFocusTimeout = null;\n }), ue(ve(o), \"deferFocusInput\", function () {\n o.cancelFocusInput(), o.inputFocusTimeout = setTimeout(function () {\n return o.setFocus();\n }, 1);\n }), ue(ve(o), \"handleDropdownFocus\", function () {\n o.cancelFocusInput();\n }), ue(ve(o), \"handleBlur\", function (e) {\n (!o.state.open || o.props.withPortal || o.props.showTimeInput) && o.props.onBlur(e), o.setState({\n focused: !1\n });\n }), ue(ve(o), \"handleCalendarClickOutside\", function (e) {\n o.props.inline || o.setOpen(!1), o.props.onClickOutside(e), o.props.withPortal && e.preventDefault();\n }), ue(ve(o), \"handleChange\", function () {\n for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) {\n t[r] = arguments[r];\n }\n\n var n = t[0];\n\n if (!o.props.onChangeRaw || (o.props.onChangeRaw.apply(ve(o), t), \"function\" == typeof n.isDefaultPrevented && !n.isDefaultPrevented())) {\n o.setState({\n inputValue: n.target.value,\n lastPreSelectChange: Nt\n });\n var a = Se(n.target.value, o.props.dateFormat, o.props.locale, o.props.strictParsing);\n !a && n.target.value || o.setSelected(a, n, !0);\n }\n }), ue(ve(o), \"handleSelect\", function (e, t, r) {\n o.setState({\n preventFocus: !0\n }, function () {\n return o.preventFocusTimeout = setTimeout(function () {\n return o.setState({\n preventFocus: !1\n });\n }, 50), o.preventFocusTimeout;\n }), o.setSelected(e, t, void 0, r), !o.props.shouldCloseOnSelect || o.props.showTimeSelect ? o.setPreSelection(e) : o.props.inline || o.setOpen(!1);\n }), ue(ve(o), \"setSelected\", function (e, t, r, n) {\n var a = e;\n\n if (null === a || !Be(a, o.props)) {\n if (!Le(o.props.selected, a) || o.props.allowSameDay) {\n if (null !== a) {\n if (o.props.selected) {\n var s = o.props.selected;\n r && (s = _e(a)), a = Pe(a, {\n hour: k(s),\n minute: g(s),\n second: w(s)\n });\n }\n\n o.props.inline || o.setState({\n preSelection: a\n }), o.props.inline && o.props.monthsShown > 1 && !o.props.inlineFocusSelectedMonth && o.setState({\n monthSelectedIn: n\n });\n }\n\n o.props.onChange(a, t);\n }\n\n o.props.onSelect(a, t), r || o.setState({\n inputValue: null\n });\n }\n }), ue(ve(o), \"setPreSelection\", function (e) {\n var t = void 0 !== o.props.minDate,\n r = void 0 !== o.props.maxDate,\n n = !0;\n e && (t && r ? n = qe(e, o.props.minDate, o.props.maxDate) : t ? n = ee(e, o.props.minDate) : r && (n = te(e, o.props.maxDate))), n && o.setState({\n preSelection: e\n });\n }), ue(ve(o), \"handleTimeChange\", function (e) {\n var t = Pe(o.props.selected ? o.props.selected : o.getPreSelection(), {\n hour: k(e),\n minute: g(e)\n });\n o.setState({\n preSelection: t\n }), o.props.onChange(t), o.props.shouldCloseOnSelect && o.setOpen(!1), o.props.showTimeInput && o.setOpen(!0), o.setState({\n inputValue: null\n });\n }), ue(ve(o), \"onInputClick\", function () {\n o.props.disabled || o.props.readOnly || o.setOpen(!0), o.props.onInputClick();\n }), ue(ve(o), \"onInputKeyDown\", function (e) {\n o.props.onKeyDown(e);\n var t = e.key;\n\n if (o.state.open || o.props.inline || o.props.preventOpenOnFocus) {\n if (o.state.open) {\n if (\"ArrowDown\" === t || \"ArrowUp\" === t) {\n e.preventDefault();\n var r = o.calendar.componentNode && o.calendar.componentNode.querySelector('.react-datepicker__day[tabindex=\"0\"]');\n return void (r && r.focus());\n }\n\n var n = _e(o.state.preSelection);\n\n \"Enter\" === t ? (e.preventDefault(), o.inputOk() && o.state.lastPreSelectChange === xt ? (o.handleSelect(n, e), !o.props.shouldCloseOnSelect && o.setPreSelection(n)) : o.setOpen(!1)) : \"Escape\" === t && (e.preventDefault(), o.setOpen(!1)), o.inputOk() || o.props.onInputError({\n code: 1,\n msg: Pt\n });\n }\n } else \"ArrowDown\" !== t && \"ArrowUp\" !== t && \"Enter\" !== t || o.onInputClick();\n }), ue(ve(o), \"onDayKeyDown\", function (e) {\n o.props.onKeyDown(e);\n\n var t = e.key,\n r = _e(o.state.preSelection);\n\n if (\"Enter\" === t) e.preventDefault(), o.handleSelect(r, e), !o.props.shouldCloseOnSelect && o.setPreSelection(r);else if (\"Escape\" === t) e.preventDefault(), o.setOpen(!1), o.inputOk() || o.props.onInputError({\n code: 1,\n msg: Pt\n });else if (!o.props.disabledKeyboardNavigation) {\n var n;\n\n switch (t) {\n case \"ArrowLeft\":\n n = m(r, 1);\n break;\n\n case \"ArrowRight\":\n n = c(r, 1);\n break;\n\n case \"ArrowUp\":\n n = y(r, 1);\n break;\n\n case \"ArrowDown\":\n n = l(r, 1);\n break;\n\n case \"PageUp\":\n n = D(r, 1);\n break;\n\n case \"PageDown\":\n n = d(r, 1);\n break;\n\n case \"Home\":\n n = v(r, 1);\n break;\n\n case \"End\":\n n = u(r, 1);\n }\n\n if (!n) return void (o.props.onInputError && o.props.onInputError({\n code: 1,\n msg: Pt\n }));\n e.preventDefault(), o.setState({\n lastPreSelectChange: xt\n }), o.props.adjustDateOnChange && o.setSelected(n), o.setPreSelection(n);\n }\n }), ue(ve(o), \"onPopperKeyDown\", function (e) {\n \"Escape\" === e.key && (e.preventDefault(), o.setState({\n preventFocus: !0\n }, function () {\n o.setOpen(!1), setTimeout(o.setFocus);\n }));\n }), ue(ve(o), \"onClearClick\", function (e) {\n e && e.preventDefault && e.preventDefault(), o.props.onChange(null, e), o.setState({\n inputValue: null\n });\n }), ue(ve(o), \"clear\", function () {\n o.onClearClick();\n }), ue(ve(o), \"renderCalendar\", function () {\n return o.props.inline || o.isCalendarOpen() ? t.createElement(Ot, {\n ref: function ref(e) {\n o.calendar = e;\n },\n locale: o.props.locale,\n chooseDayAriaLabelPrefix: o.props.chooseDayAriaLabelPrefix,\n disabledDayAriaLabelPrefix: o.props.disabledDayAriaLabelPrefix,\n weekAriaLabelPrefix: o.props.weekAriaLabelPrefix,\n adjustDateOnChange: o.props.adjustDateOnChange,\n setOpen: o.setOpen,\n shouldCloseOnSelect: o.props.shouldCloseOnSelect,\n dateFormat: o.props.dateFormatCalendar,\n useWeekdaysShort: o.props.useWeekdaysShort,\n formatWeekDay: o.props.formatWeekDay,\n dropdownMode: o.props.dropdownMode,\n selected: o.props.selected,\n preSelection: o.state.preSelection,\n onSelect: o.handleSelect,\n onWeekSelect: o.props.onWeekSelect,\n openToDate: o.props.openToDate,\n minDate: o.props.minDate,\n maxDate: o.props.maxDate,\n selectsStart: o.props.selectsStart,\n selectsEnd: o.props.selectsEnd,\n startDate: o.props.startDate,\n endDate: o.props.endDate,\n excludeDates: o.props.excludeDates,\n filterDate: o.props.filterDate,\n onClickOutside: o.handleCalendarClickOutside,\n formatWeekNumber: o.props.formatWeekNumber,\n highlightDates: o.state.highlightDates,\n includeDates: o.props.includeDates,\n includeTimes: o.props.includeTimes,\n injectTimes: o.props.injectTimes,\n inline: o.props.inline,\n peekNextMonth: o.props.peekNextMonth,\n showMonthDropdown: o.props.showMonthDropdown,\n showPreviousMonths: o.props.showPreviousMonths,\n useShortMonthInDropdown: o.props.useShortMonthInDropdown,\n showMonthYearDropdown: o.props.showMonthYearDropdown,\n showWeekNumbers: o.props.showWeekNumbers,\n showYearDropdown: o.props.showYearDropdown,\n withPortal: o.props.withPortal,\n forceShowMonthNavigation: o.props.forceShowMonthNavigation,\n showDisabledMonthNavigation: o.props.showDisabledMonthNavigation,\n scrollableYearDropdown: o.props.scrollableYearDropdown,\n scrollableMonthYearDropdown: o.props.scrollableMonthYearDropdown,\n todayButton: o.props.todayButton,\n weekLabel: o.props.weekLabel,\n outsideClickIgnoreClass: Mt,\n fixedHeight: o.props.fixedHeight,\n monthsShown: o.props.monthsShown,\n monthSelectedIn: o.state.monthSelectedIn,\n onDropdownFocus: o.handleDropdownFocus,\n onMonthChange: o.props.onMonthChange,\n onYearChange: o.props.onYearChange,\n dayClassName: o.props.dayClassName,\n monthClassName: o.props.monthClassName,\n timeClassName: o.props.timeClassName,\n showTimeSelect: o.props.showTimeSelect,\n showTimeSelectOnly: o.props.showTimeSelectOnly,\n onTimeChange: o.handleTimeChange,\n timeFormat: o.props.timeFormat,\n timeIntervals: o.props.timeIntervals,\n minTime: o.props.minTime,\n maxTime: o.props.maxTime,\n excludeTimes: o.props.excludeTimes,\n timeCaption: o.props.timeCaption,\n className: o.props.calendarClassName,\n container: o.props.calendarContainer,\n yearDropdownItemNumber: o.props.yearDropdownItemNumber,\n previousMonthButtonLabel: o.props.previousMonthButtonLabel,\n nextMonthButtonLabel: o.props.nextMonthButtonLabel,\n previousYearButtonLabel: o.props.previousYearButtonLabel,\n nextYearButtonLabel: o.props.nextYearButtonLabel,\n timeInputLabel: o.props.timeInputLabel,\n disabledKeyboardNavigation: o.props.disabledKeyboardNavigation,\n renderCustomHeader: o.props.renderCustomHeader,\n popperProps: o.props.popperProps,\n renderDayContents: o.props.renderDayContents,\n onDayMouseEnter: o.props.onDayMouseEnter,\n onMonthMouseLeave: o.props.onMonthMouseLeave,\n showTimeInput: o.props.showTimeInput,\n showMonthYearPicker: o.props.showMonthYearPicker,\n showQuarterYearPicker: o.props.showQuarterYearPicker,\n showPopperArrow: o.props.showPopperArrow,\n excludeScrollbar: o.props.excludeScrollbar,\n handleOnKeyDown: o.onDayKeyDown,\n isInputFocused: o.state.focused,\n customTimeInput: o.props.customTimeInput\n }, o.props.children) : null;\n }), ue(ve(o), \"renderDateInput\", function () {\n var e,\n r,\n a,\n s,\n i,\n p = n(o.props.className, ue({}, Mt, o.state.open)),\n c = o.props.customInput || t.createElement(\"input\", {\n type: \"text\"\n }),\n l = o.props.customInputRef || \"ref\",\n d = \"string\" == typeof o.props.value ? o.props.value : \"string\" == typeof o.state.inputValue ? o.state.inputValue : (r = o.props.selected, a = o.props, s = a.dateFormat, i = a.locale, r && Oe(r, Array.isArray(s) ? s[0] : s, i) || \"\");\n return t.cloneElement(c, (ue(e = {}, l, function (e) {\n o.input = e;\n }), ue(e, \"value\", d), ue(e, \"onBlur\", o.handleBlur), ue(e, \"onChange\", o.handleChange), ue(e, \"onClick\", o.onInputClick), ue(e, \"onFocus\", o.handleFocus), ue(e, \"onKeyDown\", o.onInputKeyDown), ue(e, \"id\", o.props.id), ue(e, \"name\", o.props.name), ue(e, \"autoFocus\", o.props.autoFocus), ue(e, \"placeholder\", o.props.placeholderText), ue(e, \"disabled\", o.props.disabled), ue(e, \"autoComplete\", o.props.autoComplete), ue(e, \"className\", n(c.props.className, p)), ue(e, \"title\", o.props.title), ue(e, \"readOnly\", o.props.readOnly), ue(e, \"required\", o.props.required), ue(e, \"tabIndex\", o.props.tabIndex), ue(e, \"aria-labelledby\", o.props.ariaLabelledBy), e));\n }), ue(ve(o), \"renderClearButton\", function () {\n var e = o.props,\n r = e.isClearable,\n n = e.selected,\n a = e.clearButtonTitle,\n s = e.ariaLabelClose,\n i = void 0 === s ? \"Close\" : s;\n return r && null != n ? t.createElement(\"button\", {\n type: \"button\",\n className: \"react-datepicker__close-icon\",\n \"aria-label\": i,\n onClick: o.onClearClick,\n title: a,\n tabIndex: -1\n }) : null;\n }), o.state = o.calcInitialState(), o;\n }\n\n return me(r, e), de(r, null, [{\n key: \"defaultProps\",\n get: function get() {\n return {\n allowSameDay: !1,\n dateFormat: \"MM/dd/yyyy\",\n dateFormatCalendar: \"LLLL yyyy\",\n onChange: function onChange() {},\n disabled: !1,\n disabledKeyboardNavigation: !1,\n dropdownMode: \"scroll\",\n onFocus: function onFocus() {},\n onBlur: function onBlur() {},\n onKeyDown: function onKeyDown() {},\n onInputClick: function onInputClick() {},\n onSelect: function onSelect() {},\n onClickOutside: function onClickOutside() {},\n onMonthChange: function onMonthChange() {},\n onCalendarOpen: function onCalendarOpen() {},\n onCalendarClose: function onCalendarClose() {},\n preventOpenOnFocus: !1,\n onYearChange: function onYearChange() {},\n onInputError: function onInputError() {},\n monthsShown: 1,\n readOnly: !1,\n withPortal: !1,\n shouldCloseOnSelect: !0,\n showTimeSelect: !1,\n showTimeInput: !1,\n showPreviousMonths: !1,\n showMonthYearPicker: !1,\n showQuarterYearPicker: !1,\n strictParsing: !1,\n timeIntervals: 30,\n timeCaption: \"Time\",\n previousMonthButtonLabel: \"Previous Month\",\n nextMonthButtonLabel: \"Next Month\",\n previousYearButtonLabel: \"Previous Year\",\n nextYearButtonLabel: \"Next Year\",\n timeInputLabel: \"Time\",\n enableTabLoop: !0,\n renderDayContents: function renderDayContents(e) {\n return e;\n },\n inlineFocusSelectedMonth: !1,\n showPopperArrow: !0,\n excludeScrollbar: !0,\n customTimeInput: null\n };\n }\n }]), de(r, [{\n key: \"componentDidUpdate\",\n value: function value(e, t) {\n var r, n;\n e.inline && (r = e.selected, n = this.props.selected, r && n ? S(r) !== S(n) || O(r) !== O(n) : r !== n) && this.setPreSelection(this.props.selected), void 0 !== this.state.monthSelectedIn && e.monthsShown !== this.props.monthsShown && this.setState({\n monthSelectedIn: 0\n }), e.highlightDates !== this.props.highlightDates && this.setState({\n highlightDates: et(this.props.highlightDates)\n }), t.focused || Le(e.selected, this.props.selected) || this.setState({\n inputValue: null\n }), t.open !== this.state.open && (!1 === t.open && !0 === this.state.open && this.props.onCalendarOpen(), !0 === t.open && !1 === this.state.open && this.props.onCalendarClose());\n }\n }, {\n key: \"componentWillUnmount\",\n value: function value() {\n this.clearPreventFocusTimeout();\n }\n }, {\n key: \"render\",\n value: function value() {\n var e = this.renderCalendar();\n return this.props.inline && !this.props.withPortal ? e : this.props.withPortal ? t.createElement(\"div\", null, this.props.inline ? null : t.createElement(\"div\", {\n className: \"react-datepicker__input-container\"\n }, this.renderDateInput(), this.renderClearButton()), this.state.open || this.props.inline ? t.createElement(\"div\", {\n className: \"react-datepicker__portal\"\n }, e) : null) : t.createElement(St, {\n className: this.props.popperClassName,\n wrapperClassName: this.props.wrapperClassName,\n hidePopper: !this.isCalendarOpen(),\n popperModifiers: this.props.popperModifiers,\n targetComponent: t.createElement(\"div\", {\n className: \"react-datepicker__input-container\"\n }, this.renderDateInput(), this.renderClearButton()),\n popperContainer: this.props.popperContainer,\n popperComponent: e,\n popperPlacement: this.props.popperPlacement,\n popperProps: this.props.popperProps,\n popperOnKeyDown: this.onPopperKeyDown,\n enableTabLoop: this.props.enableTabLoop\n });\n }\n }]), r;\n }(t.Component),\n Nt = \"input\",\n xt = \"navigate\";\n\n e.CalendarContainer = vt, e.default = Et, e.getDefaultLocale = Fe, e.registerLocale = function (e, t) {\n var r = \"undefined\" != typeof window ? window : global;\n r.__localeData__ || (r.__localeData__ = {}), r.__localeData__[e] = t;\n }, e.setDefaultLocale = function (e) {\n (\"undefined\" != typeof window ? window : global).__localeId__ = e;\n }, Object.defineProperty(e, \"__esModule\", {\n value: !0\n });\n});","function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutPropertiesLoose;","var objectKeys = require('object-keys');\n\nvar isArguments = require('is-arguments');\n\nvar is = require('object-is');\n\nvar isRegex = require('is-regex');\n\nvar flags = require('regexp.prototype.flags');\n\nvar isDate = require('is-date-object');\n\nvar getTime = Date.prototype.getTime;\n\nfunction deepEqual(actual, expected, options) {\n var opts = options || {}; // 7.1. All identical values are equivalent, as determined by ===.\n\n if (opts.strict ? is(actual, expected) : actual === expected) {\n return true;\n } // 7.3. Other pairs that do not both pass typeof value == 'object', equivalence is determined by ==.\n\n\n if (!actual || !expected || typeof actual !== 'object' && typeof expected !== 'object') {\n return opts.strict ? is(actual, expected) : actual == expected;\n }\n /*\n * 7.4. For all other Object pairs, including Array objects, equivalence is\n * determined by having the same number of owned properties (as verified\n * with Object.prototype.hasOwnProperty.call), the same set of keys\n * (although not necessarily the same order), equivalent values for every\n * corresponding key, and an identical 'prototype' property. Note: this\n * accounts for both named and indexed properties on Arrays.\n */\n // eslint-disable-next-line no-use-before-define\n\n\n return objEquiv(actual, expected, opts);\n}\n\nfunction isUndefinedOrNull(value) {\n return value === null || value === undefined;\n}\n\nfunction isBuffer(x) {\n if (!x || typeof x !== 'object' || typeof x.length !== 'number') {\n return false;\n }\n\n if (typeof x.copy !== 'function' || typeof x.slice !== 'function') {\n return false;\n }\n\n if (x.length > 0 && typeof x[0] !== 'number') {\n return false;\n }\n\n return true;\n}\n\nfunction objEquiv(a, b, opts) {\n /* eslint max-statements: [2, 50] */\n var i, key;\n\n if (typeof a !== typeof b) {\n return false;\n }\n\n if (isUndefinedOrNull(a) || isUndefinedOrNull(b)) {\n return false;\n } // an identical 'prototype' property.\n\n\n if (a.prototype !== b.prototype) {\n return false;\n }\n\n if (isArguments(a) !== isArguments(b)) {\n return false;\n }\n\n var aIsRegex = isRegex(a);\n var bIsRegex = isRegex(b);\n\n if (aIsRegex !== bIsRegex) {\n return false;\n }\n\n if (aIsRegex || bIsRegex) {\n return a.source === b.source && flags(a) === flags(b);\n }\n\n if (isDate(a) && isDate(b)) {\n return getTime.call(a) === getTime.call(b);\n }\n\n var aIsBuffer = isBuffer(a);\n var bIsBuffer = isBuffer(b);\n\n if (aIsBuffer !== bIsBuffer) {\n return false;\n }\n\n if (aIsBuffer || bIsBuffer) {\n // && would work too, because both are true or both false here\n if (a.length !== b.length) {\n return false;\n }\n\n for (i = 0; i < a.length; i++) {\n if (a[i] !== b[i]) {\n return false;\n }\n }\n\n return true;\n }\n\n if (typeof a !== typeof b) {\n return false;\n }\n\n try {\n var ka = objectKeys(a);\n var kb = objectKeys(b);\n } catch (e) {\n // happens when one is a string literal and the other isn't\n return false;\n } // having the same number of owned properties (keys incorporates hasOwnProperty)\n\n\n if (ka.length !== kb.length) {\n return false;\n } // the same set of keys (although not necessarily the same order),\n\n\n ka.sort();\n kb.sort(); // ~~~cheap key test\n\n for (i = ka.length - 1; i >= 0; i--) {\n if (ka[i] != kb[i]) {\n return false;\n }\n } // equivalent values for every corresponding key, and ~~~possibly expensive deep test\n\n\n for (i = ka.length - 1; i >= 0; i--) {\n key = ka[i];\n\n if (!deepEqual(a[key], b[key], opts)) {\n return false;\n }\n }\n\n return true;\n}\n\nmodule.exports = deepEqual;","'use strict';\n\nmodule.exports = require('./Autosuggest').default;","exports.AgGridReact = require('./lib/agGridReact').AgGridReact;\nexports.AgGridColumn = require('./lib/shared/agGridColumn').AgGridColumn;\nexports.ChangeDetectionStrategyType = require('./lib/shared/changeDetectionService').ChangeDetectionStrategyType;\nexports.AgGridReactUi = require('./lib/reactUi/agGridReactUi').AgGridReactUi;","import arrayWithHoles from \"./arrayWithHoles\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit\";\nimport nonIterableRest from \"./nonIterableRest\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || nonIterableRest();\n}","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(arr, i) {\n if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) {\n return;\n }\n\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}","export default function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}","import defineProperty from \"./defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nexport default function _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}","/** @license React v16.13.0\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';\n\nvar l = require(\"object-assign\"),\n n = \"function\" === typeof Symbol && Symbol.for,\n p = n ? Symbol.for(\"react.element\") : 60103,\n q = n ? Symbol.for(\"react.portal\") : 60106,\n r = n ? Symbol.for(\"react.fragment\") : 60107,\n t = n ? Symbol.for(\"react.strict_mode\") : 60108,\n u = n ? Symbol.for(\"react.profiler\") : 60114,\n v = n ? Symbol.for(\"react.provider\") : 60109,\n w = n ? Symbol.for(\"react.context\") : 60110,\n x = n ? Symbol.for(\"react.forward_ref\") : 60112,\n y = n ? Symbol.for(\"react.suspense\") : 60113,\n z = n ? Symbol.for(\"react.memo\") : 60115,\n A = n ? Symbol.for(\"react.lazy\") : 60116,\n B = \"function\" === typeof Symbol && Symbol.iterator;\n\nfunction C(a) {\n for (var b = \"https://reactjs.org/docs/error-decoder.html?invariant=\" + a, c = 1; c < arguments.length; c++) {\n b += \"&args[]=\" + encodeURIComponent(arguments[c]);\n }\n\n return \"Minified React error #\" + a + \"; visit \" + b + \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\";\n}\n\nvar D = {\n isMounted: function isMounted() {\n return !1;\n },\n enqueueForceUpdate: function enqueueForceUpdate() {},\n enqueueReplaceState: function enqueueReplaceState() {},\n enqueueSetState: function enqueueSetState() {}\n},\n E = {};\n\nfunction F(a, b, c) {\n this.props = a;\n this.context = b;\n this.refs = E;\n this.updater = c || D;\n}\n\nF.prototype.isReactComponent = {};\n\nF.prototype.setState = function (a, b) {\n if (\"object\" !== typeof a && \"function\" !== typeof a && null != a) throw Error(C(85));\n this.updater.enqueueSetState(this, a, b, \"setState\");\n};\n\nF.prototype.forceUpdate = function (a) {\n this.updater.enqueueForceUpdate(this, a, \"forceUpdate\");\n};\n\nfunction G() {}\n\nG.prototype = F.prototype;\n\nfunction H(a, b, c) {\n this.props = a;\n this.context = b;\n this.refs = E;\n this.updater = c || D;\n}\n\nvar I = H.prototype = new G();\nI.constructor = H;\nl(I, F.prototype);\nI.isPureReactComponent = !0;\nvar J = {\n current: null\n},\n K = Object.prototype.hasOwnProperty,\n L = {\n key: !0,\n ref: !0,\n __self: !0,\n __source: !0\n};\n\nfunction M(a, b, c) {\n var e,\n d = {},\n g = null,\n k = null;\n if (null != b) for (e in void 0 !== b.ref && (k = b.ref), void 0 !== b.key && (g = \"\" + b.key), b) {\n K.call(b, e) && !L.hasOwnProperty(e) && (d[e] = b[e]);\n }\n var f = arguments.length - 2;\n if (1 === f) d.children = c;else if (1 < f) {\n for (var h = Array(f), m = 0; m < f; m++) {\n h[m] = arguments[m + 2];\n }\n\n d.children = h;\n }\n if (a && a.defaultProps) for (e in f = a.defaultProps, f) {\n void 0 === d[e] && (d[e] = f[e]);\n }\n return {\n $$typeof: p,\n type: a,\n key: g,\n ref: k,\n props: d,\n _owner: J.current\n };\n}\n\nfunction N(a, b) {\n return {\n $$typeof: p,\n type: a.type,\n key: b,\n ref: a.ref,\n props: a.props,\n _owner: a._owner\n };\n}\n\nfunction O(a) {\n return \"object\" === typeof a && null !== a && a.$$typeof === p;\n}\n\nfunction escape(a) {\n var b = {\n \"=\": \"=0\",\n \":\": \"=2\"\n };\n return \"$\" + (\"\" + a).replace(/[=:]/g, function (a) {\n return b[a];\n });\n}\n\nvar P = /\\/+/g,\n Q = [];\n\nfunction R(a, b, c, e) {\n if (Q.length) {\n var d = Q.pop();\n d.result = a;\n d.keyPrefix = b;\n d.func = c;\n d.context = e;\n d.count = 0;\n return d;\n }\n\n return {\n result: a,\n keyPrefix: b,\n func: c,\n context: e,\n count: 0\n };\n}\n\nfunction S(a) {\n a.result = null;\n a.keyPrefix = null;\n a.func = null;\n a.context = null;\n a.count = 0;\n 10 > Q.length && Q.push(a);\n}\n\nfunction T(a, b, c, e) {\n var d = typeof a;\n if (\"undefined\" === d || \"boolean\" === d) a = null;\n var g = !1;\n if (null === a) g = !0;else switch (d) {\n case \"string\":\n case \"number\":\n g = !0;\n break;\n\n case \"object\":\n switch (a.$$typeof) {\n case p:\n case q:\n g = !0;\n }\n\n }\n if (g) return c(e, a, \"\" === b ? \".\" + U(a, 0) : b), 1;\n g = 0;\n b = \"\" === b ? \".\" : b + \":\";\n if (Array.isArray(a)) for (var k = 0; k < a.length; k++) {\n d = a[k];\n var f = b + U(d, k);\n g += T(d, f, c, e);\n } else if (null === a || \"object\" !== typeof a ? f = null : (f = B && a[B] || a[\"@@iterator\"], f = \"function\" === typeof f ? f : null), \"function\" === typeof f) for (a = f.call(a), k = 0; !(d = a.next()).done;) {\n d = d.value, f = b + U(d, k++), g += T(d, f, c, e);\n } else if (\"object\" === d) throw c = \"\" + a, Error(C(31, \"[object Object]\" === c ? \"object with keys {\" + Object.keys(a).join(\", \") + \"}\" : c, \"\"));\n return g;\n}\n\nfunction V(a, b, c) {\n return null == a ? 0 : T(a, \"\", b, c);\n}\n\nfunction U(a, b) {\n return \"object\" === typeof a && null !== a && null != a.key ? escape(a.key) : b.toString(36);\n}\n\nfunction W(a, b) {\n a.func.call(a.context, b, a.count++);\n}\n\nfunction aa(a, b, c) {\n var e = a.result,\n d = a.keyPrefix;\n a = a.func.call(a.context, b, a.count++);\n Array.isArray(a) ? X(a, e, c, function (a) {\n return a;\n }) : null != a && (O(a) && (a = N(a, d + (!a.key || b && b.key === a.key ? \"\" : (\"\" + a.key).replace(P, \"$&/\") + \"/\") + c)), e.push(a));\n}\n\nfunction X(a, b, c, e, d) {\n var g = \"\";\n null != c && (g = (\"\" + c).replace(P, \"$&/\") + \"/\");\n b = R(b, g, e, d);\n V(a, aa, b);\n S(b);\n}\n\nvar Y = {\n current: null\n};\n\nfunction Z() {\n var a = Y.current;\n if (null === a) throw Error(C(321));\n return a;\n}\n\nvar ba = {\n ReactCurrentDispatcher: Y,\n ReactCurrentBatchConfig: {\n suspense: null\n },\n ReactCurrentOwner: J,\n IsSomeRendererActing: {\n current: !1\n },\n assign: l\n};\nexports.Children = {\n map: function map(a, b, c) {\n if (null == a) return a;\n var e = [];\n X(a, e, null, b, c);\n return e;\n },\n forEach: function forEach(a, b, c) {\n if (null == a) return a;\n b = R(null, null, b, c);\n V(a, W, b);\n S(b);\n },\n count: function count(a) {\n return V(a, function () {\n return null;\n }, null);\n },\n toArray: function toArray(a) {\n var b = [];\n X(a, b, null, function (a) {\n return a;\n });\n return b;\n },\n only: function only(a) {\n if (!O(a)) throw Error(C(143));\n return a;\n }\n};\nexports.Component = F;\nexports.Fragment = r;\nexports.Profiler = u;\nexports.PureComponent = H;\nexports.StrictMode = t;\nexports.Suspense = y;\nexports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ba;\n\nexports.cloneElement = function (a, b, c) {\n if (null === a || void 0 === a) throw Error(C(267, a));\n var e = l({}, a.props),\n d = a.key,\n g = a.ref,\n k = a._owner;\n\n if (null != b) {\n void 0 !== b.ref && (g = b.ref, k = J.current);\n void 0 !== b.key && (d = \"\" + b.key);\n if (a.type && a.type.defaultProps) var f = a.type.defaultProps;\n\n for (h in b) {\n K.call(b, h) && !L.hasOwnProperty(h) && (e[h] = void 0 === b[h] && void 0 !== f ? f[h] : b[h]);\n }\n }\n\n var h = arguments.length - 2;\n if (1 === h) e.children = c;else if (1 < h) {\n f = Array(h);\n\n for (var m = 0; m < h; m++) {\n f[m] = arguments[m + 2];\n }\n\n e.children = f;\n }\n return {\n $$typeof: p,\n type: a.type,\n key: d,\n ref: g,\n props: e,\n _owner: k\n };\n};\n\nexports.createContext = function (a, b) {\n void 0 === b && (b = null);\n a = {\n $$typeof: w,\n _calculateChangedBits: b,\n _currentValue: a,\n _currentValue2: a,\n _threadCount: 0,\n Provider: null,\n Consumer: null\n };\n a.Provider = {\n $$typeof: v,\n _context: a\n };\n return a.Consumer = a;\n};\n\nexports.createElement = M;\n\nexports.createFactory = function (a) {\n var b = M.bind(null, a);\n b.type = a;\n return b;\n};\n\nexports.createRef = function () {\n return {\n current: null\n };\n};\n\nexports.forwardRef = function (a) {\n return {\n $$typeof: x,\n render: a\n };\n};\n\nexports.isValidElement = O;\n\nexports.lazy = function (a) {\n return {\n $$typeof: A,\n _ctor: a,\n _status: -1,\n _result: null\n };\n};\n\nexports.memo = function (a, b) {\n return {\n $$typeof: z,\n type: a,\n compare: void 0 === b ? null : b\n };\n};\n\nexports.useCallback = function (a, b) {\n return Z().useCallback(a, b);\n};\n\nexports.useContext = function (a, b) {\n return Z().useContext(a, b);\n};\n\nexports.useDebugValue = function () {};\n\nexports.useEffect = function (a, b) {\n return Z().useEffect(a, b);\n};\n\nexports.useImperativeHandle = function (a, b, c) {\n return Z().useImperativeHandle(a, b, c);\n};\n\nexports.useLayoutEffect = function (a, b) {\n return Z().useLayoutEffect(a, b);\n};\n\nexports.useMemo = function (a, b) {\n return Z().useMemo(a, b);\n};\n\nexports.useReducer = function (a, b, c) {\n return Z().useReducer(a, b, c);\n};\n\nexports.useRef = function (a) {\n return Z().useRef(a);\n};\n\nexports.useState = function (a) {\n return Z().useState(a);\n};\n\nexports.version = \"16.13.0\";","/** @license React v16.13.0\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';\n\nvar aa = require(\"react\"),\n n = require(\"object-assign\"),\n r = require(\"scheduler\");\n\nfunction u(a) {\n for (var b = \"https://reactjs.org/docs/error-decoder.html?invariant=\" + a, c = 1; c < arguments.length; c++) {\n b += \"&args[]=\" + encodeURIComponent(arguments[c]);\n }\n\n return \"Minified React error #\" + a + \"; visit \" + b + \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\";\n}\n\nif (!aa) throw Error(u(227));\n\nfunction ba(a, b, c, d, e, f, g, h, k) {\n var l = Array.prototype.slice.call(arguments, 3);\n\n try {\n b.apply(c, l);\n } catch (m) {\n this.onError(m);\n }\n}\n\nvar da = !1,\n ea = null,\n fa = !1,\n ha = null,\n ia = {\n onError: function onError(a) {\n da = !0;\n ea = a;\n }\n};\n\nfunction ja(a, b, c, d, e, f, g, h, k) {\n da = !1;\n ea = null;\n ba.apply(ia, arguments);\n}\n\nfunction ka(a, b, c, d, e, f, g, h, k) {\n ja.apply(this, arguments);\n\n if (da) {\n if (da) {\n var l = ea;\n da = !1;\n ea = null;\n } else throw Error(u(198));\n\n fa || (fa = !0, ha = l);\n }\n}\n\nvar la = null,\n ma = null,\n na = null;\n\nfunction oa(a, b, c) {\n var d = a.type || \"unknown-event\";\n a.currentTarget = na(c);\n ka(d, b, void 0, a);\n a.currentTarget = null;\n}\n\nvar pa = aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\npa.hasOwnProperty(\"ReactCurrentDispatcher\") || (pa.ReactCurrentDispatcher = {\n current: null\n});\npa.hasOwnProperty(\"ReactCurrentBatchConfig\") || (pa.ReactCurrentBatchConfig = {\n suspense: null\n});\nvar qa = /^(.*)[\\\\\\/]/,\n v = \"function\" === typeof Symbol && Symbol.for,\n ra = v ? Symbol.for(\"react.element\") : 60103,\n sa = v ? Symbol.for(\"react.portal\") : 60106,\n ta = v ? Symbol.for(\"react.fragment\") : 60107,\n ua = v ? Symbol.for(\"react.strict_mode\") : 60108,\n va = v ? Symbol.for(\"react.profiler\") : 60114,\n wa = v ? Symbol.for(\"react.provider\") : 60109,\n xa = v ? Symbol.for(\"react.context\") : 60110,\n ya = v ? Symbol.for(\"react.concurrent_mode\") : 60111,\n za = v ? Symbol.for(\"react.forward_ref\") : 60112,\n Aa = v ? Symbol.for(\"react.suspense\") : 60113,\n Ba = v ? Symbol.for(\"react.suspense_list\") : 60120,\n Ca = v ? Symbol.for(\"react.memo\") : 60115,\n Da = v ? Symbol.for(\"react.lazy\") : 60116,\n Ea = v ? Symbol.for(\"react.block\") : 60121,\n Fa = \"function\" === typeof Symbol && Symbol.iterator;\n\nfunction Ga(a) {\n if (null === a || \"object\" !== typeof a) return null;\n a = Fa && a[Fa] || a[\"@@iterator\"];\n return \"function\" === typeof a ? a : null;\n}\n\nfunction Ha(a) {\n if (-1 === a._status) {\n a._status = 0;\n var b = a._ctor;\n b = b();\n a._result = b;\n b.then(function (b) {\n 0 === a._status && (b = b.default, a._status = 1, a._result = b);\n }, function (b) {\n 0 === a._status && (a._status = 2, a._result = b);\n });\n }\n}\n\nfunction Ia(a) {\n if (null == a) return null;\n if (\"function\" === typeof a) return a.displayName || a.name || null;\n if (\"string\" === typeof a) return a;\n\n switch (a) {\n case ta:\n return \"Fragment\";\n\n case sa:\n return \"Portal\";\n\n case va:\n return \"Profiler\";\n\n case ua:\n return \"StrictMode\";\n\n case Aa:\n return \"Suspense\";\n\n case Ba:\n return \"SuspenseList\";\n }\n\n if (\"object\" === typeof a) switch (a.$$typeof) {\n case xa:\n return \"Context.Consumer\";\n\n case wa:\n return \"Context.Provider\";\n\n case za:\n var b = a.render;\n b = b.displayName || b.name || \"\";\n return a.displayName || (\"\" !== b ? \"ForwardRef(\" + b + \")\" : \"ForwardRef\");\n\n case Ca:\n return Ia(a.type);\n\n case Ea:\n return Ia(a.render);\n\n case Da:\n if (a = 1 === a._status ? a._result : null) return Ia(a);\n }\n return null;\n}\n\nfunction Ja(a) {\n var b = \"\";\n\n do {\n a: switch (a.tag) {\n case 3:\n case 4:\n case 6:\n case 7:\n case 10:\n case 9:\n var c = \"\";\n break a;\n\n default:\n var d = a._debugOwner,\n e = a._debugSource,\n f = Ia(a.type);\n c = null;\n d && (c = Ia(d.type));\n d = f;\n f = \"\";\n e ? f = \" (at \" + e.fileName.replace(qa, \"\") + \":\" + e.lineNumber + \")\" : c && (f = \" (created by \" + c + \")\");\n c = \"\\n in \" + (d || \"Unknown\") + f;\n }\n\n b += c;\n a = a.return;\n } while (a);\n\n return b;\n}\n\nvar Ka = null,\n La = {};\n\nfunction Ma() {\n if (Ka) for (var a in La) {\n var b = La[a],\n c = Ka.indexOf(a);\n if (!(-1 < c)) throw Error(u(96, a));\n\n if (!Na[c]) {\n if (!b.extractEvents) throw Error(u(97, a));\n Na[c] = b;\n c = b.eventTypes;\n\n for (var d in c) {\n var e = void 0;\n var f = c[d],\n g = b,\n h = d;\n if (Oa.hasOwnProperty(h)) throw Error(u(99, h));\n Oa[h] = f;\n var k = f.phasedRegistrationNames;\n\n if (k) {\n for (e in k) {\n k.hasOwnProperty(e) && Pa(k[e], g, h);\n }\n\n e = !0;\n } else f.registrationName ? (Pa(f.registrationName, g, h), e = !0) : e = !1;\n\n if (!e) throw Error(u(98, d, a));\n }\n }\n }\n}\n\nfunction Pa(a, b, c) {\n if (Qa[a]) throw Error(u(100, a));\n Qa[a] = b;\n Ra[a] = b.eventTypes[c].dependencies;\n}\n\nvar Na = [],\n Oa = {},\n Qa = {},\n Ra = {};\n\nfunction Sa(a) {\n var b = !1,\n c;\n\n for (c in a) {\n if (a.hasOwnProperty(c)) {\n var d = a[c];\n\n if (!La.hasOwnProperty(c) || La[c] !== d) {\n if (La[c]) throw Error(u(102, c));\n La[c] = d;\n b = !0;\n }\n }\n }\n\n b && Ma();\n}\n\nvar Ta = !(\"undefined\" === typeof window || \"undefined\" === typeof window.document || \"undefined\" === typeof window.document.createElement),\n Ua = null,\n Va = null,\n Wa = null;\n\nfunction Xa(a) {\n if (a = ma(a)) {\n if (\"function\" !== typeof Ua) throw Error(u(280));\n var b = a.stateNode;\n b && (b = la(b), Ua(a.stateNode, a.type, b));\n }\n}\n\nfunction Ya(a) {\n Va ? Wa ? Wa.push(a) : Wa = [a] : Va = a;\n}\n\nfunction Za() {\n if (Va) {\n var a = Va,\n b = Wa;\n Wa = Va = null;\n Xa(a);\n if (b) for (a = 0; a < b.length; a++) {\n Xa(b[a]);\n }\n }\n}\n\nfunction $a(a, b) {\n return a(b);\n}\n\nfunction ab(a, b, c, d, e) {\n return a(b, c, d, e);\n}\n\nfunction bb() {}\n\nvar cb = $a,\n db = !1,\n eb = !1;\n\nfunction fb() {\n if (null !== Va || null !== Wa) bb(), Za();\n}\n\nfunction gb(a, b, c) {\n if (eb) return a(b, c);\n eb = !0;\n\n try {\n return cb(a, b, c);\n } finally {\n eb = !1, fb();\n }\n}\n\nvar hb = /^[: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]*$/,\n ib = Object.prototype.hasOwnProperty,\n jb = {},\n kb = {};\n\nfunction lb(a) {\n if (ib.call(kb, a)) return !0;\n if (ib.call(jb, a)) return !1;\n if (hb.test(a)) return kb[a] = !0;\n jb[a] = !0;\n return !1;\n}\n\nfunction mb(a, b, c, d) {\n if (null !== c && 0 === c.type) return !1;\n\n switch (typeof b) {\n case \"function\":\n case \"symbol\":\n return !0;\n\n case \"boolean\":\n if (d) return !1;\n if (null !== c) return !c.acceptsBooleans;\n a = a.toLowerCase().slice(0, 5);\n return \"data-\" !== a && \"aria-\" !== a;\n\n default:\n return !1;\n }\n}\n\nfunction nb(a, b, c, d) {\n if (null === b || \"undefined\" === typeof b || mb(a, b, c, d)) return !0;\n if (d) return !1;\n if (null !== c) switch (c.type) {\n case 3:\n return !b;\n\n case 4:\n return !1 === b;\n\n case 5:\n return isNaN(b);\n\n case 6:\n return isNaN(b) || 1 > b;\n }\n return !1;\n}\n\nfunction C(a, b, c, d, e, f) {\n this.acceptsBooleans = 2 === b || 3 === b || 4 === b;\n this.attributeName = d;\n this.attributeNamespace = e;\n this.mustUseProperty = c;\n this.propertyName = a;\n this.type = b;\n this.sanitizeURL = f;\n}\n\nvar E = {};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function (a) {\n E[a] = new C(a, 0, !1, a, null, !1);\n});\n[[\"acceptCharset\", \"accept-charset\"], [\"className\", \"class\"], [\"htmlFor\", \"for\"], [\"httpEquiv\", \"http-equiv\"]].forEach(function (a) {\n var b = a[0];\n E[b] = new C(b, 1, !1, a[1], null, !1);\n});\n[\"contentEditable\", \"draggable\", \"spellCheck\", \"value\"].forEach(function (a) {\n E[a] = new C(a, 2, !1, a.toLowerCase(), null, !1);\n});\n[\"autoReverse\", \"externalResourcesRequired\", \"focusable\", \"preserveAlpha\"].forEach(function (a) {\n E[a] = new C(a, 2, !1, a, null, !1);\n});\n\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function (a) {\n E[a] = new C(a, 3, !1, a.toLowerCase(), null, !1);\n});\n[\"checked\", \"multiple\", \"muted\", \"selected\"].forEach(function (a) {\n E[a] = new C(a, 3, !0, a, null, !1);\n});\n[\"capture\", \"download\"].forEach(function (a) {\n E[a] = new C(a, 4, !1, a, null, !1);\n});\n[\"cols\", \"rows\", \"size\", \"span\"].forEach(function (a) {\n E[a] = new C(a, 6, !1, a, null, !1);\n});\n[\"rowSpan\", \"start\"].forEach(function (a) {\n E[a] = new C(a, 5, !1, a.toLowerCase(), null, !1);\n});\nvar ob = /[\\-:]([a-z])/g;\n\nfunction pb(a) {\n return a[1].toUpperCase();\n}\n\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 (a) {\n var b = a.replace(ob, pb);\n E[b] = new C(b, 1, !1, a, null, !1);\n});\n\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function (a) {\n var b = a.replace(ob, pb);\n E[b] = new C(b, 1, !1, a, \"http://www.w3.org/1999/xlink\", !1);\n});\n[\"xml:base\", \"xml:lang\", \"xml:space\"].forEach(function (a) {\n var b = a.replace(ob, pb);\n E[b] = new C(b, 1, !1, a, \"http://www.w3.org/XML/1998/namespace\", !1);\n});\n[\"tabIndex\", \"crossOrigin\"].forEach(function (a) {\n E[a] = new C(a, 1, !1, a.toLowerCase(), null, !1);\n});\nE.xlinkHref = new C(\"xlinkHref\", 1, !1, \"xlink:href\", \"http://www.w3.org/1999/xlink\", !0);\n[\"src\", \"href\", \"action\", \"formAction\"].forEach(function (a) {\n E[a] = new C(a, 1, !1, a.toLowerCase(), null, !0);\n});\n\nfunction qb(a, b, c, d) {\n var e = E.hasOwnProperty(b) ? E[b] : null;\n var f = null !== e ? 0 === e.type : d ? !1 : !(2 < b.length) || \"o\" !== b[0] && \"O\" !== b[0] || \"n\" !== b[1] && \"N\" !== b[1] ? !1 : !0;\n f || (nb(b, c, e, d) && (c = null), d || null === e ? lb(b) && (null === c ? a.removeAttribute(b) : a.setAttribute(b, \"\" + c)) : e.mustUseProperty ? a[e.propertyName] = null === c ? 3 === e.type ? !1 : \"\" : c : (b = e.attributeName, d = e.attributeNamespace, null === c ? a.removeAttribute(b) : (e = e.type, c = 3 === e || 4 === e && !0 === c ? \"\" : \"\" + c, d ? a.setAttributeNS(d, b, c) : a.setAttribute(b, c))));\n}\n\nfunction rb(a) {\n switch (typeof a) {\n case \"boolean\":\n case \"number\":\n case \"object\":\n case \"string\":\n case \"undefined\":\n return a;\n\n default:\n return \"\";\n }\n}\n\nfunction sb(a) {\n var b = a.type;\n return (a = a.nodeName) && \"input\" === a.toLowerCase() && (\"checkbox\" === b || \"radio\" === b);\n}\n\nfunction tb(a) {\n var b = sb(a) ? \"checked\" : \"value\",\n c = Object.getOwnPropertyDescriptor(a.constructor.prototype, b),\n d = \"\" + a[b];\n\n if (!a.hasOwnProperty(b) && \"undefined\" !== typeof c && \"function\" === typeof c.get && \"function\" === typeof c.set) {\n var e = c.get,\n f = c.set;\n Object.defineProperty(a, b, {\n configurable: !0,\n get: function get() {\n return e.call(this);\n },\n set: function set(a) {\n d = \"\" + a;\n f.call(this, a);\n }\n });\n Object.defineProperty(a, b, {\n enumerable: c.enumerable\n });\n return {\n getValue: function getValue() {\n return d;\n },\n setValue: function setValue(a) {\n d = \"\" + a;\n },\n stopTracking: function stopTracking() {\n a._valueTracker = null;\n delete a[b];\n }\n };\n }\n}\n\nfunction xb(a) {\n a._valueTracker || (a._valueTracker = tb(a));\n}\n\nfunction yb(a) {\n if (!a) return !1;\n var b = a._valueTracker;\n if (!b) return !0;\n var c = b.getValue();\n var d = \"\";\n a && (d = sb(a) ? a.checked ? \"true\" : \"false\" : a.value);\n a = d;\n return a !== c ? (b.setValue(a), !0) : !1;\n}\n\nfunction zb(a, b) {\n var c = b.checked;\n return n({}, b, {\n defaultChecked: void 0,\n defaultValue: void 0,\n value: void 0,\n checked: null != c ? c : a._wrapperState.initialChecked\n });\n}\n\nfunction Ab(a, b) {\n var c = null == b.defaultValue ? \"\" : b.defaultValue,\n d = null != b.checked ? b.checked : b.defaultChecked;\n c = rb(null != b.value ? b.value : c);\n a._wrapperState = {\n initialChecked: d,\n initialValue: c,\n controlled: \"checkbox\" === b.type || \"radio\" === b.type ? null != b.checked : null != b.value\n };\n}\n\nfunction Bb(a, b) {\n b = b.checked;\n null != b && qb(a, \"checked\", b, !1);\n}\n\nfunction Cb(a, b) {\n Bb(a, b);\n var c = rb(b.value),\n d = b.type;\n if (null != c) {\n if (\"number\" === d) {\n if (0 === c && \"\" === a.value || a.value != c) a.value = \"\" + c;\n } else a.value !== \"\" + c && (a.value = \"\" + c);\n } else if (\"submit\" === d || \"reset\" === d) {\n a.removeAttribute(\"value\");\n return;\n }\n b.hasOwnProperty(\"value\") ? Db(a, b.type, c) : b.hasOwnProperty(\"defaultValue\") && Db(a, b.type, rb(b.defaultValue));\n null == b.checked && null != b.defaultChecked && (a.defaultChecked = !!b.defaultChecked);\n}\n\nfunction Eb(a, b, c) {\n if (b.hasOwnProperty(\"value\") || b.hasOwnProperty(\"defaultValue\")) {\n var d = b.type;\n if (!(\"submit\" !== d && \"reset\" !== d || void 0 !== b.value && null !== b.value)) return;\n b = \"\" + a._wrapperState.initialValue;\n c || b === a.value || (a.value = b);\n a.defaultValue = b;\n }\n\n c = a.name;\n \"\" !== c && (a.name = \"\");\n a.defaultChecked = !!a._wrapperState.initialChecked;\n \"\" !== c && (a.name = c);\n}\n\nfunction Db(a, b, c) {\n if (\"number\" !== b || a.ownerDocument.activeElement !== a) null == c ? a.defaultValue = \"\" + a._wrapperState.initialValue : a.defaultValue !== \"\" + c && (a.defaultValue = \"\" + c);\n}\n\nfunction Fb(a) {\n var b = \"\";\n aa.Children.forEach(a, function (a) {\n null != a && (b += a);\n });\n return b;\n}\n\nfunction Gb(a, b) {\n a = n({\n children: void 0\n }, b);\n if (b = Fb(b.children)) a.children = b;\n return a;\n}\n\nfunction Hb(a, b, c, d) {\n a = a.options;\n\n if (b) {\n b = {};\n\n for (var e = 0; e < c.length; e++) {\n b[\"$\" + c[e]] = !0;\n }\n\n for (c = 0; c < a.length; c++) {\n e = b.hasOwnProperty(\"$\" + a[c].value), a[c].selected !== e && (a[c].selected = e), e && d && (a[c].defaultSelected = !0);\n }\n } else {\n c = \"\" + rb(c);\n b = null;\n\n for (e = 0; e < a.length; e++) {\n if (a[e].value === c) {\n a[e].selected = !0;\n d && (a[e].defaultSelected = !0);\n return;\n }\n\n null !== b || a[e].disabled || (b = a[e]);\n }\n\n null !== b && (b.selected = !0);\n }\n}\n\nfunction Ib(a, b) {\n if (null != b.dangerouslySetInnerHTML) throw Error(u(91));\n return n({}, b, {\n value: void 0,\n defaultValue: void 0,\n children: \"\" + a._wrapperState.initialValue\n });\n}\n\nfunction Jb(a, b) {\n var c = b.value;\n\n if (null == c) {\n c = b.children;\n b = b.defaultValue;\n\n if (null != c) {\n if (null != b) throw Error(u(92));\n\n if (Array.isArray(c)) {\n if (!(1 >= c.length)) throw Error(u(93));\n c = c[0];\n }\n\n b = c;\n }\n\n null == b && (b = \"\");\n c = b;\n }\n\n a._wrapperState = {\n initialValue: rb(c)\n };\n}\n\nfunction Kb(a, b) {\n var c = rb(b.value),\n d = rb(b.defaultValue);\n null != c && (c = \"\" + c, c !== a.value && (a.value = c), null == b.defaultValue && a.defaultValue !== c && (a.defaultValue = c));\n null != d && (a.defaultValue = \"\" + d);\n}\n\nfunction Lb(a) {\n var b = a.textContent;\n b === a._wrapperState.initialValue && \"\" !== b && null !== b && (a.value = b);\n}\n\nvar Mb = {\n html: \"http://www.w3.org/1999/xhtml\",\n mathml: \"http://www.w3.org/1998/Math/MathML\",\n svg: \"http://www.w3.org/2000/svg\"\n};\n\nfunction Nb(a) {\n switch (a) {\n case \"svg\":\n return \"http://www.w3.org/2000/svg\";\n\n case \"math\":\n return \"http://www.w3.org/1998/Math/MathML\";\n\n default:\n return \"http://www.w3.org/1999/xhtml\";\n }\n}\n\nfunction Ob(a, b) {\n return null == a || \"http://www.w3.org/1999/xhtml\" === a ? Nb(b) : \"http://www.w3.org/2000/svg\" === a && \"foreignObject\" === b ? \"http://www.w3.org/1999/xhtml\" : a;\n}\n\nvar Pb,\n Qb = function (a) {\n return \"undefined\" !== typeof MSApp && MSApp.execUnsafeLocalFunction ? function (b, c, d, e) {\n MSApp.execUnsafeLocalFunction(function () {\n return a(b, c, d, e);\n });\n } : a;\n}(function (a, b) {\n if (a.namespaceURI !== Mb.svg || \"innerHTML\" in a) a.innerHTML = b;else {\n Pb = Pb || document.createElement(\"div\");\n Pb.innerHTML = \"\" + b.valueOf().toString() + \"\";\n\n for (b = Pb.firstChild; a.firstChild;) {\n a.removeChild(a.firstChild);\n }\n\n for (; b.firstChild;) {\n a.appendChild(b.firstChild);\n }\n }\n});\n\nfunction Rb(a, b) {\n if (b) {\n var c = a.firstChild;\n\n if (c && c === a.lastChild && 3 === c.nodeType) {\n c.nodeValue = b;\n return;\n }\n }\n\n a.textContent = b;\n}\n\nfunction Sb(a, b) {\n var c = {};\n c[a.toLowerCase()] = b.toLowerCase();\n c[\"Webkit\" + a] = \"webkit\" + b;\n c[\"Moz\" + a] = \"moz\" + b;\n return c;\n}\n\nvar Tb = {\n animationend: Sb(\"Animation\", \"AnimationEnd\"),\n animationiteration: Sb(\"Animation\", \"AnimationIteration\"),\n animationstart: Sb(\"Animation\", \"AnimationStart\"),\n transitionend: Sb(\"Transition\", \"TransitionEnd\")\n},\n Ub = {},\n Vb = {};\nTa && (Vb = document.createElement(\"div\").style, \"AnimationEvent\" in window || (delete Tb.animationend.animation, delete Tb.animationiteration.animation, delete Tb.animationstart.animation), \"TransitionEvent\" in window || delete Tb.transitionend.transition);\n\nfunction Wb(a) {\n if (Ub[a]) return Ub[a];\n if (!Tb[a]) return a;\n var b = Tb[a],\n c;\n\n for (c in b) {\n if (b.hasOwnProperty(c) && c in Vb) return Ub[a] = b[c];\n }\n\n return a;\n}\n\nvar Xb = Wb(\"animationend\"),\n Yb = Wb(\"animationiteration\"),\n Zb = Wb(\"animationstart\"),\n $b = Wb(\"transitionend\"),\n ac = \"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),\n bc = new (\"function\" === typeof WeakMap ? WeakMap : Map)();\n\nfunction cc(a) {\n var b = bc.get(a);\n void 0 === b && (b = new Map(), bc.set(a, b));\n return b;\n}\n\nfunction dc(a) {\n var b = a,\n c = a;\n if (a.alternate) for (; b.return;) {\n b = b.return;\n } else {\n a = b;\n\n do {\n b = a, 0 !== (b.effectTag & 1026) && (c = b.return), a = b.return;\n } while (a);\n }\n return 3 === b.tag ? c : null;\n}\n\nfunction ec(a) {\n if (13 === a.tag) {\n var b = a.memoizedState;\n null === b && (a = a.alternate, null !== a && (b = a.memoizedState));\n if (null !== b) return b.dehydrated;\n }\n\n return null;\n}\n\nfunction fc(a) {\n if (dc(a) !== a) throw Error(u(188));\n}\n\nfunction gc(a) {\n var b = a.alternate;\n\n if (!b) {\n b = dc(a);\n if (null === b) throw Error(u(188));\n return b !== a ? null : a;\n }\n\n for (var c = a, d = b;;) {\n var e = c.return;\n if (null === e) break;\n var f = e.alternate;\n\n if (null === f) {\n d = e.return;\n\n if (null !== d) {\n c = d;\n continue;\n }\n\n break;\n }\n\n if (e.child === f.child) {\n for (f = e.child; f;) {\n if (f === c) return fc(e), a;\n if (f === d) return fc(e), b;\n f = f.sibling;\n }\n\n throw Error(u(188));\n }\n\n if (c.return !== d.return) c = e, d = f;else {\n for (var g = !1, h = e.child; h;) {\n if (h === c) {\n g = !0;\n c = e;\n d = f;\n break;\n }\n\n if (h === d) {\n g = !0;\n d = e;\n c = f;\n break;\n }\n\n h = h.sibling;\n }\n\n if (!g) {\n for (h = f.child; h;) {\n if (h === c) {\n g = !0;\n c = f;\n d = e;\n break;\n }\n\n if (h === d) {\n g = !0;\n d = f;\n c = e;\n break;\n }\n\n h = h.sibling;\n }\n\n if (!g) throw Error(u(189));\n }\n }\n if (c.alternate !== d) throw Error(u(190));\n }\n\n if (3 !== c.tag) throw Error(u(188));\n return c.stateNode.current === c ? a : b;\n}\n\nfunction hc(a) {\n a = gc(a);\n if (!a) return null;\n\n for (var b = a;;) {\n if (5 === b.tag || 6 === b.tag) return b;\n if (b.child) b.child.return = b, b = b.child;else {\n if (b === a) break;\n\n for (; !b.sibling;) {\n if (!b.return || b.return === a) return null;\n b = b.return;\n }\n\n b.sibling.return = b.return;\n b = b.sibling;\n }\n }\n\n return null;\n}\n\nfunction ic(a, b) {\n if (null == b) throw Error(u(30));\n if (null == a) return b;\n\n if (Array.isArray(a)) {\n if (Array.isArray(b)) return a.push.apply(a, b), a;\n a.push(b);\n return a;\n }\n\n return Array.isArray(b) ? [a].concat(b) : [a, b];\n}\n\nfunction jc(a, b, c) {\n Array.isArray(a) ? a.forEach(b, c) : a && b.call(c, a);\n}\n\nvar kc = null;\n\nfunction lc(a) {\n if (a) {\n var b = a._dispatchListeners,\n c = a._dispatchInstances;\n if (Array.isArray(b)) for (var d = 0; d < b.length && !a.isPropagationStopped(); d++) {\n oa(a, b[d], c[d]);\n } else b && oa(a, b, c);\n a._dispatchListeners = null;\n a._dispatchInstances = null;\n a.isPersistent() || a.constructor.release(a);\n }\n}\n\nfunction mc(a) {\n null !== a && (kc = ic(kc, a));\n a = kc;\n kc = null;\n\n if (a) {\n jc(a, lc);\n if (kc) throw Error(u(95));\n if (fa) throw a = ha, fa = !1, ha = null, a;\n }\n}\n\nfunction nc(a) {\n a = a.target || a.srcElement || window;\n a.correspondingUseElement && (a = a.correspondingUseElement);\n return 3 === a.nodeType ? a.parentNode : a;\n}\n\nfunction oc(a) {\n if (!Ta) return !1;\n a = \"on\" + a;\n var b = a in document;\n b || (b = document.createElement(\"div\"), b.setAttribute(a, \"return;\"), b = \"function\" === typeof b[a]);\n return b;\n}\n\nvar pc = [];\n\nfunction qc(a) {\n a.topLevelType = null;\n a.nativeEvent = null;\n a.targetInst = null;\n a.ancestors.length = 0;\n 10 > pc.length && pc.push(a);\n}\n\nfunction rc(a, b, c, d) {\n if (pc.length) {\n var e = pc.pop();\n e.topLevelType = a;\n e.eventSystemFlags = d;\n e.nativeEvent = b;\n e.targetInst = c;\n return e;\n }\n\n return {\n topLevelType: a,\n eventSystemFlags: d,\n nativeEvent: b,\n targetInst: c,\n ancestors: []\n };\n}\n\nfunction sc(a) {\n var b = a.targetInst,\n c = b;\n\n do {\n if (!c) {\n a.ancestors.push(c);\n break;\n }\n\n var d = c;\n if (3 === d.tag) d = d.stateNode.containerInfo;else {\n for (; d.return;) {\n d = d.return;\n }\n\n d = 3 !== d.tag ? null : d.stateNode.containerInfo;\n }\n if (!d) break;\n b = c.tag;\n 5 !== b && 6 !== b || a.ancestors.push(c);\n c = tc(d);\n } while (c);\n\n for (c = 0; c < a.ancestors.length; c++) {\n b = a.ancestors[c];\n var e = nc(a.nativeEvent);\n d = a.topLevelType;\n var f = a.nativeEvent,\n g = a.eventSystemFlags;\n 0 === c && (g |= 64);\n\n for (var h = null, k = 0; k < Na.length; k++) {\n var l = Na[k];\n l && (l = l.extractEvents(d, b, f, e, g)) && (h = ic(h, l));\n }\n\n mc(h);\n }\n}\n\nfunction uc(a, b, c) {\n if (!c.has(a)) {\n switch (a) {\n case \"scroll\":\n vc(b, \"scroll\", !0);\n break;\n\n case \"focus\":\n case \"blur\":\n vc(b, \"focus\", !0);\n vc(b, \"blur\", !0);\n c.set(\"blur\", null);\n c.set(\"focus\", null);\n break;\n\n case \"cancel\":\n case \"close\":\n oc(a) && vc(b, a, !0);\n break;\n\n case \"invalid\":\n case \"submit\":\n case \"reset\":\n break;\n\n default:\n -1 === ac.indexOf(a) && F(a, b);\n }\n\n c.set(a, null);\n }\n}\n\nvar wc,\n xc,\n yc,\n zc = !1,\n Ac = [],\n Bc = null,\n Cc = null,\n Dc = null,\n Ec = new Map(),\n Fc = new Map(),\n Gc = [],\n Hc = \"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit\".split(\" \"),\n Ic = \"focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture\".split(\" \");\n\nfunction Jc(a, b) {\n var c = cc(b);\n Hc.forEach(function (a) {\n uc(a, b, c);\n });\n Ic.forEach(function (a) {\n uc(a, b, c);\n });\n}\n\nfunction Kc(a, b, c, d, e) {\n return {\n blockedOn: a,\n topLevelType: b,\n eventSystemFlags: c | 32,\n nativeEvent: e,\n container: d\n };\n}\n\nfunction Lc(a, b) {\n switch (a) {\n case \"focus\":\n case \"blur\":\n Bc = null;\n break;\n\n case \"dragenter\":\n case \"dragleave\":\n Cc = null;\n break;\n\n case \"mouseover\":\n case \"mouseout\":\n Dc = null;\n break;\n\n case \"pointerover\":\n case \"pointerout\":\n Ec.delete(b.pointerId);\n break;\n\n case \"gotpointercapture\":\n case \"lostpointercapture\":\n Fc.delete(b.pointerId);\n }\n}\n\nfunction Mc(a, b, c, d, e, f) {\n if (null === a || a.nativeEvent !== f) return a = Kc(b, c, d, e, f), null !== b && (b = Nc(b), null !== b && xc(b)), a;\n a.eventSystemFlags |= d;\n return a;\n}\n\nfunction Oc(a, b, c, d, e) {\n switch (b) {\n case \"focus\":\n return Bc = Mc(Bc, a, b, c, d, e), !0;\n\n case \"dragenter\":\n return Cc = Mc(Cc, a, b, c, d, e), !0;\n\n case \"mouseover\":\n return Dc = Mc(Dc, a, b, c, d, e), !0;\n\n case \"pointerover\":\n var f = e.pointerId;\n Ec.set(f, Mc(Ec.get(f) || null, a, b, c, d, e));\n return !0;\n\n case \"gotpointercapture\":\n return f = e.pointerId, Fc.set(f, Mc(Fc.get(f) || null, a, b, c, d, e)), !0;\n }\n\n return !1;\n}\n\nfunction Pc(a) {\n var b = tc(a.target);\n\n if (null !== b) {\n var c = dc(b);\n if (null !== c) if (b = c.tag, 13 === b) {\n if (b = ec(c), null !== b) {\n a.blockedOn = b;\n r.unstable_runWithPriority(a.priority, function () {\n yc(c);\n });\n return;\n }\n } else if (3 === b && c.stateNode.hydrate) {\n a.blockedOn = 3 === c.tag ? c.stateNode.containerInfo : null;\n return;\n }\n }\n\n a.blockedOn = null;\n}\n\nfunction Qc(a) {\n if (null !== a.blockedOn) return !1;\n var b = Rc(a.topLevelType, a.eventSystemFlags, a.container, a.nativeEvent);\n\n if (null !== b) {\n var c = Nc(b);\n null !== c && xc(c);\n a.blockedOn = b;\n return !1;\n }\n\n return !0;\n}\n\nfunction Sc(a, b, c) {\n Qc(a) && c.delete(b);\n}\n\nfunction Tc() {\n for (zc = !1; 0 < Ac.length;) {\n var a = Ac[0];\n\n if (null !== a.blockedOn) {\n a = Nc(a.blockedOn);\n null !== a && wc(a);\n break;\n }\n\n var b = Rc(a.topLevelType, a.eventSystemFlags, a.container, a.nativeEvent);\n null !== b ? a.blockedOn = b : Ac.shift();\n }\n\n null !== Bc && Qc(Bc) && (Bc = null);\n null !== Cc && Qc(Cc) && (Cc = null);\n null !== Dc && Qc(Dc) && (Dc = null);\n Ec.forEach(Sc);\n Fc.forEach(Sc);\n}\n\nfunction Uc(a, b) {\n a.blockedOn === b && (a.blockedOn = null, zc || (zc = !0, r.unstable_scheduleCallback(r.unstable_NormalPriority, Tc)));\n}\n\nfunction Vc(a) {\n function b(b) {\n return Uc(b, a);\n }\n\n if (0 < Ac.length) {\n Uc(Ac[0], a);\n\n for (var c = 1; c < Ac.length; c++) {\n var d = Ac[c];\n d.blockedOn === a && (d.blockedOn = null);\n }\n }\n\n null !== Bc && Uc(Bc, a);\n null !== Cc && Uc(Cc, a);\n null !== Dc && Uc(Dc, a);\n Ec.forEach(b);\n Fc.forEach(b);\n\n for (c = 0; c < Gc.length; c++) {\n d = Gc[c], d.blockedOn === a && (d.blockedOn = null);\n }\n\n for (; 0 < Gc.length && (c = Gc[0], null === c.blockedOn);) {\n Pc(c), null === c.blockedOn && Gc.shift();\n }\n}\n\nvar Wc = {},\n Yc = new Map(),\n Zc = new Map(),\n $c = [\"abort\", \"abort\", Xb, \"animationEnd\", Yb, \"animationIteration\", Zb, \"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\", $b, \"transitionEnd\", \"waiting\", \"waiting\"];\n\nfunction ad(a, b) {\n for (var c = 0; c < a.length; c += 2) {\n var d = a[c],\n e = a[c + 1],\n f = \"on\" + (e[0].toUpperCase() + e.slice(1));\n f = {\n phasedRegistrationNames: {\n bubbled: f,\n captured: f + \"Capture\"\n },\n dependencies: [d],\n eventPriority: b\n };\n Zc.set(d, b);\n Yc.set(d, f);\n Wc[e] = f;\n }\n}\n\nad(\"blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus 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);\nad(\"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);\nad($c, 2);\n\nfor (var bd = \"change selectionchange textInput compositionstart compositionend compositionupdate\".split(\" \"), cd = 0; cd < bd.length; cd++) {\n Zc.set(bd[cd], 0);\n}\n\nvar dd = r.unstable_UserBlockingPriority,\n ed = r.unstable_runWithPriority,\n fd = !0;\n\nfunction F(a, b) {\n vc(b, a, !1);\n}\n\nfunction vc(a, b, c) {\n var d = Zc.get(b);\n\n switch (void 0 === d ? 2 : d) {\n case 0:\n d = gd.bind(null, b, 1, a);\n break;\n\n case 1:\n d = hd.bind(null, b, 1, a);\n break;\n\n default:\n d = id.bind(null, b, 1, a);\n }\n\n c ? a.addEventListener(b, d, !0) : a.addEventListener(b, d, !1);\n}\n\nfunction gd(a, b, c, d) {\n db || bb();\n var e = id,\n f = db;\n db = !0;\n\n try {\n ab(e, a, b, c, d);\n } finally {\n (db = f) || fb();\n }\n}\n\nfunction hd(a, b, c, d) {\n ed(dd, id.bind(null, a, b, c, d));\n}\n\nfunction id(a, b, c, d) {\n if (fd) if (0 < Ac.length && -1 < Hc.indexOf(a)) a = Kc(null, a, b, c, d), Ac.push(a);else {\n var e = Rc(a, b, c, d);\n if (null === e) Lc(a, d);else if (-1 < Hc.indexOf(a)) a = Kc(e, a, b, c, d), Ac.push(a);else if (!Oc(e, a, b, c, d)) {\n Lc(a, d);\n a = rc(a, d, null, b);\n\n try {\n gb(sc, a);\n } finally {\n qc(a);\n }\n }\n }\n}\n\nfunction Rc(a, b, c, d) {\n c = nc(d);\n c = tc(c);\n\n if (null !== c) {\n var e = dc(c);\n if (null === e) c = null;else {\n var f = e.tag;\n\n if (13 === f) {\n c = ec(e);\n if (null !== c) return c;\n c = null;\n } else if (3 === f) {\n if (e.stateNode.hydrate) return 3 === e.tag ? e.stateNode.containerInfo : null;\n c = null;\n } else e !== c && (c = null);\n }\n }\n\n a = rc(a, d, c, b);\n\n try {\n gb(sc, a);\n } finally {\n qc(a);\n }\n\n return null;\n}\n\nvar jd = {\n animationIterationCount: !0,\n borderImageOutset: !0,\n borderImageSlice: !0,\n borderImageWidth: !0,\n boxFlex: !0,\n boxFlexGroup: !0,\n boxOrdinalGroup: !0,\n columnCount: !0,\n columns: !0,\n flex: !0,\n flexGrow: !0,\n flexPositive: !0,\n flexShrink: !0,\n flexNegative: !0,\n flexOrder: !0,\n gridArea: !0,\n gridRow: !0,\n gridRowEnd: !0,\n gridRowSpan: !0,\n gridRowStart: !0,\n gridColumn: !0,\n gridColumnEnd: !0,\n gridColumnSpan: !0,\n gridColumnStart: !0,\n fontWeight: !0,\n lineClamp: !0,\n lineHeight: !0,\n opacity: !0,\n order: !0,\n orphans: !0,\n tabSize: !0,\n widows: !0,\n zIndex: !0,\n zoom: !0,\n fillOpacity: !0,\n floodOpacity: !0,\n stopOpacity: !0,\n strokeDasharray: !0,\n strokeDashoffset: !0,\n strokeMiterlimit: !0,\n strokeOpacity: !0,\n strokeWidth: !0\n},\n kd = [\"Webkit\", \"ms\", \"Moz\", \"O\"];\nObject.keys(jd).forEach(function (a) {\n kd.forEach(function (b) {\n b = b + a.charAt(0).toUpperCase() + a.substring(1);\n jd[b] = jd[a];\n });\n});\n\nfunction ld(a, b, c) {\n return null == b || \"boolean\" === typeof b || \"\" === b ? \"\" : c || \"number\" !== typeof b || 0 === b || jd.hasOwnProperty(a) && jd[a] ? (\"\" + b).trim() : b + \"px\";\n}\n\nfunction md(a, b) {\n a = a.style;\n\n for (var c in b) {\n if (b.hasOwnProperty(c)) {\n var d = 0 === c.indexOf(\"--\"),\n e = ld(c, b[c], d);\n \"float\" === c && (c = \"cssFloat\");\n d ? a.setProperty(c, e) : a[c] = e;\n }\n }\n}\n\nvar nd = n({\n menuitem: !0\n}, {\n area: !0,\n base: !0,\n br: !0,\n col: !0,\n embed: !0,\n hr: !0,\n img: !0,\n input: !0,\n keygen: !0,\n link: !0,\n meta: !0,\n param: !0,\n source: !0,\n track: !0,\n wbr: !0\n});\n\nfunction od(a, b) {\n if (b) {\n if (nd[a] && (null != b.children || null != b.dangerouslySetInnerHTML)) throw Error(u(137, a, \"\"));\n\n if (null != b.dangerouslySetInnerHTML) {\n if (null != b.children) throw Error(u(60));\n if (!(\"object\" === typeof b.dangerouslySetInnerHTML && \"__html\" in b.dangerouslySetInnerHTML)) throw Error(u(61));\n }\n\n if (null != b.style && \"object\" !== typeof b.style) throw Error(u(62, \"\"));\n }\n}\n\nfunction pd(a, b) {\n if (-1 === a.indexOf(\"-\")) return \"string\" === typeof b.is;\n\n switch (a) {\n case \"annotation-xml\":\n case \"color-profile\":\n case \"font-face\":\n case \"font-face-src\":\n case \"font-face-uri\":\n case \"font-face-format\":\n case \"font-face-name\":\n case \"missing-glyph\":\n return !1;\n\n default:\n return !0;\n }\n}\n\nvar qd = Mb.html;\n\nfunction rd(a, b) {\n a = 9 === a.nodeType || 11 === a.nodeType ? a : a.ownerDocument;\n var c = cc(a);\n b = Ra[b];\n\n for (var d = 0; d < b.length; d++) {\n uc(b[d], a, c);\n }\n}\n\nfunction sd() {}\n\nfunction td(a) {\n a = a || (\"undefined\" !== typeof document ? document : void 0);\n if (\"undefined\" === typeof a) return null;\n\n try {\n return a.activeElement || a.body;\n } catch (b) {\n return a.body;\n }\n}\n\nfunction ud(a) {\n for (; a && a.firstChild;) {\n a = a.firstChild;\n }\n\n return a;\n}\n\nfunction vd(a, b) {\n var c = ud(a);\n a = 0;\n\n for (var d; c;) {\n if (3 === c.nodeType) {\n d = a + c.textContent.length;\n if (a <= b && d >= b) return {\n node: c,\n offset: b - a\n };\n a = d;\n }\n\n a: {\n for (; c;) {\n if (c.nextSibling) {\n c = c.nextSibling;\n break a;\n }\n\n c = c.parentNode;\n }\n\n c = void 0;\n }\n\n c = ud(c);\n }\n}\n\nfunction wd(a, b) {\n return a && b ? a === b ? !0 : a && 3 === a.nodeType ? !1 : b && 3 === b.nodeType ? wd(a, b.parentNode) : \"contains\" in a ? a.contains(b) : a.compareDocumentPosition ? !!(a.compareDocumentPosition(b) & 16) : !1 : !1;\n}\n\nfunction xd() {\n for (var a = window, b = td(); b instanceof a.HTMLIFrameElement;) {\n try {\n var c = \"string\" === typeof b.contentWindow.location.href;\n } catch (d) {\n c = !1;\n }\n\n if (c) a = b.contentWindow;else break;\n b = td(a.document);\n }\n\n return b;\n}\n\nfunction yd(a) {\n var b = a && a.nodeName && a.nodeName.toLowerCase();\n return b && (\"input\" === b && (\"text\" === a.type || \"search\" === a.type || \"tel\" === a.type || \"url\" === a.type || \"password\" === a.type) || \"textarea\" === b || \"true\" === a.contentEditable);\n}\n\nvar zd = \"$\",\n Ad = \"/$\",\n Bd = \"$?\",\n Cd = \"$!\",\n Dd = null,\n Ed = null;\n\nfunction Fd(a, b) {\n switch (a) {\n case \"button\":\n case \"input\":\n case \"select\":\n case \"textarea\":\n return !!b.autoFocus;\n }\n\n return !1;\n}\n\nfunction Gd(a, b) {\n return \"textarea\" === a || \"option\" === a || \"noscript\" === a || \"string\" === typeof b.children || \"number\" === typeof b.children || \"object\" === typeof b.dangerouslySetInnerHTML && null !== b.dangerouslySetInnerHTML && null != b.dangerouslySetInnerHTML.__html;\n}\n\nvar Hd = \"function\" === typeof setTimeout ? setTimeout : void 0,\n Id = \"function\" === typeof clearTimeout ? clearTimeout : void 0;\n\nfunction Jd(a) {\n for (; null != a; a = a.nextSibling) {\n var b = a.nodeType;\n if (1 === b || 3 === b) break;\n }\n\n return a;\n}\n\nfunction Kd(a) {\n a = a.previousSibling;\n\n for (var b = 0; a;) {\n if (8 === a.nodeType) {\n var c = a.data;\n\n if (c === zd || c === Cd || c === Bd) {\n if (0 === b) return a;\n b--;\n } else c === Ad && b++;\n }\n\n a = a.previousSibling;\n }\n\n return null;\n}\n\nvar Ld = Math.random().toString(36).slice(2),\n Md = \"__reactInternalInstance$\" + Ld,\n Nd = \"__reactEventHandlers$\" + Ld,\n Od = \"__reactContainere$\" + Ld;\n\nfunction tc(a) {\n var b = a[Md];\n if (b) return b;\n\n for (var c = a.parentNode; c;) {\n if (b = c[Od] || c[Md]) {\n c = b.alternate;\n if (null !== b.child || null !== c && null !== c.child) for (a = Kd(a); null !== a;) {\n if (c = a[Md]) return c;\n a = Kd(a);\n }\n return b;\n }\n\n a = c;\n c = a.parentNode;\n }\n\n return null;\n}\n\nfunction Nc(a) {\n a = a[Md] || a[Od];\n return !a || 5 !== a.tag && 6 !== a.tag && 13 !== a.tag && 3 !== a.tag ? null : a;\n}\n\nfunction Pd(a) {\n if (5 === a.tag || 6 === a.tag) return a.stateNode;\n throw Error(u(33));\n}\n\nfunction Qd(a) {\n return a[Nd] || null;\n}\n\nfunction Rd(a) {\n do {\n a = a.return;\n } while (a && 5 !== a.tag);\n\n return a ? a : null;\n}\n\nfunction Sd(a, b) {\n var c = a.stateNode;\n if (!c) return null;\n var d = la(c);\n if (!d) return null;\n c = d[b];\n\n a: switch (b) {\n case \"onClick\":\n case \"onClickCapture\":\n case \"onDoubleClick\":\n case \"onDoubleClickCapture\":\n case \"onMouseDown\":\n case \"onMouseDownCapture\":\n case \"onMouseMove\":\n case \"onMouseMoveCapture\":\n case \"onMouseUp\":\n case \"onMouseUpCapture\":\n case \"onMouseEnter\":\n (d = !d.disabled) || (a = a.type, d = !(\"button\" === a || \"input\" === a || \"select\" === a || \"textarea\" === a));\n a = !d;\n break a;\n\n default:\n a = !1;\n }\n\n if (a) return null;\n if (c && \"function\" !== typeof c) throw Error(u(231, b, typeof c));\n return c;\n}\n\nfunction Td(a, b, c) {\n if (b = Sd(a, c.dispatchConfig.phasedRegistrationNames[b])) c._dispatchListeners = ic(c._dispatchListeners, b), c._dispatchInstances = ic(c._dispatchInstances, a);\n}\n\nfunction Ud(a) {\n if (a && a.dispatchConfig.phasedRegistrationNames) {\n for (var b = a._targetInst, c = []; b;) {\n c.push(b), b = Rd(b);\n }\n\n for (b = c.length; 0 < b--;) {\n Td(c[b], \"captured\", a);\n }\n\n for (b = 0; b < c.length; b++) {\n Td(c[b], \"bubbled\", a);\n }\n }\n}\n\nfunction Vd(a, b, c) {\n a && c && c.dispatchConfig.registrationName && (b = Sd(a, c.dispatchConfig.registrationName)) && (c._dispatchListeners = ic(c._dispatchListeners, b), c._dispatchInstances = ic(c._dispatchInstances, a));\n}\n\nfunction Wd(a) {\n a && a.dispatchConfig.registrationName && Vd(a._targetInst, null, a);\n}\n\nfunction Xd(a) {\n jc(a, Ud);\n}\n\nvar Yd = null,\n Zd = null,\n $d = null;\n\nfunction ae() {\n if ($d) return $d;\n var a,\n b = Zd,\n c = b.length,\n d,\n e = \"value\" in Yd ? Yd.value : Yd.textContent,\n f = e.length;\n\n for (a = 0; a < c && b[a] === e[a]; a++) {\n ;\n }\n\n var g = c - a;\n\n for (d = 1; d <= g && b[c - d] === e[f - d]; d++) {\n ;\n }\n\n return $d = e.slice(a, 1 < d ? 1 - d : void 0);\n}\n\nfunction be() {\n return !0;\n}\n\nfunction ce() {\n return !1;\n}\n\nfunction G(a, b, c, d) {\n this.dispatchConfig = a;\n this._targetInst = b;\n this.nativeEvent = c;\n a = this.constructor.Interface;\n\n for (var e in a) {\n a.hasOwnProperty(e) && ((b = a[e]) ? this[e] = b(c) : \"target\" === e ? this.target = d : this[e] = c[e]);\n }\n\n this.isDefaultPrevented = (null != c.defaultPrevented ? c.defaultPrevented : !1 === c.returnValue) ? be : ce;\n this.isPropagationStopped = ce;\n return this;\n}\n\nn(G.prototype, {\n preventDefault: function preventDefault() {\n this.defaultPrevented = !0;\n var a = this.nativeEvent;\n a && (a.preventDefault ? a.preventDefault() : \"unknown\" !== typeof a.returnValue && (a.returnValue = !1), this.isDefaultPrevented = be);\n },\n stopPropagation: function stopPropagation() {\n var a = this.nativeEvent;\n a && (a.stopPropagation ? a.stopPropagation() : \"unknown\" !== typeof a.cancelBubble && (a.cancelBubble = !0), this.isPropagationStopped = be);\n },\n persist: function persist() {\n this.isPersistent = be;\n },\n isPersistent: ce,\n destructor: function destructor() {\n var a = this.constructor.Interface,\n b;\n\n for (b in a) {\n this[b] = null;\n }\n\n this.nativeEvent = this._targetInst = this.dispatchConfig = null;\n this.isPropagationStopped = this.isDefaultPrevented = ce;\n this._dispatchInstances = this._dispatchListeners = null;\n }\n});\nG.Interface = {\n type: null,\n target: null,\n currentTarget: function currentTarget() {\n return null;\n },\n eventPhase: null,\n bubbles: null,\n cancelable: null,\n timeStamp: function timeStamp(a) {\n return a.timeStamp || Date.now();\n },\n defaultPrevented: null,\n isTrusted: null\n};\n\nG.extend = function (a) {\n function b() {}\n\n function c() {\n return d.apply(this, arguments);\n }\n\n var d = this;\n b.prototype = d.prototype;\n var e = new b();\n n(e, c.prototype);\n c.prototype = e;\n c.prototype.constructor = c;\n c.Interface = n({}, d.Interface, a);\n c.extend = d.extend;\n de(c);\n return c;\n};\n\nde(G);\n\nfunction ee(a, b, c, d) {\n if (this.eventPool.length) {\n var e = this.eventPool.pop();\n this.call(e, a, b, c, d);\n return e;\n }\n\n return new this(a, b, c, d);\n}\n\nfunction fe(a) {\n if (!(a instanceof this)) throw Error(u(279));\n a.destructor();\n 10 > this.eventPool.length && this.eventPool.push(a);\n}\n\nfunction de(a) {\n a.eventPool = [];\n a.getPooled = ee;\n a.release = fe;\n}\n\nvar ge = G.extend({\n data: null\n}),\n he = G.extend({\n data: null\n}),\n ie = [9, 13, 27, 32],\n je = Ta && \"CompositionEvent\" in window,\n ke = null;\nTa && \"documentMode\" in document && (ke = document.documentMode);\nvar le = Ta && \"TextEvent\" in window && !ke,\n me = Ta && (!je || ke && 8 < ke && 11 >= ke),\n ne = String.fromCharCode(32),\n oe = {\n beforeInput: {\n phasedRegistrationNames: {\n bubbled: \"onBeforeInput\",\n captured: \"onBeforeInputCapture\"\n },\n dependencies: [\"compositionend\", \"keypress\", \"textInput\", \"paste\"]\n },\n compositionEnd: {\n phasedRegistrationNames: {\n bubbled: \"onCompositionEnd\",\n captured: \"onCompositionEndCapture\"\n },\n dependencies: \"blur compositionend keydown keypress keyup mousedown\".split(\" \")\n },\n compositionStart: {\n phasedRegistrationNames: {\n bubbled: \"onCompositionStart\",\n captured: \"onCompositionStartCapture\"\n },\n dependencies: \"blur compositionstart keydown keypress keyup mousedown\".split(\" \")\n },\n compositionUpdate: {\n phasedRegistrationNames: {\n bubbled: \"onCompositionUpdate\",\n captured: \"onCompositionUpdateCapture\"\n },\n dependencies: \"blur compositionupdate keydown keypress keyup mousedown\".split(\" \")\n }\n},\n pe = !1;\n\nfunction qe(a, b) {\n switch (a) {\n case \"keyup\":\n return -1 !== ie.indexOf(b.keyCode);\n\n case \"keydown\":\n return 229 !== b.keyCode;\n\n case \"keypress\":\n case \"mousedown\":\n case \"blur\":\n return !0;\n\n default:\n return !1;\n }\n}\n\nfunction re(a) {\n a = a.detail;\n return \"object\" === typeof a && \"data\" in a ? a.data : null;\n}\n\nvar se = !1;\n\nfunction te(a, b) {\n switch (a) {\n case \"compositionend\":\n return re(b);\n\n case \"keypress\":\n if (32 !== b.which) return null;\n pe = !0;\n return ne;\n\n case \"textInput\":\n return a = b.data, a === ne && pe ? null : a;\n\n default:\n return null;\n }\n}\n\nfunction ue(a, b) {\n if (se) return \"compositionend\" === a || !je && qe(a, b) ? (a = ae(), $d = Zd = Yd = null, se = !1, a) : null;\n\n switch (a) {\n case \"paste\":\n return null;\n\n case \"keypress\":\n if (!(b.ctrlKey || b.altKey || b.metaKey) || b.ctrlKey && b.altKey) {\n if (b.char && 1 < b.char.length) return b.char;\n if (b.which) return String.fromCharCode(b.which);\n }\n\n return null;\n\n case \"compositionend\":\n return me && \"ko\" !== b.locale ? null : b.data;\n\n default:\n return null;\n }\n}\n\nvar ve = {\n eventTypes: oe,\n extractEvents: function extractEvents(a, b, c, d) {\n var e;\n if (je) b: {\n switch (a) {\n case \"compositionstart\":\n var f = oe.compositionStart;\n break b;\n\n case \"compositionend\":\n f = oe.compositionEnd;\n break b;\n\n case \"compositionupdate\":\n f = oe.compositionUpdate;\n break b;\n }\n\n f = void 0;\n } else se ? qe(a, c) && (f = oe.compositionEnd) : \"keydown\" === a && 229 === c.keyCode && (f = oe.compositionStart);\n f ? (me && \"ko\" !== c.locale && (se || f !== oe.compositionStart ? f === oe.compositionEnd && se && (e = ae()) : (Yd = d, Zd = \"value\" in Yd ? Yd.value : Yd.textContent, se = !0)), f = ge.getPooled(f, b, c, d), e ? f.data = e : (e = re(c), null !== e && (f.data = e)), Xd(f), e = f) : e = null;\n (a = le ? te(a, c) : ue(a, c)) ? (b = he.getPooled(oe.beforeInput, b, c, d), b.data = a, Xd(b)) : b = null;\n return null === e ? b : null === b ? e : [e, b];\n }\n},\n we = {\n color: !0,\n date: !0,\n datetime: !0,\n \"datetime-local\": !0,\n email: !0,\n month: !0,\n number: !0,\n password: !0,\n range: !0,\n search: !0,\n tel: !0,\n text: !0,\n time: !0,\n url: !0,\n week: !0\n};\n\nfunction xe(a) {\n var b = a && a.nodeName && a.nodeName.toLowerCase();\n return \"input\" === b ? !!we[a.type] : \"textarea\" === b ? !0 : !1;\n}\n\nvar ye = {\n change: {\n phasedRegistrationNames: {\n bubbled: \"onChange\",\n captured: \"onChangeCapture\"\n },\n dependencies: \"blur change click focus input keydown keyup selectionchange\".split(\" \")\n }\n};\n\nfunction ze(a, b, c) {\n a = G.getPooled(ye.change, a, b, c);\n a.type = \"change\";\n Ya(c);\n Xd(a);\n return a;\n}\n\nvar Ae = null,\n Be = null;\n\nfunction Ce(a) {\n mc(a);\n}\n\nfunction De(a) {\n var b = Pd(a);\n if (yb(b)) return a;\n}\n\nfunction Ee(a, b) {\n if (\"change\" === a) return b;\n}\n\nvar Fe = !1;\nTa && (Fe = oc(\"input\") && (!document.documentMode || 9 < document.documentMode));\n\nfunction Ge() {\n Ae && (Ae.detachEvent(\"onpropertychange\", He), Be = Ae = null);\n}\n\nfunction He(a) {\n if (\"value\" === a.propertyName && De(Be)) if (a = ze(Be, a, nc(a)), db) mc(a);else {\n db = !0;\n\n try {\n $a(Ce, a);\n } finally {\n db = !1, fb();\n }\n }\n}\n\nfunction Ie(a, b, c) {\n \"focus\" === a ? (Ge(), Ae = b, Be = c, Ae.attachEvent(\"onpropertychange\", He)) : \"blur\" === a && Ge();\n}\n\nfunction Je(a) {\n if (\"selectionchange\" === a || \"keyup\" === a || \"keydown\" === a) return De(Be);\n}\n\nfunction Ke(a, b) {\n if (\"click\" === a) return De(b);\n}\n\nfunction Le(a, b) {\n if (\"input\" === a || \"change\" === a) return De(b);\n}\n\nvar Me = {\n eventTypes: ye,\n _isInputEventSupported: Fe,\n extractEvents: function extractEvents(a, b, c, d) {\n var e = b ? Pd(b) : window,\n f = e.nodeName && e.nodeName.toLowerCase();\n if (\"select\" === f || \"input\" === f && \"file\" === e.type) var g = Ee;else if (xe(e)) {\n if (Fe) g = Le;else {\n g = Je;\n var h = Ie;\n }\n } else (f = e.nodeName) && \"input\" === f.toLowerCase() && (\"checkbox\" === e.type || \"radio\" === e.type) && (g = Ke);\n if (g && (g = g(a, b))) return ze(g, c, d);\n h && h(a, e, b);\n \"blur\" === a && (a = e._wrapperState) && a.controlled && \"number\" === e.type && Db(e, \"number\", e.value);\n }\n},\n Ne = G.extend({\n view: null,\n detail: null\n}),\n Oe = {\n Alt: \"altKey\",\n Control: \"ctrlKey\",\n Meta: \"metaKey\",\n Shift: \"shiftKey\"\n};\n\nfunction Pe(a) {\n var b = this.nativeEvent;\n return b.getModifierState ? b.getModifierState(a) : (a = Oe[a]) ? !!b[a] : !1;\n}\n\nfunction Qe() {\n return Pe;\n}\n\nvar Re = 0,\n Se = 0,\n Te = !1,\n Ue = !1,\n Ve = Ne.extend({\n screenX: null,\n screenY: null,\n clientX: null,\n clientY: null,\n pageX: null,\n pageY: null,\n ctrlKey: null,\n shiftKey: null,\n altKey: null,\n metaKey: null,\n getModifierState: Qe,\n button: null,\n buttons: null,\n relatedTarget: function relatedTarget(a) {\n return a.relatedTarget || (a.fromElement === a.srcElement ? a.toElement : a.fromElement);\n },\n movementX: function movementX(a) {\n if (\"movementX\" in a) return a.movementX;\n var b = Re;\n Re = a.screenX;\n return Te ? \"mousemove\" === a.type ? a.screenX - b : 0 : (Te = !0, 0);\n },\n movementY: function movementY(a) {\n if (\"movementY\" in a) return a.movementY;\n var b = Se;\n Se = a.screenY;\n return Ue ? \"mousemove\" === a.type ? a.screenY - b : 0 : (Ue = !0, 0);\n }\n}),\n We = Ve.extend({\n pointerId: null,\n width: null,\n height: null,\n pressure: null,\n tangentialPressure: null,\n tiltX: null,\n tiltY: null,\n twist: null,\n pointerType: null,\n isPrimary: null\n}),\n Xe = {\n mouseEnter: {\n registrationName: \"onMouseEnter\",\n dependencies: [\"mouseout\", \"mouseover\"]\n },\n mouseLeave: {\n registrationName: \"onMouseLeave\",\n dependencies: [\"mouseout\", \"mouseover\"]\n },\n pointerEnter: {\n registrationName: \"onPointerEnter\",\n dependencies: [\"pointerout\", \"pointerover\"]\n },\n pointerLeave: {\n registrationName: \"onPointerLeave\",\n dependencies: [\"pointerout\", \"pointerover\"]\n }\n},\n Ye = {\n eventTypes: Xe,\n extractEvents: function extractEvents(a, b, c, d, e) {\n var f = \"mouseover\" === a || \"pointerover\" === a,\n g = \"mouseout\" === a || \"pointerout\" === a;\n if (f && 0 === (e & 32) && (c.relatedTarget || c.fromElement) || !g && !f) return null;\n f = d.window === d ? d : (f = d.ownerDocument) ? f.defaultView || f.parentWindow : window;\n\n if (g) {\n if (g = b, b = (b = c.relatedTarget || c.toElement) ? tc(b) : null, null !== b) {\n var h = dc(b);\n if (b !== h || 5 !== b.tag && 6 !== b.tag) b = null;\n }\n } else g = null;\n\n if (g === b) return null;\n\n if (\"mouseout\" === a || \"mouseover\" === a) {\n var k = Ve;\n var l = Xe.mouseLeave;\n var m = Xe.mouseEnter;\n var p = \"mouse\";\n } else if (\"pointerout\" === a || \"pointerover\" === a) k = We, l = Xe.pointerLeave, m = Xe.pointerEnter, p = \"pointer\";\n\n a = null == g ? f : Pd(g);\n f = null == b ? f : Pd(b);\n l = k.getPooled(l, g, c, d);\n l.type = p + \"leave\";\n l.target = a;\n l.relatedTarget = f;\n c = k.getPooled(m, b, c, d);\n c.type = p + \"enter\";\n c.target = f;\n c.relatedTarget = a;\n d = g;\n p = b;\n if (d && p) a: {\n k = d;\n m = p;\n g = 0;\n\n for (a = k; a; a = Rd(a)) {\n g++;\n }\n\n a = 0;\n\n for (b = m; b; b = Rd(b)) {\n a++;\n }\n\n for (; 0 < g - a;) {\n k = Rd(k), g--;\n }\n\n for (; 0 < a - g;) {\n m = Rd(m), a--;\n }\n\n for (; g--;) {\n if (k === m || k === m.alternate) break a;\n k = Rd(k);\n m = Rd(m);\n }\n\n k = null;\n } else k = null;\n m = k;\n\n for (k = []; d && d !== m;) {\n g = d.alternate;\n if (null !== g && g === m) break;\n k.push(d);\n d = Rd(d);\n }\n\n for (d = []; p && p !== m;) {\n g = p.alternate;\n if (null !== g && g === m) break;\n d.push(p);\n p = Rd(p);\n }\n\n for (p = 0; p < k.length; p++) {\n Vd(k[p], \"bubbled\", l);\n }\n\n for (p = d.length; 0 < p--;) {\n Vd(d[p], \"captured\", c);\n }\n\n return 0 === (e & 64) ? [l] : [l, c];\n }\n};\n\nfunction Ze(a, b) {\n return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;\n}\n\nvar $e = \"function\" === typeof Object.is ? Object.is : Ze,\n af = Object.prototype.hasOwnProperty;\n\nfunction bf(a, b) {\n if ($e(a, b)) return !0;\n if (\"object\" !== typeof a || null === a || \"object\" !== typeof b || null === b) return !1;\n var c = Object.keys(a),\n d = Object.keys(b);\n if (c.length !== d.length) return !1;\n\n for (d = 0; d < c.length; d++) {\n if (!af.call(b, c[d]) || !$e(a[c[d]], b[c[d]])) return !1;\n }\n\n return !0;\n}\n\nvar cf = Ta && \"documentMode\" in document && 11 >= document.documentMode,\n df = {\n select: {\n phasedRegistrationNames: {\n bubbled: \"onSelect\",\n captured: \"onSelectCapture\"\n },\n dependencies: \"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange\".split(\" \")\n }\n},\n ef = null,\n ff = null,\n gf = null,\n hf = !1;\n\nfunction jf(a, b) {\n var c = b.window === b ? b.document : 9 === b.nodeType ? b : b.ownerDocument;\n if (hf || null == ef || ef !== td(c)) return null;\n c = ef;\n \"selectionStart\" in c && yd(c) ? c = {\n start: c.selectionStart,\n end: c.selectionEnd\n } : (c = (c.ownerDocument && c.ownerDocument.defaultView || window).getSelection(), c = {\n anchorNode: c.anchorNode,\n anchorOffset: c.anchorOffset,\n focusNode: c.focusNode,\n focusOffset: c.focusOffset\n });\n return gf && bf(gf, c) ? null : (gf = c, a = G.getPooled(df.select, ff, a, b), a.type = \"select\", a.target = ef, Xd(a), a);\n}\n\nvar kf = {\n eventTypes: df,\n extractEvents: function extractEvents(a, b, c, d, e, f) {\n e = f || (d.window === d ? d.document : 9 === d.nodeType ? d : d.ownerDocument);\n\n if (!(f = !e)) {\n a: {\n e = cc(e);\n f = Ra.onSelect;\n\n for (var g = 0; g < f.length; g++) {\n if (!e.has(f[g])) {\n e = !1;\n break a;\n }\n }\n\n e = !0;\n }\n\n f = !e;\n }\n\n if (f) return null;\n e = b ? Pd(b) : window;\n\n switch (a) {\n case \"focus\":\n if (xe(e) || \"true\" === e.contentEditable) ef = e, ff = b, gf = null;\n break;\n\n case \"blur\":\n gf = ff = ef = null;\n break;\n\n case \"mousedown\":\n hf = !0;\n break;\n\n case \"contextmenu\":\n case \"mouseup\":\n case \"dragend\":\n return hf = !1, jf(c, d);\n\n case \"selectionchange\":\n if (cf) break;\n\n case \"keydown\":\n case \"keyup\":\n return jf(c, d);\n }\n\n return null;\n }\n},\n lf = G.extend({\n animationName: null,\n elapsedTime: null,\n pseudoElement: null\n}),\n mf = G.extend({\n clipboardData: function clipboardData(a) {\n return \"clipboardData\" in a ? a.clipboardData : window.clipboardData;\n }\n}),\n nf = Ne.extend({\n relatedTarget: null\n});\n\nfunction of(a) {\n var b = a.keyCode;\n \"charCode\" in a ? (a = a.charCode, 0 === a && 13 === b && (a = 13)) : a = b;\n 10 === a && (a = 13);\n return 32 <= a || 13 === a ? a : 0;\n}\n\nvar pf = {\n Esc: \"Escape\",\n Spacebar: \" \",\n Left: \"ArrowLeft\",\n Up: \"ArrowUp\",\n Right: \"ArrowRight\",\n Down: \"ArrowDown\",\n Del: \"Delete\",\n Win: \"OS\",\n Menu: \"ContextMenu\",\n Apps: \"ContextMenu\",\n Scroll: \"ScrollLock\",\n MozPrintableKey: \"Unidentified\"\n},\n qf = {\n 8: \"Backspace\",\n 9: \"Tab\",\n 12: \"Clear\",\n 13: \"Enter\",\n 16: \"Shift\",\n 17: \"Control\",\n 18: \"Alt\",\n 19: \"Pause\",\n 20: \"CapsLock\",\n 27: \"Escape\",\n 32: \" \",\n 33: \"PageUp\",\n 34: \"PageDown\",\n 35: \"End\",\n 36: \"Home\",\n 37: \"ArrowLeft\",\n 38: \"ArrowUp\",\n 39: \"ArrowRight\",\n 40: \"ArrowDown\",\n 45: \"Insert\",\n 46: \"Delete\",\n 112: \"F1\",\n 113: \"F2\",\n 114: \"F3\",\n 115: \"F4\",\n 116: \"F5\",\n 117: \"F6\",\n 118: \"F7\",\n 119: \"F8\",\n 120: \"F9\",\n 121: \"F10\",\n 122: \"F11\",\n 123: \"F12\",\n 144: \"NumLock\",\n 145: \"ScrollLock\",\n 224: \"Meta\"\n},\n rf = Ne.extend({\n key: function key(a) {\n if (a.key) {\n var b = pf[a.key] || a.key;\n if (\"Unidentified\" !== b) return b;\n }\n\n return \"keypress\" === a.type ? (a = of(a), 13 === a ? \"Enter\" : String.fromCharCode(a)) : \"keydown\" === a.type || \"keyup\" === a.type ? qf[a.keyCode] || \"Unidentified\" : \"\";\n },\n location: null,\n ctrlKey: null,\n shiftKey: null,\n altKey: null,\n metaKey: null,\n repeat: null,\n locale: null,\n getModifierState: Qe,\n charCode: function charCode(a) {\n return \"keypress\" === a.type ? of(a) : 0;\n },\n keyCode: function keyCode(a) {\n return \"keydown\" === a.type || \"keyup\" === a.type ? a.keyCode : 0;\n },\n which: function which(a) {\n return \"keypress\" === a.type ? of(a) : \"keydown\" === a.type || \"keyup\" === a.type ? a.keyCode : 0;\n }\n}),\n sf = Ve.extend({\n dataTransfer: null\n}),\n tf = Ne.extend({\n touches: null,\n targetTouches: null,\n changedTouches: null,\n altKey: null,\n metaKey: null,\n ctrlKey: null,\n shiftKey: null,\n getModifierState: Qe\n}),\n uf = G.extend({\n propertyName: null,\n elapsedTime: null,\n pseudoElement: null\n}),\n vf = Ve.extend({\n deltaX: function deltaX(a) {\n return \"deltaX\" in a ? a.deltaX : \"wheelDeltaX\" in a ? -a.wheelDeltaX : 0;\n },\n deltaY: function deltaY(a) {\n return \"deltaY\" in a ? a.deltaY : \"wheelDeltaY\" in a ? -a.wheelDeltaY : \"wheelDelta\" in a ? -a.wheelDelta : 0;\n },\n deltaZ: null,\n deltaMode: null\n}),\n wf = {\n eventTypes: Wc,\n extractEvents: function extractEvents(a, b, c, d) {\n var e = Yc.get(a);\n if (!e) return null;\n\n switch (a) {\n case \"keypress\":\n if (0 === of(c)) return null;\n\n case \"keydown\":\n case \"keyup\":\n a = rf;\n break;\n\n case \"blur\":\n case \"focus\":\n a = nf;\n break;\n\n case \"click\":\n if (2 === c.button) return null;\n\n case \"auxclick\":\n case \"dblclick\":\n case \"mousedown\":\n case \"mousemove\":\n case \"mouseup\":\n case \"mouseout\":\n case \"mouseover\":\n case \"contextmenu\":\n a = Ve;\n break;\n\n case \"drag\":\n case \"dragend\":\n case \"dragenter\":\n case \"dragexit\":\n case \"dragleave\":\n case \"dragover\":\n case \"dragstart\":\n case \"drop\":\n a = sf;\n break;\n\n case \"touchcancel\":\n case \"touchend\":\n case \"touchmove\":\n case \"touchstart\":\n a = tf;\n break;\n\n case Xb:\n case Yb:\n case Zb:\n a = lf;\n break;\n\n case $b:\n a = uf;\n break;\n\n case \"scroll\":\n a = Ne;\n break;\n\n case \"wheel\":\n a = vf;\n break;\n\n case \"copy\":\n case \"cut\":\n case \"paste\":\n a = mf;\n break;\n\n case \"gotpointercapture\":\n case \"lostpointercapture\":\n case \"pointercancel\":\n case \"pointerdown\":\n case \"pointermove\":\n case \"pointerout\":\n case \"pointerover\":\n case \"pointerup\":\n a = We;\n break;\n\n default:\n a = G;\n }\n\n b = a.getPooled(e, b, c, d);\n Xd(b);\n return b;\n }\n};\nif (Ka) throw Error(u(101));\nKa = Array.prototype.slice.call(\"ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin\".split(\" \"));\nMa();\nvar xf = Nc;\nla = Qd;\nma = xf;\nna = Pd;\nSa({\n SimpleEventPlugin: wf,\n EnterLeaveEventPlugin: Ye,\n ChangeEventPlugin: Me,\n SelectEventPlugin: kf,\n BeforeInputEventPlugin: ve\n});\nvar yf = [],\n zf = -1;\n\nfunction H(a) {\n 0 > zf || (a.current = yf[zf], yf[zf] = null, zf--);\n}\n\nfunction I(a, b) {\n zf++;\n yf[zf] = a.current;\n a.current = b;\n}\n\nvar Af = {},\n J = {\n current: Af\n},\n K = {\n current: !1\n},\n Bf = Af;\n\nfunction Cf(a, b) {\n var c = a.type.contextTypes;\n if (!c) return Af;\n var d = a.stateNode;\n if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) return d.__reactInternalMemoizedMaskedChildContext;\n var e = {},\n f;\n\n for (f in c) {\n e[f] = b[f];\n }\n\n d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = b, a.__reactInternalMemoizedMaskedChildContext = e);\n return e;\n}\n\nfunction L(a) {\n a = a.childContextTypes;\n return null !== a && void 0 !== a;\n}\n\nfunction Df() {\n H(K);\n H(J);\n}\n\nfunction Ef(a, b, c) {\n if (J.current !== Af) throw Error(u(168));\n I(J, b);\n I(K, c);\n}\n\nfunction Ff(a, b, c) {\n var d = a.stateNode;\n a = b.childContextTypes;\n if (\"function\" !== typeof d.getChildContext) return c;\n d = d.getChildContext();\n\n for (var e in d) {\n if (!(e in a)) throw Error(u(108, Ia(b) || \"Unknown\", e));\n }\n\n return n({}, c, {}, d);\n}\n\nfunction Gf(a) {\n a = (a = a.stateNode) && a.__reactInternalMemoizedMergedChildContext || Af;\n Bf = J.current;\n I(J, a);\n I(K, K.current);\n return !0;\n}\n\nfunction Hf(a, b, c) {\n var d = a.stateNode;\n if (!d) throw Error(u(169));\n c ? (a = Ff(a, b, Bf), d.__reactInternalMemoizedMergedChildContext = a, H(K), H(J), I(J, a)) : H(K);\n I(K, c);\n}\n\nvar If = r.unstable_runWithPriority,\n Jf = r.unstable_scheduleCallback,\n Kf = r.unstable_cancelCallback,\n Lf = r.unstable_requestPaint,\n Mf = r.unstable_now,\n Nf = r.unstable_getCurrentPriorityLevel,\n Of = r.unstable_ImmediatePriority,\n Pf = r.unstable_UserBlockingPriority,\n Qf = r.unstable_NormalPriority,\n Rf = r.unstable_LowPriority,\n Sf = r.unstable_IdlePriority,\n Tf = {},\n Uf = r.unstable_shouldYield,\n Vf = void 0 !== Lf ? Lf : function () {},\n Wf = null,\n Xf = null,\n Yf = !1,\n Zf = Mf(),\n $f = 1E4 > Zf ? Mf : function () {\n return Mf() - Zf;\n};\n\nfunction ag() {\n switch (Nf()) {\n case Of:\n return 99;\n\n case Pf:\n return 98;\n\n case Qf:\n return 97;\n\n case Rf:\n return 96;\n\n case Sf:\n return 95;\n\n default:\n throw Error(u(332));\n }\n}\n\nfunction bg(a) {\n switch (a) {\n case 99:\n return Of;\n\n case 98:\n return Pf;\n\n case 97:\n return Qf;\n\n case 96:\n return Rf;\n\n case 95:\n return Sf;\n\n default:\n throw Error(u(332));\n }\n}\n\nfunction cg(a, b) {\n a = bg(a);\n return If(a, b);\n}\n\nfunction dg(a, b, c) {\n a = bg(a);\n return Jf(a, b, c);\n}\n\nfunction eg(a) {\n null === Wf ? (Wf = [a], Xf = Jf(Of, fg)) : Wf.push(a);\n return Tf;\n}\n\nfunction gg() {\n if (null !== Xf) {\n var a = Xf;\n Xf = null;\n Kf(a);\n }\n\n fg();\n}\n\nfunction fg() {\n if (!Yf && null !== Wf) {\n Yf = !0;\n var a = 0;\n\n try {\n var b = Wf;\n cg(99, function () {\n for (; a < b.length; a++) {\n var c = b[a];\n\n do {\n c = c(!0);\n } while (null !== c);\n }\n });\n Wf = null;\n } catch (c) {\n throw null !== Wf && (Wf = Wf.slice(a + 1)), Jf(Of, gg), c;\n } finally {\n Yf = !1;\n }\n }\n}\n\nfunction hg(a, b, c) {\n c /= 10;\n return 1073741821 - (((1073741821 - a + b / 10) / c | 0) + 1) * c;\n}\n\nfunction ig(a, b) {\n if (a && a.defaultProps) {\n b = n({}, b);\n a = a.defaultProps;\n\n for (var c in a) {\n void 0 === b[c] && (b[c] = a[c]);\n }\n }\n\n return b;\n}\n\nvar jg = {\n current: null\n},\n kg = null,\n lg = null,\n mg = null;\n\nfunction ng() {\n mg = lg = kg = null;\n}\n\nfunction og(a) {\n var b = jg.current;\n H(jg);\n a.type._context._currentValue = b;\n}\n\nfunction pg(a, b) {\n for (; null !== a;) {\n var c = a.alternate;\n if (a.childExpirationTime < b) a.childExpirationTime = b, null !== c && c.childExpirationTime < b && (c.childExpirationTime = b);else if (null !== c && c.childExpirationTime < b) c.childExpirationTime = b;else break;\n a = a.return;\n }\n}\n\nfunction qg(a, b) {\n kg = a;\n mg = lg = null;\n a = a.dependencies;\n null !== a && null !== a.firstContext && (a.expirationTime >= b && (rg = !0), a.firstContext = null);\n}\n\nfunction sg(a, b) {\n if (mg !== a && !1 !== b && 0 !== b) {\n if (\"number\" !== typeof b || 1073741823 === b) mg = a, b = 1073741823;\n b = {\n context: a,\n observedBits: b,\n next: null\n };\n\n if (null === lg) {\n if (null === kg) throw Error(u(308));\n lg = b;\n kg.dependencies = {\n expirationTime: 0,\n firstContext: b,\n responders: null\n };\n } else lg = lg.next = b;\n }\n\n return a._currentValue;\n}\n\nvar tg = !1;\n\nfunction ug(a) {\n a.updateQueue = {\n baseState: a.memoizedState,\n baseQueue: null,\n shared: {\n pending: null\n },\n effects: null\n };\n}\n\nfunction vg(a, b) {\n a = a.updateQueue;\n b.updateQueue === a && (b.updateQueue = {\n baseState: a.baseState,\n baseQueue: a.baseQueue,\n shared: a.shared,\n effects: a.effects\n });\n}\n\nfunction wg(a, b) {\n a = {\n expirationTime: a,\n suspenseConfig: b,\n tag: 0,\n payload: null,\n callback: null,\n next: null\n };\n return a.next = a;\n}\n\nfunction xg(a, b) {\n a = a.updateQueue;\n\n if (null !== a) {\n a = a.shared;\n var c = a.pending;\n null === c ? b.next = b : (b.next = c.next, c.next = b);\n a.pending = b;\n }\n}\n\nfunction yg(a, b) {\n var c = a.alternate;\n null !== c && vg(c, a);\n a = a.updateQueue;\n c = a.baseQueue;\n null === c ? (a.baseQueue = b.next = b, b.next = b) : (b.next = c.next, c.next = b);\n}\n\nfunction zg(a, b, c, d) {\n var e = a.updateQueue;\n tg = !1;\n var f = e.baseQueue,\n g = e.shared.pending;\n\n if (null !== g) {\n if (null !== f) {\n var h = f.next;\n f.next = g.next;\n g.next = h;\n }\n\n f = g;\n e.shared.pending = null;\n h = a.alternate;\n null !== h && (h = h.updateQueue, null !== h && (h.baseQueue = g));\n }\n\n if (null !== f) {\n h = f.next;\n var k = e.baseState,\n l = 0,\n m = null,\n p = null,\n x = null;\n\n if (null !== h) {\n var z = h;\n\n do {\n g = z.expirationTime;\n\n if (g < d) {\n var ca = {\n expirationTime: z.expirationTime,\n suspenseConfig: z.suspenseConfig,\n tag: z.tag,\n payload: z.payload,\n callback: z.callback,\n next: null\n };\n null === x ? (p = x = ca, m = k) : x = x.next = ca;\n g > l && (l = g);\n } else {\n null !== x && (x = x.next = {\n expirationTime: 1073741823,\n suspenseConfig: z.suspenseConfig,\n tag: z.tag,\n payload: z.payload,\n callback: z.callback,\n next: null\n });\n Ag(g, z.suspenseConfig);\n\n a: {\n var D = a,\n t = z;\n g = b;\n ca = c;\n\n switch (t.tag) {\n case 1:\n D = t.payload;\n\n if (\"function\" === typeof D) {\n k = D.call(ca, k, g);\n break a;\n }\n\n k = D;\n break a;\n\n case 3:\n D.effectTag = D.effectTag & -4097 | 64;\n\n case 0:\n D = t.payload;\n g = \"function\" === typeof D ? D.call(ca, k, g) : D;\n if (null === g || void 0 === g) break a;\n k = n({}, k, g);\n break a;\n\n case 2:\n tg = !0;\n }\n }\n\n null !== z.callback && (a.effectTag |= 32, g = e.effects, null === g ? e.effects = [z] : g.push(z));\n }\n\n z = z.next;\n if (null === z || z === h) if (g = e.shared.pending, null === g) break;else z = f.next = g.next, g.next = h, e.baseQueue = f = g, e.shared.pending = null;\n } while (1);\n }\n\n null === x ? m = k : x.next = p;\n e.baseState = m;\n e.baseQueue = x;\n Bg(l);\n a.expirationTime = l;\n a.memoizedState = k;\n }\n}\n\nfunction Cg(a, b, c) {\n a = b.effects;\n b.effects = null;\n if (null !== a) for (b = 0; b < a.length; b++) {\n var d = a[b],\n e = d.callback;\n\n if (null !== e) {\n d.callback = null;\n d = e;\n e = c;\n if (\"function\" !== typeof d) throw Error(u(191, d));\n d.call(e);\n }\n }\n}\n\nvar Dg = pa.ReactCurrentBatchConfig,\n Eg = new aa.Component().refs;\n\nfunction Fg(a, b, c, d) {\n b = a.memoizedState;\n c = c(d, b);\n c = null === c || void 0 === c ? b : n({}, b, c);\n a.memoizedState = c;\n 0 === a.expirationTime && (a.updateQueue.baseState = c);\n}\n\nvar Jg = {\n isMounted: function isMounted(a) {\n return (a = a._reactInternalFiber) ? dc(a) === a : !1;\n },\n enqueueSetState: function enqueueSetState(a, b, c) {\n a = a._reactInternalFiber;\n var d = Gg(),\n e = Dg.suspense;\n d = Hg(d, a, e);\n e = wg(d, e);\n e.payload = b;\n void 0 !== c && null !== c && (e.callback = c);\n xg(a, e);\n Ig(a, d);\n },\n enqueueReplaceState: function enqueueReplaceState(a, b, c) {\n a = a._reactInternalFiber;\n var d = Gg(),\n e = Dg.suspense;\n d = Hg(d, a, e);\n e = wg(d, e);\n e.tag = 1;\n e.payload = b;\n void 0 !== c && null !== c && (e.callback = c);\n xg(a, e);\n Ig(a, d);\n },\n enqueueForceUpdate: function enqueueForceUpdate(a, b) {\n a = a._reactInternalFiber;\n var c = Gg(),\n d = Dg.suspense;\n c = Hg(c, a, d);\n d = wg(c, d);\n d.tag = 2;\n void 0 !== b && null !== b && (d.callback = b);\n xg(a, d);\n Ig(a, c);\n }\n};\n\nfunction Kg(a, b, c, d, e, f, g) {\n a = a.stateNode;\n return \"function\" === typeof a.shouldComponentUpdate ? a.shouldComponentUpdate(d, f, g) : b.prototype && b.prototype.isPureReactComponent ? !bf(c, d) || !bf(e, f) : !0;\n}\n\nfunction Lg(a, b, c) {\n var d = !1,\n e = Af;\n var f = b.contextType;\n \"object\" === typeof f && null !== f ? f = sg(f) : (e = L(b) ? Bf : J.current, d = b.contextTypes, f = (d = null !== d && void 0 !== d) ? Cf(a, e) : Af);\n b = new b(c, f);\n a.memoizedState = null !== b.state && void 0 !== b.state ? b.state : null;\n b.updater = Jg;\n a.stateNode = b;\n b._reactInternalFiber = a;\n d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = e, a.__reactInternalMemoizedMaskedChildContext = f);\n return b;\n}\n\nfunction Mg(a, b, c, d) {\n a = b.state;\n \"function\" === typeof b.componentWillReceiveProps && b.componentWillReceiveProps(c, d);\n \"function\" === typeof b.UNSAFE_componentWillReceiveProps && b.UNSAFE_componentWillReceiveProps(c, d);\n b.state !== a && Jg.enqueueReplaceState(b, b.state, null);\n}\n\nfunction Ng(a, b, c, d) {\n var e = a.stateNode;\n e.props = c;\n e.state = a.memoizedState;\n e.refs = Eg;\n ug(a);\n var f = b.contextType;\n \"object\" === typeof f && null !== f ? e.context = sg(f) : (f = L(b) ? Bf : J.current, e.context = Cf(a, f));\n zg(a, c, e, d);\n e.state = a.memoizedState;\n f = b.getDerivedStateFromProps;\n \"function\" === typeof f && (Fg(a, b, f, c), e.state = a.memoizedState);\n \"function\" === typeof b.getDerivedStateFromProps || \"function\" === typeof e.getSnapshotBeforeUpdate || \"function\" !== typeof e.UNSAFE_componentWillMount && \"function\" !== typeof e.componentWillMount || (b = e.state, \"function\" === typeof e.componentWillMount && e.componentWillMount(), \"function\" === typeof e.UNSAFE_componentWillMount && e.UNSAFE_componentWillMount(), b !== e.state && Jg.enqueueReplaceState(e, e.state, null), zg(a, c, e, d), e.state = a.memoizedState);\n \"function\" === typeof e.componentDidMount && (a.effectTag |= 4);\n}\n\nvar Og = Array.isArray;\n\nfunction Pg(a, b, c) {\n a = c.ref;\n\n if (null !== a && \"function\" !== typeof a && \"object\" !== typeof a) {\n if (c._owner) {\n c = c._owner;\n\n if (c) {\n if (1 !== c.tag) throw Error(u(309));\n var d = c.stateNode;\n }\n\n if (!d) throw Error(u(147, a));\n var e = \"\" + a;\n if (null !== b && null !== b.ref && \"function\" === typeof b.ref && b.ref._stringRef === e) return b.ref;\n\n b = function b(a) {\n var b = d.refs;\n b === Eg && (b = d.refs = {});\n null === a ? delete b[e] : b[e] = a;\n };\n\n b._stringRef = e;\n return b;\n }\n\n if (\"string\" !== typeof a) throw Error(u(284));\n if (!c._owner) throw Error(u(290, a));\n }\n\n return a;\n}\n\nfunction Qg(a, b) {\n if (\"textarea\" !== a.type) throw Error(u(31, \"[object Object]\" === Object.prototype.toString.call(b) ? \"object with keys {\" + Object.keys(b).join(\", \") + \"}\" : b, \"\"));\n}\n\nfunction Rg(a) {\n function b(b, c) {\n if (a) {\n var d = b.lastEffect;\n null !== d ? (d.nextEffect = c, b.lastEffect = c) : b.firstEffect = b.lastEffect = c;\n c.nextEffect = null;\n c.effectTag = 8;\n }\n }\n\n function c(c, d) {\n if (!a) return null;\n\n for (; null !== d;) {\n b(c, d), d = d.sibling;\n }\n\n return null;\n }\n\n function d(a, b) {\n for (a = new Map(); null !== b;) {\n null !== b.key ? a.set(b.key, b) : a.set(b.index, b), b = b.sibling;\n }\n\n return a;\n }\n\n function e(a, b) {\n a = Sg(a, b);\n a.index = 0;\n a.sibling = null;\n return a;\n }\n\n function f(b, c, d) {\n b.index = d;\n if (!a) return c;\n d = b.alternate;\n if (null !== d) return d = d.index, d < c ? (b.effectTag = 2, c) : d;\n b.effectTag = 2;\n return c;\n }\n\n function g(b) {\n a && null === b.alternate && (b.effectTag = 2);\n return b;\n }\n\n function h(a, b, c, d) {\n if (null === b || 6 !== b.tag) return b = Tg(c, a.mode, d), b.return = a, b;\n b = e(b, c);\n b.return = a;\n return b;\n }\n\n function k(a, b, c, d) {\n if (null !== b && b.elementType === c.type) return d = e(b, c.props), d.ref = Pg(a, b, c), d.return = a, d;\n d = Ug(c.type, c.key, c.props, null, a.mode, d);\n d.ref = Pg(a, b, c);\n d.return = a;\n return d;\n }\n\n function l(a, b, c, d) {\n if (null === b || 4 !== b.tag || b.stateNode.containerInfo !== c.containerInfo || b.stateNode.implementation !== c.implementation) return b = Vg(c, a.mode, d), b.return = a, b;\n b = e(b, c.children || []);\n b.return = a;\n return b;\n }\n\n function m(a, b, c, d, f) {\n if (null === b || 7 !== b.tag) return b = Wg(c, a.mode, d, f), b.return = a, b;\n b = e(b, c);\n b.return = a;\n return b;\n }\n\n function p(a, b, c) {\n if (\"string\" === typeof b || \"number\" === typeof b) return b = Tg(\"\" + b, a.mode, c), b.return = a, b;\n\n if (\"object\" === typeof b && null !== b) {\n switch (b.$$typeof) {\n case ra:\n return c = Ug(b.type, b.key, b.props, null, a.mode, c), c.ref = Pg(a, null, b), c.return = a, c;\n\n case sa:\n return b = Vg(b, a.mode, c), b.return = a, b;\n }\n\n if (Og(b) || Ga(b)) return b = Wg(b, a.mode, c, null), b.return = a, b;\n Qg(a, b);\n }\n\n return null;\n }\n\n function x(a, b, c, d) {\n var e = null !== b ? b.key : null;\n if (\"string\" === typeof c || \"number\" === typeof c) return null !== e ? null : h(a, b, \"\" + c, d);\n\n if (\"object\" === typeof c && null !== c) {\n switch (c.$$typeof) {\n case ra:\n return c.key === e ? c.type === ta ? m(a, b, c.props.children, d, e) : k(a, b, c, d) : null;\n\n case sa:\n return c.key === e ? l(a, b, c, d) : null;\n }\n\n if (Og(c) || Ga(c)) return null !== e ? null : m(a, b, c, d, null);\n Qg(a, c);\n }\n\n return null;\n }\n\n function z(a, b, c, d, e) {\n if (\"string\" === typeof d || \"number\" === typeof d) return a = a.get(c) || null, h(b, a, \"\" + d, e);\n\n if (\"object\" === typeof d && null !== d) {\n switch (d.$$typeof) {\n case ra:\n return a = a.get(null === d.key ? c : d.key) || null, d.type === ta ? m(b, a, d.props.children, e, d.key) : k(b, a, d, e);\n\n case sa:\n return a = a.get(null === d.key ? c : d.key) || null, l(b, a, d, e);\n }\n\n if (Og(d) || Ga(d)) return a = a.get(c) || null, m(b, a, d, e, null);\n Qg(b, d);\n }\n\n return null;\n }\n\n function ca(e, g, h, k) {\n for (var l = null, t = null, m = g, y = g = 0, A = null; null !== m && y < h.length; y++) {\n m.index > y ? (A = m, m = null) : A = m.sibling;\n var q = x(e, m, h[y], k);\n\n if (null === q) {\n null === m && (m = A);\n break;\n }\n\n a && m && null === q.alternate && b(e, m);\n g = f(q, g, y);\n null === t ? l = q : t.sibling = q;\n t = q;\n m = A;\n }\n\n if (y === h.length) return c(e, m), l;\n\n if (null === m) {\n for (; y < h.length; y++) {\n m = p(e, h[y], k), null !== m && (g = f(m, g, y), null === t ? l = m : t.sibling = m, t = m);\n }\n\n return l;\n }\n\n for (m = d(e, m); y < h.length; y++) {\n A = z(m, e, y, h[y], k), null !== A && (a && null !== A.alternate && m.delete(null === A.key ? y : A.key), g = f(A, g, y), null === t ? l = A : t.sibling = A, t = A);\n }\n\n a && m.forEach(function (a) {\n return b(e, a);\n });\n return l;\n }\n\n function D(e, g, h, l) {\n var k = Ga(h);\n if (\"function\" !== typeof k) throw Error(u(150));\n h = k.call(h);\n if (null == h) throw Error(u(151));\n\n for (var m = k = null, t = g, y = g = 0, A = null, q = h.next(); null !== t && !q.done; y++, q = h.next()) {\n t.index > y ? (A = t, t = null) : A = t.sibling;\n var D = x(e, t, q.value, l);\n\n if (null === D) {\n null === t && (t = A);\n break;\n }\n\n a && t && null === D.alternate && b(e, t);\n g = f(D, g, y);\n null === m ? k = D : m.sibling = D;\n m = D;\n t = A;\n }\n\n if (q.done) return c(e, t), k;\n\n if (null === t) {\n for (; !q.done; y++, q = h.next()) {\n q = p(e, q.value, l), null !== q && (g = f(q, g, y), null === m ? k = q : m.sibling = q, m = q);\n }\n\n return k;\n }\n\n for (t = d(e, t); !q.done; y++, q = h.next()) {\n q = z(t, e, y, q.value, l), null !== q && (a && null !== q.alternate && t.delete(null === q.key ? y : q.key), g = f(q, g, y), null === m ? k = q : m.sibling = q, m = q);\n }\n\n a && t.forEach(function (a) {\n return b(e, a);\n });\n return k;\n }\n\n return function (a, d, f, h) {\n var k = \"object\" === typeof f && null !== f && f.type === ta && null === f.key;\n k && (f = f.props.children);\n var l = \"object\" === typeof f && null !== f;\n if (l) switch (f.$$typeof) {\n case ra:\n a: {\n l = f.key;\n\n for (k = d; null !== k;) {\n if (k.key === l) {\n switch (k.tag) {\n case 7:\n if (f.type === ta) {\n c(a, k.sibling);\n d = e(k, f.props.children);\n d.return = a;\n a = d;\n break a;\n }\n\n break;\n\n default:\n if (k.elementType === f.type) {\n c(a, k.sibling);\n d = e(k, f.props);\n d.ref = Pg(a, k, f);\n d.return = a;\n a = d;\n break a;\n }\n\n }\n\n c(a, k);\n break;\n } else b(a, k);\n\n k = k.sibling;\n }\n\n f.type === ta ? (d = Wg(f.props.children, a.mode, h, f.key), d.return = a, a = d) : (h = Ug(f.type, f.key, f.props, null, a.mode, h), h.ref = Pg(a, d, f), h.return = a, a = h);\n }\n\n return g(a);\n\n case sa:\n a: {\n for (k = f.key; null !== d;) {\n if (d.key === k) {\n if (4 === d.tag && d.stateNode.containerInfo === f.containerInfo && d.stateNode.implementation === f.implementation) {\n c(a, d.sibling);\n d = e(d, f.children || []);\n d.return = a;\n a = d;\n break a;\n } else {\n c(a, d);\n break;\n }\n } else b(a, d);\n d = d.sibling;\n }\n\n d = Vg(f, a.mode, h);\n d.return = a;\n a = d;\n }\n\n return g(a);\n }\n if (\"string\" === typeof f || \"number\" === typeof f) return f = \"\" + f, null !== d && 6 === d.tag ? (c(a, d.sibling), d = e(d, f), d.return = a, a = d) : (c(a, d), d = Tg(f, a.mode, h), d.return = a, a = d), g(a);\n if (Og(f)) return ca(a, d, f, h);\n if (Ga(f)) return D(a, d, f, h);\n l && Qg(a, f);\n if (\"undefined\" === typeof f && !k) switch (a.tag) {\n case 1:\n case 0:\n throw a = a.type, Error(u(152, a.displayName || a.name || \"Component\"));\n }\n return c(a, d);\n };\n}\n\nvar Xg = Rg(!0),\n Yg = Rg(!1),\n Zg = {},\n $g = {\n current: Zg\n},\n ah = {\n current: Zg\n},\n bh = {\n current: Zg\n};\n\nfunction ch(a) {\n if (a === Zg) throw Error(u(174));\n return a;\n}\n\nfunction dh(a, b) {\n I(bh, b);\n I(ah, a);\n I($g, Zg);\n a = b.nodeType;\n\n switch (a) {\n case 9:\n case 11:\n b = (b = b.documentElement) ? b.namespaceURI : Ob(null, \"\");\n break;\n\n default:\n a = 8 === a ? b.parentNode : b, b = a.namespaceURI || null, a = a.tagName, b = Ob(b, a);\n }\n\n H($g);\n I($g, b);\n}\n\nfunction eh() {\n H($g);\n H(ah);\n H(bh);\n}\n\nfunction fh(a) {\n ch(bh.current);\n var b = ch($g.current);\n var c = Ob(b, a.type);\n b !== c && (I(ah, a), I($g, c));\n}\n\nfunction gh(a) {\n ah.current === a && (H($g), H(ah));\n}\n\nvar M = {\n current: 0\n};\n\nfunction hh(a) {\n for (var b = a; null !== b;) {\n if (13 === b.tag) {\n var c = b.memoizedState;\n if (null !== c && (c = c.dehydrated, null === c || c.data === Bd || c.data === Cd)) return b;\n } else if (19 === b.tag && void 0 !== b.memoizedProps.revealOrder) {\n if (0 !== (b.effectTag & 64)) return b;\n } else if (null !== b.child) {\n b.child.return = b;\n b = b.child;\n continue;\n }\n\n if (b === a) break;\n\n for (; null === b.sibling;) {\n if (null === b.return || b.return === a) return null;\n b = b.return;\n }\n\n b.sibling.return = b.return;\n b = b.sibling;\n }\n\n return null;\n}\n\nfunction ih(a, b) {\n return {\n responder: a,\n props: b\n };\n}\n\nvar jh = pa.ReactCurrentDispatcher,\n kh = pa.ReactCurrentBatchConfig,\n lh = 0,\n N = null,\n O = null,\n P = null,\n mh = !1;\n\nfunction Q() {\n throw Error(u(321));\n}\n\nfunction nh(a, b) {\n if (null === b) return !1;\n\n for (var c = 0; c < b.length && c < a.length; c++) {\n if (!$e(a[c], b[c])) return !1;\n }\n\n return !0;\n}\n\nfunction oh(a, b, c, d, e, f) {\n lh = f;\n N = b;\n b.memoizedState = null;\n b.updateQueue = null;\n b.expirationTime = 0;\n jh.current = null === a || null === a.memoizedState ? ph : qh;\n a = c(d, e);\n\n if (b.expirationTime === lh) {\n f = 0;\n\n do {\n b.expirationTime = 0;\n if (!(25 > f)) throw Error(u(301));\n f += 1;\n P = O = null;\n b.updateQueue = null;\n jh.current = rh;\n a = c(d, e);\n } while (b.expirationTime === lh);\n }\n\n jh.current = sh;\n b = null !== O && null !== O.next;\n lh = 0;\n P = O = N = null;\n mh = !1;\n if (b) throw Error(u(300));\n return a;\n}\n\nfunction th() {\n var a = {\n memoizedState: null,\n baseState: null,\n baseQueue: null,\n queue: null,\n next: null\n };\n null === P ? N.memoizedState = P = a : P = P.next = a;\n return P;\n}\n\nfunction uh() {\n if (null === O) {\n var a = N.alternate;\n a = null !== a ? a.memoizedState : null;\n } else a = O.next;\n\n var b = null === P ? N.memoizedState : P.next;\n if (null !== b) P = b, O = a;else {\n if (null === a) throw Error(u(310));\n O = a;\n a = {\n memoizedState: O.memoizedState,\n baseState: O.baseState,\n baseQueue: O.baseQueue,\n queue: O.queue,\n next: null\n };\n null === P ? N.memoizedState = P = a : P = P.next = a;\n }\n return P;\n}\n\nfunction vh(a, b) {\n return \"function\" === typeof b ? b(a) : b;\n}\n\nfunction wh(a) {\n var b = uh(),\n c = b.queue;\n if (null === c) throw Error(u(311));\n c.lastRenderedReducer = a;\n var d = O,\n e = d.baseQueue,\n f = c.pending;\n\n if (null !== f) {\n if (null !== e) {\n var g = e.next;\n e.next = f.next;\n f.next = g;\n }\n\n d.baseQueue = e = f;\n c.pending = null;\n }\n\n if (null !== e) {\n e = e.next;\n d = d.baseState;\n var h = g = f = null,\n k = e;\n\n do {\n var l = k.expirationTime;\n\n if (l < lh) {\n var m = {\n expirationTime: k.expirationTime,\n suspenseConfig: k.suspenseConfig,\n action: k.action,\n eagerReducer: k.eagerReducer,\n eagerState: k.eagerState,\n next: null\n };\n null === h ? (g = h = m, f = d) : h = h.next = m;\n l > N.expirationTime && (N.expirationTime = l, Bg(l));\n } else null !== h && (h = h.next = {\n expirationTime: 1073741823,\n suspenseConfig: k.suspenseConfig,\n action: k.action,\n eagerReducer: k.eagerReducer,\n eagerState: k.eagerState,\n next: null\n }), Ag(l, k.suspenseConfig), d = k.eagerReducer === a ? k.eagerState : a(d, k.action);\n\n k = k.next;\n } while (null !== k && k !== e);\n\n null === h ? f = d : h.next = g;\n $e(d, b.memoizedState) || (rg = !0);\n b.memoizedState = d;\n b.baseState = f;\n b.baseQueue = h;\n c.lastRenderedState = d;\n }\n\n return [b.memoizedState, c.dispatch];\n}\n\nfunction xh(a) {\n var b = uh(),\n c = b.queue;\n if (null === c) throw Error(u(311));\n c.lastRenderedReducer = a;\n var d = c.dispatch,\n e = c.pending,\n f = b.memoizedState;\n\n if (null !== e) {\n c.pending = null;\n var g = e = e.next;\n\n do {\n f = a(f, g.action), g = g.next;\n } while (g !== e);\n\n $e(f, b.memoizedState) || (rg = !0);\n b.memoizedState = f;\n null === b.baseQueue && (b.baseState = f);\n c.lastRenderedState = f;\n }\n\n return [f, d];\n}\n\nfunction yh(a) {\n var b = th();\n \"function\" === typeof a && (a = a());\n b.memoizedState = b.baseState = a;\n a = b.queue = {\n pending: null,\n dispatch: null,\n lastRenderedReducer: vh,\n lastRenderedState: a\n };\n a = a.dispatch = zh.bind(null, N, a);\n return [b.memoizedState, a];\n}\n\nfunction Ah(a, b, c, d) {\n a = {\n tag: a,\n create: b,\n destroy: c,\n deps: d,\n next: null\n };\n b = N.updateQueue;\n null === b ? (b = {\n lastEffect: null\n }, N.updateQueue = b, b.lastEffect = a.next = a) : (c = b.lastEffect, null === c ? b.lastEffect = a.next = a : (d = c.next, c.next = a, a.next = d, b.lastEffect = a));\n return a;\n}\n\nfunction Bh() {\n return uh().memoizedState;\n}\n\nfunction Ch(a, b, c, d) {\n var e = th();\n N.effectTag |= a;\n e.memoizedState = Ah(1 | b, c, void 0, void 0 === d ? null : d);\n}\n\nfunction Dh(a, b, c, d) {\n var e = uh();\n d = void 0 === d ? null : d;\n var f = void 0;\n\n if (null !== O) {\n var g = O.memoizedState;\n f = g.destroy;\n\n if (null !== d && nh(d, g.deps)) {\n Ah(b, c, f, d);\n return;\n }\n }\n\n N.effectTag |= a;\n e.memoizedState = Ah(1 | b, c, f, d);\n}\n\nfunction Eh(a, b) {\n return Ch(516, 4, a, b);\n}\n\nfunction Fh(a, b) {\n return Dh(516, 4, a, b);\n}\n\nfunction Gh(a, b) {\n return Dh(4, 2, a, b);\n}\n\nfunction Hh(a, b) {\n if (\"function\" === typeof b) return a = a(), b(a), function () {\n b(null);\n };\n if (null !== b && void 0 !== b) return a = a(), b.current = a, function () {\n b.current = null;\n };\n}\n\nfunction Ih(a, b, c) {\n c = null !== c && void 0 !== c ? c.concat([a]) : null;\n return Dh(4, 2, Hh.bind(null, b, a), c);\n}\n\nfunction Jh() {}\n\nfunction Kh(a, b) {\n th().memoizedState = [a, void 0 === b ? null : b];\n return a;\n}\n\nfunction Lh(a, b) {\n var c = uh();\n b = void 0 === b ? null : b;\n var d = c.memoizedState;\n if (null !== d && null !== b && nh(b, d[1])) return d[0];\n c.memoizedState = [a, b];\n return a;\n}\n\nfunction Mh(a, b) {\n var c = uh();\n b = void 0 === b ? null : b;\n var d = c.memoizedState;\n if (null !== d && null !== b && nh(b, d[1])) return d[0];\n a = a();\n c.memoizedState = [a, b];\n return a;\n}\n\nfunction Nh(a, b, c) {\n var d = ag();\n cg(98 > d ? 98 : d, function () {\n a(!0);\n });\n cg(97 < d ? 97 : d, function () {\n var d = kh.suspense;\n kh.suspense = void 0 === b ? null : b;\n\n try {\n a(!1), c();\n } finally {\n kh.suspense = d;\n }\n });\n}\n\nfunction zh(a, b, c) {\n var d = Gg(),\n e = Dg.suspense;\n d = Hg(d, a, e);\n e = {\n expirationTime: d,\n suspenseConfig: e,\n action: c,\n eagerReducer: null,\n eagerState: null,\n next: null\n };\n var f = b.pending;\n null === f ? e.next = e : (e.next = f.next, f.next = e);\n b.pending = e;\n f = a.alternate;\n if (a === N || null !== f && f === N) mh = !0, e.expirationTime = lh, N.expirationTime = lh;else {\n if (0 === a.expirationTime && (null === f || 0 === f.expirationTime) && (f = b.lastRenderedReducer, null !== f)) try {\n var g = b.lastRenderedState,\n h = f(g, c);\n e.eagerReducer = f;\n e.eagerState = h;\n if ($e(h, g)) return;\n } catch (k) {} finally {}\n Ig(a, d);\n }\n}\n\nvar sh = {\n readContext: sg,\n useCallback: Q,\n useContext: Q,\n useEffect: Q,\n useImperativeHandle: Q,\n useLayoutEffect: Q,\n useMemo: Q,\n useReducer: Q,\n useRef: Q,\n useState: Q,\n useDebugValue: Q,\n useResponder: Q,\n useDeferredValue: Q,\n useTransition: Q\n},\n ph = {\n readContext: sg,\n useCallback: Kh,\n useContext: sg,\n useEffect: Eh,\n useImperativeHandle: function useImperativeHandle(a, b, c) {\n c = null !== c && void 0 !== c ? c.concat([a]) : null;\n return Ch(4, 2, Hh.bind(null, b, a), c);\n },\n useLayoutEffect: function useLayoutEffect(a, b) {\n return Ch(4, 2, a, b);\n },\n useMemo: function useMemo(a, b) {\n var c = th();\n b = void 0 === b ? null : b;\n a = a();\n c.memoizedState = [a, b];\n return a;\n },\n useReducer: function useReducer(a, b, c) {\n var d = th();\n b = void 0 !== c ? c(b) : b;\n d.memoizedState = d.baseState = b;\n a = d.queue = {\n pending: null,\n dispatch: null,\n lastRenderedReducer: a,\n lastRenderedState: b\n };\n a = a.dispatch = zh.bind(null, N, a);\n return [d.memoizedState, a];\n },\n useRef: function useRef(a) {\n var b = th();\n a = {\n current: a\n };\n return b.memoizedState = a;\n },\n useState: yh,\n useDebugValue: Jh,\n useResponder: ih,\n useDeferredValue: function useDeferredValue(a, b) {\n var c = yh(a),\n d = c[0],\n e = c[1];\n Eh(function () {\n var c = kh.suspense;\n kh.suspense = void 0 === b ? null : b;\n\n try {\n e(a);\n } finally {\n kh.suspense = c;\n }\n }, [a, b]);\n return d;\n },\n useTransition: function useTransition(a) {\n var b = yh(!1),\n c = b[0];\n b = b[1];\n return [Kh(Nh.bind(null, b, a), [b, a]), c];\n }\n},\n qh = {\n readContext: sg,\n useCallback: Lh,\n useContext: sg,\n useEffect: Fh,\n useImperativeHandle: Ih,\n useLayoutEffect: Gh,\n useMemo: Mh,\n useReducer: wh,\n useRef: Bh,\n useState: function useState() {\n return wh(vh);\n },\n useDebugValue: Jh,\n useResponder: ih,\n useDeferredValue: function useDeferredValue(a, b) {\n var c = wh(vh),\n d = c[0],\n e = c[1];\n Fh(function () {\n var c = kh.suspense;\n kh.suspense = void 0 === b ? null : b;\n\n try {\n e(a);\n } finally {\n kh.suspense = c;\n }\n }, [a, b]);\n return d;\n },\n useTransition: function useTransition(a) {\n var b = wh(vh),\n c = b[0];\n b = b[1];\n return [Lh(Nh.bind(null, b, a), [b, a]), c];\n }\n},\n rh = {\n readContext: sg,\n useCallback: Lh,\n useContext: sg,\n useEffect: Fh,\n useImperativeHandle: Ih,\n useLayoutEffect: Gh,\n useMemo: Mh,\n useReducer: xh,\n useRef: Bh,\n useState: function useState() {\n return xh(vh);\n },\n useDebugValue: Jh,\n useResponder: ih,\n useDeferredValue: function useDeferredValue(a, b) {\n var c = xh(vh),\n d = c[0],\n e = c[1];\n Fh(function () {\n var c = kh.suspense;\n kh.suspense = void 0 === b ? null : b;\n\n try {\n e(a);\n } finally {\n kh.suspense = c;\n }\n }, [a, b]);\n return d;\n },\n useTransition: function useTransition(a) {\n var b = xh(vh),\n c = b[0];\n b = b[1];\n return [Lh(Nh.bind(null, b, a), [b, a]), c];\n }\n},\n Oh = null,\n Ph = null,\n Qh = !1;\n\nfunction Rh(a, b) {\n var c = Sh(5, null, null, 0);\n c.elementType = \"DELETED\";\n c.type = \"DELETED\";\n c.stateNode = b;\n c.return = a;\n c.effectTag = 8;\n null !== a.lastEffect ? (a.lastEffect.nextEffect = c, a.lastEffect = c) : a.firstEffect = a.lastEffect = c;\n}\n\nfunction Th(a, b) {\n switch (a.tag) {\n case 5:\n var c = a.type;\n b = 1 !== b.nodeType || c.toLowerCase() !== b.nodeName.toLowerCase() ? null : b;\n return null !== b ? (a.stateNode = b, !0) : !1;\n\n case 6:\n return b = \"\" === a.pendingProps || 3 !== b.nodeType ? null : b, null !== b ? (a.stateNode = b, !0) : !1;\n\n case 13:\n return !1;\n\n default:\n return !1;\n }\n}\n\nfunction Uh(a) {\n if (Qh) {\n var b = Ph;\n\n if (b) {\n var c = b;\n\n if (!Th(a, b)) {\n b = Jd(c.nextSibling);\n\n if (!b || !Th(a, b)) {\n a.effectTag = a.effectTag & -1025 | 2;\n Qh = !1;\n Oh = a;\n return;\n }\n\n Rh(Oh, c);\n }\n\n Oh = a;\n Ph = Jd(b.firstChild);\n } else a.effectTag = a.effectTag & -1025 | 2, Qh = !1, Oh = a;\n }\n}\n\nfunction Vh(a) {\n for (a = a.return; null !== a && 5 !== a.tag && 3 !== a.tag && 13 !== a.tag;) {\n a = a.return;\n }\n\n Oh = a;\n}\n\nfunction Wh(a) {\n if (a !== Oh) return !1;\n if (!Qh) return Vh(a), Qh = !0, !1;\n var b = a.type;\n if (5 !== a.tag || \"head\" !== b && \"body\" !== b && !Gd(b, a.memoizedProps)) for (b = Ph; b;) {\n Rh(a, b), b = Jd(b.nextSibling);\n }\n Vh(a);\n\n if (13 === a.tag) {\n a = a.memoizedState;\n a = null !== a ? a.dehydrated : null;\n if (!a) throw Error(u(317));\n\n a: {\n a = a.nextSibling;\n\n for (b = 0; a;) {\n if (8 === a.nodeType) {\n var c = a.data;\n\n if (c === Ad) {\n if (0 === b) {\n Ph = Jd(a.nextSibling);\n break a;\n }\n\n b--;\n } else c !== zd && c !== Cd && c !== Bd || b++;\n }\n\n a = a.nextSibling;\n }\n\n Ph = null;\n }\n } else Ph = Oh ? Jd(a.stateNode.nextSibling) : null;\n\n return !0;\n}\n\nfunction Xh() {\n Ph = Oh = null;\n Qh = !1;\n}\n\nvar Yh = pa.ReactCurrentOwner,\n rg = !1;\n\nfunction R(a, b, c, d) {\n b.child = null === a ? Yg(b, null, c, d) : Xg(b, a.child, c, d);\n}\n\nfunction Zh(a, b, c, d, e) {\n c = c.render;\n var f = b.ref;\n qg(b, e);\n d = oh(a, b, c, d, f, e);\n if (null !== a && !rg) return b.updateQueue = a.updateQueue, b.effectTag &= -517, a.expirationTime <= e && (a.expirationTime = 0), $h(a, b, e);\n b.effectTag |= 1;\n R(a, b, d, e);\n return b.child;\n}\n\nfunction ai(a, b, c, d, e, f) {\n if (null === a) {\n var g = c.type;\n if (\"function\" === typeof g && !bi(g) && void 0 === g.defaultProps && null === c.compare && void 0 === c.defaultProps) return b.tag = 15, b.type = g, ci(a, b, g, d, e, f);\n a = Ug(c.type, null, d, null, b.mode, f);\n a.ref = b.ref;\n a.return = b;\n return b.child = a;\n }\n\n g = a.child;\n if (e < f && (e = g.memoizedProps, c = c.compare, c = null !== c ? c : bf, c(e, d) && a.ref === b.ref)) return $h(a, b, f);\n b.effectTag |= 1;\n a = Sg(g, d);\n a.ref = b.ref;\n a.return = b;\n return b.child = a;\n}\n\nfunction ci(a, b, c, d, e, f) {\n return null !== a && bf(a.memoizedProps, d) && a.ref === b.ref && (rg = !1, e < f) ? (b.expirationTime = a.expirationTime, $h(a, b, f)) : di(a, b, c, d, f);\n}\n\nfunction ei(a, b) {\n var c = b.ref;\n if (null === a && null !== c || null !== a && a.ref !== c) b.effectTag |= 128;\n}\n\nfunction di(a, b, c, d, e) {\n var f = L(c) ? Bf : J.current;\n f = Cf(b, f);\n qg(b, e);\n c = oh(a, b, c, d, f, e);\n if (null !== a && !rg) return b.updateQueue = a.updateQueue, b.effectTag &= -517, a.expirationTime <= e && (a.expirationTime = 0), $h(a, b, e);\n b.effectTag |= 1;\n R(a, b, c, e);\n return b.child;\n}\n\nfunction fi(a, b, c, d, e) {\n if (L(c)) {\n var f = !0;\n Gf(b);\n } else f = !1;\n\n qg(b, e);\n if (null === b.stateNode) null !== a && (a.alternate = null, b.alternate = null, b.effectTag |= 2), Lg(b, c, d), Ng(b, c, d, e), d = !0;else if (null === a) {\n var g = b.stateNode,\n h = b.memoizedProps;\n g.props = h;\n var k = g.context,\n l = c.contextType;\n \"object\" === typeof l && null !== l ? l = sg(l) : (l = L(c) ? Bf : J.current, l = Cf(b, l));\n var m = c.getDerivedStateFromProps,\n p = \"function\" === typeof m || \"function\" === typeof g.getSnapshotBeforeUpdate;\n p || \"function\" !== typeof g.UNSAFE_componentWillReceiveProps && \"function\" !== typeof g.componentWillReceiveProps || (h !== d || k !== l) && Mg(b, g, d, l);\n tg = !1;\n var x = b.memoizedState;\n g.state = x;\n zg(b, d, g, e);\n k = b.memoizedState;\n h !== d || x !== k || K.current || tg ? (\"function\" === typeof m && (Fg(b, c, m, d), k = b.memoizedState), (h = tg || Kg(b, c, h, d, x, k, l)) ? (p || \"function\" !== typeof g.UNSAFE_componentWillMount && \"function\" !== typeof g.componentWillMount || (\"function\" === typeof g.componentWillMount && g.componentWillMount(), \"function\" === typeof g.UNSAFE_componentWillMount && g.UNSAFE_componentWillMount()), \"function\" === typeof g.componentDidMount && (b.effectTag |= 4)) : (\"function\" === typeof g.componentDidMount && (b.effectTag |= 4), b.memoizedProps = d, b.memoizedState = k), g.props = d, g.state = k, g.context = l, d = h) : (\"function\" === typeof g.componentDidMount && (b.effectTag |= 4), d = !1);\n } else g = b.stateNode, vg(a, b), h = b.memoizedProps, g.props = b.type === b.elementType ? h : ig(b.type, h), k = g.context, l = c.contextType, \"object\" === typeof l && null !== l ? l = sg(l) : (l = L(c) ? Bf : J.current, l = Cf(b, l)), m = c.getDerivedStateFromProps, (p = \"function\" === typeof m || \"function\" === typeof g.getSnapshotBeforeUpdate) || \"function\" !== typeof g.UNSAFE_componentWillReceiveProps && \"function\" !== typeof g.componentWillReceiveProps || (h !== d || k !== l) && Mg(b, g, d, l), tg = !1, k = b.memoizedState, g.state = k, zg(b, d, g, e), x = b.memoizedState, h !== d || k !== x || K.current || tg ? (\"function\" === typeof m && (Fg(b, c, m, d), x = b.memoizedState), (m = tg || Kg(b, c, h, d, k, x, l)) ? (p || \"function\" !== typeof g.UNSAFE_componentWillUpdate && \"function\" !== typeof g.componentWillUpdate || (\"function\" === typeof g.componentWillUpdate && g.componentWillUpdate(d, x, l), \"function\" === typeof g.UNSAFE_componentWillUpdate && g.UNSAFE_componentWillUpdate(d, x, l)), \"function\" === typeof g.componentDidUpdate && (b.effectTag |= 4), \"function\" === typeof g.getSnapshotBeforeUpdate && (b.effectTag |= 256)) : (\"function\" !== typeof g.componentDidUpdate || h === a.memoizedProps && k === a.memoizedState || (b.effectTag |= 4), \"function\" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && k === a.memoizedState || (b.effectTag |= 256), b.memoizedProps = d, b.memoizedState = x), g.props = d, g.state = x, g.context = l, d = m) : (\"function\" !== typeof g.componentDidUpdate || h === a.memoizedProps && k === a.memoizedState || (b.effectTag |= 4), \"function\" !== typeof g.getSnapshotBeforeUpdate || h === a.memoizedProps && k === a.memoizedState || (b.effectTag |= 256), d = !1);\n return gi(a, b, c, d, f, e);\n}\n\nfunction gi(a, b, c, d, e, f) {\n ei(a, b);\n var g = 0 !== (b.effectTag & 64);\n if (!d && !g) return e && Hf(b, c, !1), $h(a, b, f);\n d = b.stateNode;\n Yh.current = b;\n var h = g && \"function\" !== typeof c.getDerivedStateFromError ? null : d.render();\n b.effectTag |= 1;\n null !== a && g ? (b.child = Xg(b, a.child, null, f), b.child = Xg(b, null, h, f)) : R(a, b, h, f);\n b.memoizedState = d.state;\n e && Hf(b, c, !0);\n return b.child;\n}\n\nfunction hi(a) {\n var b = a.stateNode;\n b.pendingContext ? Ef(a, b.pendingContext, b.pendingContext !== b.context) : b.context && Ef(a, b.context, !1);\n dh(a, b.containerInfo);\n}\n\nvar ii = {\n dehydrated: null,\n retryTime: 0\n};\n\nfunction ji(a, b, c) {\n var d = b.mode,\n e = b.pendingProps,\n f = M.current,\n g = !1,\n h;\n (h = 0 !== (b.effectTag & 64)) || (h = 0 !== (f & 2) && (null === a || null !== a.memoizedState));\n h ? (g = !0, b.effectTag &= -65) : null !== a && null === a.memoizedState || void 0 === e.fallback || !0 === e.unstable_avoidThisFallback || (f |= 1);\n I(M, f & 1);\n\n if (null === a) {\n void 0 !== e.fallback && Uh(b);\n\n if (g) {\n g = e.fallback;\n e = Wg(null, d, 0, null);\n e.return = b;\n if (0 === (b.mode & 2)) for (a = null !== b.memoizedState ? b.child.child : b.child, e.child = a; null !== a;) {\n a.return = e, a = a.sibling;\n }\n c = Wg(g, d, c, null);\n c.return = b;\n e.sibling = c;\n b.memoizedState = ii;\n b.child = e;\n return c;\n }\n\n d = e.children;\n b.memoizedState = null;\n return b.child = Yg(b, null, d, c);\n }\n\n if (null !== a.memoizedState) {\n a = a.child;\n d = a.sibling;\n\n if (g) {\n e = e.fallback;\n c = Sg(a, a.pendingProps);\n c.return = b;\n if (0 === (b.mode & 2) && (g = null !== b.memoizedState ? b.child.child : b.child, g !== a.child)) for (c.child = g; null !== g;) {\n g.return = c, g = g.sibling;\n }\n d = Sg(d, e);\n d.return = b;\n c.sibling = d;\n c.childExpirationTime = 0;\n b.memoizedState = ii;\n b.child = c;\n return d;\n }\n\n c = Xg(b, a.child, e.children, c);\n b.memoizedState = null;\n return b.child = c;\n }\n\n a = a.child;\n\n if (g) {\n g = e.fallback;\n e = Wg(null, d, 0, null);\n e.return = b;\n e.child = a;\n null !== a && (a.return = e);\n if (0 === (b.mode & 2)) for (a = null !== b.memoizedState ? b.child.child : b.child, e.child = a; null !== a;) {\n a.return = e, a = a.sibling;\n }\n c = Wg(g, d, c, null);\n c.return = b;\n e.sibling = c;\n c.effectTag |= 2;\n e.childExpirationTime = 0;\n b.memoizedState = ii;\n b.child = e;\n return c;\n }\n\n b.memoizedState = null;\n return b.child = Xg(b, a, e.children, c);\n}\n\nfunction ki(a, b) {\n a.expirationTime < b && (a.expirationTime = b);\n var c = a.alternate;\n null !== c && c.expirationTime < b && (c.expirationTime = b);\n pg(a.return, b);\n}\n\nfunction li(a, b, c, d, e, f) {\n var g = a.memoizedState;\n null === g ? a.memoizedState = {\n isBackwards: b,\n rendering: null,\n renderingStartTime: 0,\n last: d,\n tail: c,\n tailExpiration: 0,\n tailMode: e,\n lastEffect: f\n } : (g.isBackwards = b, g.rendering = null, g.renderingStartTime = 0, g.last = d, g.tail = c, g.tailExpiration = 0, g.tailMode = e, g.lastEffect = f);\n}\n\nfunction mi(a, b, c) {\n var d = b.pendingProps,\n e = d.revealOrder,\n f = d.tail;\n R(a, b, d.children, c);\n d = M.current;\n if (0 !== (d & 2)) d = d & 1 | 2, b.effectTag |= 64;else {\n if (null !== a && 0 !== (a.effectTag & 64)) a: for (a = b.child; null !== a;) {\n if (13 === a.tag) null !== a.memoizedState && ki(a, c);else if (19 === a.tag) ki(a, c);else if (null !== a.child) {\n a.child.return = a;\n a = a.child;\n continue;\n }\n if (a === b) break a;\n\n for (; null === a.sibling;) {\n if (null === a.return || a.return === b) break a;\n a = a.return;\n }\n\n a.sibling.return = a.return;\n a = a.sibling;\n }\n d &= 1;\n }\n I(M, d);\n if (0 === (b.mode & 2)) b.memoizedState = null;else switch (e) {\n case \"forwards\":\n c = b.child;\n\n for (e = null; null !== c;) {\n a = c.alternate, null !== a && null === hh(a) && (e = c), c = c.sibling;\n }\n\n c = e;\n null === c ? (e = b.child, b.child = null) : (e = c.sibling, c.sibling = null);\n li(b, !1, e, c, f, b.lastEffect);\n break;\n\n case \"backwards\":\n c = null;\n e = b.child;\n\n for (b.child = null; null !== e;) {\n a = e.alternate;\n\n if (null !== a && null === hh(a)) {\n b.child = e;\n break;\n }\n\n a = e.sibling;\n e.sibling = c;\n c = e;\n e = a;\n }\n\n li(b, !0, c, null, f, b.lastEffect);\n break;\n\n case \"together\":\n li(b, !1, null, null, void 0, b.lastEffect);\n break;\n\n default:\n b.memoizedState = null;\n }\n return b.child;\n}\n\nfunction $h(a, b, c) {\n null !== a && (b.dependencies = a.dependencies);\n var d = b.expirationTime;\n 0 !== d && Bg(d);\n if (b.childExpirationTime < c) return null;\n if (null !== a && b.child !== a.child) throw Error(u(153));\n\n if (null !== b.child) {\n a = b.child;\n c = Sg(a, a.pendingProps);\n b.child = c;\n\n for (c.return = b; null !== a.sibling;) {\n a = a.sibling, c = c.sibling = Sg(a, a.pendingProps), c.return = b;\n }\n\n c.sibling = null;\n }\n\n return b.child;\n}\n\nvar ni, oi, pi, qi;\n\nni = function ni(a, b) {\n for (var c = b.child; null !== c;) {\n if (5 === c.tag || 6 === c.tag) a.appendChild(c.stateNode);else if (4 !== c.tag && null !== c.child) {\n c.child.return = c;\n c = c.child;\n continue;\n }\n if (c === b) break;\n\n for (; null === c.sibling;) {\n if (null === c.return || c.return === b) return;\n c = c.return;\n }\n\n c.sibling.return = c.return;\n c = c.sibling;\n }\n};\n\noi = function oi() {};\n\npi = function pi(a, b, c, d, e) {\n var f = a.memoizedProps;\n\n if (f !== d) {\n var g = b.stateNode;\n ch($g.current);\n a = null;\n\n switch (c) {\n case \"input\":\n f = zb(g, f);\n d = zb(g, d);\n a = [];\n break;\n\n case \"option\":\n f = Gb(g, f);\n d = Gb(g, d);\n a = [];\n break;\n\n case \"select\":\n f = n({}, f, {\n value: void 0\n });\n d = n({}, d, {\n value: void 0\n });\n a = [];\n break;\n\n case \"textarea\":\n f = Ib(g, f);\n d = Ib(g, d);\n a = [];\n break;\n\n default:\n \"function\" !== typeof f.onClick && \"function\" === typeof d.onClick && (g.onclick = sd);\n }\n\n od(c, d);\n var h, k;\n c = null;\n\n for (h in f) {\n if (!d.hasOwnProperty(h) && f.hasOwnProperty(h) && null != f[h]) if (\"style\" === h) for (k in g = f[h], g) {\n g.hasOwnProperty(k) && (c || (c = {}), c[k] = \"\");\n } else \"dangerouslySetInnerHTML\" !== h && \"children\" !== h && \"suppressContentEditableWarning\" !== h && \"suppressHydrationWarning\" !== h && \"autoFocus\" !== h && (Qa.hasOwnProperty(h) ? a || (a = []) : (a = a || []).push(h, null));\n }\n\n for (h in d) {\n var l = d[h];\n g = null != f ? f[h] : void 0;\n if (d.hasOwnProperty(h) && l !== g && (null != l || null != g)) if (\"style\" === h) {\n if (g) {\n for (k in g) {\n !g.hasOwnProperty(k) || l && l.hasOwnProperty(k) || (c || (c = {}), c[k] = \"\");\n }\n\n for (k in l) {\n l.hasOwnProperty(k) && g[k] !== l[k] && (c || (c = {}), c[k] = l[k]);\n }\n } else c || (a || (a = []), a.push(h, c)), c = l;\n } else \"dangerouslySetInnerHTML\" === h ? (l = l ? l.__html : void 0, g = g ? g.__html : void 0, null != l && g !== l && (a = a || []).push(h, l)) : \"children\" === h ? g === l || \"string\" !== typeof l && \"number\" !== typeof l || (a = a || []).push(h, \"\" + l) : \"suppressContentEditableWarning\" !== h && \"suppressHydrationWarning\" !== h && (Qa.hasOwnProperty(h) ? (null != l && rd(e, h), a || g === l || (a = [])) : (a = a || []).push(h, l));\n }\n\n c && (a = a || []).push(\"style\", c);\n e = a;\n if (b.updateQueue = e) b.effectTag |= 4;\n }\n};\n\nqi = function qi(a, b, c, d) {\n c !== d && (b.effectTag |= 4);\n};\n\nfunction ri(a, b) {\n switch (a.tailMode) {\n case \"hidden\":\n b = a.tail;\n\n for (var c = null; null !== b;) {\n null !== b.alternate && (c = b), b = b.sibling;\n }\n\n null === c ? a.tail = null : c.sibling = null;\n break;\n\n case \"collapsed\":\n c = a.tail;\n\n for (var d = null; null !== c;) {\n null !== c.alternate && (d = c), c = c.sibling;\n }\n\n null === d ? b || null === a.tail ? a.tail = null : a.tail.sibling = null : d.sibling = null;\n }\n}\n\nfunction si(a, b, c) {\n var d = b.pendingProps;\n\n switch (b.tag) {\n case 2:\n case 16:\n case 15:\n case 0:\n case 11:\n case 7:\n case 8:\n case 12:\n case 9:\n case 14:\n return null;\n\n case 1:\n return L(b.type) && Df(), null;\n\n case 3:\n return eh(), H(K), H(J), c = b.stateNode, c.pendingContext && (c.context = c.pendingContext, c.pendingContext = null), null !== a && null !== a.child || !Wh(b) || (b.effectTag |= 4), oi(b), null;\n\n case 5:\n gh(b);\n c = ch(bh.current);\n var e = b.type;\n if (null !== a && null != b.stateNode) pi(a, b, e, d, c), a.ref !== b.ref && (b.effectTag |= 128);else {\n if (!d) {\n if (null === b.stateNode) throw Error(u(166));\n return null;\n }\n\n a = ch($g.current);\n\n if (Wh(b)) {\n d = b.stateNode;\n e = b.type;\n var f = b.memoizedProps;\n d[Md] = b;\n d[Nd] = f;\n\n switch (e) {\n case \"iframe\":\n case \"object\":\n case \"embed\":\n F(\"load\", d);\n break;\n\n case \"video\":\n case \"audio\":\n for (a = 0; a < ac.length; a++) {\n F(ac[a], d);\n }\n\n break;\n\n case \"source\":\n F(\"error\", d);\n break;\n\n case \"img\":\n case \"image\":\n case \"link\":\n F(\"error\", d);\n F(\"load\", d);\n break;\n\n case \"form\":\n F(\"reset\", d);\n F(\"submit\", d);\n break;\n\n case \"details\":\n F(\"toggle\", d);\n break;\n\n case \"input\":\n Ab(d, f);\n F(\"invalid\", d);\n rd(c, \"onChange\");\n break;\n\n case \"select\":\n d._wrapperState = {\n wasMultiple: !!f.multiple\n };\n F(\"invalid\", d);\n rd(c, \"onChange\");\n break;\n\n case \"textarea\":\n Jb(d, f), F(\"invalid\", d), rd(c, \"onChange\");\n }\n\n od(e, f);\n a = null;\n\n for (var g in f) {\n if (f.hasOwnProperty(g)) {\n var h = f[g];\n \"children\" === g ? \"string\" === typeof h ? d.textContent !== h && (a = [\"children\", h]) : \"number\" === typeof h && d.textContent !== \"\" + h && (a = [\"children\", \"\" + h]) : Qa.hasOwnProperty(g) && null != h && rd(c, g);\n }\n }\n\n switch (e) {\n case \"input\":\n xb(d);\n Eb(d, f, !0);\n break;\n\n case \"textarea\":\n xb(d);\n Lb(d);\n break;\n\n case \"select\":\n case \"option\":\n break;\n\n default:\n \"function\" === typeof f.onClick && (d.onclick = sd);\n }\n\n c = a;\n b.updateQueue = c;\n null !== c && (b.effectTag |= 4);\n } else {\n g = 9 === c.nodeType ? c : c.ownerDocument;\n a === qd && (a = Nb(e));\n a === qd ? \"script\" === e ? (a = g.createElement(\"div\"), a.innerHTML = \"