/*
                 对矩阵进行插值时，需要保证矩阵不为空，为空则使用单位矩阵
                 TODO: 二维和三维场景下单位矩阵不同，之后 WebGL 版需要做进一步处理
                 */

/*
        * Assesses the query, turning on all handlers if it matches, turning them off if it doesn't match
        */

/*
      R pretty:
      https://svn.r-project.org/R/trunk/src/appl/pretty.c
      https://www.rdocumentation.org/packages/base/versions/3.5.2/topics/pretty
      */

/*
     * 开启或者关闭动画。
     *
     * ```ts
     * view.animate(false);
     * ```
     *
     * @param status 动画状态，true 表示开始，false 表示关闭
     * @returns View
     */

/*
   <div style="width: 50px;height: 100px;overflow: hidden">
   <div style="width: 50px;height: 100px;position: relative;" id="d6">
   元素 6 高 100px 宽 50px<br/>
   </div>
   </div>
   */

/*
  connect is a facade over connectAdvanced. It turns its args into a compatible
  selectorFactory, which has the signature:

    (dispatch, options) => (nextState, nextOwnProps) => nextFinalProps
  
  connect passes its args to connectAdvanced as options, which will in turn pass them to
  selectorFactory each time a Connect component instance is instantiated or hot reloaded.

  selectorFactory returns a final props selector from its mapStateToProps,
  mapStateToPropsFactories, mapDispatchToProps, mapDispatchToPropsFactories, mergeProps,
  mergePropsFactories, and pure args.

  The resulting final props selector is called by the Connect component instance whenever
  it receives new props or store state.
 */

/*
  options.target         - name of the target object
  options.global         - target is the global object
  options.stat           - export as static methods of target
  options.proto          - export as prototype methods of target
  options.real           - real prototype method for the `pure` version
  options.forced         - export even if the native feature is available
  options.bind           - bind methods to the target, required for the `pure` version
  options.wrap           - wrap constructors to preventing global pollution, required for the `pure` version
  options.unsafe         - use the simple assignment of property instead of delete + defineProperty
  options.sham           - add a flag to not completely full polyfills
  options.enumerable     - export as enumerable property
  options.dontCallGetSet - prevent calling a getter on target
  options.name           - the .name of the function if it does not match the key
*/

/*
  selectorFactory is a func that is responsible for returning the selector function used to
  compute new props from state, props, and dispatch. For example:
      export default connectAdvanced((dispatch, options) => (state, props) => ({
      thing: state.things[props.thingId],
      saveThing: fields => dispatch(actionCreators.saveThing(props.thingId, fields)),
    }))(YourComponent)
    Access to dispatch is provided to the factory so selectorFactories can bind actionCreators
  outside of their selector as an optimization. Options passed to connectAdvanced are passed to
  the selectorFactory, along with displayName and WrappedComponent, as the second argument.
    Note that selectorFactory is responsible for all caching/memoization of inbound and outbound
  props. Do not use connectAdvanced directly without memoizing results between calls to your
  selector, otherwise the Connect component will re-render on every state or props change.
*/

/*
 *  根据如下规则尝试放置label
 *                5
 *        ------------------
 *        |    1   |   0   |
 *    8   —————————4————————   7
 *        |    2   |   3   |
 *        ——————————————————
 *                 6
 */

/*
 * Device is an iPhone
 *
 * @type {Boolean}
 * @constant
 * @private
 */

/*
 * base64-arraybuffer
 * https://github.com/niklasvh/base64-arraybuffer
 *
 * Copyright (c) 2012 Niklas von Hertzen
 * Licensed under the MIT license.
 */

/*
 * https://en.wikipedia.org/wiki/Levenshtein_distance
 * 计算两条path的编辑距离
 */

/*
 * 抽取pathSegment中的关键点
 * M,L,A,Q,H,V一个端点
 * Q, S抽取一个端点，一个控制点
 * C抽取一个端点，两个控制点
 */

/*
 Modernizr 3.0.0pre (Custom Build) | MIT
*/

/*
 得到元素的大小信息
 @param elem
 @param name
 @param {String} [extra]  'padding' : (css width) + padding
 'border' : (css width) + padding + border
 'margin' : (css width) + padding + border + margin
 */

/*
Breaks a Javascript string into individual user-perceived "characters" 
called extended grapheme clusters by implementing the Unicode UAX-29 standard, version 10.0.0

Usage:
var splitter = new GraphemeSplitter();
//returns an array of strings, one string for each grapheme cluster
var graphemes = splitter.splitGraphemes(string); 

*/

/*
object-assign
(c) Sindre Sorhus
@license MIT
*/

/* #__PURE__ */

/* , init */

/* , mapfn = undefined, thisArg = undefined */

/* , that = undefined */

/* , thisArg */

/* . */

/* .Color */

/* .DefinedInfo */

/* .HOUR */

/* .Info */

/* .MINUTE */

/* .MONTH */

/* .Rgb */

/* .SECOND */

/* .YEAR */

/* .addFormatToken */

/* .addParseToken */

/* .addRegexToken */

/* .addUnitAlias */

/* .addUnitPriority */

/* .addWeekParseToken */

/* .asciiAlpha */

/* .asciiAlphanumeric */

/* .asciiControl */

/* .asciiDigit */

/* .basis */

/* .blankLine */

/* .classifyCharacter */

/* .color */

/* .combineExtensions */

/* .containerPhrasing */

/* .content */

/* .convert */

/* .createLocalOrUTC */

/* .createState */

/* .createStore */

/* .createTokenizer */

/* .createUTC */

/* .createUTCDate */

/* .daysInMonth */

/* .daysInYear */

/* .decodeNamedCharacterReference */

/* .decodeNumericCharacterReference */

/* .decodeString */

/* .defaultMemoize */

/* .defaultSchema */

/* .definitions */

/* .degrees */

/* .destroyFns */

/* .destroyFns.length */

/* .destroyFns.push */

/* .destroyFns.splice */

/* .document */

/* .extend */

/* .factorySpace */

/* .find */

/* .flow */

/* .footer */

/* .formattingTokens */

/* .fromMarkdown */

/* .fromParse5 */

/* .gamma */

/* .generated */

/* .genericArray */

/* .get */

/* .getConfirmLocale */

/* .getPrioritizedUnits */

/* .gfm */

/* .gfmAutolinkLiteral */

/* .gfmAutolinkLiteralFromMarkdown */

/* .gfmAutolinkLiteralToMarkdown */

/* .gfmFootnote */

/* .gfmFootnoteFromMarkdown */

/* .gfmFootnoteToMarkdown */

/* .gfmFromMarkdown */

/* .gfmStrikethrough */

/* .gfmStrikethroughFromMarkdown */

/* .gfmStrikethroughToMarkdown */

/* .gfmTable */

/* .gfmTableFromMarkdown */

/* .gfmTableToMarkdown */

/* .gfmTaskListItem */

/* .gfmTaskListItemFromMarkdown */

/* .gfmTaskListItemToMarkdown */

/* .gfmToMarkdown */

/* .handlers */

/* .hcl */

/* .hooks.deprecationHandler */

/* .hooks.momentProperties */

/* .hooks.parseTwoDigitYear */

/* .hooks.suppressDeprecationWarnings */

/* .hooks.updateOffset */

/* .hsl */

/* .html */

/* .htmlVoidElements.includes */

/* .hue */

/* .inlineCode */

/* .isLeapYear */

/* .isNumberArray */

/* .isUrl */

/* .location */

/* .makeGetSet */

/* .markdownLineEnding */

/* .markdownLineEndingOrSpace */

/* .markdownSpace */

/* .markdownTable */

/* .match1to2 */

/* .match1to4 */

/* .match1to6 */

/* .match2 */

/* .match3to4 */

/* .match4 */

/* .match5to6 */

/* .match6 */

/* .matchSigned */

/* .matchWord */

/* .normalize */

/* .normalizeIdentifier */

/* .normalizeObjectUnits */

/* .normalizeUnits */

/* .normalizeUri */

/* .parse */

/* .parseSelector */

/* .patternCompile */

/* .pointEnd */

/* .pointStart */

/* .popoverPrefix */

/* .position */

/* .postprocess */

/* .preprocess */

/* .produce */

/* .push */

/* .radians */

/* .raw */

/* .regexEscape */

/* .resolveAll */

/* .rgb */

/* .rgbConvert */

/* .sanitize */

/* .splice */

/* .string */

/* .stringify */

/* .stringifyPosition */

/* .subtokenize */

/* .svg */

/* .text */

/* .toParse5 */

/* .toString */

/* .track */

/* .unicodePunctuation */

/* .unicodeWhitespace */

/* .visit */

/* .visitParents */

/* .webNamespaces */

/* .webNamespaces.html */

/* .webNamespaces.svg */

/* .weekOfYear */

/* .zwitch */

/* / */

/* 0 */

/* 1 */

/* 2 */

/* 3 */

/* 4 */

/* 5 */

/* 6 */

/* @__PURE__ */

/* @internal */

/* @remove-on-es-build-end */

/* Boolean */

/* Built-in method references for those with the same name as other `lodash` methods. */

/* Built-in method references that are verified to be native. */

/* Color */

/* DATE */

/* DOCUMENT */

/* DefinedInfo */

/* From FvD 13.37, CSS Color Module Level 3 */

/* G2 的一个壳子，不包含 Geometry，由开发者自己定义和引入 */

/* HOUR */

/* Hidden footnotes hook */

/* Hidden footnotes hook. */

/* Locale */

/* Locale.prototype */

/* MILLISECOND */

/* MINUTE */

/* MONTH */

/* Moment */

/* Moment.prototype */

/* Node.js helper references. */

/* Null */

/* Number */

/* Object */

/* Rgb */

/* SECOND */

/* Schema */

/* String */

/* Symbol */

/* To do: remove in the future once we’ve switched from
       * `micromark-extension-footnote` to `micromark-extension-gfm-footnote`,
       * which doesn’t need this */

/* To do: remove in the future once we’ve switched from
     * `micromark-extension-footnote` to `micromark-extension-gfm-footnote`,
     * which doesn’t need this */

/* Undefined */

/* VFileMessage */

/* View 管理相关的 API */

/* WEEK */

/* WEEKDAY */

/* YEAR */

/* ["default"] */

/* ["default"].Modal */

/* ["default"].call */

/* ["default"].isConcatSpreadable */

/* ["default"].keys */

/* ["default"].keys.IE_PROTO */

/* ["default"].prototype */

/* ["default"].toStringTag */

/* ` ` */

/* `%` */

/* `.` */

/* `/` */

/* `2` */

/* `;` */

/* `C` */

/* `F` */

/* `L` */

/* `R` */

/* `\n` */

/* `\r` */

/* `\t` */

/* `c` */

/* `f` */

/* `l` */

/* `r` */

/* addFormatToken */

/* addParseToken */

/* addRegexToken */

/* addTimeToArrayFromToken */

/* addUnitAlias */

/* addUnitPriority */

/* addWeekParseToken */

/* asciiAlpha */

/* asciiAlphanumeric */

/* asciiAtext */

/* asciiControl */

/* asciiDigit */

/* asciiHexDigit */

/* asciiPunctuation */

/* binding */

/* blankLine */

/* brighter */

/* bubble */

/* c8 ignore next */

/* c8 ignore next 1 */

/* c8 ignore next 2 */

/* c8 ignore next 3 */

/* c8 ignore next 4 */

/* c8 ignore next 5 */

/* c8 ignore start */

/* c8 ignore stop */

/* calendar */

/* caseSensitiveTransform */

/* checkBullet */

/* checkListItemIndent */

/* classifyCharacter */

/* color vars defind */

/* containerFlow */

/* convert */

/* copyConfig */

/* createDate */

/* createInvalid */

/* createLocal */

/* createLocal.apply */

/* createUTC */

/* createUTCDate */

/* createUTCDate.apply */

/* darker */

/* dayOfYearFromWeeks */

/* daysInMonth */

/* daysInYear */

/* daysToMonths */

/* decodeNamedCharacterReference */

/* decodeString */

/* default */

/* default.apply */

/* default.call */

/* defaultCalendar */

/* defaultDayOfMonthOrdinalParse */

/* defaultInvalidDate */

/* defaultLocaleMeridiemParse */

/* defaultLocaleMonths */

/* defaultLocaleMonthsShort */

/* defaultLocaleMonthsShort.indexOf */

/* defaultLocaleWeek */

/* defaultLocaleWeekdays */

/* defaultLocaleWeekdaysMin */

/* defaultLocaleWeekdaysShort */

/* defaultLocaleWeekdaysShort.indexOf */

/* defaultLongDateFormat */

/* defaultOrdinal */

/* defaultRelativeTime */

/* defineLocale */

/* degrees */

/* deprecate */

/* deprecateSimple */

/* destroyFns.length */

/* destroyFns.pop */

/* do nothing */

/* dtDesktopButtonPrefix */

/* dtDesktopPrefix */

/* empty */

/* end View 管理相关的 API */

/* end 一系列传入配置的 API */

/* end 生命周期函数 */

/* eslint camelcase: 2 */

/* eslint eqeqeq:0 */

/* eslint max-len:0 */

/* eslint no-console:0 */

/* eslint no-loop-func: 0 */

/* eslint no-prototype-builtins: 0 */

/* eslint react/prop-types: 0 */

/* eslint react/prop-types:0 */

/* eslint-disable */

/* eslint-disable @typescript-eslint/interface-name-prefix */

/* eslint-disable @typescript-eslint/no-explicit-any */

/* eslint-disable @typescript-eslint/no-redundant-type-constituents */

/* eslint-disable @typescript-eslint/no-unused-expressions */

/* eslint-disable @typescript-eslint/no-unused-vars, class-methods-use-this */

/* eslint-disable es/no-array-prototype-keys -- safe */

/* eslint-disable es/no-symbol -- required for testing */

/* eslint-disable func-names */

/* eslint-disable func-names, no-console */

/* eslint-disable jsx-a11y/heading-has-content */

/* eslint-disable max-depth, complexity */

/* eslint-disable no-console */

/* eslint-disable no-empty */

/* eslint-disable no-inner-declarations */

/* eslint-disable no-lone-blocks */

/* eslint-disable no-nested-ternary */

/* eslint-disable no-param-reassign */

/* eslint-disable no-proto */

/* eslint-disable no-proto -- safe */

/* eslint-disable no-self-assign -- prototype methods protection */

/* eslint-disable no-undef */

/* eslint-disable no-underscore-dangle */

/* eslint-disable no-unused-expressions */

/* eslint-disable no-unused-vars */

/* eslint-disable react-hooks/rules-of-hooks */

/* eslint-disable react/button-has-type */

/* eslint-disable react/default-props-match-prop-types, react/no-multi-comp, react/prop-types */

/* eslint-disable react/no-array-index-key */

/* eslint-disable react/prop-types */

/* eslint-disable require-jsdoc, valid-jsdoc */

/* eslint-enable */

/* eslint-enable max-depth, complexity */

/* eslint-enable no-console */

/* eslint-enable no-empty */

/* eslint-enable no-self-assign -- prototype methods protection */

/* eslint-enable no-unused-expressions */

/* eslint-env browser */

/* event-emitter */

/* expandFormat */

/* export default binding */

/* extend */

/* factorySpace */

/* find */

/* first node should not have margin left */

/* footnoteReference */

/* formatMoment */

/* formatTokenFunctions */

/* formattingTokens */

/* get */

/* getConfirmLocale */

/* getDaysInMonth */

/* getIsLeapYear */

/* getLocale */

/* getParseRegexForToken */

/* getSetDayOfWeek */

/* getSetGlobalLocale */

/* getSetHour */

/* getSetISODayOfWeek */

/* getSetISOWeek */

/* getSetLocaleDayOfWeek */

/* getSetMonth */

/* getSetWeek */

/* getSetYear */

/* global ActiveXObject -- old IE, WSH */

/* global Reflect, Promise */

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */

/* global define */

/* harmony default export */

/* harmony export (binding) */

/* harmony export */

/* harmony import */

/* hastToReact */

/* hooks */

/* hooks.HTML5_FMT */

/* hooks.ISO_8601 */

/* hooks.RFC_2822 */

/* hooks.calendarFormat */

/* hooks.createFromInputFallback */

/* hooks.defaultFormat */

/* hooks.defaultFormatUtc */

/* hooks.defineLocale */

/* hooks.duration */

/* hooks.fn */

/* hooks.invalid */

/* hooks.isDate */

/* hooks.isDuration */

/* hooks.isMoment */

/* hooks.lang */

/* hooks.langData */

/* hooks.locale */

/* hooks.localeData */

/* hooks.locales */

/* hooks.max */

/* hooks.min */

/* hooks.months */

/* hooks.monthsShort */

/* hooks.normalizeUnits */

/* hooks.now */

/* hooks.parseTwoDigitYear */

/* hooks.parseZone */

/* hooks.prototype */

/* hooks.relativeTimeRounding */

/* hooks.relativeTimeThreshold */

/* hooks.unix */

/* hooks.updateLocale */

/* hooks.updateOffset */

/* hooks.utc */

/* hooks.version */

/* hooks.weekdays */

/* hooks.weekdaysMin */

/* hooks.weekdaysShort */

/* html */

/* hue */

/* identity */

/* ignore */

/* indentLines */

/* invalidDate */

/* isMoment */

/* isUrl */

/* isValid */

/* istanbul ignore else - invalid nodes, see rehypejs/rehype-raw#7. */

/* istanbul ignore file */

/* istanbul ignore if */

/* istanbul ignore next */

/* label长度是否超过约束值 */

/* listLocales */

/* localeFirstDayOfWeek */

/* localeFirstDayOfYear */

/* localeIsPM */

/* localeMeridiem */

/* localeMonths */

/* localeMonthsParse */

/* localeMonthsShort */

/* localeWeek */

/* localeWeekdays */

/* localeWeekdaysMin */

/* localeWeekdaysParse */

/* localeWeekdaysShort */

/* longDateFormat */

/* makeGetSet */

/* markdownLineEnding */

/* markdownLineEndingOrSpace */

/* markdownSpace */

/* match1 */

/* match1to2 */

/* match1to3 */

/* match1to4 */

/* match1to6 */

/* match2 */

/* match3 */

/* match4 */

/* match6 */

/* matchOffset */

/* matchShortOffset */

/* matchSigned */

/* matchTimestamp */

/* matchUnsigned */

/* mergeConfigs */

/* modalGlobalConfig */

/* modalPrefixCls */

/* module decorator */

/* monthsRegex */

/* monthsShortRegex */

/* monthsToDays */

/* normalize */

/* normalizeIdentifier */

/* normalizeObjectUnits */

/* normalizeUnits */

/* normalizeUri */

/* now */

/* ordinal */

/* pastFuture */

/* path.basename */

/* path.dirname */

/* path.extname */

/* path.join */

/* path.sep */

/* patternCompile */

/* patternInScope */

/* pointEnd */

/* pointStart */

/* prepareConfig */

/* proc.cwd */

/* push */

/* quack quack */

/* radians */

/* read as json */

/* read as raw */

/* reexport */

/* reexport safe */

/* regexEscape */

/* relativeTime */

/* resolveAll */

/* resolver */

/* revert */

/* rgbConvert */

/* runtime-dependent pure expression or super */

/* set */

/* setHookCallback */

/* setMonth */

/* splice */

/* stringGet */

/* stringSet */

/* stringify */

/* subtokenize */

/* svg */

/* toHast */

/* toastPrefixCls */

/* tooltipPrefix */

/* track */

/* trimLines */

/* tslint:disable:no-empty */

/* tslint:disable:no-unused-variable */

/* tslint:disable:no-use-before-declare */

/* tslint:disable:no-var-keyword */

/* tslint:enable */

/* tslint:enable:max-line-length */

/* tslint:enable:no-unused-variable */

/* typographyPrefix */

/* unicodePunctuation */

/* unicodeWhitespace */

/* unused harmony default export */

/* unused harmony export changeConfirmLocale */

/* unused harmony export combineHtmlExtensions */

/* unused harmony export createCacheKeyComparator */

/* unused harmony export default */

/* unused harmony export gfmHtml */

/* unused harmony export hslConvert */

/* unused harmony export is */

/* unused harmony export sanitizeUri */

/* unused harmony exports CONTINUE, EXIT, SKIP */

/* unused harmony exports Immer, applyPatches, castDraft, castImmutable, createDraft, current, enableAllPlugins, enableES5, enableMapSet, enablePatches, finishDraft, freeze, immerable, isDraft, isDraftable, nothing, original, produceWithPatches, setAutoFreeze, setUseProxies */

/* unused harmony exports Lexer, Parser, Renderer, Slugger, TextRenderer, Tokenizer, defaults, getDefaults, lexer, options, parse, parseInline, parser, setOptions, use, walkTokens */

/* unused harmony exports create, useStore */

/* unused harmony exports dtDesktopBadgePrefix, dtDesktopTabPrefix, dtDesktopSegmentControlPrefix, EmptyPagePrefix, switchPrefix, tagPrefix, dropdownPrefixCls, breadcrumbPrefixCls, noticeBarPrefixCls, inputPrefix, inputSearchPrefix, inputGroupPrefix, inputPasswordPrefix, formPrefix, datePickerPrefix, selectPrefix, autoCompletePrefix, radioPrefix, listPrefix, searchBarPrefix, checkboxPrefix, iconPrefixCls, menuPrefixCls, inpageGuidePrefix, imagePrefix, uploadPrefix, uploadListPrefix, tablePrefix, paginationPrefix, popconfirmPrefix, skeletonPrefix, rowPrefix, colPrefix, treePrefix, cascaderPrefix, drawerPrefix, anchorPrefix, progressPrefix, AffixPrefix, sliderPrefix, transferPrefix, cardPrefix, avatarPrefix, notificationPrefix, statisticPrefix, affixPrefix, stepsPrefix, resultPrefix, inputNumberPrefix, pageHeaderPrefix, backTopPrefix, carouselPrefix, timelinePrefix, descriptionsPrefix, layoutPrefix, commentPrefix, collapsePrefix, ratePrefix */

/* unused harmony exports gray, Lab, lch, Hcl */

/* unused harmony exports one, all, wrap */

/* unused reexport */

/* updateLocale */

/* uriTransformer */

/* urlToPath */

/* visit */

/* visitParents */

/* weekOfYear */

/* weekdaysMinRegex */

/* weekdaysRegex */

/* weekdaysShortRegex */

/* weeksInYear */

/* whitespace */

/* withConfirm */

/* withError */

/* withInfo */

/* withSuccess */

/* withWarn */

/* 依赖的模块，在这里统一引入，方便打包优化 */

/* 当前所有的事件 */

/* 组件更新的 cache，组件配置 object : 组件 */

/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/

/*!
   * GSAP 3.11.5
   * https://greensock.com
   *
   * @license Copyright 2008-2023, GreenSock. All rights reserved.
   * Subject to the terms at https://greensock.com/standard-license or for
   * Club GreenSock members, the agreement issued with that membership.
   * @author: Jack Doyle, jack@greensock.com
  */

/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */

/*!
 * EventEmitter v4.2.11 - git.io/ee
 * Unlicense - http://unlicense.org/
 * Oliver Caldwell - http://oli.me.uk/
 * @preserve
 */

/*!
 * JavaScript Cookie v2.2.1
 * https://github.com/js-cookie/js-cookie
 *
 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
 * Released under the MIT license
 */

/*!
 * jsUri
 * https://github.com/derek-watson/jsUri
 *
 * Copyright 2013, Derek Watson
 * Released under the MIT license.
 *
 * Includes parseUri regular expressions
 * http://blog.stevenlevithan.com/archives/parseuri
 * Copyright 2007, Steven Levithan
 * Released under the MIT license.
 */

/*!
* screenfull
* v5.2.0 - 2021-11-03
* (c) Sindre Sorhus; MIT License
*/

/*! *****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */

/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */

/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */

/*#__PURE__*/

/**
                 * @returns {boolean}
                 */

/**
             * 1. 初始化，全部 checked。此时，点击 radio, clickItem 进入聚焦
             * 2. 当前只选中一个
             *    2.1 且选中 item 等于 clickItem，退出聚焦，全部重新选中
             *    2.2 替换聚焦的 item
             * 3. 其它，同 2.2
             */

/**
             * @param {*} key
             * @param {*} value
             * @returns {void}
             */

/**
             * @param {*} key
             * @returns {*}
             */

/**
             * @param {*} key
             * @returns {void}
             */

/**
             * @param {Function} callback
             * @param {*} [ctx=null]
             * @returns {void}
             */

/**
             * @private
             * 是否初始状态，一旦 render，update 后，这个状态就变成 false, clear 后恢复
             */

/**
             * @private
             * 缓存图形的 Map
             */

/**
             * @private 是否正在更新
             * @type {false}
             */

/**
             * @private 组件或者图形是否允许注册
             * @type {false}
             */

/**
             * @returns {void}
             */

/**
             * A list of connected observers.
             *
             * @private {Array<ResizeObserverSPI>}
             */

/**
             * Broadcasted height of content rectangle.
             *
             * @type {number}
             */

/**
             * Broadcasted width of content rectangle.
             *
             * @type {number}
             */

/**
             * Collection of resize observations that have detected changes in dimensions
             * of elements.
             *
             * @private {Array<ResizeObservation>}
             */

/**
             * Indicates whether DOM listeners have been added.
             *
             * @private {boolean}
             */

/**
             * Keeps reference to the instance of MutationObserver.
             *
             * @private {MutationObserver}
             */

/**
             * Reference to the last observed content rectangle.
             *
             * @private {DOMRectInit}
             */

/**
             * Registry of the ResizeObservation instances.
             *
             * @private {Map<Element, ResizeObservation>}
             */

/**
             * Tells that controller has subscribed for Mutation Events.
             *
             * @private {boolean}
             */

/**
             * tooltip 限制的区域
             * @type {Region}
             */

/**
             * 中心点
             * @type {object}
             */

/**
             * 垂直于坐标轴方向的因子，决定文本、title、tickLine 在坐标轴的哪一侧
             */

/**
             * 布局方式： horizontal，vertical
             * @type {String}
             */

/**
             * 当用户设置的 callback 返回 null 时, 应该返回默认 callback 中的值
             */

/**
             * 文本标签的配置项
             */

/**
             * 栅格线是否封闭
             * @type {true}
             */

/**
             * 水平情况下的滑块，上面顶点处是 x,y
             *  /   \
             * | | | |
             * | | | |
             *  -----
             */

/**
             * 竖直情况下的滑块 handler，左侧顶点是 x,y
             *  /----|
             *    -- |
             *    -- |
             *  \----|
             */

/**
             * 结束点, x, y
             * @type {object}
             */

/**
             * 起始点, x, y
             * @type {object}
             */

/**
           * Do not `useEffect` here since `tryFocus` may trigger async
           * which makes React sync update the `activeKey`
           * that force render before `useRef` set the next activeKey
           */

/**
           * 多次刷新处理
           * 如果 state.children 里还有元素，元素还在动画，当前子级加回在出场的子级;
           */

/**
           * 获取 leaveChild 在 state.children 里的序列，再将 leaveChild 和 currentChildren 的重新排序。
           * 避逸 state.children 在 leaveComplete 里没全部完成不触发，
           * leaveComplete 里如果动画完成了是会删除 keyToLeave，但 state.children 是在全部出场后才触发清除，
           * 所以这里需要处理出场完成的元素做清除。
           */

/**
         * "Transitionend" event handler.
         *
         * @private
         * @param {TransitionEvent} event
         * @returns {void}
         */

/**
         * 1. Use promise as the first priority.
         * 2. If promise not exist, use callback with warning instead
         */

/**
         * @example
         *
         * // 仅使用百分比或像素值
         * // 横向间隔为 10%，纵向间隔为 10%
         * ['10%', '10%']
         * // 横向间隔为 10px，纵向间隔为 10px
         * [10, 10]
         *
         * // 同时使用百分比和像素值
         * ['10%', 10]
         * // 横向间隔为 10%，纵向间隔为 10px
         */

/**
         * @param {*} key
         * @param {*} value
         * @returns {void}
         */

/**
         * @param {*} key
         * @returns {*}
         */

/**
         * @param {*} key
         * @returns {void}
         */

/**
         * @param {Function} callback
         * @param {*} [ctx=null]
         * @returns {void}
         */

/**
         * @protected
         * 图形属性
         * @type {ShapeAttrs}
         */

/**
         * @returns {boolean}
         */

/**
         * @returns {void}
         */

/**
         * A default metadata decorator factory that can be used on a class, class member, or parameter.
         * @param metadataKey The key for the metadata entry.
         * @param metadataValue The value for the metadata entry.
         * @returns A decorator function.
         * @remarks
         * If `metadataKey` is already defined for the target and target key, the
         * metadataValue for that key will be overwritten.
         * @example
         *
         *     // constructor
         *     @Reflect.metadata(key, value)
         *     class Example {
         *     }
         *
         *     // property (on constructor, TypeScript only)
         *     class Example {
         *         @Reflect.metadata(key, value)
         *         static staticProperty;
         *     }
         *
         *     // property (on prototype, TypeScript only)
         *     class Example {
         *         @Reflect.metadata(key, value)
         *         property;
         *     }
         *
         *     // method (on constructor)
         *     class Example {
         *         @Reflect.metadata(key, value)
         *         static staticMethod() { }
         *     }
         *
         *     // method (on prototype)
         *     class Example {
         *         @Reflect.metadata(key, value)
         *         method() { }
         *     }
         *
         */

/**
         * A flag to indicate whether the Scheduler is currently executing a batch of
         * queued actions.
         * @type {boolean}
         */

/**
         * A flag to indicate whether this Subscription has already been unsubscribed.
         * @type {boolean}
         */

/**
         * A reference to the `lodash` function.
         *
         * @memberOf _.templateSettings.imports
         * @type {Function}
         */

/**
         * Adds observer to observers list.
         *
         * @param {ResizeObserverSPI} observer - Observer to be added.
         * @returns {void}
         */

/**
         * An internal ID used to track the latest asynchronous task such as those
         * coming from `setTimeout`, `setInterval`, `requestAnimationFrame`, and
         * others.
         * @type {any}
         */

/**
         * Applies a set of decorators to a property of a target object.
         * @param decorators An array of decorators.
         * @param target The target object.
         * @param propertyKey (Optional) The property key to decorate.
         * @param attributes (Optional) The property descriptor for the target key.
         * @remarks Decorators are applied in reverse order.
         * @example
         *
         *     class Example {
         *         // property declarations are not part of ES6, though they are valid in TypeScript:
         *         // static staticProperty;
         *         // property;
         *
         *         constructor(p) { }
         *         static staticMethod(p) { }
         *         method(p) { }
         *     }
         *
         *     // constructor
         *     Example = Reflect.decorate(decoratorsArray, Example);
         *
         *     // property (on constructor)
         *     Reflect.decorate(decoratorsArray, Example, "staticProperty");
         *
         *     // property (on prototype)
         *     Reflect.decorate(decoratorsArray, Example.prototype, "property");
         *
         *     // method (on constructor)
         *     Object.defineProperty(Example, "staticMethod",
         *         Reflect.decorate(decoratorsArray, Example, "staticMethod",
         *             Object.getOwnPropertyDescriptor(Example, "staticMethod")));
         *
         *     // method (on prototype)
         *     Object.defineProperty(Example.prototype, "method",
         *         Reflect.decorate(decoratorsArray, Example.prototype, "method",
         *             Object.getOwnPropertyDescriptor(Example.prototype, "method")));
         *
         */

/**
         * Callback invoked after the specified delay. It will further postpone
         * invocation of the original function delegating it to the
         * requestAnimationFrame.
         *
         * @returns {void}
         */

/**
         * Clears the collection of active observations.
         *
         * @returns {void}
         */

/**
         * Collects observation instances the associated element of which has changed
         * it's content rectangle.
         *
         * @returns {void}
         */

/**
         * Creates a new instance of ResizeObserver.
         *
         * @param {ResizeObserverCallback} callback - Callback function that is invoked
         *      when one of the observed elements changes it's content dimensions.
         * @param {ResizeObserverController} controller - Controller instance which
         *      is responsible for the updates of observer.
         * @param {ResizeObserver} callbackCtx - Reference to the public
         *      ResizeObserver instance which will be passed to callback function.
         */

/**
         * Creates a new instance of ResizeObserver.
         *
         * @param {ResizeObserverCallback} callback - Callback that is invoked when
         *      dimensions of the observed elements change.
         */

/**
         * Creates a new instance of ResizeObserverController.
         *
         * @private
         */

/**
         * Creates an instance of ResizeObservation.
         *
         * @param {Element} target - Element to be observed.
         */

/**
         * Creates an instance of ResizeObserverEntry.
         *
         * @param {Element} target - Element that is being observed.
         * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
         */

/**
         * Define a unique metadata entry on the target.
         * @param metadataKey A key used to store and retrieve metadata.
         * @param metadataValue A value that contains attached metadata.
         * @param target The target object on which to define metadata.
         * @param propertyKey (Optional) The property key for the target.
         * @example
         *
         *     class Example {
         *         // property declarations are not part of ES6, though they are valid in TypeScript:
         *         // static staticProperty;
         *         // property;
         *
         *         constructor(p) { }
         *         static staticMethod(p) { }
         *         method(p) { }
         *     }
         *
         *     // constructor
         *     Reflect.defineMetadata("custom:annotation", options, Example);
         *
         *     // property (on constructor)
         *     Reflect.defineMetadata("custom:annotation", options, Example, "staticProperty");
         *
         *     // property (on prototype)
         *     Reflect.defineMetadata("custom:annotation", options, Example.prototype, "property");
         *
         *     // method (on constructor)
         *     Reflect.defineMetadata("custom:annotation", options, Example, "staticMethod");
         *
         *     // method (on prototype)
         *     Reflect.defineMetadata("custom:annotation", options, Example.prototype, "method");
         *
         *     // decorator factory as metadata-producing annotation.
         *     function MyAnnotation(options): Decorator {
         *         return (target, key?) => Reflect.defineMetadata("custom:annotation", options, target, key);
         *     }
         *
         */

/**
         * Deletes the metadata entry from the target object with the provided key.
         * @param metadataKey A key used to store and retrieve metadata.
         * @param target The target object on which the metadata is defined.
         * @param propertyKey (Optional) The property key for the target.
         * @returns `true` if the metadata entry was found and deleted; otherwise, false.
         * @example
         *
         *     class Example {
         *         // property declarations are not part of ES6, though they are valid in TypeScript:
         *         // static staticProperty;
         *         // property;
         *
         *         constructor(p) { }
         *         static staticMethod(p) { }
         *         method(p) { }
         *     }
         *
         *     // constructor
         *     result = Reflect.deleteMetadata("custom:annotation", Example);
         *
         *     // property (on constructor)
         *     result = Reflect.deleteMetadata("custom:annotation", Example, "staticProperty");
         *
         *     // property (on prototype)
         *     result = Reflect.deleteMetadata("custom:annotation", Example.prototype, "property");
         *
         *     // method (on constructor)
         *     result = Reflect.deleteMetadata("custom:annotation", Example, "staticMethod");
         *
         *     // method (on prototype)
         *     result = Reflect.deleteMetadata("custom:annotation", Example.prototype, "method");
         *
         */

/**
         * Gets a value indicating whether the target object has the provided metadata key defined.
         * @param metadataKey A key used to store and retrieve metadata.
         * @param target The target object on which the metadata is defined.
         * @param propertyKey (Optional) The property key for the target.
         * @returns `true` if the metadata key was defined on the target object; otherwise, `false`.
         * @example
         *
         *     class Example {
         *         // property declarations are not part of ES6, though they are valid in TypeScript:
         *         // static staticProperty;
         *         // property;
         *
         *         constructor(p) { }
         *         static staticMethod(p) { }
         *         method(p) { }
         *     }
         *
         *     // constructor
         *     result = Reflect.hasOwnMetadata("custom:annotation", Example);
         *
         *     // property (on constructor)
         *     result = Reflect.hasOwnMetadata("custom:annotation", Example, "staticProperty");
         *
         *     // property (on prototype)
         *     result = Reflect.hasOwnMetadata("custom:annotation", Example.prototype, "property");
         *
         *     // method (on constructor)
         *     result = Reflect.hasOwnMetadata("custom:annotation", Example, "staticMethod");
         *
         *     // method (on prototype)
         *     result = Reflect.hasOwnMetadata("custom:annotation", Example.prototype, "method");
         *
         */

/**
         * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.
         * @param metadataKey A key used to store and retrieve metadata.
         * @param target The target object on which the metadata is defined.
         * @param propertyKey (Optional) The property key for the target.
         * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.
         * @example
         *
         *     class Example {
         *         // property declarations are not part of ES6, though they are valid in TypeScript:
         *         // static staticProperty;
         *         // property;
         *
         *         constructor(p) { }
         *         static staticMethod(p) { }
         *         method(p) { }
         *     }
         *
         *     // constructor
         *     result = Reflect.hasMetadata("custom:annotation", Example);
         *
         *     // property (on constructor)
         *     result = Reflect.hasMetadata("custom:annotation", Example, "staticProperty");
         *
         *     // property (on prototype)
         *     result = Reflect.hasMetadata("custom:annotation", Example.prototype, "property");
         *
         *     // method (on constructor)
         *     result = Reflect.hasMetadata("custom:annotation", Example, "staticMethod");
         *
         *     // method (on prototype)
         *     result = Reflect.hasMetadata("custom:annotation", Example.prototype, "method");
         *
         */

/**
         * Gets the metadata keys defined on the target object or its prototype chain.
         * @param target The target object on which the metadata is defined.
         * @param propertyKey (Optional) The property key for the target.
         * @returns An array of unique metadata keys.
         * @example
         *
         *     class Example {
         *         // property declarations are not part of ES6, though they are valid in TypeScript:
         *         // static staticProperty;
         *         // property;
         *
         *         constructor(p) { }
         *         static staticMethod(p) { }
         *         method(p) { }
         *     }
         *
         *     // constructor
         *     result = Reflect.getMetadataKeys(Example);
         *
         *     // property (on constructor)
         *     result = Reflect.getMetadataKeys(Example, "staticProperty");
         *
         *     // property (on prototype)
         *     result = Reflect.getMetadataKeys(Example.prototype, "property");
         *
         *     // method (on constructor)
         *     result = Reflect.getMetadataKeys(Example, "staticMethod");
         *
         *     // method (on prototype)
         *     result = Reflect.getMetadataKeys(Example.prototype, "method");
         *
         */

/**
         * Gets the metadata value for the provided metadata key on the target object or its prototype chain.
         * @param metadataKey A key used to store and retrieve metadata.
         * @param target The target object on which the metadata is defined.
         * @param propertyKey (Optional) The property key for the target.
         * @returns The metadata value for the metadata key if found; otherwise, `undefined`.
         * @example
         *
         *     class Example {
         *         // property declarations are not part of ES6, though they are valid in TypeScript:
         *         // static staticProperty;
         *         // property;
         *
         *         constructor(p) { }
         *         static staticMethod(p) { }
         *         method(p) { }
         *     }
         *
         *     // constructor
         *     result = Reflect.getMetadata("custom:annotation", Example);
         *
         *     // property (on constructor)
         *     result = Reflect.getMetadata("custom:annotation", Example, "staticProperty");
         *
         *     // property (on prototype)
         *     result = Reflect.getMetadata("custom:annotation", Example.prototype, "property");
         *
         *     // method (on constructor)
         *     result = Reflect.getMetadata("custom:annotation", Example, "staticMethod");
         *
         *     // method (on prototype)
         *     result = Reflect.getMetadata("custom:annotation", Example.prototype, "method");
         *
         */

/**
         * Gets the metadata value for the provided metadata key on the target object.
         * @param metadataKey A key used to store and retrieve metadata.
         * @param target The target object on which the metadata is defined.
         * @param propertyKey (Optional) The property key for the target.
         * @returns The metadata value for the metadata key if found; otherwise, `undefined`.
         * @example
         *
         *     class Example {
         *         // property declarations are not part of ES6, though they are valid in TypeScript:
         *         // static staticProperty;
         *         // property;
         *
         *         constructor(p) { }
         *         static staticMethod(p) { }
         *         method(p) { }
         *     }
         *
         *     // constructor
         *     result = Reflect.getOwnMetadata("custom:annotation", Example);
         *
         *     // property (on constructor)
         *     result = Reflect.getOwnMetadata("custom:annotation", Example, "staticProperty");
         *
         *     // property (on prototype)
         *     result = Reflect.getOwnMetadata("custom:annotation", Example.prototype, "property");
         *
         *     // method (on constructor)
         *     result = Reflect.getOwnMetadata("custom:annotation", Example, "staticMethod");
         *
         *     // method (on prototype)
         *     result = Reflect.getOwnMetadata("custom:annotation", Example.prototype, "method");
         *
         */

/**
         * Gets the unique metadata keys defined on the target object.
         * @param target The target object on which the metadata is defined.
         * @param propertyKey (Optional) The property key for the target.
         * @returns An array of unique metadata keys.
         * @example
         *
         *     class Example {
         *         // property declarations are not part of ES6, though they are valid in TypeScript:
         *         // static staticProperty;
         *         // property;
         *
         *         constructor(p) { }
         *         static staticMethod(p) { }
         *         method(p) { }
         *     }
         *
         *     // constructor
         *     result = Reflect.getOwnMetadataKeys(Example);
         *
         *     // property (on constructor)
         *     result = Reflect.getOwnMetadataKeys(Example, "staticProperty");
         *
         *     // property (on prototype)
         *     result = Reflect.getOwnMetadataKeys(Example.prototype, "property");
         *
         *     // method (on constructor)
         *     result = Reflect.getOwnMetadataKeys(Example, "staticMethod");
         *
         *     // method (on prototype)
         *     result = Reflect.getOwnMetadataKeys(Example.prototype, "method");
         *
         */

/**
         * Holds reference to the controller's instance.
         *
         * @private {ResizeObserverController}
         */

/**
         * In case field with `preserve = false` nest deps like:
         * - A = 1 => show B
         * - B = 1 => show C
         * - Reset A, need clean B, C
         */

/**
         * Initializes DOM listeners.
         *
         * @private
         * @returns {void}
         */

/**
         * Invokes initial callback function with a list of ResizeObserverEntry
         * instances collected from active resize observations.
         *
         * @returns {void}
         */

/**
         * Invokes the original callback function and schedules new invocation if
         * the "proxy" was called during current request.
         *
         * @returns {void}
         */

/**
         * Invokes the update of observers. It will continue running updates insofar
         * it detects changes.
         *
         * @returns {void}
         */

/**
         * Removes DOM listeners.
         *
         * @private
         * @returns {void}
         */

/**
         * Removes observer from observers list.
         *
         * @param {ResizeObserverSPI} observer - Observer to be removed.
         * @returns {void}
         */

/**
         * Returns index in provided array that matches the specified key.
         *
         * @param {Array<Array>} arr
         * @param {*} key
         * @returns {number}
         */

/**
         * Returns instance of the ResizeObserverController.
         *
         * @returns {ResizeObserverController}
         */

/**
         * Schedules invocation of the original function.
         *
         * @returns {void}
         */

/**
         * Starts observing provided element.
         *
         * @param {Element} target - Element to be observed.
         * @returns {void}
         */

/**
         * Stops observing all elements.
         *
         * @returns {void}
         */

/**
         * Stops observing provided element.
         *
         * @param {Element} target - Element to stop observing.
         * @returns {void}
         */

/**
         * Tells whether observer has active observations.
         *
         * @returns {boolean}
         */

/**
         * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
         * from the corresponding properties of the last observed content rectangle.
         *
         * @returns {DOMRectInit} Last observed content rectangle.
         */

/**
         * Updates content rectangle and tells whether it's width or height properties
         * have changed since the last broadcast.
         *
         * @returns {boolean}
         */

/**
         * Updates every observer from observers list and notifies them of queued
         * entries.
         *
         * @private
         * @returns {boolean} Returns "true" if any observer has detected changes in
         *      dimensions of it's elements.
         */

/**
         * ratio * num + spacing * (num - 1) = 1
         * => ratio = (1 - (spacing * (num - 1))) / num
         *          = (1 + spacing) / num - spacing
         *
         * num 对应 cols/rows
         * spacing 对应 xSpacing/ySpacing
         */

/**
         * when container size changed, change chart size props, and re-render.
         */

/**
         * 事件结束时的触发图形
         * @type {IShape}
         */

/**
         * 在出场没结束时，childrenShow 里的值将不会清除。
         * 再触发进场时， childrenShow 里的值是保留着的, 设置了 forcedReplay 将重新播放进场。
         */

/**
         * 委托事件监听对象的代理对象，即 ev.delegateObject = ev.currentTarget.get('delegateObject')
         * @type {object}
         */

/**
         * 委托对象
         * @type {object}
         */

/**
         * 定时器
         * @type {d3Timer.Timer}
         */

/**
         * 度量的类型
         */

/**
         * 开始触发事件的图形
         * @type {IShape}
         */

/**
         * 当前时间
         * @type {number}
         */

/**
         * 执行动画的元素列表
         * @type {IElement[]}
         */

/**
         * 是否作用于当前 view 的 siblings，默认是 false 仅作用于自己
         */

/**
         * 是否允许冒泡
         * @type {boolean}
         */

/**
         * 是否分类类型的度量
         */

/**
         * 是否受 element 的数据影响，还是受包围盒的影响
         */

/**
         * 是否是常量的度量，传入和传出一致
         */

/**
         * 是否线性度量，有linear, time 度量
         */

/**
         * 是否被销毁
         * @type {boolean}
         */

/**
         * 是否连续类型的度量，linear,time,log, pow, quantile, quantize 都支持
         */

/**
         * 是否阻止了原生事件
         * @type {boolean}
         */

/**
         * 是否阻止传播（向上冒泡）
         * @type {boolean}
         */

/**
         * 清除测量
         */

/**
         * 滑块滑动的时候出发
         * @param v
         */

/**
         * 状态名称
         */

/**
         * 监听对象
         * @type {object}
         */

/**
         * 范围过滤生效的字段/维度，可以是 x, y
         */

/**
         * 触发事件之后
         * @param evt
         */

/**
         * 触发事件的图形
         * @type {IShape}
         */

/**
         * 触发对象
         * @type {object}
         */

/**
         * 触发画布更新的三种 changeType
         * 1. attr: 修改画布的绘图属性
         * 2. sort: 画布排序，图形的层次会发生变化
         * 3. changeSize: 改变画布大小
         */

/**
         * 面积图是否从 0 基准线开始填充。
         * 1. 默认值为 `true`，表现如下：
         * ![image](https://gw.alipayobjects.com/zos/rmsportal/ZQqwUCczalrKqGgagOVp.png)
         * 2. 当值为 `false` 时，表现如下：
         * ![image](https://gw.alipayobjects.com/zos/rmsportal/yPswkaXvUpCYOdhocGwB.png)
         */

/**
       * @param popupVisible    Show or not the popup element
       * @param event           SyntheticEvent, used for `pointAlign`
       */

/**
       * @param {Array<Content>} nodes
       * @returns {void}
       */

/**
       * @param {Comment|Stitch} node
       * @returns {void}
       */

/**
       * @param {Doctype} node
       * @returns {void}
       */

/**
       * @param {Element} node
       * @returns {void}
       */

/**
       * @param {Error|null|undefined} [error]
       * @param {VFile|undefined} [file]
       * @returns {void}
       */

/**
       * @param {Error|null} error
       * @param {Node} tree
       * @param {VFile} file
       * @returns {void}
       */

/**
       * @param {Node} node
       * @param {Array<Parent>} parents
       */

/**
       * @param {Node} node
       * @param {number | undefined} index
       * @param {Array<Parent>} parents
       */

/**
       * @param {Node} node
       */

/**
       * @param {Raw} node
       * @returns {void}
       */

/**
       * @param {Root} node
       * @returns {void}
       */

/**
       * @param {Text} node
       * @returns {void}
       */

/**
       * @returns {P5Document}
       */

/**
       * @returns {P5Fragment}
       */

/**
       * Clean up current node.
       */

/**
       * Fill errors since `fields` may be replaced by controlled fields
       */

/**
       * Handle a list of construct.
       *
       * @param {Array<Construct>} list
       * @returns {State}
       */

/**
       * Handle a list of construct.
       *
       * @param {ConstructRecord} map
       * @returns {State}
       */

/**
       * Handle a single construct.
       *
       * @param {Construct} construct
       * @returns {State}
       */

/**
       * Handle a text node which is not in an ignored parent.
       *
       * @param {Text} node
       *   Text node.
       * @param {Array<Parent>} parents
       *   Parents.
       * @returns {VisitorResult}
       *   Result.
       */

/**
       * Hyperscript compatible DSL for creating virtual hast trees.
       *
       * @param {string | null} [selector]
       * @param {HProperties | HChild} [properties]
       * @param {Array<HChild>} children
       * @returns {HResult}
       */

/**
       * Recursive validate if configured.
       * TODO: perf improvement @zombieJ
       */

/**
       * The minimal observable subscription method.
       * @param {Object} observer Any object that can be used as an observer.
       * The observer object should have a `next` method.
       * @returns {subscription} An object with an `unsubscribe` method that can
       * be used to unsubscribe the observable from the store, and prevent further
       * emission of values from the observable.
       */

/**
       * Used to detect `data` property values to be HTML-escaped.
       *
       * @memberOf _.templateSettings
       * @type {RegExp}
       */

/**
       * Used to detect `data` property values to inject.
       *
       * @memberOf _.templateSettings
       * @type {RegExp}
       */

/**
       * Used to detect code to be evaluated.
       *
       * @memberOf _.templateSettings
       * @type {RegExp}
       */

/**
       * Used to import variables into the compiled template.
       *
       * @memberOf _.templateSettings
       * @type {Object}
       */

/**
       * Used to reference the data object in the template text.
       *
       * @memberOf _.templateSettings
       * @type {string}
       */

/**
       * We trigger in sync to avoid dom shaking but this get warning in react 16.13.
       *
       * So use Promise to keep in micro async to handle this.
       * https://github.com/ant-design/ant-design/issues/21698#issuecomment-593743485
       */

/**
       * `tags` should fill un-list item.
       * This is not cool here since TreeSelect do not need this
       */

/**
     *
     * Creates an array cache object to store unique values.
     *
     * @private
     * @constructor
     * @param {Array} [values] The values to cache.
     */

/**
     *  p1 → p2
     *  ↑    ↓
     *  p0 ← p3
     *
     *  负数的情况，关键点会变成下面的形式
     *
     *  p0 ← p3               p2 ← p1
     *  ↓    ↑                ↓     ↑
     *  p1 → p2  --> (转置下)  p3 → p0
     */

/**
     * 0～1 points 转 画布 points
     * @param points 节点集合
     * @returns
     */

/**
     * @constructor
     * @param {Function} subscribe the function that is called when the Observable is
     * initially subscribed to. This function is given a Subscriber, to which new values
     * can be `next`ed, or an `error` method can be called to raise an error, or
     * `complete` can be called to notify of a successful completion.
     */

/**
     * @deprecated
     * This method will be removed at G2 V4.1. Please use `getScale`.
     */

/**
     * @deprecated
     * This method will be removed at G2 V4.1. Replaced by {@link #coordinate()}
     */

/**
     * @deprecated
     * This method will be removed at G2 V4.1. Replaced by {@link #createView()}
     */

/**
     * @deprecated
     * This method will be removed at G2 V4.1. Replaced by {@link #data(data)}
     */

/**
     * @deprecated
     * This method will be removed at G2 V4.1. Replaced by {@link #guide()}
     */

/**
     * @desc 获取 label offset
     */

/**
     * @method forEach
     * @param {Function} next a handler for each value emitted by the observable
     * @param {PromiseConstructor} [PromiseCtor] a constructor function used to instantiate the Promise
     * @return {Promise} a promise that either resolves on observable completion or
     *  rejects with the handled error
     */

/**
     * @method setForcedJudg
     * @param props
     * QueueAnim 套在组件下面后导至子级变化。
     * <QueueAnim component={Menu} >
     *   <SubMenu key="a" title="导航">
     *     <Item />
     *   </SubMenu>
     * </QueueAnim>
     * rc-Menu 里是以 isXXX 来判断是 rc-Menu 的子级;
     * 如: 用 isSubMenu 来处理 hover 事件
     * 地址: https://github.com/react-component/menu/blob/master/src/MenuMixin.js#L172
     * 暂时方案: 在组件里添加判断用的值。
     */

/**
     * @override
     * @desc 获取 label offset
     * polar & theta coordinate support「string」type, should transform to 「number」
     */

/**
     * @override
     * 获取 label 的位置
     * @param labelCfg
     * @param mappingData
     * @param index
     */

/**
     * @override
     * 获取 labelItems, 增加切片 percent
     * @param mapppingArray
     */

/**
     * @override
     * 获取文本的对齐方式
     * @param point
     */

/**
     * @override
     */

/**
     * @overrider 添加事件
     */

/**
     * @param childRefs;
     * 储存 children 的 ref;
     */

/**
     * @param childrenShow;
     * 记录 animation 里是否需要 startAnim;
     * 当前元素是否处在显示状态
     * enterBegin 到 leaveComplete 之前都处于显示状态
     */

/**
     * @param currentRef;
     * 记录 component 是组件时的 ref;
     */

/**
     * @param keysToEnter;
     * 记录进场的 key;
     */

/**
     * @param keysToEnterPaused;
     * 记录在进入时是否处理暂停状态
     */

/**
     * @param keysToLeave;
     * 记录出场的 key;
     */

/**
     * @param leaveUnfinishedChild;
     * 记录多次切换，出场没完成动画的 key。
     */

/**
     * @param placeholderTimeoutIds;
     * 进场时 deley 的 timeout 记录;
     */

/**
     * @param saveTweenOneTag;
     * 记录 TweenOne 标签，在 leaveUnfinishedChild 里使用，残留的元素不需要考虑 props 的变更。
     */

/**
     * @param tweenToEnter;
     * 记录强制切换时是否需要添加 animation;
     * 如 enter 后, leave -> enter，样式是没有发生变化，就不需要添加 animation 属性。
     */

/**
     * @param {Code} code
     * @returns {boolean}
     */

/**
     * @param {DOMRect|ClientRect} boundingClientRect
     * @param {DOMRect|ClientRect} intersectionRect
     */

/**
     * @param {Error|null|undefined} [error]
     * @returns {void}
     */

/**
     * @param {Error|null} [error]
     * @param {Node} [tree]
     * @returns {void}
     */

/**
     * @param {Node} tree
     * @param {Test} test
     * @param {Visitor<Node>} visitor
     * @param {boolean | null | undefined} [reverse]
     * @returns {void}
     */

/**
     * @param {Node} tree
     * @param {Test} test
     * @param {Visitor} visitor
     * @param {boolean | null | undefined} [reverse]
     * @returns {void}
     */

/**
     * @param {Node} tree
     * @param {VFile} [file]
     * @param {Options} [options]
     */

/**
     * @param {Observer|function(value: T): void} [destinationOrNext] A partially
     * defined Observer or a `next` callback function.
     * @param {function(e: ?any): void} [error] The `error` callback of an
     * Observer.
     * @param {function(): void} [complete] The `complete` callback of an
     * Observer.
     */

/**
     * @param {PluggableList|null|undefined} [plugins]
     * @returns {void}
     */

/**
     * @param {Plugin} plugin
     * @param {...unknown} [value]
     * @returns {void}
     */

/**
     * @param {Preset} result
     * @returns {void}
     */

/**
     * @param {Test} [test]
     * @returns {AssertAnything}
     */

/**
     * @param {function(): void} [unsubscribe] A function describing how to
     * perform the disposal of resources when the `unsubscribe` method is called.
     */

/**
     * @param {import('..').Pluggable<unknown[]>} value
     * @returns {void}
     */

/**
     * @param {null|((file: VFile) => void)} resolve
     * @param {(error?: Error|null|undefined) => void} reject
     * @returns {void}
     */

/**
     * @param {null|((node: Node) => void)} resolve
     * @param {(error: Error) => void} reject
     * @returns {void}
     */

/**
     * @protected
     * 一些方法调用会引起画布变化
     * @param {ChangeType} changeType 改变的类型
     */

/**
     * @protected
     * 不同的图形自己实现是否在图形内部的逻辑，要判断边和填充区域
     * @param  {number}  refX 相对于图形的坐标 x
     * @param  {number}  refY 相对于图形的坐标 Y
     * @return {boolean} 点是否在图形内部
     */

/**
     * @protected
     * 修改画布对应的 DOM 的大小
     * @param {number} width  宽度
     * @param {number} height 高度
     */

/**
     * @protected
     * 初始化 DOM
     */

/**
     * @protected
     * 初始化事件
     */

/**
     * @protected
     * 初始化动画
     */

/**
     * @protected
     * 初始化容器
     */

/**
     * @protected
     * 初始化属性，有些属性需要加工
     * @param {object} attrs 属性值
     */

/**
     * @protected
     * 初始化时间轴
     */

/**
     * @protected
     * 初始化绑定的事件
     */

/**
     * @protected
     * 初始化，用于具体的组件继承
     */

/**
     * @protected
     * 在组件上添加分组，主要解决 isReigeter 的问题
     * @param {IGroup} parent 父元素
     * @param {object} cfg    分组的配置项
     */

/**
     * @protected
     * 在组件上添加图形，主要解决 isReigeter 的问题
     * @param {IGroup} parent 父元素
     * @param {object} cfg    分组的配置项
     */

/**
     * @protected
     * 填充图形
     * @param {CanvasRenderingContext2D} context context 上下文
     */

/**
     * @protected
     * 属性值发生改变
     * @param {string} name 属性名
     * @param {any} value 属性值
     * @param {any} originValue 属性值
     */

/**
     * @protected
     * 清理 DOM
     */

/**
     * @protected
     * 清理事件
     */

/**
     * @protected
     * 清理所有的事件
     */

/**
     * @protected
     * 清理缓存的 bbox
     */

/**
     * @protected
     * 绘制图形的路径
     * @param {CanvasRenderingContext2D} context 上下文
     */

/**
     * @protected
     * 绘制图形的路径
     * @param {Defs} context 上下文
     * @param {ShapeAttrs} targetAttrs 渲染的目标属性
     */

/**
     * @protected
     * 绘制图形边框
     * @param {CanvasRenderingContext2D} context context 上下文
     */

/**
     * @protected
     * 获取默认的属相
     */

/**
     * @protected
     * 获取默认的矩阵
     * @returns {number[]|null} 默认的矩阵
     */

/**
     * @protected
     * 销毁 DOM 容器
     */

/**
     * @protected
     * 默认的配置项
     * @returns {object} 默认的配置项
     */

/**
     * @protected
     */

/**
     * @template {Node} Tree
     * @param {Tree} tree
     * @param {Find | FindAndReplaceSchema | FindAndReplaceList} find
     * @param {Replace | Options | null | undefined} [replace]
     * @param {Options | null | undefined} [options]
     * @returns {Tree}
     */

/**
     * @this {CompileContext}
     * @param {Token} token
     * @returns {void}
     */

/**
     * @type {{
     *   (): Root
     *   (selector: null | undefined, ...children: Array<HChild>): Root
     *   (selector: string, properties?: HProperties, ...children: Array<HChild>): Element
     *   (selector: string, ...children: Array<HChild>): Element
     * }}
     */

/**
     * A `baseRest` alias which can be replaced with `identity` by module
     * replacement plugins.
     *
     * @private
     * @type {Function}
     * @param {Function} func The function to apply a rest parameter to.
     * @returns {Function} Returns the new function.
     */

/**
     * A collection of shims that provide minimal functionality of the ES6 collections.
     *
     * These implementations are not meant to be used outside of the ResizeObserver
     * modules as they cover only a limited range of use cases.
     */

/**
     * A shortcut to create a Notification instance of the type `complete`.
     * @return {Notification<any>} The valueless "complete" Notification.
     */

/**
     * A shortcut to create a Notification instance of the type `error` from a
     * given error.
     * @param {any} [err] The `error` error.
     * @return {Notification<T>} The "error" Notification representing the
     * argument.
     */

/**
     * A shortcut to create a Notification instance of the type `next` from a
     * given value.
     * @param {T} value The `next` value.
     * @return {Notification<T>} The "next" Notification representing the
     * argument.
     */

/**
     * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).
     *
     * @private
     * @param {number|Object} id The timer id or timeout object of the timer to clear.
     */

/**
     * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).
     *
     * @private
     * @param {Function} func The function to delay.
     * @param {number} wait The number of milliseconds to delay invocation.
     * @returns {number|Object} Returns the timer id or timeout object.
     */

/**
     * A specialized version of `_.memoize` which clears the memoized function's
     * cache when it exceeds `MAX_MEMOIZE_SIZE`.
     *
     * @private
     * @param {Function} func The function to have its output memoized.
     * @returns {Function} Returns the new memoized function.
     */

/**
     * A specialized version of `_.sampleSize` for arrays.
     *
     * @private
     * @param {Array} array The array to sample.
     * @param {number} n The number of elements to sample.
     * @returns {Array} Returns the random elements.
     */

/**
     * A specialized version of `_.sample` for arrays.
     *
     * @private
     * @param {Array} array The array to sample.
     * @returns {*} Returns the random element.
     */

/**
     * A specialized version of `_.shuffle` for arrays.
     *
     * @private
     * @param {Array} array The array to shuffle.
     * @returns {Array} Returns the new shuffled array.
     */

/**
     * A specialized version of `_.shuffle` which mutates and sets the size of `array`.
     *
     * @private
     * @param {Array} array The array to shuffle.
     * @param {number} [size=array.length] The size of `array`.
     * @returns {Array} Returns `array`.
     */

/**
     * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
     *
     * @private
     * @param {*} value The value to query.
     * @returns {string} Returns the raw `toStringTag`.
     */

/**
     * A specialized version of `baseIsEqualDeep` for arrays with support for
     * partial deep comparisons.
     *
     * @private
     * @param {Array} array The array to compare.
     * @param {Array} other The other array to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} stack Tracks traversed `array` and `other` objects.
     * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
     */

/**
     * A specialized version of `baseIsEqualDeep` for comparing objects of
     * the same `toStringTag`.
     *
     * **Note:** This function only supports comparing values with tags of
     * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {string} tag The `toStringTag` of the objects to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} stack Tracks traversed `object` and `other` objects.
     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
     */

/**
     * A specialized version of `baseIsEqualDeep` for objects with support for
     * partial deep comparisons.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} stack Tracks traversed `object` and `other` objects.
     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
     */

/**
     * A specialized version of `baseIsEqual` for arrays and objects which performs
     * deep comparisons and tracks traversed objects enabling objects with circular
     * references to be compared.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
     * @param {Function} customizer The function to customize comparisons.
     * @param {Function} equalFunc The function to determine equivalents of values.
     * @param {Object} [stack] Tracks traversed `object` and `other` objects.
     * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
     */

/**
     * A specialized version of `baseMerge` for arrays and objects which performs
     * deep merges and tracks traversed objects enabling objects with circular
     * references to be merged.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @param {string} key The key of the value to merge.
     * @param {number} srcIndex The index of `source`.
     * @param {Function} mergeFunc The function to merge values.
     * @param {Function} [customizer] The function to customize assigned values.
     * @param {Object} [stack] Tracks traversed source values and their merged
     *  counterparts.
     */

/**
     * A specialized version of `baseProperty` which supports deep paths.
     *
     * @private
     * @param {Array|string} path The path of the property to get.
     * @returns {Function} Returns the new accessor function.
     */

/**
     * A specialized version of `baseRest` which flattens the rest array.
     *
     * @private
     * @param {Function} func The function to apply a rest parameter to.
     * @returns {Function} Returns the new function.
     */

/**
     * A specialized version of `baseRest` which transforms the rest array.
     *
     * @private
     * @param {Function} func The function to apply a rest parameter to.
     * @param {number} [start=func.length-1] The start position of the rest parameter.
     * @param {Function} transform The rest array transform.
     * @returns {Function} Returns the new function.
     */

/**
     * A specialized version of `matchesProperty` for source values suitable
     * for strict equality comparisons, i.e. `===`.
     *
     * @private
     * @param {string} key The key of the property to get.
     * @param {*} srcValue The value to match.
     * @returns {Function} Returns the new spec function.
     */

/**
     * A static factory for a Subscriber, given a (potentially partial) definition
     * of an Observer.
     * @param {function(x: ?T): void} [next] The `next` callback of an Observer.
     * @param {function(e: ?any): void} [error] The `error` callback of an
     * Observer.
     * @param {function(): void} [complete] The `complete` callback of an
     * Observer.
     * @return {Subscriber<T>} A Subscriber wrapping the (partially defined)
     * Observer represented by the given arguments.
     */

/**
     * Active Element
     */

/**
     * Adds `value` to the array cache.
     *
     * @private
     * @name add
     * @memberOf SetCache
     * @alias push
     * @param {*} value The value to cache.
     * @returns {Object} Returns the cache instance.
     */

/**
     * Adds a listener function to the specified event.
     * The listener will not be added if it is a duplicate.
     * If the listener returns true then it will be removed after it is called.
     * If you pass a regular expression as the event name then the listener will be added to all events that match it.
     *
     * @param {String|RegExp} evt Name of the event to attach the listener to.
     * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.
     * @return {Object} Current instance of EventEmitter for chaining.
     */

/**
     * Adds a tear down to be called during the unsubscribe() of this
     * Subscription.
     *
     * If the tear down being added is a subscription that is already
     * unsubscribed, is the same reference `add` is being called on, or is
     * `Subscription.EMPTY`, it will not be added.
     *
     * If this subscription is already in an `closed` state, the passed
     * tear down logic will be executed immediately.
     *
     * @param {TeardownLogic} teardown The additional logic to execute on
     * teardown.
     * @return {Subscription} Returns the Subscription used or created to be
     * added to the inner subscriptions list. This Subscription can be used with
     * `remove()` to remove the passed teardown logic from the inner subscriptions
     * list.
     */

/**
     * Adds all own enumerable string keyed function properties of a source
     * object to the destination object. If `object` is a function, then methods
     * are added to its prototype as well.
     *
     * **Note:** Use `_.runInContext` to create a pristine `lodash` function to
     * avoid conflicts caused by modifying the original.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {Function|Object} [object=lodash] The destination object.
     * @param {Object} source The object of functions to add.
     * @param {Object} [options={}] The options object.
     * @param {boolean} [options.chain=true] Specify whether mixins are chainable.
     * @returns {Function|Object} Returns `object`.
     * @example
     *
     * function vowels(string) {
     *   return _.filter(string, function(v) {
     *     return /[aeiou]/i.test(v);
     *   });
     * }
     *
     * _.mixin({ 'vowels': vowels });
     * _.vowels('fred');
     * // => ['e']
     *
     * _('fred').vowels().value();
     * // => ['e']
     *
     * _.mixin({ 'vowels': vowels }, { 'chain': false });
     * _('fred').vowels();
     * // => ['e']
     */

/**
     * Adds listeners in bulk using the manipulateListeners method.
     * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.
     * You can also pass it a regular expression to add the array of listeners to all events that match it.
     * Yeah, this function does quite a bit. That's probably a bad thing.
     *
     * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.
     * @param {Function[]} [listeners] An optional array of listener functions to add.
     * @return {Object} Current instance of EventEmitter for chaining.
     */

/**
     * Adds two numbers.
     *
     * @static
     * @memberOf _
     * @since 3.4.0
     * @category Math
     * @param {number} augend The first number in an addition.
     * @param {number} addend The second number in an addition.
     * @returns {number} Returns the total.
     * @example
     *
     * _.add(6, 4);
     * // => 10
     */

/**
     * Aggregates elements of `collection` on `accumulator` with keys transformed
     * by `iteratee` and values set by `setter`.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} setter The function to set `accumulator` values.
     * @param {Function} iteratee The iteratee to transform keys.
     * @param {Object} accumulator The initial aggregated object.
     * @returns {Function} Returns `accumulator`.
     */

/**
     * Alias a method while keeping the context correct, to allow for overwriting of target method.
     *
     * @param {String} name The name of the target method.
     * @return {Function} The aliased method
     * @api private
     */

/**
     * Alias for `polyad(3)`
     */

/**
     * Alias for `polyad(4)`
     */

/**
     * Alias of addListener
     */

/**
     * Alias of addOnceListener.
     */

/**
     * Alias of emitEvent
     */

/**
     * Alias of removeEvent.
     *
     * Added to mirror the node API.
     */

/**
     * Alias of removeListener
     */

/**
     * Align BigIntDecimal with same decimal length. e.g. 12.3 + 5 = 1230000
     * This is used for add function only.
     */

/**
     * An alternative to `_.reduce`; this method transforms `object` to a new
     * `accumulator` object which is the result of running each of its own
     * enumerable string keyed properties thru `iteratee`, with each invocation
     * potentially mutating the `accumulator` object. If `accumulator` is not
     * provided, a new object with the same `[[Prototype]]` will be used. The
     * iteratee is invoked with four arguments: (accumulator, value, key, object).
     * Iteratee functions may exit iteration early by explicitly returning `false`.
     *
     * @static
     * @memberOf _
     * @since 1.3.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {*} [accumulator] The custom accumulator value.
     * @returns {*} Returns the accumulated value.
     * @example
     *
     * _.transform([2, 3, 4], function(result, n) {
     *   result.push(n *= n);
     *   return n % 2 == 0;
     * }, []);
     * // => [4, 9]
     *
     * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
     *   (result[value] || (result[value] = [])).push(key);
     * }, {});
     * // => { '1': ['a', 'c'], '2': ['b'] }
     */

/**
     * An interop point defined by the es7-observable spec https://github.com/zenparsing/es-observable
     * @method Symbol.observable
     * @return {Observable} this instance of the observable
     */

/**
     * Assigns `value` to `key` of `object` if the existing value is not equivalent
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {string} key The key of the property to assign.
     * @param {*} value The value to assign.
     */

/**
     * Assigns own and inherited enumerable string keyed properties of source
     * objects to the destination object for all destination properties that
     * resolve to `undefined`. Source objects are applied from left to right.
     * Once a property is set, additional values of the same property are ignored.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.defaultsDeep
     * @example
     *
     * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
     * // => { 'a': 1, 'b': 2 }
     */

/**
     * Assigns own enumerable string keyed properties of source objects to the
     * destination object. Source objects are applied from left to right.
     * Subsequent sources overwrite property assignments of previous sources.
     *
     * **Note:** This method mutates `object` and is loosely based on
     * [`Object.assign`](https://mdn.io/Object/assign).
     *
     * @static
     * @memberOf _
     * @since 0.10.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.assignIn
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     * }
     *
     * function Bar() {
     *   this.c = 3;
     * }
     *
     * Foo.prototype.b = 2;
     * Bar.prototype.d = 4;
     *
     * _.assign({ 'a': 0 }, new Foo, new Bar);
     * // => { 'a': 1, 'c': 3 }
     */

/**
     * Attempts to invoke `func`, returning either the result or the caught error
     * object. Any additional arguments are provided to `func` when it's invoked.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {Function} func The function to attempt.
     * @param {...*} [args] The arguments to invoke `func` with.
     * @returns {*} Returns the `func` result or error object.
     * @example
     *
     * // Avoid throwing errors for invalid selectors.
     * var elements = _.attempt(function(selector) {
     *   return document.querySelectorAll(selector);
     * }, '>_>');
     *
     * if (_.isError(elements)) {
     *   elements = [];
     * }
     */

/**
     * Base of `path` (default: `process.cwd()` or `'/'` in browsers).
     *
     * @type {string}
     */

/**
     * Binds methods of an object to the object itself, overwriting the existing
     * method.
     *
     * **Note:** This method doesn't set the "length" property of bound functions.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {Object} object The object to bind and assign the bound methods to.
     * @param {...(string|string[])} methodNames The object method names to bind.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var view = {
     *   'label': 'docs',
     *   'click': function() {
     *     console.log('clicked ' + this.label);
     *   }
     * };
     *
     * _.bindAll(view, ['click']);
     * jQuery(element).on('click', view.click);
     * // => Logs 'clicked docs' when clicked.
     */

/**
     * Brighten the color a given amount, from 0 to 100.
     * @param amount - valid between 1-100
     */

/**
     * By default, the template delimiters used by lodash are like those in
     * embedded Ruby (ERB) as well as ES2015 template strings. Change the
     * following template settings to use alternative delimiters.
     *
     * @static
     * @memberOf _
     * @type {Object}
     */

/**
     * Calculates an appropriate content rectangle for provided html or svg element.
     *
     * @param {Element} target - Element content rectangle of which needs to be calculated.
     * @returns {DOMRectInit}
     */

/**
     * Calculates content rectangle of provided HTMLElement.
     *
     * @param {HTMLElement} target - Element for which to calculate the content rectangle.
     * @returns {DOMRectInit}
     */

/**
     * Calculates content rectangle of provided SVG element.
     *
     * @param {SVGGraphicsElement} target - Element content rectangle of which needs
     *      to be calculated.
     * @returns {DOMRectInit}
     */

/**
     * Call the interaction based on the interaction name
     *
     * ```ts
     * view.interaction('my-interaction', { extra: 'hello world' });
     * ```
     * 详细文档可以参考：https://g2.antv.vision/zh/docs/api/general/interaction
     * @param name interaction name
     * @param cfg interaction config
     * @returns
     */

/**
     * Callback invoked after the specified delay. It will further postpone
     * invocation of the original function delegating it to the
     * requestAnimationFrame.
     *
     * @returns {void}
     */

/**
     * Casts `array` to a slice if it's needed.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {number} start The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns the cast slice.
     */

/**
     * Casts `value` as an array if it's not one.
     *
     * @static
     * @memberOf _
     * @since 4.4.0
     * @category Lang
     * @param {*} value The value to inspect.
     * @returns {Array} Returns the cast array.
     * @example
     *
     * _.castArray(1);
     * // => [1]
     *
     * _.castArray({ 'a': 1 });
     * // => [{ 'a': 1 }]
     *
     * _.castArray('abc');
     * // => ['abc']
     *
     * _.castArray(null);
     * // => [null]
     *
     * _.castArray(undefined);
     * // => [undefined]
     *
     * _.castArray();
     * // => []
     *
     * var array = [1, 2, 3];
     * console.log(_.castArray(array) === array);
     * // => true
     */

/**
     * Casts `value` to `identity` if it's not a function.
     *
     * @private
     * @param {*} value The value to inspect.
     * @returns {Function} Returns cast function.
     */

/**
     * Casts `value` to a path array if it's not one.
     *
     * @private
     * @param {*} value The value to inspect.
     * @param {Object} [object] The object to query keys on.
     * @returns {Array} Returns the cast property path array.
     */

/**
     * Casts `value` to an empty array if it's not an array like object.
     *
     * @private
     * @param {*} value The value to inspect.
     * @returns {Array|Object} Returns the cast array-like object.
     */

/**
     * Category of message (example: `'my-rule'`).
     *
     * @type {string | null}
     */

/**
     * Check if the element is within the visible viewport
     */

/**
     * Checks `value` to determine whether a default value should be returned in
     * its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
     * or `undefined`.
     *
     * @static
     * @memberOf _
     * @since 4.14.0
     * @category Util
     * @param {*} value The value to check.
     * @param {*} defaultValue The default value.
     * @returns {*} Returns the resolved value.
     * @example
     *
     * _.defaultTo(1, 10);
     * // => 1
     *
     * _.defaultTo(undefined, 10);
     * // => 10
     */

/**
     * Checks if `func` has a lazy counterpart.
     *
     * @private
     * @param {Function} func The function to check.
     * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
     *  else `false`.
     */

/**
     * Checks if `func` has its source masked.
     *
     * @private
     * @param {Function} func The function to check.
     * @returns {boolean} Returns `true` if `func` is masked, else `false`.
     */

/**
     * Checks if `func` is capable of being masked.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `func` is maskable, else `false`.
     */

/**
     * Checks if `n` is between `start` and up to, but not including, `end`. If
     * `end` is not specified, it's set to `start` with `start` then set to `0`.
     * If `start` is greater than `end` the params are swapped to support
     * negative ranges.
     *
     * @static
     * @memberOf _
     * @since 3.3.0
     * @category Number
     * @param {number} number The number to check.
     * @param {number} [start=0] The start of the range.
     * @param {number} end The end of the range.
     * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
     * @see _.range, _.rangeRight
     * @example
     *
     * _.inRange(3, 2, 4);
     * // => true
     *
     * _.inRange(4, 8);
     * // => true
     *
     * _.inRange(4, 2);
     * // => false
     *
     * _.inRange(2, 2);
     * // => false
     *
     * _.inRange(1.2, 2);
     * // => true
     *
     * _.inRange(5.2, 4);
     * // => false
     *
     * _.inRange(-3, -2, -6);
     * // => true
     */

/**
     * Checks if `object` conforms to `source` by invoking the predicate
     * properties of `source` with the corresponding property values of `object`.
     *
     * **Note:** This method is equivalent to `_.conforms` when `source` is
     * partially applied.
     *
     * @static
     * @memberOf _
     * @since 4.14.0
     * @category Lang
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property predicates to conform to.
     * @returns {boolean} Returns `true` if `object` conforms, else `false`.
     * @example
     *
     * var object = { 'a': 1, 'b': 2 };
     *
     * _.conformsTo(object, { 'b': function(n) { return n > 1; } });
     * // => true
     *
     * _.conformsTo(object, { 'b': function(n) { return n > 2; } });
     * // => false
     */

/**
     * Checks if `path` exists on `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array|string} path The path to check.
     * @param {Function} hasFunc The function to check properties.
     * @returns {boolean} Returns `true` if `path` exists, else `false`.
     */

/**
     * Checks if `path` is a direct or inherited property of `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path to check.
     * @returns {boolean} Returns `true` if `path` exists, else `false`.
     * @example
     *
     * var object = _.create({ 'a': _.create({ 'b': 2 }) });
     *
     * _.hasIn(object, 'a');
     * // => true
     *
     * _.hasIn(object, 'a.b');
     * // => true
     *
     * _.hasIn(object, ['a', 'b']);
     * // => true
     *
     * _.hasIn(object, 'b');
     * // => false
     */

/**
     * Checks if `path` is a direct property of `object`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path to check.
     * @returns {boolean} Returns `true` if `path` exists, else `false`.
     * @example
     *
     * var object = { 'a': { 'b': 2 } };
     * var other = _.create({ 'a': _.create({ 'b': 2 }) });
     *
     * _.has(object, 'a');
     * // => true
     *
     * _.has(object, 'a.b');
     * // => true
     *
     * _.has(object, ['a', 'b']);
     * // => true
     *
     * _.has(other, 'a');
     * // => false
     */

/**
     * Checks if `predicate` returns truthy for **all** elements of `collection`.
     * Iteration is stopped once `predicate` returns falsey. The predicate is
     * invoked with three arguments: (value, index|key, collection).
     *
     * **Note:** This method returns `true` for
     * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because
     * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of
     * elements of empty collections.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {boolean} Returns `true` if all elements pass the predicate check,
     *  else `false`.
     * @example
     *
     * _.every([true, 1, null, 'yes'], Boolean);
     * // => false
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': false },
     *   { 'user': 'fred',   'age': 40, 'active': false }
     * ];
     *
     * // The `_.matches` iteratee shorthand.
     * _.every(users, { 'user': 'barney', 'active': false });
     * // => false
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.every(users, ['active', false]);
     * // => true
     *
     * // The `_.property` iteratee shorthand.
     * _.every(users, 'active');
     * // => false
     */

/**
     * Checks if `predicate` returns truthy for **any** element of `collection`.
     * Iteration is stopped once `predicate` returns truthy. The predicate is
     * invoked with three arguments: (value, index|key, collection).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {boolean} Returns `true` if any element passes the predicate check,
     *  else `false`.
     * @example
     *
     * _.some([null, 0, 'yes', false], Boolean);
     * // => true
     *
     * var users = [
     *   { 'user': 'barney', 'active': true },
     *   { 'user': 'fred',   'active': false }
     * ];
     *
     * // The `_.matches` iteratee shorthand.
     * _.some(users, { 'user': 'barney', 'active': false });
     * // => false
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.some(users, ['active', false]);
     * // => true
     *
     * // The `_.property` iteratee shorthand.
     * _.some(users, 'active');
     * // => true
     */

/**
     * Checks if `string` ends with the given target string.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to inspect.
     * @param {string} [target] The string to search for.
     * @param {number} [position=string.length] The position to search up to.
     * @returns {boolean} Returns `true` if `string` ends with `target`,
     *  else `false`.
     * @example
     *
     * _.endsWith('abc', 'c');
     * // => true
     *
     * _.endsWith('abc', 'b');
     * // => false
     *
     * _.endsWith('abc', 'b', 2);
     * // => true
     */

/**
     * Checks if `string` starts with the given target string.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to inspect.
     * @param {string} [target] The string to search for.
     * @param {number} [position=0] The position to search from.
     * @returns {boolean} Returns `true` if `string` starts with `target`,
     *  else `false`.
     * @example
     *
     * _.startsWith('abc', 'a');
     * // => true
     *
     * _.startsWith('abc', 'b');
     * // => false
     *
     * _.startsWith('abc', 'b', 1);
     * // => true
     */

/**
     * Checks if `value` is `NaN`.
     *
     * **Note:** This method is based on
     * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
     * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
     * `undefined` and other non-number values.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
     * @example
     *
     * _.isNaN(NaN);
     * // => true
     *
     * _.isNaN(new Number(NaN));
     * // => true
     *
     * isNaN(undefined);
     * // => true
     *
     * _.isNaN(undefined);
     * // => false
     */

/**
     * Checks if `value` is `null` or `undefined`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is nullish, else `false`.
     * @example
     *
     * _.isNil(null);
     * // => true
     *
     * _.isNil(void 0);
     * // => true
     *
     * _.isNil(NaN);
     * // => false
     */

/**
     * Checks if `value` is `null`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is `null`, else `false`.
     * @example
     *
     * _.isNull(null);
     * // => true
     *
     * _.isNull(void 0);
     * // => false
     */

/**
     * Checks if `value` is `undefined`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
     * @example
     *
     * _.isUndefined(void 0);
     * // => true
     *
     * _.isUndefined(null);
     * // => false
     */

/**
     * Checks if `value` is a buffer.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
     * @example
     *
     * _.isBuffer(new Buffer(2));
     * // => true
     *
     * _.isBuffer(new Uint8Array(2));
     * // => false
     */

/**
     * Checks if `value` is a finite primitive number.
     *
     * **Note:** This method is based on
     * [`Number.isFinite`](https://mdn.io/Number/isFinite).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
     * @example
     *
     * _.isFinite(3);
     * // => true
     *
     * _.isFinite(Number.MIN_VALUE);
     * // => true
     *
     * _.isFinite(Infinity);
     * // => false
     *
     * _.isFinite('3');
     * // => false
     */

/**
     * Checks if `value` is a flattenable `arguments` object or array.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
     */

/**
     * Checks if `value` is a plain object, that is, an object created by the
     * `Object` constructor or one with a `[[Prototype]]` of `null`.
     *
     * @static
     * @memberOf _
     * @since 0.8.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     * }
     *
     * _.isPlainObject(new Foo);
     * // => false
     *
     * _.isPlainObject([1, 2, 3]);
     * // => false
     *
     * _.isPlainObject({ 'x': 0, 'y': 0 });
     * // => true
     *
     * _.isPlainObject(Object.create(null));
     * // => true
     */

/**
     * Checks if `value` is a pristine native function.
     *
     * **Note:** This method can't reliably detect native functions in the presence
     * of the core-js package because core-js circumvents this kind of detection.
     * Despite multiple requests, the core-js maintainer has made it clear: any
     * attempt to fix the detection will be obstructed. As a result, we're left
     * with little choice but to throw an error. Unfortunately, this also affects
     * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),
     * which rely on core-js.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a native function,
     *  else `false`.
     * @example
     *
     * _.isNative(Array.prototype.push);
     * // => true
     *
     * _.isNative(_);
     * // => false
     */

/**
     * Checks if `value` is a property name and not a property path.
     *
     * @private
     * @param {*} value The value to check.
     * @param {Object} [object] The object to query keys on.
     * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
     */

/**
     * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
     * double precision number which isn't the result of a rounded unsafe integer.
     *
     * **Note:** This method is based on
     * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.
     * @example
     *
     * _.isSafeInteger(3);
     * // => true
     *
     * _.isSafeInteger(Number.MIN_VALUE);
     * // => false
     *
     * _.isSafeInteger(Infinity);
     * // => false
     *
     * _.isSafeInteger('3');
     * // => false
     */

/**
     * Checks if `value` is a valid array-like index.
     *
     * @private
     * @param {*} value The value to check.
     * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
     * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
     */

/**
     * Checks if `value` is a valid array-like length.
     *
     * **Note:** This method is loosely based on
     * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
     * @example
     *
     * _.isLength(3);
     * // => true
     *
     * _.isLength(Number.MIN_VALUE);
     * // => false
     *
     * _.isLength(Infinity);
     * // => false
     *
     * _.isLength('3');
     * // => false
     */

/**
     * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
     * `SyntaxError`, `TypeError`, or `URIError` object.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an error object, else `false`.
     * @example
     *
     * _.isError(new Error);
     * // => true
     *
     * _.isError(Error);
     * // => false
     */

/**
     * Checks if `value` is an empty object, collection, map, or set.
     *
     * Objects are considered empty if they have no own enumerable string keyed
     * properties.
     *
     * Array-like values such as `arguments` objects, arrays, buffers, strings, or
     * jQuery-like collections are considered empty if they have a `length` of `0`.
     * Similarly, maps and sets are considered empty if they have a `size` of `0`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is empty, else `false`.
     * @example
     *
     * _.isEmpty(null);
     * // => true
     *
     * _.isEmpty(true);
     * // => true
     *
     * _.isEmpty(1);
     * // => true
     *
     * _.isEmpty([1, 2, 3]);
     * // => false
     *
     * _.isEmpty({ 'a': 1 });
     * // => false
     */

/**
     * Checks if `value` is an integer.
     *
     * **Note:** This method is based on
     * [`Number.isInteger`](https://mdn.io/Number/isInteger).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an integer, else `false`.
     * @example
     *
     * _.isInteger(3);
     * // => true
     *
     * _.isInteger(Number.MIN_VALUE);
     * // => false
     *
     * _.isInteger(Infinity);
     * // => false
     *
     * _.isInteger('3');
     * // => false
     */

/**
     * Checks if `value` is array-like. A value is considered array-like if it's
     * not a function and has a `value.length` that's an integer greater than or
     * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
     * @example
     *
     * _.isArrayLike([1, 2, 3]);
     * // => true
     *
     * _.isArrayLike(document.body.children);
     * // => true
     *
     * _.isArrayLike('abc');
     * // => true
     *
     * _.isArrayLike(_.noop);
     * // => false
     */

/**
     * Checks if `value` is classified as a `Date` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
     * @example
     *
     * _.isDate(new Date);
     * // => true
     *
     * _.isDate('Mon April 23 2012');
     * // => false
     */

/**
     * Checks if `value` is classified as a `Function` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a function, else `false`.
     * @example
     *
     * _.isFunction(_);
     * // => true
     *
     * _.isFunction(/abc/);
     * // => false
     */

/**
     * Checks if `value` is classified as a `Map` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a map, else `false`.
     * @example
     *
     * _.isMap(new Map);
     * // => true
     *
     * _.isMap(new WeakMap);
     * // => false
     */

/**
     * Checks if `value` is classified as a `Number` primitive or object.
     *
     * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
     * classified as numbers, use the `_.isFinite` method.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a number, else `false`.
     * @example
     *
     * _.isNumber(3);
     * // => true
     *
     * _.isNumber(Number.MIN_VALUE);
     * // => true
     *
     * _.isNumber(Infinity);
     * // => true
     *
     * _.isNumber('3');
     * // => false
     */

/**
     * Checks if `value` is classified as a `RegExp` object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
     * @example
     *
     * _.isRegExp(/abc/);
     * // => true
     *
     * _.isRegExp('/abc/');
     * // => false
     */

/**
     * Checks if `value` is classified as a `Set` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a set, else `false`.
     * @example
     *
     * _.isSet(new Set);
     * // => true
     *
     * _.isSet(new WeakSet);
     * // => false
     */

/**
     * Checks if `value` is classified as a `String` primitive or object.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a string, else `false`.
     * @example
     *
     * _.isString('abc');
     * // => true
     *
     * _.isString(1);
     * // => false
     */

/**
     * Checks if `value` is classified as a `Symbol` primitive or object.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
     * @example
     *
     * _.isSymbol(Symbol.iterator);
     * // => true
     *
     * _.isSymbol('abc');
     * // => false
     */

/**
     * Checks if `value` is classified as a `WeakMap` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.
     * @example
     *
     * _.isWeakMap(new WeakMap);
     * // => true
     *
     * _.isWeakMap(new Map);
     * // => false
     */

/**
     * Checks if `value` is classified as a `WeakSet` object.
     *
     * @static
     * @memberOf _
     * @since 4.3.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.
     * @example
     *
     * _.isWeakSet(new WeakSet);
     * // => true
     *
     * _.isWeakSet(new Set);
     * // => false
     */

/**
     * Checks if `value` is classified as a boolean primitive or object.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.
     * @example
     *
     * _.isBoolean(false);
     * // => true
     *
     * _.isBoolean(null);
     * // => false
     */

/**
     * Checks if `value` is classified as a typed array.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
     * @example
     *
     * _.isTypedArray(new Uint8Array);
     * // => true
     *
     * _.isTypedArray([]);
     * // => false
     */

/**
     * Checks if `value` is greater than `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is greater than `other`,
     *  else `false`.
     * @see _.lt
     * @example
     *
     * _.gt(3, 1);
     * // => true
     *
     * _.gt(3, 3);
     * // => false
     *
     * _.gt(1, 3);
     * // => false
     */

/**
     * Checks if `value` is greater than or equal to `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is greater than or equal to
     *  `other`, else `false`.
     * @see _.lte
     * @example
     *
     * _.gte(3, 1);
     * // => true
     *
     * _.gte(3, 3);
     * // => true
     *
     * _.gte(1, 3);
     * // => false
     */

/**
     * Checks if `value` is in `collection`. If `collection` is a string, it's
     * checked for a substring of `value`, otherwise
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * is used for equality comparisons. If `fromIndex` is negative, it's used as
     * the offset from the end of `collection`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object|string} collection The collection to inspect.
     * @param {*} value The value to search for.
     * @param {number} [fromIndex=0] The index to search from.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
     * @returns {boolean} Returns `true` if `value` is found, else `false`.
     * @example
     *
     * _.includes([1, 2, 3], 1);
     * // => true
     *
     * _.includes([1, 2, 3], 1, 2);
     * // => false
     *
     * _.includes({ 'a': 1, 'b': 2 }, 1);
     * // => true
     *
     * _.includes('abcd', 'bc');
     * // => true
     */

/**
     * Checks if `value` is in the array cache.
     *
     * @private
     * @name has
     * @memberOf SetCache
     * @param {*} value The value to search for.
     * @returns {number} Returns `true` if `value` is found, else `false`.
     */

/**
     * Checks if `value` is less than `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is less than `other`,
     *  else `false`.
     * @see _.gt
     * @example
     *
     * _.lt(1, 3);
     * // => true
     *
     * _.lt(3, 3);
     * // => false
     *
     * _.lt(3, 1);
     * // => false
     */

/**
     * Checks if `value` is less than or equal to `other`.
     *
     * @static
     * @memberOf _
     * @since 3.9.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is less than or equal to
     *  `other`, else `false`.
     * @see _.gte
     * @example
     *
     * _.lte(1, 3);
     * // => true
     *
     * _.lte(3, 3);
     * // => true
     *
     * _.lte(3, 1);
     * // => false
     */

/**
     * Checks if `value` is likely a DOM element.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.
     * @example
     *
     * _.isElement(document.body);
     * // => true
     *
     * _.isElement('<body>');
     * // => false
     */

/**
     * Checks if `value` is likely a prototype object.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
     */

/**
     * Checks if `value` is object-like. A value is object-like if it's not `null`
     * and has a `typeof` result of "object".
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
     * @example
     *
     * _.isObjectLike({});
     * // => true
     *
     * _.isObjectLike([1, 2, 3]);
     * // => true
     *
     * _.isObjectLike(_.noop);
     * // => false
     *
     * _.isObjectLike(null);
     * // => false
     */

/**
     * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` if suitable for strict
     *  equality comparisons, else `false`.
     */

/**
     * Checks if `value` is suitable for use as unique object key.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
     */

/**
     * Checks if `value` is the
     * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
     * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an object, else `false`.
     * @example
     *
     * _.isObject({});
     * // => true
     *
     * _.isObject([1, 2, 3]);
     * // => true
     *
     * _.isObject(_.noop);
     * // => true
     *
     * _.isObject(null);
     * // => false
     */

/**
     * Checks if a hash value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf Hash
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */

/**
     * Checks if a list cache value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf ListCache
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */

/**
     * Checks if a map value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf MapCache
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */

/**
     * Checks if a stack value for `key` exists.
     *
     * @private
     * @name has
     * @memberOf Stack
     * @param {string} key The key of the entry to check.
     * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
     */

/**
     * Checks if the given arguments are from an iteratee call.
     *
     * @private
     * @param {*} value The potential iteratee value argument.
     * @param {*} index The potential iteratee index or key argument.
     * @param {*} object The potential iteratee object argument.
     * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
     *  else `false`.
     */

/**
     * Checks whether provided element is a document element (<html>).
     *
     * @param {Element} target - Element to be checked.
     * @returns {boolean}
     */

/**
     * Checks whether provided element is an instance of the SVGGraphicsElement.
     *
     * @param {Element} target - Element to be checked.
     * @returns {boolean}
     */

/**
     * Clamps `number` within the inclusive `lower` and `upper` bounds.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Number
     * @param {number} number The number to clamp.
     * @param {number} [lower] The lower bound.
     * @param {number} upper The upper bound.
     * @returns {number} Returns the clamped number.
     * @example
     *
     * _.clamp(-10, -5, 5);
     * // => -5
     *
     * _.clamp(10, -5, 5);
     * // => 5
     */

/**
     * Class for managing events.
     * Can be extended to provide event functionality in other classes.
     *
     * @class EventEmitter Manages event registering and emitting.
     */

/**
     * Class that is responsible for computations of the content rectangle of
     * provided DOM element and for keeping track of it's changes.
     */

/**
     * Clears all handlers and unbinds events
     */

/**
     * Compares values to sort them in ascending order.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {number} Returns the sort order indicator for `value`.
     */

/**
     * Completely desaturates a color into greyscale.
     * Same as calling `desaturate(100)`
     */

/**
     * Compute how the color would appear on a background
     */

/**
     * Computes `number` rounded to `precision`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Math
     * @param {number} number The number to round.
     * @param {number} [precision=0] The precision to round to.
     * @returns {number} Returns the rounded number.
     * @example
     *
     * _.round(4.006);
     * // => 4
     *
     * _.round(4.006, 2);
     * // => 4.01
     *
     * _.round(4060, -2);
     * // => 4100
     */

/**
     * Computes `number` rounded up to `precision`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Math
     * @param {number} number The number to round up.
     * @param {number} [precision=0] The precision to round up to.
     * @returns {number} Returns the rounded up number.
     * @example
     *
     * _.ceil(4.006);
     * // => 5
     *
     * _.ceil(6.004, 2);
     * // => 6.01
     *
     * _.ceil(6040, -2);
     * // => 6100
     */

/**
     * Computes the maximum value of `array`. If `array` is empty or falsey,
     * `undefined` is returned.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {*} Returns the maximum value.
     * @example
     *
     * _.max([4, 2, 8, 6]);
     * // => 8
     *
     * _.max([]);
     * // => undefined
     */

/**
     * Computes the mean of the values in `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {number} Returns the mean.
     * @example
     *
     * _.mean([4, 2, 8, 6]);
     * // => 5
     */

/**
     * Computes the minimum value of `array`. If `array` is empty or falsey,
     * `undefined` is returned.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {*} Returns the minimum value.
     * @example
     *
     * _.min([4, 2, 8, 6]);
     * // => 2
     *
     * _.min([]);
     * // => undefined
     */

/**
     * Computes the sum of the values in `array`.
     *
     * @static
     * @memberOf _
     * @since 3.4.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @returns {number} Returns the sum.
     * @example
     *
     * _.sum([4, 2, 8, 6]);
     * // => 20
     */

/**
     * Convert an object into an observable sequence of [key, value] pairs
     * using an optional IScheduler to enumerate the object.
     *
     * @example <caption>Converts a javascript object to an Observable</caption>
     * var obj = {
     *   foo: 42,
     *   bar: 56,
     *   baz: 78
     * };
     *
     * var source = Rx.Observable.pairs(obj);
     *
     * var subscription = source.subscribe(
     *   function (x) {
     *     console.log('Next: %s', x);
     *   },
     *   function (err) {
     *     console.log('Error: %s', err);
     *   },
     *   function () {
     *     console.log('Completed');
     *   });
     *
     * @param {Object} obj The object to inspect and turn into an
     * Observable sequence.
     * @param {Scheduler} [scheduler] An optional IScheduler to run the
     * enumeration of the input sequence on.
     * @returns {(Observable<Array<string | T>>)} An observable sequence of
     * [key, value] pairs from the object.
     */

/**
     * Converts `func` to its source code.
     *
     * @private
     * @param {Function} func The function to convert.
     * @returns {string} Returns the source code.
     */

/**
     * Converts `string` to
     * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the kebab cased string.
     * @example
     *
     * _.kebabCase('Foo Bar');
     * // => 'foo-bar'
     *
     * _.kebabCase('fooBar');
     * // => 'foo-bar'
     *
     * _.kebabCase('__FOO_BAR__');
     * // => 'foo-bar'
     */

/**
     * Converts `string` to
     * [snake case](https://en.wikipedia.org/wiki/Snake_case).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the snake cased string.
     * @example
     *
     * _.snakeCase('Foo Bar');
     * // => 'foo_bar'
     *
     * _.snakeCase('fooBar');
     * // => 'foo_bar'
     *
     * _.snakeCase('--FOO-BAR--');
     * // => 'foo_bar'
     */

/**
     * Converts `string` to
     * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
     *
     * @static
     * @memberOf _
     * @since 3.1.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the start cased string.
     * @example
     *
     * _.startCase('--foo-bar--');
     * // => 'Foo Bar'
     *
     * _.startCase('fooBar');
     * // => 'Foo Bar'
     *
     * _.startCase('__FOO_BAR__');
     * // => 'FOO BAR'
     */

/**
     * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the camel cased string.
     * @example
     *
     * _.camelCase('Foo Bar');
     * // => 'fooBar'
     *
     * _.camelCase('--foo-bar--');
     * // => 'fooBar'
     *
     * _.camelCase('__FOO_BAR__');
     * // => 'fooBar'
     */

/**
     * Converts `string` to a property path array.
     *
     * @private
     * @param {string} string The string to convert.
     * @returns {Array} Returns the property path array.
     */

/**
     * Converts `string` to an integer of the specified radix. If `radix` is
     * `undefined` or `0`, a `radix` of `10` is used unless `value` is a
     * hexadecimal, in which case a `radix` of `16` is used.
     *
     * **Note:** This method aligns with the
     * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.
     *
     * @static
     * @memberOf _
     * @since 1.1.0
     * @category String
     * @param {string} string The string to convert.
     * @param {number} [radix=10] The radix to interpret `value` by.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.parseInt('08');
     * // => 8
     *
     * _.map(['6', '08', '10'], _.parseInt);
     * // => [6, 8, 10]
     */

/**
     * Converts `string`, as a whole, to lower case just like
     * [String#toLowerCase](https://mdn.io/toLowerCase).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the lower cased string.
     * @example
     *
     * _.toLower('--Foo-Bar--');
     * // => '--foo-bar--'
     *
     * _.toLower('fooBar');
     * // => 'foobar'
     *
     * _.toLower('__FOO_BAR__');
     * // => '__foo_bar__'
     */

/**
     * Converts `string`, as a whole, to upper case just like
     * [String#toUpperCase](https://mdn.io/toUpperCase).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the upper cased string.
     * @example
     *
     * _.toUpper('--foo-bar--');
     * // => '--FOO-BAR--'
     *
     * _.toUpper('fooBar');
     * // => 'FOOBAR'
     *
     * _.toUpper('__foo_bar__');
     * // => '__FOO_BAR__'
     */

/**
     * Converts `string`, as space separated words, to lower case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the lower cased string.
     * @example
     *
     * _.lowerCase('--Foo-Bar--');
     * // => 'foo bar'
     *
     * _.lowerCase('fooBar');
     * // => 'foo bar'
     *
     * _.lowerCase('__FOO_BAR__');
     * // => 'foo bar'
     */

/**
     * Converts `string`, as space separated words, to upper case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the upper cased string.
     * @example
     *
     * _.upperCase('--foo-bar');
     * // => 'FOO BAR'
     *
     * _.upperCase('fooBar');
     * // => 'FOO BAR'
     *
     * _.upperCase('__foo_bar__');
     * // => 'FOO BAR'
     */

/**
     * Converts `value` to a finite number.
     *
     * @static
     * @memberOf _
     * @since 4.12.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted number.
     * @example
     *
     * _.toFinite(3.2);
     * // => 3.2
     *
     * _.toFinite(Number.MIN_VALUE);
     * // => 5e-324
     *
     * _.toFinite(Infinity);
     * // => 1.7976931348623157e+308
     *
     * _.toFinite('3.2');
     * // => 3.2
     */

/**
     * Converts `value` to a number.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to process.
     * @returns {number} Returns the number.
     * @example
     *
     * _.toNumber(3.2);
     * // => 3.2
     *
     * _.toNumber(Number.MIN_VALUE);
     * // => 5e-324
     *
     * _.toNumber(Infinity);
     * // => Infinity
     *
     * _.toNumber('3.2');
     * // => 3.2
     */

/**
     * Converts `value` to a plain object flattening inherited enumerable string
     * keyed properties of `value` to own properties of the plain object.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {Object} Returns the converted plain object.
     * @example
     *
     * function Foo() {
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.assign({ 'a': 1 }, new Foo);
     * // => { 'a': 1, 'b': 2 }
     *
     * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
     * // => { 'a': 1, 'b': 2, 'c': 3 }
     */

/**
     * Converts `value` to a property path array.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {*} value The value to convert.
     * @returns {Array} Returns the new property path array.
     * @example
     *
     * _.toPath('a.b.c');
     * // => ['a', 'b', 'c']
     *
     * _.toPath('a[0].b.c');
     * // => ['a', '0', 'b', 'c']
     */

/**
     * Converts `value` to a safe integer. A safe integer can be compared and
     * represented correctly.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.toSafeInteger(3.2);
     * // => 3
     *
     * _.toSafeInteger(Number.MIN_VALUE);
     * // => 0
     *
     * _.toSafeInteger(Infinity);
     * // => 9007199254740991
     *
     * _.toSafeInteger('3.2');
     * // => 3
     */

/**
     * Converts `value` to a string key if it's not a string or symbol.
     *
     * @private
     * @param {*} value The value to inspect.
     * @returns {string|symbol} Returns the key.
     */

/**
     * Converts `value` to a string using `Object.prototype.toString`.
     *
     * @private
     * @param {*} value The value to convert.
     * @returns {string} Returns the converted string.
     */

/**
     * Converts `value` to a string. An empty string is returned for `null`
     * and `undefined` values. The sign of `-0` is preserved.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {string} Returns the converted string.
     * @example
     *
     * _.toString(null);
     * // => ''
     *
     * _.toString(-0);
     * // => '-0'
     *
     * _.toString([1, 2, 3]);
     * // => '1,2,3'
     */

/**
     * Converts `value` to an array.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {Array} Returns the converted array.
     * @example
     *
     * _.toArray({ 'a': 1, 'b': 2 });
     * // => [1, 2]
     *
     * _.toArray('abc');
     * // => ['a', 'b', 'c']
     *
     * _.toArray(1);
     * // => []
     *
     * _.toArray(null);
     * // => []
     */

/**
     * Converts `value` to an integer suitable for use as the length of an
     * array-like object.
     *
     * **Note:** This method is based on
     * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.toLength(3.2);
     * // => 3
     *
     * _.toLength(Number.MIN_VALUE);
     * // => 0
     *
     * _.toLength(Infinity);
     * // => 4294967295
     *
     * _.toLength('3.2');
     * // => 3
     */

/**
     * Converts `value` to an integer.
     *
     * **Note:** This method is loosely based on
     * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to convert.
     * @returns {number} Returns the converted integer.
     * @example
     *
     * _.toInteger(3.2);
     * // => 3
     *
     * _.toInteger(Number.MIN_VALUE);
     * // => 0
     *
     * _.toInteger(Infinity);
     * // => 1.7976931348623157e+308
     *
     * _.toInteger('3.2');
     * // => 3
     */

/**
     * Converts a Node.js-style callback API to a function that returns an
     * Observable.
     *
     * <span class="informal">It's just like {@link bindCallback}, but the
     * callback is expected to be of type `callback(error, result)`.</span>
     *
     * `bindNodeCallback` is not an operator because its input and output are not
     * Observables. The input is a function `func` with some parameters, but the
     * last parameter must be a callback function that `func` calls when it is
     * done. The callback function is expected to follow Node.js conventions,
     * where the first argument to the callback is an error object, signaling
     * whether call was successful. If that object is passed to callback, it means
     * something went wrong.
     *
     * The output of `bindNodeCallback` is a function that takes the same
     * parameters as `func`, except the last one (the callback). When the output
     * function is called with arguments, it will return an Observable.
     * If `func` calls its callback with error parameter present, Observable will
     * error with that value as well. If error parameter is not passed, Observable will emit
     * second parameter. If there are more parameters (third and so on),
     * Observable will emit an array with all arguments, except first error argument.
     *
     * Optionally `bindNodeCallback` accepts selector function, which allows you to
     * make resulting Observable emit value computed by selector, instead of regular
     * callback arguments. It works similarly to {@link bindCallback} selector, but
     * Node.js-style error argument will never be passed to that function.
     *
     * Note that `func` will not be called at the same time output function is,
     * but rather whenever resulting Observable is subscribed. By default call to
     * `func` will happen synchronously after subscription, but that can be changed
     * with proper {@link Scheduler} provided as optional third parameter. Scheduler
     * can also control when values from callback will be emitted by Observable.
     * To find out more, check out documentation for {@link bindCallback}, where
     * Scheduler works exactly the same.
     *
     * As in {@link bindCallback}, context (`this` property) of input function will be set to context
     * of returned function, when it is called.
     *
     * After Observable emits value, it will complete immediately. This means
     * even if `func` calls callback again, values from second and consecutive
     * calls will never appear on the stream. If you need to handle functions
     * that call callbacks multiple times, check out {@link fromEvent} or
     * {@link fromEventPattern} instead.
     *
     * Note that `bindNodeCallback` can be used in non-Node.js environments as well.
     * "Node.js-style" callbacks are just a convention, so if you write for
     * browsers or any other environment and API you use implements that callback style,
     * `bindNodeCallback` can be safely used on that API functions as well.
     *
     * Remember that Error object passed to callback does not have to be an instance
     * of JavaScript built-in `Error` object. In fact, it does not even have to an object.
     * Error parameter of callback function is interpreted as "present", when value
     * of that parameter is truthy. It could be, for example, non-zero number, non-empty
     * string or boolean `true`. In all of these cases resulting Observable would error
     * with that value. This means usually regular style callbacks will fail very often when
     * `bindNodeCallback` is used. If your Observable errors much more often then you
     * would expect, check if callback really is called in Node.js-style and, if not,
     * switch to {@link bindCallback} instead.
     *
     * Note that even if error parameter is technically present in callback, but its value
     * is falsy, it still won't appear in array emitted by Observable or in selector function.
     *
     *
     * @example <caption>Read a file from the filesystem and get the data as an Observable</caption>
     * import * as fs from 'fs';
     * var readFileAsObservable = Rx.Observable.bindNodeCallback(fs.readFile);
     * var result = readFileAsObservable('./roadNames.txt', 'utf8');
     * result.subscribe(x => console.log(x), e => console.error(e));
     *
     *
     * @example <caption>Use on function calling callback with multiple arguments</caption>
     * someFunction((err, a, b) => {
     *   console.log(err); // null
     *   console.log(a); // 5
     *   console.log(b); // "some string"
     * });
     * var boundSomeFunction = Rx.Observable.bindNodeCallback(someFunction);
     * boundSomeFunction()
     * .subscribe(value => {
     *   console.log(value); // [5, "some string"]
     * });
     *
     *
     * @example <caption>Use with selector function</caption>
     * someFunction((err, a, b) => {
     *   console.log(err); // undefined
     *   console.log(a); // "abc"
     *   console.log(b); // "DEF"
     * });
     * var boundSomeFunction = Rx.Observable.bindNodeCallback(someFunction, (a, b) => a + b);
     * boundSomeFunction()
     * .subscribe(value => {
     *   console.log(value); // "abcDEF"
     * });
     *
     *
     * @example <caption>Use on function calling callback in regular style</caption>
     * someFunction(a => {
     *   console.log(a); // 5
     * });
     * var boundSomeFunction = Rx.Observable.bindNodeCallback(someFunction);
     * boundSomeFunction()
     * .subscribe(
     *   value => {}             // never gets called
     *   err => console.log(err) // 5
     *);
     *
     *
     * @see {@link bindCallback}
     * @see {@link from}
     * @see {@link fromPromise}
     *
     * @param {function} func Function with a Node.js-style callback as the last parameter.
     * @param {function} [selector] A function which takes the arguments from the
     * callback and maps those to a value to emit on the output Observable.
     * @param {Scheduler} [scheduler] The scheduler on which to schedule the
     * callbacks.
     * @return {function(...params: *): Observable} A function which returns the
     * Observable that delivers the same values the Node.js callback would
     * deliver.
     * @static true
     * @name bindNodeCallback
     * @owner Observable
     */

/**
     * Converts a Promise to an Observable.
     *
     * <span class="informal">Returns an Observable that just emits the Promise's
     * resolved value, then completes.</span>
     *
     * Converts an ES2015 Promise or a Promises/A+ spec compliant Promise to an
     * Observable. If the Promise resolves with a value, the output Observable
     * emits that resolved value as a `next`, and then completes. If the Promise
     * is rejected, then the output Observable emits the corresponding Error.
     *
     * @example <caption>Convert the Promise returned by Fetch to an Observable</caption>
     * var result = Rx.Observable.fromPromise(fetch('http://myserver.com/'));
     * result.subscribe(x => console.log(x), e => console.error(e));
     *
     * @see {@link bindCallback}
     * @see {@link from}
     *
     * @param {PromiseLike<T>} promise The promise to be converted.
     * @param {Scheduler} [scheduler] An optional IScheduler to use for scheduling
     * the delivery of the resolved value (or the rejection).
     * @return {Observable<T>} An Observable which wraps the Promise.
     * @static true
     * @name fromPromise
     * @owner Observable
     */

/**
     * Converts a callback API to a function that returns an Observable.
     *
     * <span class="informal">Give it a function `f` of type `f(x, callback)` and
     * it will return a function `g` that when called as `g(x)` will output an
     * Observable.</span>
     *
     * `bindCallback` is not an operator because its input and output are not
     * Observables. The input is a function `func` with some parameters, the
     * last parameter must be a callback function that `func` calls when it is
     * done.
     *
     * The output of `bindCallback` is a function that takes the same parameters
     * as `func`, except the last one (the callback). When the output function
     * is called with arguments it will return an Observable. If function `func`
     * calls its callback with one argument the Observable will emit that value.
     * If on the other hand the callback is called with multiple values the resulting
     * Observable will emit an array with said values as arguments.
     *
     * It is very important to remember that input function `func` is not called
     * when the output function is, but rather when the Observable returned by the output
     * function is subscribed. This means if `func` makes an AJAX request, that request
     * will be made every time someone subscribes to the resulting Observable, but not before.
     *
     * Optionally, a selector function can be passed to `bindObservable`. The selector function
     * takes the same arguments as the callback and returns the value that will be emitted by the Observable.
     * Even though by default multiple arguments passed to callback appear in the stream as an array
     * the selector function will be called with arguments directly, just as the callback would.
     * This means you can imagine the default selector (when one is not provided explicitly)
     * as a function that aggregates all its arguments into an array, or simply returns first argument
     * if there is only one.
     *
     * The last optional parameter - {@link Scheduler} - can be used to control when the call
     * to `func` happens after someone subscribes to Observable, as well as when results
     * passed to callback will be emitted. By default, the subscription to  an Observable calls `func`
     * synchronously, but using `Scheduler.async` as the last parameter will defer the call to `func`,
     * just like wrapping the call in `setTimeout` with a timeout of `0` would. If you use the async Scheduler
     * and call `subscribe` on the output Observable all function calls that are currently executing
     * will end before `func` is invoked.
     *
     * By default results passed to the callback are emitted immediately after `func` invokes the callback.
     * In particular, if the callback is called synchronously the subscription of the resulting Observable
     * will call the `next` function synchronously as well.  If you want to defer that call,
     * you may use `Scheduler.async` just as before.  This means that by using `Scheduler.async` you can
     * ensure that `func` always calls its callback asynchronously, thus avoiding terrifying Zalgo.
     *
     * Note that the Observable created by the output function will always emit a single value
     * and then complete immediately. If `func` calls the callback multiple times, values from subsequent
     * calls will not appear in the stream. If you need to listen for multiple calls,
     *  you probably want to use {@link fromEvent} or {@link fromEventPattern} instead.
     *
     * If `func` depends on some context (`this` property) and is not already bound the context of `func`
     * will be the context that the output function has at call time. In particular, if `func`
     * is called as a method of some objec and if `func` is not already bound, in order to preserve the context
     * it is recommended that the context of the output function is set to that object as well.
     *
     * If the input function calls its callback in the "node style" (i.e. first argument to callback is
     * optional error parameter signaling whether the call failed or not), {@link bindNodeCallback}
     * provides convenient error handling and probably is a better choice.
     * `bindCallback` will treat such functions the same as any other and error parameters
     * (whether passed or not) will always be interpreted as regular callback argument.
     *
     *
     * @example <caption>Convert jQuery's getJSON to an Observable API</caption>
     * // Suppose we have jQuery.getJSON('/my/url', callback)
     * var getJSONAsObservable = Rx.Observable.bindCallback(jQuery.getJSON);
     * var result = getJSONAsObservable('/my/url');
     * result.subscribe(x => console.log(x), e => console.error(e));
     *
     *
     * @example <caption>Receive an array of arguments passed to a callback</caption>
     * someFunction((a, b, c) => {
     *   console.log(a); // 5
     *   console.log(b); // 'some string'
     *   console.log(c); // {someProperty: 'someValue'}
     * });
     *
     * const boundSomeFunction = Rx.Observable.bindCallback(someFunction);
     * boundSomeFunction().subscribe(values => {
     *   console.log(values) // [5, 'some string', {someProperty: 'someValue'}]
     * });
     *
     *
     * @example <caption>Use bindCallback with a selector function</caption>
     * someFunction((a, b, c) => {
     *   console.log(a); // 'a'
     *   console.log(b); // 'b'
     *   console.log(c); // 'c'
     * });
     *
     * const boundSomeFunction = Rx.Observable.bindCallback(someFunction, (a, b, c) => a + b + c);
     * boundSomeFunction().subscribe(value => {
     *   console.log(value) // 'abc'
     * });
     *
     *
     * @example <caption>Compare behaviour with and without async Scheduler</caption>
     * function iCallMyCallbackSynchronously(cb) {
     *   cb();
     * }
     *
     * const boundSyncFn = Rx.Observable.bindCallback(iCallMyCallbackSynchronously);
     * const boundAsyncFn = Rx.Observable.bindCallback(iCallMyCallbackSynchronously, null, Rx.Scheduler.async);
     *
     * boundSyncFn().subscribe(() => console.log('I was sync!'));
     * boundAsyncFn().subscribe(() => console.log('I was async!'));
     * console.log('This happened...');
     *
     * // Logs:
     * // I was sync!
     * // This happened...
     * // I was async!
     *
     *
     * @example <caption>Use bindCallback on an object method</caption>
     * const boundMethod = Rx.Observable.bindCallback(someObject.methodWithCallback);
     * boundMethod.call(someObject) // make sure methodWithCallback has access to someObject
     * .subscribe(subscriber);
     *
     *
     * @see {@link bindNodeCallback}
     * @see {@link from}
     * @see {@link fromPromise}
     *
     * @param {function} func A function with a callback as the last parameter.
     * @param {function} [selector] A function which takes the arguments from the
     * callback and maps them to a value that is emitted on the output Observable.
     * @param {Scheduler} [scheduler] The scheduler on which to schedule the
     * callbacks.
     * @return {function(...params: *): Observable} A function which returns the
     * Observable that delivers the same values the callback would deliver.
     * @static true
     * @name bindCallback
     * @owner Observable
     */

/**
     * Converts all elements in `array` into a string separated by `separator`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to convert.
     * @param {string} [separator=','] The element separator.
     * @returns {string} Returns the joined string.
     * @example
     *
     * _.join(['a', 'b', 'c'], '~');
     * // => 'a~b~c'
     */

/**
     * Converts provided string to a number.
     *
     * @param {number|string} value
     * @returns {number}
     */

/**
     * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
     * corresponding HTML entities.
     *
     * **Note:** No other characters are escaped. To escape additional
     * characters use a third-party library like [_he_](https://mths.be/he).
     *
     * Though the ">" character is escaped for symmetry, characters like
     * ">" and "/" don't need escaping in HTML and have no special meaning
     * unless they're part of a tag or unquoted attribute value. See
     * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
     * (under "semi-related fun fact") for more details.
     *
     * When working with HTML you should always
     * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
     * XSS vectors.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category String
     * @param {string} [string=''] The string to escape.
     * @returns {string} Returns the escaped string.
     * @example
     *
     * _.escape('fred, barney, & pebbles');
     * // => 'fred, barney, &amp; pebbles'
     */

/**
     * Converts the first character of `string` to upper case and the remaining
     * to lower case.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to capitalize.
     * @returns {string} Returns the capitalized string.
     * @example
     *
     * _.capitalize('FRED');
     * // => 'Fred'
     */

/**
     * Converts the first character of `string` to upper case.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to convert.
     * @returns {string} Returns the converted string.
     * @example
     *
     * _.upperFirst('fred');
     * // => 'Fred'
     *
     * _.upperFirst('FRED');
     * // => 'FRED'
     */

/**
     * Copies own and inherited symbols of `source` to `object`.
     *
     * @private
     * @param {Object} source The object to copy symbols from.
     * @param {Object} [object={}] The object to copy symbols to.
     * @returns {Object} Returns `object`.
     */

/**
     * Copies own symbols of `source` to `object`.
     *
     * @private
     * @param {Object} source The object to copy symbols from.
     * @param {Object} [object={}] The object to copy symbols to.
     * @returns {Object} Returns `object`.
     */

/**
     * Copies properties of `source` to `object`.
     *
     * @private
     * @param {Object} source The object to copy properties from.
     * @param {Array} props The property identifiers to copy.
     * @param {Object} [object={}] The object to copy properties to.
     * @param {Function} [customizer] The function to customize copied values.
     * @returns {Object} Returns `object`.
     */

/**
     * Copies the values of `source` to `array`.
     *
     * @private
     * @param {Array} source The array to copy values from.
     * @param {Array} [array=[]] The array to copy values to.
     * @returns {Array} Returns `array`.
     */

/**
     * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
     * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
     *
     * @param {number} x - X coordinate.
     * @param {number} y - Y coordinate.
     * @param {number} width - Rectangle's width.
     * @param {number} height - Rectangle's height.
     * @returns {DOMRectInit}
     */

/**
     * Creates a `_.find` or `_.findLast` function.
     *
     * @private
     * @param {Function} findIndexFunc The function to find the collection index.
     * @returns {Function} Returns the new find function.
     */

/**
     * Creates a `_.flow` or `_.flowRight` function.
     *
     * @private
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new flow function.
     */

/**
     * Creates a `_.range` or `_.rangeRight` function.
     *
     * @private
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new range function.
     */

/**
     * Creates a `_.toPairs` or `_.toPairsIn` function.
     *
     * @private
     * @param {Function} keysFunc The function to get the keys of a given object.
     * @returns {Function} Returns the new pairs function.
     */

/**
     * Creates a `baseEach` or `baseEachRight` function.
     *
     * @private
     * @param {Function} eachFunc The function to iterate over a collection.
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new base function.
     */

/**
     * Creates a `lodash` object which wraps `value` to enable implicit method
     * chain sequences. Methods that operate on and return arrays, collections,
     * and functions can be chained together. Methods that retrieve a single value
     * or may return a primitive value will automatically end the chain sequence
     * and return the unwrapped value. Otherwise, the value must be unwrapped
     * with `_#value`.
     *
     * Explicit chain sequences, which must be unwrapped with `_#value`, may be
     * enabled using `_.chain`.
     *
     * The execution of chained methods is lazy, that is, it's deferred until
     * `_#value` is implicitly or explicitly called.
     *
     * Lazy evaluation allows several methods to support shortcut fusion.
     * Shortcut fusion is an optimization to merge iteratee calls; this avoids
     * the creation of intermediate arrays and can greatly reduce the number of
     * iteratee executions. Sections of a chain sequence qualify for shortcut
     * fusion if the section is applied to an array and iteratees accept only
     * one argument. The heuristic for whether a section qualifies for shortcut
     * fusion is subject to change.
     *
     * Chaining is supported in custom builds as long as the `_#value` method is
     * directly or indirectly included in the build.
     *
     * In addition to lodash methods, wrappers have `Array` and `String` methods.
     *
     * The wrapper `Array` methods are:
     * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
     *
     * The wrapper `String` methods are:
     * `replace` and `split`
     *
     * The wrapper methods that support shortcut fusion are:
     * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
     * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
     * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
     *
     * The chainable wrapper methods are:
     * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
     * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
     * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
     * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
     * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
     * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
     * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
     * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
     * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
     * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
     * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
     * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
     * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
     * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
     * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
     * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
     * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
     * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
     * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
     * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
     * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
     * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
     * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
     * `zipObject`, `zipObjectDeep`, and `zipWith`
     *
     * The wrapper methods that are **not** chainable by default are:
     * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
     * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
     * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
     * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
     * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
     * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
     * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
     * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
     * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
     * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
     * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
     * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
     * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
     * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
     * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
     * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
     * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
     * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
     * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
     * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
     * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
     * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
     * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
     * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
     * `upperFirst`, `value`, and `words`
     *
     * @name _
     * @constructor
     * @category Seq
     * @param {*} value The value to wrap in a `lodash` instance.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var wrapped = _([1, 2, 3]);
     *
     * // Returns an unwrapped value.
     * wrapped.reduce(_.add);
     * // => 6
     *
     * // Returns a wrapped value.
     * var squares = wrapped.map(square);
     *
     * _.isArray(squares);
     * // => false
     *
     * _.isArray(squares.value());
     * // => true
     */

/**
     * Creates a `lodash` wrapper instance that wraps `value` with explicit method
     * chain sequences enabled. The result of such sequences must be unwrapped
     * with `_#value`.
     *
     * @static
     * @memberOf _
     * @since 1.3.0
     * @category Seq
     * @param {*} value The value to wrap.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'age': 36 },
     *   { 'user': 'fred',    'age': 40 },
     *   { 'user': 'pebbles', 'age': 1 }
     * ];
     *
     * var youngest = _
     *   .chain(users)
     *   .sortBy('age')
     *   .map(function(o) {
     *     return o.user + ' is ' + o.age;
     *   })
     *   .head()
     *   .value();
     * // => 'pebbles is 1'
     */

/**
     * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
     *
     * @name chain
     * @memberOf _
     * @since 0.1.0
     * @category Seq
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36 },
     *   { 'user': 'fred',   'age': 40 }
     * ];
     *
     * // A sequence without explicit chaining.
     * _(users).head();
     * // => { 'user': 'barney', 'age': 36 }
     *
     * // A sequence with explicit chaining.
     * _(users)
     *   .chain()
     *   .head()
     *   .pick('user')
     *   .value();
     * // => { 'user': 'barney' }
     */

/**
     * Creates a base function for methods like `_.forIn` and `_.forOwn`.
     *
     * @private
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Function} Returns the new base function.
     */

/**
     * Creates a clone of  `buffer`.
     *
     * @private
     * @param {Buffer} buffer The buffer to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Buffer} Returns the cloned buffer.
     */

/**
     * Creates a clone of `arrayBuffer`.
     *
     * @private
     * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
     * @returns {ArrayBuffer} Returns the cloned array buffer.
     */

/**
     * Creates a clone of `dataView`.
     *
     * @private
     * @param {Object} dataView The data view to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Object} Returns the cloned data view.
     */

/**
     * Creates a clone of `regexp`.
     *
     * @private
     * @param {Object} regexp The regexp to clone.
     * @returns {Object} Returns the cloned regexp.
     */

/**
     * Creates a clone of `typedArray`.
     *
     * @private
     * @param {Object} typedArray The typed array to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Object} Returns the cloned typed array.
     */

/**
     * Creates a clone of `wrapper`.
     *
     * @private
     * @param {Object} wrapper The wrapper to clone.
     * @returns {Object} Returns the cloned wrapper.
     */

/**
     * Creates a clone of the `symbol` object.
     *
     * @private
     * @param {Object} symbol The symbol object to clone.
     * @returns {Object} Returns the cloned symbol object.
     */

/**
     * Creates a clone of the chain sequence planting `value` as the wrapped value.
     *
     * @name plant
     * @memberOf _
     * @since 3.2.0
     * @category Seq
     * @param {*} value The value to plant.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var wrapped = _([1, 2]).map(square);
     * var other = wrapped.plant([3, 4]);
     *
     * other.value();
     * // => [9, 16]
     *
     * wrapped.value();
     * // => [1, 4]
     */

/**
     * Creates a clone of the lazy wrapper object.
     *
     * @private
     * @name clone
     * @memberOf LazyWrapper
     * @returns {Object} Returns the cloned `LazyWrapper` object.
     */

/**
     * Creates a compiled template function that can interpolate data properties
     * in "interpolate" delimiters, HTML-escape interpolated data properties in
     * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data
     * properties may be accessed as free variables in the template. If a setting
     * object is given, it takes precedence over `_.templateSettings` values.
     *
     * **Note:** In the development build `_.template` utilizes
     * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)
     * for easier debugging.
     *
     * For more information on precompiling templates see
     * [lodash's custom builds documentation](https://lodash.com/custom-builds).
     *
     * For more information on Chrome extension sandboxes see
     * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category String
     * @param {string} [string=''] The template string.
     * @param {Object} [options={}] The options object.
     * @param {RegExp} [options.escape=_.templateSettings.escape]
     *  The HTML "escape" delimiter.
     * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]
     *  The "evaluate" delimiter.
     * @param {Object} [options.imports=_.templateSettings.imports]
     *  An object to import into the template as free variables.
     * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]
     *  The "interpolate" delimiter.
     * @param {string} [options.sourceURL='lodash.templateSources[n]']
     *  The sourceURL of the compiled template.
     * @param {string} [options.variable='obj']
     *  The data object variable name.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the compiled template function.
     * @example
     *
     * // Use the "interpolate" delimiter to create a compiled template.
     * var compiled = _.template('hello <%= user %>!');
     * compiled({ 'user': 'fred' });
     * // => 'hello fred!'
     *
     * // Use the HTML "escape" delimiter to escape data property values.
     * var compiled = _.template('<b><%- value %></b>');
     * compiled({ 'value': '<script>' });
     * // => '<b>&lt;script&gt;</b>'
     *
     * // Use the "evaluate" delimiter to execute JavaScript and generate HTML.
     * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
     * compiled({ 'users': ['fred', 'barney'] });
     * // => '<li>fred</li><li>barney</li>'
     *
     * // Use the internal `print` function in "evaluate" delimiters.
     * var compiled = _.template('<% print("hello " + user); %>!');
     * compiled({ 'user': 'barney' });
     * // => 'hello barney!'
     *
     * // Use the ES template literal delimiter as an "interpolate" delimiter.
     * // Disable support by replacing the "interpolate" delimiter.
     * var compiled = _.template('hello ${ user }!');
     * compiled({ 'user': 'pebbles' });
     * // => 'hello pebbles!'
     *
     * // Use backslashes to treat delimiters as plain text.
     * var compiled = _.template('<%= "\\<%- value %\\>" %>');
     * compiled({ 'value': 'ignored' });
     * // => '<%- value %>'
     *
     * // Use the `imports` option to import `jQuery` as `jq`.
     * var text = '<% jq.each(users, function(user) { %><li><%- user %></li><% }); %>';
     * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
     * compiled({ 'users': ['fred', 'barney'] });
     * // => '<li>fred</li><li>barney</li>'
     *
     * // Use the `sourceURL` option to specify a custom sourceURL for the template.
     * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
     * compiled(data);
     * // => Find the source of "greeting.jst" under the Sources tab or Resources panel of the web inspector.
     *
     * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
     * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
     * compiled.source;
     * // => function(data) {
     * //   var __t, __p = '';
     * //   __p += 'hi ' + ((__t = ( data.user )) == null ? '' : __t) + '!';
     * //   return __p;
     * // }
     *
     * // Use custom template delimiters.
     * _.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
     * var compiled = _.template('hello {{ user }}!');
     * compiled({ 'user': 'mustache' });
     * // => 'hello mustache!'
     *
     * // Use the `source` property to inline compiled templates for meaningful
     * // line numbers in error messages and stack traces.
     * fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
     *   var JST = {\
     *     "main": ' + _.template(mainText).source + '\
     *   };\
     * ');
     */

/**
     * Creates a debounced function that delays invoking `func` until after `wait`
     * milliseconds have elapsed since the last time the debounced function was
     * invoked. The debounced function comes with a `cancel` method to cancel
     * delayed `func` invocations and a `flush` method to immediately invoke them.
     * Provide `options` to indicate whether `func` should be invoked on the
     * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
     * with the last arguments provided to the debounced function. Subsequent
     * calls to the debounced function return the result of the last `func`
     * invocation.
     *
     * **Note:** If `leading` and `trailing` options are `true`, `func` is
     * invoked on the trailing edge of the timeout only if the debounced function
     * is invoked more than once during the `wait` timeout.
     *
     * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
     * until to the next tick, similar to `setTimeout` with a timeout of `0`.
     *
     * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
     * for details over the differences between `_.debounce` and `_.throttle`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to debounce.
     * @param {number} [wait=0] The number of milliseconds to delay.
     * @param {Object} [options={}] The options object.
     * @param {boolean} [options.leading=false]
     *  Specify invoking on the leading edge of the timeout.
     * @param {number} [options.maxWait]
     *  The maximum time `func` is allowed to be delayed before it's invoked.
     * @param {boolean} [options.trailing=true]
     *  Specify invoking on the trailing edge of the timeout.
     * @returns {Function} Returns the new debounced function.
     * @example
     *
     * // Avoid costly calculations while the window size is in flux.
     * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
     *
     * // Invoke `sendMail` when clicked, debouncing subsequent calls.
     * jQuery(element).on('click', _.debounce(sendMail, 300, {
     *   'leading': true,
     *   'trailing': false
     * }));
     *
     * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
     * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
     * var source = new EventSource('/stream');
     * jQuery(source).on('message', debounced);
     *
     * // Cancel the trailing debounced invocation.
     * jQuery(window).on('popstate', debounced.cancel);
     */

/**
     * Creates a duplicate-free version of an array, using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons, in which only the first occurrence of each element
     * is kept. The order of result values is determined by the order they occur
     * in the array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.uniq([2, 1, 2]);
     * // => [2, 1]
     */

/**
     * Creates a flattened array of values by running each element in `collection`
     * thru `iteratee` and flattening the mapped results. The iteratee is invoked
     * with three arguments: (value, index|key, collection).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * function duplicate(n) {
     *   return [n, n];
     * }
     *
     * _.flatMap([1, 2], duplicate);
     * // => [1, 1, 2, 2]
     */

/**
     * Creates a function like `_.assign`.
     *
     * @private
     * @param {Function} assigner The function to assign values.
     * @returns {Function} Returns the new assigner function.
     */

/**
     * Creates a function like `_.camelCase`.
     *
     * @private
     * @param {Function} callback The function to combine each word.
     * @returns {Function} Returns the new compounder function.
     */

/**
     * Creates a function like `_.groupBy`.
     *
     * @private
     * @param {Function} setter The function to set accumulator values.
     * @param {Function} [initializer] The accumulator object initializer.
     * @returns {Function} Returns the new aggregator function.
     */

/**
     * Creates a function like `_.invertBy`.
     *
     * @private
     * @param {Function} setter The function to set accumulator values.
     * @param {Function} toIteratee The function to resolve iteratees.
     * @returns {Function} Returns the new inverter function.
     */

/**
     * Creates a function like `_.lowerFirst`.
     *
     * @private
     * @param {string} methodName The name of the `String` case method to use.
     * @returns {Function} Returns the new case function.
     */

/**
     * Creates a function like `_.over`.
     *
     * @private
     * @param {Function} arrayFunc The function to iterate over iteratees.
     * @returns {Function} Returns the new over function.
     */

/**
     * Creates a function like `_.round`.
     *
     * @private
     * @param {string} methodName The name of the `Math` method to use when rounding.
     * @returns {Function} Returns the new round function.
     */

/**
     * Creates a function that accepts arguments of `func` and either invokes
     * `func` returning its result, if at least `arity` number of arguments have
     * been provided, or returns a function that accepts the remaining `func`
     * arguments, and so on. The arity of `func` may be specified if `func.length`
     * is not sufficient.
     *
     * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,
     * may be used as a placeholder for provided arguments.
     *
     * **Note:** This method doesn't set the "length" property of curried functions.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Function
     * @param {Function} func The function to curry.
     * @param {number} [arity=func.length] The arity of `func`.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the new curried function.
     * @example
     *
     * var abc = function(a, b, c) {
     *   return [a, b, c];
     * };
     *
     * var curried = _.curry(abc);
     *
     * curried(1)(2)(3);
     * // => [1, 2, 3]
     *
     * curried(1, 2)(3);
     * // => [1, 2, 3]
     *
     * curried(1, 2, 3);
     * // => [1, 2, 3]
     *
     * // Curried with placeholders.
     * curried(1)(_, 3)(2);
     * // => [1, 2, 3]
     */

/**
     * Creates a function that accepts up to one argument, ignoring any
     * additional arguments.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Function
     * @param {Function} func The function to cap arguments for.
     * @returns {Function} Returns the new capped function.
     * @example
     *
     * _.map(['6', '8', '10'], _.unary(parseInt));
     * // => [6, 8, 10]
     */

/**
     * Creates a function that checks if **all** of the `predicates` return
     * truthy when invoked with the arguments it receives.
     *
     * Following shorthands are possible for providing predicates.
     * Pass an `Object` and it will be used as an parameter for `_.matches` to create the predicate.
     * Pass an `Array` of parameters for `_.matchesProperty` and the predicate will be created using them.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {...(Function|Function[])} [predicates=[_.identity]]
     *  The predicates to check.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var func = _.overEvery([Boolean, isFinite]);
     *
     * func('1');
     * // => true
     *
     * func(null);
     * // => false
     *
     * func(NaN);
     * // => false
     */

/**
     * Creates a function that either curries or invokes `func` with optional
     * `this` binding and partially applied arguments.
     *
     * @private
     * @param {Function|string} func The function or method name to wrap.
     * @param {number} bitmask The bitmask flags.
     *    1 - `_.bind`
     *    2 - `_.bindKey`
     *    4 - `_.curry` or `_.curryRight` of a bound function
     *    8 - `_.curry`
     *   16 - `_.curryRight`
     *   32 - `_.partial`
     *   64 - `_.partialRight`
     *  128 - `_.rearg`
     *  256 - `_.ary`
     *  512 - `_.flip`
     * @param {*} [thisArg] The `this` binding of `func`.
     * @param {Array} [partials] The arguments to be partially applied.
     * @param {Array} [holders] The `partials` placeholder indexes.
     * @param {Array} [argPos] The argument positions of the new function.
     * @param {number} [ary] The arity cap of `func`.
     * @param {number} [arity] The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */

/**
     * Creates a function that gets the argument at index `n`. If `n` is negative,
     * the nth argument from the end is returned.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {number} [n=0] The index of the argument to return.
     * @returns {Function} Returns the new pass-thru function.
     * @example
     *
     * var func = _.nthArg(1);
     * func('a', 'b', 'c', 'd');
     * // => 'b'
     *
     * var func = _.nthArg(-2);
     * func('a', 'b', 'c', 'd');
     * // => 'c'
     */

/**
     * Creates a function that invokes `func` with `partials` prepended to the
     * arguments it receives. This method is like `_.bind` except it does **not**
     * alter the `this` binding.
     *
     * The `_.partial.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for partially applied arguments.
     *
     * **Note:** This method doesn't set the "length" property of partially
     * applied functions.
     *
     * @static
     * @memberOf _
     * @since 0.2.0
     * @category Function
     * @param {Function} func The function to partially apply arguments to.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new partially applied function.
     * @example
     *
     * function greet(greeting, name) {
     *   return greeting + ' ' + name;
     * }
     *
     * var sayHelloTo = _.partial(greet, 'hello');
     * sayHelloTo('fred');
     * // => 'hello fred'
     *
     * // Partially applied with placeholders.
     * var greetFred = _.partial(greet, _, 'fred');
     * greetFred('hi');
     * // => 'hi fred'
     */

/**
     * Creates a function that invokes `func` with arguments reversed.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Function
     * @param {Function} func The function to flip arguments for.
     * @returns {Function} Returns the new flipped function.
     * @example
     *
     * var flipped = _.flip(function() {
     *   return _.toArray(arguments);
     * });
     *
     * flipped('a', 'b', 'c', 'd');
     * // => ['d', 'c', 'b', 'a']
     */

/**
     * Creates a function that invokes `func` with its arguments transformed.
     *
     * @static
     * @since 4.0.0
     * @memberOf _
     * @category Function
     * @param {Function} func The function to wrap.
     * @param {...(Function|Function[])} [transforms=[_.identity]]
     *  The argument transforms.
     * @returns {Function} Returns the new function.
     * @example
     *
     * function doubled(n) {
     *   return n * 2;
     * }
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var func = _.overArgs(function(x, y) {
     *   return [x, y];
     * }, [square, doubled]);
     *
     * func(9, 3);
     * // => [81, 6]
     *
     * func(10, 5);
     * // => [100, 10]
     */

/**
     * Creates a function that invokes `func` with the `this` binding of `thisArg`
     * and `partials` prepended to the arguments it receives.
     *
     * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
     * may be used as a placeholder for partially applied arguments.
     *
     * **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
     * property of bound functions.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to bind.
     * @param {*} thisArg The `this` binding of `func`.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new bound function.
     * @example
     *
     * function greet(greeting, punctuation) {
     *   return greeting + ' ' + this.user + punctuation;
     * }
     *
     * var object = { 'user': 'fred' };
     *
     * var bound = _.bind(greet, object, 'hi');
     * bound('!');
     * // => 'hi fred!'
     *
     * // Bound with placeholders.
     * var bound = _.bind(greet, object, _, '!');
     * bound('hi');
     * // => 'hi fred!'
     */

/**
     * Creates a function that invokes `func` with the `this` binding of the
     * create function and an array of arguments much like
     * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).
     *
     * **Note:** This method is based on the
     * [spread operator](https://mdn.io/spread_operator).
     *
     * @static
     * @memberOf _
     * @since 3.2.0
     * @category Function
     * @param {Function} func The function to spread arguments over.
     * @param {number} [start=0] The start position of the spread.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var say = _.spread(function(who, what) {
     *   return who + ' says ' + what;
     * });
     *
     * say(['fred', 'hello']);
     * // => 'fred says hello'
     *
     * var numbers = Promise.all([
     *   Promise.resolve(40),
     *   Promise.resolve(36)
     * ]);
     *
     * numbers.then(_.spread(function(x, y) {
     *   return x + y;
     * }));
     * // => a Promise of 76
     */

/**
     * Creates a function that invokes `func` with the `this` binding of the
     * created function and arguments from `start` and beyond provided as
     * an array.
     *
     * **Note:** This method is based on the
     * [rest parameter](https://mdn.io/rest_parameters).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Function
     * @param {Function} func The function to apply a rest parameter to.
     * @param {number} [start=func.length-1] The start position of the rest parameter.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var say = _.rest(function(what, names) {
     *   return what + ' ' + _.initial(names).join(', ') +
     *     (_.size(names) > 1 ? ', & ' : '') + _.last(names);
     * });
     *
     * say('hello', 'fred', 'barney', 'pebbles');
     * // => 'hello fred, barney, & pebbles'
     */

/**
     * Creates a function that invokes `func` with the arguments of the created
     * function. If `func` is a property name, the created function returns the
     * property value for a given element. If `func` is an array or object, the
     * created function returns `true` for elements that contain the equivalent
     * source properties, otherwise it returns `false`.
     *
     * @static
     * @since 4.0.0
     * @memberOf _
     * @category Util
     * @param {*} [func=_.identity] The value to convert to a callback.
     * @returns {Function} Returns the callback.
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': true },
     *   { 'user': 'fred',   'age': 40, 'active': false }
     * ];
     *
     * // The `_.matches` iteratee shorthand.
     * _.filter(users, _.iteratee({ 'user': 'barney', 'active': true }));
     * // => [{ 'user': 'barney', 'age': 36, 'active': true }]
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.filter(users, _.iteratee(['user', 'fred']));
     * // => [{ 'user': 'fred', 'age': 40 }]
     *
     * // The `_.property` iteratee shorthand.
     * _.map(users, _.iteratee('user'));
     * // => ['barney', 'fred']
     *
     * // Create custom iteratee shorthands.
     * _.iteratee = _.wrap(_.iteratee, function(iteratee, func) {
     *   return !_.isRegExp(func) ? iteratee(func) : function(string) {
     *     return func.test(string);
     *   };
     * });
     *
     * _.filter(['abc', 'def'], /ef/);
     * // => ['def']
     */

/**
     * Creates a function that invokes `func`, with the `this` binding and arguments
     * of the created function, while it's called less than `n` times. Subsequent
     * calls to the created function return the result of the last `func` invocation.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {number} n The number of calls at which `func` is no longer invoked.
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new restricted function.
     * @example
     *
     * jQuery(element).on('click', _.before(5, addContactToList));
     * // => Allows adding up to 4 contacts to the list.
     */

/**
     * Creates a function that invokes `func`, with up to `n` arguments,
     * ignoring any additional arguments.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} func The function to cap arguments for.
     * @param {number} [n=func.length] The arity cap.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the new capped function.
     * @example
     *
     * _.map(['6', '8', '10'], _.ary(parseInt, 1));
     * // => [6, 8, 10]
     */

/**
     * Creates a function that invokes `iteratees` with the arguments it receives
     * and returns their results.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {...(Function|Function[])} [iteratees=[_.identity]]
     *  The iteratees to invoke.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var func = _.over([Math.max, Math.min]);
     *
     * func(1, 2, 3, 4);
     * // => [4, 1]
     */

/**
     * Creates a function that invokes the method at `object[key]` with `partials`
     * prepended to the arguments it receives.
     *
     * This method differs from `_.bind` by allowing bound functions to reference
     * methods that may be redefined or don't yet exist. See
     * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
     * for more details.
     *
     * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for partially applied arguments.
     *
     * @static
     * @memberOf _
     * @since 0.10.0
     * @category Function
     * @param {Object} object The object to invoke the method on.
     * @param {string} key The key of the method.
     * @param {...*} [partials] The arguments to be partially applied.
     * @returns {Function} Returns the new bound function.
     * @example
     *
     * var object = {
     *   'user': 'fred',
     *   'greet': function(greeting, punctuation) {
     *     return greeting + ' ' + this.user + punctuation;
     *   }
     * };
     *
     * var bound = _.bindKey(object, 'greet', 'hi');
     * bound('!');
     * // => 'hi fred!'
     *
     * object.greet = function(greeting, punctuation) {
     *   return greeting + 'ya ' + this.user + punctuation;
     * };
     *
     * bound('!');
     * // => 'hiya fred!'
     *
     * // Bound with placeholders.
     * var bound = _.bindKey(object, 'greet', _, '!');
     * bound('hi');
     * // => 'hiya fred!'
     */

/**
     * Creates a function that invokes the method at `path` of a given object.
     * Any additional arguments are provided to the invoked method.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Util
     * @param {Array|string} path The path of the method to invoke.
     * @param {...*} [args] The arguments to invoke the method with.
     * @returns {Function} Returns the new invoker function.
     * @example
     *
     * var objects = [
     *   { 'a': { 'b': _.constant(2) } },
     *   { 'a': { 'b': _.constant(1) } }
     * ];
     *
     * _.map(objects, _.method('a.b'));
     * // => [2, 1]
     *
     * _.map(objects, _.method(['a', 'b']));
     * // => [2, 1]
     */

/**
     * Creates a function that invokes the predicate properties of `source` with
     * the corresponding property values of a given object, returning `true` if
     * all predicates return truthy, else `false`.
     *
     * **Note:** The created function is equivalent to `_.conformsTo` with
     * `source` partially applied.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {Object} source The object of property predicates to conform to.
     * @returns {Function} Returns the new spec function.
     * @example
     *
     * var objects = [
     *   { 'a': 2, 'b': 1 },
     *   { 'a': 1, 'b': 2 }
     * ];
     *
     * _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
     * // => [{ 'a': 1, 'b': 2 }]
     */

/**
     * Creates a function that is restricted to invoking `func` once. Repeat calls
     * to the function return the value of the first invocation. The `func` is
     * invoked with the `this` binding and arguments of the created function.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new restricted function.
     * @example
     *
     * var initialize = _.once(createApplication);
     * initialize();
     * initialize();
     * // => `createApplication` is invoked once
     */

/**
     * Creates a function that iterates over `pairs` and invokes the corresponding
     * function of the first predicate to return truthy. The predicate-function
     * pairs are invoked with the `this` binding and arguments of the created
     * function.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {Array} pairs The predicate-function pairs.
     * @returns {Function} Returns the new composite function.
     * @example
     *
     * var func = _.cond([
     *   [_.matches({ 'a': 1 }),           _.constant('matches A')],
     *   [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
     *   [_.stubTrue,                      _.constant('no match')]
     * ]);
     *
     * func({ 'a': 1, 'b': 2 });
     * // => 'matches A'
     *
     * func({ 'a': 0, 'b': 1 });
     * // => 'matches B'
     *
     * func({ 'a': '1', 'b': '2' });
     * // => 'no match'
     */

/**
     * Creates a function that memoizes the result of `func`. If `resolver` is
     * provided, it determines the cache key for storing the result based on the
     * arguments provided to the memoized function. By default, the first argument
     * provided to the memoized function is used as the map cache key. The `func`
     * is invoked with the `this` binding of the memoized function.
     *
     * **Note:** The cache is exposed as the `cache` property on the memoized
     * function. Its creation may be customized by replacing the `_.memoize.Cache`
     * constructor with one whose instances implement the
     * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
     * method interface of `clear`, `delete`, `get`, `has`, and `set`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to have its output memoized.
     * @param {Function} [resolver] The function to resolve the cache key.
     * @returns {Function} Returns the new memoized function.
     * @example
     *
     * var object = { 'a': 1, 'b': 2 };
     * var other = { 'c': 3, 'd': 4 };
     *
     * var values = _.memoize(_.values);
     * values(object);
     * // => [1, 2]
     *
     * values(other);
     * // => [3, 4]
     *
     * object.a = 2;
     * values(object);
     * // => [1, 2]
     *
     * // Modify the result cache.
     * values.cache.set(object, ['a', 'b']);
     * values(object);
     * // => ['a', 'b']
     *
     * // Replace `_.memoize.Cache`.
     * _.memoize.Cache = WeakMap;
     */

/**
     * Creates a function that negates the result of the predicate `func`. The
     * `func` predicate is invoked with the `this` binding and arguments of the
     * created function.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} predicate The predicate to negate.
     * @returns {Function} Returns the new negated function.
     * @example
     *
     * function isEven(n) {
     *   return n % 2 == 0;
     * }
     *
     * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
     * // => [1, 3, 5]
     */

/**
     * Creates a function that performs a mathematical operation on two values.
     *
     * @private
     * @param {Function} operator The function to perform the operation.
     * @param {number} [defaultValue] The value used for `undefined` arguments.
     * @returns {Function} Returns the new mathematical operation function.
     */

/**
     * Creates a function that performs a partial deep comparison between a given
     * object and `source`, returning `true` if the given object has equivalent
     * property values, else `false`.
     *
     * **Note:** The created function is equivalent to `_.isMatch` with `source`
     * partially applied.
     *
     * Partial comparisons will match empty array and empty object `source`
     * values against any array or object value, respectively. See `_.isEqual`
     * for a list of supported value comparisons.
     *
     * **Note:** Multiple values can be checked by combining several matchers
     * using `_.overSome`
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {Object} source The object of property values to match.
     * @returns {Function} Returns the new spec function.
     * @example
     *
     * var objects = [
     *   { 'a': 1, 'b': 2, 'c': 3 },
     *   { 'a': 4, 'b': 5, 'c': 6 }
     * ];
     *
     * _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
     * // => [{ 'a': 4, 'b': 5, 'c': 6 }]
     *
     * // Checking for several possible values
     * _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
     * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
     */

/**
     * Creates a function that performs a partial deep comparison between the
     * value at `path` of a given object to `srcValue`, returning `true` if the
     * object value is equivalent, else `false`.
     *
     * **Note:** Partial comparisons will match empty array and empty object
     * `srcValue` values against any array or object value, respectively. See
     * `_.isEqual` for a list of supported value comparisons.
     *
     * **Note:** Multiple values can be checked by combining several matchers
     * using `_.overSome`
     *
     * @static
     * @memberOf _
     * @since 3.2.0
     * @category Util
     * @param {Array|string} path The path of the property to get.
     * @param {*} srcValue The value to match.
     * @returns {Function} Returns the new spec function.
     * @example
     *
     * var objects = [
     *   { 'a': 1, 'b': 2, 'c': 3 },
     *   { 'a': 4, 'b': 5, 'c': 6 }
     * ];
     *
     * _.find(objects, _.matchesProperty('a', 4));
     * // => { 'a': 4, 'b': 5, 'c': 6 }
     *
     * // Checking for several possible values
     * _.filter(objects, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));
     * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
     */

/**
     * Creates a function that performs a relational operation on two values.
     *
     * @private
     * @param {Function} operator The function to perform the operation.
     * @returns {Function} Returns the new relational operation function.
     */

/**
     * Creates a function that produces an instance of `Ctor` regardless of
     * whether it was invoked as part of a `new` expression or by `call` or `apply`.
     *
     * @private
     * @param {Function} Ctor The constructor to wrap.
     * @returns {Function} Returns the new wrapped function.
     */

/**
     * Creates a function that provides `value` to `wrapper` as its first
     * argument. Any additional arguments provided to the function are appended
     * to those provided to the `wrapper`. The wrapper is invoked with the `this`
     * binding of the created function.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {*} value The value to wrap.
     * @param {Function} [wrapper=identity] The wrapper function.
     * @returns {Function} Returns the new function.
     * @example
     *
     * var p = _.wrap(_.escape, function(func, text) {
     *   return '<p>' + func(text) + '</p>';
     * });
     *
     * p('fred, barney, & pebbles');
     * // => '<p>fred, barney, &amp; pebbles</p>'
     */

/**
     * Creates a function that returns `value`.
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Util
     * @param {*} value The value to return from the new function.
     * @returns {Function} Returns the new constant function.
     * @example
     *
     * var objects = _.times(2, _.constant({ 'a': 1 }));
     *
     * console.log(objects);
     * // => [{ 'a': 1 }, { 'a': 1 }]
     *
     * console.log(objects[0] === objects[1]);
     * // => true
     */

/**
     * Creates a function that returns the result of invoking the given functions
     * with the `this` binding of the created function, where each successive
     * invocation is supplied the return value of the previous.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {...(Function|Function[])} [funcs] The functions to invoke.
     * @returns {Function} Returns the new composite function.
     * @see _.flowRight
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var addSquare = _.flow([_.add, square]);
     * addSquare(1, 2);
     * // => 9
     */

/**
     * Creates a function that returns the value at `path` of a given object.
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Util
     * @param {Array|string} path The path of the property to get.
     * @returns {Function} Returns the new accessor function.
     * @example
     *
     * var objects = [
     *   { 'a': { 'b': 2 } },
     *   { 'a': { 'b': 1 } }
     * ];
     *
     * _.map(objects, _.property('a.b'));
     * // => [2, 1]
     *
     * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
     * // => [1, 2]
     */

/**
     * Creates a function that wraps `func` to continue currying.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {Function} wrapFunc The function to create the `func` wrapper.
     * @param {*} placeholder The placeholder value.
     * @param {*} [thisArg] The `this` binding of `func`.
     * @param {Array} [partials] The arguments to prepend to those provided to
     *  the new function.
     * @param {Array} [holders] The `partials` placeholder indexes.
     * @param {Array} [argPos] The argument positions of the new function.
     * @param {number} [ary] The arity cap of `func`.
     * @param {number} [arity] The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */

/**
     * Creates a function that wraps `func` to enable currying.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {number} arity The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */

/**
     * Creates a function that wraps `func` to invoke it with optional `this`
     * binding of `thisArg`, partial application, and currying.
     *
     * @private
     * @param {Function|string} func The function or method name to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {*} [thisArg] The `this` binding of `func`.
     * @param {Array} [partials] The arguments to prepend to those provided to
     *  the new function.
     * @param {Array} [holders] The `partials` placeholder indexes.
     * @param {Array} [partialsRight] The arguments to append to those provided
     *  to the new function.
     * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
     * @param {Array} [argPos] The argument positions of the new function.
     * @param {number} [ary] The arity cap of `func`.
     * @param {number} [arity] The arity of `func`.
     * @returns {Function} Returns the new wrapped function.
     */

/**
     * Creates a function that wraps `func` to invoke it with the `this` binding
     * of `thisArg` and `partials` prepended to the arguments it receives.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {*} thisArg The `this` binding of `func`.
     * @param {Array} partials The arguments to prepend to those provided to
     *  the new function.
     * @returns {Function} Returns the new wrapped function.
     */

/**
     * Creates a function that wraps `func` to invoke it with the optional `this`
     * binding of `thisArg`.
     *
     * @private
     * @param {Function} func The function to wrap.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @param {*} [thisArg] The `this` binding of `func`.
     * @returns {Function} Returns the new wrapped function.
     */

/**
     * Creates a function that'll short out and invoke `identity` instead
     * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
     * milliseconds.
     *
     * @private
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new shortable function.
     */

/**
     * Creates a hash object.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */

/**
     * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
     *
     * @private
     * @constructor
     * @param {*} value The value to wrap.
     */

/**
     * Creates a map cache object to store key-value pairs.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */

/**
     * Creates a new Observable, with this Observable as the source, and the passed
     * operator defined as the new observable's operator.
     * @method lift
     * @param {Operator} operator the operator defining the operation to take on the observable
     * @return {Observable} a new observable with the Operator applied
     */

/**
     * Creates a new array concatenating `array` with any additional arrays
     * and/or values.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to concatenate.
     * @param {...*} [values] The values to concatenate.
     * @returns {Array} Returns the new concatenated array.
     * @example
     *
     * var array = [1];
     * var other = _.concat(array, 2, [3], [[4]]);
     *
     * console.log(other);
     * // => [1, 2, 3, [4]]
     *
     * console.log(array);
     * // => [1]
     */

/**
     * Creates a new cold Observable by calling the Observable constructor
     * @static true
     * @owner Observable
     * @method create
     * @param {Function} subscribe? the subscriber function to be passed to the Observable constructor
     * @return {Observable} a new cold observable
     */

/**
     * Creates a set object of `values`.
     *
     * @private
     * @param {Array} values The values to add to the set.
     * @returns {Object} Returns the new set.
     */

/**
     * Creates a shallow clone of `value`.
     *
     * **Note:** This method is loosely based on the
     * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
     * and supports cloning arrays, array buffers, booleans, date objects, maps,
     * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
     * arrays. The own enumerable properties of `arguments` objects are cloned
     * as plain objects. An empty object is returned for uncloneable values such
     * as error objects, functions, DOM nodes, and WeakMaps.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to clone.
     * @returns {*} Returns the cloned value.
     * @see _.cloneDeep
     * @example
     *
     * var objects = [{ 'a': 1 }, { 'b': 2 }];
     *
     * var shallow = _.clone(objects);
     * console.log(shallow[0] === objects[0]);
     * // => true
     */

/**
     * Creates a slice of `array` excluding elements dropped from the beginning.
     * Elements are dropped until `predicate` returns falsey. The predicate is
     * invoked with three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': false },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': true }
     * ];
     *
     * _.dropWhile(users, function(o) { return !o.active; });
     * // => objects for ['pebbles']
     *
     * // The `_.matches` iteratee shorthand.
     * _.dropWhile(users, { 'user': 'barney', 'active': false });
     * // => objects for ['fred', 'pebbles']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.dropWhile(users, ['active', false]);
     * // => objects for ['pebbles']
     *
     * // The `_.property` iteratee shorthand.
     * _.dropWhile(users, 'active');
     * // => objects for ['barney', 'fred', 'pebbles']
     */

/**
     * Creates a slice of `array` excluding elements dropped from the end.
     * Elements are dropped until `predicate` returns falsey. The predicate is
     * invoked with three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': true },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': false }
     * ];
     *
     * _.dropRightWhile(users, function(o) { return !o.active; });
     * // => objects for ['barney']
     *
     * // The `_.matches` iteratee shorthand.
     * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });
     * // => objects for ['barney', 'fred']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.dropRightWhile(users, ['active', false]);
     * // => objects for ['barney']
     *
     * // The `_.property` iteratee shorthand.
     * _.dropRightWhile(users, 'active');
     * // => objects for ['barney', 'fred', 'pebbles']
     */

/**
     * Creates a slice of `array` from `start` up to, but not including, `end`.
     *
     * **Note:** This method is used instead of
     * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are
     * returned.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to slice.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns the slice of `array`.
     */

/**
     * Creates a slice of `array` with `n` elements dropped from the beginning.
     *
     * @static
     * @memberOf _
     * @since 0.5.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to drop.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.drop([1, 2, 3]);
     * // => [2, 3]
     *
     * _.drop([1, 2, 3], 2);
     * // => [3]
     *
     * _.drop([1, 2, 3], 5);
     * // => []
     *
     * _.drop([1, 2, 3], 0);
     * // => [1, 2, 3]
     */

/**
     * Creates a slice of `array` with `n` elements dropped from the end.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to drop.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.dropRight([1, 2, 3]);
     * // => [1, 2]
     *
     * _.dropRight([1, 2, 3], 2);
     * // => [1]
     *
     * _.dropRight([1, 2, 3], 5);
     * // => []
     *
     * _.dropRight([1, 2, 3], 0);
     * // => [1, 2, 3]
     */

/**
     * Creates a slice of `array` with `n` elements taken from the beginning.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to take.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.take([1, 2, 3]);
     * // => [1]
     *
     * _.take([1, 2, 3], 2);
     * // => [1, 2]
     *
     * _.take([1, 2, 3], 5);
     * // => [1, 2, 3]
     *
     * _.take([1, 2, 3], 0);
     * // => []
     */

/**
     * Creates a slice of `array` with `n` elements taken from the end.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=1] The number of elements to take.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.takeRight([1, 2, 3]);
     * // => [3]
     *
     * _.takeRight([1, 2, 3], 2);
     * // => [2, 3]
     *
     * _.takeRight([1, 2, 3], 5);
     * // => [1, 2, 3]
     *
     * _.takeRight([1, 2, 3], 0);
     * // => []
     */

/**
     * Creates a slice of `array` with elements taken from the beginning. Elements
     * are taken until `predicate` returns falsey. The predicate is invoked with
     * three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': false },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': true }
     * ];
     *
     * _.takeWhile(users, function(o) { return !o.active; });
     * // => objects for ['barney', 'fred']
     *
     * // The `_.matches` iteratee shorthand.
     * _.takeWhile(users, { 'user': 'barney', 'active': false });
     * // => objects for ['barney']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.takeWhile(users, ['active', false]);
     * // => objects for ['barney', 'fred']
     *
     * // The `_.property` iteratee shorthand.
     * _.takeWhile(users, 'active');
     * // => []
     */

/**
     * Creates a slice of `array` with elements taken from the end. Elements are
     * taken until `predicate` returns falsey. The predicate is invoked with
     * three arguments: (value, index, array).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': true },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': false }
     * ];
     *
     * _.takeRightWhile(users, function(o) { return !o.active; });
     * // => objects for ['fred', 'pebbles']
     *
     * // The `_.matches` iteratee shorthand.
     * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });
     * // => objects for ['pebbles']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.takeRightWhile(users, ['active', false]);
     * // => objects for ['fred', 'pebbles']
     *
     * // The `_.property` iteratee shorthand.
     * _.takeRightWhile(users, 'active');
     * // => []
     */

/**
     * Creates a stack cache object to store key-value pairs.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */

/**
     * Creates a throttled function that only invokes `func` at most once per
     * every `wait` milliseconds. The throttled function comes with a `cancel`
     * method to cancel delayed `func` invocations and a `flush` method to
     * immediately invoke them. Provide `options` to indicate whether `func`
     * should be invoked on the leading and/or trailing edge of the `wait`
     * timeout. The `func` is invoked with the last arguments provided to the
     * throttled function. Subsequent calls to the throttled function return the
     * result of the last `func` invocation.
     *
     * **Note:** If `leading` and `trailing` options are `true`, `func` is
     * invoked on the trailing edge of the timeout only if the throttled function
     * is invoked more than once during the `wait` timeout.
     *
     * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
     * until to the next tick, similar to `setTimeout` with a timeout of `0`.
     *
     * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
     * for details over the differences between `_.throttle` and `_.debounce`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to throttle.
     * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
     * @param {Object} [options={}] The options object.
     * @param {boolean} [options.leading=true]
     *  Specify invoking on the leading edge of the timeout.
     * @param {boolean} [options.trailing=true]
     *  Specify invoking on the trailing edge of the timeout.
     * @returns {Function} Returns the new throttled function.
     * @example
     *
     * // Avoid excessively updating the position while scrolling.
     * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
     *
     * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
     * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
     * jQuery(element).on('click', throttled);
     *
     * // Cancel the trailing throttled invocation.
     * jQuery(window).on('popstate', throttled.cancel);
     */

/**
     * Creates a wrapper function which ensures that provided callback will be
     * invoked only once during the specified delay period.
     *
     * @param {Function} callback - Function to be invoked after the delay period.
     * @param {number} delay - Delay after which to invoke callback.
     * @returns {Function}
     */

/**
     * Creates an Observable from an API based on addHandler/removeHandler
     * functions.
     *
     * <span class="informal">Converts any addHandler/removeHandler API to an
     * Observable.</span>
     *
     * <img src="./img/fromEventPattern.png" width="100%">
     *
     * Creates an Observable by using the `addHandler` and `removeHandler`
     * functions to add and remove the handlers, with an optional selector
     * function to project the event arguments to a result. The `addHandler` is
     * called when the output Observable is subscribed, and `removeHandler` is
     * called when the Subscription is unsubscribed.
     *
     * @example <caption>Emits clicks happening on the DOM document</caption>
     * function addClickHandler(handler) {
     *   document.addEventListener('click', handler);
     * }
     *
     * function removeClickHandler(handler) {
     *   document.removeEventListener('click', handler);
     * }
     *
     * var clicks = Rx.Observable.fromEventPattern(
     *   addClickHandler,
     *   removeClickHandler
     * );
     * clicks.subscribe(x => console.log(x));
     *
     * @see {@link from}
     * @see {@link fromEvent}
     *
     * @param {function(handler: Function): any} addHandler A function that takes
     * a `handler` function as argument and attaches it somehow to the actual
     * source of events.
     * @param {function(handler: Function, signal?: any): void} [removeHandler] An optional function that
     * takes a `handler` function as argument and removes it in case it was
     * previously attached using `addHandler`. if addHandler returns signal to teardown when remove,
     * removeHandler function will forward it.
     * @param {function(...args: any): T} [selector] An optional function to
     * post-process results. It takes the arguments from the event handler and
     * should return a single value.
     * @return {Observable<T>}
     * @static true
     * @name fromEventPattern
     * @owner Observable
     */

/**
     * Creates an Observable from an Array, an array-like object, a Promise, an
     * iterable object, or an Observable-like object.
     *
     * <span class="informal">Converts almost anything to an Observable.</span>
     *
     * <img src="./img/from.png" width="100%">
     *
     * Convert various other objects and data types into Observables. `from`
     * converts a Promise or an array-like or an
     * [iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#iterable)
     * object into an Observable that emits the items in that promise or array or
     * iterable. A String, in this context, is treated as an array of characters.
     * Observable-like objects (contains a function named with the ES2015 Symbol
     * for Observable) can also be converted through this operator.
     *
     * @example <caption>Converts an array to an Observable</caption>
     * var array = [10, 20, 30];
     * var result = Rx.Observable.from(array);
     * result.subscribe(x => console.log(x));
     *
     * // Results in the following:
     * // 10 20 30
     *
     * @example <caption>Convert an infinite iterable (from a generator) to an Observable</caption>
     * function* generateDoubles(seed) {
     *   var i = seed;
     *   while (true) {
     *     yield i;
     *     i = 2 * i; // double it
     *   }
     * }
     *
     * var iterator = generateDoubles(3);
     * var result = Rx.Observable.from(iterator).take(10);
     * result.subscribe(x => console.log(x));
     *
     * // Results in the following:
     * // 3 6 12 24 48 96 192 384 768 1536
     *
     * @see {@link create}
     * @see {@link fromEvent}
     * @see {@link fromEventPattern}
     * @see {@link fromPromise}
     *
     * @param {ObservableInput<T>} ish A subscribable object, a Promise, an
     * Observable-like, an Array, an iterable or an array-like object to be
     * converted.
     * @param {Scheduler} [scheduler] The scheduler on which to schedule the
     * emissions of values.
     * @return {Observable<T>} The Observable whose values are originally from the
     * input object that was converted.
     * @static true
     * @name from
     * @owner Observable
     */

/**
     * Creates an Observable that emits a sequence of numbers within a specified
     * range.
     *
     * <span class="informal">Emits a sequence of numbers in a range.</span>
     *
     * <img src="./img/range.png" width="100%">
     *
     * `range` operator emits a range of sequential integers, in order, where you
     * select the `start` of the range and its `length`. By default, uses no
     * IScheduler and just delivers the notifications synchronously, but may use
     * an optional IScheduler to regulate those deliveries.
     *
     * @example <caption>Emits the numbers 1 to 10</caption>
     * var numbers = Rx.Observable.range(1, 10);
     * numbers.subscribe(x => console.log(x));
     *
     * @see {@link timer}
     * @see {@link interval}
     *
     * @param {number} [start=0] The value of the first integer in the sequence.
     * @param {number} [count=0] The number of sequential integers to generate.
     * @param {Scheduler} [scheduler] A {@link IScheduler} to use for scheduling
     * the emissions of the notifications.
     * @return {Observable} An Observable of numbers that emits a finite range of
     * sequential integers.
     * @static true
     * @name range
     * @owner Observable
     */

/**
     * Creates an Observable that emits events of a specific type coming from the
     * given event target.
     *
     * <span class="informal">Creates an Observable from DOM events, or Node.js
     * EventEmitter events or others.</span>
     *
     * <img src="./img/fromEvent.png" width="100%">
     *
     * `fromEvent` accepts as a first argument event target, which is an object with methods
     * for registering event handler functions. As a second argument it takes string that indicates
     * type of event we want to listen for. `fromEvent` supports selected types of event targets,
     * which are described in detail below. If your event target does not match any of the ones listed,
     * you should use {@link fromEventPattern}, which can be used on arbitrary APIs.
     * When it comes to APIs supported by `fromEvent`, their methods for adding and removing event
     * handler functions have different names, but they all accept a string describing event type
     * and function itself, which will be called whenever said event happens.
     *
     * Every time resulting Observable is subscribed, event handler function will be registered
     * to event target on given event type. When that event fires, value
     * passed as a first argument to registered function will be emitted by output Observable.
     * When Observable is unsubscribed, function will be unregistered from event target.
     *
     * Note that if event target calls registered function with more than one argument, second
     * and following arguments will not appear in resulting stream. In order to get access to them,
     * you can pass to `fromEvent` optional project function, which will be called with all arguments
     * passed to event handler. Output Observable will then emit value returned by project function,
     * instead of the usual value.
     *
     * Remember that event targets listed below are checked via duck typing. It means that
     * no matter what kind of object you have and no matter what environment you work in,
     * you can safely use `fromEvent` on that object if it exposes described methods (provided
     * of course they behave as was described above). So for example if Node.js library exposes
     * event target which has the same method names as DOM EventTarget, `fromEvent` is still
     * a good choice.
     *
     * If the API you use is more callback then event handler oriented (subscribed
     * callback function fires only once and thus there is no need to manually
     * unregister it), you should use {@link bindCallback} or {@link bindNodeCallback}
     * instead.
     *
     * `fromEvent` supports following types of event targets:
     *
     * **DOM EventTarget**
     *
     * This is an object with `addEventListener` and `removeEventListener` methods.
     *
     * In the browser, `addEventListener` accepts - apart from event type string and event
     * handler function arguments - optional third parameter, which is either an object or boolean,
     * both used for additional configuration how and when passed function will be called. When
     * `fromEvent` is used with event target of that type, you can provide this values
     * as third parameter as well.
     *
     * **Node.js EventEmitter**
     *
     * An object with `addListener` and `removeListener` methods.
     *
     * **JQuery-style event target**
     *
     * An object with `on` and `off` methods
     *
     * **DOM NodeList**
     *
     * List of DOM Nodes, returned for example by `document.querySelectorAll` or `Node.childNodes`.
     *
     * Although this collection is not event target in itself, `fromEvent` will iterate over all Nodes
     * it contains and install event handler function in every of them. When returned Observable
     * is unsubscribed, function will be removed from all Nodes.
     *
     * **DOM HtmlCollection**
     *
     * Just as in case of NodeList it is a collection of DOM nodes. Here as well event handler function is
     * installed and removed in each of elements.
     *
     *
     * @example <caption>Emits clicks happening on the DOM document</caption>
     * var clicks = Rx.Observable.fromEvent(document, 'click');
     * clicks.subscribe(x => console.log(x));
     *
     * // Results in:
     * // MouseEvent object logged to console every time a click
     * // occurs on the document.
     *
     *
     * @example <caption>Use addEventListener with capture option</caption>
     * var clicksInDocument = Rx.Observable.fromEvent(document, 'click', true); // note optional configuration parameter
     *                                                                          // which will be passed to addEventListener
     * var clicksInDiv = Rx.Observable.fromEvent(someDivInDocument, 'click');
     *
     * clicksInDocument.subscribe(() => console.log('document'));
     * clicksInDiv.subscribe(() => console.log('div'));
     *
     * // By default events bubble UP in DOM tree, so normally
     * // when we would click on div in document
     * // "div" would be logged first and then "document".
     * // Since we specified optional `capture` option, document
     * // will catch event when it goes DOWN DOM tree, so console
     * // will log "document" and then "div".
     *
     * @see {@link bindCallback}
     * @see {@link bindNodeCallback}
     * @see {@link fromEventPattern}
     *
     * @param {EventTargetLike} target The DOM EventTarget, Node.js
     * EventEmitter, JQuery-like event target, NodeList or HTMLCollection to attach the event handler to.
     * @param {string} eventName The event name of interest, being emitted by the
     * `target`.
     * @param {EventListenerOptions} [options] Options to pass through to addEventListener
     * @param {SelectorMethodSignature<T>} [selector] An optional function to
     * post-process results. It takes the arguments from the event handler and
     * should return a single value.
     * @return {Observable<T>}
     * @static true
     * @name fromEvent
     * @owner Observable
     */

/**
     * Creates an Observable that emits no items to the Observer and immediately
     * emits a complete notification.
     *
     * <span class="informal">Just emits 'complete', and nothing else.
     * </span>
     *
     * <img src="./img/empty.png" width="100%">
     *
     * This static operator is useful for creating a simple Observable that only
     * emits the complete notification. It can be used for composing with other
     * Observables, such as in a {@link mergeMap}.
     *
     * @example <caption>Emit the number 7, then complete.</caption>
     * var result = Rx.Observable.empty().startWith(7);
     * result.subscribe(x => console.log(x));
     *
     * @example <caption>Map and flatten only odd numbers to the sequence 'a', 'b', 'c'</caption>
     * var interval = Rx.Observable.interval(1000);
     * var result = interval.mergeMap(x =>
     *   x % 2 === 1 ? Rx.Observable.of('a', 'b', 'c') : Rx.Observable.empty()
     * );
     * result.subscribe(x => console.log(x));
     *
     * // Results in the following to the console:
     * // x is equal to the count on the interval eg(0,1,2,3,...)
     * // x will occur every 1000ms
     * // if x % 2 is equal to 1 print abc
     * // if x % 2 is not equal to 1 nothing will be output
     *
     * @see {@link create}
     * @see {@link never}
     * @see {@link of}
     * @see {@link throw}
     *
     * @param {Scheduler} [scheduler] A {@link IScheduler} to use for scheduling
     * the emission of the complete notification.
     * @return {Observable} An "empty" Observable: emits only the complete
     * notification.
     * @static true
     * @name empty
     * @owner Observable
     */

/**
     * Creates an Observable that emits no items to the Observer and immediately
     * emits an error notification.
     *
     * <span class="informal">Just emits 'error', and nothing else.
     * </span>
     *
     * <img src="./img/throw.png" width="100%">
     *
     * This static operator is useful for creating a simple Observable that only
     * emits the error notification. It can be used for composing with other
     * Observables, such as in a {@link mergeMap}.
     *
     * @example <caption>Emit the number 7, then emit an error.</caption>
     * var result = Rx.Observable.throw(new Error('oops!')).startWith(7);
     * result.subscribe(x => console.log(x), e => console.error(e));
     *
     * @example <caption>Map and flatten numbers to the sequence 'a', 'b', 'c', but throw an error for 13</caption>
     * var interval = Rx.Observable.interval(1000);
     * var result = interval.mergeMap(x =>
     *   x === 13 ?
     *     Rx.Observable.throw('Thirteens are bad') :
     *     Rx.Observable.of('a', 'b', 'c')
     * );
     * result.subscribe(x => console.log(x), e => console.error(e));
     *
     * @see {@link create}
     * @see {@link empty}
     * @see {@link never}
     * @see {@link of}
     *
     * @param {any} error The particular Error to pass to the error notification.
     * @param {Scheduler} [scheduler] A {@link IScheduler} to use for scheduling
     * the emission of the error notification.
     * @return {Observable} An error Observable: emits only the error notification
     * using the given error argument.
     * @static true
     * @name throw
     * @owner Observable
     */

/**
     * Creates an Observable that emits no items to the Observer.
     *
     * <span class="informal">An Observable that never emits anything.</span>
     *
     * <img src="./img/never.png" width="100%">
     *
     * This static operator is useful for creating a simple Observable that emits
     * neither values nor errors nor the completion notification. It can be used
     * for testing purposes or for composing with other Observables. Please note
     * that by never emitting a complete notification, this Observable keeps the
     * subscription from being disposed automatically. Subscriptions need to be
     * manually disposed.
     *
     * @example <caption>Emit the number 7, then never emit anything else (not even complete).</caption>
     * function info() {
     *   console.log('Will not be called');
     * }
     * var result = Rx.Observable.never().startWith(7);
     * result.subscribe(x => console.log(x), info, info);
     *
     * @see {@link create}
     * @see {@link empty}
     * @see {@link of}
     * @see {@link throw}
     *
     * @return {Observable} A "never" Observable: never emits anything.
     * @static true
     * @name never
     * @owner Observable
     */

/**
     * Creates an Observable that emits sequential numbers every specified
     * interval of time, on a specified IScheduler.
     *
     * <span class="informal">Emits incremental numbers periodically in time.
     * </span>
     *
     * <img src="./img/interval.png" width="100%">
     *
     * `interval` returns an Observable that emits an infinite sequence of
     * ascending integers, with a constant interval of time of your choosing
     * between those emissions. The first emission is not sent immediately, but
     * only after the first period has passed. By default, this operator uses the
     * `async` IScheduler to provide a notion of time, but you may pass any
     * IScheduler to it.
     *
     * @example <caption>Emits ascending numbers, one every second (1000ms)</caption>
     * var numbers = Rx.Observable.interval(1000);
     * numbers.subscribe(x => console.log(x));
     *
     * @see {@link timer}
     * @see {@link delay}
     *
     * @param {number} [period=0] The interval size in milliseconds (by default)
     * or the time unit determined by the scheduler's clock.
     * @param {Scheduler} [scheduler=async] The IScheduler to use for scheduling
     * the emission of values, and providing a notion of "time".
     * @return {Observable} An Observable that emits a sequential number each time
     * interval.
     * @static true
     * @name interval
     * @owner Observable
     */

/**
     * Creates an Observable that emits some values you specify as arguments,
     * immediately one after the other, and then emits a complete notification.
     *
     * <span class="informal">Emits the arguments you provide, then completes.
     * </span>
     *
     * <img src="./img/of.png" width="100%">
     *
     * This static operator is useful for creating a simple Observable that only
     * emits the arguments given, and the complete notification thereafter. It can
     * be used for composing with other Observables, such as with {@link concat}.
     * By default, it uses a `null` IScheduler, which means the `next`
     * notifications are sent synchronously, although with a different IScheduler
     * it is possible to determine when those notifications will be delivered.
     *
     * @example <caption>Emit 10, 20, 30, then 'a', 'b', 'c', then start ticking every second.</caption>
     * var numbers = Rx.Observable.of(10, 20, 30);
     * var letters = Rx.Observable.of('a', 'b', 'c');
     * var interval = Rx.Observable.interval(1000);
     * var result = numbers.concat(letters).concat(interval);
     * result.subscribe(x => console.log(x));
     *
     * @see {@link create}
     * @see {@link empty}
     * @see {@link never}
     * @see {@link throw}
     *
     * @param {...T} values Arguments that represent `next` values to be emitted.
     * @param {Scheduler} [scheduler] A {@link IScheduler} to use for scheduling
     * the emissions of the `next` notifications.
     * @return {Observable<T>} An Observable that emits each given input value.
     * @static true
     * @name of
     * @owner Observable
     */

/**
     * Creates an Observable that starts emitting after an `initialDelay` and
     * emits ever increasing numbers after each `period` of time thereafter.
     *
     * <span class="informal">Its like {@link interval}, but you can specify when
     * should the emissions start.</span>
     *
     * <img src="./img/timer.png" width="100%">
     *
     * `timer` returns an Observable that emits an infinite sequence of ascending
     * integers, with a constant interval of time, `period` of your choosing
     * between those emissions. The first emission happens after the specified
     * `initialDelay`. The initial delay may be a {@link Date}. By default, this
     * operator uses the `async` IScheduler to provide a notion of time, but you
     * may pass any IScheduler to it. If `period` is not specified, the output
     * Observable emits only one value, `0`. Otherwise, it emits an infinite
     * sequence.
     *
     * @example <caption>Emits ascending numbers, one every second (1000ms), starting after 3 seconds</caption>
     * var numbers = Rx.Observable.timer(3000, 1000);
     * numbers.subscribe(x => console.log(x));
     *
     * @example <caption>Emits one number after five seconds</caption>
     * var numbers = Rx.Observable.timer(5000);
     * numbers.subscribe(x => console.log(x));
     *
     * @see {@link interval}
     * @see {@link delay}
     *
     * @param {number|Date} initialDelay The initial delay time to wait before
     * emitting the first value of `0`.
     * @param {number} [period] The period of time between emissions of the
     * subsequent numbers.
     * @param {Scheduler} [scheduler=async] The IScheduler to use for scheduling
     * the emission of values, and providing a notion of "time".
     * @return {Observable} An Observable that emits a `0` after the
     * `initialDelay` and ever increasing numbers after each `period` of time
     * thereafter.
     * @static true
     * @name timer
     * @owner Observable
     */

/**
     * Creates an Observable that, on subscribe, calls an Observable factory to
     * make an Observable for each new Observer.
     *
     * <span class="informal">Creates the Observable lazily, that is, only when it
     * is subscribed.
     * </span>
     *
     * <img src="./img/defer.png" width="100%">
     *
     * `defer` allows you to create the Observable only when the Observer
     * subscribes, and create a fresh Observable for each Observer. It waits until
     * an Observer subscribes to it, and then it generates an Observable,
     * typically with an Observable factory function. It does this afresh for each
     * subscriber, so although each subscriber may think it is subscribing to the
     * same Observable, in fact each subscriber gets its own individual
     * Observable.
     *
     * @example <caption>Subscribe to either an Observable of clicks or an Observable of interval, at random</caption>
     * var clicksOrInterval = Rx.Observable.defer(function () {
     *   if (Math.random() > 0.5) {
     *     return Rx.Observable.fromEvent(document, 'click');
     *   } else {
     *     return Rx.Observable.interval(1000);
     *   }
     * });
     * clicksOrInterval.subscribe(x => console.log(x));
     *
     * // Results in the following behavior:
     * // If the result of Math.random() is greater than 0.5 it will listen
     * // for clicks anywhere on the "document"; when document is clicked it
     * // will log a MouseEvent object to the console. If the result is less
     * // than 0.5 it will emit ascending numbers, one every second(1000ms).
     *
     * @see {@link create}
     *
     * @param {function(): SubscribableOrPromise} observableFactory The Observable
     * factory function to invoke for each Observer that subscribes to the output
     * Observable. May also return a Promise, which will be converted on the fly
     * to an Observable.
     * @return {Observable} An Observable whose Observers' subscriptions trigger
     * an invocation of the given Observable factory function.
     * @static true
     * @name defer
     * @owner Observable
     */

/**
     * Creates an array excluding all given values using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * **Note:** Unlike `_.pull`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...*} [values] The values to exclude.
     * @returns {Array} Returns the new array of filtered values.
     * @see _.difference, _.xor
     * @example
     *
     * _.without([2, 1, 2, 3], 1, 2);
     * // => [3]
     */

/**
     * Creates an array of `array` values not included in the other given arrays
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons. The order and references of result values are
     * determined by the first array.
     *
     * **Note:** Unlike `_.pullAll`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...Array} [values] The values to exclude.
     * @returns {Array} Returns the new array of filtered values.
     * @see _.without, _.xor
     * @example
     *
     * _.difference([2, 1], [2, 3]);
     * // => [1]
     */

/**
     * Creates an array of elements split into groups the length of `size`.
     * If `array` can't be split evenly, the final chunk will be the remaining
     * elements.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to process.
     * @param {number} [size=1] The length of each chunk
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the new array of chunks.
     * @example
     *
     * _.chunk(['a', 'b', 'c', 'd'], 2);
     * // => [['a', 'b'], ['c', 'd']]
     *
     * _.chunk(['a', 'b', 'c', 'd'], 3);
     * // => [['a', 'b', 'c'], ['d']]
     */

/**
     * Creates an array of elements split into two groups, the first of which
     * contains elements `predicate` returns truthy for, the second of which
     * contains elements `predicate` returns falsey for. The predicate is
     * invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the array of grouped elements.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'age': 36, 'active': false },
     *   { 'user': 'fred',    'age': 40, 'active': true },
     *   { 'user': 'pebbles', 'age': 1,  'active': false }
     * ];
     *
     * _.partition(users, function(o) { return o.active; });
     * // => objects for [['fred'], ['barney', 'pebbles']]
     *
     * // The `_.matches` iteratee shorthand.
     * _.partition(users, { 'age': 1, 'active': false });
     * // => objects for [['pebbles'], ['barney', 'fred']]
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.partition(users, ['active', false]);
     * // => objects for [['barney', 'pebbles'], ['fred']]
     *
     * // The `_.property` iteratee shorthand.
     * _.partition(users, 'active');
     * // => objects for [['fred'], ['barney', 'pebbles']]
     */

/**
     * Creates an array of elements, sorted in ascending order by the results of
     * running each element in a collection thru each iteratee. This method
     * performs a stable sort, that is, it preserves the original sort order of
     * equal elements. The iteratees are invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {...(Function|Function[])} [iteratees=[_.identity]]
     *  The iteratees to sort by.
     * @returns {Array} Returns the new sorted array.
     * @example
     *
     * var users = [
     *   { 'user': 'fred',   'age': 48 },
     *   { 'user': 'barney', 'age': 36 },
     *   { 'user': 'fred',   'age': 30 },
     *   { 'user': 'barney', 'age': 34 }
     * ];
     *
     * _.sortBy(users, [function(o) { return o.user; }]);
     * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
     *
     * _.sortBy(users, ['user', 'age']);
     * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
     */

/**
     * Creates an array of function property names from own and inherited
     * enumerable properties of `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to inspect.
     * @returns {Array} Returns the function names.
     * @see _.functions
     * @example
     *
     * function Foo() {
     *   this.a = _.constant('a');
     *   this.b = _.constant('b');
     * }
     *
     * Foo.prototype.c = _.constant('c');
     *
     * _.functionsIn(new Foo);
     * // => ['a', 'b', 'c']
     */

/**
     * Creates an array of function property names from own enumerable properties
     * of `object`.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to inspect.
     * @returns {Array} Returns the function names.
     * @see _.functionsIn
     * @example
     *
     * function Foo() {
     *   this.a = _.constant('a');
     *   this.b = _.constant('b');
     * }
     *
     * Foo.prototype.c = _.constant('c');
     *
     * _.functions(new Foo);
     * // => ['a', 'b']
     */

/**
     * Creates an array of numbers (positive and/or negative) progressing from
     * `start` up to, but not including, `end`. A step of `-1` is used if a negative
     * `start` is specified without an `end` or `step`. If `end` is not specified,
     * it's set to `start` with `start` then set to `0`.
     *
     * **Note:** JavaScript follows the IEEE-754 standard for resolving
     * floating-point values which can produce unexpected results.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {number} [start=0] The start of the range.
     * @param {number} end The end of the range.
     * @param {number} [step=1] The value to increment or decrement by.
     * @returns {Array} Returns the range of numbers.
     * @see _.inRange, _.rangeRight
     * @example
     *
     * _.range(4);
     * // => [0, 1, 2, 3]
     *
     * _.range(-4);
     * // => [0, -1, -2, -3]
     *
     * _.range(1, 5);
     * // => [1, 2, 3, 4]
     *
     * _.range(0, 20, 5);
     * // => [0, 5, 10, 15]
     *
     * _.range(0, -4, -1);
     * // => [0, -1, -2, -3]
     *
     * _.range(1, 4, 0);
     * // => [1, 1, 1]
     *
     * _.range(0);
     * // => []
     */

/**
     * Creates an array of own and inherited enumerable property names and
     * symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names and symbols.
     */

/**
     * Creates an array of own and inherited enumerable string keyed-value pairs
     * for `object` which can be consumed by `_.fromPairs`. If `object` is a map
     * or set, its entries are returned.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias entriesIn
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the key-value pairs.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.toPairsIn(new Foo);
     * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)
     */

/**
     * Creates an array of own enumerable property names and symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names and symbols.
     */

/**
     * Creates an array of own enumerable string keyed-value pairs for `object`
     * which can be consumed by `_.fromPairs`. If `object` is a map or set, its
     * entries are returned.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias entries
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the key-value pairs.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.toPairs(new Foo);
     * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
     */

/**
     * Creates an array of shuffled values, using a version of the
     * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to shuffle.
     * @returns {Array} Returns the new shuffled array.
     * @example
     *
     * _.shuffle([1, 2, 3, 4]);
     * // => [4, 1, 3, 2]
     */

/**
     * Creates an array of the enumerable property names of the array-like `value`.
     *
     * @private
     * @param {*} value The value to query.
     * @param {boolean} inherited Specify returning inherited property names.
     * @returns {Array} Returns the array of property names.
     */

/**
     * Creates an array of the own and inherited enumerable property names of `object`.
     *
     * **Note:** Non-object values are coerced to objects.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.keysIn(new Foo);
     * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
     */

/**
     * Creates an array of the own and inherited enumerable string keyed property
     * values of `object`.
     *
     * **Note:** Non-object values are coerced to objects.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property values.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.valuesIn(new Foo);
     * // => [1, 2, 3] (iteration order is not guaranteed)
     */

/**
     * Creates an array of the own and inherited enumerable symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of symbols.
     */

/**
     * Creates an array of the own enumerable property names of `object`.
     *
     * **Note:** Non-object values are coerced to objects. See the
     * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
     * for more details.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.keys(new Foo);
     * // => ['a', 'b'] (iteration order is not guaranteed)
     *
     * _.keys('hi');
     * // => ['0', '1']
     */

/**
     * Creates an array of the own enumerable string keyed property values of `object`.
     *
     * **Note:** Non-object values are coerced to objects.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property values.
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.values(new Foo);
     * // => [1, 2] (iteration order is not guaranteed)
     *
     * _.values('hi');
     * // => ['h', 'i']
     */

/**
     * Creates an array of the own enumerable symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of symbols.
     */

/**
     * Creates an array of unique values that are included in all given arrays
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons. The order and references of result values are
     * determined by the first array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @returns {Array} Returns the new array of intersecting values.
     * @example
     *
     * _.intersection([2, 1], [2, 3]);
     * // => [2]
     */

/**
     * Creates an array of unique values that is the
     * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
     * of the given arrays. The order of result values is determined by the order
     * they occur in the arrays.
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @returns {Array} Returns the new array of filtered values.
     * @see _.difference, _.without
     * @example
     *
     * _.xor([2, 1], [2, 3]);
     * // => [1, 3]
     */

/**
     * Creates an array of unique values, in order, from all given arrays using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @returns {Array} Returns the new array of combined values.
     * @example
     *
     * _.union([2], [1, 2]);
     * // => [2, 1]
     */

/**
     * Creates an array of values by running each element in `collection` thru
     * `iteratee`. The iteratee is invoked with three arguments:
     * (value, index|key, collection).
     *
     * Many lodash methods are guarded to work as iteratees for methods like
     * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
     *
     * The guarded methods are:
     * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
     * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
     * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
     * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new mapped array.
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * _.map([4, 8], square);
     * // => [16, 64]
     *
     * _.map({ 'a': 4, 'b': 8 }, square);
     * // => [16, 64] (iteration order is not guaranteed)
     *
     * var users = [
     *   { 'user': 'barney' },
     *   { 'user': 'fred' }
     * ];
     *
     * // The `_.property` iteratee shorthand.
     * _.map(users, 'user');
     * // => ['barney', 'fred']
     */

/**
     * Creates an array that is the composition of partially applied arguments,
     * placeholders, and provided arguments into a single array of arguments.
     *
     * @private
     * @param {Array} args The provided arguments.
     * @param {Array} partials The arguments to prepend to those provided.
     * @param {Array} holders The `partials` placeholder indexes.
     * @params {boolean} [isCurried] Specify composing for a curried function.
     * @returns {Array} Returns the new array of composed arguments.
     */

/**
     * Creates an array with all falsey values removed. The values `false`, `null`,
     * `0`, `""`, `undefined`, and `NaN` are falsey.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to compact.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * _.compact([0, 1, false, 2, '', 3]);
     * // => [1, 2, 3]
     */

/**
     * Creates an list cache object.
     *
     * @private
     * @constructor
     * @param {Array} [entries] The key-value pairs to cache.
     */

/**
     * Creates an object composed of keys generated from the results of running
     * each element of `collection` thru `iteratee`. The corresponding value of
     * each key is the last element responsible for generating the key. The
     * iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
     * @returns {Object} Returns the composed aggregate object.
     * @example
     *
     * var array = [
     *   { 'dir': 'left', 'code': 97 },
     *   { 'dir': 'right', 'code': 100 }
     * ];
     *
     * _.keyBy(array, function(o) {
     *   return String.fromCharCode(o.code);
     * });
     * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
     *
     * _.keyBy(array, 'dir');
     * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
     */

/**
     * Creates an object composed of keys generated from the results of running
     * each element of `collection` thru `iteratee`. The corresponding value of
     * each key is the number of times the key was returned by `iteratee`. The
     * iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 0.5.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
     * @returns {Object} Returns the composed aggregate object.
     * @example
     *
     * _.countBy([6.1, 4.2, 6.3], Math.floor);
     * // => { '4': 1, '6': 2 }
     *
     * // The `_.property` iteratee shorthand.
     * _.countBy(['one', 'two', 'three'], 'length');
     * // => { '3': 2, '5': 1 }
     */

/**
     * Creates an object composed of keys generated from the results of running
     * each element of `collection` thru `iteratee`. The order of grouped values
     * is determined by the order they occur in `collection`. The corresponding
     * value of each key is an array of elements responsible for generating the
     * key. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
     * @returns {Object} Returns the composed aggregate object.
     * @example
     *
     * _.groupBy([6.1, 4.2, 6.3], Math.floor);
     * // => { '4': [4.2], '6': [6.1, 6.3] }
     *
     * // The `_.property` iteratee shorthand.
     * _.groupBy(['one', 'two', 'three'], 'length');
     * // => { '3': ['one', 'two'], '5': ['three'] }
     */

/**
     * Creates an object composed of the `object` properties `predicate` returns
     * truthy for. The predicate is invoked with two arguments: (value, key).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The source object.
     * @param {Function} [predicate=_.identity] The function invoked per property.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.pickBy(object, _.isNumber);
     * // => { 'a': 1, 'c': 3 }
     */

/**
     * Creates an object composed of the inverted keys and values of `object`.
     * If `object` contains duplicate values, subsequent values overwrite
     * property assignments of previous values.
     *
     * @static
     * @memberOf _
     * @since 0.7.0
     * @category Object
     * @param {Object} object The object to invert.
     * @returns {Object} Returns the new inverted object.
     * @example
     *
     * var object = { 'a': 1, 'b': 2, 'c': 1 };
     *
     * _.invert(object);
     * // => { '1': 'c', '2': 'b' }
     */

/**
     * Creates an object composed of the picked `object` properties.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The source object.
     * @param {...(string|string[])} [paths] The property paths to pick.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.pick(object, ['a', 'c']);
     * // => { 'a': 1, 'c': 3 }
     */

/**
     * Creates an object that inherits from the `prototype` object. If a
     * `properties` object is given, its own enumerable string keyed properties
     * are assigned to the created object.
     *
     * @static
     * @memberOf _
     * @since 2.3.0
     * @category Object
     * @param {Object} prototype The object to inherit from.
     * @param {Object} [properties] The properties to assign to the object.
     * @returns {Object} Returns the new object.
     * @example
     *
     * function Shape() {
     *   this.x = 0;
     *   this.y = 0;
     * }
     *
     * function Circle() {
     *   Shape.call(this);
     * }
     *
     * Circle.prototype = _.create(Shape.prototype, {
     *   'constructor': Circle
     * });
     *
     * var circle = new Circle;
     * circle instanceof Circle;
     * // => true
     *
     * circle instanceof Shape;
     * // => true
     */

/**
     * Creates an object with the same keys as `object` and values generated
     * by running each own enumerable string keyed property of `object` thru
     * `iteratee`. The iteratee is invoked with three arguments:
     * (value, key, object).
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns the new mapped object.
     * @see _.mapKeys
     * @example
     *
     * var users = {
     *   'fred':    { 'user': 'fred',    'age': 40 },
     *   'pebbles': { 'user': 'pebbles', 'age': 1 }
     * };
     *
     * _.mapValues(users, function(o) { return o.age; });
     * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
     *
     * // The `_.property` iteratee shorthand.
     * _.mapValues(users, 'age');
     * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
     */

/**
     * Creates an observable for an Ajax request with either a request object with
     * url, headers, etc or a string for a URL.
     *
     * @example
     * source = Rx.Observable.ajax('/products');
     * source = Rx.Observable.ajax({ url: 'products', method: 'GET' });
     *
     * @param {string|Object} request Can be one of the following:
     *   A string of the URL to make the Ajax call.
     *   An object with the following properties
     *   - url: URL of the request
     *   - body: The body of the request
     *   - method: Method of the request, such as GET, POST, PUT, PATCH, DELETE
     *   - async: Whether the request is async
     *   - headers: Optional headers
     *   - crossDomain: true if a cross domain request, else false
     *   - createXHR: a function to override if you need to use an alternate
     *   XMLHttpRequest implementation.
     *   - resultSelector: a function to use to alter the output value type of
     *   the Observable. Gets {@link AjaxResponse} as an argument.
     * @return {Observable} An observable sequence containing the XMLHttpRequest.
     * @static true
     * @name ajax
     * @owner Observable
    */

/**
     * Creates rectangle with an interface of the DOMRectReadOnly.
     * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
     *
     * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
     * @returns {DOMRectReadOnly}
     */

/**
     * Creates the padding for `string` based on `length`. The `chars` string
     * is truncated if the number of characters exceeds `length`.
     *
     * @private
     * @param {number} length The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padding for `string`.
     */

/**
     * Custom, non-string, compiled, representation.
     *
     * This is used by unified to store non-string results.
     * One example is when turning markdown into React nodes.
     *
     * @type {unknown}
     */

/**
     * Darken the color a given amount, from 0 to 100.
     * Providing 100 will always return black.
     * @param amount - valid between 1-100
     */

/**
     * Deburrs `string` by converting
     * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
     * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
     * letters to basic Latin letters and removing
     * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to deburr.
     * @returns {string} Returns the deburred string.
     * @example
     *
     * _.deburr('déjà vu');
     * // => 'deja vu'
     */

/**
     * Defers invoking the `func` until the current call stack has cleared. Any
     * additional arguments are provided to `func` when it's invoked.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to defer.
     * @param {...*} [args] The arguments to invoke `func` with.
     * @returns {number} Returns the timer id.
     * @example
     *
     * _.defer(function(text) {
     *   console.log(text);
     * }, 'deferred');
     * // => Logs 'deferred' after one millisecond.
     */

/**
     * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.
     * You need to tell it what event names should be matched by a regex.
     *
     * @param {String} evt Name of the event to create.
     * @return {Object} Current instance of EventEmitter for chaining.
     */

/**
     * Delivers to the given `observer` the value wrapped by this Notification.
     * @param {Observer} observer
     * @return
     */

/**
     * Desaturate the color a given amount, from 0 to 100.
     * Providing 100 will is the same as calling greyscale
     * @param amount - valid between 1-100
     */

/**
     * Destroys action
     */

/**
     * Detects whether window and document objects are available in current environment.
     */

/**
     * Determine whether the media query should be considered a match
     *
     * @return {Boolean} true if media query can be considered a match, false otherwise
     */

/**
     * Disposes the resources held by the subscription. May, for instance, cancel
     * an ongoing Observable execution or cancel any other type of work that
     * started when the Subscription was created.
     * @return {void}
     */

/**
     * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.
     * The first argument will determine if the listeners are removed (true) or added (false).
     * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.
     * You can also pass it an event name and an array of listeners to be added/removed.
     * You can also pass it a regular expression to manipulate the listeners of all events that match it.
     *
     * @param {Boolean} remove True if you want to remove listeners, false if you want to add.
     * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.
     * @param {Function[]} [listeners] An optional array of listener functions to add/remove.
     * @return {Object} Current instance of EventEmitter for chaining.
     */

/**
     * Element Highlight
     */

/**
     * Emits an event of your choice.
     * When emitted, every listener attached to that event will be executed.
     * If you pass the optional argument array then those arguments will be passed to every listener upon execution.
     * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.
     * So they will not arrive within the array on the other side, they will be separate.
     * You can also pass a regular expression to emit to all events that match it.
     *
     * @param {String|RegExp} evt Name of the event to emit and execute listeners for.
     * @param {Array} [args] Optional array of arguments to be passed to each listener.
     * @return {Object} Current instance of EventEmitter for chaining.
     */

/**
     * Enables the wrapper to be iterable.
     *
     * @name Symbol.iterator
     * @memberOf _
     * @since 4.0.0
     * @category Seq
     * @returns {Object} Returns the wrapper object.
     * @example
     *
     * var wrapped = _([1, 2]);
     *
     * wrapped[Symbol.iterator]() === wrapped;
     * // => true
     *
     * Array.from(wrapped);
     * // => [1, 2]
     */

/**
     * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
     * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to escape.
     * @returns {string} Returns the escaped string.
     * @example
     *
     * _.escapeRegExp('[lodash](https://lodash.com/)');
     * // => '\[lodash\]\(https://lodash\.com/\)'
     */

/**
     * Executes the chain sequence and returns the wrapped result.
     *
     * @name commit
     * @memberOf _
     * @since 3.2.0
     * @category Seq
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var array = [1, 2];
     * var wrapped = _(array).push(3);
     *
     * console.log(array);
     * // => [1, 2]
     *
     * wrapped = wrapped.commit();
     * console.log(array);
     * // => [1, 2, 3]
     *
     * wrapped.last();
     * // => 3
     *
     * console.log(array);
     * // => [1, 2, 3]
     */

/**
     * Executes the chain sequence to resolve the unwrapped value.
     *
     * @name value
     * @memberOf _
     * @since 0.1.0
     * @alias toJSON, valueOf
     * @category Seq
     * @returns {*} Returns the resolved unwrapped value.
     * @example
     *
     * _([1, 2, 3]).value();
     * // => [1, 2, 3]
     */

/**
     * Extracts borders size from provided styles.
     *
     * @param {CSSStyleDeclaration} styles
     * @param {...string} positions - Borders positions (top, right, ...)
     * @returns {number}
     */

/**
     * Extracts paddings sizes from provided styles.
     *
     * @param {CSSStyleDeclaration} styles
     * @returns {Object} Paddings box.
     */

/**
     * Extracts the unwrapped value from its lazy wrapper.
     *
     * @private
     * @name value
     * @memberOf LazyWrapper
     * @returns {*} Returns the unwrapped value.
     */

/**
     * Extracts wrapper details from the `source` body comment.
     *
     * @private
     * @param {string} source The source to inspect.
     * @returns {Array} Returns the wrapper details.
     */

/**
     * Fetches the current value to check against when executing listeners. If
     * the listeners return value matches this one then it should be removed
     * automatically. It will return true by default.
     *
     * @return {*|Boolean} The current value to check for or the default, true.
     * @api private
     */

/**
     * Fetches the events object and creates one if required.
     *
     * @return {Object} The events storage object.
     * @api private
     */

/**
     * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.
     *
     * @param {String|RegExp} evt Name of the event to return the listeners from.
     * @return {Object} All listener functions for an event in an object.
     */

/**
     * Fills elements of `array` with `value` from `start` up to, but not
     * including, `end`.
     *
     * **Note:** This method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 3.2.0
     * @category Array
     * @param {Array} array The array to fill.
     * @param {*} value The value to fill `array` with.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [1, 2, 3];
     *
     * _.fill(array, 'a');
     * console.log(array);
     * // => ['a', 'a', 'a']
     *
     * _.fill(Array(3), 2);
     * // => [2, 2, 2]
     *
     * _.fill([4, 6, 8, 10], '*', 1, 3);
     * // => [4, '*', '*', 10]
     */

/**
     * Finds the index of the listener for the event in its storage array.
     *
     * @param {Function[]} listeners Array of listeners to search through.
     * @param {Function} listener Method to look for.
     * @return {Number} Index of the specified listener, -1 if not found
     * @api private
     */

/**
     * Fires when the playing speed of the audio/video is changed
     */

/**
     * Fix https://github.com/ant-design/ant-design/issues/21154
     * This is a workaround to not to break current behavior.
     * We can remove follow code after final release.
     *
     * To other developer:
     *  Do not use `__PARENT_RENDER_ICON__` in prod since we will remove this when refactor
     */

/**
     * Flattens `array` a single level deep.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to flatten.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * _.flatten([1, [2, [3, [4]], 5]]);
     * // => [1, 2, [3, [4]], 5]
     */

/**
     * Follow state should not management in State since it will async update by React.
     * This makes first render of form can not get correct state value.
     */

/**
     * Full unist position.
     *
     * @type {Position | null}
     */

/**
     * Generate maps
     * Can use cache to save perf if user report performance issue with this
     */

/**
     * Generates a unique ID. If `prefix` is given, the ID is appended to it.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {string} [prefix=''] The value to prefix the ID with.
     * @returns {string} Returns the unique ID.
     * @example
     *
     * _.uniqueId('contact_');
     * // => 'contact_104'
     *
     * _.uniqueId();
     * // => '105'
     */

/**
     * Geometry 动画配置。
     *
     * + `animate(false)` 关闭动画
     * + `animate(true)` 开启动画，默认开启。
     *
     * 我们将动画分为四个场景：
     * 1. appear: 图表第一次加载时的入场动画；
     * 2. enter: 图表绘制完成，发生更新后，产生的新图形的进场动画；
     * 3. update: 图表绘制完成，数据发生变更后，有状态变更的图形的更新动画；
     * 4. leave: 图表绘制完成，数据发生变更后，被销毁图形的销毁动画。
     *
     * @example
     * ```typescript
     * animate({
     *   enter: {
     *     duration: 1000, // enter 动画执行时间
     *   },
     *   leave: false, // 关闭 leave 销毁动画
     * });
     * ```
     *
     * @param cfg 动画配置
     * @returns
     */

/**
     * Geometry 更新。
     * @param [cfg] 更新的配置
     */

/**
     * Get end tangent vector
     * @return {Array}
     */

/**
     * Get length of line
     * @return {number} length
     */

/**
     * Get length of polyline
     * @return {number} length
     */

/**
     * Get percentage of video played
     *
     * @return {Number} Percentage played
     * @method getPercent
     */

/**
     * Get point according to ratio
     * @param {number} ratio
     * @return {Point} point
     */

/**
     * Get polyad colors, like (for 1, 2, 3, 4, 5, 6, 7, 8, etc...)
     * monad, dyad, triad, tetrad, pentad, hexad, heptad, octad, etc...
     */

/**
     * Get start tangent vector
     * @return {Array}
     */

/**
     * Get total length of path
     * @return {number} length
     */

/**
     * Get total length of path
     * 尽管通过浏览器的 SVGPathElement.getTotalLength() 接口获取的 path 长度，
     * 与 Canvas 版本通过数学计算的方式得到的长度有一些细微差异，但最大误差在个位数像素，精度上可以能接受
     * @return {number} length
     */

/**
     * Gets `n` random elements at unique keys from `collection` up to the
     * size of `collection`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to sample.
     * @param {number} [n=1] The number of elements to sample.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the random elements.
     * @example
     *
     * _.sampleSize([1, 2, 3], 2);
     * // => [3, 1]
     *
     * _.sampleSize([1, 2, 3], 4);
     * // => [2, 3, 1]
     */

/**
     * Gets a random element from `collection`.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to sample.
     * @returns {*} Returns the random element.
     * @example
     *
     * _.sample([1, 2, 3, 4]);
     * // => 2
     */

/**
     * Gets all but the first element of `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to query.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.tail([1, 2, 3]);
     * // => [2, 3]
     */

/**
     * Gets all but the last element of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to query.
     * @returns {Array} Returns the slice of `array`.
     * @example
     *
     * _.initial([1, 2, 3]);
     * // => [1, 2]
     */

/**
     * Gets metadata for `func`.
     *
     * @private
     * @param {Function} func The function to query.
     * @returns {*} Returns the metadata for `func`.
     */

/**
     * Gets the appropriate "iteratee" function. If `_.iteratee` is customized,
     * this function returns the custom method, otherwise it returns `baseIteratee`.
     * If arguments are provided, the chosen function is invoked with them and
     * its result is returned.
     *
     * @private
     * @param {*} [value] The value to convert to an iteratee.
     * @param {number} [arity] The arity of the created iteratee.
     * @returns {Function} Returns the chosen function or its result.
     */

/**
     * Gets the argument placeholder value for `func`.
     *
     * @private
     * @param {Function} func The function to inspect.
     * @returns {*} Returns the placeholder value.
     */

/**
     * Gets the data for `map`.
     *
     * @private
     * @param {Object} map The map to query.
     * @param {string} key The reference key.
     * @returns {*} Returns the map data.
     */

/**
     * Gets the element at index `n` of `array`. If `n` is negative, the nth
     * element from the end is returned.
     *
     * @static
     * @memberOf _
     * @since 4.11.0
     * @category Array
     * @param {Array} array The array to query.
     * @param {number} [n=0] The index of the element to return.
     * @returns {*} Returns the nth element of `array`.
     * @example
     *
     * var array = ['a', 'b', 'c', 'd'];
     *
     * _.nth(array, 1);
     * // => 'b'
     *
     * _.nth(array, -2);
     * // => 'c';
     */

/**
     * Gets the first element of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @alias first
     * @category Array
     * @param {Array} array The array to query.
     * @returns {*} Returns the first element of `array`.
     * @example
     *
     * _.head([1, 2, 3]);
     * // => 1
     *
     * _.head([]);
     * // => undefined
     */

/**
     * Gets the hash value for `key`.
     *
     * @private
     * @name get
     * @memberOf Hash
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */

/**
     * Gets the index at which the `key` is found in `array` of key-value pairs.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {*} key The key to search for.
     * @returns {number} Returns the index of the matched value, else `-1`.
     */

/**
     * Gets the index at which the first occurrence of `value` is found in `array`
     * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons. If `fromIndex` is negative, it's used as the
     * offset from the end of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @param {number} [fromIndex=0] The index to search from.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.indexOf([1, 2, 1, 2], 2);
     * // => 1
     *
     * // Search from the `fromIndex`.
     * _.indexOf([1, 2, 1, 2], 2, 2);
     * // => 3
     */

/**
     * Gets the last element of `array`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to query.
     * @returns {*} Returns the last element of `array`.
     * @example
     *
     * _.last([1, 2, 3]);
     * // => 3
     */

/**
     * Gets the list cache value for `key`.
     *
     * @private
     * @name get
     * @memberOf ListCache
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */

/**
     * Gets the map value for `key`.
     *
     * @private
     * @name get
     * @memberOf MapCache
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */

/**
     * Gets the name of `func`.
     *
     * @private
     * @param {Function} func The function to query.
     * @returns {string} Returns the function name.
     */

/**
     * Gets the native function at `key` of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {string} key The key of the method to get.
     * @returns {*} Returns the function if it's native, else `undefined`.
     */

/**
     * Gets the next value on a wrapped object following the
     * [iterator protocol](https://mdn.io/iteration_protocols#iterator).
     *
     * @name next
     * @memberOf _
     * @since 4.0.0
     * @category Seq
     * @returns {Object} Returns the next iterator value.
     * @example
     *
     * var wrapped = _([1, 2]);
     *
     * wrapped.next();
     * // => { 'done': false, 'value': 1 }
     *
     * wrapped.next();
     * // => { 'done': false, 'value': 2 }
     *
     * wrapped.next();
     * // => { 'done': true, 'value': undefined }
     */

/**
     * Gets the parent value at `path` of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array} path The path to get the parent value of.
     * @returns {*} Returns the parent value.
     */

/**
     * Gets the property names, values, and compare flags of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the match data of `object`.
     */

/**
     * Gets the size of `collection` by returning its length for array-like
     * values or the number of own enumerable string keyed properties for objects.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object|string} collection The collection to inspect.
     * @returns {number} Returns the collection size.
     * @example
     *
     * _.size([1, 2, 3]);
     * // => 3
     *
     * _.size({ 'a': 1, 'b': 2 });
     * // => 2
     *
     * _.size('pebbles');
     * // => 7
     */

/**
     * Gets the stack value for `key`.
     *
     * @private
     * @name get
     * @memberOf Stack
     * @param {string} key The key of the value to get.
     * @returns {*} Returns the entry value.
     */

/**
     * Gets the timestamp of the number of milliseconds that have elapsed since
     * the Unix epoch (1 January 1970 00:00:00 UTC).
     *
     * @static
     * @memberOf _
     * @since 2.4.0
     * @category Date
     * @returns {number} Returns the timestamp.
     * @example
     *
     * _.defer(function(stamp) {
     *   console.log(_.now() - stamp);
     * }, _.now());
     * // => Logs the number of milliseconds it took for the deferred invocation.
     */

/**
     * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
     *
     * @private
     * @param {Object} object The object to query.
     * @param {string} key The key of the property to get.
     * @returns {*} Returns the property value.
     */

/**
     * Gets the value at `path` of `object`. If the resolved value is
     * `undefined`, the `defaultValue` is returned in its place.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the property to get.
     * @param {*} [defaultValue] The value returned for `undefined` resolved values.
     * @returns {*} Returns the resolved value.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
     *
     * _.get(object, 'a[0].b.c');
     * // => 3
     *
     * _.get(object, ['a', '0', 'b', 'c']);
     * // => 3
     *
     * _.get(object, 'a.b.c', 'default');
     * // => 'default'
     */

/**
     * Gets the view, applying any `transforms` to the `start` and `end` positions.
     *
     * @private
     * @param {number} start The start of the view.
     * @param {number} end The end of the view.
     * @param {Array} transforms The transformations to apply to the view.
     * @returns {Object} Returns an object containing the `start` and `end`
     *  positions of the view.
     */

/**
     * Given some {@link Observer} callbacks, deliver the value represented by the
     * current Notification to the correctly corresponding callback.
     * @param {function(value: T): void} next An Observer `next` callback.
     * @param {function(err: any): void} [error] An Observer `error` callback.
     * @param {function(): void} [complete] An Observer `complete` callback.
     * @return {any}
     */

/**
     * Handle either an object mapping codes to constructs, a list of
     * constructs, or a single construct.
     *
     * @param {Construct|Array<Construct>|ConstructRecord} constructs
     * @param {State} returnState
     * @param {State} [bogusState]
     * @returns {State}
     */

/**
     * Immediately executes this action and the `work` it contains.
     * @return {any}
     */

/**
     * Initializes an array clone.
     *
     * @private
     * @param {Array} array The array to clone.
     * @returns {Array} Returns the initialized clone.
     */

/**
     * Initializes an object clone based on its `toStringTag`.
     *
     * **Note:** This function only supports cloning values with tags of
     * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
     *
     * @private
     * @param {Object} object The object to clone.
     * @param {string} tag The `toStringTag` of the object to clone.
     * @param {boolean} [isDeep] Specify a deep clone.
     * @returns {Object} Returns the initialized clone.
     */

/**
     * Initializes an object clone.
     *
     * @private
     * @param {Object} object The object to clone.
     * @returns {Object} Returns the initialized clone.
     */

/**
     * Inits action，提供给子类用于继承
     */

/**
     * Inserts wrapper `details` in a comment at the top of the `source` body.
     *
     * @private
     * @param {string} source The source to modify.
     * @returns {Array} details The details to insert.
     * @returns {string} Returns the modified source.
     */

/**
     * Invokes `func` after `wait` milliseconds. Any additional arguments are
     * provided to `func` when it's invoked.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {Function} func The function to delay.
     * @param {number} wait The number of milliseconds to delay invocation.
     * @param {...*} [args] The arguments to invoke `func` with.
     * @returns {number} Returns the timer id.
     * @example
     *
     * _.delay(function(text) {
     *   console.log(text);
     * }, 1000, 'later');
     * // => Logs 'later' after one second.
     */

/**
     * Invokes an execution of an Observable and registers Observer handlers for notifications it will emit.
     *
     * <span class="informal">Use it when you have all these Observables, but still nothing is happening.</span>
     *
     * `subscribe` is not a regular operator, but a method that calls Observable's internal `subscribe` function. It
     * might be for example a function that you passed to a {@link create} static factory, but most of the time it is
     * a library implementation, which defines what and when will be emitted by an Observable. This means that calling
     * `subscribe` is actually the moment when Observable starts its work, not when it is created, as it is often
     * thought.
     *
     * Apart from starting the execution of an Observable, this method allows you to listen for values
     * that an Observable emits, as well as for when it completes or errors. You can achieve this in two
     * following ways.
     *
     * The first way is creating an object that implements {@link Observer} interface. It should have methods
     * defined by that interface, but note that it should be just a regular JavaScript object, which you can create
     * yourself in any way you want (ES6 class, classic function constructor, object literal etc.). In particular do
     * not attempt to use any RxJS implementation details to create Observers - you don't need them. Remember also
     * that your object does not have to implement all methods. If you find yourself creating a method that doesn't
     * do anything, you can simply omit it. Note however, that if `error` method is not provided, all errors will
     * be left uncaught.
     *
     * The second way is to give up on Observer object altogether and simply provide callback functions in place of its methods.
     * This means you can provide three functions as arguments to `subscribe`, where first function is equivalent
     * of a `next` method, second of an `error` method and third of a `complete` method. Just as in case of Observer,
     * if you do not need to listen for something, you can omit a function, preferably by passing `undefined` or `null`,
     * since `subscribe` recognizes these functions by where they were placed in function call. When it comes
     * to `error` function, just as before, if not provided, errors emitted by an Observable will be thrown.
     *
     * Whatever style of calling `subscribe` you use, in both cases it returns a Subscription object.
     * This object allows you to call `unsubscribe` on it, which in turn will stop work that an Observable does and will clean
     * up all resources that an Observable used. Note that cancelling a subscription will not call `complete` callback
     * provided to `subscribe` function, which is reserved for a regular completion signal that comes from an Observable.
     *
     * Remember that callbacks provided to `subscribe` are not guaranteed to be called asynchronously.
     * It is an Observable itself that decides when these functions will be called. For example {@link of}
     * by default emits all its values synchronously. Always check documentation for how given Observable
     * will behave when subscribed and if its default behavior can be modified with a {@link Scheduler}.
     *
     * @example <caption>Subscribe with an Observer</caption>
     * const sumObserver = {
     *   sum: 0,
     *   next(value) {
     *     console.log('Adding: ' + value);
     *     this.sum = this.sum + value;
     *   },
     *   error() { // We actually could just remove this method,
     *   },        // since we do not really care about errors right now.
     *   complete() {
     *     console.log('Sum equals: ' + this.sum);
     *   }
     * };
     *
     * Rx.Observable.of(1, 2, 3) // Synchronously emits 1, 2, 3 and then completes.
     * .subscribe(sumObserver);
     *
     * // Logs:
     * // "Adding: 1"
     * // "Adding: 2"
     * // "Adding: 3"
     * // "Sum equals: 6"
     *
     *
     * @example <caption>Subscribe with functions</caption>
     * let sum = 0;
     *
     * Rx.Observable.of(1, 2, 3)
     * .subscribe(
     *   function(value) {
     *     console.log('Adding: ' + value);
     *     sum = sum + value;
     *   },
     *   undefined,
     *   function() {
     *     console.log('Sum equals: ' + sum);
     *   }
     * );
     *
     * // Logs:
     * // "Adding: 1"
     * // "Adding: 2"
     * // "Adding: 3"
     * // "Sum equals: 6"
     *
     *
     * @example <caption>Cancel a subscription</caption>
     * const subscription = Rx.Observable.interval(1000).subscribe(
     *   num => console.log(num),
     *   undefined,
     *   () => console.log('completed!') // Will not be called, even
     * );                                // when cancelling subscription
     *
     *
     * setTimeout(() => {
     *   subscription.unsubscribe();
     *   console.log('unsubscribed!');
     * }, 2500);
     *
     * // Logs:
     * // 0 after 1s
     * // 1 after 2s
     * // "unsubscribed!" after 2.5s
     *
     *
     * @param {Observer|Function} observerOrNext (optional) Either an observer with methods to be called,
     *  or the first of three possible handlers, which is the handler for each value emitted from the subscribed
     *  Observable.
     * @param {Function} error (optional) A handler for a terminal event resulting from an error. If no error handler is provided,
     *  the error will be thrown as unhandled.
     * @param {Function} complete (optional) A handler for a terminal event resulting from successful completion.
     * @return {ISubscription} a subscription reference to the registered handlers
     * @method subscribe
     */

/**
     * Invokes the iteratee `n` times, returning an array of the results of
     * each invocation. The iteratee is invoked with one argument; (index).
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {number} n The number of times to invoke `iteratee`.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the array of results.
     * @example
     *
     * _.times(3, String);
     * // => ['0', '1', '2']
     *
     *  _.times(4, _.constant(0));
     * // => [0, 0, 0, 0]
     */

/**
     * Invokes the method at `path` of each element in `collection`, returning
     * an array of the results of each invoked method. Any additional arguments
     * are provided to each invoked method. If `path` is a function, it's invoked
     * for, and `this` bound to, each element in `collection`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Array|Function|string} path The path of the method to invoke or
     *  the function invoked per iteration.
     * @param {...*} [args] The arguments to invoke each method with.
     * @returns {Array} Returns the array of results.
     * @example
     *
     * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');
     * // => [[1, 5, 7], [1, 2, 3]]
     *
     * _.invokeMap([123, 456], String.prototype.split, '');
     * // => [['1', '2', '3'], ['4', '5', '6']]
     */

/**
     * Invokes the original callback function and schedules new invocation if
     * the "proxy" was called during current request.
     *
     * @returns {void}
     */

/**
     * Iterates over elements of `collection` and invokes `iteratee` for each element.
     * The iteratee is invoked with three arguments: (value, index|key, collection).
     * Iteratee functions may exit iteration early by explicitly returning `false`.
     *
     * **Note:** As with other "Collections" methods, objects with a "length"
     * property are iterated like arrays. To avoid this behavior use `_.forIn`
     * or `_.forOwn` for object iteration.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @alias each
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     * @see _.forEachRight
     * @example
     *
     * _.forEach([1, 2], function(value) {
     *   console.log(value);
     * });
     * // => Logs `1` then `2`.
     *
     * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'a' then 'b' (iteration order is not guaranteed).
     */

/**
     * Iterates over elements of `collection`, returning an array of all elements
     * `predicate` returns truthy for. The predicate is invoked with three
     * arguments: (value, index|key, collection).
     *
     * **Note:** Unlike `_.remove`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new filtered array.
     * @see _.reject
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': true },
     *   { 'user': 'fred',   'age': 40, 'active': false }
     * ];
     *
     * _.filter(users, function(o) { return !o.active; });
     * // => objects for ['fred']
     *
     * // The `_.matches` iteratee shorthand.
     * _.filter(users, { 'age': 36, 'active': true });
     * // => objects for ['barney']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.filter(users, ['active', false]);
     * // => objects for ['fred']
     *
     * // The `_.property` iteratee shorthand.
     * _.filter(users, 'active');
     * // => objects for ['barney']
     *
     * // Combining several predicates using `_.overEvery` or `_.overSome`.
     * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
     * // => objects for ['fred', 'barney']
     */

/**
     * Iterates over elements of `collection`, returning the first element
     * `predicate` returns truthy for. The predicate is invoked with three
     * arguments: (value, index|key, collection).
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=0] The index to search from.
     * @returns {*} Returns the matched element, else `undefined`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'age': 36, 'active': true },
     *   { 'user': 'fred',    'age': 40, 'active': false },
     *   { 'user': 'pebbles', 'age': 1,  'active': true }
     * ];
     *
     * _.find(users, function(o) { return o.age < 40; });
     * // => object for 'barney'
     *
     * // The `_.matches` iteratee shorthand.
     * _.find(users, { 'age': 1, 'active': true });
     * // => object for 'pebbles'
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.find(users, ['active', false]);
     * // => object for 'fred'
     *
     * // The `_.property` iteratee shorthand.
     * _.find(users, 'active');
     * // => object for 'barney'
     */

/**
     * Iterates over own and inherited enumerable string keyed properties of an
     * object and invokes `iteratee` for each property. The iteratee is invoked
     * with three arguments: (value, key, object). Iteratee functions may exit
     * iteration early by explicitly returning `false`.
     *
     * @static
     * @memberOf _
     * @since 0.3.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forInRight
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forIn(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
     */

/**
     * Iterates over own enumerable string keyed properties of an object and
     * invokes `iteratee` for each property. The iteratee is invoked with three
     * arguments: (value, key, object). Iteratee functions may exit iteration
     * early by explicitly returning `false`.
     *
     * @static
     * @memberOf _
     * @since 0.3.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forOwnRight
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forOwn(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'a' then 'b' (iteration order is not guaranteed).
     */

/**
     * Joins last values emitted by passed Observables.
     *
     * <span class="informal">Wait for Observables to complete and then combine last values they emitted.</span>
     *
     * <img src="./img/forkJoin.png" width="100%">
     *
     * `forkJoin` is an operator that takes any number of Observables which can be passed either as an array
     * or directly as arguments. If no input Observables are provided, resulting stream will complete
     * immediately.
     *
     * `forkJoin` will wait for all passed Observables to complete and then it will emit an array with last
     * values from corresponding Observables. So if you pass `n` Observables to the operator, resulting
     * array will have `n` values, where first value is the last thing emitted by the first Observable,
     * second value is the last thing emitted by the second Observable and so on. That means `forkJoin` will
     * not emit more than once and it will complete after that. If you need to emit combined values not only
     * at the end of lifecycle of passed Observables, but also throughout it, try out {@link combineLatest}
     * or {@link zip} instead.
     *
     * In order for resulting array to have the same length as the number of input Observables, whenever any of
     * that Observables completes without emitting any value, `forkJoin` will complete at that moment as well
     * and it will not emit anything either, even if it already has some last values from other Observables.
     * Conversely, if there is an Observable that never completes, `forkJoin` will never complete as well,
     * unless at any point some other Observable completes without emitting value, which brings us back to
     * the previous case. Overall, in order for `forkJoin` to emit a value, all Observables passed as arguments
     * have to emit something at least once and complete.
     *
     * If any input Observable errors at some point, `forkJoin` will error as well and all other Observables
     * will be immediately unsubscribed.
     *
     * Optionally `forkJoin` accepts project function, that will be called with values which normally
     * would land in emitted array. Whatever is returned by project function, will appear in output
     * Observable instead. This means that default project can be thought of as a function that takes
     * all its arguments and puts them into an array. Note that project function will be called only
     * when output Observable is supposed to emit a result.
     *
     * @example <caption>Use forkJoin with operator emitting immediately</caption>
     * const observable = Rx.Observable.forkJoin(
     *   Rx.Observable.of(1, 2, 3, 4),
     *   Rx.Observable.of(5, 6, 7, 8)
     * );
     * observable.subscribe(
     *   value => console.log(value),
     *   err => {},
     *   () => console.log('This is how it ends!')
     * );
     *
     * // Logs:
     * // [4, 8]
     * // "This is how it ends!"
     *
     *
     * @example <caption>Use forkJoin with operator emitting after some time</caption>
     * const observable = Rx.Observable.forkJoin(
     *   Rx.Observable.interval(1000).take(3), // emit 0, 1, 2 every second and complete
     *   Rx.Observable.interval(500).take(4) // emit 0, 1, 2, 3 every half a second and complete
     * );
     * observable.subscribe(
     *   value => console.log(value),
     *   err => {},
     *   () => console.log('This is how it ends!')
     * );
     *
     * // Logs:
     * // [2, 3] after 3 seconds
     * // "This is how it ends!" immediately after
     *
     *
     * @example <caption>Use forkJoin with project function</caption>
     * const observable = Rx.Observable.forkJoin(
     *   Rx.Observable.interval(1000).take(3), // emit 0, 1, 2 every second and complete
     *   Rx.Observable.interval(500).take(4), // emit 0, 1, 2, 3 every half a second and complete
     *   (n, m) => n + m
     * );
     * observable.subscribe(
     *   value => console.log(value),
     *   err => {},
     *   () => console.log('This is how it ends!')
     * );
     *
     * // Logs:
     * // 5 after 3 seconds
     * // "This is how it ends!" immediately after
     *
     * @see {@link combineLatest}
     * @see {@link zip}
     *
     * @param {...SubscribableOrPromise} sources Any number of Observables provided either as an array or as an arguments
     * passed directly to the operator.
     * @param {function} [project] Function that takes values emitted by input Observables and returns value
     * that will appear in resulting Observable instead of default array.
     * @return {Observable} Observable emitting either an array of last values emitted by passed Observables
     * or value from project function.
     * @static true
     * @name forkJoin
     * @owner Observable
     */

/**
     * Lighten the color a given amount. Providing 100 will always return white.
     * @param amount - valid between 1-100
     */

/**
     * Link to docs for the message.
     *
     * > 👉 **Note**: this must be an absolute URL that can be passed as `x`
     * > to `new URL(x)`.
     *
     * @type {string | null}
     */

/**
     * List of filepaths the file moved between.
     *
     * The first is the original path and the last is the current path.
     *
     * @type {Array<string>}
     */

/**
     * List of messages associated with the file.
     *
     * @type {Array<VFileMessage>}
     */

/**
     * Long form description of the message (you should use markdown).
     *
     * @type {string | null}
     */

/**
     * Merges the function metadata of `source` into `data`.
     *
     * Merging metadata reduces the number of wrappers used to invoke a function.
     * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
     * may be applied regardless of execution order. Methods like `_.ary` and
     * `_.rearg` modify function arguments, making the order in which they are
     * executed important, preventing the merging of metadata. However, we make
     * an exception for a safe combined case where curried functions have `_.ary`
     * and or `_.rearg` applied.
     *
     * @private
     * @param {Array} data The destination metadata.
     * @param {Array} source The source metadata.
     * @returns {Array} Returns `data`.
     */

/**
     * Mix the color with pure black, from 0 to 100.
     * Providing 0 will do nothing, providing 100 will always return black.
     * @param amount - valid between 1-100
     */

/**
     * Mix the color with pure white, from 0 to 100.
     * Providing 0 will do nothing, providing 100 will always return white.
     * @param amount - valid between 1-100
     */

/**
     * Mix the current color a given amount with another color, from 0 to 100.
     * 0 means no mixing (return current color).
     */

/**
     * Multiply two numbers.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Math
     * @param {number} multiplier The first number in a multiplication.
     * @param {number} multiplicand The second number in a multiplication.
     * @returns {number} Returns the product.
     * @example
     *
     * _.multiply(6, 4);
     * // => 24
     */

/**
     * Namespace of message (example: `'my-package'`).
     *
     * @type {string | null}
     */

/**
     * Pads `string` on the left and right sides if it's shorter than `length`.
     * Padding characters are truncated if they can't be evenly divided by `length`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to pad.
     * @param {number} [length=0] The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padded string.
     * @example
     *
     * _.pad('abc', 8);
     * // => '  abc   '
     *
     * _.pad('abc', 8, '_-');
     * // => '_-abc_-_'
     *
     * _.pad('abc', 3);
     * // => 'abc'
     */

/**
     * Pads `string` on the left side if it's shorter than `length`. Padding
     * characters are truncated if they exceed `length`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to pad.
     * @param {number} [length=0] The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padded string.
     * @example
     *
     * _.padStart('abc', 6);
     * // => '   abc'
     *
     * _.padStart('abc', 6, '_-');
     * // => '_-_abc'
     *
     * _.padStart('abc', 3);
     * // => 'abc'
     */

/**
     * Pads `string` on the right side if it's shorter than `length`. Padding
     * characters are truncated if they exceed `length`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to pad.
     * @param {number} [length=0] The padding length.
     * @param {string} [chars=' '] The string used as padding.
     * @returns {string} Returns the padded string.
     * @example
     *
     * _.padEnd('abc', 6);
     * // => 'abc   '
     *
     * _.padEnd('abc', 6, '_-');
     * // => 'abc_-_'
     *
     * _.padEnd('abc', 3);
     * // => 'abc'
     */

/**
     * Path of a file (used throughout the `VFile` ecosystem).
     *
     * @type {string | null}
     */

/**
     * Performs a
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * comparison between two values to determine if they are equivalent.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     * @example
     *
     * var object = { 'a': 1 };
     * var other = { 'a': 1 };
     *
     * _.eq(object, object);
     * // => true
     *
     * _.eq(object, other);
     * // => false
     *
     * _.eq('a', 'a');
     * // => true
     *
     * _.eq('a', Object('a'));
     * // => false
     *
     * _.eq(NaN, NaN);
     * // => true
     */

/**
     * Performs a deep comparison between two values to determine if they are
     * equivalent.
     *
     * **Note:** This method supports comparing arrays, array buffers, booleans,
     * date objects, error objects, maps, numbers, `Object` objects, regexes,
     * sets, strings, symbols, and typed arrays. `Object` objects are compared
     * by their own, not inherited, enumerable properties. Functions and DOM
     * nodes are compared by strict equality, i.e. `===`.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     * @example
     *
     * var object = { 'a': 1 };
     * var other = { 'a': 1 };
     *
     * _.isEqual(object, other);
     * // => true
     *
     * object === other;
     * // => false
     */

/**
     * Performs a partial deep comparison between `object` and `source` to
     * determine if `object` contains equivalent property values.
     *
     * **Note:** This method is equivalent to `_.matches` when `source` is
     * partially applied.
     *
     * Partial comparisons will match empty array and empty object `source`
     * values against any array or object value, respectively. See `_.isEqual`
     * for a list of supported value comparisons.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Lang
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property values to match.
     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
     * @example
     *
     * var object = { 'a': 1, 'b': 2 };
     *
     * _.isMatch(object, { 'b': 2 });
     * // => true
     *
     * _.isMatch(object, { 'b': 1 });
     * // => false
     */

/**
     * Place to store custom information (default: `{}`).
     *
     * It’s OK to store custom data directly on the file but moving it to
     * `data` is recommended.
     *
     * @type {Data}
     */

/**
     * PopupTrigger is only used for vertical and horizontal types.
     * When collapsed is unfolded, the inline animation will destroy the vertical animation.
     */

/**
     * Produces a random number between the inclusive `lower` and `upper` bounds.
     * If only one argument is provided a number between `0` and the given number
     * is returned. If `floating` is `true`, or either `lower` or `upper` are
     * floats, a floating-point number is returned instead of an integer.
     *
     * **Note:** JavaScript follows the IEEE-754 standard for resolving
     * floating-point values which can produce unexpected results.
     *
     * @static
     * @memberOf _
     * @since 0.7.0
     * @category Number
     * @param {number} [lower=0] The lower bound.
     * @param {number} [upper=1] The upper bound.
     * @param {boolean} [floating] Specify returning a floating-point number.
     * @returns {number} Returns the random number.
     * @example
     *
     * _.random(0, 5);
     * // => an integer between 0 and 5
     *
     * _.random(5);
     * // => also an integer between 0 and 5
     *
     * _.random(5, true);
     * // => a floating-point number between 0 and 5
     *
     * _.random(1.2, 5.2);
     * // => a floating-point number between 1.2 and 5.2
     */

/**
     * Prompt the Scheduler to execute all of its queued actions, therefore
     * clearing its queue.
     * @return {void}
     */

/**
     * Raw value.
     *
     * @type {Value}
     */

/**
     * React will skip `onChange` when component update.
     * `setActive` function will call root accessibility state update which makes re-render.
     * So we need to delay to let Input component trigger onChange first.
     */

/**
     * Reason for message.
     *
     * > 👉 **Note**: you should use markdown.
     *
     * @type {string}
     */

/**
     * Reason for message.
     *
     * @type {string}
     */

/**
     * Recursively flatten `array` up to `depth` times.
     *
     * @static
     * @memberOf _
     * @since 4.4.0
     * @category Array
     * @param {Array} array The array to flatten.
     * @param {number} [depth=1] The maximum recursion depth.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * var array = [1, [2, [3, [4]], 5]];
     *
     * _.flattenDepth(array, 1);
     * // => [1, 2, [3, [4]], 5]
     *
     * _.flattenDepth(array, 2);
     * // => [1, 2, 3, [4], 5]
     */

/**
     * Recursively flattens `array`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to flatten.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * _.flattenDeep([1, [2, [3, [4]], 5]]);
     * // => [1, 2, 3, 4, 5]
     */

/**
     * Reduces `collection` to a value which is the accumulated result of running
     * each element in `collection` thru `iteratee`, where each successive
     * invocation is supplied the return value of the previous. If `accumulator`
     * is not given, the first element of `collection` is used as the initial
     * value. The iteratee is invoked with four arguments:
     * (accumulator, value, index|key, collection).
     *
     * Many lodash methods are guarded to work as iteratees for methods like
     * `_.reduce`, `_.reduceRight`, and `_.transform`.
     *
     * The guarded methods are:
     * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
     * and `sortBy`
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {*} [accumulator] The initial value.
     * @returns {*} Returns the accumulated value.
     * @see _.reduceRight
     * @example
     *
     * _.reduce([1, 2], function(sum, n) {
     *   return sum + n;
     * }, 0);
     * // => 3
     *
     * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
     *   (result[value] || (result[value] = [])).push(key);
     *   return result;
     * }, {});
     * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
     */

/**
     * Registers a handler for the given media query
     *
     * @param {string} q the media query
     * @param {object || Array || Function} options either a single query handler object, a function, or an array of query handlers
     * @param {function} options.match fired when query matched
     * @param {function} [options.unmatch] fired when a query is no longer matched
     * @param {function} [options.setup] fired when handler first triggered
     * @param {boolean} [options.deferSetup=false] whether setup should be run immediately or deferred until query is first matched
     * @param {boolean} [shouldDegrade=false] whether this particular media query should always run on incapable browsers
     */

/**
     * Removes `key` and its value from the hash.
     *
     * @private
     * @name delete
     * @memberOf Hash
     * @param {Object} hash The hash to modify.
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */

/**
     * Removes `key` and its value from the list cache.
     *
     * @private
     * @name delete
     * @memberOf ListCache
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */

/**
     * Removes `key` and its value from the map.
     *
     * @private
     * @name delete
     * @memberOf MapCache
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */

/**
     * Removes `key` and its value from the stack.
     *
     * @private
     * @name delete
     * @memberOf Stack
     * @param {string} key The key of the value to remove.
     * @returns {boolean} Returns `true` if the entry was removed, else `false`.
     */

/**
     * Removes a Subscription from the internal list of subscriptions that will
     * unsubscribe during the unsubscribe process of this Subscription.
     * @param {Subscription} subscription The subscription to remove.
     * @return {void}
     */

/**
     * Removes a listener function from the specified event.
     * When passed a regular expression as the event name, it will remove the listener from all events that match it.
     *
     * @param {String|RegExp} evt Name of the event to remove the listener from.
     * @param {Function} listener Method to remove from the event.
     * @return {Object} Current instance of EventEmitter for chaining.
     */

/**
     * Removes all elements from `array` that `predicate` returns truthy for
     * and returns an array of the removed elements. The predicate is invoked
     * with three arguments: (value, index, array).
     *
     * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`
     * to pull elements from an array by value.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new array of removed elements.
     * @example
     *
     * var array = [1, 2, 3, 4];
     * var evens = _.remove(array, function(n) {
     *   return n % 2 == 0;
     * });
     *
     * console.log(array);
     * // => [1, 3]
     *
     * console.log(evens);
     * // => [2, 4]
     */

/**
     * Removes all given values from `array` using
     * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
     * for equality comparisons.
     *
     * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`
     * to remove elements from an array by predicate.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {...*} [values] The values to remove.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
     *
     * _.pull(array, 'a', 'c');
     * console.log(array);
     * // => ['b', 'b']
     */

/**
     * Removes all key-value entries from the hash.
     *
     * @private
     * @name clear
     * @memberOf Hash
     */

/**
     * Removes all key-value entries from the list cache.
     *
     * @private
     * @name clear
     * @memberOf ListCache
     */

/**
     * Removes all key-value entries from the map.
     *
     * @private
     * @name clear
     * @memberOf MapCache
     */

/**
     * Removes all key-value entries from the stack.
     *
     * @private
     * @name clear
     * @memberOf Stack
     */

/**
     * Removes all listeners from a specified event.
     * If you do not specify an event then all listeners will be removed.
     * That means every event will be emptied.
     * You can also pass a regex to remove all events that match it.
     *
     * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.
     * @return {Object} Current instance of EventEmitter for chaining.
     */

/**
     * Removes elements from `array` corresponding to `indexes` and returns an
     * array of removed elements.
     *
     * **Note:** Unlike `_.at`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {...(number|number[])} [indexes] The indexes of elements to remove.
     * @returns {Array} Returns the new array of removed elements.
     * @example
     *
     * var array = ['a', 'b', 'c', 'd'];
     * var pulled = _.pullAt(array, [1, 3]);
     *
     * console.log(array);
     * // => ['a', 'c']
     *
     * console.log(pulled);
     * // => ['b', 'd']
     */

/**
     * Removes leading and trailing whitespace or specified characters from `string`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to trim.
     * @param {string} [chars=whitespace] The characters to trim.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the trimmed string.
     * @example
     *
     * _.trim('  abc  ');
     * // => 'abc'
     *
     * _.trim('-_-abc-_-', '_-');
     * // => 'abc'
     *
     * _.map(['  foo  ', '  bar  '], _.trim);
     * // => ['foo', 'bar']
     */

/**
     * Removes leading whitespace or specified characters from `string`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to trim.
     * @param {string} [chars=whitespace] The characters to trim.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the trimmed string.
     * @example
     *
     * _.trimStart('  abc  ');
     * // => 'abc  '
     *
     * _.trimStart('-_-abc-_-', '_-');
     * // => 'abc-_-'
     */

/**
     * Removes listeners in bulk using the manipulateListeners method.
     * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.
     * You can also pass it an event name and an array of listeners to be removed.
     * You can also pass it a regular expression to remove the listeners from all events that match it.
     *
     * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.
     * @param {Function[]} [listeners] An optional array of listener functions to remove.
     * @return {Object} Current instance of EventEmitter for chaining.
     */

/**
     * Removes the property at `path` of `object`.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to unset.
     * @returns {boolean} Returns `true` if the property is deleted, else `false`.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 7 } }] };
     * _.unset(object, 'a[0].b.c');
     * // => true
     *
     * console.log(object);
     * // => { 'a': [{ 'b': {} }] };
     *
     * _.unset(object, ['a', '0', 'b', 'c']);
     * // => true
     *
     * console.log(object);
     * // => { 'a': [{ 'b': {} }] };
     */

/**
     * Removes trailing whitespace or specified characters from `string`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to trim.
     * @param {string} [chars=whitespace] The characters to trim.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the trimmed string.
     * @example
     *
     * _.trimEnd('  abc  ');
     * // => '  abc'
     *
     * _.trimEnd('-_-abc-_-', '_-');
     * // => '-_-abc'
     */

/**
     * Reorder `array` according to the specified indexes where the element at
     * the first index is assigned as the first element, the element at
     * the second index is assigned as the second element, and so on.
     *
     * @private
     * @param {Array} array The array to reorder.
     * @param {Array} indexes The arranged array indexes.
     * @returns {Array} Returns `array`.
     */

/**
     * Repeats the given string `n` times.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to repeat.
     * @param {number} [n=1] The number of times to repeat the string.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {string} Returns the repeated string.
     * @example
     *
     * _.repeat('*', 3);
     * // => '***'
     *
     * _.repeat('abc', 2);
     * // => 'abcabc'
     *
     * _.repeat('abc', 0);
     * // => ''
     */

/**
     * Replaces matches for `pattern` in `string` with `replacement`.
     *
     * **Note:** This method is based on
     * [`String#replace`](https://mdn.io/String/replace).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to modify.
     * @param {RegExp|string} pattern The pattern to replace.
     * @param {Function|string} replacement The match replacement.
     * @returns {string} Returns the modified string.
     * @example
     *
     * _.replace('Hi Fred', 'Fred', 'Barney');
     * // => 'Hi Barney'
     */

/**
     * Restore state.
     *
     * @returns {void}
     */

/**
     * Return a human readable representation of a moment that can
     * also be evaluated to get a new moment which is the same
     *
     * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
     */

/**
     * Returns a simple Observable that just delivers the notification represented
     * by this Notification instance.
     * @return {any}
     */

/**
     * Returns an array of possible slider points, taking into account both
     * `marks` and `step`. The result is cached.
     */

/**
     * Returns index in provided array that matches the specified key.
     *
     * @param {Array<Array>} arr
     * @param {*} key
     * @returns {number}
     */

/**
     * Returns the RGBA relative values interpolated into a string
     */

/**
     * Returns the RGBA values interpolated into a string with the following format:
     * "RGBA(xxx, xxx, xxx, xx)".
     */

/**
     * Returns the alpha value of a color, from 0-1.
     */

/**
     * Returns the hex 8 value of the color -with a # prefixed.
     * @param allow4Char will shorten hex value to 4 char if possible
     */

/**
     * Returns the hex 8 value of the color.
     * @param allow4Char will shorten hex value to 4 char if possible
     */

/**
     * Returns the hex value of the color -with a # prefixed.
     * @param allow3Char will shorten hex value to 3 char if possible
     */

/**
     * Returns the hex value of the color.
     * @param allow3Char will shorten hex value to 3 char if possible
     */

/**
     * Returns the hsla values interpolated into a string with the following format:
     * "hsla(xxx, xxx, xxx, xx)".
     */

/**
     * Returns the hsva values interpolated into a string with the following format:
     * "hsva(xxx, xxx, xxx, xx)".
     */

/**
     * Returns the listener array for the specified event.
     * Will initialise the event object and listener arrays if required.
     * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.
     * Each property in the object response is an array of listener functions.
     *
     * @param {String|RegExp} evt Name of the event to return the listeners from.
     * @return {Function[]|Object} All listener functions for the event.
     */

/**
     * Returns the object as a HSLA object.
     */

/**
     * Returns the object as a HSVA object.
     */

/**
     * Returns the object as a RGBA object.
     */

/**
     * Returns the perceived brightness of the color, from 0-255.
     */

/**
     * Returns the perceived luminance of a color, from 0-1.
     */

/**
     * Returns the shorter hex value of the color depends on its alpha -with a # prefixed.
     * @param allowShortChar will shorten hex value to 3 or 4 char if possible
     */

/**
     * Returns whether the color is monochrome.
     */

/**
     * Reverses `array` so that the first element becomes the last, the second
     * element becomes the second to last, and so on.
     *
     * **Note:** This method mutates `array` and is based on
     * [`Array#reverse`](https://mdn.io/Array/reverse).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [1, 2, 3];
     *
     * _.reverse(array);
     * // => [3, 2, 1]
     *
     * console.log(array);
     * // => [3, 2, 1]
     */

/**
     * Reverses the direction of lazy iteration.
     *
     * @private
     * @name reverse
     * @memberOf LazyWrapper
     * @returns {Object} Returns the new reversed `LazyWrapper` object.
     */

/**
     * Reverts the `_` variable to its previous value and returns a reference to
     * the `lodash` function.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @returns {Function} Returns the `lodash` function.
     * @example
     *
     * var lodash = _.noConflict();
     */

/**
     * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.
     *
     * @return {Function} Non conflicting EventEmitter class.
     */

/**
     * Run the next `fn`, or we’re done.
     *
     * @param {Error|null|undefined} error
     * @param {Array<any>} output
     */

/**
     * Saturate the color a given amount, from 0 to 100.
     * @param amount - valid between 1-100
     */

/**
     * Schedules a function, `work`, for execution. May happen at some point in
     * the future, according to the `delay` parameter, if specified. May be passed
     * some context object, `state`, which will be passed to the `work` function.
     *
     * The given arguments will be processed an stored as an Action object in a
     * queue of actions.
     *
     * @param {function(state: ?T): ?Subscription} work A function representing a
     * task, or some unit of work to be executed by the Scheduler.
     * @param {number} [delay] Time to wait before executing the work, where the
     * time unit is implicit and defined by the Scheduler itself.
     * @param {T} [state] Some contextual data that the `work` function uses when
     * called by the Scheduler.
     * @return {Subscription} A subscription in order to be able to unsubscribe
     * the scheduled work.
     */

/**
     * Schedules invocation of the original function.
     *
     * @returns {void}
     */

/**
     * Schedules this action on its parent Scheduler for execution. May be passed
     * some context object, `state`. May happen at some point in the future,
     * according to the `delay` parameter, if specified.
     * @param {T} [state] Some contextual data that the `work` function uses when
     * called by the Scheduler.
     * @param {number} [delay] Time to wait before executing the work, where the
     * time unit is implicit and defined by the Scheduler.
     * @return {void}
     */

/**
     * Semi-alias of addListener. It will add a listener that will be
     * automatically removed after its first execution.
     *
     * @param {String|RegExp} evt Name of the event to attach the listener to.
     * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.
     * @return {Object} Current instance of EventEmitter for chaining.
     */

/**
     * Serialized positional info of error.
     *
     * On normal errors, this would be something like `ParseError`, buit in
     * `VFile` messages we use this space to show where an error happened.
     */

/**
     * Sets metadata for `func`.
     *
     * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
     * period of time, it will trip its breaker and transition to an identity
     * function to avoid garbage collection pauses in V8. See
     * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
     * for more details.
     *
     * @private
     * @param {Function} func The function to associate metadata with.
     * @param {*} data The metadata.
     * @returns {Function} Returns `func`.
     */

/**
     * Sets the `toString` method of `wrapper` to mimic the source of `reference`
     * with wrapper details in a comment at the top of the source body.
     *
     * @private
     * @param {Function} wrapper The function to modify.
     * @param {Function} reference The reference function.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @returns {Function} Returns `wrapper`.
     */

/**
     * Sets the alpha value on the current color.
     *
     * @param alpha - The new alpha value. The accepted range is 0-1.
     */

/**
     * Sets the current value to check against when executing listeners. If a
     * listeners return value matches the one set here then it will be removed
     * after execution. This value defaults to true.
     *
     * @param {*} value The new value to check for when executing listeners.
     * @return {Object} Current instance of EventEmitter for chaining.
     */

/**
     * Sets the hash `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf Hash
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the hash instance.
     */

/**
     * Sets the list cache `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf ListCache
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the list cache instance.
     */

/**
     * Sets the map `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf MapCache
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the map cache instance.
     */

/**
     * Sets the stack `key` to `value`.
     *
     * @private
     * @name set
     * @memberOf Stack
     * @param {string} key The key of the value to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns the stack cache instance.
     */

/**
     * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
     * it's created. Arrays are created for missing index properties while objects
     * are created for all other missing properties. Use `_.setWith` to customize
     * `path` creation.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {*} value The value to set.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
     *
     * _.set(object, 'a[0].b.c', 4);
     * console.log(object.a[0].b.c);
     * // => 4
     *
     * _.set(object, ['x', '0', 'y', 'z'], 5);
     * console.log(object.x[0].y.z);
     * // => 5
     */

/**
     * Shows tooltip
     * @param point
     */

/**
     * Source map.
     *
     * This type is equivalent to the `RawSourceMap` type from the `source-map`
     * module.
     *
     * @type {Map | null | undefined}
     */

/**
     * Specify the source value that’s being reported, which is deemed
     * incorrect.
     *
     * @type {string | null}
     */

/**
     * Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.
     * Values outside of this range will be wrapped into this range.
     */

/**
     * Splits `string` by `separator`.
     *
     * **Note:** This method is based on
     * [`String#split`](https://mdn.io/String/split).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to split.
     * @param {RegExp|string} separator The separator pattern to split by.
     * @param {number} [limit] The length to truncate results to.
     * @returns {Array} Returns the string segments.
     * @example
     *
     * _.split('a-b-c', '-', 2);
     * // => ['a', 'b']
     */

/**
     * Splits `string` into an array of its words.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category String
     * @param {string} [string=''] The string to inspect.
     * @param {RegExp|string} [pattern] The pattern to match words.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Array} Returns the words of `string`.
     * @example
     *
     * _.words('fred, barney, & pebbles');
     * // => ['fred', 'barney', 'pebbles']
     *
     * _.words('fred, barney, & pebbles', /[^, ]+/g);
     * // => ['fred', 'barney', '&', 'pebbles']
     */

/**
     * Stack of message.
     *
     * This is used by normal errors to show where something happened in
     * programming code, irrelevant for `VFile` messages,
     *
     * @type {string}
     */

/**
     * Starting column of error.
     *
     * @type {number | null}
     */

/**
     * Starting line of error.
     *
     * @type {number | null}
     */

/**
     * State of problem.
     *
     * * `true` — marks associated file as no longer processable (error)
     * * `false` — necessitates a (potential) change (warning)
     * * `null | undefined` — for things that might not need changing (info)
     *
     * @type {boolean | null | undefined}
     */

/**
     * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.
     * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.
     *
     * @param {String|RegExp} evt Name of the event to emit and execute listeners for.
     * @param {...*} Optional additional arguments to be passed to each listener.
     * @return {Object} Current instance of EventEmitter for chaining.
     */

/**
     * Suggest acceptable values that can be used instead of `actual`.
     *
     * @type {Array<string> | null}
     */

/**
     * Takes a list of listener objects and flattens it into a list of listener functions.
     *
     * @param {Object[]} listeners Raw listener objects.
     * @return {Function[]} Just the listener functions.
     */

/**
     * Takes an Observer or its individual callback functions, and calls `observe`
     * or `do` methods accordingly.
     * @param {Observer|function(value: T): void} nextOrObserver An Observer or
     * the `next` callback.
     * @param {function(err: any): void} [error] An Observer `error` callback.
     * @param {function(): void} [complete] An Observer `complete` callback.
     * @return {any}
     */

/**
     * The 'real' name of the color -if there is one.
     */

/**
     * The base constructor for creating `lodash` wrapper objects.
     *
     * @private
     * @param {*} value The value to wrap.
     * @param {boolean} [chainAll] Enable explicit method chain sequences.
     */

/**
     * The base implementation of  `_.pickBy` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The source object.
     * @param {string[]} paths The property paths to pick.
     * @param {Function} predicate The function invoked per property.
     * @returns {Object} Returns the new object.
     */

/**
     * The base implementation of `_.assignIn` without support for multiple sources
     * or `customizer` functions.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @returns {Object} Returns `object`.
     */

/**
     * The base implementation of `_.assign` without support for multiple sources
     * or `customizer` functions.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @returns {Object} Returns `object`.
     */

/**
     * The base implementation of `_.at` without support for individual paths.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {string[]} paths The property paths to pick.
     * @returns {Array} Returns the picked elements.
     */

/**
     * The base implementation of `_.clamp` which doesn't coerce arguments.
     *
     * @private
     * @param {number} number The number to clamp.
     * @param {number} [lower] The lower bound.
     * @param {number} upper The upper bound.
     * @returns {number} Returns the clamped number.
     */

/**
     * The base implementation of `_.clone` and `_.cloneDeep` which tracks
     * traversed objects.
     *
     * @private
     * @param {*} value The value to clone.
     * @param {boolean} bitmask The bitmask flags.
     *  1 - Deep clone
     *  2 - Flatten inherited properties
     *  4 - Clone symbols
     * @param {Function} [customizer] The function to customize cloning.
     * @param {string} [key] The key of `value`.
     * @param {Object} [object] The parent object of `value`.
     * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
     * @returns {*} Returns the cloned value.
     */

/**
     * The base implementation of `_.conformsTo` which accepts `props` to check.
     *
     * @private
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property predicates to conform to.
     * @returns {boolean} Returns `true` if `object` conforms, else `false`.
     */

/**
     * The base implementation of `_.conforms` which doesn't clone `source`.
     *
     * @private
     * @param {Object} source The object of property predicates to conform to.
     * @returns {Function} Returns the new spec function.
     */

/**
     * The base implementation of `_.create` without support for assigning
     * properties to the created object.
     *
     * @private
     * @param {Object} proto The object to inherit from.
     * @returns {Object} Returns the new object.
     */

/**
     * The base implementation of `_.delay` and `_.defer` which accepts `args`
     * to provide to `func`.
     *
     * @private
     * @param {Function} func The function to delay.
     * @param {number} wait The number of milliseconds to delay invocation.
     * @param {Array} args The arguments to provide to `func`.
     * @returns {number|Object} Returns the timer id or timeout object.
     */

/**
     * The base implementation of `_.every` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} predicate The function invoked per iteration.
     * @returns {boolean} Returns `true` if all elements pass the predicate check,
     *  else `false`
     */

/**
     * The base implementation of `_.fill` without an iteratee call guard.
     *
     * @private
     * @param {Array} array The array to fill.
     * @param {*} value The value to fill `array` with.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns `array`.
     */

/**
     * The base implementation of `_.filter` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} predicate The function invoked per iteration.
     * @returns {Array} Returns the new filtered array.
     */

/**
     * The base implementation of `_.flatten` with support for restricting flattening.
     *
     * @private
     * @param {Array} array The array to flatten.
     * @param {number} depth The maximum recursion depth.
     * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
     * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
     * @param {Array} [result=[]] The initial result value.
     * @returns {Array} Returns the new flattened array.
     */

/**
     * The base implementation of `_.forEachRight` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     */

/**
     * The base implementation of `_.forEach` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     */

/**
     * The base implementation of `_.forOwnRight` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Object} Returns `object`.
     */

/**
     * The base implementation of `_.forOwn` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Object} Returns `object`.
     */

/**
     * The base implementation of `_.functions` which creates an array of
     * `object` function property names filtered from `props`.
     *
     * @private
     * @param {Object} object The object to inspect.
     * @param {Array} props The property names to filter.
     * @returns {Array} Returns the function names.
     */

/**
     * The base implementation of `_.get` without support for default values.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the property to get.
     * @returns {*} Returns the resolved value.
     */

/**
     * The base implementation of `_.gt` which doesn't coerce arguments.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is greater than `other`,
     *  else `false`.
     */

/**
     * The base implementation of `_.hasIn` without support for deep paths.
     *
     * @private
     * @param {Object} [object] The object to query.
     * @param {Array|string} key The key to check.
     * @returns {boolean} Returns `true` if `key` exists, else `false`.
     */

/**
     * The base implementation of `_.has` without support for deep paths.
     *
     * @private
     * @param {Object} [object] The object to query.
     * @param {Array|string} key The key to check.
     * @returns {boolean} Returns `true` if `key` exists, else `false`.
     */

/**
     * The base implementation of `_.inRange` which doesn't coerce arguments.
     *
     * @private
     * @param {number} number The number to check.
     * @param {number} start The start of the range.
     * @param {number} end The end of the range.
     * @returns {boolean} Returns `true` if `number` is in the range, else `false`.
     */

/**
     * The base implementation of `_.invert` and `_.invertBy` which inverts
     * `object` with values transformed by `iteratee` and set by `setter`.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} setter The function to set `accumulator` values.
     * @param {Function} iteratee The iteratee to transform values.
     * @param {Object} accumulator The initial inverted object.
     * @returns {Function} Returns `accumulator`.
     */

/**
     * The base implementation of `_.invoke` without support for individual
     * method arguments.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the method to invoke.
     * @param {Array} args The arguments to invoke the method with.
     * @returns {*} Returns the result of the invoked method.
     */

/**
     * The base implementation of `_.isArguments`.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an `arguments` object,
     */

/**
     * The base implementation of `_.isArrayBuffer` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
     */

/**
     * The base implementation of `_.isDate` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a date object, else `false`.
     */

/**
     * The base implementation of `_.isEqual` which supports partial comparisons
     * and tracks traversed objects.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @param {boolean} bitmask The bitmask flags.
     *  1 - Unordered comparison
     *  2 - Partial comparison
     * @param {Function} [customizer] The function to customize comparisons.
     * @param {Object} [stack] Tracks traversed `value` and `other` objects.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     */

/**
     * The base implementation of `_.isMap` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a map, else `false`.
     */

/**
     * The base implementation of `_.isMatch` without support for iteratee shorthands.
     *
     * @private
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property values to match.
     * @param {Array} matchData The property names, values, and compare flags to match.
     * @param {Function} [customizer] The function to customize comparisons.
     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
     */

/**
     * The base implementation of `_.isNative` without bad shim checks.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a native function,
     *  else `false`.
     */

/**
     * The base implementation of `_.isRegExp` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
     */

/**
     * The base implementation of `_.isSet` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a set, else `false`.
     */

/**
     * The base implementation of `_.isTypedArray` without Node.js optimizations.
     *
     * @private
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
     */

/**
     * The base implementation of `_.iteratee`.
     *
     * @private
     * @param {*} [value=_.identity] The value to convert to an iteratee.
     * @returns {Function} Returns the iteratee.
     */

/**
     * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     */

/**
     * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     */

/**
     * The base implementation of `_.lt` which doesn't coerce arguments.
     *
     * @private
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @returns {boolean} Returns `true` if `value` is less than `other`,
     *  else `false`.
     */

/**
     * The base implementation of `_.map` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @returns {Array} Returns the new mapped array.
     */

/**
     * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
     *
     * @private
     * @param {string} path The path of the property to get.
     * @param {*} srcValue The value to match.
     * @returns {Function} Returns the new spec function.
     */

/**
     * The base implementation of `_.matches` which doesn't clone `source`.
     *
     * @private
     * @param {Object} source The object of property values to match.
     * @returns {Function} Returns the new spec function.
     */

/**
     * The base implementation of `_.merge` without support for multiple sources.
     *
     * @private
     * @param {Object} object The destination object.
     * @param {Object} source The source object.
     * @param {number} srcIndex The index of `source`.
     * @param {Function} [customizer] The function to customize merged values.
     * @param {Object} [stack] Tracks traversed source values and their merged
     *  counterparts.
     */

/**
     * The base implementation of `_.nth` which doesn't coerce arguments.
     *
     * @private
     * @param {Array} array The array to query.
     * @param {number} n The index of the element to return.
     * @returns {*} Returns the nth element of `array`.
     */

/**
     * The base implementation of `_.orderBy` without param guards.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
     * @param {string[]} orders The sort orders of `iteratees`.
     * @returns {Array} Returns the new sorted array.
     */

/**
     * The base implementation of `_.pick` without support for individual
     * property identifiers.
     *
     * @private
     * @param {Object} object The source object.
     * @param {string[]} paths The property paths to pick.
     * @returns {Object} Returns the new object.
     */

/**
     * The base implementation of `_.pullAllBy` without support for iteratee
     * shorthands.
     *
     * @private
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns `array`.
     */

/**
     * The base implementation of `_.pullAt` without support for individual
     * indexes or capturing the removed elements.
     *
     * @private
     * @param {Array} array The array to modify.
     * @param {number[]} indexes The indexes of elements to remove.
     * @returns {Array} Returns `array`.
     */

/**
     * The base implementation of `_.random` without support for returning
     * floating-point numbers.
     *
     * @private
     * @param {number} lower The lower bound.
     * @param {number} upper The upper bound.
     * @returns {number} Returns the random number.
     */

/**
     * The base implementation of `_.range` and `_.rangeRight` which doesn't
     * coerce arguments.
     *
     * @private
     * @param {number} start The start of the range.
     * @param {number} end The end of the range.
     * @param {number} step The value to increment or decrement by.
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Array} Returns the range of numbers.
     */

/**
     * The base implementation of `_.repeat` which doesn't coerce arguments.
     *
     * @private
     * @param {string} string The string to repeat.
     * @param {number} n The number of times to repeat the string.
     * @returns {string} Returns the repeated string.
     */

/**
     * The base implementation of `_.rest` which doesn't validate or coerce arguments.
     *
     * @private
     * @param {Function} func The function to apply a rest parameter to.
     * @param {number} [start=func.length-1] The start position of the rest parameter.
     * @returns {Function} Returns the new function.
     */

/**
     * The base implementation of `_.sampleSize` without param guards.
     *
     * @private
     * @param {Array|Object} collection The collection to sample.
     * @param {number} n The number of elements to sample.
     * @returns {Array} Returns the random elements.
     */

/**
     * The base implementation of `_.sample`.
     *
     * @private
     * @param {Array|Object} collection The collection to sample.
     * @returns {*} Returns the random element.
     */

/**
     * The base implementation of `_.set`.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {*} value The value to set.
     * @param {Function} [customizer] The function to customize path creation.
     * @returns {Object} Returns `object`.
     */

/**
     * The base implementation of `_.shuffle`.
     *
     * @private
     * @param {Array|Object} collection The collection to shuffle.
     * @returns {Array} Returns the new shuffled array.
     */

/**
     * The base implementation of `_.slice` without an iteratee call guard.
     *
     * @private
     * @param {Array} array The array to slice.
     * @param {number} [start=0] The start position.
     * @param {number} [end=array.length] The end position.
     * @returns {Array} Returns the slice of `array`.
     */

/**
     * The base implementation of `_.some` without support for iteratee shorthands.
     *
     * @private
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} predicate The function invoked per iteration.
     * @returns {boolean} Returns `true` if any element passes the predicate check,
     *  else `false`.
     */

/**
     * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`
     * which invokes `iteratee` for `value` and each element of `array` to compute
     * their sort ranking. The iteratee is invoked with one argument; (value).
     *
     * @private
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {Function} iteratee The iteratee invoked per element.
     * @param {boolean} [retHighest] Specify returning the highest qualified index.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     */

/**
     * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which
     * performs a binary search of `array` to determine the index at which `value`
     * should be inserted into `array` in order to maintain its sort order.
     *
     * @private
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {boolean} [retHighest] Specify returning the highest qualified index.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     */

/**
     * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without
     * support for iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     */

/**
     * The base implementation of `_.toNumber` which doesn't ensure correct
     * conversions of binary, hexadecimal, or octal string values.
     *
     * @private
     * @param {*} value The value to process.
     * @returns {number} Returns the number.
     */

/**
     * The base implementation of `_.toString` which doesn't convert nullish
     * values to empty strings.
     *
     * @private
     * @param {*} value The value to process.
     * @returns {string} Returns the string.
     */

/**
     * The base implementation of `_.uniqBy` without support for iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     */

/**
     * The base implementation of `_.unset`.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {Array|string} path The property path to unset.
     * @returns {boolean} Returns `true` if the property is deleted, else `false`.
     */

/**
     * The base implementation of `_.update`.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to update.
     * @param {Function} updater The function to produce the updated value.
     * @param {Function} [customizer] The function to customize path creation.
     * @returns {Object} Returns `object`.
     */

/**
     * The base implementation of `assignValue` and `assignMergeValue` without
     * value checks.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {string} key The key of the property to assign.
     * @param {*} value The value to assign.
     */

/**
     * The base implementation of `baseForOwn` which iterates over `object`
     * properties returned by `keysFunc` and invokes `iteratee` for each property.
     * Iteratee functions may exit iteration early by explicitly returning `false`.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @param {Function} keysFunc The function to get the keys of `object`.
     * @returns {Object} Returns `object`.
     */

/**
     * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
     * `keysFunc` and `symbolsFunc` to get the enumerable property names and
     * symbols of `object`.
     *
     * @private
     * @param {Object} object The object to query.
     * @param {Function} keysFunc The function to get the keys of `object`.
     * @param {Function} symbolsFunc The function to get the symbols of `object`.
     * @returns {Array} Returns the array of property names and symbols.
     */

/**
     * The base implementation of `getTag` without fallbacks for buggy environments.
     *
     * @private
     * @param {*} value The value to query.
     * @returns {string} Returns the `toStringTag`.
     */

/**
     * The base implementation of `setData` without support for hot loop shorting.
     *
     * @private
     * @param {Function} func The function to associate metadata with.
     * @param {*} data The metadata.
     * @returns {Function} Returns `func`.
     */

/**
     * The base implementation of `setToString` without support for hot loop shorting.
     *
     * @private
     * @param {Function} func The function to modify.
     * @param {Function} string The `toString` result.
     * @returns {Function} Returns `func`.
     */

/**
     * The base implementation of `wrapperValue` which returns the result of
     * performing a sequence of actions on the unwrapped `value`, where each
     * successive action is supplied the return value of the previous.
     *
     * @private
     * @param {*} value The unwrapped value.
     * @param {Array} actions Actions to perform to resolve the unwrapped value.
     * @returns {*} Returns the resolved value.
     */

/**
     * The base implementation of methods like `_.difference` without support
     * for excluding multiple arrays or iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to inspect.
     * @param {Array} values The values to exclude.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     */

/**
     * The base implementation of methods like `_.dropWhile` and `_.takeWhile`
     * without support for iteratee shorthands.
     *
     * @private
     * @param {Array} array The array to query.
     * @param {Function} predicate The function invoked per iteration.
     * @param {boolean} [isDrop] Specify dropping elements instead of taking them.
     * @param {boolean} [fromRight] Specify iterating from right to left.
     * @returns {Array} Returns the slice of `array`.
     */

/**
     * The base implementation of methods like `_.intersection`, without support
     * for iteratee shorthands, that accepts an array of arrays to inspect.
     *
     * @private
     * @param {Array} arrays The arrays to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of shared values.
     */

/**
     * The base implementation of methods like `_.max` and `_.min` which accepts a
     * `comparator` to determine the extremum value.
     *
     * @private
     * @param {Array} array The array to iterate over.
     * @param {Function} iteratee The iteratee invoked per iteration.
     * @param {Function} comparator The comparator used to compare values.
     * @returns {*} Returns the extremum value.
     */

/**
     * The base implementation of methods like `_.xor`, without support for
     * iteratee shorthands, that accepts an array of arrays to inspect.
     *
     * @private
     * @param {Array} arrays The arrays to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new array of values.
     */

/**
     * The function whose prototype chain sequence wrappers inherit from.
     *
     * @private
     */

/**
     * The inverse of `_.escape`; this method converts the HTML entities
     * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
     * their corresponding characters.
     *
     * **Note:** No other HTML entities are unescaped. To unescape additional
     * HTML entities use a third-party library like [_he_](https://mths.be/he).
     *
     * @static
     * @memberOf _
     * @since 0.6.0
     * @category String
     * @param {string} [string=''] The string to unescape.
     * @returns {string} Returns the unescaped string.
     * @example
     *
     * _.unescape('fred, barney, &amp; pebbles');
     * // => 'fred, barney, & pebbles'
     */

/**
     * The inverse of `_.toPairs`; this method returns an object composed
     * from key-value `pairs`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} pairs The key-value pairs.
     * @returns {Object} Returns the new object.
     * @example
     *
     * _.fromPairs([['a', 1], ['b', 2]]);
     * // => { 'a': 1, 'b': 2 }
     */

/**
     * The opposite of `_.before`; this method creates a function that invokes
     * `func` once it's called `n` or more times.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Function
     * @param {number} n The number of calls before `func` is invoked.
     * @param {Function} func The function to restrict.
     * @returns {Function} Returns the new restricted function.
     * @example
     *
     * var saves = ['profile', 'settings'];
     *
     * var done = _.after(saves.length, function() {
     *   console.log('done saving!');
     * });
     *
     * _.forEach(saves, function(type) {
     *   asyncSave({ 'type': type, 'complete': done });
     * });
     * // => Logs 'done saving!' after the two async saves have completed.
     */

/**
     * The opposite of `_.filter`; this method returns the elements of `collection`
     * that `predicate` does **not** return truthy for.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new filtered array.
     * @see _.filter
     * @example
     *
     * var users = [
     *   { 'user': 'barney', 'age': 36, 'active': false },
     *   { 'user': 'fred',   'age': 40, 'active': true }
     * ];
     *
     * _.reject(users, function(o) { return !o.active; });
     * // => objects for ['fred']
     *
     * // The `_.matches` iteratee shorthand.
     * _.reject(users, { 'age': 40, 'active': true });
     * // => objects for ['barney']
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.reject(users, ['active', false]);
     * // => objects for ['fred']
     *
     * // The `_.property` iteratee shorthand.
     * _.reject(users, 'active');
     * // => objects for ['barney']
     */

/**
     * The opposite of `_.mapValues`; this method creates an object with the
     * same values as `object` and keys generated by running each own enumerable
     * string keyed property of `object` thru `iteratee`. The iteratee is invoked
     * with three arguments: (value, key, object).
     *
     * @static
     * @memberOf _
     * @since 3.8.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns the new mapped object.
     * @see _.mapValues
     * @example
     *
     * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
     *   return key + value;
     * });
     * // => { 'a1': 1, 'b2': 2 }
     */

/**
     * The opposite of `_.method`; this method creates a function that invokes
     * the method at a given path of `object`. Any additional arguments are
     * provided to the invoked method.
     *
     * @static
     * @memberOf _
     * @since 3.7.0
     * @category Util
     * @param {Object} object The object to query.
     * @param {...*} [args] The arguments to invoke the method with.
     * @returns {Function} Returns the new invoker function.
     * @example
     *
     * var array = _.times(3, _.constant),
     *     object = { 'a': array, 'b': array, 'c': array };
     *
     * _.map(['a[2]', 'c[0]'], _.methodOf(object));
     * // => [2, 0]
     *
     * _.map([['a', '2'], ['c', '0']], _.methodOf(object));
     * // => [2, 0]
     */

/**
     * The opposite of `_.pickBy`; this method creates an object composed of
     * the own and inherited enumerable string keyed properties of `object` that
     * `predicate` doesn't return truthy for. The predicate is invoked with two
     * arguments: (value, key).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The source object.
     * @param {Function} [predicate=_.identity] The function invoked per property.
     * @returns {Object} Returns the new object.
     * @example
     *
     * var object = { 'a': 1, 'b': '2', 'c': 3 };
     *
     * _.omitBy(object, _.isNumber);
     * // => { 'b': '2' }
     */

/**
     * The opposite of `_.property`; this method creates a function that returns
     * the value at a given path of `object`.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Util
     * @param {Object} object The object to query.
     * @returns {Function} Returns the new accessor function.
     * @example
     *
     * var array = [0, 1, 2],
     *     object = { 'a': array, 'b': array, 'c': array };
     *
     * _.map(['a[2]', 'c[0]'], _.propertyOf(object));
     * // => [2, 0]
     *
     * _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
     * // => [2, 0]
     */

/**
     * The semantic version number.
     *
     * @static
     * @memberOf _
     * @type {string}
     */

/**
     * The {@link Observer} callback to receive a valueless notification of type
     * `complete` from the Observable. Notifies the Observer that the Observable
     * has finished sending push-based notifications.
     * @return {void}
     */

/**
     * The {@link Observer} callback to receive notifications of type `error` from
     * the Observable, with an attached {@link Error}. Notifies the Observer that
     * the Observable has experienced an error condition.
     * @param {any} [err] The `error` exception.
     * @return {void}
     */

/**
     * The {@link Observer} callback to receive notifications of type `next` from
     * the Observable, with a value. The Observable may call this method 0 or more
     * times.
     * @param {T} [value] The `next` value.
     * @return {void}
     */

/**
     * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
     *
     * @private
     * @param {Array} props The property identifiers.
     * @param {Array} values The property values.
     * @param {Function} assignFunc The function to assign values.
     * @returns {Object} Returns the new object.
     */

/**
     * This function is like
     * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
     * except that it includes inherited enumerable properties.
     *
     * @private
     * @param {Object} object The object to query.
     * @returns {Array} Returns the array of property names.
     */

/**
     * This function is like `assignValue` except that it doesn't assign
     * `undefined` values.
     *
     * @private
     * @param {Object} object The object to modify.
     * @param {string} key The key of the property to assign.
     * @param {*} value The value to assign.
     */

/**
     * This function is like `baseFor` except that it iterates over properties
     * in the opposite order.
     *
     * @private
     * @param {Object} object The object to iterate over.
     * @param {Function} iteratee The function invoked per iteration.
     * @param {Function} keysFunc The function to get the keys of `object`.
     * @returns {Object} Returns `object`.
     */

/**
     * This function is like `composeArgs` except that the arguments composition
     * is tailored for `_.partialRight`.
     *
     * @private
     * @param {Array} args The provided arguments.
     * @param {Array} partials The arguments to append to those provided.
     * @param {Array} holders The `partials` placeholder indexes.
     * @params {boolean} [isCurried] Specify composing for a curried function.
     * @returns {Array} Returns the new array of composed arguments.
     */

/**
     * This method invokes `interceptor` and returns `value`. The interceptor
     * is invoked with one argument; (value). The purpose of this method is to
     * "tap into" a method chain sequence in order to modify intermediate results.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Seq
     * @param {*} value The value to provide to `interceptor`.
     * @param {Function} interceptor The function to invoke.
     * @returns {*} Returns `value`.
     * @example
     *
     * _([1, 2, 3])
     *  .tap(function(array) {
     *    // Mutate input array.
     *    array.pop();
     *  })
     *  .reverse()
     *  .value();
     * // => [2, 1]
     */

/**
     * This method is like `_.assign` except that it iterates over own and
     * inherited source properties.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @alias extend
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.assign
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     * }
     *
     * function Bar() {
     *   this.c = 3;
     * }
     *
     * Foo.prototype.b = 2;
     * Bar.prototype.d = 4;
     *
     * _.assignIn({ 'a': 0 }, new Foo, new Bar);
     * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
     */

/**
     * This method is like `_.assign` except that it recursively merges own and
     * inherited enumerable string keyed properties of source objects into the
     * destination object. Source properties that resolve to `undefined` are
     * skipped if a destination value exists. Array and plain object properties
     * are merged recursively. Other objects and value types are overridden by
     * assignment. Source objects are applied from left to right. Subsequent
     * sources overwrite property assignments of previous sources.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 0.5.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = {
     *   'a': [{ 'b': 2 }, { 'd': 4 }]
     * };
     *
     * var other = {
     *   'a': [{ 'c': 3 }, { 'e': 5 }]
     * };
     *
     * _.merge(object, other);
     * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
     */

/**
     * This method is like `_.cloneWith` except that it recursively clones `value`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to recursively clone.
     * @param {Function} [customizer] The function to customize cloning.
     * @returns {*} Returns the deep cloned value.
     * @see _.cloneWith
     * @example
     *
     * function customizer(value) {
     *   if (_.isElement(value)) {
     *     return value.cloneNode(true);
     *   }
     * }
     *
     * var el = _.cloneDeepWith(document.body, customizer);
     *
     * console.log(el === document.body);
     * // => false
     * console.log(el.nodeName);
     * // => 'BODY'
     * console.log(el.childNodes.length);
     * // => 20
     */

/**
     * This method is like `_.clone` except that it accepts `customizer` which
     * is invoked to produce the cloned value. If `customizer` returns `undefined`,
     * cloning is handled by the method instead. The `customizer` is invoked with
     * up to four arguments; (value [, index|key, object, stack]).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to clone.
     * @param {Function} [customizer] The function to customize cloning.
     * @returns {*} Returns the cloned value.
     * @see _.cloneDeepWith
     * @example
     *
     * function customizer(value) {
     *   if (_.isElement(value)) {
     *     return value.cloneNode(false);
     *   }
     * }
     *
     * var el = _.cloneWith(document.body, customizer);
     *
     * console.log(el === document.body);
     * // => false
     * console.log(el.nodeName);
     * // => 'BODY'
     * console.log(el.childNodes.length);
     * // => 0
     */

/**
     * This method is like `_.clone` except that it recursively clones `value`.
     *
     * @static
     * @memberOf _
     * @since 1.0.0
     * @category Lang
     * @param {*} value The value to recursively clone.
     * @returns {*} Returns the deep cloned value.
     * @see _.clone
     * @example
     *
     * var objects = [{ 'a': 1 }, { 'b': 2 }];
     *
     * var deep = _.cloneDeep(objects);
     * console.log(deep[0] === objects[0]);
     * // => false
     */

/**
     * This method is like `_.curry` except that arguments are applied to `func`
     * in the manner of `_.partialRight` instead of `_.partial`.
     *
     * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic
     * builds, may be used as a placeholder for provided arguments.
     *
     * **Note:** This method doesn't set the "length" property of curried functions.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Function
     * @param {Function} func The function to curry.
     * @param {number} [arity=func.length] The arity of `func`.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
     * @returns {Function} Returns the new curried function.
     * @example
     *
     * var abc = function(a, b, c) {
     *   return [a, b, c];
     * };
     *
     * var curried = _.curryRight(abc);
     *
     * curried(3)(2)(1);
     * // => [1, 2, 3]
     *
     * curried(2, 3)(1);
     * // => [1, 2, 3]
     *
     * curried(1, 2, 3);
     * // => [1, 2, 3]
     *
     * // Curried with placeholders.
     * curried(3)(1, _)(2);
     * // => [1, 2, 3]
     */

/**
     * This method is like `_.defaults` except that it recursively assigns
     * default properties.
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 3.10.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} [sources] The source objects.
     * @returns {Object} Returns `object`.
     * @see _.defaults
     * @example
     *
     * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
     * // => { 'a': { 'b': 2, 'c': 3 } }
     */

/**
     * This method is like `_.difference` except that it accepts `iteratee` which
     * is invoked for each element of `array` and `values` to generate the criterion
     * by which they're compared. The order and references of result values are
     * determined by the first array. The iteratee is invoked with one argument:
     * (value).
     *
     * **Note:** Unlike `_.pullAllBy`, this method returns a new array.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {...Array} [values] The values to exclude.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of filtered values.
     * @example
     *
     * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
     * // => [1.2]
     *
     * // The `_.property` iteratee shorthand.
     * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
     * // => [{ 'x': 2 }]
     */

/**
     * This method is like `_.findIndex` except that it iterates over elements
     * of `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=array.length-1] The index to search from.
     * @returns {number} Returns the index of the found element, else `-1`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': true },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': false }
     * ];
     *
     * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });
     * // => 2
     *
     * // The `_.matches` iteratee shorthand.
     * _.findLastIndex(users, { 'user': 'barney', 'active': true });
     * // => 0
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findLastIndex(users, ['active', false]);
     * // => 2
     *
     * // The `_.property` iteratee shorthand.
     * _.findLastIndex(users, 'active');
     * // => 0
     */

/**
     * This method is like `_.findKey` except that it iterates over elements of
     * a collection in the opposite order.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Object
     * @param {Object} object The object to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {string|undefined} Returns the key of the matched element,
     *  else `undefined`.
     * @example
     *
     * var users = {
     *   'barney':  { 'age': 36, 'active': true },
     *   'fred':    { 'age': 40, 'active': false },
     *   'pebbles': { 'age': 1,  'active': true }
     * };
     *
     * _.findLastKey(users, function(o) { return o.age < 40; });
     * // => returns 'pebbles' assuming `_.findKey` returns 'barney'
     *
     * // The `_.matches` iteratee shorthand.
     * _.findLastKey(users, { 'age': 36, 'active': true });
     * // => 'barney'
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findLastKey(users, ['active', false]);
     * // => 'fred'
     *
     * // The `_.property` iteratee shorthand.
     * _.findLastKey(users, 'active');
     * // => 'pebbles'
     */

/**
     * This method is like `_.find` except that it iterates over elements of
     * `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=collection.length-1] The index to search from.
     * @returns {*} Returns the matched element, else `undefined`.
     * @example
     *
     * _.findLast([1, 2, 3, 4], function(n) {
     *   return n % 2 == 1;
     * });
     * // => 3
     */

/**
     * This method is like `_.find` except that it returns the index of the first
     * element `predicate` returns truthy for instead of the element itself.
     *
     * @static
     * @memberOf _
     * @since 1.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @param {number} [fromIndex=0] The index to search from.
     * @returns {number} Returns the index of the found element, else `-1`.
     * @example
     *
     * var users = [
     *   { 'user': 'barney',  'active': false },
     *   { 'user': 'fred',    'active': false },
     *   { 'user': 'pebbles', 'active': true }
     * ];
     *
     * _.findIndex(users, function(o) { return o.user == 'barney'; });
     * // => 0
     *
     * // The `_.matches` iteratee shorthand.
     * _.findIndex(users, { 'user': 'fred', 'active': false });
     * // => 1
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findIndex(users, ['active', false]);
     * // => 0
     *
     * // The `_.property` iteratee shorthand.
     * _.findIndex(users, 'active');
     * // => 2
     */

/**
     * This method is like `_.find` except that it returns the key of the first
     * element `predicate` returns truthy for instead of the element itself.
     *
     * @static
     * @memberOf _
     * @since 1.1.0
     * @category Object
     * @param {Object} object The object to inspect.
     * @param {Function} [predicate=_.identity] The function invoked per iteration.
     * @returns {string|undefined} Returns the key of the matched element,
     *  else `undefined`.
     * @example
     *
     * var users = {
     *   'barney':  { 'age': 36, 'active': true },
     *   'fred':    { 'age': 40, 'active': false },
     *   'pebbles': { 'age': 1,  'active': true }
     * };
     *
     * _.findKey(users, function(o) { return o.age < 40; });
     * // => 'barney' (iteration order is not guaranteed)
     *
     * // The `_.matches` iteratee shorthand.
     * _.findKey(users, { 'age': 1, 'active': true });
     * // => 'pebbles'
     *
     * // The `_.matchesProperty` iteratee shorthand.
     * _.findKey(users, ['active', false]);
     * // => 'fred'
     *
     * // The `_.property` iteratee shorthand.
     * _.findKey(users, 'active');
     * // => 'barney'
     */

/**
     * This method is like `_.flatMap` except that it recursively flattens the
     * mapped results up to `depth` times.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {number} [depth=1] The maximum recursion depth.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * function duplicate(n) {
     *   return [[[n, n]]];
     * }
     *
     * _.flatMapDepth([1, 2], duplicate, 2);
     * // => [[1, 1], [2, 2]]
     */

/**
     * This method is like `_.flatMap` except that it recursively flattens the
     * mapped results.
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array} Returns the new flattened array.
     * @example
     *
     * function duplicate(n) {
     *   return [[[n, n]]];
     * }
     *
     * _.flatMapDeep([1, 2], duplicate);
     * // => [1, 1, 2, 2]
     */

/**
     * This method is like `_.flow` except that it creates a function that
     * invokes the given functions from right to left.
     *
     * @static
     * @since 3.0.0
     * @memberOf _
     * @category Util
     * @param {...(Function|Function[])} [funcs] The functions to invoke.
     * @returns {Function} Returns the new composite function.
     * @see _.flow
     * @example
     *
     * function square(n) {
     *   return n * n;
     * }
     *
     * var addSquare = _.flowRight([square, _.add]);
     * addSquare(1, 2);
     * // => 9
     */

/**
     * This method is like `_.forEach` except that it iterates over elements of
     * `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @alias eachRight
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Array|Object} Returns `collection`.
     * @see _.forEach
     * @example
     *
     * _.forEachRight([1, 2], function(value) {
     *   console.log(value);
     * });
     * // => Logs `2` then `1`.
     */

/**
     * This method is like `_.forIn` except that it iterates over properties of
     * `object` in the opposite order.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forIn
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forInRight(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.
     */

/**
     * This method is like `_.forOwn` except that it iterates over properties of
     * `object` in the opposite order.
     *
     * @static
     * @memberOf _
     * @since 2.0.0
     * @category Object
     * @param {Object} object The object to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @returns {Object} Returns `object`.
     * @see _.forOwn
     * @example
     *
     * function Foo() {
     *   this.a = 1;
     *   this.b = 2;
     * }
     *
     * Foo.prototype.c = 3;
     *
     * _.forOwnRight(new Foo, function(value, key) {
     *   console.log(key);
     * });
     * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.
     */

/**
     * This method is like `_.fromPairs` except that it accepts two arrays,
     * one of property identifiers and one of corresponding values.
     *
     * @static
     * @memberOf _
     * @since 0.4.0
     * @category Array
     * @param {Array} [props=[]] The property identifiers.
     * @param {Array} [values=[]] The property values.
     * @returns {Object} Returns the new object.
     * @example
     *
     * _.zipObject(['a', 'b'], [1, 2]);
     * // => { 'a': 1, 'b': 2 }
     */

/**
     * This method is like `_.get` except that if the resolved value is a
     * function it's invoked with the `this` binding of its parent object and
     * its result is returned.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Object
     * @param {Object} object The object to query.
     * @param {Array|string} path The path of the property to resolve.
     * @param {*} [defaultValue] The value returned for `undefined` resolved values.
     * @returns {*} Returns the resolved value.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };
     *
     * _.result(object, 'a[0].b.c1');
     * // => 3
     *
     * _.result(object, 'a[0].b.c2');
     * // => 4
     *
     * _.result(object, 'a[0].b.c3', 'default');
     * // => 'default'
     *
     * _.result(object, 'a[0].b.c3', _.constant('default'));
     * // => 'default'
     */

/**
     * This method is like `_.indexOf` except that it iterates over elements of
     * `array` from right to left.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @param {number} [fromIndex=array.length-1] The index to search from.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.lastIndexOf([1, 2, 1, 2], 2);
     * // => 3
     *
     * // Search from the `fromIndex`.
     * _.lastIndexOf([1, 2, 1, 2], 2, 2);
     * // => 1
     */

/**
     * This method is like `_.indexOf` except that it performs a binary
     * search on a sorted `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.sortedIndexOf([4, 5, 5, 5, 6], 5);
     * // => 1
     */

/**
     * This method is like `_.intersection` except that it accepts `iteratee`
     * which is invoked for each element of each `arrays` to generate the criterion
     * by which they're compared. The order and references of result values are
     * determined by the first array. The iteratee is invoked with one argument:
     * (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of intersecting values.
     * @example
     *
     * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
     * // => [2.1]
     *
     * // The `_.property` iteratee shorthand.
     * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 1 }]
     */

/**
     * This method is like `_.invert` except that the inverted object is generated
     * from the results of running each element of `object` thru `iteratee`. The
     * corresponding inverted value of each inverted key is an array of keys
     * responsible for generating the inverted value. The iteratee is invoked
     * with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.1.0
     * @category Object
     * @param {Object} object The object to invert.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Object} Returns the new inverted object.
     * @example
     *
     * var object = { 'a': 1, 'b': 2, 'c': 1 };
     *
     * _.invertBy(object);
     * // => { '1': ['a', 'c'], '2': ['b'] }
     *
     * _.invertBy(object, function(value) {
     *   return 'group' + value;
     * });
     * // => { 'group1': ['a', 'c'], 'group2': ['b'] }
     */

/**
     * This method is like `_.isArrayLike` except that it also checks if `value`
     * is an object.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to check.
     * @returns {boolean} Returns `true` if `value` is an array-like object,
     *  else `false`.
     * @example
     *
     * _.isArrayLikeObject([1, 2, 3]);
     * // => true
     *
     * _.isArrayLikeObject(document.body.children);
     * // => true
     *
     * _.isArrayLikeObject('abc');
     * // => false
     *
     * _.isArrayLikeObject(_.noop);
     * // => false
     */

/**
     * This method is like `_.isEqual` except that it accepts `customizer` which
     * is invoked to compare values. If `customizer` returns `undefined`, comparisons
     * are handled by the method instead. The `customizer` is invoked with up to
     * six arguments: (objValue, othValue [, index|key, object, other, stack]).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {*} value The value to compare.
     * @param {*} other The other value to compare.
     * @param {Function} [customizer] The function to customize comparisons.
     * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
     * @example
     *
     * function isGreeting(value) {
     *   return /^h(?:i|ello)$/.test(value);
     * }
     *
     * function customizer(objValue, othValue) {
     *   if (isGreeting(objValue) && isGreeting(othValue)) {
     *     return true;
     *   }
     * }
     *
     * var array = ['hello', 'goodbye'];
     * var other = ['hi', 'goodbye'];
     *
     * _.isEqualWith(array, other, customizer);
     * // => true
     */

/**
     * This method is like `_.isMatch` except that it accepts `customizer` which
     * is invoked to compare values. If `customizer` returns `undefined`, comparisons
     * are handled by the method instead. The `customizer` is invoked with five
     * arguments: (objValue, srcValue, index|key, object, source).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Lang
     * @param {Object} object The object to inspect.
     * @param {Object} source The object of property values to match.
     * @param {Function} [customizer] The function to customize comparisons.
     * @returns {boolean} Returns `true` if `object` is a match, else `false`.
     * @example
     *
     * function isGreeting(value) {
     *   return /^h(?:i|ello)$/.test(value);
     * }
     *
     * function customizer(objValue, srcValue) {
     *   if (isGreeting(objValue) && isGreeting(srcValue)) {
     *     return true;
     *   }
     * }
     *
     * var object = { 'greeting': 'hello' };
     * var source = { 'greeting': 'hi' };
     *
     * _.isMatchWith(object, source, customizer);
     * // => true
     */

/**
     * This method is like `_.lastIndexOf` except that it performs a binary
     * search on a sorted `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {*} value The value to search for.
     * @returns {number} Returns the index of the matched value, else `-1`.
     * @example
     *
     * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
     * // => 3
     */

/**
     * This method is like `_.max` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the criterion by which
     * the value is ranked. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {*} Returns the maximum value.
     * @example
     *
     * var objects = [{ 'n': 1 }, { 'n': 2 }];
     *
     * _.maxBy(objects, function(o) { return o.n; });
     * // => { 'n': 2 }
     *
     * // The `_.property` iteratee shorthand.
     * _.maxBy(objects, 'n');
     * // => { 'n': 2 }
     */

/**
     * This method is like `_.mean` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the value to be averaged.
     * The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.7.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the mean.
     * @example
     *
     * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
     *
     * _.meanBy(objects, function(o) { return o.n; });
     * // => 5
     *
     * // The `_.property` iteratee shorthand.
     * _.meanBy(objects, 'n');
     * // => 5
     */

/**
     * This method is like `_.merge` except that it accepts `customizer` which
     * is invoked to produce the merged values of the destination and source
     * properties. If `customizer` returns `undefined`, merging is handled by the
     * method instead. The `customizer` is invoked with six arguments:
     * (objValue, srcValue, key, object, source, stack).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The destination object.
     * @param {...Object} sources The source objects.
     * @param {Function} customizer The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @example
     *
     * function customizer(objValue, srcValue) {
     *   if (_.isArray(objValue)) {
     *     return objValue.concat(srcValue);
     *   }
     * }
     *
     * var object = { 'a': [1], 'b': [2] };
     * var other = { 'a': [3], 'b': [4] };
     *
     * _.mergeWith(object, other, customizer);
     * // => { 'a': [1, 3], 'b': [2, 4] }
     */

/**
     * This method is like `_.min` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the criterion by which
     * the value is ranked. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {*} Returns the minimum value.
     * @example
     *
     * var objects = [{ 'n': 1 }, { 'n': 2 }];
     *
     * _.minBy(objects, function(o) { return o.n; });
     * // => { 'n': 1 }
     *
     * // The `_.property` iteratee shorthand.
     * _.minBy(objects, 'n');
     * // => { 'n': 1 }
     */

/**
     * This method is like `_.pullAll` except that it accepts `comparator` which
     * is invoked to compare elements of `array` to `values`. The comparator is
     * invoked with two arguments: (arrVal, othVal).
     *
     * **Note:** Unlike `_.differenceWith`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 4.6.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];
     *
     * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);
     * console.log(array);
     * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
     */

/**
     * This method is like `_.pullAll` except that it accepts `iteratee` which is
     * invoked for each element of `array` and `values` to generate the criterion
     * by which they're compared. The iteratee is invoked with one argument: (value).
     *
     * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
     *
     * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
     * console.log(array);
     * // => [{ 'x': 2 }]
     */

/**
     * This method is like `_.pull` except that it accepts an array of values to remove.
     *
     * **Note:** Unlike `_.difference`, this method mutates `array`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to modify.
     * @param {Array} values The values to remove.
     * @returns {Array} Returns `array`.
     * @example
     *
     * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
     *
     * _.pullAll(array, ['a', 'c']);
     * console.log(array);
     * // => ['b', 'b']
     */

/**
     * This method is like `_.range` except that it populates values in
     * descending order.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Util
     * @param {number} [start=0] The start of the range.
     * @param {number} end The end of the range.
     * @param {number} [step=1] The value to increment or decrement by.
     * @returns {Array} Returns the range of numbers.
     * @see _.inRange, _.range
     * @example
     *
     * _.rangeRight(4);
     * // => [3, 2, 1, 0]
     *
     * _.rangeRight(-4);
     * // => [-3, -2, -1, 0]
     *
     * _.rangeRight(1, 5);
     * // => [4, 3, 2, 1]
     *
     * _.rangeRight(0, 20, 5);
     * // => [15, 10, 5, 0]
     *
     * _.rangeRight(0, -4, -1);
     * // => [-3, -2, -1, 0]
     *
     * _.rangeRight(1, 4, 0);
     * // => [1, 1, 1]
     *
     * _.rangeRight(0);
     * // => []
     */

/**
     * This method is like `_.reduce` except that it iterates over elements of
     * `collection` from right to left.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Function} [iteratee=_.identity] The function invoked per iteration.
     * @param {*} [accumulator] The initial value.
     * @returns {*} Returns the accumulated value.
     * @see _.reduce
     * @example
     *
     * var array = [[0, 1], [2, 3], [4, 5]];
     *
     * _.reduceRight(array, function(flattened, other) {
     *   return flattened.concat(other);
     * }, []);
     * // => [4, 5, 2, 3, 0, 1]
     */

/**
     * This method is like `_.set` except that accepts `updater` to produce the
     * value to set. Use `_.updateWith` to customize `path` creation. The `updater`
     * is invoked with one argument: (value).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.6.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {Function} updater The function to produce the updated value.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }] };
     *
     * _.update(object, 'a[0].b.c', function(n) { return n * n; });
     * console.log(object.a[0].b.c);
     * // => 9
     *
     * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });
     * console.log(object.x[0].y.z);
     * // => 0
     */

/**
     * This method is like `_.set` except that it accepts `customizer` which is
     * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
     * path creation is handled by the method instead. The `customizer` is invoked
     * with three arguments: (nsValue, key, nsObject).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {*} value The value to set.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = {};
     *
     * _.setWith(object, '[0][1]', 'a', Object);
     * // => { '0': { '1': 'a' } }
     */

/**
     * This method is like `_.sortBy` except that it allows specifying the sort
     * orders of the iteratees to sort by. If `orders` is unspecified, all values
     * are sorted in ascending order. Otherwise, specify an order of "desc" for
     * descending or "asc" for ascending sort order of corresponding values.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Collection
     * @param {Array|Object} collection The collection to iterate over.
     * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
     *  The iteratees to sort by.
     * @param {string[]} [orders] The sort orders of `iteratees`.
     * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
     * @returns {Array} Returns the new sorted array.
     * @example
     *
     * var users = [
     *   { 'user': 'fred',   'age': 48 },
     *   { 'user': 'barney', 'age': 34 },
     *   { 'user': 'fred',   'age': 40 },
     *   { 'user': 'barney', 'age': 36 }
     * ];
     *
     * // Sort by `user` in ascending order and by `age` in descending order.
     * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
     * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
     */

/**
     * This method is like `_.sortedIndex` except that it accepts `iteratee`
     * which is invoked for `value` and each element of `array` to compute their
     * sort ranking. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * var objects = [{ 'x': 4 }, { 'x': 5 }];
     *
     * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
     * // => 0
     *
     * // The `_.property` iteratee shorthand.
     * _.sortedIndexBy(objects, { 'x': 4 }, 'x');
     * // => 0
     */

/**
     * This method is like `_.sortedIndex` except that it returns the highest
     * index at which `value` should be inserted into `array` in order to
     * maintain its sort order.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * _.sortedLastIndex([4, 5, 5, 5, 6], 5);
     * // => 4
     */

/**
     * This method is like `_.sortedLastIndex` except that it accepts `iteratee`
     * which is invoked for `value` and each element of `array` to compute their
     * sort ranking. The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * var objects = [{ 'x': 4 }, { 'x': 5 }];
     *
     * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });
     * // => 1
     *
     * // The `_.property` iteratee shorthand.
     * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
     * // => 1
     */

/**
     * This method is like `_.sum` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the value to be summed.
     * The iteratee is invoked with one argument: (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Math
     * @param {Array} array The array to iterate over.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {number} Returns the sum.
     * @example
     *
     * var objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }];
     *
     * _.sumBy(objects, function(o) { return o.n; });
     * // => 20
     *
     * // The `_.property` iteratee shorthand.
     * _.sumBy(objects, 'n');
     * // => 20
     */

/**
     * This method is like `_.tap` except that it returns the result of `interceptor`.
     * The purpose of this method is to "pass thru" values replacing intermediate
     * results in a method chain sequence.
     *
     * @static
     * @memberOf _
     * @since 3.0.0
     * @category Seq
     * @param {*} value The value to provide to `interceptor`.
     * @param {Function} interceptor The function to invoke.
     * @returns {*} Returns the result of `interceptor`.
     * @example
     *
     * _('  abc  ')
     *  .chain()
     *  .trim()
     *  .thru(function(value) {
     *    return [value];
     *  })
     *  .value();
     * // => ['abc']
     */

/**
     * This method is like `_.union` except that it accepts `iteratee` which is
     * invoked for each element of each `arrays` to generate the criterion by
     * which uniqueness is computed. Result values are chosen from the first
     * array in which the value occurs. The iteratee is invoked with one argument:
     * (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {...Array} [arrays] The arrays to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new array of combined values.
     * @example
     *
     * _.unionBy([2.1], [1.2, 2.3], Math.floor);
     * // => [2.1, 1.2]
     *
     * // The `_.property` iteratee shorthand.
     * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 1 }, { 'x': 2 }]
     */

/**
     * This method is like `_.uniqBy` except that it's designed and optimized
     * for sorted arrays.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee] The iteratee invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
     * // => [1.1, 2.3]
     */

/**
     * This method is like `_.uniq` except that it accepts `comparator` which
     * is invoked to compare elements of `array`. The order of result values is
     * determined by the order they occur in the array.The comparator is invoked
     * with two arguments: (arrVal, othVal).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [comparator] The comparator invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
     *
     * _.uniqWith(objects, _.isEqual);
     * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
     */

/**
     * This method is like `_.uniq` except that it accepts `iteratee` which is
     * invoked for each element in `array` to generate the criterion by which
     * uniqueness is computed. The order of result values is determined by the
     * order they occur in the array. The iteratee is invoked with one argument:
     * (value).
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
     * // => [2.1, 1.2]
     *
     * // The `_.property` iteratee shorthand.
     * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
     * // => [{ 'x': 1 }, { 'x': 2 }]
     */

/**
     * This method is like `_.uniq` except that it's designed and optimized
     * for sorted arrays.
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category Array
     * @param {Array} array The array to inspect.
     * @returns {Array} Returns the new duplicate free array.
     * @example
     *
     * _.sortedUniq([1, 1, 2]);
     * // => [1, 2]
     */

/**
     * This method is like `_.unzip` except that it accepts `iteratee` to specify
     * how regrouped values should be combined. The iteratee is invoked with the
     * elements of each group: (...group).
     *
     * @static
     * @memberOf _
     * @since 3.8.0
     * @category Array
     * @param {Array} array The array of grouped elements to process.
     * @param {Function} [iteratee=_.identity] The function to combine
     *  regrouped values.
     * @returns {Array} Returns the new array of regrouped elements.
     * @example
     *
     * var zipped = _.zip([1, 2], [10, 20], [100, 200]);
     * // => [[1, 10, 100], [2, 20, 200]]
     *
     * _.unzipWith(zipped, _.add);
     * // => [3, 30, 300]
     */

/**
     * This method is like `_.update` except that it accepts `customizer` which is
     * invoked to produce the objects of `path`.  If `customizer` returns `undefined`
     * path creation is handled by the method instead. The `customizer` is invoked
     * with three arguments: (nsValue, key, nsObject).
     *
     * **Note:** This method mutates `object`.
     *
     * @static
     * @memberOf _
     * @since 4.6.0
     * @category Object
     * @param {Object} object The object to modify.
     * @param {Array|string} path The path of the property to set.
     * @param {Function} updater The function to produce the updated value.
     * @param {Function} [customizer] The function to customize assigned values.
     * @returns {Object} Returns `object`.
     * @example
     *
     * var object = {};
     *
     * _.updateWith(object, '[0][1]', _.constant('a'), Object);
     * // => { '0': { '1': 'a' } }
     */

/**
     * This method is like `_.zipObject` except that it supports property paths.
     *
     * @static
     * @memberOf _
     * @since 4.1.0
     * @category Array
     * @param {Array} [props=[]] The property identifiers.
     * @param {Array} [values=[]] The property values.
     * @returns {Object} Returns the new object.
     * @example
     *
     * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
     * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }
     */

/**
     * This method is like `_.zip` except that it accepts `iteratee` to specify
     * how grouped values should be combined. The iteratee is invoked with the
     * elements of each group: (...group).
     *
     * @static
     * @memberOf _
     * @since 3.8.0
     * @category Array
     * @param {...Array} [arrays] The arrays to process.
     * @param {Function} [iteratee=_.identity] The function to combine
     *  grouped values.
     * @returns {Array} Returns the new array of grouped elements.
     * @example
     *
     * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
     *   return a + b + c;
     * });
     * // => [111, 222]
     */

/**
     * This method is like `_.zip` except that it accepts an array of grouped
     * elements and creates an array regrouping the elements to their pre-zip
     * configuration.
     *
     * @static
     * @memberOf _
     * @since 1.2.0
     * @category Array
     * @param {Array} array The array of grouped elements to process.
     * @returns {Array} Returns the new array of regrouped elements.
     * @example
     *
     * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);
     * // => [['a', 1, true], ['b', 2, false]]
     *
     * _.unzip(zipped);
     * // => [['a', 'b'], [1, 2], [true, false]]
     */

/**
     * This method is the wrapper version of `_.at`.
     *
     * @name at
     * @memberOf _
     * @since 1.0.0
     * @category Seq
     * @param {...(string|string[])} [paths] The property paths to pick.
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
     *
     * _(object).at(['a[0].b.c', 'a[1]']).value();
     * // => [3, 4]
     */

/**
     * This method is the wrapper version of `_.reverse`.
     *
     * **Note:** This method mutates the wrapped array.
     *
     * @name reverse
     * @memberOf _
     * @since 0.1.0
     * @category Seq
     * @returns {Object} Returns the new `lodash` wrapper instance.
     * @example
     *
     * var array = [1, 2, 3];
     *
     * _(array).reverse().value()
     * // => [3, 2, 1]
     *
     * console.log(array);
     * // => [3, 2, 1]
     */

/**
     * This method returns `false`.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {boolean} Returns `false`.
     * @example
     *
     * _.times(2, _.stubFalse);
     * // => [false, false]
     */

/**
     * This method returns `true`.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {boolean} Returns `true`.
     * @example
     *
     * _.times(2, _.stubTrue);
     * // => [true, true]
     */

/**
     * This method returns `undefined`.
     *
     * @static
     * @memberOf _
     * @since 2.3.0
     * @category Util
     * @example
     *
     * _.times(2, _.noop);
     * // => [undefined, undefined]
     */

/**
     * This method returns a new empty array.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {Array} Returns the new empty array.
     * @example
     *
     * var arrays = _.times(2, _.stubArray);
     *
     * console.log(arrays);
     * // => [[], []]
     *
     * console.log(arrays[0] === arrays[1]);
     * // => false
     */

/**
     * This method returns a new empty object.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {Object} Returns the new empty object.
     * @example
     *
     * var objects = _.times(2, _.stubObject);
     *
     * console.log(objects);
     * // => [{}, {}]
     *
     * console.log(objects[0] === objects[1]);
     * // => false
     */

/**
     * This method returns an empty string.
     *
     * @static
     * @memberOf _
     * @since 4.13.0
     * @category Util
     * @returns {string} Returns the empty string.
     * @example
     *
     * _.times(2, _.stubString);
     * // => ['', '']
     */

/**
     * This method returns the first argument it receives.
     *
     * @static
     * @since 0.1.0
     * @memberOf _
     * @category Util
     * @param {*} value Any value.
     * @returns {*} Returns `value`.
     * @example
     *
     * var object = { 'a': 1 };
     *
     * console.log(_.identity(object) === object);
     * // => true
     */

/**
     * Truncates `string` if it's longer than the given maximum string length.
     * The last characters of the truncated string are replaced with the omission
     * string which defaults to "...".
     *
     * @static
     * @memberOf _
     * @since 4.0.0
     * @category String
     * @param {string} [string=''] The string to truncate.
     * @param {Object} [options={}] The options object.
     * @param {number} [options.length=30] The maximum string length.
     * @param {string} [options.omission='...'] The string to indicate text is omitted.
     * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
     * @returns {string} Returns the truncated string.
     * @example
     *
     * _.truncate('hi-diddly-ho there, neighborino');
     * // => 'hi-diddly-ho there, neighbo...'
     *
     * _.truncate('hi-diddly-ho there, neighborino', {
     *   'length': 24,
     *   'separator': ' '
     * });
     * // => 'hi-diddly-ho there,...'
     *
     * _.truncate('hi-diddly-ho there, neighborino', {
     *   'length': 24,
     *   'separator': /,? +/
     * });
     * // => 'hi-diddly-ho there...'
     *
     * _.truncate('hi-diddly-ho there, neighborino', {
     *   'omission': ' [...]'
     * });
     * // => 'hi-diddly-ho there, neig [...]'
     */

/**
     * Updates wrapper `details` based on `bitmask` flags.
     *
     * @private
     * @returns {Array} details The details to modify.
     * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
     * @returns {Array} Returns `details`.
     */

/**
     * Use math calculation to get length of line
     * @return {number} length
     */

/**
     * Use math calculation to get point according to ratio as same sa Canvas version
     * @param {number} ratio
     * @return {Point} point
     */

/**
     * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
     * objects into destination objects that are passed thru.
     *
     * @private
     * @param {*} objValue The destination value.
     * @param {*} srcValue The source value.
     * @param {string} key The key of the property to merge.
     * @param {Object} object The parent object of `objValue`.
     * @param {Object} source The parent object of `srcValue`.
     * @param {Object} [stack] Tracks traversed source values and their merged
     *  counterparts.
     * @returns {*} Returns the value to assign.
     */

/**
     * Used by `_.defaults` to customize its `_.assignIn` use to assign properties
     * of source objects to the destination object for all destination properties
     * that resolve to `undefined`.
     *
     * @private
     * @param {*} objValue The destination value.
     * @param {*} srcValue The source value.
     * @param {string} key The key of the property to assign.
     * @param {Object} object The parent object of `objValue`.
     * @returns {*} Returns the value to assign.
     */

/**
     * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
     * objects.
     *
     * @private
     * @param {*} value The value to inspect.
     * @param {string} key The key of the property to inspect.
     * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
     */

/**
     * Used by `_.orderBy` to compare multiple properties of a value to another
     * and stable sort them.
     *
     * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
     * specify an order of "desc" for descending or "asc" for ascending sort order
     * of corresponding values.
     *
     * @private
     * @param {Object} object The object to compare.
     * @param {Object} other The other object to compare.
     * @param {boolean[]|string[]} orders The order to sort by for each property.
     * @returns {number} Returns the sort order indicator for `object`.
     */

/**
     * Used to stitch together functional operators into a chain.
     * @method pipe
     * @return {Observable} the Observable result of all of the operators having
     * been called in the order they were passed in.
     *
     * @example
     *
     * import { map, filter, scan } from 'rxjs/operators';
     *
     * Rx.Observable.interval(1000)
     *   .pipe(
     *     filter(x => x % 2 === 0),
     *     map(x => x + x),
     *     scan((acc, x) => acc + x)
     *   )
     *   .subscribe(x => console.log(x))
     */

/**
     * Uses a binary search to determine the lowest index at which `value`
     * should be inserted into `array` in order to maintain its sort order.
     *
     * @static
     * @memberOf _
     * @since 0.1.0
     * @category Array
     * @param {Array} array The sorted array to inspect.
     * @param {*} value The value to evaluate.
     * @returns {number} Returns the index at which `value` should be inserted
     *  into `array`.
     * @example
     *
     * _.sortedIndex([30, 50], 40);
     * // => 1
     */

/**
     * Uses defineEvent to define multiple events.
     *
     * @param {String[]} evts An array of event names to define.
     * @return {Object} Current instance of EventEmitter for chaining.
     */

/**
     * We record input value here to check if can press to clean up by backspace
     * - null: Key is not down, this is reset by key up
     * - true: Search text is empty when first time backspace down
     * - false: Search text is not empty when first time backspace down
     */

/**
     * Whether a file was saved to disk.
     *
     * This is used by vfile reporters.
     *
     * @type {boolean}
     */

/**
     * Wrapper around the w3c-compatible WebSocket object provided by the browser.
     *
     * @example <caption>Wraps browser WebSocket</caption>
     *
     * let socket$ = Observable.webSocket('ws://localhost:8081');
     *
     * socket$.subscribe(
     *    (msg) => console.log('message received: ' + msg),
     *    (err) => console.log(err),
     *    () => console.log('complete')
     *  );
     *
     * socket$.next(JSON.stringify({ op: 'hello' }));
     *
     * @example <caption>Wraps WebSocket from nodejs-websocket (using node.js)</caption>
     *
     * import { w3cwebsocket } from 'websocket';
     *
     * let socket$ = Observable.webSocket({
     *   url: 'ws://localhost:8081',
     *   WebSocketCtor: w3cwebsocket
     * });
     *
     * socket$.subscribe(
     *    (msg) => console.log('message received: ' + msg),
     *    (err) => console.log(err),
     *    () => console.log('complete')
     *  );
     *
     * socket$.next(JSON.stringify({ op: 'hello' }));
     *
     * @param {string | WebSocketSubjectConfig} urlConfigOrSource the source of the websocket as an url or a structure defining the websocket object
     * @return {WebSocketSubject}
     * @static true
     * @name webSocket
     * @owner Observable
     */

/**
     * add a handler for this query, triggering if already active
     *
     * @param {object} handler
     * @param {function} handler.match callback for when query is activated
     * @param {function} [handler.unmatch] callback for when query is deactivated
     * @param {function} [handler.setup] callback for immediate execution when a query handler is registered
     * @param {boolean} [handler.deferSetup=false] should the setup callback be deferred until the first time the handler is matched?
     */

/**
     * bbox 剪裁
     * @param subBBox
     * @param direction
     */

/**
     * called when a handler is to be destroyed.
     * delegates to the destroy or unmatch callbacks, depending on availability.
     *
     * @function
     */

/**
     * change visibility of component
     * @param visible
     */

/**
     * checked 图例项
     */

/**
     * clear
     * @param includeOption 是否清空 option 配置项（used in annotation）
     */

/**
     * clear
     */

/**
     * clone a new event with same attributes
     * @returns [[Event]]
     */

/**
     * clone 一个 padding cal
     */

/**
     * compare color vs current color
     */

/**
     * const arr = [1, 2, 3, 4]
     * const evens = remove(arr, n => n % 2 == 0)
     * console.log(arr) // => [1, 3]
     * console.log(evens) // => [2, 4]
     */

/**
     * coordinate 实例执行 actions
     * @params includeActions 如果没有指定，则执行全部，否则，执行指定的 action
     */

/**
     * coordinates setup and triggering of the handler
     *
     * @function
     */

/**
     * coordinates setup of the handler
     *
     * @function
     */

/**
     * coordinates the unmatch event for the handler
     *
     * @function
     */

/**
     * destroy the component
     */

/**
     * determines equality by reference.
     * if object is supplied compare options, if function, compare match callback
     *
     * @function
     * @param {object || function} [target] the target for comparison
     */

/**
     * event string
     * @returns string
     */

/**
     * facet title
     */

/**
     * generate circle axis cfg
     * @param scale
     * @param axisOption
     * @param direction
     * @return circle axis cfg
     */

/**
     * generate circle grid cfg
     * @param scale
     * @param axisOption
     * @param direction
     * @return circle grid cfg
     */

/**
     * generate line axis cfg
     * @param scale
     * @param axisOption
     * @param direction
     * @return line axis cfg
     */

/**
     * generate line grid cfg
     * @param scale
     * @param axisOption
     * @param direction
     * @param dim
     * @return line grid cfg
     */

/**
     * get all components
     * @returns components array
     */

/**
     * get annotation component config by different type
     * @param type
     * @param option 用户的配置
     * @param theme
     */

/**
     * get coordinate bbox
     */

/**
     * get legend config, use option > suggestion > theme
     * @param baseCfg
     * @param legendOption
     * @param direction
     */

/**
     * get sync key
     * @param sm
     */

/**
     * get the container by option.top
     * default is on top
     * @param option
     * @returns the container
     */

/**
     * get the gap of two bbox, if not exceed, then 0
     * @param bbox
     * @returns [top, right, bottom, left]
     */

/**
     * highlight 图例项（坐标轴文本）
     */

/**
     * https://github.com/ant-design/ant-design/issues/23623
     *
     * Sync render blocks React event. Let's make this async.
     */

/**
     * is annotation render on top
     * @param option
     * @return whethe on top
     */

/**
     * isArrayLike([1, 2, 3]) => true
     * isArrayLike(document.body.children) => true
     * isArrayLike('abc') => true
     * isArrayLike(Function) => false
     */

/**
     * isEmpty(null) => true
     * isEmpty() => true
     * isEmpty(true) => true
     * isEmpty(1) => true
     * isEmpty([1, 2, 3]) => false
     * isEmpty('abc') => false
     * isEmpty({ a: 1 }) => false
     */

/**
     * isNil(null) => true
     * isNil() => true
     */

/**
     * isObject({}) => true
     * isObject([1, 2, 3]) => true
     * isObject(Function) => true
     * isObject(null) => false
     */

/**
     * isObjectLike(new Foo) => false
     * isObjectLike([1, 2, 3]) => false
     * isObjectLike({ x: 0, y: 0 }) => true
     * isObjectLike(Object.create(null)) => true
     */

/**
     * isObjectLike({}) => true
     * isObjectLike([1, 2, 3]) => true
     * isObjectLike(Function) => false
     * isObjectLike(null) => false
     */

/**
     * isTooltipLocked
     */

/**
     * layout legend
     * 计算出 legend 的 direction 位置 x, y
     */

/**
     * legend 的更新逻辑
     */

/**
     * lockTooltip
     */

/**
     * parse all the points between start and end
     * @param start
     * @param end
     * @return Point[]
     */

/**
     * parse percent position
     * @param position
     */

/**
     * parse the point position to [x, y]
     * @param p Position
     * @returns { x, y }
     */

/**
     * region filter 比较特殊的渲染时机
     * @param doWhat
     */

/**
     * removes the given handler from the collection, and calls it's destroy methods
     *
     * @param {object || function} handler the handler to remove
     */

/**
     * render the legend component by legend options
     */

/**
     * scale
     * @param sx
     * @param sy
     */

/**
     * scale key 的创建方式
     * @param field
     */

/**
     * taken from https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js
     */

/**
     * tooltip 提示信息配置。
     *
     * ```ts
     * view.tooltip(false); // 关闭 tooltip
     *
     * view.tooltip({
     *   shared: true
     * });
     * ```
     *
     * @param cfg Tooltip 配置，更详细的配置项参考：https://github.com/antvis/component#tooltip
     * @returns View
     */

/**
     * transformArguments 第一个为 enter, 第二个为 leave；
     * getTweenAnimConfig or getTweenType 第一个为到达的位置， 第二个为开始的位置。
     * 用 tween-one 的数组来实现老的动画逻辑。。。
     */

/**
     * unlockTooltip
     */

/**
     * unregisters a query and all it's handlers, or a specific handler for a query
     *
     * @param {string} q the media query to target
     * @param {object || function} [handler] specific handler to unregister
     */

/**
     * view 分面绘制。
     *
     * ```ts
     * view.facet('rect', {
     *   rowField: 'province',
     *   columnField: 'category',
     *   eachView: (innerView: View, facet?: FacetData) => {
     *     innerView.line().position('city*sale');
     *   },
     * });
     * ```
     *
     * @param type 分面类型
     * @param cfg 分面配置， [[FacetCfgMap]]
     * @returns View
     */

/**
     * whether has reflect
     * @param dim
     */

/**
     * x 字段
     * @returns
     */

/**
     * x: 目标值
     * lo: 起始位置
     * hi: 结束位置
     */

/**
     * y 字段
     * @returns
     */

/**
     * 一些方法调用会引起画布变化
     * @param {ChangeType} changeType 改变的类型
     */

/**
     * 从 view 中清除 facetView
     */

/**
     * 从 view 中获取数据，缩略轴使用全量的数据
     */

/**
     * 以任意点 (x, y) 为中心旋转元素
     * @param {number} radian 旋转角度(弧度值)
     * @return {IElement} 元素
     */

/**
     * 以画布左上角 (0, 0) 为中心旋转元素
     * @param {number} radian 旋转角度(弧度值)
     * @return {IElement} 元素
     */

/**
     * 以起始点为中心旋转元素
     * @param {number} radian 旋转角度(弧度值)
     * @return {IElement} 元素
     */

/**
     * 使用静态方法创建一个
     * @param top
     * @param right
     * @param bottom
     * @param left
     */

/**
     * 修改数据，数据更新逻辑，数据更新仅仅影响当前这一层的 view
     *
     * ```ts
     * view.changeData([{ city: '北京', sale: '200' }]);
     * ```
     *
     * @param data
     * @returns void
     */

/**
     * 停止动画
     * @param {boolean} toEnd 是否到动画的最终状态
     */

/**
     * 停止定时器
     */

/**
     * 停止时间轴上所有元素的动画，并置空动画元素列表
     * @param {boolean} toEnd 是否到动画的最终状态，用来透传给动画元素的 stopAnimate 方法
     */

/**
     * 光标指示可以在上下方向移动
     */

/**
     * 光标指示可以在左右方向移动
     */

/**
     * 光标指示可移动的方向 右上方（东北）
     */

/**
     * 光标指示可移动的方向 左上方（西北）
     */

/**
     * 光标指示可移动的方向右下方（东南）
     */

/**
     * 光标指示可移动的方向左下方（西南）
     */

/**
     * 克隆包围盒
     * @returns 包围盒
     */

/**
     * 内部设置属性值的接口
     * @param {string} name 属性名
     * @param {any} value 属性值
     */

/**
     * 切换状态
     */

/**
     * 切换状态.
     * 1. 当全部选中的时候 或者 当前 item 未选中时，进行激活操作
     * 2. 否则，重置
     * @override
     */

/**
     * 切换选中，只允许选中一个
     */

/**
     * 创建 Arc
     * @param option
     * @returns AnnotationController
     */

/**
     * 创建 DataMarker
     * @param option
     * @returns AnnotationController
     */

/**
     * 创建 DataRegion
     * @param option
     * @returns AnnotationController
     */

/**
     * 创建 Element 实例。
     * @param mappingDatum Element 对应的绘制数据
     * @param [isUpdate] 是否处于更新阶段
     * @returns element 返回创建的 Element 实例
     */

/**
     * 创建 Geometry 实例。
     * @param cfg
     */

/**
     * 创建 HtmlAnnotation
     * @param option
     */

/**
     * 创建 Line
     * @param option
     * @returns AnnotationController
     */

/**
     * 创建 Region
     * @param option
     * @returns AnnotationController
     */

/**
     * 创建 RegionFilter
     * @param option
     * @returns AnnotationController
     */

/**
     * 创建 ShapeAnnotation
     * @param option
     */

/**
     * 创建 Text
     * @param option
     * @returns AnnotationController
     */

/**
     * 创建 image
     * @param option
     * @returns AnnotationController
     */

/**
     * 创建 line axis
     * @param scale
     * @param option
     * @param layer
     * @param direction
     * @param dim
     */

/**
     * 创建 scale
     * @param field
     * @param data
     * @param scaleDef
     * @param key
     */

/**
     * 创建 scale，递归到顶层 view 去创建和缓存 scale
     * @param field
     * @param data
     * @param scaleDef
     * @param key
     */

/**
     * 创建 slider 组件
     */

/**
     * 创建 分面 view
     */

/**
     * 创建一个 legend
     * @param geometry
     * @param attr
     * @param scale
     */

/**
     * 创建分类图例
     * @param geometry
     * @param attr
     * @param scale
     * @param legendOption
     */

/**
     * 创建坐标系
     * @private
     */

/**
     * 创建坐标系对象
     * @param start 起始位置
     * @param end   结束位置
     * @return 坐标系实例
     */

/**
     * 创建子 view
     *
     * ```ts
     * const innerView = view.createView({
     *   start: { x: 0, y: 0 },
     *   end: { x: 0.5, y: 0.5 },
     *   padding: 8,
     * });
     * ```
     *
     * @param cfg
     * @returns View
     */

/**
     * 创建或者更新 annotation
     * @param option
     */

/**
     * 创建所有的 Element 实例，对于 Path、Line、Area，一组数据对应一个 Element。
     * @param mappingData
     * @param [isUpdate]
     * @returns elements
     */

/**
     * 创建连续图例
     * @param geometry
     * @param attr
     * @param scale
     * @param legendOption
     */

/**
     * 初始化
     */

/**
     * 初始化 Geometries
     * @private
     */

/**
     * 初始化 Geomtry 实例：
     * 创建 [[Attribute]] and [[Scale]] 实例，进行数据处理，包括分组、数值化以及数据调整。
     */

/**
     * 初始化 view
     */

/**
     * 初始化。
     */

/**
     * 初始化事件机制：G 4.0 底层内置支持 name:event 的机制，那么只要所有组件都有自己的 name 即可。
     *
     * G2 的事件只是获取事件委托，然后在 view 嵌套结构中，形成事件冒泡机制。
     * 当前 view 只委托自己 view 中的 Component 和 Geometry 事件，并向上冒泡
     * @private
     */

/**
     * 初始化定时器
     */

/**
     * 初始化插件
     */

/**
     * 初始化流程
     */

/**
     * 初始化过程
     */

/**
     * 初始的 padding 数据
     * @param top
     * @param right
     * @param bottom
     * @param left
     */

/**
     * 删除 sync scale 引用
     * @param key
     */

/**
     * 删除一个子 view
     * @param view
     * @return removedView
     */

/**
     * 刷新图形元素，这里仅仅是放入队列，下次绘制时进行绘制
     * @param {IElement} element 图形元素
     */

/**
     * 包围盒是否相等
     * @param {BBox} bbox 包围盒
     * @returns      包围盒是否相等
     */

/**
     * 包围盒计算
     * @param {number} x  椭圆中心 x
     * @param {number} y  椭圆中心 y
     * @param {number} rx 椭圆 x 方向半径
     * @param {number} ry 椭圆 y 方向半径
     * @return {object} 包围盒
     */

/**
     * 包装配置的默认值
     * @param option
     */

/**
     * 取交集
     * @param subBBox
     */

/**
     * 取并集
     * @param subBBox
     */

/**
     * 取最大区间
     * @param padding
     */

/**
     * 取消勾选
     */

/**
     * 取消同当前 Action 相关的过滤，指定的 x,y
     */

/**
     * 取消当前时间影响的状态
     */

/**
     * 取消状态
     */

/**
     * 取消监听一个事件，或者一个channel
     * @param evt
     * @param callback
     */

/**
     * 取消连接 elements
     */

/**
     * 同步 scale
     */

/**
     * 四周增加 padding
     * @param padding
     */

/**
     * 回滚
     */

/**
     * 因为 annotation 需要依赖坐标系信息，所以 render 阶段为空方法，实际的创建逻辑都在 layout 中
     */

/**
     * 图形元素新出现时的动画，默认图形从透明度 0 到当前透明度
     * @protected
     * @param {string} elmentName 图形元素名称
     * @param {IElement} newElement  新的图形元素
     * @param {object} animateCfg 动画的配置项
     */

/**
     * 图形元素新出现时的动画，默认图形从透明度 0 到当前透明度
     * @protected
     * @param {string} elmentName 图形元素名称
     * @param {IElement} originElement 要删除的图形元素
     * @param {object} animateCfg 动画的配置项
     */

/**
     * 图形元素的更新动画
     * @param {string} elmentName 图形元素名称
     * @param {IElement} originElement 现有的图形元素
     * @param {object} newAttrs  新的图形元素
     * @param {object} animateCfg 动画的配置项
     */

/**
     * 图表元素 Active
     */

/**
     * 在 view 销毁的时候，删除 scale 实例，防止内存泄露
     * @param key
     */

/**
     * 在某一个方向增加 padding
     * @param bbox
     * @param direction
     */

/**
     * 在组件上添加子组件
     *
     * @param parent 父元素
     * @param cfg 子组件配置项
     */

/**
     * 坐标系反射变换
     * @param dim 反射维度
     * @return    返回坐标系对象
     */

/**
     * 坐标系平移变换
     * @param x x 方向平移像素
     * @param y y 方向平移像素
     * @return    返回坐标系对象
     */

/**
     * 坐标系旋转变换
     * @param  radian 旋转弧度
     * @return        返回坐标系对象
     */

/**
     * 坐标系比例变换
     * @param s1 x 方向缩放比例
     * @param s2 y 方向缩放比例
     * @return     返回坐标系对象
     */

/**
     * 填充一些默认的配置项目
     */

/**
     * 增加动画元素
     */

/**
     * 处理 PLOT_EVENTS
     * plot event 需要处理所有的基础事件，并判断是否在画布中，然后再决定是否要 emit。
     * 对于 mouseenter、mouseleave 比较特殊，需要做一下数学比较。
     * @param e
     */

/**
     * 处理 axis 的默认配置
     * @param view
     * @param facet
     */

/**
     * 处理 scale 同步逻辑
     */

/**
     * 处理筛选器，筛选数据
     * @private
     */

/**
     * 复写 init，主要是初始化 DOM 和事件
     */

/**
     * 复写基类的方法
     */

/**
     * 大小变化
     */

/**
     * 如果进行线性映射，返回对应的映射值
     * @param percent
     */

/**
     * 子元素的数量
     * @return {number} 子元素数量
     */

/**
     * 存在镜像
     */

/**
     * 对 view 进行过滤
     * @param view
     * @param field
     * @param filter
     */

/**
     * 对 view 进行过滤
     */

/**
     * 对外暴露方法，判断一个点是否在绘图区域（即坐标系范围）内部。
     * @param point 坐标点
     */

/**
     * 对数据进行分组adjustData
     * @param data 数据
     * @param dim 分组的字段
     * @return 分组结果
     */

/**
     * 对某一个字段进行过滤
     * @param field
     * @param data
     */

/**
     * 对角变换
     */

/**
     * 将 data 数据进行过滤。
     * @param data
     * @returns 过滤之后的数据
     */

/**
     * 将 tooltip 锁定到当前位置不能移动。
     * @returns View
     */

/**
     * 将 tooltip 锁定解除。
     * @returns View
     */

/**
     * 将原始数据映射至图形空间，同时创建图形对象。
     */

/**
     * 将坐标点进行矩阵变换
     * @param x   对应 x 轴画布坐标
     * @param y   对应 y 轴画布坐标
     * @param tag 默认为 0，可取值 0, 1
     * @return    返回变换后的三阶向量 [x, y, z]
     */

/**
     * 将坐标点进行矩阵逆变换
     * @param x   对应 x 轴画布坐标
     * @param y   对应 y 轴画布坐标
     * @param tag 默认为 0，可取值 0, 1
     * @return    返回矩阵逆变换后的三阶向量 [x, y, z]
     */

/**
     * 将坐标系 x y 两个轴进行转置
     * @return 返回坐标系对象
     */

/**
     * 将屏幕坐标点还原成百分比数据
     * @param point 屏幕坐标
     * @return      返回对应的归一化后的数据
     */

/**
     * 将归一化的 path 转换成坐标系下的 path
     * @param path 归一化的路径
     * @returns
     */

/**
     * 将归一化的坐标点数据转换为画布坐标，并根据坐标系当前矩阵进行变换
     * @param point 归一化的坐标点
     * @return      返回进行矩阵变换后的画布坐标
     */

/**
     * 将归一化的坐标转换成画布坐标
     * @param point 归一化的坐标点数据
     * @returns
     */

/**
     * 将时间转换成数字
     * @override
     */

/**
     * 将百分比数据变成屏幕坐标
     * @param point 归一化的点坐标
     * @return      返回对应的屏幕坐标
     */

/**
     * 将进行过矩阵变换画布坐标转换为归一化坐标
     * @param point 画布坐标
     * @return      返回归一化的坐标点
     */

/**
     * 属性更改后需要做的事情
     * @protected
     * @param {ShapeAttrs} targetAttrs 渲染的图像属性
     */

/**
     * 属性更改后需要做的事情
     * @protected
     */

/**
     * 布局
     */

/**
     * 平移
     */

/**
     * 开始
     */

/**
     * 开始移动
     */

/**
     * 开始范围过滤，记录范围过滤的起点
     */

/**
     * 开始，记录开始选中的位置
     */

/**
     * 当前事件相关的 Element Active
     */

/**
     * 当前数据分组（index）中，按照维度 dim 进行 jitter 调整
     * @param dim
     * @param values
     * @param dataArray
     */

/**
     * 当前的触发是否在 View 内
     */

/**
     * 当前的触发是组件内部
     * @param name 组件名，可以为空
     */

/**
     * 当前鼠标点是在 enter tooltip 中
     * @param point
     */

/**
     * 往 `view.options` 属性中存储配置项。
     * @param name 属性名称
     * @param opt 属性值
     * @returns view
     */

/**
     * 恢复动画
     */

/**
     * 恢复发生的过滤，保持同 data-filter 命名的一致
     */

/**
     * 所有同一层级的 tooltip 显示
     * @param view
     * @param point
     */

/**
     * 执行
     */

/**
     * 执行动画，支持多种函数签名
     * 1. animate(toAttrs: ElementAttrs, duration: number, easing?: string, callback?: () => void, delay?: number)
     * 2. animate(onFrame: OnFrame, duration: number, easing?: string, callback?: () => void, delay?: number)
     * 3. animate(toAttrs: ElementAttrs, cfg: AnimateCfg)
     * 4. animate(onFrame: OnFrame, cfg: AnimateCfg)
     * 各个参数的含义为:
     *   toAttrs  动画最终状态
     *   onFrame  自定义帧动画函数
     *   duration 动画执行时间
     *   easing   动画缓动效果
     *   callback 动画执行后的回调
     *   delay    动画延迟时间
     */

/**
     * 扩张形成新的
     * @param gap
     */

/**
     * 拖拽
     */

/**
     * 指定点到多折线的距离
     * @param {array} points 点的集合 [x,y] 的形式
     * @param {number} x 指定点的 x
     * @param {number} y 指定点的 y
     * @return {number} 点到多折线的距离
     */

/**
     * 指定点到多边形的距离
     * @param {array} points 点的集合 [x,y] 的形式
     * @param {number} x 指定点的 x
     * @param {number} y 指定点的 y
     * @return {number} 点到多边形的距离
     */

/**
     * 收缩形成新的
     * @param gap
     */

/**
     * 改变图表大小，同时重新渲染。
     * @param width 图表宽度
     * @param height 图表高度
     * @returns
     */

/**
     * 放大
     */

/**
     * 方法入参是经过数据分组、数据数字化之后的二维数组
     * @param groupDataArray 分组之后的数据
     */

/**
     * 旋转弧度
     * @param angle
     */

/**
     * 时间轴构造函数，依赖于画布
     * @param {}
     */

/**
     * 映射的值组成的数组
     * @param params 对应 scale 顺序的值传入
     */

/**
     * 是否仅仅使用 BBox 检测就可以判定拾取到图形
     * 默认是 false，但是有些图形例如 image、marker 等都可直接使用 BBox 的检测而不需要使用图形拾取
     * @return {Boolean} 仅仅使用 BBox 进行拾取
     */

/**
     * 是否允许捕捉事件
     * @param capture 事件捕捉
     */

/**
     * 是否具有某个状态
     * @param element 图表 Element 元素
     */

/**
     * 是否包含了另一个包围盒
     * @param child
     */

/**
     * 是否包含对应元素
     * @param {IElement} element 元素
     * @return {boolean}
     */

/**
     * 是否可以执行某一 overlap
     * @param name
     */

/**
     * 是否在指定的图形内
     * @param name shape 的 name
     */

/**
     * 是否处于动画暂停状态
     * @return {boolean} 是否处于动画暂停状态
     */

/**
     * 是否存在指定的状态
     * @param {ListItem} item  列表项
     * @param {boolean} state 状态名
     */

/**
     * 是否存在某一个 action
     * @param actionName
     */

/**
     * 是否有动画在执行
     */

/**
     * 是否碰撞
     * @param bbox
     */

/**
     * 是否锁定 tooltip。
     * @returns 是否锁定
     */

/**
     * 是否需要进行群组入场动画
     * 规则：
     * 1. 如果发生更新，则不进行
     * 2. 如果用户关闭 geometry 动画，则不进行
     * 3. 如果用户关闭了 appear 动画，则不进行
     * 4. 如果用户配置了 appear.animation，则不进行
     */

/**
     * 显示
     * @param {ShapeAttrs} style region-path 的样式
     * @param {number} appendRatio 适用于笛卡尔坐标系. 对于 x 轴非 linear 类型: 默认：0.25, x 轴 linear 类型: 默认 0
     * @param {number} appendWidth  适用于笛卡尔坐标系. 像素级别，优先级 > appendRatio
     */

/**
     * 显示
     */

/**
     * 显示 Tooltip
     * @returns
     */

/**
     * 显示 Tooltip (展示在上方)
     * @returns
     */

/**
     * 显示 point 坐标点对应的 tooltip。
     * @param point 画布坐标点
     * @returns View
     */

/**
     * 显示。
     */

/**
     * 显示或者隐藏 element。
     * @param visible 是否可见。
     */

/**
     * 显示或者隐藏 geometry。
     * @param visible
     */

/**
     * 显示或者隐藏。
     * @param visible
     * @returns
     */

/**
     * 显示或者隐藏整个 view。
     * @param visible 是否可见
     * @returns View
     */

/**
     * 显示或隐藏图表
     * @param visible 是否可见，true 表示显示，false 表示隐藏
     * @returns
     */

/**
     * 显示组件
     */

/**
     * 暂停动画
     */

/**
     * 更新
     */

/**
     * 更新 axis 组件
     */

/**
     * 更新 facet
     */

/**
     * 更新 view 过滤数据
     * @param min
     * @param max
     */

/**
     * 更新 x axis
     * @param updatedCache
     */

/**
     * 更新分页器 arrow 组件
     */

/**
     * 更新列表项
     * @param {ListItem} item 列表项
     * @param {object}   cfg  列表项
     */

/**
     * 更新图形。
     * @param model 更新的绘制数据。
     */

/**
     * 更新坐标系对象
     * @param start 起始位置
     * @param end   结束位置
     * @return 坐标系实例
     */

/**
     * 更新组件
     * @param {object} cfg 更新属性
     */

/**
     * 更新组件布局，位置大小
     */

/**
     * 更新缓存，以及销毁组件
     * @param updated 更新或者创建的组件
     */

/**
     * 更新配置
     * @param cfg
     */

/**
     * 更新配置
     * @param option
     */

/**
     * 更新配置
     */

/**
     * 更新配置项，用于配置项式声明。
     * @param options 配置项
     */

/**
     * 最后的绘制组件
     * @param isUpdate
     */

/**
     * 最终递归绘制组件和图形
     * @param isUpdate
     */

/**
     * 查找元素，找到第一个返回
     * @param  {ElementFilterFn} fn    匹配函数
     * @return {IElement|null} 元素，可以为空
     */

/**
     * 查找所有匹配的元素
     * @param  {ElementFilterFn}   fn  匹配函数
     * @return {IElement[]} 元素数组
     */

/**
     * 查看维度是否是 adjust 字段
     * @param dim
     */

/**
     * 查询当前 Element 上是否已设置 `stateName` 对应的状态。
     * @param stateName 状态名称。
     * @returns true 表示存在，false 表示不存在。
     */

/**
     * 根据 Geometry 的所有字段创建 scales
     * 如果存在，则更新，不存在则创建
     */

/**
     * 根据 ID 查找元素
     * @param {string} id 元素 id
     * @return {IElement|null} 元素
     */

/**
     * 根据 facet 生成 view，可以给上层自定义使用
     * @param facet
     */

/**
     * 根据 id 来获取组件
     * @param id
     */

/**
     * 根据 name 查找元素列表
     * @param {string}      name 元素名称
     * @return {IElement[]} 元素
     */

/**
     * 根据 optimize 配置对 ticks 进行抽样，对抽样过后的 ticks 才进行真实的渲染
     */

/**
     * 根据 options 配置、Geometry 字段配置，自动生成 components
     * @param isUpdate 是否是更新
     * @private
     */

/**
     * 根据 options 配置自动渲染 geometry
     * @private
     */

/**
     * 根据 shape 类型获取具体的 shape 实例
     * @param shapeType string shape 的类型
     * @returns
     */

/**
     * 根据 start/end 和当前数据计算出当前的 minText/maxText
     * @param min
     * @param max
     */

/**
     * 根据一定的规则查找 Geometry 的 Elements。
     *
     * ```typescript
     * getElementsBy((element) => {
     *   const data = element.getData();
     *
     *   return data.a === 'a';
     * });
     * ```
     *
     * @param condition 定义查找规则的回调函数。
     * @returns
     */

/**
     * 根据名字获取图形属性实例。
     */

/**
     * 根据名称获取度量
     * @param name
     */

/**
     * 根据字段名去获取 scale 实例。
     * @param field 数据字段名称
     * @param key id
     */

/**
     * 根据度量获取属性名
     */

/**
     * 根据总数和当前索引，计算分面的 region
     * @param count
     * @param index
     */

/**
     * 根据比例获取多折线的切线角度
     * @param {array} points 点的集合 [x,y] 的形式
     * @param {number} t 在多折线的长度上的比例
     * @return {object} 根据比例值计算出来的角度
     */

/**
     * 根据比例获取多折线的点
     * @param {array} points 点的集合 [x,y] 的形式
     * @param {number} t 在多折线的长度上的比例
     * @return {object} 根据比例值计算出来的点
     */

/**
     * 根据比例获取多边形的切线角度
     * @param {array} points 点的集合 [x,y] 的形式
     * @param {number} t 在多边形的长度上的比例
     * @return {object} 根据比例值计算出来的角度
     */

/**
     * 根据比例获取多边形的点
     * @param {array} points 点的集合 [x,y] 的形式
     * @param {number} t 在多边形的长度上的比例
     * @return {object} 根据比例值计算出来的点
     */

/**
     * 根据比例获取点
     * @param {number} x 椭圆中心 x
     * @param {number} y 椭圆中心 y
     * @param {number} rx 椭圆 x 方向半径
     * @param {number} ry 椭圆 y 方向半径
     * @param {number} t 指定比例，x轴方向为 0
     * @return {object} 点
     */

/**
     * 根据比例获取点
     * @param {number} x1 起始点 x
     * @param {number} y1 起始点 y
     * @param {number} x2 结束点 x
     * @param {number} y2 结束点 y
     * @param {number} t 指定比例
     * @return {object} 包含 x, y 的点
     */

/**
     * 根据比例计算切线角度
     * @param {number} x 椭圆中心 x
     * @param {number} y 椭圆中心 y
     * @param {number} rx 椭圆 x 方向半径
     * @param {number} ry 椭圆 y 方向半径
     * @param {number} t 指定比例 0 - 1 之间，x轴方向为 0。在 0-1 范围之外是循环还是返回 null，还需要调整
     * @return {number} 角度，在 0 - 2PI 之间
     */

/**
     * 根据状态获取图例项
     * @param  {string}     state [description]
     * @return {ListItem[]}       [description]
     */

/**
     * 根据用户配置的 items 配置，来进行用户自定义的处理，并返回最终的 items
     * 默认不做任何处理
     */

/**
     * 根据索引获取子元素
     * @return {IElement} 第一个元素
     */

/**
     * 此光标指示矩形框的边缘可被向上（北）移动。
     */

/**
     * 此光标指示矩形框的边缘可被向下（南）移动。
     */

/**
     * 此光标指示矩形框的边缘可被向右（东）移动。
     */

/**
     * 此光标指示矩形框的边缘可被向左（西）移动。
     */

/**
     * 添加一个点
     */

/**
     * 清楚所有列表项的状态
     * @param {string} state 状态值
     */

/**
     * 清理所有隐藏的图形
     */

/**
     * 清理组件的内容，一般配合 render 使用
     * @example
     * axis.clear();
     * axis.render();
     */

/**
     * 清理绑定的事件
     */

/**
     * 清理资源
     */

/**
     * 清空
     * @param includeOption 是否清空 option 配置项
     */

/**
     * 清空
     */

/**
     * 清空列表
     */

/**
     * 清空图表，同时清除掉 aria 配置
     */

/**
     * 清空当前 Geometry，配置项仍保留，但是内部创建的对象全部清空。
     * @override
     */

/**
     * 清空状量态，恢复至初始状态。
     */

/**
     * 清空，clear 之后如果还需要使用，需要重新调用 init 初始化过程
     * 一般在数据有变更的时候调用，重新进行数据的分面逻辑
     */

/**
     * 清除当前的组件
     */

/**
     * 清除所有 Element 的状态
     */

/**
     * 清除所有连接
     */

/**
     * 清除过滤
     */

/**
     * 渲染
     */

/**
     * 渲染分面，会在其中进行数据分面，然后进行子 view 创建
     * @param isUpdate
     */

/**
     * 渲染分面，由上层 view 调用。包括：
     *  - 分面 view
     *  - 轴
     *  - title
     *
     *  子类可以复写，添加一些其他组件，比如滚动条等
     */

/**
     * 渲染文本
     */

/**
     * 渲染背景样式的 shape。
     * 放到 view 中创建的原因是让使用 view 绘制图形的时候，也能够处理背景色
     */

/**
     * 激活选项
     */

/**
     * 点到椭圆最近的距离
     * @param {number} x  椭圆中心 x
     * @param {number} y  椭圆中心 y
     * @param {number} rx 椭圆 x 方向半径
     * @param {number} ry 椭圆 y 方向半径
     * @param {number} x0  指定的点 x
     * @param {number} y0  指定的点 y
     * @return {number} 点到椭圆的距离
     */

/**
     * 点到直线的距离，而不是点到线段的距离
     * @param {number} x1 起始点 x
     * @param {number} y1 起始点 y
     * @param {number} x2 结束点 x
     * @param {number} y2 结束点 y
     * @param {number} x  测试点 x
     * @param {number} y  测试点 y
     * @return {number} 距离
     */

/**
     * 点到线段的距离
     * @param {number} x1 起始点 x
     * @param {number} y1 起始点 y
     * @param {number} x2 结束点 x
     * @param {number} y2 结束点 y
     * @param {number} x  测试点 x
     * @param {number} y  测试点 y
     * @return {number} 距离
     */

/**
     * 点是否在 bbox 中
     * @param p
     */

/**
     * 生命周期：初始化
     * @returns voids
     */

/**
     * 生命周期：清空图表上所有的绘制内容，但是不销毁图表，chart 仍可使用。
     * @returns void
     */

/**
     * 生命周期：渲染流程，渲染过程需要处理数据更新的情况。
     * render 函数仅仅会处理 view 和子 view。
     * @param isUpdate 是否触发更新流程。
     * @param params render 事件参数
     */

/**
     * 生命周期：销毁，完全无法使用。
     * @returns void
     */

/**
     * 生成 id
     * @param key
     */

/**
     * 生成 slider 配置
     */

/**
     * 生成矩阵分面的分面数据
     * @param data
     */

/**
     * 用于向 shape 中传入自定义的数据。目前可能仅仅可能用于在自定义 shape 的时候，像自定义 shape 中传入自定义的数据，方便实现自定义 shape 的配置能力。
     *
     * @example
     * ```ts
     * chart.interval().customInfo({ yourData: 'hello, g2!' });
     * ```
     *
     * 然后在自定义 shape 的时候，可以拿到这个信息。
     *
     * ```ts
     * registerShape('interval', 'your-shape', {
     *   draw(shapeInfo, container) {
     *     const { customInfo } = shapeInfo;
     *     console.log(customInfo); // will log { yourData: 'hello, g2!' }.
     *   }
     * });
     * ```
     *
     * @param cfg
     */

/**
     * 由于时间类型数据需要转换一下，所以复写 getText
     * @override
     */

/**
     * 监听一个事件
     * @param evt
     * @param callback
     * @param once
     */

/**
     * 监听一个事件一次
     * @param evt
     * @param callback
     */

/**
     * 移动
     */

/**
     * 移动 mask
     */

/**
     * 移动元素
     * @param {number} translateX 水平移动距离
     * @param {number} translateY 垂直移动距离
     * @return {IElement} 元素
     */

/**
     * 移动元素到目标位置
     * @param {number} targetX 目标位置的水平坐标
     * @param {number} targetX 目标位置的垂直坐标
     * @return {IElement} 元素
     */

/**
     * 移动元素到目标位置，等价于 move 方法。由于 moveTo 的语义性更强，因此在文档中推荐使用 moveTo 方法
     * @param {number} targetX 目标位置的 x 轴坐标
     * @param {number} targetY 目标位置的 y 轴坐标
     * @return {IElement} 元素
     */

/**
     * 移除 Action
     * @param action Action 对象
     */

/**
     * 移除动画元素
     */

/**
     * 移除对应子元素
     * @param {IElement} element 子元素
     * @param {boolean} destroy 是否销毁子元素，默认为 true
     */

/**
     * 移除当前 View 的 interaction
     * ```ts
     * view.removeInteraction('my-interaction');
     * ```
     * @param name interaction name
     */

/**
     * 索引值在哪一页
     * @param index
     * @param pageSize
     */

/**
     * 线段的角度
     * @param {number} x1 起始点 x
     * @param {number} y1 起始点 y
     * @param {number} x2 结束点 x
     * @param {number} y2 结束点 y
     * @return {number} 导数
     */

/**
     * 线段的长度
     * @param {number} x1 起始点 x
     * @param {number} y1 起始点 y
     * @param {number} x2 结束点 x
     * @param {number} y2 结束点 y
     * @return {number} 距离
     */

/**
     * 绑定事件
     */

/**
     * 结束
     */

/**
     * 结束移动
     */

/**
     * 绘制 shape
     * @override
     * @param shapeType 绘制的 shape 类型
     * @param cfg 绘制 shape 需要的信息
     * @param element Element 实例
     * @returns
     */

/**
     * 绘制 shape
     * @override
     */

/**
     * 绘制分组的路径
     * @param {Defs} context 上下文
     * @param {ShapeAttrs} targetAttrs 渲染的目标属性
     */

/**
     * 绘制分页器
     */

/**
     * 绘制图形。
     * @param model 绘制数据。
     * @param isUpdate 可选，是否是更新发生后的绘制。
     */

/**
     * 绘制图形的路径
     * @param {CanvasRenderingContext2D} context 上下文
     */

/**
     * 绘制完成 path 后的操作
     * @param {CanvasRenderingContext2D} context 上下文
     */

/**
     * 绘制标签背景
     * @param labelItems
     */

/**
     * 绘制组件
     */

/**
     * 缓存一个 scale
     * @param scale
     * @param scaleDef
     * @param key
     */

/**
     * 缓存信息
     * @param params 缓存的字段
     *  - 如果一个字段则获取缓存
     *  - 两个字段则设置缓存
     */

/**
     * 缩小
     */

/**
     * 缩放元素
     * @param {number} ratioX 水平缩放比例
     * @param {number} ratioY 垂直缩放比例
     * @return {IElement} 元素
     */

/**
     * 自动根据容器大小 resize 画布
     */

/**
     * 自定义图例使用 category 图例去渲染
     * @param geometry
     * @param attr
     * @param scale
     * @param legendOption
     */

/**
     * 获取 Action
     * @param action Action 对象
     */

/**
     * 获取 Action
     * @param name Action 的名称
     */

/**
     * 获取 Element 对应的原始数据。
     * @returns 原始数据。
     */

/**
     * 获取 Element 对应的图形绘制数据。
     * @returns 图形绘制数据。
     */

/**
     * 获取 G.Canvas 实例。
     * @returns G.Canvas 画布实例。
     */

/**
     * 获取 Geometry 的所有 Elements。
     *
     * ```typescript
     * getElements();
     * ```
     */

/**
     * 获取 Shape 的关键点数据。
     * @param obj
     * @returns
     */

/**
     * 获取 Shape 的关键点数据。
     * @param record
     * @returns
     */

/**
     * 获取 Y 轴上的最小值
     * @returns y 字段最小值
     */

/**
     * 获取 Y 轴上的最小值。
     */

/**
     * 获取 interval label 的方向，取决于 value 的值是正还是负
     * @param labelCfg
     */

/**
     * 获取 label 的旋转角度
     * @param angle
     * @param offset
     * @param isLabelEmit
     */

/**
     * 获取 label 的默认配置
     */

/**
     * 获取 name 对应的 controller 实例
     * @param name
     */

/**
     * 获取 scrollbar 的主题配置
     */

/**
     * 获取 scrollbar 组件的主题样式
     */

/**
     * 获取 shape 对应的 marker 样式。
     * @param shapeName shape 具体名字
     * @param cfg marker 信息
     * @returns
     */

/**
     * 获取 shape 对应的缩略图配置信息。
     * @param shapeType shape 类型
     * @param color 颜色
     * @param isInPolar 是否在极坐标系下
     * @returns 返回缩略图 marker 配置。
     */

/**
     * 获取 shape 的默认关键点
     * @override
     */

/**
     * 获取 shape 的默认绘制样式 (内置的 shapeFactory 均有注册默认样式)
     */

/**
     * 获取 shape 绘制需要的关键点
     * @param shapeType shape 类型
     * @param shapePoint 每条数据映射后的坐标点以及 size 数值
     * @returns 图形关键点信息
     */

/**
     * 获取 slider 的主题配置
     */

/**
     * 获取 view 中的所有 geome
     */

/**
     * 获取 view 的数据（过滤后的数据）。
     * @returns 处理过滤器之后的数据。
     */

/**
     * 获取 x 轴或者 y 轴对应的所有 scale 实例。
     * @param dimType x | y
     * @returns x 轴或者 y 轴对应的所有 scale 实例。
     */

/**
     * 获取 y 轴字段的 scales 实例。
     * @returns view 中 Geometry 对于的 y scale 数组
     */

/**
     * 获取一个点的绘制信息。
     * @param mappingDatum
     * @returns draw cfg
     */

/**
     * 获取决定分组的图形属性实例。
     */

/**
     * 获取决定分组的图形属性对应的 scale 实例。
     * @returns
     */

/**
     * 获取分类图例的配置项
     * @param geometry
     * @param attr
     * @param scale
     * @param custom
     * @param legendOption
     */

/**
     * 获取分面数据
     * @param conditions
     */

/**
     * 获取包围盒大小
     * @returns 包围盒大小
     */

/**
     * 获取原始数据
     * @returns 传入 G2 的原始数据
     */

/**
     * 获取可调整度量对应的值
     * @param mergedData 数据
     * @return 值的映射
     */

/**
     * 获取图例项
     * @return {ListItem[]} 列表项集合
     */

/**
     * 获取图形绘制的关键点以及数据
     * @param mappingData 映射后的数据
     */

/**
     * 获取圆弧的位置
     */

/**
     * 获取圆弧的长度，计算圆弧长度时不考虑旋转角度，
     * 仅跟 rx, ry, startAngle, endAngle 相关
     * @param {number} cx         圆心 x
     * @param {number} cy         圆心 y
     * @param {number} rx         x 轴方向的半径
     * @param {number} ry         y 轴方向的半径
     * @param {number} xRotation  旋转角度
     * @param {number} startAngle 起始角度
     * @param {number} endAngle   结束角度
     */

/**
     * 获取坐标点与圆心形成的圆的位置信息
     * @param angle
     * @param offset
     * @param point
     * @param isLabelEmit
     */

/**
     * 获取对应的 adjust 实例
     * @param adjustType
     * @returns
     */

/**
     * 获取屏幕像素比
     */

/**
     * 获取布局后的边距 padding
     * @returns
     */

/**
     * 获取当前 Element 上所有的状态。
     * @returns 当前 Element 上所有的状态数组。
     */

/**
     * 获取当前 Geometry 对应的 Shape 工厂实例。
     */

/**
     * 获取当前 label 的最终配置
     * @param labelCfg
     */

/**
     * 获取当前 point 对应的 tooltip 数据项。
     * @param point 坐标点
     * @returns tooltip 数据项
     */

/**
     * 获取当前 shape
     * @returns current shape
     */

/**
     * 获取当前 view 有的 geometries
     * @returns
     */

/**
     * 获取当前 view 的主题配置。
     * @returns themeObject
     */

/**
     * 获取当前坐标系实例。
     * @returns [[Coordinate]]
     */

/**
     * 获取当前时间
     */

/**
     * 获取当前的渲染引擎
     * @return {Renderer} 返回当前的渲染引擎
     */

/**
     * 获取当前的点
     */

/**
     * 获取当前配置中的所有分组 & 分类的字段。
     * @return fields string[]
     */

/**
     * 获取所有的 pure component 组件，用于布局。
     */

/**
     * 获取所有的分组字段的 scale 实例。
     * @returns 获得分组字段的 scale 实例数组。
     */

/**
     * 获取所有的维度名
     */

/**
     * 获取所有需要创建 scale 的字段名称。
     */

/**
     * 获取指定点到圆弧的最近距离的点
     * @param {number} cx         圆心 x
     * @param {number} cy         圆心 y
     * @param {number} rx         x 轴方向的半径
     * @param {number} ry         y 轴方向的半径
     * @param {number} xRotation  旋转角度
     * @param {number} startAngle 起始角度
     * @param {number} endAngle   结束角度
     * @param {number} x0         指定点的 x
     * @param {number} y0         指定点的 y
     * @return {object} 到指定点最近距离的点
     */

/**
     * 获取数据
     */

/**
     * 获取数据对应的唯一 id。
     * @param data Element 对应的绘制数据
     * @returns
     */

/**
     * 获取文本的对齐方式
     * @param item
     * @param index
     * @param total
     * @returns
     */

/**
     * 获取最后一个子元素
     * @return {IElement} 元素
     */

/**
     * 获取栅格线的类型
     * @return {string} 栅格线类型
     */

/**
     * 获取每一个 label 的唯一 id
     * @param mappingData label 对应的图形的绘制数据
     */

/**
     * 获取每个 Shape 对应的关键点数据。
     * @param obj 经过分组 -> 数字化 -> adjust 调整后的数据记录
     * @returns
     */

/**
     * 获取每个 label 的位置
     * @param labelCfg
     * @param mappingData
     * @param index
     * @returns label point
     */

/**
     * 获取每个 label 的偏移量 (矢量)
     * @param labelCfg
     * @param index
     * @param total
     * @return {Point} offsetPoint
     */

/**
     * 获取每条数据对应的图形绘制数据。
     * @param mappingDatum 映射后的数据
     * @returns draw cfg
     */

/**
     * 获取每条数据的 Shape 绘制信息
     * @param obj 经过分组 -> 数字化 -> adjust 调整后的数据记录
     * @returns
     */

/**
     * 获取渲染的 label 类型。
     */

/**
     * 获取画布的 cursor 样式
     * @return {Cursor}
     */

/**
     * 获取第一个子元素
     * @return {IElement} 第一个元素
     */

/**
     * 获取线拾取的宽度
     * @returns {number} 线的拾取宽度
     */

/**
     * 获取组成一条线（一组数据）的所有点以及数据
     * @param mappingData 映射后的数组
     */

/**
     * 获取虚拟 Group。
     * @returns
     */

/**
     * 获取该 Geometry 下所有生成的 shapes。
     * @returns shapes
     */

/**
     * 获取该数据发生图形映射后对应的 Attribute 图形空间数据。
     * @param attr Attribute 图形属性实例。
     * @param obj 需要进行映射的原始数据。
     * @returns
     */

/**
     * 获取该数据在可视化后，对应的画布坐标点。
     * @param data 原始数据记录
     * @returns 对应的画布坐标点
     */

/**
     * 获取这个字段对应的所有值，数组
     * @protected
     * @param data 数据
     * @param field 字段名
     * @return 字段对应的值
     */

/**
     * 获取逼近的点的数据集合
     * @param point 当前坐标点
     * @returns  数据
     */

/**
     * 获取配置
     */

/**
     * 获得 Geometry 中的 scale 对象
     */

/**
     * 获得 coordinate 实例
     * @returns
     */

/**
     * 获得 coordinate 实例
     */

/**
     * 获得 x 轴字段的 scale 实例。
     * @returns view 中 Geometry 对于的 x scale
     */

/**
     * 获得图形的 x y 字段。
     */

/**
     * 获得所有的 legend 对应的 attribute 实例。
     * @returns 维度字段的 Attribute 数组
     */

/**
     * 获得所有的字段
     */

/**
     * 获得最终的 padding
     */

/**
     * 获得根节点 view。
     */

/**
     * 获得每个分面的 region，平分区域
     * @param rows row 总数
     * @param cols col 总数
     * @param xIndex x 方向 index
     * @param yIndex y 方向 index
     */

/**
     * 获得绘制的层级 group。
     * @param layer 层级名称。
     * @returns 对应层级的 Group。
     */

/**
     * 获得缓存组件的 key
     * @param option
     */

/**
     * 获得连续图例的配置
     * @param geometry
     * @param attr
     * @param scale
     * @param legendOption
     */

/**
     * 装载数据源。
     *
     * ```ts
     * view.data([{ city: '杭州', sale: 100 }, { city: '上海', sale: 110 } ]);
     * ```
     *
     * @param data 数据源，json 数组。
     * @returns View
     */

/**
     * 覆写父类方法
     */

/**
     * 覆盖父类
     */

/**
     * 解析 spacing
     */

/**
     * 触发一个事件
     * @param evt
     * @param args
     */

/**
     * 触发委托事件
     * @param  {string}     type 事件类型
     * @param  {GraphEvent} eventObj 事件对象
     */

/**
     * 计算 region，计算实际的像素范围坐标
     * @private
     */

/**
     * 计算分页数
     * @param total
     * @param pageSize
     */

/**
     * 计算包围盒
     * @param {number} cx         圆心 x
     * @param {number} cy         圆心 y
     * @param {number} rx         x 轴方向的半径
     * @param {number} ry         y 轴方向的半径
     * @param {number} xRotation  旋转角度
     * @param {number} startAngle 起始角度
     * @param {number} endAngle   结束角度
     * @return {object} 包围盒对象
     */

/**
     * 计算周长，使用近似法
     * @param {number} x  椭圆中心 x
     * @param {number} y  椭圆中心 y
     * @param {number} rx 椭圆 x 方向半径
     * @param {number} ry 椭圆 y 方向半径
     * @return {number} 椭圆周长
     */

/**
     * 计算坐标线点在极坐标系下角度
     * @param point
     */

/**
     * 计算多折线的包围盒
     * @param {array} points 点的集合 [x,y] 的形式
     * @return {object} 包围盒
     */

/**
     * 计算多折线的长度
     * @param {array} points 点的集合 [x,y] 的形式
     * @return {object} 多条边的长度
     */

/**
     * 计算多边形的包围盒
     * @param {array} points 点的集合 [x,y] 的形式
     * @return {object} 包围盒
     */

/**
     * 计算多边形的长度
     * @param {array} points 点的集合 [x,y] 的形式
     * @return {object} 多边形边的长度
     */

/**
     * 计算相对于画布的包围盒，默认等同于 bbox
     * @return {BBox} 包围盒
     */

/**
     * 计算线段的包围盒
     * @param {number} x1 起始点 x
     * @param {number} y1 起始点 y
     * @param {number} x2 结束点 x
     * @param {number} y2 结束点 y
     * @return {object} 包围盒对象
     */

/**
     * 设置 Element 的状态。
     *
     * 目前 Element 开放三种状态：
     * 1. active
     * 2. selected
     * 3. inactive
     *
     * 这三种状态相互独立，可以进行叠加。
     *
     * 这三种状态的样式可在 [[Theme]] 主题中或者通过 `geometry.state()` 接口进行配置。
     *
     * ```ts
     * // 激活 active 状态
     * setState('active', true);
     * ```
     *
     * @param stateName 状态名
     * @param stateStatus 是否开启状态
     */

/**
     * 设置 WAI-ARIA 无障碍标签。如何根据图形语法自动生成 arial 内容？
     * @param ariaOption
     */

/**
     * 设置 highlight
     */

/**
     * 设置 label 位置
     * @param labelPointCfg
     * @param mappingData
     * @param index
     * @param position
     */

/**
     * 设置 layout 布局函数
     * @param layout 布局函数
     * @returns void
     */

/**
     * 设置 x 坐标轴的文本、title 是否显示
     * @param x
     * @param axes
     * @param option
     * @param facet
     */

/**
     * 设置 y 坐标轴的文本、title 是否显示
     * @param y
     * @param axes
     * @param option
     * @param facet
     */

/**
     * 设置主题。
     *
     * ```ts
     * view.theme('dark'); // 'dark' 需要事先通过 `registerTheme()` 接口注册完成
     *
     * view.theme({ defaultColor: 'red' });
     * ```
     *
     * @param theme 主题名或者主题配置
     * @returns View
     */

/**
     * 设置列表项
     * @param {ListItem[]} items 列表项集合
     */

/**
     * 设置列表项的状态
     * @param {ListItem} item  列表项
     * @param {string}   state 状态名
     * @param {boolean}  value 状态值, true, false
     */

/**
     * 设置数据筛选规则。
     *
     * ```ts
     * view.filter('city', (value: any, datum: Datum) => value !== '杭州');
     *
     * // 删除 'city' 字段对应的筛选规则。
     * view.filter('city', null);
     * ```
     *
     * @param field 数据字段
     * @param condition 筛选规则
     * @returns View
     */

/**
     * 设置数据调整方式。G2 目前内置了四种类型：
     * 1. dodge
     * 2. stack
     * 3. symmetric
     * 4. jitter
     *
     *
     * **Tip**
     * + 对于 'dodge' 类型，可以额外进行如下属性的配置:
     * ```typescript
     * geometry.adjust('dodge', {
     *   marginRatio: 0, // 取 0 到 1 范围的值（相对于每个柱子宽度），用于控制一个分组中柱子之间的间距
     *   dodgeBy: 'x', // 该属性只对 'dodge' 类型生效，声明以哪个数据字段为分组依据
     * });
     * ```
     *
     * + 对于 'stack' 类型，可以额外进行如下属性的配置:
     * ```typescript
     * geometry.adjust('stack', {
     *   reverseOrder: false, // 用于控制是否对数据进行反序操作
     * });
     * ```
     *
     * @example
     * ```typescript
     * geometry.adjust('stack');
     *
     * geometry.adjust({
     *   type: 'stack',
     *   reverseOrder: false,
     * });
     *
     * // 组合使用 adjust
     * geometry.adjust([ 'stack', 'dodge' ]);
     *
     * geometry.adjust([
     *   { type: 'stack' },
     *   { type: 'dodge', dodgeBy: 'x' },
     * ]);
     * ```
     *
     * @param adjustCfg 数据调整配置
     * @returns
     */

/**
     * 设置状态
     */

/**
     * 设置状态对应的样式。
     *
     * @example
     * ```ts
     * chart.interval().state({
     *   selected: {
     *     animate: { duration: 100, easing: 'easeLinear' },
     *     style: {
     *       lineWidth: 2,
     *       stroke: '#000',
     *     },
     *   },
     * });
     * ```
     *
     * 如果图形 shape 是由多个 shape 组成，即为一个 G.Group 对象，那么针对 group 中的每个 shape，我们需要使用下列方式进行状态样式设置：
     * 如果我们为 group 中的每个 shape 设置了 'name' 属性(shape.set('name', 'xx'))，则以 'name' 作为 key，否则默认以索引值（即 shape 的 添加顺序）为 key。
     *
     * ```ts
     * chart.interval().shape('groupShape').state({
     *   selected: {
     *     style: {
     *       0: { lineWidth: 2 },
     *       1: { fillOpacity: 1 },
     *     }
     *   }
     * });
     * ```
     *
     * @param cfg 状态样式
     */

/**
     * 设置状态激活
     * @param enable 状态值
     */

/**
     * 设置画布的 cursor 样式
     * @param {Cursor} cursor  cursor 样式
     */

/**
     * 设置配置项传入的值
     * @param cfg
     */

/**
     * 该方法即将废弃，不建议使用
     * 根据 className 查找元素
     * TODO: 该方式定义暂时只给 G6 3.3 以后的版本使用，待 G6 中的 findByClassName 方法移除后，G 也需要同步移除
     * @param {string} className 元素 className
     * @return {IElement | null} 元素
     */

/**
     * 调整 coordinate 的坐标范围。
     */

/**
     * 调整 offsetRange，因为一些范围的限制
     * @param offsetRange
     */

/**
     * 调整 scale 配置
     * @private
     */

/**
     * 调整 text 的位置，自动躲避
     * 根据位置，调整返回新的位置
     * @param range
     */

/**
     * 调整 y 轴的 scale 范围。
     * 对于 Y 轴为数值轴柱状图，默认从 0 开始 生长。
     */

/**
     * 调整分类 scale 的 range，防止超出坐标系外面
     * @private
     */

/**
     * 调整度量范围。主要针对发生层叠以及一些特殊需求的 Geometry，比如 Interval 下的柱状图 Y 轴默认从 0 开始。
     */

/**
     * 距离椭圆最近的点
     * @param {number} x  椭圆中心 x
     * @param {number} y  椭圆中心 y
     * @param {number} rx 椭圆 x 方向半径
     * @param {number} ry 椭圆 y 方向半径
     * @param {number} x0  指定的点 x
     * @param {number} y0  指定的点 y
     * @return {object} 椭圆上距离指定点最近的点
     */

/**
     * 辅助标记配置。
     *
     * ```ts
     * view.annotation().line({
     *   start: ['min', 85],
     *   end: ['max', 85],
     *   style: {
     *     stroke: '#595959',
     *     lineWidth: 1,
     *     lineDash: [3, 3],
     *   },
     * });
     * ```
     * 更详细的配置项：https://github.com/antvis/component#annotation
     * @returns [[Annotation]]
     */

/**
     * 过滤
     */

/**
     * 过滤数据
     */

/**
     * 过滤隐藏图形
     */

/**
     * 过滤，以开始的点和当前点对数据进行过滤
     */

/**
     * 返回 Element 元素整体的 bbox，包含文本及文本连线（有的话）。
     * @returns 整体包围盒。
     */

/**
     * 返回所有配置信息。
     * @returns 所有的 view API 配置。
     */

/**
     * 进行测量操作
     */

/**
     * 连接 elements
     *
     * @usage
     * registerInteraction('xxx', {
     *   start: [
     *    {
     *      trigger: 'interval:mouseenter',
     *      action: 'element-link-by-color:link',
     *      arg: {
     *        // style: { fill: 'red' }
     *        style: (style, element) => ({ fill: 'red' })
     *     },
     *   },
     *  ],
     * });
     */

/**
     * 选中
     */

/**
     * 选中节点，允许多选
     */

/**
     * 递归处理 view 的布局，最终是计算各个 view 的 coordinateBBox 和 coordinateInstance
     * @param isUpdate
     */

/**
     * 递归渲染中的数据处理
     * @param isUpdate
     */

/**
     * 递归获取所有的 Geometry
     */

/**
     * 递归计算每个 view 的 padding 值，coordinateBBox 和 coordinateInstance
     * @param isUpdate
     */

/**
     * 通过 key 获取 scale
     * @param key
     */

/**
     * 通过 scale 拿到数据对应的原始的参数
     * @param param
     * @param scale
     * @private
     */

/**
     * 遍历 Geometry，处理 legend 逻辑
     * @param doEach 每个 loop 中的处理方法
     */

/**
     * 配置 position 通道映射规则。
     *
     * @example
     * ```typescript
     * // 数据结构: [{ x: 'A', y: 10, color: 'red' }]
     * geometry.position('x*y');
     * geometry.position([ 'x', 'y' ]);
     * geometry.position({
     *   fields: [ 'x', 'y' ],
     * });
     * ```
     *
     * @param cfg 映射规则
     * @returns
     */

/**
     * 重新渲染
     * @param view
     */

/**
     * 重置 matrix
     * @param matrix 如果传入，则使用，否则使用构造函数中传入的默认 matrix
     */

/**
     * 重置，需要全部清理 checked 和 unchecked
     */

/**
     * 重载：定制 interval label 的默认主题配置
     * @param labelCfg
     */

/**
     * 重载：根据 interval 值的正负来调整 label 偏移量
     * @param labelCfg
     * @param index
     * @param total
     */

/**
     * 销毁
     */

/**
     * 销毁 Geometry 实例。
     */

/**
     * 销毁 element 实例。
     */

/**
     * 销毁。
     */

/**
     * 销毁事件
     */

/**
     * 销毁图表，同时解绑事件，销毁创建的 G.Canvas 实例。
     * @returns void
     */

/**
     * 镜像
     * @param dim
     */

/**
     * 阻止冒泡
     */

/**
     * 阻止浏览器默认的行为
     */

/**
     * 隐藏
     */

/**
     * 隐藏 Tooltip。
     * @returns
     */

/**
     * 隐藏 tooltip。
     * @returns View
     */

/**
     * 隐藏。
     */

/**
     * 隐藏同一层级的 tooltip
     * @param view
     */

/**
     * 隐藏组件
     */

/**
     * 需要判断触发的键位和监听的键位完全一致，判断方法就是触发的键位里有且等于监听的键位
     * genLen === genArr.length 能判断出来触发的键位里有监听的键位
     * countKeyByEvent(event) === genArr.length 判断出来触发的键位数量里有且等于监听的键位数量
     * 主要用来防止按组合键其子集也会触发的情况，例如监听 ctrl+a 会触发监听 ctrl 和 a 两个键的事件。
     */

/**
     * 非交互产生的事件
     * @param view
     * @param type
     * @param data
     */

/**
     * 默认光标（通常是一个箭头）
     */

/**
     * 默认的 title 样式，因为有的分面是 title，有的分面配置是 columnTitle、rowTitle
     */

/**
     * 默认的回调函数（用户没有自定义 callback，或者用户自定义 callback 返回空的时候，使用 values 映射）
     * @param params
     */

/**
     * 默认的配置项
     * @returns {object} 默认的配置项
     */

/**
   * @constructor
   * @param {Properties} property
   * @param {Normal} normal
   * @param {string} [space]
   */

/**
   * @constructor
   * @param {string} property
   * @param {string} attribute
   * @param {number|null} [mask]
   * @param {string} [space]
   */

/**
   * @constructor
   * @param {string} property
   * @param {string} attribute
   */

/**
   * @param {Array<Array<string>>} matrix
   * @param {Array<string | null | undefined> | null | undefined} [align]
   */

/**
   * @param {Array<Event>} events
   * @param {number} start
   * @param {number} length
   * @returns {number}
   */

/**
   * @param {Construct} construct
   * @param {number} from
   * @returns {void}
   */

/**
   * @param {InitialConstruct} initial
   */

/**
   * @param {Node} node
   * @param {VFileCompatible|RunCallback} [doc]
   * @param {RunCallback} [callback]
   * @returns {Promise<Node>|void}
   */

/**
   * @param {Node} node
   * @returns {boolean}
   */

/**
   * @param {Node} node
   */

/**
   * @param {Pluggable|null|undefined} [value]
   * @param {...unknown} options
   * @returns {Processor}
   */

/**
   * @param {TableRow} node
   * @param {ToMarkdownContext} context
   * @param {SafeOptions} safeOptions
   */

/**
   * @param {Table} node
   * @param {ToMarkdownContext} context
   * @param {SafeOptions} safeOptions
   */

/**
   * @param {Token} token
   * @param {boolean} [eof]
   * @returns {void}
   */

/**
   * @param {Token} token
   * @returns {ListItem}
   */

/**
   * @param {Token} token
   * @returns {List}
   */

/**
   * @param {VFileCompatible} doc
   * @param {ProcessCallback} [callback]
   * @returns {Promise<VFile>|undefined}
   */

/**
   * @param {Value} value
   * @param {Encoding | Options | null | undefined} [encoding]
   * @param {Options | null | undefined} [options]
   * @returns {Root}
   */

/**
   * @param {number} size
   * @returns {void}
   */

/**
   * @param {string|Record<string, unknown>} [key]
   * @param {unknown} [value]
   * @returns {unknown}
   */

/**
   * @param {string} $0
   * @returns {string}
   */

/**
   * @param {string} content
   */

/**
   * @param {string} field
   * @param {unknown} value
   */

/**
   * @param {string} header
   * @param {string} body
   */

/**
   * @param {string} href
   * @param {string} title
   * @param {string} text
   */

/**
   * @param {string} name
   * @param {string} v
   */

/**
   * @param {string} quote
   */

/**
   * @param {string} text
   * @param {string} level
   * @param {string} raw
   * @param {any} slugger
   */

/**
   * @param {string} text
   */

/**
   * @param {string} value
   */

/**
   * @template {Node} Kind
   *   Node type.
   * @this {CompileContext}
   *   Context.
   * @param {Kind} node
   *   Node to enter.
   * @param {Token} token
   *   Corresponding token.
   * @param {OnEnterError | undefined} [errorHandler]
   *   Handle the case where this token is open, but it is closed by something else.
   * @returns {Kind}
   *   The given node.
   */

/**
   * @this {CompileContext}
   *   Context.
   * @param {Token} token
   *   Corresponding token.
   * @param {OnExitError | undefined} [onExitError]
   *   Handle the case where another token is open.
   * @returns {Node}
   *   The closed node.
   */

/**
   * @this {CompileContext}
   * @returns {string}
   */

/**
   * @this {CompileContext}
   * @returns {void}
   */

/**
   * @this {CompileContext}
   * @type {Handle}
   */

/**
   * @this {unknown}
   * @param {Array<unknown>} parameters
   * @returns {boolean}
   */

/**
   * @this {unknown}
   * @param {unknown} node
   * @param {Array<unknown>} parameters
   * @returns {boolean}
   */

/**
   * @type {(
   *   ((tree: Node, file: VFile|undefined, options?: Options) => Node) &
   *   ((tree: Node, options?: Options) => Node)
   * )}
   */

/**
   * @type {(
   *   ((value: Value, encoding: Encoding, options?: Options | null | undefined) => Root) &
   *   ((value: Value, options?: Options | null | undefined) => Root)
   * )}
   */

/**
   * @type {(
   *   (<Kind extends Node>(test: PredicateTest<Kind>) => AssertPredicate<Kind>) &
   *   ((test?: Test) => AssertAnything)
   * )}
   */

/**
   * @type {(
   *   (<Tree extends Node, Check extends Test>(tree: Tree, test: Check, visitor: BuildVisitor<Tree, Check>, reverse?: boolean | null | undefined) => void) &
   *   (<Tree extends Node>(tree: Tree, visitor: BuildVisitor<Tree>, reverse?: boolean | null | undefined) => void)
   * )}
   */

/**
   * @type {(
   *   (<Tree extends Node>(tree: Tree, find: Find, replace?: Replace | null | undefined, options?: Options | null | undefined) => Tree) &
   *   (<Tree extends Node>(tree: Tree, schema: FindAndReplaceSchema | FindAndReplaceList, options?: Options | null | undefined) => Tree)
   * )}
   **/

/**
   * @type {State}
   **/

/**
   * @type {ToMarkdownHandle}
   * @param {InlineCode} node
   */

/**
   * @type {ToMarkdownHandle}
   * @param {TableCell} node
   */

/**
   * @type {ToMarkdownHandle}
   * @param {Table} node
   */

/**
   * A
   */

/**
   * A faster alternative to `Function#apply`, this function invokes `func`
   * with the `this` binding of `thisArg` and the arguments of `args`.
   *
   * @private
   * @param {Function} func The function to invoke.
   * @param {*} thisArg The `this` binding of `func`.
   * @param {Array} args The arguments to invoke `func` with.
   * @returns {*} Returns the result of `func`.
   */

/**
   * A specialized version of `_.every` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} predicate The function invoked per iteration.
   * @returns {boolean} Returns `true` if all elements pass the predicate check,
   *  else `false`.
   */

/**
   * A specialized version of `_.filter` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} predicate The function invoked per iteration.
   * @returns {Array} Returns the new filtered array.
   */

/**
   * A specialized version of `_.forEachRight` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns `array`.
   */

/**
   * A specialized version of `_.forEach` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns `array`.
   */

/**
   * A specialized version of `_.includes` for arrays without support for
   * specifying an index to search from.
   *
   * @private
   * @param {Array} [array] The array to inspect.
   * @param {*} target The value to search for.
   * @returns {boolean} Returns `true` if `target` is found, else `false`.
   */

/**
   * A specialized version of `_.indexOf` which performs strict equality
   * comparisons of values, i.e. `===`.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */

/**
   * A specialized version of `_.lastIndexOf` which performs strict equality
   * comparisons of values, i.e. `===`.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */

/**
   * A specialized version of `_.map` for arrays without support for iteratee
   * shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns the new mapped array.
   */

/**
   * A specialized version of `_.reduceRight` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @param {*} [accumulator] The initial value.
   * @param {boolean} [initAccum] Specify using the last element of `array` as
   *  the initial value.
   * @returns {*} Returns the accumulated value.
   */

/**
   * A specialized version of `_.reduce` for arrays without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @param {*} [accumulator] The initial value.
   * @param {boolean} [initAccum] Specify using the first element of `array` as
   *  the initial value.
   * @returns {*} Returns the accumulated value.
   */

/**
   * A specialized version of `_.some` for arrays without support for iteratee
   * shorthands.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} predicate The function invoked per iteration.
   * @returns {boolean} Returns `true` if any element passes the predicate check,
   *  else `false`.
   */

/**
   * A specialized version of `baseAggregator` for arrays.
   *
   * @private
   * @param {Array} [array] The array to iterate over.
   * @param {Function} setter The function to set `accumulator` values.
   * @param {Function} iteratee The iteratee to transform keys.
   * @param {Object} accumulator The initial aggregated object.
   * @returns {Function} Returns `accumulator`.
   */

/**
   * ALT
   */

/**
   * APOSTROPHE
   */

/**
   * Adds a change listener. It will be called any time an action is dispatched,
   * and some part of the state tree may potentially have changed. You may then
   * call `getState()` to read the current state tree inside the callback.
   *
   * You may call `dispatch()` from a change listener, with the following
   * caveats:
   *
   * 1. The subscriptions are snapshotted just before every `dispatch()` call.
   * If you subscribe or unsubscribe while the listeners are being invoked, this
   * will not have any effect on the `dispatch()` that is currently in progress.
   * However, the next `dispatch()` call, whether nested or not, will use a more
   * recent snapshot of the subscription list.
   *
   * 2. The listener should not expect to see all state changes, as the state
   * might have been updated multiple times during a nested `dispatch()` before
   * the listener is called. It is, however, guaranteed that all subscribers
   * registered before the `dispatch()` started will be called with the latest
   * state by the time it exits.
   *
   * @param {Function} listener A callback to be invoked on every dispatch.
   * @returns {Function} A function to remove this change listener.
   */

/**
   * Adds a trailing slash to the path
   */

/**
   * Appends the elements of `values` to `array`.
   *
   * @private
   * @param {Array} array The array to modify.
   * @param {Array} values The values to append.
   * @returns {Array} Returns `array`.
   */

/**
   * B
   */

/**
   * BACKSLASH
   */

/**
   * BACKSPACE
   */

/**
   * Breaks a query string down into an array of key/value pairs
   * @param  {string} str query
   * @return {array}      array of arrays (key/value pairs)
   */

/**
   * Breaks a uri string down into its individual parts
   * @param  {string} str uri
   * @return {object}     parts
   */

/**
   * C
   */

/**
   * CAPS_LOCK
   */

/**
   * CLOSE_SQUARE_BRACKET
   */

/**
   * COMMA
   */

/**
   * CONTEXT_MENU
   */

/**
   * CTRL
   */

/**
   * Call `callback`, only once.
   * @type {Callback}
   */

/**
   * Call `done` with one value.
   *
   * @param {any} [value]
   */

/**
   * Call `middleware`.
   * @this {any}
   * @param {Array<any>} parameters
   * @returns {void}
   */

/**
   * Check whether a code matches the bound regex.
   *
   * @param {Code} code Character code
   * @returns {code is number} Whether the character code matches the bound regex
   */

/**
   * Checks if `string` contains Unicode symbols.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {boolean} Returns `true` if a symbol is found, else `false`.
   */

/**
   * Checks if `string` contains a word composed of Unicode symbols.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {boolean} Returns `true` if a word is found, else `false`.
   */

/**
   * Checks if a `cache` value for `key` exists.
   *
   * @private
   * @param {Object} cache The cache to query.
   * @param {string} key The key of the entry to check.
   * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
   */

/**
   * Clone a Uri object
   * @return {Uri} duplicate copy of the Uri
   */

/**
   * Convert string to unique id
   * @param {object} [options]
   * @param {boolean} [options.dryrun] Generates the next unique slug without
   * updating the internal accumulator.
   */

/**
   * Converts `iterator` to an array.
   *
   * @private
   * @param {Object} iterator The iterator to convert.
   * @returns {Array} Returns the converted array.
   */

/**
   * Converts `map` to its key-value pairs.
   *
   * @private
   * @param {Object} map The map to convert.
   * @returns {Array} Returns the key-value pairs.
   */

/**
   * Converts `set` to an array of its values.
   *
   * @private
   * @param {Object} set The set to convert.
   * @returns {Array} Returns the values.
   */

/**
   * Converts `set` to its value-value pairs.
   *
   * @private
   * @param {Object} set The set to convert.
   * @returns {Array} Returns the value-value pairs.
   */

/**
   * Converts `string` to an array.
   *
   * @private
   * @param {string} string The string to convert.
   * @returns {Array} Returns the converted array.
   */

/**
   * Converts a Unicode `string` to an array.
   *
   * @private
   * @param {string} string The string to convert.
   * @returns {Array} Returns the converted array.
   */

/**
   * Converts an ASCII `string` to an array.
   *
   * @private
   * @param {string} string The string to convert.
   * @returns {Array} Returns the converted array.
   */

/**
   * Create a closer handle.
   *
   * @param {Handle} [and]
   *   Optional function to also run.
   * @returns {Handle}
   *   Handle.
   */

/**
   * Create a fatal error associated with the file.
   *
   * Its `fatal` is set to `true` and `file` is set to the current file path.
   * Its added to `file.messages`.
   *
   * > 👉 **Note**: a fatal error means that a file is no longer processable.
   *
   * @param {string | Error | VFileMessage} reason
   *   Reason for message, uses the stack and message of the error if given.
   * @param {Node | NodeLike | Position | Point | null | undefined} [place]
   *   Place in file where the message occurred.
   * @param {string | null | undefined} [origin]
   *   Place in code where the message originates (example:
   *   `'my-package:my-rule'` or `'my-rule'`).
   * @returns {never}
   *   Message.
   * @throws {VFileMessage}
   *   Message.
   */

/**
   * Create a message for `reason` at `place` from `origin`.
   *
   * When an error is passed in as `reason`, the `stack` is copied.
   *
   * @param {string | Error | VFileMessage} reason
   *   Reason for message, uses the stack and message of the error if given.
   *
   *   > 👉 **Note**: you should use markdown.
   * @param {Node | NodeLike | Position | Point | null | undefined} [place]
   *   Place in file where the message occurred.
   * @param {string | null | undefined} [origin]
   *   Place in code where the message originates (example:
   *   `'my-package:my-rule'` or `'my-rule'`).
   * @returns
   *   Instance of `VFileMessage`.
   */

/**
   * Create a new pristine `lodash` function using the `context` object.
   *
   * @static
   * @memberOf _
   * @since 1.1.0
   * @category Util
   * @param {Object} [context=root] The context object.
   * @returns {Function} Returns a new `lodash` function.
   * @example
   *
   * _.mixin({ 'foo': _.constant('foo') });
   *
   * var lodash = _.runInContext();
   * lodash.mixin({ 'bar': lodash.constant('bar') });
   *
   * _.isFunction(_.foo);
   * // => true
   * _.isFunction(_.bar);
   * // => false
   *
   * lodash.isFunction(lodash.foo);
   * // => false
   * lodash.isFunction(lodash.bar);
   * // => true
   *
   * // Create a suped-up `defer` in Node.js.
   * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
   */

/**
   * Create a new virtual file.
   *
   * `options` is treated as:
   *
   * *   `string` or `Buffer` — `{value: options}`
   * *   `URL` — `{path: options}`
   * *   `VFile` — shallow copies its data over to the new file
   * *   `object` — all fields are shallow copied over to the new file
   *
   * Path related fields are set in the following order (least specific to
   * most specific): `history`, `path`, `basename`, `stem`, `extname`,
   * `dirname`.
   *
   * You cannot set `dirname` or `extname` without setting either `history`,
   * `path`, `basename`, or `stem` too.
   *
   * @param {Compatible | null | undefined} [value]
   *   File value.
   * @returns
   *   New instance.
   */

/**
   * Create a warning message associated with the file.
   *
   * Its `fatal` is set to `false` and `file` is set to the current file path.
   * Its added to `file.messages`.
   *
   * @param {string | Error | VFileMessage} reason
   *   Reason for message, uses the stack and message of the error if given.
   * @param {Node | NodeLike | Position | Point | null | undefined} [place]
   *   Place in file where the message occurred.
   * @param {string | null | undefined} [origin]
   *   Place in code where the message originates (example:
   *   `'my-package:my-rule'` or `'my-rule'`).
   * @returns {VFileMessage}
   *   Message.
   */

/**
   * Create an element for `node`.
   *
   * @type {HFunctionProps}
   */

/**
   * Create an info message associated with the file.
   *
   * Its `fatal` is set to `null` and `file` is set to the current file path.
   * Its added to `file.messages`.
   *
   * @param {string | Error | VFileMessage} reason
   *   Reason for message, uses the stack and message of the error if given.
   * @param {Node | NodeLike | Position | Point | null | undefined} [place]
   *   Place in file where the message occurred.
   * @param {string | null | undefined} [origin]
   *   Place in code where the message originates (example:
   *   `'my-package:my-rule'` or `'my-rule'`).
   * @returns {VFileMessage}
   *   Message.
   */

/**
   * Create an opener handle.
   *
   * @param {(token: Token) => Node} create
   *   Create a node.
   * @param {Handle} [and]
   *   Optional function to also run.
   * @returns {Handle}
   *   Handle.
   */

/**
   * Creates a Redux store that holds the state tree.
   * The only way to change the data in the store is to call `dispatch()` on it.
   *
   * There should only be a single store in your app. To specify how different
   * parts of the state tree respond to actions, you may combine several reducers
   * into a single reducer function by using `combineReducers`.
   *
   * @param {Function} reducer A function that returns the next state tree, given
   * the current state tree and the action to handle.
   *
   * @param {any} [preloadedState] The initial state. You may optionally specify it
   * to hydrate the state from the server in universal apps, or to restore a
   * previously serialized user session.
   * If you use `combineReducers` to produce the root reducer function, this must be
   * an object with the same shape as `combineReducers` keys.
   *
   * @param {Function} [enhancer] The store enhancer. You may optionally specify it
   * to enhance the store with third-party capabilities such as middleware,
   * time travel, persistence, etc. The only store enhancer that ships with Redux
   * is `applyMiddleware()`.
   *
   * @returns {Store} A Redux store that lets you read the state, dispatch actions
   * and subscribe to changes.
   */

/**
   * Creates a new Uri object
   * @constructor
   * @param {string} str
   */

/**
   * Creates a unary function that invokes `func` with its argument transformed.
   *
   * @private
   * @param {Function} func The function to wrap.
   * @param {Function} transform The argument transform.
   * @returns {Function} Returns the new function.
   */

/**
   * D
   */

/**
   * DASH
   */

/**
   * DELETE
   */

/**
   * DOM API required.
   * Make sure in browser environment.
   * The Custom Icon will create a <script/>
   * that loads SVG symbols and insert the SVG Element into the document body.
   */

/**
   * DOWN
   */

/**
   * Deal with one code.
   *
   * @param {Code} code
   * @returns {void}
   */

/**
   * Define an increased line shift (the typical indent for lines).
   *
   * @type {TrackShift}
   */

/**
   * Define fluent setter methods (setProtocol, setHasAuthorityPrefix, etc)
   */

/**
   * Define forEach for older js environments
   * @see https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/forEach#Compatibility
   */

/**
   * Define getter/setter methods
   */

/**
   * Discard results.
   *
   * @type {ReturnHandle}
   */

/**
   * Dispatches an action. It is the only way to trigger a state change.
   *
   * The `reducer` function, used to create the store, will be called with the
   * current state tree and the given `action`. Its return value will
   * be considered the **next** state of the tree, and the change listeners
   * will be notified.
   *
   * The base implementation only supports plain object actions. If you want to
   * dispatch a Promise, an Observable, a thunk, or something else, you need to
   * wrap your store creating function into the corresponding middleware. For
   * example, see the documentation for the `redux-thunk` package. Even the
   * middleware will eventually dispatch plain object actions using this method.
   *
   * @param {Object} action A plain object representing “what changed”. It is
   * a good idea to keep actions serializable so you can record and replay user
   * sessions, or use the time travelling `redux-devtools`. An action must have
   * a `type` property which may not be `undefined`. It is a good idea to use
   * string constants for action types.
   *
   * @returns {Object} For convenience, the same action object you dispatched.
   *
   * Note that, if you use a custom middleware, it may wrap `dispatch()` to
   * return something else (for example, a Promise you can await).
   */

/**
   * E
   */

/**
   * EIGHT
   */

/**
   * END
   */

/**
   * ENTER
   */

/**
   * EQUALS
   */

/**
   * ESC
   */

/**
   * Error `msg`.
   *
   * @param {String} msg
   * @throws {Error}
   */

/**
   * Expose Rules
   */

/**
   * F
   */

/**
   * F1
   */

/**
   * F10
   */

/**
   * F11
   */

/**
   * F12
   */

/**
   * F2
   */

/**
   * F3
   */

/**
   * F4
   */

/**
   * F5
   */

/**
   * F6
   */

/**
   * F7
   */

/**
   * F8
   */

/**
   * F9
   */

/**
   * FIVE
   */

/**
   * FOUR
   */

/**
   * Factory to attempt/check/interrupt.
   *
   * @param {ReturnHandle} onreturn
   * @param {Record<string, unknown>} [fields]
   */

/**
   * Finalise the created `right`, a hast node, from `left`, an mdast node.
   *
   * @param {MdastNodeWithData | PositionLike | null | undefined} left
   * @param {HastElementContent} right
   * @returns {HastElementContent}
   */

/**
   * Finds the next safe (unique) slug to use
   * @param {string} originalSlug
   * @param {boolean} isDryRun
   */

/**
   * First time `setInitialValues` should update store with initial value
   */

/**
   * Follow state should not management in State since it will async update by React.
   * This makes first render of form can not get correct state value.
   */

/**
   * G
   */

/**
   * Get data.
   *
   * @template {keyof CompileData} Key
   *   Field type.
   * @param {Key} key
   *   Key of field.
   * @returns {CompileData[Key]}
   *   Value.
   */

/**
   * Get registered field entities.
   * @param pure Only return field which has a `name`. Default: false
   */

/**
   * Get the basename (including extname) (example: `'index.min.js'`).
   */

/**
   * Get the current tracked info.
   *
   * @type {TrackCurrent}
   */

/**
   * Get the extname (including dot) (example: `'.js'`).
   */

/**
   * Get the full path (example: `'~/index.min.js'`).
   *
   * @returns {string}
   */

/**
   * Get the parent path (example: `'~'`).
   */

/**
   * Get the point info of `node` at a bound side.
   *
   * @param {NodeLike | Node | null | undefined} [node]
   * @returns {Point}
   */

/**
   * Get the stem (basename w/o extname) (example: `'index.min'`).
   */

/**
   * Gets the number of `placeholder` occurrences in `array`.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} placeholder The placeholder to search for.
   * @returns {number} Returns the placeholder count.
   */

/**
   * Gets the number of symbols in `string`.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {number} Returns the string size.
   */

/**
   * Gets the size of a Unicode `string`.
   *
   * @private
   * @param {string} string The string inspect.
   * @returns {number} Returns the string size.
   */

/**
   * Gets the size of an ASCII `string`.
   *
   * @private
   * @param {string} string The string inspect.
   * @returns {number} Returns the string size.
   */

/**
   * Gets the value at `key` of `object`.
   *
   * @private
   * @param {Object} [object] The object to query.
   * @param {string} key The key of the property to get.
   * @returns {*} Returns the property value.
   */

/**
   * H
   */

/**
   * HOME
   */

/**
   * Handle one value.
   *
   * Based on the bound `key`, a respective handler will be called.
   * If `value` is not an object, or doesn’t have a `key` property, the special
   * “invalid” handler will be called.
   * If `value` has an unknown `key`, the special “unknown” handler will be
   * called.
   *
   * All arguments, and the context object, are passed through to the handler,
   * and it’s result is returned.
   *
   * @this {unknown}
   *   Any context object.
   * @param {unknown} [value]
   *   Any value.
   * @param {...unknown} parameters
   *   Arbitrary parameters passed to the zwitch.
   * @property {Handler} invalid
   *   Handle for values that do not have a certain ID field.
   * @property {Handler} unknown
   *   Handle values that do have a certain ID field, but it’s set to a value
   *   that is not listed in the `handlers` record.
   * @property {Handlers} handlers
   *   Record of handlers.
   * @returns {unknown}
   *   Anything.
   */

/**
   * I
   */

/**
   * INSERT
   */

/**
   * Interoperability point for observable/reactive libraries.
   * @returns {observable} A minimal observable of state changes.
   * For more information, see the observable proposal:
   * https://github.com/tc39/proposal-observable
   */

/**
   * J
   */

/**
   * K
   */

/**
   * L
   */

/**
   * LEFT
   */

/**
   * Lexing
   */

/**
   * Lexing/Compiling
   */

/**
   * M
   */

/**
   * MAC_ENTER
   */

/**
   * MAC_FF_META
   */

/**
   * META
   */

/**
   * Main loop (note that `_index` and `_bufferIndex` in `point` are modified by
   * `consume`).
   * Here is where we walk through the chunks, which either include strings of
   * several characters, or numerical character codes.
   * The reason to do this in a loop instead of a call is so the stack can
   * drain.
   *
   * @returns {void}
   */

/**
   * Mark position and patch `node.position`.
   *
   * @return {Function}
   */

/**
   * Mark when touched & validated. Currently only used for `dependencies`.
   * Note that we do not think field with `initialValue` is dirty
   * but this will be by `isFieldDirty` func.
   */

/**
   * Match `re` and return captures.
   *
   * @param {RegExp} re
   * @return {undefined|Array}
   */

/**
   * Merge same key when it remove and add again:
   *    [1 - add, 2 - keep, 1 - remove] -> [1 - keep, 2 - keep]
   */

/**
   * Move past some generated markdown.
   *
   * @type {TrackMove}
   */

/**
   * Move the current point a bit forward in the line when it’s on a column
   * skip.
   *
   * @returns {void}
   */

/**
   * N
   */

/**
   * NINE
   */

/**
   * NUMLOCK
   */

/**
   * NUMLOCK on FF/Safari Mac
   */

/**
   * NUM_DIVISION
   */

/**
   * NUM_EIGHT
   */

/**
   * NUM_FIVE
   */

/**
   * NUM_FOUR
   */

/**
   * NUM_MINUS
   */

/**
   * NUM_MULTIPLY
   */

/**
   * NUM_NINE
   */

/**
   * NUM_ONE
   */

/**
   * NUM_PERIOD
   */

/**
   * NUM_PLUS
   */

/**
   * NUM_SEVEN
   */

/**
   * NUM_SIX
   */

/**
   * NUM_THREE
   */

/**
   * NUM_TWO
   */

/**
   * NUM_ZERO
   */

/**
   * Non-enumerable source string.
   */

/**
   * O
   */

/**
   * ONE
   */

/**
   * OPEN_SQUARE_BRACKET
   */

/**
   * P
   */

/**
   * PAGE_DOWN
   */

/**
   * PAGE_UP
   */

/**
   * PAUSE
   */

/**
   * PERIOD
   */

/**
   * PRINT_SCREEN
   */

/**
   * Parse Inline Tokens
   */

/**
   * Parse Loop
   */

/**
   * Parse a date string into a Javascript Date object /
   * @method parse
   * @param {string} dateStr Date string
   * @param {string} format Date parse format
   * @param {i18n} I18nSettingsOptional Full or subset of I18N settings
   * @returns {Date|null} Returns Date object. Returns null what date string is invalid or doesn't match format
   */

/**
   * Parse comment.
   *
   * @return {Object}
   * @throws {Error}
   */

/**
   * Parse comments.
   *
   * @param {Object[]} [rules]
   * @return {Object[]}
   */

/**
   * Parse declaration.
   *
   * @return {Object}
   * @throws {Error}
   */

/**
   * Parse declarations.
   *
   * @return {Object[]}
   */

/**
   * Parse whitespace.
   */

/**
   * Positional.
   */

/**
   * Preprocessing
   */

/**
   * Q
   */

/**
   * QUESTION_MARK
   */

/**
   * R
   */

/**
   * RIGHT
   */

/**
   * Reads the state tree managed by the store.
   *
   * @returns {any} The current state tree of your application.
   */

/**
   * Replaces all `placeholder` elements in `array` with an internal placeholder
   * and returns an array of their indexes.
   *
   * @private
   * @param {Array} array The array to modify.
   * @param {*} placeholder The placeholder to replace.
   * @returns {Array} Returns the new array of placeholder indexes.
   */

/**
   * Replaces the reducer currently used by the store to calculate the state.
   *
   * You might need this if your app implements code splitting and you want to
   * load some of the reducers dynamically. You might also need this if you
   * implement a hot reloading mechanism for Redux.
   *
   * @param {Function} nextReducer The reducer for the store to use instead.
   * @returns {void}
   */

/**
   * Reset Field with field `initialValue` prop.
   * Can pass `entities` or `namePathList` or just nothing.
   */

/**
   * Restore logic:
   *  1. back string same
   *  2. start string same
   */

/**
   * S
   */

/**
   * SEMICOLON
   */

/**
   * SEVEN
   */

/**
   * SHIFT
   */

/**
   * SINGLE_QUOTE
   */

/**
   * SIX
   */

/**
   * SLASH
   */

/**
   * SPACE
   */

/**
   * Same as Mozilla nsIURI.prePath
   * @return {string} scheme://user:password@host:port
   * @see  https://developer.mozilla.org/en/nsIURI
   */

/**
   * Scheme name, colon and doubleslash, as required
   * @return {string} http:// or possibly just //
   */

/**
   * Serialize the file.
   *
   * @param {BufferEncoding | null | undefined} [encoding='utf8']
   *   Character encoding to understand `value` as when it’s a `Buffer`
   *   (default: `'utf8'`).
   * @returns {string}
   *   Serialized file.
   */

/**
   * Serializes the internal state of the Uri object
   * @return {string}
   */

/**
   * Serializes the internal state of the query pairs
   * @param  {string} [val]   set a new query string
   * @return {string}         query string
   */

/**
   * Set basename (including extname) (`'index.min.js'`).
   *
   * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
   * on windows).
   * Cannot be nullified (use `file.path = file.dirname` instead).
   */

/**
   * Set data.
   *
   * @template {keyof CompileData} Key
   *   Field type.
   * @param {Key} key
   *   Key of field.
   * @param {CompileData[Key]} [value]
   *   New value.
   * @returns {void}
   *   Nothing.
   */

/**
   * Set the extname (including dot) (example: `'.js'`).
   *
   * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
   * on windows).
   * Cannot be set if there’s no `path` yet.
   */

/**
   * Set the full path (example: `'~/index.min.js'`).
   *
   * Cannot be nullified.
   * You can set a file URL (a `URL` object with a `file:` protocol) which will
   * be turned into a path with `url.fileURLToPath`.
   *
   * @param {string | URL} path
   */

/**
   * Set the parent path (example: `'~'`).
   *
   * Cannot be set if there’s no `path` yet.
   */

/**
   * Set the stem (basename w/o extname) (example: `'index.min'`).
   *
   * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\'`
   * on windows).
   * Cannot be nullified (use `file.path = file.dirname` instead).
   */

/**
   * Splits a Unicode `string` into an array of its words.
   *
   * @private
   * @param {string} The string to inspect.
   * @returns {Array} Returns the words of `string`.
   */

/**
   * Splits an ASCII `string` into an array of its words.
   *
   * @private
   * @param {string} The string to inspect.
   * @returns {Array} Returns the words of `string`.
   */

/**
   * State and tools for resolving and serializing.
   *
   * @type {TokenizeContext}
   */

/**
   * Static Lex Inline Method
   */

/**
   * Static Lex Method
   */

/**
   * Static Parse Inline Method
   */

/**
   * Static Parse Method
   */

/**
   * Store position information for a node.
   *
   * @constructor
   * @property {Object} start
   * @property {Object} end
   * @property {undefined|String} source
   */

/**
   * Store state.
   *
   * @returns {Info}
   */

/**
   * T
   */

/**
   * TAB
   */

/**
   * THREE
   */

/**
   * TWO
   */

/**
   * Take events and resolve strikethrough.
   *
   * @type {Resolver}
   */

/**
   * The base implementation of `_.findIndex` and `_.findLastIndex` without
   * support for iteratee shorthands.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {Function} predicate The function invoked per iteration.
   * @param {number} fromIndex The index to search from.
   * @param {boolean} [fromRight] Specify iterating from right to left.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */

/**
   * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */

/**
   * The base implementation of `_.isNaN` without support for number objects.
   *
   * @private
   * @param {*} value The value to check.
   * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
   */

/**
   * The base implementation of `_.mean` and `_.meanBy` without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} array The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {number} Returns the mean.
   */

/**
   * The base implementation of `_.propertyOf` without support for deep paths.
   *
   * @private
   * @param {Object} object The object to query.
   * @returns {Function} Returns the new accessor function.
   */

/**
   * The base implementation of `_.property` without support for deep paths.
   *
   * @private
   * @param {string} key The key of the property to get.
   * @returns {Function} Returns the new accessor function.
   */

/**
   * The base implementation of `_.reduce` and `_.reduceRight`, without support
   * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
   *
   * @private
   * @param {Array|Object} collection The collection to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @param {*} accumulator The initial value.
   * @param {boolean} initAccum Specify using the first or last element of
   *  `collection` as the initial value.
   * @param {Function} eachFunc The function to iterate over `collection`.
   * @returns {*} Returns the accumulated value.
   */

/**
   * The base implementation of `_.sortBy` which uses `comparer` to define the
   * sort order of `array` and replaces criteria objects with their corresponding
   * values.
   *
   * @private
   * @param {Array} array The array to sort.
   * @param {Function} comparer The function to define sort order.
   * @returns {Array} Returns `array`.
   */

/**
   * The base implementation of `_.sum` and `_.sumBy` without support for
   * iteratee shorthands.
   *
   * @private
   * @param {Array} array The array to iterate over.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {number} Returns the sum.
   */

/**
   * The base implementation of `_.times` without support for iteratee shorthands
   * or max array length checks.
   *
   * @private
   * @param {number} n The number of times to invoke `iteratee`.
   * @param {Function} iteratee The function invoked per iteration.
   * @returns {Array} Returns the array of results.
   */

/**
   * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array
   * of key-value pairs for `object` corresponding to the property names of `props`.
   *
   * @private
   * @param {Object} object The object to query.
   * @param {Array} props The property names to get values for.
   * @returns {Object} Returns the key-value pairs.
   */

/**
   * The base implementation of `_.trim`.
   *
   * @private
   * @param {string} string The string to trim.
   * @returns {string} Returns the trimmed string.
   */

/**
   * The base implementation of `_.unary` without support for storing metadata.
   *
   * @private
   * @param {Function} func The function to cap arguments for.
   * @returns {Function} Returns the new capped function.
   */

/**
   * The base implementation of `_.values` and `_.valuesIn` which creates an
   * array of `object` property values corresponding to the property names
   * of `props`.
   *
   * @private
   * @param {Object} object The object to query.
   * @param {Array} props The property names to get values for.
   * @returns {Object} Returns the array of property values.
   */

/**
   * The base implementation of methods like `_.findKey` and `_.findLastKey`,
   * without support for iteratee shorthands, which iterates over `collection`
   * using `eachFunc`.
   *
   * @private
   * @param {Array|Object} collection The collection to inspect.
   * @param {Function} predicate The function invoked per iteration.
   * @param {Function} eachFunc The function to iterate over `collection`.
   * @returns {*} Returns the found element or its key, else `undefined`.
   */

/**
   * The state function.
   *
   * @type {State|void}
   */

/**
   * This function is like `arrayIncludes` except that it accepts a comparator.
   *
   * @private
   * @param {Array} [array] The array to inspect.
   * @param {*} target The value to search for.
   * @param {Function} comparator The comparator invoked per element.
   * @returns {boolean} Returns `true` if `target` is found, else `false`.
   */

/**
   * This function is like `baseIndexOf` except that it accepts a comparator.
   *
   * @private
   * @param {Array} array The array to inspect.
   * @param {*} value The value to search for.
   * @param {number} fromIndex The index to search from.
   * @param {Function} comparator The comparator invoked per element.
   * @returns {number} Returns the index of the matched value, else `-1`.
   */

/**
   * This function isn’t really used normally, because we handle rows at the
   * table level.
   * But, if someone passes in a table row, this ensures we make somewhat sense.
   *
   * @type {ToMarkdownHandle}
   * @param {TableRow} node
   */

/**
   * This makes a shallow copy of currentListeners so we can use
   * nextListeners as a temporary list while dispatching.
   *
   * This prevents any bugs around consumers calling
   * subscribe/unsubscribe in the middle of a dispatch.
   */

/**
   * This only trigger when a field is on constructor to avoid we get initialValue too late
   */

/**
   * Tools used for tokenizing.
   *
   * @type {Effects}
   */

/**
   * Track which character we expect to be consumed, to catch bugs.
   *
   * @type {Code}
   */

/**
   * Transform an mdast node into a hast node.
   *
   * @param {MdastNodes} node
   *   mdast node.
   * @param {MdastParents | null | undefined} [parent]
   *   Parent of `node`.
   * @returns {HastElementContent | Array<HastElementContent> | null | undefined}
   *   Resulting hast node.
   */

/**
   * Transform the children of an mdast node into hast nodes.
   *
   * @param {MdastNodes} parent
   *   mdast node to compile
   * @returns {Array<HastElementContent>}
   *   Resulting hast nodes.
   */

/**
   * Turn micromark events into an mdast tree.
   *
   * @param {Array<Event>} events
   *   Events.
   * @returns {Root}
   *   mdast tree.
   */

/**
   * U
   */

/**
   * UP
   */

/**
   * Update lineno and column based on `str`.
   *
   * @param {String} str
   */

/**
   * Use results.
   *
   * @type {ReturnHandle}
   */

/**
   * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
   * letters to basic Latin letters.
   *
   * @private
   * @param {string} letter The matched letter to deburr.
   * @returns {string} Returns the deburred letter.
   */

/**
   * Used by `_.escape` to convert characters to HTML entities.
   *
   * @private
   * @param {string} chr The matched character to escape.
   * @returns {string} Returns the escaped character.
   */

/**
   * Used by `_.template` to escape characters for inclusion in compiled string literals.
   *
   * @private
   * @param {string} chr The matched character to escape.
   * @returns {string} Returns the escaped character.
   */

/**
   * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
   * character of `string`.
   *
   * @private
   * @param {string} string The string to inspect.
   * @returns {number} Returns the index of the last non-whitespace character.
   */

/**
   * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
   * that is not found in the character symbols.
   *
   * @private
   * @param {Array} strSymbols The string symbols to inspect.
   * @param {Array} chrSymbols The character symbols to find.
   * @returns {number} Returns the index of the last unmatched string symbol.
   */

/**
   * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
   * that is not found in the character symbols.
   *
   * @private
   * @param {Array} strSymbols The string symbols to inspect.
   * @param {Array} chrSymbols The character symbols to find.
   * @returns {number} Returns the index of the first unmatched string symbol.
   */

/**
   * Used by `_.unescape` to convert HTML entities to characters.
   *
   * @private
   * @param {string} chr The matched character to unescape.
   * @returns {string} Returns the unescaped character.
   */

/**
   * V
   */

/**
   * W
   */

/**
   * WIN_IME
   */

/**
   * WIN_KEY
   */

/**
   * WIN_KEY_RIGHT
   */

/**
   * X
   */

/**
   * Y
   */

/**
   * Z
   */

/**
   * ZERO
   */

/**
   * [Legacy] Used for inherit other component.
   * It's a bad code style which should be refactor.
   */

/**
   * `alignedClassName` may modify `source` size,
   * which means one time align may not move to the correct position at once.
   *
   * We will reset `alignTimes` for each status switch to `alignPre`
   * and let `rc-align` to align for multiple times to ensure get final stable place.
   * Currently we mark `alignTimes < 2` repeat align, it will increase if user report for align issue.
   * 
   * Update:
   * In React 18. `rc-align` effect of align may faster than ref called trigger `forceAlign`.
   * We adjust this to `alignTimes < 2`.
   * We need refactor `rc-align` to support mark of `forceAlign` call if this still happen.
   */

/**
   * `precision` is used for formatter & onChange.
   * It will auto generate by `value` & `step`.
   * But it will not block user typing.
   *
   * Note: Auto generate `precision` is used for legacy logic.
   * We should remove this since we already support high precision with BigInt.
   *
   * @param number  Provide which number should calculate precision
   * @param userTyping  Change by user typing
   */

/**
   * adds a query parameter
   * @param  {string}  key        add values for key
   * @param  {string}  val        value to add
   * @param  {integer} [index]    specific index to add the value at
   * @return {Uri}                returns self for fluent chaining
   */

/**
   * if there is no protocol, the leading // can be enabled or disabled
   * @param  {Boolean}  val
   * @return {Boolean}
   */

/**
   * removes query parameters
   * @param  {string} key     remove values for key
   * @param  {val}    [val]   remove a specific value, otherwise removes all
   * @return {Uri}            returns self for fluent chaining
   */

/**
   * replaces query param values
   * @param  {string} key         key to replace value for
   * @param  {string} newVal      new value
   * @param  {string} [oldVal]    replace only one specific value (otherwise replaces all)
   * @return {Uri}                returns self for fluent chaining
   */

/**
   * returns an array of query param values for the key
   * @param  {string} key query key
   * @return {array}      array of values
   */

/**
   * returns the first query param value found for the key
   * @param  {string} key query key
   * @return {string}     first value found for key
   */

/**
   * span level renderer
   * @param {string} text
   */

/**
   * test for the existence of a query parameter
   * @param  {string}  key        add values for key
   * @param  {string}  val        value to add
   * @param  {integer} [index]    specific index to add the value at
   * @return {Uri}                returns self for fluent chaining
   */

/**
   * unescape a query param value
   * @param  {string} s encoded value
   * @return {string}   decoded value
   */

/**
   * whether character is entered.
   */

/**
   * whether text and modified key is entered at the same time.
   */

/**
  Merges all epics into a single one.
 */

/**
 *
 * @ignore
 * custom legend 的 items 获取
 * @param themeMarker
 * @param userMarker
 * @param customItems
 */

/**
 *
 * @param direction
 * @param coordinate
 */

/**
 *
 * @param group 分组
 * @param eventName 事件名
 * @param eventObject 事件对象
 */

/**
 *
 * @param styleSheet
 */

/**
 *
 * Animation Frame Scheduler
 *
 * <span class="informal">Perform task when `window.requestAnimationFrame` would fire</span>
 *
 * When `animationFrame` scheduler is used with delay, it will fall back to {@link async} scheduler
 * behaviour.
 *
 * Without delay, `animationFrame` scheduler can be used to create smooth browser animations.
 * It makes sure scheduled task will happen just before next browser content repaint,
 * thus performing animations as efficiently as possible.
 *
 * @example <caption>Schedule div height animation</caption>
 * const div = document.querySelector('.some-div');
 *
 * Rx.Scheduler.schedule(function(height) {
 *   div.style.height = height + "px";
 *
 *   this.schedule(height + 1);  // `this` references currently executing Action,
 *                               // which we reschedule with new state
 * }, 0, 0);
 *
 * // You will see .some-div element growing in height
 *
 *
 * @static true
 * @name animationFrame
 * @owner Scheduler
 */

/**
 *
 * Asap Scheduler
 *
 * <span class="informal">Perform task as fast as it can be performed asynchronously</span>
 *
 * `asap` scheduler behaves the same as {@link async} scheduler when you use it to delay task
 * in time. If however you set delay to `0`, `asap` will wait for current synchronously executing
 * code to end and then it will try to execute given task as fast as possible.
 *
 * `asap` scheduler will do its best to minimize time between end of currently executing code
 * and start of scheduled task. This makes it best candidate for performing so called "deferring".
 * Traditionally this was achieved by calling `setTimeout(deferredTask, 0)`, but that technique involves
 * some (although minimal) unwanted delay.
 *
 * Note that using `asap` scheduler does not necessarily mean that your task will be first to process
 * after currently executing code. In particular, if some task was also scheduled with `asap` before,
 * that task will execute first. That being said, if you need to schedule task asynchronously, but
 * as soon as possible, `asap` scheduler is your best bet.
 *
 * @example <caption>Compare async and asap scheduler</caption>
 *
 * Rx.Scheduler.async.schedule(() => console.log('async')); // scheduling 'async' first...
 * Rx.Scheduler.asap.schedule(() => console.log('asap'));
 *
 * // Logs:
 * // "asap"
 * // "async"
 * // ... but 'asap' goes first!
 *
 * @static true
 * @name asap
 * @owner Scheduler
 */

/**
 *
 * Async Scheduler
 *
 * <span class="informal">Schedule task as if you used setTimeout(task, duration)</span>
 *
 * `async` scheduler schedules tasks asynchronously, by putting them on the JavaScript
 * event loop queue. It is best used to delay tasks in time or to schedule tasks repeating
 * in intervals.
 *
 * If you just want to "defer" task, that is to perform it right after currently
 * executing synchronous code ends (commonly achieved by `setTimeout(deferredTask, 0)`),
 * better choice will be the {@link asap} scheduler.
 *
 * @example <caption>Use async scheduler to delay task</caption>
 * const task = () => console.log('it works!');
 *
 * Rx.Scheduler.async.schedule(task, 2000);
 *
 * // After 2 seconds logs:
 * // "it works!"
 *
 *
 * @example <caption>Use async scheduler to repeat task in intervals</caption>
 * function task(state) {
 *   console.log(state);
 *   this.schedule(state + 1, 1000); // `this` references currently executing Action,
 *                                   // which we reschedule with new state and delay
 * }
 *
 * Rx.Scheduler.async.schedule(task, 3000, 0);
 *
 * // Logs:
 * // 0 after 3s
 * // 1 after 4s
 * // 2 after 5s
 * // 3 after 6s
 *
 * @static true
 * @name async
 * @owner Scheduler
 */

/**
 *
 * Creates an array cache object to store unique values.
 *
 * @private
 * @constructor
 * @param {Array} [values] The values to cache.
 */

/**
 *
 * Errors if Observable does not emit a value in given time span, in case of which
 * subscribes to the second Observable.
 *
 * <span class="informal">It's a version of `timeout` operator that let's you specify fallback Observable.</span>
 *
 * <img src="./img/timeoutWith.png" width="100%">
 *
 * `timeoutWith` is a variation of `timeout` operator. It behaves exactly the same,
 * still accepting as a first argument either a number or a Date, which control - respectively -
 * when values of source Observable should be emitted or when it should complete.
 *
 * The only difference is that it accepts a second, required parameter. This parameter
 * should be an Observable which will be subscribed when source Observable fails any timeout check.
 * So whenever regular `timeout` would emit an error, `timeoutWith` will instead start re-emitting
 * values from second Observable. Note that this fallback Observable is not checked for timeouts
 * itself, so it can emit values and complete at arbitrary points in time. From the moment of a second
 * subscription, Observable returned from `timeoutWith` simply mirrors fallback stream. When that
 * stream completes, it completes as well.
 *
 * Scheduler, which in case of `timeout` is provided as as second argument, can be still provided
 * here - as a third, optional parameter. It still is used to schedule timeout checks and -
 * as a consequence - when second Observable will be subscribed, since subscription happens
 * immediately after failing check.
 *
 * @example <caption>Add fallback observable</caption>
 * const seconds = Rx.Observable.interval(1000);
 * const minutes = Rx.Observable.interval(60 * 1000);
 *
 * seconds.timeoutWith(900, minutes)
 *     .subscribe(
 *         value => console.log(value), // After 900ms, will start emitting `minutes`,
 *                                      // since first value of `seconds` will not arrive fast enough.
 *         err => console.log(err) // Would be called after 900ms in case of `timeout`,
 *                                 // but here will never be called.
 *     );
 *
 * @param {number|Date} due Number specifying period within which Observable must emit values
 *                          or Date specifying before when Observable should complete
 * @param {Observable<T>} withObservable Observable which will be subscribed if source fails timeout check.
 * @param {Scheduler} [scheduler] Scheduler controlling when timeout checks occur.
 * @return {Observable<T>} Observable that mirrors behaviour of source or, when timeout check fails, of an Observable
 *                          passed as a second parameter.
 * @method timeoutWith
 * @owner Observable
 */

/**
 *
 * Errors if Observable does not emit a value in given time span.
 *
 * <span class="informal">Timeouts on Observable that doesn't emit values fast enough.</span>
 *
 * <img src="./img/timeout.png" width="100%">
 *
 * `timeout` operator accepts as an argument either a number or a Date.
 *
 * If number was provided, it returns an Observable that behaves like a source
 * Observable, unless there is a period of time where there is no value emitted.
 * So if you provide `100` as argument and first value comes after 50ms from
 * the moment of subscription, this value will be simply re-emitted by the resulting
 * Observable. If however after that 100ms passes without a second value being emitted,
 * stream will end with an error and source Observable will be unsubscribed.
 * These checks are performed throughout whole lifecycle of Observable - from the moment
 * it was subscribed to, until it completes or errors itself. Thus every value must be
 * emitted within specified period since previous value.
 *
 * If provided argument was Date, returned Observable behaves differently. It throws
 * if Observable did not complete before provided Date. This means that periods between
 * emission of particular values do not matter in this case. If Observable did not complete
 * before provided Date, source Observable will be unsubscribed. Other than that, resulting
 * stream behaves just as source Observable.
 *
 * `timeout` accepts also a Scheduler as a second parameter. It is used to schedule moment (or moments)
 * when returned Observable will check if source stream emitted value or completed.
 *
 * @example <caption>Check if ticks are emitted within certain timespan</caption>
 * const seconds = Rx.Observable.interval(1000);
 *
 * seconds.timeout(1100) // Let's use bigger timespan to be safe,
 *                       // since `interval` might fire a bit later then scheduled.
 * .subscribe(
 *     value => console.log(value), // Will emit numbers just as regular `interval` would.
 *     err => console.log(err) // Will never be called.
 * );
 *
 * seconds.timeout(900).subscribe(
 *     value => console.log(value), // Will never be called.
 *     err => console.log(err) // Will emit error before even first value is emitted,
 *                             // since it did not arrive within 900ms period.
 * );
 *
 * @example <caption>Use Date to check if Observable completed</caption>
 * const seconds = Rx.Observable.interval(1000);
 *
 * seconds.timeout(new Date("December 17, 2020 03:24:00"))
 * .subscribe(
 *     value => console.log(value), // Will emit values as regular `interval` would
 *                                  // until December 17, 2020 at 03:24:00.
 *     err => console.log(err) // On December 17, 2020 at 03:24:00 it will emit an error,
 *                             // since Observable did not complete by then.
 * );
 *
 * @see {@link timeoutWith}
 *
 * @param {number|Date} due Number specifying period within which Observable must emit values
 *                          or Date specifying before when Observable should complete
 * @param {Scheduler} [scheduler] Scheduler controlling when timeout checks occur.
 * @return {Observable<T>} Observable that mirrors behaviour of source, unless timeout checks fail.
 * @method timeout
 * @owner Observable
 */

/**
 *
 * Queue Scheduler
 *
 * <span class="informal">Put every next task on a queue, instead of executing it immediately</span>
 *
 * `queue` scheduler, when used with delay, behaves the same as {@link async} scheduler.
 *
 * When used without delay, it schedules given task synchronously - executes it right when
 * it is scheduled. However when called recursively, that is when inside the scheduled task,
 * another task is scheduled with queue scheduler, instead of executing immediately as well,
 * that task will be put on a queue and wait for current one to finish.
 *
 * This means that when you execute task with `queue` scheduler, you are sure it will end
 * before any other task scheduled with that scheduler will start.
 *
 * @examples <caption>Schedule recursively first, then do something</caption>
 *
 * Rx.Scheduler.queue.schedule(() => {
 *   Rx.Scheduler.queue.schedule(() => console.log('second')); // will not happen now, but will be put on a queue
 *
 *   console.log('first');
 * });
 *
 * // Logs:
 * // "first"
 * // "second"
 *
 *
 * @example <caption>Reschedule itself recursively</caption>
 *
 * Rx.Scheduler.queue.schedule(function(state) {
 *   if (state !== 0) {
 *     console.log('before', state);
 *     this.schedule(state - 1); // `this` references currently executing Action,
 *                               // which we reschedule with new state
 *     console.log('after', state);
 *   }
 * }, 0, 3);
 *
 * // In scheduler that runs recursively, you would expect:
 * // "before", 3
 * // "before", 2
 * // "before", 1
 * // "after", 1
 * // "after", 2
 * // "after", 3
 *
 * // But with queue it logs:
 * // "before", 3
 * // "after", 3
 * // "before", 2
 * // "after", 2
 * // "before", 1
 * // "after", 1
 *
 *
 * @static true
 * @name queue
 * @owner Scheduler
 */

/**
 *
 * Re-emits all notifications from source Observable with specified scheduler.
 *
 * <span class="informal">Ensure a specific scheduler is used, from outside of an Observable.</span>
 *
 * `observeOn` is an operator that accepts a scheduler as a first parameter, which will be used to reschedule
 * notifications emitted by the source Observable. It might be useful, if you do not have control over
 * internal scheduler of a given Observable, but want to control when its values are emitted nevertheless.
 *
 * Returned Observable emits the same notifications (nexted values, complete and error events) as the source Observable,
 * but rescheduled with provided scheduler. Note that this doesn't mean that source Observables internal
 * scheduler will be replaced in any way. Original scheduler still will be used, but when the source Observable emits
 * notification, it will be immediately scheduled again - this time with scheduler passed to `observeOn`.
 * An anti-pattern would be calling `observeOn` on Observable that emits lots of values synchronously, to split
 * that emissions into asynchronous chunks. For this to happen, scheduler would have to be passed into the source
 * Observable directly (usually into the operator that creates it). `observeOn` simply delays notifications a
 * little bit more, to ensure that they are emitted at expected moments.
 *
 * As a matter of fact, `observeOn` accepts second parameter, which specifies in milliseconds with what delay notifications
 * will be emitted. The main difference between {@link delay} operator and `observeOn` is that `observeOn`
 * will delay all notifications - including error notifications - while `delay` will pass through error
 * from source Observable immediately when it is emitted. In general it is highly recommended to use `delay` operator
 * for any kind of delaying of values in the stream, while using `observeOn` to specify which scheduler should be used
 * for notification emissions in general.
 *
 * @example <caption>Ensure values in subscribe are called just before browser repaint.</caption>
 * const intervals = Rx.Observable.interval(10); // Intervals are scheduled
 *                                               // with async scheduler by default...
 *
 * intervals
 * .observeOn(Rx.Scheduler.animationFrame)       // ...but we will observe on animationFrame
 * .subscribe(val => {                           // scheduler to ensure smooth animation.
 *   someDiv.style.height = val + 'px';
 * });
 *
 * @see {@link delay}
 *
 * @param {IScheduler} scheduler Scheduler that will be used to reschedule notifications from source Observable.
 * @param {number} [delay] Number of milliseconds that states with what delay every notification should be rescheduled.
 * @return {Observable<T>} Observable that emits the same notifications as the source Observable,
 * but with provided scheduler.
 *
 * @method observeOn
 * @owner Observable
 */

/**
 *  2012-04-26 yiminghe@gmail.com
 *   - 优化智能对齐算法
 *   - 慎用 resizeXX
 *
 *  2011-07-13 yiminghe@gmail.com note:
 *   - 增加智能对齐，以及大小调整选项
 **/

/**
 *  Encapsulates a validation schema.
 *
 *  @param descriptor An object declaring validation rules
 *  for this schema.
 */

/**
 *  Performs validation for any type.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

/**
 *  Performs validation for string types.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

/**
 *  Rule for validating a regular expression pattern.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param source The source object being validated.
 *  @param errors An array of errors that this rule may add
 *  validation errors to.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

/**
 *  Rule for validating a value exists in an enumerable list.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param source The source object being validated.
 *  @param errors An array of errors that this rule may add
 *  validation errors to.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

/**
 *  Rule for validating minimum and maximum allowed values.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param source The source object being validated.
 *  @param errors An array of errors that this rule may add
 *  validation errors to.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

/**
 *  Rule for validating required fields.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param source The source object being validated.
 *  @param errors An array of errors that this rule may add
 *  validation errors to.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

/**
 *  Rule for validating the type of a value.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param source The source object being validated.
 *  @param errors An array of errors that this rule may add
 *  validation errors to.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

/**
 *  Rule for validating whitespace.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param source The source object being validated.
 *  @param errors An array of errors that this rule may add
 *  validation errors to.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

/**
 *  Validates a boolean.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

/**
 *  Validates a function.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

/**
 *  Validates a number is a floating point number.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

/**
 *  Validates a number is an integer.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

/**
 *  Validates a number.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

/**
 *  Validates a regular expression pattern.
 *
 *  Performs validation when a rule only contains
 *  a pattern property but is not declared as a string type.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

/**
 *  Validates an array.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

/**
 *  Validates an enumerable list.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

/**
 *  Validates an object.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

/**
 *  Validates the regular expression type.
 *
 *  @param rule The validation rule.
 *  @param value The value of the field on the source object.
 *  @param callback The callback function.
 *  @param source The source object being validated.
 *  @param options The validation options.
 *  @param options.messages The validation messages.
 */

/**
 * "Transitionend" event handler.
 *
 * @private
 * @param {TransitionEvent} event
 * @returns {void}
 */

/**
 * 2 Dimensional Vector
 * @module vec2
 */

/**
 * 2x2 Matrix
 * @module mat2
 */

/**
 * 2x3 Matrix
 * @module mat2d
 * @description
 * A mat2d contains six elements defined as:
 * <pre>
 * [a, b,
 *  c, d,
 *  tx, ty]
 * </pre>
 * This is a short form for the 3x3 matrix:
 * <pre>
 * [a, b, 0,
 *  c, d, 0,
 *  tx, ty, 1]
 * </pre>
 * The last column is ignored so the array is shorter and operations are faster.
 */

/**
 * 3 Dimensional Vector
 * @module vec3
 */

/**
 * 3x3 Matrix
 * @module mat3
 */

/**
 * 3阶矩阵同2阶向量相乘
 * @param {number[]} m 矩阵
 * @param {number[]} v 二阶向量
 */

/**
 * 3阶矩阵相乘
 * @param {number[]} a 矩阵1
 * @param {number[]} b 矩阵2
 */

/**
 * 4 Dimensional Vector
 * @module vec4
 */

/**
 * 4x4 Matrix<br>Format: column-major, when typed out it looks like row-major<br>The matrices are being post multiplied.
 * @module mat4
 */

/**
 * @callback AssertAnything
 *   Check that an arbitrary value is a node, unaware of TypeScript inferral.
 * @param {unknown} [node]
 *   Anything (typically a node).
 * @param {number | null | undefined} [index]
 *   The node’s position in its parent.
 * @param {Parent | null | undefined} [parent]
 *   The node’s parent.
 * @returns {boolean}
 *   Whether this is a node and passes a test.
 */

/**
 * @callback Handler
 *   Handle a value, with a certain ID field set to a certain value.
 *   The ID field is passed to `zwitch`, and it’s value is this function’s
 *   place on the `handlers` record.
 * @param {...any} parameters
 *   Arbitrary parameters passed to the zwitch.
 *   The first will be an object with a certain ID field set to a certain value.
 * @returns {any}
 *   Anything!
 */

/**
 * @callback InvalidHandler
 *   Handle values that do not have a certain ID field.
 * @param {unknown} value
 *   Any unknown value.
 * @param {...any} rest
 *   Arbitrary parameters passed to the zwitch.
 * @returns {void|null|undefined|never}
 *   This should crash or return nothing.
 */

/**
 * @callback Preprocessor
 * @param {Value} value
 * @param {Encoding} [encoding]
 * @param {boolean} [end=false]
 * @returns {Array<Chunk>}
 */

/**
 * @callback Transform
 *   Extra transform, to change the AST afterwards.
 * @param {Root} tree
 *   Tree to transform.
 * @returns {Root | undefined | null | void}
 *   New tree or nothing (in which case the current tree is used).
 *
 * @callback Handle
 *   Handle a token.
 * @param {CompileContext} this
 *   Context.
 * @param {Token} token
 *   Current token.
 * @returns {void}
 *   Nothing.
 *
 * @typedef {Record<string, Handle>} Handles
 *   Token types mapping to handles
 *
 * @callback OnEnterError
 *   Handle the case where the `right` token is open, but it is closed (by the
 *   `left` token) or because we reached the end of the document.
 * @param {Omit<CompileContext, 'sliceSerialize'>} this
 *   Context.
 * @param {Token | undefined} left
 *   Left token.
 * @param {Token} right
 *   Right token.
 * @returns {void}
 *   Nothing.
 *
 * @callback OnExitError
 *   Handle the case where the `right` token is open but it is closed by
 *   exiting the `left` token.
 * @param {Omit<CompileContext, 'sliceSerialize'>} this
 *   Context.
 * @param {Token} left
 *   Left token.
 * @param {Token} right
 *   Right token.
 * @returns {void}
 *   Nothing.
 *
 * @typedef {[Token, OnEnterError | undefined]} TokenTuple
 *   Open token on the stack, with an optional error handler for when
 *   that token isn’t closed properly.
 */

/**
 * @callback UnknownHandler
 *   Handle values that do have a certain ID field, but it’s set to a value
 *   that is not listed in the `handlers` record.
 * @param {unknown} value
 *   An object with a certain ID field set to an unknown value.
 * @param {...any} rest
 *   Arbitrary parameters passed to the zwitch.
 * @returns {any}
 *   Anything!
 */

/**
 * @class AnonymousSubject<T>
 */

/**
 * @class Subject<T>
 */

/**
 * @deprecated
 *
 * **We recommend using the `configureStore` method
 * of the `@reduxjs/toolkit` package**, which replaces `createStore`.
 *
 * Redux Toolkit is our recommended approach for writing Redux logic today,
 * including store setup, reducers, data fetching, and more.
 *
 * **For more details, please read this Redux docs page:**
 * **https://redux.js.org/introduction/why-rtk-is-redux-today**
 *
 * `configureStore` from Redux Toolkit is an improved version of `createStore` that
 * simplifies setup and helps avoid common bugs.
 *
 * You should not be using the `redux` core package by itself today, except for learning purposes.
 * The `createStore` method from the core `redux` package will not be removed, but we encourage
 * all users to migrate to using Redux Toolkit for all Redux code.
 *
 * If you want to use `createStore` without this visual deprecation warning, use
 * the `legacy_createStore` import instead:
 *
 * `import { legacy_createStore as createStore} from 'redux'`
 *
 */

/**
 * @deprecated use iterator instead
 */

/**
 * @deprecated use observable instead
 */

/**
 * @deprecated use rxSubscriber instead
 */

/**
 * @desc 更新 label (目前没有根据 id 索引，还是会存在一点小问题的，只能根据 idx 索引)
 * @done shape 属性更新
 * @done shape delete
 * @done shape append
 *
 * @param fromShape old labelShape
 * @param toShape new labelShape
 * @param cfg
 */

/**
 * @description 扩展方法，提供 gl-matrix 为提供的方法
 * */

/**
 * @example
 *   {
 *     "0%": "#afc163",
 *     "75%": "#009900",
 *     "50%": "green", // ====> '#afc163 0%, #66FF00 25%, #00CC00 50%, #009900 75%, #ffffff 100%'
 *     "25%": "#66FF00",
 *     "100%": "#ffffff"
 *   }
 */

/**
 * @file format-time.js
 *
 * Format seconds as a time string, H:MM:SS or M:SS
 * Supplying a guide (in seconds) will force a number of leading zeros
 * to cover the length of the guide
 *
 * @param  {Number} seconds Number of seconds to be turned into a string
 * @param  {Number} guide   Number (in seconds) to model the string after
 * @return {String}         Time formatted as H:MM:SS or M:SS
 * @private
 * @function formatTime
 */

/**
 * @file utils of label
 */

/**
 * @fileoverview G 的基础接口定义和所有的抽象类
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview Marker
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview arrow
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview circle
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview clip
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview defs
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview dom
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview ellipse
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview gradient
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview image
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview line
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview marker
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview path 的一些工具
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview pattern
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview polygon
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview rect
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview shadow
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview text
 * @author dengfuping_develop@163.com
 */

/**
 * @fileoverview 事件处理器
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 判断点是否在多边形内
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 图片
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 圆
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 多边形
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 文本
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 椭圆
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 椭圆的一些计算，
 *  - 周长计算参考：https://www.mathsisfun.com/geometry/ellipse-perimeter.html
 *  - 距离计算参考：https://wet-robots.ghost.io/simple-method-for-distance-to-ellipse/
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 矩形
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 矩阵运算，本来是要引入 gl-matrix, 但是考虑到 g-mobile 对大小有限制，同时 g-webgl 使用的 matrix 不一致
 * 所以，这里仅实现 2D 几个运算，上层自己引入 gl-matrix
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 线
 * @author dxq613@gmail.com
 */

/**
 * @fileoverview 设置画布的箭头，参看：https://www.w3school.com.cn/jsref/prop_style_cursor.asp
 * @author dxq613
 */

/**
 * @function y轴scale的max
 * @param {yScale}
 */

/**
 * @hidden
 */

/**
 * @ignore
 * @param sourceArray
 * @param targetArray
 * @param map
 */

/**
 * @ignore
 * Determines whether between is
 * @param value
 * @param start
 * @param end
 * @returns true if between
 */

/**
 * @ignore
 * Determines whether full circle is
 * @param coordinate
 * @returns true if full circle
 */

/**
 * @ignore
 * Determines whether model is change
 * @param currentModel
 * @param preModel
 * @returns
 */

/**
 * @ignore
 * Draws points
 * @param shape
 * @param cfg
 * @param container
 * @param shapeName
 * @param isStroke
 * @returns points
 */

/**
 * @ignore
 * Finds data from geometry by point
 * @param point canvas point
 * @param data an item of geometry.dataArray
 * @param geometry
 * @returns
 */

/**
 * @ignore
 * G2 默认提供的 layout 函数
 * 内置布局函数处理的逻辑：
 *
 * 1. 如果 padding = 'auto'，那么自动根据组件的 direction 来计算 padding 数组
 * 2. 根据 padding 和 direction 去分配对应方向的 padding 数值
 * 3. 移动组件位置
 *
 * 前面 1，2 步骤在 view 中已经做掉了。对于组件响应式布局，可以尝试使用约束布局的方式去求解位置信息。
 * @param view
 */

/**
 * @ignore
 * Gets arc path
 * @param centerX
 * @param centerY
 * @param radius
 * @param startAngleInRadian
 * @param endAngleInRadian
 * @returns
 */

/**
 * @ignore
 * Gets constraint
 * @param coordinate
 * @returns constraint
 */

/**
 * @ignore
 * Gets cpath
 * @param from
 * @param to
 * @returns
 */

/**
 * @ignore
 * Gets qpath
 * @param to
 * @param center
 * @returns
 */

/**
 * @ignore
 * Gets shape attrs
 * @param cfg
 * @param isStroke
 * @param smooth
 * @param registeredShape
 * @param [constraint]
 * @returns
 */

/**
 * @ignore
 * Gets tooltip items
 * @param data
 * @param geometry
 * @param [title]
 * @returns
 */

/**
 * @ignore
 * Gets x dimension length
 * @param coordinate
 * @returns x dimension length
 */

/**
 * @ignore
 * calculate the chart size
 * @param ele DOM element
 * @param autoFit should auto fit
 * @param width chart width which is set by user
 * @param height chart height which is set by user
 * @returns the chart width and height
 */

/**
 * @ignore
 * get
 * @param coordinate
 * @param xScale
 * @param yScale
 * @param dim
 * @returns items
 */

/**
 * @ignore
 * get axis factor
 * @param coordinate
 * @param direction
 * @returns factor
 */

/**
 * @ignore
 * get axis grid items
 * @param coordinate
 * @param scale
 * @param dim
 * @return items
 */

/**
 * @ignore
 * get axis relative region ( 0 ~ 1) by direction when coordinate is polar
 * @param coordinate
 * @returns axis coordinate region
 */

/**
 * @ignore
 * get axis relative region ( 0 ~ 1) by direction when coordinate is rect
 * @param direction
 * @returns axis coordinate region
 */

/**
 * @ignore
 * get circle axis center and radius
 * @param coordinate
 */

/**
 * @ignore
 * get direction after coordinate translate
 * @param direction
 * @param coordinate
 */

/**
 * @ignore
 * get factor by region (real position)
 * @param region
 * @param center
 * @returns factor
 */

/**
 * @ignore
 * get the axis cfg from theme, will mix the common cfg of legend theme
 *
 * @param theme view theme object
 * @param direction axis direction
 * @returns axis theme cfg
 */

/**
 * @ignore
 * get the axis region from coordinate
 * @param coordinate
 * @param direction
 * @returns the axis region (start point, end point)
 */

/**
 * @ignore
 * get the grid theme by type, will mix the common cfg of axis
 * @param theme
 * @param direction
 * @returns theme object
 */

/**
 * @ignore
 * get the legend items
 * @param view
 * @param geometry
 * @param attr
 * @param themeMarker
 * @param markerCfg
 * @returns legend items
 */

/**
 * @ignore
 * get the legend layout from direction
 * @param direction
 * @returns layout 'horizontal' | 'vertical'
 */

/**
 * @ignore
 * get the mapping value by attribute, if mapping value is nil, return def
 * @param attr
 * @param value
 * @param def
 * @returns get mapping value
 */

/**
 * @ignore
 * get the scale name, if alias exist, return alias, or else field
 * @param scale
 * @returns the name of field
 */

/**
 * @ignore
 * highlight，指定图形高亮，其他图形变暗
 */

/**
 * @ignore
 * label 防遮挡布局：为了防止 label 之间相互覆盖同时保证尽可能多 的 label 展示，通过尝试将 label 向**四周偏移**来剔除放不下的 label
 * @param labels 参与布局调整的 label 数组集合
 */

/**
 * @ignore
 * label 防遮挡布局：在不改变 label 位置的情况下对相互重叠的 label 进行调整。
 * 不同于 'overlap' 类型的布局，该布局不会对 label 的位置进行偏移调整。
 * @param labels 参与布局调整的 label 数组集合
 */

/**
 * @ignore
 * legend Controller
 */

/**
 * @ignore
 * omit keys of an object.
 * @param obj
 * @param keys
 */

/**
 * @ignore
 * padding 的解析逻辑
 * @param padding
 * @return [ top, right, bottom, left ]
 */

/**
 * @ignore
 * pads the current string/array with a given value (repeated, if needed) so that the resulting reaches a given length.
 * The padding is applied from the end of the current value.
 *
 * @param source
 * @param targetLength
 * @param padValue
 * @returns
 */

/**
 * @ignore
 * remove html element from its parent
 * @param dom
 */

/**
 * @ignore
 * show grid or not
 * @param axisTheme
 * @param axisOption
 */

/**
 * @ignore
 * some key-codes definition and utils from closure-library
 * @author yiminghe@gmail.com
 */

/**
 * @ignore
 * whether the axis isVertical
 * @param region
 * @returns isVertical
 */

/**
 * @ignore
 * 为指定的 `field` 字段数据创建 scale
 * @param field 字段名
 * @param [data] 数据集，可为空
 * @param [scaleDef] 列定义，可为空
 * @returns scale 返回创建的 Scale 实例
 */

/**
 * @ignore
 * 从数据模型中的 points 换算角度
 * @param shapeModel
 * @param coordinate
 * @returns
 */

/**
 * @ignore
 * 从配置中获取单个字段的 axis 配置
 * @param axes
 * @param field
 * @returns the axis option of field
 */

/**
 * @ignore
 * 入场
 * 中心点的向四周的生长动画
 * @param element 执行动画的元素
 * @param animateCfg 动画配置
 * @param cfg 额外信息
 */

/**
 * @ignore
 * 入场动画
 * path 的入场动画
 * @param element 执行动画的元素
 * @param animateCfg 动画配置
 * @param cfg 额外信息
 */

/**
 * @ignore
 * 入场动画
 * x 方向的生长
 * @param element 执行动画的元素
 * @param animateCfg 动画配置
 * @param cfg 额外信息
 */

/**
 * @ignore
 * 入场动画
 * y 轴方向上的生长
 * @param element 执行动画的元素
 * @param animateCfg 动画配置
 * @param cfg 额外信息
 */

/**
 * @ignore
 * 分割数据，用于处理在一组点数据中，y 对应的数值存在 null/undefined/NaN 的情况
 * 应用于折线图、区域图以及路径图
 *
 * ```typescript
 * // return [[{x: 1, y: 2}, {x: 3, y: 3}]]
 * getPathPoints([{x: 1, y: 2}, {x: 2, y: null}, {x: 3, y: 3}], true);
 * // return [[{x: 1, y: 2}], [{x: 3, y: 3}]]
 * getPathPoints([{x: 1, y: 2}, {x: 2, y: null}, {x: 3, y: 3}], false);
 * // return [[[{ x: 1, y: 10 }, { x: 2, y: 2 }], [{ x: 9, y: 34 }, { x: 1, y: 1 }]]]
 * getPathPoints([
 *   [{ x: 1, y: 10 }, { x: 2, y: 2 }],
 *   [{ x: 4, y: 2 }, { x: 8, y: NaN }],
 *   [{ x: 9, y: 34 }, { x: 1, y: 1 }],
 * ], true);
 * ```
 *
 * @param points 要进行处理点集合
 * @param connectNulls 是否连接空值数据
 * @param showSinglePoint 是否展示孤立点
 * @returns 返回处理后的点集合
 */

/**
 * @ignore
 * 区域 highlight 的 Action
 */

/**
 * @ignore
 * 单个 shape 动画
 * shape 以自身中心点逐渐放大的进入动画
 * @param shape 参与动画的图形元素
 * @param animateCfg 动画配置
 * @param cfg 额外信息
 */

/**
 * @ignore
 * 单个 shape 动画
 * 消失动画，shape 以自身为中心点的逐渐缩小
 * @param shape 参与动画的图形元素
 * @param animateCfg 动画配置
 * @param cfg 额外信息
 */

/**
 * @ignore
 * 单个 shape 动画
 * 渐现动画
 * @param shape 执行动画的图形元素
 * @param animateCfg 动画配置
 * @param cfg 额外信息
 */

/**
 * @ignore
 * 单个 shape 动画
 * 渐隐动画
 * @param shape 执行动画的图形元素
 * @param animateCfg 动画配置
 * @param cfg 额外信息
 */

/**
 * @ignore
 * 同步 scale
 * @todo 是否可以通过 scale.update() 方法进行更新
 * @param scale 需要同步的 scale 实例
 * @param newScale 同步源 Scale
 */

/**
 * @ignore
 * 坐标点是否在坐标系中
 * @param coordinate
 * @param point
 */

/**
 * @ignore
 * 坐标移动动画
 * @param shape 图形
 * @param animateCfg
 * @param cfg
 */

/**
 * @ignore
 * 如果配置了 position，则使用配置
 * @param axisOption
 * @param def
 */

/**
 * @ignore
 * 对图形元素进行矩阵变换，同时返回变换前的图形矩阵
 * @param shape 进行矩阵变换的图形
 * @param vector 矩阵变换的中心点
 * @param direct 矩阵变换的类型
 */

/**
 * @ignore
 * 将 label 限制在 Plot 范围内，将超出 Plot 范围的 label 可选择进行隐藏或者移动位置
 * @param labels
 * @param cfg
 */

/**
 * @ignore
 * 将 label 限制在画布范围内，简单得将超出画布的 label 往画布内调整
 * @param labels
 * @param cfg
 */

/**
 * @ignore
 * 将归一化后的路径数据转换成坐标
 */

/**
 * @ignore
 * 将点连接成路径 path
 */

/**
 * @ignore
 * 将路径转换为极坐标下的真实路径
 */

/**
 * @ignore
 * 工具函数
 * 根据用户传入的配置为 shape 执行动画
 * @param shape 执行动画的图形元素
 * @param animateCfg 动画配置
 * @param cfg 额外的信息
 */

/**
 * @ignore
 * 执行 Geometry 群组入场动画
 * @param container 执行群组动画的图形元素
 * @param animateCfg 动画配置
 * @param geometryType geometry 类型
 * @param coordinate 坐标系对象
 * @param minYPoint y 轴最小值对应的画布坐标点
 */

/**
 * @ignore
 * 拆分点数据
 * @example
 * // result: [{x: 20, y: 20}, {x: 20, y: 30}]
 * splitPoints({x: 20,y: [20, 30]});
 * @example
 * // result: [{x: 20, y: 20}, {x: 30, y: 30}]
 * splitPoints({x: [20, 30],y: [20, 30]});
 * @param obj
 */

/**
 * @ignore
 * 整体动画
 * 划入入场动画效果
 * @todo 放两张直角坐标系和极坐标系的图
 * @param element 参与动画的图形元素
 * @param animateCfg 动画配置
 * @param cfg 额外信息
 */

/**
 * @ignore
 * 方位常量转实际的 bbox 位置大小
 * @param parentBBox
 * @param bbox
 * @param direction
 */

/**
 * @ignore
 * 是否是自动 padding
 * @param padding
 */

/**
 * @ignore
 * 根据 funnel 关键点绘制漏斗图的 path
 * @param points 图形关键点信息
 * @param nextPoints 下一个数据的图形关键点信息
 * @param isPyramid 是否为尖底漏斗图
 * @returns 返回漏斗图的图形 path
 */

/**
 * @ignore
 * 根据 view 中的组件，计算实际的 padding 数值
 * @param view
 */

/**
 * @ignore
 * 根据关键点获取限定了范围的平滑线
 */

/**
 * @ignore
 * 根据图形元素以及 label 的 bbox 进行调整，如果 label 超出了 shape 的 bbox 则不展示
 */

/**
 * @ignore
 * 根据弧度计算极坐标系下的坐标点
 * @param centerX
 * @param centerY
 * @param radius
 * @param angleInRadian
 * @returns
 */

/**
 * @ignore
 * 根据数据点生成矩形的四个关键点
 * @param pointInfo 数据点信息
 * @param [isPyramid] 是否为尖底漏斗图
 * @returns rect points 返回矩形四个顶点信息
 */

/**
 * @ignore
 * 根据矩形关键点绘制 path
 * @param points 关键点数组
 * @param isClosed path 是否需要闭合
 * @returns 返回矩形的 path
 */

/**
 * @ignore
 * 根据矩形关键点绘制 path
 * @param points 关键点数组
 * @param lineCap 'round'圆角样式
 * @param coor 坐标
 * @returns 返回矩形的 path
 */

/**
 * @ignore
 * 根据角度，获取 ○ 上的点
 * @param center
 * @param r
 * @param angle
 */

/**
 * @ignore
 * 根据起始角度计算绘制扇形的 path
 * @param centerX
 * @param centerY
 * @param radius
 * @param startAngleInRadian
 * @param endAngleInRadian
 * @returns
 */

/**
 * @ignore
 * 沿着 x 方向放大的动画
 * @param shape
 * @param animateCfg
 * @param shapeModel
 */

/**
 * @ignore
 * 沿着 y 方向放大的动画
 * @param shape
 * @param animateCfg
 * @param shapeModel
 */

/**
 * @ignore
 * 清理 highlight 效果
 * @param view View 或者 Chart
 */

/**
 * @ignore
 * 获取 Shape 的图形属性
 * @param cfg
 * @param isStroke 是否需要描边
 * @param isFill 是否需要填充
 * @param [sizeName] 可选，表示图形大小的属性，lineWidth 或者 r
 * @returns
 */

/**
 * @ignore
 * 获取 elementName 对应的动画配置，当声明了 `animateType`，则返回 `animateType` 对应的动画配置
 * @param elementName 元素名称
 * @param coordinate 做表弟类型
 * @param animateType 可选，动画类型
 */

/**
 * @ignore
 * 获取 facet title 的最佳默认配置，防止
 */

/**
 * @ignore
 * 获取同坐标系范围相同的剪切区域
 * @param coordinate
 * @returns
 */

/**
 * @ignore
 * 获取当前点到坐标系圆心的距离
 * @param coordinate 坐标系
 * @param point 当前点
 * @returns distance to center
 */

/**
 * @ignore
 * 获取点到圆心的连线与水平方向的夹角
 */

/**
 * @ignore
 * 获取需要替换的属性，如果原先图形元素存在，而新图形不存在，则设置 undefined
 */

/**
 * @ignore
 * 计算光滑的贝塞尔曲线
 */

/**
 * @ignore
 * 计算多边形重心: https://en.wikipedia.org/wiki/Centroid#Of_a_polygon
 */

/**
 * @ignore
 * 设置多个元素的 highlight
 * @param elements 元素集合
 * @param callback 设置回调函数
 * @param enable 设置或者取消
 */

/**
 * @ignore
 * 贝塞尔曲线
 */

/**
 * @ignore
 * 饼图更新动画
 * @param shape 文本图形
 * @param animateCfg
 * @param cfg
 */

/**
 * @ignore
 */

/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */

/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/**
 * @method shareReplay
 * @owner Observable
 */

/**
 * @param bufferSize
 * @param windowTime
 * @param selectorOrScheduler
 * @param scheduler
 * @return {Observable<T> | ConnectableObservable<T>}
 * @method publishReplay
 * @owner Observable
 */

/**
 * @param el
 * @param tgtRegion 参照节点所占的区域: { left, top, width, height }
 * @param align
 */

/**
 * @param func
 * @return {Observable<R>}
 * @method let
 * @owner Observable
 */

/**
 * @param observables
 * @return {Observable<R>}
 * @method zip
 * @owner Observable
 */

/**
 * @param project
 * @return {Observable<R>|WebSocketSubject<T>|Observable<T>}
 * @method zipAll
 * @owner Observable
 */

/**
 * @param scheduler
 * @return {Observable<TimeInterval<any>>|WebSocketSubject<T>|Observable<T>}
 * @method timeInterval
 * @owner Observable
 */

/**
 * @param scheduler
 * @return {Observable<Timestamp<any>>|WebSocketSubject<T>|Observable<T>}
 * @method timestamp
 * @owner Observable
 */

/**
 * @param value
 *   Markdown to parse.
 * @param encoding
 *   Character encoding for when `value` is `Buffer`.
 * @param options
 *   Configuration.
 * @returns
 *   mdast tree.
 */

/**
 * @param value
 * @return {ConnectableObservable<T>}
 * @method publishBehavior
 * @owner Observable
 */

/**
 * @param { Promise } promise
 * @param { Object= } errorExt - Additional Information you can pass to the err object
 * @return { Promise }
 */

/**
 * @param {'string'|'text'} field
 * @returns {InitialConstruct}
 */

/**
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {Function} [fn] The function to customize comparisons.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * function isGreeting(value) {
 *   return /^h(?:i|ello)$/.test(value);
 * }
 *
 * function customizer(objValue, othValue) {
 *   if (isGreeting(objValue) && isGreeting(othValue)) {
 *     return true;
 *   }
 * }
 *
 * var array = ['hello', 'goodbye'];
 * var other = ['hi', 'goodbye'];
 *
 * isEqualWith(array, other, customizer);  // => true
 */

/**
 * @param {Array<ConstructName>} stack
 * @param {Unsafe['inConstruct']} list
 * @param {boolean} none
 * @returns {boolean}
 */

/**
 * @param {Array<ConstructName>} stack
 * @param {Unsafe} pattern
 * @returns {boolean}
 */

/**
 * @param {Array<Content>} nodes
 * @param {HChild} value
 * @returns {void}
 */

/**
 * @param {Array<Event>} events
 * @returns {Array<Event>}
 */

/**
 * @param {Array<Event>} events
 * @returns {boolean}
 */

/**
 * @param {Array<string | Props | TestFunctionAnything>} tests
 * @returns {AssertAnything}
 */

/**
 * @param {Array} arr The array to iterate over.
 * @param {Function} [fn] The iteratee invoked per element.
 * @return {*} Returns the maximum value.
 * @example
 *
 * var objects = [{ 'n': 1 }, { 'n': 2 }];
 *
 * maxBy(objects, function(o) { return o.n; });
 * // => { 'n': 2 }
 *
 * maxBy(objects, 'n');
 * // => { 'n': 2 }
 */

/**
 * @param {Array} arr The array to iterate over.
 * @param {Function} [fn] The iteratee invoked per element.
 * @return {*} Returns the minimum value.
 * @example
 *
 * var objects = [{ 'n': 1 }, { 'n': 2 }];
 *
 * minBy(objects, function(o) { return o.n; });
 * // => { 'n': 1 }
 *
 * minBy(objects, 'n');
 * // => { 'n': 1 }
 */

/**
 * @param {Array} arr The array to iterate over.
 * @return {*} Returns the maximum value.
 * @example
 *
 * max([1, 2]);
 * // => 2
 *
 * max([]);
 * // => undefined
 *
 * const data = new Array(1250010).fill(1).map((d,idx) => idx);
 *
 * max(data);
 * // => 1250010
 * // Math.max(...data) will encounter "Maximum call stack size exceeded" error
 */

/**
 * @param {Array} arr The array to iterate over.
 * @return {*} Returns the minimum value.
 * @example
 *
 * min([1, 2]);
 * // => 1
 *
 * min([]);
 * // => undefined
 *
 * const data = new Array(1250010).fill(1).map((d,idx) => idx);
 *
 * min(data);
 * // => 1250010
 * // Math.min(...data) will encounter "Maximum call stack size exceeded" error
 */

/**
 * @param {Code} code
 * @returns {boolean}
 */

/**
 * @param {Comment} node
 * @returns {P5Comment}
 */

/**
 * @param {Config} combined
 * @param {Array<Extension | Array<Extension>>} extensions
 * @returns {void}
 */

/**
 * @param {Config} combined
 * @param {Extension} extension
 * @returns {void}
 */

/**
 * @param {Context} context
 * @param {Element|Root} node
 */

/**
 * @param {Context} context
 * @param {Element} node
 * @param {number} index
 * @param {Element|Root} parent
 */

/**
 * @param {DefinedInfo} values
 * @param {string} key
 * @param {unknown} value
 */

/**
 * @param {Definition} definition
 * @returns {Schema}
 */

/**
 * @param {Doctype} node
 * @returns {P5Doctype}
 */

/**
 * @param {Effects} effects
 * @param {State} ok
 * @param {State} nok
 * @param {string} type
 * @param {string} literalType
 * @param {string} literalMarkerType
 * @param {string} rawType
 * @param {string} stringType
 * @param {number} [max=Infinity]
 * @returns {State}
 */

/**
 * @param {Effects} effects
 * @param {State} ok
 * @param {State} nok
 * @param {string} type
 * @param {string} markerType
 * @param {string} stringType
 * @returns {State}
 */

/**
 * @param {Effects} effects
 * @param {State} ok
 * @param {string} type
 * @param {number} [max=Infinity]
 * @returns {State}
 */

/**
 * @param {Effects} effects
 * @param {State} ok
 */

/**
 * @param {Element|Root} node
 * @returns {Element?}
 */

/**
 * @param {Element|Root} parent
 * @param {Element} [node]
 * @returns {number}
 */

/**
 * @param {Element} node
 * @param {Schema} schema
 *   Current schema.
 * @returns {P5Element}
 *   `parse5` node.
 */

/**
 * @param {Element} node
 * @returns {Array<P5Attribute>}
 */

/**
 * @param {Element} node
 * @returns {HiddenToken}
 */

/**
 * @param {HProperties | HChild} value
 * @param {string} name
 * @returns {value is HProperties}
 */

/**
 * @param {InlineCode} node
 * @param {Parent | undefined} _
 * @param {State} state
 * @returns {string}
 */

/**
 * @param {ListItem} node
 * @param {Parent | undefined} parent
 * @param {State} state
 * @param {Info} info
 * @returns {string}
 */

/**
 * @param {ListItem} node
 * @return {Boolean}
 */

/**
 * @param {Node|Stitch} node
 * @returns {P5Location}
 */

/**
 * @param {Node} left
 * @param {Node} right
 * @param {Parent} parent
 * @param {State} state
 * @returns {string}
 */

/**
 * @param {Node} node
 * @returns {boolean}
 */

/**
 * @param {Node} node
 */

/**
 * @param {Options} [options]
 * @returns {Extension}
 */

/**
 * @param {Parent & {children: Array<FlowContent>}} parent
 *   Parent of flow nodes.
 * @param {State} state
 *   Info passed around about the current state.
 * @param {TrackFields} info
 *   Info on where we are in the document we are generating.
 * @returns {string}
 *   Serialized children, joined by (blank) lines.
 */

/**
 * @param {Parents} node
 * @return {Boolean}
 */

/**
 * @param {ParseOptions} [options]
 * @returns {ParseContext}
 */

/**
 * @param {Point | PointLike | null | undefined} point
 * @returns {string}
 */

/**
 * @param {Position | PositionLike | null | undefined} pos
 * @returns {string}
 */

/**
 * @param {Position|{start: {line: null, column: null, offset: null}, end: {line: null, column: null, offset: null}}} pos
 * @returns {string}
 */

/**
 * @param {Record<string, string>} attributes
 * @param {string} attribute
 * @returns {string}
 */

/**
 * @param {Record<string, string>} attributes
 * @param {string} property
 * @returns {string}
 */

/**
 * @param {Record<string, unknown>} props
 * @param {string} prop
 * @param {unknown} value
 * @param {Context} ctx
 */

/**
 * @param {RegExpMatchObject} match
 * @param {boolean | null | undefined} [email=false]
 * @returns {boolean}
 */

/**
 * @param {Resolver} [extraResolver]
 * @returns {Resolver}
 */

/**
 * @param {Root} node
 * @param {Schema} schema
 *   Current schema.
 * @returns {P5Document}
 */

/**
 * @param {Root} node
 * @param {Schema} schema
 *   Current schema.
 * @returns {P5Fragment}
 */

/**
 * @param {Schema[]} definitions
 * @param {string} [space]
 * @returns {Schema}
 */

/**
 * @param {Schema} schema
 * @param {Properties} properties
 * @param {string} key
 * @param {HStyle | HPropertyValue} value
 * @returns {void}
 */

/**
 * @param {Schema} schema
 * @param {string} defaultTagName
 * @param {Array<string>} [caseSensitive]
 */

/**
 * @param {Schema} schema
 * @param {string} value
 * @returns {Info}
 */

/**
 * @param {State} state
 * @returns {Exclude<Options['bullet'], null | undefined>}
 */

/**
 * @param {State} state
 * @returns {Exclude<Options['listItemIndent'], null | undefined>}
 */

/**
 * @param {String} style
 * @param {Object} [options]
 * @return {Object[]}
 * @throws {TypeError}
 * @throws {Error}
 */

/**
 * @param {Text} node
 * @returns {P5Text}
 */

/**
 * @param {Unsafe} pattern
 * @returns {RegExp}
 */

/**
 * @param {VFileCompatible} [value]
 * @returns {VFile}
 */

/**
 * @param {VFileCompatible} [value]
 * @returns {value is VFile}
 */

/**
 * @param {VFile|Options|undefined} value
 * @return {value is Options}
 */

/**
 * @param {any} obj The object to inspect.
 * @returns {boolean} True if the argument appears to be a plain object.
 */

/**
 * @param {boolean} sanitize
 * @param {string} base
 * @param {string} href
 */

/**
 * @param {number | null | undefined} value
 * @returns {number}
 */

/**
 * @param {number} a
 * @param {number} b
 * @returns {number}
 */

/**
 * @param {string | RegExp} regex
 * @param {string} opt
 */

/**
 * @param {string | URL} path
 *   File URL.
 * @returns {string}
 *   File URL.
 */

/**
 * @param {string | null | undefined} [value]
 * @returns {string}
 */

/**
 * @param {string|null|undefined} [value]
 * @returns {string}
 */

/**
 * @param {string|null|undefined} value
 * @returns {number}
 */

/**
 * @param {string} $0
 * @param {string} $1
 * @param {string} $2
 * @returns {string}
 */

/**
 * @param {string} $0
 * @param {string} $1
 * @returns {string}
 */

/**
 * @param {string} $0
 * @returns {string}
 */

/**
 * @param {string} base
 * @param {string} href
 */

/**
 * @param {string} d
 * @returns {string}
 */

/**
 * @param {string} domain
 * @returns {boolean}
 */

/**
 * @param {string} html
 */

/**
 * @param {string} pattern
 * @param {number} count
 */

/**
 * @param {string} uri
 * @returns {string}
 */

/**
 * @param {string} url
 * @returns {[string, string | undefined]}
 */

/**
 * @param {string} value
 *   Line to trim.
 * @param {boolean} start
 *   Whether to trim the start of the line.
 * @param {boolean} end
 *   Whether to trim the end of the line.
 * @returns {string}
 *   Trimmed line.
 */

/**
 * @param {string} value
 * @param {string} after
 * @returns {string}
 */

/**
 * @param {string} value
 * @returns {Record<string, string>}
 */

/**
 * @param {string} value
 * @returns {number}
 */

/**
 * @param {string} value
 * @returns {string|false}
 */

/**
 * @param {string} value
 * @returns {string}
 */

/**
 * @param {unknown} [value]
 * @returns {value is VFileValue}
 */

/**
 * @param {unknown} _
 * @param {string} $1
 */

/**
 * @private
 * 1. 获取投影轴
 */

/**
 * @private
 * 2. 获取多边形在投影轴上的投影
 *
 * 向量的点积的其中一个几何含义是：一个向量在平行于另一个向量方向上的投影的数值乘积。
 * 由于投影轴是单位向量（长度为1），投影的长度为 x1 * x2 + y1 * y2
 */

/**
 * @private
 * 绕指定点顺时针旋转后的点坐标
 * 默认绕原点旋转
 */

/**
 * @private
 * 转化为顶点坐标数组
 *
 * @param {Object} box
 */

/**
 * @return {ConnectableObservable<T>}
 * @method publishLast
 * @owner Observable
 */

/**
 * @returns {Extension}
 */

/**
 * @returns {Preprocessor}
 */

/**
 * @returns {Processor}
 */

/**
 * @returns {string}
 */

/**
 * @see {@link ajax}
 *
 * @class AjaxTimeoutError
 */

/**
 * @template T
 * @typedef {import('react').ComponentPropsWithoutRef<T>} ComponentPropsWithoutRef<T>
 */

/**
 * @template T
 * @typedef {import('react').ComponentType<T>} ComponentType<T>
 */

/**
 * @template {InvalidHandler} [Invalid=InvalidHandler]
 * @template {UnknownHandler} [Unknown=UnknownHandler]
 * @template {Record<string, Handler>} [Handlers=Record<string, Handler>]
 * @typedef Options
 *   Configuration (required).
 * @property {Invalid} [invalid]
 *   Handler to use for invalid values.
 * @property {Unknown} [unknown]
 *   Handler to use for unknown values.
 * @property {Handlers} [handlers]
 *   Handlers to use.
 */

/**
 * @template {Node} Kind
 *   Node type.
 * @typedef {Kind['type'] | Partial<Kind> | TestFunctionPredicate<Kind> | Array<Kind['type'] | Partial<Kind> | TestFunctionPredicate<Kind>>} PredicateTest
 *   Check for a node that can be inferred by TypeScript.
 */

/**
 * @template {Node} [Tree=Node]
 *   Tree type.
 * @template {Test} [Check=string]
 *   Test type.
 * @typedef {Visitor<import('./complex-types.js').Matches<import('./complex-types.js').InclusiveDescendant<Tree>, Check>, Extract<import('./complex-types.js').InclusiveDescendant<Tree>, Parent>>} BuildVisitor
 *   Build a typed `Visitor` function from a tree and a test.
 *
 *   It will infer which values are passed as `node` and which as `parents`.
 */

/**
 * @template {Node} [Visited=Node]
 *   Visited node type.
 * @template {Parent} [Ancestor=Parent]
 *   Ancestor type.
 * @callback Visitor
 *   Handle a node (matching `test`, if given).
 *
 *   Visitors are free to transform `node`.
 *   They can also transform `parent`.
 *
 *   Replacing `node` itself, if `SKIP` is not returned, still causes its
 *   descendants to be walked (which is a bug).
 *
 *   When adding or removing previous siblings of `node` (or next siblings, in
 *   case of reverse), the `Visitor` should return a new `Index` to specify the
 *   sibling to traverse after `node` is traversed.
 *   Adding or removing next siblings of `node` (or previous siblings, in case
 *   of reverse) is handled as expected without needing to return a new `Index`.
 *
 *   Removing the children property of `parent` still results in them being
 *   traversed.
 * @param {Visited} node
 *   Found node.
 * @param {Visited extends Node ? number | null : never} index
 *   Index of `node` in `parent`.
 * @param {Ancestor extends Node ? Ancestor | null : never} parent
 *   Parent of `node`.
 * @returns {VisitorResult}
 *   What to do next.
 *
 *   An `Index` is treated as a tuple of `[CONTINUE, Index]`.
 *   An `Action` is treated as a tuple of `[Action]`.
 *
 *   Passing a tuple back only makes sense if the `Action` is `SKIP`.
 *   When the `Action` is `EXIT`, that action can be returned.
 *   When the `Action` is `CONTINUE`, `Index` can be returned.
 */

/**
 * @template {Node} [Visited=Node]
 *   Visited node type.
 * @template {Parent} [Ancestor=Parent]
 *   Ancestor type.
 * @callback Visitor
 *   Handle a node (matching `test`, if given).
 *
 *   Visitors are free to transform `node`.
 *   They can also transform the parent of node (the last of `ancestors`).
 *
 *   Replacing `node` itself, if `SKIP` is not returned, still causes its
 *   descendants to be walked (which is a bug).
 *
 *   When adding or removing previous siblings of `node` (or next siblings, in
 *   case of reverse), the `Visitor` should return a new `Index` to specify the
 *   sibling to traverse after `node` is traversed.
 *   Adding or removing next siblings of `node` (or previous siblings, in case
 *   of reverse) is handled as expected without needing to return a new `Index`.
 *
 *   Removing the children property of an ancestor still results in them being
 *   traversed.
 * @param {Visited} node
 *   Found node.
 * @param {Array<Ancestor>} ancestors
 *   Ancestors of `node`.
 * @returns {VisitorResult}
 *   What to do next.
 *
 *   An `Index` is treated as a tuple of `[CONTINUE, Index]`.
 *   An `Action` is treated as a tuple of `[Action]`.
 *
 *   Passing a tuple back only makes sense if the `Action` is `SKIP`.
 *   When the `Action` is `EXIT`, that action can be returned.
 *   When the `Action` is `CONTINUE`, `Index` can be returned.
 */

/**
 * @template {ReporterSettings} Settings
 *   Options type.
 * @callback Reporter
 *   Type for a reporter.
 * @param {Array<VFile>} files
 *   Files to report.
 * @param {Settings} options
 *   Configuration.
 * @returns {string}
 *   Report.
 */

/**
 * @this {CompileContext}
 * @type {FromMarkdownHandle}
 */

/**
 * @this {TokenizeContext}
 * @param {Effects} effects
 * @param {State} ok
 * @param {State} nok
 * @param {string} type
 * @param {string} markerType
 * @param {string} stringType
 * @returns {State}
 */

/**
 * @todo Whether it can(or necessary to) keep consistent with the structure of G.Event or directly use the structure of G.Event
 * G2 事件的事件包装类，基于 G.Event
 */

/**
 * @type {Exiter}
 * @this {TokenizeContextWithState}
 */

/**
 * @type {IndentLines}
 */

/**
 * @type {ReplaceFunction}
 * @param {string} _
 * @param {string} atext
 * @param {string} label
 * @param {RegExpMatchObject} match
 * @returns {Link | false}
 */

/**
 * @type {ReplaceFunction}
 * @param {string} _
 * @param {string} protocol
 * @param {string} domain
 * @param {string} path
 * @param {RegExpMatchObject} match
 * @returns {Link | Array<PhrasingContent> | false}
 */

/**
 * @type {ToMarkdownHandle}
 * @param {Delete} node
 */

/**
 * @type {ToMarkdownHandle}
 * @param {FootnoteDefinition} node
 */

/**
 * @type {ToMarkdownHandle}
 * @param {FootnoteReference} node
 */

/**
 * @type {ToMarkdownHandle}
 * @param {ListItem} node
 */

/**
 * @type {Tokenizer}
 * @this {TokenizeContextWithState}
 */

/**
 * @type {import('unified').Plugin<[Options], Root>}
 */

/**
 * @typedef Config
 *   Configuration.
 *
 *   We have our defaults, but extensions will add more.
 * @property {Array<string>} canContainEols
 *   Token types where line endings are used.
 * @property {Handles} enter
 *   Opening handles.
 * @property {Handles} exit
 *   Closing handles.
 * @property {Array<Transform>} transforms
 *   Tree transforms.
 *
 * @typedef {Partial<Config>} Extension
 *   Change how markdown tokens from micromark are turned into mdast.
 *
 * @typedef CompileContext
 *   mdast compiler context.
 * @property {Array<Node | Fragment>} stack
 *   Stack of nodes.
 * @property {Array<TokenTuple>} tokenStack
 *   Stack of tokens.
 * @property {<Key extends keyof CompileData>(key: Key) => CompileData[Key]} getData
 *   Get data from the key/value store.
 * @property {<Key extends keyof CompileData>(key: Key, value?: CompileData[Key]) => void} setData
 *   Set data into the key/value store.
 * @property {(this: CompileContext) => void} buffer
 *   Capture some of the output data.
 * @property {(this: CompileContext) => string} resume
 *   Stop capturing and access the output data.
 * @property {<Kind extends Node>(this: CompileContext, node: Kind, token: Token, onError?: OnEnterError) => Kind} enter
 *   Enter a token.
 * @property {(this: CompileContext, token: Token, onError?: OnExitError) => Node} exit
 *   Exit a token.
 * @property {TokenizeContext['sliceSerialize']} sliceSerialize
 *   Get the string value of a token.
 * @property {Config} config
 *   Configuration.
 *
 * @typedef FromMarkdownOptions
 *   Configuration for how to build mdast.
 * @property {Array<Extension | Array<Extension>> | null | undefined} [mdastExtensions]
 *   Extensions for this utility to change how tokens are turned into a tree.
 *
 * @typedef {ParseOptions & FromMarkdownOptions} Options
 *   Configuration.
 */

/**
 * @typedef Info
 * @property {() => void} restore
 * @property {number} from
 *
 * @callback ReturnHandle
 *   Handle a successful run.
 * @param {Construct} construct
 * @param {Info} info
 * @returns {void}
 */

/**
 * @typedef NodeLike
 * @property {string} type
 * @property {PositionLike | null | undefined} [position]
 *
 * @typedef PositionLike
 * @property {PointLike | null | undefined} [start]
 * @property {PointLike | null | undefined} [end]
 *
 * @typedef PointLike
 * @property {number | null | undefined} [line]
 * @property {number | null | undefined} [column]
 * @property {number | null | undefined} [offset]
 */

/**
 * @typedef Options
 *   Configuration (optional).
 * @property {boolean} [singleTilde=true]
 *   Whether to support strikethrough with a single tilde (`boolean`, default:
 *   `true`).
 *   Single tildes work on github.com, but are technically prohibited by the
 *   GFM spec.
 */

/**
 * @typedef Options
 *   Configuration (optional).
 * @property {string|null|ReadonlyArray<string|null|undefined>} [align]
 *   One style for all columns, or styles for their respective columns.
 *   Each style is either `'l'` (left), `'r'` (right), or `'c'` (center).
 *   Other values are treated as `''`, which doesn’t place the colon in the
 *   alignment row but does align left.
 *   *Only the lowercased first character is used, so `Right` is fine.*
 * @property {boolean} [padding=true]
 *   Whether to add a space of padding between delimiters and cells.
 *
 *   When `true`, there is padding:
 *
 *   ```markdown
 *   | Alpha | B     |
 *   | ----- | ----- |
 *   | C     | Delta |
 *   ```
 *
 *   When `false`, there is no padding:
 *
 *   ```markdown
 *   |Alpha|B    |
 *   |-----|-----|
 *   |C    |Delta|
 *   ```
 * @property {boolean} [delimiterStart=true]
 *   Whether to begin each row with the delimiter.
 *
 *   > 👉 **Note**: please don’t use this: it could create fragile structures
 *   > that aren’t understandable to some markdown parsers.
 *
 *   When `true`, there are starting delimiters:
 *
 *   ```markdown
 *   | Alpha | B     |
 *   | ----- | ----- |
 *   | C     | Delta |
 *   ```
 *
 *   When `false`, there are no starting delimiters:
 *
 *   ```markdown
 *   Alpha | B     |
 *   ----- | ----- |
 *   C     | Delta |
 *   ```
 * @property {boolean} [delimiterEnd=true]
 *   Whether to end each row with the delimiter.
 *
 *   > 👉 **Note**: please don’t use this: it could create fragile structures
 *   > that aren’t understandable to some markdown parsers.
 *
 *   When `true`, there are ending delimiters:
 *
 *   ```markdown
 *   | Alpha | B     |
 *   | ----- | ----- |
 *   | C     | Delta |
 *   ```
 *
 *   When `false`, there are no ending delimiters:
 *
 *   ```markdown
 *   | Alpha | B
 *   | ----- | -----
 *   | C     | Delta
 *   ```
 * @property {boolean} [alignDelimiters=true]
 *   Whether to align the delimiters.
 *   By default, they are aligned:
 *
 *   ```markdown
 *   | Alpha | B     |
 *   | ----- | ----- |
 *   | C     | Delta |
 *   ```
 *
 *   Pass `false` to make them staggered:
 *
 *   ```markdown
 *   | Alpha | B |
 *   | - | - |
 *   | C | Delta |
 *   ```
 * @property {(value: string) => number} [stringLength]
 *   Function to detect the length of table cell content.
 *   This is used when aligning the delimiters (`|`) between table cells.
 *   Full-width characters and emoji mess up delimiter alignment when viewing
 *   the markdown source.
 *   To fix this, you can pass this function, which receives the cell content
 *   and returns its “visible” size.
 *   Note that what is and isn’t visible depends on where the text is displayed.
 *
 *   Without such a function, the following:
 *
 *   ```js
 *   markdownTable([
 *     ['Alpha', 'Bravo'],
 *     ['中文', 'Charlie'],
 *     ['👩‍❤️‍👩', 'Delta']
 *   ])
 *   ```
 *
 *   Yields:
 *
 *   ```markdown
 *   | Alpha | Bravo |
 *   | - | - |
 *   | 中文 | Charlie |
 *   | 👩‍❤️‍👩 | Delta |
 *   ```
 *
 *   With [`string-width`](https://github.com/sindresorhus/string-width):
 *
 *   ```js
 *   import stringWidth from 'string-width'
 *
 *   markdownTable(
 *     [
 *       ['Alpha', 'Bravo'],
 *       ['中文', 'Charlie'],
 *       ['👩‍❤️‍👩', 'Delta']
 *     ],
 *     {stringLength: stringWidth}
 *   )
 *   ```
 *
 *   Yields:
 *
 *   ```markdown
 *   | Alpha | Bravo   |
 *   | ----- | ------- |
 *   | 中文  | Charlie |
 *   | 👩‍❤️‍👩    | Delta   |
 *   ```
 */

/**
 * @typedef Options
 *   Configuration for `stringify`.
 * @property {boolean} [padLeft=true]
 *   Whether to pad a space before a token.
 * @property {boolean} [padRight=false]
 *   Whether to pad a space after a token.
 */

/**
 * @typedef Options
 *   Configuration.
 * @property {boolean | null | undefined} [tableCellPadding=true]
 *   Whether to add a space of padding between delimiters and cells.
 * @property {boolean | null | undefined} [tablePipeAlign=true]
 *   Whether to align the delimiters.
 * @property {MarkdownTableOptions['stringLength'] | null | undefined} [stringLength]
 *   Function to detect the length of table cell content, used when aligning
 *   the delimiters between cells
 */

/**
 * @typedef Point
 *   unist point, where `line` and `column` can be `undefined`.
 * @property {number | undefined} line
 *   Line.
 * @property {number | undefined} column
 *   Column.
 * @property {number | undefined} [offset]
 *   Offset.
 *
 * @typedef PointLike
 *   unist point, allowed as input.
 * @property {number | null | undefined} [line]
 *   Line.
 * @property {number | null | undefined} [column]
 *   Column.
 * @property {number | null | undefined} [offset]
 *   Offset.
 *
 * @callback ToPoint
 *   Get a line/column-based `point` from `offset`.
 * @param {number | null | undefined} [offset]
 *   Something that should be an `offset.
 * @returns {Point}
 *   Point, line/column are undefined for invalid or out of bounds input.
 *
 * @callback ToOffset
 *   Get an offset from a line/column-based `point`.
 * @param {Point | null | undefined} [point]
 *   Something that should be a `point.
 * @returns {number}
 *   Offset or `-1` for invalid or out of bounds input.
 *
 * @typedef Location
 *   Accessors for index.
 * @property {ToPoint} toPoint
 *   Get a line/column-based `point` from `offset`.
 * @property {ToOffset} toOffset
 *   Get an offset from a line/column-based `point`.
 */

/**
 * @typedef PointLike
 * @property {number | null | undefined} [line]
 * @property {number | null | undefined} [column]
 * @property {number | null | undefined} [offset]
 *
 * @typedef PositionLike
 * @property {PointLike | null | undefined} [start]
 * @property {PointLike | null | undefined} [end]
 *
 * @typedef NodeLike
 * @property {PositionLike | null | undefined} [position]
 */

/**
 * @typedef URL
 * @property {string} hash
 * @property {string} host
 * @property {string} hostname
 * @property {string} href
 * @property {string} origin
 * @property {string} password
 * @property {string} pathname
 * @property {string} port
 * @property {string} protocol
 * @property {string} search
 * @property {any} searchParams
 * @property {string} username
 * @property {() => string} toString
 * @property {() => string} toJSON
 */

/**
 * @typedef {'left'|'center'|'right'|'none'} Align
 */

/**
 * @typedef {(error?: Error|null|undefined, ...output: Array<any>) => void} Callback
 * @typedef {(...input: Array<any>) => any} Middleware
 *
 * @typedef {(...input: Array<any>) => void} Run
 *   Call all middleware.
 * @typedef {(fn: Middleware) => Pipeline} Use
 *   Add `fn` (middleware) to the list.
 * @typedef {{run: Run, use: Use}} Pipeline
 *   Middleware.
 */

/**
 * @typedef {Content | Root} Node
 *   Any concrete `hast` node.
 * @typedef {Root | Element} HResult
 *   Result from a `h` (or `s`) call.
 *
 * @typedef {string | number} HStyleValue
 *   Value for a CSS style field.
 * @typedef {Record<string, HStyleValue>} HStyle
 *   Supported value of a `style` prop.
 * @typedef {string | number | boolean | null | undefined} HPrimitiveValue
 *   Primitive property value.
 * @typedef {Array<string | number>} HArrayValue
 *   List of property values for space- or comma separated values (such as `className`).
 * @typedef {HPrimitiveValue | HArrayValue} HPropertyValue
 *   Primitive value or list value.
 * @typedef {{[property: string]: HPropertyValue | HStyle}} HProperties
 *   Acceptable value for element properties.
 *
 * @typedef {string | number | null | undefined} HPrimitiveChild
 *   Primitive children, either ignored (nullish), or turned into text nodes.
 * @typedef {Array<Node | HPrimitiveChild>} HArrayChild
 *   List of children.
 * @typedef {Node | HPrimitiveChild | HArrayChild} HChild
 *   Acceptable child value.
 */

/**
 * @typedef {Content | Root} Node
 * @typedef {'html' | 'svg'} Space
 *
 * @typedef Options
 *   Configuration.
 * @property {Space | null | undefined} [space='html']
 *   Which space the document is in.
 *
 *   When an `<svg>` element is found in the HTML space, this package already
 *   automatically switches to and from the SVG space when entering and exiting
 *   it.
 */

/**
 * @typedef {Content | Root} Node
 * @typedef {DefaultTreeAdapterMap['document']} P5Document
 * @typedef {DefaultTreeAdapterMap['documentFragment']} P5DocumentFragment
 * @typedef {DefaultTreeAdapterMap['documentType']} P5DocumentType
 * @typedef {DefaultTreeAdapterMap['commentNode']} P5Comment
 * @typedef {DefaultTreeAdapterMap['textNode']} P5Text
 * @typedef {DefaultTreeAdapterMap['element']} P5Element
 * @typedef {DefaultTreeAdapterMap['node']} P5Node
 * @typedef {DefaultTreeAdapterMap['template']} P5Template
 *
 * @typedef {'html' | 'svg'} Space
 *   Namespace.
 *
 * @typedef Options
 *   Configuration.
 * @property {Space | null | undefined} [space='html']
 *   Which space the document is in.
 *
 *   When an `<svg>` element is found in the HTML space, this package already
 *   automatically switches to and from the SVG space when entering and exiting
 *   it.
 * @property {VFile | null | undefined} [file]
 *   File used to add positional info to nodes.
 *
 *   If given, the file should represent the original HTML source.
 * @property {boolean} [verbose=false]
 *   Whether to add extra positional info about starting tags, closing tags,
 *   and attributes to elements.
 *
 *   > 👉 **Note**: only used when `file` is given.
 *
 * @typedef State
 *   Info passed around about the current state.
 * @property {Schema} schema
 *   Current schema.
 * @property {VFile | undefined} file
 *   Corresponding file.
 * @property {boolean | undefined} verbose
 *   Add extra positional info.
 * @property {boolean} location
 *   Whether location info was found.
 */

/**
 * @typedef {Content | Root} Node
 * @typedef {Extract<Node, MdastParent>} Parent
 * @typedef {Exclude<Parent, Root>} ContentParent
 *
 * @typedef RegExpMatchObject
 *   Info on the match.
 * @property {number} index
 *   The index of the search at which the result was found.
 * @property {string} input
 *   A copy of the search string in the text node.
 * @property {[Root, ...Array<ContentParent>, Text]} stack
 *   All ancestors of the text node, where the last node is the text itself.
 *
 * @callback ReplaceFunction
 *   Callback called when a search matches.
 * @param {...any} parameters
 *   The parameters are the result of corresponding search expression:
 *
 *   * `value` (`string`) — whole match
 *   * `...capture` (`Array<string>`) — matches from regex capture groups
 *   * `match` (`RegExpMatchObject`) — info on the match
 * @returns {Array<PhrasingContent> | PhrasingContent | string | false | undefined | null}
 *   Thing to replace with.
 *
 *   * when `null`, `undefined`, `''`, remove the match
 *   * …or when `false`, do not replace at all
 *   * …or when `string`, replace with a text node of that value
 *   * …or when `Node` or `Array<Node>`, replace with those nodes
 *
 * @typedef {string | RegExp} Find
 *   Pattern to find.
 *
 *   Strings are escaped and then turned into global expressions.
 *
 * @typedef {Array<FindAndReplaceTuple>} FindAndReplaceList
 *   Several find and replaces, in array form.
 * @typedef {Record<string, Replace>} FindAndReplaceSchema
 *   Several find and replaces, in object form.
 * @typedef {[Find, Replace]} FindAndReplaceTuple
 *   Find and replace in tuple form.
 * @typedef {string | ReplaceFunction} Replace
 *   Thing to replace with.
 * @typedef {[RegExp, ReplaceFunction]} Pair
 *   Normalized find and replace.
 * @typedef {Array<Pair>} Pairs
 *   All find and replaced.
 *
 * @typedef Options
 *   Configuration.
 * @property {Test | null | undefined} [ignore]
 *   Test for which nodes to ignore.
 */

/**
 * @typedef {Extract<Root | Content, Parent>} Parents
 */

/**
 * @typedef {HastRoot | HastContent} HastNodes
 * @typedef {MdastRoot | MdastContent} MdastNodes
 * @typedef {Extract<MdastNodes, MdastParent>} MdastParents
 *
 * @typedef EmbeddedHastFields
 *   hast fields.
 * @property {string | null | undefined} [hName]
 *   Generate a specific element with this tag name instead.
 * @property {HastProperties | null | undefined} [hProperties]
 *   Generate an element with these properties instead.
 * @property {Array<HastElementContent> | null | undefined} [hChildren]
 *   Generate an element with this content instead.
 *
 * @typedef {Record<string, unknown> & EmbeddedHastFields} MdastData
 *   mdast data with embedded hast fields.
 *
 * @typedef {MdastNodes & {data?: MdastData | null | undefined}} MdastNodeWithData
 *   mdast node with embedded hast data.
 *
 * @typedef PointLike
 *   Point-like value.
 * @property {number | null | undefined} [line]
 *   Line.
 * @property {number | null | undefined} [column]
 *   Column.
 * @property {number | null | undefined} [offset]
 *   Offset.
 *
 * @typedef PositionLike
 *   Position-like value.
 * @property {PointLike | null | undefined} [start]
 *   Point-like value.
 * @property {PointLike | null | undefined} [end]
 *   Point-like value.
 *
 * @callback Handler
 *   Handle a node.
 * @param {State} state
 *   Info passed around.
 * @param {any} node
 *   mdast node to handle.
 * @param {MdastParents | null | undefined} parent
 *   Parent of `node`.
 * @returns {HastElementContent | Array<HastElementContent> | null | undefined}
 *   hast node.
 *
 * @callback HFunctionProps
 *   Signature of `state` for when props are passed.
 * @param {MdastNodes | PositionLike | null | undefined} node
 *   mdast node or unist position.
 * @param {string} tagName
 *   HTML tag name.
 * @param {HastProperties} props
 *   Properties.
 * @param {Array<HastElementContent> | null | undefined} [children]
 *   hast content.
 * @returns {HastElement}
 *   Compiled element.
 *
 * @callback HFunctionNoProps
 *   Signature of `state` for when no props are passed.
 * @param {MdastNodes | PositionLike | null | undefined} node
 *   mdast node or unist position.
 * @param {string} tagName
 *   HTML tag name.
 * @param {Array<HastElementContent> | null | undefined} [children]
 *   hast content.
 * @returns {HastElement}
 *   Compiled element.
 *
 * @typedef HFields
 *   Info on `state`.
 * @property {boolean} dangerous
 *   Whether HTML is allowed.
 * @property {string} clobberPrefix
 *   Prefix to use to prevent DOM clobbering.
 * @property {string} footnoteLabel
 *   Label to use to introduce the footnote section.
 * @property {string} footnoteLabelTagName
 *   HTML used for the footnote label.
 * @property {HastProperties} footnoteLabelProperties
 *   Properties on the HTML tag used for the footnote label.
 * @property {string} footnoteBackLabel
 *   Label to use from backreferences back to their footnote call.
 * @property {(identifier: string) => MdastDefinition | null} definition
 *   Definition cache.
 * @property {Record<string, MdastFootnoteDefinition>} footnoteById
 *   Footnote definitions by their identifier.
 * @property {Array<string>} footnoteOrder
 *   Identifiers of order when footnote calls first appear in tree order.
 * @property {Record<string, number>} footnoteCounts
 *   Counts for how often the same footnote was called.
 * @property {Handlers} handlers
 *   Applied handlers.
 * @property {Handler} unknownHandler
 *   Handler for any none not in `passThrough` or otherwise handled.
 * @property {(from: MdastNodes, node: HastNodes) => void} patch
 *   Copy a node’s positional info.
 * @property {<Type extends HastNodes>(from: MdastNodes, to: Type) => Type | HastElement} applyData
 *   Honor the `data` of `from`, and generate an element instead of `node`.
 * @property {(node: MdastNodes, parent: MdastParents | null | undefined) => HastElementContent | Array<HastElementContent> | null | undefined} one
 *   Transform an mdast node to hast.
 * @property {(node: MdastNodes) => Array<HastElementContent>} all
 *   Transform the children of an mdast parent to hast.
 * @property {<Type extends HastContent>(nodes: Array<Type>, loose?: boolean | null | undefined) => Array<Type | HastText>} wrap
 *   Wrap `nodes` with line endings between each node, adds initial/final line endings when `loose`.
 * @property {(left: MdastNodeWithData | PositionLike | null | undefined, right: HastElementContent) => HastElementContent} augment
 *   Like `state` but lower-level and usable on non-elements.
 *   Deprecated: use `patch` and `applyData`.
 * @property {Array<string>} passThrough
 *   List of node types to pass through untouched (except for their children).
 *
 * @typedef Options
 *   Configuration (optional).
 * @property {boolean | null | undefined} [allowDangerousHtml=false]
 *   Whether to persist raw HTML in markdown in the hast tree.
 * @property {string | null | undefined} [clobberPrefix='user-content-']
 *   Prefix to use before the `id` attribute on footnotes to prevent it from
 *   *clobbering*.
 * @property {string | null | undefined} [footnoteBackLabel='Back to content']
 *   Label to use from backreferences back to their footnote call (affects
 *   screen readers).
 * @property {string | null | undefined} [footnoteLabel='Footnotes']
 *   Label to use for the footnotes section (affects screen readers).
 * @property {HastProperties | null | undefined} [footnoteLabelProperties={className: ['sr-only']}]
 *   Properties to use on the footnote label (note that `id: 'footnote-label'`
 *   is always added as footnote calls use it with `aria-describedby` to
 *   provide an accessible label).
 * @property {string | null | undefined} [footnoteLabelTagName='h2']
 *   Tag name to use for the footnote label.
 * @property {Handlers | null | undefined} [handlers]
 *   Extra handlers for nodes.
 * @property {Array<string> | null | undefined} [passThrough]
 *   List of custom mdast node types to pass through (keep) in hast (note that
 *   the node itself is passed, but eventual children are transformed).
 * @property {Handler | null | undefined} [unknownHandler]
 *   Handler for all unknown nodes.
 *
 * @typedef {Record<string, Handler>} Handlers
 *   Handle nodes.
 *
 * @typedef {HFunctionProps & HFunctionNoProps & HFields} State
 *   Info passed around.
 */

/**
 * @typedef {HastRoot | HastContent} HastNodes
 * @typedef {MdastRoot | MdastContent} MdastNodes
 */

/**
 * @typedef {Options} MarkdownTableOptions
 * @todo
 *   Remove next major.
 */

/**
 * @typedef {Options} StringifyOptions
 *   Please use `StringifyOptions` instead.
 */

/**
 * @typedef {Record<string, unknown> & {marker: Code, type: string, size: number}} ListContainerState
 * @typedef {TokenizeContext & {containerState: ListContainerState}} TokenizeContextWithState
 */

/**
 * @typedef {Record<string, unknown> & {type: string, position?: Position | undefined}} NodeLike
 *
 * @typedef {'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex'} BufferEncoding
 *   Encodings supported by the buffer class.
 *
 *   This is a copy of the types from Node, copied to prevent Node globals from
 *   being needed.
 *   Copied from: <https://github.com/DefinitelyTyped/DefinitelyTyped/blob/90a4ec8/types/node/buffer.d.ts#L170>
 *
 * @typedef {Options | URL | Value | VFile} Compatible
 *   Things that can be passed to the constructor.
 *
 * @typedef VFileCoreOptions
 *   Set multiple values.
 * @property {Value | null | undefined} [value]
 *   Set `value`.
 * @property {string | null | undefined} [cwd]
 *   Set `cwd`.
 * @property {Array<string> | null | undefined} [history]
 *   Set `history`.
 * @property {URL | string | null | undefined} [path]
 *   Set `path`.
 * @property {string | null | undefined} [basename]
 *   Set `basename`.
 * @property {string | null | undefined} [stem]
 *   Set `stem`.
 * @property {string | null | undefined} [extname]
 *   Set `extname`.
 * @property {string | null | undefined} [dirname]
 *   Set `dirname`.
 * @property {Data | null | undefined} [data]
 *   Set `data`.
 *
 * @typedef Map
 *   Raw source map.
 *
 *   See:
 *   <https://github.com/mozilla/source-map/blob/58819f0/source-map.d.ts#L15-L23>.
 * @property {number} version
 *   Which version of the source map spec this map is following.
 * @property {Array<string>} sources
 *   An array of URLs to the original source files.
 * @property {Array<string>} names
 *   An array of identifiers which can be referenced by individual mappings.
 * @property {string | undefined} [sourceRoot]
 *   The URL root from which all sources are relative.
 * @property {Array<string> | undefined} [sourcesContent]
 *   An array of contents of the original source files.
 * @property {string} mappings
 *   A string of base64 VLQs which contain the actual mappings.
 * @property {string} file
 *   The generated file this source map is associated with.
 *
 * @typedef {{[key: string]: unknown} & VFileCoreOptions} Options
 *   Configuration.
 *
 *   A bunch of keys that will be shallow copied over to the new file.
 *
 * @typedef {Record<string, unknown>} ReporterSettings
 *   Configuration for reporters.
 */

/**
 * @typedef {Record<string, unknown>} Props
 * @typedef {null | undefined | string | Props | TestFunctionAnything | Array<string | Props | TestFunctionAnything>} Test
 *   Check for an arbitrary node, unaware of TypeScript inferral.
 *
 * @callback TestFunctionAnything
 *   Check if a node passes a test, unaware of TypeScript inferral.
 * @param {unknown} this
 *   The given context.
 * @param {Node} node
 *   A node.
 * @param {number | null | undefined} [index]
 *   The node’s position in its parent.
 * @param {Parent | null | undefined} [parent]
 *   The node’s parent.
 * @returns {boolean | void}
 *   Whether this node passes the test.
 */

/**
 * @typedef {Record<string, unknown>} StackState
 * @typedef {[Construct, StackState]} StackItem
 */

/**
 * @typedef {Root | Content} Node
 *
 * @callback GetDefinition
 *   Get a definition by identifier.
 * @param {string | null | undefined} [identifier]
 *   Identifier of definition.
 * @returns {Definition | null}
 *   Definition corresponding to `identifier` or `null`.
 */

/**
 * @typedef {Root | Content} Node
 * @typedef {Extract<Node, UnistParent>} Parent
 *
 * @typedef {Omit<UnistParent, 'type' | 'children'> & {type: 'fragment', children: Array<PhrasingContent>}} Fragment
 */

/**
 * @typedef {Root | Content} Nodes
 * @typedef {Extract<Nodes, Parent>} Parents
 */

/**
 * @typedef {Root | Content} Nodes
 * @typedef {Extract<Nodes, Reference>} References
 */

/**
 * @typedef {boolean | 'skip'} Action
 *   Union of the action types.
 *
 * @typedef {number} Index
 *   Move to the sibling at `index` next (after node itself is completely
 *   traversed).
 *
 *   Useful if mutating the tree, such as removing the node the visitor is
 *   currently on, or any of its previous siblings.
 *   Results less than 0 or greater than or equal to `children.length` stop
 *   traversing the parent.
 *
 * @typedef {[(Action | null | undefined | void)?, (Index | null | undefined)?]} ActionTuple
 *   List with one or two values, the first an action, the second an index.
 *
 * @typedef {Action | ActionTuple | Index | null | undefined | void} VisitorResult
 *   Any value that can be returned from a visitor.
 */

/**
 * @typedef {import('../types.js').AssociationId} AssociationId
 */

/**
 * @typedef {import('../types.js').CreateTracker} CreateTracker
 * @typedef {import('../types.js').TrackCurrent} TrackCurrent
 * @typedef {import('../types.js').TrackMove} TrackMove
 * @typedef {import('../types.js').TrackShift} TrackShift
 */

/**
 * @typedef {import('../types.js').FlowContent} FlowContent
 * @typedef {import('../types.js').Node} Node
 * @typedef {import('../types.js').Parent} Parent
 * @typedef {import('../types.js').State} State
 * @typedef {import('../types.js').TrackFields} TrackFields
 */

/**
 * @typedef {import('../types.js').Handle} Handle
 * @typedef {import('../types.js').Info} Info
 * @typedef {import('../types.js').Parent} Parent
 * @typedef {import('../types.js').PhrasingContent} PhrasingContent
 * @typedef {import('../types.js').State} State
 */

/**
 * @typedef {import('../types.js').IndentLines} IndentLines
 */

/**
 * @typedef {import('../types.js').State} State
 * @typedef {import('../types.js').Options} Options
 */

/**
 * @typedef {import('../types.js').State} State
 * @typedef {import('../types.js').SafeConfig} SafeConfig
 */

/**
 * @typedef {import('../types.js').Unsafe} Unsafe
 * @typedef {import('../types.js').ConstructName} ConstructName
 */

/**
 * @typedef {import('../types.js').Unsafe} Unsafe
 */

/**
 * @typedef {import('./core.js').HChild} Child
 *   Acceptable child value.
 * @typedef {import('./core.js').HProperties} Properties
 *   Acceptable value for element properties.
 * @typedef {import('./core.js').HResult} Result
 *   Result from a `h` (or `s`) call.
 *
 * @typedef {import('./jsx-classic.js').Element} h.JSX.Element
 * @typedef {import('./jsx-classic.js').IntrinsicAttributes} h.JSX.IntrinsicAttributes
 * @typedef {import('./jsx-classic.js').IntrinsicElements} h.JSX.IntrinsicElements
 * @typedef {import('./jsx-classic.js').ElementChildrenAttribute} h.JSX.ElementChildrenAttribute
 */

/**
 * @typedef {import('./core.js').HChild} Child
 *   Acceptable child value.
 * @typedef {import('./core.js').HProperties} Properties
 *   Acceptable value for element properties.
 * @typedef {import('./core.js').HResult} Result
 *   Result from a `h` (or `s`) call.
 *
 * @typedef {import('./jsx-classic.js').Element} s.JSX.Element
 * @typedef {import('./jsx-classic.js').IntrinsicAttributes} s.JSX.IntrinsicAttributes
 * @typedef {import('./jsx-classic.js').IntrinsicElements} s.JSX.IntrinsicElements
 * @typedef {import('./jsx-classic.js').ElementChildrenAttribute} s.JSX.ElementChildrenAttribute
 */

/**
 * @typedef {import('./info.js').Info} Info
 * @typedef {Record<string, Info>} Properties
 * @typedef {Record<string, string>} Normal
 */

/**
 * @typedef {import('./schema.js').Properties} Properties
 * @typedef {import('./schema.js').Normal} Normal
 *
 * @typedef {Record<string, string>} Attributes
 *
 * @typedef {Object} Definition
 * @property {Record<string, number|null>} properties
 * @property {(attributes: Attributes, property: string) => string} transform
 * @property {string} [space]
 * @property {Attributes} [attributes]
 * @property {Array<string>} [mustUseProperty]
 */

/**
 * @typedef {import('./schema.js').Properties} Properties
 * @typedef {import('./schema.js').Normal} Normal
 */

/**
 * @typedef {import('./util/schema.js').Schema} Schema
 */

/**
 * @typedef {import('hast').Content} HastContent
 * @typedef {import('hast').Element} HastElement
 * @typedef {import('hast').ElementContent} HastElementContent
 * @typedef {import('hast').Properties} HastProperties
 * @typedef {import('hast').Root} HastRoot
 * @typedef {import('hast').Text} HastText
 *
 * @typedef {import('mdast').Content} MdastContent
 * @typedef {import('mdast').Definition} MdastDefinition
 * @typedef {import('mdast').FootnoteDefinition} MdastFootnoteDefinition
 * @typedef {import('mdast').Parent} MdastParent
 * @typedef {import('mdast').Root} MdastRoot
 */

/**
 * @typedef {import('hast').Content} HastContent
 * @typedef {import('hast').Root} HastRoot
 *
 * @typedef {import('mdast').Content} MdastContent
 * @typedef {import('mdast').Root} MdastRoot
 *
 * @typedef {import('./state.js').Options} Options
 */

/**
 * @typedef {import('hast').ElementContent} ElementContent
 *
 * @typedef {import('mdast').Content} Content
 * @typedef {import('mdast').Reference} Reference
 * @typedef {import('mdast').Root} Root
 *
 * @typedef {import('./state.js').State} State
 */

/**
 * @typedef {import('hast').ElementContent} ElementContent
 * @typedef {import('hast').Element} Element
 * @typedef {import('hast').Properties} Properties
 * @typedef {import('mdast').ImageReference} ImageReference
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('hast').ElementContent} ElementContent
 *
 * @typedef {import('./state.js').State} State
 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('hast').ElementContent} ElementContent
 * @typedef {import('hast').Properties} Properties
 * @typedef {import('mdast').Content} Content
 * @typedef {import('mdast').ListItem} ListItem
 * @typedef {import('mdast').Parent} Parent
 * @typedef {import('mdast').Root} Root
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('hast').ElementContent} ElementContent
 * @typedef {import('hast').Properties} Properties
 * @typedef {import('mdast').LinkReference} LinkReference
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('hast').Properties} Properties
 * @typedef {import('mdast').Code} Code
 * @typedef {import('../state.js').State} State

 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('hast').Properties} Properties
 * @typedef {import('mdast').Image} Image
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('hast').Properties} Properties
 * @typedef {import('mdast').Link} Link
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('hast').Properties} Properties
 * @typedef {import('mdast').List} List
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('hast').Text} Text
 * @typedef {import('mdast').Break} Break
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('hast').Text} Text
 * @typedef {import('mdast').InlineCode} InlineCode
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('mdast').Blockquote} Blockquote
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('mdast').Delete} Delete
 * @typedef {import('../state.js').State} State

 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('mdast').Emphasis} Emphasis
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('mdast').Footnote} Footnote
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('mdast').HTML} Html
 * @typedef {import('../state.js').State} State
 * @typedef {import('../../index.js').Raw} Raw
 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('mdast').Heading} Heading
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('mdast').Paragraph} Paragraph
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('mdast').Strong} Strong
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('mdast').TableCell} TableCell
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('mdast').Table} Table
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Element} Element
 * @typedef {import('mdast').ThematicBreak} ThematicBreak
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Element} HastElement
 * @typedef {import('hast').Text} HastText
 * @typedef {import('mdast').Text} MdastText
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Properties} Properties
 * @typedef {import('hast').Element} Element
 * @typedef {import('hast').ElementContent} ElementContent
 * @typedef {import('mdast').Content} Content
 * @typedef {import('mdast').Parent} Parent
 * @typedef {import('mdast').Root} Root
 * @typedef {import('mdast').TableRow} TableRow
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Properties} Properties
 * @typedef {import('hast').Element} Element
 */

/**
 * @typedef {import('hast').Root} HastRoot
 * @typedef {import('hast').Element} HastElement
 * @typedef {import('mdast').Root} MdastRoot
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('hast').Root} HastRoot
 * @typedef {import('mdast').Root} MdastRoot
 * @typedef {import('mdast-util-to-hast').Options} Options
 * @typedef {import('unified').Processor<any, any, any, any>} Processor
 *
 * @typedef {import('mdast-util-to-hast')} DoNotTouchAsThisImportIncludesRawInTree
 */

/**
 * @typedef {import('hast').Root} Root
 *
 * @typedef {import('hast-util-sanitize').Schema} Options
 *   The sanitation schema defines how and if nodes and properties should be cleaned.
 *   See `hast-util-sanitize`.
 *   The default schema is exported as `defaultSchema`.
 */

/**
 * @typedef {import('hast').Root} Root
 * @typedef {import('hast').Content} Content
 * @typedef {import('hast').Element} Element
 * @typedef {import('hast').Properties} Properties
 * @typedef {Content | Root} Node
 *
 * @typedef {Properties[string]} PropertyValue
 *   Possible property values.
 * @typedef {string | number | boolean} PrimitivePropertyValue
 *   Possible primitive HTML attribute values.
 *
 * @typedef {Record<string, Array<string | [string, ...Array<PrimitivePropertyValue | RegExp>]>>} Attributes
 *  Map of tag names to allow lists for each property.
 * @typedef {Record<string, Array<PrimitivePropertyValue | RegExp>>} AttributeClean
 *   Normalized input.
 *
 * @typedef Schema
 *   Sanitization configuration.
 * @property {Attributes | undefined} [attributes]
 *   Map of tag names to allowed properties.
 *
 *   The special `'*'` key defines property names allowed on all elements.
 * @property {Record<string, Record<string, PropertyValue>> | undefined} [required]
 *   Map of tag names to required property names and their default property value.
 * @property {Array<string> | undefined} [tagNames]
 *   List of allowed tag names.
 * @property {Record<string, Array<string>> | undefined} [protocols]
 *   Map of protocols to allow in property values.
 * @property {Record<string, Array<string>> | undefined} [ancestors]
 *   Map of tag names to their required ancestor elements.
 * @property {Array<string> | undefined} [clobber]
 *   List of allowed property names which can clobber.
 * @property {string | undefined} [clobberPrefix]
 *   Prefix to use before potentially clobbering property names.
 * @property {Array<string> | undefined} [strip]
 *   Names of elements to strip from the tree.
 * @property {boolean | undefined} [allowComments]
 *   Whether to allow comments.
 * @property {boolean | undefined} [allowDoctypes]
 *   Whether to allow doctypes.
 *
 * @typedef {(schema: Schema, value: any, node: any, stack: Array<string>) => unknown} Handler
 * @typedef {Record<string, Handler>} NodeDefinition
 * @typedef {((schema: Schema, node: Node) => NodeDefinition | undefined)} NodeDefinitionGetter
 * @typedef {Record<string, NodeDefinition | NodeDefinitionGetter>} NodeSchema
 */

/**
 * @typedef {import('hast').Root} Root
 * @typedef {import('hast').Content} Content
 * @typedef {import('hast').Element} Element
 * @typedef {import('hast').Properties} Properties
 * @typedef {import('property-information').Info} Info
 * @typedef {import('property-information').Schema} Schema
 */

/**
 * @typedef {import('hast').Root} Root
 * @typedef {import('hast-util-raw').Options} Options
 * @typedef {import('hast-util-raw')} DoNotTouchAsThisImportIncludesRawInTree
 */

/**
 * @typedef {import('mdast').Content} Content
 * @typedef {import('mdast').ListItem} ListItem
 * @typedef {import('mdast').Paragraph} Paragraph
 * @typedef {import('mdast').Parent} Parent
 * @typedef {import('mdast').Root} Root
 * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext
 * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
 * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle
 * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
 * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle
 */

/**
 * @typedef {import('mdast').FootnoteReference} FootnoteReference
 * @typedef {import('hast').Element} Element
 * @typedef {import('../state.js').State} State
 */

/**
 * @typedef {import('mdast').FootnoteReference} FootnoteReference
 * @typedef {import('mdast').FootnoteDefinition} FootnoteDefinition
 * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext
 * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
 * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle
 * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
 * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle
 * @typedef {import('mdast-util-to-markdown').Map} Map
 */

/**
 * @typedef {import('mdast').InlineCode} InlineCode
 * @typedef {import('../types.js').Parent} Parent
 * @typedef {import('../types.js').State} State
 */

/**
 * @typedef {import('mdast').Link} Link
 * @typedef {import('mdast').PhrasingContent} PhrasingContent
 *
 * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext
 * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
 * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle
 * @typedef {import('mdast-util-from-markdown').Transform} FromMarkdownTransform
 *
 * @typedef {import('mdast-util-to-markdown').ConstructName} ConstructName
 * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
 *
 * @typedef {import('mdast-util-find-and-replace').ReplaceFunction} ReplaceFunction
 * @typedef {import('mdast-util-find-and-replace').RegExpMatchObject} RegExpMatchObject
 */

/**
 * @typedef {import('mdast').ListItem} ListItem
 * @typedef {import('../types.js').Map} Map
 * @typedef {import('../types.js').Parent} Parent
 * @typedef {import('../types.js').State} State
 * @typedef {import('../types.js').Info} Info
 */

/**
 * @typedef {import('mdast').Parent} MdastParent
 * @typedef {import('mdast').Root} Root
 * @typedef {import('mdast').Content} Content
 * @typedef {import('mdast').PhrasingContent} PhrasingContent
 * @typedef {import('mdast').Text} Text
 * @typedef {import('unist-util-visit-parents').Test} Test
 * @typedef {import('unist-util-visit-parents').VisitorResult} VisitorResult
 */

/**
 * @typedef {import('mdast').Root|import('mdast').Content} Node
 *
 * @typedef Options
 *   Configuration (optional).
 * @property {boolean | null | undefined} [includeImageAlt=true]
 *   Whether to use `alt` for `image`s.
 */

/**
 * @typedef {import('mdast').Root} Root
 * @typedef {import('mdast').Content} Content
 * @typedef {import('mdast').Definition} Definition
 */

/**
 * @typedef {import('mdast').Root} Root
 * @typedef {import('mdast-util-from-markdown').Options} Options
 */

/**
 * @typedef {import('mdast').Root} Root
 * @typedef {import('micromark-extension-gfm').Options & import('mdast-util-gfm').Options} Options
 */

/**
 * @typedef {import('mdast').Table} Table
 * @typedef {import('mdast').TableRow} TableRow
 * @typedef {import('mdast').TableCell} TableCell
 * @typedef {import('mdast').InlineCode} InlineCode
 *
 * @typedef {import('markdown-table').MarkdownTableOptions} MarkdownTableOptions
 *
 * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext
 * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
 * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle
 *
 * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
 * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle
 * @typedef {import('mdast-util-to-markdown').Context} ToMarkdownContext
 * @typedef {import('mdast-util-to-markdown').SafeOptions} SafeOptions
 */

/**
 * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
 * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
 */

/**
 * @typedef {import('mdast-util-gfm-table').Options} Options
 *   Configuration.
 */

/**
 * @typedef {import('micromark-util-types').Code} Code
 * @typedef {import('micromark-util-types').Chunk} Chunk
 * @typedef {import('micromark-util-types').Point} Point
 * @typedef {import('micromark-util-types').Token} Token
 * @typedef {import('micromark-util-types').Effects} Effects
 * @typedef {import('micromark-util-types').State} State
 * @typedef {import('micromark-util-types').Construct} Construct
 * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct
 * @typedef {import('micromark-util-types').ConstructRecord} ConstructRecord
 * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext
 * @typedef {import('micromark-util-types').ParseContext} ParseContext
 */

/**
 * @typedef {import('micromark-util-types').Code} Code
 */

/**
 * @typedef {import('micromark-util-types').Construct} Construct
 * @typedef {import('micromark-util-types').Resolver} Resolver
 * @typedef {import('micromark-util-types').Tokenizer} Tokenizer
 * @typedef {import('micromark-util-types').Event} Event
 * @typedef {import('micromark-util-types').Token} Token
 * @typedef {import('micromark-util-types').State} State
 * @typedef {import('micromark-util-types').Code} Code
 */

/**
 * @typedef {import('micromark-util-types').Construct} Construct
 * @typedef {import('micromark-util-types').Resolver} Resolver
 * @typedef {import('micromark-util-types').Tokenizer} Tokenizer
 * @typedef {import('micromark-util-types').Previous} Previous
 * @typedef {import('micromark-util-types').Token} Token
 * @typedef {import('micromark-util-types').State} State
 */

/**
 * @typedef {import('micromark-util-types').Construct} Construct
 * @typedef {import('micromark-util-types').Resolver} Resolver
 * @typedef {import('micromark-util-types').Tokenizer} Tokenizer
 * @typedef {import('micromark-util-types').State} State
 * @typedef {import('micromark-util-types').Code} Code
 */

/**
 * @typedef {import('micromark-util-types').Construct} Construct
 * @typedef {import('micromark-util-types').Resolver} Resolver
 * @typedef {import('micromark-util-types').Tokenizer} Tokenizer
 * @typedef {import('micromark-util-types').Token} Token
 * @typedef {import('micromark-util-types').State} State
 */

/**
 * @typedef {import('micromark-util-types').Construct} Construct
 * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext
 * @typedef {import('micromark-util-types').Exiter} Exiter
 * @typedef {import('micromark-util-types').Tokenizer} Tokenizer
 * @typedef {import('micromark-util-types').State} State
 * @typedef {import('micromark-util-types').Code} Code
 */

/**
 * @typedef {import('micromark-util-types').Construct} Construct
 * @typedef {import('micromark-util-types').Tokenizer} Tokenizer
 * @typedef {import('micromark-util-types').Exiter} Exiter
 * @typedef {import('micromark-util-types').State} State
 */

/**
 * @typedef {import('micromark-util-types').Construct} Construct
 * @typedef {import('micromark-util-types').Tokenizer} Tokenizer
 * @typedef {import('micromark-util-types').Resolver} Resolver
 * @typedef {import('micromark-util-types').State} State
 * @typedef {import('micromark-util-types').Token} Token
 * @typedef {import('micromark-util-types').Event} Event
 * @typedef {import('micromark-util-types').Code} Code
 * @typedef {import('micromark-util-types').Point} Point
 */

/**
 * @typedef {import('micromark-util-types').Construct} Construct
 * @typedef {import('micromark-util-types').Tokenizer} Tokenizer
 * @typedef {import('micromark-util-types').Resolver} Resolver
 * @typedef {import('micromark-util-types').Token} Token
 * @typedef {import('micromark-util-types').State} State
 */

/**
 * @typedef {import('micromark-util-types').Construct} Construct
 * @typedef {import('micromark-util-types').Tokenizer} Tokenizer
 * @typedef {import('micromark-util-types').State} State
 * @typedef {import('micromark-util-types').Code} Code
 */

/**
 * @typedef {import('micromark-util-types').Construct} Construct
 * @typedef {import('micromark-util-types').Tokenizer} Tokenizer
 * @typedef {import('micromark-util-types').State} State
 */

/**
 * @typedef {import('micromark-util-types').Construct} Construct
 * @typedef {import('micromark-util-types').Tokenizer} Tokenizer
 * @typedef {import('micromark-util-types').Token} Token
 * @typedef {import('micromark-util-types').State} State
 * @typedef {import('micromark-util-types').Code} Code
 */

/**
 * @typedef {import('micromark-util-types').Effects} Effects
 * @typedef {import('micromark-util-types').State} State
 * @typedef {import('micromark-util-types').Code} Code
 */

/**
 * @typedef {import('micromark-util-types').Effects} Effects
 * @typedef {import('micromark-util-types').State} State
 */

/**
 * @typedef {import('micromark-util-types').Effects} Effects
 * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext
 * @typedef {import('micromark-util-types').State} State
 */

/**
 * @typedef {import('micromark-util-types').Encoding} Encoding
 * @typedef {import('micromark-util-types').Event} Event
 * @typedef {import('micromark-util-types').ParseOptions} ParseOptions
 * @typedef {import('micromark-util-types').Token} Token
 * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext
 * @typedef {import('micromark-util-types').Value} Value
 *
 * @typedef {import('unist').Parent} UnistParent
 * @typedef {import('unist').Point} Point
 *
 * @typedef {import('mdast').PhrasingContent} PhrasingContent
 * @typedef {import('mdast').StaticPhrasingContent} StaticPhrasingContent
 * @typedef {import('mdast').Content} Content
 * @typedef {import('mdast').Break} Break
 * @typedef {import('mdast').Blockquote} Blockquote
 * @typedef {import('mdast').Code} Code
 * @typedef {import('mdast').Definition} Definition
 * @typedef {import('mdast').Emphasis} Emphasis
 * @typedef {import('mdast').Heading} Heading
 * @typedef {import('mdast').HTML} HTML
 * @typedef {import('mdast').Image} Image
 * @typedef {import('mdast').ImageReference} ImageReference
 * @typedef {import('mdast').InlineCode} InlineCode
 * @typedef {import('mdast').Link} Link
 * @typedef {import('mdast').LinkReference} LinkReference
 * @typedef {import('mdast').List} List
 * @typedef {import('mdast').ListItem} ListItem
 * @typedef {import('mdast').Paragraph} Paragraph
 * @typedef {import('mdast').Root} Root
 * @typedef {import('mdast').Strong} Strong
 * @typedef {import('mdast').Text} Text
 * @typedef {import('mdast').ThematicBreak} ThematicBreak
 * @typedef {import('mdast').ReferenceType} ReferenceType
 * @typedef {import('../index.js').CompileData} CompileData
 */

/**
 * @typedef {import('micromark-util-types').Encoding} Encoding
 * @typedef {import('micromark-util-types').Value} Value
 * @typedef {import('micromark-util-types').Chunk} Chunk
 * @typedef {import('micromark-util-types').Code} Code
 */

/**
 * @typedef {import('micromark-util-types').Event} Event
 */

/**
 * @typedef {import('micromark-util-types').Extension} Extension
 * @typedef {import('micromark-util-types').ConstructRecord} ConstructRecord
 * @typedef {import('micromark-util-types').Tokenizer} Tokenizer
 * @typedef {import('micromark-util-types').Previous} Previous
 * @typedef {import('micromark-util-types').State} State
 * @typedef {import('micromark-util-types').Event} Event
 * @typedef {import('micromark-util-types').Code} Code
 */

/**
 * @typedef {import('micromark-util-types').Extension} Extension
 * @typedef {import('micromark-util-types').HtmlExtension} HtmlExtension
 * @typedef {import('micromark-extension-gfm-strikethrough').Options} Options
 * @typedef {import('micromark-extension-gfm-footnote').HtmlOptions} HtmlOptions
 */

/**
 * @typedef {import('micromark-util-types').Extension} Extension
 * @typedef {import('micromark-util-types').Resolver} Resolver
 * @typedef {import('micromark-util-types').Tokenizer} Tokenizer
 * @typedef {import('micromark-util-types').State} State
 * @typedef {import('micromark-util-types').Token} Token
 * @typedef {import('micromark-util-types').Event} Event
 */

/**
 * @typedef {import('micromark-util-types').Extension} Extension
 * @typedef {import('micromark-util-types').Resolver} Resolver
 * @typedef {import('micromark-util-types').Tokenizer} Tokenizer
 * @typedef {import('micromark-util-types').State} State
 * @typedef {import('micromark-util-types').Token} Token
 */

/**
 * @typedef {import('micromark-util-types').Extension} Extension
 * @typedef {import('micromark-util-types').Resolver} Resolver
 * @typedef {import('micromark-util-types').Token} Token
 * @typedef {import('micromark-util-types').Tokenizer} Tokenizer
 * @typedef {import('micromark-util-types').Exiter} Exiter
 * @typedef {import('micromark-util-types').State} State
 * @typedef {import('micromark-util-types').Event} Event
 */

/**
 * @typedef {import('micromark-util-types').Extension} Extension
 */

/**
 * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct
 * @typedef {import('micromark-util-types').FullNormalizedExtension} FullNormalizedExtension
 * @typedef {import('micromark-util-types').ParseOptions} ParseOptions
 * @typedef {import('micromark-util-types').ParseContext} ParseContext
 * @typedef {import('micromark-util-types').Create} Create
 */

/**
 * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct
 * @typedef {import('micromark-util-types').Initializer} Initializer
 * @typedef {import('micromark-util-types').Construct} Construct
 * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext
 * @typedef {import('micromark-util-types').Tokenizer} Tokenizer
 * @typedef {import('micromark-util-types').Token} Token
 * @typedef {import('micromark-util-types').State} State
 * @typedef {import('micromark-util-types').Point} Point
 */

/**
 * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct
 * @typedef {import('micromark-util-types').Initializer} Initializer
 * @typedef {import('micromark-util-types').State} State
 */

/**
 * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct
 * @typedef {import('micromark-util-types').Initializer} Initializer
 * @typedef {import('micromark-util-types').Token} Token
 * @typedef {import('micromark-util-types').State} State
 */

/**
 * @typedef {import('micromark-util-types').NormalizedExtension} NormalizedExtension
 * @typedef {import('micromark-util-types').Extension} Extension
 * @typedef {import('micromark-util-types').Construct} Construct
 * @typedef {import('micromark-util-types').HtmlExtension} HtmlExtension
 */

/**
 * @typedef {import('micromark-util-types').Resolver} Resolver
 * @typedef {import('micromark-util-types').Initializer} Initializer
 * @typedef {import('micromark-util-types').Construct} Construct
 * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct
 * @typedef {import('micromark-util-types').State} State
 * @typedef {import('micromark-util-types').Code} Code
 */

/**
 * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext
 * @typedef {import('micromark-util-types').Event} Event
 * @typedef {import('micromark-util-types').Resolver} Resolver
 */

/**
 * @typedef {import('micromark-util-types').Token} Token
 * @typedef {import('micromark-util-types').Chunk} Chunk
 * @typedef {import('micromark-util-types').Event} Event
 */

/**
 * @typedef {import('parse5').DefaultTreeAdapterMap} DefaultTreeAdapterMap
 * @typedef {DefaultTreeAdapterMap['document']} P5Document
 * @typedef {DefaultTreeAdapterMap['documentFragment']} P5Fragment
 * @typedef {DefaultTreeAdapterMap['element']} P5Element
 * @typedef {DefaultTreeAdapterMap['node']} P5Node
 * @typedef {DefaultTreeAdapterMap['documentType']} P5Doctype
 * @typedef {DefaultTreeAdapterMap['commentNode']} P5Comment
 * @typedef {DefaultTreeAdapterMap['textNode']} P5Text
 * @typedef {DefaultTreeAdapterMap['parentNode']} P5Parent
 * @typedef {import('parse5').Token.Attribute} P5Attribute
 * @typedef {Exclude<P5Node, P5Document | P5Fragment>} P5Child
 * @typedef {import('property-information').Schema} Schema
 * @typedef {import('hast').Root} Root
 * @typedef {import('hast').DocType} Doctype
 * @typedef {import('hast').Element} Element
 * @typedef {import('hast').Text} Text
 * @typedef {import('hast').Comment} Comment
 * @typedef {import('hast').Content} Content
 */

/**
 * @typedef {import('react').ReactNode} ReactNode
 * @typedef {import('react').ReactElement<{}>} ReactElement
 * @typedef {import('unified').PluggableList} PluggableList
 * @typedef {import('hast').Root} Root
 * @typedef {import('./rehype-filter.js').Options} FilterOptions
 * @typedef {import('./ast-to-react.js').Options} TransformOptions
 *
 * @typedef CoreOptions
 * @property {string} children
 *
 * @typedef PluginOptions
 * @property {PluggableList} [remarkPlugins=[]]
 * @property {PluggableList} [rehypePlugins=[]]
 * @property {import('remark-rehype').Options | undefined} [remarkRehypeOptions={}]
 *
 * @typedef LayoutOptions
 * @property {string} [className]
 *
 * @typedef {CoreOptions & PluginOptions & LayoutOptions & FilterOptions & TransformOptions} ReactMarkdownOptions
 *
 * @typedef Deprecation
 * @property {string} id
 * @property {string} [to]
 */

/**
 * @typedef {import('react').ReactNode} ReactNode
 * @typedef {import('unist').Position} Position
 * @typedef {import('hast').Element} Element
 * @typedef {import('hast').ElementContent} ElementContent
 * @typedef {import('hast').Root} Root
 * @typedef {import('hast').Text} Text
 * @typedef {import('hast').Comment} Comment
 * @typedef {import('hast').DocType} Doctype
 * @typedef {import('property-information').Info} Info
 * @typedef {import('property-information').Schema} Schema
 * @typedef {import('./complex-types.js').ReactMarkdownProps} ReactMarkdownProps
 *
 * @typedef Raw
 * @property {'raw'} type
 * @property {string} value
 *
 * @typedef Context
 * @property {Options} options
 * @property {Schema} schema
 * @property {number} listDepth
 *
 * @callback TransformLink
 * @param {string} href
 * @param {Array<ElementContent>} children
 * @param {string?} title
 * @returns {string}
 *
 * @callback TransformImage
 * @param {string} src
 * @param {string} alt
 * @param {string?} title
 * @returns {string}
 *
 * @typedef {import('react').HTMLAttributeAnchorTarget} TransformLinkTargetType
 *
 * @callback TransformLinkTarget
 * @param {string} href
 * @param {Array<ElementContent>} children
 * @param {string?} title
 * @returns {TransformLinkTargetType|undefined}
 *
 * @typedef {keyof JSX.IntrinsicElements} ReactMarkdownNames
 *
 * To do: is `data-sourcepos` typeable?
 *
 * @typedef {ComponentPropsWithoutRef<'code'> & ReactMarkdownProps & {inline?: boolean}} CodeProps
 * @typedef {ComponentPropsWithoutRef<'h1'> & ReactMarkdownProps & {level: number}} HeadingProps
 * @typedef {ComponentPropsWithoutRef<'li'> & ReactMarkdownProps & {checked: boolean|null, index: number, ordered: boolean}} LiProps
 * @typedef {ComponentPropsWithoutRef<'ol'> & ReactMarkdownProps & {depth: number, ordered: true}} OrderedListProps
 * @typedef {ComponentPropsWithoutRef<'td'> & ReactMarkdownProps & {style?: Record<string, unknown>, isHeader: false}} TableDataCellProps
 * @typedef {ComponentPropsWithoutRef<'th'> & ReactMarkdownProps & {style?: Record<string, unknown>, isHeader: true}} TableHeaderCellProps
 * @typedef {ComponentPropsWithoutRef<'tr'> & ReactMarkdownProps & {isHeader: boolean}} TableRowProps
 * @typedef {ComponentPropsWithoutRef<'ul'> & ReactMarkdownProps & {depth: number, ordered: false}} UnorderedListProps
 *
 * @typedef {ComponentType<CodeProps>} CodeComponent
 * @typedef {ComponentType<HeadingProps>} HeadingComponent
 * @typedef {ComponentType<LiProps>} LiComponent
 * @typedef {ComponentType<OrderedListProps>} OrderedListComponent
 * @typedef {ComponentType<TableDataCellProps>} TableDataCellComponent
 * @typedef {ComponentType<TableHeaderCellProps>} TableHeaderCellComponent
 * @typedef {ComponentType<TableRowProps>} TableRowComponent
 * @typedef {ComponentType<UnorderedListProps>} UnorderedListComponent
 *
 * @typedef SpecialComponents
 * @property {CodeComponent|ReactMarkdownNames} code
 * @property {HeadingComponent|ReactMarkdownNames} h1
 * @property {HeadingComponent|ReactMarkdownNames} h2
 * @property {HeadingComponent|ReactMarkdownNames} h3
 * @property {HeadingComponent|ReactMarkdownNames} h4
 * @property {HeadingComponent|ReactMarkdownNames} h5
 * @property {HeadingComponent|ReactMarkdownNames} h6
 * @property {LiComponent|ReactMarkdownNames} li
 * @property {OrderedListComponent|ReactMarkdownNames} ol
 * @property {TableDataCellComponent|ReactMarkdownNames} td
 * @property {TableHeaderCellComponent|ReactMarkdownNames} th
 * @property {TableRowComponent|ReactMarkdownNames} tr
 * @property {UnorderedListComponent|ReactMarkdownNames} ul
 *
 * @typedef {Partial<Omit<import('./complex-types.js').NormalComponents, keyof SpecialComponents> & SpecialComponents>} Components
 *
 * @typedef Options
 * @property {boolean} [sourcePos=false]
 * @property {boolean} [rawSourcePos=false]
 * @property {boolean} [skipHtml=false]
 * @property {boolean} [includeElementIndex=false]
 * @property {null|false|TransformLink} [transformLinkUri]
 * @property {TransformImage} [transformImageUri]
 * @property {TransformLinkTargetType|TransformLinkTarget} [linkTarget]
 * @property {Components} [components]
 */

/**
 * @typedef {import('unist').Node} Node
 * @typedef {import('hast').Root} Root
 * @typedef {import('hast').Element} Element
 *
 * @callback AllowElement
 * @param {Element} element
 * @param {number} index
 * @param {Element|Root} parent
 * @returns {boolean|undefined}
 *
 * @typedef Options
 * @property {Array<string>} [allowedElements]
 * @property {Array<string>} [disallowedElements=[]]
 * @property {AllowElement} [allowElement]
 * @property {boolean} [unwrapDisallowed=false]
 */

/**
 * @typedef {import('unist').Node} Node
 * @typedef {import('unist').Parent} Parent
 * @typedef {import('unist-util-is').Test} Test
 * @typedef {import('unist-util-visit-parents').VisitorResult} VisitorResult
 */

/**
 * @typedef {import('unist').Node} Node
 * @typedef {import('unist').Parent} Parent
 * @typedef {import('unist-util-is').Test} Test
 */

/**
 * @typedef {import('unist').Node} Node
 * @typedef {import('unist').Parent} Parent
 */

/**
 * @typedef {import('unist').Node} Node
 * @typedef {import('unist').Point} Point
 * @typedef {import('unist').Position} Position
 */

/**
 * @typedef {import('unist').Node} Node
 * @typedef {import('unist').Position} Position
 * @typedef {import('unist').Point} Point
 * @typedef {import('./minurl.shared.js').URL} URL
 * @typedef {import('../index.js').Data} Data
 * @typedef {import('../index.js').Value} Value
 */

/**
 * @typedef {import('unist').Node} Node
 * @typedef {import('unist').Position} Position
 * @typedef {import('unist').Point} Point
 * @typedef {object & {type: string, position?: Position | undefined}} NodeLike
 */

/**
 * @typedef {import('unist').Node} Node
 * @typedef {import('vfile').VFileCompatible} VFileCompatible
 * @typedef {import('vfile').VFileValue} VFileValue
 * @typedef {import('..').Processor} Processor
 * @typedef {import('..').Plugin} Plugin
 * @typedef {import('..').Preset} Preset
 * @typedef {import('..').Pluggable} Pluggable
 * @typedef {import('..').PluggableList} PluggableList
 * @typedef {import('..').Transformer} Transformer
 * @typedef {import('..').Parser} Parser
 * @typedef {import('..').Compiler} Compiler
 * @typedef {import('..').RunCallback} RunCallback
 * @typedef {import('..').ProcessCallback} ProcessCallback
 *
 * @typedef Context
 * @property {Node} tree
 * @property {VFile} file
 */

/**
 * @typedef {import('unist').Position} Position
 * @typedef {import('unist').Node} Node
 * @typedef {import('unist').Point} Point
 */

/**
 * @typedef {import('vfile').VFile} VFile
 * @typedef {import('parse5').Document} P5Document
 * @typedef {import('parse5').DocumentFragment} P5Fragment
 * @typedef {Omit<import('parse5').Element, 'parentNode'>} P5Element
 * @typedef {import('parse5').Attribute} P5Attribute
 * @typedef {Omit<import('parse5').Location, 'startOffset' | 'endOffset'> & {startOffset: number|undefined, endOffset: number|undefined}} P5Location
 * @typedef {import('parse5').ParserOptions} P5ParserOptions
 * @typedef {import('hast').Root} Root
 * @typedef {import('hast').DocType} Doctype
 * @typedef {import('hast').Element} Element
 * @typedef {import('hast').Text} Text
 * @typedef {import('hast').Comment} Comment
 * @typedef {import('hast').Content} Content
 * @typedef {Root|Content} Node
 * @typedef {import('../complex-types').Raw} Raw
 *
 * @typedef {Omit<Comment, 'value'> & {value: {stitch: Node}}} Stitch
 *
 * @typedef Options
 * @property {Array<string>} [passThrough]
 *   List of custom hast node types to pass through (keep) in hast.
 *   If the passed through nodes have children, those children are expected to
 *   be hast and will be handled.
 *
 * @typedef HiddenTokenizer
 * @property {Array<HiddenLocationTracker>} __mixins
 *   Way too simple, but works for us.
 * @property {HiddenPreprocessor} preprocessor
 * @property {(value: string) => void} write
 * @property {() => number} _consume
 * @property {Array<HiddenToken>} tokenQueue
 * @property {string} state
 * @property {string} returnState
 * @property {number} charRefCode
 * @property {Array<number>} tempBuff
 * @property {Function} _flushCodePointsConsumedAsCharacterReference
 * @property {string} lastStartTagName
 * @property {number} consumedAfterSnapshot
 * @property {boolean} active
 * @property {HiddenToken|undefined} currentCharacterToken
 * @property {HiddenToken|undefined} currentToken
 * @property {unknown} currentAttr
 * @property {Function} NAMED_CHARACTER_REFERENCE_STATE
 * @property {Function} NUMERIC_CHARACTER_REFERENCE_END_STATE
 *
 * @typedef {Record<string, unknown> & {location: P5Location}} HiddenToken
 *
 * @typedef HiddenPreprocessor
 * @property {string|undefined} html
 * @property {number} pos
 * @property {number} lastGapPos
 * @property {number} lastCharPos
 * @property {Array<number>} gapStack
 * @property {boolean} skipNextNewLine
 * @property {boolean} lastChunkWritten
 * @property {boolean} endOfChunkHit
 *
 * @typedef HiddenLocationTracker
 * @property {P5Location|undefined} currentAttrLocation
 * @property {P5Location} ctLoc
 * @property {HiddenPosTracker} posTracker
 *
 * @typedef HiddenPosTracker
 * @property {boolean} isEol
 * @property {number} lineStartPos
 * @property {number} droppedBufferSize
 * @property {number} offset
 * @property {number} col
 * @property {number} line
 */

/**
 * @typedef {import('vfile').VFile} VFile
 * @typedef {import('property-information').Schema} Schema
 * @typedef {import('unist').Position} Position
 * @typedef {import('unist').Point} Point
 * @typedef {import('hast').Element} Element
 * @typedef {import('hast').Root} Root
 * @typedef {import('hast').Content} Content
 * @typedef {import('parse5').DefaultTreeAdapterMap} DefaultTreeAdapterMap
 * @typedef {import('parse5').Token.ElementLocation} P5ElementLocation
 * @typedef {import('parse5').Token.Location} P5Location
 */

/**
 * @typedef {import('vfile').VFile} VFile
 * @typedef {import('vfile').Value} Value
 */

/**
 * A collection of shims that provide minimal functionality of the ES6 collections.
 *
 * These implementations are not meant to be used outside of the ResizeObserver
 * modules as they cover only a limited range of use cases.
 */

/**
 * A crude way of determining if an object is a window
 * @member util
 */

/**
 * A faster alternative to `Function#apply`, this function invokes `func`
 * with the `this` binding of `thisArg` and the arguments of `args`.
 *
 * @private
 * @param {Function} func The function to invoke.
 * @param {*} thisArg The `this` binding of `func`.
 * @param {Array} args The arguments to invoke `func` with.
 * @returns {*} Returns the result of `func`.
 */

/**
 * A hook to access the redux `dispatch` function.
 *
 * @returns {any|function} redux store's `dispatch` function
 *
 * @example
 *
 * import React, { useCallback } from 'react'
 * import { useDispatch } from 'react-redux'
 *
 * export const CounterComponent = ({ value }) => {
 *   const dispatch = useDispatch()
 *   const increaseCounter = useCallback(() => dispatch({ type: 'increase-counter' }), [])
 *   return (
 *     <div>
 *       <span>{value}</span>
 *       <button onClick={increaseCounter}>Increase counter</button>
 *     </div>
 *   )
 * }
 */

/**
 * A hook to access the redux store's state. This hook takes a selector function
 * as an argument. The selector is called with the store state.
 *
 * This hook takes an optional equality comparison function as the second parameter
 * that allows you to customize the way the selected state is compared to determine
 * whether the component needs to be re-rendered.
 *
 * @param {Function} selector the selector function
 * @param {Function=} equalityFn the function that will be used to determine equality
 *
 * @returns {any} the selected state
 *
 * @example
 *
 * import React from 'react'
 * import { useSelector } from 'react-redux'
 *
 * export const CounterComponent = () => {
 *   const counter = useSelector(state => state.counter)
 *   return <div>{counter}</div>
 * }
 */

/**
 * A hook to access the redux store.
 *
 * @returns {any} the redux store
 *
 * @example
 *
 * import React from 'react'
 * import { useStore } from 'react-redux'
 *
 * export const ExampleComponent = () => {
 *   const store = useStore()
 *   return <div>{store.getState()}</div>
 * }
 */

/**
 * A hook to access the value of the `ReactReduxContext`. This is a low-level
 * hook that you should usually not need to call directly.
 *
 * @returns {any} the value of the `ReactReduxContext`
 *
 * @example
 *
 * import React from 'react'
 * import { useReduxContext } from 'react-redux'
 *
 * export const CounterComponent = ({ value }) => {
 *   const { store } = useReduxContext()
 *   return <div>{store.getState()}</div>
 * }
 */

/**
 * A local reference to the root document.
 */

/**
 * A normalized AJAX error.
 *
 * @see {@link ajax}
 *
 * @class AjaxError
 */

/**
 * A normalized AJAX response.
 *
 * @see {@link ajax}
 *
 * @class AjaxResponse
 */

/**
 * A rather ugly set of instructions which again looks at chunks in the input
 * stream.
 * The reason to do this here is that it is *much* faster to parse in reverse.
 * And that we can’t hook into `null` to split the line suffix before an EOF.
 * To do: figure out if we can make this into a clean utility, or even in core.
 * As it will be useful for GFMs literal autolink extension (and maybe even
 * tables?)
 *
 * @type {Resolver}
 */

/**
 * A specialized version of `_.filter` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {Array} Returns the new filtered array.
 */

/**
 * A specialized version of `_.forEach` for arrays without support for
 * iteratee shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns `array`.
 */

/**
 * A specialized version of `_.includes` for arrays without support for
 * specifying an index to search from.
 *
 * @private
 * @param {Array} [array] The array to inspect.
 * @param {*} target The value to search for.
 * @returns {boolean} Returns `true` if `target` is found, else `false`.
 */

/**
 * A specialized version of `_.indexOf` which performs strict equality
 * comparisons of values, i.e. `===`.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} fromIndex The index to search from.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */

/**
 * A specialized version of `_.map` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the new mapped array.
 */

/**
 * A specialized version of `_.memoize` which clears the memoized function's
 * cache when it exceeds `MAX_MEMOIZE_SIZE`.
 *
 * @private
 * @param {Function} func The function to have its output memoized.
 * @returns {Function} Returns the new memoized function.
 */

/**
 * A specialized version of `_.some` for arrays without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 */

/**
 * A specialized version of `baseAggregator` for arrays.
 *
 * @private
 * @param {Array} [array] The array to iterate over.
 * @param {Function} setter The function to set `accumulator` values.
 * @param {Function} iteratee The iteratee to transform keys.
 * @param {Object} accumulator The initial aggregated object.
 * @returns {Function} Returns `accumulator`.
 */

/**
 * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the raw `toStringTag`.
 */

/**
 * A specialized version of `baseIsEqualDeep` for arrays with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Array} array The array to compare.
 * @param {Array} other The other array to compare.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Function} customizer The function to customize comparisons.
 * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
 *  for more details.
 * @param {Object} stack Tracks traversed `array` and `other` objects.
 * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
 */

/**
 * A specialized version of `baseIsEqualDeep` for arrays with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Array} array The array to compare.
 * @param {Array} other The other array to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `array` and `other` objects.
 * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
 */

/**
 * A specialized version of `baseIsEqualDeep` for comparing objects of
 * the same `toStringTag`.
 *
 * **Note:** This function only supports comparing values with tags of
 * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {string} tag The `toStringTag` of the objects to compare.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Function} customizer The function to customize comparisons.
 * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
 *  for more details.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */

/**
 * A specialized version of `baseIsEqualDeep` for comparing objects of
 * the same `toStringTag`.
 *
 * **Note:** This function only supports comparing values with tags of
 * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {string} tag The `toStringTag` of the objects to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */

/**
 * A specialized version of `baseIsEqualDeep` for objects with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Function} customizer The function to customize comparisons.
 * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`
 *  for more details.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */

/**
 * A specialized version of `baseIsEqualDeep` for objects with support for
 * partial deep comparisons.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} stack Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */

/**
 * A specialized version of `baseIsEqual` for arrays and objects which performs
 * deep comparisons and tracks traversed objects enabling objects with circular
 * references to be compared.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Function} [customizer] The function to customize comparisons.
 * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual`
 *  for more details.
 * @param {Object} [stack] Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */

/**
 * A specialized version of `baseIsEqual` for arrays and objects which performs
 * deep comparisons and tracks traversed objects enabling objects with circular
 * references to be compared.
 *
 * @private
 * @param {Object} object The object to compare.
 * @param {Object} other The other object to compare.
 * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
 * @param {Function} customizer The function to customize comparisons.
 * @param {Function} equalFunc The function to determine equivalents of values.
 * @param {Object} [stack] Tracks traversed `object` and `other` objects.
 * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
 */

/**
 * A specialized version of `baseMerge` for arrays and objects which performs
 * deep merges and tracks traversed objects enabling objects with circular
 * references to be merged.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {string} key The key of the value to merge.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} mergeFunc The function to merge values.
 * @param {Function} [customizer] The function to customize assigned values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */

/**
 * A specialized version of `baseProperty` which supports deep paths.
 *
 * @private
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 */

/**
 * A specialized version of `baseRest` which flattens the rest array.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @returns {Function} Returns the new function.
 */

/**
 * A specialized version of `baseRest` which transforms the rest array.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @param {Function} transform The rest array transform.
 * @returns {Function} Returns the new function.
 */

/**
 * A specialized version of `matchesProperty` for source values suitable
 * for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */

/**
 * AKA `contrast`
 *
 * Analyze the 2 colors and returns the color contrast defined by (WCAG Version 2)
 */

/**
 * Accepts a rect and expands it by the rootMargin value.
 * @param {DOMRect|ClientRect} rect The rect object to expand.
 * @return {ClientRect} The expanded rect.
 * @private
 */

/**
 * Accepts a target and root rect computes the intersection between then
 * following the algorithm in the spec.
 * TODO(philipwalton): at this time clip-path is not considered.
 * https://w3c.github.io/IntersectionObserver/#calculate-intersection-rect-algo
 * @param {Element} target The target DOM element
 * @param {Object} targetRect The bounding rect of the target.
 * @param {Object} rootRect The bounding rect of the root after being
 *     expanded by the rootMargin value.
 * @return {?Object} The final intersection rect object or undefined if no
 *     intersection is found.
 * @private
 */

/**
 * Accepts an old and new entry and returns true if at least one of the
 * threshold values has been crossed.
 * @param {?IntersectionObserverEntry} oldEntry The previous entry for a
 *    particular target element or null if no previous entry exists.
 * @param {IntersectionObserverEntry} newEntry The current entry for a
 *    particular target element.
 * @return {boolean} Returns true if a any threshold has been crossed.
 * @private
 */

/**
 * Accepts the rootMargin value from the user configuration object
 * and returns an array of the four margin values as an object containing
 * the value and unit properties. If any of the values are not properly
 * formatted or use a unit other than px or %, and error is thrown.
 * @private
 * @param {string=} opt_rootMargin An optional rootMargin value,
 *     defaulting to '0px'.
 * @return {Array<Object>} An array of margin objects with the keys
 *     value and unit.
 */

/**
 * Accepts the threshold value from the user configuration object and
 * returns a sorted array of unique threshold values. If a value is not
 * between 0 and 1 and error is thrown.
 * @private
 * @param {Array|number=} opt_threshold An optional threshold value or
 *     a list of threshold values, defaulting to [0].
 * @return {Array} A sorted list of unique and valid threshold values.
 */

/**
 * Action 的基类
 */

/**
 * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js
 *
 * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes
 * during build.
 * @param {number} code
 */

/**
 * Add a listener for a given event.
 *
 * @param {(String|Symbol)} event The event name.
 * @param {Function} fn The listener function.
 * @param {*} [context=this] The context to invoke the listener with.
 * @returns {EventEmitter} `this`.
 * @public
 */

/**
 * Add a listener for a given event.
 *
 * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.
 * @param {(String|Symbol)} event The event name.
 * @param {Function} fn The listener function.
 * @param {*} context The context to invoke the listener with.
 * @param {Boolean} once Specify if the listener is a one-time listener.
 * @returns {EventEmitter}
 * @private
 */

/**
 * Add a one-time listener for a given event.
 *
 * @param {(String|Symbol)} event The event name.
 * @param {Function} fn The listener function.
 * @param {*} [context=this] The context to invoke the listener with.
 * @returns {EventEmitter} `this`.
 * @public
 */

/**
 * Add position info from `from` to `to`.
 *
 * @param {Node} from
 *   hast node.
 * @param {P5Node} to
 *   `parse5` node.
 * @returns {void}
 *   Nothing.
 */

/**
 * Adds `value` to the array cache.
 *
 * @private
 * @name add
 * @memberOf SetCache
 * @alias push
 * @param {*} value The value to cache.
 * @returns {Object} Returns the cache instance.
 */

/**
 * Adds an event handler to a DOM node ensuring cross-browser compatibility.
 * @param {Node} node The DOM node to add the event handler to.
 * @param {string} event The event name.
 * @param {Function} fn The event handler to add.
 * @param {boolean} opt_useCapture Optionally adds the even to the capture
 *     phase. Note: this only works in modern browsers.
 */

/**
 * Adds observer to observers list.
 *
 * @param {ResizeObserverSPI} observer - Observer to be added.
 * @returns {void}
 */

/**
 * Adds the instance to the global IntersectionObserver registry if it isn't
 * already present.
 * @private
 */

/**
 * Adds two dual quat's
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a the first operand
 * @param {ReadonlyQuat2} b the second operand
 * @returns {quat2} out
 * @function
 */

/**
 * Adds two mat2's
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the first operand
 * @param {ReadonlyMat2} b the second operand
 * @returns {mat2} out
 */

/**
 * Adds two mat2's after multiplying each element of the second operand by a scalar value.
 *
 * @param {mat2} out the receiving vector
 * @param {ReadonlyMat2} a the first operand
 * @param {ReadonlyMat2} b the second operand
 * @param {Number} scale the amount to scale b's elements by before adding
 * @returns {mat2} out
 */

/**
 * Adds two mat2d's
 *
 * @param {mat2d} out the receiving matrix
 * @param {ReadonlyMat2d} a the first operand
 * @param {ReadonlyMat2d} b the second operand
 * @returns {mat2d} out
 */

/**
 * Adds two mat2d's after multiplying each element of the second operand by a scalar value.
 *
 * @param {mat2d} out the receiving vector
 * @param {ReadonlyMat2d} a the first operand
 * @param {ReadonlyMat2d} b the second operand
 * @param {Number} scale the amount to scale b's elements by before adding
 * @returns {mat2d} out
 */

/**
 * Adds two mat3's
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the first operand
 * @param {ReadonlyMat3} b the second operand
 * @returns {mat3} out
 */

/**
 * Adds two mat3's after multiplying each element of the second operand by a scalar value.
 *
 * @param {mat3} out the receiving vector
 * @param {ReadonlyMat3} a the first operand
 * @param {ReadonlyMat3} b the second operand
 * @param {Number} scale the amount to scale b's elements by before adding
 * @returns {mat3} out
 */

/**
 * Adds two mat4's
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the first operand
 * @param {ReadonlyMat4} b the second operand
 * @returns {mat4} out
 */

/**
 * Adds two mat4's after multiplying each element of the second operand by a scalar value.
 *
 * @param {mat4} out the receiving vector
 * @param {ReadonlyMat4} a the first operand
 * @param {ReadonlyMat4} b the second operand
 * @param {Number} scale the amount to scale b's elements by before adding
 * @returns {mat4} out
 */

/**
 * Adds two quat's
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a the first operand
 * @param {ReadonlyQuat} b the second operand
 * @returns {quat} out
 * @function
 */

/**
 * Adds two vec2's
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {vec2} out
 */

/**
 * Adds two vec2's after scaling the second operand by a scalar value
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @param {Number} scale the amount to scale b by before adding
 * @returns {vec2} out
 */

/**
 * Adds two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {vec3} out
 */

/**
 * Adds two vec3's after scaling the second operand by a scalar value
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @param {Number} scale the amount to scale b by before adding
 * @returns {vec3} out
 */

/**
 * Adds two vec4's
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @returns {vec4} out
 */

/**
 * Adds two vec4's after scaling the second operand by a scalar value
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @param {Number} scale the amount to scale b by before adding
 * @returns {vec4} out
 */

/**
 * Aggregates elements of `collection` on `accumulator` with keys transformed
 * by `iteratee` and values set by `setter`.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} setter The function to set `accumulator` values.
 * @param {Function} iteratee The iteratee to transform keys.
 * @param {Object} accumulator The initial aggregated object.
 * @returns {Function} Returns `accumulator`.
 */

/**
 * Alias for {@link mat2.multiply}
 * @function
 */

/**
 * Alias for {@link mat2.subtract}
 * @function
 */

/**
 * Alias for {@link mat2d.multiply}
 * @function
 */

/**
 * Alias for {@link mat2d.subtract}
 * @function
 */

/**
 * Alias for {@link mat3.multiply}
 * @function
 */

/**
 * Alias for {@link mat3.subtract}
 * @function
 */

/**
 * Alias for {@link mat4.multiply}
 * @function
 */

/**
 * Alias for {@link mat4.orthoNO}
 * @function
 */

/**
 * Alias for {@link mat4.perspectiveNO}
 * @function
 */

/**
 * Alias for {@link mat4.subtract}
 * @function
 */

/**
 * Alias for {@link quat.length}
 * @function
 */

/**
 * Alias for {@link quat.multiply}
 * @function
 */

/**
 * Alias for {@link quat.squaredLength}
 * @function
 */

/**
 * Alias for {@link quat2.length}
 * @function
 */

/**
 * Alias for {@link quat2.multiply}
 * @function
 */

/**
 * Alias for {@link quat2.squaredLength}
 * @function
 */

/**
 * Alias for {@link vec2.distance}
 * @function
 */

/**
 * Alias for {@link vec2.divide}
 * @function
 */

/**
 * Alias for {@link vec2.length}
 * @function
 */

/**
 * Alias for {@link vec2.multiply}
 * @function
 */

/**
 * Alias for {@link vec2.squaredDistance}
 * @function
 */

/**
 * Alias for {@link vec2.squaredLength}
 * @function
 */

/**
 * Alias for {@link vec2.subtract}
 * @function
 */

/**
 * Alias for {@link vec3.distance}
 * @function
 */

/**
 * Alias for {@link vec3.divide}
 * @function
 */

/**
 * Alias for {@link vec3.length}
 * @function
 */

/**
 * Alias for {@link vec3.multiply}
 * @function
 */

/**
 * Alias for {@link vec3.squaredDistance}
 * @function
 */

/**
 * Alias for {@link vec3.squaredLength}
 * @function
 */

/**
 * Alias for {@link vec3.subtract}
 * @function
 */

/**
 * Alias for {@link vec4.distance}
 * @function
 */

/**
 * Alias for {@link vec4.divide}
 * @function
 */

/**
 * Alias for {@link vec4.length}
 * @function
 */

/**
 * Alias for {@link vec4.multiply}
 * @function
 */

/**
 * Alias for {@link vec4.squaredDistance}
 * @function
 */

/**
 * Alias for {@link vec4.squaredLength}
 * @function
 */

/**
 * Alias for {@link vec4.subtract}
 * @function
 */

/**
 * Align the logic of toFixed to around like 1.5 => 2
 */

/**
 * Allow `value`.
 *
 * @type {Handler}
 * @param {unknown} value
 */

/**
 * Allows for registration of query handlers.
 * Manages the query handler's state and is responsible for wiring up browser events
 *
 * @constructor
 */

/**
 * Allows source Observable to be subscribed only once with a Subject of choice,
 * while still sharing its values between multiple subscribers.
 *
 * <span class="informal">Subscribe to Observable once, but send its values to multiple subscribers.</span>
 *
 * <img src="./img/multicast.png" width="100%">
 *
 * `multicast` is an operator that works in two modes.
 *
 * In the first mode you provide a single argument to it, which can be either an initialized Subject or a Subject
 * factory. As a result you will get a special kind of an Observable - a {@link ConnectableObservable}. It can be
 * subscribed multiple times, just as regular Observable, but it won't subscribe to the source Observable at that
 * moment. It will do it only if you call its `connect` method. This means you can essentially control by hand, when
 * source Observable will be actually subscribed. What is more, ConnectableObservable will share this one subscription
 * between all of its subscribers. This means that, for example, `ajax` Observable will only send a request once,
 * even though usually it would send a request per every subscriber. Since it sends a request at the moment of
 * subscription, here request would be sent when the `connect` method of a ConnectableObservable is called.
 *
 * The most common pattern of using ConnectableObservable is calling `connect` when the first consumer subscribes,
 * keeping the subscription alive while several consumers come and go and finally unsubscribing from the source
 * Observable, when the last consumer unsubscribes. To not implement that logic over and over again,
 * ConnectableObservable has a special operator, `refCount`. When called, it returns an Observable, which will count
 * the number of consumers subscribed to it and keep ConnectableObservable connected as long as there is at least
 * one consumer. So if you don't actually need to decide yourself when to connect and disconnect a
 * ConnectableObservable, use `refCount`.
 *
 * The second mode is invoked by calling `multicast` with an additional, second argument - selector function.
 * This function accepts an Observable - which basically mirrors the source Observable - and returns Observable
 * as well, which should be the input stream modified by any operators you want. Note that in this
 * mode you cannot provide initialized Subject as a first argument - it has to be a Subject factory. If
 * you provide selector function, `multicast` returns just a regular Observable, instead of ConnectableObservable.
 * Thus, as usual, each subscription to this stream triggers subscription to the source Observable. However,
 * if inside the selector function you subscribe to the input Observable multiple times, actual source stream
 * will be subscribed only once. So if you have a chain of operators that use some Observable many times,
 * but you want to subscribe to that Observable only once, this is the mode you would use.
 *
 * Subject provided as a first parameter of `multicast` is used as a proxy for the single subscription to the
 * source Observable. It means that all values from the source stream go through that Subject. Thus, if a Subject
 * has some special properties, Observable returned by `multicast` will have them as well. If you want to use
 * `multicast` with a Subject that is one of the ones included in RxJS by default - {@link Subject},
 * {@link AsyncSubject}, {@link BehaviorSubject}, or {@link ReplaySubject} - simply use {@link publish},
 * {@link publishLast}, {@link publishBehavior} or {@link publishReplay} respectively. These are actually
 * just wrappers around `multicast`, with a specific Subject hardcoded inside.
 *
 * Also, if you use {@link publish} or {@link publishReplay} with a ConnectableObservables `refCount` operator,
 * you can simply use {@link share} and {@link shareReplay} respectively, which chain these two.
 *
 * @example <caption>Use ConnectableObservable</caption>
 * const seconds = Rx.Observable.interval(1000);
 * const connectableSeconds = seconds.multicast(new Subject());
 *
 * connectableSeconds.subscribe(value => console.log('first: ' + value));
 * connectableSeconds.subscribe(value => console.log('second: ' + value));
 *
 * // At this point still nothing happens, even though we subscribed twice.
 *
 * connectableSeconds.connect();
 *
 * // From now on `seconds` are being logged to the console,
 * // twice per every second. `seconds` Observable was however only subscribed once,
 * // so under the hood Observable.interval had only one clock started.
 *
 * @example <caption>Use selector</caption>
 * const seconds = Rx.Observable.interval(1000);
 *
 * seconds
 *     .multicast(
 *         () => new Subject(),
 *         seconds => seconds.zip(seconds) // Usually zip would subscribe to `seconds` twice.
 *                                         // Because we are inside selector, `seconds` is subscribed once,
 *     )                                   // thus starting only one clock used internally by Observable.interval.
 *     .subscribe();
 *
 * @see {@link publish}
 * @see {@link publishLast}
 * @see {@link publishBehavior}
 * @see {@link publishReplay}
 * @see {@link share}
 * @see {@link shareReplay}
 *
 * @param {Function|Subject} subjectOrSubjectFactory - Factory function to create an intermediate Subject through
 * which the source sequence's elements will be multicast to the selector function input Observable or
 * ConnectableObservable returned by the operator.
 * @param {Function} [selector] - Optional selector function that can use the input stream
 * as many times as needed, without causing multiple subscriptions to the source stream.
 * Subscribers to the input source will receive all notifications of the source from the
 * time of the subscription forward.
 * @return {Observable<T>|ConnectableObservable<T>} An Observable that emits the results of invoking the selector
 * on the source stream or a special {@link ConnectableObservable}, if selector was not provided.
 *
 * @method multicast
 * @owner Observable
 */

/**
 * Always return a valid HTML5 doctype.
 *
 * @type {Handler}
 * @returns {string}
 */

/**
 * An Extension of Wilkinson's Algorithm for Position Tick Labels on Axes
 * https://www.yuque.com/preview/yuque/0/2019/pdf/185317/1546999150858-45c3b9c2-4e86-4223-bf1a-8a732e8195ed.pdf
 * @param dMin 最小值
 * @param dMax 最大值
 * @param m tick个数
 * @param onlyLoose 是否允许扩展min、max，不绝对强制，例如[3, 97]
 * @param Q nice numbers集合
 * @param w 四个优化组件的权重
 */

/**
 * An IntersectionObserver registry. This registry exists to hold a strong
 * reference to IntersectionObserver instances currently observing a target
 * element. Without this registry, instances without another reference may be
 * garbage collected.
 */

/**
 * An error thrown when an Observable or a sequence was queried but has no
 * elements.
 *
 * @see {@link first}
 * @see {@link last}
 * @see {@link single}
 *
 * @class EmptyError
 */

/**
 * An error thrown when an action is invalid because the object has been
 * unsubscribed.
 *
 * @see {@link Subject}
 * @see {@link BehaviorSubject}
 *
 * @class ObjectUnsubscribedError
 */

/**
 * An error thrown when an element was queried at a certain index of an
 * Observable, but no such index or position exists in that sequence.
 *
 * @see {@link elementAt}
 * @see {@link take}
 * @see {@link takeLast}
 *
 * @class ArgumentOutOfRangeError
 */

/**
 * An error thrown when duetime elapses.
 *
 * @see {@link timeout}
 *
 * @class TimeoutError
 */

/**
 * An error thrown when one or more errors have occurred during the
 * `unsubscribe` of a {@link Subscription}.
 */

/**
 * An execution context and a data structure to order tasks and schedule their
 * execution. Provides a notion of (potentially virtual) time, through the
 * `now()` getter method.
 *
 * Each unit of work in a Scheduler is called an {@link Action}.
 *
 * ```ts
 * class Scheduler {
 *   now(): number;
 *   schedule(work, delay?, state?): Subscription;
 * }
 * ```
 *
 * @class Scheduler
 */

/**
 * Append `items` (an array) at the end of `list` (another array).
 * When `list` was empty, returns `items` instead.
 *
 * This prevents a potentially expensive operation when `list` is empty,
 * and adds items in batches to prevent V8 from hanging.
 *
 * @template {unknown} T
 * @param {T[]} list
 * @param {T[]} items
 * @returns {T[]}
 */

/**
 * Appends the elements of `values` to `array`.
 *
 * @private
 * @param {Array} array The array to modify.
 * @param {Array} values The values to append.
 * @returns {Array} Returns `array`.
 */

/**
 * Applies a given `project` function to each value emitted by the source
 * Observable, and emits the resulting values as an Observable.
 *
 * <span class="informal">Like [Array.prototype.map()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map),
 * it passes each source value through a transformation function to get
 * corresponding output values.</span>
 *
 * <img src="./img/map.png" width="100%">
 *
 * Similar to the well known `Array.prototype.map` function, this operator
 * applies a projection to each value and emits that projection in the output
 * Observable.
 *
 * @example <caption>Map every click to the clientX position of that click</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var positions = clicks.map(ev => ev.clientX);
 * positions.subscribe(x => console.log(x));
 *
 * @see {@link mapTo}
 * @see {@link pluck}
 *
 * @param {function(value: T, index: number): R} project The function to apply
 * to each `value` emitted by the source Observable. The `index` parameter is
 * the number `i` for the i-th emission that has happened since the
 * subscription, starting from the number `0`.
 * @param {any} [thisArg] An optional argument to define what `this` is in the
 * `project` function.
 * @return {Observable<R>} An Observable that emits the values from the source
 * Observable transformed by the given `project` function.
 * @method map
 * @owner Observable
 */

/**
 * Applies an accumulator function over the source Observable where the
 * accumulator function itself returns an Observable, then each intermediate
 * Observable returned is merged into the output Observable.
 *
 * <span class="informal">It's like {@link scan}, but the Observables returned
 * by the accumulator are merged into the outer Observable.</span>
 *
 * @example <caption>Count the number of click events</caption>
 * const click$ = Rx.Observable.fromEvent(document, 'click');
 * const one$ = click$.mapTo(1);
 * const seed = 0;
 * const count$ = one$.mergeScan((acc, one) => Rx.Observable.of(acc + one), seed);
 * count$.subscribe(x => console.log(x));
 *
 * // Results:
 * 1
 * 2
 * 3
 * 4
 * // ...and so on for each click
 *
 * @param {function(acc: R, value: T): Observable<R>} accumulator
 * The accumulator function called on each source value.
 * @param seed The initial accumulation value.
 * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of
 * input Observables being subscribed to concurrently.
 * @return {Observable<R>} An observable of the accumulated values.
 * @method mergeScan
 * @owner Observable
 */

/**
 * Applies an accumulator function over the source Observable, and returns each
 * intermediate result, with an optional seed value.
 *
 * <span class="informal">It's like {@link reduce}, but emits the current
 * accumulation whenever the source emits a value.</span>
 *
 * <img src="./img/scan.png" width="100%">
 *
 * Combines together all values emitted on the source, using an accumulator
 * function that knows how to join a new source value into the accumulation from
 * the past. Is similar to {@link reduce}, but emits the intermediate
 * accumulations.
 *
 * Returns an Observable that applies a specified `accumulator` function to each
 * item emitted by the source Observable. If a `seed` value is specified, then
 * that value will be used as the initial value for the accumulator. If no seed
 * value is specified, the first item of the source is used as the seed.
 *
 * @example <caption>Count the number of click events</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var ones = clicks.mapTo(1);
 * var seed = 0;
 * var count = ones.scan((acc, one) => acc + one, seed);
 * count.subscribe(x => console.log(x));
 *
 * @see {@link expand}
 * @see {@link mergeScan}
 * @see {@link reduce}
 *
 * @param {function(acc: R, value: T, index: number): R} accumulator
 * The accumulator function called on each source value.
 * @param {T|R} [seed] The initial accumulation value.
 * @return {Observable<R>} An observable of the accumulated values.
 * @method scan
 * @owner Observable
 */

/**
 * Applies an accumulator function over the source Observable, and returns the
 * accumulated result when the source completes, given an optional seed value.
 *
 * <span class="informal">Combines together all values emitted on the source,
 * using an accumulator function that knows how to join a new source value into
 * the accumulation from the past.</span>
 *
 * <img src="./img/reduce.png" width="100%">
 *
 * Like
 * [Array.prototype.reduce()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce),
 * `reduce` applies an `accumulator` function against an accumulation and each
 * value of the source Observable (from the past) to reduce it to a single
 * value, emitted on the output Observable. Note that `reduce` will only emit
 * one value, only when the source Observable completes. It is equivalent to
 * applying operator {@link scan} followed by operator {@link last}.
 *
 * Returns an Observable that applies a specified `accumulator` function to each
 * item emitted by the source Observable. If a `seed` value is specified, then
 * that value will be used as the initial value for the accumulator. If no seed
 * value is specified, the first item of the source is used as the seed.
 *
 * @example <caption>Count the number of click events that happened in 5 seconds</caption>
 * var clicksInFiveSeconds = Rx.Observable.fromEvent(document, 'click')
 *   .takeUntil(Rx.Observable.interval(5000));
 * var ones = clicksInFiveSeconds.mapTo(1);
 * var seed = 0;
 * var count = ones.reduce((acc, one) => acc + one, seed);
 * count.subscribe(x => console.log(x));
 *
 * @see {@link count}
 * @see {@link expand}
 * @see {@link mergeScan}
 * @see {@link scan}
 *
 * @param {function(acc: R, value: T, index: number): R} accumulator The accumulator function
 * called on each source value.
 * @param {R} [seed] The initial accumulation value.
 * @return {Observable<R>} An Observable that emits a single value that is the
 * result of accumulating the values emitted by the source Observable.
 * @method reduce
 * @owner Observable
 */

/**
 * Area 几何标记类。
 * 常用于绘制面积图。
 */

/**
 * Assert `node` is a unist node.
 *
 * @param {unknown} node
 * @returns {asserts node is Node}
 */

/**
 * Assert `path` exists.
 *
 * @param {string | undefined} path
 *   Path.
 * @param {string} name
 *   Dependency name.
 * @returns {asserts path is string}
 *   Nothing.
 */

/**
 * Assert `value` is a buffer.
 *
 * @param {unknown} value
 *   thing.
 * @returns {value is Buffer}
 *   Whether `value` is a Node.js buffer.
 */

/**
 * Assert a compiler is available.
 *
 * @param {string} name
 * @param {unknown} value
 * @returns {asserts value is Compiler}
 */

/**
 * Assert a parser is available.
 *
 * @param {string} name
 * @param {unknown} value
 * @returns {asserts value is Parser}
 */

/**
 * Assert that `complete` is `true`.
 *
 * @param {string} name
 * @param {string} asyncName
 * @param {unknown} complete
 * @returns {asserts complete is true}
 */

/**
 * Assert that `part` is not a path (as in, does not contain `path.sep`).
 *
 * @param {string | null | undefined} part
 *   File path part.
 * @param {string} name
 *   Part name.
 * @returns {void}
 *   Nothing.
 */

/**
 * Assert that `part` is not empty.
 *
 * @param {string | undefined} part
 *   Thing.
 * @param {string} name
 *   Part name.
 * @returns {asserts part is string}
 *   Nothing.
 */

/**
 * Assert the processor is not frozen.
 *
 * @param {string} name
 * @param {unknown} frozen
 * @returns {asserts frozen is false}
 */

/**
 * Assigns `value` to `key` of `object` if the existing value is not equivalent
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */

/**
 * Asynchronously subscribes Observers to this Observable on the specified IScheduler.
 *
 * <img src="./img/subscribeOn.png" width="100%">
 *
 * @param {Scheduler} scheduler - The IScheduler to perform subscription actions on.
 * @return {Observable<T>} The source Observable modified so that its subscriptions happen on the specified IScheduler.
 .
 * @method subscribeOn
 * @owner Observable
 */

/**
 * Before reuse `rc-tree` logic, we need to add key since TreeSelect use `value` instead of `key`.
 */

/**
 * Block Lexer
 */

/**
 * Block-Level Grammar
 */

/**
 * Branch out the source Observable values as a nested Observable starting from
 * an emission from `openings` and ending when the output of `closingSelector`
 * emits.
 *
 * <span class="informal">It's like {@link bufferToggle}, but emits a nested
 * Observable instead of an array.</span>
 *
 * <img src="./img/windowToggle.png" width="100%">
 *
 * Returns an Observable that emits windows of items it collects from the source
 * Observable. The output Observable emits windows that contain those items
 * emitted by the source Observable between the time when the `openings`
 * Observable emits an item and when the Observable returned by
 * `closingSelector` emits an item.
 *
 * @example <caption>Every other second, emit the click events from the next 500ms</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var openings = Rx.Observable.interval(1000);
 * var result = clicks.windowToggle(openings, i =>
 *   i % 2 ? Rx.Observable.interval(500) : Rx.Observable.empty()
 * ).mergeAll();
 * result.subscribe(x => console.log(x));
 *
 * @see {@link window}
 * @see {@link windowCount}
 * @see {@link windowTime}
 * @see {@link windowWhen}
 * @see {@link bufferToggle}
 *
 * @param {Observable<O>} openings An observable of notifications to start new
 * windows.
 * @param {function(value: O): Observable} closingSelector A function that takes
 * the value emitted by the `openings` observable and returns an Observable,
 * which, when it emits (either `next` or `complete`), signals that the
 * associated window should complete.
 * @return {Observable<Observable<T>>} An observable of windows, which in turn
 * are Observables.
 * @method windowToggle
 * @owner Observable
 */

/**
 * Branch out the source Observable values as a nested Observable using a
 * factory function of closing Observables to determine when to start a new
 * window.
 *
 * <span class="informal">It's like {@link bufferWhen}, but emits a nested
 * Observable instead of an array.</span>
 *
 * <img src="./img/windowWhen.png" width="100%">
 *
 * Returns an Observable that emits windows of items it collects from the source
 * Observable. The output Observable emits connected, non-overlapping windows.
 * It emits the current window and opens a new one whenever the Observable
 * produced by the specified `closingSelector` function emits an item. The first
 * window is opened immediately when subscribing to the output Observable.
 *
 * @example <caption>Emit only the first two clicks events in every window of [1-5] random seconds</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks
 *   .windowWhen(() => Rx.Observable.interval(1000 + Math.random() * 4000))
 *   .map(win => win.take(2)) // each window has at most 2 emissions
 *   .mergeAll(); // flatten the Observable-of-Observables
 * result.subscribe(x => console.log(x));
 *
 * @see {@link window}
 * @see {@link windowCount}
 * @see {@link windowTime}
 * @see {@link windowToggle}
 * @see {@link bufferWhen}
 *
 * @param {function(): Observable} closingSelector A function that takes no
 * arguments and returns an Observable that signals (on either `next` or
 * `complete`) when to close the previous window and start a new one.
 * @return {Observable<Observable<T>>} An observable of windows, which in turn
 * are Observables.
 * @method windowWhen
 * @owner Observable
 */

/**
 * Branch out the source Observable values as a nested Observable whenever
 * `windowBoundaries` emits.
 *
 * <span class="informal">It's like {@link buffer}, but emits a nested Observable
 * instead of an array.</span>
 *
 * <img src="./img/window.png" width="100%">
 *
 * Returns an Observable that emits windows of items it collects from the source
 * Observable. The output Observable emits connected, non-overlapping
 * windows. It emits the current window and opens a new one whenever the
 * Observable `windowBoundaries` emits an item. Because each window is an
 * Observable, the output is a higher-order Observable.
 *
 * @example <caption>In every window of 1 second each, emit at most 2 click events</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var interval = Rx.Observable.interval(1000);
 * var result = clicks.window(interval)
 *   .map(win => win.take(2)) // each window has at most 2 emissions
 *   .mergeAll(); // flatten the Observable-of-Observables
 * result.subscribe(x => console.log(x));
 *
 * @see {@link windowCount}
 * @see {@link windowTime}
 * @see {@link windowToggle}
 * @see {@link windowWhen}
 * @see {@link buffer}
 *
 * @param {Observable<any>} windowBoundaries An Observable that completes the
 * previous window and starts a new window.
 * @return {Observable<Observable<T>>} An Observable of windows, which are
 * Observables emitting values of the source Observable.
 * @method window
 * @owner Observable
 */

/**
 * Branch out the source Observable values as a nested Observable with each
 * nested Observable emitting at most `windowSize` values.
 *
 * <span class="informal">It's like {@link bufferCount}, but emits a nested
 * Observable instead of an array.</span>
 *
 * <img src="./img/windowCount.png" width="100%">
 *
 * Returns an Observable that emits windows of items it collects from the source
 * Observable. The output Observable emits windows every `startWindowEvery`
 * items, each containing no more than `windowSize` items. When the source
 * Observable completes or encounters an error, the output Observable emits
 * the current window and propagates the notification from the source
 * Observable. If `startWindowEvery` is not provided, then new windows are
 * started immediately at the start of the source and when each window completes
 * with size `windowSize`.
 *
 * @example <caption>Ignore every 3rd click event, starting from the first one</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.windowCount(3)
 *   .map(win => win.skip(1)) // skip first of every 3 clicks
 *   .mergeAll(); // flatten the Observable-of-Observables
 * result.subscribe(x => console.log(x));
 *
 * @example <caption>Ignore every 3rd click event, starting from the third one</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.windowCount(2, 3)
 *   .mergeAll(); // flatten the Observable-of-Observables
 * result.subscribe(x => console.log(x));
 *
 * @see {@link window}
 * @see {@link windowTime}
 * @see {@link windowToggle}
 * @see {@link windowWhen}
 * @see {@link bufferCount}
 *
 * @param {number} windowSize The maximum number of values emitted by each
 * window.
 * @param {number} [startWindowEvery] Interval at which to start a new window.
 * For example if `startWindowEvery` is `2`, then a new window will be started
 * on every other value from the source. A new window is started at the
 * beginning of the source by default.
 * @return {Observable<Observable<T>>} An Observable of windows, which in turn
 * are Observable of values.
 * @method windowCount
 * @owner Observable
 */

/**
 * Bridge-mode.
 * Runs the destination with the new hast tree.
 *
 * @type {import('unified').Plugin<[Processor, Options?], MdastRoot>}
 */

/**
 * Broadcasted width of content rectangle.
 *
 * @type {number}
 */

/**
 * Buffers the source Observable values for a specific time period.
 *
 * <span class="informal">Collects values from the past as an array, and emits
 * those arrays periodically in time.</span>
 *
 * <img src="./img/bufferTime.png" width="100%">
 *
 * Buffers values from the source for a specific time duration `bufferTimeSpan`.
 * Unless the optional argument `bufferCreationInterval` is given, it emits and
 * resets the buffer every `bufferTimeSpan` milliseconds. If
 * `bufferCreationInterval` is given, this operator opens the buffer every
 * `bufferCreationInterval` milliseconds and closes (emits and resets) the
 * buffer every `bufferTimeSpan` milliseconds. When the optional argument
 * `maxBufferSize` is specified, the buffer will be closed either after
 * `bufferTimeSpan` milliseconds or when it contains `maxBufferSize` elements.
 *
 * @example <caption>Every second, emit an array of the recent click events</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var buffered = clicks.bufferTime(1000);
 * buffered.subscribe(x => console.log(x));
 *
 * @example <caption>Every 5 seconds, emit the click events from the next 2 seconds</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var buffered = clicks.bufferTime(2000, 5000);
 * buffered.subscribe(x => console.log(x));
 *
 * @see {@link buffer}
 * @see {@link bufferCount}
 * @see {@link bufferToggle}
 * @see {@link bufferWhen}
 * @see {@link windowTime}
 *
 * @param {number} bufferTimeSpan The amount of time to fill each buffer array.
 * @param {number} [bufferCreationInterval] The interval at which to start new
 * buffers.
 * @param {number} [maxBufferSize] The maximum buffer size.
 * @param {Scheduler} [scheduler=async] The scheduler on which to schedule the
 * intervals that determine buffer boundaries.
 * @return {Observable<T[]>} An observable of arrays of buffered values.
 * @method bufferTime
 * @owner Observable
 */

/**
 * Buffers the source Observable values starting from an emission from
 * `openings` and ending when the output of `closingSelector` emits.
 *
 * <span class="informal">Collects values from the past as an array. Starts
 * collecting only when `opening` emits, and calls the `closingSelector`
 * function to get an Observable that tells when to close the buffer.</span>
 *
 * <img src="./img/bufferToggle.png" width="100%">
 *
 * Buffers values from the source by opening the buffer via signals from an
 * Observable provided to `openings`, and closing and sending the buffers when
 * a Subscribable or Promise returned by the `closingSelector` function emits.
 *
 * @example <caption>Every other second, emit the click events from the next 500ms</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var openings = Rx.Observable.interval(1000);
 * var buffered = clicks.bufferToggle(openings, i =>
 *   i % 2 ? Rx.Observable.interval(500) : Rx.Observable.empty()
 * );
 * buffered.subscribe(x => console.log(x));
 *
 * @see {@link buffer}
 * @see {@link bufferCount}
 * @see {@link bufferTime}
 * @see {@link bufferWhen}
 * @see {@link windowToggle}
 *
 * @param {SubscribableOrPromise<O>} openings A Subscribable or Promise of notifications to start new
 * buffers.
 * @param {function(value: O): SubscribableOrPromise} closingSelector A function that takes
 * the value emitted by the `openings` observable and returns a Subscribable or Promise,
 * which, when it emits, signals that the associated buffer should be emitted
 * and cleared.
 * @return {Observable<T[]>} An observable of arrays of buffered values.
 * @method bufferToggle
 * @owner Observable
 */

/**
 * Buffers the source Observable values until `closingNotifier` emits.
 *
 * <span class="informal">Collects values from the past as an array, and emits
 * that array only when another Observable emits.</span>
 *
 * <img src="./img/buffer.png" width="100%">
 *
 * Buffers the incoming Observable values until the given `closingNotifier`
 * Observable emits a value, at which point it emits the buffer on the output
 * Observable and starts a new buffer internally, awaiting the next time
 * `closingNotifier` emits.
 *
 * @example <caption>On every click, emit array of most recent interval events</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var interval = Rx.Observable.interval(1000);
 * var buffered = interval.buffer(clicks);
 * buffered.subscribe(x => console.log(x));
 *
 * @see {@link bufferCount}
 * @see {@link bufferTime}
 * @see {@link bufferToggle}
 * @see {@link bufferWhen}
 * @see {@link window}
 *
 * @param {Observable<any>} closingNotifier An Observable that signals the
 * buffer to be emitted on the output Observable.
 * @return {Observable<T[]>} An Observable of buffers, which are arrays of
 * values.
 * @method buffer
 * @owner Observable
 */

/**
 * Buffers the source Observable values until the size hits the maximum
 * `bufferSize` given.
 *
 * <span class="informal">Collects values from the past as an array, and emits
 * that array only when its size reaches `bufferSize`.</span>
 *
 * <img src="./img/bufferCount.png" width="100%">
 *
 * Buffers a number of values from the source Observable by `bufferSize` then
 * emits the buffer and clears it, and starts a new buffer each
 * `startBufferEvery` values. If `startBufferEvery` is not provided or is
 * `null`, then new buffers are started immediately at the start of the source
 * and when each buffer closes and is emitted.
 *
 * @example <caption>Emit the last two click events as an array</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var buffered = clicks.bufferCount(2);
 * buffered.subscribe(x => console.log(x));
 *
 * @example <caption>On every click, emit the last two click events as an array</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var buffered = clicks.bufferCount(2, 1);
 * buffered.subscribe(x => console.log(x));
 *
 * @see {@link buffer}
 * @see {@link bufferTime}
 * @see {@link bufferToggle}
 * @see {@link bufferWhen}
 * @see {@link pairwise}
 * @see {@link windowCount}
 *
 * @param {number} bufferSize The maximum size of the buffer emitted.
 * @param {number} [startBufferEvery] Interval at which to start a new buffer.
 * For example if `startBufferEvery` is `2`, then a new buffer will be started
 * on every other value from the source. A new buffer is started at the
 * beginning of the source by default.
 * @return {Observable<T[]>} An Observable of arrays of buffered values.
 * @method bufferCount
 * @owner Observable
 */

/**
 * Buffers the source Observable values, using a factory function of closing
 * Observables to determine when to close, emit, and reset the buffer.
 *
 * <span class="informal">Collects values from the past as an array. When it
 * starts collecting values, it calls a function that returns an Observable that
 * tells when to close the buffer and restart collecting.</span>
 *
 * <img src="./img/bufferWhen.png" width="100%">
 *
 * Opens a buffer immediately, then closes the buffer when the observable
 * returned by calling `closingSelector` function emits a value. When it closes
 * the buffer, it immediately opens a new buffer and repeats the process.
 *
 * @example <caption>Emit an array of the last clicks every [1-5] random seconds</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var buffered = clicks.bufferWhen(() =>
 *   Rx.Observable.interval(1000 + Math.random() * 4000)
 * );
 * buffered.subscribe(x => console.log(x));
 *
 * @see {@link buffer}
 * @see {@link bufferCount}
 * @see {@link bufferTime}
 * @see {@link bufferToggle}
 * @see {@link windowWhen}
 *
 * @param {function(): Observable} closingSelector A function that takes no
 * arguments and returns an Observable that signals buffer closure.
 * @return {Observable<T[]>} An observable of arrays of buffered values.
 * @method bufferWhen
 * @owner Observable
 */

/**
 * Build a typed `Visitor` function from a list of descendants and a test.
 *
 * It will infer which values are passed as `node` and which as `parent`.
 *
 * @template {Node} Descendant
 *   Node type.
 * @template {Test} Check
 *   Test type.
 * @typedef {(
 *   BuildVisitorFromMatch<
 *     import('unist-util-visit-parents/complex-types.js').Matches<Descendant, Check>,
 *     Extract<Descendant, Parent>
 *   >
 * )} BuildVisitorFromDescendants
 */

/**
 * Build a typed `Visitor` function from a node and all possible parents.
 *
 * It will infer which values are passed as `node` and which as `parent`.
 *
 * @template {Node} Visited
 *   Node type.
 * @template {Parent} Ancestor
 *   Parent type.
 * @typedef {Visitor<Visited, ParentsOf<Ancestor, Visited>>} BuildVisitorFromMatch
 */

/**
 * Build a typed `Visitor` function from a tree and a test.
 *
 * It will infer which values are passed as `node` and which as `parent`.
 *
 * @template {Node} [Tree=Node]
 *   Node type.
 * @template {Test} [Check=string]
 *   Test type.
 * @typedef {(
 *   BuildVisitorFromDescendants<
 *     import('unist-util-visit-parents/complex-types.js').InclusiveDescendant<Tree>,
 *     Check
 *   >
 * )} BuildVisitor
 */

/**
 * Cache callback function that always return same ref instead.
 * This is used for context optimization.
 */

/**
 * Calculate the exponential of a unit quaternion.
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a quat to calculate the exponential of
 * @returns {quat} out
 */

/**
 * Calculate the natural logarithm of a unit quaternion.
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a quat to calculate the exponential of
 * @returns {quat} out
 */

/**
 * Calculate the scalar power of a unit quaternion.
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a quat to calculate the exponential of
 * @param {Number} b amount to scale the quaternion by
 * @returns {quat} out
 */

/**
 * Calculates a 3x3 matrix from the given quaternion
 *
 * @param {mat3} out mat3 receiving operation result
 * @param {ReadonlyQuat} q Quaternion to create matrix from
 *
 * @returns {mat3} out
 */

/**
 * Calculates a 3x3 normal matrix (transpose inverse) from the 4x4 matrix
 *
 * @param {mat3} out mat3 receiving operation result
 * @param {ReadonlyMat4} a Mat4 to derive the normal matrix from
 *
 * @returns {mat3} out
 */

/**
 * Calculates a 4x4 matrix from the given quaternion
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {ReadonlyQuat} q Quaternion to create matrix from
 *
 * @returns {mat4} out
 */

/**
 * Calculates an appropriate content rectangle for provided html or svg element.
 *
 * @param {Element} target - Element content rectangle of which needs to be calculated.
 * @returns {DOMRectInit}
 */

/**
 * Calculates content rectangle of provided HTMLElement.
 *
 * @param {HTMLElement} target - Element for which to calculate the content rectangle.
 * @returns {DOMRectInit}
 */

/**
 * Calculates content rectangle of provided SVG element.
 *
 * @param {SVGGraphicsElement} target - Element content rectangle of which needs
 *      to be calculated.
 * @returns {DOMRectInit}
 */

/**
 * Calculates the W component of a quat from the X, Y, and Z components.
 * Assumes that quaternion is 1 unit in length.
 * Any existing W component will be ignored.
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a quat to calculate W component of
 * @returns {quat} out
 */

/**
 * Calculates the adjugate of a mat2
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the source matrix
 * @returns {mat2} out
 */

/**
 * Calculates the adjugate of a mat3
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the source matrix
 * @returns {mat3} out
 */

/**
 * Calculates the adjugate of a mat4
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the source matrix
 * @returns {mat4} out
 */

/**
 * Calculates the conjugate of a dual quat
 * If the dual quaternion is normalized, this function is faster than quat2.inverse and produces the same result.
 *
 * @param {quat2} out the receiving quaternion
 * @param {ReadonlyQuat2} a quat to calculate conjugate of
 * @returns {quat2} out
 */

/**
 * Calculates the conjugate of a quat
 * If the quaternion is normalized, this function is faster than quat.inverse and produces the same result.
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a quat to calculate conjugate of
 * @returns {quat} out
 */

/**
 * Calculates the determinant of a mat2
 *
 * @param {ReadonlyMat2} a the source matrix
 * @returns {Number} determinant of a
 */

/**
 * Calculates the determinant of a mat2d
 *
 * @param {ReadonlyMat2d} a the source matrix
 * @returns {Number} determinant of a
 */

/**
 * Calculates the determinant of a mat3
 *
 * @param {ReadonlyMat3} a the source matrix
 * @returns {Number} determinant of a
 */

/**
 * Calculates the determinant of a mat4
 *
 * @param {ReadonlyMat4} a the source matrix
 * @returns {Number} determinant of a
 */

/**
 * Calculates the dot product of two dual quat's (The dot product of the real parts)
 *
 * @param {ReadonlyQuat2} a the first operand
 * @param {ReadonlyQuat2} b the second operand
 * @returns {Number} dot product of a and b
 * @function
 */

/**
 * Calculates the dot product of two quat's
 *
 * @param {ReadonlyQuat} a the first operand
 * @param {ReadonlyQuat} b the second operand
 * @returns {Number} dot product of a and b
 * @function
 */

/**
 * Calculates the dot product of two vec2's
 *
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {Number} dot product of a and b
 */

/**
 * Calculates the dot product of two vec3's
 *
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {Number} dot product of a and b
 */

/**
 * Calculates the dot product of two vec4's
 *
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @returns {Number} dot product of a and b
 */

/**
 * Calculates the euclidian distance between two vec2's
 *
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {Number} distance between a and b
 */

/**
 * Calculates the euclidian distance between two vec3's
 *
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {Number} distance between a and b
 */

/**
 * Calculates the euclidian distance between two vec4's
 *
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @returns {Number} distance between a and b
 */

/**
 * Calculates the inverse of a dual quat. If they are normalized, conjugate is cheaper
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a dual quat to calculate inverse of
 * @returns {quat2} out
 */

/**
 * Calculates the inverse of a quat
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a quat to calculate inverse of
 * @returns {quat} out
 */

/**
 * Calculates the length of a dual quat
 *
 * @param {ReadonlyQuat2} a dual quat to calculate length of
 * @returns {Number} length of a
 * @function
 */

/**
 * Calculates the length of a quat
 *
 * @param {ReadonlyQuat} a vector to calculate length of
 * @returns {Number} length of a
 */

/**
 * Calculates the length of a vec2
 *
 * @param {ReadonlyVec2} a vector to calculate length of
 * @returns {Number} length of a
 */

/**
 * Calculates the length of a vec3
 *
 * @param {ReadonlyVec3} a vector to calculate length of
 * @returns {Number} length of a
 */

/**
 * Calculates the length of a vec4
 *
 * @param {ReadonlyVec4} a vector to calculate length of
 * @returns {Number} length of a
 */

/**
 * Calculates the squared euclidian distance between two vec2's
 *
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {Number} squared distance between a and b
 */

/**
 * Calculates the squared euclidian distance between two vec3's
 *
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {Number} squared distance between a and b
 */

/**
 * Calculates the squared euclidian distance between two vec4's
 *
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @returns {Number} squared distance between a and b
 */

/**
 * Calculates the squared length of a dual quat
 *
 * @param {ReadonlyQuat2} a dual quat to calculate squared length of
 * @returns {Number} squared length of a
 * @function
 */

/**
 * Calculates the squared length of a quat
 *
 * @param {ReadonlyQuat} a vector to calculate squared length of
 * @returns {Number} squared length of a
 * @function
 */

/**
 * Calculates the squared length of a vec2
 *
 * @param {ReadonlyVec2} a vector to calculate squared length of
 * @returns {Number} squared length of a
 */

/**
 * Calculates the squared length of a vec3
 *
 * @param {ReadonlyVec3} a vector to calculate squared length of
 * @returns {Number} squared length of a
 */

/**
 * Calculates the squared length of a vec4
 *
 * @param {ReadonlyVec4} a vector to calculate squared length of
 * @returns {Number} squared length of a
 */

/**
 * Call all `resolveAll`s.
 *
 * @param {{resolveAll?: Resolver}[]} constructs
 * @param {Event[]} events
 * @param {TokenizeContext} context
 * @returns {Event[]}
 */

/**
 * Calls each of the listeners registered for a given event.
 *
 * @param {(String|Symbol)} event The event name.
 * @returns {Boolean} `true` if the event had listeners, else `false`.
 * @public
 */

/**
 * Casts `array` to a slice if it's needed.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {number} start The start position.
 * @param {number} [end=array.length] The end position.
 * @returns {Array} Returns the cast slice.
 */

/**
 * Casts `value` to `identity` if it's not a function.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {Function} Returns cast function.
 */

/**
 * Casts `value` to a path array if it's not one.
 *
 * @private
 * @param {*} value The value to inspect.
 * @param {Object} [object] The object to query keys on.
 * @returns {Array} Returns the cast property path array.
 */

/**
 * Casts `value` to a path array if it's not one.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {Array} Returns the cast property path array.
 */

/**
 * Casts `value` to an empty array if it's not an array like object.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {Array|Object} Returns the cast array-like object.
 */

/**
 * Catches errors on the observable to be handled by returning a new observable or throwing an error.
 *
 * <img src="./img/catch.png" width="100%">
 *
 * @example <caption>Continues with a different Observable when there's an error</caption>
 *
 * Observable.of(1, 2, 3, 4, 5)
 *   .map(n => {
 * 	   if (n == 4) {
 * 	     throw 'four!';
 *     }
 *	   return n;
 *   })
 *   .catch(err => Observable.of('I', 'II', 'III', 'IV', 'V'))
 *   .subscribe(x => console.log(x));
 *   // 1, 2, 3, I, II, III, IV, V
 *
 * @example <caption>Retries the caught source Observable again in case of error, similar to retry() operator</caption>
 *
 * Observable.of(1, 2, 3, 4, 5)
 *   .map(n => {
 * 	   if (n === 4) {
 * 	     throw 'four!';
 *     }
 * 	   return n;
 *   })
 *   .catch((err, caught) => caught)
 *   .take(30)
 *   .subscribe(x => console.log(x));
 *   // 1, 2, 3, 1, 2, 3, ...
 *
 * @example <caption>Throws a new error when the source Observable throws an error</caption>
 *
 * Observable.of(1, 2, 3, 4, 5)
 *   .map(n => {
 *     if (n == 4) {
 *       throw 'four!';
 *     }
 *     return n;
 *   })
 *   .catch(err => {
 *     throw 'error in source. Details: ' + err;
 *   })
 *   .subscribe(
 *     x => console.log(x),
 *     err => console.log(err)
 *   );
 *   // 1, 2, 3, error in source. Details: four!
 *
 * @param {function} selector a function that takes as arguments `err`, which is the error, and `caught`, which
 *  is the source observable, in case you'd like to "retry" that observable by returning it again. Whatever observable
 *  is returned by the `selector` will be used to continue the observable chain.
 * @return {Observable} An observable that originates from either the source or the observable returned by the
 *  catch `selector` function.
 * @method catch
 * @name catch
 * @owner Observable
 */

/**
 * Catches errors on the observable to be handled by returning a new observable or throwing an error.
 *
 * <img src="./img/catch.png" width="100%">
 *
 * @example <caption>Continues with a different Observable when there's an error</caption>
 *
 * Observable.of(1, 2, 3, 4, 5)
 *   .map(n => {
 * 	   if (n == 4) {
 * 	     throw 'four!';
 *     }
 *	   return n;
 *   })
 *   .catch(err => Observable.of('I', 'II', 'III', 'IV', 'V'))
 *   .subscribe(x => console.log(x));
 *   // 1, 2, 3, I, II, III, IV, V
 *
 * @example <caption>Retries the caught source Observable again in case of error, similar to retry() operator</caption>
 *
 * Observable.of(1, 2, 3, 4, 5)
 *   .map(n => {
 * 	   if (n === 4) {
 * 	     throw 'four!';
 *     }
 * 	   return n;
 *   })
 *   .catch((err, caught) => caught)
 *   .take(30)
 *   .subscribe(x => console.log(x));
 *   // 1, 2, 3, 1, 2, 3, ...
 *
 * @example <caption>Throws a new error when the source Observable throws an error</caption>
 *
 * Observable.of(1, 2, 3, 4, 5)
 *   .map(n => {
 *     if (n == 4) {
 *       throw 'four!';
 *     }
 *     return n;
 *   })
 *   .catch(err => {
 *     throw 'error in source. Details: ' + err;
 *   })
 *   .subscribe(
 *     x => console.log(x),
 *     err => console.log(err)
 *   );
 *   // 1, 2, 3, error in source. Details: four!
 *
 * @param {function} selector a function that takes as arguments `err`, which is the error, and `caught`, which
 *  is the source observable, in case you'd like to "retry" that observable by returning it again. Whatever observable
 *  is returned by the `selector` will be used to continue the observable chain.
 * @return {Observable} An observable that originates from either the source or the observable returned by the
 *  catch `selector` function.
 * @name catchError
 */

/**
 * Check if `Child` can be a child of `Ancestor`.
 *
 * Returns the ancestor when `Child` can be a child of `Ancestor`, or returns
 * `never`.
 *
 * @template {Node} Ancestor
 *   Node type.
 * @template {Node} Child
 *   Node type.
 * @typedef {(
 *   Ancestor extends Parent
 *     ? Child extends Ancestor['children'][number]
 *       ? Ancestor
 *       : never
 *     : never
 * )} ParentsOf
 */

/**
 * Check if `fileUrlOrPath` looks like a URL.
 *
 * @param {unknown} fileUrlOrPath
 *   File path or URL.
 * @returns {fileUrlOrPath is URL}
 *   Whether it’s a URL.
 */

/**
 * Check if `node` is a `Node` and whether it passes the given test.
 *
 * @param node
 *   Thing to check, typically `Node`.
 * @param test
 *   A check for a specific node.
 * @param index
 *   The node’s position in its parent.
 * @param parent
 *   The node’s parent.
 * @returns
 *   Whether `node` is a node and passes a test.
 */

/**
 * Check if `node` is generated.
 *
 * @param {NodeLike | null | undefined} [node]
 *   Node to check.
 * @returns {boolean}
 *   Whether `node` is generated (does not have positional info).
 */

/**
 * Check if `prop` is a data property.
 *
 * @param {string} prop
 * @returns {boolean}
 */

/**
 * Check if `value` is a constructor.
 *
 * @param {unknown} value
 * @param {string} name
 * @returns {boolean}
 */

/**
 * Check if `value` is an object with keys.
 *
 * @param {Record<string, unknown>} value
 * @returns {boolean}
 */

/**
 * Check if `value` looks like a node.
 *
 * @param {unknown} value
 *   Thing.
 * @returns {value is Node}
 *   Whether `value` is a node.
 */

/**
 * Check if a node is a node and passes a certain node test.
 *
 * @template {Node} Kind
 *   Node type.
 * @callback AssertPredicate
 *   Check that an arbitrary value is a specific node, aware of TypeScript.
 * @param {unknown} [node]
 *   Anything (typically a node).
 * @param {number | null | undefined} [index]
 *   The node’s position in its parent.
 * @param {Parent | null | undefined} [parent]
 *   The node’s parent.
 * @returns {node is Kind}
 *   Whether this is a node and passes a test.
 */

/**
 * Check if a node passes a certain test.
 *
 * @template {Node} Kind
 *   Node type.
 * @callback TestFunctionPredicate
 *   Complex test function for a node that can be inferred by TypeScript.
 * @param {Node} node
 *   A node.
 * @param {number | null | undefined} [index]
 *   The node’s position in its parent.
 * @param {Parent | null | undefined} [parent]
 *   The node’s parent.
 * @returns {node is Kind}
 *   Whether this node passes the test.
 */

/**
 * Check if something is a file.
 *
 * @param {VFile | Options} value
 *   File or options.
 * @returns {value is VFile}
 *   Whether `value` is a file.
 */

/**
 * Check if the given value is *inter-element whitespace*.
 *
 * @param {unknown} thing
 *   Thing to check (typically `Node` or `string`).
 * @returns {boolean}
 *   Whether the `value` is inter-element whitespace (`boolean`): consisting of
 *   zero or more of space, tab (`\t`), line feed (`\n`), carriage return
 *   (`\r`), or form feed (`\f`).
 *   If a node is passed it must be a `Text` node, whose `value` field is
 *   checked.
 */

/**
 * Check to see if it looks like a CSS unit
 * (see `matchers` above for definition).
 */

/**
 * Check to see if string passed in is a percentage
 * @hidden
 */

/**
 * Check whether `value` is a safe URL.
 *
 * @param {Schema} schema
 * @param {unknown} value
 * @param {string} prop
 * @returns {boolean}
 */

/**
 * Check whether a character code is a markdown line ending (see
 * `markdownLineEnding`) or markdown space (see `markdownSpace`).
 *
 * @param {Code} code
 * @returns {code is number}
 */

/**
 * Check whether a character code is a markdown line ending.
 *
 * A **markdown line ending** is the virtual characters M-0003 CARRIAGE RETURN
 * LINE FEED (CRLF), M-0004 LINE FEED (LF) and M-0005 CARRIAGE RETURN (CR).
 *
 * In micromark, the actual character U+000A LINE FEED (LF) and U+000D CARRIAGE
 * RETURN (CR) are replaced by these virtual characters depending on whether
 * they occurred together.
 *
 * @param {Code} code
 * @returns {code is number}
 */

/**
 * Check whether a character code is a markdown space.
 *
 * A **markdown space** is the concrete character U+0020 SPACE (SP) and the
 * virtual characters M-0001 VIRTUAL SPACE (VS) and M-0002 HORIZONTAL TAB (HT).
 *
 * In micromark, the actual character U+0009 CHARACTER TABULATION (HT) is
 * replaced by one M-0002 HORIZONTAL TAB (HT) and between 0 and 3 M-0001 VIRTUAL
 * SPACE (VS) characters, depending on the column at which the tab occurred.
 *
 * @param {Code} code
 * @returns {code is number}
 */

/**
 * Check whether a character code is an ASCII control character.
 *
 * An **ASCII control** is a character in the inclusive range U+0000 NULL (NUL)
 * to U+001F (US), or U+007F (DEL).
 *
 * @param {Code} code
 * @returns {code is number}
 */

/**
 * Check whether the character code represents ASCII punctuation.
 *
 * An **ASCII punctuation** is a character in the inclusive ranges U+0021
 * EXCLAMATION MARK (`!`) to U+002F SLASH (`/`), U+003A COLON (`:`) to U+0040 AT
 * SIGN (`@`), U+005B LEFT SQUARE BRACKET (`[`) to U+0060 GRAVE ACCENT
 * (`` ` ``), or U+007B LEFT CURLY BRACE (`{`) to U+007E TILDE (`~`).
 */

/**
 * Check whether the character code represents Unicode punctuation.
 *
 * A **Unicode punctuation** is a character in the Unicode `Pc` (Punctuation,
 * Connector), `Pd` (Punctuation, Dash), `Pe` (Punctuation, Close), `Pf`
 * (Punctuation, Final quote), `Pi` (Punctuation, Initial quote), `Po`
 * (Punctuation, Other), or `Ps` (Punctuation, Open) categories, or an ASCII
 * punctuation (see `asciiPunctuation`).
 *
 * See:
 * **\[UNICODE]**:
 * [The Unicode Standard](https://www.unicode.org/versions/).
 * Unicode Consortium.
 */

/**
 * Check whether the character code represents Unicode whitespace.
 *
 * Note that this does handle micromark specific markdown whitespace characters.
 * See `markdownLineEndingOrSpace` to check that.
 *
 * A **Unicode whitespace** is a character in the Unicode `Zs` (Separator,
 * Space) category, or U+0009 CHARACTER TABULATION (HT), U+000A LINE FEED (LF),
 * U+000C (FF), or U+000D CARRIAGE RETURN (CR) (**\[UNICODE]**).
 *
 * See:
 * **\[UNICODE]**:
 * [The Unicode Standard](https://www.unicode.org/versions/).
 * Unicode Consortium.
 */

/**
 * Check whether the character code represents an ASCII alpha (`a` through `z`,
 * case insensitive).
 *
 * An **ASCII alpha** is an ASCII upper alpha or ASCII lower alpha.
 *
 * An **ASCII upper alpha** is a character in the inclusive range U+0041 (`A`)
 * to U+005A (`Z`).
 *
 * An **ASCII lower alpha** is a character in the inclusive range U+0061 (`a`)
 * to U+007A (`z`).
 */

/**
 * Check whether the character code represents an ASCII alphanumeric (`a`
 * through `z`, case insensitive, or `0` through `9`).
 *
 * An **ASCII alphanumeric** is an ASCII digit (see `asciiDigit`) or ASCII alpha
 * (see `asciiAlpha`).
 */

/**
 * Check whether the character code represents an ASCII atext.
 *
 * atext is an ASCII alphanumeric (see `asciiAlphanumeric`), or a character in
 * the inclusive ranges U+0023 NUMBER SIGN (`#`) to U+0027 APOSTROPHE (`'`),
 * U+002A ASTERISK (`*`), U+002B PLUS SIGN (`+`), U+002D DASH (`-`), U+002F
 * SLASH (`/`), U+003D EQUALS TO (`=`), U+003F QUESTION MARK (`?`), U+005E
 * CARET (`^`) to U+0060 GRAVE ACCENT (`` ` ``), or U+007B LEFT CURLY BRACE
 * (`{`) to U+007E TILDE (`~`).
 *
 * See:
 * **\[RFC5322]**:
 * [Internet Message Format](https://tools.ietf.org/html/rfc5322).
 * P. Resnick.
 * IETF.
 */

/**
 * Check whether the character code represents an ASCII digit (`0` through `9`).
 *
 * An **ASCII digit** is a character in the inclusive range U+0030 (`0`) to
 * U+0039 (`9`).
 */

/**
 * Check whether the character code represents an ASCII hex digit (`a` through
 * `f`, case insensitive, or `0` through `9`).
 *
 * An **ASCII hex digit** is an ASCII digit (see `asciiDigit`), ASCII upper hex
 * digit, or an ASCII lower hex digit.
 *
 * An **ASCII upper hex digit** is a character in the inclusive range U+0041
 * (`A`) to U+0046 (`F`).
 *
 * An **ASCII lower hex digit** is a character in the inclusive range U+0061
 * (`a`) to U+0066 (`f`).
 */

/**
 * Checks if `func` has a lazy counterpart.
 *
 * @private
 * @param {Function} func The function to check.
 * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
 *  else `false`.
 */

/**
 * Checks if `func` has its source masked.
 *
 * @private
 * @param {Function} func The function to check.
 * @returns {boolean} Returns `true` if `func` is masked, else `false`.
 */

/**
 * Checks if `path` exists on `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @param {Function} hasFunc The function to check properties.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 */

/**
 * Checks if `path` is a direct or inherited property of `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path to check.
 * @returns {boolean} Returns `true` if `path` exists, else `false`.
 * @example
 *
 * var object = _.create({ 'a': _.create({ 'b': 2 }) });
 *
 * _.hasIn(object, 'a');
 * // => true
 *
 * _.hasIn(object, 'a.b');
 * // => true
 *
 * _.hasIn(object, ['a', 'b']);
 * // => true
 *
 * _.hasIn(object, 'b');
 * // => false
 */

/**
 * Checks if `predicate` returns truthy for **any** element of `collection`.
 * Iteration is stopped once `predicate` returns truthy. The predicate is
 * invoked with three arguments: (value, index|key, collection).
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 * @example
 *
 * _.some([null, 0, 'yes', false], Boolean);
 * // => true
 *
 * var users = [
 *   { 'user': 'barney', 'active': true },
 *   { 'user': 'fred',   'active': false }
 * ];
 *
 * // The `_.matches` iteratee shorthand.
 * _.some(users, { 'user': 'barney', 'active': false });
 * // => false
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.some(users, ['active', false]);
 * // => true
 *
 * // The `_.property` iteratee shorthand.
 * _.some(users, 'active');
 * // => true
 */

/**
 * Checks if `string` contains Unicode symbols.
 *
 * @private
 * @param {string} string The string to inspect.
 * @returns {boolean} Returns `true` if a symbol is found, else `false`.
 */

/**
 * Checks if `value` is `undefined`.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
 * @example
 *
 * _.isUndefined(void 0);
 * // => true
 *
 * _.isUndefined(null);
 * // => false
 */

/**
 * Checks if `value` is a flattenable `arguments` object or array.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
 */

/**
 * Checks if `value` is a host object in IE < 9.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
 */

/**
 * Checks if `value` is a plain object, that is, an object created by the
 * `Object` constructor or one with a `[[Prototype]]` of `null`.
 *
 * @static
 * @memberOf _
 * @since 0.8.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 * }
 *
 * _.isPlainObject(new Foo);
 * // => false
 *
 * _.isPlainObject([1, 2, 3]);
 * // => false
 *
 * _.isPlainObject({ 'x': 0, 'y': 0 });
 * // => true
 *
 * _.isPlainObject(Object.create(null));
 * // => true
 */

/**
 * Checks if `value` is a property name and not a property path.
 *
 * @private
 * @param {*} value The value to check.
 * @param {Object} [object] The object to query keys on.
 * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
 */

/**
 * Checks if `value` is a valid array-like index.
 *
 * @private
 * @param {*} value The value to check.
 * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
 * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
 */

/**
 * Checks if `value` is a valid array-like length.
 *
 * **Note:** This method is loosely based on
 * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
 * @example
 *
 * _.isLength(3);
 * // => true
 *
 * _.isLength(Number.MIN_VALUE);
 * // => false
 *
 * _.isLength(Infinity);
 * // => false
 *
 * _.isLength('3');
 * // => false
 */

/**
 * Checks if `value` is array-like. A value is considered array-like if it's
 * not a function and has a `value.length` that's an integer greater than or
 * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
 * @example
 *
 * _.isArrayLike([1, 2, 3]);
 * // => true
 *
 * _.isArrayLike(document.body.children);
 * // => true
 *
 * _.isArrayLike('abc');
 * // => true
 *
 * _.isArrayLike(_.noop);
 * // => false
 */

/**
 * Checks if `value` is classified as a `Function` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a function, else `false`.
 * @example
 *
 * _.isFunction(_);
 * // => true
 *
 * _.isFunction(/abc/);
 * // => false
 */

/**
 * Checks if `value` is classified as a `Symbol` primitive or object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
 * @example
 *
 * _.isSymbol(Symbol.iterator);
 * // => true
 *
 * _.isSymbol('abc');
 * // => false
 */

/**
 * Checks if `value` is classified as a typed array.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 * @example
 *
 * _.isTypedArray(new Uint8Array);
 * // => true
 *
 * _.isTypedArray([]);
 * // => false
 */

/**
 * Checks if `value` is classified as an `Array` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array, else `false`.
 * @example
 *
 * _.isArray([1, 2, 3]);
 * // => true
 *
 * _.isArray(document.body.children);
 * // => false
 *
 * _.isArray('abc');
 * // => false
 *
 * _.isArray(_.noop);
 * // => false
 */

/**
 * Checks if `value` is in the array cache.
 *
 * @private
 * @name has
 * @memberOf SetCache
 * @param {*} value The value to search for.
 * @returns {number} Returns `true` if `value` is found, else `false`.
 */

/**
 * Checks if `value` is likely a prototype object.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
 */

/**
 * Checks if `value` is likely an `arguments` object.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 *  else `false`.
 * @example
 *
 * _.isArguments(function() { return arguments; }());
 * // => true
 *
 * _.isArguments([1, 2, 3]);
 * // => false
 */

/**
 * Checks if `value` is object-like. A value is object-like if it's not `null`
 * and has a `typeof` result of "object".
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
 * @example
 *
 * _.isObjectLike({});
 * // => true
 *
 * _.isObjectLike([1, 2, 3]);
 * // => true
 *
 * _.isObjectLike(_.noop);
 * // => false
 *
 * _.isObjectLike(null);
 * // => false
 */

/**
 * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` if suitable for strict
 *  equality comparisons, else `false`.
 */

/**
 * Checks if `value` is suitable for use as unique object key.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
 */

/**
 * Checks if `value` is the
 * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
 * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an object, else `false`.
 * @example
 *
 * _.isObject({});
 * // => true
 *
 * _.isObject([1, 2, 3]);
 * // => true
 *
 * _.isObject(_.noop);
 * // => true
 *
 * _.isObject(null);
 * // => false
 */

/**
 * Checks if a `cache` value for `key` exists.
 *
 * @private
 * @param {Object} cache The cache to query.
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */

/**
 * Checks if a cache value for `key` exists.
 *
 * @private
 * @param {Object} cache The cache to query.
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */

/**
 * Checks if a hash value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Hash
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */

/**
 * Checks if a list cache value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf ListCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */

/**
 * Checks if a map value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf MapCache
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */

/**
 * Checks if a stack value for `key` exists.
 *
 * @private
 * @name has
 * @memberOf Stack
 * @param {string} key The key of the entry to check.
 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
 */

/**
 * Checks if the given arguments are from an iteratee call.
 *
 * @private
 * @param {*} value The potential iteratee value argument.
 * @param {*} index The potential iteratee index or key argument.
 * @param {*} object The potential iteratee object argument.
 * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
 *  else `false`.
 */

/**
 * Checks to see if a parent element contains a child element (including inside
 * shadow DOM).
 * @param {Node} parent The parent element.
 * @param {Node} child The child element.
 * @return {boolean} True if the parent node contains the child node.
 */

/**
 * Checks whether provided element is a document element (<html>).
 *
 * @param {Element} target - Element to be checked.
 * @returns {boolean}
 */

/**
 * Checks whether provided element is an instance of the SVGGraphicsElement.
 *
 * @param {Element} target - Element to be checked.
 * @returns {boolean}
 */

/**
 * Class that is responsible for computations of the content rectangle of
 * provided DOM element and for keeping track of it's changes.
 */

/**
 * Classify whether a character code represents whitespace, punctuation, or
 * something else.
 *
 * Used for attention (emphasis, strong), whose sequences can open or close
 * based on the class of surrounding characters.
 *
 * Note that eof (`null`) is seen as whitespace.
 *
 * @param {Code} code
 * @returns {number|undefined}
 */

/**
 * Clear event by name.
 *
 * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.
 * @param {(String|Symbol)} evt The Event name.
 * @private
 */

/**
 * Clears the collection of active observations.
 *
 * @returns {void}
 */

/**
 * Collect all the resize event from children ResizeObserver
 */

/**
 * Collection of resize observations that have detected changes in dimensions
 * of elements.
 *
 * @private {Array<ResizeObservation>}
 */

/**
 * Collects all source emissions and emits them as an array when the source completes.
 *
 * <span class="informal">Get all values inside an array when the source completes</span>
 *
 * <img src="./img/toArray.png" width="100%">
 *
 * `toArray` will wait until the source Observable completes
 * before emitting the array containing all emissions.
 * When the source Observable errors no array will be emitted.
 *
 * @example <caption>Create array from input</caption>
 * const input = Rx.Observable.interval(100).take(4);
 *
 * input.toArray()
 *   .subscribe(arr => console.log(arr)); // [0,1,2,3]
 *
 * @see {@link buffer}
 *
 * @return {Observable<any[]>|WebSocketSubject<T>|Observable<T>}
 * @method toArray
 * @owner Observable
 */

/**
 * Collects observation instances the associated element of which has changed
 * it's content rectangle.
 *
 * @returns {void}
 */

/**
 * Combine several HTML extensions into one.
 *
 * @param {HtmlExtension[]} htmlExtensions List of HTML extensions.
 * @returns {HtmlExtension} A single combined extension.
 */

/**
 * Combine several syntax extensions into one.
 *
 * @param {Extension[]} extensions List of syntax extensions.
 * @returns {NormalizedExtension} A single combined extension.
 */

/**
 * Combines multiple Observables to create an Observable whose values are
 * calculated from the latest values of each of its input Observables.
 *
 * <span class="informal">Whenever any input Observable emits a value, it
 * computes a formula using the latest values from all the inputs, then emits
 * the output of that formula.</span>
 *
 * <img src="./img/combineLatest.png" width="100%">
 *
 * `combineLatest` combines the values from all the Observables passed as
 * arguments. This is done by subscribing to each Observable in order and,
 * whenever any Observable emits, collecting an array of the most recent
 * values from each Observable. So if you pass `n` Observables to operator,
 * returned Observable will always emit an array of `n` values, in order
 * corresponding to order of passed Observables (value from the first Observable
 * on the first place and so on).
 *
 * Static version of `combineLatest` accepts either an array of Observables
 * or each Observable can be put directly as an argument. Note that array of
 * Observables is good choice, if you don't know beforehand how many Observables
 * you will combine. Passing empty array will result in Observable that
 * completes immediately.
 *
 * To ensure output array has always the same length, `combineLatest` will
 * actually wait for all input Observables to emit at least once,
 * before it starts emitting results. This means if some Observable emits
 * values before other Observables started emitting, all that values but last
 * will be lost. On the other hand, is some Observable does not emit value but
 * completes, resulting Observable will complete at the same moment without
 * emitting anything, since it will be now impossible to include value from
 * completed Observable in resulting array. Also, if some input Observable does
 * not emit any value and never completes, `combineLatest` will also never emit
 * and never complete, since, again, it will wait for all streams to emit some
 * value.
 *
 * If at least one Observable was passed to `combineLatest` and all passed Observables
 * emitted something, resulting Observable will complete when all combined
 * streams complete. So even if some Observable completes, result of
 * `combineLatest` will still emit values when other Observables do. In case
 * of completed Observable, its value from now on will always be the last
 * emitted value. On the other hand, if any Observable errors, `combineLatest`
 * will error immediately as well, and all other Observables will be unsubscribed.
 *
 * `combineLatest` accepts as optional parameter `project` function, which takes
 * as arguments all values that would normally be emitted by resulting Observable.
 * `project` can return any kind of value, which will be then emitted by Observable
 * instead of default array. Note that `project` does not take as argument that array
 * of values, but values themselves. That means default `project` can be imagined
 * as function that takes all its arguments and puts them into an array.
 *
 *
 * @example <caption>Combine two timer Observables</caption>
 * const firstTimer = Rx.Observable.timer(0, 1000); // emit 0, 1, 2... after every second, starting from now
 * const secondTimer = Rx.Observable.timer(500, 1000); // emit 0, 1, 2... after every second, starting 0,5s from now
 * const combinedTimers = Rx.Observable.combineLatest(firstTimer, secondTimer);
 * combinedTimers.subscribe(value => console.log(value));
 * // Logs
 * // [0, 0] after 0.5s
 * // [1, 0] after 1s
 * // [1, 1] after 1.5s
 * // [2, 1] after 2s
 *
 *
 * @example <caption>Combine an array of Observables</caption>
 * const observables = [1, 5, 10].map(
 *   n => Rx.Observable.of(n).delay(n * 1000).startWith(0) // emit 0 and then emit n after n seconds
 * );
 * const combined = Rx.Observable.combineLatest(observables);
 * combined.subscribe(value => console.log(value));
 * // Logs
 * // [0, 0, 0] immediately
 * // [1, 0, 0] after 1s
 * // [1, 5, 0] after 5s
 * // [1, 5, 10] after 10s
 *
 *
 * @example <caption>Use project function to dynamically calculate the Body-Mass Index</caption>
 * var weight = Rx.Observable.of(70, 72, 76, 79, 75);
 * var height = Rx.Observable.of(1.76, 1.77, 1.78);
 * var bmi = Rx.Observable.combineLatest(weight, height, (w, h) => w / (h * h));
 * bmi.subscribe(x => console.log('BMI is ' + x));
 *
 * // With output to console:
 * // BMI is 24.212293388429753
 * // BMI is 23.93948099205209
 * // BMI is 23.671253629592222
 *
 *
 * @see {@link combineAll}
 * @see {@link merge}
 * @see {@link withLatestFrom}
 *
 * @param {ObservableInput} observable1 An input Observable to combine with other Observables.
 * @param {ObservableInput} observable2 An input Observable to combine with other Observables.
 * More than one input Observables may be given as arguments
 * or an array of Observables may be given as the first argument.
 * @param {function} [project] An optional function to project the values from
 * the combined latest values into a new value on the output Observable.
 * @param {Scheduler} [scheduler=null] The IScheduler to use for subscribing to
 * each input Observable.
 * @return {Observable} An Observable of projected values from the most recent
 * values from each input Observable, or an array of the most recent values from
 * each input Observable.
 * @static true
 * @name combineLatest
 * @owner Observable
 */

/**
 * Combines multiple Observables to create an Observable whose values are
 * calculated from the latest values of each of its input Observables.
 *
 * <span class="informal">Whenever any input Observable emits a value, it
 * computes a formula using the latest values from all the inputs, then emits
 * the output of that formula.</span>
 *
 * <img src="./img/combineLatest.png" width="100%">
 *
 * `combineLatest` combines the values from this Observable with values from
 * Observables passed as arguments. This is done by subscribing to each
 * Observable, in order, and collecting an array of each of the most recent
 * values any time any of the input Observables emits, then either taking that
 * array and passing it as arguments to an optional `project` function and
 * emitting the return value of that, or just emitting the array of recent
 * values directly if there is no `project` function.
 *
 * @example <caption>Dynamically calculate the Body-Mass Index from an Observable of weight and one for height</caption>
 * var weight = Rx.Observable.of(70, 72, 76, 79, 75);
 * var height = Rx.Observable.of(1.76, 1.77, 1.78);
 * var bmi = weight.combineLatest(height, (w, h) => w / (h * h));
 * bmi.subscribe(x => console.log('BMI is ' + x));
 *
 * // With output to console:
 * // BMI is 24.212293388429753
 * // BMI is 23.93948099205209
 * // BMI is 23.671253629592222
 *
 * @see {@link combineAll}
 * @see {@link merge}
 * @see {@link withLatestFrom}
 *
 * @param {ObservableInput} other An input Observable to combine with the source
 * Observable. More than one input Observables may be given as argument.
 * @param {function} [project] An optional function to project the values from
 * the combined latest values into a new value on the output Observable.
 * @return {Observable} An Observable of projected values from the most recent
 * values from each input Observable, or an array of the most recent values from
 * each input Observable.
 * @method combineLatest
 * @owner Observable
 */

/**
 * Combines multiple Observables to create an Observable whose values are calculated from the values, in order, of each
 * of its input Observables.
 *
 * If the latest parameter is a function, this function is used to compute the created value from the input values.
 * Otherwise, an array of the input values is returned.
 *
 * @example <caption>Combine age and name from different sources</caption>
 *
 * let age$ = Observable.of<number>(27, 25, 29);
 * let name$ = Observable.of<string>('Foo', 'Bar', 'Beer');
 * let isDev$ = Observable.of<boolean>(true, true, false);
 *
 * Observable
 *     .zip(age$,
 *          name$,
 *          isDev$,
 *          (age: number, name: string, isDev: boolean) => ({ age, name, isDev }))
 *     .subscribe(x => console.log(x));
 *
 * // outputs
 * // { age: 27, name: 'Foo', isDev: true }
 * // { age: 25, name: 'Bar', isDev: true }
 * // { age: 29, name: 'Beer', isDev: false }
 *
 * @param observables
 * @return {Observable<R>}
 * @static true
 * @name zip
 * @owner Observable
 */

/**
 * Combines the source Observable with other Observables to create an Observable
 * whose values are calculated from the latest values of each, only when the
 * source emits.
 *
 * <span class="informal">Whenever the source Observable emits a value, it
 * computes a formula using that value plus the latest values from other input
 * Observables, then emits the output of that formula.</span>
 *
 * <img src="./img/withLatestFrom.png" width="100%">
 *
 * `withLatestFrom` combines each value from the source Observable (the
 * instance) with the latest values from the other input Observables only when
 * the source emits a value, optionally using a `project` function to determine
 * the value to be emitted on the output Observable. All input Observables must
 * emit at least one value before the output Observable will emit a value.
 *
 * @example <caption>On every click event, emit an array with the latest timer event plus the click event</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var timer = Rx.Observable.interval(1000);
 * var result = clicks.withLatestFrom(timer);
 * result.subscribe(x => console.log(x));
 *
 * @see {@link combineLatest}
 *
 * @param {ObservableInput} other An input Observable to combine with the source
 * Observable. More than one input Observables may be given as argument.
 * @param {Function} [project] Projection function for combining values
 * together. Receives all values in order of the Observables passed, where the
 * first parameter is a value from the source Observable. (e.g.
 * `a.withLatestFrom(b, c, (a1, b1, c1) => a1 + b1 + c1)`). If this is not
 * passed, arrays will be emitted on the output Observable.
 * @return {Observable} An Observable of projected values from the most recent
 * values from each input Observable, or an array of the most recent values from
 * each input Observable.
 * @method withLatestFrom
 * @owner Observable
 */

/**
 * Common utilities
 * @module glMatrix
 */

/**
 * Compares all values of two observables in sequence using an optional comparor function
 * and returns an observable of a single boolean value representing whether or not the two sequences
 * are equal.
 *
 * <span class="informal">Checks to see of all values emitted by both observables are equal, in order.</span>
 *
 * <img src="./img/sequenceEqual.png" width="100%">
 *
 * `sequenceEqual` subscribes to two observables and buffers incoming values from each observable. Whenever either
 * observable emits a value, the value is buffered and the buffers are shifted and compared from the bottom
 * up; If any value pair doesn't match, the returned observable will emit `false` and complete. If one of the
 * observables completes, the operator will wait for the other observable to complete; If the other
 * observable emits before completing, the returned observable will emit `false` and complete. If one observable never
 * completes or emits after the other complets, the returned observable will never complete.
 *
 * @example <caption>figure out if the Konami code matches</caption>
 * var code = Rx.Observable.from([
 *  "ArrowUp",
 *  "ArrowUp",
 *  "ArrowDown",
 *  "ArrowDown",
 *  "ArrowLeft",
 *  "ArrowRight",
 *  "ArrowLeft",
 *  "ArrowRight",
 *  "KeyB",
 *  "KeyA",
 *  "Enter" // no start key, clearly.
 * ]);
 *
 * var keys = Rx.Observable.fromEvent(document, 'keyup')
 *  .map(e => e.code);
 * var matches = keys.bufferCount(11, 1)
 *  .mergeMap(
 *    last11 =>
 *      Rx.Observable.from(last11)
 *        .sequenceEqual(code)
 *   );
 * matches.subscribe(matched => console.log('Successful cheat at Contra? ', matched));
 *
 * @see {@link combineLatest}
 * @see {@link zip}
 * @see {@link withLatestFrom}
 *
 * @param {Observable} compareTo The observable sequence to compare the source sequence to.
 * @param {function} [comparor] An optional function to compare each value pair
 * @return {Observable} An Observable of a single boolean value representing whether or not
 * the values emitted by both observables were equal in sequence.
 * @method sequenceEqual
 * @owner Observable
 */

/**
 * Component Controller 规范需要定义的基类
 * 1. 规范的 option 输入
 * 2. 统一的信息获取 API
 * 3. 明确定义的组件事件（名称、数据）
 */

/**
 * Composes single-argument functions from right to left. The rightmost
 * function can take multiple arguments as it provides the signature for
 * the resulting composite function.
 *
 * @param {...Function} funcs The functions to compose.
 * @returns {Function} A function obtained by composing the argument functions
 * from right to left. For example, compose(f, g, h) is identical to doing
 * (...args) => f(g(h(...args))).
 */

/**
 * Computes the cross product of two vec2's
 * Note that the cross product must by definition produce a 3D vector
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {vec3} out
 */

/**
 * Computes the cross product of two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {vec3} out
 */

/**
 * Conduct with keys.
 * @param keyList current key list
 * @param keyEntities key - dataEntity map
 * @param mode `fill` to fill missing key, `clean` to remove useless key
 */

/**
 * Constructor to create a storage for our `EE` objects.
 * An `Events` instance is a plain object whose properties are event names.
 *
 * @constructor
 * @private
 */

/**
 * Content is transparent: it’s parsed right now. That way, definitions are also
 * parsed right now: before text in paragraphs (specifically, media) are parsed.
 *
 * @type {Resolver}
 */

/**
 * Continue traversing as normal.
 */

/**
 * Convert Degree To Radian
 *
 * @param {Number} a Angle in Degrees
 */

/**
 * Convert `children` of Tree into `treeData` structure.
 */

/**
 * Convert `treeData` into entity records.
 */

/**
 * Convert `treeData` or `children` into formatted `treeData`.
 * Will not re-calculate if `treeData` or `children` not change.
 */

/**
 * Convert array of 16 byte values to UUID string format of the form:
 * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
 */

/**
 * Convert internal value into out event value
 */

/**
 * Convert name path into string to fast the fetch speed of Map.
 */

/**
 * Convert name to internal supported format.
 * This function should keep since we still thinking if need support like `a.b.c` format.
 * 'a' => ['a']
 * 123 => [123]
 * ['a', 123] => ['a', 123]
 */

/**
 * Convert number (includes scientific notation) to -xxx.yyy format
 */

/**
 * Convert outer props value into internal value
 */

/**
 * Converts `func` to its source code.
 *
 * @private
 * @param {Function} func The function to convert.
 * @returns {string} Returns the source code.
 */

/**
 * Converts `func` to its source code.
 *
 * @private
 * @param {Function} func The function to process.
 * @returns {string} Returns the source code.
 */

/**
 * Converts `map` to its key-value pairs.
 *
 * @private
 * @param {Object} map The map to convert.
 * @returns {Array} Returns the key-value pairs.
 */

/**
 * Converts `set` to an array of its values.
 *
 * @private
 * @param {Object} set The set to convert.
 * @returns {Array} Returns the values.
 */

/**
 * Converts `string` to a property path array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the property path array.
 */

/**
 * Converts `string` to an array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the converted array.
 */

/**
 * Converts `value` to a finite number.
 *
 * @static
 * @memberOf _
 * @since 4.12.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {number} Returns the converted number.
 * @example
 *
 * _.toFinite(3.2);
 * // => 3.2
 *
 * _.toFinite(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toFinite(Infinity);
 * // => 1.7976931348623157e+308
 *
 * _.toFinite('3.2');
 * // => 3.2
 */

/**
 * Converts `value` to a number.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to process.
 * @returns {number} Returns the number.
 * @example
 *
 * _.toNumber(3.2);
 * // => 3.2
 *
 * _.toNumber(Number.MIN_VALUE);
 * // => 5e-324
 *
 * _.toNumber(Infinity);
 * // => Infinity
 *
 * _.toNumber('3.2');
 * // => 3.2
 */

/**
 * Converts `value` to a plain object flattening inherited enumerable string
 * keyed properties of `value` to own properties of the plain object.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {Object} Returns the converted plain object.
 * @example
 *
 * function Foo() {
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.assign({ 'a': 1 }, new Foo);
 * // => { 'a': 1, 'b': 2 }
 *
 * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
 * // => { 'a': 1, 'b': 2, 'c': 3 }
 */

/**
 * Converts `value` to a string key if it's not a string or symbol.
 *
 * @private
 * @param {*} value The value to inspect.
 * @returns {string|symbol} Returns the key.
 */

/**
 * Converts `value` to a string using `Object.prototype.toString`.
 *
 * @private
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 */

/**
 * Converts `value` to a string. An empty string is returned for `null`
 * and `undefined` values. The sign of `-0` is preserved.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {string} Returns the converted string.
 * @example
 *
 * _.toString(null);
 * // => ''
 *
 * _.toString(-0);
 * // => '-0'
 *
 * _.toString([1, 2, 3]);
 * // => '1,2,3'
 */

/**
 * Converts `value` to a string. An empty string is returned for `null`
 * and `undefined` values. The sign of `-0` is preserved.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to process.
 * @returns {string} Returns the string.
 * @example
 *
 * _.toString(null);
 * // => ''
 *
 * _.toString(-0);
 * // => '-0'
 *
 * _.toString([1, 2, 3]);
 * // => '1,2,3'
 */

/**
 * Converts `value` to an integer.
 *
 * **Note:** This method is loosely based on
 * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to convert.
 * @returns {number} Returns the converted integer.
 * @example
 *
 * _.toInteger(3.2);
 * // => 3
 *
 * _.toInteger(Number.MIN_VALUE);
 * // => 0
 *
 * _.toInteger(Infinity);
 * // => 1.7976931348623157e+308
 *
 * _.toInteger('3.2');
 * // => 3
 */

/**
 * Converts a Unicode `string` to an array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the converted array.
 */

/**
 * Converts a higher-order Observable into a first-order Observable by
 * concatenating the inner Observables in order.
 *
 * <span class="informal">Flattens an Observable-of-Observables by putting one
 * inner Observable after the other.</span>
 *
 * <img src="./img/concatAll.png" width="100%">
 *
 * Joins every Observable emitted by the source (a higher-order Observable), in
 * a serial fashion. It subscribes to each inner Observable only after the
 * previous inner Observable has completed, and merges all of their values into
 * the returned observable.
 *
 * __Warning:__ If the source Observable emits Observables quickly and
 * endlessly, and the inner Observables it emits generally complete slower than
 * the source emits, you can run into memory issues as the incoming Observables
 * collect in an unbounded buffer.
 *
 * Note: `concatAll` is equivalent to `mergeAll` with concurrency parameter set
 * to `1`.
 *
 * @example <caption>For each click event, tick every second from 0 to 3, with no concurrency</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var higherOrder = clicks.map(ev => Rx.Observable.interval(1000).take(4));
 * var firstOrder = higherOrder.concatAll();
 * firstOrder.subscribe(x => console.log(x));
 *
 * // Results in the following:
 * // (results are not concurrent)
 * // For every click on the "document" it will emit values 0 to 3 spaced
 * // on a 1000ms interval
 * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3
 *
 * @see {@link combineAll}
 * @see {@link concat}
 * @see {@link concatMap}
 * @see {@link concatMapTo}
 * @see {@link exhaust}
 * @see {@link mergeAll}
 * @see {@link switch}
 * @see {@link zipAll}
 *
 * @return {Observable} An Observable emitting values from all the inner
 * Observables concatenated.
 * @method concatAll
 * @owner Observable
 */

/**
 * Converts a higher-order Observable into a first-order Observable by
 * subscribing to only the most recently emitted of those inner Observables.
 *
 * <span class="informal">Flattens an Observable-of-Observables by dropping the
 * previous inner Observable once a new one appears.</span>
 *
 * <img src="./img/switch.png" width="100%">
 *
 * `switch` subscribes to an Observable that emits Observables, also known as a
 * higher-order Observable. Each time it observes one of these emitted inner
 * Observables, the output Observable subscribes to the inner Observable and
 * begins emitting the items emitted by that. So far, it behaves
 * like {@link mergeAll}. However, when a new inner Observable is emitted,
 * `switch` unsubscribes from the earlier-emitted inner Observable and
 * subscribes to the new inner Observable and begins emitting items from it. It
 * continues to behave like this for subsequent inner Observables.
 *
 * @example <caption>Rerun an interval Observable on every click event</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * // Each click event is mapped to an Observable that ticks every second
 * var higherOrder = clicks.map((ev) => Rx.Observable.interval(1000));
 * var switched = higherOrder.switch();
 * // The outcome is that `switched` is essentially a timer that restarts
 * // on every click. The interval Observables from older clicks do not merge
 * // with the current interval Observable.
 * switched.subscribe(x => console.log(x));
 *
 * @see {@link combineAll}
 * @see {@link concatAll}
 * @see {@link exhaust}
 * @see {@link mergeAll}
 * @see {@link switchMap}
 * @see {@link switchMapTo}
 * @see {@link zipAll}
 *
 * @return {Observable<T>} An Observable that emits the items emitted by the
 * Observable most recently emitted by the source Observable.
 * @method switch
 * @name switch
 * @owner Observable
 */

/**
 * Converts a higher-order Observable into a first-order Observable by dropping
 * inner Observables while the previous inner Observable has not yet completed.
 *
 * <span class="informal">Flattens an Observable-of-Observables by dropping the
 * next inner Observables while the current inner is still executing.</span>
 *
 * <img src="./img/exhaust.png" width="100%">
 *
 * `exhaust` subscribes to an Observable that emits Observables, also known as a
 * higher-order Observable. Each time it observes one of these emitted inner
 * Observables, the output Observable begins emitting the items emitted by that
 * inner Observable. So far, it behaves like {@link mergeAll}. However,
 * `exhaust` ignores every new inner Observable if the previous Observable has
 * not yet completed. Once that one completes, it will accept and flatten the
 * next inner Observable and repeat this process.
 *
 * @example <caption>Run a finite timer for each click, only if there is no currently active timer</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var higherOrder = clicks.map((ev) => Rx.Observable.interval(1000).take(5));
 * var result = higherOrder.exhaust();
 * result.subscribe(x => console.log(x));
 *
 * @see {@link combineAll}
 * @see {@link concatAll}
 * @see {@link switch}
 * @see {@link mergeAll}
 * @see {@link exhaustMap}
 * @see {@link zipAll}
 *
 * @return {Observable} An Observable that takes a source of Observables and propagates the first observable
 * exclusively until it completes before subscribing to the next.
 * @method exhaust
 * @owner Observable
 */

/**
 * Converts a higher-order Observable into a first-order Observable by waiting
 * for the outer Observable to complete, then applying {@link combineLatest}.
 *
 * <span class="informal">Flattens an Observable-of-Observables by applying
 * {@link combineLatest} when the Observable-of-Observables completes.</span>
 *
 * <img src="./img/combineAll.png" width="100%">
 *
 * Takes an Observable of Observables, and collects all Observables from it.
 * Once the outer Observable completes, it subscribes to all collected
 * Observables and combines their values using the {@link combineLatest}
 * strategy, such that:
 * - Every time an inner Observable emits, the output Observable emits.
 * - When the returned observable emits, it emits all of the latest values by:
 *   - If a `project` function is provided, it is called with each recent value
 *     from each inner Observable in whatever order they arrived, and the result
 *     of the `project` function is what is emitted by the output Observable.
 *   - If there is no `project` function, an array of all of the most recent
 *     values is emitted by the output Observable.
 *
 * @example <caption>Map two click events to a finite interval Observable, then apply combineAll</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var higherOrder = clicks.map(ev =>
 *   Rx.Observable.interval(Math.random()*2000).take(3)
 * ).take(2);
 * var result = higherOrder.combineAll();
 * result.subscribe(x => console.log(x));
 *
 * @see {@link combineLatest}
 * @see {@link mergeAll}
 *
 * @param {function} [project] An optional function to map the most recent
 * values from each inner Observable into a new result. Takes each of the most
 * recent values from each collected inner Observable as arguments, in order.
 * @return {Observable} An Observable of projected results or arrays of recent
 * values.
 * @method combineAll
 * @owner Observable
 */

/**
 * Converts a higher-order Observable into a first-order Observable which
 * concurrently delivers all values that are emitted on the inner Observables.
 *
 * <span class="informal">Flattens an Observable-of-Observables.</span>
 *
 * <img src="./img/mergeAll.png" width="100%">
 *
 * `mergeAll` subscribes to an Observable that emits Observables, also known as
 * a higher-order Observable. Each time it observes one of these emitted inner
 * Observables, it subscribes to that and delivers all the values from the
 * inner Observable on the output Observable. The output Observable only
 * completes once all inner Observables have completed. Any error delivered by
 * a inner Observable will be immediately emitted on the output Observable.
 *
 * @example <caption>Spawn a new interval Observable for each click event, and blend their outputs as one Observable</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var higherOrder = clicks.map((ev) => Rx.Observable.interval(1000));
 * var firstOrder = higherOrder.mergeAll();
 * firstOrder.subscribe(x => console.log(x));
 *
 * @example <caption>Count from 0 to 9 every second for each click, but only allow 2 concurrent timers</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var higherOrder = clicks.map((ev) => Rx.Observable.interval(1000).take(10));
 * var firstOrder = higherOrder.mergeAll(2);
 * firstOrder.subscribe(x => console.log(x));
 *
 * @see {@link combineAll}
 * @see {@link concatAll}
 * @see {@link exhaust}
 * @see {@link merge}
 * @see {@link mergeMap}
 * @see {@link mergeMapTo}
 * @see {@link mergeScan}
 * @see {@link switch}
 * @see {@link zipAll}
 *
 * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of inner
 * Observables being subscribed to concurrently.
 * @return {Observable} An Observable that emits values coming from all the
 * inner Observables emitted by the source Observable.
 * @method mergeAll
 * @owner Observable
 */

/**
 * Converts an ASCII `string` to an array.
 *
 * @private
 * @param {string} string The string to convert.
 * @returns {Array} Returns the converted array.
 */

/**
 * Converts an HSL color value to RGB.
 *
 * *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]
 * *Returns:* { r, g, b } in the set [0, 255]
 */

/**
 * Converts an HSV color value to RGB.
 *
 * *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]
 * *Returns:* { r, g, b } in the set [0, 255]
 */

/**
 * Converts an Observable of {@link Notification} objects into the emissions
 * that they represent.
 *
 * <span class="informal">Unwraps {@link Notification} objects as actual `next`,
 * `error` and `complete` emissions. The opposite of {@link materialize}.</span>
 *
 * <img src="./img/dematerialize.png" width="100%">
 *
 * `dematerialize` is assumed to operate an Observable that only emits
 * {@link Notification} objects as `next` emissions, and does not emit any
 * `error`. Such Observable is the output of a `materialize` operation. Those
 * notifications are then unwrapped using the metadata they contain, and emitted
 * as `next`, `error`, and `complete` on the output Observable.
 *
 * Use this operator in conjunction with {@link materialize}.
 *
 * @example <caption>Convert an Observable of Notifications to an actual Observable</caption>
 * var notifA = new Rx.Notification('N', 'A');
 * var notifB = new Rx.Notification('N', 'B');
 * var notifE = new Rx.Notification('E', void 0,
 *   new TypeError('x.toUpperCase is not a function')
 * );
 * var materialized = Rx.Observable.of(notifA, notifB, notifE);
 * var upperCase = materialized.dematerialize();
 * upperCase.subscribe(x => console.log(x), e => console.error(e));
 *
 * // Results in:
 * // A
 * // B
 * // TypeError: x.toUpperCase is not a function
 *
 * @see {@link Notification}
 * @see {@link materialize}
 *
 * @return {Observable} An Observable that emits items and notifications
 * embedded in Notification objects emitted by the source Observable.
 * @method dematerialize
 * @owner Observable
 */

/**
 * Converts an RGB color to hex
 *
 * Assumes r, g, and b are contained in the set [0, 255]
 * Returns a 3 or 6 character hex
 */

/**
 * Converts an RGB color value to HSL.
 * *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]
 * *Returns:* { h, s, l } in [0,1]
 */

/**
 * Converts an RGB color value to HSV
 *
 * *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]
 * *Returns:* { h, s, v } in [0,1]
 */

/**
 * Converts an RGBA color plus alpha transparency to hex
 *
 * Assumes r, g, b are contained in the set [0, 255] and
 * a in [0, 1]. Returns a 4 or 8 character rgba hex
 */

/**
 * Converts an RGBA color to an ARGB Hex8 string
 * Rarely used, but required for "toFilter()"
 */

/**
 * Converts provided string to a number.
 *
 * @param {number|string} value
 * @returns {number}
 */

/**
 * Copies own and inherited symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */

/**
 * Copies own symbols of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy symbols from.
 * @param {Object} [object={}] The object to copy symbols to.
 * @returns {Object} Returns `object`.
 */

/**
 * Copies properties of `source` to `object`.
 *
 * @private
 * @param {Object} source The object to copy properties from.
 * @param {Array} props The property identifiers to copy.
 * @param {Object} [object={}] The object to copy properties to.
 * @param {Function} [customizer] The function to customize copied values.
 * @returns {Object} Returns `object`.
 */

/**
 * Copies the upper-left 3x3 values into the given mat3.
 *
 * @param {mat3} out the receiving 3x3 matrix
 * @param {ReadonlyMat4} a   the source 4x4 matrix
 * @returns {mat3} out
 */

/**
 * Copies the values from a mat2d into a mat3
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat2d} a the matrix to copy
 * @returns {mat3} out
 **/

/**
 * Copies the values of `source` to `array`.
 *
 * @private
 * @param {Array} source The array to copy values from.
 * @param {Array} [array=[]] The array to copy values to.
 * @returns {Array} Returns `array`.
 */

/**
 * Copy a node’s positional info.
 *
 * @param {MdastNodes} from
 *   mdast node to copy from.
 * @param {HastNodes} to
 *   hast node to copy into.
 * @returns {void}
 *   Nothing.
 */

/**
 * Copy a point-like value.
 *
 * @param {Point} d
 *   Point-like value.
 * @returns {Point}
 *   unist point.
 */

/**
 * Copy the values from one dual quat to another
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a the source dual quaternion
 * @returns {quat2} out
 * @function
 */

/**
 * Copy the values from one mat2 to another
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the source matrix
 * @returns {mat2} out
 */

/**
 * Copy the values from one mat2d to another
 *
 * @param {mat2d} out the receiving matrix
 * @param {ReadonlyMat2d} a the source matrix
 * @returns {mat2d} out
 */

/**
 * Copy the values from one mat3 to another
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the source matrix
 * @returns {mat3} out
 */

/**
 * Copy the values from one mat4 to another
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the source matrix
 * @returns {mat4} out
 */

/**
 * Copy the values from one quat to another
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a the source quaternion
 * @returns {quat} out
 * @function
 */

/**
 * Copy the values from one vec2 to another
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the source vector
 * @returns {vec2} out
 */

/**
 * Copy the values from one vec3 to another
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the source vector
 * @returns {vec3} out
 */

/**
 * Copy the values from one vec4 to another
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the source vector
 * @returns {vec4} out
 */

/**
 * Copy values into store and return a new values object
 * ({ a: 1, b: { c: 2 } }, { a: 4, b: { d: 5 } }) => { a: 4, b: { c: 2, d: 5 } }
 */

/**
 * Copyright (c) 2013-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/**
 * Copyright (c) 2014-present, Facebook, Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/**
 * Copyright 2015, Yahoo! Inc.
 * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
 */

/**
 * Copyright 2016 Google Inc. All Rights Reserved.
 *
 * Licensed under the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE.
 *
 *  https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
 *
 */

/**
 * Count how often a character (or substring) is used in a string.
 *
 * @param {string} value
 *   Value to search in.
 * @param {string} character
 *   Character (or substring) to look for.
 * @return {number}
 *   Number of times `character` occurred in `value`.
 */

/**
 * Counts the number of emissions on the source and emits that number when the
 * source completes.
 *
 * <span class="informal">Tells how many values were emitted, when the source
 * completes.</span>
 *
 * <img src="./img/count.png" width="100%">
 *
 * `count` transforms an Observable that emits values into an Observable that
 * emits a single value that represents the number of values emitted by the
 * source Observable. If the source Observable terminates with an error, `count`
 * will pass this error notification along without emitting a value first. If
 * the source Observable does not terminate at all, `count` will neither emit
 * a value nor terminate. This operator takes an optional `predicate` function
 * as argument, in which case the output emission will represent the number of
 * source values that matched `true` with the `predicate`.
 *
 * @example <caption>Counts how many seconds have passed before the first click happened</caption>
 * var seconds = Rx.Observable.interval(1000);
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var secondsBeforeClick = seconds.takeUntil(clicks);
 * var result = secondsBeforeClick.count();
 * result.subscribe(x => console.log(x));
 *
 * @example <caption>Counts how many odd numbers are there between 1 and 7</caption>
 * var numbers = Rx.Observable.range(1, 7);
 * var result = numbers.count(i => i % 2 === 1);
 * result.subscribe(x => console.log(x));
 *
 * // Results in:
 * // 4
 *
 * @see {@link max}
 * @see {@link min}
 * @see {@link reduce}
 *
 * @param {function(value: T, i: number, source: Observable<T>): boolean} [predicate] A
 * boolean function to select what values are to be counted. It is provided with
 * arguments of:
 * - `value`: the value from the source Observable.
 * - `index`: the (zero-based) "index" of the value from the source Observable.
 * - `source`: the source Observable instance itself.
 * @return {Observable} An Observable of one number that represents the count as
 * described above.
 * @method count
 * @owner Observable
 */

/**
 * Create By Bruce Too
 * On 2020-02-10
 */

/**
 * Create `state` from an mdast tree.
 *
 * @param {MdastNodes} tree
 *   mdast node to transform.
 * @param {Options | null | undefined} [options]
 *   Configuration.
 * @returns {State}
 *   `state` function.
 */

/**
 * Create a code check from a regex.
 *
 * @param {RegExp} regex
 * @returns {(code: Code) => code is number}
 */

/**
 * Create a hast element from a simple CSS selector.
 *
 * @template {string} Selector
 *   Type of selector.
 * @template {string} [DefaultTagName='div']
 *   Type of default tag name.
 * @param {Selector | null | undefined} [selector]
 *   Simple CSS selector.
 *
 *   Can contain a tag name (`foo`), classes (`.bar`), and an ID (`#baz`).
 *   Multiple classes are allowed.
 *   Uses the last ID if multiple IDs are found.
 * @param {DefaultTagName | null | undefined} [defaultTagName='div']
 *   Tag name to use if `selector` does not specify one (default: `'div'`).
 * @returns {Element & {tagName: import('./extract.js').ExtractTagName<Selector, DefaultTagName>}}
 *   Built element.
 */

/**
 * Create a map from a list of props or a list of properties and values.
 *
 * @param {Attributes[string]} values
 * @returns {AttributeClean}
 */

/**
 * Create a map to adjust casing.
 *
 * @param {Array<string>} values
 *   List of properly cased keys.
 * @returns {Record<string, string>}
 *   Map of lowercase keys to uppercase keys.
 */

/**
 * Create a new mat2 with the given values
 *
 * @param {Number} m00 Component in column 0, row 0 position (index 0)
 * @param {Number} m01 Component in column 0, row 1 position (index 1)
 * @param {Number} m10 Component in column 1, row 0 position (index 2)
 * @param {Number} m11 Component in column 1, row 1 position (index 3)
 * @returns {mat2} out A new 2x2 matrix
 */

/**
 * Create a new mat2d with the given values
 *
 * @param {Number} a Component A (index 0)
 * @param {Number} b Component B (index 1)
 * @param {Number} c Component C (index 2)
 * @param {Number} d Component D (index 3)
 * @param {Number} tx Component TX (index 4)
 * @param {Number} ty Component TY (index 5)
 * @returns {mat2d} A new mat2d
 */

/**
 * Create a new mat3 with the given values
 *
 * @param {Number} m00 Component in column 0, row 0 position (index 0)
 * @param {Number} m01 Component in column 0, row 1 position (index 1)
 * @param {Number} m02 Component in column 0, row 2 position (index 2)
 * @param {Number} m10 Component in column 1, row 0 position (index 3)
 * @param {Number} m11 Component in column 1, row 1 position (index 4)
 * @param {Number} m12 Component in column 1, row 2 position (index 5)
 * @param {Number} m20 Component in column 2, row 0 position (index 6)
 * @param {Number} m21 Component in column 2, row 1 position (index 7)
 * @param {Number} m22 Component in column 2, row 2 position (index 8)
 * @returns {mat3} A new mat3
 */

/**
 * Create a new mat4 with the given values
 *
 * @param {Number} m00 Component in column 0, row 0 position (index 0)
 * @param {Number} m01 Component in column 0, row 1 position (index 1)
 * @param {Number} m02 Component in column 0, row 2 position (index 2)
 * @param {Number} m03 Component in column 0, row 3 position (index 3)
 * @param {Number} m10 Component in column 1, row 0 position (index 4)
 * @param {Number} m11 Component in column 1, row 1 position (index 5)
 * @param {Number} m12 Component in column 1, row 2 position (index 6)
 * @param {Number} m13 Component in column 1, row 3 position (index 7)
 * @param {Number} m20 Component in column 2, row 0 position (index 8)
 * @param {Number} m21 Component in column 2, row 1 position (index 9)
 * @param {Number} m22 Component in column 2, row 2 position (index 10)
 * @param {Number} m23 Component in column 2, row 3 position (index 11)
 * @param {Number} m30 Component in column 3, row 0 position (index 12)
 * @param {Number} m31 Component in column 3, row 1 position (index 13)
 * @param {Number} m32 Component in column 3, row 2 position (index 14)
 * @param {Number} m33 Component in column 3, row 3 position (index 15)
 * @returns {mat4} A new mat4
 */

/**
 * Create a tokenizer.
 * Tokenizers deal with one type of data (e.g., containers, flow, text).
 * The parser is the object dealing with it all.
 * `initialize` works like other constructs, except that only its `tokenize`
 * function is used, in which case it doesn’t receive an `ok` or `nok`.
 * `from` can be given to set the point before the first character, although
 * when further lines are indented, they must be set with `defineSkip`.
 *
 * @param {ParseContext} parser
 * @param {InitialConstruct} initialize
 * @param {Omit<Point, '_index'|'_bufferIndex'>} [from]
 * @returns {TokenizeContext}
 */

/**
 * Create an extension for `mdast-util-from-markdown` to enable GFM (autolink
 * literals, footnotes, strikethrough, tables, tasklists).
 *
 * @returns {Array<FromMarkdownExtension>}
 *   Extension for `mdast-util-from-markdown` to enable GFM (autolink literals,
 *   footnotes, strikethrough, tables, tasklists).
 */

/**
 * Create an extension for `mdast-util-from-markdown` to enable GFM footnotes
 * in markdown.
 *
 * @returns {FromMarkdownExtension}
 *   Extension for `mdast-util-from-markdown`.
 */

/**
 * Create an extension for `mdast-util-to-markdown` to enable GFM (autolink
 * literals, footnotes, strikethrough, tables, tasklists).
 *
 * @param {Options | null | undefined} [options]
 *   Configuration.
 * @returns {ToMarkdownExtension}
 *   Extension for `mdast-util-to-markdown` to enable GFM (autolink literals,
 *   footnotes, strikethrough, tables, tasklists).
 */

/**
 * Create an extension for `mdast-util-to-markdown` to enable GFM footnotes
 * in markdown.
 *
 * @returns {ToMarkdownExtension}
 *   Extension for `mdast-util-to-markdown`.
 */

/**
 * Create an extension for `mdast-util-to-markdown` to enable GFM tables in
 * markdown.
 *
 * @param {Options | null | undefined} [options]
 *   Configuration.
 * @returns {ToMarkdownExtension}
 *   Extension for `mdast-util-to-markdown` to enable GFM tables.
 */

/**
 * Create clean positional information.
 *
 * @param {State} state
 *   Info passed around about the current state.
 * @param {Node} node
 *   hast node.
 * @param {P5ElementLocation} location
 *   p5 location info.
 * @returns {Position | undefined}
 *   Position, or nothing.
 */

/**
 * Create new middleware.
 *
 * @returns {Pipeline}
 */

/**
 * Created by jljsj on 16/1/27.
 */

/**
 * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
 * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
 *
 * @param {number} x - X coordinate.
 * @param {number} y - Y coordinate.
 * @param {number} width - Rectangle's width.
 * @param {number} height - Rectangle's height.
 * @returns {DOMRectInit}
 */

/**
 * Creates a Redux store that holds the state tree.
 *
 * **We recommend using `configureStore` from the
 * `@reduxjs/toolkit` package**, which replaces `createStore`:
 * **https://redux.js.org/introduction/why-rtk-is-redux-today**
 *
 * The only way to change the data in the store is to call `dispatch()` on it.
 *
 * There should only be a single store in your app. To specify how different
 * parts of the state tree respond to actions, you may combine several reducers
 * into a single reducer function by using `combineReducers`.
 *
 * @param {Function} reducer A function that returns the next state tree, given
 * the current state tree and the action to handle.
 *
 * @param {any} [preloadedState] The initial state. You may optionally specify it
 * to hydrate the state from the server in universal apps, or to restore a
 * previously serialized user session.
 * If you use `combineReducers` to produce the root reducer function, this must be
 * an object with the same shape as `combineReducers` keys.
 *
 * @param {Function} [enhancer] The store enhancer. You may optionally specify it
 * to enhance the store with third-party capabilities such as middleware,
 * time travel, persistence, etc. The only store enhancer that ships with Redux
 * is `applyMiddleware()`.
 *
 * @returns {Store} A Redux store that lets you read the state, dispatch actions
 * and subscribe to changes.
 */

/**
 * Creates a `baseEach` or `baseEachRight` function.
 *
 * @private
 * @param {Function} eachFunc The function to iterate over a collection.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */

/**
 * Creates a `lodash` object which wraps `value` to enable implicit method
 * chain sequences. Methods that operate on and return arrays, collections,
 * and functions can be chained together. Methods that retrieve a single value
 * or may return a primitive value will automatically end the chain sequence
 * and return the unwrapped value. Otherwise, the value must be unwrapped
 * with `_#value`.
 *
 * Explicit chain sequences, which must be unwrapped with `_#value`, may be
 * enabled using `_.chain`.
 *
 * The execution of chained methods is lazy, that is, it's deferred until
 * `_#value` is implicitly or explicitly called.
 *
 * Lazy evaluation allows several methods to support shortcut fusion.
 * Shortcut fusion is an optimization to merge iteratee calls; this avoids
 * the creation of intermediate arrays and can greatly reduce the number of
 * iteratee executions. Sections of a chain sequence qualify for shortcut
 * fusion if the section is applied to an array and iteratees accept only
 * one argument. The heuristic for whether a section qualifies for shortcut
 * fusion is subject to change.
 *
 * Chaining is supported in custom builds as long as the `_#value` method is
 * directly or indirectly included in the build.
 *
 * In addition to lodash methods, wrappers have `Array` and `String` methods.
 *
 * The wrapper `Array` methods are:
 * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`
 *
 * The wrapper `String` methods are:
 * `replace` and `split`
 *
 * The wrapper methods that support shortcut fusion are:
 * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,
 * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,
 * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`
 *
 * The chainable wrapper methods are:
 * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,
 * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,
 * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,
 * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,
 * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,
 * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,
 * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,
 * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,
 * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,
 * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,
 * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,
 * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,
 * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,
 * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,
 * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,
 * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,
 * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,
 * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,
 * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,
 * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,
 * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,
 * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,
 * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,
 * `zipObject`, `zipObjectDeep`, and `zipWith`
 *
 * The wrapper methods that are **not** chainable by default are:
 * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
 * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,
 * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,
 * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,
 * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,
 * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
 * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
 * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,
 * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,
 * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,
 * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,
 * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,
 * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,
 * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,
 * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,
 * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,
 * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,
 * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,
 * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,
 * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,
 * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,
 * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
 * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,
 * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,
 * `upperFirst`, `value`, and `words`
 *
 * @name _
 * @constructor
 * @category Seq
 * @param {*} value The value to wrap in a `lodash` instance.
 * @returns {Object} Returns the new `lodash` wrapper instance.
 * @example
 *
 * function square(n) {
 *   return n * n;
 * }
 *
 * var wrapped = _([1, 2, 3]);
 *
 * // Returns an unwrapped value.
 * wrapped.reduce(_.add);
 * // => 6
 *
 * // Returns a wrapped value.
 * var squares = wrapped.map(square);
 *
 * _.isArray(squares);
 * // => false
 *
 * _.isArray(squares.value());
 * // => true
 */

/**
 * Creates a base function for methods like `_.forIn` and `_.forOwn`.
 *
 * @private
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {Function} Returns the new base function.
 */

/**
 * Creates a clone of  `buffer`.
 *
 * @private
 * @param {Buffer} buffer The buffer to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Buffer} Returns the cloned buffer.
 */

/**
 * Creates a clone of `arrayBuffer`.
 *
 * @private
 * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
 * @returns {ArrayBuffer} Returns the cloned array buffer.
 */

/**
 * Creates a clone of `dataView`.
 *
 * @private
 * @param {Object} dataView The data view to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned data view.
 */

/**
 * Creates a clone of `regexp`.
 *
 * @private
 * @param {Object} regexp The regexp to clone.
 * @returns {Object} Returns the cloned regexp.
 */

/**
 * Creates a clone of `typedArray`.
 *
 * @private
 * @param {Object} typedArray The typed array to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the cloned typed array.
 */

/**
 * Creates a clone of `wrapper`.
 *
 * @private
 * @param {Object} wrapper The wrapper to clone.
 * @returns {Object} Returns the cloned wrapper.
 */

/**
 * Creates a clone of the `symbol` object.
 *
 * @private
 * @param {Object} symbol The symbol object to clone.
 * @returns {Object} Returns the cloned symbol object.
 */

/**
 * Creates a debounced function that delays invoking `func` until after `wait`
 * milliseconds have elapsed since the last time the debounced function was
 * invoked. The debounced function comes with a `cancel` method to cancel
 * delayed `func` invocations and a `flush` method to immediately invoke them.
 * Provide `options` to indicate whether `func` should be invoked on the
 * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
 * with the last arguments provided to the debounced function. Subsequent
 * calls to the debounced function return the result of the last `func`
 * invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the debounced function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.debounce` and `_.throttle`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to debounce.
 * @param {number} [wait=0] The number of milliseconds to delay.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=false]
 *  Specify invoking on the leading edge of the timeout.
 * @param {number} [options.maxWait]
 *  The maximum time `func` is allowed to be delayed before it's invoked.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new debounced function.
 * @example
 *
 * // Avoid costly calculations while the window size is in flux.
 * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
 *
 * // Invoke `sendMail` when clicked, debouncing subsequent calls.
 * jQuery(element).on('click', _.debounce(sendMail, 300, {
 *   'leading': true,
 *   'trailing': false
 * }));
 *
 * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
 * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
 * var source = new EventSource('/stream');
 * jQuery(source).on('message', debounced);
 *
 * // Cancel the trailing debounced invocation.
 * jQuery(window).on('popstate', debounced.cancel);
 */

/**
 * Creates a dual quat from a quaternion
 *
 * @param {ReadonlyQuat2} dual quaternion receiving operation result
 * @param {ReadonlyQuat} q the quaternion
 * @returns {quat2} dual quaternion receiving operation result
 * @function
 */

/**
 * Creates a dual quat from a quaternion and a translation
 *
 * @param {ReadonlyQuat2} dual quaternion receiving operation result
 * @param {ReadonlyQuat} q a normalized quaternion
 * @param {ReadonlyVec3} t tranlation vector
 * @returns {quat2} dual quaternion receiving operation result
 * @function
 */

/**
 * Creates a dual quat from a translation
 *
 * @param {ReadonlyQuat2} dual quaternion receiving operation result
 * @param {ReadonlyVec3} t translation vector
 * @returns {quat2} dual quaternion receiving operation result
 * @function
 */

/**
 * Creates a duplicate-free version of an array, using
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons, in which only the first occurrence of each element
 * is kept. The order of result values is determined by the order they occur
 * in the array.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @returns {Array} Returns the new duplicate free array.
 * @example
 *
 * _.uniq([2, 1, 2]);
 * // => [2, 1]
 */

/**
 * Creates a function like `_.assign`.
 *
 * @private
 * @param {Function} assigner The function to assign values.
 * @returns {Function} Returns the new assigner function.
 */

/**
 * Creates a function like `_.groupBy`.
 *
 * @private
 * @param {Function} setter The function to set accumulator values.
 * @param {Function} [initializer] The accumulator object initializer.
 * @returns {Function} Returns the new aggregator function.
 */

/**
 * Creates a function that either curries or invokes `func` with optional
 * `this` binding and partially applied arguments.
 *
 * @private
 * @param {Function|string} func The function or method name to wrap.
 * @param {number} bitmask The bitmask flags.
 *    1 - `_.bind`
 *    2 - `_.bindKey`
 *    4 - `_.curry` or `_.curryRight` of a bound function
 *    8 - `_.curry`
 *   16 - `_.curryRight`
 *   32 - `_.partial`
 *   64 - `_.partialRight`
 *  128 - `_.rearg`
 *  256 - `_.ary`
 *  512 - `_.flip`
 * @param {*} [thisArg] The `this` binding of `func`.
 * @param {Array} [partials] The arguments to be partially applied.
 * @param {Array} [holders] The `partials` placeholder indexes.
 * @param {Array} [argPos] The argument positions of the new function.
 * @param {number} [ary] The arity cap of `func`.
 * @param {number} [arity] The arity of `func`.
 * @returns {Function} Returns the new wrapped function.
 */

/**
 * Creates a function that iterates over `pairs` and invokes the corresponding
 * function of the first predicate to return truthy. The predicate-function
 * pairs are invoked with the `this` binding and arguments of the created
 * function.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Util
 * @param {Array} pairs The predicate-function pairs.
 * @returns {Function} Returns the new composite function.
 * @example
 *
 * var func = _.cond([
 *   [_.matches({ 'a': 1 }),           _.constant('matches A')],
 *   [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
 *   [_.stubTrue,                      _.constant('no match')]
 * ]);
 *
 * func({ 'a': 1, 'b': 2 });
 * // => 'matches A'
 *
 * func({ 'a': 0, 'b': 1 });
 * // => 'matches B'
 *
 * func({ 'a': '1', 'b': '2' });
 * // => 'no match'
 */

/**
 * Creates a function that memoizes the result of `func`. If `resolver` is
 * provided, it determines the cache key for storing the result based on the
 * arguments provided to the memoized function. By default, the first argument
 * provided to the memoized function is used as the map cache key. The `func`
 * is invoked with the `this` binding of the memoized function.
 *
 * **Note:** The cache is exposed as the `cache` property on the memoized
 * function. Its creation may be customized by replacing the `_.memoize.Cache`
 * constructor with one whose instances implement the
 * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
 * method interface of `clear`, `delete`, `get`, `has`, and `set`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to have its output memoized.
 * @param {Function} [resolver] The function to resolve the cache key.
 * @returns {Function} Returns the new memoized function.
 * @example
 *
 * var object = { 'a': 1, 'b': 2 };
 * var other = { 'c': 3, 'd': 4 };
 *
 * var values = _.memoize(_.values);
 * values(object);
 * // => [1, 2]
 *
 * values(other);
 * // => [3, 4]
 *
 * object.a = 2;
 * values(object);
 * // => [1, 2]
 *
 * // Modify the result cache.
 * values.cache.set(object, ['a', 'b']);
 * values(object);
 * // => ['a', 'b']
 *
 * // Replace `_.memoize.Cache`.
 * _.memoize.Cache = WeakMap;
 */

/**
 * Creates a function that memoizes the result of `func`. If `resolver` is
 * provided, it determines the cache key for storing the result based on the
 * arguments provided to the memoized function. By default, the first argument
 * provided to the memoized function is used as the map cache key. The `func`
 * is invoked with the `this` binding of the memoized function.
 *
 * **Note:** The cache is exposed as the `cache` property on the memoized
 * function. Its creation may be customized by replacing the `_.memoize.Cache`
 * constructor with one whose instances implement the
 * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
 * method interface of `delete`, `get`, `has`, and `set`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to have its output memoized.
 * @param {Function} [resolver] The function to resolve the cache key.
 * @returns {Function} Returns the new memoized function.
 * @example
 *
 * var object = { 'a': 1, 'b': 2 };
 * var other = { 'c': 3, 'd': 4 };
 *
 * var values = _.memoize(_.values);
 * values(object);
 * // => [1, 2]
 *
 * values(other);
 * // => [3, 4]
 *
 * object.a = 2;
 * values(object);
 * // => [1, 2]
 *
 * // Modify the result cache.
 * values.cache.set(object, ['a', 'b']);
 * values(object);
 * // => ['a', 'b']
 *
 * // Replace `_.memoize.Cache`.
 * _.memoize.Cache = WeakMap;
 */

/**
 * Creates a function that produces an instance of `Ctor` regardless of
 * whether it was invoked as part of a `new` expression or by `call` or `apply`.
 *
 * @private
 * @param {Function} Ctor The constructor to wrap.
 * @returns {Function} Returns the new wrapped function.
 */

/**
 * Creates a function that returns `value`.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {*} value The value to return from the new function.
 * @returns {Function} Returns the new constant function.
 * @example
 *
 * var objects = _.times(2, _.constant({ 'a': 1 }));
 *
 * console.log(objects);
 * // => [{ 'a': 1 }, { 'a': 1 }]
 *
 * console.log(objects[0] === objects[1]);
 * // => true
 */

/**
 * Creates a function that returns the value at `path` of a given object.
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Util
 * @param {Array|string} path The path of the property to get.
 * @returns {Function} Returns the new accessor function.
 * @example
 *
 * var objects = [
 *   { 'a': { 'b': 2 } },
 *   { 'a': { 'b': 1 } }
 * ];
 *
 * _.map(objects, _.property('a.b'));
 * // => [2, 1]
 *
 * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
 * // => [1, 2]
 */

/**
 * Creates a function that wraps `func` to continue currying.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @param {Function} wrapFunc The function to create the `func` wrapper.
 * @param {*} placeholder The placeholder value.
 * @param {*} [thisArg] The `this` binding of `func`.
 * @param {Array} [partials] The arguments to prepend to those provided to
 *  the new function.
 * @param {Array} [holders] The `partials` placeholder indexes.
 * @param {Array} [argPos] The argument positions of the new function.
 * @param {number} [ary] The arity cap of `func`.
 * @param {number} [arity] The arity of `func`.
 * @returns {Function} Returns the new wrapped function.
 */

/**
 * Creates a function that wraps `func` to enable currying.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @param {number} arity The arity of `func`.
 * @returns {Function} Returns the new wrapped function.
 */

/**
 * Creates a function that wraps `func` to invoke it with optional `this`
 * binding of `thisArg`, partial application, and currying.
 *
 * @private
 * @param {Function|string} func The function or method name to wrap.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @param {*} [thisArg] The `this` binding of `func`.
 * @param {Array} [partials] The arguments to prepend to those provided to
 *  the new function.
 * @param {Array} [holders] The `partials` placeholder indexes.
 * @param {Array} [partialsRight] The arguments to append to those provided
 *  to the new function.
 * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
 * @param {Array} [argPos] The argument positions of the new function.
 * @param {number} [ary] The arity cap of `func`.
 * @param {number} [arity] The arity of `func`.
 * @returns {Function} Returns the new wrapped function.
 */

/**
 * Creates a function that wraps `func` to invoke it with the `this` binding
 * of `thisArg` and `partials` prepended to the arguments it receives.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @param {*} thisArg The `this` binding of `func`.
 * @param {Array} partials The arguments to prepend to those provided to
 *  the new function.
 * @returns {Function} Returns the new wrapped function.
 */

/**
 * Creates a function that wraps `func` to invoke it with the optional `this`
 * binding of `thisArg`.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @param {*} [thisArg] The `this` binding of `func`.
 * @returns {Function} Returns the new wrapped function.
 */

/**
 * Creates a function that'll short out and invoke `identity` instead
 * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
 * milliseconds.
 *
 * @private
 * @param {Function} func The function to restrict.
 * @returns {Function} Returns the new shortable function.
 */

/**
 * Creates a hash object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */

/**
 * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.
 *
 * @private
 * @constructor
 * @param {*} value The value to wrap.
 */

/**
 * Creates a map cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */

/**
 * Creates a matrix from a given angle
 * This is equivalent to (but much faster than):
 *
 *     mat2.identity(dest);
 *     mat2.rotate(dest, dest, rad);
 *
 * @param {mat2} out mat2 receiving operation result
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat2} out
 */

/**
 * Creates a matrix from a given angle
 * This is equivalent to (but much faster than):
 *
 *     mat2d.identity(dest);
 *     mat2d.rotate(dest, dest, rad);
 *
 * @param {mat2d} out mat2d receiving operation result
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat2d} out
 */

/**
 * Creates a matrix from a given angle
 * This is equivalent to (but much faster than):
 *
 *     mat3.identity(dest);
 *     mat3.rotate(dest, dest, rad);
 *
 * @param {mat3} out mat3 receiving operation result
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat3} out
 */

/**
 * Creates a matrix from a given angle around a given axis
 * This is equivalent to (but much faster than):
 *
 *     mat4.identity(dest);
 *     mat4.rotate(dest, dest, rad, axis);
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {Number} rad the angle to rotate the matrix by
 * @param {ReadonlyVec3} axis the axis to rotate around
 * @returns {mat4} out
 */

/**
 * Creates a matrix from a quaternion rotation and vector translation
 * This is equivalent to (but much faster than):
 *
 *     mat4.identity(dest);
 *     mat4.translate(dest, vec);
 *     let quatMat = mat4.create();
 *     quat4.toMat4(quat, quatMat);
 *     mat4.multiply(dest, quatMat);
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {quat4} q Rotation quaternion
 * @param {ReadonlyVec3} v Translation vector
 * @returns {mat4} out
 */

/**
 * Creates a matrix from a quaternion rotation, vector translation and vector scale
 * This is equivalent to (but much faster than):
 *
 *     mat4.identity(dest);
 *     mat4.translate(dest, vec);
 *     let quatMat = mat4.create();
 *     quat4.toMat4(quat, quatMat);
 *     mat4.multiply(dest, quatMat);
 *     mat4.scale(dest, scale)
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {quat4} q Rotation quaternion
 * @param {ReadonlyVec3} v Translation vector
 * @param {ReadonlyVec3} s Scaling vector
 * @returns {mat4} out
 */

/**
 * Creates a matrix from a quaternion rotation, vector translation and vector scale, rotating and scaling around the given origin
 * This is equivalent to (but much faster than):
 *
 *     mat4.identity(dest);
 *     mat4.translate(dest, vec);
 *     mat4.translate(dest, origin);
 *     let quatMat = mat4.create();
 *     quat4.toMat4(quat, quatMat);
 *     mat4.multiply(dest, quatMat);
 *     mat4.scale(dest, scale)
 *     mat4.translate(dest, negativeOrigin);
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {quat4} q Rotation quaternion
 * @param {ReadonlyVec3} v Translation vector
 * @param {ReadonlyVec3} s Scaling vector
 * @param {ReadonlyVec3} o The origin vector around which to scale and rotate
 * @returns {mat4} out
 */

/**
 * Creates a matrix from a vector scaling
 * This is equivalent to (but much faster than):
 *
 *     mat2.identity(dest);
 *     mat2.scale(dest, dest, vec);
 *
 * @param {mat2} out mat2 receiving operation result
 * @param {ReadonlyVec2} v Scaling vector
 * @returns {mat2} out
 */

/**
 * Creates a matrix from a vector scaling
 * This is equivalent to (but much faster than):
 *
 *     mat2d.identity(dest);
 *     mat2d.scale(dest, dest, vec);
 *
 * @param {mat2d} out mat2d receiving operation result
 * @param {ReadonlyVec2} v Scaling vector
 * @returns {mat2d} out
 */

/**
 * Creates a matrix from a vector scaling
 * This is equivalent to (but much faster than):
 *
 *     mat3.identity(dest);
 *     mat3.scale(dest, dest, vec);
 *
 * @param {mat3} out mat3 receiving operation result
 * @param {ReadonlyVec2} v Scaling vector
 * @returns {mat3} out
 */

/**
 * Creates a matrix from a vector scaling
 * This is equivalent to (but much faster than):
 *
 *     mat4.identity(dest);
 *     mat4.scale(dest, dest, vec);
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {ReadonlyVec3} v Scaling vector
 * @returns {mat4} out
 */

/**
 * Creates a matrix from a vector translation
 * This is equivalent to (but much faster than):
 *
 *     mat2d.identity(dest);
 *     mat2d.translate(dest, dest, vec);
 *
 * @param {mat2d} out mat2d receiving operation result
 * @param {ReadonlyVec2} v Translation vector
 * @returns {mat2d} out
 */

/**
 * Creates a matrix from a vector translation
 * This is equivalent to (but much faster than):
 *
 *     mat3.identity(dest);
 *     mat3.translate(dest, dest, vec);
 *
 * @param {mat3} out mat3 receiving operation result
 * @param {ReadonlyVec2} v Translation vector
 * @returns {mat3} out
 */

/**
 * Creates a matrix from a vector translation
 * This is equivalent to (but much faster than):
 *
 *     mat4.identity(dest);
 *     mat4.translate(dest, dest, vec);
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {ReadonlyVec3} v Translation vector
 * @returns {mat4} out
 */

/**
 * Creates a matrix from the given angle around the X axis
 * This is equivalent to (but much faster than):
 *
 *     mat4.identity(dest);
 *     mat4.rotateX(dest, dest, rad);
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat4} out
 */

/**
 * Creates a matrix from the given angle around the Y axis
 * This is equivalent to (but much faster than):
 *
 *     mat4.identity(dest);
 *     mat4.rotateY(dest, dest, rad);
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat4} out
 */

/**
 * Creates a matrix from the given angle around the Z axis
 * This is equivalent to (but much faster than):
 *
 *     mat4.identity(dest);
 *     mat4.rotateZ(dest, dest, rad);
 *
 * @param {mat4} out mat4 receiving operation result
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat4} out
 */

/**
 * Creates a new dual quat from a matrix (4x4)
 *
 * @param {quat2} out the dual quaternion
 * @param {ReadonlyMat4} a the matrix
 * @returns {quat2} dual quat receiving operation result
 * @function
 */

/**
 * Creates a new dual quat from the given values (quat and translation)
 *
 * @param {Number} x1 X component
 * @param {Number} y1 Y component
 * @param {Number} z1 Z component
 * @param {Number} w1 W component
 * @param {Number} x2 X component (translation)
 * @param {Number} y2 Y component (translation)
 * @param {Number} z2 Z component (translation)
 * @returns {quat2} new dual quaternion
 * @function
 */

/**
 * Creates a new dual quat initialized with the given values
 *
 * @param {Number} x1 X component
 * @param {Number} y1 Y component
 * @param {Number} z1 Z component
 * @param {Number} w1 W component
 * @param {Number} x2 X component
 * @param {Number} y2 Y component
 * @param {Number} z2 Z component
 * @param {Number} w2 W component
 * @returns {quat2} new dual quaternion
 * @function
 */

/**
 * Creates a new identity dual quat
 *
 * @returns {quat2} a new dual quaternion [real -> rotation, dual -> translation]
 */

/**
 * Creates a new identity mat2
 *
 * @returns {mat2} a new 2x2 matrix
 */

/**
 * Creates a new identity mat2d
 *
 * @returns {mat2d} a new 2x3 matrix
 */

/**
 * Creates a new identity mat3
 *
 * @returns {mat3} a new 3x3 matrix
 */

/**
 * Creates a new identity mat4
 *
 * @returns {mat4} a new 4x4 matrix
 */

/**
 * Creates a new identity quat
 *
 * @returns {quat} a new quaternion
 */

/**
 * Creates a new mat2 initialized with values from an existing matrix
 *
 * @param {ReadonlyMat2} a matrix to clone
 * @returns {mat2} a new 2x2 matrix
 */

/**
 * Creates a new mat2d initialized with values from an existing matrix
 *
 * @param {ReadonlyMat2d} a matrix to clone
 * @returns {mat2d} a new 2x3 matrix
 */

/**
 * Creates a new mat3 initialized with values from an existing matrix
 *
 * @param {ReadonlyMat3} a matrix to clone
 * @returns {mat3} a new 3x3 matrix
 */

/**
 * Creates a new mat4 from a dual quat.
 *
 * @param {mat4} out Matrix
 * @param {ReadonlyQuat2} a Dual Quaternion
 * @returns {mat4} mat4 receiving operation result
 */

/**
 * Creates a new mat4 initialized with values from an existing matrix
 *
 * @param {ReadonlyMat4} a matrix to clone
 * @returns {mat4} a new 4x4 matrix
 */

/**
 * Creates a new quat initialized with the given values
 *
 * @param {Number} x X component
 * @param {Number} y Y component
 * @param {Number} z Z component
 * @param {Number} w W component
 * @returns {quat} a new quaternion
 * @function
 */

/**
 * Creates a new quat initialized with values from an existing quaternion
 *
 * @param {ReadonlyQuat2} a dual quaternion to clone
 * @returns {quat2} new dual quaternion
 * @function
 */

/**
 * Creates a new quat initialized with values from an existing quaternion
 *
 * @param {ReadonlyQuat} a quaternion to clone
 * @returns {quat} a new quaternion
 * @function
 */

/**
 * Creates a new vec2 initialized with the given values
 *
 * @param {Number} x X component
 * @param {Number} y Y component
 * @returns {vec2} a new 2D vector
 */

/**
 * Creates a new vec2 initialized with values from an existing vector
 *
 * @param {ReadonlyVec2} a vector to clone
 * @returns {vec2} a new 2D vector
 */

/**
 * Creates a new vec3 initialized with the given values
 *
 * @param {Number} x X component
 * @param {Number} y Y component
 * @param {Number} z Z component
 * @returns {vec3} a new 3D vector
 */

/**
 * Creates a new vec3 initialized with values from an existing vector
 *
 * @param {ReadonlyVec3} a vector to clone
 * @returns {vec3} a new 3D vector
 */

/**
 * Creates a new vec4 initialized with the given values
 *
 * @param {Number} x X component
 * @param {Number} y Y component
 * @param {Number} z Z component
 * @param {Number} w W component
 * @returns {vec4} a new 4D vector
 */

/**
 * Creates a new vec4 initialized with values from an existing vector
 *
 * @param {ReadonlyVec4} a vector to clone
 * @returns {vec4} a new 4D vector
 */

/**
 * Creates a new, empty vec2
 *
 * @returns {vec2} a new 2D vector
 */

/**
 * Creates a new, empty vec3
 *
 * @returns {vec3} a new 3D vector
 */

/**
 * Creates a new, empty vec4
 *
 * @returns {vec4} a new 4D vector
 */

/**
 * Creates a quaternion from the given 3x3 rotation matrix.
 *
 * NOTE: The resultant quaternion is not normalized, so you should be sure
 * to renormalize the quaternion yourself where necessary.
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyMat3} m rotation matrix
 * @returns {quat} out
 * @function
 */

/**
 * Creates a quaternion from the given euler angle x, y, z.
 *
 * @param {quat} out the receiving quaternion
 * @param {x} Angle to rotate around X axis in degrees.
 * @param {y} Angle to rotate around Y axis in degrees.
 * @param {z} Angle to rotate around Z axis in degrees.
 * @returns {quat} out
 * @function
 */

/**
 * Creates a stack cache object to store key-value pairs.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */

/**
 * Creates a store enhancer that applies middleware to the dispatch method
 * of the Redux store. This is handy for a variety of tasks, such as expressing
 * asynchronous actions in a concise manner, or logging every action payload.
 *
 * See `redux-thunk` package as an example of the Redux middleware.
 *
 * Because middleware is potentially asynchronous, this should be the first
 * store enhancer in the composition chain.
 *
 * Note that each middleware will be given the `dispatch` and `getState` functions
 * as named arguments.
 *
 * @param {...Function} middlewares The middleware chain to be applied.
 * @returns {Function} A store enhancer applying the middleware.
 */

/**
 * Creates a throttled function that only invokes `func` at most once per
 * every `wait` milliseconds. The throttled function comes with a `cancel`
 * method to cancel delayed `func` invocations and a `flush` method to
 * immediately invoke them. Provide `options` to indicate whether `func`
 * should be invoked on the leading and/or trailing edge of the `wait`
 * timeout. The `func` is invoked with the last arguments provided to the
 * throttled function. Subsequent calls to the throttled function return the
 * result of the last `func` invocation.
 *
 * **Note:** If `leading` and `trailing` options are `true`, `func` is
 * invoked on the trailing edge of the timeout only if the throttled function
 * is invoked more than once during the `wait` timeout.
 *
 * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
 * until to the next tick, similar to `setTimeout` with a timeout of `0`.
 *
 * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
 * for details over the differences between `_.throttle` and `_.debounce`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Function
 * @param {Function} func The function to throttle.
 * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
 * @param {Object} [options={}] The options object.
 * @param {boolean} [options.leading=true]
 *  Specify invoking on the leading edge of the timeout.
 * @param {boolean} [options.trailing=true]
 *  Specify invoking on the trailing edge of the timeout.
 * @returns {Function} Returns the new throttled function.
 * @example
 *
 * // Avoid excessively updating the position while scrolling.
 * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
 *
 * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
 * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
 * jQuery(element).on('click', throttled);
 *
 * // Cancel the trailing throttled invocation.
 * jQuery(window).on('popstate', throttled.cancel);
 */

/**
 * Creates a unary function that invokes `func` with its argument transformed.
 *
 * @private
 * @param {Function} func The function to wrap.
 * @param {Function} transform The argument transform.
 * @returns {Function} Returns the new function.
 */

/**
 * Creates an array of `array` values not included in the other given arrays
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons. The order and references of result values are
 * determined by the first array.
 *
 * **Note:** Unlike `_.pullAll`, this method returns a new array.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {...Array} [values] The values to exclude.
 * @returns {Array} Returns the new array of filtered values.
 * @see _.without, _.xor
 * @example
 *
 * _.difference([2, 1], [2, 3]);
 * // => [1]
 */

/**
 * Creates an array of own and inherited enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */

/**
 * Creates an array of own enumerable property names and symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names and symbols.
 */

/**
 * Creates an array of the enumerable property names of the array-like `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @param {boolean} inherited Specify returning inherited property names.
 * @returns {Array} Returns the array of property names.
 */

/**
 * Creates an array of the own and inherited enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keysIn(new Foo);
 * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
 */

/**
 * Creates an array of the own and inherited enumerable symbol properties
 * of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of symbols.
 */

/**
 * Creates an array of the own enumerable property names of `object`.
 *
 * **Note:** Non-object values are coerced to objects. See the
 * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * for more details.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 * @example
 *
 * function Foo() {
 *   this.a = 1;
 *   this.b = 2;
 * }
 *
 * Foo.prototype.c = 3;
 *
 * _.keys(new Foo);
 * // => ['a', 'b'] (iteration order is not guaranteed)
 *
 * _.keys('hi');
 * // => ['0', '1']
 */

/**
 * Creates an array of the own enumerable symbol properties of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of symbols.
 */

/**
 * Creates an array of unique values that are included in all given arrays
 * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons. The order and references of result values are
 * determined by the first array.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {...Array} [arrays] The arrays to inspect.
 * @returns {Array} Returns the new array of intersecting values.
 * @example
 *
 * _.intersection([2, 1], [2, 3]);
 * // => [2]
 */

/**
 * Creates an array of unique values, in order, from all given arrays using
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * for equality comparisons.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {...Array} [arrays] The arrays to inspect.
 * @returns {Array} Returns the new array of combined values.
 * @example
 *
 * _.union([2], [1, 2]);
 * // => [2, 1]
 */

/**
 * Creates an array that is the composition of partially applied arguments,
 * placeholders, and provided arguments into a single array of arguments.
 *
 * @private
 * @param {Array} args The provided arguments.
 * @param {Array} partials The arguments to prepend to those provided.
 * @param {Array} holders The `partials` placeholder indexes.
 * @params {boolean} [isCurried] Specify composing for a curried function.
 * @returns {Array} Returns the new array of composed arguments.
 */

/**
 * Creates an list cache object.
 *
 * @private
 * @constructor
 * @param {Array} [entries] The key-value pairs to cache.
 */

/**
 * Creates an object composed of the picked `object` properties.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The source object.
 * @param {...(string|string[])} [paths] The property paths to pick.
 * @returns {Object} Returns the new object.
 * @example
 *
 * var object = { 'a': 1, 'b': '2', 'c': 3 };
 *
 * _.pick(object, ['a', 'c']);
 * // => { 'a': 1, 'c': 3 }
 */

/**
 * Creates an output Observable which concurrently emits all values from every
 * given input Observable.
 *
 * <span class="informal">Flattens multiple Observables together by blending
 * their values into one Observable.</span>
 *
 * <img src="./img/merge.png" width="100%">
 *
 * `merge` subscribes to each given input Observable (as arguments), and simply
 * forwards (without doing any transformation) all the values from all the input
 * Observables to the output Observable. The output Observable only completes
 * once all input Observables have completed. Any error delivered by an input
 * Observable will be immediately emitted on the output Observable.
 *
 * @example <caption>Merge together two Observables: 1s interval and clicks</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var timer = Rx.Observable.interval(1000);
 * var clicksOrTimer = Rx.Observable.merge(clicks, timer);
 * clicksOrTimer.subscribe(x => console.log(x));
 *
 * // Results in the following:
 * // timer will emit ascending values, one every second(1000ms) to console
 * // clicks logs MouseEvents to console everytime the "document" is clicked
 * // Since the two streams are merged you see these happening
 * // as they occur.
 *
 * @example <caption>Merge together 3 Observables, but only 2 run concurrently</caption>
 * var timer1 = Rx.Observable.interval(1000).take(10);
 * var timer2 = Rx.Observable.interval(2000).take(6);
 * var timer3 = Rx.Observable.interval(500).take(10);
 * var concurrent = 2; // the argument
 * var merged = Rx.Observable.merge(timer1, timer2, timer3, concurrent);
 * merged.subscribe(x => console.log(x));
 *
 * // Results in the following:
 * // - First timer1 and timer2 will run concurrently
 * // - timer1 will emit a value every 1000ms for 10 iterations
 * // - timer2 will emit a value every 2000ms for 6 iterations
 * // - after timer1 hits it's max iteration, timer2 will
 * //   continue, and timer3 will start to run concurrently with timer2
 * // - when timer2 hits it's max iteration it terminates, and
 * //   timer3 will continue to emit a value every 500ms until it is complete
 *
 * @see {@link mergeAll}
 * @see {@link mergeMap}
 * @see {@link mergeMapTo}
 * @see {@link mergeScan}
 *
 * @param {...ObservableInput} observables Input Observables to merge together.
 * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input
 * Observables being subscribed to concurrently.
 * @param {Scheduler} [scheduler=null] The IScheduler to use for managing
 * concurrency of input Observables.
 * @return {Observable} an Observable that emits items that are the result of
 * every input Observable.
 * @static true
 * @name merge
 * @owner Observable
 */

/**
 * Creates an output Observable which concurrently emits all values from every
 * given input Observable.
 *
 * <span class="informal">Flattens multiple Observables together by blending
 * their values into one Observable.</span>
 *
 * <img src="./img/merge.png" width="100%">
 *
 * `merge` subscribes to each given input Observable (either the source or an
 * Observable given as argument), and simply forwards (without doing any
 * transformation) all the values from all the input Observables to the output
 * Observable. The output Observable only completes once all input Observables
 * have completed. Any error delivered by an input Observable will be immediately
 * emitted on the output Observable.
 *
 * @example <caption>Merge together two Observables: 1s interval and clicks</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var timer = Rx.Observable.interval(1000);
 * var clicksOrTimer = clicks.merge(timer);
 * clicksOrTimer.subscribe(x => console.log(x));
 *
 * @example <caption>Merge together 3 Observables, but only 2 run concurrently</caption>
 * var timer1 = Rx.Observable.interval(1000).take(10);
 * var timer2 = Rx.Observable.interval(2000).take(6);
 * var timer3 = Rx.Observable.interval(500).take(10);
 * var concurrent = 2; // the argument
 * var merged = timer1.merge(timer2, timer3, concurrent);
 * merged.subscribe(x => console.log(x));
 *
 * @see {@link mergeAll}
 * @see {@link mergeMap}
 * @see {@link mergeMapTo}
 * @see {@link mergeScan}
 *
 * @param {ObservableInput} other An input Observable to merge with the source
 * Observable. More than one input Observables may be given as argument.
 * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input
 * Observables being subscribed to concurrently.
 * @param {Scheduler} [scheduler=null] The IScheduler to use for managing
 * concurrency of input Observables.
 * @return {Observable} An Observable that emits items that are the result of
 * every input Observable.
 * @method merge
 * @owner Observable
 */

/**
 * Creates an output Observable which sequentially emits all values from every
 * given input Observable after the current Observable.
 *
 * <span class="informal">Concatenates multiple Observables together by
 * sequentially emitting their values, one Observable after the other.</span>
 *
 * <img src="./img/concat.png" width="100%">
 *
 * Joins this Observable with multiple other Observables by subscribing to them
 * one at a time, starting with the source, and merging their results into the
 * output Observable. Will wait for each Observable to complete before moving
 * on to the next.
 *
 * @example <caption>Concatenate a timer counting from 0 to 3 with a synchronous sequence from 1 to 10</caption>
 * var timer = Rx.Observable.interval(1000).take(4);
 * var sequence = Rx.Observable.range(1, 10);
 * var result = timer.concat(sequence);
 * result.subscribe(x => console.log(x));
 *
 * // results in:
 * // 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3 -immediate-> 1 ... 10
 *
 * @example <caption>Concatenate 3 Observables</caption>
 * var timer1 = Rx.Observable.interval(1000).take(10);
 * var timer2 = Rx.Observable.interval(2000).take(6);
 * var timer3 = Rx.Observable.interval(500).take(10);
 * var result = timer1.concat(timer2, timer3);
 * result.subscribe(x => console.log(x));
 *
 * // results in the following:
 * // (Prints to console sequentially)
 * // -1000ms-> 0 -1000ms-> 1 -1000ms-> ... 9
 * // -2000ms-> 0 -2000ms-> 1 -2000ms-> ... 5
 * // -500ms-> 0 -500ms-> 1 -500ms-> ... 9
 *
 * @see {@link concatAll}
 * @see {@link concatMap}
 * @see {@link concatMapTo}
 *
 * @param {ObservableInput} other An input Observable to concatenate after the source
 * Observable. More than one input Observables may be given as argument.
 * @param {Scheduler} [scheduler=null] An optional IScheduler to schedule each
 * Observable subscription on.
 * @return {Observable} All values of each passed Observable merged into a
 * single Observable, in order, in serial fashion.
 * @method concat
 * @owner Observable
 */

/**
 * Creates an output Observable which sequentially emits all values from given
 * Observable and then moves on to the next.
 *
 * <span class="informal">Concatenates multiple Observables together by
 * sequentially emitting their values, one Observable after the other.</span>
 *
 * <img src="./img/concat.png" width="100%">
 *
 * `concat` joins multiple Observables together, by subscribing to them one at a time and
 * merging their results into the output Observable. You can pass either an array of
 * Observables, or put them directly as arguments. Passing an empty array will result
 * in Observable that completes immediately.
 *
 * `concat` will subscribe to first input Observable and emit all its values, without
 * changing or affecting them in any way. When that Observable completes, it will
 * subscribe to then next Observable passed and, again, emit its values. This will be
 * repeated, until the operator runs out of Observables. When last input Observable completes,
 * `concat` will complete as well. At any given moment only one Observable passed to operator
 * emits values. If you would like to emit values from passed Observables concurrently, check out
 * {@link merge} instead, especially with optional `concurrent` parameter. As a matter of fact,
 * `concat` is an equivalent of `merge` operator with `concurrent` parameter set to `1`.
 *
 * Note that if some input Observable never completes, `concat` will also never complete
 * and Observables following the one that did not complete will never be subscribed. On the other
 * hand, if some Observable simply completes immediately after it is subscribed, it will be
 * invisible for `concat`, which will just move on to the next Observable.
 *
 * If any Observable in chain errors, instead of passing control to the next Observable,
 * `concat` will error immediately as well. Observables that would be subscribed after
 * the one that emitted error, never will.
 *
 * If you pass to `concat` the same Observable many times, its stream of values
 * will be "replayed" on every subscription, which means you can repeat given Observable
 * as many times as you like. If passing the same Observable to `concat` 1000 times becomes tedious,
 * you can always use {@link repeat}.
 *
 * @example <caption>Concatenate a timer counting from 0 to 3 with a synchronous sequence from 1 to 10</caption>
 * var timer = Rx.Observable.interval(1000).take(4);
 * var sequence = Rx.Observable.range(1, 10);
 * var result = Rx.Observable.concat(timer, sequence);
 * result.subscribe(x => console.log(x));
 *
 * // results in:
 * // 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3 -immediate-> 1 ... 10
 *
 *
 * @example <caption>Concatenate an array of 3 Observables</caption>
 * var timer1 = Rx.Observable.interval(1000).take(10);
 * var timer2 = Rx.Observable.interval(2000).take(6);
 * var timer3 = Rx.Observable.interval(500).take(10);
 * var result = Rx.Observable.concat([timer1, timer2, timer3]); // note that array is passed
 * result.subscribe(x => console.log(x));
 *
 * // results in the following:
 * // (Prints to console sequentially)
 * // -1000ms-> 0 -1000ms-> 1 -1000ms-> ... 9
 * // -2000ms-> 0 -2000ms-> 1 -2000ms-> ... 5
 * // -500ms-> 0 -500ms-> 1 -500ms-> ... 9
 *
 *
 * @example <caption>Concatenate the same Observable to repeat it</caption>
 * const timer = Rx.Observable.interval(1000).take(2);
 *
 * Rx.Observable.concat(timer, timer) // concating the same Observable!
 * .subscribe(
 *   value => console.log(value),
 *   err => {},
 *   () => console.log('...and it is done!')
 * );
 *
 * // Logs:
 * // 0 after 1s
 * // 1 after 2s
 * // 0 after 3s
 * // 1 after 4s
 * // "...and it is done!" also after 4s
 *
 * @see {@link concatAll}
 * @see {@link concatMap}
 * @see {@link concatMapTo}
 *
 * @param {ObservableInput} input1 An input Observable to concatenate with others.
 * @param {ObservableInput} input2 An input Observable to concatenate with others.
 * More than one input Observables may be given as argument.
 * @param {Scheduler} [scheduler=null] An optional IScheduler to schedule each
 * Observable subscription on.
 * @return {Observable} All values of each passed Observable merged into a
 * single Observable, in order, in serial fashion.
 * @static true
 * @name concat
 * @owner Observable
 */

/**
 * Creates rectangle with an interface of the DOMRectReadOnly.
 * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
 *
 * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
 * @returns {DOMRectReadOnly}
 */

/**
 * Creates the global IntersectionObserver constructor.
 * https://w3c.github.io/IntersectionObserver/#intersection-observer-interface
 * @param {Function} callback The function to be invoked after intersection
 *     changes have queued. The function is not invoked if the queue has
 *     been emptied by calling the `takeRecords` method.
 * @param {Object=} opt_options Optional configuration options.
 * @constructor
 */

/**
 * Creates the global IntersectionObserverEntry constructor.
 * https://w3c.github.io/IntersectionObserver/#intersection-observer-entry
 * @param {Object} entry A dictionary of instance properties.
 * @constructor
 */

/**
 * Creates the padding for `string` based on `length`. The `chars` string
 * is truncated if the number of characters exceeds `length`.
 *
 * @private
 * @param {number} length The padding length.
 * @param {string} [chars=' '] The string used as padding.
 * @returns {string} Returns the padding for `string`.
 */

/**
 * DO NOT EDIT THIS FILE
 * The code in this file is generated from files in ./src/
 */

/**
 * Deeply compares two object literals.
 * @param obj1 object 1
 * @param obj2 object 2
 * @param shallow shallow compare
 * @returns
 */

/**
 * Default handlers for nodes.
 */

/**
 * Defines non-writable/enumerable properties of the provided target object.
 *
 * @param {Object} target - Object for which to define properties.
 * @param {Object} props - Properties to be defined.
 * @returns {Object} Target object.
 */

/**
 * Delays the emission of items from the source Observable by a given time span
 * determined by the emissions of another Observable.
 *
 * <span class="informal">It's like {@link delay}, but the time span of the
 * delay duration is determined by a second Observable.</span>
 *
 * <img src="./img/delayWhen.png" width="100%">
 *
 * `delayWhen` time shifts each emitted value from the source Observable by a
 * time span determined by another Observable. When the source emits a value,
 * the `delayDurationSelector` function is called with the source value as
 * argument, and should return an Observable, called the "duration" Observable.
 * The source value is emitted on the output Observable only when the duration
 * Observable emits a value or completes.
 *
 * Optionally, `delayWhen` takes a second argument, `subscriptionDelay`, which
 * is an Observable. When `subscriptionDelay` emits its first value or
 * completes, the source Observable is subscribed to and starts behaving like
 * described in the previous paragraph. If `subscriptionDelay` is not provided,
 * `delayWhen` will subscribe to the source Observable as soon as the output
 * Observable is subscribed.
 *
 * @example <caption>Delay each click by a random amount of time, between 0 and 5 seconds</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var delayedClicks = clicks.delayWhen(event =>
 *   Rx.Observable.interval(Math.random() * 5000)
 * );
 * delayedClicks.subscribe(x => console.log(x));
 *
 * @see {@link debounce}
 * @see {@link delay}
 *
 * @param {function(value: T): Observable} delayDurationSelector A function that
 * returns an Observable for each value emitted by the source Observable, which
 * is then used to delay the emission of that item on the output Observable
 * until the Observable returned from this function emits a value.
 * @param {Observable} subscriptionDelay An Observable that triggers the
 * subscription to the source Observable once it emits any value.
 * @return {Observable} An Observable that delays the emissions of the source
 * Observable by an amount of time specified by the Observable returned by
 * `delayDurationSelector`.
 * @method delayWhen
 * @owner Observable
 */

/**
 * Delays the emission of items from the source Observable by a given timeout or
 * until a given Date.
 *
 * <span class="informal">Time shifts each item by some specified amount of
 * milliseconds.</span>
 *
 * <img src="./img/delay.png" width="100%">
 *
 * If the delay argument is a Number, this operator time shifts the source
 * Observable by that amount of time expressed in milliseconds. The relative
 * time intervals between the values are preserved.
 *
 * If the delay argument is a Date, this operator time shifts the start of the
 * Observable execution until the given date occurs.
 *
 * @example <caption>Delay each click by one second</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var delayedClicks = clicks.delay(1000); // each click emitted after 1 second
 * delayedClicks.subscribe(x => console.log(x));
 *
 * @example <caption>Delay all clicks until a future date happens</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var date = new Date('March 15, 2050 12:00:00'); // in the future
 * var delayedClicks = clicks.delay(date); // click emitted only after that date
 * delayedClicks.subscribe(x => console.log(x));
 *
 * @see {@link debounceTime}
 * @see {@link delayWhen}
 *
 * @param {number|Date} delay The delay duration in milliseconds (a `number`) or
 * a `Date` until which the emission of the source items is delayed.
 * @param {Scheduler} [scheduler=async] The IScheduler to use for
 * managing the timers that handle the time-shift for each item.
 * @return {Observable} An Observable that delays the emissions of the source
 * Observable by the specified timeout or Date.
 * @method delay
 * @owner Observable
 */

/**
 * Delegate to handle a media query being matched and unmatched.
 *
 * @param {object} options
 * @param {function} options.match callback for when the media query is matched
 * @param {function} [options.unmatch] callback for when the media query is unmatched
 * @param {function} [options.setup] one-time callback triggered the first time a query is matched
 * @param {boolean} [options.deferSetup=false] should the setup callback be run immediately, rather than first time query is matched?
 * @constructor
 */

/**
 * Detects whether window and document objects are available in current environment.
 */

/**
 * Divides two vec2's
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {vec2} out
 */

/**
 * Divides two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {vec3} out
 */

/**
 * Divides two vec4's
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @returns {vec4} out
 */

/**
 * Do not traverse this node’s children.
 */

/**
 * Dual Quaternion<br>
 * Format: [real, dual]<br>
 * Quaternion format: XYZW<br>
 * Make sure to have normalized dual quaternions, otherwise the functions may not work as intended.<br>
 * @module quat2
 */

/**
 * Easy to set element style, return previous style
 * IE browser compatible(IE browser doesn't merge overflow style, need to set it separately)
 * https://github.com/ant-design/ant-design/issues/19393
 *
 */

/**
 * Edge 几何标记，用于绘制关系图中的**边**图形，如：
 * 1. 流程图
 * 2. 树
 * 3. 弧长连接图
 * 4. 和弦图
 * 5. 桑基图
 */

/**
 * Emits a given value if the source Observable completes without emitting any
 * `next` value, otherwise mirrors the source Observable.
 *
 * <span class="informal">If the source Observable turns out to be empty, then
 * this operator will emit a default value.</span>
 *
 * <img src="./img/defaultIfEmpty.png" width="100%">
 *
 * `defaultIfEmpty` emits the values emitted by the source Observable or a
 * specified default value if the source Observable is empty (completes without
 * having emitted any `next` value).
 *
 * @example <caption>If no clicks happen in 5 seconds, then emit "no clicks"</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var clicksBeforeFive = clicks.takeUntil(Rx.Observable.interval(5000));
 * var result = clicksBeforeFive.defaultIfEmpty('no clicks');
 * result.subscribe(x => console.log(x));
 *
 * @see {@link empty}
 * @see {@link last}
 *
 * @param {any} [defaultValue=null] The default value used if the source
 * Observable is empty.
 * @return {Observable} An Observable that emits either the specified
 * `defaultValue` if the source Observable emits no items, or the values emitted
 * by the source Observable.
 * @method defaultIfEmpty
 * @owner Observable
 */

/**
 * Emits a value from the source Observable only after a particular time span
 * determined by another Observable has passed without another source emission.
 *
 * <span class="informal">It's like {@link debounceTime}, but the time span of
 * emission silence is determined by a second Observable.</span>
 *
 * <img src="./img/debounce.png" width="100%">
 *
 * `debounce` delays values emitted by the source Observable, but drops previous
 * pending delayed emissions if a new value arrives on the source Observable.
 * This operator keeps track of the most recent value from the source
 * Observable, and spawns a duration Observable by calling the
 * `durationSelector` function. The value is emitted only when the duration
 * Observable emits a value or completes, and if no other value was emitted on
 * the source Observable since the duration Observable was spawned. If a new
 * value appears before the duration Observable emits, the previous value will
 * be dropped and will not be emitted on the output Observable.
 *
 * Like {@link debounceTime}, this is a rate-limiting operator, and also a
 * delay-like operator since output emissions do not necessarily occur at the
 * same time as they did on the source Observable.
 *
 * @example <caption>Emit the most recent click after a burst of clicks</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.debounce(() => Rx.Observable.interval(1000));
 * result.subscribe(x => console.log(x));
 *
 * @see {@link audit}
 * @see {@link debounceTime}
 * @see {@link delayWhen}
 * @see {@link throttle}
 *
 * @param {function(value: T): SubscribableOrPromise} durationSelector A function
 * that receives a value from the source Observable, for computing the timeout
 * duration for each source value, returned as an Observable or a Promise.
 * @return {Observable} An Observable that delays the emissions of the source
 * Observable by the specified duration Observable returned by
 * `durationSelector`, and may drop some values if they occur too frequently.
 * @method debounce
 * @owner Observable
 */

/**
 * Emits a value from the source Observable only after a particular time span
 * has passed without another source emission.
 *
 * <span class="informal">It's like {@link delay}, but passes only the most
 * recent value from each burst of emissions.</span>
 *
 * <img src="./img/debounceTime.png" width="100%">
 *
 * `debounceTime` delays values emitted by the source Observable, but drops
 * previous pending delayed emissions if a new value arrives on the source
 * Observable. This operator keeps track of the most recent value from the
 * source Observable, and emits that only when `dueTime` enough time has passed
 * without any other value appearing on the source Observable. If a new value
 * appears before `dueTime` silence occurs, the previous value will be dropped
 * and will not be emitted on the output Observable.
 *
 * This is a rate-limiting operator, because it is impossible for more than one
 * value to be emitted in any time window of duration `dueTime`, but it is also
 * a delay-like operator since output emissions do not occur at the same time as
 * they did on the source Observable. Optionally takes a {@link IScheduler} for
 * managing timers.
 *
 * @example <caption>Emit the most recent click after a burst of clicks</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.debounceTime(1000);
 * result.subscribe(x => console.log(x));
 *
 * @see {@link auditTime}
 * @see {@link debounce}
 * @see {@link delay}
 * @see {@link sampleTime}
 * @see {@link throttleTime}
 *
 * @param {number} dueTime The timeout duration in milliseconds (or the time
 * unit determined internally by the optional `scheduler`) for the window of
 * time required to wait for emission silence before emitting the most recent
 * source value.
 * @param {Scheduler} [scheduler=async] The {@link IScheduler} to use for
 * managing the timers that handle the timeout for each value.
 * @return {Observable} An Observable that delays the emissions of the source
 * Observable by the specified `dueTime`, and may drop some values if they occur
 * too frequently.
 * @method debounceTime
 * @owner Observable
 */

/**
 * Emits a value from the source Observable, then ignores subsequent source
 * values for `duration` milliseconds, then repeats this process.
 *
 * <span class="informal">Lets a value pass, then ignores source values for the
 * next `duration` milliseconds.</span>
 *
 * <img src="./img/throttleTime.png" width="100%">
 *
 * `throttleTime` emits the source Observable values on the output Observable
 * when its internal timer is disabled, and ignores source values when the timer
 * is enabled. Initially, the timer is disabled. As soon as the first source
 * value arrives, it is forwarded to the output Observable, and then the timer
 * is enabled. After `duration` milliseconds (or the time unit determined
 * internally by the optional `scheduler`) has passed, the timer is disabled,
 * and this process repeats for the next source value. Optionally takes a
 * {@link IScheduler} for managing timers.
 *
 * @example <caption>Emit clicks at a rate of at most one click per second</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.throttleTime(1000);
 * result.subscribe(x => console.log(x));
 *
 * @see {@link auditTime}
 * @see {@link debounceTime}
 * @see {@link delay}
 * @see {@link sampleTime}
 * @see {@link throttle}
 *
 * @param {number} duration Time to wait before emitting another value after
 * emitting the last value, measured in milliseconds or the time unit determined
 * internally by the optional `scheduler`.
 * @param {Scheduler} [scheduler=async] The {@link IScheduler} to use for
 * managing the timers that handle the throttling.
 * @return {Observable<T>} An Observable that performs the throttle operation to
 * limit the rate of emissions from the source.
 * @method throttleTime
 * @owner Observable
 */

/**
 * Emits a value from the source Observable, then ignores subsequent source
 * values for a duration determined by another Observable, then repeats this
 * process.
 *
 * <span class="informal">It's like {@link throttleTime}, but the silencing
 * duration is determined by a second Observable.</span>
 *
 * <img src="./img/throttle.png" width="100%">
 *
 * `throttle` emits the source Observable values on the output Observable
 * when its internal timer is disabled, and ignores source values when the timer
 * is enabled. Initially, the timer is disabled. As soon as the first source
 * value arrives, it is forwarded to the output Observable, and then the timer
 * is enabled by calling the `durationSelector` function with the source value,
 * which returns the "duration" Observable. When the duration Observable emits a
 * value or completes, the timer is disabled, and this process repeats for the
 * next source value.
 *
 * @example <caption>Emit clicks at a rate of at most one click per second</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.throttle(ev => Rx.Observable.interval(1000));
 * result.subscribe(x => console.log(x));
 *
 * @see {@link audit}
 * @see {@link debounce}
 * @see {@link delayWhen}
 * @see {@link sample}
 * @see {@link throttleTime}
 *
 * @param {function(value: T): SubscribableOrPromise} durationSelector A function
 * that receives a value from the source Observable, for computing the silencing
 * duration for each source value, returned as an Observable or a Promise.
 * @param {Object} config a configuration object to define `leading` and `trailing` behavior. Defaults
 * to `{ leading: true, trailing: false }`.
 * @return {Observable<T>} An Observable that performs the throttle operation to
 * limit the rate of emissions from the source.
 * @method throttle
 * @owner Observable
 */

/**
 * Emits only the first `count` values emitted by the source Observable.
 *
 * <span class="informal">Takes the first `count` values from the source, then
 * completes.</span>
 *
 * <img src="./img/take.png" width="100%">
 *
 * `take` returns an Observable that emits only the first `count` values emitted
 * by the source Observable. If the source emits fewer than `count` values then
 * all of its values are emitted. After that, it completes, regardless if the
 * source completes.
 *
 * @example <caption>Take the first 5 seconds of an infinite 1-second interval Observable</caption>
 * var interval = Rx.Observable.interval(1000);
 * var five = interval.take(5);
 * five.subscribe(x => console.log(x));
 *
 * @see {@link takeLast}
 * @see {@link takeUntil}
 * @see {@link takeWhile}
 * @see {@link skip}
 *
 * @throws {ArgumentOutOfRangeError} When using `take(i)`, it delivers an
 * ArgumentOutOrRangeError to the Observer's `error` callback if `i < 0`.
 *
 * @param {number} count The maximum number of `next` values to emit.
 * @return {Observable<T>} An Observable that emits only the first `count`
 * values emitted by the source Observable, or all of the values from the source
 * if the source emits fewer than `count` values.
 * @method take
 * @owner Observable
 */

/**
 * Emits only the first value (or the first value that meets some condition)
 * emitted by the source Observable.
 *
 * <span class="informal">Emits only the first value. Or emits only the first
 * value that passes some test.</span>
 *
 * <img src="./img/first.png" width="100%">
 *
 * If called with no arguments, `first` emits the first value of the source
 * Observable, then completes. If called with a `predicate` function, `first`
 * emits the first value of the source that matches the specified condition. It
 * may also take a `resultSelector` function to produce the output value from
 * the input value, and a `defaultValue` to emit in case the source completes
 * before it is able to emit a valid value. Throws an error if `defaultValue`
 * was not provided and a matching element is not found.
 *
 * @example <caption>Emit only the first click that happens on the DOM</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.first();
 * result.subscribe(x => console.log(x));
 *
 * @example <caption>Emits the first click that happens on a DIV</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.first(ev => ev.target.tagName === 'DIV');
 * result.subscribe(x => console.log(x));
 *
 * @see {@link filter}
 * @see {@link find}
 * @see {@link take}
 *
 * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`
 * callback if the Observable completes before any `next` notification was sent.
 *
 * @param {function(value: T, index: number, source: Observable<T>): boolean} [predicate]
 * An optional function called with each item to test for condition matching.
 * @param {function(value: T, index: number): R} [resultSelector] A function to
 * produce the value on the output Observable based on the values
 * and the indices of the source Observable. The arguments passed to this
 * function are:
 * - `value`: the value that was emitted on the source.
 * - `index`: the "index" of the value from the source.
 * @param {R} [defaultValue] The default value emitted in case no valid value
 * was found on the source.
 * @return {Observable<T|R>} An Observable of the first item that matches the
 * condition.
 * @method first
 * @owner Observable
 */

/**
 * Emits only the first value emitted by the source Observable that meets some
 * condition.
 *
 * <span class="informal">Finds the first value that passes some test and emits
 * that.</span>
 *
 * <img src="./img/find.png" width="100%">
 *
 * `find` searches for the first item in the source Observable that matches the
 * specified condition embodied by the `predicate`, and returns the first
 * occurrence in the source. Unlike {@link first}, the `predicate` is required
 * in `find`, and does not emit an error if a valid value is not found.
 *
 * @example <caption>Find and emit the first click that happens on a DIV element</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.find(ev => ev.target.tagName === 'DIV');
 * result.subscribe(x => console.log(x));
 *
 * @see {@link filter}
 * @see {@link first}
 * @see {@link findIndex}
 * @see {@link take}
 *
 * @param {function(value: T, index: number, source: Observable<T>): boolean} predicate
 * A function called with each item to test for condition matching.
 * @param {any} [thisArg] An optional argument to determine the value of `this`
 * in the `predicate` function.
 * @return {Observable<T>} An Observable of the first item that matches the
 * condition.
 * @method find
 * @owner Observable
 */

/**
 * Emits only the index of the first value emitted by the source Observable that
 * meets some condition.
 *
 * <span class="informal">It's like {@link find}, but emits the index of the
 * found value, not the value itself.</span>
 *
 * <img src="./img/findIndex.png" width="100%">
 *
 * `findIndex` searches for the first item in the source Observable that matches
 * the specified condition embodied by the `predicate`, and returns the
 * (zero-based) index of the first occurrence in the source. Unlike
 * {@link first}, the `predicate` is required in `findIndex`, and does not emit
 * an error if a valid value is not found.
 *
 * @example <caption>Emit the index of first click that happens on a DIV element</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.findIndex(ev => ev.target.tagName === 'DIV');
 * result.subscribe(x => console.log(x));
 *
 * @see {@link filter}
 * @see {@link find}
 * @see {@link first}
 * @see {@link take}
 *
 * @param {function(value: T, index: number, source: Observable<T>): boolean} predicate
 * A function called with each item to test for condition matching.
 * @param {any} [thisArg] An optional argument to determine the value of `this`
 * in the `predicate` function.
 * @return {Observable} An Observable of the index of the first item that
 * matches the condition.
 * @method find
 * @owner Observable
 */

/**
 * Emits only the last `count` values emitted by the source Observable.
 *
 * <span class="informal">Remembers the latest `count` values, then emits those
 * only when the source completes.</span>
 *
 * <img src="./img/takeLast.png" width="100%">
 *
 * `takeLast` returns an Observable that emits at most the last `count` values
 * emitted by the source Observable. If the source emits fewer than `count`
 * values then all of its values are emitted. This operator must wait until the
 * `complete` notification emission from the source in order to emit the `next`
 * values on the output Observable, because otherwise it is impossible to know
 * whether or not more values will be emitted on the source. For this reason,
 * all values are emitted synchronously, followed by the complete notification.
 *
 * @example <caption>Take the last 3 values of an Observable with many values</caption>
 * var many = Rx.Observable.range(1, 100);
 * var lastThree = many.takeLast(3);
 * lastThree.subscribe(x => console.log(x));
 *
 * @see {@link take}
 * @see {@link takeUntil}
 * @see {@link takeWhile}
 * @see {@link skip}
 *
 * @throws {ArgumentOutOfRangeError} When using `takeLast(i)`, it delivers an
 * ArgumentOutOrRangeError to the Observer's `error` callback if `i < 0`.
 *
 * @param {number} count The maximum number of values to emit from the end of
 * the sequence of values emitted by the source Observable.
 * @return {Observable<T>} An Observable that emits at most the last count
 * values emitted by the source Observable.
 * @method takeLast
 * @owner Observable
 */

/**
 * Emits the given constant value on the output Observable every time the source
 * Observable emits a value.
 *
 * <span class="informal">Like {@link map}, but it maps every source value to
 * the same output value every time.</span>
 *
 * <img src="./img/mapTo.png" width="100%">
 *
 * Takes a constant `value` as argument, and emits that whenever the source
 * Observable emits a value. In other words, ignores the actual source value,
 * and simply uses the emission moment to know when to emit the given `value`.
 *
 * @example <caption>Map every click to the string 'Hi'</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var greetings = clicks.mapTo('Hi');
 * greetings.subscribe(x => console.log(x));
 *
 * @see {@link map}
 *
 * @param {any} value The value to map each source value to.
 * @return {Observable} An Observable that emits the given `value` every time
 * the source Observable emits something.
 * @method mapTo
 * @owner Observable
 */

/**
 * Emits the most recently emitted value from the source Observable whenever
 * another Observable, the `notifier`, emits.
 *
 * <span class="informal">It's like {@link sampleTime}, but samples whenever
 * the `notifier` Observable emits something.</span>
 *
 * <img src="./img/sample.png" width="100%">
 *
 * Whenever the `notifier` Observable emits a value or completes, `sample`
 * looks at the source Observable and emits whichever value it has most recently
 * emitted since the previous sampling, unless the source has not emitted
 * anything since the previous sampling. The `notifier` is subscribed to as soon
 * as the output Observable is subscribed.
 *
 * @example <caption>On every click, sample the most recent "seconds" timer</caption>
 * var seconds = Rx.Observable.interval(1000);
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = seconds.sample(clicks);
 * result.subscribe(x => console.log(x));
 *
 * @see {@link audit}
 * @see {@link debounce}
 * @see {@link sampleTime}
 * @see {@link throttle}
 *
 * @param {Observable<any>} notifier The Observable to use for sampling the
 * source Observable.
 * @return {Observable<T>} An Observable that emits the results of sampling the
 * values emitted by the source Observable whenever the notifier Observable
 * emits value or completes.
 * @method sample
 * @owner Observable
 */

/**
 * Emits the most recently emitted value from the source Observable within
 * periodic time intervals.
 *
 * <span class="informal">Samples the source Observable at periodic time
 * intervals, emitting what it samples.</span>
 *
 * <img src="./img/sampleTime.png" width="100%">
 *
 * `sampleTime` periodically looks at the source Observable and emits whichever
 * value it has most recently emitted since the previous sampling, unless the
 * source has not emitted anything since the previous sampling. The sampling
 * happens periodically in time every `period` milliseconds (or the time unit
 * defined by the optional `scheduler` argument). The sampling starts as soon as
 * the output Observable is subscribed.
 *
 * @example <caption>Every second, emit the most recent click at most once</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.sampleTime(1000);
 * result.subscribe(x => console.log(x));
 *
 * @see {@link auditTime}
 * @see {@link debounceTime}
 * @see {@link delay}
 * @see {@link sample}
 * @see {@link throttleTime}
 *
 * @param {number} period The sampling period expressed in milliseconds or the
 * time unit determined internally by the optional `scheduler`.
 * @param {Scheduler} [scheduler=async] The {@link IScheduler} to use for
 * managing the timers that handle the sampling.
 * @return {Observable<T>} An Observable that emits the results of sampling the
 * values emitted by the source Observable at the specified time interval.
 * @method sampleTime
 * @owner Observable
 */

/**
 * Emits the single value at the specified `index` in a sequence of emissions
 * from the source Observable.
 *
 * <span class="informal">Emits only the i-th value, then completes.</span>
 *
 * <img src="./img/elementAt.png" width="100%">
 *
 * `elementAt` returns an Observable that emits the item at the specified
 * `index` in the source Observable, or a default value if that `index` is out
 * of range and the `default` argument is provided. If the `default` argument is
 * not given and the `index` is out of range, the output Observable will emit an
 * `ArgumentOutOfRangeError` error.
 *
 * @example <caption>Emit only the third click event</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.elementAt(2);
 * result.subscribe(x => console.log(x));
 *
 * // Results in:
 * // click 1 = nothing
 * // click 2 = nothing
 * // click 3 = MouseEvent object logged to console
 *
 * @see {@link first}
 * @see {@link last}
 * @see {@link skip}
 * @see {@link single}
 * @see {@link take}
 *
 * @throws {ArgumentOutOfRangeError} When using `elementAt(i)`, it delivers an
 * ArgumentOutOrRangeError to the Observer's `error` callback if `i < 0` or the
 * Observable has completed before emitting the i-th `next` notification.
 *
 * @param {number} index Is the number `i` for the i-th source emission that has
 * happened since the subscription, starting from the number `0`.
 * @param {T} [defaultValue] The default value returned for missing indices.
 * @return {Observable} An Observable that emits a single item, if it is found.
 * Otherwise, will emit the default value if given. If not, then emits an error.
 * @method elementAt
 * @owner Observable
 */

/**
 * Emits the values emitted by the source Observable until a `notifier`
 * Observable emits a value.
 *
 * <span class="informal">Lets values pass until a second Observable,
 * `notifier`, emits something. Then, it completes.</span>
 *
 * <img src="./img/takeUntil.png" width="100%">
 *
 * `takeUntil` subscribes and begins mirroring the source Observable. It also
 * monitors a second Observable, `notifier` that you provide. If the `notifier`
 * emits a value or a complete notification, the output Observable stops
 * mirroring the source Observable and completes.
 *
 * @example <caption>Tick every second until the first click happens</caption>
 * var interval = Rx.Observable.interval(1000);
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = interval.takeUntil(clicks);
 * result.subscribe(x => console.log(x));
 *
 * @see {@link take}
 * @see {@link takeLast}
 * @see {@link takeWhile}
 * @see {@link skip}
 *
 * @param {Observable} notifier The Observable whose first emitted value will
 * cause the output Observable of `takeUntil` to stop emitting values from the
 * source Observable.
 * @return {Observable<T>} An Observable that emits the values from the source
 * Observable until such time as `notifier` emits its first value.
 * @method takeUntil
 * @owner Observable
 */

/**
 * Emits the values emitted by the source Observable until a `notifier`
 * Observable emits a value.
 *
 * <span class="informal">Lets values pass until a second Observable,
 * `notifier`, emits something. Then, it completes.</span>
 *
 * <img src="./img/takeUntil.png" width="100%">
 *
 * `takeUntil` subscribes and begins mirroring the source Observable. It also
 * monitors a second Observable, `notifier` that you provide. If the `notifier`
 * emits a value, the output Observable stops mirroring the source Observable
 * and completes.
 *
 * @example <caption>Tick every second until the first click happens</caption>
 * var interval = Rx.Observable.interval(1000);
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = interval.takeUntil(clicks);
 * result.subscribe(x => console.log(x));
 *
 * @see {@link take}
 * @see {@link takeLast}
 * @see {@link takeWhile}
 * @see {@link skip}
 *
 * @param {Observable} notifier The Observable whose first emitted value will
 * cause the output Observable of `takeUntil` to stop emitting values from the
 * source Observable.
 * @return {Observable<T>} An Observable that emits the values from the source
 * Observable until such time as `notifier` emits its first value.
 * @method takeUntil
 * @owner Observable
 */

/**
 * Emits values emitted by the source Observable so long as each value satisfies
 * the given `predicate`, and then completes as soon as this `predicate` is not
 * satisfied.
 *
 * <span class="informal">Takes values from the source only while they pass the
 * condition given. When the first value does not satisfy, it completes.</span>
 *
 * <img src="./img/takeWhile.png" width="100%">
 *
 * `takeWhile` subscribes and begins mirroring the source Observable. Each value
 * emitted on the source is given to the `predicate` function which returns a
 * boolean, representing a condition to be satisfied by the source values. The
 * output Observable emits the source values until such time as the `predicate`
 * returns false, at which point `takeWhile` stops mirroring the source
 * Observable and completes the output Observable.
 *
 * @example <caption>Emit click events only while the clientX property is greater than 200</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.takeWhile(ev => ev.clientX > 200);
 * result.subscribe(x => console.log(x));
 *
 * @see {@link take}
 * @see {@link takeLast}
 * @see {@link takeUntil}
 * @see {@link skip}
 *
 * @param {function(value: T, index: number): boolean} predicate A function that
 * evaluates a value emitted by the source Observable and returns a boolean.
 * Also takes the (zero-based) index as the second argument.
 * @return {Observable<T>} An Observable that emits the values from the source
 * Observable so long as each value satisfies the condition defined by the
 * `predicate`, then completes.
 * @method takeWhile
 * @owner Observable
 */

/**
 * Ensure that foreground and background color combinations meet WCAG2 guidelines.
 * The third argument is an object.
 *      the 'level' property states 'AA' or 'AAA' - if missing or invalid, it defaults to 'AA';
 *      the 'size' property states 'large' or 'small' - if missing or invalid, it defaults to 'small'.
 * If the entire object is absent, isReadable defaults to {level:"AA",size:"small"}.
 *
 * Example
 * ```ts
 * new TinyColor().isReadable('#000', '#111') => false
 * new TinyColor().isReadable('#000', '#111', { level: 'AA', size: 'large' }) => false
 * ```
 */

/**
 * Ensure that the result has all of the necessary fields of the DOMRect.
 * Specifically this ensures that `x` and `y` fields are set.
 *
 * @param {?DOMRect|?ClientRect} rect
 * @return {?DOMRect}
 */

/**
 * Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
 * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category String
 * @param {string} [string=''] The string to escape.
 * @returns {string} Returns the escaped string.
 * @example
 *
 * _.escapeRegExp('[lodash](https://lodash.com/)');
 * // => '\[lodash\]\(https://lodash\.com/\)'
 */

/**
 * Execute code before next frame but async
 */

/**
 * Expose
 */

/**
 * Extension for `mdast-util-from-markdown` to enable GFM strikethrough.
 *
 * @type {FromMarkdownExtension}
 */

/**
 * Extension for `mdast-util-from-markdown` to enable GFM tables.
 *
 * @type {FromMarkdownExtension}
 */

/**
 * Extension for `mdast-util-from-markdown` to enable GFM task list items.
 *
 * @type {FromMarkdownExtension}
 */

/**
 * Extension for `mdast-util-to-markdown` to enable GFM autolink literals.
 *
 * @type {ToMarkdownExtension}
 */

/**
 * Extension for `mdast-util-to-markdown` to enable GFM strikethrough.
 *
 * @type {ToMarkdownExtension}
 */

/**
 * Extension for `mdast-util-to-markdown` to enable GFM task list items.
 *
 * @type {ToMarkdownExtension}
 */

/**
 * Extracts borders size from provided styles.
 *
 * @param {CSSStyleDeclaration} styles
 * @param {...string} positions - Borders positions (top, right, ...)
 * @returns {number}
 */

/**
 * Extracts paddings sizes from provided styles.
 *
 * @param {CSSStyleDeclaration} styles
 * @returns {Object} Paddings box.
 */

/**
 * Extracts wrapper details from the `source` body comment.
 *
 * @private
 * @param {string} source The source to inspect.
 * @returns {Array} Returns the wrapper details.
 */

/**
 * Feature:
 *  - fixed not need to set width
 *  - support `rowExpandable` to config row expand logic
 *  - add `summary` to support `() => ReactNode`
 *
 * Update:
 *  - `dataIndex` is `array[]` now
 *  - `expandable` wrap all the expand related props
 *
 * Removed:
 *  - expandIconAsCell
 *  - useFixedHeader
 *  - rowRef
 *  - columns[number].onCellClick
 *  - onRowClick
 *  - onRowDoubleClick
 *  - onRowMouseEnter
 *  - onRowMouseLeave
 *  - getBodyWrapper
 *  - bodyStyle
 *
 * Deprecated:
 *  - All expanded props, move into expandable
 */

/**
 * Filter items emitted by the source Observable by only emitting those that
 * satisfy a specified predicate.
 *
 * <span class="informal">Like
 * [Array.prototype.filter()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter),
 * it only emits a value from the source if it passes a criterion function.</span>
 *
 * <img src="./img/filter.png" width="100%">
 *
 * Similar to the well-known `Array.prototype.filter` method, this operator
 * takes values from the source Observable, passes them through a `predicate`
 * function and only emits those values that yielded `true`.
 *
 * @example <caption>Emit only click events whose target was a DIV element</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var clicksOnDivs = clicks.filter(ev => ev.target.tagName === 'DIV');
 * clicksOnDivs.subscribe(x => console.log(x));
 *
 * @see {@link distinct}
 * @see {@link distinctUntilChanged}
 * @see {@link distinctUntilKeyChanged}
 * @see {@link ignoreElements}
 * @see {@link partition}
 * @see {@link skip}
 *
 * @param {function(value: T, index: number): boolean} predicate A function that
 * evaluates each value emitted by the source Observable. If it returns `true`,
 * the value is emitted, if `false` the value is not passed to the output
 * Observable. The `index` parameter is the number `i` for the i-th source
 * emission that has happened since the subscription, starting from the number
 * `0`.
 * @param {any} [thisArg] An optional argument to determine the value of `this`
 * in the `predicate` function.
 * @return {Observable} An Observable of values from the source that were
 * allowed by the `predicate` function.
 * @method filter
 * @owner Observable
 */

/**
 * Filter out invalid points.
 *
 * @param {Point} point
 *   Point with potentially `undefined` values.
 * @returns {Point | undefined}
 *   Point or nothing.
 */

/**
 * Find definitions in `tree`.
 *
 * Uses CommonMark precedence, which means that earlier definitions are
 * preferred over duplicate later definitions.
 *
 * @param {Node} tree
 *   Tree to check.
 * @returns {GetDefinition}
 *   Getter.
 */

/**
 * Find focused element within element set provided
 */

/**
 * Find patterns in a tree and replace them.
 *
 * The algorithm searches the tree in *preorder* for complete values in `Text`
 * nodes.
 * Partial matches are not supported.
 *
 * @param tree
 *   Tree to change.
 * @param find
 *   Patterns to find.
 * @param replace
 *   Things to replace with (when `find` is `Find`) or configuration.
 * @param options
 *   Configuration (when `find` is not `Find`).
 * @returns
 *   Given, modified, tree.
 */

/**
 * Find style which inject by rc-util
 */

/**
 * Fix positon x,y point when
 *
 * Ele width && height < client
 * - Back origin
 *
 * - Ele width | height > clientWidth | clientHeight
 * - left | top > 0 -> Back 0
 * - left | top + width | height < clientWidth | clientHeight -> Back left | top + width | height === clientWidth | clientHeight
 *
 * Regardless of other
 */

/**
 * Flat nest tree data into flatten list. This is used for virtual list render.
 * @param treeNodeList Origin data node list
 * @param expandedKeys
 * need expanded keys, provides `true` means all expanded (used in `rc-tree-select`).
 */

/**
 * Flat options into flatten list.
 * We use `optionOnly` here is aim to avoid user use nested option group.
 * Here is simply set `key` to the index if not provided.
 */

/**
 * Flattens `array` a single level deep.
 *
 * @param {Array} arr The array to flatten.
 * @param {Array} result The array to return.
 * @return {Array} Returns the new flattened array.
 * @example
 *
 * flattenDeep([1, [2, [3, [4]], 5]]);  // => [1, 2, 3, 4, 5]
 */

/**
 * Flattens `array` a single level deep.
 *
 * @param {Array} arr The array to flatten.
 * @return {Array} Returns the new flattened array.
 * @example
 *
 * flatten([1, [2, [3, [4]], 5]]);  // => [1, 2, [3, [4]], 5]
 */

/**
 * Flattens `array` a single level deep.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to flatten.
 * @returns {Array} Returns the new flattened array.
 * @example
 *
 * _.flatten([1, [2, [3, [4]], 5]]);
 * // => [1, 2, [3, [4]], 5]
 */

/**
 * Force a hex value to have 2 characters
 * @hidden
 */

/**
 * Force a number between 0 and 1
 * @hidden
 */

/**
 * Format `treeData` with `value` & `key` which is used for calculation
 */

/**
 * Format string number to readable number
 */

/**
 * GFM + Line Breaks Inline Grammar
 */

/**
 * GFM Block Grammar
 */

/**
 * GFM Inline Grammar
 */

/**
 * Generate a CSSMotionList component with config
 * @param transitionSupport No need since CSSMotionList no longer depends on transition support
 * @param CSSMotion CSSMotion component
 */

/**
 * Generate a hast footer for called footnote definitions.
 *
 * @param {State} state
 *   Info passed around.
 * @returns {Element | undefined}
 *   `section` element or `undefined`.
 */

/**
 * Generate a markdown ([GFM](https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/organizing-information-with-tables)) table..
 *
 * @param {ReadonlyArray<ReadonlyArray<string|null|undefined>>} table
 *   Table data (matrix of strings).
 * @param {Options} [options]
 *   Configuration (optional).
 * @returns {string}
 */

/**
 * Generate an assertion from a test.
 *
 * Useful if you’re going to test many nodes, for example when creating a
 * utility where something else passes a compatible test.
 *
 * The created function is a bit faster because it expects valid input only:
 * a `node`, `index`, and `parent`.
 *
 * @param test
 *   *   when nullish, checks if `node` is a `Node`.
 *   *   when `string`, works like passing `(node) => node.type === test`.
 *   *   when `function` checks if function passed the node is true.
 *   *   when `object`, checks that all keys in test are in node, and that they have (strictly) equal values.
 *   *   when `array`, checks if any one of the subtests pass.
 * @returns
 *   An assertion.
 */

/**
 * Generates a 2D projection matrix with the given bounds
 *
 * @param {mat3} out mat3 frustum matrix will be written into
 * @param {number} width Width of your gl context
 * @param {number} height Height of gl context
 * @returns {mat3} out
 */

/**
 * Generates a frustum matrix with the given bounds
 *
 * @param {mat4} out mat4 frustum matrix will be written into
 * @param {Number} left Left bound of the frustum
 * @param {Number} right Right bound of the frustum
 * @param {Number} bottom Bottom bound of the frustum
 * @param {Number} top Top bound of the frustum
 * @param {Number} near Near bound of the frustum
 * @param {Number} far Far bound of the frustum
 * @returns {mat4} out
 */

/**
 * Generates a look-at matrix with the given eye position, focal point, and up axis.
 * If you want a matrix that actually makes an object look at another object, you should use targetTo instead.
 *
 * @param {mat4} out mat4 frustum matrix will be written into
 * @param {ReadonlyVec3} eye Position of the viewer
 * @param {ReadonlyVec3} center Point the viewer is looking at
 * @param {ReadonlyVec3} up vec3 pointing up
 * @returns {mat4} out
 */

/**
 * Generates a matrix that makes something look at something else.
 *
 * @param {mat4} out mat4 frustum matrix will be written into
 * @param {ReadonlyVec3} eye Position of the viewer
 * @param {ReadonlyVec3} center Point the viewer is looking at
 * @param {ReadonlyVec3} up vec3 pointing up
 * @returns {mat4} out
 */

/**
 * Generates a orthogonal projection matrix with the given bounds.
 * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1],
 * which matches WebGL/OpenGL's clip volume.
 *
 * @param {mat4} out mat4 frustum matrix will be written into
 * @param {number} left Left bound of the frustum
 * @param {number} right Right bound of the frustum
 * @param {number} bottom Bottom bound of the frustum
 * @param {number} top Top bound of the frustum
 * @param {number} near Near bound of the frustum
 * @param {number} far Far bound of the frustum
 * @returns {mat4} out
 */

/**
 * Generates a orthogonal projection matrix with the given bounds.
 * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1],
 * which matches WebGPU/Vulkan/DirectX/Metal's clip volume.
 *
 * @param {mat4} out mat4 frustum matrix will be written into
 * @param {number} left Left bound of the frustum
 * @param {number} right Right bound of the frustum
 * @param {number} bottom Bottom bound of the frustum
 * @param {number} top Top bound of the frustum
 * @param {number} near Near bound of the frustum
 * @param {number} far Far bound of the frustum
 * @returns {mat4} out
 */

/**
 * Generates a perspective projection matrix suitable for WebGPU with the given bounds.
 * The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1],
 * which matches WebGPU/Vulkan/DirectX/Metal's clip volume.
 * Passing null/undefined/no value for far will generate infinite projection matrix.
 *
 * @param {mat4} out mat4 frustum matrix will be written into
 * @param {number} fovy Vertical field of view in radians
 * @param {number} aspect Aspect ratio. typically viewport width/height
 * @param {number} near Near bound of the frustum
 * @param {number} far Far bound of the frustum, can be null or Infinity
 * @returns {mat4} out
 */

/**
 * Generates a perspective projection matrix with the given bounds.
 * The near/far clip planes correspond to a normalized device coordinate Z range of [-1, 1],
 * which matches WebGL/OpenGL's clip volume.
 * Passing null/undefined/no value for far will generate infinite projection matrix.
 *
 * @param {mat4} out mat4 frustum matrix will be written into
 * @param {number} fovy Vertical field of view in radians
 * @param {number} aspect Aspect ratio. typically viewport width/height
 * @param {number} near Near bound of the frustum
 * @param {number} far Far bound of the frustum, can be null or Infinity
 * @returns {mat4} out
 */

/**
 * Generates a perspective projection matrix with the given field of view.
 * This is primarily useful for generating projection matrices to be used
 * with the still experiemental WebVR API.
 *
 * @param {mat4} out mat4 frustum matrix will be written into
 * @param {Object} fov Object containing the following values: upDegrees, downDegrees, leftDegrees, rightDegrees
 * @param {number} near Near bound of the frustum
 * @param {number} far Far bound of the frustum
 * @returns {mat4} out
 */

/**
 * Generates a random unit quaternion
 *
 * @param {quat} out the receiving quaternion
 * @returns {quat} out
 */

/**
 * Generates a random vector with the given scale
 *
 * @param {vec2} out the receiving vector
 * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned
 * @returns {vec2} out
 */

/**
 * Generates a random vector with the given scale
 *
 * @param {vec3} out the receiving vector
 * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned
 * @returns {vec3} out
 */

/**
 * Generates a random vector with the given scale
 *
 * @param {vec4} out the receiving vector
 * @param {Number} [scale] Length of the resulting vector. If ommitted, a unit vector will be returned
 * @returns {vec4} out
 */

/**
 * Geometry Label 基类，用于生成 Geometry 下所有 label 的配置项信息
 */

/**
 * Geometry 几何标记基类，主要负责数据到图形属性的映射以及绘制逻辑。
 */

/**
 * Get TreeNode props with Tree props.
 */

/**
 * Get `data-menu-id`
 */

/**
 * Get a path from a POSIX URL.
 *
 * @param {URL} url
 *   URL.
 * @returns {string}
 *   File path.
 */

/**
 * Get an extname from a path.
 *
 * @param {string} path
 *   File path.
 * @returns {string}
 *   Extname.
 */

/**
 * Get an identifier from an association to match it to others.
 *
 * Associations are nodes that match to something else through an ID:
 * <https://github.com/syntax-tree/mdast#association>.
 *
 * The `label` of an association is the string value: character escapes and
 * references work, and casing is intact.
 * The `identifier` is used to match one association to another:
 * controversially, character escapes and references don’t work in this
 * matching: `&copy;` does not match `©`, and `\+` does not match `+`.
 *
 * But casing is ignored (and whitespace) is trimmed and collapsed: ` A\nb`
 * matches `a b`.
 * So, we do prefer the label when figuring out how we’re going to serialize:
 * it has whitespace, casing, and we can ignore most useless character
 * escapes and all character references.
 *
 * @type {AssociationId}
 */

/**
 * Get focusable elements from the element set under provided container
 */

/**
 * Get index with specific start index one by one. e.g.
 * min: 3, max: 9, start: 6
 *
 * Return index is:
 * [0]: 6
 * [1]: 7
 * [2]: 5
 * [3]: 8
 * [4]: 4
 * [5]: 9
 * [6]: 3
 */

/**
 * Get pointer position in a React Node ref
 * Returns an object with x and y coordinates.
 * The base on the coordinates are the bottom left of the element.
 *
 * @function getPointerPosition
 * @param {ReactNodeRef} el React Node ref on which to get the pointer position on
 * @param {Event} event Event object
 * @return {Object} This object will have x and y coordinates corresponding to the mouse position
 */

/**
 * Get render update mark by `makeImmutable` root.
 * Do not deps on the return value as render times
 * but only use for `useMemo` or `useCallback` deps.
 */

/**
 * Get sticky column offset width
 */

/**
 * Get the angle between two 2D vectors
 * @param {ReadonlyVec2} a The first operand
 * @param {ReadonlyVec2} b The second operand
 * @returns {Number} The angle in radians
 */

/**
 * Get the angle between two 3D vectors
 * @param {ReadonlyVec3} a The first operand
 * @param {ReadonlyVec3} b The second operand
 * @returns {Number} The angle in radians
 */

/**
 * Get the basename from a path.
 *
 * @param {string} path
 *   File path.
 * @param {string | undefined} [ext]
 *   Extension to strip.
 * @returns {string}
 *   Stem or basename.
 */

/**
 * Get the chunks from a slice of chunks in the range of a token.
 *
 * @param {Array<Chunk>} chunks
 * @param {Pick<Token, 'start'|'end'>} token
 * @returns {Array<Chunk>}
 */

/**
 * Get the dirname from a path.
 *
 * @param {string} path
 *   File path.
 * @returns {string}
 *   File path.
 */

/**
 * Get the ending point of `node`.
 *
 * @param node
 *   Node.
 * @returns
 *   Point.
 */

/**
 * Get the positional info of `node`.
 *
 * @param {'start' | 'end'} type
 *   Side.
 * @returns
 *   Getter.
 */

/**
 * Get the positional info of `node`.
 *
 * @param {NodeLike | Node | null | undefined} [node]
 *   Node.
 * @returns {Position}
 *   Position.
 */

/**
 * Get the starting point of `node`.
 *
 * @param node
 *   Node.
 * @returns
 *   Point.
 */

/**
 * Get the string value of a slice of chunks.
 *
 * @param {Array<Chunk>} chunks
 * @param {boolean} [expandTabs=false]
 * @returns {string}
 */

/**
 * Get the text content of a node or list of nodes.
 *
 * Prefers the node’s plain-text fields, otherwise serializes its children,
 * and if the given value is an array, serialize the nodes in it.
 *
 * @param {unknown} value
 *   Thing to serialize, typically `Node`.
 * @param {Options | null | undefined} [options]
 *   Configuration (optional).
 * @returns {string}
 *   Serialized `value`.
 */

/**
 * Gets line marker
 * @ignore
 * @param markerCfg
 * @param shapeType
 * @returns 返回 Line 的 marker 配置
 */

/**
 * Gets metadata for `func`.
 *
 * @private
 * @param {Function} func The function to query.
 * @returns {*} Returns the metadata for `func`.
 */

/**
 * Gets the `toStringTag` of `value`.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */

/**
 * Gets the angular distance between two unit quaternions
 *
 * @param  {ReadonlyQuat} a     Origin unit quaternion
 * @param  {ReadonlyQuat} b     Destination unit quaternion
 * @return {Number}     Angle, in radians, between the two quaternions
 */

/**
 * Gets the argument placeholder value for `func`.
 *
 * @private
 * @param {Function} func The function to inspect.
 * @returns {*} Returns the placeholder value.
 */

/**
 * Gets the data for `map`.
 *
 * @private
 * @param {Object} map The map to query.
 * @param {string} key The reference key.
 * @returns {*} Returns the map data.
 */

/**
 * Gets the dual part of a dual quat
 * @param  {quat} out dual part
 * @param  {ReadonlyQuat2} a Dual Quaternion
 * @return {quat} dual part
 */

/**
 * Gets the hash value for `key`.
 *
 * @private
 * @name get
 * @memberOf Hash
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */

/**
 * Gets the index at which the `key` is found in `array` of key-value pairs.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} key The key to search for.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */

/**
 * Gets the last element of `array`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Array
 * @param {Array} array The array to query.
 * @returns {*} Returns the last element of `array`.
 * @example
 *
 * _.last([1, 2, 3]);
 * // => 3
 */

/**
 * Gets the list cache value for `key`.
 *
 * @private
 * @name get
 * @memberOf ListCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */

/**
 * Gets the map value for `key`.
 *
 * @private
 * @name get
 * @memberOf MapCache
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */

/**
 * Gets the name of `func`.
 *
 * @private
 * @param {Function} func The function to query.
 * @returns {string} Returns the function name.
 */

/**
 * Gets the native function at `key` of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the method to get.
 * @returns {*} Returns the function if it's native, else `undefined`.
 */

/**
 * Gets the number of `placeholder` occurrences in `array`.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} placeholder The placeholder to search for.
 * @returns {number} Returns the placeholder count.
 */

/**
 * Gets the number of symbols in `string`.
 *
 * @private
 * @param {string} string The string to inspect.
 * @returns {number} Returns the string size.
 */

/**
 * Gets the parent node of an element or its host element if the parent node
 * is a shadow root.
 * @param {Node} node The node whose parent to get.
 * @return {Node|null} The parent node or null if no parent exists.
 */

/**
 * Gets the parent value at `path` of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array} path The path to get the parent value of.
 * @returns {*} Returns the parent value.
 */

/**
 * Gets the property names, values, and compare flags of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the match data of `object`.
 */

/**
 * Gets the real part of a dual quat
 * @param  {quat} out real part
 * @param  {ReadonlyQuat2} a Dual Quaternion
 * @return {quat} real part
 */

/**
 * Gets the rotation axis and angle for a given
 *  quaternion. If a quaternion is created with
 *  setAxisAngle, this method will return the same
 *  values as providied in the original parameter list
 *  OR functionally equivalent values.
 * Example: The quaternion formed by axis [0, 0, 1] and
 *  angle -90 is the same as the quaternion formed by
 *  [0, 0, 1] and 270. This method favors the latter.
 * @param  {vec3} out_axis  Vector receiving the axis of rotation
 * @param  {ReadonlyQuat} q     Quaternion to be decomposed
 * @return {Number}     Angle, in radians, of the rotation
 */

/**
 * Gets the size of a Unicode `string`.
 *
 * @private
 * @param {string} string The string inspect.
 * @returns {number} Returns the string size.
 */

/**
 * Gets the size of an ASCII `string`.
 *
 * @private
 * @param {string} string The string inspect.
 * @returns {number} Returns the string size.
 */

/**
 * Gets the stack value for `key`.
 *
 * @private
 * @name get
 * @memberOf Stack
 * @param {string} key The key of the value to get.
 * @returns {*} Returns the entry value.
 */

/**
 * Gets the timestamp of the number of milliseconds that have elapsed since
 * the Unix epoch (1 January 1970 00:00:00 UTC).
 *
 * @static
 * @memberOf _
 * @since 2.4.0
 * @category Date
 * @returns {number} Returns the timestamp.
 * @example
 *
 * _.defer(function(stamp) {
 *   console.log(_.now() - stamp);
 * }, _.now());
 * // => Logs the number of milliseconds it took for the deferred invocation.
 */

/**
 * Gets the translation of a normalized dual quat
 * @param  {vec3} out translation
 * @param  {ReadonlyQuat2} a Dual Quaternion to be decomposed
 * @return {vec3} translation
 */

/**
 * Gets the value at `key` of `object`.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */

/**
 * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
 *
 * @private
 * @param {Object} object The object to query.
 * @param {string} key The key of the property to get.
 * @returns {*} Returns the property value.
 */

/**
 * Gets the value at `path` of `object`. If the resolved value is
 * `undefined`, the `defaultValue` is returned in its place.
 *
 * @static
 * @memberOf _
 * @since 3.7.0
 * @category Object
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @param {*} [defaultValue] The value returned for `undefined` resolved values.
 * @returns {*} Returns the resolved value.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c': 3 } }] };
 *
 * _.get(object, 'a[0].b.c');
 * // => 3
 *
 * _.get(object, ['a', '0', 'b', 'c']);
 * // => 3
 *
 * _.get(object, 'a.b.c', 'default');
 * // => 'default'
 */

/**
 * Given a base color and a list of possible foreground or background
 * colors for that base, returns the most readable color.
 * Optionally returns Black or White if the most readable color is unreadable.
 *
 * @param baseColor - the base color.
 * @param colorList - array of colors to pick the most readable one from.
 * @param args - and object with extra arguments
 *
 * Example
 * ```ts
 * new TinyColor().mostReadable('#123', ['#124", "#125'], { includeFallbackColors: false }).toHexString(); // "#112255"
 * new TinyColor().mostReadable('#123', ['#124", "#125'],{ includeFallbackColors: true }).toHexString();  // "#ffffff"
 * new TinyColor().mostReadable('#a8015a', ["#faf3f3"], { includeFallbackColors:true, level: 'AAA', size: 'large' }).toHexString(); // "#faf3f3"
 * new TinyColor().mostReadable('#a8015a', ["#faf3f3"], { includeFallbackColors:true, level: 'AAA', size: 'small' }).toHexString(); // "#ffffff"
 * ```
 */

/**
 * Given a hast tree and an optional vfile (for positional info), return a new
 * parsed-again hast tree.
 *
 * @param tree
 *   Original hast tree.
 * @param file
 *   Virtual file for positional info, optional.
 * @param options
 *   Configuration.
 */

/**
 * Given a string or object, convert that input to RGB
 *
 * Possible string inputs:
 * ```
 * "red"
 * "#f00" or "f00"
 * "#ff0000" or "ff0000"
 * "#ff000000" or "ff000000"
 * "rgb 255 0 0" or "rgb (255, 0, 0)"
 * "rgb 1.0 0 0" or "rgb (1, 0, 0)"
 * "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1"
 * "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1"
 * "hsl(0, 100%, 50%)" or "hsl 0 100% 50%"
 * "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1"
 * "hsv(0, 100%, 100%)" or "hsv 0 100% 100%"
 * ```
 */

/**
 * Groups pairs of consecutive emissions together and emits them as an array of
 * two values.
 *
 * <span class="informal">Puts the current value and previous value together as
 * an array, and emits that.</span>
 *
 * <img src="./img/pairwise.png" width="100%">
 *
 * The Nth emission from the source Observable will cause the output Observable
 * to emit an array [(N-1)th, Nth] of the previous and the current value, as a
 * pair. For this reason, `pairwise` emits on the second and subsequent
 * emissions from the source Observable, but not on the first emission, because
 * there is no previous value in that case.
 *
 * @example <caption>On every click (starting from the second), emit the relative distance to the previous click</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var pairs = clicks.pairwise();
 * var distance = pairs.map(pair => {
 *   var x0 = pair[0].clientX;
 *   var y0 = pair[0].clientY;
 *   var x1 = pair[1].clientX;
 *   var y1 = pair[1].clientY;
 *   return Math.sqrt(Math.pow(x0 - x1, 2) + Math.pow(y0 - y1, 2));
 * });
 * distance.subscribe(x => console.log(x));
 *
 * @see {@link buffer}
 * @see {@link bufferCount}
 *
 * @return {Observable<Array<T>>} An Observable of pairs (as arrays) of
 * consecutive values from the source Observable.
 * @method pairwise
 * @owner Observable
 */

/**
 * Groups the items emitted by an Observable according to a specified criterion,
 * and emits these grouped items as `GroupedObservables`, one
 * {@link GroupedObservable} per group.
 *
 * <img src="./img/groupBy.png" width="100%">
 *
 * @example <caption>Group objects by id and return as array</caption>
 * Observable.of<Obj>({id: 1, name: 'aze1'},
 *                    {id: 2, name: 'sf2'},
 *                    {id: 2, name: 'dg2'},
 *                    {id: 1, name: 'erg1'},
 *                    {id: 1, name: 'df1'},
 *                    {id: 2, name: 'sfqfb2'},
 *                    {id: 3, name: 'qfs3'},
 *                    {id: 2, name: 'qsgqsfg2'}
 *     )
 *     .groupBy(p => p.id)
 *     .flatMap( (group$) => group$.reduce((acc, cur) => [...acc, cur], []))
 *     .subscribe(p => console.log(p));
 *
 * // displays:
 * // [ { id: 1, name: 'aze1' },
 * //   { id: 1, name: 'erg1' },
 * //   { id: 1, name: 'df1' } ]
 * //
 * // [ { id: 2, name: 'sf2' },
 * //   { id: 2, name: 'dg2' },
 * //   { id: 2, name: 'sfqfb2' },
 * //   { id: 2, name: 'qsgqsfg2' } ]
 * //
 * // [ { id: 3, name: 'qfs3' } ]
 *
 * @example <caption>Pivot data on the id field</caption>
 * Observable.of<Obj>({id: 1, name: 'aze1'},
 *                    {id: 2, name: 'sf2'},
 *                    {id: 2, name: 'dg2'},
 *                    {id: 1, name: 'erg1'},
 *                    {id: 1, name: 'df1'},
 *                    {id: 2, name: 'sfqfb2'},
 *                    {id: 3, name: 'qfs1'},
 *                    {id: 2, name: 'qsgqsfg2'}
 *                   )
 *     .groupBy(p => p.id, p => p.name)
 *     .flatMap( (group$) => group$.reduce((acc, cur) => [...acc, cur], ["" + group$.key]))
 *     .map(arr => ({'id': parseInt(arr[0]), 'values': arr.slice(1)}))
 *     .subscribe(p => console.log(p));
 *
 * // displays:
 * // { id: 1, values: [ 'aze1', 'erg1', 'df1' ] }
 * // { id: 2, values: [ 'sf2', 'dg2', 'sfqfb2', 'qsgqsfg2' ] }
 * // { id: 3, values: [ 'qfs1' ] }
 *
 * @param {function(value: T): K} keySelector A function that extracts the key
 * for each item.
 * @param {function(value: T): R} [elementSelector] A function that extracts the
 * return element for each item.
 * @param {function(grouped: GroupedObservable<K,R>): Observable<any>} [durationSelector]
 * A function that returns an Observable to determine how long each group should
 * exist.
 * @return {Observable<GroupedObservable<K,R>>} An Observable that emits
 * GroupedObservables, each of which corresponds to a unique key value and each
 * of which emits those items from the source Observable that share that key
 * value.
 * @method groupBy
 * @owner Observable
 */

/**
 * H5 通过 js 获取暗夜模式状态
 */

/**
 * Handle a property.
 *
 * @param {Schema} schema
 *   Current schema.
 * @param {string} prop
 *   Key.
 * @param {Array<string | number> | string | number | boolean | null | undefined} value
 *   hast property value.
 * @returns {P5Attribute | void}
 *   Field for runtime, optional.
 */

/**
 * Handle bounds / percentage checking to conform to CSS color spec
 * <http://www.w3.org/TR/css3-color/>
 * *Assumes:* r, g, b in [0, 255] or [0, 1]
 * *Returns:* { r, g, b } in [0, 255]
 */

/**
 * Handle values based on a field.
 *
 * @template {InvalidHandler} [Invalid=InvalidHandler]
 * @template {UnknownHandler} [Unknown=UnknownHandler]
 * @template {Record<string, Handler>} [Handlers=Record<string, Handler>]
 * @param {string} key
 *   Field to switch on.
 * @param {Options<Invalid, Unknown, Handlers>} [options]
 *   Configuration (required).
 * @returns {{unknown: Unknown, invalid: Invalid, handlers: Handlers, (...parameters: Parameters<Handlers[keyof Handlers]>): ReturnType<Handlers[keyof Handlers]>, (...parameters: Parameters<Unknown>): ReturnType<Unknown>}}
 */

/**
 * Helper function for determining whether target object is a function
 *
 * @param target the object under test
 * @return {Boolean} true if function, false otherwise
 */

/**
 * Helper function for determining whether target object is an array
 *
 * @param target the object under test
 * @return {Boolean} true if array, false otherwise
 */

/**
 * Helper function for iterating over a collection
 *
 * @param collection
 * @param fn
 */

/**
 * Helpers
 */

/**
 * Holds reference to the controller's instance.
 *
 * @private {ResizeObserverController}
 */

/**
 * Honor the `data` of `from` and maybe generate an element instead of `to`.
 *
 * @template {HastNodes} Type
 *   Node type.
 * @param {MdastNodes} from
 *   mdast node to use data from.
 * @param {Type} to
 *   hast node to change.
 * @returns {Type | HastElement}
 *   Nothing.
 */

/**
 * Hook factory, which creates a `useDispatch` hook bound to a given context.
 *
 * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
 * @returns {Function} A `useDispatch` hook bound to the specified context.
 */

/**
 * Hook factory, which creates a `useSelector` hook bound to a given context.
 *
 * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
 * @returns {Function} A `useSelector` hook bound to the specified context.
 */

/**
 * Hook factory, which creates a `useStore` hook bound to a given context.
 *
 * @param {React.Context} [context=ReactReduxContext] Context passed to your `<Provider>`.
 * @returns {Function} A `useStore` hook bound to the specified context.
 */

/**
 * If input is an object, force 1 into "1.0" to handle ratios properly
 * String input requires "1.0" as input, so 1 will be treated as 1
 */

/**
 * If the source Observable is empty it returns an Observable that emits true, otherwise it emits false.
 *
 * <img src="./img/isEmpty.png" width="100%">
 *
 * @return {Observable} An Observable that emits a Boolean.
 * @method isEmpty
 * @owner Observable
 */

/**
 * If user use `autoExpandParent` we should get the list of parent node
 * @param keyList
 * @param keyEntities
 */

/**
 * Ignores all items emitted by the source Observable and only passes calls of `complete` or `error`.
 *
 * <img src="./img/ignoreElements.png" width="100%">
 *
 * @return {Observable} An empty Observable that only calls `complete`
 * or `error`, based on which one is called by the source Observable.
 * @method ignoreElements
 * @owner Observable
 */

/**
 * Ignores source values for `duration` milliseconds, then emits the most recent
 * value from the source Observable, then repeats this process.
 *
 * <span class="informal">When it sees a source values, it ignores that plus
 * the next ones for `duration` milliseconds, and then it emits the most recent
 * value from the source.</span>
 *
 * <img src="./img/auditTime.png" width="100%">
 *
 * `auditTime` is similar to `throttleTime`, but emits the last value from the
 * silenced time window, instead of the first value. `auditTime` emits the most
 * recent value from the source Observable on the output Observable as soon as
 * its internal timer becomes disabled, and ignores source values while the
 * timer is enabled. Initially, the timer is disabled. As soon as the first
 * source value arrives, the timer is enabled. After `duration` milliseconds (or
 * the time unit determined internally by the optional `scheduler`) has passed,
 * the timer is disabled, then the most recent source value is emitted on the
 * output Observable, and this process repeats for the next source value.
 * Optionally takes a {@link IScheduler} for managing timers.
 *
 * @example <caption>Emit clicks at a rate of at most one click per second</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.auditTime(1000);
 * result.subscribe(x => console.log(x));
 *
 * @see {@link audit}
 * @see {@link debounceTime}
 * @see {@link delay}
 * @see {@link sampleTime}
 * @see {@link throttleTime}
 *
 * @param {number} duration Time to wait before emitting the most recent source
 * value, measured in milliseconds or the time unit determined internally
 * by the optional `scheduler`.
 * @param {Scheduler} [scheduler=async] The {@link IScheduler} to use for
 * managing the timers that handle the rate-limiting behavior.
 * @return {Observable<T>} An Observable that performs rate-limiting of
 * emissions from the source Observable.
 * @method auditTime
 * @owner Observable
 */

/**
 * Ignores source values for a duration determined by another Observable, then
 * emits the most recent value from the source Observable, then repeats this
 * process.
 *
 * <span class="informal">It's like {@link auditTime}, but the silencing
 * duration is determined by a second Observable.</span>
 *
 * <img src="./img/audit.png" width="100%">
 *
 * `audit` is similar to `throttle`, but emits the last value from the silenced
 * time window, instead of the first value. `audit` emits the most recent value
 * from the source Observable on the output Observable as soon as its internal
 * timer becomes disabled, and ignores source values while the timer is enabled.
 * Initially, the timer is disabled. As soon as the first source value arrives,
 * the timer is enabled by calling the `durationSelector` function with the
 * source value, which returns the "duration" Observable. When the duration
 * Observable emits a value or completes, the timer is disabled, then the most
 * recent source value is emitted on the output Observable, and this process
 * repeats for the next source value.
 *
 * @example <caption>Emit clicks at a rate of at most one click per second</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.audit(ev => Rx.Observable.interval(1000));
 * result.subscribe(x => console.log(x));
 *
 * @see {@link auditTime}
 * @see {@link debounce}
 * @see {@link delayWhen}
 * @see {@link sample}
 * @see {@link throttle}
 *
 * @param {function(value: T): SubscribableOrPromise} durationSelector A function
 * that receives a value from the source Observable, for computing the silencing
 * duration, returned as an Observable or a Promise.
 * @return {Observable<T>} An Observable that performs rate-limiting of
 * emissions from the source Observable.
 * @method audit
 * @owner Observable
 */

/**
 * Index the given document so you can translate between line/column and offset
 * based positional info.
 *
 * @param {VFile | Value} file
 *   File to index.
 * @returns {Location}
 *   Accessors for index.
 */

/**
 * Indicates whether DOM listeners have been added.
 *
 * @private {boolean}
 */

/**
 * Initializes DOM listeners.
 *
 * @private
 * @returns {void}
 */

/**
 * Initializes an array clone.
 *
 * @private
 * @param {Array} array The array to clone.
 * @returns {Array} Returns the initialized clone.
 */

/**
 * Initializes an object clone based on its `toStringTag`.
 *
 * **Note:** This function only supports cloning values with tags of
 * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
 *
 * @private
 * @param {Object} object The object to clone.
 * @param {string} tag The `toStringTag` of the object to clone.
 * @param {boolean} [isDeep] Specify a deep clone.
 * @returns {Object} Returns the initialized clone.
 */

/**
 * Initializes an object clone.
 *
 * @private
 * @param {Object} object The object to clone.
 * @returns {Object} Returns the initialized clone.
 */

/**
 * Inject `props` into `option` for legacy usage
 */

/**
 * Inline-Level Grammar
 */

/**
 * Inserts wrapper `details` in a comment at the top of the `source` body.
 *
 * @private
 * @param {string} source The source to modify.
 * @returns {Array} details The details to insert.
 * @returns {string} Returns the modified source.
 */

/**
 * Internal usage. Do not use in your code since this will be removed.
 */

/**
 * Inverts a mat2
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the source matrix
 * @returns {mat2} out
 */

/**
 * Inverts a mat2d
 *
 * @param {mat2d} out the receiving matrix
 * @param {ReadonlyMat2d} a the source matrix
 * @returns {mat2d} out
 */

/**
 * Inverts a mat3
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the source matrix
 * @returns {mat3} out
 */

/**
 * Inverts a mat4
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the source matrix
 * @returns {mat4} out
 */

/**
 * Inverts the intersection and bounding rect from the parent (frame) BCR to
 * the local BCR space.
 * @param {DOMRect|ClientRect} parentBoundingRect The parent's bound client rect.
 * @param {DOMRect|ClientRect} parentIntersectionRect The parent's own intersection rect.
 * @return {ClientRect} The local root bounding rect for the parent's children.
 */

/**
 * Invokes initial callback function with a list of ResizeObserverEntry
 * instances collected from active resize observations.
 *
 * @returns {void}
 */

/**
 * Invokes the update of observers. It will continue running updates insofar
 * it detects changes.
 *
 * @returns {void}
 */

/**
 * Iterates over elements of `collection` and invokes `iteratee` for each element.
 * The iteratee is invoked with three arguments: (value, index|key, collection).
 * Iteratee functions may exit iteration early by explicitly returning `false`.
 *
 * **Note:** As with other "Collections" methods, objects with a "length"
 * property are iterated like arrays. To avoid this behavior use `_.forIn`
 * or `_.forOwn` for object iteration.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @alias each
 * @category Collection
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} [iteratee=_.identity] The function invoked per iteration.
 * @returns {Array|Object} Returns `collection`.
 * @see _.forEachRight
 * @example
 *
 * _.forEach([1, 2], function(value) {
 *   console.log(value);
 * });
 * // => Logs `1` then `2`.
 *
 * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
 *   console.log(key);
 * });
 * // => Logs 'a' then 'b' (iteration order is not guaranteed).
 */

/**
 * Join segments from a path.
 *
 * @param {Array<string>} segments
 *   Path segments.
 * @returns {string}
 *   File path.
 */

/**
 * Keep input cursor in the correct position if possible.
 * Is this necessary since we have `formatter` which may mass the content?
 */

/**
 * Keeps reference to the instance of MutationObserver.
 *
 * @private {MutationObserver}
 */

/**
 * Like `Array#splice`, but smarter for giant arrays.
 *
 * `Array#splice` takes all items to be inserted as individual argument which
 * causes a stack overflow in V8 when trying to insert 100k items for instance.
 *
 * Otherwise, this does not return the removed items, and takes `items` as an
 * array instead of rest parameters.
 *
 * @template {unknown} T
 * @param {T[]} list
 * @param {number} start
 * @param {number} remove
 * @param {T[]} items
 * @returns {void}
 */

/**
 * Line 几何标记。
 * 常用于折线图的绘制。
 */

/**
 * List of HTML void tag names.
 *
 * @type {Array<string>}
 */

/**
 * List of lowercase HTML tag names which when parsing HTML (flow), result
 * in more relaxed rules (condition 6): because they are known blocks, the
 * HTML-like syntax doesn’t have to be strictly parsed.
 * For tag names not in this list, a more strict algorithm (condition 7) is used
 * to detect whether the HTML-like syntax is seen as HTML (flow) or not.
 *
 * This is copied from:
 * <https://spec.commonmark.org/0.30/#html-blocks>.
 */

/**
 * List of lowercase HTML tag names which when parsing HTML (flow), result in
 * HTML that can include lines w/o exiting, until a closing tag also in this
 * list is found (condition 1).
 *
 * This module is copied from:
 * <https://spec.commonmark.org/0.30/#html-blocks>.
 *
 * Note that `textarea` was added in `CommonMark@0.30`.
 */

/**
 * Locker return cached mark.
 * If set to `true`, will return `true` in a short time even if set `false`.
 * If set to `false` and then set to `true`, will change to `true`.
 * And after time duration, it will back to `null` automatically.
 */

/**
 * Logic:
 *  When `mode` === `picker`,
 *  click will trigger `onSelect` (if value changed trigger `onChange` also).
 *  Panel change will not trigger `onSelect` but trigger `onPanelChange`
 */

/**
 * Make a string safe for embedding in markdown constructs.
 *
 * In markdown, almost all punctuation characters can, in certain cases,
 * result in something.
 * Whether they do is highly subjective to where they happen and in what
 * they happen.
 *
 * To solve this, `mdast-util-to-markdown` tracks:
 *
 * * Characters before and after something;
 * * What “constructs” we are in.
 *
 * This information is then used by this function to escape or encode
 * special characters.
 *
 * @param {State} state
 *   Info passed around about the current state.
 * @param {string | null | undefined} input
 *   Raw value to make safe.
 * @param {SafeConfig} config
 *   Configuration.
 * @returns {string}
 *   Serialized markdown safe for embedding.
 */

/**
 * Make a value safe for injection as a URL.
 *
 * This encodes unsafe characters with percent-encoding and skips already
 * encoded sequences (see `normalizeUri` below).
 * Further unsafe characters are encoded as character references (see
 * `micromark-util-encode`).
 *
 * Then, a regex of allowed protocols can be given, in which case the URL is
 * sanitized.
 * For example, `/^(https?|ircs?|mailto|xmpp)$/i` can be used for `a[href]`,
 * or `/^https?$/i` for `img[src]`.
 * If the URL includes an unknown protocol (one not matched by `protocol`, such
 * as a dangerous example, `javascript:`), the value is ignored.
 *
 * @param {string|undefined} url
 * @param {RegExp} [protocol]
 * @returns {string}
 */

/**
 * Make sure `path` is a string.
 *
 * @param {string} path
 *   File path.
 * @returns {asserts path is string}
 *   Nothing.
 */

/**
 * Map of web namespaces.
 *
 * @type {Record<string, string>}
 */

/**
 * Maps each source value (an object) to its specified nested property.
 *
 * <span class="informal">Like {@link map}, but meant only for picking one of
 * the nested properties of every emitted object.</span>
 *
 * <img src="./img/pluck.png" width="100%">
 *
 * Given a list of strings describing a path to an object property, retrieves
 * the value of a specified nested property from all values in the source
 * Observable. If a property can't be resolved, it will return `undefined` for
 * that value.
 *
 * @example <caption>Map every click to the tagName of the clicked target element</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var tagNames = clicks.pluck('target', 'tagName');
 * tagNames.subscribe(x => console.log(x));
 *
 * @see {@link map}
 *
 * @param {...string} properties The nested properties to pluck from each source
 * value (an object).
 * @return {Observable} A new Observable of property values from the source values.
 * @method pluck
 * @owner Observable
 */

/**
 * Marked
 */

/**
 * Math.ceil the components of a vec2
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a vector to ceil
 * @returns {vec2} out
 */

/**
 * Math.ceil the components of a vec3
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a vector to ceil
 * @returns {vec3} out
 */

/**
 * Math.ceil the components of a vec4
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a vector to ceil
 * @returns {vec4} out
 */

/**
 * Math.floor the components of a vec2
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a vector to floor
 * @returns {vec2} out
 */

/**
 * Math.floor the components of a vec3
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a vector to floor
 * @returns {vec3} out
 */

/**
 * Math.floor the components of a vec4
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a vector to floor
 * @returns {vec4} out
 */

/**
 * Math.round the components of a vec2
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a vector to round
 * @returns {vec2} out
 */

/**
 * Math.round the components of a vec3
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a vector to round
 * @returns {vec3} out
 */

/**
 * Math.round the components of a vec4
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a vector to round
 * @returns {vec4} out
 */

/**
 * Menu modify after refactor:
 * ## Add
 * - disabled
 *
 * ## Remove
 * - openTransitionName
 * - openAnimation
 * - onDestroy
 * - siderCollapsed: Seems antd do not use this prop (Need test in antd)
 * - collapsedWidth: Seems this logic should be handle by antd Layout.Sider
 */

/**
 * Merge `extension` into `all`.
 *
 * @param {NormalizedExtension} all Extension to merge into.
 * @param {Extension} extension Extension to merge.
 * @returns {void}
 */

/**
 * Merge `list` into `existing` (both lists of constructs).
 * Mutates `existing`.
 *
 * @param {unknown[]} existing
 * @param {unknown[]} list
 * @returns {void}
 */

/**
 * Merge refs into one ref function to support ref passing.
 */

/**
 * Merges the function metadata of `source` into `data`.
 *
 * Merging metadata reduces the number of wrappers used to invoke a function.
 * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`
 * may be applied regardless of execution order. Methods like `_.ary` and
 * `_.rearg` modify function arguments, making the order in which they are
 * executed important, preventing the merging of metadata. However, we make
 * an exception for a safe combined case where curried functions have `_.ary`
 * and or `_.rearg` applied.
 *
 * @private
 * @param {Array} data The destination metadata.
 * @param {Array} source The source metadata.
 * @returns {Array} Returns `data`.
 */

/**
 * Message.
 */

/**
 * Minimal `EventEmitter` interface that is molded against the Node.js
 * `EventEmitter` interface.
 *
 * @constructor
 * @public
 */

/**
 * Move a point a bit.
 *
 * Note: `move` only works inside lines! It’s not possible to move past other
 * chunks (replacement characters, tabs, or line endings).
 *
 * @param {Point} point
 * @param {number} offset
 * @returns {void}
 */

/**
 * Moves an array item from one position in an array to another.
 *
 * Note: This is a pure function so a new array will be returned, instead
 * of altering the array argument.
 *
 * @param array         Array in which to move an item.         (required)
 * @param moveIndex     The index of the item to move.          (required)
 * @param toIndex       The index to move item at moveIndex to. (required)
 */

/**
 * Multiplies two dual quat's
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a the first operand
 * @param {ReadonlyQuat2} b the second operand
 * @returns {quat2} out
 */

/**
 * Multiplies two mat2's
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the first operand
 * @param {ReadonlyMat2} b the second operand
 * @returns {mat2} out
 */

/**
 * Multiplies two mat2d's
 *
 * @param {mat2d} out the receiving matrix
 * @param {ReadonlyMat2d} a the first operand
 * @param {ReadonlyMat2d} b the second operand
 * @returns {mat2d} out
 */

/**
 * Multiplies two mat3's
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the first operand
 * @param {ReadonlyMat3} b the second operand
 * @returns {mat3} out
 */

/**
 * Multiplies two mat4s
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the first operand
 * @param {ReadonlyMat4} b the second operand
 * @returns {mat4} out
 */

/**
 * Multiplies two quat's
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a the first operand
 * @param {ReadonlyQuat} b the second operand
 * @returns {quat} out
 */

/**
 * Multiplies two vec2's
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {vec2} out
 */

/**
 * Multiplies two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {vec3} out
 */

/**
 * Multiplies two vec4's
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @returns {vec4} out
 */

/**
 * Multiply each element of the matrix by a scalar.
 *
 * @param {mat2d} out the receiving matrix
 * @param {ReadonlyMat2d} a the matrix to scale
 * @param {Number} b amount to scale the matrix's elements by
 * @returns {mat2d} out
 */

/**
 * Multiply each element of the matrix by a scalar.
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the matrix to scale
 * @param {Number} b amount to scale the matrix's elements by
 * @returns {mat2} out
 */

/**
 * Multiply each element of the matrix by a scalar.
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the matrix to scale
 * @param {Number} b amount to scale the matrix's elements by
 * @returns {mat3} out
 */

/**
 * Multiply each element of the matrix by a scalar.
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the matrix to scale
 * @param {Number} b amount to scale the matrix's elements by
 * @returns {mat4} out
 */

/**
 * Mutate-mode.
 * Further plugins run on the hast tree.
 *
 * @type {import('unified').Plugin<[Options?]|void[], MdastRoot, HastRoot>}
 */

/**
 * Name of Background Shape
 */

/**
 * NameMap like a `Map` but accepts `string[]` as key.
 */

/**
 * Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
 * <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
 * @hidden
 */

/**
 * Negates the components of a vec2
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a vector to negate
 * @returns {vec2} out
 */

/**
 * Negates the components of a vec3
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a vector to negate
 * @returns {vec3} out
 */

/**
 * Negates the components of a vec4
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a vector to negate
 * @returns {vec4} out
 */

/**
 * No name because it must not be turned off.
 * @type {Construct}
 */

/**
 * Normal Block Grammar
 */

/**
 * Normal Inline Grammar
 */

/**
 * Normalize a URL (such as used in definitions).
 *
 * Encode unsafe characters with percent-encoding, skipping already encoded
 * sequences.
 *
 * @param {string} value
 * @returns {string}
 */

/**
 * Normalize a basic file path.
 *
 * @param {string} path
 *   File path.
 * @returns {string}
 *   File path.
 */

/**
 * Normalize a dual quat
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a dual quaternion to normalize
 * @returns {quat2} out
 * @function
 */

/**
 * Normalize a quat
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a quaternion to normalize
 * @returns {quat} out
 * @function
 */

/**
 * Normalize a vec2
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a vector to normalize
 * @returns {vec2} out
 */

/**
 * Normalize a vec3
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a vector to normalize
 * @returns {vec3} out
 */

/**
 * Normalize a vec4
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a vector to normalize
 * @returns {vec4} out
 */

/**
 * Normalize an identifier (such as used in definitions).
 *
 * @param {string} value
 * @returns {string}
 */

/**
 * Note this compiler only understand complete buffering, not streaming.
 *
 * @param {Options | null | undefined} [options]
 */

/**
 * Offset Left
 * getBoundingClientRect technique from
 * John Resig http://ejohn.org/blog/getboundingclientrect-is-awesome/
 *
 * @function findElPosition
 * @param {ReactNodeRef} el React Node ref from which to get offset
 * @return {Object}
 */

/**
 * One node or several nodes.
 *
 * @param {unknown} value
 *   Thing to serialize.
 * @param {boolean} includeImageAlt
 *   Include image `alt`s.
 * @returns {string}
 *   Serialized node.
 */

/**
 * Options
 */

/**
 * Order of setting (least specific to most), we need this because otherwise
 * `{stem: 'a', path: '~/b.js'}` would throw, as a path is needed before a
 * stem can be set.
 *
 * @type {Array<'basename' | 'dirname' | 'extname' | 'history' | 'path' | 'stem'>}
 */

/**
 * Pads `string` on the left side if it's shorter than `length`. Padding
 * characters are truncated if they exceed `length`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category String
 * @param {string} [string=''] The string to pad.
 * @param {number} [length=0] The padding length.
 * @param {string} [chars=' '] The string used as padding.
 * @returns {string} Returns the padded string.
 * @example
 *
 * _.padStart('abc', 6);
 * // => '   abc'
 *
 * _.padStart('abc', 6, '_-');
 * // => '_-_abc'
 *
 * _.padStart('abc', 3);
 * // => 'abc'
 */

/**
 * Pads `string` on the right side if it's shorter than `length`. Padding
 * characters are truncated if they exceed `length`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category String
 * @param {string} [string=''] The string to pad.
 * @param {number} [length=0] The padding length.
 * @param {string} [chars=' '] The string used as padding.
 * @returns {string} Returns the padded string.
 * @example
 *
 * _.padEnd('abc', 6);
 * // => 'abc   '
 *
 * _.padEnd('abc', 6, '_-');
 * // => 'abc_-_'
 *
 * _.padEnd('abc', 3);
 * // => 'abc'
 */

/**
 * Parse Inline
 * @param {string} src
 */

/**
 * Parse `checkedKeys` to { checkedKeys, halfCheckedKeys } style
 */

/**
 * Parse `columns` & `children` into `columns`.
 */

/**
 * Parse a single primitives.
 *
 * @param {Info} info
 * @param {string} name
 * @param {HPrimitiveValue} value
 * @returns {HPrimitiveValue}
 */

/**
 * Parse comma-separated tokens to an array.
 *
 * @param {string} value
 *   Comma-separated tokens.
 * @returns {Array<string>}
 *   List of tokens.
 */

/**
 * Parse space-separated tokens to an array of strings.
 *
 * @param {string} value
 *   Space-separated tokens.
 * @returns {Array<string>}
 *   List of tokens.
 */

/**
 * Parses inline style to object.
 *
 * @example
 * // returns { 'line-height': '42' }
 * StyleToObject('line-height: 42;');
 *
 * @param  {String}      style      - The inline style.
 * @param  {Function}    [iterator] - The iterator function.
 * @return {null|Object}
 */

/**
 * Parsing & Compiling
 */

/**
 * Patch positional info from `from` onto `to`.
 *
 * @param {State} state
 *   Info passed around about the current state.
 * @param {P5Node} from
 *   p5 node.
 * @param {Node} to
 *   hast node.
 * @returns {void}
 *   Nothing.
 */

/**
 * Pedantic Inline Grammar
 */

/**
 * Pedantic grammar (original John Gruber's loose markdown specification)
 */

/**
 * Perform a side effect for every emission on the source Observable, but return
 * an Observable that is identical to the source.
 *
 * <span class="informal">Intercepts each emission on the source and runs a
 * function, but returns an output which is identical to the source as long as errors don't occur.</span>
 *
 * <img src="./img/do.png" width="100%">
 *
 * Returns a mirrored Observable of the source Observable, but modified so that
 * the provided Observer is called to perform a side effect for every value,
 * error, and completion emitted by the source. Any errors that are thrown in
 * the aforementioned Observer or handlers are safely sent down the error path
 * of the output Observable.
 *
 * This operator is useful for debugging your Observables for the correct values
 * or performing other side effects.
 *
 * Note: this is different to a `subscribe` on the Observable. If the Observable
 * returned by `do` is not subscribed, the side effects specified by the
 * Observer will never happen. `do` therefore simply spies on existing
 * execution, it does not trigger an execution to happen like `subscribe` does.
 *
 * @example <caption>Map every click to the clientX position of that click, while also logging the click event</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var positions = clicks
 *   .do(ev => console.log(ev))
 *   .map(ev => ev.clientX);
 * positions.subscribe(x => console.log(x));
 *
 * @see {@link map}
 * @see {@link subscribe}
 *
 * @param {Observer|function} [nextOrObserver] A normal Observer object or a
 * callback for `next`.
 * @param {function} [error] Callback for errors in the source.
 * @param {function} [complete] Callback for the completion of the source.
 * @return {Observable} An Observable identical to the source, but runs the
 * specified Observer or callback(s) for each item.
 * @method do
 * @name do
 * @owner Observable
 */

/**
 * Perform a side effect for every emission on the source Observable, but return
 * an Observable that is identical to the source.
 *
 * <span class="informal">Intercepts each emission on the source and runs a
 * function, but returns an output which is identical to the source as long as errors don't occur.</span>
 *
 * <img src="./img/do.png" width="100%">
 *
 * Returns a mirrored Observable of the source Observable, but modified so that
 * the provided Observer is called to perform a side effect for every value,
 * error, and completion emitted by the source. Any errors that are thrown in
 * the aforementioned Observer or handlers are safely sent down the error path
 * of the output Observable.
 *
 * This operator is useful for debugging your Observables for the correct values
 * or performing other side effects.
 *
 * Note: this is different to a `subscribe` on the Observable. If the Observable
 * returned by `do` is not subscribed, the side effects specified by the
 * Observer will never happen. `do` therefore simply spies on existing
 * execution, it does not trigger an execution to happen like `subscribe` does.
 *
 * @example <caption>Map every click to the clientX position of that click, while also logging the click event</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var positions = clicks
 *   .do(ev => console.log(ev))
 *   .map(ev => ev.clientX);
 * positions.subscribe(x => console.log(x));
 *
 * @see {@link map}
 * @see {@link subscribe}
 *
 * @param {Observer|function} [nextOrObserver] A normal Observer object or a
 * callback for `next`.
 * @param {function} [error] Callback for errors in the source.
 * @param {function} [complete] Callback for the completion of the source.
 * @return {Observable} An Observable identical to the source, but runs the
 * specified Observer or callback(s) for each item.
 * @name tap
 */

/**
 * Perform some operation over an array of vec2s.
 *
 * @param {Array} a the array of vectors to iterate over
 * @param {Number} stride Number of elements between the start of each vec2. If 0 assumes tightly packed
 * @param {Number} offset Number of elements to skip at the beginning of the array
 * @param {Number} count Number of vec2s to iterate over. If 0 iterates over entire array
 * @param {Function} fn Function to call for each vector in the array
 * @param {Object} [arg] additional argument to pass to fn
 * @returns {Array} a
 * @function
 */

/**
 * Perform some operation over an array of vec3s.
 *
 * @param {Array} a the array of vectors to iterate over
 * @param {Number} stride Number of elements between the start of each vec3. If 0 assumes tightly packed
 * @param {Number} offset Number of elements to skip at the beginning of the array
 * @param {Number} count Number of vec3s to iterate over. If 0 iterates over entire array
 * @param {Function} fn Function to call for each vector in the array
 * @param {Object} [arg] additional argument to pass to fn
 * @returns {Array} a
 * @function
 */

/**
 * Perform some operation over an array of vec4s.
 *
 * @param {Array} a the array of vectors to iterate over
 * @param {Number} stride Number of elements between the start of each vec4. If 0 assumes tightly packed
 * @param {Number} offset Number of elements to skip at the beginning of the array
 * @param {Number} count Number of vec4s to iterate over. If 0 iterates over entire array
 * @param {Function} fn Function to call for each vector in the array
 * @param {Object} [arg] additional argument to pass to fn
 * @returns {Array} a
 * @function
 */

/**
 * Performs a
 * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
 * comparison between two values to determine if they are equivalent.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.eq(object, object);
 * // => true
 *
 * _.eq(object, other);
 * // => false
 *
 * _.eq('a', 'a');
 * // => true
 *
 * _.eq('a', Object('a'));
 * // => false
 *
 * _.eq(NaN, NaN);
 * // => true
 */

/**
 * Performs a bezier interpolation with two control points
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @param {ReadonlyVec3} c the third operand
 * @param {ReadonlyVec3} d the fourth operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {vec3} out
 */

/**
 * Performs a deep comparison between two values to determine if they are
 * equivalent.
 *
 * **Note:** This method supports comparing arrays, array buffers, booleans,
 * date objects, error objects, maps, numbers, `Object` objects, regexes,
 * sets, strings, symbols, and typed arrays. `Object` objects are compared
 * by their own, not inherited, enumerable properties. Functions and DOM
 * nodes are compared by strict equality, i.e. `===`.
 *
 * @static
 * @memberOf _
 * @since 0.1.0
 * @category Lang
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 * @example
 *
 * var object = { 'a': 1 };
 * var other = { 'a': 1 };
 *
 * _.isEqual(object, other);
 * // => true
 *
 * object === other;
 * // => false
 */

/**
 * Performs a hermite interpolation with two control points
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @param {ReadonlyVec3} c the third operand
 * @param {ReadonlyVec3} d the fourth operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {vec3} out
 */

/**
 * Performs a linear interpolation between two dual quats's
 * NOTE: The resulting dual quaternions won't always be normalized (The error is most noticeable when t = 0.5)
 *
 * @param {quat2} out the receiving dual quat
 * @param {ReadonlyQuat2} a the first operand
 * @param {ReadonlyQuat2} b the second operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {quat2} out
 */

/**
 * Performs a linear interpolation between two quat's
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a the first operand
 * @param {ReadonlyQuat} b the second operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {quat} out
 * @function
 */

/**
 * Performs a linear interpolation between two vec2's
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {vec2} out
 */

/**
 * Performs a linear interpolation between two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {vec3} out
 */

/**
 * Performs a linear interpolation between two vec4's
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {vec4} out
 */

/**
 * Performs a partial deep comparison between `object` and `source` to
 * determine if `object` contains equivalent property values.
 *
 * **Note:** This method is equivalent to `_.matches` when `source` is
 * partially applied.
 *
 * Partial comparisons will match empty array and empty object `source`
 * values against any array or object value, respectively. See `_.isEqual`
 * for a list of supported value comparisons.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Lang
 * @param {Object} object The object to inspect.
 * @param {Object} source The object of property values to match.
 * @returns {boolean} Returns `true` if `object` is a match, else `false`.
 * @example
 *
 * var object = { 'a': 1, 'b': 2 };
 *
 * _.isMatch(object, { 'b': 2 });
 * // => true
 *
 * _.isMatch(object, { 'b': 1 });
 * // => false
 */

/**
 * Performs a spherical linear interpolation between two quat
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a the first operand
 * @param {ReadonlyQuat} b the second operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {quat} out
 */

/**
 * Performs a spherical linear interpolation with two control points
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyQuat} a the first operand
 * @param {ReadonlyQuat} b the second operand
 * @param {ReadonlyQuat} c the third operand
 * @param {ReadonlyQuat} d the fourth operand
 * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
 * @returns {quat} out
 */

/**
 * Permissive string parsing.  Take in a number of formats, and output an object
 * based on detected format.  Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`
 */

/**
 * Picker props from exist props with filter
 * @param props Passed props
 * @param ariaOnly boolean | { aria?: boolean; data?: boolean; attr?: boolean; } filter config
 */

/**
 * Plugin that turns markdown into HTML to support rehype.
 *
 * *   If a destination processor is given, that processor runs with a new HTML
 *     (hast) tree (bridge-mode).
 *     As the given processor runs with a hast tree, and rehype plugins support
 *     hast, that means rehype plugins can be used with the given processor.
 *     The hast tree is discarded in the end.
 *     It’s highly unlikely that you want to do this.
 * *   The common case is to not pass a destination processor, in which case the
 *     current processor continues running with a new HTML (hast) tree
 *     (mutate-mode).
 *     As the current processor continues with a hast tree, and rehype plugins
 *     support hast, that means rehype plugins can be used after
 *     `remark-rehype`.
 *     It’s likely that this is what you want to do.
 *
 * @param destination
 *   Optional unified processor.
 * @param options
 *   Options passed to `mdast-util-to-hast`.
 */

/**
 * Plugin to parse the tree again (and raw nodes).
 * Keeping positional info OK.  🙌
 *
 * @type {import('unified').Plugin<[Options?] | Array<void>, Root>}
 */

/**
 * Plugin to sanitize HTML.
 *
 * @type {import('unified').Plugin<[Options?] | Array<void>, Root, Root>}
 */

/**
 * Plugin to support GFM (autolink literals, footnotes, strikethrough, tables, tasklists).
 *
 * @type {import('unified').Plugin<[Options?]|void[], Root>}
 */

/**
 * Point 几何标记。
 * 常用于绘制点图。
 */

/**
 * Polygon 几何标记。
 * 常用于绘制色块图、日历图等。
 */

/**
 * Prints a warning in the console if it exists.
 *
 * @param {String} message The warning message.
 * @returns {void}
 */

/**
 * Produces a random number between the inclusive `lower` and `upper` bounds.
 * If only one argument is provided a number between `0` and the given number
 * is returned. If `floating` is `true`, or either `lower` or `upper` are
 * floats, a floating-point number is returned instead of an integer.
 *
 * **Note:** JavaScript follows the IEEE-754 standard for resolving
 * floating-point values which can produce unexpected results.
 *
 * @static
 * @memberOf _
 * @since 0.7.0
 * @category Number
 * @param {number} [lower=0] The lower bound.
 * @param {number} [upper=1] The upper bound.
 * @param {boolean} [floating] Specify returning a floating-point number.
 * @returns {number} Returns the random number.
 * @example
 *
 * _.random(0, 5);
 * // => an integer between 0 and 5
 *
 * _.random(5);
 * // => also an integer between 0 and 5
 *
 * _.random(5, true);
 * // => a floating-point number between 0 and 5
 *
 * _.random(1.2, 5.2);
 * // => a floating-point number between 1.2 and 5.2
 */

/**
 * Projects each source value to an Observable which is merged in the output
 * Observable only if the previous projected Observable has completed.
 *
 * <span class="informal">Maps each value to an Observable, then flattens all of
 * these inner Observables using {@link exhaust}.</span>
 *
 * <img src="./img/exhaustMap.png" width="100%">
 *
 * Returns an Observable that emits items based on applying a function that you
 * supply to each item emitted by the source Observable, where that function
 * returns an (so-called "inner") Observable. When it projects a source value to
 * an Observable, the output Observable begins emitting the items emitted by
 * that projected Observable. However, `exhaustMap` ignores every new projected
 * Observable if the previous projected Observable has not yet completed. Once
 * that one completes, it will accept and flatten the next projected Observable
 * and repeat this process.
 *
 * @example <caption>Run a finite timer for each click, only if there is no currently active timer</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.exhaustMap((ev) => Rx.Observable.interval(1000).take(5));
 * result.subscribe(x => console.log(x));
 *
 * @see {@link concatMap}
 * @see {@link exhaust}
 * @see {@link mergeMap}
 * @see {@link switchMap}
 *
 * @param {function(value: T, ?index: number): ObservableInput} project A function
 * that, when applied to an item emitted by the source Observable, returns an
 * Observable.
 * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]
 * A function to produce the value on the output Observable based on the values
 * and the indices of the source (outer) emission and the inner Observable
 * emission. The arguments passed to this function are:
 * - `outerValue`: the value that came from the source
 * - `innerValue`: the value that came from the projected Observable
 * - `outerIndex`: the "index" of the value that came from the source
 * - `innerIndex`: the "index" of the value from the projected Observable
 * @return {Observable} An Observable containing projected Observables
 * of each item of the source, ignoring projected Observables that start before
 * their preceding Observable has completed.
 * @method exhaustMap
 * @owner Observable
 */

/**
 * Projects each source value to an Observable which is merged in the output
 * Observable, emitting values only from the most recently projected Observable.
 *
 * <span class="informal">Maps each value to an Observable, then flattens all of
 * these inner Observables using {@link switch}.</span>
 *
 * <img src="./img/switchMap.png" width="100%">
 *
 * Returns an Observable that emits items based on applying a function that you
 * supply to each item emitted by the source Observable, where that function
 * returns an (so-called "inner") Observable. Each time it observes one of these
 * inner Observables, the output Observable begins emitting the items emitted by
 * that inner Observable. When a new inner Observable is emitted, `switchMap`
 * stops emitting items from the earlier-emitted inner Observable and begins
 * emitting items from the new one. It continues to behave like this for
 * subsequent inner Observables.
 *
 * @example <caption>Rerun an interval Observable on every click event</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.switchMap((ev) => Rx.Observable.interval(1000));
 * result.subscribe(x => console.log(x));
 *
 * @see {@link concatMap}
 * @see {@link exhaustMap}
 * @see {@link mergeMap}
 * @see {@link switch}
 * @see {@link switchMapTo}
 *
 * @param {function(value: T, ?index: number): ObservableInput} project A function
 * that, when applied to an item emitted by the source Observable, returns an
 * Observable.
 * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]
 * A function to produce the value on the output Observable based on the values
 * and the indices of the source (outer) emission and the inner Observable
 * emission. The arguments passed to this function are:
 * - `outerValue`: the value that came from the source
 * - `innerValue`: the value that came from the projected Observable
 * - `outerIndex`: the "index" of the value that came from the source
 * - `innerIndex`: the "index" of the value from the projected Observable
 * @return {Observable} An Observable that emits the result of applying the
 * projection function (and the optional `resultSelector`) to each item emitted
 * by the source Observable and taking only the values from the most recently
 * projected inner Observable.
 * @method switchMap
 * @owner Observable
 */

/**
 * Projects each source value to an Observable which is merged in the output
 * Observable, in a serialized fashion waiting for each one to complete before
 * merging the next.
 *
 * <span class="informal">Maps each value to an Observable, then flattens all of
 * these inner Observables using {@link concatAll}.</span>
 *
 * <img src="./img/concatMap.png" width="100%">
 *
 * Returns an Observable that emits items based on applying a function that you
 * supply to each item emitted by the source Observable, where that function
 * returns an (so-called "inner") Observable. Each new inner Observable is
 * concatenated with the previous inner Observable.
 *
 * __Warning:__ if source values arrive endlessly and faster than their
 * corresponding inner Observables can complete, it will result in memory issues
 * as inner Observables amass in an unbounded buffer waiting for their turn to
 * be subscribed to.
 *
 * Note: `concatMap` is equivalent to `mergeMap` with concurrency parameter set
 * to `1`.
 *
 * @example <caption>For each click event, tick every second from 0 to 3, with no concurrency</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.concatMap(ev => Rx.Observable.interval(1000).take(4));
 * result.subscribe(x => console.log(x));
 *
 * // Results in the following:
 * // (results are not concurrent)
 * // For every click on the "document" it will emit values 0 to 3 spaced
 * // on a 1000ms interval
 * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3
 *
 * @see {@link concat}
 * @see {@link concatAll}
 * @see {@link concatMapTo}
 * @see {@link exhaustMap}
 * @see {@link mergeMap}
 * @see {@link switchMap}
 *
 * @param {function(value: T, ?index: number): ObservableInput} project A function
 * that, when applied to an item emitted by the source Observable, returns an
 * Observable.
 * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]
 * A function to produce the value on the output Observable based on the values
 * and the indices of the source (outer) emission and the inner Observable
 * emission. The arguments passed to this function are:
 * - `outerValue`: the value that came from the source
 * - `innerValue`: the value that came from the projected Observable
 * - `outerIndex`: the "index" of the value that came from the source
 * - `innerIndex`: the "index" of the value from the projected Observable
 * @return {Observable} An Observable that emits the result of applying the
 * projection function (and the optional `resultSelector`) to each item emitted
 * by the source Observable and taking values from each projected inner
 * Observable sequentially.
 * @method concatMap
 * @owner Observable
 */

/**
 * Projects each source value to an Observable which is merged in the output
 * Observable.
 *
 * <span class="informal">Maps each value to an Observable, then flattens all of
 * these inner Observables using {@link mergeAll}.</span>
 *
 * <img src="./img/mergeMap.png" width="100%">
 *
 * Returns an Observable that emits items based on applying a function that you
 * supply to each item emitted by the source Observable, where that function
 * returns an Observable, and then merging those resulting Observables and
 * emitting the results of this merger.
 *
 * @example <caption>Map and flatten each letter to an Observable ticking every 1 second</caption>
 * var letters = Rx.Observable.of('a', 'b', 'c');
 * var result = letters.mergeMap(x =>
 *   Rx.Observable.interval(1000).map(i => x+i)
 * );
 * result.subscribe(x => console.log(x));
 *
 * // Results in the following:
 * // a0
 * // b0
 * // c0
 * // a1
 * // b1
 * // c1
 * // continues to list a,b,c with respective ascending integers
 *
 * @see {@link concatMap}
 * @see {@link exhaustMap}
 * @see {@link merge}
 * @see {@link mergeAll}
 * @see {@link mergeMapTo}
 * @see {@link mergeScan}
 * @see {@link switchMap}
 *
 * @param {function(value: T, ?index: number): ObservableInput} project A function
 * that, when applied to an item emitted by the source Observable, returns an
 * Observable.
 * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]
 * A function to produce the value on the output Observable based on the values
 * and the indices of the source (outer) emission and the inner Observable
 * emission. The arguments passed to this function are:
 * - `outerValue`: the value that came from the source
 * - `innerValue`: the value that came from the projected Observable
 * - `outerIndex`: the "index" of the value that came from the source
 * - `innerIndex`: the "index" of the value from the projected Observable
 * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input
 * Observables being subscribed to concurrently.
 * @return {Observable} An Observable that emits the result of applying the
 * projection function (and the optional `resultSelector`) to each item emitted
 * by the source Observable and merging the results of the Observables obtained
 * from this transformation.
 * @method mergeMap
 * @owner Observable
 */

/**
 * Projects each source value to the same Observable which is flattened multiple
 * times with {@link switch} in the output Observable.
 *
 * <span class="informal">It's like {@link switchMap}, but maps each value
 * always to the same inner Observable.</span>
 *
 * <img src="./img/switchMapTo.png" width="100%">
 *
 * Maps each source value to the given Observable `innerObservable` regardless
 * of the source value, and then flattens those resulting Observables into one
 * single Observable, which is the output Observable. The output Observables
 * emits values only from the most recently emitted instance of
 * `innerObservable`.
 *
 * @example <caption>Rerun an interval Observable on every click event</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.switchMapTo(Rx.Observable.interval(1000));
 * result.subscribe(x => console.log(x));
 *
 * @see {@link concatMapTo}
 * @see {@link switch}
 * @see {@link switchMap}
 * @see {@link mergeMapTo}
 *
 * @param {ObservableInput} innerObservable An Observable to replace each value from
 * the source Observable.
 * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]
 * A function to produce the value on the output Observable based on the values
 * and the indices of the source (outer) emission and the inner Observable
 * emission. The arguments passed to this function are:
 * - `outerValue`: the value that came from the source
 * - `innerValue`: the value that came from the projected Observable
 * - `outerIndex`: the "index" of the value that came from the source
 * - `innerIndex`: the "index" of the value from the projected Observable
 * @return {Observable} An Observable that emits items from the given
 * `innerObservable` (and optionally transformed through `resultSelector`) every
 * time a value is emitted on the source Observable, and taking only the values
 * from the most recently projected inner Observable.
 * @method switchMapTo
 * @owner Observable
 */

/**
 * Projects each source value to the same Observable which is merged multiple
 * times in a serialized fashion on the output Observable.
 *
 * <span class="informal">It's like {@link concatMap}, but maps each value
 * always to the same inner Observable.</span>
 *
 * <img src="./img/concatMapTo.png" width="100%">
 *
 * Maps each source value to the given Observable `innerObservable` regardless
 * of the source value, and then flattens those resulting Observables into one
 * single Observable, which is the output Observable. Each new `innerObservable`
 * instance emitted on the output Observable is concatenated with the previous
 * `innerObservable` instance.
 *
 * __Warning:__ if source values arrive endlessly and faster than their
 * corresponding inner Observables can complete, it will result in memory issues
 * as inner Observables amass in an unbounded buffer waiting for their turn to
 * be subscribed to.
 *
 * Note: `concatMapTo` is equivalent to `mergeMapTo` with concurrency parameter
 * set to `1`.
 *
 * @example <caption>For each click event, tick every second from 0 to 3, with no concurrency</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.concatMapTo(Rx.Observable.interval(1000).take(4));
 * result.subscribe(x => console.log(x));
 *
 * // Results in the following:
 * // (results are not concurrent)
 * // For every click on the "document" it will emit values 0 to 3 spaced
 * // on a 1000ms interval
 * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3
 *
 * @see {@link concat}
 * @see {@link concatAll}
 * @see {@link concatMap}
 * @see {@link mergeMapTo}
 * @see {@link switchMapTo}
 *
 * @param {ObservableInput} innerObservable An Observable to replace each value from
 * the source Observable.
 * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]
 * A function to produce the value on the output Observable based on the values
 * and the indices of the source (outer) emission and the inner Observable
 * emission. The arguments passed to this function are:
 * - `outerValue`: the value that came from the source
 * - `innerValue`: the value that came from the projected Observable
 * - `outerIndex`: the "index" of the value that came from the source
 * - `innerIndex`: the "index" of the value from the projected Observable
 * @return {Observable} An observable of values merged together by joining the
 * passed observable with itself, one after the other, for each value emitted
 * from the source.
 * @method concatMapTo
 * @owner Observable
 */

/**
 * Projects each source value to the same Observable which is merged multiple
 * times in the output Observable.
 *
 * <span class="informal">It's like {@link mergeMap}, but maps each value always
 * to the same inner Observable.</span>
 *
 * <img src="./img/mergeMapTo.png" width="100%">
 *
 * Maps each source value to the given Observable `innerObservable` regardless
 * of the source value, and then merges those resulting Observables into one
 * single Observable, which is the output Observable.
 *
 * @example <caption>For each click event, start an interval Observable ticking every 1 second</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var result = clicks.mergeMapTo(Rx.Observable.interval(1000));
 * result.subscribe(x => console.log(x));
 *
 * @see {@link concatMapTo}
 * @see {@link merge}
 * @see {@link mergeAll}
 * @see {@link mergeMap}
 * @see {@link mergeScan}
 * @see {@link switchMapTo}
 *
 * @param {ObservableInput} innerObservable An Observable to replace each value from
 * the source Observable.
 * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]
 * A function to produce the value on the output Observable based on the values
 * and the indices of the source (outer) emission and the inner Observable
 * emission. The arguments passed to this function are:
 * - `outerValue`: the value that came from the source
 * - `innerValue`: the value that came from the projected Observable
 * - `outerIndex`: the "index" of the value that came from the source
 * - `innerIndex`: the "index" of the value from the projected Observable
 * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input
 * Observables being subscribed to concurrently.
 * @return {Observable} An Observable that emits items from the given
 * `innerObservable` (and optionally transformed through `resultSelector`) every
 * time a value is emitted on the source Observable.
 * @method mergeMapTo
 * @owner Observable
 */

/**
 * Public ResizeObserver instance which will be passed to the callback
 * function and used as a value of it's "this" binding.
 *
 * @private {ResizeObserver}
 */

/**
 * Quaternion
 * @module quat
 */

/**
 * React component to render markdown.
 *
 * @param {ReactMarkdownOptions} options
 * @returns {ReactElement}
 */

/**
 * Real Menu Item component
 */

/**
 * Recursively flattens `array`.
 *
 * @static
 * @memberOf _
 * @since 3.0.0
 * @category Array
 * @param {Array} array The array to flatten.
 * @returns {Array} Returns the new flattened array.
 * @example
 *
 * _.flattenDeep([1, [2, [3, [4]], 5]]);
 * // => [1, 2, 3, 4, 5]
 */

/**
 * Recursively projects each source value to an Observable which is merged in
 * the output Observable.
 *
 * <span class="informal">It's similar to {@link mergeMap}, but applies the
 * projection function to every source value as well as every output value.
 * It's recursive.</span>
 *
 * <img src="./img/expand.png" width="100%">
 *
 * Returns an Observable that emits items based on applying a function that you
 * supply to each item emitted by the source Observable, where that function
 * returns an Observable, and then merging those resulting Observables and
 * emitting the results of this merger. *Expand* will re-emit on the output
 * Observable every source value. Then, each output value is given to the
 * `project` function which returns an inner Observable to be merged on the
 * output Observable. Those output values resulting from the projection are also
 * given to the `project` function to produce new output values. This is how
 * *expand* behaves recursively.
 *
 * @example <caption>Start emitting the powers of two on every click, at most 10 of them</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var powersOfTwo = clicks
 *   .mapTo(1)
 *   .expand(x => Rx.Observable.of(2 * x).delay(1000))
 *   .take(10);
 * powersOfTwo.subscribe(x => console.log(x));
 *
 * @see {@link mergeMap}
 * @see {@link mergeScan}
 *
 * @param {function(value: T, index: number) => Observable} project A function
 * that, when applied to an item emitted by the source or the output Observable,
 * returns an Observable.
 * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input
 * Observables being subscribed to concurrently.
 * @param {Scheduler} [scheduler=null] The IScheduler to use for subscribing to
 * each projected inner Observable.
 * @return {Observable} An Observable that emits the source values and also
 * result of applying the projection function to each value emitted on the
 * output Observable and and merging the results of the Observables obtained
 * from this transformation.
 * @method expand
 * @owner Observable
 */

/**
 * Reference to the last observed content rectangle.
 *
 * @private {DOMRectInit}
 */

/**
 * Registry of the ResizeObservation instances.
 *
 * @private {Map<Element, ResizeObservation>}
 */

/**
 * Remove all listeners, or those of the specified event.
 *
 * @param {(String|Symbol)} [event] The event name.
 * @returns {EventEmitter} `this`.
 * @public
 */

/**
 * Remove initial and final spaces and tabs at the line breaks in `value`.
 * Does not trim initial and final spaces and tabs of the value itself.
 *
 * @param {string} value
 *   Value to trim.
 * @returns {string}
 *   Trimmed value.
 */

/**
 * Remove the listeners of a given event.
 *
 * @param {(String|Symbol)} event The event name.
 * @param {Function} fn Only remove the listeners that match this function.
 * @param {*} context Only remove the listeners that have this context.
 * @param {Boolean} once Only remove one-time listeners.
 * @returns {EventEmitter} `this`.
 * @public
 */

/**
 * Remove trailing 'c's. Equivalent to str.replace(/c*$/, '').
 * /c*$/ is vulnerable to REDOS.
 *
 * @param {string} str
 * @param {string} c
 * @param {boolean} invert Remove suffix of non-c chars instead. Default falsey.
 */

/**
 * Removed props:
 *  - childrenProps
 */

/**
 * Removed:
 *  - getCalendarContainer: use `getPopupContainer` instead
 *  - onOk
 *
 * New Feature:
 *  - picker
 *  - allowEmpty
 *  - selectable
 *
 * Tips: Should add faq about `datetime` mode with `defaultValue`
 */

/**
 * Removes DOM listeners.
 *
 * @private
 * @returns {void}
 */

/**
 * Removes `key` and its value from the hash.
 *
 * @private
 * @name delete
 * @memberOf Hash
 * @param {Object} hash The hash to modify.
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */

/**
 * Removes `key` and its value from the list cache.
 *
 * @private
 * @name delete
 * @memberOf ListCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */

/**
 * Removes `key` and its value from the map.
 *
 * @private
 * @name delete
 * @memberOf MapCache
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */

/**
 * Removes `key` and its value from the stack.
 *
 * @private
 * @name delete
 * @memberOf Stack
 * @param {string} key The key of the value to remove.
 * @returns {boolean} Returns `true` if the entry was removed, else `false`.
 */

/**
 * Removes a previously added event handler from a DOM node.
 * @param {Node} node The DOM node to remove the event handler from.
 * @param {string} event The event name.
 * @param {Function} fn The event handler to remove.
 * @param {boolean} opt_useCapture If the event handler was added with this
 *     flag set to true, it should be set to true here in order to remove it.
 */

/**
 * Removes all key-value entries from the hash.
 *
 * @private
 * @name clear
 * @memberOf Hash
 */

/**
 * Removes all key-value entries from the list cache.
 *
 * @private
 * @name clear
 * @memberOf ListCache
 */

/**
 * Removes all key-value entries from the map.
 *
 * @private
 * @name clear
 * @memberOf MapCache
 */

/**
 * Removes all key-value entries from the stack.
 *
 * @private
 * @name clear
 * @memberOf Stack
 */

/**
 * Removes observer from observers list.
 *
 * @param {ResizeObserverSPI} observer - Observer to be removed.
 * @returns {void}
 */

/**
 * Removes the instance from the global IntersectionObserver registry.
 * @private
 */

/**
 * Render icon if ExceptionStatus includes ,render svg image else render iconNode
 *
 * @param prefixCls
 * @param {status, icon}
 */

/**
 * Renderer
 */

/**
 * Reorder `array` according to the specified indexes where the element at
 * the first index is assigned as the first element, the element at
 * the second index is assigned as the second element, and so on.
 *
 * @private
 * @param {Array} array The array to reorder.
 * @param {Array} indexes The arranged array indexes.
 * @returns {Array} Returns `array`.
 */

/**
 * Replace a decimal with it's percentage value
 * @hidden
 */

/**
 * Replace with template.
 *   `I'm ${name}` + { name: 'bamboo' } = I'm bamboo
 */

/**
 * Replaces all `placeholder` elements in `array` with an internal placeholder
 * and returns an array of their indexes.
 *
 * @private
 * @param {Array} array The array to modify.
 * @param {*} placeholder The placeholder to replace.
 * @returns {Array} Returns the new array of placeholder indexes.
 */

/**
 * Representation of a single event listener.
 *
 * @param {Function} fn The listener function.
 * @param {*} context The context to invoke the listener with.
 * @param {Boolean} [once=false] Specify if the listener is a one-time listener.
 * @constructor
 * @private
 */

/**
 * Represents a push-based event or value that an {@link Observable} can emit.
 * This class is particularly useful for operators that manage notifications,
 * like {@link materialize}, {@link dematerialize}, {@link observeOn}, and
 * others. Besides wrapping the actual delivered value, it also annotates it
 * with metadata of, for instance, what type of push message it is (`next`,
 * `error`, or `complete`).
 *
 * @see {@link materialize}
 * @see {@link dematerialize}
 * @see {@link observeOn}
 *
 * @class Notification<T>
 */

/**
 * Represents a single media query, manages it's state and registered handlers for this query
 *
 * @constructor
 * @param {string} query the media query string
 * @param {boolean} [isUnconditional=false] whether the media query should run regardless of whether the conditions are met. Primarily for helping older browsers deal with mobile-first design
 */

/**
 * Represents all of the notifications from the source Observable as `next`
 * emissions marked with their original types within {@link Notification}
 * objects.
 *
 * <span class="informal">Wraps `next`, `error` and `complete` emissions in
 * {@link Notification} objects, emitted as `next` on the output Observable.
 * </span>
 *
 * <img src="./img/materialize.png" width="100%">
 *
 * `materialize` returns an Observable that emits a `next` notification for each
 * `next`, `error`, or `complete` emission of the source Observable. When the
 * source Observable emits `complete`, the output Observable will emit `next` as
 * a Notification of type "complete", and then it will emit `complete` as well.
 * When the source Observable emits `error`, the output will emit `next` as a
 * Notification of type "error", and then `complete`.
 *
 * This operator is useful for producing metadata of the source Observable, to
 * be consumed as `next` emissions. Use it in conjunction with
 * {@link dematerialize}.
 *
 * @example <caption>Convert a faulty Observable to an Observable of Notifications</caption>
 * var letters = Rx.Observable.of('a', 'b', 13, 'd');
 * var upperCase = letters.map(x => x.toUpperCase());
 * var materialized = upperCase.materialize();
 * materialized.subscribe(x => console.log(x));
 *
 * // Results in the following:
 * // - Notification {kind: "N", value: "A", error: undefined, hasValue: true}
 * // - Notification {kind: "N", value: "B", error: undefined, hasValue: true}
 * // - Notification {kind: "E", value: undefined, error: TypeError:
 * //   x.toUpperCase is not a function at MapSubscriber.letters.map.x
 * //   [as project] (http://1…, hasValue: false}
 *
 * @see {@link Notification}
 * @see {@link dematerialize}
 *
 * @return {Observable<Notification<T>>} An Observable that emits
 * {@link Notification} objects that wrap the original emissions from the source
 * Observable with metadata.
 * @method materialize
 * @owner Observable
 */

/**
 * Resets the cross-origin mode.
 */

/**
 * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
 * exposing only those methods and properties that are defined in the spec.
 */

/**
 * Resolve `.` and `..` elements in a path with directory names.
 *
 * @param {string} path
 *   File path.
 * @param {boolean} allowAboveRoot
 *   Whether `..` can move above root.
 * @returns {string}
 *   File path.
 */

/**
 * Return a human readable representation of a moment that can
 * also be evaluated to get a new moment which is the same
 *
 * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
 */

/**
 * Return a valid alpha value [0,1] with all invalid values being set to 1
 * @hidden
 */

/**
 * Return an array listing the events for which the emitter has registered
 * listeners.
 *
 * @returns {Array}
 * @public
 */

/**
 * Return cached Key Value map with DataNode.
 * Only re-calculate when `flattenOptions` changed.
 */

/**
 * Return if a node is a DOM node. Else will return by `findDOMNode`
 */

/**
 * Return selectedKeys according with multiple prop
 * @param selectedKeys
 * @param props
 * @returns [string]
 */

/**
 * Return the content of a reference without definition as plain text.
 *
 * @param {State} state
 *   Info passed around.
 * @param {References} node
 *   Reference node (image, link).
 * @returns {ElementContent | Array<ElementContent>}
 *   hast content.
 */

/**
 * Return the listeners registered for a given event.
 *
 * @param {(String|Symbol)} event The event name.
 * @returns {Array} The registered listeners.
 * @public
 */

/**
 * Return the number of listeners listening to a given event.
 *
 * @param {(String|Symbol)} event The event name.
 * @returns {Number} The number of listeners.
 * @public
 */

/**
 * Returns Frobenius norm of a mat2
 *
 * @param {ReadonlyMat2} a the matrix to calculate Frobenius norm of
 * @returns {Number} Frobenius norm
 */

/**
 * Returns Frobenius norm of a mat2d
 *
 * @param {ReadonlyMat2d} a the matrix to calculate Frobenius norm of
 * @returns {Number} Frobenius norm
 */

/**
 * Returns Frobenius norm of a mat3
 *
 * @param {ReadonlyMat3} a the matrix to calculate Frobenius norm of
 * @returns {Number} Frobenius norm
 */

/**
 * Returns Frobenius norm of a mat4
 *
 * @param {ReadonlyMat4} a the matrix to calculate Frobenius norm of
 * @returns {Number} Frobenius norm
 */

/**
 * Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix
 * @param {ReadonlyMat2} L the lower triangular matrix
 * @param {ReadonlyMat2} D the diagonal matrix
 * @param {ReadonlyMat2} U the upper triangular matrix
 * @param {ReadonlyMat2} a the input matrix to factorize
 */

/**
 * Returns a ConnectableObservable, which is a variety of Observable that waits until its connect method is called
 * before it begins emitting items to those Observers that have subscribed to it.
 *
 * <img src="./img/publish.png" width="100%">
 *
 * @param {Function} [selector] - Optional selector function which can use the multicasted source sequence as many times
 * as needed, without causing multiple subscriptions to the source sequence.
 * Subscribers to the given source will receive all notifications of the source from the time of the subscription on.
 * @return A ConnectableObservable that upon connection causes the source Observable to emit items to its Observers.
 * @method publish
 * @owner Observable
 */

/**
 * Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one
 * Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will
 * unsubscribe from the source Observable. Because the Observable is multicasting it makes the stream `hot`.
 *
 * This behaves similarly to .publish().refCount(), with a behavior difference when the source observable emits complete.
 * .publish().refCount() will not resubscribe to the original source, however .share() will resubscribe to the original source.
 * Observable.of("test").publish().refCount() will not re-emit "test" on new subscriptions, Observable.of("test").share() will
 * re-emit "test" to new subscriptions.
 *
 * <img src="./img/share.png" width="100%">
 *
 * @return {Observable<T>} An Observable that upon connection causes the source Observable to emit items to its Observers.
 * @method share
 * @owner Observable
 */

/**
 * Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one
 * Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will
 * unsubscribe from the source Observable. Because the Observable is multicasting it makes the stream `hot`.
 * This is an alias for .multicast(() => new Subject()).refCount().
 *
 * <img src="./img/share.png" width="100%">
 *
 * @return {Observable<T>} An Observable that upon connection causes the source Observable to emit items to its Observers.
 * @method share
 * @owner Observable
 */

/**
 * Returns a quaternion representing the rotational component
 *  of a transformation matrix. If a matrix is built with
 *  fromRotationTranslation, the returned quaternion will be the
 *  same as the quaternion originally supplied.
 * @param {quat} out Quaternion to receive the rotation component
 * @param {ReadonlyMat4} mat Matrix to be decomposed (input)
 * @return {quat} out
 */

/**
 * Returns a string representation of a dual quatenion
 *
 * @param {ReadonlyQuat2} a dual quaternion to represent as a string
 * @returns {String} string representation of the dual quat
 */

/**
 * Returns a string representation of a mat2
 *
 * @param {ReadonlyMat2} a matrix to represent as a string
 * @returns {String} string representation of the matrix
 */

/**
 * Returns a string representation of a mat2d
 *
 * @param {ReadonlyMat2d} a matrix to represent as a string
 * @returns {String} string representation of the matrix
 */

/**
 * Returns a string representation of a mat3
 *
 * @param {ReadonlyMat3} a matrix to represent as a string
 * @returns {String} string representation of the matrix
 */

/**
 * Returns a string representation of a mat4
 *
 * @param {ReadonlyMat4} a matrix to represent as a string
 * @returns {String} string representation of the matrix
 */

/**
 * Returns a string representation of a quatenion
 *
 * @param {ReadonlyQuat} a vector to represent as a string
 * @returns {String} string representation of the vector
 */

/**
 * Returns a string representation of a vector
 *
 * @param {ReadonlyVec2} a vector to represent as a string
 * @returns {String} string representation of the vector
 */

/**
 * Returns a string representation of a vector
 *
 * @param {ReadonlyVec3} a vector to represent as a string
 * @returns {String} string representation of the vector
 */

/**
 * Returns a string representation of a vector
 *
 * @param {ReadonlyVec4} a vector to represent as a string
 * @returns {String} string representation of the vector
 */

/**
 * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from previous items.
 *
 * If a keySelector function is provided, then it will project each value from the source observable into a new value that it will
 * check for equality with previously projected values. If a keySelector function is not provided, it will use each value from the
 * source observable directly with an equality check against previous values.
 *
 * In JavaScript runtimes that support `Set`, this operator will use a `Set` to improve performance of the distinct value checking.
 *
 * In other runtimes, this operator will use a minimal implementation of `Set` that relies on an `Array` and `indexOf` under the
 * hood, so performance will degrade as more values are checked for distinction. Even in newer browsers, a long-running `distinct`
 * use might result in memory leaks. To help alleviate this in some scenarios, an optional `flushes` parameter is also provided so
 * that the internal `Set` can be "flushed", basically clearing it of values.
 *
 * @example <caption>A simple example with numbers</caption>
 * Observable.of(1, 1, 2, 2, 2, 1, 2, 3, 4, 3, 2, 1)
 *   .distinct()
 *   .subscribe(x => console.log(x)); // 1, 2, 3, 4
 *
 * @example <caption>An example using a keySelector function</caption>
 * interface Person {
 *    age: number,
 *    name: string
 * }
 *
 * Observable.of<Person>(
 *     { age: 4, name: 'Foo'},
 *     { age: 7, name: 'Bar'},
 *     { age: 5, name: 'Foo'})
 *     .distinct((p: Person) => p.name)
 *     .subscribe(x => console.log(x));
 *
 * // displays:
 * // { age: 4, name: 'Foo' }
 * // { age: 7, name: 'Bar' }
 *
 * @see {@link distinctUntilChanged}
 * @see {@link distinctUntilKeyChanged}
 *
 * @param {function} [keySelector] Optional function to select which value you want to check as distinct.
 * @param {Observable} [flushes] Optional Observable for flushing the internal HashSet of the operator.
 * @return {Observable} An Observable that emits items from the source Observable with distinct values.
 * @method distinct
 * @owner Observable
 */

/**
 * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from the previous item,
 * using a property accessed by using the key provided to check if the two items are distinct.
 *
 * If a comparator function is provided, then it will be called for each item to test for whether or not that value should be emitted.
 *
 * If a comparator function is not provided, an equality check is used by default.
 *
 * @example <caption>An example comparing the name of persons</caption>
 *
 *  interface Person {
 *     age: number,
 *     name: string
 *  }
 *
 * Observable.of<Person>(
 *     { age: 4, name: 'Foo'},
 *     { age: 7, name: 'Bar'},
 *     { age: 5, name: 'Foo'},
 *     { age: 6, name: 'Foo'})
 *     .distinctUntilKeyChanged('name')
 *     .subscribe(x => console.log(x));
 *
 * // displays:
 * // { age: 4, name: 'Foo' }
 * // { age: 7, name: 'Bar' }
 * // { age: 5, name: 'Foo' }
 *
 * @example <caption>An example comparing the first letters of the name</caption>
 *
 * interface Person {
 *     age: number,
 *     name: string
 *  }
 *
 * Observable.of<Person>(
 *     { age: 4, name: 'Foo1'},
 *     { age: 7, name: 'Bar'},
 *     { age: 5, name: 'Foo2'},
 *     { age: 6, name: 'Foo3'})
 *     .distinctUntilKeyChanged('name', (x: string, y: string) => x.substring(0, 3) === y.substring(0, 3))
 *     .subscribe(x => console.log(x));
 *
 * // displays:
 * // { age: 4, name: 'Foo1' }
 * // { age: 7, name: 'Bar' }
 * // { age: 5, name: 'Foo2' }
 *
 * @see {@link distinct}
 * @see {@link distinctUntilChanged}
 *
 * @param {string} key String key for object property lookup on each item.
 * @param {function} [compare] Optional comparison function called to test if an item is distinct from the previous item in the source.
 * @return {Observable} An Observable that emits items from the source Observable with distinct values based on the key specified.
 * @method distinctUntilKeyChanged
 * @owner Observable
 */

/**
 * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from the previous item.
 *
 * If a comparator function is provided, then it will be called for each item to test for whether or not that value should be emitted.
 *
 * If a comparator function is not provided, an equality check is used by default.
 *
 * @example <caption>A simple example with numbers</caption>
 * Observable.of(1, 1, 2, 2, 2, 1, 1, 2, 3, 3, 4)
 *   .distinctUntilChanged()
 *   .subscribe(x => console.log(x)); // 1, 2, 1, 2, 3, 4
 *
 * @example <caption>An example using a compare function</caption>
 * interface Person {
 *    age: number,
 *    name: string
 * }
 *
 * Observable.of<Person>(
 *     { age: 4, name: 'Foo'},
 *     { age: 7, name: 'Bar'},
 *     { age: 5, name: 'Foo'})
 *     { age: 6, name: 'Foo'})
 *     .distinctUntilChanged((p: Person, q: Person) => p.name === q.name)
 *     .subscribe(x => console.log(x));
 *
 * // displays:
 * // { age: 4, name: 'Foo' }
 * // { age: 7, name: 'Bar' }
 * // { age: 5, name: 'Foo' }
 *
 * @see {@link distinct}
 * @see {@link distinctUntilKeyChanged}
 *
 * @param {function} [compare] Optional comparison function called to test if an item is distinct from the previous item in the source.
 * @return {Observable} An Observable that emits items from the source Observable with distinct values.
 * @method distinctUntilChanged
 * @owner Observable
 */

/**
 * Returns an Observable that emits only the last item emitted by the source Observable.
 * It optionally takes a predicate function as a parameter, in which case, rather than emitting
 * the last item from the source Observable, the resulting Observable will emit the last item
 * from the source Observable that satisfies the predicate.
 *
 * <img src="./img/last.png" width="100%">
 *
 * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`
 * callback if the Observable completes before any `next` notification was sent.
 * @param {function} predicate - The condition any source emitted item has to satisfy.
 * @return {Observable} An Observable that emits only the last item satisfying the given condition
 * from the source, or an NoSuchElementException if no such items are emitted.
 * @throws - Throws if no items that match the predicate are emitted by the source Observable.
 * @method last
 * @owner Observable
 */

/**
 * Returns an Observable that emits the items you specify as arguments before it begins to emit
 * items emitted by the source Observable.
 *
 * <img src="./img/startWith.png" width="100%">
 *
 * @param {...T} values - Items you want the modified Observable to emit first.
 * @param {Scheduler} [scheduler] - A {@link IScheduler} to use for scheduling
 * the emissions of the `next` notifications.
 * @return {Observable} An Observable that emits the items in the specified Iterable and then emits the items
 * emitted by the source Observable.
 * @method startWith
 * @owner Observable
 */

/**
 * Returns an Observable that emits the results of invoking a specified selector on items
 * emitted by a ConnectableObservable that shares a single subscription to the underlying stream.
 *
 * <img src="./img/multicast.png" width="100%">
 *
 * @param {Function|Subject} subjectOrSubjectFactory - Factory function to create an intermediate subject through
 * which the source sequence's elements will be multicast to the selector function
 * or Subject to push source elements into.
 * @param {Function} [selector] - Optional selector function that can use the multicasted source stream
 * as many times as needed, without causing multiple subscriptions to the source stream.
 * Subscribers to the given source will receive all notifications of the source from the
 * time of the subscription forward.
 * @return {Observable} An Observable that emits the results of invoking the selector
 * on the items emitted by a `ConnectableObservable` that shares a single subscription to
 * the underlying stream.
 * @method multicast
 * @owner Observable
 */

/**
 * Returns an Observable that emits the single item emitted by the source Observable that matches a specified
 * predicate, if that Observable emits one such item. If the source Observable emits more than one such item or no
 * such items, notify of an IllegalArgumentException or NoSuchElementException respectively.
 *
 * <img src="./img/single.png" width="100%">
 *
 * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`
 * callback if the Observable completes before any `next` notification was sent.
 * @param {Function} predicate - A predicate function to evaluate items emitted by the source Observable.
 * @return {Observable<T>} An Observable that emits the single item emitted by the source Observable that matches
 * the predicate.
 .
 * @method single
 * @owner Observable
 */

/**
 * Returns an Observable that emits whether or not every item of the source satisfies the condition specified.
 *
 * @example <caption>A simple example emitting true if all elements are less than 5, false otherwise</caption>
 *  Observable.of(1, 2, 3, 4, 5, 6)
 *     .every(x => x < 5)
 *     .subscribe(x => console.log(x)); // -> false
 *
 * @param {function} predicate A function for determining if an item meets a specified condition.
 * @param {any} [thisArg] Optional object to use for `this` in the callback.
 * @return {Observable} An Observable of booleans that determines if all items of the source Observable meet the condition specified.
 * @method every
 * @owner Observable
 */

/**
 * Returns an Observable that mirrors the first source Observable to emit an item
 * from the combination of this Observable and supplied Observables.
 * @param {...Observables} ...observables Sources used to race for which Observable emits first.
 * @return {Observable} An Observable that mirrors the output of the first Observable to emit an item.
 * @method race
 * @owner Observable
 */

/**
 * Returns an Observable that mirrors the source Observable with the exception of a `complete`. If the source
 * Observable calls `complete`, this method will emit to the Observable returned from `notifier`. If that Observable
 * calls `complete` or `error`, then this method will call `complete` or `error` on the child subscription. Otherwise
 * this method will resubscribe to the source Observable.
 *
 * <img src="./img/repeatWhen.png" width="100%">
 *
 * @param {function(notifications: Observable): Observable} notifier - Receives an Observable of notifications with
 * which a user can `complete` or `error`, aborting the repetition.
 * @return {Observable} The source Observable modified with repeat logic.
 * @method repeatWhen
 * @owner Observable
 */

/**
 * Returns an Observable that mirrors the source Observable with the exception of an `error`. If the source Observable
 * calls `error`, this method will emit the Throwable that caused the error to the Observable returned from `notifier`.
 * If that Observable calls `complete` or `error` then this method will call `complete` or `error` on the child
 * subscription. Otherwise this method will resubscribe to the source Observable.
 *
 * <img src="./img/retryWhen.png" width="100%">
 *
 * @param {function(errors: Observable): Observable} notifier - Receives an Observable of notifications with which a
 * user can `complete` or `error`, aborting the retry.
 * @return {Observable} The source Observable modified with retry logic.
 * @method retryWhen
 * @owner Observable
 */

/**
 * Returns an Observable that mirrors the source Observable with the exception of an `error`. If the source Observable
 * calls `error`, this method will resubscribe to the source Observable for a maximum of `count` resubscriptions (given
 * as a number parameter) rather than propagating the `error` call.
 *
 * <img src="./img/retry.png" width="100%">
 *
 * Any and all items emitted by the source Observable will be emitted by the resulting Observable, even those emitted
 * during failed subscriptions. For example, if an Observable fails at first but emits [1, 2] then succeeds the second
 * time and emits: [1, 2, 3, 4, 5] then the complete stream of emissions and notifications
 * would be: [1, 2, 1, 2, 3, 4, 5, `complete`].
 * @param {number} count - Number of retry attempts before failing.
 * @return {Observable} The source Observable modified with the retry logic.
 * @method retry
 * @owner Observable
 */

/**
 * Returns an Observable that mirrors the source Observable, but will call a specified function when
 * the source terminates on complete or error.
 * @param {function} callback Function to be called when source terminates.
 * @return {Observable} An Observable that mirrors the source, but will call the specified function on termination.
 * @method finally
 * @owner Observable
 */

/**
 * Returns an Observable that repeats the stream of items emitted by the source Observable at most count times.
 *
 * <img src="./img/repeat.png" width="100%">
 *
 * @param {number} [count] The number of times the source Observable items are repeated, a count of 0 will yield
 * an empty Observable.
 * @return {Observable} An Observable that repeats the stream of items emitted by the source Observable at most
 * count times.
 * @method repeat
 * @owner Observable
 */

/**
 * Returns an Observable that skips all items emitted by the source Observable as long as a specified condition holds
 * true, but emits all further source items as soon as the condition becomes false.
 *
 * <img src="./img/skipWhile.png" width="100%">
 *
 * @param {Function} predicate - A function to test each item emitted from the source Observable.
 * @return {Observable<T>} An Observable that begins emitting items emitted by the source Observable when the
 * specified predicate becomes false.
 * @method skipWhile
 * @owner Observable
 */

/**
 * Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item.
 *
 * <img src="./img/skipUntil.png" width="100%">
 *
 * @param {Observable} notifier - The second Observable that has to emit an item before the source Observable's elements begin to
 * be mirrored by the resulting Observable.
 * @return {Observable<T>} An Observable that skips items from the source Observable until the second Observable emits
 * an item, then emits the remaining items.
 * @method skipUntil
 * @owner Observable
 */

/**
 * Returns an Observable that skips the first `count` items emitted by the source Observable.
 *
 * <img src="./img/skip.png" width="100%">
 *
 * @param {Number} count - The number of times, items emitted by source Observable should be skipped.
 * @return {Observable} An Observable that skips values emitted by the source Observable.
 *
 * @method skip
 * @owner Observable
 */

/**
 * Returns an empty rect object. An empty rect is returned when an element
 * is not in the DOM.
 * @return {ClientRect} The empty rect.
 */

/**
 * Returns any queue entries that have not yet been reported to the
 * callback and clears the queue. This can be used in conjunction with the
 * callback to obtain the absolute most up-to-date intersection information.
 * @return {Array} The currently queued entries.
 */

/**
 * Returns instance of the ResizeObserverController.
 *
 * @returns {ResizeObserverController}
 */

/**
 * Returns only the data- and aria- key/value pairs
 */

/**
 * Returns the color represented as a Microsoft filter for use in old versions of IE.
 */

/**
 * Returns the cross-product of three vectors in a 4-dimensional space
 *
 * @param {ReadonlyVec4} result the receiving vector
 * @param {ReadonlyVec4} U the first vector
 * @param {ReadonlyVec4} V the second vector
 * @param {ReadonlyVec4} W the third vector
 * @returns {vec4} result
 */

/**
 * Returns the embedding frame element, if any.
 * @param {!Document} doc
 * @return {!Element}
 */

/**
 * Returns the global object associated with provided element.
 *
 * @param {Object} target
 * @returns {Object}
 */

/**
 * Returns the intersection between two rect objects.
 * @param {Object} rect1 The first rect.
 * @param {Object} rect2 The second rect.
 * @return {?Object|?ClientRect} The intersection rect or undefined if no
 *     intersection is found.
 */

/**
 * Returns the inverse of the components of a vec2
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a vector to invert
 * @returns {vec2} out
 */

/**
 * Returns the inverse of the components of a vec3
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a vector to invert
 * @returns {vec3} out
 */

/**
 * Returns the inverse of the components of a vec4
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a vector to invert
 * @returns {vec4} out
 */

/**
 * Returns the maximum of two vec2's
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {vec2} out
 */

/**
 * Returns the maximum of two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {vec3} out
 */

/**
 * Returns the maximum of two vec4's
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @returns {vec4} out
 */

/**
 * Returns the minimum of two vec2's
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {vec2} out
 */

/**
 * Returns the minimum of two vec3's
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {vec3} out
 */

/**
 * Returns the minimum of two vec4's
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @returns {vec4} out
 */

/**
 * Returns the root rect after being expanded by the rootMargin value.
 * @return {ClientRect} The expanded root rect.
 * @private
 */

/**
 * Returns the scaling factor component of a transformation
 *  matrix. If a matrix is built with fromRotationTranslationScale
 *  with a normalized Quaternion paramter, the returned vector will be
 *  the same as the scaling vector
 *  originally supplied.
 * @param  {vec3} out Vector to receive scaling factor component
 * @param  {ReadonlyMat4} mat Matrix to be decomposed (input)
 * @return {vec3} out
 */

/**
 * Returns the translation vector component of a transformation
 *  matrix. If a matrix is built with fromRotationTranslation,
 *  the returned vector will be the same as the translation vector
 *  originally supplied.
 * @param  {vec3} out Vector to receive translation component
 * @param  {ReadonlyMat4} mat Matrix to be decomposed (input)
 * @return {vec3} out
 */

/**
 * Returns true if `node` is a Document.
 * @param {!Node} node
 * @returns {boolean}
 */

/**
 * Returns whether or not the dual quaternions have approximately the same elements in the same position.
 *
 * @param {ReadonlyQuat2} a the first dual quat.
 * @param {ReadonlyQuat2} b the second dual quat.
 * @returns {Boolean} true if the dual quats are equal, false otherwise.
 */

/**
 * Returns whether or not the dual quaternions have exactly the same elements in the same position (when compared with ===)
 *
 * @param {ReadonlyQuat2} a the first dual quaternion.
 * @param {ReadonlyQuat2} b the second dual quaternion.
 * @returns {Boolean} true if the dual quaternions are equal, false otherwise.
 */

/**
 * Returns whether or not the matrices have approximately the same elements in the same position.
 *
 * @param {ReadonlyMat2d} a The first matrix.
 * @param {ReadonlyMat2d} b The second matrix.
 * @returns {Boolean} True if the matrices are equal, false otherwise.
 */

/**
 * Returns whether or not the matrices have approximately the same elements in the same position.
 *
 * @param {ReadonlyMat2} a The first matrix.
 * @param {ReadonlyMat2} b The second matrix.
 * @returns {Boolean} True if the matrices are equal, false otherwise.
 */

/**
 * Returns whether or not the matrices have approximately the same elements in the same position.
 *
 * @param {ReadonlyMat3} a The first matrix.
 * @param {ReadonlyMat3} b The second matrix.
 * @returns {Boolean} True if the matrices are equal, false otherwise.
 */

/**
 * Returns whether or not the matrices have approximately the same elements in the same position.
 *
 * @param {ReadonlyMat4} a The first matrix.
 * @param {ReadonlyMat4} b The second matrix.
 * @returns {Boolean} True if the matrices are equal, false otherwise.
 */

/**
 * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)
 *
 * @param {ReadonlyMat2d} a The first matrix.
 * @param {ReadonlyMat2d} b The second matrix.
 * @returns {Boolean} True if the matrices are equal, false otherwise.
 */

/**
 * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)
 *
 * @param {ReadonlyMat2} a The first matrix.
 * @param {ReadonlyMat2} b The second matrix.
 * @returns {Boolean} True if the matrices are equal, false otherwise.
 */

/**
 * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)
 *
 * @param {ReadonlyMat3} a The first matrix.
 * @param {ReadonlyMat3} b The second matrix.
 * @returns {Boolean} True if the matrices are equal, false otherwise.
 */

/**
 * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===)
 *
 * @param {ReadonlyMat4} a The first matrix.
 * @param {ReadonlyMat4} b The second matrix.
 * @returns {Boolean} True if the matrices are equal, false otherwise.
 */

/**
 * Returns whether or not the quaternions have approximately the same elements in the same position.
 *
 * @param {ReadonlyQuat} a The first vector.
 * @param {ReadonlyQuat} b The second vector.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */

/**
 * Returns whether or not the quaternions have exactly the same elements in the same position (when compared with ===)
 *
 * @param {ReadonlyQuat} a The first quaternion.
 * @param {ReadonlyQuat} b The second quaternion.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */

/**
 * Returns whether or not the root element is an element and is in the DOM.
 * @return {boolean} True if the root element is an element and is in the DOM.
 * @private
 */

/**
 * Returns whether or not the target element is a child of root.
 * @param {Element} target The target element to check.
 * @return {boolean} True if the target element is a child of root.
 * @private
 */

/**
 * Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===)
 *
 * @param {ReadonlyVec2} a The first vector.
 * @param {ReadonlyVec2} b The second vector.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */

/**
 * Returns whether or not the vectors have approximately the same elements in the same position.
 *
 * @param {ReadonlyVec2} a The first vector.
 * @param {ReadonlyVec2} b The second vector.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */

/**
 * Returns whether or not the vectors have approximately the same elements in the same position.
 *
 * @param {ReadonlyVec3} a The first vector.
 * @param {ReadonlyVec3} b The second vector.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */

/**
 * Returns whether or not the vectors have approximately the same elements in the same position.
 *
 * @param {ReadonlyVec4} a The first vector.
 * @param {ReadonlyVec4} b The second vector.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */

/**
 * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===)
 *
 * @param {ReadonlyVec3} a The first vector.
 * @param {ReadonlyVec3} b The second vector.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */

/**
 * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===)
 *
 * @param {ReadonlyVec4} a The first vector.
 * @param {ReadonlyVec4} b The second vector.
 * @returns {Boolean} True if the vectors are equal, false otherwise.
 */

/**
 * Rotate a 2D vector
 * @param {vec2} out The receiving vec2
 * @param {ReadonlyVec2} a The vec2 point to rotate
 * @param {ReadonlyVec2} b The origin of the rotation
 * @param {Number} rad The angle of rotation in radians
 * @returns {vec2} out
 */

/**
 * Rotate a 3D vector around the x-axis
 * @param {vec3} out The receiving vec3
 * @param {ReadonlyVec3} a The vec3 point to rotate
 * @param {ReadonlyVec3} b The origin of the rotation
 * @param {Number} rad The angle of rotation in radians
 * @returns {vec3} out
 */

/**
 * Rotate a 3D vector around the y-axis
 * @param {vec3} out The receiving vec3
 * @param {ReadonlyVec3} a The vec3 point to rotate
 * @param {ReadonlyVec3} b The origin of the rotation
 * @param {Number} rad The angle of rotation in radians
 * @returns {vec3} out
 */

/**
 * Rotate a 3D vector around the z-axis
 * @param {vec3} out The receiving vec3
 * @param {ReadonlyVec3} a The vec3 point to rotate
 * @param {ReadonlyVec3} b The origin of the rotation
 * @param {Number} rad The angle of rotation in radians
 * @returns {vec3} out
 */

/**
 * Rotates a dual quat around a given axis. Does the normalisation automatically
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a the dual quaternion to rotate
 * @param {ReadonlyVec3} axis the axis to rotate around
 * @param {Number} rad how far the rotation should be
 * @returns {quat2} out
 */

/**
 * Rotates a dual quat around the X axis
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a the dual quaternion to rotate
 * @param {number} rad how far should the rotation be
 * @returns {quat2} out
 */

/**
 * Rotates a dual quat around the Y axis
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a the dual quaternion to rotate
 * @param {number} rad how far should the rotation be
 * @returns {quat2} out
 */

/**
 * Rotates a dual quat around the Z axis
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a the dual quaternion to rotate
 * @param {number} rad how far should the rotation be
 * @returns {quat2} out
 */

/**
 * Rotates a dual quat by a given quaternion (a * q)
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a the dual quaternion to rotate
 * @param {ReadonlyQuat} q quaternion to rotate by
 * @returns {quat2} out
 */

/**
 * Rotates a dual quat by a given quaternion (q * a)
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat} q quaternion to rotate by
 * @param {ReadonlyQuat2} a the dual quaternion to rotate
 * @returns {quat2} out
 */

/**
 * Rotates a mat2 by the given angle
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the matrix to rotate
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat2} out
 */

/**
 * Rotates a mat2d by the given angle
 *
 * @param {mat2d} out the receiving matrix
 * @param {ReadonlyMat2d} a the matrix to rotate
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat2d} out
 */

/**
 * Rotates a mat3 by the given angle
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the matrix to rotate
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat3} out
 */

/**
 * Rotates a mat4 by the given angle around the given axis
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the matrix to rotate
 * @param {Number} rad the angle to rotate the matrix by
 * @param {ReadonlyVec3} axis the axis to rotate around
 * @returns {mat4} out
 */

/**
 * Rotates a matrix by the given angle around the X axis
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the matrix to rotate
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat4} out
 */

/**
 * Rotates a matrix by the given angle around the Y axis
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the matrix to rotate
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat4} out
 */

/**
 * Rotates a matrix by the given angle around the Z axis
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the matrix to rotate
 * @param {Number} rad the angle to rotate the matrix by
 * @returns {mat4} out
 */

/**
 * Rotates a quaternion by the given angle about the X axis
 *
 * @param {quat} out quat receiving operation result
 * @param {ReadonlyQuat} a quat to rotate
 * @param {number} rad angle (in radians) to rotate
 * @returns {quat} out
 */

/**
 * Rotates a quaternion by the given angle about the Y axis
 *
 * @param {quat} out quat receiving operation result
 * @param {ReadonlyQuat} a quat to rotate
 * @param {number} rad angle (in radians) to rotate
 * @returns {quat} out
 */

/**
 * Rotates a quaternion by the given angle about the Z axis
 *
 * @param {quat} out quat receiving operation result
 * @param {ReadonlyQuat} a quat to rotate
 * @param {number} rad angle (in radians) to rotate
 * @returns {quat} out
 */

/**
 * Run callback for every token
 */

/**
 * Same as React.useState but `setState` accept `ignoreDestroy` param to not to setState after destroyed.
 * We do not make this auto is to avoid real memory leak.
 * Developer should confirm it's safe to ignore themselves.
 */

/**
 * Sanitize `children`.
 *
 * @type {Handler}
 * @param {Array<Node>} children
 * @param {Node} node
 * @returns {Array<Node>}
 */

/**
 * Sanitize `node`.
 *
 * @param {Schema} schema
 * @param {Node} node
 * @param {Array<string>} stack
 * @returns {Node | Array<Node> | undefined}
 */

/**
 * Sanitize `properties`.
 *
 * @type {Handler}
 * @param {Properties} properties
 * @param {Element} node
 * @returns {Properties}
 */

/**
 * Sanitize `tagName`.
 *
 * @param {Schema} schema
 * @param {string} tagName
 * @param {Node} _
 * @param {Array<string>} stack
 * @returns {string | false}
 */

/**
 * Sanitize `value`.
 *
 * @type {Handler}
 * @param {unknown} value
 * @returns {string}
 */

/**
 * Sanitize a property value which is a list.
 *
 * @param {Schema} schema
 * @param {Array<unknown>} values
 * @param {string} prop
 * @param {AttributeClean[string]} definition
 * @returns {Array<string | number>}
 */

/**
 * Sanitize a property value.
 *
 * @param {Schema} schema
 * @param {unknown} value
 * @param {string} prop
 * @param {AttributeClean[string]} definition
 * @returns {PropertyValue}
 */

/**
 * Scales a dual quat by a scalar number
 *
 * @param {quat2} out the receiving dual quat
 * @param {ReadonlyQuat2} a the dual quat to scale
 * @param {Number} b amount to scale the dual quat by
 * @returns {quat2} out
 * @function
 */

/**
 * Scales a quat by a scalar number
 *
 * @param {quat} out the receiving vector
 * @param {ReadonlyQuat} a the vector to scale
 * @param {Number} b amount to scale the vector by
 * @returns {quat} out
 * @function
 */

/**
 * Scales a vec2 by a scalar number
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the vector to scale
 * @param {Number} b amount to scale the vector by
 * @returns {vec2} out
 */

/**
 * Scales a vec3 by a scalar number
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the vector to scale
 * @param {Number} b amount to scale the vector by
 * @returns {vec3} out
 */

/**
 * Scales a vec4 by a scalar number
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the vector to scale
 * @param {Number} b amount to scale the vector by
 * @returns {vec4} out
 */

/**
 * Scales the mat2 by the dimensions in the given vec2
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the matrix to rotate
 * @param {ReadonlyVec2} v the vec2 to scale the matrix by
 * @returns {mat2} out
 **/

/**
 * Scales the mat2d by the dimensions in the given vec2
 *
 * @param {mat2d} out the receiving matrix
 * @param {ReadonlyMat2d} a the matrix to translate
 * @param {ReadonlyVec2} v the vec2 to scale the matrix by
 * @returns {mat2d} out
 **/

/**
 * Scales the mat3 by the dimensions in the given vec2
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the matrix to rotate
 * @param {ReadonlyVec2} v the vec2 to scale the matrix by
 * @returns {mat3} out
 **/

/**
 * Scales the mat4 by the dimensions in the given vec3 not using vectorization
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the matrix to scale
 * @param {ReadonlyVec3} v the vec3 to scale the matrix by
 * @returns {mat4} out
 **/

/**
 * Scans each observation target for intersection changes and adds them
 * to the internal entries queue. If new entries are found, it
 * schedules the callback to be invoked.
 * @private
 */

/**
 * Schema 几何标记，用于一些自定义图形的绘制，比如箱型图、股票图等。
 */

/**
 * See <https://html.spec.whatwg.org/multipage/parsing.html#serialising-html-fragments>
 *
 * @type {Handler}
 * @param {unknown} value
 * @returns {string}
 */

/**
 * Serialize a `style` object as a string.
 *
 * @param {HStyle} value
 *   Style object.
 * @returns {string}
 *   CSS string.
 */

/**
 * Serialize a list of nodes.
 *
 * @param {Array<unknown>} values
 *   Thing to serialize.
 * @param {boolean} includeImageAlt
 *   Include image `alt`s.
 * @returns {string}
 *   Serialized nodes.
 */

/**
 * Serialize an array of strings as space separated-tokens.
 *
 * @param {Array<string|number>} values
 *   List of tokens.
 * @returns {string}
 *   Space-separated tokens.
 */

/**
 * Serialize an array of strings or numbers to comma-separated tokens.
 *
 * @param {Array<string|number>} values
 *   List of tokens.
 * @param {Options} [options]
 *   Configuration for `stringify` (optional).
 * @returns {string}
 *   Comma-separated tokens.
 */

/**
 * Serialize the children of a parent that contains phrasing children.
 *
 * These children will be joined flush together.
 *
 * @param {Parent & {children: Array<PhrasingContent>}} parent
 *   Parent of flow nodes.
 * @param {State} state
 *   Info passed around about the current state.
 * @param {Info} info
 *   Info on where we are in the document we are generating.
 * @returns {string}
 *   Serialized children, joined together.
 */

/**
 * Serialize the positional info of a point, position (start and end points),
 * or node.
 *
 * @param {Node | NodeLike | Position | PositionLike | Point | PointLike | null | undefined} [value]
 *   Node, position, or point.
 * @returns {string}
 *   Pretty printed positional info of a node (`string`).
 *
 *   In the format of a range `ls:cs-le:ce` (when given `node` or `position`)
 *   or a point `l:c` (when given `point`), where `l` stands for line, `c` for
 *   column, `s` for `start`, and `e` for end.
 *   An empty string (`''`) is returned if the given value is neither `node`,
 *   `position`, nor `point`.
 */

/**
 * Set a dual quat to the identity dual quaternion
 *
 * @param {quat2} out the receiving quaternion
 * @returns {quat2} out
 */

/**
 * Set a mat2 to the identity matrix
 *
 * @param {mat2} out the receiving matrix
 * @returns {mat2} out
 */

/**
 * Set a mat2d to the identity matrix
 *
 * @param {mat2d} out the receiving matrix
 * @returns {mat2d} out
 */

/**
 * Set a mat3 to the identity matrix
 *
 * @param {mat3} out the receiving matrix
 * @returns {mat3} out
 */

/**
 * Set a mat4 to the identity matrix
 *
 * @param {mat4} out the receiving matrix
 * @returns {mat4} out
 */

/**
 * Set a quat to the identity quaternion
 *
 * @param {quat} out the receiving quaternion
 * @returns {quat} out
 */

/**
 * Set the components of a dual quat to the given values
 *
 * @param {quat2} out the receiving quaternion
 * @param {Number} x1 X component
 * @param {Number} y1 Y component
 * @param {Number} z1 Z component
 * @param {Number} w1 W component
 * @param {Number} x2 X component
 * @param {Number} y2 Y component
 * @param {Number} z2 Z component
 * @param {Number} w2 W component
 * @returns {quat2} out
 * @function
 */

/**
 * Set the components of a mat2 to the given values
 *
 * @param {mat2} out the receiving matrix
 * @param {Number} m00 Component in column 0, row 0 position (index 0)
 * @param {Number} m01 Component in column 0, row 1 position (index 1)
 * @param {Number} m10 Component in column 1, row 0 position (index 2)
 * @param {Number} m11 Component in column 1, row 1 position (index 3)
 * @returns {mat2} out
 */

/**
 * Set the components of a mat2d to the given values
 *
 * @param {mat2d} out the receiving matrix
 * @param {Number} a Component A (index 0)
 * @param {Number} b Component B (index 1)
 * @param {Number} c Component C (index 2)
 * @param {Number} d Component D (index 3)
 * @param {Number} tx Component TX (index 4)
 * @param {Number} ty Component TY (index 5)
 * @returns {mat2d} out
 */

/**
 * Set the components of a mat3 to the given values
 *
 * @param {mat3} out the receiving matrix
 * @param {Number} m00 Component in column 0, row 0 position (index 0)
 * @param {Number} m01 Component in column 0, row 1 position (index 1)
 * @param {Number} m02 Component in column 0, row 2 position (index 2)
 * @param {Number} m10 Component in column 1, row 0 position (index 3)
 * @param {Number} m11 Component in column 1, row 1 position (index 4)
 * @param {Number} m12 Component in column 1, row 2 position (index 5)
 * @param {Number} m20 Component in column 2, row 0 position (index 6)
 * @param {Number} m21 Component in column 2, row 1 position (index 7)
 * @param {Number} m22 Component in column 2, row 2 position (index 8)
 * @returns {mat3} out
 */

/**
 * Set the components of a mat4 to the given values
 *
 * @param {mat4} out the receiving matrix
 * @param {Number} m00 Component in column 0, row 0 position (index 0)
 * @param {Number} m01 Component in column 0, row 1 position (index 1)
 * @param {Number} m02 Component in column 0, row 2 position (index 2)
 * @param {Number} m03 Component in column 0, row 3 position (index 3)
 * @param {Number} m10 Component in column 1, row 0 position (index 4)
 * @param {Number} m11 Component in column 1, row 1 position (index 5)
 * @param {Number} m12 Component in column 1, row 2 position (index 6)
 * @param {Number} m13 Component in column 1, row 3 position (index 7)
 * @param {Number} m20 Component in column 2, row 0 position (index 8)
 * @param {Number} m21 Component in column 2, row 1 position (index 9)
 * @param {Number} m22 Component in column 2, row 2 position (index 10)
 * @param {Number} m23 Component in column 2, row 3 position (index 11)
 * @param {Number} m30 Component in column 3, row 0 position (index 12)
 * @param {Number} m31 Component in column 3, row 1 position (index 13)
 * @param {Number} m32 Component in column 3, row 2 position (index 14)
 * @param {Number} m33 Component in column 3, row 3 position (index 15)
 * @returns {mat4} out
 */

/**
 * Set the components of a quat to the given values
 *
 * @param {quat} out the receiving quaternion
 * @param {Number} x X component
 * @param {Number} y Y component
 * @param {Number} z Z component
 * @param {Number} w W component
 * @returns {quat} out
 * @function
 */

/**
 * Set the components of a vec2 to the given values
 *
 * @param {vec2} out the receiving vector
 * @param {Number} x X component
 * @param {Number} y Y component
 * @returns {vec2} out
 */

/**
 * Set the components of a vec2 to zero
 *
 * @param {vec2} out the receiving vector
 * @returns {vec2} out
 */

/**
 * Set the components of a vec3 to the given values
 *
 * @param {vec3} out the receiving vector
 * @param {Number} x X component
 * @param {Number} y Y component
 * @param {Number} z Z component
 * @returns {vec3} out
 */

/**
 * Set the components of a vec3 to zero
 *
 * @param {vec3} out the receiving vector
 * @returns {vec3} out
 */

/**
 * Set the components of a vec4 to the given values
 *
 * @param {vec4} out the receiving vector
 * @param {Number} x X component
 * @param {Number} y Y component
 * @param {Number} z Z component
 * @param {Number} w W component
 * @returns {vec4} out
 */

/**
 * Set the components of a vec4 to zero
 *
 * @param {vec4} out the receiving vector
 * @returns {vec4} out
 */

/**
 * Set the dual component of a dual quat to the given quaternion
 *
 * @param {quat2} out the receiving quaternion
 * @param {ReadonlyQuat} q a quaternion representing the dual part
 * @returns {quat2} out
 * @function
 */

/**
 * Set the real component of a dual quat to the given quaternion
 *
 * @param {quat2} out the receiving quaternion
 * @param {ReadonlyQuat} q a quaternion representing the real part
 * @returns {quat2} out
 * @function
 */

/**
 * Sets a quat from the given angle and rotation axis,
 * then returns it.
 *
 * @param {quat} out the receiving quaternion
 * @param {ReadonlyVec3} axis the axis around which to rotate
 * @param {Number} rad the angle in radians
 * @returns {quat} out
 **/

/**
 * Sets a quaternion to represent the shortest rotation from one
 * vector to another.
 *
 * Both vectors are assumed to be unit length.
 *
 * @param {quat} out the receiving quaternion.
 * @param {ReadonlyVec3} a the initial vector
 * @param {ReadonlyVec3} b the destination vector
 * @returns {quat} out
 */

/**
 * Sets metadata for `func`.
 *
 * **Note:** If this function becomes hot, i.e. is invoked a lot in a short
 * period of time, it will trip its breaker and transition to an identity
 * function to avoid garbage collection pauses in V8. See
 * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)
 * for more details.
 *
 * @private
 * @param {Function} func The function to associate metadata with.
 * @param {*} data The metadata.
 * @returns {Function} Returns `func`.
 */

/**
 * Sets the `toString` method of `func` to return `string`.
 *
 * @private
 * @param {Function} func The function to modify.
 * @param {Function} string The `toString` result.
 * @returns {Function} Returns `func`.
 */

/**
 * Sets the `toString` method of `wrapper` to mimic the source of `reference`
 * with wrapper details in a comment at the top of the source body.
 *
 * @private
 * @param {Function} wrapper The function to modify.
 * @param {Function} reference The reference function.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @returns {Function} Returns `wrapper`.
 */

/**
 * Sets the hash `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Hash
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the hash instance.
 */

/**
 * Sets the list cache `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf ListCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the list cache instance.
 */

/**
 * Sets the map `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf MapCache
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the map cache instance.
 */

/**
 * Sets the specified quaternion with values corresponding to the given
 * axes. Each axis is a vec3 and is expected to be unit length and
 * perpendicular to all other specified axes.
 *
 * @param {ReadonlyVec3} view  the vector representing the viewing direction
 * @param {ReadonlyVec3} right the vector representing the local "right" direction
 * @param {ReadonlyVec3} up    the vector representing the local "up" direction
 * @returns {quat} out
 */

/**
 * Sets the stack `key` to `value`.
 *
 * @private
 * @name set
 * @memberOf Stack
 * @param {string} key The key of the value to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns the stack cache instance.
 */

/**
 * Sets the type of array used when creating new vectors and matrices
 *
 * @param {Float32ArrayConstructor | ArrayConstructor} type Array type, such as Float32Array or Array
 */

/**
 * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
 * it's created. Arrays are created for missing index properties while objects
 * are created for all other missing properties. Use `_.setWith` to customize
 * `path` creation.
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 3.7.0
 * @category Object
 * @param {Object} object The object to modify.
 * @param {Array|string} path The path of the property to set.
 * @param {*} value The value to set.
 * @returns {Object} Returns `object`.
 * @example
 *
 * var object = { 'a': [{ 'b': { 'c': 3 } }] };
 *
 * _.set(object, 'a[0].b.c', 4);
 * console.log(object.a[0].b.c);
 * // => 4
 *
 * _.set(object, ['x', '0', 'y', 'z'], 5);
 * console.log(object.x[0].y.z);
 * // => 5
 */

/**
 * Sets up the polyfill in the cross-origin mode. The result is the
 * updater function that accepts two arguments: `boundingClientRect` and
 * `intersectionRect` - just as these fields would be available to the
 * parent via `IntersectionObserverEntry`. This function should be called
 * each time the iframe receives intersection information from the parent
 * window, e.g. via messaging.
 * @return {function(DOMRect|ClientRect, DOMRect|ClientRect)}
 */

/**
 * Shims the native getBoundingClientRect for compatibility with older IE.
 * @param {Element} el The element whose bounding rect to get.
 * @return {DOMRect|ClientRect} The (possibly shimmed) rect of the element.
 */

/**
 * Similar to `useState` but will use props value if provided.
 * Note that internal use rc-util `useState` hook.
 */

/**
 * Similar to invariant but only logs a warning if the condition is not met.
 * This can be used to log issues in development environments in critical
 * paths. Removing the logging code for production environments will keep the
 * same logic and follow the same code paths.
 */

/**
 * Similar with `useLock`, but this hook will always execute last value.
 * When set to `true`, it will keep `true` for a short time even if `false` is set.
 */

/**
 * Skip the last `count` values emitted by the source Observable.
 *
 * <img src="./img/skipLast.png" width="100%">
 *
 * `skipLast` returns an Observable that accumulates a queue with a length
 * enough to store the first `count` values. As more values are received,
 * values are taken from the front of the queue and produced on the result
 * sequence. This causes values to be delayed.
 *
 * @example <caption>Skip the last 2 values of an Observable with many values</caption>
 * var many = Rx.Observable.range(1, 5);
 * var skipLastTwo = many.skipLast(2);
 * skipLastTwo.subscribe(x => console.log(x));
 *
 * // Results in:
 * // 1 2 3
 *
 * @see {@link skip}
 * @see {@link skipUntil}
 * @see {@link skipWhile}
 * @see {@link take}
 *
 * @throws {ArgumentOutOfRangeError} When using `skipLast(i)`, it throws
 * ArgumentOutOrRangeError if `i < 0`.
 *
 * @param {number} count Number of elements to skip from the end of the source Observable.
 * @returns {Observable<T>} An Observable that skips the last count values
 * emitted by the source Observable.
 * @method skipLast
 * @owner Observable
 */

/**
 * Slugger generates header id
 */

/**
 * Splits the source Observable into two, one with values that satisfy a
 * predicate, and another with values that don't satisfy the predicate.
 *
 * <span class="informal">It's like {@link filter}, but returns two Observables:
 * one like the output of {@link filter}, and the other with values that did not
 * pass the condition.</span>
 *
 * <img src="./img/partition.png" width="100%">
 *
 * `partition` outputs an array with two Observables that partition the values
 * from the source Observable through the given `predicate` function. The first
 * Observable in that array emits source values for which the predicate argument
 * returns true. The second Observable emits source values for which the
 * predicate returns false. The first behaves like {@link filter} and the second
 * behaves like {@link filter} with the predicate negated.
 *
 * @example <caption>Partition click events into those on DIV elements and those elsewhere</caption>
 * var clicks = Rx.Observable.fromEvent(document, 'click');
 * var parts = clicks.partition(ev => ev.target.tagName === 'DIV');
 * var clicksOnDivs = parts[0];
 * var clicksElsewhere = parts[1];
 * clicksOnDivs.subscribe(x => console.log('DIV clicked: ', x));
 * clicksElsewhere.subscribe(x => console.log('Other clicked: ', x));
 *
 * @see {@link filter}
 *
 * @param {function(value: T, index: number): boolean} predicate A function that
 * evaluates each value emitted by the source Observable. If it returns `true`,
 * the value is emitted on the first Observable in the returned array, if
 * `false` the value is emitted on the second Observable in the array. The
 * `index` parameter is the number `i` for the i-th source emission that has
 * happened since the subscription, starting from the number `0`.
 * @param {any} [thisArg] An optional argument to determine the value of `this`
 * in the `predicate` function.
 * @return {[Observable<T>, Observable<T>]} An array with two Observables: one
 * with values that passed the predicate, and another with values that did not
 * pass the predicate.
 * @method partition
 * @owner Observable
 */

/**
 * Starts observing a target element for intersection changes based on
 * the thresholds values.
 * @param {Element} target The DOM element to observe.
 */

/**
 * Starts observing provided element.
 *
 * @param {Element} target - Element to be observed.
 * @returns {void}
 */

/**
 * Starts polling for intersection changes if the polling is not already
 * happening, and if the page's visibility state is visible.
 * @param {!Document} doc
 * @private
 */

/**
 * State generate. Return a `setState` but it will flush all state with one render to save perf.
 * This is not a realization of `unstable_batchedUpdates`.
 */

/**
 * Stop traversing immediately.
 */

/**
 * Stops observing a target element for intersection changes.
 * @param {Element} target The DOM element to observe.
 */

/**
 * Stops observing all elements.
 *
 * @returns {void}
 */

/**
 * Stops observing all target elements for intersection changes.
 */

/**
 * Stops observing provided element.
 *
 * @param {Element} target - Element to stop observing.
 * @returns {void}
 */

/**
 * Stops polling for intersection changes.
 * @param {!Document} doc
 * @private
 */

/**
 * Subtracts matrix b from matrix a
 *
 * @param {mat2d} out the receiving matrix
 * @param {ReadonlyMat2d} a the first operand
 * @param {ReadonlyMat2d} b the second operand
 * @returns {mat2d} out
 */

/**
 * Subtracts matrix b from matrix a
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the first operand
 * @param {ReadonlyMat2} b the second operand
 * @returns {mat2} out
 */

/**
 * Subtracts matrix b from matrix a
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the first operand
 * @param {ReadonlyMat3} b the second operand
 * @returns {mat3} out
 */

/**
 * Subtracts matrix b from matrix a
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the first operand
 * @param {ReadonlyMat4} b the second operand
 * @returns {mat4} out
 */

/**
 * Subtracts vector b from vector a
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the first operand
 * @param {ReadonlyVec2} b the second operand
 * @returns {vec2} out
 */

/**
 * Subtracts vector b from vector a
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the first operand
 * @param {ReadonlyVec3} b the second operand
 * @returns {vec3} out
 */

/**
 * Subtracts vector b from vector a
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the first operand
 * @param {ReadonlyVec4} b the second operand
 * @returns {vec4} out
 */

/**
 * Support GFM or markdown on github.com.
 *
 * @param {Options} [options]
 * @returns {Extension}
 */

/**
 * Support to compile GFM to HTML.
 *
 * @param {HtmlOptions} [options]
 * @returns {HtmlExtension}
 */

/**
 * Syntactic sugar. Do not support HOC.
 */

/**
 * TODO(https://github.com/ReactiveX/rxjs/issues/2900): Add back subscribeOn once it can be
 * treeshaken. Currently if this export is added back, it
 * forces apps to bring in asap scheduler along with
 * Immediate, root, and other supporting code.
 */

/**
 * TODO: 4.0
 *
 * - Remove `dataSource`
 * - `size` not work with customizeInput
 * - CustomizeInput not feedback `ENTER` key since accessibility enhancement
 */

/**
 * Take a potentially misbehaving resolver function and make sure
 * onFulfilled and onRejected are only called once.
 *
 * Makes no guarantees about asynchrony.
 */

/**
 * Take all events and resolve attention to emphasis or strong.
 *
 * @type {Resolver}
 */

/**
 * Take input from [0, n] and return it as [0, 1]
 * @hidden
 */

/**
 * Tells whether observer has active observations.
 *
 * @returns {boolean}
 */

/**
 * Temporary utility for generating the warnings
 */

/**
 * Tests whether or not the arguments have approximately the same value, within an absolute
 * or relative tolerance of glMatrix.EPSILON (an absolute tolerance is used for values less
 * than or equal to 1.0, and a relative tolerance is used for larger values)
 *
 * @param {Number} a The first number to test.
 * @param {Number} b The second number to test.
 * @returns {Boolean} True if the numbers are approximately equal, false otherwise.
 */

/**
 * TextRenderer
 * returns only the textual part of the token
 */

/**
 * The Max operator operates on an Observable that emits numbers (or items that can be compared with a provided function),
 * and when source Observable completes it emits a single item: the item with the largest value.
 *
 * <img src="./img/max.png" width="100%">
 *
 * @example <caption>Get the maximal value of a series of numbers</caption>
 * Rx.Observable.of(5, 4, 7, 2, 8)
 *   .max()
 *   .subscribe(x => console.log(x)); // -> 8
 *
 * @example <caption>Use a comparer function to get the maximal item</caption>
 * interface Person {
 *   age: number,
 *   name: string
 * }
 * Observable.of<Person>({age: 7, name: 'Foo'},
 *                       {age: 5, name: 'Bar'},
 *                       {age: 9, name: 'Beer'})
 *           .max<Person>((a: Person, b: Person) => a.age < b.age ? -1 : 1)
 *           .subscribe((x: Person) => console.log(x.name)); // -> 'Beer'
 * }
 *
 * @see {@link min}
 *
 * @param {Function} [comparer] - Optional comparer function that it will use instead of its default to compare the
 * value of two items.
 * @return {Observable} An Observable that emits item with the largest value.
 * @method max
 * @owner Observable
 */

/**
 * The Min operator operates on an Observable that emits numbers (or items that can be compared with a provided function),
 * and when source Observable completes it emits a single item: the item with the smallest value.
 *
 * <img src="./img/min.png" width="100%">
 *
 * @example <caption>Get the minimal value of a series of numbers</caption>
 * Rx.Observable.of(5, 4, 7, 2, 8)
 *   .min()
 *   .subscribe(x => console.log(x)); // -> 2
 *
 * @example <caption>Use a comparer function to get the minimal item</caption>
 * interface Person {
 *   age: number,
 *   name: string
 * }
 * Observable.of<Person>({age: 7, name: 'Foo'},
 *                       {age: 5, name: 'Bar'},
 *                       {age: 9, name: 'Beer'})
 *           .min<Person>( (a: Person, b: Person) => a.age < b.age ? -1 : 1)
 *           .subscribe((x: Person) => console.log(x.name)); // -> 'Bar'
 * }
 *
 * @see {@link max}
 *
 * @param {Function} [comparer] - Optional comparer function that it will use instead of its default to compare the
 * value of two items.
 * @return {Observable<R>} An Observable that emits item with the smallest value.
 * @method min
 * @owner Observable
 */

/**
 * The base constructor for creating `lodash` wrapper objects.
 *
 * @private
 * @param {*} value The value to wrap.
 * @param {boolean} [chainAll] Enable explicit method chain sequences.
 */

/**
 * The base implementation of  `_.pickBy` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} paths The property paths to pick.
 * @param {Function} predicate The function invoked per property.
 * @returns {Object} Returns the new object.
 */

/**
 * The base implementation of  `_.pickBy` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} props The property identifiers to pick from.
 * @param {Function} predicate The function invoked per property.
 * @returns {Object} Returns the new object.
 */

/**
 * The base implementation of `_.assignIn` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */

/**
 * The base implementation of `_.assign` without support for multiple sources
 * or `customizer` functions.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @returns {Object} Returns `object`.
 */

/**
 * The base implementation of `_.clone` and `_.cloneDeep` which tracks
 * traversed objects.
 *
 * @private
 * @param {*} value The value to clone.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Deep clone
 *  2 - Flatten inherited properties
 *  4 - Clone symbols
 * @param {Function} [customizer] The function to customize cloning.
 * @param {string} [key] The key of `value`.
 * @param {Object} [object] The parent object of `value`.
 * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
 * @returns {*} Returns the cloned value.
 */

/**
 * The base implementation of `_.findIndex` and `_.findLastIndex` without
 * support for iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Function} predicate The function invoked per iteration.
 * @param {number} fromIndex The index to search from.
 * @param {boolean} [fromRight] Specify iterating from right to left.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */

/**
 * The base implementation of `_.flatten` with support for restricting flattening.
 *
 * @private
 * @param {Array} array The array to flatten.
 * @param {number} depth The maximum recursion depth.
 * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
 * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
 * @param {Array} [result=[]] The initial result value.
 * @returns {Array} Returns the new flattened array.
 */

/**
 * The base implementation of `_.forEach` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array|Object} Returns `collection`.
 */

/**
 * The base implementation of `_.forOwn` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Object} Returns `object`.
 */

/**
 * The base implementation of `_.get` without support for default values.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Array|string} path The path of the property to get.
 * @returns {*} Returns the resolved value.
 */

/**
 * The base implementation of `_.hasIn` without support for deep paths.
 *
 * @private
 * @param {Object} [object] The object to query.
 * @param {Array|string} key The key to check.
 * @returns {boolean} Returns `true` if `key` exists, else `false`.
 */

/**
 * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} fromIndex The index to search from.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */

/**
 * The base implementation of `_.isArguments`.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an `arguments` object,
 */

/**
 * The base implementation of `_.isEqual` which supports partial comparisons
 * and tracks traversed objects.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {Function} [customizer] The function to customize comparisons.
 * @param {boolean} [bitmask] The bitmask of comparison flags.
 *  The bitmask may be composed of the following flags:
 *     1 - Unordered comparison
 *     2 - Partial comparison
 * @param {Object} [stack] Tracks traversed `value` and `other` objects.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 */

/**
 * The base implementation of `_.isEqual` which supports partial comparisons
 * and tracks traversed objects.
 *
 * @private
 * @param {*} value The value to compare.
 * @param {*} other The other value to compare.
 * @param {boolean} bitmask The bitmask flags.
 *  1 - Unordered comparison
 *  2 - Partial comparison
 * @param {Function} [customizer] The function to customize comparisons.
 * @param {Object} [stack] Tracks traversed `value` and `other` objects.
 * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
 */

/**
 * The base implementation of `_.isMap` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a map, else `false`.
 */

/**
 * The base implementation of `_.isMatch` without support for iteratee shorthands.
 *
 * @private
 * @param {Object} object The object to inspect.
 * @param {Object} source The object of property values to match.
 * @param {Array} matchData The property names, values, and compare flags to match.
 * @param {Function} [customizer] The function to customize comparisons.
 * @returns {boolean} Returns `true` if `object` is a match, else `false`.
 */

/**
 * The base implementation of `_.isNaN` without support for number objects.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
 */

/**
 * The base implementation of `_.isNative` without bad shim checks.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a native function,
 *  else `false`.
 */

/**
 * The base implementation of `_.isSet` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a set, else `false`.
 */

/**
 * The base implementation of `_.isTypedArray` without Node.js optimizations.
 *
 * @private
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
 */

/**
 * The base implementation of `_.iteratee`.
 *
 * @private
 * @param {*} [value=_.identity] The value to convert to an iteratee.
 * @returns {Function} Returns the iteratee.
 */

/**
 * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */

/**
 * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */

/**
 * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
 *
 * @private
 * @param {string} path The path of the property to get.
 * @param {*} srcValue The value to match.
 * @returns {Function} Returns the new spec function.
 */

/**
 * The base implementation of `_.matches` which doesn't clone `source`.
 *
 * @private
 * @param {Object} source The object of property values to match.
 * @returns {Function} Returns the new spec function.
 */

/**
 * The base implementation of `_.merge` without support for multiple sources.
 *
 * @private
 * @param {Object} object The destination object.
 * @param {Object} source The source object.
 * @param {number} srcIndex The index of `source`.
 * @param {Function} [customizer] The function to customize merged values.
 * @param {Object} [stack] Tracks traversed source values and their merged
 *  counterparts.
 */

/**
 * The base implementation of `_.pick` without support for individual
 * property identifiers.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} paths The property paths to pick.
 * @returns {Object} Returns the new object.
 */

/**
 * The base implementation of `_.pick` without support for individual
 * property identifiers.
 *
 * @private
 * @param {Object} object The source object.
 * @param {string[]} props The property identifiers to pick.
 * @returns {Object} Returns the new object.
 */

/**
 * The base implementation of `_.property` without support for deep paths.
 *
 * @private
 * @param {string} key The key of the property to get.
 * @returns {Function} Returns the new accessor function.
 */

/**
 * The base implementation of `_.pullAllBy` without support for iteratee
 * shorthands.
 *
 * @private
 * @param {Array} array The array to modify.
 * @param {Array} values The values to remove.
 * @param {Function} [iteratee] The iteratee invoked per element.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns `array`.
 */

/**
 * The base implementation of `_.random` without support for returning
 * floating-point numbers.
 *
 * @private
 * @param {number} lower The lower bound.
 * @param {number} upper The upper bound.
 * @returns {number} Returns the random number.
 */

/**
 * The base implementation of `_.repeat` which doesn't coerce arguments.
 *
 * @private
 * @param {string} string The string to repeat.
 * @param {number} n The number of times to repeat the string.
 * @returns {string} Returns the repeated string.
 */

/**
 * The base implementation of `_.rest` which doesn't validate or coerce arguments.
 *
 * @private
 * @param {Function} func The function to apply a rest parameter to.
 * @param {number} [start=func.length-1] The start position of the rest parameter.
 * @returns {Function} Returns the new function.
 */

/**
 * The base implementation of `_.set`.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {Array|string} path The path of the property to set.
 * @param {*} value The value to set.
 * @param {Function} [customizer] The function to customize path creation.
 * @returns {Object} Returns `object`.
 */

/**
 * The base implementation of `_.slice` without an iteratee call guard.
 *
 * @private
 * @param {Array} array The array to slice.
 * @param {number} [start=0] The start position.
 * @param {number} [end=array.length] The end position.
 * @returns {Array} Returns the slice of `array`.
 */

/**
 * The base implementation of `_.some` without support for iteratee shorthands.
 *
 * @private
 * @param {Array|Object} collection The collection to iterate over.
 * @param {Function} predicate The function invoked per iteration.
 * @returns {boolean} Returns `true` if any element passes the predicate check,
 *  else `false`.
 */

/**
 * The base implementation of `_.times` without support for iteratee shorthands
 * or max array length checks.
 *
 * @private
 * @param {number} n The number of times to invoke `iteratee`.
 * @param {Function} iteratee The function invoked per iteration.
 * @returns {Array} Returns the array of results.
 */

/**
 * The base implementation of `_.toString` which doesn't convert nullish
 * values to empty strings.
 *
 * @private
 * @param {*} value The value to process.
 * @returns {string} Returns the string.
 */

/**
 * The base implementation of `_.trim`.
 *
 * @private
 * @param {string} string The string to trim.
 * @returns {string} Returns the trimmed string.
 */

/**
 * The base implementation of `_.unary` without support for storing metadata.
 *
 * @private
 * @param {Function} func The function to cap arguments for.
 * @returns {Function} Returns the new capped function.
 */

/**
 * The base implementation of `_.uniqBy` without support for iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Function} [iteratee] The iteratee invoked per element.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns the new duplicate free array.
 */

/**
 * The base implementation of `_.unset`.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {Array|string} path The property path to unset.
 * @returns {boolean} Returns `true` if the property is deleted, else `false`.
 */

/**
 * The base implementation of `assignValue` and `assignMergeValue` without
 * value checks.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */

/**
 * The base implementation of `baseForOwn` which iterates over `object`
 * properties returned by `keysFunc` and invokes `iteratee` for each property.
 * Iteratee functions may exit iteration early by explicitly returning `false`.
 *
 * @private
 * @param {Object} object The object to iterate over.
 * @param {Function} iteratee The function invoked per iteration.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @returns {Object} Returns `object`.
 */

/**
 * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
 * `keysFunc` and `symbolsFunc` to get the enumerable property names and
 * symbols of `object`.
 *
 * @private
 * @param {Object} object The object to query.
 * @param {Function} keysFunc The function to get the keys of `object`.
 * @param {Function} symbolsFunc The function to get the symbols of `object`.
 * @returns {Array} Returns the array of property names and symbols.
 */

/**
 * The base implementation of `getTag` without fallbacks for buggy environments.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */

/**
 * The base implementation of `getTag`.
 *
 * @private
 * @param {*} value The value to query.
 * @returns {string} Returns the `toStringTag`.
 */

/**
 * The base implementation of `setData` without support for hot loop shorting.
 *
 * @private
 * @param {Function} func The function to associate metadata with.
 * @param {*} data The metadata.
 * @returns {Function} Returns `func`.
 */

/**
 * The base implementation of `setToString` without support for hot loop shorting.
 *
 * @private
 * @param {Function} func The function to modify.
 * @param {Function} string The `toString` result.
 * @returns {Function} Returns `func`.
 */

/**
 * The base implementation of methods like `_.difference` without support
 * for excluding multiple arrays or iteratee shorthands.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {Array} values The values to exclude.
 * @param {Function} [iteratee] The iteratee invoked per element.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns the new array of filtered values.
 */

/**
 * The base implementation of methods like `_.intersection`, without support
 * for iteratee shorthands, that accepts an array of arrays to inspect.
 *
 * @private
 * @param {Array} arrays The arrays to inspect.
 * @param {Function} [iteratee] The iteratee invoked per element.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns the new array of shared values.
 */

/**
 * The frequency in which the polyfill polls for intersection changes.
 * this can be updated on a per instance basis and must be set prior to
 * calling `observe` on the first target.
 */

/**
 * The function whose prototype chain sequence wrappers inherit from.
 *
 * @private
 */

/**
 * The minimum interval within which the document will be checked for
 * intersection changes.
 */

/**
 * The opposite of `_.pick`; this method creates an object composed of the
 * own and inherited enumerable string keyed properties of `object` that are
 * not omitted.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Object
 * @param {Object} object The source object.
 * @param {...(string|string[])} [props] The property identifiers to omit.
 * @returns {Object} Returns the new object.
 * @example
 *
 * var object = { 'a': 1, 'b': '2', 'c': 3 };
 *
 * _.omit(object, ['a', 'c']);
 * // => { 'b': '2' }
 */

/**
 * Then this man came to realize the truth: Besides six pence, there is the moon. Besides bread and
 * butter, there is the bug. And... Besides women, there is the code.
 *
 * @example
 *   {
 *     "0%": "#afc163",
 *     "25%": "#66FF00",
 *     "50%": "#00CC00", // ====>  linear-gradient(to right, #afc163 0%, #66FF00 25%,
 *     "75%": "#009900", //        #00CC00 50%, #009900 75%, #ffffff 100%)
 *     "100%": "#ffffff"
 *   }
 */

/**
 * These are private action types reserved by Redux.
 * For any unknown actions, you must return the current state.
 * If the current state is undefined, you must return the initial state.
 * Do not reference these action types directly in your code.
 */

/**
 * This function is in internal usage.
 * Do not use it in your prod env since we may refactor this.
 */

/**
 * This function is like
 * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
 * except that it includes inherited enumerable properties.
 *
 * @private
 * @param {Object} object The object to query.
 * @returns {Array} Returns the array of property names.
 */

/**
 * This function is like `arrayIncludes` except that it accepts a comparator.
 *
 * @private
 * @param {Array} [array] The array to inspect.
 * @param {*} target The value to search for.
 * @param {Function} comparator The comparator invoked per element.
 * @returns {boolean} Returns `true` if `target` is found, else `false`.
 */

/**
 * This function is like `assignValue` except that it doesn't assign
 * `undefined` values.
 *
 * @private
 * @param {Object} object The object to modify.
 * @param {string} key The key of the property to assign.
 * @param {*} value The value to assign.
 */

/**
 * This function is like `baseIndexOf` except that it accepts a comparator.
 *
 * @private
 * @param {Array} array The array to inspect.
 * @param {*} value The value to search for.
 * @param {number} fromIndex The index to search from.
 * @param {Function} comparator The comparator invoked per element.
 * @returns {number} Returns the index of the matched value, else `-1`.
 */

/**
 * This function is like `composeArgs` except that the arguments composition
 * is tailored for `_.partialRight`.
 *
 * @private
 * @param {Array} args The provided arguments.
 * @param {Array} partials The arguments to append to those provided.
 * @param {Array} holders The `partials` placeholder indexes.
 * @params {boolean} [isCurried] Specify composing for a curried function.
 * @returns {Array} Returns the new array of composed arguments.
 */

/**
 * This is a syntactic sugar for `columns` prop.
 * So HOC will not work on this.
 */

/**
 * This method is like `_.assignIn` except that it accepts `customizer`
 * which is invoked to produce the assigned values. If `customizer` returns
 * `undefined`, assignment is handled by the method instead. The `customizer`
 * is invoked with five arguments: (objValue, srcValue, key, object, source).
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @alias extendWith
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} sources The source objects.
 * @param {Function} [customizer] The function to customize assigned values.
 * @returns {Object} Returns `object`.
 * @see _.assignWith
 * @example
 *
 * function customizer(objValue, srcValue) {
 *   return _.isUndefined(objValue) ? srcValue : objValue;
 * }
 *
 * var defaults = _.partialRight(_.assignInWith, customizer);
 *
 * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
 * // => { 'a': 1, 'b': 2 }
 */

/**
 * This method is like `_.assign` except that it accepts `customizer`
 * which is invoked to produce the assigned values. If `customizer` returns
 * `undefined`, assignment is handled by the method instead. The `customizer`
 * is invoked with five arguments: (objValue, srcValue, key, object, source).
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} sources The source objects.
 * @param {Function} [customizer] The function to customize assigned values.
 * @returns {Object} Returns `object`.
 * @see _.assignInWith
 * @example
 *
 * function customizer(objValue, srcValue) {
 *   return _.isUndefined(objValue) ? srcValue : objValue;
 * }
 *
 * var defaults = _.partialRight(_.assignWith, customizer);
 *
 * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
 * // => { 'a': 1, 'b': 2 }
 */

/**
 * This method is like `_.assign` except that it recursively merges own and
 * inherited enumerable string keyed properties of source objects into the
 * destination object. Source properties that resolve to `undefined` are
 * skipped if a destination value exists. Array and plain object properties
 * are merged recursively. Other objects and value types are overridden by
 * assignment. Source objects are applied from left to right. Subsequent
 * sources overwrite property assignments of previous sources.
 *
 * **Note:** This method mutates `object`.
 *
 * @static
 * @memberOf _
 * @since 0.5.0
 * @category Object
 * @param {Object} object The destination object.
 * @param {...Object} [sources] The source objects.
 * @returns {Object} Returns `object`.
 * @example
 *
 * var object = {
 *   'a': [{ 'b': 2 }, { 'd': 4 }]
 * };
 *
 * var other = {
 *   'a': [{ 'c': 3 }, { 'e': 5 }]
 * };
 *
 * _.merge(object, other);
 * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
 */

/**
 * This method is like `_.clone` except that it recursively clones `value`.
 *
 * @static
 * @memberOf _
 * @since 1.0.0
 * @category Lang
 * @param {*} value The value to recursively clone.
 * @returns {*} Returns the deep cloned value.
 * @see _.clone
 * @example
 *
 * var objects = [{ 'a': 1 }, { 'b': 2 }];
 *
 * var deep = _.cloneDeep(objects);
 * console.log(deep[0] === objects[0]);
 * // => false
 */

/**
 * This method is like `_.find` except that it returns the index of the first
 * element `predicate` returns truthy for instead of the element itself.
 *
 * @static
 * @memberOf _
 * @since 1.1.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {Function} [predicate=_.identity] The function invoked per iteration.
 * @param {number} [fromIndex=0] The index to search from.
 * @returns {number} Returns the index of the found element, else `-1`.
 * @example
 *
 * var users = [
 *   { 'user': 'barney',  'active': false },
 *   { 'user': 'fred',    'active': false },
 *   { 'user': 'pebbles', 'active': true }
 * ];
 *
 * _.findIndex(users, function(o) { return o.user == 'barney'; });
 * // => 0
 *
 * // The `_.matches` iteratee shorthand.
 * _.findIndex(users, { 'user': 'fred', 'active': false });
 * // => 1
 *
 * // The `_.matchesProperty` iteratee shorthand.
 * _.findIndex(users, ['active', false]);
 * // => 0
 *
 * // The `_.property` iteratee shorthand.
 * _.findIndex(users, 'active');
 * // => 2
 */

/**
 * This method is like `_.intersection` except that it accepts `iteratee`
 * which is invoked for each element of each `arrays` to generate the criterion
 * by which they're compared. The order and references of result values are
 * determined by the first array. The iteratee is invoked with one argument:
 * (value).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {...Array} [arrays] The arrays to inspect.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {Array} Returns the new array of intersecting values.
 * @example
 *
 * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
 * // => [2.1]
 *
 * // The `_.property` iteratee shorthand.
 * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
 * // => [{ 'x': 1 }]
 */

/**
 * This method is like `_.isArrayLike` except that it also checks if `value`
 * is an object.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Lang
 * @param {*} value The value to check.
 * @returns {boolean} Returns `true` if `value` is an array-like object,
 *  else `false`.
 * @example
 *
 * _.isArrayLikeObject([1, 2, 3]);
 * // => true
 *
 * _.isArrayLikeObject(document.body.children);
 * // => true
 *
 * _.isArrayLikeObject('abc');
 * // => false
 *
 * _.isArrayLikeObject(_.noop);
 * // => false
 */

/**
 * This method is like `_.pullAll` except that it accepts `iteratee` which is
 * invoked for each element of `array` and `values` to generate the criterion
 * by which they're compared. The iteratee is invoked with one argument: (value).
 *
 * **Note:** Unlike `_.differenceBy`, this method mutates `array`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to modify.
 * @param {Array} values The values to remove.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {Array} Returns `array`.
 * @example
 *
 * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
 *
 * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
 * console.log(array);
 * // => [{ 'x': 2 }]
 */

/**
 * This method is like `_.pull` except that it accepts an array of values to remove.
 *
 * **Note:** Unlike `_.difference`, this method mutates `array`.
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to modify.
 * @param {Array} values The values to remove.
 * @returns {Array} Returns `array`.
 * @example
 *
 * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
 *
 * _.pullAll(array, ['a', 'c']);
 * console.log(array);
 * // => ['b', 'b']
 */

/**
 * This method is like `_.union` except that it accepts `iteratee` which is
 * invoked for each element of each `arrays` to generate the criterion by
 * which uniqueness is computed. Result values are chosen from the first
 * array in which the value occurs. The iteratee is invoked with one argument:
 * (value).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {...Array} [arrays] The arrays to inspect.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {Array} Returns the new array of combined values.
 * @example
 *
 * _.unionBy([2.1], [1.2, 2.3], Math.floor);
 * // => [2.1, 1.2]
 *
 * // The `_.property` iteratee shorthand.
 * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
 * // => [{ 'x': 1 }, { 'x': 2 }]
 */

/**
 * This method is like `_.uniq` except that it accepts `comparator` which
 * is invoked to compare elements of `array`. The order of result values is
 * determined by the order they occur in the array.The comparator is invoked
 * with two arguments: (arrVal, othVal).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {Function} [comparator] The comparator invoked per element.
 * @returns {Array} Returns the new duplicate free array.
 * @example
 *
 * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];
 *
 * _.uniqWith(objects, _.isEqual);
 * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
 */

/**
 * This method is like `_.uniq` except that it accepts `iteratee` which is
 * invoked for each element in `array` to generate the criterion by which
 * uniqueness is computed. The order of result values is determined by the
 * order they occur in the array. The iteratee is invoked with one argument:
 * (value).
 *
 * @static
 * @memberOf _
 * @since 4.0.0
 * @category Array
 * @param {Array} array The array to inspect.
 * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
 * @returns {Array} Returns the new duplicate free array.
 * @example
 *
 * _.uniqBy([2.1, 1.2, 2.3], Math.floor);
 * // => [2.1, 1.2]
 *
 * // The `_.property` iteratee shorthand.
 * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
 * // => [{ 'x': 1 }, { 'x': 2 }]
 */

/**
 * This method returns `false`.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {boolean} Returns `false`.
 * @example
 *
 * _.times(2, _.stubFalse);
 * // => [false, false]
 */

/**
 * This method returns `undefined`.
 *
 * @static
 * @memberOf _
 * @since 2.3.0
 * @category Util
 * @example
 *
 * _.times(2, _.noop);
 * // => [undefined, undefined]
 */

/**
 * This method returns a new empty array.
 *
 * @static
 * @memberOf _
 * @since 4.13.0
 * @category Util
 * @returns {Array} Returns the new empty array.
 * @example
 *
 * var arrays = _.times(2, _.stubArray);
 *
 * console.log(arrays);
 * // => [[], []]
 *
 * console.log(arrays[0] === arrays[1]);
 * // => false
 */

/**
 * This method returns the first argument it receives.
 *
 * @static
 * @since 0.1.0
 * @memberOf _
 * @category Util
 * @param {*} value Any value.
 * @returns {*} Returns `value`.
 * @example
 *
 * var object = { 'a': 1 };
 *
 * console.log(_.identity(object) === object);
 * // => true
 */

/**
 * Throw a given error.
 *
 * @param {Error|null|undefined} [error]
 *   Maybe error.
 * @returns {asserts error is null|undefined}
 */

/**
 * Tokenize embedded tokens.
 *
 * @param {Event[]} events
 * @param {number} eventIndex
 * @returns {Record<string, number>}
 */

/**
 * Tokenize subcontent.
 *
 * @param {Event[]} events
 * @returns {boolean}
 */

/**
 * Tokenizer
 */

/**
 * Track positional info in the output.
 *
 * @type {CreateTracker}
 */

/**
 * Transform a `parse5` AST to hast.
 *
 * @param {P5Node} tree
 *   `parse5` tree to transform.
 * @param {Options | VFile | null | undefined} [options]
 *   Configuration.
 * @returns {Node}
 *   hast tree.
 */

/**
 * Transform a hast tree to Parse5’s AST.
 *
 * @param {Node} tree
 *   Tree to transform.
 * @param {Options | Space | null | undefined} [options]
 *   Configuration.
 * @returns {P5Node}
 *   `parse5` node.
 */

/**
 * Transform a node.
 *
 * @param {State} state
 *   Info passed around about the current state.
 * @param {P5Node} node
 *   p5 node.
 * @returns {Node}
 *   hast node.
 */

/**
 * Transform all hast nodes.
 *
 * @param {Array<Content>} children
 *   List of children.
 * @param {P5Parent} parentNode
 *   `parse5` parent node.
 * @param {Schema} schema
 *   Current schema.
 * @returns {Array<P5Child>}
 *   Transformed children.
 */

/**
 * Transform an element.
 *
 * @param {State} state
 *   Info passed around about the current state.
 * @param {P5Element} node
 *   `parse5` node to transform.
 * @returns {Element}
 *   hast node.
 */

/**
 * Transform an mdast node into a hast node.
 *
 * @param {State} state
 *   Info passed around.
 * @param {MdastNodes} node
 *   mdast node.
 * @param {MdastParents | null | undefined} [parent]
 *   Parent of `node`.
 * @returns {HastElementContent | Array<HastElementContent> | null | undefined}
 *   Resulting hast node.
 */

/**
 * Transform an unknown node.
 *
 * @param {State} state
 *   Info passed around.
 * @param {MdastNodes} node
 *   Unknown mdast node.
 * @returns {HastText | HastElement}
 *   Resulting hast node.
 */

/**
 * Transform children.
 *
 * @param {State} state
 *   Info passed around about the current state.
 * @param {Array<P5Node>} nodes
 *   Nodes.
 * @returns {Array<Content>}
 *   hast nodes.
 */

/**
 * Transform mdast to hast.
 *
 * ##### Notes
 *
 * ###### HTML
 *
 * Raw HTML is available in mdast as `html` nodes and can be embedded in hast
 * as semistandard `raw` nodes.
 * Most utilities ignore `raw` nodes but two notable ones don’t:
 *
 * *   `hast-util-to-html` also has an option `allowDangerousHtml` which will
 *     output the raw HTML.
 *     This is typically discouraged as noted by the option name but is useful
 *     if you completely trust authors
 * *   `hast-util-raw` can handle the raw embedded HTML strings by parsing them
 *     into standard hast nodes (`element`, `text`, etc).
 *     This is a heavy task as it needs a full HTML parser, but it is the only
 *     way to support untrusted content
 *
 * ###### Footnotes
 *
 * Many options supported here relate to footnotes.
 * Footnotes are not specified by CommonMark, which we follow by default.
 * They are supported by GitHub, so footnotes can be enabled in markdown with
 * `mdast-util-gfm`.
 *
 * The options `footnoteBackLabel` and `footnoteLabel` define natural language
 * that explains footnotes, which is hidden for sighted users but shown to
 * assistive technology.
 * When your page is not in English, you must define translated values.
 *
 * Back references use ARIA attributes, but the section label itself uses a
 * heading that is hidden with an `sr-only` class.
 * To show it to sighted users, define different attributes in
 * `footnoteLabelProperties`.
 *
 * ###### Clobbering
 *
 * Footnotes introduces a problem, as it links footnote calls to footnote
 * definitions on the page through `id` attributes generated from user content,
 * which results in DOM clobbering.
 *
 * DOM clobbering is this:
 *
 * ```html
 * <p id=x></p>
 * <script>alert(x) // `x` now refers to the DOM `p#x` element</script>
 * ```
 *
 * Elements by their ID are made available by browsers on the `window` object,
 * which is a security risk.
 * Using a prefix solves this problem.
 *
 * More information on how to handle clobbering and the prefix is explained in
 * Example: headings (DOM clobbering) in `rehype-sanitize`.
 *
 * ###### Unknown nodes
 *
 * Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`.
 * The default behavior for unknown nodes is:
 *
 * *   when the node has a `value` (and doesn’t have `data.hName`,
 *     `data.hProperties`, or `data.hChildren`, see later), create a hast `text`
 *     node
 * *   otherwise, create a `<div>` element (which could be changed with
 *     `data.hName`), with its children mapped from mdast to hast as well
 *
 * This behavior can be changed by passing an `unknownHandler`.
 *
 * @param {MdastNodes} tree
 *   mdast tree.
 * @param {Options | null | undefined} [options]
 *   Configuration.
 * @returns {HastNodes | null | undefined}
 *   hast tree.
 */

/**
 * Transform the children of an mdast node into hast nodes.
 *
 * @param {State} state
 *   Info passed around.
 * @param {MdastNodes} parent
 *   mdast node to compile
 * @returns {Array<HastElementContent>}
 *   Resulting hast nodes.
 */

/**
 * Transforms the vec2 with a mat2
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the vector to transform
 * @param {ReadonlyMat2} m matrix to transform with
 * @returns {vec2} out
 */

/**
 * Transforms the vec2 with a mat2d
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the vector to transform
 * @param {ReadonlyMat2d} m matrix to transform with
 * @returns {vec2} out
 */

/**
 * Transforms the vec2 with a mat3
 * 3rd vector component is implicitly '1'
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the vector to transform
 * @param {ReadonlyMat3} m matrix to transform with
 * @returns {vec2} out
 */

/**
 * Transforms the vec2 with a mat4
 * 3rd vector component is implicitly '0'
 * 4th vector component is implicitly '1'
 *
 * @param {vec2} out the receiving vector
 * @param {ReadonlyVec2} a the vector to transform
 * @param {ReadonlyMat4} m matrix to transform with
 * @returns {vec2} out
 */

/**
 * Transforms the vec3 with a mat3.
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the vector to transform
 * @param {ReadonlyMat3} m the 3x3 matrix to transform with
 * @returns {vec3} out
 */

/**
 * Transforms the vec3 with a mat4.
 * 4th vector component is implicitly '1'
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the vector to transform
 * @param {ReadonlyMat4} m matrix to transform with
 * @returns {vec3} out
 */

/**
 * Transforms the vec3 with a quat
 * Can also be used for dual quaternions. (Multiply it with the real part)
 *
 * @param {vec3} out the receiving vector
 * @param {ReadonlyVec3} a the vector to transform
 * @param {ReadonlyQuat} q quaternion to transform with
 * @returns {vec3} out
 */

/**
 * Transforms the vec4 with a mat4.
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the vector to transform
 * @param {ReadonlyMat4} m matrix to transform with
 * @returns {vec4} out
 */

/**
 * Transforms the vec4 with a quat
 *
 * @param {vec4} out the receiving vector
 * @param {ReadonlyVec4} a the vector to transform
 * @param {ReadonlyQuat} q quaternion to transform with
 * @returns {vec4} out
 */

/**
 * Translate a mat3 by the given vector
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the matrix to translate
 * @param {ReadonlyVec2} v vector to translate by
 * @returns {mat3} out
 */

/**
 * Translate a mat4 by the given vector
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the matrix to translate
 * @param {ReadonlyVec3} v vector to translate by
 * @returns {mat4} out
 */

/**
 * Translates a dual quat by the given vector
 *
 * @param {quat2} out the receiving dual quaternion
 * @param {ReadonlyQuat2} a the dual quaternion to translate
 * @param {ReadonlyVec3} v vector to translate by
 * @returns {quat2} out
 */

/**
 * Translates the mat2d by the dimensions in the given vec2
 *
 * @param {mat2d} out the receiving matrix
 * @param {ReadonlyMat2d} a the matrix to translate
 * @param {ReadonlyVec2} v the vec2 to translate the matrix by
 * @returns {mat2d} out
 **/

/**
 * Transpose the values of a mat2
 *
 * @param {mat2} out the receiving matrix
 * @param {ReadonlyMat2} a the source matrix
 * @returns {mat2} out
 */

/**
 * Transpose the values of a mat3
 *
 * @param {mat3} out the receiving matrix
 * @param {ReadonlyMat3} a the source matrix
 * @returns {mat3} out
 */

/**
 * Transpose the values of a mat4
 *
 * @param {mat4} out the receiving matrix
 * @param {ReadonlyMat4} a the source matrix
 * @returns {mat4} out
 */

/**
 * Traverse all the data by `treeData`.
 * Please not use it out of the `rc-tree` since we may refactor this code.
 */

/**
 * Trim `str`.
 *
 * @param {String} str
 * @return {String}
 */

/**
 * Turn a custom test into a test for a node that passes that test.
 *
 * @param {TestFunctionAnything} check
 * @returns {AssertAnything}
 */

/**
 * Turn a find into an expression.
 *
 * @param {Find} find
 *   Find.
 * @returns {RegExp}
 *   Expression.
 */

/**
 * Turn a p5 location into a position.
 *
 * @param {P5Location} loc
 *   Location.
 * @returns {Position | undefined}
 *   Position or nothing.
 */

/**
 * Turn a replace into a function.
 *
 * @param {Replace} replace
 *   Replace.
 * @returns {ReplaceFunction}
 *   Function.
 */

/**
 * Turn a return value into a clean result.
 *
 * @param {VisitorResult} value
 *   Valid return values from visitors.
 * @returns {ActionTuple}
 *   Clean result.
 */

/**
 * Turn a schema into pairs.
 *
 * @param {FindAndReplaceSchema | FindAndReplaceList} schema
 *   Schema.
 * @returns {Pairs}
 *   Clean pairs.
 */

/**
 * Turn a string into a test for a node with a certain type.
 *
 * @param {string} check
 * @returns {AssertAnything}
 */

/**
 * Turn an mdast `blockquote` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {Blockquote} node
 *   mdast node.
 * @returns {Element}
 *   hast node.
 */

/**
 * Turn an mdast `break` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {Break} node
 *   mdast node.
 * @returns {Array<Element | Text>}
 *   hast element content.
 */

/**
 * Turn an mdast `code` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {Code} node
 *   mdast node.
 * @returns {Element}
 *   hast node.
 */

/**
 * Turn an mdast `delete` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {Delete} node
 *   mdast node.
 * @returns {Element}
 *   hast node.
 */

/**
 * Turn an mdast `emphasis` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {Emphasis} node
 *   mdast node.
 * @returns {Element}
 *   hast node.
 */

/**
 * Turn an mdast `footnoteReference` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {FootnoteReference} node
 *   mdast node.
 * @returns {Element}
 *   hast node.
 */

/**
 * Turn an mdast `footnote` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {Footnote} node
 *   mdast node.
 * @returns {Element}
 *   hast node.
 */

/**
 * Turn an mdast `heading` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {Heading} node
 *   mdast node.
 * @returns {Element}
 *   hast node.
 */

/**
 * Turn an mdast `html` node into hast (`raw` node in dangerous mode, otherwise
 * nothing).
 *
 * @param {State} state
 *   Info passed around.
 * @param {Html} node
 *   mdast node.
 * @returns {Raw | Element | null}
 *   hast node.
 */

/**
 * Turn an mdast `imageReference` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {ImageReference} node
 *   mdast node.
 * @returns {ElementContent | Array<ElementContent>}
 *   hast node.
 */

/**
 * Turn an mdast `image` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {Image} node
 *   mdast node.
 * @returns {Element}
 *   hast node.
 */

/**
 * Turn an mdast `inlineCode` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {InlineCode} node
 *   mdast node.
 * @returns {Element}
 *   hast node.
 */

/**
 * Turn an mdast `linkReference` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {LinkReference} node
 *   mdast node.
 * @returns {ElementContent | Array<ElementContent>}
 *   hast node.
 */

/**
 * Turn an mdast `link` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {Link} node
 *   mdast node.
 * @returns {Element}
 *   hast node.
 */

/**
 * Turn an mdast `listItem` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {ListItem} node
 *   mdast node.
 * @param {Parents | null | undefined} parent
 *   Parent of `node`.
 * @returns {Element}
 *   hast node.
 */

/**
 * Turn an mdast `list` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {List} node
 *   mdast node.
 * @returns {Element}
 *   hast node.
 */

/**
 * Turn an mdast `paragraph` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {Paragraph} node
 *   mdast node.
 * @returns {Element}
 *   hast node.
 */

/**
 * Turn an mdast `root` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {MdastRoot} node
 *   mdast node.
 * @returns {HastRoot | HastElement}
 *   hast node.
 */

/**
 * Turn an mdast `strong` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {Strong} node
 *   mdast node.
 * @returns {Element}
 *   hast node.
 */

/**
 * Turn an mdast `tableCell` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {TableCell} node
 *   mdast node.
 * @returns {Element}
 *   hast node.
 */

/**
 * Turn an mdast `tableRow` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {TableRow} node
 *   mdast node.
 * @param {Parents | null | undefined} parent
 *   Parent of `node`.
 * @returns {Element}
 *   hast node.
 */

/**
 * Turn an mdast `table` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {Table} node
 *   mdast node.
 * @returns {Element}
 *   hast node.
 */

/**
 * Turn an mdast `text` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {MdastText} node
 *   mdast node.
 * @returns {HastText | HastElement}
 *   hast node.
 */

/**
 * Turn an mdast `thematicBreak` node into hast.
 *
 * @param {State} state
 *   Info passed around.
 * @param {ThematicBreak} node
 *   mdast node.
 * @returns {Element}
 *   hast node.
 */

/**
 * Turn an object into a test for a node with a certain fields.
 *
 * @param {Props} check
 * @returns {AssertAnything}
 */

/**
 * Turn the number (in string form as either hexa- or plain decimal) coming from
 * a numeric character reference into a character.
 *
 * @param {string} value
 *   Value to decode.
 * @param {number} base
 *   Numeric base.
 * @returns {string}
 */

/**
 * Turns an object whose values are action creators, into an object with the
 * same keys, but with every function wrapped into a `dispatch` call so they
 * may be invoked directly. This is just a convenience method, as you can call
 * `store.dispatch(MyActionCreators.doSomething())` yourself just fine.
 *
 * For convenience, you can also pass an action creator as the first argument,
 * and get a dispatch wrapped function in return.
 *
 * @param {Function|Object} actionCreators An object whose values are action
 * creator functions. One handy way to obtain it is to use ES6 `import * as`
 * syntax. You may also pass a single function.
 *
 * @param {Function} dispatch The `dispatch` function available on your Redux
 * store.
 *
 * @returns {Function|Object} The object mimicking the original object, but with
 * every action creator wrapped into the `dispatch` call. If you passed a
 * function as `actionCreators`, the return value will also be a single
 * function.
 */

/**
 * Turns an object whose values are different reducer functions, into a single
 * reducer function. It will call every child reducer, and gather their results
 * into a single state object, whose keys correspond to the keys of the passed
 * reducer functions.
 *
 * @param {Object} reducers An object whose values correspond to different
 * reducer functions that need to be combined into one. One handy way to obtain
 * it is to use ES6 `import * as reducers` syntax. The reducers may never return
 * undefined for any action. Instead, they should return their initial state
 * if the state passed to them was undefined, and the current state for any
 * unrecognized action.
 *
 * @returns {Function} A reducer function that invokes every reducer inside the
 * passed object, and builds a state object with the same shape.
 */

/**
 * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
 * from the corresponding properties of the last observed content rectangle.
 *
 * @returns {DOMRectInit} Last observed content rectangle.
 */

/**
 * Updates content rectangle and tells whether it's width or height properties
 * have changed since the last broadcast.
 *
 * @returns {boolean}
 */

/**
 * Updates every observer from observers list and notifies them of queued
 * entries.
 *
 * @private
 * @returns {boolean} Returns "true" if any observer has detected changes in
 *  dimensions of it's elements.
 */

/**
 * Updates wrapper `details` based on `bitmask` flags.
 *
 * @private
 * @returns {Array} details The details to modify.
 * @param {number} bitmask The bitmask flags. See `createWrap` for more details.
 * @returns {Array} Returns `details`.
 */

/**
 * Use Extension
 */

/**
 * Use a mutation observer on the root element
 * to detect intersection changes.
 */

/**
 * Use invariant() to assert state which your program assumes to be true.
 *
 * Provide sprintf-style format (only %s is supported) and arguments
 * to provide information about what broke and what you were
 * expecting.
 *
 * The invariant message will be stripped in production, but the invariant
 * will remain to ensure logic does not differ in production.
 */

/**
 * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
 * objects.
 *
 * @private
 * @param {*} value The value to inspect.
 * @param {string} key The key of the property to inspect.
 * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
 */

/**
 * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
 * character of `string`.
 *
 * @private
 * @param {string} string The string to inspect.
 * @returns {number} Returns the index of the last non-whitespace character.
 */

/**
 * Used to match `RegExp`
 * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
 */

/**
 * Used to resolve the
 * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
 * of values.
 */

/**
 * Utility to decode markdown strings (which occur in places such as fenced
 * code info strings, destinations, labels, and titles).
 * The “string” content type allows character escapes and -references.
 * This decodes those.
 *
 * @param {string} value
 * @returns {string}
 */

/**
 * Utility to sanitize a tree
 *
 * @param {Node} node
 *   Hast tree to sanitize
 * @param {Schema} [schema]
 *   Schema defining how to sanitize - defaults to Github style sanitation
 */

/**
 * Violin 几何标记。
 * 用于绘制小提琴图。
 */

/**
 * Visit nodes, with ancestral information.
 *
 * This algorithm performs *depth-first* *tree traversal* in *preorder*
 * (**NLR**) or if `reverse` is given, in *reverse preorder* (**NRL**).
 *
 * You can choose for which nodes `visitor` is called by passing a `test`.
 * For complex tests, you should test yourself in `visitor`, as it will be
 * faster and will have improved type information.
 *
 * Walking the tree is an intensive task.
 * Make use of the return values of the visitor when possible.
 * Instead of walking a tree multiple times, walk it once, use `unist-util-is`
 * to check if a node matches, and then perform different operations.
 *
 * You can change the tree.
 * See `Visitor` for more info.
 *
 * @param tree
 *   Tree to traverse.
 * @param test
 *   `unist-util-is`-compatible test
 * @param visitor
 *   Handle each node.
 * @param reverse
 *   Traverse in reverse preorder (NRL) instead of the default preorder (NLR).
 * @returns
 *   Nothing.
 */

/**
 * Visit nodes.
 *
 * This algorithm performs *depth-first* *tree traversal* in *preorder*
 * (**NLR**) or if `reverse` is given, in *reverse preorder* (**NRL**).
 *
 * You can choose for which nodes `visitor` is called by passing a `test`.
 * For complex tests, you should test yourself in `visitor`, as it will be
 * faster and will have improved type information.
 *
 * Walking the tree is an intensive task.
 * Make use of the return values of the visitor when possible.
 * Instead of walking a tree multiple times, walk it once, use `unist-util-is`
 * to check if a node matches, and then perform different operations.
 *
 * You can change the tree.
 * See `Visitor` for more info.
 *
 * @param tree
 *   Tree to traverse.
 * @param test
 *   `unist-util-is`-compatible test
 * @param visitor
 *   Handle each node.
 * @param reverse
 *   Traverse in reverse preorder (NRL) instead of the default preorder (NLR).
 * @returns
 *   Nothing.
 */

/**
 * Warning if TreeNode do not provides key
 */

/**
 * We assume that 2 list has only 1 item diff and others keeping the order.
 * So we can use dichotomy algorithm to find changed one.
 */

/**
 * We need this JSDoc comment for affecting ESDoc
 * @ignore
 * @extends {Ignored}
 */

/**
 * We need this JSDoc comment for affecting ESDoc.
 * @extends {Ignored}
 * @hide true
 */

/**
 * We need this JSDoc comment for affecting ESDoc.
 * @ignore
 * @extends {Ignored}
 */

/**
 * We only need get visible content items to play the animation.
 */

/**
 * We simply convert `items` to ReactNode for reuse origin component logic. But we need move all the
 * logic from component into this hooks when in v5
 */

/**
 * We use `async-validator` to validate rules. So have to hot replace the message with validator.
 * { required: '${name} is required' } => { required: () => 'field is required' }
 */

/**
 * We use `async-validator` to validate the value.
 * But only check one value in a time to avoid namePath validate issue.
 */

/**
 * Webpack has bug for import loop, which is not the same behavior as ES module.
 * When util.js imports the TreeNode for tree generate will cause treeContextTypes be empty.
 */

/**
 * When any of the provided Observable emits an complete or error notification, it immediately subscribes to the next one
 * that was passed.
 *
 * <span class="informal">Execute series of Observables no matter what, even if it means swallowing errors.</span>
 *
 * <img src="./img/onErrorResumeNext.png" width="100%">
 *
 * `onErrorResumeNext` is an operator that accepts a series of Observables, provided either directly as
 * arguments or as an array. If no single Observable is provided, returned Observable will simply behave the same
 * as the source.
 *
 * `onErrorResumeNext` returns an Observable that starts by subscribing and re-emitting values from the source Observable.
 * When its stream of values ends - no matter if Observable completed or emitted an error - `onErrorResumeNext`
 * will subscribe to the first Observable that was passed as an argument to the method. It will start re-emitting
 * its values as well and - again - when that stream ends, `onErrorResumeNext` will proceed to subscribing yet another
 * Observable in provided series, no matter if previous Observable completed or ended with an error. This will
 * be happening until there is no more Observables left in the series, at which point returned Observable will
 * complete - even if the last subscribed stream ended with an error.
 *
 * `onErrorResumeNext` can be therefore thought of as version of {@link concat} operator, which is more permissive
 * when it comes to the errors emitted by its input Observables. While `concat` subscribes to the next Observable
 * in series only if previous one successfully completed, `onErrorResumeNext` subscribes even if it ended with
 * an error.
 *
 * Note that you do not get any access to errors emitted by the Observables. In particular do not
 * expect these errors to appear in error callback passed to {@link subscribe}. If you want to take
 * specific actions based on what error was emitted by an Observable, you should try out {@link catch} instead.
 *
 *
 * @example <caption>Subscribe to the next Observable after map fails</caption>
 * Rx.Observable.of(1, 2, 3, 0)
 *   .map(x => {
 *       if (x === 0) { throw Error(); }
         return 10 / x;
 *   })
 *   .onErrorResumeNext(Rx.Observable.of(1, 2, 3))
 *   .subscribe(
 *     val => console.log(val),
 *     err => console.log(err),          // Will never be called.
 *     () => console.log('that\'s it!')
 *   );
 *
 * // Logs:
 * // 10
 * // 5
 * // 3.3333333333333335
 * // 1
 * // 2
 * // 3
 * // "that's it!"
 *
 * @see {@link concat}
 * @see {@link catch}
 *
 * @param {...ObservableInput} observables Observables passed either directly or as an array.
 * @return {Observable} An Observable that emits values from source Observable, but - if it errors - subscribes
 * to the next passed Observable and so on, until it completes or runs out of Observables.
 * @method onErrorResumeNext
 * @owner Observable
 */

/**
 * Work as `componentDidUpdate`
 */

/**
 * Wrap `React.useLayoutEffect` which will not throw warning message in test env
 */

/**
 * Wrap `middleware`.
 * Can be sync or async; return a promise, receive a callback, or return new
 * values and errors.
 *
 * @param {Middleware} middleware
 * @param {Callback} callback
 */

/**
 * Wrap `nodes` with line endings between each node.
 *
 * @template {HastContent} Type
 *   Node type.
 * @param {Array<Type>} nodes
 *   List of nodes to wrap.
 * @param {boolean | null | undefined} [loose=false]
 *   Whether to add line endings at start and end.
 * @returns {Array<Type | HastText>}
 *   Wrapped nodes.
 */

/**
 * Wrap of sub component which need use as Button capacity (like Icon component).
 *
 * This helps accessibility reader to tread as a interactive button to operation.
 */

/**
 * Wrapped Component will be marked as Immutable.
 * When Component parent trigger render,
 * it will notice children component (use with `responseImmutable`) node that parent has updated.

 * @param Component Passed Component
 * @param triggerRender Customize trigger `responseImmutable` children re-render logic. Default will always trigger re-render when this component re-render.
 */

/**
 * Wrapped Component with `React.memo`.
 * But will rerender when parent with `makeImmutable` rerender.
 */

/**
 * [Legacy] Convert 1e-9 to 0.000000001.
 * This may lose some precision if user really want 1e-9.
 */

/**
 * _.memoize(calColor);
 * _.memoize(calColor, (...args) => args[0]);
 * @param f
 * @param resolver
 */

/**
 * `hast` is close to `React`, but differs in a couple of cases.
 *
 * To get a React property from a hast property, check if it is in
 * `hastToReact`, if it is, then use the corresponding value,
 * otherwise, use the hast property.
 *
 * @type {Record<string, string>}
 */

/**
 * `onClick` event return `info.item` which point to react node directly.
 * We should warning this since it will not work on FC.
 */

/**
 * `tags` mode should fill un-list item into the option list
 */

/**
 * `tgtPoint`: { pageX, pageY } or { clientX, clientY }.
 * If client position provided, will internal convert to page position.
 */

/**
 * `transitionSupport` is used for none transition test case.
 * Default we use browser transition event support check.
 */

/**
 * align dom node flexibly
 * @author yiminghe@gmail.com
 */

/**
 * calculateNodeHeight(uiTextNode, useCache = false)
 */

/**
 * create bezier spline from catmull rom spline
 * @param {Array} crp Catmull Rom Points
 * @param {boolean} z Spline is loop
 * @param {Array} constraint Constraint
 */

/**
 * detect whether two shape is intersected, useful when shape is been rotated
 * 判断两个矩形是否重叠（相交和包含, 是否旋转）
 *
 * - 原理: 分离轴定律
 */

/**
 * flat tree data on expanded state
 *
 * @export
 * @template T
 * @param {*} data : table data
 * @param {string} childrenColumnName : 指定树形结构的列名
 * @param {Set<Key>} expandedKeys : 展开的行对应的keys
 * @param {GetRowKey<T>} getRowKey  : 获取当前rowKey的方法
 * @returns flattened data
 */

/**
 * get direction after coordinate transpose
 * @param direction
 * @param coordinate
 * @returns direction after transpose or not
 */

/**
 * get direction after coordinate.scale
 * @param direction
 * @param coordinate
 */

/**
 * get the element's bounding size
 * @param ele dom element
 * @returns the element width and height
 */

/**
 * get the legend cfg from theme, will mix the common cfg of legend theme
 *
 * @param theme view theme object
 * @param direction legend direction
 * @returns legend theme cfg
 */

/**
 * get the options of axis title，mix the cfg from theme, avoid common themeCfg not work
 * @param theme
 * @param direction
 * @param axisOptions
 * @returns axis title options
 */

/**
 * https://github.com/developit/dlv/blob/master/index.js
 * @param obj
 * @param key
 * @param defaultValue
 */

/**
 * https://github.com/developit/dlv/blob/master/index.js
 * @param obj
 * @param path
 * @param value
 */

/**
 * is value a valid number
 * @param v the input value
 * @returns whether it is a number
 */

/**
 * k-v 存储
 */

/**
 * label 防遮挡布局：在不改变 label 位置的情况下对相互重叠的 label 进行隐藏（非移除）
 * 不同于 'overlap' 类型的布局，该布局不会对 label 的位置进行偏移调整。
 * @param labels 参与布局调整的 label 数组集合
 */

/**
 * lodash (Custom Build) <https://lodash.com/>
 * Build: `lodash modularize exports="npm" -o ./`
 * Copyright jQuery Foundation and other contributors <https://jquery.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */

/**
 * mangle email addresses
 * @param {string} text
 */

/**
 * manually clear container cache to avoid global cache in unit testes
 */

/**
 * marked - a markdown parser
 * Copyright (c) 2011-2022, Christopher Jeffrey. (MIT Licensed)
 * https://github.com/markedjs/marked
 */

/**
 * parse the value position
 * @param val
 * @param scale
 */

/**
 * path 存在以下情况
 * 1. 饼图不为整圆的 path，命令为 M, L, A, L, Z
 * 2. 饼图为整圆的 path，命令为 M, M, A, A, M, Z
 * 3. 环图不为整圆的 path，命令为 M, A, L, A, L, Z
 * 4. 环图为整圆的 path，命令为 M, A, A, M, A, A, M, Z
 * 5. radial-line, 不为整圆时的 path, 命令为 M, A, A, Z
 * 6. radial-line, 为整圆时的 path，命令为 M, A, A, A, A, Z
 * @param path theta 坐标系下圆弧的 path 命令
 */

/**
 * qiankun will inject `appendChild` to insert into other
 */

/**
 * smartypants text replacement
 * @param {string} text
 */

/**
 * using the scale type if user specified, otherwise infer the type
 */

/**
 * view 中缓存 scale 的类
 */

/**
 * 一些默认的样式配置
 */

/**
 * 三层 group 的 z index
 */

/**
 * 不进行递归查找
 */

/**
 * 两个包围盒是否相交
 * @param box1 包围盒1
 * @param box2 包围盒2
 * @ignore
 */

/**
 * 两点之间的距离
 * @param {number} x1 起始点 x
 * @param {number} y1 起始点 y
 * @param {number} x2 结束点 x
 * @param {number} y2 结束点 y
 * @return {number} 距离
 */

/**
 * 两点之间的距离
 * @param {number} x1 起始点 x
 * @param {number} y1 起始点 y
 * @param {number} x2 结束点 x
 * @param {number} y2 结束点 y
 */

/**
 * 为 interval geometry 定制的数据标签重叠自动隐藏布局方法
 * @param items
 * @param labels
 * @param shapes
 */

/**
 * 二分右侧查找
 * https://github.com/d3/d3-array/blob/master/src/bisector.js
 */

/**
 * 二维向量 v1 到 v2 的夹角
 * @param v1
 * @param v2
 * @param direct
 */

/**
 * 交互的基类。
 */

/**
 * 交换两个对象
 */

/**
 * 从配置中获取单个字段的 legend 配置
 * @param legends
 * @param field
 * @returns the option of one legend field
 */

/**
 * 使用 ratio 进行插值计算来更新属性
 * @param {IElement}  shape    元素
 * @param {Animation} animation 动画
 * @param {number}    ratio    比例
 * @return {boolean}  动画是否执行完成
 */

/**
 * 使用牛顿切割法求最近的点
 * @param {number[]} xArr      点的 x 数组
 * @param {number[]} yArr      点的 y 数组
 * @param {number}   x         指定的点 x
 * @param {number}   y         指定的点 y
 * @param {Function} tCallback 差值函数
 */

/**
 * 保证 label 均匀显示 和 不出现重叠，主要解决文本层叠的问题，对于 limitLength 不处理
 * @param {boolean} isVertical  是否垂直
 * @param {IGroup}  labelsGroup label 的分组
 * @param {number} limitLength 另一个方向的长度限制，autoHide 不关心
 * @param {AxisLabelAutoHideCfg} autoHideCfg autoHide overlap 的可选配置参数
 */

/**
 * 保证最后一个 label 可见，即使超过 limitLength 也不隐藏
 * @param {boolean} isVertical  是否垂直
 * @param {IGroup}  labelsGroup label 的分组
 * @param {number} limitLength 另一个方向的长度限制，autoHide 不关心
 * @param {AxisLabelAutoHideCfg} autoHideCfg autoHide overlap 的可选配置参数
 */

/**
 * 保证第一个最后一个 label 可见，即使超过 limitLength 也不隐藏
 * @param {boolean} isVertical  是否垂直
 * @param {IGroup}  labelsGroup label 的分组
 * @param {number} limitLength 另一个方向的长度限制，autoHide 不关心
 * @param {AxisLabelAutoHideCfg} autoHideCfg autoHide overlap 的可选配置参数
 */

/**
 * 保证首个 label 可见，即使超过 limitLength 也不隐藏
 * @param {boolean} isVertical  是否垂直
 * @param {IGroup}  labelsGroup label 的分组
 * @param {number} limitLength 另一个方向的长度限制，autoHide 不关心
 * @param {AxisLabelAutoHideCfg} autoHideCfg autoHide overlap 的可选配置参数
 */

/**
 * 全局注册组件。
 * @param name 组件名称
 * @param plugin 注册的组件类
 * @returns void
 */

/**
 * 创建DOM 节点
 * @param  {String} str Dom 字符串
 * @return {HTMLElement}  DOM 节点
 */

/**
 * 创建交互实例
 * @param name 交互名
 * @param view 交互应用的 View 实例
 * @param cfg 交互行为配置
 */

/**
 * 创建并返回图形的 dom 元素
 * @param  {IShape} shape 图形
 * @return {SVGElement}
 */

/**
 * 创建并返回图形的 svg 元素
 * @param type svg类型
 */

/**
 * 删除全局组件。
 * @param name 组件名
 * @returns void
 */

/**
 * 判断两个数值 是否接近
 * - 解决精度问题（由于无法确定精度上限，根据具体场景可传入 精度 参数）
 */

/**
 * 判断两个点是否重合，点坐标的格式为 [x, y]
 * @param {Array} point1 第一个点
 * @param {Array} point2 第二个点
 */

/**
 * 判断按键是否激活
 * @param [event: KeyboardEvent]键盘事件
 * @param [keyFilter: any] 当前键
 * @returns Boolean
 */

/**
 * 判断新添加的 Label 是否和已存在的发生重叠
 * @param dones
 * @param current
 */

/**
 * 判断是否为有限数
 * @return {Boolean}
 */

/**
 * 判断是否数字
 * @return {Boolean} 是否数字
 */

/**
 * 取消注册 Action
 * @param actionName action 名称
 */

/**
 * 同 equidistance， 首先会保证 labels 均匀显示，然后会保留首尾
 * @param isVertical
 * @param labelsGroup
 * @param {number} limitLength 另一个方向的长度限制，autoHide 不关心
 * @param {AxisLabelAutoHideCfg} autoHideCfg autoHide overlap 的可选配置参数
 */

/**
 * 向量 v1 到 向量 v2 夹角的方向
 * @param  {Array} v1 向量
 * @param  {Array} v2 向量
 * @return {Boolean} >= 0 顺时针 < 0 逆时针
 */

/**
 * 围绕图形中心点进行缩放
 * @param element 进行缩放的图形元素
 * @param ratio 缩放比例
 */

/**
 * 固定角度旋转文本
 * @param  {boolean} isVertical  是否垂直方向
 * @param  {IGroup}  labelsGroup 文本的 group
 * @param  {number}  limitLength 限定长度
 * @param  {number}  customRotate 自定义旋转角度
 * @return {boolean}             是否发生了旋转
 */

/**
 * 填充的平滑曲面图
 */

/**
 * 处理 rect path 的 radius
 * @returns 返回矩形 path 的四个角的 arc 半径
 */

/**
 * 如果自定义箭头并且有 d 需要做偏移，如果直接画，线条会超出箭头尖端，因此需要根据箭头偏移 d, 返回线需要缩短的距离
 * |----------------
 * |<|--------------
 * |
 * @param {number} x1 起始点 x
 * @param {number} y1 起始点 y
 * @param {number} x2 箭头作用点 x
 * @param {number} y2 箭头作用点 y
 * @param {number} d  箭头沿线条方向的偏移距离
 * @return {{dx: number, dy: number}} 返回线条偏移距离
 */

/**
 * 字体宽度
 * @param text 文本
 * @param font 字体
 */

/**
 * 对 dom 元素进行排序
 * @param {IElement} element  元素
 * @param {sorter}   function 排序函数
 */

/**
 * 对元素进行平移操作。
 * @param element 进行变换的元素
 * @param x x 方向位移
 * @param y y 方向位移
 */

/**
 * 对元素进行旋转操作。
 * @param element 进行变换的元素
 * @param rotateRadian 旋转弧度
 */

/**
 * 对同一组(相同 xField )的 Label 进行排序：第一个、最后一个、其他...
 * @param geometry
 * @param labels
 */

/**
 * 对图形元素进行剪切动画
 * @param element 进行动画的图形元素
 * @param animateCfg 动画配置
 * @param coordinate 当前坐标系
 * @param yMinPoint y 轴的最小值对应的图形坐标点
 * @param type 剪切动画的类型
 */

/**
 * 对比当前元素和之前的元素，返回 added, updated, removed
 * @param keyItem 之前的元素的，按照 key-item 的 object 的形式存储
 * @param keys 现在的元素，按照 array 的形式存储
 * @returns 由 added, updated, removed array 构成的 object
 */

/**
 * 封装事件，便于使用上下文this,和便于解除事件时使用
 * @protected
 * @param  {Object} obj   对象
 * @param  {String} action 事件名称
 * @return {Function}        返回事件处理函数
 */

/**
 * 将 bbox 转换成 points
 * @param bbox
 */

/**
 * 将 dom 元素移动到父元素下的指定位置
 * @param {SVGElement} element     dom 元素
 * @param {number}     targetIndex 目标位置(从 0 开始)
 */

/**
 * 将 view 上的一点转换成另一个 view 的点
 * @param view 当前的 view
 * @param sibling 同一层级的 view
 * @param point 指定点
 * @ignore
 */

/**
 * 将数据分组成 map
 * @param data
 * @param condition
 */

/**
 * 将数据转成 path，利用 scale 的归一化能力
 * @param data
 * @param width
 * @param height
 * @param smooth
 */

/**
 * 将点连成平滑的曲线
 * @param points
 */

/**
 * 将点连接成路径 path
 * @param points
 */

/**
 * 将边和填充设置的颜色转换成圆形渐变对象
 * @param {CanvasRenderingContext2D} context canvas 上下文
 * @param {IElement}                 element  图形元素
 * @param {string}                   gradientStr   颜色
 * @returns {any} 渐变对象
 */

/**
 * 将边和填充设置的颜色转换成线性渐变对象
 * @param {CanvasRenderingContext2D} context canvas 上下文
 * @param {IElement}                 element  图形元素
 * @param {string}                   gradientStr   颜色
 * @returns {any} 渐变对象
 */

/**
 * 平滑边界的小提琴图
 */

/**
 * 平滑边界的空心小提琴图
 */

/**
 * 得到会导致元素显示不全的祖先元素
 */

/**
 * 快速判断两个无旋转矩形是否遮挡
 */

/**
 * 所有的 Facet 类
 */

/**
 * 按照比例在数据片段中获取切线的角度
 * @param {array} points 点的集合
 * @param {number} t 百分比 0-1
 */

/**
 * 按照比例在数据片段中获取点
 * @param {array} points 点的集合
 * @param {number} t 百分比 0-1
 * @return {object} 点的坐标
 */

/**
 * 按照给定的 minLimit/maxLimit/tickCount 均匀计算出刻度 ticks
 *
 * @param cfg Scale 配置项
 * @return ticks
 */

/**
 * 描边但不填充的区域图
 */

/**
 * 提取出内部的闭合多边形和非闭合的多边形，假设 path 不存在圆弧
 * @param {Array} path 路径
 * @returns {Array} 点的集合
 */

/**
 * 支持语法的交互类
 */

/**
 * 是否为函数
 * @param  {*} fn 对象
 * @return {Boolean}  是否函数
 */

/**
 * 是否在包围盒内
 * @param {number} minX   包围盒开始的点 x
 * @param {number} minY   包围盒开始的点 y
 * @param {number} width  宽度
 * @param {number} height 高度
 * @param {[type]} x      检测点的 x
 * @param {[type]} y      监测点的 y
 */

/**
 * 是否在记录中，临时因为所有的 view 中的数据不是引用，而使用的方法
 * 不同 view 上对数据的引用不相等，导致无法直接用 includes
 * 假设 x, y 值相等时是同一条数据，这个假设不完全正确，而改成 isEqual 则成本太高
 * 后面改成同一个引用时可以修改回来
 * @param records
 * @param record
 * @param xFiled
 * @param yField
 * @returns
 * @ignore
 */

/**
 * 是否是列表组件
 * @param delegateObject 委托对象
 * @ignore
 */

/**
 * 是否是参数类型
 *
 * @param {Object} value 测试的值
 * @return {Boolean}
 */

/**
 * 是否是布尔类型
 *
 * @param {Object} value 测试的值
 * @return {Boolean}
 */

/**
 * 是否是滑块组件
 * @param delegateObject 委托对象
 * @ignore
 */

/**
 * 是否由 mask 触发
 * @param context 上下文
 * @ignore
 */

/**
 * 更新元素，包括 group 和 shape
 * @param {IElement} element       SVG 元素
 * @param {ChangeType} changeType  更新类型
 */

/**
 * 查找 Label Group 中的文本 shape 对象
 * @param label
 */

/**
 * 根据 action 的 name 获取定义的类
 * @param actionName action 的 name
 */

/**
 * 根据 actions 来做 transform
 * @param m
 * @param actions
 */

/**
 * 根据 marker 是否为线条形 symbol, 来调整下样式
 * @param symbol
 * @param style
 * @param color
 */

/**
 * 根据 scale values 和 coordinate 获取分类默认 range
 * @param scale 需要获取的 scale 实例
 * @param coordinate coordinate 实例
 * @param theme theme
 */

/**
 * 根据 type 获取 facet 类
 * @param type 分面类型
 */

/**
 * 根据主题样式表生成主题结构
 * @param styleSheet 主题样式表
 */

/**
 * 根据交互行为名字获取对应的交互类
 * @param name 交互名字
 * @returns 交互类
 */

/**
 * 根据名称获取 Action 实例
 * @param actionName - action 的名称
 * @param context 上下文
 * @returns Action 实例
 */

/**
 * 根据名称获取对应的动画执行函数
 * @param type 动画函数名称
 */

/**
 * 根据名称获取对应的动画缓动函数
 * @param type 动画缓动函数名称
 */

/**
 * 根据回调函数获取 Action 实例
 * @param callback - action 的回调函数
 * @param context 上下文
 * @returns Action 实例
 */

/**
 * 根据样式表创建 axis 组件主题样式
 * @param styleSheet
 */

/**
 * 根据样式表创建 legend 组件主题样式
 * @param styleSheet
 */

/**
 * 根据状态名获取图表元素
 * @param view View/Chart
 * @param stateName 状态名
 * @ignore
 */

/**
 * 根据类型获取 Adjust 类
 * @param type
 */

/**
 * 根据组件名获取组件类。
 * @param name 组件名
 * @returns 返回组件类
 */

/**
 * 根据自定义帧动画函数 onFrame 来更新属性
 * @param {IElement}  shape    元素
 * @param {Animation} animation 动画
 * @param {number}    elapsed  动画执行时间(毫秒)
 * @return {boolean}  动画是否执行完成
 */

/**
 * 检测点是否在包围盒内
 * @param box 包围盒
 * @param point 点
 * @ignore
 */

/**
 * 注册 Action
 * @param actionName - action 的名称
 * @param ActionClass - 继承自 action 的类
 */

/**
 * 注册 ShapeFactory。
 * @param factoryName  ShapeFactory 名称，对应 Geometry 几何标记名称。
 * @param cfg 注册 ShapeFactory 需要覆写定义的属性。
 * @returns 返回 ShapeFactory 对象。
 */

/**
 * 注册 Shape。
 * @param factoryName 对应的 ShapeFactory 名称。
 * @param shapeType 注册的 shape 名称。
 * @param cfg 注册 Shape 需要覆写定义的属性。
 * @returns shape 返回注册的 shape 对象。
 */

/**
 * 注册 geometry 组件
 * @param name
 * @param Ctor
 * @returns Geometry
 */

/**
 * 注册交互行为
 * @param name 交互行为名字
 * @param interaction 交互类
 */

/**
 * 注册动画执行函数
 * @param type 动画执行函数名称
 * @param animation 动画执行函数
 */

/**
 * 注册动画缓动函数
 * @param type 动画缓动函数名称
 * @param easeFn 动画缓动函数
 */

/**
 * 注册定义的 GeometryLabel 类
 * @param type GeometryLabel 类型名称
 * @param ctor GeometryLabel 类
 */

/**
 * 注册定义的 label 布局函数
 * @param type label 布局函数名称
 * @param layoutFn label 布局函数
 */

/**
 * 注册新的主题配置信息。
 * @param theme 主题名。
 * @param value 具体的主题配置。
 */

/**
 * 注册渲染引擎
 * @param name
 * @param engine
 */

/**
 * 注册计算 ticks 的方法
 * @param key 键值
 * @param method 方法
 */

/**
 * 注册计算包围盒的算法
 * @param type 方法名
 * @param method 方法
 */

/**
 * 清理图例的 Highlight 效果
 * @param list 列表组件，图例或者坐标轴
 * @ignore
 */

/**
 * 点数组转 path
 * @param points
 */

/**
 * 状态量 Action 的基类，允许多个 Element 同时拥有某个状态
 * @class
 * @ignore
 */

/**
 * 矩阵的逆
 * @param {number[]} a 矩阵
 */

/**
 * 碰撞检测算法
 */

/**
 * 空心小提琴图
 */

/**
 * 箭头 path 的设置要求
 * 1. 箭头顶点坐标需要为 (0, 0)
 * 2. 箭头夹角的中心分割线需要与 X 轴正方向对齐
 */

/**
 * 线 path 转 area path
 * @param path
 * @param width
 * @param height
 */

/**
 * 绘制结束箭头
 * @param {IShape} shape 图形
 * @param {ShapeAttrs} attrs shape 的绘图属性
 * @param {number} x1 起始点 x
 * @param {number} y1 起始点 y
 * @param {number} x2 箭头作用点 x
 * @param {number} y2 箭头作用点 y
 */

/**
 * 绘制起始箭头
 * @param {IShape} shape 图形
 * @param {ShapeAttrs} attrs shape 的绘图属性
 * @param {number} x1 起始点 x
 * @param {number} y1 起始点 y
 * @param {number} x2 箭头作用点 x
 * @param {number} y2 箭头作用点 y
 */

/**
 * 背景框的 Action. 只作用于 interval 和 schema geometry
 * @ignore
 */

/**
 * 范围过滤的 Action
 * @ignore
 */

/**
 * 获取 `type` 对应的 [[GeometryLabel]] 类
 * @param type
 * @returns
 */

/**
 * 获取 `type` 对应的 [[GeometryLabelsLayoutFn]] label 布局函数
 * @param type 布局函数名称
 * @returns
 */

/**
 * 获取 axis 的 title 文本
 * @param scale
 * @param axisOption
 */

/**
 * 获取 canvas context
 */

/**
 * 获取 factoryName 对应的 shapeFactory
 * @param factoryName
 * @returns shape factory
 */

/**
 * 获取 interval 矩形背景的 path
 * @param cfg 关键点的信息
 * @param points 已转化为画布坐标的 4 个关键点
 * @param coordinate 坐标系
 * @returns 返回矩形背景的 path
 */

/**
 * 获取 node 上的 align 对齐点 相对于页面的坐标
 */

/**
 * 获取 倒角 矩形
 * - 目前只适用于笛卡尔坐标系下
 */

/**
 * 获取 矩形背景 的样式
 * @param cfg
 */

/**
 * 获取主题配置信息。
 * @param theme 主题名
 */

/**
 * 获取以注册的组件名。
 * @returns string[] 返回已注册的组件名称
 */

/**
 * 获取元矩阵。
 * @returns identity matrix
 */

/**
 * 获取元素旋转矩阵 (以元素的左上角为旋转点)
 * @param element 进行变换的元素
 * @param rotateRadian 旋转弧度
 */

/**
 * 获取包围盒内的图表元素
 * @param view View/Chart
 * @param box 包围盒
 * @ignore
 */

/**
 * 获取包围盒内的图表元素
 * @param view View/Chart
 * @param path 路径
 * @ignore
 */

/**
 * 获取同 view 同一级的 views
 * @param view 当前 view
 * @returns 同一级的 views
 * @ignore
 */

/**
 * 获取图表元素对应字段的值
 * @param element 图表元素
 * @param field 字段名
 * @ignore
 */

/**
 * 获取坐标系范围的 BBox
 * @param coordinate
 * @param margin
 */

/**
 * 获取委托对象
 * @param context 上下文
 * @ignore
 */

/**
 * 获取字段对应数据的类型
 * @param field 数据字段名
 * @param data 数据源
 * @returns default type 返回对应的数据类型
 */

/**
 * 获取封装的事件
 * @protected
 * @param  {Object} obj   对象
 * @param  {String} action 事件名称
 * @return {Function}        返回事件处理函数
 */

/**
 * 获取小提琴图 平滑的边界 path
 * @param points
 * @returns
 */

/**
 * 获取小提琴图的边界 path
 * @param points
 * @returns
 */

/**
 * 获取当前 View 的所有组件
 * @param view View/Chart
 * @ignore
 */

/**
 * 获取当前事件相关的图表元素
 * @param context 交互的上下文
 * @ignore
 */

/**
 * 获取所有的图表元素
 * @param view View/Chart
 * @ignore
 */

/**
 * 获取所有的图表元素
 * @param view View/Chart
 * @param field 字段名
 * @param value 字段值
 * @ignore
 */

/**
 * 获取折线图 path
 */

/**
 * 获取文本的 ... 文本。
 * 算法（减少每次 measureText 的长度，measureText 的性能跟字符串时间相关）：
 * 1. 先通过 STEP 逐步计算，找到最后一个小于 maxWidth 的字符串
 * 2. 然后对最后这个字符串二分计算
 * @param text 需要计算的文本, 由于历史原因 除了支持string，还支持空值,number和数组等
 * @param maxWidth 最大宽度
 * @param font 字体
 * @param str 要替换的文本
 */

/**
 * 获取文本的高度
 * @param text 文本
 * @param fontSize 字体大小
 * @param lineHeight 行高，可以为空
 */

/**
 * 获取标签背景信息: box (无旋转) + rotation (旋转角度)
 */

/**
 * 获取样式
 * @param  {Object} dom DOM节点
 * @param  {String} name 样式名
 * @param  {Any} defaultValue 默认值
 * @return {String} 属性值
 */

/**
 * 获取行间距如果文本多行，需要获取文本间距
 * @param fontSize 字体大小
 * @param lineHeight 行高
 */

/**
 * 获取被遮挡的 elements
 * @param context 上下文
 * @ignore
 */

/**
 * 获取计算 ticks 的方法
 * @param key 键值
 * @returns 计算 ticks 的方法
 */

/**
 * 获取计算包围盒的算法
 * @param type 方法名
 */

/**
 * 获得 area 面积的横向连接线的 px 位置
 * @param data
 * @param width
 * @param height
 */

/**
 * 获得 tooltip 的 title
 * @param originData
 * @param geometry
 * @param title
 */

/**
 * 获得中位数
 * @param array
 */

/**
 * 获得元素的显示部分的区域
 */

/**
 * 获得平均值
 * @param array
 */

/**
 * 计算 Pow 的 ticks
 * @param cfg 度量的配置项
 * @returns 计算后的 ticks
 */

/**
 * 计算 log 的 ticks，考虑 min = 0 的场景
 * @param cfg 度量的配置项
 * @returns 计算后的 ticks
 */

/**
 * 计算 time 的 ticks，对 month, year 进行 pretty 处理
 * @param cfg 度量的配置项
 * @returns 计算后的 ticks
 */

/**
 * 计算两个矩形之间的堆叠区域面积
 */

/**
 * 计算二维向量的垂直向量
 * @param out
 * @param v
 * @param flag
 */

/**
 * 计算几分位 https://github.com/simple-statistics/simple-statistics/blob/master/src/quantile_sorted.js
 * @param x  数组
 * @param p  百分比
 */

/**
 * 计算分类 ticks
 * @param cfg 度量的配置项
 * @returns 计算后的 ticks
 */

/**
 * 计算文本在画布中的宽度
 */

/**
 * 计算文本的宽度
 */

/**
 * 计算时间分类的 ticks, 保头，保尾
 * @param cfg 度量的配置项
 * @returns 计算后的 ticks
 */

/**
 * 计算线性的 ticks，使用 R's pretty 方法
 * @param cfg 度量的配置项
 * @returns 计算后的 ticks
 */

/**
 * 计算线性的 ticks，使用 wilkinson extended 方法
 * @param cfg 度量的配置项
 * @returns 计算后的 ticks
 */

/**
 * 设置 canvas
 * @param {IElement} element 元素
 * @param {ICanvas}  canvas  画布
 */

/**
 * 设置 marker 的 symbol，将 字符串的 symbol 转换为真正的绘制命令
 * @param marker
 */

/**
 * 设置 timeline
 * @param {IElement} element  元素
 * @param {Timeline} timeline 时间轴
 */

/**
 * 转换成时间戳
 * @param value 时间值
 */

/**
 * 边和填充设置的颜色转换成 pattern
 * @param {CanvasRenderingContext2D} context canvas 上下文
 * @param {IElement}                 element  图形元素
 * @param {string}                   patternStr   生成 pattern 的字符串
 */

/**
 * 适用于 interval geometry 的数据标签位置自动调整布局方法
 * @param items
 * @param labels
 * @param shapes
 */

/**
 * 适用于 point geometry 的数据标签位置自动调整布局方法
 * @param items
 * @param labels
 * @param shapes
 * @param region
 * @param cfg
 */

/**
 * 通过 type 获取空页面图片
 */

/**
 * 通过名字获取渲染 engine
 * @param name 渲染引擎名字
 * @returns G engine
 */

/**
 * 通过类型获得 Attribute 类
 * @param type
 */

/**
 * 配置 labelline
 * @param item PolarLabelItem
 */

/**
 * 针对大数据量做优化的 getMaxLabelWidth，做法不是直接去比较每一个 label 的最大宽度
 * 而是先通过比较每个 label 每个的字符串的长度，这里区分了下中英文字符
 * 最终是去字符串最“长”的那个 label 的宽度。
 * @param labels
 */

/**
 * 键盘输入预处理方法
 * @param [keyFilter: any] 当前键
 * @returns () => Boolean
 */

/**
 * 非固定角度旋转文本
 * @param  {boolean} isVertical  是否垂直方向
 * @param  {IGroup}  labelsGroup 文本的 group
 * @param  {number}  limitLength 限定长度
 * @return {boolean}             是否发生了旋转
 */

/**
 * 饼图 outer-label 布局, 适用于 type = pie 且 label offset > 0 的标签
 */

/**
 * 饼图标签 spider 布局, 只适用于 pie-spider 的标签类型
 * region 应该是 labelsRenderer 容器的范围限制(便于后续组件间布局)
 */

/**
 * 高精度加法，解决 0.1 + 0.2 !== 0.3 的经典问题
 *
 * @param num1 加数
 * @param num2 被加数
 * @return {number} 返回值
 */

/**
 * 默认的 syncViewPadding 逻辑
 * @param chart
 * @param views
 * @param PC: PaddingCalCtor
 */

/**
Some credit for this helper goes to http://github.com/YuzuJS/setImmediate
*/

/** (单色)顺序色板 */

/** 0~1转定义域 */

/** @class */

/** @deprecated */

/** @deprecated Do not use since this may failed when used in async */

/** @deprecated Use `config.externalGetKey` instead */

/** @deprecated Use `percent` instead */

/** @deprecated Use hooks instead. This is a legacy function */

/** @deprecated internal use only */

/** @ignore */

/** @license React v0.19.1
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/** @license React v16.14.0
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/** @license React v16.14.0
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/** @license React v17.0.2
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

/** @override */

/** @private @const {!Array<!Document>} */

/** @private @const {!Array<function()>} */

/** @private Do Not use out of this class. We do not promise this is always keep. */

/** @private Test usage only */

/** @private Test usage. Not work in prod */

/** @private internal Usage. do not use in your production */

/** @returns {Blockquote} */

/** @returns {Break} */

/** @returns {Code} */

/** @returns {Definition} */

/** @returns {Emphasis} */

/** @returns {HTML} */

/** @returns {Heading} */

/** @returns {Image} */

/** @returns {InlineCode} */

/** @returns {Link} */

/** @returns {Paragraph} */

/** @returns {Strong} */

/** @returns {Text} */

/** @returns {ThematicBreak} */

/** @type {(code: Code) => code is number} */

/** @type {(from: Node, schema: Schema) => P5Node} */

/** @type {(import('unified').Plugin<[Processor, Options?]|[null|undefined, Options?]|[Options]|[], MdastRoot>)} */

/** @type {ActionTuple} */

/** @type {Array<'left' | 'right' | 'center' | 'none'>} */

/** @type {Array<Align>} */

/** @type {Array<Array<number>>} Sizes of each cell per row. */

/** @type {Array<Array<string>>} */

/** @type {Array<Array<string>>} Cells per row. */

/** @type {Array<AssertAnything>} */

/** @type {Array<Chunk>} */

/** @type {Array<Construct>} */

/** @type {Array<ConstructName>} */

/** @type {Array<Content>} */

/** @type {Array<Element>} */

/** @type {Array<ElementContent>} */

/** @type {Array<Event>} */

/** @type {Array<HastElementContent>} */

/** @type {Array<Middleware>} */

/** @type {Array<Node>} */

/** @type {Array<P5Attribute>} */

/** @type {Array<P5Child>} */

/** @type {Array<Parent>} */

/** @type {Array<PhrasingContent>} */

/** @type {Array<ReactNode>} */

/** @type {Array<StackItem>} */

/** @type {Array<StaticPhrasingContent>} */

/** @type {Array<Token>} */

/** @type {Array<Type | HastText>} */

/** @type {Array<keyof types>} */

/** @type {Array<number>} */

/** @type {Array<number>} Character codes as symbols for alignment per column. */

/** @type {Array<string | number>} */

/** @type {Array<string>} */

/** @type {AttributeClean[string]} */

/** @type {AttributeClean} */

/** @type {Callback} */

/** @type {Chunk[]} */

/** @type {Code} */

/** @type {Comment|Doctype|Element|Raw|Text} */

/** @type {CompileData} */

/** @type {Config} */

/** @type {ConstructName} */

/** @type {ConstructRecord} */

/** @type {Construct} */

/** @type {Create} */

/** @type {Effects['consume']} */

/** @type {Effects['enter']} */

/** @type {Effects['exit']} */

/** @type {Element|Root} */

/** @type {Element} */

/** @type {Error} */

/** @type {Event[]} */

/** @type {Event} */

/** @type {Exiter} */

/** @type {Extension['attentionMarkers']} */

/** @type {Extension['contentInitial']} */

/** @type {Extension['disable']} */

/** @type {Extension['document']} */

/** @type {Extension['flow']} */

/** @type {Extension['flowInitial']} */

/** @type {Extension['insideSpan']} */

/** @type {Extension['string']} */

/** @type {Extension['text']} */

/** @type {Extension} */

/** @type {FindAndReplaceSchema|FindAndReplaceList} */

/** @type {FootnoteDefinition} */

/** @type {FromMarkdownTransform} */

/** @type {FullNormalizedExtension} */

/** @type {GetDefinition} */

/** @type {HPropertyValue} */

/** @type {HResult} */

/** @type {Handler|undefined} */

/** @type {Handle} */

/** @type {HastRoot} */

/** @type {HastText | HastElement} */

/** @type {HastText} */

/** @type {HiddenLocationTracker|undefined} */

/** @type {HiddenPosTracker|undefined} */

/** @type {HiddenPreprocessor|undefined} */

/** @type {HiddenTokenizer|undefined} */

/** @type {Info} */

/** @type {InitialConstruct} */

/** @type {Initializer} */

/** @type {InlineCode} */

/** @type {Link} */

/** @type {ListItem} */

/** @type {Map} */

/** @type {MdastData} */

/** @type {NodeDefinition | NodeDefinitionGetter | undefined} */

/** @type {NodeDefinitionGetter} */

/** @type {NodeJS.ErrnoException} */

/** @type {NodeSchema} */

/** @type {Node|undefined} */

/** @type {Node} */

/** @type {NonNullable<Code>|undefined} */

/** @type {NonNullable<Code>} */

/** @type {NormalizedExtension} */

/** @type {Normal} */

/** @type {Omit<CompileContext, 'sliceSerialize'>} */

/** @type {OnEnterError} */

/** @type {Options | VFile} */

/** @type {Options | null | undefined} */

/** @type {Options} */

/** @type {P5Attribute} */

/** @type {P5Child} */

/** @type {P5Comment} */

/** @type {P5Doctype} */

/** @type {P5Document | P5DocumentFragment} */

/** @type {P5DocumentType} */

/** @type {P5Document} */

/** @type {P5Element} */

/** @type {P5Fragment} */

/** @type {P5Location} */

/** @type {P5ParserOptions} */

/** @type {P5Template} */

/** @type {P5Text} */

/** @type {Pairs} */

/** @type {Paragraph | undefined} */

/** @type {Paragraph} */

/** @type {Parent | undefined} */

/** @type {Parents} */

/** @type {ParseContext} */

/** @type {Pipeline} */

/** @type {Point|undefined} */

/** @type {Point} */

/** @type {Position} */

/** @type {Preprocessor} */

/** @type {Previous} */

/** @type {Processor['attachers'][number]|undefined} */

/** @type {Processor['attachers']} */

/** @type {Processor['freeze']} */

/** @type {Processor['parse']} */

/** @type {Processor['processSync']} */

/** @type {Processor['runSync']} */

/** @type {Processor['stringify']} */

/** @type {Processor} */

/** @type {Properties} */

/** @type {Raw} */

/** @type {ReactElement} */

/** @type {Record<number, {before: boolean, after: boolean}>} */

/** @type {Record<string, Definition>} */

/** @type {Record<string, Deprecation>} */

/** @type {Record<string, MdastFootnoteDefinition>} */

/** @type {Record<string, Position | undefined>} */

/** @type {Record<string, number>} */

/** @type {Record<string, string>} */

/** @type {Record<string, unknown>|undefined} */

/** @type {Record<string, unknown>} */

/** @type {ReferenceType} */

/** @type {RegExpExecArray | null} */

/** @type {RegExpMatchArray|null} */

/** @type {RegExpMatchObject} */

/** @type {Resolver[]} */

/** @type {Resolver} */

/** @type {Root} */

/** @type {Run} */

/** @type {State} */

/** @type {Stitch} */

/** @type {Text} */

/** @type {ToMarkdownHandle} */

/** @type {ToOffset} */

/** @type {ToPoint} */

/** @type {Token | undefined} */

/** @type {TokenizeContext['defineSkip']} */

/** @type {TokenizeContext['now']} */

/** @type {TokenizeContext['sliceSerialize']} */

/** @type {TokenizeContext['sliceStream']} */

/** @type {TokenizeContext['write']} */

/** @type {TokenizeContext|undefined} */

/** @type {Tokenizer} */

/** @type {Token|undefined} */

/** @type {Token} */

/** @type {Transformer|void} */

/** @type {Type | HastElement} */

/** @type {Use} */

/** @type {VFile | undefined} */

/** @type {[number, number][]} */

/** @type {[string | null, string | null]} */

/** @type {any} */

/** @type {boolean | undefined} */

/** @type {boolean|undefined} */

/** @type {boolean} */

/** @type {import('./index.js').Schema} */

/** @type {import('unified').Plugin<[Options?] | void[], string, Root>} */

/** @type {import('unist-util-visit-parents/complex-types.js').BuildVisitor<Root, 'text'>} */

/** @type {keyof Extension} */

/** @type {number | undefined} */

/** @type {number[]} */

/** @type {number|undefined} */

/** @type {number} */

/** @type {string | undefined} */

/** @type {string|null} */

/** @type {string} */

/** @type {unknown[]} */

/** @type {unknown} */

/** A function that accepts a potential "extra argument" value to be injected later,
 * and returns an instance of the thunk middleware that uses that value
 */

/** Always debounce error to avoid [error -> null -> error] blink */

/** Attribute map  */

/** Between in date but not equal of date */

/** Built-in constructor references. */

/** Built-in method references without a dependency on `root`. */

/** Built-in value references. */

/** Converts a decimal to a hex value */

/** Converts a hex value to a decimal */

/** Current step should be update in */

/** Detect free variable `exports`. */

/** Detect free variable `global` from Node.js. */

/** Detect free variable `self`. */

/** Element map */

/** Error message constants. */

/** Filter options and return a new options by the search text */

/** Filter single option if match the search text */

/** Geometry innerLabel 文本字体大小 */

/** Geometry innerLabel 文本字体粗细 */

/** Geometry innerLabel 文本描边粗细 */

/** Geometry innerLabel 文本描边颜色 */

/** Geometry innerLabel 文本行高 */

/** Geometry innerLabel 文本颜色 */

/** Geometry label 文本字体大小 */

/** Geometry label 文本字体粗细 */

/** Geometry label 文本描边粗细 */

/** Geometry label 文本描边颜色 */

/** Geometry label 文本行高 */

/** Geometry label 文本连接线粗细 */

/** Geometry label 文本连接线颜色 */

/** Geometry label 文本颜色 */

/** Geometry overflowLabel 文本字体大小 */

/** Geometry overflowLabel 文本字体粗细 */

/** Geometry overflowLabel 文本描边粗细 */

/** Geometry overflowLabel 文本描边颜色 */

/** Geometry overflowLabel 文本行高 */

/** Geometry overflowLabel 文本颜色 */

/** Geometry 几何标记类型。 */

/** Get unique id for accessibility usage */

/** Hold empty list here since we do not use it */

/** I 形状柱状图，常用于 error bar chart */

/** If overlay is have Wrap a DropDown */

/** If we extract items here, we don't need use omit.js */

/** Inerval 默认 shape，填充的矩形 */

/** Is client side and not jsdom */

/** Lock frame, when frame pass reset the lock. */

/** Mark when touched & validated. Currently only used for `dependencies` */

/** Parse a base-16 hex value into a base-10 integer */

/** PolarLabelItem */

/** Return  */

/** Return a table in div as fixed element which contains sticky info */

/** Skip current step */

/** Slider 字体标签大小 */

/** Slider 字体标签字重 */

/** Slider 字体标签描边粗细 */

/** Slider 字体标签描边色 */

/** Slider 字体标签行高 */

/** Slider 字体标签透明度 */

/** Slider 字体标签颜色 */

/** Slider 手柄宽度 */

/** Slider 手柄背景色 */

/** Slider 手柄背景色透明度 */

/** Slider 手柄边框圆角 */

/** Slider 手柄边框粗细 */

/** Slider 手柄边框色 */

/** Slider 手柄高亮背景色 */

/** Sticky header hooks */

/** This is a placeholder, not real render in dom */

/** This is a syntactic sugar for `columns` prop. So HOC will not work on this. */

/** Trigger when element is visible in view */

/** Unique raw values */

/** Upload fileList. Replace file if exist or just push into it. */

/** Used as a safe reference for `undefined` in pre-ES5 environments. */

/** Used as references for the maximum length and index of an array. */

/** Used as references for various `Number` constants. */

/** Used as the `TypeError` message for "Functions" methods. */

/** Used as the internal argument placeholder. */

/** Used as the maximum memoize cache size. */

/** Used as the semantic version number. */

/** Used as the size to enable large array optimizations. */

/** Used for built-in method references. */

/** Used to check objects for own properties. */

/** Used to compose bitmasks for cloning. */

/** Used to compose bitmasks for function metadata. */

/** Used to compose bitmasks for value comparisons. */

/** Used to compose unicode capture groups. */

/** Used to compose unicode character classes. */

/** Used to convert symbols to primitives and strings. */

/** Used to detect host constructors (Safari). */

/** Used to detect hot functions by number of calls within a span of milliseconds. */

/** Used to detect methods masquerading as native. */

/** Used to detect overreaching core-js shims. */

/** Used to detect unsigned integer values. */

/** Used to identify `toStringTag` values supported by `_.clone`. */

/** Used to map Latin Unicode letters to basic Latin letters. */

/** Used to map characters to HTML entities. */

/** Used to match `RegExp` flags from their coerced string values. */

/** Used to match a single whitespace character. */

/** Used to match backslashes in property paths. */

/** Used to match leading whitespace. */

/** Used to match property names within property paths. */

/** Used to match wrap detail comments. */

/** Used to resolve the decompiled source of functions. */

/** Used to stand-in for `undefined` hash values. */

/** Used to store function metadata. */

/** We need told outside that some list not rendered */

/** We only think `undefined` is empty */

/** `Object#toString` result references. */

/** animate 配置项 */

/** annotation 组件 */

/** arc 图形标注描边颜色 */

/** arc 图形标注粗细 */

/** area inactive 状态下填充透明度 */

/** area 在 active 状态下的填充透明度 */

/** area 在 selected 状态下的填充透明度 */

/** area 填充透明度 */

/** area 填充颜色 */

/** axis 组件 */

/** dataMarker 图形标注线的长度 */

/** e.g. useSelect(userContext) => user */

/** grid 组件 */

/** hollowArea active 状态下的边框粗细 */

/** hollowArea inactive 状态下的边框透明度 */

/** hollowArea selected 状态下的边框粗细 */

/** hollowArea 边框粗细 */

/** hollowArea 边框透明度 */

/** hollowArea 颜色 */

/** hollowInterval active 状态下边框粗细 */

/** hollowInterval active 状态下边框颜色 */

/** hollowInterval inactive 状态下边框透明度 */

/** hollowInterval selected 状态下边框粗细 */

/** hollowInterval selected 状态下边框透明度 */

/** hollowInterval selected 状态下边框颜色 */

/** hollowInterval 边框透明度 */

/** hollowInterval 边框颜色 */

/** if component is unmounted, stop update */

/** interval active 状态下边框粗细 */

/** interval active 状态下边框颜色 */

/** interval inactive 状态下填充透明度 */

/** interval inactive 状态下边框透明度 */

/** interval selected 状态下边框粗细 */

/** interval selected 状态下边框透明度 */

/** interval selected 状态下边框颜色 */

/** interval 填充透明度 */

/** interval 填充颜色 */

/** interval 边框粗细 */

/** labels 容器的范围(后续根据组件的布局设计进行调整) */

/** legend 组件 */

/** line 图形标注粗细 */

/** line 图形标注颜色 */

/** lube 图形标注的虚线间隔 */

/** old random function */

/** range-filter 只用于：brush-filter, brush-x-filter, brush-y-filter */

/** region 图形标注填充颜色 */

/** region 图形标注填充颜色透明色 */

/** region 图形标注描边粗细 */

/** region 图形标注描边颜色 */

/** slider 手柄高度 */

/** slider 滑道前景色 */

/** slider 滑道前景色透明度 */

/** slider 滑道背景色 */

/** slider 滑道背景色透明度 */

/** slider 滑道高度 */

/** text 图形标注文本字体大小 */

/** text 图形标注文本字体粗细 */

/** text 图形标注文本行高 */

/** text 图形标注文本边框粗细 */

/** text 图形标注文本边框颜色 */

/** text 图形标注文本颜色 */

/** the real trigger shape of the event */

/** tooltip crosshairs 辅助线粗细 */

/** tooltip crosshairs 辅助线虚线间隔 */

/** tooltip crosshairs 辅助线颜色 */

/** tooltip 内容框圆角 */

/** tooltip 内容框背景色 */

/** tooltip 内容框阴影 */

/** tooltip 文本字体大小 */

/** tooltip 文本字体粗细 */

/** tooltip 文本行高 */

/** tooltip 文本颜色 */

/** tooltip 组件 */

/** vertical-align: middle */

/** x 画布坐标 */

/** x 窗口坐标 */

/** y 画布坐标 */

/** y 窗口坐标 */

/** 一般柱状图宽度占比，geometry中已添加默认值，为了geometry配置生效默认值为null */

/** 中间层 */

/** 主题样式 */

/** 主题色 */

/** 从 pos.x 移动到 item.x */

/** 从当前这个 view 创建的 scale key */

/** 使用 key-value 结构存储 Element，key 为每个 Element 实例对应的唯一 ID */

/** 使用 object 存储组件 */

/** 光标呈现为十字线。 */

/** 光标呈现为指示链接的指针（一只手） */

/** 其他组件，自定义组件 */

/** 分类色板 1，在数据量小于等于 10 时使用 */

/** 分类色板 2，在数据量大于 10 时使用 */

/** 分面之后的所有分面数据结构 */

/** 前景层 */

/** 参与分组的图形属性名 */

/** 图例 'circle' marker 半径 */

/** 图例 'line' marker 半径 */

/** 图例 'square' marker 半径 */

/** 图例 marker 距离图例文本的间距 */

/** 图例 marker 颜色 */

/** 图例 marker 默认半径大小 */

/** 图例与图表绘图区域的偏移距离  */

/** 图例分页器 marker 填充色 */

/** 图例分页器 marker 填充色透明度 */

/** 图例分页器 marker 大小 */

/** 图例分页器 marker 激活状态填充色 */

/** 图例分页器 marker 激活状态填充色透明度 */

/** 图例分页器 marker 非激活状态填充色 */

/** 图例分页器 marker 非激活状态填充色透明度 */

/** 图例分页器文本字体大小 */

/** 图例分页器文本颜色 */

/** 图例标题文本字体大小 */

/** 图例标题文本字体粗细 */

/** 图例标题文本行高 */

/** 图例标题颜色 */

/** 图例项之间的水平间距 */

/** 图例项垂直方向的间隔 */

/** 图例项文本字体大小 */

/** 图例项文本行高 */

/** 图例项文本颜色 */

/** 图例项粗细 */

/** 图形容器 */

/** 图形属性映射配置 */

/** 图表背景色 */

/** 图表辅助色 */

/** 圆半径 */

/** 坐标圆心 */

/** 坐标系 */

/** 坐标系对象 */

/** 坐标轴刻度文本字体大小 */

/** 坐标轴刻度文本字体粗细 */

/** 坐标轴刻度文本行高 */

/** 坐标轴刻度文本距离坐标轴线的间距 */

/** 坐标轴刻度文本颜色 */

/** 坐标轴刻度线粗细 */

/** 坐标轴刻度线长度 */

/** 坐标轴刻度线颜色 */

/** 坐标轴标题文本字体大小 */

/** 坐标轴标题文本字体粗细 */

/** 坐标轴标题文本行高 */

/** 坐标轴标题详细说明icon颜色 */

/** 坐标轴标题距离坐标轴文本的间距 */

/** 坐标轴标题颜色 */

/** 坐标轴次刻度线粗细 */

/** 坐标轴次刻度线长度 */

/** 坐标轴次刻度线颜色 */

/** 坐标轴线 lineDash 设置 */

/** 坐标轴线粗细 */

/** 坐标轴线颜色 */

/** 坐标轴网格线粗细 */

/** 坐标轴网格线虚线设置 */

/** 坐标轴网格线颜色 */

/** 垂直布局的图例与绘图区域偏移距离 */

/** 处理 text shape 的自动省略 */

/** 多层饼图/环图占比 */

/** 多边形的关键点 */

/** 字体 */

/** 存储上一次渲染时的 element 映射表，用于更新逻辑 */

/** 存储原始数据的字段名 */

/** 存储发生图形属性映射前的数据 */

/** 存储当前 shape 的映射表，键值为 shape id */

/** 定义域转 0~1 */

/** 布局函数 */

/** 引入 Path 对应的 ShapeFactory */

/** 引入 Point 对应的 ShapeFactory */

/** 引入对应的 ShapeFactory */

/** 当前事件对象 */

/** 当前所有的 Action */

/** 当前鼠标是否在 plot 内（CoordinateBBox） */

/** 所有的 Interaction 实例。 */

/** 所有的 component */

/** 所有的 geometry 实例。 */

/** 所有的 scales */

/** 所有的子 view。 */

/** 所有的组件 controllers。 */

/** 描边柱状图 */

/** 描边的平滑曲面图 */

/** 文本省略 */

/** 是否可见 */

/** 是否在 第三象限 */

/** 是否在 第二象限 */

/** 是否在 第四象限 */

/** 是否在第一象限 */

/** 是否存在指定的状态 */

/** 是否对超出坐标系范围的 Geometry 进行剪切 */

/** 是否属于ASCII编码范畴 */

/** 是否生成多个点来绘制图形。 */

/** 是否销毁 */

/** 最小的图表宽度 */

/** 最小的图表高度 */

/** 柱状图最大宽度 */

/** 柱状图最小宽度 */

/** 标识对象是否已销毁 */

/** 检测是否和已布局的堆叠 */

/** 此光标指示可用的帮助（通常是一个问号或一个气球）。 */

/** 此光标指示文本。 */

/** 此光标指示某对象可被移动。 */

/** 此光标指示程序正忙（通常是一只表或沙漏）。 */

/** 水平布局的图例与绘图区域偏移距离 */

/** 清理组件的状态 */

/** 清除当前 labels */

/** 滚动条 滑块填充色 */

/** 滚动条 滑块高亮填充色 */

/** 滚动条 滚道填充色 */

/** 滚动条组件 */

/** 漏斗图 */

/** 点图 active 状态下描边颜色 */

/** 点图 inactive 状态下填充颜色透明度 */

/** 点图 inactive 状态下描边透明度 */

/** 点图 selected 状态下描边粗细 */

/** 点图 selected 状态下描边颜色 */

/** 点图填充颜色 */

/** 点图填充颜色透明度 */

/** 点图大小 */

/** 点图描边粗细 */

/** 点图描边透明度 */

/** 点图描边颜色 */

/** 热力图暂时不支持 callback 回调（文档需要说明下） */

/** 玫瑰图占比 */

/** 生成图形关键点 */

/** 用于判断坐标系范围是否发生变化的标志位 */

/** 空心点图 active 状态下描边粗细 */

/** 空心点图 active 状态下描边透明度 */

/** 空心点图 active 状态下描边颜色 */

/** 空心点图 inactive 状态下描边透明度 */

/** 空心点图 selected 状态下描边粗细 */

/** 空心点图 selected 状态下描边透明度 */

/** 空心点图 selected 状态下描边颜色 */

/** 空心点图大小 */

/** 空心点图描边粗细 */

/** 空心点图描边透明度 */

/** 空心点图描边颜色 */

/** 线图 Active 状态下粗细 */

/** 线图 inactive 状态下透明度 */

/** 线图 selected 状态下粗细 */

/** 线图粗细 */

/** 线图透明度 */

/** 线图颜色 */

/** 组件的选项是否同 element 匹配 */

/** 缩略轴组件 */

/** 背景层 */

/** 获取 x 轴对应的 scale 实例。 */

/** 获取 y 轴对应的 scale 实例。 */

/** 获取Tick的格式化结果 */

/** 获取label长度 */

/** 获取图形属性默认的映射值。 */

/** 获取坐标轴需要的ticks */

/** 获取字符串长度 */

/** 获取对应的 dom 原生时间 */

/** 获取最长的 label */

/** 获取触发的列表组件 */

/** 获得滚动条位置  */

/** 计算选中范围，只考虑expanded情况以优化性能 */

/** 设置滚动条位置  */

/** 设置状态是否激活 */

/** 语义色 */

/** 负数情况 */

/** 起始点 */

/** 辅助组件占图表的尺寸的最大比例：如图表上方的图例最多占图表高度的25% */

/** 连续图例文本字体大小 */

/** 连续图例文本字体粗细 */

/** 连续图例文本行高 */

/** 连续图例文本颜色 */

/** 连续图例滑块填充色 */

/** 连续图例滑块宽度 */

/** 连续图例滑块边框粗细 */

/** 连续图例滑块边框颜色 */

/** 连续图例滑块颜色 */

/** 连续图例滑块高度 */

/** 逆时针 */

/** 配置开启的组件插件，默认为全局配置的组件。 */

/** 重新初始化 */

/** 金字塔图，尖底漏斗图 */

/** 销毁 */

/** 需要同步的 scale 分组， key: scaleKeyArray */

/** 默认标识位，用于判定数据是否更新 */

/** 默认绘制的 Shape 类型 */

/******************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */

/************************************************************************/

/******/

/***/

/*, ...nodes */

/*, mode, …*/

/*, values...*/

/*------------------------------------------------------------------------*/

/*--------------------------------------------------------------------------*/

/*Create*/

/*create*/

/*globals define, module */

/*if (x.length === 0) { // 当前场景这些条件不可能命中
      throw new Error('quantile requires at least one value.');
    } else if (p < 0 || p > 1) {
      throw new Error('quantiles must be between 0 and 1');
    } else */

/*insert*/

//

// minColumnWidth可能设置为0

// 对剪切图形做动画

//            return element.offsetParent;

//           https://github.com/ant-design/ant-design/issues/24197

//          () Skip orphan inside strong  () Consume to delim (1) #***                (2) a***#, a***                   (3) #***a, ***a                 (4) ***#              (5) #***#                 (6) a***a

//        (1) and (2) can only be a Right Delimiter. (3) and (4) can only be Left.  (5) and (6) can be either Left or Right.

//        if (UA.ie && ieMode < 8) {

//        }

//       + (t ** 3) * p2x,

//       + (t ** 3) * p2y,

//       + t1 * 3 * t * t * c2x

//       + t1 * 3 * t * t * c2y

//       + t1 * t1 * 3 * t * c1x

//       + t1 * t1 * 3 * t * c1y

//       0 - 9

//       0 - 99

//       0 - 999

//       0 - 9999

//       0 - inf

//       don't use `shouldUpdate`. `dependencies` is view as a shortcut if `shouldUpdate`

//       else to check if value changed

//       is not provided

//       needs to implement call(observer: Subscriber<R>): Subscriber<Observable<T>>

//      00 - 99

//      For example <List name="list"><Field name={['list', 0]}></List>

//      If `namePathList` is [['list', 0]] (Field value update), List shouldn't be updated

//      If `namePathList` is [['list']] (List value update), Field should be updated

//      Subscription yet, or,

//      to the shared connection Subscription

//      |  Node2  |

//     // 如果没限制 limitLength 则直接返回 false

//     000 - 999

//     999 - 9999

//     Pos(0, 1, ...)

//     before   after

//     character:

//     isOut = canvasBBox.height > limitLength;

//     isOut = canvasBBox.width > limitLength;

//     originalAction.schedule(counter + 1);

//     return false;

//     setQuery((prevStatus) => e.target.value);

//     x: (t1 ** 3) * p1x

//     y: (t1 ** 3) * p1y

//     |

//    -inf - inf

//    0000 - 9999

//    http://jsperf.com/quaternion-slerp-implementations

//    is used by selectorFactory to decide if it should reinvoke on props changes.

//    new function as the true mapToProps for subsequent calls.

//    the developer that their mapToProps function is not returning a valid result.

//    this is legit because `next()` will never be called by a subscription in this case.

//   .publish()

//   .refCount()

//   .subscribe();

//   .take(5)

//   /* ... I'm a busy worker bee ... */

//   /* wait 100ms before rescheduling the action */

//   // 如果这时候

//   // 将之前的 clipShape 销毁

//   2.1 If `dependencies` is set, `name` is not set and `shouldUpdate` is not set,

//   2.2 If `shouldUpdate` provided, use customize logic to update the field

//   99999 - 999999

//   => if you dragenter from top, you mouse will still be consider as in the top node

//   [ 0, 0 ],

//   [ 1, 1 ],

//   a. RefCountSubscriber doesn't have a reference to the shared connection

//   allowClear

//   b. RefCountSubscriber's connection Subscription reference is identical

//   canvas.refreshElement(element, changeType, canvas);

//   const ax = a[0];

//   const ay = a[1];

//   const bx = b[0];

//   const by = b[1];

//   const canvasBBox = label.getCanvasBBox();

//   const group = this.get('group');

//   const newGroup = this.createOffScreenGroup();

//   const point = this.getTickPoint(tick.value + tickSegment / 2);

//   const t1 = 1 - t;

//   const tick = ticks[tickCount - 1];

//   https://github.com/zloirock/core-js/issues/1128

//   https://github.com/zloirock/core-js/issues/1130

//   if (!limitLength) {

//   if (isVertical) {

//   let isOut = false;

//   newGroup.destroy(); // 销毁虚拟分组

//   onChange={(e)=> {

//   options: OptionsWithFormat<TData, TParams, TFormated, TTFormated>,

//   options?: OptionsWithoutFormat<TData, TParams>,

//   plugins?: Plugin<TData, TParams>[],

//   preShape.destroy();

//   refresh = intersectRect(bbox, region);

//   return NaN;

//   return [ax + (bx - ax) * t, ay + (by - ay) * t];

//   return false;

//   return isOut;

//   return {

//   service: Service<TData, TParams>,

//   setTimeout(function () {

//   tangentAngle += Math.PI;

//   textareaRef.current.scrollTop = scrollTop;

//   textareaRef.current.setSelectionRange(selectionStart, selectionEnd);

//   this._emitEvent('mouseleave', ev, pointInfo, this.currentShape, this.currentShape, null);

//   this.applyOffset();

//   this.currentShape = null;

//   this.deleteElements();

//   this.props.onLazyLoad([leftMostSlide])

//   this.renderInner(newGroup);

//   this.updateElements(newGroup, group);

//   value={query}

//   var originalAction = this;

//   }

//   } else {

//   }, 100);

//   };

//   }}

//  * Detects whether the mapToProps function being called depends on props, which

//  * On first call, handles mapToProps if returns another function, and treats that

//  * On first call, verifies the first result is a plain object, in order to warn

//  * days do not bubble at all

//  * milliseconds bubble up until they become hours

//  * months bubble up until they become years

//  ... so we can do a linear interpolation

//  In other browsers it only includes elements with position absolute, relative or

//  RCDATA state

//  else { // 暂时仅处理连续字段

//  not change the value by keyboard

//  差值函数

//  正反选数据: 只有当 radio === truthy 的时候才会有 legend-item-radio 这个元素

//  精度损失，只取小数点后10位。

// !children: https://github.com/ant-design/ant-design/issues/14298

// "Software"), to deal in the Software without restriction, including

// "add"/null, "subtract", or "prev". When aggressive is false

// "break on all exceptions" in your console,

// "consumed" by the delegate iterator. If context.method was

// "from" and "to" quaternions are very close

// "group" (to the start of next group of word or

// "gutter", "class", "widget"

// "line", "div" (display.lineDiv), "local"./null (editor), "window",

// "page" or "line". The resulting position will have a hitSide=true

// "return", allow the original .return call to continue in the

// ## Build Metadata

// ## Build Metadata Identifier

// ## Full Version String

// ## Main Version

// ## Non-numeric Identifier

// ## Numeric Identifier

// ## Pre-release Version

// ## Pre-release Version Identifier

// #2279 修复resize之后tooltip越界的问题

// #3261: make sure, that we're not starting a second selection

// % (ET):  European Number Terminator

// '%'

// '+10:00' > ['10',  '00']

// '-' is false for all relational operators (e.g. <, >=) so this setting

// '-1530'  > ['-15', '30']

// 'C' 的参数，1、2 为第一个控制点，3、4 为第二个控制点，5、6 为结束点

// 'O'

// 'Project' the visible viewport to cover the area that is being

// 'd'

// 'j'

// 'line' 默认折线；'dot' 点线 ···；'dash' 断线 - - -

// 'o'

// 'other' property containing the position of the secondary cursor

// 's'

// 'simulates' scrolling that position into view in a cheap way, so

// 'too much recursion' error.

// 'wrap f in an operation, performed on its `this` parameter'.

// ()

// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.

// (1582-10-15 00:00).  JSNumbers aren't precise enough for this, so

// (5)

// (Adjust for extended bound, if necessary.)

// (This multiple render will not trigger effect so you can not clean up this

// (`&not`, for instance), which leads to situations where parsing the assumed

// (`parse5` or `hast-util-from-parse5`) looks at it, we can pass nodes

// (and non-touching) ranges, sorted, and an integer that indicates

// (backwards compatibility) while at the same time support features

// (ctrl-click), rectangle drag (alt-drag), or xwin

// (flow).

// (fmt)

// (fmt, 5)

// (for example, `DOMQuad` and similar in FF41-)

// (http://ejohn.org/blog/javascript-micro-templating/)

// (left-to-right), or an array of sections ({from, to, level}

// (markTextShared will call out to this again, once per

// (mx > nx || my < ny) && (alpha += 180);

// (not linked ones).

// (returning false) when there is nothing to be done and forced is

// (think of clock changes)

// (true)

// (true, 5)

// (true, fmt)

// (true, fmt, 5)

// (typically set to true for forced single-line indents), empty

// (unpadded delimiter row), could result in a table.

// (when the bar is hidden). If it is still visible, we keep

// (x - cx)^2 + (y - cy)^2 = totalR^2

// ): Result<TData, TParams>

// ): Result<TFormated, TParams>

// * <https://github.com/micromark/micromark-extension-footnote>

// * <https://github.com/syntax-tree/mdast-util-footnote>

// * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages

// * https://developer.mozilla.org/en/DOM/window.postMessage

// * if day of month is given, default month and year

// * if month is given, default only year

// * if no year, month, day of month are given, default to today

// * if year is given, don't default anything

// + (ES):  European Number Separator

// +00 -00 +00:00 -00:00 +0000 -0000 or Z

// +00:00 -00:00 +0000 -0000 or Z

// +0200, so we adjust the time as needed, to be valid.

// , (CS):  Common Number Separator

// - However, we may have gotten new wrapper props after that

// - This render may have been triggered by a Redux store update that produced new child props

// -- 0 (both), -1 (left), or 1 (right). When lineObj is true, the

// -- for invalidation -- followed by pairs of end positions and

// -------------------- Annotation，图形标注 --------------------

// -------------------- Geometry labels --------------------

// -------------------- Geometry 图形样式--------------------

// -------------------- Scrollbar 组件样式--------------------

// -------------------- Slider 组件样式--------------------

// -------------------- Tooltip --------------------

// -------------------- 图例 --------------------

// -------------------- 坐标轴 --------------------

// ---------------------

// --^--|----=====| <- mousePosition

// -1 means should display AM

// -1 不应该出现的情况，直接插入数组后面.

// -999999 - 999999

// ...

// ...but misinterprets leading-number strings, particularly hex literals ("0x...")

// .5 gets interpreted as half of the total, instead of half of 1

// .constructor.prototype properties for functions that return Generator

// .throw, and .return (see defineIteratorMethods).

// .throw, and .return methods.

// .toUpperCase handles XHTML

// />

// 0

// 0 ---- 3

// 0 到 positiveMin的占比

// 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)

// 1 (EN):  European Number

// 1 ---- 2

// 1. If `namePath` exists in `namePathList`, means it's related value and should update

// 1. do axis update

// 1. foreground

// 1. ready === undefined

// 1. try drop after

// 1. try drop inside

// 1. try insert after Node1

// 1. x, y 都不是数组

// 1. 不存在则创建

// 1. 之前图形在视窗内，但是现在不再视窗内

// 1. 保存数据

// 1. 先处理需要在图形渲染之后的辅助组件 需要在 Geometry 完成之后，拿到图形信息

// 1. 合并 field 对应的 scaleDef，合并原则是底层覆盖顶层（就近原则）

// 1. 同步子 view padding

// 1. 处理数据

// 1. 复原修改过的定位参数

// 1. 子 view 大小相对 coordinateBBox，changeSize 的时候需要重新计算

// 1. 当存在 status || color 时，count 值强制改为 count

// 1. 清空缓存和计算数据

// 1. 渲染几何标记

// 1. 空的 group

// 1. 缓存到 scales

// 1. 背景

// 1. 遍历求得最大最小值，values 等

// 1. 重置 matrix

// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.

// 1.0.0-5 bumps to 1.0.0

// 1.0000000001. This causes `segments` to be greater than one, which is an

// 1.1.0 bumps to 2.0.0

// 1.2.0 patches to 1.2.1

// 1.2.0-5 bumps to 1.2.0

// 1.2.0-5 patches to 1.2.0

// 1.2.0-beta.1 bumps to 1.2.0-beta.2,

// 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0

// 1.2.1 bumps to 1.3.0

// 1/(4w)

// 100% pie slice

// 1000

// 1000 * 60

// 1000 * 60 * 60

// 1000 * 60 * 60 * 24 * 7, negate dst

// 1000 * 60 * 60 * 24, negate dst

// 100ms 内发生过点击事件，则从点击位置动画展示

// 12 Hours

// 12 months -> 1 year

// 123456789 123456789.123

// 16 17 18 91 92 是修饰键的 keyCode，如果 keyCode 是修饰键，那么激活数量就是修饰键的数量，如果不是，那么就需要 +1

// 16.3+ will not execute our will-update method;

// 19.1.2.1 Object.assign(target, source, ...)

// 19.1.2.14 / 15.2.3.14 Object.keys(O)

// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])

// 19.1.2.2 Object.create(O [, Properties])

// 19.1.2.3 Object.defineProperties(O, Properties)

// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)

// 19.1.2.4 Object.defineProperty(O, P, Attributes)

// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)

// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)

// 19.1.2.7 Object.getOwnPropertyNames(O)

// 19.1.2.8 Object.getOwnPropertySymbols(O)

// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)

// 19.1.3.1 Object.assign(target, source)

// 19.1.3.19 Object.setPrototypeOf(O, proto)

// 19.4.1.1 Symbol([description])

// 19.4.2.1 Symbol.for(key)

// 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14

// 19.4.2.5 Symbol.keyFor(sym)

// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)

// 19.4.3.5 Symbol.prototype[@@toStringTag]

// 2 ** 53 - 1 == 9007199254740991

// 2 - 0 - 3

// 2.

// 2. clone shape & color it

// 2. do grid update

// 2. do not allow drop

// 2. ready === true

// 2. try drop after

// 2. y是数组，x不是

// 2. 创建实例

// 2. 只有指定了可以调整当前方向才调整

// 2. 右滑块的滑动

// 2. 同步

// 2. 处理非 regionFilter

// 2. 如果当前的图形以及父元素都没有发生过变化，refresh = false 不会走到这里，所以这里的图形都是父元素发生变化，但是没有在视图内的元素

// 2. 如果没有设置，则可以使用 text 字段替代 count

// 2. 存储当前点击位置

// 2. 左侧滑块和文字位置

// 2. 左右文字

// 2. 所有 elements 没有在绘图区域

// 2. 是否存在父 view，在则递归，否则创建

// 2. 更新 coordinate

// 2. 有了 shape 之后设置背景，位置（更新的时候）

// 2. 清空 geometries

// 2. 渲染

// 2. 绘制组件

// 2. 缓存到 syncScales，构造 Record<sync, string[]> 数据结构

// 2. 重新执行作用于 matrix 的 action

// 20.2.1.9 Math[@@toStringTag]

// 21.1.3.27 String.prototype[@@iterator]()

// 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)

// 22.1.3.13 Array.prototype.keys()

// 22.1.3.29 Array.prototype.values()

// 22.1.3.30 Array.prototype[@@iterator]()

// 22.1.3.4 Array.prototype.entries()

// 24.3.2 JSON.stringify(value [, replacer [, space]])

// 24.3.3 JSON[@@toStringTag]

// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()

// 2w

// 2维

// 3.  If the remaining unparsed-attributes contains a %x3B (";")

// 3. clip

// 3. do not allow drop

// 3. group 下面的 elements 隐藏掉

// 3. x是数组，y不是

// 3. 初始化 Geometry

// 3. 初始化组件 component

// 3. 前景选中区域

// 3. 右侧滑块和文字位置

// 3. 在根节点 view 通过 scalePool 创建

// 3. 将 view 中的组件按照 view padding 移动到对应的位置

// 3. 开始滑动的时候，绑定 move 和 up 事件

// 3. 添加默认 action

// 3. 清空 controllers

// 3. 遍历子 view 进行 change data

// 3.1.1.1 OrdinaryHasMetadata(MetadataKey, O, P)

// 3.1.2.1 OrdinaryHasOwnMetadata(MetadataKey, O, P)

// 3.1.3.1 OrdinaryGetMetadata(MetadataKey, O, P)

// 3.1.4.1 OrdinaryGetOwnMetadata(MetadataKey, O, P)

// 3.1.5.1 OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P)

// 3.1.6.1 OrdinaryMetadataKeys(O, P)

// 3.1.7.1 OrdinaryOwnMetadataKeys(O, P)

// 314px. And it doesn't happen all the time. So just ignore this delta

// 3600 seconds -> 60 minutes -> 1 hour

// 4 - 1 - 5

// 4. x, y 都是数组

// 4. 删除 scale 缓存

// 4. 处理分面逻辑，最终都是生成子 view 和 geometry

// 4. 左右滑块

// 4. 布局计算每隔 view 的 padding 值

// 4. 执行 action

// 4.1. 自动加 auto padding -> absolute padding，并且增加 appendPadding

// 4.1.2 Reflect.metadata(metadataKey, metadataValue)

// 4.2. 计算出新的 coordinateBBox，更新 Coordinate

// 400 years have 12 months === 4800

// 400 years have 146097 days (taking into account leap year rules)

// 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset

// 6 ECMAScript Data Typ0es and Values

// 6.1.1 The Undefined Type

// 6.1.2 The Null Type

// 6.1.5 The Symbol Type

// 6.1.7 The Object Type

// 7.1 Type Conversion

// 7.1.1 ToPrimitive(input [, PreferredType])

// 7.1.1.1 OrdinaryToPrimitive(O, hint)

// 7.1.12 ToString(argument)

// 7.1.13 ToObject(argument)

// 7.1.14 ToPropertyKey(argument)

// 7.1.15 ToLength

// 7.1.2 ToBoolean(argument)

// 7.1.4 ToInteger

// 7.2 Testing and Comparison Operations

// 7.2.1 RequireObjectCoercible(argument)

// 7.2.2 IsArray(argument)

// 7.2.3 IsCallable(argument)

// 7.2.4 IsConstructor(argument)

// 7.2.7 IsPropertyKey(argument)

// 7.3 Operations on Objects

// 7.3.9 GetMethod(V, P)

// 7.4 Operations on Iterator Objects

// 7.4.4 IteratorValue(iterResult)

// 7.4.5 IteratorStep(iterator)

// 7.4.6 IteratorClose(iterator, completion)

// 9.1 Ordinary Object Internal Methods and Internal Slots

// 9.1.1.1 OrdinaryGetPrototypeOf(O)

// 90px below viewport and offsetTop is 100, it is considered visible.

// :

// ;

// < ie8 不支持 win.pageXOffset, 则使用 docElem.scrollLeft

// <-- must stay first

// <Badge count={4} style={{ backgroundColor: '#fff', color: '#999', borderColor: '#d9d9d9' }} />

// <Badge status="success" />

// <Badge status="success" count={<Icon type="xxx" />}></Badge>

// <Drawer>{show && <Drawer />}</Drawer>

// <Input

// <MyComponent isVideoChild />

// <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>

// <http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef (WCAG Version 2)

// <http://www.w3.org/TR/css3-values/#integers>

// <http://www.w3.org/TR/css3-values/#number-value>

// <https://github.com/browserify/path-browserify>.

// <https://github.com/defunctzombie/node-process/blob/master/browser.js>.

// <https://github.com/nodejs/node/blob/master/lib/path.js>.

// <https://github.com/syntax-tree/mdast-util-to-markdown/blob/51a2038/lib/unsafe.js#L57>

// <input type="date" />

// <input type="datetime-local" />

// <input type="datetime-local" step="0.001" />

// <input type="datetime-local" step="1" />

// <input type="time" />

// <input type="time" step="0.001" />

// <input type="time" step="1" />

// <input type="week" />

// =                  Global Form Control                  =

// ==                               Render                               ==

// ==-- Parse "addon" extensions --== //

// ==-- Parse "overwrite" extensions --== //

// ==-- Parse WalkTokens extensions --== //

// ===== Will get fully compare when not config namePathList =====

// ============ Align with left & right ============

// ============ Align with top & bottom ============

// ============== Ellipsis ==============

// =============== Expand ===============

// ================ Copy ================

// ================ Edit ================

// ================ Primary Color ================

// ================ RowSpan & ColSpan =================

// ================ Success Color ================

// ================ Warning Color ================

// ================ expandedKeys =================

// ================ flattenNodes =================

// ================ selectedKeys =================

// ================= Error Color =================

// ================= Info Color ==================

// ================= Transition =================

// ================= checkedKeys =================

// ================= loadedKeys ==================

// ================== Addon ================== //

// ================== Collapse Motion ==================

// ================== INTERNAL HOOKS ==================

// ================== Prefix & Suffix ================== //

// ================== Tree Node ==================

// =================== Measure ===================

// =================== Render ===================

// =================== Render: Func ===================

// ==================== Customize =====================

// ==================== Default Image Preview ====================

// ==================== Record KeyPath ====================

// ==================== Render =====================

// ==================== View Operation ====================

// ===================== Accessibility ====================

// ===================== Effect =====================

// ===================== Effects ======================

// ===================== Format =====================

// ===================== Icons =====================

// ===================== Motion ======================

// ===================== Remove Password value =====================

// ===================== Render =====================

// ===================== Render ======================

// ====================== Active Key ======================

// ====================== Input ======================

// ====================== Mode ======================

// ====================== Open Keys ======================

// ====================== Operations ======================

// ====================== Parser & Formatter ======================

// ====================== Ref =======================

// ====================== Refs ======================

// ====================== Render ======================

// ====================== Render =======================

// ====================== Responsive ======================

// ====================== Selections ======================

// ====================== Update ======================

// ======================= Children =======================

// ======================= Context ========================

// ======================= Init =======================

// ======================= Keyboard =======================

// ======================= Ref =======================

// ======================= Render =======================

// ======================= Submit ========================

// ======================= Tree Data =======================

// ======================== Active ========================

// ======================== Aligns ========================

// ======================== Context ==========================

// ======================== Dropdown ========================

// ======================== Effect ========================

// ======================== Errors ========================

// ======================== Events ========================

// ======================== Function ========================

// ======================== Instance ========================

// ======================== Internal Hooks ========================

// ======================== Mobile ========================

// ======================== Motion ========================

// ======================== Observer ========================

// ======================== Range Picker ========================

// ======================== Render ========================

// ======================== Render =========================

// ======================== Select ========================

// ======================== Status ========================

// ======================== Step ========================

// ========================= Accessibility ==========================

// ========================= Disable Date ==========================

// ========================= Effect ========================

// ========================= Effect =========================

// ========================= Events =========================

// ========================= Field Entity Interfaces =========================

// ========================= Find match ellipsis content =========================

// ========================= Keyboard =========================

// ========================= Mobile ========================

// ========================= Mode =========================

// ========================= Open =========================

// ========================= Path =========================

// ========================= Path Register =========================

// ========================= Path Tracker ==========================

// ========================= Refs =========================

// ========================= Render ========================

// ========================= Render =========================

// ========================= Render ==========================

// ========================= Responsive =========================

// ========================= Scroll ========================

// ========================= Static =========================

// ========================= Unmount ==========================

// ========================== Click ==========================

// ========================== Controlled ==========================

// ========================== Dev Warning =========================

// ========================== Effect ==========================

// ========================== Events ==========================

// ========================== Expandable ==========================

// ========================== Mode ===========================

// ========================== Motion End ==========================

// ========================== Render ==========================

// ========================== Scroll ==========================

// ========================== Search ==========================

// ========================== Selections ==========================

// ========================== Sibling ==========================

// ========================== Tab ==========================

// ========================== Values ==========================

// ========================== Visible Calculation =========================

// =========================== Dom Node ===========================

// =========================== Hook ===========================

// =========================== Level ===========================

// =========================== Observe ============================

// =========================== Observer ===========================

// =========================== Path User ===========================

// =========================== Picker ===========================

// =========================== Render ===========================

// =========================== Validate ===========================

// =========================== Visible ============================

// =========================== onRow ===========================

// ============================ Column ============================

// ============================ Cursor ============================

// ============================ Effect ============================

// ============================ Fields ============================

// ============================ Filter ============================

// ============================ Footer ============================

// ============================ Keyboard ============================

// ============================ Options ============================

// ============================ Private ============================

// ============================ Ranges =============================

// ============================ Render ============================

// ============================ Return =============================

// ============================ Selector ============================

// ============================ Status ============================

// ============================ Styles ============================

// ============================ Submit ============================

// ============================ Trigger ============================

// ============================ Warning ============================

// ============================ Warning =============================

// ============================= Arrow ==============================

// ============================= Child Component =============================

// ============================= Clear ==============================

// ============================= Data =============================

// ============================= Effect =============================

// ============================= Events =============================

// ============================= Icon =============================

// ============================= Icons =============================

// ============================= Info =============================

// ============================= Misc ==============================

// ============================= Panel =============================

// ============================= Render =============================

// ============================= Search =============================

// ============================= State =============================

// ============================= Step =============================

// ============================= Style ==============================

// ============================= Sync ==============================

// ============================= Text ==============================

// ============================= Value ==============================

// ============================== AutoSize ==============================

// ============================== Field Control ==============================

// ============================== Motion ==============================

// ============================== Observe ==============================

// ============================== Ref ===============================

// ============================== Subscriptions ==============================

// ============================== Visible Handlers ==============================

// =============================== Body ===============================

// =============================== Const ===============================

// =============================== Filter ===============================

// =============================== In Range ===============================

// =============================== Motion ===============================

// =============================== Offset ===============================

// =============================== Ref ================================

// =============================== Render ===============================

// =============================== Styles ===============================

// =============================== Value ================================

// ================================ Effect ================================

// ================================ Height ================================

// ================================ Icon ================================

// ================================ Item ================================

// ================================ Legacy ================================

// ================================ Render ================================

// ================================ Scroll ================================

// ================================ UUID ================================

// ================================= Effect =================================

// ================================= Hook =================================

// ================================= MISC =================================

// ================================= Ref ==================================

// ================================= Render =================================

// ================================= Size =================================

// ================================== Effect ==================================

// ================================== Render ==================================

// ================================== Render ===================================

// ================================== Utils ==================================

// =================================== Render ===================================

// =========================================================

// ========================================================================

// > a

// > | e |

// > ~~~c

// >=0.0.0 is like a star

// >>> Arrow keys

// >>> Check if expand column need to fixed

// >>> Click

// >>> Close

// >>> Content

// >>> ContextMenu

// >>> Create expandable column

// >>> Deduplicate additional expand column

// >>> Expand

// >>> Focus

// >>> Hover(enter)

// >>> Hover(leave)

// >>> Input Node

// >>> Insert expand column if not exist

// >>> Max & Min limit

// >>> Parser

// >>> Render Selector Node. Includes Item & Rest

// >>> Select

// >>> Select item

// >>> Selections

// >>> Title

// >>> Touch events

// >>> Wheel event

// >>> collect sub errors

// >>>>> Children

// >>>>> Children Node

// >>>>> Choice render fun by `renderRawItem`

// >>>>> ClassName

// >>>>> Container

// >>>>> Format start & end values

// >>>>> List node

// >>>>> Open picker when

// >>>>> Render

// >>>>> Select keys

// >>>>> Title

// >>>>> Trigger `onChange` event

// >>>>> Trigger select

// >>>>> Validate by parallel

// >>>>> Validate by serialization

// >>>>>> Fixed Header

// >>>>>> Unique table

// >>>>>>>>> Spinning

// >>>>>>>>>> Direction

// >>>>>>>>>> Expand & Selection

// @2018-07-25 by blue.lb 这里去掉浮动，火狐上存在样式错位

// @@iterator function is called on it. Some browsers' implementations of the

// @see https://github.com/antvis/g/issues/634

// @see https://github.com/antvis/util/issues/68

// @todo G 中事件定义为 object 不正确，这里先 ignore

// @ts-expect-error Assume `root` is not a child.

// @ts-expect-error Assume no booleans in `className`.

// @ts-expect-error Assume no booleans in array.

// @ts-expect-error Assume no booleans were in arrays.

// @ts-expect-error Assume no roots in `nodes`.

// @ts-expect-error Constants are fine to assign.

// @ts-expect-error Custom.

// @ts-expect-error Hush, it’s fine!

// @ts-expect-error If there’s a footer, there were definitions, meaning block

// @ts-expect-error If we’ve seen this token, and it was marked as not

// @ts-expect-error Indexable.

// @ts-expect-error It’s fine!

// @ts-expect-error It’s fine.

// @ts-expect-error Looks like a list.

// @ts-expect-error Mark the last token as “walked into” w/o finding

// @ts-expect-error Patch instead of assign required fields to help GC.

// @ts-expect-error Patched

// @ts-expect-error Patched.

// @ts-expect-error Points w/ non-negative `_bufferIndex` reference

// @ts-expect-error Properties are not supported for roots.

// @ts-expect-error Same as above.

// @ts-expect-error Types are out of date.

// @ts-expect-error `Buffer` does allow an encoding.

// @ts-expect-error `_bufferIndex` is used on string chunks.

// @ts-expect-error `defaultConstructs` is full, so the result will be too.

// @ts-expect-error `depth` will be set later.

// @ts-expect-error `node.properties` is set.

// @ts-expect-error `undefined` is fine.

// @ts-expect-error assume `style` is an object

// @ts-expect-error assume no document.

// @ts-expect-error assume this is set.

// @ts-expect-error augmenting an element yields an element.

// @ts-expect-error don’t expect options twice.

// @ts-expect-error don’t expect replace twice.

// @ts-expect-error extra positional info.

// @ts-expect-error looks like a node.

// @ts-expect-error looks like a parent.

// @ts-expect-error looks like a text.

// @ts-expect-error no visitor given, so `visitor` is test.

// @ts-expect-error rest of props added later.

// @ts-expect-error: "

// @ts-expect-error: Assume `Node` can exist as a child of `parent`.

// @ts-expect-error: Assume `parent` accepts `text`.

// @ts-expect-error: Assume static phrasing content.

// @ts-expect-error: TS doesn’t understand basic reality.

// @ts-expect-error: TS doesn’t understand but it’s perfect.

// @ts-expect-error: TS is wrong, some of these children can be text.

// @ts-expect-error: TypeScript is wrong that `textContent` on elements can

// @ts-expect-error: `align` is custom.

// @ts-expect-error: `callback` is defined if `resolve` is not.

// @ts-expect-error: `doc` can’t be a callback anymore, we checked.

// @ts-expect-error: `end` will be patched later.

// @ts-expect-error: `listItem` is most definitely defined, TS...

// @ts-expect-error: `markdown-table` types should support `null`.

// @ts-expect-error: `newable` checks this.

// @ts-expect-error: `parse5` types are wrong.

// @ts-expect-error: `parse5` uses enums, which are actually strings.

// @ts-expect-error: always defined as we give valid input.

// @ts-expect-error: assume `value` matches the expected value of `key`.

// @ts-expect-error: assume a corresponding node is returned by `toHast`.

// @ts-expect-error: assume input `root` matches output root.

// @ts-expect-error: assume not `undefined`.

// @ts-expect-error: assume the stitch is allowed.

// @ts-expect-error: assume valid children are defined.

// @ts-expect-error: change to `null` in a major?

// @ts-expect-error: deprecated.

// @ts-expect-error: fine to set other things.

// @ts-expect-error: fine.

// @ts-expect-error: html and svg both have a space.

// @ts-expect-error: hush

// @ts-expect-error: hush, it sure works as an index.

// @ts-expect-error: hush, it’s actually a `zwitch`.

// @ts-expect-error: hush.

// @ts-expect-error: in practice, null is allowed.

// @ts-expect-error: indexable.

// @ts-expect-error: looks like a position.

// @ts-expect-error: matches!

// @ts-expect-error: micromark types need to accept `null`.

// @ts-expect-error: mutate.

// @ts-expect-error: no `parentNode`

// @ts-expect-error: overloads are handled.

// @ts-expect-error: same as above.

// @ts-expect-error: stack is fine.

// @ts-expect-error: stash this on the node, as it might become a reference

// @ts-expect-error: that’s a state :)

// @ts-expect-error: untyped.

// @ts-expect-error: we always follows the structure of `position`.

// @ts-expect-error: we either bailed on an error or have a tree.

// @ts-expect-error: we’ll add `end` later.

// @ts-ignore

// @ts-ignore FIXME coordinate 包问题导致 type 不正确

// @ts-ignore TS6133

// @ts-ignore ex

// @ts-ignore 允许调整

// @ts-ignore ，这个地方调用过于频繁

// @type {Attrs} 坐标轴线的图形属性,如果设置成null，则不显示轴线

// @type {Attrs} 标注坐标线的图形属性

// A .throw or .return when the delegate iterator has no .throw

// A 0-size cross-origin intersection means no-intersection.

// A 0:rx 1:ry 2:x-axis-rotation 3:large-arc-flag 4:sweep-flag 5: x 6: y

// A CodeMirror instance represents an editor. This is the object

// A Generator should always return itself as the iterator object when the

// A IE's `ClientRect` type does not have `x` and `y`. The same is the case

// A Pos instance represents a position within the text.

// A `DOMRect` object has `x` and `y` fields.

// A binary search to find the first character whose bounding box

// A bug in IE8 can cause this value to be negative, so guard it.

// A colon must be followed by a dash, in which case it could start a

// A correct percent encoded value.

// A correct surrogate pair.

// A cursor Pos(line, char, "after") is on the same visual line as `char`

// A cursor Pos(line, char, "before") is on the same visual line as `char - 1`

// A delimiter row can also start with a dash, when followed by more

// A derivative work based on:

// A function with keys in its prototype is probably a constructor.

// A hacky solution of https://github.com/ant-design/ant-design/issues/8948

// A handler for events that

// A is the only command

// A length of one signals that mapToProps does not depend on props from the parent component.

// A length of zero is assumed to mean mapToProps is getting args via arguments or ...args and

// A lineView may contain multiple logical lines (when merged by

// A linked list to keep track of recently-used-ness

// A list of substrings of CSS properties used to find transition events that

// A main version, followed optionally by a pre-release version and

// A mouse down can be a single click, double click, triple click,

// A new event is started when the previous origin does not match

// A numeric identifier, or a non-numeric identifier.

// A paragraph requires a non-blank line.

// A patch for firefox

// A pipe in a cell must be encoded.

// A pipe, when followed by a tab or space (padding), or a dash or colon

// A previous serialized cache has the most recent items first

// A rather boring computation (to merge adjacent `data` events) which

// A shared marker spans multiple linked documents. It is

// A simple gt/lt/eq thing, or just "" to indicate "any version"

// A single `0`, or a non-zero digit followed by zero or more digits.

// A styles array always starts with a number identifying the

// A visibility: hidden element used to find the size of things.

// A visual line is a line as drawn on the screen. Folding, for

// AB     B|A     B|A

// AL is found, change the type of the European number to Arabic

// ALIASES

// API

// API.

// APIs for creating annotation component

// ASP.NET json date format regex

// Ab     |Ab     A|b

// Abort measurement, if in progress

// Abort mouse wheel delta measurement, when scrolling explicitly

// Accept `array`.

// According to github-markdown-css, this class hides bullet.

// According to the specification following properties are not writable

// Accumulated changes, for firing change events

// Act like Number convert

// Action 开始，不等同于 拖拽开始，需要判定移动的范围

// Actions only execute once by default, unless rescheduled from within the

// Active picker

// ActiveX objects in IE.

// Actual scrollable element.

// Actually run the selector with the most recent store state and wrapper props

// Actually subscribe to the nearest connected ancestor (or store)

// Add `Array` methods to `lodash.prototype`.

// Add `LazyWrapper` methods for `_.drop` and `_.take` variants.

// Add `LazyWrapper` methods for `_.head` and `_.last`.

// Add `LazyWrapper` methods for `_.initial` and `_.tail`.

// Add `LazyWrapper` methods that accept an `iteratee` value.

// Add `LazyWrapper` methods to `lodash.prototype`.

// Add a final eol.

// Add a flag to suppress these warnings for this special case.

// Add a hook for the GFM tasklist extension, which needs to know if text

// Add a new text node.

// Add a new text track to the video

// Add a span to a line.

// Add aliases.

// Add alphanumerics.

// Add back all the literals after

// Add chain sequence methods to the `lodash` wrapper.

// Add checked keys from bottom to top

// Add checked keys top to bottom

// Add eols before nodes, except if this is a loose, first paragraph.

// Add field if not provide `nameList`

// Add field validate rule in to promise list

// Add keys if tree conduction

// Add lazy aliases.

// Add listener

// Add listeners if they haven't been added yet.

// Add methods that return unwrapped values in chain sequences.

// Add methods that return wrapped values in chain sequences.

// Add methods to `Hash`.

// Add methods to `LazyWrapper`.

// Add methods to `ListCache`.

// Add methods to `MapCache`.

// Add methods to `SetCache`.

// Add methods to `Stack`.

// Add methods to `lodash.prototype`.

// Add missing key

// Add new sub-event

// Add on and off methods to a constructor's prototype, to make

// Add properties assigned by `RegExp#exec`.

// Add px to dimension features

// Add remains of b.

// Add required mark if optional

// Add rest to the list

// Add scrollbar column

// Add startTangent and endTangent

// Add the heading exit at the end.

// Add the marker value for ordered lists.

// Add the prefix start to the HTML line token.

// Add the prefix start to the HTML token.

// Add trigger

// Adding is smart enough around DST

// Adding the second element, need to change to array.

// Additional check if match the end

// Additional handle last one

// Adds "Select all" to context menu in FF

// Adjust a position to refer to the post-change position of the

// Adjust expand icon index, no overwrite expandIconColumnIndex if set.

// Adjust the line structure

// Adjust the track back to it's original position.

// After DOCTYPE name state

// After DOCTYPE public identifier state

// After DOCTYPE public keyword state

// After DOCTYPE system identifier state

// After DOCTYPE system keyword state

// After attribute name state

// After attribute value (quoted) state

// After that, Promise will trap the error and send it

// Algorithm in Ken Shoemake's article in 1987 SIGGRAPH course notes

// Alias methods names because people roll like that.

// Align status

// Align with index

// All nodes have parent links. The tree is used both to go from

// Allow "beforeChange" event handlers to influence a change

// Allow `EventEmitter` to be imported as module namespace.

// Allow injecting another batching function later

// Alphabetic keys

// Already drawn

// Alright, so we just added a lazy line:

// Also monitor the parent.

// Also unmonitor the parent.

// Always change to rejection for Field to catch

// Always fill first

// Always open another picker if possible

// Always provides at least one column for table display

// Always record the point position since mouseEnterDelay will delay the show

// Always replace the current state with the new state.

// Always set back in case `onBlur` prevented by user

// Always show at least one digit of minutes.

// Always trigger re-render if not provide `notTriggerRender`

// Always trigger update mark to tell parent that should re-calculate heights when resized

// Always use latest rules

// Always use virtual scroll bar in avoid shaking

// Always wrap provider to avoid sub node re-mount

// Ambiguos ampersand state

// Amount in range [0, 1]

// An `NaN` primitive is the only value that is not equal to itself.

// An expression to strip any whitespace between the gtlt and the thing

// An indented code block cannot interrupt a paragraph.

// Anchor with href element

// And it would need copy/pasting `markdown-table` into this project.

// And listeners must be an array of listeners

// And make a reflection similar

// And reflect the previous

// And this also delay set `innerVisible` to avoid popup component render flash

// And we have data.

// Android sometimes returns slightly off decimal values, so need to round

// Any combination of digits, letters, or hyphens.

// Any reducers that existed in both the new and old rootReducer

// Anything else is cell content.

// Anything else is not ok.

// Anything else.

// Appear

// Append before fixed nodes

// Append selection

// Apply a change to a document, and add it to the document's

// Apply formatting rules

// Apply timezone offset from input. The actual utcOffset can be changed

// Area 几何标记默认的 shape：填充的区域图

// Aria

// Array#includes uses SameValueZero equality algorithm

// Array#indexOf ignores holes, Array#includes - not

// Array.prototype[@@unscopables]

// Arrays of change events and selections. Doing something adds an

// Arrow item icon

// Arrow offset

// Arrow prevent default to avoid page scroll

// As a workaround, use cWM and cWRP to invoke the new static lifecycle.

// As a workaround, use cWU to invoke the new lifecycle.

// As in, used in several tools.

// As we can’t escape or so to prevent it from happening, we take a somewhat

// As we’re closing flow, we’re no longer interrupting.

// Assign cache to `_.memoize`.

// Assign default placeholders.

// Assign the result of the finished delegate to the temporary

// Assume a reference.

// Assume body cell.

// Assume color1 & color2 has no alpha, since the following src code did so.

// Assume cyclic values are equal.

// Assume options.

// Async Load data

// Async generate id to avoid ssr mapping failed

// Async should resync elements

// AsyncIterator objects; they just return a Promise for the value of

// At any point we are certain `to` satisfies `pred`, don't know

// At end of string chunk.

// At least give some kind of context to the user

// Attach a document to an editor.

// Attach the factory function so users can create a customized version

// Attach the necessary event handlers when initializing the editor

// Attr

// Attribute name state

// Attribute or property.

// Attribute value (double-quoted) state

// Attribute value (single-quoted) state

// Attribute value (unquoted) state

// Auto active first item when list length or searchValue changed

// Auto inject ref if child node not have `ref` props

// Auto scroll to item position in single mode

// Automatically convert percentage into number

// Avoid calling selector multiple times if the store's state has not changed

// Avoid failures from read-only properties

// Avoid lazy use if the iteratee has a "length" value other than `1`.

// Avoid propagating failures to Promises returned by later

// Avoid regular expression denial of service, fail early for really long strings

// Avoid the following usage, the setQuery method gets the original value.

// BIDI HELPERS

// Backwards-compat with node 0.10.x

// Bail out if the visible area is already rendered and nothing changed.

// Balance

// Base

// Based on John Resig's `tmpl` implementation

// Based on that, if `memoizeOptions` _is_ an array, we assume it's a full

// Based on the previous check, one of these must be true

// Batch update selections

// Batch upload files

// Be forgiving, per 25.3.3.3.3 of the spec:

// Because Android doesn't allow us to actually detect backspace

// Because for <= 15.x versions this might be a "prevContext" object.

// Because get-snapshot might return a falsy value.

// Because of dateAddRemove treats 24 hours as different from a

// Because the promise.finally will change the reference of the promise

// Because they would work differently between older and newer (16.3+) versions of React.

// Become the parent node

// Before DOCTYPE name state

// Before DOCTYPE public identifier state

// Before DOCTYPE system identifier state

// Before attribute name state

// Before attribute value state

// Behavior of elts with overflow: auto and padding is

// Besides, it's as well not necessary as the <html> itself neither has

// Between DOCTYPE public and system identifiers state

// Between.

// Bidi parts are sorted left-to-right, and in a non-line-wrapping

// BidiSpan objects otherwise.

// Bidirectional ordering algorithm

// Bind real raf id

// Binding "this" is important for shallow renderer support.

// Binds and throttles `this._checkForIntersections`.

// Blank or interrupting line.

// Block focusable if disabled

// Body

// Body Cell

// Bogus DOCTYPE state

// Bogus comment state

// Booleans.

// Bottom edge outside viewport, try to move it.

// Bottom overlap

// Break since data not ready

// BreakTypes

// Breaks the given string into an array of grapheme cluster strings

// Briefly turn off draggability, to allow widgets to do

// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`

// Btw: note that `atBreak` patterns will always start the regex at LF or

// Bug for unclosed with children.

// Bug of `async-validator`

// Build a line's DOM representation from scratch

// Build up a reverse change object to add to the opposite history

// Build up a set of ranges to kill first, merging overlapping

// Build up the DOM representation for a single token, and add it to

// Build.

// But I don’t think one tiny line of code can be copyrighted. 😅

// But also if broken HTML is in `raw`, and then a correct element is given.

// But let it go if user set `formatter`

// But since the VirtualTimeScheduler is used for testing, VirtualActions

// But we cannot close unmatched blocks yet, because we may have a lazy

// But, if we have new wrapper props, those might change the child props, so we have to recalculate things.

// By default EventEmitters will print a warning if more than 10 listeners are

// By default, updates that start and end at the beginning of a line

// By explicitly using `prop-types` you are opting into new production behavior.

// By this condition we can catch all non-replaced inline, hidden and

// C is not saved yet, because it may be result of conversion

// C0 except for HT, LF, FF, CR, space

// CDATA section

// CDATA section bracket state

// CDATA section end state

// CDATA section state

// CONCATENATED MODULE: ./node_modules/bail/index.js

// CONCATENATED MODULE: ./node_modules/ccount/index.js

// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/cubehelix.js

// CONCATENATED MODULE: ./node_modules/d3-interpolate/src/transform/index.js

// CONCATENATED MODULE: ./node_modules/dd-icons/es/_internal/utils.js

// CONCATENATED MODULE: ./node_modules/dingtalk-design-desktop/es/button/antd/index.js

// CONCATENATED MODULE: ./node_modules/dingtalk-design-desktop/es/modal/AntdModal.js

// CONCATENATED MODULE: ./node_modules/hastscript/lib/svg-case-sensitive-tag-names.js

// CONCATENATED MODULE: ./node_modules/hastscript/lib/svg.js

// CONCATENATED MODULE: ./node_modules/i18next-browser-languagedetector/dist/es/browserLookups/cookie.js

// CONCATENATED MODULE: ./node_modules/i18next-browser-languagedetector/dist/es/browserLookups/localStorage.js

// CONCATENATED MODULE: ./node_modules/i18next-browser-languagedetector/dist/es/index.js

// CONCATENATED MODULE: ./node_modules/i18next-browser-languagedetector/dist/es/utils.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_Hash.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_ListCache.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_MapCache.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_SetCache.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_hashClear.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_hashDelete.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_hashGet.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_hashHas.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_hashSet.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_listCacheClear.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_listCacheGet.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_listCacheHas.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_listCacheSet.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_mapCacheClear.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_mapCacheDelete.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_mapCacheGet.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_mapCacheHas.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_mapCacheSet.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_setCacheHas.js

// CONCATENATED MODULE: ./node_modules/lodash-es/_stringToPath.js

// CONCATENATED MODULE: ./node_modules/lodash-es/isArguments.js

// CONCATENATED MODULE: ./node_modules/mdast-util-find-and-replace/lib/index.js

// CONCATENATED MODULE: ./node_modules/mdast-util-gfm-autolink-literal/lib/index.js

// CONCATENATED MODULE: ./node_modules/mdast-util-gfm-footnote/lib/index.js

// CONCATENATED MODULE: ./node_modules/mdast-util-gfm-task-list-item/lib/index.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/blockquote.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/break.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/code.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/delete.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/emphasis.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/footnote.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/heading.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/html.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/image-reference.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/image.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/index.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/inline-code.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/link-reference.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/link.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/list-item.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/list.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/paragraph.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/root.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/strong.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/table-cell.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/table-row.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/table.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/text.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-markdown/lib/handle/list-item.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-markdown/lib/util/association.js

// CONCATENATED MODULE: ./node_modules/mdast-util-to-markdown/lib/util/safe.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/attention.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/autolink.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/block-quote.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/character-escape.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/character-reference.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/code-fenced.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/code-indented.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/code-text.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/content.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/definition.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/hard-break-escape.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/heading-atx.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/html-text.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/label-end.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/label-start-image.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/label-start-link.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/line-ending.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/list.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/setext-underline.js

// CONCATENATED MODULE: ./node_modules/micromark-core-commonmark/lib/thematic-break.js

// CONCATENATED MODULE: ./node_modules/micromark-factory-destination/index.js

// CONCATENATED MODULE: ./node_modules/micromark-factory-label/index.js

// CONCATENATED MODULE: ./node_modules/micromark-factory-title/index.js

// CONCATENATED MODULE: ./node_modules/micromark-factory-whitespace/index.js

// CONCATENATED MODULE: ./node_modules/micromark-util-character/index.js

// CONCATENATED MODULE: ./node_modules/micromark-util-character/lib/unicode-punctuation-regex.js

// CONCATENATED MODULE: ./node_modules/micromark-util-html-tag-name/index.js

// CONCATENATED MODULE: ./node_modules/micromark/lib/constructs.js

// CONCATENATED MODULE: ./node_modules/micromark/lib/initialize/flow.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/create/check-overflow.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/create/from-array.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/create/from-object.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/create/from-string-and-array.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/create/from-string-and-format.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/create/valid.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/abs.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/add-subtract.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/as.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/clone.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/constructor.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/create.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/get.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/humanize.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/iso-string.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/duration/prototype.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/locale/en.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/locale/lists.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/locale/locale.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/locale/locales.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/locale/pre-post-format.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/add-subtract.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/calendar.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/clone.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/compare.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/creation-data.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/diff.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/format.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/from.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/locale.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/moment.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/prototype.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/start-end-of.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/to-type.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/to.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/moment/valid.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/day-of-month.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/day-of-year.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/era.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/millisecond.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/minute.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/offset.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/quarter.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/second.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/timestamp.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/timezone.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/units/week-year.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/utils/abs-round.js

// CONCATENATED MODULE: ./node_modules/moment/src/lib/utils/is-moment-input.js

// CONCATENATED MODULE: ./node_modules/moment/src/moment.js

// CONCATENATED MODULE: ./node_modules/property-information/lib/aria.js

// CONCATENATED MODULE: ./node_modules/property-information/lib/html.js

// CONCATENATED MODULE: ./node_modules/property-information/lib/util/case-insensitive-transform.js

// CONCATENATED MODULE: ./node_modules/property-information/lib/util/create.js

// CONCATENATED MODULE: ./node_modules/property-information/lib/util/merge.js

// CONCATENATED MODULE: ./node_modules/property-information/lib/xlink.js

// CONCATENATED MODULE: ./node_modules/property-information/lib/xml.js

// CONCATENATED MODULE: ./node_modules/property-information/lib/xmlns.js

// CONCATENATED MODULE: ./node_modules/react-markdown/lib/ast-to-react.js

// CONCATENATED MODULE: ./node_modules/react-markdown/lib/react-markdown.js

// CONCATENATED MODULE: ./node_modules/react-markdown/lib/rehype-filter.js

// CONCATENATED MODULE: ./node_modules/redux/es/combineReducers.js

// CONCATENATED MODULE: ./node_modules/redux/node_modules/symbol-observable/es/index.js

// CONCATENATED MODULE: ./node_modules/redux/node_modules/symbol-observable/es/ponyfill.js

// CONCATENATED MODULE: ./node_modules/remark-parse/index.js

// CONCATENATED MODULE: ./node_modules/remark-rehype/lib/index.js

// CONCATENATED MODULE: ./node_modules/style-to-object/index.mjs

// CONCATENATED MODULE: ./node_modules/trough/index.js

// CONCATENATED MODULE: ./node_modules/unified/lib/index.js

// CONCATENATED MODULE: ./node_modules/unified/node_modules/is-plain-obj/index.js

// CONCATENATED MODULE: ./node_modules/vfile-message/lib/index.js

// CONCATENATED MODULE: ./node_modules/vfile-message/node_modules/unist-util-stringify-position/lib/index.js

// CONCATENATED MODULE: ./node_modules/vfile/lib/index.js

// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

// CONTENTEDITABLE INPUT STYLE

// CONTEXT MENU HANDLING

// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER

// CR.

// CRLF will be treated as a single space for input element

// CSP to forbid Function, and you're not willing to fix either of those

// CSS transform 目前尚未经过长时间验证，为了避免影响上层业务，默认关闭，上层按需开启

// CTRL, ALT or SHIFT.

// Cache

// Cache Field NamePath

// Cache callback

// Cache implementation based on Erik Rasmussen's `lru-memoize`:

// Cache keys since React rerender may cause it lost

// Cache options by key

// Cached entry not at top of cache, move it to the top

// Caching this value is nessecary if out == a

// Calculate a new scroll position needed to scroll the given

// Calculate the determinant

// Calculate the page number

// Calculates the intersection ratio.

// Call delegate.iterator[context.method](context.arg) and handle the

// Call f for all linked documents.

// Call internal rc-tree expand function

// Call origin function

// Call this.constructor.gDSFP to support sub-classes.

// Call transforms.

// Called when the window resizes

// Called whenever the selection changes, sets the new selection as

// Calls delayed callbacks and cursorActivity handlers until no

// Can not be merged, start a new event.

// Can not hold all the content to show rest

// Can't use css ellipsis since we need to provide the place for button

// Cancel appear

// Cancel enter

// Cancel leave

// Cancel the current text selection if any (#5821)

// Cannot interact with disappearing elements

// Can’t be empty when interrupting.

// Can’t be space or eols at the start of a construct, so we’re in a cell.

// Capture values for checking if and when this component unmounts

// Caret ranges.

// Case 1: We move within an ltr part in an ltr editor. Even with wrapped lines,

// Case 2: We move within an rtl part or in an rtl editor on the same visual line

// Case 3: Could not move within this bidi part in this visual line, so leave

// Case 3a: Look for other bidi parts on the same visual line

// Case 3b: Look for other bidi parts on the next visual line

// Case 4: Nowhere to move

// Cc   [2] <control-000B>..<control-000C>

// Cc  [10] <control-0000>..<control-0009>

// Cc  [18] <control-000E>..<control-001F>

// Cc  [33] <control-007F>..<control-009F>

// Cf       ARABIC DISPUTED END OF AYAH

// Cf       ARABIC END OF AYAH

// Cf       ARABIC LETTER MARK

// Cf       KAITHI NUMBER SIGN

// Cf       LANGUAGE TAG

// Cf       MONGOLIAN VOWEL SEPARATOR

// Cf       SOFT HYPHEN

// Cf       SYRIAC ABBREVIATION MARK

// Cf       ZERO WIDTH NO-BREAK SPACE

// Cf       ZERO WIDTH NON-JOINER

// Cf       ZERO WIDTH SPACE

// Cf   [2] LEFT-TO-RIGHT MARK..RIGHT-TO-LEFT MARK

// Cf   [3] INTERLINEAR ANNOTATION ANCHOR..INTERLINEAR ANNOTATION TERMINATOR

// Cf   [4] SHORTHAND FORMAT LETTER OVERLAP..SHORTHAND FORMAT UP STEP

// Cf   [5] LEFT-TO-RIGHT EMBEDDING..RIGHT-TO-LEFT OVERRIDE

// Cf   [5] WORD JOINER..INVISIBLE PLUS

// Cf   [6] ARABIC NUMBER SIGN..ARABIC NUMBER MARK ABOVE

// Cf   [8] MUSICAL SYMBOL BEGIN BEAM..MUSICAL SYMBOL END PHRASE

// Cf  [10] LEFT-TO-RIGHT ISOLATE..NOMINAL DIGIT SHAPES

// Cf  [96] TAG SPACE..CANCEL TAG

// Change after

// Change before

// Change every token that we find into the correct regex

// Change picker should sync back with text value

// Change some spaces to NBSP to prevent the browser from collapsing

// Change the `labelImageMarker` to a `data`.

// Change the content (text, markers) of a line. Automatically

// Change the paragraph to setext heading text.

// Change the video source and re-load the video:

// Change to `updateMark` for compare instead.

// Change to trigger resize measure

// Character before or after matched:

// Character escape.

// Character reference helpers

// Character reference state

// Character reference.

// Character references hang, so if we ended there, we need to flush

// Character types for codepoints 0 to 0xff

// Character types for codepoints 0x600 to 0x6f9

// Chart, View 类

// Check all the required fields are present

// Check for 24:00:00.000

// Check for circular references and return its corresponding clone.

// Check for listener leak

// Check for task list items

// Check if NameMap value is touched

// Check if `treeData` or `children` changed and save into the state.

// Check if all flattenColumns has width

// Check if any dependent targets are still remaining.

// Check if current bullet point can start a new List Item

// Check if current line is blank

// Check if ellipsis in measure div is height enough for content

// Check if following lines should be included in List Item

// Check if it's a real key

// Check if leading zero is need for seconds

// Check if match

// Check if match the `tokenSeparators`

// Check if module is in cache

// Check if the date string matches the format. If it doesn't return null

// Check if the element belongs to a video element

// Check if the person has specified the same field twice. This will lead to confusing results.

// Check if there are any required fields. For instance, 12 hour time requires AM/PM specified

// Check if there is a new container.

// Check if there's a frame that can be navigated to.

// Check if visibility is wanted via offset?

// Check if we need to generate multiple colors

// Check if we need to show hours

// Check if your browser can play different types of video:

// Check item bottom in the range. We will render additional one item for motion usage

// Check item top in the range

// Check option

// Check position change before measure to make Safari smooth

// Check prev keys to insert or keep

// Check that cyclic values are equal.

// Check that lines don't extend past the right of the current

// Check the child if is undefined or null.

// Check the next.

// Check to make sure the date field is within the allowed range. Javascript dates allows values

// Check to see if the format is actually a mask

// Checked item icon

// Child tokens to be visited by walkTokens

// Children

// Children may contain false or null, so we should filter them

// Chrome 38 Symbol has incorrect toString conversion

// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives

// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances

// Chrome has a rather weird rounding of "client" properties.

// Chrome passes an MediaQueryListEvent object, while other browsers pass MediaQueryList directly

// Class component

// Class names (which can be added both on the `selector` and here).

// Classes’ prototype methods are not enumerable, so we check if some value

// Clean search value if single or configured

// Clean up

// Clean up async

// Clean up cache since invalidate

// Clean up container if needed

// Clean up end date when start date is after end date

// Clean up if can not pull in

// Clean up origin error when name changed

// Clean up origin one

// Clean up scroll bar & focus back

// Clean up state

// Clean up store value if not preserve

// Clean up when removed

// Cleanup code by stripping empty strings.

// Clear Icon

// Clear all if unmount

// Clear queue here to prevent

// Clear the marker.

// Clear the view.

// Clear typing status since it may caused by up & down key.

// Click on dots

// Click on the slides

// Client width & height properties can't be

// Clip by document's size.

// Clip by viewport's size.

// Clip forced viewport to actual scrollable area.

// Clip maskedSrc to same section of string as src (move to lexer?)

// Clip the change to the size of this doc

// Clip the part to the wrapped line.

// Clone a new list to avoid repeat trigger events

// Clone a new target for event.

// Close dropdown when disabled change

// Close should sync back with text value

// Close will clean up single mode search text

// Closing fence.

// Closing fence?

// Closing.

// Cn       <reserved-2065>

// Cn       <reserved-E0000>

// Cn   [9] <reserved-FFF0>..<reserved-FFF8>

// Cn  [30] <reserved-E0002>..<reserved-E001F>

// Cn [128] <reserved-E0080>..<reserved-E00FF>

// Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript

// CodeMirror, copyright (c) by Marijn Haverbeke and others

// CodeMirror.prototype, for backwards compatibility and

// Coerce booleans to `1` or `0` and dates to milliseconds.

// Coerce inputs to strings.

// Coerce regexes to strings and treat strings, primitives and objects,

// Coerce to boolean in case of old WebKit

// Coercion.

// Collapse if possible

// Collapsed (`[asd][]`) or full (`[asd][fgh]`) reference?

// Collapsed markers have unique ids, in order to be able to order

// Collect noStyle Field error to the top FormItem

// Collect observers that have active observations.

// Column

// Columns

// Combine separate content parts into one.

// Commands are parameter-less actions that can be performed on an

// Comment end bang state

// Comment end dash state

// Comment end state

// Comment less-than sign bang dash dash state

// Comment less-than sign bang dash state

// Comment less-than sign bang state

// Comment less-than sign state

// Comment start dash state

// Comment start state

// Comment state

// CommonJS

// CommonJS / Node have global context exposed as "global" variable.

// CommonMark Emphasis Rules 9-10

// CommonMark handles attention (emphasis, strong) markers based on what comes

// CommonMark requires space before trailing #s

// Compare

// Compare stringify in case it's nest object

// Compare the local RefCountSubscriber's connection Subscription to the

// Compare two positions, return 0 if they are the same, a negative

// Compatible for legacy getPopupContainer with domNode argument.

// Compose partial arguments.

// Compose partial right arguments.

// Compute a style array (an array starting with a mode generation

// Compute a suitable new viewport (from & to)

// Compute the base array of styles

// Compute the character length of a line, taking into account

// Compute the character position closest to the given coordinates.

// Compute the default character width.

// Compute the default text height.

// Compute the lines that are visible in a given viewport (defaults

// Compute the position of the end of a change (its 'to' property

// Compute the relative visual position of the head compared to the

// Compute whether a line is hidden. Lines count as hidden when they

// Computes display.scroller.scrollLeft + display.gutters.offsetWidth,

// Concat new files with prev files

// Configuration Constants

// Connect or disconnect spans from a line.

// Connect tree

// Considers RFC 6265 section 5.2:

// Construct the elements of the rotation matrix

// Consume the characters of the unparsed-attributes up to,

// Context

// Context may be "window", "page", "div", or "local"./null.

// Continue bubbling if parent exist

// Continue running updates if changes have been detected as there might

// Continuing lines, if any

// Control character (DEL) of the basic block and C1 controls.

// Control click

// Control mode will auto fill file uid if not provided

// Controlled

// Convert `fixed='left'` to `fixed='right'` instead

// Convert `fixed='true'` to `fixed='left'` instead

// Convert a style as returned by a mode (either null, or a string

// Convert both to x & y since wheel only happened on PC

// Convert entities by level for calculation

// Convert into [0, 1] range if it isn't already

// Convert key to elements

// Convert keys to object format

// Convert to css variables

// Convert to generic type

// Converts a {top, bottom, left, right} box from line-local

// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=

// Copy all CSS properties that have an impact on the height of the content in

// Copy bytes to buffer, if provided

// Copy non-nullish input into values.

// Copyright (c) 2013 James Halliday

// Copyright Joyent, Inc. and other Node contributors.

// Core options:

// Could also be data.

// Count the number of lines in the view whose DOM representation is

// Countdown do not need display the timestamp

// Counts the column offset in a string, taking tabs into account.

// Covers bottom of gutter when coverGutterNextToScrollbar is on

// Covers bottom-right square when both scrollbars are present.

// Coverts a box from "div" coords to another coordinate system.

// Create 'strong' if smallest delimiter has even char count. **a***

// Create ResizeObserverEntry instance for every active observation.

// Create `<code>`.

// Create `<pre>`.

// Create `em` if smallest delimiter has odd char count. *a***

// Create a history change event from an updateDoc-style change

// Create a marker, wire it up to the right lines, and

// Create a new FormStore if not provided

// Create a new list item.

// Create a new module (and put it into the cache)

// Create a new processor based on the processor in the current scope.

// Create a range of LineView objects for the given lines.

// Create cache

// Create container in client side with sync to avoid useEffect not get ref

// Create origin content holder

// Create pattern

// Create value - label map

// Created with markText and setBookmark methods. A TextMarker is a

// Creaters.

// Cs [2048] <surrogate-D800>..<surrogate-DFFF>

// Ctrl-ScrollLock has keyCode 3, same as Ctrl-Pause,

// Current rendered range (may be bigger than the view window).

// Currently doesn’t work because `inspect` in document does a check

// Currently only replacement character.

// Currently, a warning is triggered by react for *any* white space in

// Cursor-blinking

// Customize `getInputElement` should not use `allowClear` & `placeholder`

// Customize expandable icon

// Customize formatter

// Customize rootPrefixCls is first priority

// Cut to match count

// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR

// DCE check should happen before ReactDOM bundle executes so that

// DISPLAY DRAWING

// DOCTYPE name state

// DOCTYPE public identifier (double-quoted) state

// DOCTYPE public identifier (single-quoted) state

// DOCTYPE state

// DOCTYPE system identifier (double-quoted) state

// DOCTYPE system identifier (single-quoted) state

// DOCUMENT DATA STRUCTURE

// DOM structure.

// DON NOT EDIT IT MANUALLY

// Data

// Data management.

// Data state

// Data.

// Date with time defaultValue

// Date.UTC remaps years 0-99 to 1900-1999

// Day

// Day of Week

// Decimal character reference start state

// Decimal character reference state

// Decrease speed

// Decrease volume 5%

// Dedent if possible

// Default behavior is to show (encoded) HTML.

// Default click to select

// Default sorter

// Default to a dummy "batch" implementation that just runs the callback

// Default to current date.

// Default to current week.

// Default to positioning above (if specified and possible); otherwise default to positioning below

// Default to the beginning of the year.

// Default will filter when closed

// Defaults are used to prevent crashes when older utilities somehow activate

// Define Generator.prototype.{next,throw,return} in terms of the

// Define iterator

// Define the unified helper method that is used to implement .next,

// Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a

// Delay to change visible

// Delay to focus to avoid input blur trigger expired selectedValues

// Delay to force scroll position if not sync

// Delay to go to next status

// Delay to prevent 'range' focus transitions from firing resulting in incorrect out-of-focus events

// Delete `remove` items starting from `start`

// Delete prop if `removeIfUndefined` and value is undefined

// Deliberately forget the last sent value so that we don't

// Deliver notifications in a separate cycle in order to avoid any

// Dependencies update

// Depends mode to implement different actions

// Deprecated

// Deprecated options for calculating offset.

// Deprecated! Use color.formatHex.

// Deprecations

// Dequeue if the action didn't reschedule itself. Don't call

// Destroy on close will remove wrapped div

// Detach a line from the document tree and its markers.

// Detect IE8's incomplete defineProperty implementation

// Detect buggy property enumeration order in older V8 versions.

// Detect drag-and-drop

// Detect overlapping labels

// Detect whether transition may affect dimensions of an element.

// Determine effective options based on given values and defaults.

// Determine if we should prevent the cursor being placed to the left/right of an atomic marker

// Determine the size of the visible rect by climbing the dom accounting for

// Determine which set of options we're using. Prefer options passed directly,

// Determines whether an event happened in the gutter, and fires the

// Dev env only

// DevTools can report bad minification during injection.

// DevTools shouldn't crash React, no matter what.

// Did not show popup when there is no options

// Directly call prepare measure since it's already throttled.

// Disabled part

// Disabled range

// Discard the duplicate exits.

// Dispatch the exception by looping back around to the

// Distinguish between actual "data" props that were passed to the wrapper component,

// Distinguish coordinates nearer to the left or right side of the box

// Distributed under an MIT license: https://codemirror.net/5/LICENSE

// Do a bulk-read of the DOM positions and sizes needed to draw the

// Do animation if expanded keys changed

// Do as frame for step update

// Do lock for a wheel when scrolling

// Do not bind `syncEllipsis`. It need for test usage on prototype

// Do not consume newlines at end of final item. Alternatively, make itemRegex *start* with any newlines to simplify/speed up endsWithBlankLine logic

// Do not handle out of range

// Do not measure if css already support ellipsis

// Do not pass context to sub item to avoid multiple measure

// Do not submit form when type in the input

// Do not throw in console

// Do not trigger onBlur when clear input

// Do not use RegExp for split operation as some browser do not support it (See: http://blog.stevenlevithan.com/archives/cross-browser-split)

// Do nothing

// Do nothing if `removeIfUndefined` and parent object not exist

// Do nothing if current environment doesn't have the Element interface.

// Do nothing if element is already being observed.

// Do nothing if element is not being observed.

// Do nothing if observer doesn't have active observations.

// Do nothing if running in a non-browser environment or if listeners

// Do nothing when motion is in progress

// Do nothing when scroll at the edge, Skip check when is in scroll

// Do nothing;

// Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.

// Does the actual updating of the line display. Bails out

// Doesn't consider line feeds a character.

// Doesn't do anything on an empty line.

// Doesn't do anything with non-empty selections.

// Doesn't scan more than one line above to find a character.

// Don't allow invalid dates

// Don't bind keyboard support when children specify the onKeyDown

// Don't connect empty markers unless clearWhenEmpty is false

// Don't do a replace if the drop happened inside of the selected text.

// Don't enum bug & hidden keys

// Don't get fooled by e.g. browserify environments.

// Don't leave long text in the textarea, since it makes further polling slow

// Don't let the range of [0,255] come back in [0,1].

// Don't let video end while scrubbing.

// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.

// Done!

// Done.

// Don’t do anything if there is one data token.

// Down (40) key press

// Down arrow

// Draws a cursor for the given range

// Draws the given range as a highlighted selection

// Dropdown menu should keep previous status until it is fully closed.

// Due to the fact that we still support jurassic IE versions, some

// Dummy constructor functions that we use as the .constructor and

// Dynamic observe

// Dynamic table data

// E.g. for an element with content width of 314.2px it sometimes gives

// ECMAScript 6 symbols shim

// EDITOR CONSTRUCTOR

// EOF as the content is closed with blank lines.

// EOF or whitespace

// EOF), that’s perfect: the last point we found starts it.

// EOF, whitespace, pipe

// EOF.

// EOL.

// ES2015 @@iterator method (iterable) for spread syntax and for...of statement

// ESM COMPAT FLAG

// ESM support

// EVENT HANDLING

// EXPORTS

// EXTENSIONS

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js

// EXTERNAL MODULE: ./node_modules/classnames/index.js

// EXTERNAL MODULE: ./node_modules/d3-color/src/color.js

// EXTERNAL MODULE: ./node_modules/d3-color/src/define.js

// EXTERNAL MODULE: ./node_modules/d3-interpolate/src/color.js

// EXTERNAL MODULE: ./node_modules/d3-interpolate/src/number.js

// EXTERNAL MODULE: ./node_modules/d3-interpolate/src/transform/decompose.js

// EXTERNAL MODULE: ./node_modules/dd-icons/lib/CloseOutlined.js

// EXTERNAL MODULE: ./node_modules/decode-named-character-reference/index.dom.js

// EXTERNAL MODULE: ./node_modules/dingtalk-design-desktop/es/config-provider/index.js

// EXTERNAL MODULE: ./node_modules/dingtalk-design-desktop/es/modal/Modal.js + 1 modules

// EXTERNAL MODULE: ./node_modules/dingtalk-design-desktop/es/modal/locale.js

// EXTERNAL MODULE: ./node_modules/dingtalk-design-desktop/es/typography/Base.js

// EXTERNAL MODULE: ./node_modules/dingtalk-design-desktop/es/typography/style/index.css

// EXTERNAL MODULE: ./node_modules/dingtalk-design-desktop/node_modules/antd/lib/_util/reactNode.js

// EXTERNAL MODULE: ./node_modules/dingtalk-design-desktop/node_modules/antd/lib/_util/type.js

// EXTERNAL MODULE: ./node_modules/dingtalk-design-desktop/node_modules/antd/lib/_util/wave.js

// EXTERNAL MODULE: ./node_modules/dingtalk-design-desktop/node_modules/antd/lib/button/index.js

// EXTERNAL MODULE: ./node_modules/dingtalk-design-desktop/node_modules/antd/lib/message/index.js

// EXTERNAL MODULE: ./node_modules/dingtalk-design-desktop/node_modules/antd/lib/tooltip/index.js

// EXTERNAL MODULE: ./node_modules/extend/index.js

// EXTERNAL MODULE: ./node_modules/hast-util-whitespace/index.js

// EXTERNAL MODULE: ./node_modules/hastscript/lib/core.js

// EXTERNAL MODULE: ./node_modules/is-buffer/index.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_Hash.js + 5 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/_ListCache.js + 5 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/_MapCache.js + 5 modules

// EXTERNAL MODULE: ./node_modules/lodash-es/_assocIndexOf.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_baseGetTag.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_defineProperty.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_getMapData.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_nativeCreate.js

// EXTERNAL MODULE: ./node_modules/lodash-es/_shortOut.js

// EXTERNAL MODULE: ./node_modules/lodash-es/constant.js

// EXTERNAL MODULE: ./node_modules/lodash-es/isObjectLike.js

// EXTERNAL MODULE: ./node_modules/lodash-es/isPlainObject.js

// EXTERNAL MODULE: ./node_modules/lodash-es/memoize.js

// EXTERNAL MODULE: ./node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js

// EXTERNAL MODULE: ./node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js

// EXTERNAL MODULE: ./node_modules/mdast-util-to-hast/lib/index.js

// EXTERNAL MODULE: ./node_modules/mdast-util-to-hast/lib/revert.js

// EXTERNAL MODULE: ./node_modules/mdast-util-to-markdown/lib/util/check-bullet.js

// EXTERNAL MODULE: ./node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js

// EXTERNAL MODULE: ./node_modules/mdast-util-to-markdown/lib/util/container-flow.js

// EXTERNAL MODULE: ./node_modules/mdast-util-to-markdown/lib/util/indent-lines.js

// EXTERNAL MODULE: ./node_modules/mdast-util-to-markdown/lib/util/track.js

// EXTERNAL MODULE: ./node_modules/micromark-core-commonmark/lib/blank-line.js

// EXTERNAL MODULE: ./node_modules/micromark-factory-space/index.js

// EXTERNAL MODULE: ./node_modules/micromark-util-character/index.js + 1 modules

// EXTERNAL MODULE: ./node_modules/micromark-util-chunked/index.js

// EXTERNAL MODULE: ./node_modules/micromark-util-classify-character/index.js

// EXTERNAL MODULE: ./node_modules/micromark-util-decode-string/index.js

// EXTERNAL MODULE: ./node_modules/micromark-util-normalize-identifier/index.js

// EXTERNAL MODULE: ./node_modules/micromark-util-resolve-all/index.js

// EXTERNAL MODULE: ./node_modules/micromark-util-sanitize-uri/index.js

// EXTERNAL MODULE: ./node_modules/micromark/lib/initialize/text.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/create/date-from-array.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/create/local.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/create/parsing-flags.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/create/utc.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/duration/bubble.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/locale/calendar.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/locale/constructor.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/locale/formats.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/locale/relative.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/locale/set.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/moment/get-set.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/moment/now.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/parse/regex.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/parse/token.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/units/aliases.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/units/constants.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/units/day-of-week.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/units/hour.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/units/priorities.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/units/week-calendar-utils.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/units/week.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/units/year.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/abs-floor.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/deprecate.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/extend.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/hooks.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/is-array.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/is-calendar-spec.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/is-function.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/is-number.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/is-object.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/is-undefined.js

// EXTERNAL MODULE: ./node_modules/moment/src/lib/utils/zero-fill.js

// EXTERNAL MODULE: ./node_modules/prop-types/index.js

// EXTERNAL MODULE: ./node_modules/property-information/index.js + 9 modules

// EXTERNAL MODULE: ./node_modules/property-information/lib/normalize.js

// EXTERNAL MODULE: ./node_modules/property-information/lib/util/case-sensitive-transform.js

// EXTERNAL MODULE: ./node_modules/property-information/lib/util/defined-info.js

// EXTERNAL MODULE: ./node_modules/property-information/lib/util/schema.js

// EXTERNAL MODULE: ./node_modules/property-information/lib/util/types.js

// EXTERNAL MODULE: ./node_modules/rc-dialog/lib/index.js

// EXTERNAL MODULE: ./node_modules/react-markdown/lib/uri-transformer.js

// EXTERNAL MODULE: ./node_modules/react-markdown/node_modules/react-is/index.js

// EXTERNAL MODULE: ./node_modules/react/index.js

// EXTERNAL MODULE: ./node_modules/redux/es/compose.js

// EXTERNAL MODULE: ./node_modules/redux/node_modules/symbol-observable/es/index.js + 1 modules

// EXTERNAL MODULE: ./node_modules/remark-parse/lib/index.js

// EXTERNAL MODULE: ./node_modules/trim-lines/index.js

// EXTERNAL MODULE: ./node_modules/unist-util-position/lib/index.js

// EXTERNAL MODULE: ./node_modules/unist-util-visit-parents/lib/index.js

// Each Hit object has a reference to its Yallist.Node.  This

// Each block imposes a condition that the line must satisfy if the block is

// Editable element

// Either a blank line, which is okay, or an indented thing.

// Either this is the first call, activity has stopped and we're at the

// Element 类

// Element.

// Elements are added to these to represent selection and cursors.

// Emit error when catch promise reject

// Emits a 'removeListener' event if and only if the listener was removed.

// Empty

// Empty space (in pixels) above the view

// Enable batched updates in our subscriptions for use

// Enable horizontal overflow auto-adjustment when a custom dropdown width is provided

// End

// End tag open state

// Ensure `LazyWrapper` is an instance of `baseLodash`.

// Ensure a given position is not inside an atomic range.

// Ensure all modes have a mime property for backwards compatibility

// Ensure at least a single node is present, for measuring.

// Ensure is a {from: {line, ch}, to: {line, ch}} object, and

// Ensure no React warnings are emitted for void elements w/ children.

// Ensure previous input has been read, so that the handler sees a

// Ensure that, if the cursor was in the whitespace at the start

// Ensure the editor is re-focused

// Ensure the last empty entry is seen.

// Ensure the lineView.wrapping.heights array is populated. This is

// Ensure the loop is entered when path is empty.

// Ensure the sign of `-0` is preserved.

// Ensure there's a token end at the current position, and that i points at it

// Ensure we are in an operation.

// Ensure wrappers are instances of `baseLodash`.

// Enter

// Enter (13) key

// Enter.

// Era

// Eras

// Error if any of these lifecycles are present,

// Escape (27) key

// Escape characters that can't be included in string literals.

// Escape characters with special meaning either inside or outside character sets.

// Escape.

// Escaping the Promise trap: globally throw unhandled errors

// Especially putting it back in the `data` state is useful: some elements,

// Event handler

// Event wrapper. Copy from react source code

// EventEmitters, we do not listen for `error` events here.

// EventTarget does not have `error` event semantics like Node

// Every position after the last character on a line is considered to stick

// Everything in between.

// Examples (upper-case letters are RTL, lower-case are LTR):

// Exception thrown outside of any try block that could handle

// ExceptionImageMap keys

// Execute the module function

// Exit

// Exit early for strings to avoid a performance hit in some environments.

// Exit early if all IntersectionObserver and IntersectionObserverEntry

// Exit early if metadata can't be merged.

// Exit early if we're not running in a browser.

// Exit if not in the first content that is the first child of a list

// Exit if there was no dash at all, or if the header cell count is not the

// Exit if there’s stuff before.

// Exit if this is the closing fence.

// Exit if we’re not done, resolve might change stuff.

// Exit if we’ve walked far enough.

// Exit open containers.

// Exit, then change the type.

// Exit: there’s still something open, which means it’s a lazy line

// Expand if possible

// Expand the tree

// Expanded keys

// Exponential backoff

// Export existing implementation if available.

// Export lodash.

// Expose Lodash on the global object to prevent errors when Lodash is

// Expose `MapCache`.

// Expose a frozen processor.

// Expose public methods of ResizeObserver.

// Expose the prefix.

// Expose the previous character.

// Expose.

// Exposes the constructors globally.

// Extend all selections (pos is an array of selections with length

// Extend the base object

// Extend the primary selection range, discard the rest.

// Extending unicode characters. A series of a non-extending char +

// Extension does not match, so our result is the entire path

// Extra arguments are stored as the mode's dependencies, which is

// Extract anything that could conceivably be a part of a valid semver

// FF has bug with jump of scroll to top. We force back here.

// FF44- legacy iterators case

// FIXME

// FIXME this is all really shaky. might handle the few cases it needs to handle, but likely to cause problems

// FIXME 子 view 有自己的数据的情况，该如何处理？

// FIXME: Move logic here in v5

// FIXME: Mutable param should be forbidden in static lang.

// FIXME: hack with raf

// FIXME: hack 方法

// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR

// FORMATTING

// Facet 基类

// Fail on non-nodes.

// Failed to read the 'selectionStart' property from 'HTMLInputElement'

// Fails unpredictably on IE[67] when mouse is dragged around quickly.

// Fall back to "prev" when the mode doesn't have an indentation

// Fall back to computed then un computed css if necessary

// Fallback

// Fallback for IE8

// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.

// Fallback for data views, maps, sets, and weak maps in IE 11,

// Fallback if transition event not support

// Fallback to fuzzy matching, this should always not reach match or need fire a issue

// Fallback to try to find prev options

// Feature-detect IE's crummy client rect reporting for bidi text

// Fed to the mode parsers, provides helper functions to make

// Feel free to add other non-standard fields to your messages.

// Fetch the parser token for a given character. Useful for hacks

// Fields from `Error`.

// Figure out `root` position.

// Figure out which alignments to use.

// Filed element only

// Fill basic number units

// Fill children

// Fill disabled unit

// Fill error info

// Fill functions

// Fill gap with whole-line-spans

// Fill in a browser-detected starting value on browsers where we

// Fill map

// Fill miss keys

// Fill missing value

// Fill parent

// Fill root tree node

// Fill rule with context

// Fill validator. Skip if nothing need to validate

// Fill value if not exist yet

// Fill with number unit nodes

// Filter duplicates, use `name`, `color`, `value` and `title` property values as condition

// Filter invalidate node

// Filter key which not exist in the `dataSource`

// Filter options:

// Filter skip

// Final attempt, use Input Fallback

// Find a line map (mapping character offsets to text nodes) and a

// Find a line view that corresponds to the given line number.

// Find a token that can close.

// Find a token that can open the closer.

// Find a void token that includes a break.

// Find an opening.

// Find best match

// Find first non-space char

// Find matched entity and put into list

// Find next focus index

// Find out whether a line ends or starts in a collapsed span. If

// Find real container when not cached or cached container removed

// Find the flow chunk.

// Find the height above the given line.

// Find the line at the given vertical position, using the height

// Find the line object corresponding to the given line number.

// Find the longest line in the document.

// Find the opening of the content.

// Find the part of the input that is actually new

// Find the part that overlaps with the start of this text

// Find the position of the event for this token.

// Find the position of the marker in the document. Returns a {from,

// Find the previous chunk (the one before the lazy line).

// Find the top change event in the history. Pop off selection

// Find the view element corresponding to a given line. Return null

// Find the word at the given position (as returned by coordsChar).

// Find walkable focus menu element container

// Finds the line to start with when starting a parse. Tries to

// Fine.

// Finish an operation, updating the display and signalling delayed events

// Fire change events, and delayed event handlers

// Fire events for markers that are hidden/unidden by editing or

// Fired when the duration of

// Fired when the end of the media resource

// Fired when the player has

// Fired when the user agent

// Fired whenever the media begins waiting

// Fired whenever the media has been paused

// Fired whenever the media has been started

// Fired whenever the player

// Fired while the user agent

// Firefox (Gecko) fires this for the meta key instead of 91

// Firefox Compatible

// Firefox only

// Fires when an error occurred

// Fires when the browser has loaded

// Fires when the browser is

// Fires when the browser is trying to

// Fires when the current

// Fires when the current playlist is empty

// Fires when the loading of an audio/video is aborted

// Fires when the volume has been changed

// First move into "page" coordinate system

// First time press will wait some time to trigger loop step update

// First we iterate through the open blocks, starting with the root

// First we pick a hue (H)

// First we should find current focused MenuItem/SubMenu element

// First, search the line map for the text node corresponding to,

// First/last cell in a row cannot be empty if it has no leading/trailing pipe

// Fix Safari bug which not rollback when break line

// Fix Tooltip won't hide at disabled button

// Fix error in Chrome:

// Fix for HOC usage like <FormatMessage />

// Fix https://github.com/ant-design/ant-design/issues/6776

// Fix issue: https://github.com/ant-design/ant-design/issues/26554

// Fix native

// Fix onload() bug in IE9

// Fix percent accuracy when strokeLinecap is round

// Fix position.

// Fix positions.

// Fix radio button click twice

// Fix up .from in last (or move them into first in case of sameLine)

// Fix up .to properties of first

// Fix wrap="off" issue

// Fixed holder share the props

// Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications

// Flag that indicates that lines might need to be redrawn

// Flag that indicates whether we expect input to appear real soon

// Flag the module as loaded

// Flush with batch

// Focus back if is in the container

// Focus element will make scrollLeft change which we should reset back

// Focus menu item

// Focus to link instead of menu item if possible

// Focusable element

// Following conditions are required to handle Internet Explorer which

// Following steps can't be applied to the document's root element as its

// For Firefox <= 38

// For IE 6–8

// For IE6+, Firefox >= 39, Chrome, Safari, Opera

// For Node.js before 0.9

// For `www.` we check instead of attempt, because when it matches, GH

// For big changes, we hide the enclosing element during the

// For each key of `next`, the list of keys to insert before that key in

// For each match, call the parser function for that date part

// For example, a block quote requires a `>` character.

// For example, if someone injected the string `'\n# b'`, then that would

// For example:

// For high-level customized Transfer @dqaria

// For non-IE10 modern browsers

// For older browsers

// For relative vertical movement. Dir may be -1 or 1. Unit can be

// For the 'subtitles-off' button, the first condition will never match

// For the native GeneratorFunction constructor, the best we can

// For this reason, we have to check it here at the original call site

// For web workers, where supported

// Force a relayout, or Opera won't use our image for some obscure reason

// Force the update of observations.

// Force the view to cover a given range, adding empty view element

// Force trigger re-render since we need sync renderProps with new meta

// Force trigger scrollbar visible when open

// Force update deps

// Form

// Form set initialValue

// Frame code as the function body.

// From here, the methods are part of the public interface. Most

// From the awesome hack by Dean Edwards

// From the spec: 'Wait until any invocations of this algorithm started before this one have completed.'

// From: <https://github.com/nodejs/node/blob/fcf8ba4/lib/internal/url.js#L1501>

// Full match

// Full overlap

// Fully will always render

// Function component node

// Function keys

// Function keys don't generate text

// Function to be called when pattern loads

// Function to check for start of token

// Function to create the first processor.

// Functions to run when options are changed.

// G

// G engine 管理相关

// G2 tooltip 组件基类

// G2 旧的拉线

// G2 组件基类

// GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效

// GB10. (E_Base | EBG) Extend* ?	E_Modifier

// GB11. ZWJ ? (Glue_After_Zwj | EBG)

// GB12. ^ (RI RI)* RI	?	RI

// GB12. ^ (RI RI)* RI ? RI

// GB13. [^RI] (RI RI)* RI	?	RI

// GB13. [^RI] (RI RI)* RI ? RI

// GB3. CR X LF

// GENERATE BY ./scripts/generate.ts

// GH documents that only alphanumerics (other than `-`, `.`, and `_`) can

// Gap in the middle

// GenStateExecuting and loop back for another invocation.

// Generate `rows` cell data

// Generate a body row when without parent.

// Generate a nest tree for validate

// Generated by CoffeeScript 1.12.2

// Geometry Label 基类

// Geometry 初始化之后，生成了 scale，然后进行调整 scale 配置

// Geometry 基类

// Get `key`.

// Get a {top, bottom, left, right} box (in line-local coordinates)

// Get digit length of e

// Get errors & warnings

// Get flatten data

// Get latest action

// Get latest data

// Get maximum text

// Get next list item

// Get origin style

// Get range of this

// Get ready for the next line.

// Get space.

// Get the bidi ordering for the given line (and cache it). Returns

// Get the current time, if not already set.

// Get the line number of the start of the next visual line after

// Get the line number of the start of the visual line that the

// Get the lines between from and to, as array of strings.

// Get the part of a document between two positions, as an array of

// Get the spans that 'stick out' on both sides

// Get the window object again. When a friendly iframe is destroyed, it

// Get top & bottom

// Get wave color from target

// Getting start-of-today depends on whether we're local/utc/offset or not.

// Give beforeSelectionChange handlers a change to influence a

// Give cache to improve scroll experience

// Give to motion

// Given a MIME type, a {name, ...options} config object, or a name

// Given a change object, compute the new set of marker spans that

// Given a line object, find its line number by walking up through

// Given a mode and a state (for that mode), find the inner mode and

// Given a mode spec (anything that resolveMode accepts), find and

// Given a mouse event, find the corresponding position. If liberal

// Given a prepared measurement object, measures the position of an

// Global click handler

// Go next status

// Go to end of video

// Go to next frame if height not exist

// Go to stable directly when motion not provided

// Group

// Group label search

// Group should check child options

// HACK(benlesh): To resolve an issue where Node users may have multiple

// HACK(benlesh): TypeScript shennanigans

// HACK: Since TypeScript inherits static properties too, we have to

// HELPERS

// HIGHLIGHT WORKER

// HMR will remove this from body which should patch back

// HOOKS

// HTML whitespace expression.

// Hack for Firefox to avoid size issue

// Hack for LIST_IGNORE, we add additional info to remove from the list

// Hack: `value` is supposed to be a string, but as none of the tools

// Had use LocaleProvide but didn't set locale

// Handle Fullscreen Change

// Handle `data.hName`, `data.hProperties, `data.hChildren`.

// Handle `optionLabelProp` in TreeSelect component

// Handle `rowSpan`

// Handle a deep copy situation

// Handle a key from the keydown event.

// Handle a key from the keypress event

// Handle children.

// Handle floating point rounding errors

// Handle invocations in a tight loop.

// Handle props change

// Handle props.

// Handle realign logic

// Handle the interaction of a change to a document with the editor

// Handle tokens still being open.

// Handle update by `setField` with `shouldUpdate`

// Handler

// Handlers.

// Handles shorthand.

// Handling array of media queries

// Has to be after `.open()`. See https://github.com/enyo/dropzone/issues/179

// Have to add prefixCls on the instance.

// Haven't found enough closing delimiters

// Having a single line break doesn't mean a list is loose. A single line break is terminating the last list item

// Heatmap 没有 Element

// Help GC.

// Helper for a popular repeating case of the spec:

// Helper for defining the .next, .throw, and .return methods of the

// Helper for deleting text near the selection(s), used to implement

// Helper used to collapse a small branch into a single leaf.

// Helpers used when computing which overlapping collapsed span

// Here we depart from the documented algorithm, in order to avoid

// Here we're avoiding call for findDOMNode since it's deprecated

// Hexademical character reference start state

// Hexademical character reference state

// Hide inline list when mode changed and motion end

// Hide tooltip when there is no title

// Historically this was determined using the inclusiveLeft/Right option, but the new way to control it

// Holds info about a single rendered line when it was rendered

// Home

// Hooks

// Horizontal gutter use padding

// Hour

// Hours

// However, JS runtimes and timers distinguish between intervals achieved by

// However, this causes CSP violations in Chrome apps.

// Hyphen, followed by one or more dot-separated pre-release version

// I know

// IE 11

// IE 8 has a broken Object.defineProperty that only works on DOM objects.

// IE 8- don't enum bug keys

// IE < 10 will throw when accessed while the page is loading or in an iframe.

// IE > 9 and Edge will throw when accessed in an iframe if document.body is unavailable.

// IE and Edge may throw an "Unspecified Error" when accessing document.activeElement.

// IE browser compatible

// IE did it wrong again ...

// IE does not have builtin `{ once: true }` support so we

// IE does strange things with escape.

// IE doesn't fire input events, so we schedule a read for the pasted content in this way

// IE is strange, right?

// IE lose focus after element realign

// IE's approach to draggable

// IE6 standards mode, this border can be overridden by setting the

// IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays

// IE8 returns string on undefined

// IE8 will throw if the textarea is display: none or not in DOM

// IE8 will treat undefined and null as object if it wasn't for

// IE8- don't enum bug keys

// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS

// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN

// If 'ang2' == 90.0000000001, then `ratio` will evaluate to

// If 90 degree circular arc, use a constant

// If DOMRectReadOnly is available use it as a prototype for the rectangle.

// If Global prefixCls provided, use this

// If React sees the exact same element reference as last time, it bails out of re-rendering

// If Width contains "auto", set "auto" in style

// If `Object.create(null)` is not supported we prefix the event names with a

// If `includeElementIndex` is given, pass node index info to components.

// If `sourcePos` is given, pass source information (line/column info from markdown source).

// If `treeData` changed, we also need check it

// If `variable` is not specified wrap a with-statement around the generated

// If a box around the coordinates was found, use that

// If a poll interval is set, use polling instead of listening to

// If a rejected Promise was yielded, throw the rejection back

// If all else fails, use Math.random().  It's fast, but is of unspecified

// If an action is rescheduled, we save allocations by mutating its state,

// If an editor sits on the top or bottom of the window, partially

// If an exception is thrown from innerFn, we leave state ===

// If arrowOffsetLeft > arrowLeft, arrowMarginLeft = arrowOffsetLeft - arrowLeft

// If border: 0; -- iOS fails to open keyboard (issue #1287)

// If context.method was "throw" but the delegate handled the

// If delay exists and is greater than 0, or if the delay is null (the

// If delay is greater than 0, request as an async action.

// If e is null or undefined we interpret this as someone trying

// If either of the above conditionals set a new parentRect,

// If enqueue has been called before, then we want to wait until

// If evt is an object then pass each of its properties to this method

// If has servicePromise, and is not trigger by self, then use it

// If hours are showing, we may need to add a leading zero.

// If input is already a tinycolor, return itself

// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).

// If is queue `prepend`, it will prepend first style and then append rest style

// If it did, we exit the current containers between the two flow blocks.

// If it errors, Observable's `subscribe` will ensure the

// If it is a pre-release it will bump up to the same patch version.

// If it is a text node, use a range to retrieve the coordinates.

// If it is a widget, simply get the box for the whole widget.

// If it was supposed to be 128, this was already taken care of by `inputToRgb`

// If lockTarget exist return

// If menu is open, OptionList will take charge

// If mode isn't tags, press enter is not meaningful when you can't see any option

// If n is a hue given in degrees,

// If new component APIs are defined, "unsafe" lifecycles won't be called.

// If no need `domNode` argument, will call directly.

// If not hit, it means key is removed

// If nothing changed, bail.

// If obj.hasOwnProperty has been overridden, then calling

// If out body mouse up, we can set isActive false when mouse move

// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.

// If panelWidth - arrowWidth - arrowMarginLeft < arrowLeft, panel should move to right side.

// If passed a locale key, it will set the locale for this

// If pos == Pos(_, 0, "before"), pos and end are unchanged

// If pos.sticky == "before", that is around pos.ch - 1, otherwise around pos.ch

// If provided tooltip, we need wrap with span to let Tooltip inject events

// If pure is true, the selector returned by selectorFactory will memoize its results,

// If remove, we do it again to correction

// If s is zero, return any axis (no rotation - axis does not matter)

// If same container effect, return

// If set default view date, use it

// If set it may cause unnecessary twice rerendering

// If shift is held or the extend flag is set, extends a range to

// If source URL is not a data URL

// If the action reschedules itself with the same delay, the interval is not

// If the child props _did_ change (or we caught an error), this wrapper component needs to re-render

// If the child props haven't changed, nothing to do here - cascade the subscription update

// If the constructor was not a function, then we cannot determine the heritage.

// If the data is fresh, stop request

// If the decoded string is equal to the input, the character reference was

// If the delegate iterator has a return method, give it a

// If the dispatched exception was caught by a catch block,

// If the element has a non-visible overflow, and it's not the <body>

// If the element isn't displayed, an intersection can't happen.

// If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.

// If the histories were shared, split them again

// If the input is a non-prerelease version, this acts the same as

// If the line isn't plain left-to-right text, first figure out

// If the listener returns true then it shall be removed from the event

// If the markers are the same:

// If the max line changed since it was last measured, measure it,

// If the named character reference is followed by the end of the path, it’s

// If the new entry intersection ratio has crossed any of the

// If the opening can close or the closing can open,

// If the parent has element that is assigned through shadow root slot

// If the parent isn't displayed, an intersection can't happen.

// If the parser can't make sense of the value, return null

// If the previous item ended with a blank line, the list is loose

// If the punctuation marker is followed by the end of the path, it’s not

// If the render was from a store update, clear out that reference and cascade the subscriber update

// If the result func is actually an _object_, assume it's our options object

// If the result is smaller than 25 lines, ensure that it is a

// If the root is not in the DOM or target is not contained within

// If the scheduler queue is empty, cancel the requested animation frame and

// If the scheduler queue is empty, cancel the requested microtask and

// If the sizes are the same:

// If the source and destination differ, copy the unchanged last row

// If the source and destination differ, copy the unchanged rows

// If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.

// If there are more markers in the closing, add them after.

// If there are more markers in the opening, add them before.

// If there are two in a row, use one.

// If there is a previous code, there will always be a tail.

// If there is a single grave accent on its own in the code, use a fence of

// If there is no 'error' event listener then throw.

// If there is nothing, return a null

// If there isn’t then make sure any remaining content is added to it.

// If there's already one parent, but not multiple, allocate an Array to

// If there’s one more token (which is the cases for lines that end in an

// If this "action" is really a function, call it and return the result.

// If this action has already an async Id, don't request a new one.

// If this action is rescheduled with the same delay time, don't clear the interval id.

// If this character is supposed to be escaped because it has a condition on

// If this is a lazy line, it can’t be code.

// If this is a pre-major version, bump up to the same major version.

// If this is a pre-minor version, bump up to the same minor version.

// If this is already a prerelease, it will bump to the next version

// If this is not a pre-release version, it will increment the patch.

// If this is not just spaces or eols (tabs don’t count), and either the

// If this is not the same as Function.[[Prototype]], then this is definately inherited.

// If this is our first dot, mark it as the start of our extension.

// If this is the third marker, exit.

// If this isn't the first part, the part's start is also after

// If we are transposing ourselves we can skip a few steps but have to cache

// If we are transposing ourselves we can skip a few steps but have to cache some values

// If we aren't running in "pure" mode, we don't want to memoize values.

// If we do have fields, create an object w/ `context` as its

// If we do have flow, it could still be a blank line,

// If we don't have a parent, or the new parent is the same as the

// If we encounter a new block start, we close any blocks unmatched in

// If we have concrete content, such as block HTML or fenced code,

// If we have definitions in the content, we’ll keep on having content,

// If we have new child props, and the same wrapper props, we know we should use the new child props as-is.

// If we have some kind of self-reference, then we cannot determine the heritage.

// If we have to use a character reference, an ampersand would be more

// If we need to scroll a specific position into view, do so.

// If we reached a path separator that was not part of a set of path

// If we see another link, or inactive link label, we’ve been here before.

// If we start and end with an EOL or a space.

// If we start with a pipe, we open a cell marker.

// If we're in "pure" mode, ensure our wrapper component only re-renders when incoming props have changed.

// If we're not dealing with a regular pixel number

// If we're not subscribed to the store, nothing to do here

// If we’re at a hard break, include the line ending in there.

// If we’re in a buffer chunk, loop through it.

// If whole data changed, we just refresh the list

// Ignore NaN.

// Ignore Windows 7 IE11 "Unspecified error"

// Ignore non-index properties.

// Ignore nullish and NaN values.

// Ignore nullish and `NaN` values.

// Ignore step since out of range

// Ignore the error.

// Ignore the finally entry if control is not jumping to a

// Ignore unchanged ratios

// Ignore when it's a list item and not specific the namePath,

// Ignore when selectable is undefined or null

// Implementation of http://planning.cs.uiuc.edu/node198.html

// Important implementation note:

// Important!

// In "S" case we have to take into account, if the previous command is C/S.

// In "T" case we have to take into account, if the previous command is Q/T.

// In Autoplay the focus stays on clicked button even after transition

// In IE, most of the time, 2 extra pixels are added to the top and left

// In IE11 calling Object.defineProperty has a side-effect of evaluating the

// In React 18's StrictMode, useEffect perform twice, resize listener is remove, so handleResize is never perform.

// In React.StrictMode component will call render multiple time in first mount.

// In a wrapped line, rtl text on wrapping boundaries can do things

// In code.

// In early versions of node, obj['__proto__'] is buggy when obj has

// In fact adds to the bundle size.

// In motion

// In order to account for this case, RefCountSubscriber should only dispose

// In quirks mode, the offset can be determined by querying the body's

// In some browsers (only in Firefox, actually) CSS width & height

// In some cases, html (text) can be found in phrasing right after an eol.

// In that case, throw the error from here so it doesn't get lost.

// In this case, that second line is lazy, which “unmakes” the first line

// In this phase we may match all or just some of the open blocks.

// Increase speed

// Increase the opacity transition, delete children after closing.

// Increase volume 5%

// Increment the end 1 character.

// Indent size

// Indent the given line. The how parameter can be "smart",

// Indented code can interrupt delimiter and body rows.

// Infinity + Infinity = Infinity

// Infinity - Infinity = NaN

// Information about the rendered lines.

// Init config

// Init rows

// Init status

// Initial setting

// Inject `uploading` status

// Inject the alignment row.

// Inject the exits earlier (they’re still also at the end).

// Inline enter is special that we use unique operation

// Inline literal values back into the formatted value

// Inline trigger no need switch to sub menu item

// Inlined / shortened version of `kindOf` from https://github.com/jonschlinkert/kind-of

// Inlined version of the `symbol-observable` polyfill

// Inner id for accessibility usage. Only work in client side

// Input by precision

// Input by value

// Input elements must be either controlled or uncontrolled,

// Input must be lineSpace-local ("div" coordinate system).

// Insert one space between two chinese characters automatically.

// Insert or Remove

// Insert the given array of lines at offset 'at', count them as

// Insert the items in chunks to not cause stack overflows.

// Installs an event handler on `global` for the `message` event: see

// Instance changed

// Instead of some new production for Unicode alphanumerics, markdown

// Instead of storing red as two seperate ranges,

// Instead, small slices are taken. They're taken in order because sequential memory accesses are fastest.

// Interaction Action 基类

// Interaction, Action 基类

// Intermediate scroll position, not pushed to DOM yet

// Internal

// Internal api

// Internal catch error to avoid console error log.

// Internal formatter

// Internal motion event handler

// Interpolate pairs of numbers in a & b.

// Invalid dates are coerced to `NaN`.

// Invalidate number is sometime passed by external control, we should let it go

// Invalidate type should skip

// Invoke the leading edge.

// Isomorphic needn't load data in server side

// It *could* be a table, from the first line, if the following line

// It also indexes by height, and is used to convert between height

// It is impossible to translate months into days without knowing

// It is intended to keep the offset in sync with the timezone.

// It wasn’t a match after all.

// It will pass a snapshot value to did-update though.

// It's only needed in node expanded

// It's possible that we caught an error due to a bad mapState function, but the

// It's unnecessary to set loading=false, for the Modal will be unmounted after close.

// Item child tokens handled here at end because we needed to have the final item to trim it first

// Items begin with at most one blank line

// Iterate over the document. Supports two forms -- with only one

// Iterate over the logical lines that make up this visual line.

// Iterator interface in terms of a single ._invoke method.

// Its weird event positions make the player seek a wrong time.

// It’ll always exist: we don’t tokenize if it isn’t there.

// It’s a balanced bracket, but contains a link.

// Just return an object and let the conversion functions handle that.

// KEYMAP DISPATCH

// Keep focused state for keyboard support

// Keep it here because of `hsv.h * 360`

// Keep it here because of the prefix `#`

// Keep key if mark as preserveSelectedRowKeys

// Keep missing value in the cache

// Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]

// Keep order end

// Keep order start

// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.

// Keeping the time actually adds/subtracts (one hour)

// Key on the menu item will not get validate parent container

// KeyDown

// Kind of weird to have a default max of Infinity, but oh well.

// Kludge to work around strange IE behavior where it'll sometimes

// Kludges for bugs and behavior differences that can't be feature

// Known modes, by name and by MIME

// L (L):   Left-to-Right

// L 和 Z 都是直线， M 不进行拾取

// LIFO order

// LINE DATA STRUCTURE

// LOCALES

// Label ends in not allowed character.

// Label for screenreaders, accessibility

// Last two width will be the final width

// Latin Extended-A block.

// Latin-1 Supplement block.

// Layout options:

// Leave

// Left and Down Arrows

// Left arrow

// Left edge inside and right edge outside viewport, try to resize it.

// Left offset

// Legacy

// Legacy - We should use semantic naming standard

// Legacy `process.binding('util')` for Node.js < 10.

// Legacy both support `label` or `title` if not set.

// Legacy convert key to array

// Legacy getKey param

// Legacy mode should always update

// Legacy.

// Legacy. Key will also trigger click event

// Length of suffix matching the invert condition.

// Lenient ordinal parsing accepts just a number in addition to

// Let all child Field get update.

// Let collection know what happened

// Let integer be ? ToInteger(index).

// Let popup panel handle keyboard

// Let the drag handler handle this.

// Let's handle this again to avoid refactor issue.

// Leverage the exponentiation by squaring algorithm for a faster repeat.

// Lightweight event framework. on/off also work on DOM nodes,

// Lightweight form of highlight -- proceed over this line and

// Like GitHub, add a class for custom styling.

// Line objects. These hold state related to a line, including

// Line widgets are block elements displayed above or below a line.

// Linear 类型用户有可能设置了 min, max 范围所以需要根据数据最小区间计算 count

// Lines with gutter elements, widgets or a background class need to

// Link with trigger node

// List current level menu item elements

// Listen for disabled change

// Listen for window resize

// Listen if fields provided. We use ref to save prev data here to avoid additional render

// Listen to wheel events in order to try and update the viewport on time.

// Lists. Use CSS to reduce space between items instead

// Lm   [2] HALFWIDTH KATAKANA VOICED SOUND MARK..HALFWIDTH KATAKANA SEMI-VOICED SOUND MARK

// Lo       HANGUL SYLLABLE A

// Lo       HANGUL SYLLABLE AE

// Lo       HANGUL SYLLABLE BA

// Lo       HANGUL SYLLABLE BAE

// Lo       HANGUL SYLLABLE BBA

// Lo       HANGUL SYLLABLE BBAE

// Lo       HANGUL SYLLABLE BBE

// Lo       HANGUL SYLLABLE BBEO

// Lo       HANGUL SYLLABLE BBEU

// Lo       HANGUL SYLLABLE BBI

// Lo       HANGUL SYLLABLE BBO

// Lo       HANGUL SYLLABLE BBOE

// Lo       HANGUL SYLLABLE BBU

// Lo       HANGUL SYLLABLE BBWA

// Lo       HANGUL SYLLABLE BBWAE

// Lo       HANGUL SYLLABLE BBWE

// Lo       HANGUL SYLLABLE BBWEO

// Lo       HANGUL SYLLABLE BBWI

// Lo       HANGUL SYLLABLE BBYA

// Lo       HANGUL SYLLABLE BBYAE

// Lo       HANGUL SYLLABLE BBYE

// Lo       HANGUL SYLLABLE BBYEO

// Lo       HANGUL SYLLABLE BBYI

// Lo       HANGUL SYLLABLE BBYO

// Lo       HANGUL SYLLABLE BBYU

// Lo       HANGUL SYLLABLE BE

// Lo       HANGUL SYLLABLE BEO

// Lo       HANGUL SYLLABLE BEU

// Lo       HANGUL SYLLABLE BI

// Lo       HANGUL SYLLABLE BO

// Lo       HANGUL SYLLABLE BOE

// Lo       HANGUL SYLLABLE BU

// Lo       HANGUL SYLLABLE BWA

// Lo       HANGUL SYLLABLE BWAE

// Lo       HANGUL SYLLABLE BWE

// Lo       HANGUL SYLLABLE BWEO

// Lo       HANGUL SYLLABLE BWI

// Lo       HANGUL SYLLABLE BYA

// Lo       HANGUL SYLLABLE BYAE

// Lo       HANGUL SYLLABLE BYE

// Lo       HANGUL SYLLABLE BYEO

// Lo       HANGUL SYLLABLE BYI

// Lo       HANGUL SYLLABLE BYO

// Lo       HANGUL SYLLABLE BYU

// Lo       HANGUL SYLLABLE CA

// Lo       HANGUL SYLLABLE CAE

// Lo       HANGUL SYLLABLE CE

// Lo       HANGUL SYLLABLE CEO

// Lo       HANGUL SYLLABLE CEU

// Lo       HANGUL SYLLABLE CI

// Lo       HANGUL SYLLABLE CO

// Lo       HANGUL SYLLABLE COE

// Lo       HANGUL SYLLABLE CU

// Lo       HANGUL SYLLABLE CWA

// Lo       HANGUL SYLLABLE CWAE

// Lo       HANGUL SYLLABLE CWE

// Lo       HANGUL SYLLABLE CWEO

// Lo       HANGUL SYLLABLE CWI

// Lo       HANGUL SYLLABLE CYA

// Lo       HANGUL SYLLABLE CYAE

// Lo       HANGUL SYLLABLE CYE

// Lo       HANGUL SYLLABLE CYEO

// Lo       HANGUL SYLLABLE CYI

// Lo       HANGUL SYLLABLE CYO

// Lo       HANGUL SYLLABLE CYU

// Lo       HANGUL SYLLABLE DA

// Lo       HANGUL SYLLABLE DAE

// Lo       HANGUL SYLLABLE DDA

// Lo       HANGUL SYLLABLE DDAE

// Lo       HANGUL SYLLABLE DDE

// Lo       HANGUL SYLLABLE DDEO

// Lo       HANGUL SYLLABLE DDEU

// Lo       HANGUL SYLLABLE DDI

// Lo       HANGUL SYLLABLE DDO

// Lo       HANGUL SYLLABLE DDOE

// Lo       HANGUL SYLLABLE DDU

// Lo       HANGUL SYLLABLE DDWA

// Lo       HANGUL SYLLABLE DDWAE

// Lo       HANGUL SYLLABLE DDWE

// Lo       HANGUL SYLLABLE DDWEO

// Lo       HANGUL SYLLABLE DDWI

// Lo       HANGUL SYLLABLE DDYA

// Lo       HANGUL SYLLABLE DDYAE

// Lo       HANGUL SYLLABLE DDYE

// Lo       HANGUL SYLLABLE DDYEO

// Lo       HANGUL SYLLABLE DDYI

// Lo       HANGUL SYLLABLE DDYO

// Lo       HANGUL SYLLABLE DDYU

// Lo       HANGUL SYLLABLE DE

// Lo       HANGUL SYLLABLE DEO

// Lo       HANGUL SYLLABLE DEU

// Lo       HANGUL SYLLABLE DI

// Lo       HANGUL SYLLABLE DO

// Lo       HANGUL SYLLABLE DOE

// Lo       HANGUL SYLLABLE DU

// Lo       HANGUL SYLLABLE DWA

// Lo       HANGUL SYLLABLE DWAE

// Lo       HANGUL SYLLABLE DWE

// Lo       HANGUL SYLLABLE DWEO

// Lo       HANGUL SYLLABLE DWI

// Lo       HANGUL SYLLABLE DYA

// Lo       HANGUL SYLLABLE DYAE

// Lo       HANGUL SYLLABLE DYE

// Lo       HANGUL SYLLABLE DYEO

// Lo       HANGUL SYLLABLE DYI

// Lo       HANGUL SYLLABLE DYO

// Lo       HANGUL SYLLABLE DYU

// Lo       HANGUL SYLLABLE E

// Lo       HANGUL SYLLABLE EO

// Lo       HANGUL SYLLABLE EU

// Lo       HANGUL SYLLABLE GA

// Lo       HANGUL SYLLABLE GAE

// Lo       HANGUL SYLLABLE GE

// Lo       HANGUL SYLLABLE GEO

// Lo       HANGUL SYLLABLE GEU

// Lo       HANGUL SYLLABLE GGA

// Lo       HANGUL SYLLABLE GGAE

// Lo       HANGUL SYLLABLE GGE

// Lo       HANGUL SYLLABLE GGEO

// Lo       HANGUL SYLLABLE GGEU

// Lo       HANGUL SYLLABLE GGI

// Lo       HANGUL SYLLABLE GGO

// Lo       HANGUL SYLLABLE GGOE

// Lo       HANGUL SYLLABLE GGU

// Lo       HANGUL SYLLABLE GGWA

// Lo       HANGUL SYLLABLE GGWAE

// Lo       HANGUL SYLLABLE GGWE

// Lo       HANGUL SYLLABLE GGWEO

// Lo       HANGUL SYLLABLE GGWI

// Lo       HANGUL SYLLABLE GGYA

// Lo       HANGUL SYLLABLE GGYAE

// Lo       HANGUL SYLLABLE GGYE

// Lo       HANGUL SYLLABLE GGYEO

// Lo       HANGUL SYLLABLE GGYI

// Lo       HANGUL SYLLABLE GGYO

// Lo       HANGUL SYLLABLE GGYU

// Lo       HANGUL SYLLABLE GI

// Lo       HANGUL SYLLABLE GO

// Lo       HANGUL SYLLABLE GOE

// Lo       HANGUL SYLLABLE GU

// Lo       HANGUL SYLLABLE GWA

// Lo       HANGUL SYLLABLE GWAE

// Lo       HANGUL SYLLABLE GWE

// Lo       HANGUL SYLLABLE GWEO

// Lo       HANGUL SYLLABLE GWI

// Lo       HANGUL SYLLABLE GYA

// Lo       HANGUL SYLLABLE GYAE

// Lo       HANGUL SYLLABLE GYE

// Lo       HANGUL SYLLABLE GYEO

// Lo       HANGUL SYLLABLE GYI

// Lo       HANGUL SYLLABLE GYO

// Lo       HANGUL SYLLABLE GYU

// Lo       HANGUL SYLLABLE HA

// Lo       HANGUL SYLLABLE HAE

// Lo       HANGUL SYLLABLE HE

// Lo       HANGUL SYLLABLE HEO

// Lo       HANGUL SYLLABLE HEU

// Lo       HANGUL SYLLABLE HO

// Lo       HANGUL SYLLABLE HOE

// Lo       HANGUL SYLLABLE HU

// Lo       HANGUL SYLLABLE HWA

// Lo       HANGUL SYLLABLE HWAE

// Lo       HANGUL SYLLABLE HWE

// Lo       HANGUL SYLLABLE HWEO

// Lo       HANGUL SYLLABLE HWI

// Lo       HANGUL SYLLABLE HYA

// Lo       HANGUL SYLLABLE HYAE

// Lo       HANGUL SYLLABLE HYE

// Lo       HANGUL SYLLABLE HYEO

// Lo       HANGUL SYLLABLE HYI

// Lo       HANGUL SYLLABLE HYO

// Lo       HANGUL SYLLABLE HYU

// Lo       HANGUL SYLLABLE I

// Lo       HANGUL SYLLABLE JA

// Lo       HANGUL SYLLABLE JAE

// Lo       HANGUL SYLLABLE JE

// Lo       HANGUL SYLLABLE JEO

// Lo       HANGUL SYLLABLE JEU

// Lo       HANGUL SYLLABLE JI

// Lo       HANGUL SYLLABLE JJA

// Lo       HANGUL SYLLABLE JJAE

// Lo       HANGUL SYLLABLE JJE

// Lo       HANGUL SYLLABLE JJEO

// Lo       HANGUL SYLLABLE JJEU

// Lo       HANGUL SYLLABLE JJI

// Lo       HANGUL SYLLABLE JJO

// Lo       HANGUL SYLLABLE JJOE

// Lo       HANGUL SYLLABLE JJU

// Lo       HANGUL SYLLABLE JJWA

// Lo       HANGUL SYLLABLE JJWAE

// Lo       HANGUL SYLLABLE JJWE

// Lo       HANGUL SYLLABLE JJWEO

// Lo       HANGUL SYLLABLE JJWI

// Lo       HANGUL SYLLABLE JJYA

// Lo       HANGUL SYLLABLE JJYAE

// Lo       HANGUL SYLLABLE JJYE

// Lo       HANGUL SYLLABLE JJYEO

// Lo       HANGUL SYLLABLE JJYI

// Lo       HANGUL SYLLABLE JJYO

// Lo       HANGUL SYLLABLE JJYU

// Lo       HANGUL SYLLABLE JO

// Lo       HANGUL SYLLABLE JOE

// Lo       HANGUL SYLLABLE JU

// Lo       HANGUL SYLLABLE JWA

// Lo       HANGUL SYLLABLE JWAE

// Lo       HANGUL SYLLABLE JWE

// Lo       HANGUL SYLLABLE JWEO

// Lo       HANGUL SYLLABLE JWI

// Lo       HANGUL SYLLABLE JYA

// Lo       HANGUL SYLLABLE JYAE

// Lo       HANGUL SYLLABLE JYE

// Lo       HANGUL SYLLABLE JYEO

// Lo       HANGUL SYLLABLE JYI

// Lo       HANGUL SYLLABLE JYO

// Lo       HANGUL SYLLABLE JYU

// Lo       HANGUL SYLLABLE KA

// Lo       HANGUL SYLLABLE KAE

// Lo       HANGUL SYLLABLE KE

// Lo       HANGUL SYLLABLE KEO

// Lo       HANGUL SYLLABLE KEU

// Lo       HANGUL SYLLABLE KI

// Lo       HANGUL SYLLABLE KO

// Lo       HANGUL SYLLABLE KOE

// Lo       HANGUL SYLLABLE KU

// Lo       HANGUL SYLLABLE KWA

// Lo       HANGUL SYLLABLE KWAE

// Lo       HANGUL SYLLABLE KWE

// Lo       HANGUL SYLLABLE KWEO

// Lo       HANGUL SYLLABLE KWI

// Lo       HANGUL SYLLABLE KYA

// Lo       HANGUL SYLLABLE KYAE

// Lo       HANGUL SYLLABLE KYE

// Lo       HANGUL SYLLABLE KYEO

// Lo       HANGUL SYLLABLE KYI

// Lo       HANGUL SYLLABLE KYO

// Lo       HANGUL SYLLABLE KYU

// Lo       HANGUL SYLLABLE MA

// Lo       HANGUL SYLLABLE MAE

// Lo       HANGUL SYLLABLE ME

// Lo       HANGUL SYLLABLE MEO

// Lo       HANGUL SYLLABLE MEU

// Lo       HANGUL SYLLABLE MI

// Lo       HANGUL SYLLABLE MO

// Lo       HANGUL SYLLABLE MOE

// Lo       HANGUL SYLLABLE MU

// Lo       HANGUL SYLLABLE MWA

// Lo       HANGUL SYLLABLE MWAE

// Lo       HANGUL SYLLABLE MWE

// Lo       HANGUL SYLLABLE MWEO

// Lo       HANGUL SYLLABLE MWI

// Lo       HANGUL SYLLABLE MYA

// Lo       HANGUL SYLLABLE MYAE

// Lo       HANGUL SYLLABLE MYE

// Lo       HANGUL SYLLABLE MYEO

// Lo       HANGUL SYLLABLE MYI

// Lo       HANGUL SYLLABLE MYO

// Lo       HANGUL SYLLABLE MYU

// Lo       HANGUL SYLLABLE NA

// Lo       HANGUL SYLLABLE NAE

// Lo       HANGUL SYLLABLE NE

// Lo       HANGUL SYLLABLE NEO

// Lo       HANGUL SYLLABLE NEU

// Lo       HANGUL SYLLABLE NI

// Lo       HANGUL SYLLABLE NO

// Lo       HANGUL SYLLABLE NOE

// Lo       HANGUL SYLLABLE NU

// Lo       HANGUL SYLLABLE NWA

// Lo       HANGUL SYLLABLE NWAE

// Lo       HANGUL SYLLABLE NWE

// Lo       HANGUL SYLLABLE NWEO

// Lo       HANGUL SYLLABLE NWI

// Lo       HANGUL SYLLABLE NYA

// Lo       HANGUL SYLLABLE NYAE

// Lo       HANGUL SYLLABLE NYE

// Lo       HANGUL SYLLABLE NYEO

// Lo       HANGUL SYLLABLE NYI

// Lo       HANGUL SYLLABLE NYO

// Lo       HANGUL SYLLABLE NYU

// Lo       HANGUL SYLLABLE O

// Lo       HANGUL SYLLABLE OE

// Lo       HANGUL SYLLABLE PA

// Lo       HANGUL SYLLABLE PAE

// Lo       HANGUL SYLLABLE PE

// Lo       HANGUL SYLLABLE PEO

// Lo       HANGUL SYLLABLE PEU

// Lo       HANGUL SYLLABLE PI

// Lo       HANGUL SYLLABLE PO

// Lo       HANGUL SYLLABLE POE

// Lo       HANGUL SYLLABLE PU

// Lo       HANGUL SYLLABLE PWA

// Lo       HANGUL SYLLABLE PWAE

// Lo       HANGUL SYLLABLE PWE

// Lo       HANGUL SYLLABLE PWEO

// Lo       HANGUL SYLLABLE PWI

// Lo       HANGUL SYLLABLE PYA

// Lo       HANGUL SYLLABLE PYAE

// Lo       HANGUL SYLLABLE PYE

// Lo       HANGUL SYLLABLE PYEO

// Lo       HANGUL SYLLABLE PYI

// Lo       HANGUL SYLLABLE PYO

// Lo       HANGUL SYLLABLE PYU

// Lo       HANGUL SYLLABLE RA

// Lo       HANGUL SYLLABLE RAE

// Lo       HANGUL SYLLABLE RE

// Lo       HANGUL SYLLABLE REO

// Lo       HANGUL SYLLABLE REU

// Lo       HANGUL SYLLABLE RI

// Lo       HANGUL SYLLABLE RO

// Lo       HANGUL SYLLABLE ROE

// Lo       HANGUL SYLLABLE RU

// Lo       HANGUL SYLLABLE RWA

// Lo       HANGUL SYLLABLE RWAE

// Lo       HANGUL SYLLABLE RWE

// Lo       HANGUL SYLLABLE RWEO

// Lo       HANGUL SYLLABLE RWI

// Lo       HANGUL SYLLABLE RYA

// Lo       HANGUL SYLLABLE RYAE

// Lo       HANGUL SYLLABLE RYE

// Lo       HANGUL SYLLABLE RYEO

// Lo       HANGUL SYLLABLE RYI

// Lo       HANGUL SYLLABLE RYO

// Lo       HANGUL SYLLABLE RYU

// Lo       HANGUL SYLLABLE SA

// Lo       HANGUL SYLLABLE SAE

// Lo       HANGUL SYLLABLE SE

// Lo       HANGUL SYLLABLE SEO

// Lo       HANGUL SYLLABLE SEU

// Lo       HANGUL SYLLABLE SI

// Lo       HANGUL SYLLABLE SO

// Lo       HANGUL SYLLABLE SOE

// Lo       HANGUL SYLLABLE SSA

// Lo       HANGUL SYLLABLE SSAE

// Lo       HANGUL SYLLABLE SSE

// Lo       HANGUL SYLLABLE SSEO

// Lo       HANGUL SYLLABLE SSEU

// Lo       HANGUL SYLLABLE SSI

// Lo       HANGUL SYLLABLE SSO

// Lo       HANGUL SYLLABLE SSOE

// Lo       HANGUL SYLLABLE SSU

// Lo       HANGUL SYLLABLE SSWA

// Lo       HANGUL SYLLABLE SSWAE

// Lo       HANGUL SYLLABLE SSWE

// Lo       HANGUL SYLLABLE SSWEO

// Lo       HANGUL SYLLABLE SSWI

// Lo       HANGUL SYLLABLE SSYA

// Lo       HANGUL SYLLABLE SSYAE

// Lo       HANGUL SYLLABLE SSYE

// Lo       HANGUL SYLLABLE SSYEO

// Lo       HANGUL SYLLABLE SSYI

// Lo       HANGUL SYLLABLE SSYO

// Lo       HANGUL SYLLABLE SSYU

// Lo       HANGUL SYLLABLE SU

// Lo       HANGUL SYLLABLE SWA

// Lo       HANGUL SYLLABLE SWAE

// Lo       HANGUL SYLLABLE SWE

// Lo       HANGUL SYLLABLE SWEO

// Lo       HANGUL SYLLABLE SWI

// Lo       HANGUL SYLLABLE SYA

// Lo       HANGUL SYLLABLE SYAE

// Lo       HANGUL SYLLABLE SYE

// Lo       HANGUL SYLLABLE SYEO

// Lo       HANGUL SYLLABLE SYI

// Lo       HANGUL SYLLABLE SYO

// Lo       HANGUL SYLLABLE SYU

// Lo       HANGUL SYLLABLE TA

// Lo       HANGUL SYLLABLE TAE

// Lo       HANGUL SYLLABLE TE

// Lo       HANGUL SYLLABLE TEO

// Lo       HANGUL SYLLABLE TEU

// Lo       HANGUL SYLLABLE TI

// Lo       HANGUL SYLLABLE TO

// Lo       HANGUL SYLLABLE TOE

// Lo       HANGUL SYLLABLE TU

// Lo       HANGUL SYLLABLE TWA

// Lo       HANGUL SYLLABLE TWAE

// Lo       HANGUL SYLLABLE TWE

// Lo       HANGUL SYLLABLE TWEO

// Lo       HANGUL SYLLABLE TWI

// Lo       HANGUL SYLLABLE TYA

// Lo       HANGUL SYLLABLE TYAE

// Lo       HANGUL SYLLABLE TYE

// Lo       HANGUL SYLLABLE TYEO

// Lo       HANGUL SYLLABLE TYI

// Lo       HANGUL SYLLABLE TYO

// Lo       HANGUL SYLLABLE TYU

// Lo       HANGUL SYLLABLE U

// Lo       HANGUL SYLLABLE WA

// Lo       HANGUL SYLLABLE WAE

// Lo       HANGUL SYLLABLE WE

// Lo       HANGUL SYLLABLE WEO

// Lo       HANGUL SYLLABLE WI

// Lo       HANGUL SYLLABLE YA

// Lo       HANGUL SYLLABLE YAE

// Lo       HANGUL SYLLABLE YE

// Lo       HANGUL SYLLABLE YEO

// Lo       HANGUL SYLLABLE YI

// Lo       HANGUL SYLLABLE YO

// Lo       HANGUL SYLLABLE YU

// Lo       LAO VOWEL SIGN AM

// Lo       MALAYALAM LETTER DOT REPH

// Lo       THAI CHARACTER SARA AM

// Lo       ZANABAZAR SQUARE CLUSTER-INITIAL LETTER RA

// Lo   [2] SHARADA SIGN JIHVAMULIYA..SHARADA SIGN UPADHMANIYA

// Lo   [4] SOYOMBO CLUSTER-INITIAL LETTER RA..SOYOMBO CLUSTER-INITIAL LETTER SA

// Lo  [27] HANGUL SYLLABLE AEG..HANGUL SYLLABLE AEH

// Lo  [27] HANGUL SYLLABLE AG..HANGUL SYLLABLE AH

// Lo  [27] HANGUL SYLLABLE BAEG..HANGUL SYLLABLE BAEH

// Lo  [27] HANGUL SYLLABLE BAG..HANGUL SYLLABLE BAH

// Lo  [27] HANGUL SYLLABLE BBAEG..HANGUL SYLLABLE BBAEH

// Lo  [27] HANGUL SYLLABLE BBAG..HANGUL SYLLABLE BBAH

// Lo  [27] HANGUL SYLLABLE BBEG..HANGUL SYLLABLE BBEH

// Lo  [27] HANGUL SYLLABLE BBEOG..HANGUL SYLLABLE BBEOH

// Lo  [27] HANGUL SYLLABLE BBEUG..HANGUL SYLLABLE BBEUH

// Lo  [27] HANGUL SYLLABLE BBIG..HANGUL SYLLABLE BBIH

// Lo  [27] HANGUL SYLLABLE BBOEG..HANGUL SYLLABLE BBOEH

// Lo  [27] HANGUL SYLLABLE BBOG..HANGUL SYLLABLE BBOH

// Lo  [27] HANGUL SYLLABLE BBUG..HANGUL SYLLABLE BBUH

// Lo  [27] HANGUL SYLLABLE BBWAEG..HANGUL SYLLABLE BBWAEH

// Lo  [27] HANGUL SYLLABLE BBWAG..HANGUL SYLLABLE BBWAH

// Lo  [27] HANGUL SYLLABLE BBWEG..HANGUL SYLLABLE BBWEH

// Lo  [27] HANGUL SYLLABLE BBWEOG..HANGUL SYLLABLE BBWEOH

// Lo  [27] HANGUL SYLLABLE BBWIG..HANGUL SYLLABLE BBWIH

// Lo  [27] HANGUL SYLLABLE BBYAEG..HANGUL SYLLABLE BBYAEH

// Lo  [27] HANGUL SYLLABLE BBYAG..HANGUL SYLLABLE BBYAH

// Lo  [27] HANGUL SYLLABLE BBYEG..HANGUL SYLLABLE BBYEH

// Lo  [27] HANGUL SYLLABLE BBYEOG..HANGUL SYLLABLE BBYEOH

// Lo  [27] HANGUL SYLLABLE BBYIG..HANGUL SYLLABLE BBYIH

// Lo  [27] HANGUL SYLLABLE BBYOG..HANGUL SYLLABLE BBYOH

// Lo  [27] HANGUL SYLLABLE BBYUG..HANGUL SYLLABLE BBYUH

// Lo  [27] HANGUL SYLLABLE BEG..HANGUL SYLLABLE BEH

// Lo  [27] HANGUL SYLLABLE BEOG..HANGUL SYLLABLE BEOH

// Lo  [27] HANGUL SYLLABLE BEUG..HANGUL SYLLABLE BEUH

// Lo  [27] HANGUL SYLLABLE BIG..HANGUL SYLLABLE BIH

// Lo  [27] HANGUL SYLLABLE BOEG..HANGUL SYLLABLE BOEH

// Lo  [27] HANGUL SYLLABLE BOG..HANGUL SYLLABLE BOH

// Lo  [27] HANGUL SYLLABLE BUG..HANGUL SYLLABLE BUH

// Lo  [27] HANGUL SYLLABLE BWAEG..HANGUL SYLLABLE BWAEH

// Lo  [27] HANGUL SYLLABLE BWAG..HANGUL SYLLABLE BWAH

// Lo  [27] HANGUL SYLLABLE BWEG..HANGUL SYLLABLE BWEH

// Lo  [27] HANGUL SYLLABLE BWEOG..HANGUL SYLLABLE BWEOH

// Lo  [27] HANGUL SYLLABLE BWIG..HANGUL SYLLABLE BWIH

// Lo  [27] HANGUL SYLLABLE BYAEG..HANGUL SYLLABLE BYAEH

// Lo  [27] HANGUL SYLLABLE BYAG..HANGUL SYLLABLE BYAH

// Lo  [27] HANGUL SYLLABLE BYEG..HANGUL SYLLABLE BYEH

// Lo  [27] HANGUL SYLLABLE BYEOG..HANGUL SYLLABLE BYEOH

// Lo  [27] HANGUL SYLLABLE BYIG..HANGUL SYLLABLE BYIH

// Lo  [27] HANGUL SYLLABLE BYOG..HANGUL SYLLABLE BYOH

// Lo  [27] HANGUL SYLLABLE BYUG..HANGUL SYLLABLE BYUH

// Lo  [27] HANGUL SYLLABLE CAEG..HANGUL SYLLABLE CAEH

// Lo  [27] HANGUL SYLLABLE CAG..HANGUL SYLLABLE CAH

// Lo  [27] HANGUL SYLLABLE CEG..HANGUL SYLLABLE CEH

// Lo  [27] HANGUL SYLLABLE CEOG..HANGUL SYLLABLE CEOH

// Lo  [27] HANGUL SYLLABLE CEUG..HANGUL SYLLABLE CEUH

// Lo  [27] HANGUL SYLLABLE CIG..HANGUL SYLLABLE CIH

// Lo  [27] HANGUL SYLLABLE COEG..HANGUL SYLLABLE COEH

// Lo  [27] HANGUL SYLLABLE COG..HANGUL SYLLABLE COH

// Lo  [27] HANGUL SYLLABLE CUG..HANGUL SYLLABLE CUH

// Lo  [27] HANGUL SYLLABLE CWAEG..HANGUL SYLLABLE CWAEH

// Lo  [27] HANGUL SYLLABLE CWAG..HANGUL SYLLABLE CWAH

// Lo  [27] HANGUL SYLLABLE CWEG..HANGUL SYLLABLE CWEH

// Lo  [27] HANGUL SYLLABLE CWEOG..HANGUL SYLLABLE CWEOH

// Lo  [27] HANGUL SYLLABLE CWIG..HANGUL SYLLABLE CWIH

// Lo  [27] HANGUL SYLLABLE CYAEG..HANGUL SYLLABLE CYAEH

// Lo  [27] HANGUL SYLLABLE CYAG..HANGUL SYLLABLE CYAH

// Lo  [27] HANGUL SYLLABLE CYEG..HANGUL SYLLABLE CYEH

// Lo  [27] HANGUL SYLLABLE CYEOG..HANGUL SYLLABLE CYEOH

// Lo  [27] HANGUL SYLLABLE CYIG..HANGUL SYLLABLE CYIH

// Lo  [27] HANGUL SYLLABLE CYOG..HANGUL SYLLABLE CYOH

// Lo  [27] HANGUL SYLLABLE CYUG..HANGUL SYLLABLE CYUH

// Lo  [27] HANGUL SYLLABLE DAEG..HANGUL SYLLABLE DAEH

// Lo  [27] HANGUL SYLLABLE DAG..HANGUL SYLLABLE DAH

// Lo  [27] HANGUL SYLLABLE DDAEG..HANGUL SYLLABLE DDAEH

// Lo  [27] HANGUL SYLLABLE DDAG..HANGUL SYLLABLE DDAH

// Lo  [27] HANGUL SYLLABLE DDEG..HANGUL SYLLABLE DDEH

// Lo  [27] HANGUL SYLLABLE DDEOG..HANGUL SYLLABLE DDEOH

// Lo  [27] HANGUL SYLLABLE DDEUG..HANGUL SYLLABLE DDEUH

// Lo  [27] HANGUL SYLLABLE DDIG..HANGUL SYLLABLE DDIH

// Lo  [27] HANGUL SYLLABLE DDOEG..HANGUL SYLLABLE DDOEH

// Lo  [27] HANGUL SYLLABLE DDOG..HANGUL SYLLABLE DDOH

// Lo  [27] HANGUL SYLLABLE DDUG..HANGUL SYLLABLE DDUH

// Lo  [27] HANGUL SYLLABLE DDWAEG..HANGUL SYLLABLE DDWAEH

// Lo  [27] HANGUL SYLLABLE DDWAG..HANGUL SYLLABLE DDWAH

// Lo  [27] HANGUL SYLLABLE DDWEG..HANGUL SYLLABLE DDWEH

// Lo  [27] HANGUL SYLLABLE DDWEOG..HANGUL SYLLABLE DDWEOH

// Lo  [27] HANGUL SYLLABLE DDWIG..HANGUL SYLLABLE DDWIH

// Lo  [27] HANGUL SYLLABLE DDYAEG..HANGUL SYLLABLE DDYAEH

// Lo  [27] HANGUL SYLLABLE DDYAG..HANGUL SYLLABLE DDYAH

// Lo  [27] HANGUL SYLLABLE DDYEG..HANGUL SYLLABLE DDYEH

// Lo  [27] HANGUL SYLLABLE DDYEOG..HANGUL SYLLABLE DDYEOH

// Lo  [27] HANGUL SYLLABLE DDYIG..HANGUL SYLLABLE DDYIH

// Lo  [27] HANGUL SYLLABLE DDYOG..HANGUL SYLLABLE DDYOH

// Lo  [27] HANGUL SYLLABLE DDYUG..HANGUL SYLLABLE DDYUH

// Lo  [27] HANGUL SYLLABLE DEG..HANGUL SYLLABLE DEH

// Lo  [27] HANGUL SYLLABLE DEOG..HANGUL SYLLABLE DEOH

// Lo  [27] HANGUL SYLLABLE DEUG..HANGUL SYLLABLE DEUH

// Lo  [27] HANGUL SYLLABLE DIG..HANGUL SYLLABLE DIH

// Lo  [27] HANGUL SYLLABLE DOEG..HANGUL SYLLABLE DOEH

// Lo  [27] HANGUL SYLLABLE DOG..HANGUL SYLLABLE DOH

// Lo  [27] HANGUL SYLLABLE DUG..HANGUL SYLLABLE DUH

// Lo  [27] HANGUL SYLLABLE DWAEG..HANGUL SYLLABLE DWAEH

// Lo  [27] HANGUL SYLLABLE DWAG..HANGUL SYLLABLE DWAH

// Lo  [27] HANGUL SYLLABLE DWEG..HANGUL SYLLABLE DWEH

// Lo  [27] HANGUL SYLLABLE DWEOG..HANGUL SYLLABLE DWEOH

// Lo  [27] HANGUL SYLLABLE DWIG..HANGUL SYLLABLE DWIH

// Lo  [27] HANGUL SYLLABLE DYAEG..HANGUL SYLLABLE DYAEH

// Lo  [27] HANGUL SYLLABLE DYAG..HANGUL SYLLABLE DYAH

// Lo  [27] HANGUL SYLLABLE DYEG..HANGUL SYLLABLE DYEH

// Lo  [27] HANGUL SYLLABLE DYEOG..HANGUL SYLLABLE DYEOH

// Lo  [27] HANGUL SYLLABLE DYIG..HANGUL SYLLABLE DYIH

// Lo  [27] HANGUL SYLLABLE DYOG..HANGUL SYLLABLE DYOH

// Lo  [27] HANGUL SYLLABLE DYUG..HANGUL SYLLABLE DYUH

// Lo  [27] HANGUL SYLLABLE EG..HANGUL SYLLABLE EH

// Lo  [27] HANGUL SYLLABLE EOG..HANGUL SYLLABLE EOH

// Lo  [27] HANGUL SYLLABLE EUG..HANGUL SYLLABLE EUH

// Lo  [27] HANGUL SYLLABLE GAEG..HANGUL SYLLABLE GAEH

// Lo  [27] HANGUL SYLLABLE GAG..HANGUL SYLLABLE GAH

// Lo  [27] HANGUL SYLLABLE GEG..HANGUL SYLLABLE GEH

// Lo  [27] HANGUL SYLLABLE GEOG..HANGUL SYLLABLE GEOH

// Lo  [27] HANGUL SYLLABLE GEUG..HANGUL SYLLABLE GEUH

// Lo  [27] HANGUL SYLLABLE GGAEG..HANGUL SYLLABLE GGAEH

// Lo  [27] HANGUL SYLLABLE GGAG..HANGUL SYLLABLE GGAH

// Lo  [27] HANGUL SYLLABLE GGEG..HANGUL SYLLABLE GGEH

// Lo  [27] HANGUL SYLLABLE GGEOG..HANGUL SYLLABLE GGEOH

// Lo  [27] HANGUL SYLLABLE GGEUG..HANGUL SYLLABLE GGEUH

// Lo  [27] HANGUL SYLLABLE GGIG..HANGUL SYLLABLE GGIH

// Lo  [27] HANGUL SYLLABLE GGOEG..HANGUL SYLLABLE GGOEH

// Lo  [27] HANGUL SYLLABLE GGOG..HANGUL SYLLABLE GGOH

// Lo  [27] HANGUL SYLLABLE GGUG..HANGUL SYLLABLE GGUH

// Lo  [27] HANGUL SYLLABLE GGWAEG..HANGUL SYLLABLE GGWAEH

// Lo  [27] HANGUL SYLLABLE GGWAG..HANGUL SYLLABLE GGWAH

// Lo  [27] HANGUL SYLLABLE GGWEG..HANGUL SYLLABLE GGWEH

// Lo  [27] HANGUL SYLLABLE GGWEOG..HANGUL SYLLABLE GGWEOH

// Lo  [27] HANGUL SYLLABLE GGWIG..HANGUL SYLLABLE GGWIH

// Lo  [27] HANGUL SYLLABLE GGYAEG..HANGUL SYLLABLE GGYAEH

// Lo  [27] HANGUL SYLLABLE GGYAG..HANGUL SYLLABLE GGYAH

// Lo  [27] HANGUL SYLLABLE GGYEG..HANGUL SYLLABLE GGYEH

// Lo  [27] HANGUL SYLLABLE GGYEOG..HANGUL SYLLABLE GGYEOH

// Lo  [27] HANGUL SYLLABLE GGYIG..HANGUL SYLLABLE GGYIH

// Lo  [27] HANGUL SYLLABLE GGYOG..HANGUL SYLLABLE GGYOH

// Lo  [27] HANGUL SYLLABLE GGYUG..HANGUL SYLLABLE GGYUH

// Lo  [27] HANGUL SYLLABLE GIG..HANGUL SYLLABLE GIH

// Lo  [27] HANGUL SYLLABLE GOEG..HANGUL SYLLABLE GOEH

// Lo  [27] HANGUL SYLLABLE GOG..HANGUL SYLLABLE GOH

// Lo  [27] HANGUL SYLLABLE GUG..HANGUL SYLLABLE GUH

// Lo  [27] HANGUL SYLLABLE GWAEG..HANGUL SYLLABLE GWAEH

// Lo  [27] HANGUL SYLLABLE GWAG..HANGUL SYLLABLE GWAH

// Lo  [27] HANGUL SYLLABLE GWEG..HANGUL SYLLABLE GWEH

// Lo  [27] HANGUL SYLLABLE GWEOG..HANGUL SYLLABLE GWEOH

// Lo  [27] HANGUL SYLLABLE GWIG..HANGUL SYLLABLE GWIH

// Lo  [27] HANGUL SYLLABLE GYAEG..HANGUL SYLLABLE GYAEH

// Lo  [27] HANGUL SYLLABLE GYAG..HANGUL SYLLABLE GYAH

// Lo  [27] HANGUL SYLLABLE GYEG..HANGUL SYLLABLE GYEH

// Lo  [27] HANGUL SYLLABLE GYEOG..HANGUL SYLLABLE GYEOH

// Lo  [27] HANGUL SYLLABLE GYIG..HANGUL SYLLABLE GYIH

// Lo  [27] HANGUL SYLLABLE GYOG..HANGUL SYLLABLE GYOH

// Lo  [27] HANGUL SYLLABLE GYUG..HANGUL SYLLABLE GYUH

// Lo  [27] HANGUL SYLLABLE HAEG..HANGUL SYLLABLE HAEH

// Lo  [27] HANGUL SYLLABLE HAG..HANGUL SYLLABLE HAH

// Lo  [27] HANGUL SYLLABLE HEG..HANGUL SYLLABLE HEH

// Lo  [27] HANGUL SYLLABLE HEOG..HANGUL SYLLABLE HEOH

// Lo  [27] HANGUL SYLLABLE HEUG..HANGUL SYLLABLE HEUH

// Lo  [27] HANGUL SYLLABLE HOEG..HANGUL SYLLABLE HOEH

// Lo  [27] HANGUL SYLLABLE HOG..HANGUL SYLLABLE HOH

// Lo  [27] HANGUL SYLLABLE HUG..HANGUL SYLLABLE HUH

// Lo  [27] HANGUL SYLLABLE HWAEG..HANGUL SYLLABLE HWAEH

// Lo  [27] HANGUL SYLLABLE HWAG..HANGUL SYLLABLE HWAH

// Lo  [27] HANGUL SYLLABLE HWEG..HANGUL SYLLABLE HWEH

// Lo  [27] HANGUL SYLLABLE HWEOG..HANGUL SYLLABLE HWEOH

// Lo  [27] HANGUL SYLLABLE HWIG..HANGUL SYLLABLE HWIH

// Lo  [27] HANGUL SYLLABLE HYAEG..HANGUL SYLLABLE HYAEH

// Lo  [27] HANGUL SYLLABLE HYAG..HANGUL SYLLABLE HYAH

// Lo  [27] HANGUL SYLLABLE HYEG..HANGUL SYLLABLE HYEH

// Lo  [27] HANGUL SYLLABLE HYEOG..HANGUL SYLLABLE HYEOH

// Lo  [27] HANGUL SYLLABLE HYIG..HANGUL SYLLABLE HYIH

// Lo  [27] HANGUL SYLLABLE HYOG..HANGUL SYLLABLE HYOH

// Lo  [27] HANGUL SYLLABLE HYUG..HANGUL SYLLABLE HYUH

// Lo  [27] HANGUL SYLLABLE IG..HANGUL SYLLABLE IH

// Lo  [27] HANGUL SYLLABLE JAEG..HANGUL SYLLABLE JAEH

// Lo  [27] HANGUL SYLLABLE JAG..HANGUL SYLLABLE JAH

// Lo  [27] HANGUL SYLLABLE JEG..HANGUL SYLLABLE JEH

// Lo  [27] HANGUL SYLLABLE JEOG..HANGUL SYLLABLE JEOH

// Lo  [27] HANGUL SYLLABLE JEUG..HANGUL SYLLABLE JEUH

// Lo  [27] HANGUL SYLLABLE JIG..HANGUL SYLLABLE JIH

// Lo  [27] HANGUL SYLLABLE JJAEG..HANGUL SYLLABLE JJAEH

// Lo  [27] HANGUL SYLLABLE JJAG..HANGUL SYLLABLE JJAH

// Lo  [27] HANGUL SYLLABLE JJEG..HANGUL SYLLABLE JJEH

// Lo  [27] HANGUL SYLLABLE JJEOG..HANGUL SYLLABLE JJEOH

// Lo  [27] HANGUL SYLLABLE JJEUG..HANGUL SYLLABLE JJEUH

// Lo  [27] HANGUL SYLLABLE JJIG..HANGUL SYLLABLE JJIH

// Lo  [27] HANGUL SYLLABLE JJOEG..HANGUL SYLLABLE JJOEH

// Lo  [27] HANGUL SYLLABLE JJOG..HANGUL SYLLABLE JJOH

// Lo  [27] HANGUL SYLLABLE JJUG..HANGUL SYLLABLE JJUH

// Lo  [27] HANGUL SYLLABLE JJWAEG..HANGUL SYLLABLE JJWAEH

// Lo  [27] HANGUL SYLLABLE JJWAG..HANGUL SYLLABLE JJWAH

// Lo  [27] HANGUL SYLLABLE JJWEG..HANGUL SYLLABLE JJWEH

// Lo  [27] HANGUL SYLLABLE JJWEOG..HANGUL SYLLABLE JJWEOH

// Lo  [27] HANGUL SYLLABLE JJWIG..HANGUL SYLLABLE JJWIH

// Lo  [27] HANGUL SYLLABLE JJYAEG..HANGUL SYLLABLE JJYAEH

// Lo  [27] HANGUL SYLLABLE JJYAG..HANGUL SYLLABLE JJYAH

// Lo  [27] HANGUL SYLLABLE JJYEG..HANGUL SYLLABLE JJYEH

// Lo  [27] HANGUL SYLLABLE JJYEOG..HANGUL SYLLABLE JJYEOH

// Lo  [27] HANGUL SYLLABLE JJYIG..HANGUL SYLLABLE JJYIH

// Lo  [27] HANGUL SYLLABLE JJYOG..HANGUL SYLLABLE JJYOH

// Lo  [27] HANGUL SYLLABLE JJYUG..HANGUL SYLLABLE JJYUH

// Lo  [27] HANGUL SYLLABLE JOEG..HANGUL SYLLABLE JOEH

// Lo  [27] HANGUL SYLLABLE JOG..HANGUL SYLLABLE JOH

// Lo  [27] HANGUL SYLLABLE JUG..HANGUL SYLLABLE JUH

// Lo  [27] HANGUL SYLLABLE JWAEG..HANGUL SYLLABLE JWAEH

// Lo  [27] HANGUL SYLLABLE JWAG..HANGUL SYLLABLE JWAH

// Lo  [27] HANGUL SYLLABLE JWEG..HANGUL SYLLABLE JWEH

// Lo  [27] HANGUL SYLLABLE JWEOG..HANGUL SYLLABLE JWEOH

// Lo  [27] HANGUL SYLLABLE JWIG..HANGUL SYLLABLE JWIH

// Lo  [27] HANGUL SYLLABLE JYAEG..HANGUL SYLLABLE JYAEH

// Lo  [27] HANGUL SYLLABLE JYAG..HANGUL SYLLABLE JYAH

// Lo  [27] HANGUL SYLLABLE JYEG..HANGUL SYLLABLE JYEH

// Lo  [27] HANGUL SYLLABLE JYEOG..HANGUL SYLLABLE JYEOH

// Lo  [27] HANGUL SYLLABLE JYIG..HANGUL SYLLABLE JYIH

// Lo  [27] HANGUL SYLLABLE JYOG..HANGUL SYLLABLE JYOH

// Lo  [27] HANGUL SYLLABLE JYUG..HANGUL SYLLABLE JYUH

// Lo  [27] HANGUL SYLLABLE KAEG..HANGUL SYLLABLE KAEH

// Lo  [27] HANGUL SYLLABLE KAG..HANGUL SYLLABLE KAH

// Lo  [27] HANGUL SYLLABLE KEG..HANGUL SYLLABLE KEH

// Lo  [27] HANGUL SYLLABLE KEOG..HANGUL SYLLABLE KEOH

// Lo  [27] HANGUL SYLLABLE KEUG..HANGUL SYLLABLE KEUH

// Lo  [27] HANGUL SYLLABLE KIG..HANGUL SYLLABLE KIH

// Lo  [27] HANGUL SYLLABLE KOEG..HANGUL SYLLABLE KOEH

// Lo  [27] HANGUL SYLLABLE KOG..HANGUL SYLLABLE KOH

// Lo  [27] HANGUL SYLLABLE KUG..HANGUL SYLLABLE KUH

// Lo  [27] HANGUL SYLLABLE KWAEG..HANGUL SYLLABLE KWAEH

// Lo  [27] HANGUL SYLLABLE KWAG..HANGUL SYLLABLE KWAH

// Lo  [27] HANGUL SYLLABLE KWEG..HANGUL SYLLABLE KWEH

// Lo  [27] HANGUL SYLLABLE KWEOG..HANGUL SYLLABLE KWEOH

// Lo  [27] HANGUL SYLLABLE KWIG..HANGUL SYLLABLE KWIH

// Lo  [27] HANGUL SYLLABLE KYAEG..HANGUL SYLLABLE KYAEH

// Lo  [27] HANGUL SYLLABLE KYAG..HANGUL SYLLABLE KYAH

// Lo  [27] HANGUL SYLLABLE KYEG..HANGUL SYLLABLE KYEH

// Lo  [27] HANGUL SYLLABLE KYEOG..HANGUL SYLLABLE KYEOH

// Lo  [27] HANGUL SYLLABLE KYIG..HANGUL SYLLABLE KYIH

// Lo  [27] HANGUL SYLLABLE KYOG..HANGUL SYLLABLE KYOH

// Lo  [27] HANGUL SYLLABLE KYUG..HANGUL SYLLABLE KYUH

// Lo  [27] HANGUL SYLLABLE MAEG..HANGUL SYLLABLE MAEH

// Lo  [27] HANGUL SYLLABLE MAG..HANGUL SYLLABLE MAH

// Lo  [27] HANGUL SYLLABLE MEG..HANGUL SYLLABLE MEH

// Lo  [27] HANGUL SYLLABLE MEOG..HANGUL SYLLABLE MEOH

// Lo  [27] HANGUL SYLLABLE MEUG..HANGUL SYLLABLE MEUH

// Lo  [27] HANGUL SYLLABLE MIG..HANGUL SYLLABLE MIH

// Lo  [27] HANGUL SYLLABLE MOEG..HANGUL SYLLABLE MOEH

// Lo  [27] HANGUL SYLLABLE MOG..HANGUL SYLLABLE MOH

// Lo  [27] HANGUL SYLLABLE MUG..HANGUL SYLLABLE MUH

// Lo  [27] HANGUL SYLLABLE MWAEG..HANGUL SYLLABLE MWAEH

// Lo  [27] HANGUL SYLLABLE MWAG..HANGUL SYLLABLE MWAH

// Lo  [27] HANGUL SYLLABLE MWEG..HANGUL SYLLABLE MWEH

// Lo  [27] HANGUL SYLLABLE MWEOG..HANGUL SYLLABLE MWEOH

// Lo  [27] HANGUL SYLLABLE MWIG..HANGUL SYLLABLE MWIH

// Lo  [27] HANGUL SYLLABLE MYAEG..HANGUL SYLLABLE MYAEH

// Lo  [27] HANGUL SYLLABLE MYAG..HANGUL SYLLABLE MYAH

// Lo  [27] HANGUL SYLLABLE MYEG..HANGUL SYLLABLE MYEH

// Lo  [27] HANGUL SYLLABLE MYEOG..HANGUL SYLLABLE MYEOH

// Lo  [27] HANGUL SYLLABLE MYIG..HANGUL SYLLABLE MYIH

// Lo  [27] HANGUL SYLLABLE MYOG..HANGUL SYLLABLE MYOH

// Lo  [27] HANGUL SYLLABLE MYUG..HANGUL SYLLABLE MYUH

// Lo  [27] HANGUL SYLLABLE NAEG..HANGUL SYLLABLE NAEH

// Lo  [27] HANGUL SYLLABLE NAG..HANGUL SYLLABLE NAH

// Lo  [27] HANGUL SYLLABLE NEG..HANGUL SYLLABLE NEH

// Lo  [27] HANGUL SYLLABLE NEOG..HANGUL SYLLABLE NEOH

// Lo  [27] HANGUL SYLLABLE NEUG..HANGUL SYLLABLE NEUH

// Lo  [27] HANGUL SYLLABLE NIG..HANGUL SYLLABLE NIH

// Lo  [27] HANGUL SYLLABLE NOEG..HANGUL SYLLABLE NOEH

// Lo  [27] HANGUL SYLLABLE NOG..HANGUL SYLLABLE NOH

// Lo  [27] HANGUL SYLLABLE NUG..HANGUL SYLLABLE NUH

// Lo  [27] HANGUL SYLLABLE NWAEG..HANGUL SYLLABLE NWAEH

// Lo  [27] HANGUL SYLLABLE NWAG..HANGUL SYLLABLE NWAH

// Lo  [27] HANGUL SYLLABLE NWEG..HANGUL SYLLABLE NWEH

// Lo  [27] HANGUL SYLLABLE NWEOG..HANGUL SYLLABLE NWEOH

// Lo  [27] HANGUL SYLLABLE NWIG..HANGUL SYLLABLE NWIH

// Lo  [27] HANGUL SYLLABLE NYAEG..HANGUL SYLLABLE NYAEH

// Lo  [27] HANGUL SYLLABLE NYAG..HANGUL SYLLABLE NYAH

// Lo  [27] HANGUL SYLLABLE NYEG..HANGUL SYLLABLE NYEH

// Lo  [27] HANGUL SYLLABLE NYEOG..HANGUL SYLLABLE NYEOH

// Lo  [27] HANGUL SYLLABLE NYIG..HANGUL SYLLABLE NYIH

// Lo  [27] HANGUL SYLLABLE NYOG..HANGUL SYLLABLE NYOH

// Lo  [27] HANGUL SYLLABLE NYUG..HANGUL SYLLABLE NYUH

// Lo  [27] HANGUL SYLLABLE OEG..HANGUL SYLLABLE OEH

// Lo  [27] HANGUL SYLLABLE OG..HANGUL SYLLABLE OH

// Lo  [27] HANGUL SYLLABLE PAEG..HANGUL SYLLABLE PAEH

// Lo  [27] HANGUL SYLLABLE PAG..HANGUL SYLLABLE PAH

// Lo  [27] HANGUL SYLLABLE PEG..HANGUL SYLLABLE PEH

// Lo  [27] HANGUL SYLLABLE PEOG..HANGUL SYLLABLE PEOH

// Lo  [27] HANGUL SYLLABLE PEUG..HANGUL SYLLABLE PEUH

// Lo  [27] HANGUL SYLLABLE PIG..HANGUL SYLLABLE PIH

// Lo  [27] HANGUL SYLLABLE POEG..HANGUL SYLLABLE POEH

// Lo  [27] HANGUL SYLLABLE POG..HANGUL SYLLABLE POH

// Lo  [27] HANGUL SYLLABLE PUG..HANGUL SYLLABLE PUH

// Lo  [27] HANGUL SYLLABLE PWAEG..HANGUL SYLLABLE PWAEH

// Lo  [27] HANGUL SYLLABLE PWAG..HANGUL SYLLABLE PWAH

// Lo  [27] HANGUL SYLLABLE PWEG..HANGUL SYLLABLE PWEH

// Lo  [27] HANGUL SYLLABLE PWEOG..HANGUL SYLLABLE PWEOH

// Lo  [27] HANGUL SYLLABLE PWIG..HANGUL SYLLABLE PWIH

// Lo  [27] HANGUL SYLLABLE PYAEG..HANGUL SYLLABLE PYAEH

// Lo  [27] HANGUL SYLLABLE PYAG..HANGUL SYLLABLE PYAH

// Lo  [27] HANGUL SYLLABLE PYEG..HANGUL SYLLABLE PYEH

// Lo  [27] HANGUL SYLLABLE PYEOG..HANGUL SYLLABLE PYEOH

// Lo  [27] HANGUL SYLLABLE PYIG..HANGUL SYLLABLE PYIH

// Lo  [27] HANGUL SYLLABLE PYOG..HANGUL SYLLABLE PYOH

// Lo  [27] HANGUL SYLLABLE PYUG..HANGUL SYLLABLE PYUH

// Lo  [27] HANGUL SYLLABLE RAEG..HANGUL SYLLABLE RAEH

// Lo  [27] HANGUL SYLLABLE RAG..HANGUL SYLLABLE RAH

// Lo  [27] HANGUL SYLLABLE REG..HANGUL SYLLABLE REH

// Lo  [27] HANGUL SYLLABLE REOG..HANGUL SYLLABLE REOH

// Lo  [27] HANGUL SYLLABLE REUG..HANGUL SYLLABLE REUH

// Lo  [27] HANGUL SYLLABLE RIG..HANGUL SYLLABLE RIH

// Lo  [27] HANGUL SYLLABLE ROEG..HANGUL SYLLABLE ROEH

// Lo  [27] HANGUL SYLLABLE ROG..HANGUL SYLLABLE ROH

// Lo  [27] HANGUL SYLLABLE RUG..HANGUL SYLLABLE RUH

// Lo  [27] HANGUL SYLLABLE RWAEG..HANGUL SYLLABLE RWAEH

// Lo  [27] HANGUL SYLLABLE RWAG..HANGUL SYLLABLE RWAH

// Lo  [27] HANGUL SYLLABLE RWEG..HANGUL SYLLABLE RWEH

// Lo  [27] HANGUL SYLLABLE RWEOG..HANGUL SYLLABLE RWEOH

// Lo  [27] HANGUL SYLLABLE RWIG..HANGUL SYLLABLE RWIH

// Lo  [27] HANGUL SYLLABLE RYAEG..HANGUL SYLLABLE RYAEH

// Lo  [27] HANGUL SYLLABLE RYAG..HANGUL SYLLABLE RYAH

// Lo  [27] HANGUL SYLLABLE RYEG..HANGUL SYLLABLE RYEH

// Lo  [27] HANGUL SYLLABLE RYEOG..HANGUL SYLLABLE RYEOH

// Lo  [27] HANGUL SYLLABLE RYIG..HANGUL SYLLABLE RYIH

// Lo  [27] HANGUL SYLLABLE RYOG..HANGUL SYLLABLE RYOH

// Lo  [27] HANGUL SYLLABLE RYUG..HANGUL SYLLABLE RYUH

// Lo  [27] HANGUL SYLLABLE SAEG..HANGUL SYLLABLE SAEH

// Lo  [27] HANGUL SYLLABLE SAG..HANGUL SYLLABLE SAH

// Lo  [27] HANGUL SYLLABLE SEG..HANGUL SYLLABLE SEH

// Lo  [27] HANGUL SYLLABLE SEOG..HANGUL SYLLABLE SEOH

// Lo  [27] HANGUL SYLLABLE SEUG..HANGUL SYLLABLE SEUH

// Lo  [27] HANGUL SYLLABLE SIG..HANGUL SYLLABLE SIH

// Lo  [27] HANGUL SYLLABLE SOEG..HANGUL SYLLABLE SOEH

// Lo  [27] HANGUL SYLLABLE SOG..HANGUL SYLLABLE SOH

// Lo  [27] HANGUL SYLLABLE SSAEG..HANGUL SYLLABLE SSAEH

// Lo  [27] HANGUL SYLLABLE SSAG..HANGUL SYLLABLE SSAH

// Lo  [27] HANGUL SYLLABLE SSEG..HANGUL SYLLABLE SSEH

// Lo  [27] HANGUL SYLLABLE SSEOG..HANGUL SYLLABLE SSEOH

// Lo  [27] HANGUL SYLLABLE SSEUG..HANGUL SYLLABLE SSEUH

// Lo  [27] HANGUL SYLLABLE SSIG..HANGUL SYLLABLE SSIH

// Lo  [27] HANGUL SYLLABLE SSOEG..HANGUL SYLLABLE SSOEH

// Lo  [27] HANGUL SYLLABLE SSOG..HANGUL SYLLABLE SSOH

// Lo  [27] HANGUL SYLLABLE SSUG..HANGUL SYLLABLE SSUH

// Lo  [27] HANGUL SYLLABLE SSWAEG..HANGUL SYLLABLE SSWAEH

// Lo  [27] HANGUL SYLLABLE SSWAG..HANGUL SYLLABLE SSWAH

// Lo  [27] HANGUL SYLLABLE SSWEG..HANGUL SYLLABLE SSWEH

// Lo  [27] HANGUL SYLLABLE SSWEOG..HANGUL SYLLABLE SSWEOH

// Lo  [27] HANGUL SYLLABLE SSWIG..HANGUL SYLLABLE SSWIH

// Lo  [27] HANGUL SYLLABLE SSYAEG..HANGUL SYLLABLE SSYAEH

// Lo  [27] HANGUL SYLLABLE SSYAG..HANGUL SYLLABLE SSYAH

// Lo  [27] HANGUL SYLLABLE SSYEG..HANGUL SYLLABLE SSYEH

// Lo  [27] HANGUL SYLLABLE SSYEOG..HANGUL SYLLABLE SSYEOH

// Lo  [27] HANGUL SYLLABLE SSYIG..HANGUL SYLLABLE SSYIH

// Lo  [27] HANGUL SYLLABLE SSYOG..HANGUL SYLLABLE SSYOH

// Lo  [27] HANGUL SYLLABLE SSYUG..HANGUL SYLLABLE SSYUH

// Lo  [27] HANGUL SYLLABLE SUG..HANGUL SYLLABLE SUH

// Lo  [27] HANGUL SYLLABLE SWAEG..HANGUL SYLLABLE SWAEH

// Lo  [27] HANGUL SYLLABLE SWAG..HANGUL SYLLABLE SWAH

// Lo  [27] HANGUL SYLLABLE SWEG..HANGUL SYLLABLE SWEH

// Lo  [27] HANGUL SYLLABLE SWEOG..HANGUL SYLLABLE SWEOH

// Lo  [27] HANGUL SYLLABLE SWIG..HANGUL SYLLABLE SWIH

// Lo  [27] HANGUL SYLLABLE SYAEG..HANGUL SYLLABLE SYAEH

// Lo  [27] HANGUL SYLLABLE SYAG..HANGUL SYLLABLE SYAH

// Lo  [27] HANGUL SYLLABLE SYEG..HANGUL SYLLABLE SYEH

// Lo  [27] HANGUL SYLLABLE SYEOG..HANGUL SYLLABLE SYEOH

// Lo  [27] HANGUL SYLLABLE SYIG..HANGUL SYLLABLE SYIH

// Lo  [27] HANGUL SYLLABLE SYOG..HANGUL SYLLABLE SYOH

// Lo  [27] HANGUL SYLLABLE SYUG..HANGUL SYLLABLE SYUH

// Lo  [27] HANGUL SYLLABLE TAEG..HANGUL SYLLABLE TAEH

// Lo  [27] HANGUL SYLLABLE TAG..HANGUL SYLLABLE TAH

// Lo  [27] HANGUL SYLLABLE TEG..HANGUL SYLLABLE TEH

// Lo  [27] HANGUL SYLLABLE TEOG..HANGUL SYLLABLE TEOH

// Lo  [27] HANGUL SYLLABLE TEUG..HANGUL SYLLABLE TEUH

// Lo  [27] HANGUL SYLLABLE TIG..HANGUL SYLLABLE TIH

// Lo  [27] HANGUL SYLLABLE TOEG..HANGUL SYLLABLE TOEH

// Lo  [27] HANGUL SYLLABLE TOG..HANGUL SYLLABLE TOH

// Lo  [27] HANGUL SYLLABLE TUG..HANGUL SYLLABLE TUH

// Lo  [27] HANGUL SYLLABLE TWAEG..HANGUL SYLLABLE TWAEH

// Lo  [27] HANGUL SYLLABLE TWAG..HANGUL SYLLABLE TWAH

// Lo  [27] HANGUL SYLLABLE TWEG..HANGUL SYLLABLE TWEH

// Lo  [27] HANGUL SYLLABLE TWEOG..HANGUL SYLLABLE TWEOH

// Lo  [27] HANGUL SYLLABLE TWIG..HANGUL SYLLABLE TWIH

// Lo  [27] HANGUL SYLLABLE TYAEG..HANGUL SYLLABLE TYAEH

// Lo  [27] HANGUL SYLLABLE TYAG..HANGUL SYLLABLE TYAH

// Lo  [27] HANGUL SYLLABLE TYEG..HANGUL SYLLABLE TYEH

// Lo  [27] HANGUL SYLLABLE TYEOG..HANGUL SYLLABLE TYEOH

// Lo  [27] HANGUL SYLLABLE TYIG..HANGUL SYLLABLE TYIH

// Lo  [27] HANGUL SYLLABLE TYOG..HANGUL SYLLABLE TYOH

// Lo  [27] HANGUL SYLLABLE TYUG..HANGUL SYLLABLE TYUH

// Lo  [27] HANGUL SYLLABLE UG..HANGUL SYLLABLE UH

// Lo  [27] HANGUL SYLLABLE WAEG..HANGUL SYLLABLE WAEH

// Lo  [27] HANGUL SYLLABLE WAG..HANGUL SYLLABLE WAH

// Lo  [27] HANGUL SYLLABLE WEG..HANGUL SYLLABLE WEH

// Lo  [27] HANGUL SYLLABLE WEOG..HANGUL SYLLABLE WEOH

// Lo  [27] HANGUL SYLLABLE WIG..HANGUL SYLLABLE WIH

// Lo  [27] HANGUL SYLLABLE YAEG..HANGUL SYLLABLE YAEH

// Lo  [27] HANGUL SYLLABLE YAG..HANGUL SYLLABLE YAH

// Lo  [27] HANGUL SYLLABLE YEG..HANGUL SYLLABLE YEH

// Lo  [27] HANGUL SYLLABLE YEOG..HANGUL SYLLABLE YEOH

// Lo  [27] HANGUL SYLLABLE YIG..HANGUL SYLLABLE YIH

// Lo  [27] HANGUL SYLLABLE YOG..HANGUL SYLLABLE YOH

// Lo  [27] HANGUL SYLLABLE YUG..HANGUL SYLLABLE YUH

// Lo  [72] HANGUL JUNGSEONG FILLER..HANGUL JUNGSEONG O-YAE

// Lo  [88] HANGUL JONGSEONG KIYEOK..HANGUL JONGSEONG SSANGNIEUN

// Lo  [96] HANGUL CHOSEONG KIYEOK..HANGUL CHOSEONG FILLER

// Load entry module and return exports

// Lock.

// Lone high surrogates and low surrogates.

// Look up the name of a key as indicated by an event object.

// Lookahead termintor for:

// Looks weird, but ensures we get correct positional info.

// Loop forward through the linked tokens to pass them in order to the

// Loop over it and pass each one to the multiple method

// Loop over the elements in the view, syncing cur (the DOM nodes

// Loop step for interval

// Loop to find diff one

// Loop treeNode children

// Loop when step is small

// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN

// MERGE

// MIT License

// MOMENTS

// MS Edge converts symbol values to JSON as {}

// Main

// Make error & validating in cache to save perf

// Make literals inactive by replacing them with @@@

// Make start between zero and `end` (included).

// Make sure default popup container will never cause scrollbar appearing

// Make sure it could be reset when using form.getFieldDecorator

// Make sure that at the end of the operation the current cursor is

// Make sure we didn't create any zero-length spans

// Making it correct would be impossible due to aligning cells?

// Manual definition of state and output arguments

// Many host objects are `Object` objects that can coerce to strings

// Map minified method names to their real names.

// Mapping keys

// Maps red colors to make picking hue easier

// Mark as consumed.

// Mark as touched

// Mark other link openings as inactive, as we can’t have links in

// Markup declaration open state

// Marsaglia, George. Choosing a Point from the Surface of a

// Mask out escaped em & strong delimiters

// Mask out other blocks

// Mask out reflinks

// Match test

// Math.floor prevents floating point math errors here

// Math.min(Math.max(cosine, -1), 1) clamps the cosine between -1 and 1

// Math.random()-based (RNG)

// Max length value

// Mc       AHOM VOWEL SIGN E

// Mc       BALINESE SIGN BISAH

// Mc       BALINESE VOWEL SIGN RA REPA TEDUNG

// Mc       BALINESE VOWEL SIGN TEDUNG

// Mc       BATAK VOWEL SIGN E

// Mc       BATAK VOWEL SIGN U

// Mc       BENGALI AU LENGTH MARK

// Mc       BENGALI VOWEL SIGN AA

// Mc       BHAIKSUKI SIGN VISARGA

// Mc       BHAIKSUKI VOWEL SIGN AA

// Mc       BRAHMI SIGN CANDRABINDU

// Mc       BRAHMI SIGN VISARGA

// Mc       CHAKMA VOWEL SIGN E

// Mc       CHAM CONSONANT SIGN FINAL H

// Mc       DEVANAGARI SIGN VISARGA

// Mc       DEVANAGARI VOWEL SIGN OOE

// Mc       GRANTHA AU LENGTH MARK

// Mc       GRANTHA VOWEL SIGN AA

// Mc       GRANTHA VOWEL SIGN I

// Mc       GUJARATI SIGN VISARGA

// Mc       GUJARATI VOWEL SIGN CANDRA O

// Mc       GURMUKHI SIGN VISARGA

// Mc       JAVANESE SIGN WIGNYAN

// Mc       KAITHI SIGN VISARGA

// Mc       KANNADA VOWEL SIGN AA

// Mc       KANNADA VOWEL SIGN UU

// Mc       KHMER VOWEL SIGN AA

// Mc       KHOJKI SIGN VIRAMA

// Mc       MALAYALAM AU LENGTH MARK

// Mc       MALAYALAM VOWEL SIGN AA

// Mc       MARCHEN SUBJOINED LETTER YA

// Mc       MARCHEN VOWEL SIGN I

// Mc       MARCHEN VOWEL SIGN O

// Mc       MEETEI MAYEK LUM IYEK

// Mc       MEETEI MAYEK VOWEL SIGN II

// Mc       MEETEI MAYEK VOWEL SIGN VISARGA

// Mc       MODI SIGN VISARGA

// Mc       MUSICAL SYMBOL COMBINING SPRECHGESANG STEM

// Mc       MUSICAL SYMBOL COMBINING STEM

// Mc       MYANMAR VOWEL SIGN E

// Mc       MYANMAR VOWEL SIGN SHAN E

// Mc       NEWA SIGN VISARGA

// Mc       ORIYA AU LENGTH MARK

// Mc       ORIYA VOWEL SIGN AA

// Mc       ORIYA VOWEL SIGN II

// Mc       SHARADA SIGN VISARGA

// Mc       SIDDHAM SIGN VISARGA

// Mc       SIDDHAM VOWEL SIGN AA

// Mc       SINHALA VOWEL SIGN AELA-PILLA

// Mc       SINHALA VOWEL SIGN GAYANUKITTA

// Mc       SOYOMBO SIGN VISARGA

// Mc       SUNDANESE CONSONANT SIGN PAMINGKAL

// Mc       SUNDANESE SIGN PAMAAEH

// Mc       SUNDANESE SIGN PANGWISAD

// Mc       SYLOTI NAGRI VOWEL SIGN OO

// Mc       TAI THAM CONSONANT SIGN LA TANG LAI

// Mc       TAI THAM CONSONANT SIGN MEDIAL RA

// Mc       TAKRI SIGN VIRAMA

// Mc       TAKRI SIGN VISARGA

// Mc       TAMIL AU LENGTH MARK

// Mc       TAMIL VOWEL SIGN AA

// Mc       TAMIL VOWEL SIGN I

// Mc       TIBETAN SIGN RNAM BCAD

// Mc       TIRHUTA SIGN VISARGA

// Mc       TIRHUTA VOWEL SIGN AA

// Mc       TIRHUTA VOWEL SIGN AU

// Mc       TIRHUTA VOWEL SIGN E

// Mc       TIRHUTA VOWEL SIGN SHORT O

// Mc       VEDIC SIGN ATIKRAMA

// Mc       VEDIC TONE ATHARVAVEDIC INDEPENDENT SVARITA

// Mc       ZANABAZAR SQUARE SIGN VISARGA

// Mc   [2] AHOM VOWEL SIGN A..AHOM VOWEL SIGN AA

// Mc   [2] BALINESE VOWEL SIGN PEPET TEDUNG..BALINESE ADEG ADEG

// Mc   [2] BATAK PANGOLAT..BATAK PANONGONAN

// Mc   [2] BENGALI SIGN ANUSVARA..BENGALI SIGN VISARGA

// Mc   [2] BENGALI VOWEL SIGN E..BENGALI VOWEL SIGN AI

// Mc   [2] BENGALI VOWEL SIGN I..BENGALI VOWEL SIGN II

// Mc   [2] BENGALI VOWEL SIGN O..BENGALI VOWEL SIGN AU

// Mc   [2] BUGINESE VOWEL SIGN E..BUGINESE VOWEL SIGN O

// Mc   [2] CHAM CONSONANT SIGN YA..CHAM CONSONANT SIGN RA

// Mc   [2] CHAM VOWEL SIGN O..CHAM VOWEL SIGN AI

// Mc   [2] DEVANAGARI VOWEL SIGN PRISHTHAMATRA E..DEVANAGARI VOWEL SIGN AW

// Mc   [2] GRANTHA SIGN ANUSVARA..GRANTHA SIGN VISARGA

// Mc   [2] GRANTHA VOWEL SIGN EE..GRANTHA VOWEL SIGN AI

// Mc   [2] GRANTHA VOWEL SIGN VOCALIC L..GRANTHA VOWEL SIGN VOCALIC LL

// Mc   [2] GUJARATI VOWEL SIGN O..GUJARATI VOWEL SIGN AU

// Mc   [2] HANGUL SINGLE DOT TONE MARK..HANGUL DOUBLE DOT TONE MARK

// Mc   [2] JAVANESE VOWEL SIGN TALING..JAVANESE VOWEL SIGN DIRGA MURE

// Mc   [2] JAVANESE VOWEL SIGN TARUNG..JAVANESE VOWEL SIGN TOLONG

// Mc   [2] KAITHI VOWEL SIGN O..KAITHI VOWEL SIGN AU

// Mc   [2] KANNADA LENGTH MARK..KANNADA AI LENGTH MARK

// Mc   [2] KANNADA SIGN ANUSVARA..KANNADA SIGN VISARGA

// Mc   [2] KANNADA VOWEL SIGN EE..KANNADA VOWEL SIGN AI

// Mc   [2] KANNADA VOWEL SIGN II..KANNADA VOWEL SIGN U

// Mc   [2] KANNADA VOWEL SIGN O..KANNADA VOWEL SIGN OO

// Mc   [2] KANNADA VOWEL SIGN VOCALIC R..KANNADA VOWEL SIGN VOCALIC RR

// Mc   [2] KHMER SIGN REAHMUK..KHMER SIGN YUUKALEAPINTU

// Mc   [2] KHOJKI VOWEL SIGN O..KHOJKI VOWEL SIGN AU

// Mc   [2] LEPCHA CONSONANT SIGN NYIN-DO..LEPCHA CONSONANT SIGN KANG

// Mc   [2] LIMBU SMALL LETTER KA..LIMBU SMALL LETTER NGA

// Mc   [2] MALAYALAM SIGN ANUSVARA..MALAYALAM SIGN VISARGA

// Mc   [2] MALAYALAM VOWEL SIGN I..MALAYALAM VOWEL SIGN II

// Mc   [2] MEETEI MAYEK VOWEL SIGN AU..MEETEI MAYEK VOWEL SIGN AAU

// Mc   [2] MEETEI MAYEK VOWEL SIGN CHEINAP..MEETEI MAYEK VOWEL SIGN NUNG

// Mc   [2] MEETEI MAYEK VOWEL SIGN ONAP..MEETEI MAYEK VOWEL SIGN INAP

// Mc   [2] MEETEI MAYEK VOWEL SIGN YENAP..MEETEI MAYEK VOWEL SIGN SOUNAP

// Mc   [2] MODI VOWEL SIGN O..MODI VOWEL SIGN AU

// Mc   [2] MYANMAR CONSONANT SIGN MEDIAL YA..MYANMAR CONSONANT SIGN MEDIAL RA

// Mc   [2] MYANMAR VOWEL SIGN VOCALIC R..MYANMAR VOWEL SIGN VOCALIC RR

// Mc   [2] NEWA VOWEL SIGN O..NEWA VOWEL SIGN AU

// Mc   [2] ORIYA SIGN ANUSVARA..ORIYA SIGN VISARGA

// Mc   [2] ORIYA VOWEL SIGN E..ORIYA VOWEL SIGN AI

// Mc   [2] ORIYA VOWEL SIGN O..ORIYA VOWEL SIGN AU

// Mc   [2] REJANG CONSONANT SIGN H..REJANG VIRAMA

// Mc   [2] SAURASHTRA SIGN ANUSVARA..SAURASHTRA SIGN VISARGA

// Mc   [2] SHARADA VOWEL SIGN AU..SHARADA SIGN VIRAMA

// Mc   [2] SIDDHAM VOWEL SIGN I..SIDDHAM VOWEL SIGN II

// Mc   [2] SINHALA SIGN ANUSVARAYA..SINHALA SIGN VISARGAYA

// Mc   [2] SINHALA VOWEL SIGN DIGA GAETTA-PILLA..SINHALA VOWEL SIGN DIGA GAYANUKITTA

// Mc   [2] SINHALA VOWEL SIGN KETTI AEDA-PILLA..SINHALA VOWEL SIGN DIGA AEDA-PILLA

// Mc   [2] SOYOMBO VOWEL SIGN AI..SOYOMBO VOWEL SIGN AU

// Mc   [2] SUNDANESE VOWEL SIGN PANAELAENG..SUNDANESE VOWEL SIGN PANOLONG

// Mc   [2] SYLOTI NAGRI VOWEL SIGN A..SYLOTI NAGRI VOWEL SIGN I

// Mc   [2] TAKRI VOWEL SIGN I..TAKRI VOWEL SIGN II

// Mc   [2] TAMIL VOWEL SIGN U..TAMIL VOWEL SIGN UU

// Mc   [2] TIBETAN SIGN YAR TSHES..TIBETAN SIGN MAR TSHES

// Mc   [2] TIRHUTA VOWEL SIGN AI..TIRHUTA VOWEL SIGN O

// Mc   [2] TIRHUTA VOWEL SIGN I..TIRHUTA VOWEL SIGN II

// Mc   [2] VEDIC SIGN ARDHAVISARGA..VEDIC SIGN ROTATED ARDHAVISARGA

// Mc   [2] ZANABAZAR SQUARE VOWEL SIGN AI..ZANABAZAR SQUARE VOWEL SIGN AU

// Mc   [3] BATAK VOWEL SIGN I..BATAK VOWEL SIGN O

// Mc   [3] DEVANAGARI VOWEL SIGN AA..DEVANAGARI VOWEL SIGN II

// Mc   [3] GRANTHA VOWEL SIGN OO..GRANTHA SIGN VIRAMA

// Mc   [3] GUJARATI VOWEL SIGN AA..GUJARATI VOWEL SIGN II

// Mc   [3] GURMUKHI VOWEL SIGN AA..GURMUKHI VOWEL SIGN II

// Mc   [3] KAITHI VOWEL SIGN AA..KAITHI VOWEL SIGN II

// Mc   [3] KHOJKI VOWEL SIGN AA..KHOJKI VOWEL SIGN II

// Mc   [3] KHUDAWADI VOWEL SIGN AA..KHUDAWADI VOWEL SIGN II

// Mc   [3] LIMBU SUBJOINED LETTER YA..LIMBU SUBJOINED LETTER WA

// Mc   [3] MALAYALAM VOWEL SIGN E..MALAYALAM VOWEL SIGN AI

// Mc   [3] MALAYALAM VOWEL SIGN O..MALAYALAM VOWEL SIGN AU

// Mc   [3] MODI VOWEL SIGN AA..MODI VOWEL SIGN II

// Mc   [3] NEWA VOWEL SIGN AA..NEWA VOWEL SIGN II

// Mc   [3] SHARADA VOWEL SIGN AA..SHARADA VOWEL SIGN II

// Mc   [3] TAMIL VOWEL SIGN E..TAMIL VOWEL SIGN AI

// Mc   [3] TAMIL VOWEL SIGN O..TAMIL VOWEL SIGN AU

// Mc   [3] TELUGU SIGN CANDRABINDU..TELUGU SIGN VISARGA

// Mc   [4] DEVANAGARI VOWEL SIGN CANDRA O..DEVANAGARI VOWEL SIGN AU

// Mc   [4] GRANTHA VOWEL SIGN U..GRANTHA VOWEL SIGN VOCALIC RR

// Mc   [4] JAVANESE CONSONANT SIGN KERET..JAVANESE PANGKON

// Mc   [4] LIMBU VOWEL SIGN EE..LIMBU VOWEL SIGN AU

// Mc   [4] SIDDHAM VOWEL SIGN E..SIDDHAM VOWEL SIGN AU

// Mc   [4] TELUGU VOWEL SIGN U..TELUGU VOWEL SIGN VOCALIC RR

// Mc   [5] BALINESE VOWEL SIGN LA LENGA TEDUNG..BALINESE VOWEL SIGN TALING REPA TEDUNG

// Mc   [5] MUSICAL SYMBOL COMBINING FLAG-1..MUSICAL SYMBOL COMBINING FLAG-5

// Mc   [6] LIMBU SMALL LETTER TA..LIMBU SMALL LETTER LA

// Mc   [6] TAI THAM VOWEL SIGN OY..TAI THAM VOWEL SIGN THAM AI

// Mc   [7] SINHALA VOWEL SIGN GAETTA-PILLA..SINHALA VOWEL SIGN KOMBUVA HAA GAYANUKITTA

// Mc   [8] KHMER VOWEL SIGN OE..KHMER VOWEL SIGN AU

// Mc   [8] LEPCHA SUBJOINED LETTER YA..LEPCHA VOWEL SIGN UU

// Mc  [16] SAURASHTRA CONSONANT SIGN HAARU..SAURASHTRA VOWEL SIGN AU

// Mc  [46] MIAO SIGN ASPIRATION..MIAO VOWEL SIGN NG

// Me       COMBINING PARENTHESES OVERLAY

// Me   [2] COMBINING CYRILLIC HUNDRED THOUSANDS SIGN..COMBINING CYRILLIC MILLIONS SIGN

// Me   [3] COMBINING CYRILLIC TEN MILLIONS SIGN..COMBINING CYRILLIC THOUSAND MILLIONS SIGN

// Me   [3] COMBINING ENCLOSING SCREEN..COMBINING ENCLOSING UPWARD POINTING TRIANGLE

// Me   [4] COMBINING ENCLOSING CIRCLE..COMBINING ENCLOSING CIRCLE BACKSLASH

// Meaning is "at least and backwards compatible with"

// Meaning is "reasonably at or greater than"

// Measure a bunch of lines, for browsers that compute

// Measurement can be split in two steps, the set-up work that

// Media close.

// Memoize the check that determines which context instance we should use.

// MenuItem & Divider

// MenuItemGroup & SubMenuItem

// Merge adjacent spaces and data.

// Merge current keys with origin key

// Merge stretch style

// Merge this change into the last event

// Metadata Proposal

// Might be a file drop, in which case we simply extract the text

// Might be a text scaling operation, clear size caches.

// Millisecond

// Mimic the constructor's `return` behavior.

// Mimick CM behavior of link definitions.

// Minimal default mode.

// Minimal polyfill for Edge 15's lack of `isIntersecting`

// Minimum delay before invoking the update of observers.

// Minute

// Misc

// Mn       ARABIC LETTER SUPERSCRIPT ALEF

// Mn       BALINESE SIGN REREKAN

// Mn       BALINESE VOWEL SIGN LA LENGA

// Mn       BALINESE VOWEL SIGN PEPET

// Mn       BATAK SIGN TOMPI

// Mn       BATAK VOWEL SIGN KARO O

// Mn       BENGALI SIGN CANDRABINDU

// Mn       BENGALI SIGN NUKTA

// Mn       BENGALI SIGN VIRAMA

// Mn       BHAIKSUKI SIGN VIRAMA

// Mn       BRAHMI SIGN ANUSVARA

// Mn       BUGINESE VOWEL SIGN AE

// Mn       CHAM CONSONANT SIGN FINAL M

// Mn       CHAM CONSONANT SIGN FINAL NG

// Mn       COMBINING CYRILLIC VZMET

// Mn       COMBINING LEFT RIGHT ARROW ABOVE

// Mn       COPTIC EPACT THOUSANDS MARK

// Mn       DEVANAGARI SIGN NUKTA

// Mn       DEVANAGARI SIGN VIRAMA

// Mn       DEVANAGARI VOWEL SIGN OE

// Mn       GRANTHA SIGN NUKTA

// Mn       GRANTHA VOWEL SIGN II

// Mn       GUJARATI SIGN NUKTA

// Mn       GUJARATI SIGN VIRAMA

// Mn       GURMUKHI SIGN NUKTA

// Mn       GURMUKHI SIGN UDAAT

// Mn       GURMUKHI SIGN YAKASH

// Mn       HEBREW POINT JUDEO-SPANISH VARIKA

// Mn       HEBREW POINT QAMATS QATAN

// Mn       HEBREW POINT RAFE

// Mn       JAVANESE SIGN CECAK TELU

// Mn       JAVANESE VOWEL SIGN PEPET

// Mn       KANNADA SIGN CANDRABINDU

// Mn       KANNADA SIGN NUKTA

// Mn       KANNADA VOWEL SIGN E

// Mn       KANNADA VOWEL SIGN I

// Mn       KHAROSHTHI VIRAMA

// Mn       KHMER SIGN ATTHACAN

// Mn       KHMER SIGN NIKAHIT

// Mn       KHOJKI SIGN ANUSVARA

// Mn       KHOJKI SIGN SUKUN

// Mn       KHUDAWADI SIGN ANUSVARA

// Mn       LAO VOWEL SIGN MAI KAN

// Mn       LIMBU SMALL LETTER ANUSVARA

// Mn       MAHAJANI SIGN NUKTA

// Mn       MALAYALAM SIGN VIRAMA

// Mn       MASARAM GONDI RA-KARA

// Mn       MASARAM GONDI VOWEL SIGN E

// Mn       MEETEI MAYEK APUN IYEK

// Mn       MEETEI MAYEK VIRAMA

// Mn       MEETEI MAYEK VOWEL SIGN ANAP

// Mn       MEETEI MAYEK VOWEL SIGN UNAP

// Mn       MODI SIGN ANUSVARA

// Mn       MONGOLIAN LETTER ALI GALI DAGALGA

// Mn       MYANMAR CONSONANT SIGN SHAN MEDIAL WA

// Mn       MYANMAR SIGN SHAN COUNCIL EMPHATIC TONE

// Mn       MYANMAR SIGN SHAN SAW

// Mn       MYANMAR SIGN TAI LAING TONE-2

// Mn       MYANMAR VOWEL SIGN AITON AI

// Mn       NEWA SIGN NUKTA

// Mn       ORIYA AI LENGTH MARK

// Mn       ORIYA SIGN CANDRABINDU

// Mn       ORIYA SIGN NUKTA

// Mn       ORIYA SIGN VIRAMA

// Mn       ORIYA VOWEL SIGN I

// Mn       PHAISTOS DISC SIGN COMBINING OBLIQUE STROKE

// Mn       SIGNWRITING LOCATION HEAD NECK

// Mn       SIGNWRITING UPPER BODY TILTING FROM HIP JOINTS

// Mn       SINHALA SIGN AL-LAKUNA

// Mn       SINHALA VOWEL SIGN DIGA PAA-PILLA

// Mn       SYLOTI NAGRI SIGN ANUSVARA

// Mn       SYLOTI NAGRI SIGN DVISVARA

// Mn       SYLOTI NAGRI SIGN HASANTA

// Mn       SYRIAC LETTER SUPERSCRIPT ALAPH

// Mn       TAI THAM COMBINING CRYPTOGRAMMIC DOT

// Mn       TAI THAM CONSONANT SIGN MEDIAL LA

// Mn       TAI THAM SIGN SAKOT

// Mn       TAI THAM VOWEL SIGN MAI SAT

// Mn       TAI VIET MAI KANG

// Mn       TAI VIET TONE MAI THO

// Mn       TAKRI SIGN ANUSVARA

// Mn       TAKRI SIGN NUKTA

// Mn       TAKRI VOWEL SIGN AA

// Mn       TAMIL SIGN ANUSVARA

// Mn       TAMIL SIGN VIRAMA

// Mn       TAMIL VOWEL SIGN II

// Mn       TELUGU SIGN COMBINING CANDRABINDU ABOVE

// Mn       THAI CHARACTER MAI HAN-AKAT

// Mn       TIBETAN MARK NGAS BZUNG NYI ZLA

// Mn       TIBETAN MARK NGAS BZUNG SGOR RTAGS

// Mn       TIBETAN MARK TSA -PHRU

// Mn       TIBETAN SYMBOL PADMA GDAN

// Mn       TIFINAGH CONSONANT JOINER

// Mn       TIRHUTA VOWEL SIGN SHORT E

// Mn       VEDIC SIGN TIRYAK

// Mn       VEDIC TONE CANDRA ABOVE

// Mn       ZANABAZAR SQUARE SUBJOINER

// Mn   [2] ARABIC SMALL HIGH YEH..ARABIC SMALL HIGH NOON

// Mn   [2] BAMUM COMBINING MARK KOQNDON..BAMUM COMBINING MARK TUKWENTIS

// Mn   [2] BATAK VOWEL SIGN PAKPAK E..BATAK VOWEL SIGN EE

// Mn   [2] BENGALI VOWEL SIGN VOCALIC L..BENGALI VOWEL SIGN VOCALIC LL

// Mn   [2] BUGINESE VOWEL SIGN I..BUGINESE VOWEL SIGN U

// Mn   [2] BUHID VOWEL SIGN I..BUHID VOWEL SIGN U

// Mn   [2] CHAM CONSONANT SIGN LA..CHAM CONSONANT SIGN WA

// Mn   [2] CHAM VOWEL SIGN AU..CHAM VOWEL SIGN UE

// Mn   [2] COMBINING CYRILLIC LETTER EF..COMBINING CYRILLIC LETTER IOTIFIED E

// Mn   [2] COMBINING GLAGOLITIC LETTER YU..COMBINING GLAGOLITIC LETTER SMALL YUS

// Mn   [2] COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK..COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK

// Mn   [2] DEVANAGARI VOWEL SIGN VOCALIC L..DEVANAGARI VOWEL SIGN VOCALIC LL

// Mn   [2] DUPLOYAN THICK LETTER SELECTOR..DUPLOYAN DOUBLE MARK

// Mn   [2] GRANTHA SIGN COMBINING ANUSVARA ABOVE..GRANTHA SIGN CANDRABINDU

// Mn   [2] GUJARATI SIGN CANDRABINDU..GUJARATI SIGN ANUSVARA

// Mn   [2] GUJARATI VOWEL SIGN E..GUJARATI VOWEL SIGN AI

// Mn   [2] GUJARATI VOWEL SIGN VOCALIC L..GUJARATI VOWEL SIGN VOCALIC LL

// Mn   [2] GURMUKHI SIGN ADAK BINDI..GURMUKHI SIGN BINDI

// Mn   [2] GURMUKHI TIPPI..GURMUKHI ADDAK

// Mn   [2] GURMUKHI VOWEL SIGN EE..GURMUKHI VOWEL SIGN AI

// Mn   [2] GURMUKHI VOWEL SIGN U..GURMUKHI VOWEL SIGN UU

// Mn   [2] HEBREW MARK UPPER DOT..HEBREW MARK LOWER DOT

// Mn   [2] HEBREW POINT SHIN DOT..HEBREW POINT SIN DOT

// Mn   [2] KAITHI SIGN VIRAMA..KAITHI SIGN NUKTA

// Mn   [2] KANNADA VOWEL SIGN AU..KANNADA SIGN VIRAMA

// Mn   [2] KANNADA VOWEL SIGN VOCALIC L..KANNADA VOWEL SIGN VOCALIC LL

// Mn   [2] KHAROSHTHI VOWEL SIGN E..KHAROSHTHI VOWEL SIGN O

// Mn   [2] KHMER VOWEL INHERENT AQ..KHMER VOWEL INHERENT AA

// Mn   [2] KHOJKI SIGN NUKTA..KHOJKI SIGN SHADDA

// Mn   [2] LAO VOWEL SIGN MAI KON..LAO SEMIVOWEL SIGN LO

// Mn   [2] LEPCHA SIGN RAN..LEPCHA SIGN NUKTA

// Mn   [2] LIMBU VOWEL SIGN E..LIMBU VOWEL SIGN O

// Mn   [2] MALAYALAM SIGN COMBINING ANUSVARA ABOVE..MALAYALAM SIGN CANDRABINDU

// Mn   [2] MALAYALAM SIGN VERTICAL BAR VIRAMA..MALAYALAM SIGN CIRCULAR VIRAMA

// Mn   [2] MALAYALAM VOWEL SIGN VOCALIC L..MALAYALAM VOWEL SIGN VOCALIC LL

// Mn   [2] MANICHAEAN ABBREVIATION MARK ABOVE..MANICHAEAN ABBREVIATION MARK BELOW

// Mn   [2] MARCHEN SIGN ANUSVARA..MARCHEN SIGN CANDRABINDU

// Mn   [2] MARCHEN VOWEL SIGN U..MARCHEN VOWEL SIGN E

// Mn   [2] MASARAM GONDI VOWEL SIGN AI..MASARAM GONDI VOWEL SIGN O

// Mn   [2] MEETEI MAYEK VOWEL SIGN UU..MEETEI MAYEK VOWEL SIGN AAI

// Mn   [2] MODI SIGN VIRAMA..MODI SIGN ARDHACANDRA

// Mn   [2] MONGOLIAN LETTER ALI GALI BALUDA..MONGOLIAN LETTER ALI GALI THREE BALUDA

// Mn   [2] MYANMAR CONSONANT SIGN MEDIAL WA..MYANMAR CONSONANT SIGN MEDIAL HA

// Mn   [2] MYANMAR SIGN VIRAMA..MYANMAR SIGN ASAT

// Mn   [2] MYANMAR VOWEL SIGN SHAN E ABOVE..MYANMAR VOWEL SIGN SHAN FINAL Y

// Mn   [2] MYANMAR VOWEL SIGN VOCALIC L..MYANMAR VOWEL SIGN VOCALIC LL

// Mn   [2] ORIYA VOWEL SIGN VOCALIC L..ORIYA VOWEL SIGN VOCALIC LL

// Mn   [2] SAURASHTRA SIGN VIRAMA..SAURASHTRA SIGN CANDRABINDU

// Mn   [2] SHARADA SIGN CANDRABINDU..SHARADA SIGN ANUSVARA

// Mn   [2] SIDDHAM SIGN CANDRABINDU..SIDDHAM SIGN ANUSVARA

// Mn   [2] SIDDHAM SIGN VIRAMA..SIDDHAM SIGN NUKTA

// Mn   [2] SIDDHAM VOWEL SIGN ALTERNATE U..SIDDHAM VOWEL SIGN ALTERNATE UU

// Mn   [2] SOYOMBO GEMINATION MARK..SOYOMBO SUBJOINER

// Mn   [2] SUNDANESE SIGN PANYECEK..SUNDANESE SIGN PANGLAYAR

// Mn   [2] SUNDANESE VOWEL SIGN PAMEPET..SUNDANESE VOWEL SIGN PANEULEUNG

// Mn   [2] SYLOTI NAGRI VOWEL SIGN U..SYLOTI NAGRI VOWEL SIGN E

// Mn   [2] TAGBANWA VOWEL SIGN I..TAGBANWA VOWEL SIGN U

// Mn   [2] TAI VIET MAI KHIT..TAI VIET VOWEL IA

// Mn   [2] TAI VIET VOWEL AM..TAI VIET TONE MAI EK

// Mn   [2] TELUGU LENGTH MARK..TELUGU AI LENGTH MARK

// Mn   [2] TELUGU VOWEL SIGN VOCALIC L..TELUGU VOWEL SIGN VOCALIC LL

// Mn   [2] TIBETAN ASTROLOGICAL SIGN -KHYUD PA..TIBETAN ASTROLOGICAL SIGN SDONG TSHUGS

// Mn   [2] TIBETAN SIGN LCI RTAGS..TIBETAN SIGN YANG RTAGS

// Mn   [2] TIRHUTA SIGN CANDRABINDU..TIRHUTA SIGN ANUSVARA

// Mn   [2] TIRHUTA SIGN VIRAMA..TIRHUTA SIGN NUKTA

// Mn   [2] VEDIC TONE RING ABOVE..VEDIC TONE DOUBLE RING ABOVE

// Mn   [2] ZANABAZAR SQUARE VOWEL SIGN REVERSED I..ZANABAZAR SQUARE VOWEL LENGTH MARK

// Mn   [3] AHOM CONSONANT SIGN MEDIAL LA..AHOM CONSONANT SIGN MEDIAL LIGATING RA

// Mn   [3] BATAK VOWEL SIGN U FOR SIMALUNGUN SA..BATAK CONSONANT SIGN H

// Mn   [3] BRAHMI NUMBER JOINER..KAITHI SIGN ANUSVARA

// Mn   [3] CHAKMA SIGN CANDRABINDU..CHAKMA SIGN VISARGA

// Mn   [3] COMBINING GREEK MUSICAL TRISEME..COMBINING GREEK MUSICAL PENTASEME

// Mn   [3] COPTIC COMBINING NI ABOVE..COPTIC COMBINING SPIRITUS LENIS

// Mn   [3] ETHIOPIC COMBINING GEMINATION AND VOWEL LENGTH MARK..ETHIOPIC COMBINING GEMINATION MARK

// Mn   [3] GURMUKHI VOWEL SIGN OO..GURMUKHI SIGN VIRAMA

// Mn   [3] HANUNOO VOWEL SIGN I..HANUNOO SIGN PAMUDPOD

// Mn   [3] JAVANESE SIGN PANYANGGA..JAVANESE SIGN LAYAR

// Mn   [3] KHAROSHTHI SIGN BAR ABOVE..KHAROSHTHI SIGN DOT BELOW

// Mn   [3] KHAROSHTHI VOWEL SIGN I..KHAROSHTHI VOWEL SIGN VOCALIC R

// Mn   [3] KHOJKI VOWEL SIGN U..KHOJKI VOWEL SIGN AI

// Mn   [3] LIMBU SIGN MUKPHRENG..LIMBU SIGN SA-I

// Mn   [3] LIMBU VOWEL SIGN A..LIMBU VOWEL SIGN U

// Mn   [3] MANDAIC AFFRICATION MARK..MANDAIC GEMINATION MARK

// Mn   [3] MONGOLIAN FREE VARIATION SELECTOR ONE..MONGOLIAN FREE VARIATION SELECTOR THREE

// Mn   [3] MUSICAL SYMBOL COMBINING TREMOLO-1..MUSICAL SYMBOL COMBINING TREMOLO-3

// Mn   [3] MYANMAR CONSONANT SIGN MON MEDIAL NA..MYANMAR CONSONANT SIGN MON MEDIAL LA

// Mn   [3] NEWA SIGN VIRAMA..NEWA SIGN ANUSVARA

// Mn   [3] SAMARITAN VOWEL SIGN SHORT A..SAMARITAN VOWEL SIGN U

// Mn   [3] SHARADA SIGN NUKTA..SHARADA EXTRA SHORT VOWEL MARK

// Mn   [3] SINHALA VOWEL SIGN KETTI IS-PILLA..SINHALA VOWEL SIGN KETTI PAA-PILLA

// Mn   [3] SOYOMBO VOWEL SIGN VOCALIC R..SOYOMBO VOWEL LENGTH MARK

// Mn   [3] SUNDANESE SIGN VIRAMA..SUNDANESE CONSONANT SIGN PASANGAN WA

// Mn   [3] TAGALOG VOWEL SIGN I..TAGALOG SIGN VIRAMA

// Mn   [3] TAI VIET VOWEL I..TAI VIET VOWEL U

// Mn   [3] TELUGU VOWEL SIGN AA..TELUGU VOWEL SIGN II

// Mn   [3] TELUGU VOWEL SIGN E..TELUGU VOWEL SIGN AI

// Mn   [3] VEDIC TONE KARSHANA..VEDIC TONE PRENKHA

// Mn   [4] AHOM VOWEL SIGN I..AHOM VOWEL SIGN UU

// Mn   [4] ARABIC EMPTY CENTRE LOW STOP..ARABIC SMALL LOW MEEM

// Mn   [4] BALINESE SIGN ULU RICEM..BALINESE SIGN SURANG

// Mn   [4] BENGALI VOWEL SIGN U..BENGALI VOWEL SIGN VOCALIC RR

// Mn   [4] IDEOGRAPHIC LEVEL TONE MARK..IDEOGRAPHIC ENTERING TONE MARK

// Mn   [4] JAVANESE VOWEL SIGN WULU..JAVANESE VOWEL SIGN SUKU MENDUT

// Mn   [4] KAITHI VOWEL SIGN U..KAITHI VOWEL SIGN AI

// Mn   [4] KHAROSHTHI VOWEL LENGTH MARK..KHAROSHTHI SIGN VISARGA

// Mn   [4] MALAYALAM VOWEL SIGN U..MALAYALAM VOWEL SIGN VOCALIC RR

// Mn   [4] MIAO TONE RIGHT..MIAO TONE BELOW

// Mn   [4] MUSICAL SYMBOL COMBINING DOWN BOW..MUSICAL SYMBOL COMBINING SNAP PIZZICATO

// Mn   [4] MYANMAR VOWEL SIGN GEBA KAREN I..MYANMAR VOWEL SIGN KAYAH EE

// Mn   [4] MYANMAR VOWEL SIGN I..MYANMAR VOWEL SIGN UU

// Mn   [4] ORIYA VOWEL SIGN U..ORIYA VOWEL SIGN VOCALIC RR

// Mn   [4] SAMARITAN MARK IN..SAMARITAN MARK DAGESH

// Mn   [4] SIDDHAM VOWEL SIGN U..SIDDHAM VOWEL SIGN VOCALIC RR

// Mn   [4] SUNDANESE CONSONANT SIGN PANYAKRA..SUNDANESE VOWEL SIGN PANYUKU

// Mn   [4] TELUGU VOWEL SIGN O..TELUGU SIGN VIRAMA

// Mn   [4] ZANABAZAR SQUARE CLUSTER-FINAL LETTER YA..ZANABAZAR SQUARE CLUSTER-FINAL LETTER VA

// Mn   [5] AHOM VOWEL SIGN AW..AHOM SIGN KILLER

// Mn   [5] BALINESE VOWEL SIGN ULU..BALINESE VOWEL SIGN RA REPA

// Mn   [5] BASSA VAH COMBINING HIGH TONE..BASSA VAH COMBINING HIGH-LOW TONE

// Mn   [5] CHAKMA VOWEL SIGN A..CHAKMA VOWEL SIGN UU

// Mn   [5] COMBINING CYRILLIC TITLO..COMBINING CYRILLIC POKRYTIE

// Mn   [5] COMBINING DELETION MARK..COMBINING RIGHT ARROWHEAD AND DOWN ARROWHEAD BELOW

// Mn   [5] COMBINING GLAGOLITIC LETTER YO..COMBINING GLAGOLITIC LETTER FITA

// Mn   [5] COMBINING GRANTHA LETTER A..COMBINING GRANTHA LETTER PA

// Mn   [5] COMBINING OLD PERMIC LETTER AN..COMBINING OLD PERMIC LETTER SII

// Mn   [5] GUJARATI VOWEL SIGN U..GUJARATI VOWEL SIGN CANDRA E

// Mn   [5] SAMARITAN VOWEL SIGN LONG I..SAMARITAN MARK NEQUDAA

// Mn   [5] SIGNWRITING FILL MODIFIER-2..SIGNWRITING FILL MODIFIER-6

// Mn   [5] TIBETAN VOWEL SIGN REVERSED I..TIBETAN MARK HALANTA

// Mn   [6] ARABIC SMALL HIGH ROUNDED ZERO..ARABIC SMALL HIGH MADDA

// Mn   [6] BHAIKSUKI VOWEL SIGN E..BHAIKSUKI SIGN ANUSVARA

// Mn   [6] CHAM VOWEL SIGN AA..CHAM VOWEL SIGN OE

// Mn   [6] GUJARATI SIGN SUKUN..GUJARATI SIGN TWO-CIRCLE NUKTA ABOVE

// Mn   [6] LAO TONE MAI EK..LAO NIGGAHITA

// Mn   [6] LAO VOWEL SIGN I..LAO VOWEL SIGN UU

// Mn   [6] MASARAM GONDI VOWEL SIGN AA..MASARAM GONDI VOWEL SIGN VOCALIC R

// Mn   [6] MYANMAR VOWEL SIGN AI..MYANMAR SIGN DOT BELOW

// Mn   [6] SOYOMBO VOWEL SIGN I..SOYOMBO VOWEL SIGN OE

// Mn   [6] TAKRI VOWEL SIGN U..TAKRI VOWEL SIGN AU

// Mn   [6] TIRHUTA VOWEL SIGN U..TIRHUTA VOWEL SIGN VOCALIC LL

// Mn   [6] ZANABAZAR SQUARE FINAL CONSONANT MARK..ZANABAZAR SQUARE SIGN ANUSVARA

// Mn   [6] ZANABAZAR SQUARE VOWEL SIGN I..ZANABAZAR SQUARE VOWEL SIGN O

// Mn   [7] ADLAM ALIF LENGTHENER..ADLAM NUKTA

// Mn   [7] ARABIC SMALL HIGH LIGATURE SAD WITH LAM WITH ALEF MAKSURA..ARABIC SMALL HIGH SEEN

// Mn   [7] BHAIKSUKI VOWEL SIGN I..BHAIKSUKI VOWEL SIGN VOCALIC L

// Mn   [7] COMBINING GLAGOLITIC LETTER AZU..COMBINING GLAGOLITIC LETTER ZHIVETE

// Mn   [7] COMBINING GLAGOLITIC LETTER SHTA..COMBINING GLAGOLITIC LETTER YATI

// Mn   [7] COMBINING GRANTHA DIGIT ZERO..COMBINING GRANTHA DIGIT SIX

// Mn   [7] DEVANAGARI STRESS SIGN UDATTA..DEVANAGARI VOWEL SIGN UUE

// Mn   [7] KHMER VOWEL SIGN I..KHMER VOWEL SIGN UA

// Mn   [7] MARCHEN SUBJOINED LETTER RA..MARCHEN VOWEL SIGN AA

// Mn   [7] MASARAM GONDI VOWEL SIGN AU..MASARAM GONDI VIRAMA

// Mn   [7] MENDE KIKAKUI COMBINING NUMBER TEENS..MENDE KIKAKUI COMBINING NUMBER MILLIONS

// Mn   [7] MUSICAL SYMBOL COMBINING DOIT..MUSICAL SYMBOL COMBINING TRIPLE TONGUE

// Mn   [7] PAHAWH HMONG MARK CIM TUB..PAHAWH HMONG MARK CIM TAUM

// Mn   [7] TAI THAM SIGN MAI KANG LAI..TAI THAM CONSONANT SIGN SA

// Mn   [7] THAI CHARACTER SARA I..THAI CHARACTER PHINTHU

// Mn   [7] VEDIC SIGN VISARGA SVARITA..VEDIC SIGN VISARGA ANUDATTA WITH TAIL

// Mn   [8] CHAKMA VOWEL SIGN AI..CHAKMA MAAYYAA

// Mn   [8] DEVANAGARI VOWEL SIGN U..DEVANAGARI VOWEL SIGN AI

// Mn   [8] KAYAH LI VOWEL UE..KAYAH LI TONE CALYA PLOPHU

// Mn   [8] KHUDAWADI VOWEL SIGN U..KHUDAWADI SIGN VIRAMA

// Mn   [8] LEPCHA VOWEL SIGN E..LEPCHA CONSONANT SIGN T

// Mn   [8] MODI VOWEL SIGN U..MODI VOWEL SIGN AI

// Mn   [8] MUSICAL SYMBOL COMBINING ACCENT..MUSICAL SYMBOL COMBINING LOURE

// Mn   [8] NEWA VOWEL SIGN U..NEWA VOWEL SIGN AI

// Mn   [8] TAI THAM VOWEL SIGN I..TAI THAM VOWEL SIGN OA BELOW

// Mn   [8] THAI CHARACTER MAITAIKHU..THAI CHARACTER YAMAKKAN

// Mn   [9] BALINESE MUSICAL SYMBOL COMBINING TEGEH..BALINESE MUSICAL SYMBOL COMBINING GONG

// Mn   [9] NKO COMBINING SHORT HIGH TONE..NKO COMBINING DOUBLE DOT ABOVE

// Mn   [9] SAMARITAN MARK EPENTHETIC YUT..SAMARITAN VOWEL SIGN A

// Mn   [9] SHARADA VOWEL SIGN U..SHARADA VOWEL SIGN O

// Mn  [10] COMBINING CYRILLIC LETTER UKRAINIAN IE..COMBINING CYRILLIC PAYEROK

// Mn  [10] TAI THAM VOWEL SIGN OA ABOVE..TAI THAM SIGN KHUEN-LUE KARAN

// Mn  [11] ARABIC SIGN SALLALLAHOU ALAYHE WASSALLAM..ARABIC SMALL KASRA

// Mn  [11] KHMER SIGN MUUSIKATOAN..KHMER SIGN BATHAMASAT

// Mn  [11] REJANG VOWEL SIGN I..REJANG CONSONANT SIGN R

// Mn  [11] THAANA ABAFILI..THAANA SUKUN

// Mn  [11] TIBETAN SUBJOINED SIGN LCE TSA CAN..TIBETAN SUBJOINED LETTER JA

// Mn  [12] COMBINING REVERSE SOLIDUS OVERLAY..COMBINING ASTERISK ABOVE

// Mn  [13] COMBINING LEFT HARPOON ABOVE..COMBINING FOUR DOTS ABOVE

// Mn  [13] SOYOMBO FINAL CONSONANT SIGN G..SOYOMBO SIGN ANUSVARA

// Mn  [13] VEDIC SIGN YAJURVEDIC MIDLINE SVARITA..VEDIC TONE RIGVEDIC KASHMIRI INDEPENDENT SVARITA

// Mn  [14] ARABIC SMALL HIGH WORD AR-RUB..ARABIC SMALL HIGH SIGN SAFHA

// Mn  [14] COMBINING DOUBLED CIRCUMFLEX ACCENT..COMBINING PARENTHESES BELOW

// Mn  [14] TIBETAN VOWEL SIGN AA..TIBETAN SIGN RJES SU NGA RO

// Mn  [15] BRAHMI VOWEL SIGN AA..BRAHMI VIRAMA

// Mn  [15] SIGNWRITING ROTATION MODIFIER-2..SIGNWRITING ROTATION MODIFIER-16

// Mn  [16] COMBINING LIGATURE LEFT HALF..COMBINING CYRILLIC TITLO RIGHT HALF

// Mn  [16] VARIATION SELECTOR-1..VARIATION SELECTOR-16

// Mn  [17] COMBINING GLAGOLITIC LETTER ZEMLJA..COMBINING GLAGOLITIC LETTER HERU

// Mn  [18] COMBINING DEVANAGARI DIGIT ZERO..COMBINING DEVANAGARI SIGN AVAGRAHA

// Mn  [21] ARABIC FATHATAN..ARABIC WAVY HAMZA BELOW

// Mn  [22] MARCHEN SUBJOINED LETTER KA..MARCHEN SUBJOINED LETTER ZA

// Mn  [27] SYRIAC PTHAHA ABOVE..SYRIAC BARREKH

// Mn  [32] ARABIC TURNED DAMMA BELOW..DEVANAGARI SIGN ANUSVARA

// Mn  [32] COMBINING CYRILLIC LETTER BE..COMBINING CYRILLIC LETTER IOTIFIED BIG YUS

// Mn  [36] TIBETAN SUBJOINED LETTER NYA..TIBETAN SUBJOINED LETTER FIXED-FORM RA

// Mn  [45] HEBREW ACCENT ETNAHTA..HEBREW POINT METEG

// Mn  [50] SIGNWRITING MOUTH CLOSED NEUTRAL..SIGNWRITING EXCITEMENT

// Mn  [55] SIGNWRITING HEAD RIM..SIGNWRITING AIR SUCKING IN

// Mn  [58] COMBINING DOTTED GRAVE ACCENT..COMBINING WIDE INVERTED BRIDGE BELOW

// Mn [112] COMBINING GRAVE ACCENT..COMBINING LATIN SMALL LETTER X

// Mobile support additional render

// Mobile touch move

// Mock Event object.

// Modifier key presses don't count as 'real' key presses for the

// Moment prototype object

// Monday is the first day of the week.

// Month

// More dashes.

// More lower-level change function, handling only a single document

// More or less accents: mark as data.

// More.

// Most constructs in markdown match on the first line: if the first line

// Most of the external API clips given positions to make sure they

// Most props are space-separated.

// Move cursor behind the two swapped characters afterwards.

// Move the hidden textarea near the cursor to prevent scrolling artifacts

// Move y into line-local coordinate space

// Moved around its parent to cover visible view.

// Multiple always trigger change and single should change if value changed

// Multiple lines

// Must be declared in a separate statement to avoid a RefernceError when

// Must be set after switchScrollingEffect

// Must start with a space or a tab.

// N (ON):  Other Neutrals

// N1. A sequence of neutrals takes the direction of the

// N2. Any remaining neutrals take the embedding direction.

// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,

// NOT having a prerelease is > having one

// NOTE: This is an approximation as we cannot check for [[Call]] internal method.

// NOTE: This is an approximation as we cannot check for [[Construct]] internal method.

// NOTE: This looks unoptimized, but it's actually purposefully NOT

// NOTE: deprecated test name instead

// NOTE: err reporting is noop by default. Enabled by mixin.

// NOTE: generate location info for elements

// NOTE: not a real clear, just makes the previous data unreachable

// NOTE: overriding `error` instead of `_error` because we don't want

// NOTE: there is actually a name collision here with Subscriber.next and Iterator.next

// NOTE: to support backwards compatability with 5.4.* and lower

// NUMLOCK on FF/Safari Mac

// NaN if l=0 or l=1

// Named character reference state

// Nashorn bug:

// Need another wrapper for changing display:table to display:inline-block

// Need append '' to avoid dead loop

// Need to have the overflow attribute to hide the scrollbar otherwise

// Need to set a minimum width to see the scrollbar on IE7 (but must not set it on IE8).

// Need wrap for overflow dropdown that do not response for open

// Needed to hide big blue blinking cursor on Mobile Safari (doesn't seem to work in iOS 8 anymore)

// Neutral.

// Never happen in test env

// Never move original objects, clone them

// New WebKit

// New added keys should add before current key

// Newer versions of React will ignore that lifecycle if gSBU exists.

// Newer versions of React will ignore these lifecycles if gDSFP exists.

// Next or done.

// Next raf

// Next, after consuming the continuation markers for existing blocks, we

// Next, remove those actual ranges.

// No children

// No entry found in cache, return sentinel

// No error code for this since it is a Warning

// No need animation when use keyboard

// No need appear since nest inlineCollapse changed

// No need for `namePathMath` check and `shouldUpdate` check, since `valueUpdate` will be

// No need lock anymore when it's smooth offset from touchMove interval

// No need to `check` whether there’s a container, of `exitContainers`

// No need to chunk the items if there’s only a couple (10k) items.

// No need to clean up since element removed

// No need to cost perf when nothing need to watch

// No op

// No operation performed.

// Node.

// Node.js 0.10 has enumerable non-index properties on buffers.

// Nodes created by plugins do not have positional info, in which case we use

// Non `Object` object instances with different constructors are not equal.

// Non-public interface for adding and removing lines.

// Non-standard Properties.

// Noncharacters.

// Normal behavior is to insert the new text into every selection

// Normal deps

// Normal disabled check

// Normal drop

// Normal scroll logic

// Normal selection, as opposed to text dragging.

// Normal type: 11.28

// Normalize '', auto, and prepare for extra

// Normalize the name.

// Normalize the path according to POSIX rules.

// Normally should not reach this line

// Not an expected previous character.

// Not cloneDeep when without `namePath`

// Not crash if final `childNode` is not validate ReactNode

// Not delay since callback cancelled self

// Not drawn yet

// Not handle other type of content

// Not in a string chunk.

// Not know why these props left

// Not necessarily the package version of this code.

// Not own constructor property must be Object

// Not show text when closed expect combobox mode

// Not standard.

// Not sure about the optimal order of these conditions:

// Not sure if this will work since no related test case works with it

// Not use generate since we will handle ourself

// Not use subscribe when using render props

// Not white or transparent or grey

// Not wrap when there is not addons

// Note that "x.x" is a valid xRange identifer, meaning "any version"

// Note that simple async functions are implemented on top of

// Note that the only major, minor, patch, and pre-release sections of

// Note that the save and find-related commands aren't defined by

// Note that these all use the loose form, because they'll be

// Note that we do this because on renders _not_ caused by store updates, we need the latest store state

// Note that, despite the name, this function is also used to check

// Note: <body> and <html> cannot be clipped to a rect that's not also

// Note: For legacy code is reversed which not like other antd component

// Note: ResizeObserver polyfill not support option to measure border-box resize

// Note: The comments on the `throw` lines are intentional, they show

// Note: ["return"] must be used for ES3 parsing compatibility.

// Note: `normalize` is not exposed as `path.normalize`, so some code is

// Note: blank lines can’t exist in content.

// Note: can also be undefined.

// Note: performance of this is fine on an mb of normal markdown, but it’s

// Note: the `<MdastRoot, HastRoot>` overload doesn’t seem to work :'(

// Note: the positional info as used here is incorrect.

// Note: there are also `identifier` and `label` fields on this link node!

// Note: these options are not in the readme.

// Note: this algorithm for moving events around is similar to the

// Note: this field is called `_closeFlow` but it also closes containers.

// Note: this function is normally not called: see `table-row` for how rows

// Note: this is the semver.org version of the spec that it implements

// Note: we specifically use `in` instead of `hasOwnProperty` to accept

// Note：regionFilter/shape 特殊处理，regionFilter/shape 需要取到 Geometry 中的 Shape，需要在 view render 之后处理

// Nothing to change

// Nothing to do since no file need upload

// Nothing.

// Notify dependencies children with parent update

// Notify fields with rule that validate has finished and need update

// Notify that field is unmount

// Now get accurate coordinates for this place, in order to get a

// Now splice the events from the subtokenizer into the current events,

// Now that all that's done, we can finally try to actually render the child component.

// Now walk back to find an opener.

// Now, loop back through all events (and linked tokens), to figure out which

// Number

// Number keys

// Number of logical lines in this visual line

// Number of markers to use from the sequence.

// Number of pixels added to scroller and sizer to hide scrollbar

// Numeric character reference end state

// Numeric character reference state

// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF

// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE

// Object.prototype.hasOwnProperty.call

// Observable.range(0, 10)

// Obviously not all Emitters should be limited to 10. This function allows

// Occurs when accessing file resources or on Android 4.1 stock browser

// Offset

// Often, we want to signal events at a point where we are in the

// Old WebKit

// Old-fashioned briefly-focus-a-textarea hack

// Older IE

// Older IE's will not fire a second mousedown for a double click

// Older versions will require our polyfilled will-update value.

// On Android Chrome (version 56, at least), backspacing into an

// On Chrome 102, viewport updates somehow stop wheel-based

// On Firefox.24 Date#getTimezoneOffset returns a floating point.

// On iOS safari, a subsequent mouseup event will be fired after touchend.

// On some browsers, horizontal scrolling will cause redraws to

// Once 'total' is 0, 'current' in 'onShowSizeChange' is 0, which is not correct.

// One is out of range

// One more render for component in case fields not ready

// One such difference is if those characters are Unicode punctuation.

// One-char codes used for character types:

// Only IE not support, we mark as support first

// Only `combobox` support `backfill`

// Only `combobox` support `getInputElement`

// Only add the new parent to the _parents list if it's not already there.

// Only align should be manually trigger

// Only allow cross level drop when dragging on a non-expanded node

// Only allow main button

// Only deal with non-null/undefined values

// Only happen when `motionDeadline` trigger but element removed.

// Only invoke if we have `lastArgs` which means `func` has been

// Only look for `atBreak`s.

// Only need unRegister when component unMount

// Only one means `totalWidth` is the final width

// Only prepare step can be skip

// Only prevent default scrolling if vertical scrolling is

// Only prevent default when all the action is click.

// Only promise should be async

// Only reset when no namePath exist

// Only return validate child node. If invalidate, will do nothing about field.

// Only select enabled items

// Only show text area wrapper when needed

// Only the first item is strictly required.

// Only triggered when menu is closed & mode is tags

// Only typing will trigger onChange

// Only update on the client side

// Only update status when `canEnd` and not destroyed

// Only use js ellipsis when css ellipsis not support

// Only used for test case usage

// Only used in test env. Can be removed if refactor.

// Only used when drag, not affect SSR.

// Only when row is not expandable and `children` exist in record

// Open to reset view date

// Opening marker.

// Opening.

// Opera has no cut event... we try to at least catch the key combo

// Opera is difficult.

// Operate on current active panel

// Operations are used to wrap a series of changes to the editor

// Optimize some code when these features are not used.

// Optimize the case of one listener. Don't need the extra array object.

// Optimized case for simple insertion -- don't want to add

// Option

// Option Group

// Option value search

// Optionally wire in some hacks into the token-rendering

// Options.jsx

// Or:

// Other extensions

// Other non-TimePicker compare date

// Otherwise flush the scheduler starting with this action.

// Otherwise increment major.

// Otherwise increment minor.

// Otherwise is controlled by internal interactive logic which check by userTyping

// Otherwise pass back to the multiple function

// Otherwise the progress events will not fire.

// Otherwise, if the action's delay time is different from the current delay,

// Otherwise, improper indentation ends this item

// Otherwise, interpolate each of the numbers and rejoin the string.

// Otherwise, pass the action down the middleware chain as usual

// Otherwise, put this component's subscription instance into context, so that

// Otherwise, resolve, and exit.

// Otherwise, simply returns the range between the given positions.

// Our model of the DOM might be outdated, in which case the range we try to set can be impossible

// Our re-subscribe logic only runs when the store/subscription setup changes

// Out of range

// Outputs a number of spans to make up a line, taking highlighting

// Override magic textarea content restore that IE sometimes does

// Overwrite the default code text data handler to unescape escaped pipes when

// Own properties are enumerated firstly, so to speed up,

// PARSING

// PLAINTEXT state

// POSITION MEASUREMENT

// PRIORITIES

// PRIORITY

// PS: This code should not be attached after react 16

// Pagination.jsx

// Panel ref

// Paragraph

// Parse extra

// Parse number

// Parses given path string into an array of arrays of path segments

// Parts of that are extracted from Node’s internal `path` module:

// Pass mode into parent function

// Pass origin key down event

// Pass origin render status into `rc-table`, this can be removed when refactor with `rc-table`

// Pass origin wheel when on the bottom

// Pass origin wheel when on the top

// Pass props to store

// Pass ref with form instance

// Pass the `paste` event to the textarea so it's handled by its event listener.

// Pass the props used by `useContext` directly with child component.

// Pass the single listener straight through to the singular method

// Pass through to manipulateListeners

// Pass to React.Children.map to auto fill key

// Pass to ref since global add is in closure

// Passed to option handlers when there is no old value.

// Pasted text should replace back to origin content

// Patch a multiple for Firefox to fix wheel number too small

// Patch composition onChange when value changed

// Patch events

// Patch events when motion needed

// Patch for gap not support

// Path 的每个 element 对应一组数据

// People sometimes throw things besides Error objects…

// Per 4.1.4 - Convert from unix epoch to Gregorian epoch

// Per 4.2.1.2 Throw error if too many uuids are requested

// Per 4.2.1.2, Bump clockseq on clock regression

// Per 4.2.1.2, use count of uuid's generated during the current clock

// Per 4.2.2, randomize (14 bit) clockseq

// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`

// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)

// Perf optimization to filter items only below the limit

// Perform a change on the document data structure.

// Perform axis-specific matrix multiplication

// Perform rotation-specific matrix multiplication

// Perform the `toStringTag` check first to avoid errors with some

// Perhaps a good idea to rename it but it’s already used in the wild by

// Permission is hereby granted, free of charge, to any person obtaining a

// Permission is hereby granted, free of charge, to any person obtaining a copy of

// PhantomJS 2 has enumerable non-index properties on typed arrays.

// Pick a moment m from moments so that m[fn](other) is true for all

// Pick some layout related style properties up to span

// Pick the first defined of two or three arguments.

// Pipes work, backslashes don’t (but can’t escape pipes).

// Plug for library

// Plugin options:

// Plugins that add properties should also add the key here (null value),

// Plugins.

// Plus sign, followed by one or more period-separated build metadata

// Point align

// Point.

// Poll for input changes, using the normal rate of polling. This

// Polyfill for Function.prototype.bind

// Polyfill with cache label

// Pop all selection events off the end of a history array. Stop at

// Portal will remove from `parentNode`.

// Pos objects returned contain a line object, rather than a line

// Position the mover div to align with the current scroll position

// Position.

// Positions returned by coordsChar contain some extra information.

// Possibly split or suppress the update based on the presence

// Post-number: .1

// Potentially lose a little bit of precision here, but will fix issues where

// Pre-number: 1.

// Prefix `--` is important to not run on `0`.

// Prefix whitespace, part of the opening.

// Prepare DOM reads needed to update the scrollbars. Done in one

// Prepare children by `children` type

// Press any keys above to reopen menu

// Pretend we’ve set an alarm, if we haven’t already.

// Prevent `Trigger` behaviour.

// Prevent a maximum page count of 0

// Prevent caret position change

// Prevent clicks in the scrollbars from killing focus

// Prevent focused state lost

// Prevent infinite loop in case updateOffset creates new moment

// Prevent layout bugs like https://github.com/ant-design/ant-design/issues/5254

// Prevent names that look like filesystem paths, i.e contain '/' or '\'

// Prevent never-ending loop

// Prevent normal selection in the editor (we handle our own)

// Prevent removing file

// Prevent selection and cursors from interfering with the scroll

// Prevent the 'blur' event from firing when there is currently a focused input

// Prevent this from being ran twice

// Prevent wrapper from ever scrolling

// Previous path command is inputted to processPath

// Private function, gets a Unicode code point from a JavaScript UTF-16 string

// Private function, returns whether a break is allowed between the 

// Private properties.

// Private state for monitoring.

// Process

// Process children node

// Process final characters if they’re still there after hibernating.

// Process if illegal number

// Process load data

// Process node if is not root

// Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure

// Propagate any mapState/mapDispatch errors upwards

// Propagate the scroll position to the actual DOM scroller

// Propagate to the linked documents

// Property accessors are not being used as they'd require to define a

// Props changed

// Props.

// Protect against no duration and other division issues

// Prototypes do exist.

// Provide the compiled function's source by its `toString` method or

// Proxy event out

// Proxy of scroll events

// Public alias.

// Public properties.

// Pull data from the store after first render in case the store has

// Push the action to the end of the scheduler queue.

// Put in the new values to get a computed value out

// Put ref here since the range is generate by follow

// Quarter

// Quaternion math

// Quit if there's nothing to scroll here

// QuotaPicker only compare week

// R (R):   Right-to-Left

// RAWTEXT end tag name state

// RAWTEXT end tag open state

// RAWTEXT less-than sign state

// RAWTEXT state

// RCDATA end tag name state

// RCDATA end tag open state

// RCDATA less-than sign state

// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3

// RTL

// Rather than returning an object with a next method, we keep

// Re-align line numbers and gutter marks to compensate for

// Re-align to follow commonmark nesting rules

// Re-assign `events` because a newListener handler could have caused the

// Re-create this selector whenever the store changes.

// Re-render with the new content or new autoSize property then recalculate the height as required.

// Re-set this, in case some other handler touched the

// Re-synchronize the fake scrollbars with the actual size of the

// React 18 StrictMode will unmount first and mount back for effect test:

// React 18 will merge mouse event which means we open key will not sync

// React 18 will sync render even when the value is same in some case.

// React <= 16.2 does not support getSnapshotBeforeUpdate.

// React <= 16.2 does not support static getDerivedStateFromProps.

// React currently throws a warning when using useLayoutEffect on the server.

// React does not recognize the `htmlType` prop on a DOM element. Here we pick it out of `rest`.

// React may warn about cWM/cWRP/cWU methods being deprecated.

// React v16.11 and below

// React v16.12 and above

// React will call the ref callback with the DOM element when the component mounts,

// React will warning when mix `overflow` & `overflowY`.

// Read and store the height of line widgets associated with the

// Read input from the textarea, and update the document to match.

// Read the actual heights of the rendered lines, and update their

// Readability Functions

// Rebasing/resetting history to deal with externally-sourced changes

// Rebuild the gutter elements, ensure the margin to the left of the

// Record checked

// Record for real component render

// Record key only need check with enabled

// Record only if has `initialValue`

// Record position

// Record whether content has rendered

// Rect is more accurate than offset, use if near

// Rectangle's properties are not writable and non-enumerable.

// Recurse if we're merging plain objects or arrays

// Recurse, because to somewhat handle `[<x>]</x>` (where `[]` denotes the

// Recursively compare arrays (susceptible to call stack limits).

// Recursively compare objects (susceptible to call stack limits).

// Recursively convert values (susceptible to call stack limits).

// Recursively flatten arrays (susceptible to call stack limits).

// Recursively merge objects and arrays (susceptible to call stack limits).

// Recursively populate clone (susceptible to call stack limits).

// Recycle the action if we've already scheduled one. All the production

// Redraw the line's text. Interacts with the background and text

// Redraw the selection and/or cursor

// Ref return nothing, only for wrapper check exist

// Reference, resource, or so.

// Reference.

// Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4

// Reformat input if value is not controlled

// Refresh to new cache

// Refs are guaranteed to be up-to-date before componentDidMount or componentDidUpdate fires.

// Regardless of whether this script is executing as a CommonJS module

// Register

// Register a change in the history. Merges changes that are within

// Register a change to a single line. Type must be one of "text",

// Register form into Context

// Register media query for full screen. Need to support resize from small to large

// Register on init

// Registry of internal observers. If WeakMap is not available use current shim

// Reject immediately following calls.

// Rejection will also trade as false

// Remember that these lines changed, for updating the display

// Remember the old values, and insert the new ones

// Remember the original values

// Remove Effect

// Remove Password value

// Remove `STATUS_REMOVE` node.

// Remove a span from an array, returning undefined if no spans are

// Remove all events matching the regex.

// Remove all listeners for the specified event

// Remove all listeners in all events

// Remove checked keys form bottom to top

// Remove checked keys from top to bottom

// Remove comments and folding whitespace and replace multiple-spaces with a single space

// Remove different things depending on the state of evt

// Remove direct should also check the scroll bar update

// Remove duplicated user input colon

// Remove event listener

// Remove events

// Remove extra characters. *a*** -> *a*

// Remove falsy items

// Remove id to avoid open by label when trigger is hidden

// Remove if already mark as removed

// Remove keys if tree conduction

// Remove listener

// Remove listeners if controller has no connected observers.

// Remove observer if it's present in registry.

// Remove remaining sequences.

// Remove spans that are empty and don't have a clearWhenEmpty

// Remove the content end (if needed we’ll add it later)

// Remove the line prefix.

// Remove the marker.

// Remove the n lines at offset 'at'.

// Remove useless key

// Remove value by `backspace`

// Render a line into the hidden node display.externalMeasured. Used

// Render additional column

// Render directly when context not provided

// Render in the fake container

// Render progress shape

// Render raw

// Render tab node & collect tab offset

// Render the DOM representation of the text of a line. Also builds

// Render times

// Render to trigger transition event cost 3 frames. Let's delay 10 frames to reset this.

// Renderer extensions

// Reorder when in same date

// Repeat trigger `onChange` event for compatible

// Repeat until not more align needed

// Replace delimiters with snippets.

// Replace extension with func to run new extension but fall back if false

// Replace file if exist

// Replace message with variables

// Replace renderer with func to run extension, but fall back if false

// Replace tokenizer with func to run extension, but fall back if false

// Replace validator if needed

// Replacement character, exit.

// Reset

// Reset `open` to fix control mode tooltip display not correct

// Reset `visible` to fix control mode tooltip display not correct

// Reset active key if not exist anymore

// Reset all when has values when `viewDate` is `null` which means from open trigger

// Reset another one when not have value

// Reset any `maxWait` timer.

// Reset back with controlled value first

// Reset by `nameList`

// Reset destroy state when mode change back

// Reset element position after calculate the visible area

// Reset event param

// Reset if rowSelection reset

// Reset input back since no validate value

// Reset location tracker:

// Reset nsecs if clock regresses (new clockseq) or we've moved onto a new

// Reset preprocessor mixin:

// Reset preprocessor:

// Reset the array, or remove it completely if we have no more listeners.

// Reset the current text selection only if the click is done outside of the selection

// Reset the input to correspond to the selection (or to be empty,

// Reset the selection to a single range.

// Reset tokenizer:

// Reset when motion changed

// Resetting context._sent for legacy support of Babel's

// ResizeObserver are tracking the same element and the callback of one

// Resolve https://github.com/ant-design/ant-design/issues/28881

// Resolve if in iframe lost event

// Resource: `[asd](fgh)`.

// Responsive

// Rest step is sync update

// Restart the timer.

// Restore

// Restore container to original place

// Restore parent schema.

// Resume execution at the desired location (see delegateYield).

// Retrieve and filter the old marked spans stored in a change event.

// Retry a maximum of 4 times when nonsense rectangles are returned

// Retry after frame render in case parent not ready

// Return a 3 character hex if possible

// Return a 4 character hex if possible

// Return a concatenated array of all matching events if

// Return a moment from input, that is local/utc/zone equivalent to model.

// Return a selection that does not partially select any atomic

// Return an iterator with no values.

// Return false if tree or treeNode is not checkable

// Return if not controlled

// Return nothing for nodes that are ignored.

// Return the exports of the module

// Return the local global object if it's not possible extract one from

// Return the modified object

// Return true if an entry matches a threshold or if the new ratio

// Return true when the given mouse event happened in a widget

// Return undefined so the action knows to request a new async id if it's rescheduled.

// Returned or thrown by various protocols to signal 'I'm not

// Returns a box for a given cursor position, which may have an

// Returns a function that estimates the height of a line, to use as

// Returns a number from the range [`0`; `str.length`] unless `pos` is outside that range.

// Returns a number indicating which of two overlapping collapsed

// Returns an array of logical lines that continue the visual line

// Returns null if characters are ordered as they appear

// Returns the iterator of grapheme clusters there are in the given string

// Returns the next grapheme break in the string after the given index

// Returns the number of grapheme clusters there are in the given string

// Returns the value from the range [`from`; `to`] that satisfies

// Returns true if the given side of a box is after the given

// Reuse last one when not exist yet

// Revert a change stored in a document's history.

// Revert the changed values

// Revert the old values

// Revert value in range if needed

// Right

// Right arrow

// Right edge outside viewport, try to move it.

// Right offset

// Round the intersection ratio to avoid floating point math issues:

// Row

// Rows

// Rules for checking different kind of offsets. In example if the element is

// Run a handler that was bound to a key.

// Run any renderer extensions

// Run overlays, adjust style array.

// Run the given function in an operation

// Run the given mode's parser over a line, calling f for each token.

// SCROLLBARS

// SCROLLING THINGS INTO VIEW

// SEMI_COLON_SEPARATED

// SHARED TEXTMARKERS

// SPACE => https://github.com/ant-design/ant-design/issues/16871

// STRING STREAM

// SVG 中分组对应实体标签 <g>

// SVG-related properties

// Safari 8 has buggy iterators w/o `next`

// Safari 8.1 makes `arguments.callee` enumerable in strict mode.

// Safari 9 has enumerable `arguments.length` in strict mode.

// Safari 9 makes `arguments.length` enumerable in strict mode.

// Safari has bug that text will keep break line on text cut when it's prev is break line.

// Safari returns null in some cases (#2780)

// Safari sends zero key code for non-latin characters.

// Save as cache in case dom removed trigger by `motionDeadline`

// Save current path command

// Save flatten nodes info and convert `treeData` into keyEntities

// Save references to the new child props.  Note that we track the "child props from store update"

// Save the newly created `output` for the next call.

// Schedule new call to be in invoked when the pending one is resolved.

// Scheduler Actions mutate their state/delay time and return themeselves.

// Script data double escape end state

// Script data double escape start state

// Script data double escaped dash dash state

// Script data double escaped dash state

// Script data double escaped less-than sign state

// Script data double escaped state

// Script data end tag name state

// Script data end tag open state

// Script data escape start dash state

// Script data escape start state

// Script data escaped dash dash state

// Script data escaped dash state

// Script data escaped end tag name state

// Script data escaped end tag open state

// Script data escaped less-than sign state

// Script data escaped state

// Script data less-than sign state

// Script data state

// Scroll a given position into view (immediately), verifying that

// Scroll a given set of coordinates into view (immediately).

// Scroll to

// Search an array of spans for a span matching the given marker.

// Second

// Secondary cursor, shown when on a 'jump' in bi-directional text

// See #6982. FIXME remove when this has been fixed for a while in Chrome

// See <https://infra.spec.whatwg.org/#ascii-whitespace>.

// See GH-11.

// See GH-7.

// See [MDN](https://mdn.io/round#Examples) for more details.

// See also http://marijnhaverbeke.nl/blog/codemirror-line-tree.html

// See http://requirejs.org/docs/errors.html#mismatch for more details.

// See http://unicode.org/reports/tr9/tr9-13.html for the algorithm

// See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.

// See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.

// See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.

// See https://es5.github.io/#x13.2.2 for more details.

// See https://github.com/facebook/regenerator/issues/274 for more details.

// See https://github.com/uuidjs/uuid for API details

// See if "".split is the broken IE version, if so, provide an

// See input.poll and input.reset

// See issue #2901

// See the code for `parse` and `parseFragment`:

// See: <https://github.com/facebook/react/pull/7081>.

// See: <https://github.com/facebook/react/pull/7515>.

// See: <https://github.com/inikulin/parse5/blob/9c683e1/packages/parse5/lib/extensions/location-info/tokenizer-mixin.js#L95>.

// See: <https://github.com/inikulin/parse5/blob/9c683e1/packages/parse5/lib/extensions/location-info/tokenizer-mixin.js>.

// See: <https://github.com/inikulin/parse5/blob/9c683e1/packages/parse5/lib/extensions/position-tracking/preprocessor-mixin.js>.

// See: <https://github.com/inikulin/parse5/blob/9c683e1/packages/parse5/lib/parser/index.js#L371>.

// See: <https://github.com/inikulin/parse5/blob/9c683e1/packages/parse5/lib/tokenizer/index.js#L218-L234>.

// See: <https://github.com/inikulin/parse5/blob/9c683e1/packages/parse5/lib/tokenizer/preprocessor.js#L17>.

// See: <https://github.com/inikulin/parse5/issues/109>.

// See: <https://github.com/nodejs/node/blob/fcf8ba4/lib/internal/url.js>

// See: <https://github.com/remarkjs/react-markdown/issues/576>.

// See: <https://github.com/remarkjs/remark-react/issues/64>.

// See: <https://github.com/sindresorhus/github-markdown-css>.

// See: <https://github.com/syntax-tree/mdast-util-definitions/blob/8290999/index.js#L26>.

// See: <https://github.com/syntax-tree/mdast-util-to-markdown/issues/15>

// See: https://github.com/ant-design/ant-design/issues/6183

// See: https://github.com/joyent/node/issues/1707

// See: https://github.com/w3c/IntersectionObserver/issues/211

// See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis

// Seeded random algorithm from http://indiegamr.com/generate-repeatable-random-numbers-in-js/

// Select-all will be greyed out if there's nothing to select, so

// Selection

// Selection content

// Selection objects are immutable. A new one is created every time

// Self-closing start tag state

// Self-resetting timeout for the poller

// Send an event to consumers responding to changes in gutter width.

// Separator

// Serializer

// Set @@toStringTag to native iterators

// Set `initialValue`

// Set `key`.

// Set a new selection.

// Set abbr so it will have a name (getters return

// Set autofocus to true if this textarea is focused, or if it has

// Set crossOrigin for this image

// Set element position to fixed

// Set gap direct if flex gap support

// Set initial value, init store value when first mount

// Set initial values

// Set new time (tell video to seek to new time)

// Set non-path related properties.

// Set of handlers to fire cursorActivity on

// Set path related properties in the correct order.

// Set pos and end to the cursor positions around the character pos sticks to

// Set shadow

// Set space.

// Set the non-safe value.

// Set the pending flag indicating that this action has been scheduled, or

// Set to the height of the document, allowing scrolling.

// Set to true when a non-horizontal-scrolling line widget is

// Set up methods on CodeMirror's prototype to redirect to the editor's document.

// Set up refs to coordinate values between the subscription effect and the render logic

// Set view date will clean up default one

// Set when currying a bound function.

// Set when the widest line needs to be determined anew

// Sets intersection ratio.

// Setting context._sent for legacy support of Babel's

// Setting the hour should keep the time, because the user explicitly

// Setup initial root epic

// Several table elements. When `align=char`, sets the character to align on

// Several table elements. When `char`, offsets the alignment

// Several. Use CSS `text-align` instead,

// Several. Use CSS `vertical-align` instead

// Shared markers (across linked documents) are handled separately

// Shift + <

// Shift + >

// Shift click

// Shift click usage

// Shift with exponential notation to avoid floating-point issues.

// Shortcuts to improve speed and size

// Should additional logic to handle 12 hours

// Should always be an array

// Should always be string

// Should cache the same promise, cannot be promise.finally

// Should clean up if Field removed

// Should close when paste finish

// Should keep missing values

// Should print error if user `onFinish` callback failed

// Should provides additional icon if `hasFeedback`

// Should recalculate when rtl changed

// Should trigger close

// Shouldn't skip holes

// Show remove

// Showing up as a widget implies collapsed (widget replaces text)

// Shows load progress

// Shows play progress

// Side effect for delay drag

// Side effect imports

// Signals that the marker's widget changed, and surrounding layout

// Silent.

// Similar to:

// Simplifying assumption: it's unlikely that the first options arg of the provided memoizer

// Since Menu event provide the `info.item` which point to the MenuItem node instance.

// Since XULElement is also subclass of Element, we only need HTMLElement and SVGElement

// Since polyfill `getSnapshotBeforeUpdate` need work with `componentDidUpdate`.

// Since some component use `Portal` directly, we have to keep the logic here.

// Since the delta values reported on mouse wheel events are

// Since the interaction of drag is changed, the semantic of the props are

// Since this added in global,should use ref to keep update

// Since this is called a *lot*, try to bail out as cheaply as

// Since we only use this in test, let simply realize this

// Since we're generating multiple colors,

// Single click

// Single line

// Single mode always set value

// Single mode should always close by select

// Single mode should scroll to current key

// Single record selected

// Size note: removing ASCII from the regex and using `asciiPunctuation` here

// Skip align value when trigger value is empty.

// Skip ellipsis if already match

// Skip enter/exit of line ending, line prefix, and content.

// Skip file which marked as `LIST_IGNORE`, these file will not add to file list

// Skip first render is invisible since it's nothing changed

// Skip first.

// Skip if disabled

// Skip if drag node is self

// Skip if no need to check

// Skip if no sorter needed

// Skip if not dataNode exist

// Skip if not exist form instance

// Skip if parent is disabled

// Skip if without rule

// Skip index properties.

// Skip scroll if place is enough

// Skip since current queue is ood

// Skip swipe if low distance

// Skip trigger `onSelect` or `onDeselect` if configured

// Skip trigger if prev & current value is both empty

// Skip when disabled

// Skip when no needed

// Smooth interval

// Snapshot testing cannot handle refs, so be sure to null-check this.

// So       AIRPLANE

// So       ARTIST PALETTE

// So       BABY ANGEL

// So       BATH

// So       COOKING

// So       EAR OF RICE

// So       FACE PALM

// So       FACTORY

// So       FATHER CHRISTMAS

// So       FEMALE SIGN

// So       FLEXED BICEPS

// So       GRADUATION CAP

// So       HEAVY BLACK HEART

// So       HORSE RACING

// So       KISS MARK

// So       LEFT SPEECH BUBBLE

// So       MALE SIGN

// So       MAN DANCING

// So       MICROPHONE

// So       MICROSCOPE

// So       PERSON WITH BALL

// So       POLICE OFFICER

// So       RAINBOW

// So       RAISED HAND WITH FINGERS SPLAYED

// So       ROCKET

// So       ROWBOAT

// So       SCHOOL

// So       SLEEPING ACCOMMODATION

// So       WHITE UP POINTING INDEX

// So       WRENCH

// So   [2] EAR..NOSE

// So   [2] HAND WITH INDEX AND MIDDLE FINGERS CROSSED..I LOVE YOU HAND SIGN

// So   [2] MAN IN BUSINESS SUIT LEVITATING..SLEUTH OR SPY

// So   [2] PERSONAL COMPUTER..BRIEFCASE

// So   [2] REVERSED HAND WITH MIDDLE FINGER EXTENDED..RAISED HAND WITH PART BETWEEN MIDDLE AND RING FINGERS

// So   [2] STAFF OF AESCULAPIUS..SCALES

// So   [2] WATER POLO..HANDBALL

// So   [3] BICYCLIST..PEDESTRIAN

// So   [3] FACE WITH NO GOOD GESTURE..PERSON BOWING DEEPLY

// So   [3] INFORMATION DESK PERSON..DANCER

// So   [3] NAIL POLISH..HAIRCUT

// So   [3] SNOWBOARDER..SURFER

// So   [3] SWIMMER..GOLFER

// So   [4] RAISED FIST..WRITING HAND

// So   [5] HAPPY PERSON RAISING ONE HAND..PERSON WITH FOLDED HANDS

// So   [5] SIGN OF THE HORNS..RIGHT-FACING FIST

// So   [9] BRIDE WITH VEIL..PRINCESS

// So  [10] PREGNANT WOMAN..JUGGLING

// So  [11] WHITE UP POINTING BACKHAND INDEX..OPEN HANDS SIGN

// So assume `node` is a parent node.

// So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.

// So evt must be a string

// So if we're currently running a task, we'll need to delay this invocation.

// So we drop it.

// So we need render the element to check and pass back to rc-dropdown.

// So when enter is pressed, the tag's input value should be emitted here to let selector know

// So, we'll use the child props from store update only if the wrapper props are the same as last time.

// Some browsers fire contextmenu *after* opening the menu, at

// Some browsers fire keypress events for backspace

// Some browsers use the wrong event properties to signal cmd/ctrl on OS X

// Some browsers, namely IE and Edge, don't have the SVGGraphicsElement

// Some mode do not have fully arrow operation like inline

// Some named character references do not require the closing semicolon

// Some nodes can break out of their context if they don’t have a certain

// Some versions of FF have rAF but not cAF

// Something like "2.*" or "1.2.x".

// Something like `1.2.3 - 1.2.4`

// Somewhat based on:

// Soonest alarm already set, or will be.

// Sort to keep the checked node length

// Sorting makes sure if one month (or abbr) is a prefix of another

// Sorting makes sure if one month (or abbr) is a prefix of another it

// Sorting makes sure if one weekday (or abbr) is a prefix of another it

// Source code location

// Special case for "transparent", all other non-alpha formats

// Special case for u0 ≅ u1.

// Special optimization for only a single match.

// Special whitespace codes (which have negative values), C0 and Control

// Sphere. Ann. Math. Statist. 43 (1972), no. 2, 645--646.

// Stable children

// Standard Properties.

// Star ranges basically just allow anything at all.

// Start a new operation.

// Start a text drag. When it ends, see if any dragging actually

// Start at the front of the list. Break early once

// Start the timer for the trailing edge.

// State machine

// State management.

// Step left until we fail to match the invert condition.

// Still wrap with Trigger here since we need avoid react re-mount dom node

// Still, try to consume at most the items size.

// Store a relative adjustment to the scroll position in the current

// Store setTimeout reference so promise-polyfill will be unaffected by

// Store some values that we'll need later (but don't want to force a relayout for)

// Store the map and a cache object for the current logical line

// Strategy

// Stretch with target

// Strictly less than if we recomputed clockNow.

// String with links masked to avoid interference with em and strong

// Sub-views need their line numbers shifted when text is added

// Subject extends Observable and Observable references Subject in it's

// Subject imported before Observable to bypass circular dependency issue since

// Subscription to the "Transitionend" event is used as a workaround for

// Such overlap is not allowed.

// Suffix whitespace, part of the closing.

// Sunday is the first day of the week.

// Supply a getter just to skip dealing with ESM bindings

// Support CRLF (patterns only look for one of the characters).

// Support Observable-of-Observables

// Support Space (32) or Enter (13) key operation to fire a click event

// Support call raf with delay specified frame

// Support for single parameter, formats only overload to the calendar function

// Support gapDeg = 0 when type = 'dashboard'

// Support render props

// Support selection

// Suppress optimizelegibility in Webkit, since it breaks text

// Swap the two chars left and right of each selection's head.

// Switch active panel

// Switch container exit w/ line endings.

// Switch content.

// Switch first active panel if operate without panel

// Sync editor state

// Sync filteredKeys on appear in controlled mode (propFilteredKeys !== undefiend)

// Sync innerValue with control mode

// Sync real parent

// Sync scroller and scrollbar, ensure the gutter elements are

// Sync scrolling between fake scrollbars and real scrollable

// Sync select value

// Sync the actual display DOM structure with display.view, removing

// Sync the scrollable area and scrollbars, ensure the viewport

// Sync value back to `undefined` when it from control to un-control

// Synchronously update MergedOpenKeys

// Syntactic sugar should use correct children type

// TEXTAREA INPUT STYLE

// TEXTMARKER SPANS

// TEXTMARKERS

// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS

// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR

// THIS IS NOT a full impl of Set, this is just the minimum

// TODO

// TODO Is unshift slow?

// TODO We're reading the store directly in render() here. Bad idea?

// TODO parse inline content if parameter markdown=1

// TODO 逍为 tooltip 的区域不应该是 canvas，而应该是整个 特别是在图比较小的时候

// TODO(Babel 8): Remove this file.

// TODO: 1 / 3 等默认值需要有一个全局的配置的地方

// TODO: 4.0 - codemod should help to change `filterOption` to support node props.

// TODO: Add more comments

// TODO: Another silent failure?

// TODO: Calling random 3 times is probably not the fastest solution

// TODO: Figure out correct signature here: an Operator<Observable<T>, R>

// TODO: Find a better way to register and load all the locales in Node

// TODO: Move this to another part of the creation flow to prevent circular deps

// TODO: Remove "ordinalParse" fallback in next major release.

// TODO: Remove this after next major version

// TODO: Remove this module from `core-js@4` since it's replaced to module below

// TODO: Remove when use `responsiveImmutable`

// TODO: Use [].sort instead?

// TODO: Use this.as('ms')?

// TODO: We need to take the current isoWeekYear, but that depends on

// TODO: Would be faster to return [0,0,0,0] immediately if dot == 0

// TODO: add sorting

// TODO: factor this out to be a proper Operator/Subscriber implementation and eliminate closures

// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`

// TODO: remove 'name' arg after deprecation is removed

// TODO: setClip 的传参既 shape 配置，也支持 shape 对象

// TODO: support CSS transform

// TODO: 使用包围盒的计算方法

// TODO: 此处判断有问题，当 drag 图形时，也会触发一次 dragleave 事件，因为此时 toShape 为 null，这不是所期望的

// Tab (9) key

// Table

// Tabs don’t work, and virtual spaces don’t make sense.

// Tag name state

// Tag open state

// Take an unsorted, potentially overlapping set of ranges, and

// Take the `labelImageMarker` (now `data`, the `!`)

// Target is in this context.

// Target is nested in this context.

// Tell Selector that break next actions

// Tell dropdown that item clicked

// Tell whether the rect is visible, given an offset

// Test for A's keys different from B.

// Test needs

// Test never reach

// Test whether there exists a collapsed span that partially

// Text close, marker close, label close.

// Text open.

// TextArea

// Thank's IE8 for his funny defineProperty

// Thanks to IE8 for its funny defineProperty

// Thanks to https://github.com/andreypopp/react-textarea-autosize/

// The "after after body" insertion mode

// The "after after frameset" insertion mode

// The "after body" insertion mode

// The "after frameset" insertion mode

// The "after head" insertion mode

// The "before head" insertion mode

// The "before html" insertion mode

// The "in body" insertion mode

// The "in caption" insertion mode

// The "in cell" insertion mode

// The "in column group" insertion mode

// The "in frameset" insertion mode

// The "in head no script" insertion mode

// The "in head" insertion mode

// The "in row" insertion mode

// The "in select" insertion mode

// The "in table body" insertion mode

// The "in table text" insertion mode

// The "in table" insertion mode

// The "in template" insertion mode

// The "initial" insertion mode

// The "text" insertion mode

// The 'scroll' parameter given to many of these indicated whether

// The (right-most) trimmed path component is exactly `..`.

// The ._invoke method unifies the implementations of the .next,

// The DOM events that CodeMirror handles can be overridden by

// The DOM updates done when an operation finishes are batched so

// The Facebook app's UIWebView identifies as both an iPhone and iPad, so

// The JS engine embedded in Adobe products needs `match` returned in

// The `[`

// The `^` marker

// The `^`.

// The above copyright notice and this permission notice shall be included

// The above copyright notice and this permission notice shall be included in all

// The aspect ratio is either used directly or to calculate width and height.

// The awkward -1 offsets are needed because findFirst (called

// The below are non-standard, they are “well-known”.

// The child props selector needs the store reference as an input.

// The construct in the second example (fenced code) does not accept lazy

// The construct in the third example is potentially a GFM table, and

// The context.catch method must only be called with a location

// The default configuration options.

// The default value of `matchInputWidth` is `true`

// The delegate iterator is finished, so forget it and continue with

// The display handles the DOM integration, both for input reading

// The document is represented as a BTree consisting of leaves, with

// The element in which the editor lives.

// The ending (`]`, properly parsed and labelled).

// The event is triggered twice from bubbling up the DOM tree.

// The following Regular Expressions can be used for tokenizing,

// The following code bubbles up values, see the tests for

// The following fields are “well known”.

// The following keys are quite harmless, even in combination with

// The function is executed either with a basic call or an apply if there is an args array

// The goal is for them to be set by plugins on `data` instead of being

// The inline list should remove when motion end.

// The inverse of countColumn -- find the offset that corresponds to

// The module cache

// The only thing left to do is to throw the thing instead.

// The padding-right forces the element to have a 'border', which

// The publicly visible API. Note that methodOp(f) means

// The reason we want to know the amount a wheel event will scroll

// The require function

// The returned object contains the DOM node, this map, and

// The root entry object (effectively a try statement without a catch

// The rules for parsing tokens in foreign content

// The semihidden textarea that is focused when the editor is

// The spans will have null for their from/to properties when the

// The starting line

// The table-related elements that must not contain whitespace text according

// The test against `importScripts` prevents this implementation from being installed inside a web worker,

// The textarea is kept positioned near the cursor to prevent the

// The thunk middleware looks for any functions that were passed to `store.dispatch`.

// The token starts before the line ending…

// The use of `Object#toString` avoids issues with the `typeof` operator

// The whole (without `!`):

// Then one single call to the relevant state does the trick, parse5

// Then use H to determine saturation (S)

// Then we have padding.

// Then we return the HSB color in the desired format

// There *must* be at least one hyphen-minus in each alignment cell.

// There is *some* kind of drag-and-drop support in IE6-8, but I

// There is no space to scroll

// There might have been a widget with a focused element that got

// Therefore, we use `setInterval` to schedule single and repeat actions.

// These are used / cleaned here.

// These inline notes are not used in GFM.

// These must be handled carefully, because naively registering a

// These objects are used to represent the visible (currently drawn)

// These props is used by `useContext` directly in sub component

// These props make sure that the SVG behaviours like general text.

// These props should merged into `config`.

// These two are, on init, called from the constructor because they

// These were camelcased in Tiny. Now lowercased in SVG 2

// This Subscription's source should match where store came from: props vs. context. A component

// This action has a similiar effect to ActionTypes.INIT.

// This allows a “live binding”, which is needed for `interrupt`.

// This also ensures a stable sort in V8 and other engines.

// This array is used to make a Date, either with `new Date` or `Date.UTC`

// This attribute is respected by automatic translation systems such as Google Translate,

// This can be used to attach properties to mode objects from

// This environment has a native %IteratorPrototype%; use it instead

// This error was thrown as a convenience so that if you enable

// This function accepts the same arguments as setImmediate, but

// This function allows you to set a threshold for relative time strings

// This function allows you to set the rounding function for relative time strings

// This function will be called whenever a moment is mutated.

// This function will load locale and then set the global locale.  If

// This hack (see related code in patchDisplay) makes sure the

// This hack is needed because the `__proto__` property is still inherited in

// This icon file is generated automatically.

// This is CodeMirror (https://codemirror.net/5), a code editor

// This is a check, so we don’t care about tokens, but we open a bogus one

// This is a kludge to keep keymaps mostly working as raw objects

// This is a polyfill for %IteratorPrototype% for environments that

// This is a stricter version than the built in check for lists, thematic

// This is a superfluous loop if we don’t align delimiters, but otherwise we’d

// This is a whole-line replace. Treated specially to make

// This is because there is no context-free conversion between hours and days

// This is done to register the method called with moment()

// This is expansive that we only fill when user query

// This is important for "transitions" which never actually start

// This is needed when used with angular/tsickle which inserts a goog.module statement.

// This is not the complete set of editor methods. Most of the

// This is on by default already.

// This is something like */*,*  allow all files

// This is something like a image/* mime type

// This is the case when in ES6 or when using __proto__ in a compatible browser.

// This is used for legacy span make scrollHeight the wrong value.

// This is used to make sure we don't warn about the same

// This makes Chinese IME can't input. Do not fix this

// This makes ref not quick refresh in case user open another input with blur trigger

// This module is generated by `script/`.

// This module should not be running in strict mode, so the above

// This probably shouldn't be used publicly.

// This script is generated from the Unicode data.

// This should be removed from doc & api in future.

// This should not block user typing

// This shouldn't happen as long as we do top-down subscriptions correctly, but

// This test prevents this from firing when a context

// This way the result will be the same whether the tinycolor is initialized with string or object.

// This will be set to a {lineWise: bool, text: [string]} object, so

// This will likely cause Bad Things (TM) to happen in Concurrent Mode.

// This will reduce one duplicated triggerOnScroll time

// Thrash, waste and sodomy: IE GC bug

// Three dot-separated numeric identifiers.

// Thus, in rtl, we are looking for the first (content-order) character

// Tilde ranges.

// Timezone

// Title

// To avoid conditionally calling hooks, we fall back to a tiny wrapper

// To avoid creating an additional object, we just hang the .value

// To avoid memory thrashing when child.lines is huge (e.g. first view of a large file), it's never spliced.

// To avoid recursion in the case that type === "newListener"! Before

// To avoid too many params, let use config instead of origin param

// To determine which side to associate with, get the box to the

// To do next major: don’t return the given tree.

// To do: add more extension tests.

// To do: clean.

// To do: does this work to reset tracker?

// To do: micromark: create a registry of tokens?

// To do: next major, use `node.lang` w/o regex, the splitting’s been going

// To do: next major: add `options` to state, remove:

// To do: next major: always return a single `root`.

// To do: next major: always return array.

// To do: next major: always return root?

// To do: next major: deep clone.

// To do: next major: do not expose, keep bound.

// To do: next major: don’t return given `Node` from `enter`.

// To do: next major: don’t return points when invalid.

// To do: next major: expose `undefined` everywhere instead of `null`.

// To do: next major: expose functions.

// To do: next major: move to `state.options.allowDangerousHtml`.

// To do: next major: move to `state.options`.

// To do: next major: remove `augment`.

// To do: next major: remove `find` & `replace` combo, remove schema.

// To do: next major: remove setter/getter.

// To do: next major: remove.

// To do: next major: rename `context` -> `state`, `safeOptions` -> `info`, use

// To do: next major: rename `context` -> `state`, `safeOptions` to `info`, use

// To do: next major: replace exports with functions.

// To do: next major: replace utility with `definitionById` object, so we

// To do: next major: return `undefined` when not found.

// To do: next major: return `undefined`.

// To do: next major: use `defaultHandlers.inlineCode`.

// To do: next major: use `defaulthandlers.listItem`.

// To do: next major: use `state` and `state` utilities from `mdast-util-to-markdown`.

// To do: not needed to store if there is no bogus state, probably?

// To do: remove in a major.

// To do: see if we van clean this? Can we merge texts?

// To do: use structured clone.

// To do: when both:

// To find out whether the scrollbar is still visible, we

// To get around it, we can conditionally useEffect on the server (no-op) and

// To maintain the wrapperProps object reference, memoize this destructuring.

// To make comparing easier, an entry that has a ratio of 0

// To make the context menu work, we need to briefly unhide the

// To match how GH works in comments, use `markdownSpace` (`[ \t]`) instead

// To prevent the for loop in the first place assign an empty array

// To support old version react.

// Tokenizer Extensions

// Tools.

// Tooltip

// Top edge inside and bottom edge outside viewport, try to resize it.

// Top edge outside viewport, try to move it.

// Top overlap

// Touched or validate or has initialValue

// Track prevChar before string of ____ started

// Tracks the maximum line length so that the horizontal scrollbar

// Tracks which cursorActivity handlers have been called already

// Transform options:

// Transforming the node resulted in an element with a different name

// Treat `www` as part of the domain.

// Treat indented code blocks (> 4 spaces) as having only 1 indent

// Tricky logic here:

// Tries to rebase an array of history events given a change in the

// Trigger

// Trigger `onSelect`. Single mode always trigger select

// Trigger `onVisibleChanged`

// Trigger active event

// Trigger afterClose only when change visible from true to false

// Trigger by composition event, this means we need force change the input value

// Trigger by store update. Check if need update the component

// Trigger event

// Trigger internal `onClear` event

// Trigger internal event

// Trigger motion only when patched

// Trigger onChange only when value is validate

// Trigger onInput later to let user customize value if they want do handle something after onChange

// Trigger open by click when mode is `inline`

// Trigger open event in case its in control

// Trigger origin onScroll

// Trigger pagination events

// Trigger search again to support `tokenSeparators` with typewriting

// Trigger single `onSelect` event

// Trigger store change

// Trim events that fall out of the time window.

// True when shift is held down.

// Try another.

// Try new containers.

// Try to determine the superclass constructor. Compatible implementations

// Try to focus

// Try to match string input using regular expressions.

// Try to match the explicit extension.

// Try to move start of change to start of selection if ambiguous

// Try to parse a blank line.

// Try to parse initial flow (essentially, only code).

// Try/catch helper to minimize deoptimizations. Returns a completion

// Turn it into a property.

// Turn it into an attribute.

// Turn mouse into crosshair when Alt is held on Mac.

// Two cases:

// TypeScript doesn't set __proto__ in ES5, as it's non-standard.

// UNUSED EXPORTS: bindActionCreators

// UNUSED EXPORTS: convertLegacyProps

// UNUSED EXPORTS: find, hastToReact, normalize

// UPDATING

// USE OR OTHER DEALINGS IN THE SOFTWARE.

// UUID timestamps are 100 nano-second units since the Gregorian epoch,

// Uncontrolled

// Unfinished key sequence

// Unhandled 'error' event

// Unicode.

// Unique ID

// Unique ID creation requires a high quality random # generator.  In the

// Unpack if possible and when not given a `root`.

// Unravel the next token.

// Unsubscribe.

// Until blank line, item doesn't need indentation

// Untyped token.

// Up (38) key

// Up and Right Arrows

// Up arrow

// Update `STATUS_ADD` to `STATUS_KEEP`

// Update buttons records

// Update cache with selectedKeys

// Update count

// Update current marker set

// Update drag over node and drag state

// Update drag position

// Update entity

// Update existing child locale in-place to avoid memory-leaks

// Update inputValue incase input can not parse as number

// Update selected keys

// Update the height of a line, propagating the height change

// Update to next status

// Update value as effect

// Update with new status

// Update wrapper records

// Updated line heights might result in the drawn area not

// Updates a single range in the selection.

// Updates the display.view data structure for a given change to the

// Use <html>/<body> instead of window since scroll bars affect size.

// Use `_.noConflict` to remove Lodash from the global object.

// Use `ghost` from `props` or from `ConfigProvider` instead.

// Use `insertBefore` as `prepend`

// Use `util.types` for Node.js 10+.

// Use a `switch` statement to work with class constructors. See

// Use a lookup table to find the index.

// Use a simple backslash escape when it’s always valid, and a `\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.

// Use any height that's been specifically set

// Use any width that's been specifically set

// Use class component since typescript not support generic

// Use low-level api, because this fn is low-level api.

// Use native if support

// Use polyfill for setImmediate for performance gains

// Use raw define since `React.FC` not support generic

// Use setTimeout to make sure panel DOM exists

// Use shared variable to save bundle size

// Use source `argPos` if available.

// Use source `arity` if one is not provided.

// Use source `ary` if it's smaller.

// Use source `func` and merge bitmasks.

// Use source `thisArg` if available.

// Use the setState() updater to ensure state isn't stale in certain edge cases.

// Used both to provide a JSON-safe object in .getHistory, and, when

// Used by replaceSelections to allow moving the selection to the

// Used by the isClean() method

// Used by whenMapStateToPropsIsFunction and whenMapDispatchToPropsIsFunction,

// Used for conditions cache

// Used for cursor motion and such.

// Used for customize scroll

// Used for horizontal relative motion. Dir is -1 or 1 (left or

// Used for measuring wheel scrolling granularity

// Used for motion control

// Used for outer render usage to avoid `visible: false & status: none` to render nothing

// Used for the algorithm that adjusts markers for a change in the

// Used for un/re-doing changes from the history. Combines the

// Used mostly to find indentation.

// Used to 'clip' out readOnly ranges when making a change.

// Used to add methods to editor and doc instances, wrapping them in

// Used to catch context-menu undo

// Used to cheaply estimate the coordinates for a position. Used for

// Used to detect need to update scrollbar

// Used to ensure that the line number gutter is still the right

// Used to ensure timeout re-tries don't fire when another extend

// Used to force a redraw

// Used to get the editor into a consistent state again when options change.

// Used to iterate over a part of the tree.

// Used to only resize the line number gutter when necessary (when

// Used to scroll to a specific position

// Used to store marked span information in the history.

// Used to suppress mouse event handling when a touch happens

// Used to track when changes can be merged into a single undo

// Used to track whether anything happened since the context menu

// Used to work around IE issue with selection being forgotten when focus moves away from textarea

// Used when mouse-selecting to adjust the anchor to the proper side

// User should not pass `children` as other type.

// User typing will not auto format with precision directly

// Users may optionally pass in a custom context instance to use instead of our ReactReduxContext.

// Using charAt should be more compatible.

// Util

// Utility for applying a change to a line by handle or number,

// Utility for getTokenAt and getLineTokens

// V,H,S,T 都在前面被转换成标准形式

// V8 throws on boxed symbols

// V8 ~ Chrome 36-

// V8 ~ Chrome 45- bug

// Value

// Verify that the code above has been dead code eliminated (DCE'd).

// Verify that the selection does not partially select any atomic

// Vertical gutter use padding when gap not support

// Very basic readline/emacs-style bindings, which are standard on Mac.

// VirtualActions are immutable, so they create and return a clone. In this

// Visible

// Visible again need reset timer

// W1. Examine each non-spacing mark (NSM) in the level run, and

// W2. Search backwards from each instance of a European number

// W3. Change all ALs to R.

// W4. A single European separator between two European numbers

// W5. A sequence of European terminators adjacent to European

// W6. Otherwise, separators and terminators change to Other

// W7. Search backwards from each instance of a European number

// WARNING: config object could override important members here.

// WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto

// WIN_KEY_LEFT

// WSH

// Wait a tick to make sure return type is a promise

// Walk any extensions

// Walk through all events.

// Warning for deprecated usage

// Warning if conflict with form initialValues and do not modify value

// Warning if multiple field set `initialValue`and do not modify value

// Warning if use other mode

// Watch popup element resize

// Watch target element resize

// We also can't just check "__reactInternalSnapshot",

// We can instead immediately `attempt` to parse one.

// We can now either have a definition or a paragraph.

// We can only get content by render

// We can say that if CSS dimensions + paddings are equal to the "client"

// We can use fragment directly but this may failed some selector usage. Keep as origin logic

// We can't validate dates in another timezone unfortunately. Do a basic check instead

// We can’t escape characters in `inlineCode`, but because eols are

// We can’t have blank lines in content, so no need to worry about empty

// We check mobile in visible changed here.

// We create a proxy to handle delay created instance

// We direct use SkeletonElement as avatar in skeleton internal.

// We dispatch validate to root,

// We do not need re-register since namePath content is the same

// We do not really use this motionName

// We don't expect any of the above to throw, but better to be safe.

// We don't record keyCode when IME is using

// We don't split element, it will keep if whole element can be displayed.

// We don't want to include the whole node.d.ts this this compilation unit so we'll just fake

// We either found spaces…

// We found a cached entry

// We have a blank line.

// We have a potential problem: certain characters after eols could result in

// We have to fallback to function to handle this

// We have to use class component here.

// We just trigger onChange(null)

// We keep an empty function here.

// We know that we're about to delete this one, and also

// We lock resize trigger by raf to avoid Safari warning

// We matched the extension, so mark this as the end of our path

// We measure width and set to the input immediately

// We memoize the elements for the rendered child component as an optimization.

// We move full content to outer element to avoid repeat read the content by accessibility

// We must listen to `mousedown` or `touchstart`, edge case:

// We need cache count since remove motion should not change count display

// We need cache options here in case user update the option list

// We need convert back to Number since it require `toFixed` to handle this

// We need delay to trigger validate in case Field is under render props

// We need do conduction of values

// We need fill half check back

// We need find all related popup to close

// We need force update here since popup dom is render async

// We need record this but not re-render to avoid upper issue

// We need this to execute synchronously every time we re-render. However, React warns

// We need to deep clone this object.

// We need to define this separately.

// We need to get the latest state of loading/loaded keys

// We need to handle both cases, but can't just check for the presence of "maybeSnapshot",

// We needn't reload data when has children in sync logic

// We only align when element is visible

// We only handle element & text node.

// We only handle exist keys

// We only manage open state here, close logic should handle by list component

// We pass some props into select props style

// We preprocess lists to add `listItem` tokens, and to infer whether

// We provide a default function for Context without provider

// We record `destroy` mark here since when mode change from `inline` to others.

// We reset the preprocessor as if the document ends here.

// We saw a non-dot and non-path separator before our dot, so we should

// We saw a non-dot character immediately before the dot.

// We saw the first non-path separator

// We saw the first non-path separator, mark this as the end of our

// We saw the first non-path separator, remember this index in case

// We should clean up motion if is changed by dragging

// We should clone the childNode since they're controlled by React and we can't reuse it without warning

// We should fixed namePath & value to avoid developer change then by form function

// We should give focus back to selector if clicked item is not focusable

// We should keep this as ref-able

// We should record activeElement and restore later

// We should special handle array validate

// We should still report in case we break this code.

// We should sync with input value.

// We should use target as directly element instead of function which makes element check hard.

// We should wrap customize list body in a classNamed div to use flex layout.

// We take `mergedData` as deps which may cause dead loop if it's dynamic generate.

// We tell react that first mount has passed

// We try to not inherit from `Object.prototype`. In some engines creating an

// We use BigInt here.

// We use Class instead of Hooks here since it will cost much code by using Hooks.

// We use origin list since wrapped list use context to prevent open

// We use query element here to avoid React strict warning

// We want to capture the wrapper props and child props we used for later comparisons

// We want to compare the start of today, vs this.

// We will cache option in case it removed by ajax

// We will cache the dot status to avoid shaking on leaved motion

// We will convert data format back to first format

// We will force these to be `display: block` with non `picture-card`

// We will get last + 1 number to check if need advanced number

// We will interval update step when hold mouse down

// We will retry 3 times in case dynamic height shaking

// We will retry multi times to make sure that the element has been align in the right position.

// We will retry since element may not sync height as it described

// We will take consider prev form unmount fields.

// We'd better remove syntactic sugar in `rc-menu` since this has perf issue

// We'd normally use ~~inp for this, but unfortunately it also

// We're using "expires" because "max-age" is not supported by IE

// WebKit converts symbol values to JSON as null

// Webkit browsers on OS X abort momentum scrolls when the target

// Webkit seems to refuse to render text nodes longer than 57444

// Week

// Week Year

// WeekPicker only compare week

// Well, this is quite the pickle.

// We’re always in a paragraph, in a list item.

// We’ve now parsed the non-lazy and the lazy line, and can figure out

// Whatever selectable, always close it

// When a node has grown, check whether it should be split.

// When a store is created, an "INIT" action is dispatched so that every

// When a yielded Promise is resolved, its final value becomes

// When an 'electric' character is inserted, immediately trigger a reindent

// When an aspect of a line changes, a string is added to

// When an error occurs, the request is not repeated after pollingErrorRetryCount retries

// When an event has just come in that is likely to add or change

// When an operation has its scrollToPos property set, and another

// When click inside the picker & outside the picker's input elements

// When current page change, fix focused style of prev item

// When data count change to 0, reset this since not loop will reach

// When data size reduce. It may trigger native scroll event back to fit scroll position

// When directly calling `measureCharPrepared`, we have to adjust

// When hideOnSinglePage is true and there is only 1 page, hide the pager

// When lines outside of the viewport are measured, they are drawn in this.

// When menu isn't open, OptionList won't trigger a value change

// When no vertical scrollbar, should hide it

// When not argument provided, we think dev may want to show the scrollbar

// When pasting N lines into N selections, insert one line per selection

// When scroll.x is max-content, no need to fix table layout

// When scrollTop at the end but data cut to small count will reach this

// When something is selected, it is present in the textarea, and

// When the field is not `preserve`, we need fill this with initialValues instead of store.

// When the window loses focus, we want to show the editor as blurred

// When the window resizes, we need to refresh active editors.

// When un/re-doing restores text containing marked spans, those

// When user typing disabledDate with keyboard and enter, this value will be empty

// When user typing from `1.2` to `1.`, we should not convert to `1` immediately.

// When value is null and set showTime

// When we encounter a trailing semicolon after parsing, and the character

// When we’d serialize that, in most cases that would be seen as html

// When you want to refactor with FC, useRef will also init multiple time and

// Where el is the DOM element you'd like to test for visibility

// Whether cellDate is disabled in range

// Whether the selection needs to be redrawn

// Whether this reset should be careful to leave existing text (for compositing)

// Whether to reset the input textarea

// Which is licensed:

// Which makes motion failed

// While we do continue, we signal that the flow should be closed.

// Width

// Width & height include paddings and borders when the 'border-box' box

// Will contain the actual code, positioned to cover the viewport.

// Will contain the gutters, if any.

// Will fallback to Number if not support.

// Will return null for un-rendered even when `removeOnLeave={false}`

// With a wrapped rtl chunk (possibly spanning multiple bidi parts),

// Within the body of any async function, `await x` is transformed to

// Without it we would need to implement separate methods for each of

// Without this mask close will abnormal

// Work around Chrome issue (#2712)

// Work around IE7 z-index bug (not perfect, hence IE7 not really being supported)

// Work around https://bugs.chromium.org/p/chromium/issues/detail?id=489206

// Work around nonsense dimensions being reported for stretches of

// Work around nonsensical selection resetting in IE9/10, and

// Work around problem with bounding client rects on ranges being

// Work around unexplainable focus problem in IE9 (#2127) and Chrome (#3081)

// Workaround Closure Compiler restriction: The body of a goog.module cannot use throw.

// Works around a throw-scroll bug in OS X Webkit

// Works with __proto__ only. Old v8 can't work with null proto objects.

// Wrap ReactNode with `key`

// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`

// Wrap additional function of component, so that we can get latest value from store

// Wrap callback only accept when promise not provided

// Wrap in IIFE

// Wrap in a new function to prevent

// Wrap promise with field

// Wrap with ConfigConsumer. Since we need compatible with react 15, be care when using ref methods

// Wrap with class component to enable pass generic with instance method

// Wrapper around buildLineContent which will reuse the structure

// Wrapper function ported from TinyColor.prototype.mix, not treeshakable.

// Wrapper function ported from TinyColor.prototype.toHexString

// Wrapper function ported from TinyColor.prototype.toHsv

// Wrapper when multiple children

// Wraps a function in an operation. Returns the wrapped function.

// Wraps and hides input textarea

// Wraps everything that needs to exist inside the vertically-padded coordinate system

// XXX, use key of first item to update new added (let React to move exsiting

// Year

// You can find some technical background for some of the code below

// You can ref 'show limited value when input is not focused' test for more info.

// You need to add the event listeners before calling open() on the request.

// Zero or more digits, followed by a letter or hyphen, and then zero or

// Zero out whatever was not defaulted, including time

// Zl       LINE SEPARATOR

// ZombieJ: Return the count of rest keys. It's safe to refactor if need more info.

// ZombieJ: This not often happen. So we just skip it.

// Zp       PARAGRAPH SEPARATOR

// [ 'grade', 'class' ]

// ['name'] -> ['name','list']

// [Legacy] Always return as array contains label & value

// [Legacy] Back to safe integer

// [Legacy] Custom element should be separate with `checkable` in future

// [Legacy] Drag props

// [Legacy] Fill legacy data if user query.

// [Legacy] Follow the api doc

// [Legacy] If customize prefixCls provided, we cut it to get the prefixCls

// [Legacy] Not sure why need this mark

// [Legacy] Refresh logic

// [Legacy] This is used for `rc-tree-select`

// [Legacy] This should not be handle by Portal but parent PortalWrapper instead.

// [Legacy] Used by `rc-trigger`

// [Legacy] Wait for parent component ref has its value.

// [Legacy] We still support auto convert `$ 123,456` to `123456`

// [Legacy] convert `children` or `dataSource` into option children

// [Legacy] trigger onClick with value

// [for Mozilla Gecko 27-35:](https://mzl.la/2ewE1zC)

// [visible & motion not end] => [!visible & motion end] still need trigger onVisibleChanged

// [year, month, day , hour, minute, second, millisecond]

// ];

// _ can't be between two alphanumerics. \p{L}\p{N} includes non-english alphabet/numbers as well

// __proto__ as an own property. Object.getOwnPropertyDescriptor() works.

// __webpack_public_path__

// _changeInProgress == true case, then we have to adjust, because

// `%ArrayIteratorPrototype%.next` method

// `%IteratorPrototype%[@@iterator]()` method

// `%StringIteratorPrototype%.next` method

// `<applet>`

// `<area>`. Use no href instead of an explicit `nohref`

// `<body>`

// `<body>` and table elements. Use CSS `background-color` instead

// `<body>`. Use CSS `a:active {color}` instead

// `<body>`. Use CSS `a:link {color: *}` instead

// `<body>`. Use CSS `a:visited {color}` instead

// `<body>`. Use CSS `background-image` instead

// `<body>`. Use CSS `color` instead

// `<br>`. Use CSS `clear` instead

// `<font>` and `<hr>`. Use CSS instead

// `<font>`. Use CSS instead

// `<frame>`

// `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`

// `<frame>`. Use overflow in the child context

// `<head>`

// `<hr>`. Use background-color and height instead of borders

// `<html>`. Use a doctype.

// `<iframe>`. Use CSS `border` instead

// `<img>` and `<object>`

// `<img>`. Use a `<picture>`

// `<isindex>`

// `<link>`

// `<meta>`

// `<object>`

// `<object>`. List of URIs to archives

// `<param>`

// `<script>`

// `<table>`

// `<table>`. Use CSS `border-color` instead,

// `<table>`. Use CSS `border-width` instead,

// `<td>` and `<th>`

// `<td>` and `<th>`. Use `scope` on `<th>`

// `Array.from` method

// `Array.from` method implementation

// `Array.isArray` method

// `Array.prototype.entries` method

// `Array.prototype.every` method

// `Array.prototype.filterReject` method

// `Array.prototype.filter` method

// `Array.prototype.findIndex` method

// `Array.prototype.find` method

// `Array.prototype.forEach` method

// `Array.prototype.includes` method

// `Array.prototype.indexOf` method

// `Array.prototype.keys` method

// `Array.prototype.map` method

// `Array.prototype.some` method

// `Array.prototype.values` method

// `Array.prototype[@@iterator]` method

// `ArraySpeciesCreate` abstract operation

// `Assert: IsCallable(argument) is true`

// `Assert: Type(argument) is Object`

// `CreateArrayIterator` internal method

// `CreateIterResultObject` abstract operation

// `Function#toString` throws on some built-it function in some legacy engines

// `Function('return this')()`

// `GetMethod` abstract operation

// `HasOwnProperty` abstract operation

// `IntersectionObserver`, it's sufficient to simply mirror `left` and `top`

// `IsArray` abstract operation

// `IsCallable` abstract operation

// `IsConstructor` abstract operation

// `LengthOfArrayLike` abstract operation

// `Math.trunc` method

// `Object.create` method

// `Object.defineProperties` method

// `Object.defineProperty` method

// `Object.getOwnPropertyDescriptor` method

// `Object.getOwnPropertyNames` method

// `Object.getPrototypeOf` method

// `Object.keys` method

// `Object.prototype.propertyIsEnumerable` method implementation

// `Object.setPrototypeOf` method

// `OrdinaryToPrimitive` abstract operation

// `RequireObjectCoercible` abstract operation

// `String.prototype.at` method

// `String.prototype.codePointAt` method

// `String.prototype[@@iterator]` method

// `ToIntegerOrInfinity` abstract operation

// `ToLength` abstract operation

// `ToObject` abstract operation

// `ToPrimitive` abstract operation

// `ToPropertyKey` abstract operation

// `URLSearchParams.prototype.append` method

// `URLSearchParams.prototype.delete` method

// `URLSearchParams.prototype.entries` method

// `URLSearchParams.prototype.forEach` method

// `URLSearchParams.prototype.getAll` method

// `URLSearchParams.prototype.get` method

// `URLSearchParams.prototype.has` method

// `URLSearchParams.prototype.keys` method

// `URLSearchParams.prototype.set` method

// `URLSearchParams.prototype.size` getter

// `URLSearchParams.prototype.sort` method

// `URLSearchParams.prototype.toString` method

// `URLSearchParams.prototype.values` method

// `URLSearchParams.prototype[@@iterator]` method

// `URLSearchParams` constructor

// ```

// ```markdown

// `beforeUpload` return false

// `cancel` potentially being assigned

// `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)

// `clock_seq_low`

// `combobox` & `tags` should option be `string` type

// `combobox` should not use `optionLabelProp`

// `dangerous`, `clobberPrefix`, `footnoteLabel`, `footnoteLabelTagName`,

// `document.contains` not support with IE11

// `footnoteLabelProperties`, `footnoteBackLabel`, `passThrough`,

// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances

// `hasOwn.call(value, "__await")` to determine if the yielded value is

// `hast`

// `isPlainObj` unfortunately uses `any` instead of `unknown`.

// `li` element `onCopy` prop args is not same as `div`

// `markdown-table` will always add an align row

// `middleware` received a callback and called it synchronously, but that

// `multiple` mode only clean the search value but not trigger event

// `node`

// `notifyNestedSubs` is duplicated to handle the case where the component is unmounted in

// `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247

// `onSearch` should use in `combobox` or `showSearch`

// `pair([obs1, obs2, ...])`

// `pred` and is closest to `from`. Assumes that at least `to`

// `progressDot` enjoy the highest priority

// `race([obs1, obs2, ...])`

// `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:

// `setFieldsValue` is a quick access to update related status

// `showAction` should handle `focus` if set

// `tags` mode should move `searchValue` into values

// `tags` should not set option as disabled

// `time_high_and_version`

// `time_low`

// `time_mid`

// `track` from `state`.

// `unknownHandler`.

// `useLayoutEffect` here to avoid blink by duration is 0

// `vfile`s too.

// `xast`

// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test

// `|`

// a bottleneck for malicious stuff.

// a change event.

// a few seconds to seconds

// a new timezone) makes sense. Adding/subtracting hours does not follow

// a now version of current config (take local/utc/offset flags, and

// a part of `ArraySpeciesCreate` abstract operation

// a particular column.

// a second time. In case it wants us to change the offset again

// a single operation, or are close together with an origin that

// a string precedes the next number in b

// aB     a|B     aB|

// ab     a|b     a|b

// abort if not all of them have values

// abort out of the list early if we hit a cycle

// about useLayoutEffect in SSR, so we try to detect environment and fall back to

// above or below them in the parent document.

// abstract-drag-over-node is the top node

// accessing subscription below in the closure due to Temporal Dead Zone.

// accidentally pass it on to the delegate.

// according to spec, Map.prototype[@@iterator] and Map.orototype.entries must be equal.

// account for partial visibility on a single edge

// achromatic

// action wasn't rescheduled) but was originally scheduled as an async

// action, then recycle as an async action.

// actions via the same code path, without adding API surface area, as well

// active 效果内置

// activeStyle

// actual character (or fetches it from the cache).

// actual modulo - handles negative numbers (for dates before 1970):

// actual scrolling happens, reducing flickering.

// actually covering the viewport. Keep looping until it does.

// actually exist within the document.

// actually possible. Otherwise, it causes vertical scroll

// add "__proto__" for Object.getPrototypeOf polyfill

// add a flag to not completely full polyfills

// add a key to Array.prototype[@@unscopables]

// add a new record indicating removal.

// add border

// add child elements to represent the individual buffered time ranges

// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative

// add if support for Symbol.iterator is present

// add lines with it's children

// add missing metadata

// add onError to <source />

// add remaining unparsed input length to the string

// added to it. This is a useful default which helps finding memory leaks.

// added. As an optimization, line widget aligning is skipped when

// adding 1 corrects loss of precision from parseFloat (#15100)

// adding it to the listeners, first emit "newListener".

// additional methods and properties).

// adjust

// adjust group data

// adjust labelLines

// adjust labelShape

// adjust signs (if necessary)

// adjust y position of labels to avoid overlapping

// affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->

// after `www.`, but that’s not how it’s implemented by them).

// algorithm when closing flow in `documentContinue`.

// algorithm when dealing with lazy lines in `writeToChild`.

// algorithm, to deal with browser quirks.

// aligned.

// all enumerable object keys, includes symbols

// all object keys, includes non-enumerable and symbols

// all other browsers

// all previous Promises have been resolved before calling invoke,

// all scrollable containers.

// all, so a binary search doesn't work, and we want to return a

// allow activeValue diff from value

// allow detectFactoryAndVerify to get ownProps

// allow specify the border

// allow success when 2xx status

// allowing connectAdvanced's shouldComponentUpdate to return false if final

// allows merging (starting with "+") into a single event.

// already has that for Unicode punctuation and whitespace, so use those.

// already have an existing method we want to call, so there's no need

// also NUM_DELETE

// also NUM_EAST

// also NUM_INSERT

// also NUM_NORTH

// also NUM_NORTH_EAST

// also NUM_NORTH_WEST

// also NUM_SOUTH

// also NUM_SOUTH_EAST

// also NUM_SOUTH_WEST

// also NUM_WEST

// also ensures that the minifier will not anonymize the function.

// also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty

// alternative way to split lines.

// always

// always hide on mobile

// an array of bottom offsets for the lines that make up a drawn

// an instance of DOM HTMLElement. Otherwise use

// an object that matches the position interface.

// ancestor components re-render before descendants

// ancestor.

// anchor (<0 is to the left, >0 to the right)

// and "client" properties, though that is not always true in Chrome.

// and 'resetSelectionOnContextMenu' option is true.

// and .done properties off the next function object itself. This

// and Laura Doktorova's doT.js (https://github.com/olado/doT).

// and after `char - 1` in writing order of `char - 1`

// and also looks for line-wide styles.

// and also not between days and months (28-31 days per month)

// and are also not enumerable in the native implementation.

// and before `char` in writing order of `char`

// and call it with `null` when it unmounts.

// and clear timer after 'loadingOrDelay' updated.

// and content drawing. It holds references to DOM nodes and

// and end-of-level-run (eor) are used at level run boundaries.

// and ensure the document's width matches it.

// and further modified to allow for strings containing both week and day

// and h scrollbar is present.

// and inconsistent support for the `crypto` API.  We do the best we can via

// and insert it.

// and line object, and to find the total height of the document.

// and marked text into account.

// and may also be respected by tools used by human translators.

// and optional comparison of the result value with existing values

// and pop the real result func off

// and preventDefault-ing the event in that handler.

// and put style prop in wrapper

// and returns null if it was. forRect is used by rectangular

// and simulates a backspace press in this case.

// and the close size *is not* a multiple of three,

// and the old ratio are on the opposite sides of a threshold.

// and the second argument - flag - preferred type is a string

// and their cells are compiled.

// and then, because it's not editable, hide the virtual keyboard.

// and turns the whole into one content block.

// and values needed to control behavior (forwarded refs, alternate context instances).

// and, from that, detects the way it can convert deltas to pixel

// animateCfg 中的设置优先级更高

// animating state should be cleared while resizing, otherwise autoplay stops working

// animation 写在标签上的进行判断是否相等， 判断每个参数有没有 function;

// antd 3

// antd 4

// antd v3

// antd v4

// any necessary setup in a predictable way. This predictability

// any number of extending chars is treated as a single unit as far

// any of such methods are called

// any transparent rgba color

// any word (or two) characters or numbers including two/three word month in arabic.

// anything, or an element merely doesn't have paddings/borders styles.

// anything.

// appear=false 时，设定 childrenShow 和 tweenToEnter 都为 true, 这里不渲染 animation;

// append

// append a new element to elements (and create a new ref)

// append to the DOM (needed to obtain scrollHeight)

// applies to the whole line, and the measurement of the actual

// apply arguments instead of spreading and mutate a local list of params for performance.

// apply arguments instead of spreading for performance.

// apply sign while we're at it

// are also available from CodeMirror (editor) instances.

// are any timers active?

// are left alone.

// are part of a visual line that starts with another line, or when

// are simply ignored.

// are treated specially, in order to make the association of line

// area

// area 区域上部分

// area 区域下部分

// area 基本标记的绘制需要获取上下两边的顶点

// area, ensure viewport is updated when scrolling.

// aren't currently visible.

// argument that corresponds to a known catch block.

// argument, it calls that for each line in the document. With

// argumentsList[@@iterator] is %ArrayProto_values%

// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)

// array

// arrays with one element for each line in (after) the change.

// article "Quaternion Calculus and Fast Animation".

// as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)

// as a non-relevant.

// as a ref instead of a useState/useReducer because we need a way to determine if that value has

// as a setter, sunday should belong to the previous week.

// as derived from http://spencermortensen.com/articles/bezier-circle

// as editing and measuring is concerned. This is not fully correct,

// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring

// as mimic traditional recursion but across asynchronous boundaries.

// as the last (content-order) character).

// asNavForIndex check is to avoid recursive calls of slideHandler in waitForAnimate=false mode

// assignment should always work unless something is misconfigured. Just

// assume it's been called with `combineLatest([obs1, obs2, obs3], project)`

// assume it's been called with `forkJoin([obs1, obs2, obs3], resultSelector)`

// async functions in terms of async generators, it is especially

// at http://marijnhaverbeke.nl/blog/#cm-internals .

// attr

// auto, 在 top-right

// autofocus and no other element is focused.

// autohide 不再考虑超出限制

// autolink

// available, otherwise a store update may happen between render and the effect,

// avoid memory leak

// avoid screen readers from reading out loud the text

// avoid selecting text during drag

// axis

// b (BN):  Boundary Neutral

// b is in (anchor - 1 month, anchor + 1 month)

// b.

// backcompat 取 body

// background shape 不进行状态样式设置

// backspace, delete, and similar functionality.

// backwards compat for now: also set the locale

// banner 模式默认为警告

// bars are the only difference between rounded dimensions + paddings

// base X position

// bbox calculation should ignore NaN for path attribute

// be a cache

// be future ones caused by CSS transitions.

// be wrapped, and have the extra elements added to the wrapper div

// because group could not effect text-shape, should set text-shape position manually

// been processed.  If this went into useState/useReducer, we couldn't clear out the value without

// before it to distinguish it from an escaped pipe

// before or after them.

// before the event, the event's positions are updated. Uses a

// begins looking for media data

// behaves the same as moment#day except

// behavior of the RetrySubscriber (from the `retry` operator), where

// being wrong would just be a slight flicker on the first wheel

// below props are proxy props of G.event convenient

// benchmarks:

// benchmarks: https://jsperf.com/quaternion-transform-vec3-implementations-fixed

// better than glitching out.

// bind

// bindings can only be objects, so reference equality check via indexOf is fine

// bits of functionality we need for this library.

// block.

// blockquote

// blocks being seen.

// blur an element

// body may have overflow set on it, yet we still get the entire

// border-box: add border, since height = content + padding + border

// borderWidth 等值也有问题，但考虑到 borderWidth 设为百分比的概率很小，这里就不考虑了

// bottom

// bottom;

// box shape

// br

// breaks, and setex heading underlines though:

// bring active slide to the beginning of visual area

// browser this is a little complicated due to unknown quality of Math.random()

// build a selection out of it. 'Consumes' ranges array (modifying

// build metadata.

// building up an actual levels array. Since there are only three

// bumped when mode/overlay changes, used to invalidate highlighting info

// but a number that has a weird ending, we need to convert it to pixels

// but does not actually intersect is given a value of -1

// but fall back to options given to createSelectorCreator.

// but the sum of the opening and closing size *is* multiple of three,

// but their correct versions are not interesting for us

// but using getBoundingClientRect to get a sub-pixel-accurate

// but we might need to add _that_

// but we need move it.

// but we’d be interrupting it w/ a new container if there’s a current

// by `forwardRef` with function component yet.

// by not storing.

// cache is a Map (or PseudoMap) that matches the keys to

// cache user language

// calc cosine

// calculate coefficients

// calculate final values

// calculate new intersection data.

// calculate result * inverse quat

// call invoke immediately, without waiting on a callback to fire,

// call something on iterator step with safe closing on error

// callback: function () { this.month() + 1 }

// callbacks from appending listeners

// called manually

// calling preventDefault (at touchend phase) will prevent the mouseup event

// can be kept static when scrolling.

// can't be fully polyfilled anyway.

// can't just apply() to create a date:

// can't push handle enough to create the needed `amount` gap, so we

// can't set metadata to uncaught frozen object

// cancel it

// cancel subscribe, avoid trgger self

// cancel subscribe, avoid trigger self

// canceled. If the action doesn't reschedule, or reschedules with a

// canvas size

// canvas 上的 mouseenter， mouseleave 事件，仅当进入或者移出 canvas 时触发

// canvas,

// capturing group, because it should not ever be used in version

// case, we need to set the action reference to the most recent VirtualAction,

// category field, create category legend

// cause onBeforeChange and onAfterChange receive wrong value.

// cell child tokens

// center、width、height

// chance to clean up.

// change arrows direction in right-to-left direction

// change is on 3

// change search type, restore form data

// change target ref value cause e.target.value should be '' when clear input

// change the type of the NSM to the type of the previous

// changed

// changed since we began.

// changed.

// changes to a European number. A single common separator between

// character DEL

// character position, returning an array of remaining chunks (or

// character to make sure that the built-in object properties are not

// character. Functions like coordsChar, that need to do a lot of

// character. If the NSM is at the start of the level run, it will

// characters in the part's range

// characters, and returns inaccurate measurements in nodes

// check for already processed low surrogates

// check for mismatching day of week

// check for partial visibility

// check if an element has a class name

// check if two components are the same type

// check if value changed

// check on default Array iterator

// check to see if it's completed now that you've gotten

// check whether the element under the pixel in the bottom

// check: https://github.com/moment/moment/issues/2166

// checked against either the strict or loose comparator form

// checked, unchecked 时重新计算

// checks for null or undefined

// children > type

// children may also contain string filled with spaces (in certain cases where we use jsx strings)

// choose the second color

// chrome only; not an array, so can't use .push.apply instead of iterating

// chunk of lines in them, and branches, with up to ten leaves or

// classes because the mode may output tokens that influence these

// classes.

// clean up css overflow

// clean up event listeners and their debounce callers

// clear _12h flag if hour is <= 12

// clear all component instance

// clear all option

// clear hover value style

// clear hover value when panel change

// click clear icon

// click 事件

// clientLeft/clientTop, but in standards mode, it is found by querying

// clientWidth is zero for inline block elements in ie.

// client[Width/Height] properties represent viewport area of the window.

// clone 一份

// close popup when trigger type contains 'onContextMenu' and document is scrolling.

// close popup when trigger type contains 'onContextMenu' and window is blur.

// code

// code matches their width.

// code to add the data object to the top of the scope chain.

// collapsed ranges (see markText) that might hide parts, and join

// collapsed spans). The widgets for all of them need to be drawn.

// collect flattened record

// collisions between observers, e.g. when multiple instances of

// combined and executed at once.

// common in the npm registry.

// commonmark requires matching angle brackets

// compare two arrays, return the number of differences

// comparing ids when the spans cover exactly the same range.

// comparison.

// compatibility wrappers are needed.

// compatible with FireFox browser, ref: https://github.com/antvis/g/issues/119

// compatible with fillStyle

// compatible with strokeStyle

// component

// component 为空时调用子级的。。

// component 里的缩略处理做得很糟糕，文字长度测算完全不准确

// condition 为空，则表示删除过滤条件

// condition 返回 true，则保留

// connected descendants won't update until after this component is done

// connected to the store via props shouldn't use subscription from context, or vice versa.

// connection Subscription exists, *and* either:

// connection Subscription on the shared ConnectableObservable. In cases

// consider area without scrollBar

// consistent view of the document

// console.log('integer rule called %j', rule);

// console.log('validate on %s value', value);

// console.log(e, 'Video is not ready.')

// console.log(ticker.frame, ticker.nextTime, ticker.time)

// const [query, setQuery] = React.useState('');

// const appleWebkitVersion = webkitVersionMap ? parseFloat(webkitVersionMap.pop()) : null;

// const bbox = child.cfg.canvasBBox;

// const constraint = [ // 范围

// const cos = Math.cos(Math.PI / 180 * angle);

// const cp1 = getPointAtSegLength.apply(0, p0.concat(p2, p4, p6, t));

// const cp2 = getPointAtSegLength.apply(0, p6.concat(p5, p3, p1, 0));

// const formattedResult = this.options.formatResultRef.current ? this.options.formatResultRef.current(res) : res;

// const id = get(option, 'id');

// const lineHeight = get(this.geometry.theme, ['pieLabels', 'labelHeight'], 14);

// const ni = i + 1;

// const p0 = [x1, y1];

// const p1 = [x2, y2];

// const p2 = midPoint(p0, p1, t);

// const p3 = midPoint(p1, p2, t);

// const p4 = midPoint(p2, p3, t);

// const p5 = midPoint(p3, p4, t);

// const p6 = midPoint(p4, p5, t);

// const point = this.pointAt(0, 0, rx, ry, t); // 椭圆的切线同椭圆的中心不相关

// const preShape = this.get('clipShape');

// const sin = Math.sin(Math.PI / 180 * angle);

// const source = clone(beforeMappingData);

// const t = 0.5;

// const webkitVersionMap = (/AppleWebKit\/([\d.]+)/i).exec(USER_AGENT);

// const { selectionStart, selectionEnd, scrollTop } = textareaRef.current;

// const { value: tmpValue } = textareaRef.current;

// const { width: cw, height: ch } = this.view.coordinateBBox;

// constant that refers to the ISO standard

// constant that refers to the RFC 2822 form

// construct.

// consumes the whole token.

// contain multiple lines when collapsed ranges are present.)

// contained in target

// containing one or more styles) to a CSS style. This is cached,

// contains in native

// content.

// context.dispatchException(context.arg) call above.

// context.method was "next", forget context.arg since it has been

// continuation line.

// continued punctuation.

// controlled 的时候, _value 必有值

// convenience.

// convert an array to a date.

// convert days to months

// convert javascript object to media query string

// converts floats to ints.

// coordinate

// coordinate 更新之后，center 也变化了

// coordinates

// coordinates beyond the right of the text.

// coordinates into another coordinate system. Context may be one of

// coordinates, in top-to-bottom, left-to-right order.

// coordinates.

// coordsCharInner is safe. As such, we first find the extent of the

// copied from https://stackoverflow.com/a/5450113/806777

// copies of rxjs in their node_modules directory.

// copies or substantial portions of the Software.

// copy of this software and associated documentation files (the

// copy-on-write scheme for the positions, to avoid having to

// correct, but as backslashes only care about punctuation, either will

// couldn't get it to work yet.

// counts as the larger one.

// cover the line in which the change took place. Removes spans

// covers the visible area.

// create 3 group layers for views.

// create a fake namespace object

// create an object in dictionary mode (a.k.a. "slow" mode in v8)

// create flex container with row-gap set

// create now).

// create two, elements inside it

// createConnect with default args builds the 'official' connect behavior. Calling it with

// createDict = iframe.contentWindow.Object;

// createPath(context) {

// created, so we won't end up with the child locale set.

// cross-realm fallback

// crosshair 的限制区域

// css style for tooltip

// css 和 g 的渐变起始角度不同

// current iteration.

// current match in a

// current match in b

// current parent, then set this._parent to the new parent.

// currentStyle maybe null

// currently HTML5 input type only supports 24-hour formats

// currently it's hard-coded, since we can't easily read the actually width of icon

// cursor and display (which would be awkward, slow, and

// cycle to simulate higher resolution clock

// d

// dark presetPalettes

// dark theme patterns

// dashes, a colon, or a pipe.

// date and time from ref 2822 format

// date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict

// date from iso format

// date from string and array of format strings

// date from string and format string

// date.

// day when working around DST, we need to store them separately

// days than the end month.

// days to month/week

// debounce runAsync should be promise

// debounced at least once.

// def

// default to beginning of week

// default. User code or addons can define them. Unknown commands

// defaultCfg 需要判断 innerLabels & labels

// defaultMemoize now supports a configurable cache size with LRU behavior,

// defer the callback but not defer to next frame

// define __esModule on exports

// define getter function for harmony exports

// define iterator

// definition

// del (gfm)

// delayed transitions. This way it's possible to capture at least the

// delegate iterator, or by modifying context.method and context.arg,

// delete messageInstance for new transitionName

// deliberate, catching objects, arrays

// delimiter cell count.

// delimiter row.

// denominator is 0 is no meaning

// dependsOnOwnProps is used by createMapToPropsProxy to determine whether to pass props as args

// deprecated offset property

// descriptionIcon theme

// description字段存在时，显示icon

// despite having improperly defined `toString` methods.

// destroy all components

// destroy 后所有属性都拿不到，所以需要暂存一下

// destruct to reduce minify size

// detached elements. Though elements with width & height properties less

// detaching a document, to split the history in two

// detect overlapping and join boxes

// detected are enabled based on userAgent etc sniffing.

// didn't increment anything

// difference in months

// different (in number of selected ranges, emptiness, or time).

// different delay, the interval will be canceled after scheduled callback

// different options opens up some testing and extensibility scenarios

// different reference viewports and invalidate our calculations.

// direction. European and Arabic numbers act as if they were R in

// disabled: https://github.com/ant-design/ant-design/issues/16478

// display-related state.

// dispose of the old one before overwriting

// distribute, sublicense, and/or sell copies of the Software, and to permit

// do extended autolink path validation

// do is to check its .name property.

// do not inherit user-select (it may be `none`)

// do nothing

// do superfluous work when aligning, so optimize for aligning.

// do the trick

// document element's border to zero -- thus, we cannot rely on the

// document).

// document, and descending through last children down to the last open

// document. From and to are in pre-change coordinates. Lendiff is

// document. If the change touches the same lines as the event, the

// document. Line objects hold arrays (markedSpans) containing

// document. These functions cut an array of spans at a given

// document.documentElement, so check for that too.

// does not exist fail at the rule level and don't

// doesn't cross line boundaries), "word" (across next word), or

// doesn't include paddings and borders to computed CSS dimensions.

// dom

// don't allow drop inside its children

// don't have to remove ourselves from any parent subscriptions.

// don't hoist over string (html) components

// don't natively support it.

// don't parse if it's not a known token

// don't run into trouble passing this.options around.

// don't set trackStyle hence don't break animation

// don't support this type of collections.

// dont add already expired items

// down the rejection path.

// down to pre-release. premajor and prepatch work the same way.

// drag 完成后，有可能 draggingShape 已经移动到了当前位置，所以不能直接取当前图形

// drag 完成后，需要做一些清理工作

// dragover 不等同于 mouseover，而等同于 mousemove

// draw line width points

// drawTicks 包括 drawLabels 和 drawTickLines

// drop any prereleases that might already exist, since they are not

// drop on expanded node

// dropPosition === 0

// dropTargetKey is the key of abstract-drop-node

// due to the implicit 2-pixel inset border.  In IE6/7 quirks mode and

// duration 为 0 时的一个回调；

// during the loading of an audio/video

// each label will hide the next one because the next one always has lower rank.

// edge has bug on `removeAttribute` #14466

// editor width

// editor, mostly used for keybindings.

// eevent.button === 0 表示鼠标左键事件，此处加上判断主要是为了避免右键鼠标会触发 mouseup 和 click 事件

// effective test for hidden elements. E.g. even jQuery's ':visible' filter

// el maybe null for canvas

// el maybe null for group

// elem.offsetWidth === undefined

// element is kept around.

// element 实例同 label 进行绑定

// element.offsetParent does the right thing in ie7 and below. Return parent with layout!

// elements

// else container 是 DOM

// em & strong

// emit removeListener for all listeners on all events

// emitted earlier and they will work there

// empty

// encapsulates the subscription logic for connecting a component to the redux store, as

// end API

// end Get 方法

// end for proxy events

// end 计算属性

// end-of-month calculations work correct when the start month has more

// ending angle bracket cannot be escaped

// enqueue has not been called before, then it is important to

// ensure `getContainer` will be called only once

// ensure content type is set

// ensure latest selected state is reused so that a custom equality function can result in identical references

// ensure that every cell-delimiting pipe has a space

// enter or exist full screen

// entirely within the change, reconnects spans belonging to the

// equal the number of selections)

// error-prone). Instead, display updates are batched and then all

// es default export should use const instead of let

// escape

// escape the promise trap, throw unhandled errors

// eslint-disable-line

// eslint-disable-line new-cap

// eslint-disable-line no-new-wrappers

// eslint-disable-line no-prototype-builtins

// eslint-disable-line no-script-url

// eslint-disable-line no-undef

// eslint-disable-line no-unused-vars

// eslint-disable-next-line

// eslint-disable-next-line @typescript-eslint/naming-convention

// eslint-disable-next-line @typescript-eslint/no-explicit-any

// eslint-disable-next-line @typescript-eslint/no-unused-vars

// eslint-disable-next-line @typescript-eslint/no-use-before-define

// eslint-disable-next-line array-callback-return

// eslint-disable-next-line consistent-return

// eslint-disable-next-line es/no-array-from -- required for testing

// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing

// eslint-disable-next-line es/no-array-isarray -- safe

// eslint-disable-next-line es/no-function-prototype-bind -- safe

// eslint-disable-next-line es/no-global-this -- safe

// eslint-disable-next-line es/no-math-trunc -- safe

// eslint-disable-next-line es/no-object-create -- safe

// eslint-disable-next-line es/no-object-defineproperties -- safe

// eslint-disable-next-line es/no-object-defineproperty -- required for testing

// eslint-disable-next-line es/no-object-defineproperty -- safe

// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe

// eslint-disable-next-line es/no-object-getownpropertynames -- safe

// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing

// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe

// eslint-disable-next-line es/no-object-getprototypeof -- required for testing

// eslint-disable-next-line es/no-object-getprototypeof -- safe

// eslint-disable-next-line es/no-object-hasown -- safe

// eslint-disable-next-line es/no-object-keys -- safe

// eslint-disable-next-line es/no-object-setprototypeof -- safe

// eslint-disable-next-line import/no-mutable-exports

// eslint-disable-next-line import/prefer-default-export

// eslint-disable-next-line jsx-a11y/label-has-associated-control

// eslint-disable-next-line max-depth

// eslint-disable-next-line max-params

// eslint-disable-next-line no-console

// eslint-disable-next-line no-constant-condition

// eslint-disable-next-line no-constructor-return

// eslint-disable-next-line no-extend-native -- required

// eslint-disable-next-line no-new-func -- fallback

// eslint-disable-next-line no-param-reassign

// eslint-disable-next-line no-plusplus

// eslint-disable-next-line no-prototype-builtins

// eslint-disable-next-line no-prototype-builtins -- safe

// eslint-disable-next-line no-restricted-globals

// eslint-disable-next-line no-restricted-globals -- safe

// eslint-disable-next-line no-restricted-syntax

// eslint-disable-next-line no-return-assign

// eslint-disable-next-line no-self-compare

// eslint-disable-next-line no-self-compare -- NaN check

// eslint-disable-next-line no-throw-literal

// eslint-disable-next-line no-undef

// eslint-disable-next-line no-unused-vars

// eslint-disable-next-line prefer-destructuring

// eslint-disable-next-line prefer-rest-params

// eslint-disable-next-line react-hooks/exhaustive-deps

// eslint-disable-next-line react-hooks/rules-of-hooks

// eslint-disable-next-line react/jsx-key

// eslint-disable-next-line react/no-array-index-key

// eslint-disable-next-line react/no-did-update-set-state

// eslint-disable-next-line react/no-unused-state

// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing

// eslint-disable-next-line unicorn/prefer-default-parameters

// eslint-disable-next-line unicorn/relative-url-style -- required for testing

// estimated pixels/delta value, we just handle horizontal

// even though we used default param, we need to merge the defaults

// event

// event param is used before. Keep compatible ts define here.

// event to done and clears undo. Undoing moves events from done

// event, and everything 'behind' it, is discarded. If the change is

// event.preventDefault();

// event.stopPropagation();

// events that are in the way.

// every

// evt 为空全部清除

// evt 存在，callback 为空，清除事件所有方法

// evt 存在，callback 存在，清除匹配的

// evt.preventDefault();

// example, can cause multiple logical lines to appear on the same

// examples of what that means.

// exception, let the outer generator proceed normally. If

// exclude left right for relativity

// execute code before the first await. Since we implement simple

// execution continues to here before the RefCountOperator has a chance to

// execution once rather than once for the test and for the exec again below

// execution.

// executor callback, and why async functions synchronously

// exhaust the scheduler queue

// exist, destroy

// exist, update

// existed in the history (so that deleting around a span and then

// exists in the prototype.

// expand the filter region to fill in shadows

// expanded state, flat record

// explicit embedding into account, we can build up the order on

// explicitly match decimal, hex, and named HTML entities

// export additional methods

// export default responseImmutable(FixedHolder);

// export function

// export function getPointAtSegLength(p1x: number, p1y: number, c1x: number, c1y: number, c2x: number, c2y: number, p2x: number, p2y: number, t: number) {

// export function midPoint(a: number[], b: number[], t: number) {

// export native or passed

// export proto methods to core.%CONSTRUCTOR%.methods.%NAME%

// export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%

// export this for test usage

// export this package's api

// export { subscribeOn } from './operators/subscribeOn';

// expose the module cache

// expose the modules object (__webpack_modules__)

// extension.

// extensions

// extensions.

// f

// fact that it'll be scrolled into view on input from scrolling

// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window

// fallback for non-array-like ES3 and non-enumerable old V8 strings

// false -> Array#indexOf

// false -> String#codePointAt

// false for lines that are fully left-to-right, and an array of

// false.

// feature test for Symbol support

// feature-detection

// features are natively supported.

// fences

// fences not supported

// fight against TypeScript here so Subject can have a different static create signature

// fill: 'red',

// filling grid

// filling x edges

// filling y edges

// filter

// filter data

// filter them by `disabled` property

// filterReject

// final state of an element.

// find

// find a line with a stateAfter, so that it can start with a

// find closing parenthesis

// findDOMNode as a final resort

// findIndex

// finished jumping to a new time

// firefox chrome documentElement.scrollHeight< body.scrollHeight

// firefox-need-it

// first approximation until the line becomes visible (and is thus

// first element is an array of moment objects.

// first half of first node in first level

// first half, set abstract drop node to previous node

// first or last character are a space, eol, or tick, then pad with spaces.

// first-week day -- which january is always in the first week (4 for iso, 1 for other)

// fix #119 : https://github.com/kissyteam/kissy/issues/119

// fix #27612 将value转为数组进行截取，解决 '😂'.length === 2 等emoji表情导致的截取乱码的问题

// fix Array#{values, @@iterator}.name in V8 / FF

// fix Array.prototype.{ values, @@iterator }.name in V8 / FF

// fix for some old engines

// fix https://github.com/ant-design/ant-design/issues/15324

// fix in strict mode https://github.com/ant-design/ant-motion/issues/323;

// fix native

// fix ssr render

// fix status code when it is 0 (0 status is undocumented).

// fix tail color

// fix the issue:

// fix: delete drawer in child and re-render, no push started.

// fix: 原始数据中可能会包含 'xxx5%xxx' 这样的数据，需要判断下 https://github.com/antvis/f2/issues/590

// fix: 如果说开发者的 label content 是一个 group，此处的偏移无法对 整个 content group 生效；场景类似 饼图 spider label 是一个含 2 个 textShape 的 gorup

// fix: 需要兼容，否则调用方直接取值会报错

// fixArc adds also the right amount of A:s to pcoms1

// fixed https://github.com/antvis/G2Plot/issues/1243

// fixed, not elements with overflow set to auto or scroll.

// fixme 干啥要删掉

// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods

// flag is accidentally set to `true`, which in a validation scenario

// flatten

// flex container should be 1px high from the row-gap

// focus an element

// focus root when switching fullscreen mode to avoid confusion #276

// focus will trigger click

// focused, and receives input.

// following conditions:

// for ISO strings we do not use the normal bubbling rules:

// for a given character.

// for bound mouse clicks.

// for data views in Edge < 14, and promises in Node.js.

// for internally calculated Rect objects. For the purposes of

// for lint

// for measurement, while not in view.

// for more details.

// for more information of where this math came from visit:

// for react-refresh

// for stop

// for test

// for the Map collection as it has all required methods and because WeakMap

// for the widgets at this line.

// for these fields.

// force CORS if requested

// force relayout

// force render expand icon for measure usage or it will cause dead loop

// force scrolling by one if centerMode is on

// force showing one slide and scrolling by one if the fade mode is on

// forced

// forces those lines into the viewport (if possible).

// forcing another re-render, which we don't want.

// formData.append('list[]', 11);

// format

// format date using native date object

// format of showTime should use default when format is custom format function

// forms a construct, a non-lazy line can’t “unmake” it.

// found another Left Delim

// found, then change the type of the European number to L.

// fractional heights.

// from Call

// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html

// from milliseconds

// from the actual represented time. That is why we call updateOffset

// function isOutLimit(isVertical: boolean, label: IElement, limitLength: number) {

// function useRequest<TData, TParams extends any[], TFormated, TTFormated extends TFormated = any>(

// function useRequest<TData, TParams extends any[]>(

// function.sent implementation.

// garbage collected.

// gc

// generally horribly unpredictable, this code starts by measuring

// generate the same color each time...

// generated by route

// geometry 可见同时未关闭 tooltip

// geometry 更新之后，对应的 Coordinate 也会更新，为了获取到最新鲜的 Coordinate，故使用方法获取

// geometry 有可能会有多个 item，因为用户可以设置 geometry.tooltip('x*y*z')

// geometry 的 paint 阶段

// geometry 类型有: edge,heatmap,interval,line,path,point,polygon,schema,voilin等；理论上，interval 下，可以用 linear scale 作为分组字段

// get

// get all video properties

// get candle shape's key points

// get child

// get data from cache when init

// get drawer push width or height

// get facet use level

// get fist level except root node

// get gradient color from opacity value

// get initialized state

// get media data, but data is not available

// get playback rate

// get redux state

// get tCache from cache

// get target if in shadow dom

// get the percent width of a time compared to the total end

// get the type of sor.

// get totalLength from cache

// get width of an element

// get('maxWidth')

// getClientBoundingRect we have already forced a reflow, so it is not

// getDefaultExport function for compatibility with non-harmony modules

// getRandomValues needs to be invoked in a context where "this" is a Crypto

// getter for the property which is being replaced. This causes infinite

// getting tag from 19.1.3.6 Object.prototype.toString()

// getting tag from ES6+ `Object.prototype.toString`

// given an object and a list of keys, return new object with given keys

// given line is part of (usually that is the line itself).

// given line number is part of.

// given line.

// given specifications/props for a slide, fetch all the classes that need to be applied to the slide

// gives the previous root Epic a last chance

// gives wrong results for elements with width & height less than 0.5.

// global

// go ahead and set it now.

// go deeper

// grey color don't change saturation

// grid

// grid 动画以 axis 为准

// grid，极坐标下的 x 轴网格线沿着半径方向绘制

// group 上的矩阵和属性也会应用到上下文上

// group.set('visible', visible) 不会触发自动刷新

// guarantee the interval callback will be invoked more precisely to the

// hack, 兼容 /examples/bar/basic/demo/radial-line.ts 动画

// handle era

// handle invalid times

// handle meridiem

// handle milliseconds separately because of floating point math errors (issue #1867)

// handle that can be used to clear or find a marked position in the

// handle user's style settings

// handled in onMouseDown for these browsers.

// handler for each editor will cause the editors to never be

// handlers for the corresponding event.

// handles responsive breakpoints

// handling surrogate pairs appropriately

// handling this'.

// happen before the gutter has been realigned, causing it to

// happen, and treat as a click if it didn't.

// happened in the meantime (clearTimeout isn't reliable -- at

// happens amids the pending invocation.

// has a stable shape and so hopefully should be cheap to allocate.

// has recursively rescheduled itself.

// hasSeed! so don't use `seed !== undefined` checks!

// hash of items by key

// have a good chance at having a non-empty extension.

// have been (and was previously) designed to take a closure to be

// have been already added.

// have been already removed.

// have to be initialized before the editor can start at all.

// have to do it manually.

// having any unbalanced bracket before it, we can exit.

// having the given height.

// header

// header child tokens

// heading

// height 为主

// height, and ensure (see op.scrollToPos) properties.

// height.

// help recognize paste/cut edits in input.poll

// helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize

// here use setState callback to hack，but not elegant

// hidden or updated, if so re-focus it.

// hide crosshairs

// hide it after 0.5s

// hide the tooltipMarkers

// high.u.bias

// highlighting info (the styles array).

// highlighting overlays, as added by addOverlay

// history, and propagating it to all linked documents.

// hitSide=true property if it reached the end of the document.

// hoist expand logic here

// hooks is actually the exported moment object

// horizontal line, eg. ['C', 100, 100, 100, 100, 200, 200]

// horizontal scrolling.

// hour

// hours to day

// hover highlight by x，允许取消

// hover highlight by y，允许取消

// hover highlight，允许取消

// how frequently we check for clock skew

// how we interpret now (local, utc, fixed offset). So create

// hr

// html

// html 类型不使用 G container

// html 组件需要指定 parent

// html.removeChild(iframe);

// http://artsy.github.io/blog/2012/10/18/the-perils-of-ios-user-agent-sniffing/

// http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist

// http://emailregex.com/

// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291

// http://fb.me/prop-types-in-prod

// http://msdn.microsoft.com/en-us/library/ms535231.aspx

// http://projecteuclid.org/euclid.aoms/1177692644;

// http://schepers.cc/getting-to-the-point

// http://stackoverflow.com/q/21177489/3040605

// http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef

// http://www.w3.org/TR/AERT#color-contrast

// http://www.w3.org/TR/CSS21/grammar.html

// http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes

// http://yiminghe.iteye.com/blog/1124720

// https://bugs.chromium.org/p/v8/issues/detail?id=3056

// https://bugs.chromium.org/p/v8/issues/detail?id=3334

// https://bugs.chromium.org/p/v8/issues/detail?id=3443

// https://bugs.chromium.org/p/v8/issues/detail?id=4118

// https://codesandbox.io/s/eloquent-mclean-ss93m?file=/src/App.js

// https://d3js.org/d3-ease/ v1.0.7 Copyright 2020 Mike Bostock

// https://d3js.org/d3-timer/ v1.0.10 Copyright 2019 Mike Bostock

// https://developer.mozilla.org/en-US/docs/Web/API/Element

// https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons

// https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest

// https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Errors/Invalid_array_length

// https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday

// https://github.com/alibaba/hooks/issues/1910

// https://github.com/alibaba/hooks/issues/728

// https://github.com/alibaba/hooks/issues/800

// https://github.com/alibaba/hooks/issues/839

// https://github.com/ant-design/ant-design/issues/12464

// https://github.com/ant-design/ant-design/issues/12567

// https://github.com/ant-design/ant-design/issues/15173

// https://github.com/ant-design/ant-design/issues/16376

// https://github.com/ant-design/ant-design/issues/16426

// https://github.com/ant-design/ant-design/issues/17043

// https://github.com/ant-design/ant-design/issues/17291

// https://github.com/ant-design/ant-design/issues/19332

// https://github.com/ant-design/ant-design/issues/19340

// https://github.com/ant-design/ant-design/issues/19729

// https://github.com/ant-design/ant-design/issues/19948

// https://github.com/ant-design/ant-design/issues/20479

// https://github.com/ant-design/ant-design/issues/20541

// https://github.com/ant-design/ant-design/issues/21870

// https://github.com/ant-design/ant-design/issues/21879

// https://github.com/ant-design/ant-design/issues/22683

// https://github.com/ant-design/ant-design/issues/23358

// https://github.com/ant-design/ant-design/issues/23524

// https://github.com/ant-design/ant-design/issues/23894

// https://github.com/ant-design/ant-design/issues/24287

// https://github.com/ant-design/ant-design/issues/25010

// https://github.com/ant-design/ant-design/issues/25227

// https://github.com/ant-design/ant-design/issues/26622

// https://github.com/ant-design/ant-design/issues/27617

// https://github.com/ant-design/ant-design/issues/2767

// https://github.com/ant-design/ant-design/issues/29853

// https://github.com/ant-design/ant-design/issues/30207

// https://github.com/ant-design/ant-design/issues/31200

// https://github.com/ant-design/ant-design/issues/32544

// https://github.com/ant-design/ant-design/issues/35009

// https://github.com/ant-design/ant-design/issues/35051#issuecomment-1101340714

// https://github.com/ant-design/ant-design/issues/5804

// https://github.com/ant-design/ant-design/issues/6577

// https://github.com/ant-design/ant-design/issues/6717

// https://github.com/ant-design/ant-design/issues/7601

// https://github.com/ant-design/ant-design/issues/8196

// https://github.com/ant-design/ant-design/pull/20023#issuecomment-564389553

// https://github.com/ant-design/ant-design/pull/20705

// https://github.com/bahamas10/css-color-names/blob/master/css-color-names.json

// https://github.com/codemirror/CodeMirror/pull/5673

// https://github.com/davidmerfield/randomColor/

// https://github.com/erikras/lru-memoize

// https://github.com/facebook/react/issues/12397

// https://github.com/joshwnj/react-visibility-sensor/pull/114

// https://github.com/kissyteam/kissy/issues/190

// https://github.com/kissyteam/kissy/issues/61

// https://github.com/lodash/lodash/issues/4400#issuecomment-834800398

// https://github.com/mapbox/mapbox-gl-js/pull/5979/files#diff-fde7145050c47cc3a306856efd5f9c3016e86e859de9afbd02c879be5067e58f

// https://github.com/mathiasbynens/String.prototype.at

// https://github.com/moment/moment/issues/1423

// https://github.com/moment/moment/pull/1871

// https://github.com/openlayers/openlayers/issues/9291

// https://github.com/react-component/calendar/issues/250

// https://github.com/react-component/field-form/issues/313

// https://github.com/react-component/field-form/issues/316

// https://github.com/react-component/notification/commit/32299e6be396f94040bfa82517eea940db947ece

// https://github.com/react-component/notification/issues/129

// https://github.com/react-component/tooltip/issues/18

// https://github.com/react-component/tree-select/blob/fe33eb7c27830c9ac70cd1fdb1ebbe7bc679c16a/src/Select.jsx

// https://github.com/react-component/trigger/issues/41

// https://github.com/react-component/trigger/issues/50

// https://github.com/react-component/trigger/pull/13

// https://github.com/tc39/proposal-array-filtering

// https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027

// https://github.com/w3c/IntersectionObserver/issues/324

// https://github.com/w3c/IntersectionObserver/pull/205

// https://github.com/whatwg/url/pull/734

// https://github.com/zloirock/core-js/issues/475

// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028

// https://observablehq.com/@mbostock/lab-and-rgb

// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume

// https://rbuckton.github.io/reflect-metadata/

// https://rbuckton.github.io/reflect-metadata/#ordinarydefineownmetadata

// https://rbuckton.github.io/reflect-metadata/#ordinarygetmetadata

// https://rbuckton.github.io/reflect-metadata/#ordinarygetownmetadata

// https://rbuckton.github.io/reflect-metadata/#ordinaryhasmetadata

// https://rbuckton.github.io/reflect-metadata/#ordinaryhasownmetadata

// https://rbuckton.github.io/reflect-metadata/#ordinarymetadatakeys

// https://rbuckton.github.io/reflect-metadata/#ordinaryownmetadatakeys

// https://rbuckton.github.io/reflect-metadata/#reflect.metadata

// https://reactjs.org/blog/2022/03/29/react-v18.html#new-strict-mode-behaviors

// https://reactjs.org/docs/refs-and-the-dom.html#callback-refs

// https://stackoverflow.com/a/3485654/3040605

// https://stackoverflow.com/q/181348

// https://stackoverflow.com/questions/4310953/invalid-date-in-safari

// https://stackoverflow.com/questions/52532614/total-canvas-memory-use-exceeds-the-maximum-limit-safari-12

// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next

// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator

// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next

// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot

// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec

// https://tc39.es/ecma262/#sec-array.from

// https://tc39.es/ecma262/#sec-array.isarray

// https://tc39.es/ecma262/#sec-array.prototype-@@iterator

// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables

// https://tc39.es/ecma262/#sec-array.prototype.entries

// https://tc39.es/ecma262/#sec-array.prototype.every

// https://tc39.es/ecma262/#sec-array.prototype.filter

// https://tc39.es/ecma262/#sec-array.prototype.find

// https://tc39.es/ecma262/#sec-array.prototype.findIndex

// https://tc39.es/ecma262/#sec-array.prototype.foreach

// https://tc39.es/ecma262/#sec-array.prototype.includes

// https://tc39.es/ecma262/#sec-array.prototype.indexof

// https://tc39.es/ecma262/#sec-array.prototype.keys

// https://tc39.es/ecma262/#sec-array.prototype.map

// https://tc39.es/ecma262/#sec-array.prototype.some

// https://tc39.es/ecma262/#sec-array.prototype.values

// https://tc39.es/ecma262/#sec-arrayspeciescreate

// https://tc39.es/ecma262/#sec-createarrayiterator

// https://tc39.es/ecma262/#sec-createiterresultobject

// https://tc39.es/ecma262/#sec-createmappedargumentsobject

// https://tc39.es/ecma262/#sec-createunmappedargumentsobject

// https://tc39.es/ecma262/#sec-getmethod

// https://tc39.es/ecma262/#sec-hasownproperty

// https://tc39.es/ecma262/#sec-isarray

// https://tc39.es/ecma262/#sec-iscallable

// https://tc39.es/ecma262/#sec-isconstructor

// https://tc39.es/ecma262/#sec-lengthofarraylike

// https://tc39.es/ecma262/#sec-math.trunc

// https://tc39.es/ecma262/#sec-object.create

// https://tc39.es/ecma262/#sec-object.defineproperties

// https://tc39.es/ecma262/#sec-object.defineproperty

// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor

// https://tc39.es/ecma262/#sec-object.getownpropertynames

// https://tc39.es/ecma262/#sec-object.getprototypeof

// https://tc39.es/ecma262/#sec-object.keys

// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable

// https://tc39.es/ecma262/#sec-object.setprototypeof

// https://tc39.es/ecma262/#sec-ordinarytoprimitive

// https://tc39.es/ecma262/#sec-requireobjectcoercible

// https://tc39.es/ecma262/#sec-string.prototype-@@iterator

// https://tc39.es/ecma262/#sec-string.prototype.codepointat

// https://tc39.es/ecma262/#sec-tointegerorinfinity

// https://tc39.es/ecma262/#sec-tolength

// https://tc39.es/ecma262/#sec-toobject

// https://tc39.es/ecma262/#sec-toprimitive

// https://tc39.es/ecma262/#sec-topropertykey

// https://tc39.github.io/ecma262/#sec-ecmascript-data-types-and-values

// https://tc39.github.io/ecma262/#sec-ecmascript-language-types-null-type

// https://tc39.github.io/ecma262/#sec-ecmascript-language-types-symbol-type

// https://tc39.github.io/ecma262/#sec-ecmascript-language-types-undefined-type

// https://tc39.github.io/ecma262/#sec-getmethod

// https://tc39.github.io/ecma262/#sec-isarray

// https://tc39.github.io/ecma262/#sec-iscallable

// https://tc39.github.io/ecma262/#sec-isconstructor

// https://tc39.github.io/ecma262/#sec-ispropertykey

// https://tc39.github.io/ecma262/#sec-iteratorclose

// https://tc39.github.io/ecma262/#sec-iteratorstep

// https://tc39.github.io/ecma262/#sec-object-type

// https://tc39.github.io/ecma262/#sec-operations-on-iterator-objects

// https://tc39.github.io/ecma262/#sec-operations-on-objects

// https://tc39.github.io/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots

// https://tc39.github.io/ecma262/#sec-ordinarygetprototypeof

// https://tc39.github.io/ecma262/#sec-ordinarytoprimitive

// https://tc39.github.io/ecma262/#sec-testing-and-comparison-operations

// https://tc39.github.io/ecma262/#sec-toprimitive

// https://tc39.github.io/ecma262/#sec-topropertykey

// https://tc39.github.io/ecma262/#sec-tostring

// https://tc39.github.io/ecma262/#sec-type-conversion

// https://tc39.github.io/ecma262/2016/#sec-iteratorvalue

// https://tc39.github.io/ecma262/2016/#sec-toboolean

// https://tools.ietf.org/html/rfc3986#section-3

// https://url.spec.whatwg.org/#dom-urlsearchparams-append

// https://url.spec.whatwg.org/#dom-urlsearchparams-delete

// https://url.spec.whatwg.org/#dom-urlsearchparams-get

// https://url.spec.whatwg.org/#dom-urlsearchparams-getall

// https://url.spec.whatwg.org/#dom-urlsearchparams-has

// https://url.spec.whatwg.org/#dom-urlsearchparams-set

// https://url.spec.whatwg.org/#dom-urlsearchparams-sort

// https://url.spec.whatwg.org/#interface-urlsearchparams

// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior

// https://webkit.org/blog/9997/resizeobserver-in-webkit/

// https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS

// iOS exposes the clipboard API, but seems to discard content inserted into it

// identifiers.

// identity scale 直接返回

// ie standard mode : documentElement.scrollHeight> body.scrollHeight

// ie throw error

// ie 下应该减去窗口的边框吧，毕竟默认 absolute 都是相对窗口定位的

// ie 这个也不是完全可行

// ie6,7,8 standard mode

// ie7 html 即窗口边框改变不了。永远为 2

// if (!alignTick && tickCount > 0) {

// if (!bbox) {

// if (angle >= 0 && angle <= Math.PI) {

// if (bbox) {

// if (canvas.get('localRefresh')) {

// if (document.activeElement === textareaRef.current) {

// if (order < this.min - 0.5 || order > this.max + 0.5) {

// if (preShape) {

// if (this.currentShape) {

// if (this.props.onLazyLoad) {

// if a Content Security Policy forbids using Function, but in that case

// if a RegExp instance is passed, reset `lastIndex` in case its `global`

// if a high surrogate

// if a low surrogate

// if any unit's disabled status is different, the units should be re-evaluted

// if autoFit, use the container size, to avoid the graph render twice.

// if cache out, clear it

// if created multiple C:s, their original seg is saved

// if dont need delayed call, check on load ( before the first interval fires )

// if has cache, use cached params. ignore manual and ready.

// if it shows the `Off` menu, the first item is `Off`

// if last one is own, then all properties are own.

// if mapStateToProps is falsy, the Connect component doesn't subscribe to store state changes

// if mouse is on the bottom of top dom node or no the top of the bottom dom node

// if next scroll doesn't have enough children, just reach till the end of original slides instead of shifting slidesToScroll children

// if object isn't iterable or it's array with default iterator - use simple case

// if pollingWhenHidden = false && document is hidden, then stop polling and subscribe revisible

// if position is not set, use top as default

// if rule is required but the target object

// if slide needs to be precloned or postcloned

// if switcherIconDom is null, no render switcher span

// if the clear happens after their scheduled firing time).

// if the component has rendered to null, dont update visibility

// if the facet has children , make it's column index in the middle of it's children

// if the first and only other argument besides the resultSelector is an array

// if the legend option is not false, means legend should be created.

// if the only argument is an array, it was most likely called with

// if the target is not iterable or it's an array with the default iterator - use a simple case

// if the value is not of a supported type for range validation

// if there is NO subscription, then we're getting a nexted

// if there is a subscription, then we can surmise

// if there is any input that was not parsed add a penalty for that format

// if there's a single \n as a spacer, it's terminating the last line,

// if this._parent is null, then so is this._parents, and we

// if this._parents is null or index >= len,

// if we didn't find a month name, mark the date as invalid.

// if we didn't get a weekday name, mark the date as invalid

// if we ever do those wrong, this throw will surface the error in our tests.

// if we have a mix of positive and negative values, bubble down first

// if we have minimum top visibility set by props, lets check, if it meets the passed value

// ignore IDs

// ignore invalid text track kind

// ignore order from parent

// image 不计算 stroke

// image 使用 rect 的包围盒计算

// immediately so there is a chance that we might miss one if change

// implementation. Also, find the complete implementation of crypto on IE11.

// implemented as a meta-marker-object controlling multiple normal

// implemented in JavaScript on top of the browser's DOM.

// import '../../icon/style/';

// import '../../style/index';

// important to get this right, even though it requires care.

// improves mm performance by 29%.

// in Safari 8-9 which returns 'object' for typed array and other constructors.

// in Safari 9 which returns 'object' for typed arrays and other constructors.

// in all copies or substantial portions of the Software.

// in case elem is window

// in case of lazyLoad, whether or not we want to fetch the slide

// in case runtime.js accidentally runs in strict mode, in modern engines

// in case there are no cookies at all.

// in display.externalMeasured when possible.

// in display.lineDiv) with the view as we go.

// in effect). But this is safe with class component since it always point to same class instance.

// in every case, so we don't have to touch the arguments object. The

// in old Chrome, versions of V8 isn't V8 = Chrome / 10

// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`

// in order to accept dynamic 'breakpoint' property, we need to add 'breakpoint' into dependency array.

// in order to not perform a React state update on an unmounted component

// in strict mode. We're calling it only when node ref is not

// in the rtl chunk that is on the last line (that is, the same line

// in which case reading its value would be expensive.

// incase focusin and focusout

// include a given position (and optionally a second position).

// include scroll bars size which can be removed at this step as scroll

// include version

// includes scottish gaelic two word and hyphenated months

// inconsistent across browsers. This is used to ensure the

// incremement the seed. Otherwise we'd just

// index in s

// indicating that such a marker is present on that line. Multiple

// inexplicable appearance of private area unicode characters on

// information about line-wide styles that were set by the mode.

// information in the document tree.

// init

// init run

// init 完成后保证 min, max 包含 ticks 的范围

// initialize an actual mode object.

// injected easily by `bin/regenerator --include-runtime script.js`.

// inline-collapsed.md demo 依赖 span 来隐藏文字,有 icon 属性，则内部包裹一个 span

// inp may be undefined, so careful calling replace on it.

// input != null

// inside the options object as well in case they declare only some

// inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js

// instance in this way is faster than calling `Object.create(null)` directly.

// instance.  Otherwise, it will return the locale configuration

// instead of remove and mount). Same key was used before for both a) external

// instead of the ES6 spec version, we didn't implement @@toPrimitive case

// intentionally not getting media data

// interface.

// intermediate scroll updates.

// internal storage for locale config files

// interpolate non-matching numbers

// interruption rules of commonmark and the original markdown spec:

// interval > 1 时需要对 label 进行隐藏

// interval period, regardless of load.

// into the async generator function so it can be handled there.

// invalidates cached information and tries to re-estimate the

// invariants

// invocations of the iterator.

// invoked without arguments, but in all the cases we care about we

// is  a leaf without children

// is #FFF

// is a timeout pending?

// is an animation frame pending?

// is an array. In most libs I've looked at, it's an equality function or options object.

// is created synchronously, otherwise a store update may occur before the

// is downloading media data

// is false, it checks whether a gutter or scrollbar was clicked,

// is in the first content of a list item.

// is jumping to a new time

// is large (issue #3579)

// is needed on Webkit to be able to get line-level bounding

// is needed.

// is not necessary and the result might be misleading

// is re-rendered, the selectors are called again, and

// is reached (currentTime == duration)

// is that it gives us a chance to update the display before the

// is true, that means the coordinates lie outside the line's

// is why the Promise constructor synchronously invokes its

// is with selectLeft/Right

// isInview 的判定是一旦图形或者分组渲染就要计算是否在视图内，

// iso 8601 regex

// iso time formats and regexes

// it actually became visible (as line heights are accurately

// it as the trailing edge, or we've hit the `maxWait` limit.

// it could be that the last bidi part is not on the last visual line,

// it enabled, if it's hidden, we disable pointer events.

// it got selected.

// it modifies, so that `> 1.2.3` ==> `>1.2.3`

// it separately.

// it will be blocked by abstract dragover node check

// it works a little like useEffect

// it would pause the execution at this line.

// it's just for the key down event

// it's width should stretch out to fit content

// it).

// it, so set the completion value of the entire function to

// item, and the tail is the oldest.  the list contains the Hit

// item.

// item.selected

// items the list itself are spread out.

// iter aborts when callback returns a truthy value

// iter aborts when callback returns truthy value

// iterable DOM collections

// iterator prototype chain incorrectly implement this, causing the Generator

// its own.

// its parent links.

// itself (when the bar is still visible) or its filler child

// j

// javascript handler for  css media query

// jitter on OSX trackpads when deltaX is small and deltaY

// join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4

// js 极大值极小值问题，差值小于 1e-15 会导致计算出错

// js 超大值问题

// jump back x seconds

// jump forward x seconds

// jump to target if duration zero

// just useEffect instead to avoid the warning, since neither will run anyway.

// just work for Chrome iOS Safari and Android Browser

// k

// k line shape

// keep Z command account for lineJoin

// keep focus inside dialog

// keepLocalTime = true means only change the timezone, without

// kept for backwards compatability with v1

// keys multiple times.

// know one. These don't have to be accurate -- the result of them

// known problem: because setState is async,

// l

// label 在布局调整环节被删除了（doLayout）

// label 需要使用

// labelCfg priority: defaultCfg < cfg < callbackCfg

// labelInValue

// labelLine: true

// large => lg

// last paragraph

// later.

// leading or trailing whitespace is ignored per the gfm spec

// least on Chrome, the timeouts still happen even when cleared,

// left

// left (we don't store arrays for lines without spans).

// left center

// left of the character and compare it's vertical position to the

// leftDataSource should be ordered by dataSource

// legend

// legend hover，element active

// let refresh = true;

// let tangentAngle = -1 * Math.atan((ry * ry * point.x) / (rx * rx * point.y));

// letting go of the mouse button.

// levels (0, 1, 2) in an implementation that doesn't take

// lheading

// like .jpg, .png

// like full, but allows v1.2.3 and =1.2.3, which people do sometimes.

// like normalization and multi-stroke key bindings. It compiles a

// like textareas and iframes, change the state.

// limitLength 为 0 或者 null 时不生效

// line numbers to line objects, and to go from objects to numbers.

// line 的判空在调用 drawLine 之前，不在这里判定

// line's height.

// line.

// line. When lineWrapping is on, there might be more than one

// lineIsHidden depends on the presence of the spans, so needs a second pass

// lineView.changes. This updates the relevant part of the line's

// linear field, create continuous legend

// linear 度量平移

// lines are divided into visual lines. regLineChange (below)

// lines are not indented, and places where the mode returns Pass

// lines may point to the same marker when it spans across lines.

// lines, so it marked itself as done at the end of its first line, and

// link

// links back to the lines they currently touch.

// links.

// list

// list of items in order of use recency

// list of punctuation marks from CommonMark spec

// load a mode. (Preferred mechanism is the require/define calls.)

// loaded by a script tag in the presence of an AMD loader.

// loading 过程中不绘制

// local weekday -- counting starts from beginning of week

// locale key.

// location outside the try/catch block.

// locations where there is no enclosing try statement.

// logical lines, if those are connected by collapsed ranges.

// look for new block starts (e.g. `>` for a block quote).

// lruList is a yallist where the head is the youngest

// m (NSM): Non-Spacing Mark

// mag &&.. short circuits if mag == 0

// mag is the product of the magnitudes of a and b

// make reverse default on rtl direction

// make static versions for prototype methods

// make sure absolute element itself don't affect it's visible area

// make sure changes to properties don't modify parent config

// make sure the children can get the video property

// make sure we set the locale AFTER all child locales have been

// make the regex if we don't have it already

// makes sure that children is an array, even when there is only 1 child

// manual control and b) internal react 'key' prop , which is not that good.

// manually removed from it.

// map

// mark as not found to avoid repeating expensive file require call causing high CPU

// mark as random - RFC 4122 § 4.4

// marked ranges.

// marker continues beyond the start/end of the line. Markers have

// marker 使用 circle 的计算方案

// marker 需要左对齐，所以不能占用左侧的空间

// markers.

// mask 图形

// mask 过小时返回为 null，不能是空数组，否则同未框选到混淆

// match[2] should be 'T' or space

// matches a condition.

// matching against regexp is expensive, do it on demand

// matching was not complete.

// math

// maxKeys <= 0 means that we should not limit keys count

// maxWidth 限制加上

// maximum number of records exceeded

// means they didn't provide anything or if they literally provided `undefined`

// meant to be awaited.

// measure height of a textarea with a single row

// measured, the position of something may 'drift' during drawing).

// measurement cache for the given line number. (A line view might

// measurements in a row, can thus ensure that the set-up work is

// measuring on line wrapping boundaries.

// media query for each breakpoint

// median

// menu cannot be selectable in dropdown defaultly

// menu is closed (since the input reset would kill the

// merge default children

// merge the shortcuts from props

// merged when similar and close together in time.

// meta data for the audio/video

// method, or a missing .next mehtod, always terminate the

// method.

// methods defined on the Doc type are also injected into

// middle of some work, but don't want the handler to start calling

// middle of the label

// middle-click-paste. Or it might be a click on something we should

// might affect dimensions of observed elements.

// min, max, values, ranges

// minifier not to mangle the names of these two functions.

// minute

// minutes to hour

// mix 默认的配置和用户配置

// mock border-color by box-shadow for compatible with old usage:

// mode & 1: value is a module id, require it

// mode & 2: merge all properties of value into the ns

// mode & 4: return value when already ns object

// mode & 8|1: behave like require

// mode/overlays that it is based on (for easy invalidation).

// model is applied (except for IE).

// modifying the selection.

// moment.duration._locale = moment._locale = data;

// moments should either be an array of moment objects or an array, whose

// more letters, digits, or hyphens.

// mouse events don't trigger at disabled button in Chrome

// mouse 事件

// mousedown on the target should also close popup when action is contextMenu.

// mouseenter 和 mouseover 同时触发

// mouseleave 和 mouseenter 都是成对存在的

// mouseup won't trigger if mouse moved out of handle,

// move backward

// move keys if necessary

// move left

// move right

// moving back to front so that splice indices aren’t affected.

// must be immutable so they can be inspected later.

// must either set __proto__ on a subclass constructor to the superclass constructor,

// must use == for ie8

// n (AN):  Arabic Number

// naive Map shim

// naive Set shim

// naive WeakMap shim

// name 在原型上，说明可能是内置 API，存在 option 被覆盖的风险，不处理

// nameList[i] === undefined 说明是以 nameList 开头的

// named reference of `&notit;` will result in the string `¬it;`.

// nan 也会导致异常

// narrower for content

// native implementation is ~50x faster, use it when we can

// need judge to in case set fixed with in css on height auto element

// need render to avoid update

// need to be rejected explicitly and unsubscribe must be

// need to set `none` to avoid default value

// needs localization

// never changes.

// new Date(NaN).toJSON() === null

// new changesets for every character typed

// new normalized keymap, and then updates the old object to reflect

// new ones appear

// new superclass(),//实例化父类作为子类的prototype

// newline

// next index

// no NaN

// no arguments are passed in, it will simply return the current global

// no direction information

// no need for block level renderers

// no transformer => U and T should be the same

// no use promise.finally for compatibility

// node and clockseq need to be initialized to random values if they're not

// node, and is the document object itself (meaning it has

// nodes for lines that are no longer in view, and creating the ones

// non-whitespace after that line ending, because otherwise we’d get an

// non-word-non-whitespace chars). The visually param controls

// noop

// normal dragging things.

// normalize IE9 bug (http://bugs.jquery.com/ticket/1450)

// not accuracy, I think it should be finally removed

// not contains self

// not continued punctuation.

// not exist, create

// not including, the first %x3B (";") character.

// not interfere with, such as a scrollbar or widget.

// not listening for removeListener, no need to emit

// not necessary to add metadata

// not reset the textarea when typing, because that breaks IME).

// not the DOM drag over node

// not valid.

// note labelHeight 可以控制 label 的行高

// note: all values past the year are optional and will default to the lowest possible value.

// nothing interesting happens.

// nothing to do

// notify the parent when the value changes

// now (after some event like 'keypress' or 'input') and are

// null for different theme definition

// null means not found

// null out _subscriptions first so any child subscriptions that attempt

// null 或者 undefined 时，宽度为 0

// number (used to prevent looking up the same line twice).

// number + (possibly) stuff coming from _dayOfMonthOrdinalParse.

// number interpolators

// number when a is less, and a positive number otherwise.

// number.

// numberify any prerelease numeric ids

// numbers changes to all European numbers.

// numbers in a & b match

// numbers less than this is considered as 0

// obj with keys in a consistent order.

// obj.hasOwnProperty(prop) will break.

// object

// object ID

// object and shouldComponentUpdate will always return true.

// object construction must be done this way.

// object to not be returned from this call. This ensures that doesn't happen.

// object 形式的配置方式：包括 处理方法 type， 和可选参数配置 cfg

// object.

// objects as the entries.

// objects) in the order in which they occur visually.

// objects.

// objects. For full spec compliance, you may wish to configure your

// occur, which sounds like ASCII only, but they also support `www.點看.com`,

// of `markdownLineEndingOrSpace` (`[ \t\r\n]`).

// of a bidi jump depending on the visual position of the head.

// of code points as a group.

// of read-only spans in its range.

// of the current position. The resulting position will have a

// of the line, it is moved to the end of that space.

// of the polyfill.

// of the scroll event is removed from the scrollable element.

// of them changes content dimensions of the observed target. Sometimes

// offset always being 2 pixels.

// offsetWidth avoid affecting be transform scale

// offsets afterwards.

// omit 掉一些属性，比如 container 等

// on a bidi boundary.

// on for years in remark now.

// on our hidden textarea on reload

// on these below) will treat its first bound as inclusive,

// onFullTableResize will be trigger once when ResizeObserver is mounted

// onLoad should trigger before internal setState to avoid `loadData` trigger twice.

// onReveresComplete 和 onComplete 统一用 onComplete;

// onReveresStart 和 onStart 统一用 onStart;

// only accept <source />, <track />,

// only additional allocation required is the completion record, which

// only allow drop inside

// only allow non-integers for smallest unit

// only displays for shortcut so far

// only done once.

// only if player is active and player is ready

// only keep <source />, <track />, <MyComponent isVideoChild /> elements

// only walk once (as we need footnotes too).

// opacity 效果可以叠加，子元素的 opacity 需要与父元素 opacity 相乘

// operation (to be applied when the operation finishes).

// operation is active, when a timeout fires.

// operations.

// opted for using reduce here rather than Array#first with a regex.test call

// optimization and perf reasons. a tryCatcher is not necessary here.

// optimize for chinese input experience

// optimize for render

// option of false.

// option 中已经找不到，那么就是删除的

// optionLabelProp

// optional / simple context binding

// options object:

// or "page".

// or <html> element, update the intersection rect.

// or a finally block) gives us a place to store values thrown from

// or clipping off existing ones as needed.

// or closest to, the target character.

// or ensure each class has a valid `constructor` property on its prototype that

// or not, return the runtime object so that we can declare the variable

// or some else or nothing

// or something else or nothing

// or the action has been rescheduled before it's executed, clear the interval id

// order to produce the correct `offset` value.

// ordering. This finds the first part whose end is after the given

// ordinal:  'Mo'

// originElement.attrs = replaceAttrs; // 直接替换

// other

// other branch nodes below them. The top node is always a branch

// other code modifying setTimeout (like sinon.useFakeTimers())

// other lines onto it.

// other methods on the editor, which might be in an inconsistent

// other. This relies on the function fn to be transitive.

// otherwise inside Operator/Subscriber we won't know if `undefined`

// our fake cursor out of view. On webkit, when wrap=off, paste is

// out of date (or nonexistent).

// out of range, hidden

// outer generator.

// outside the actual mode definition.

// outside the allowed range. If the values don't match the value was invalid

// overflow, shift up

// overlapping

// overlaps (covers the start or end, but not both) of a new span.

// overlay for old version compatibility

// overridden or used as an attack vector.

// override

// oversized objects fall out of cache automatically.

// p = p === 'r' ? 'rotate' : p;

// p0 = [ux0, uy0, w0]

// p1 = [ux1, uy1, w1]

// p1a = p1p.p1p2/|p1p2| * (p1p 的单位向量)

// padded:   ['MM', 2]

// parent re-rendered without this component and we're about to unmount.

// parentNode maybe null for group

// parse child tokens inside headers and cells

// parse correctly.

// parse out just the options we care about so we always get a consistent

// parseFloat NaNs numeric-cast false positives (null|true|false|"")

// parsers more succinct.

// part of something.

// part of the document. A LineView may correspond to multiple

// part that only spans one line so that the binary search in

// parts belong where.

// pass null for config to unupdate, useful for tests

// passed by users.

// passed through node).

// passed through to selectorFactory

// path component.

// path 相关属性更改时，清理缓存

// path 路径图，无序，有可能存在相同 x 不同 y 的情况，需要通过 x y 来确定唯一 id

// path.push('Q', `${breakPoint.x}`, `${breakPoint.y}`, `${endPoint.x}`, `${endPoint.y}`);

// pause the video

// pauseType  is 'hovered'

// pc browser includes scrollbar in window.innerWidth

// pedantic allows starting angle bracket without ending angle bracket

// performance monitoring

// persons to whom the Software is furnished to do so, subject to the

// pick the locale from the array

// pie chart

// play the video

// playback position has changed

// player resize

// point to different useRef instance which will create multiple element

// points back to the constructor.

// points 中的 x/y 和 transpose 无关

// polar y axis, by angle

// polling intensively.

// position 之类的生成多个字段的属性

// possible when it is clear that nothing happened. hasSelection

// pow(2, 53) - 1 == 9007199254740991

// preminor will bump the version up to the next minor release, and immediately

// prepare shadow canvas context

// prepatch.

// preserve leap years using a full 400 year cycle, then reset

// presses in a sane way, this code checks for when that happens

// prettier-ignore

// prevent empty tags from appearing when you click the Enter button

// prevent flashing of content

// prevent global pollution for namespaces

// prevent inlineText consuming extensions by clipping 'src' to extension start

// prevent paragraph consuming extensions by clipping 'src' to extension start

// prevent unmounting after it's rendered

// prevent warning: setting state on unmounted component (server side rendering)

// prevents scrolling to the end of the page

// previous animation is not finished

// private WeakMap storage which may cause memory leaks in browsers that

// private cacheRange = null;

// private translateCategory(dim, scale, normalPoint) {

// private updateInner() {

// probably be avoided if Subscription's listeners logic is changed to not call listeners

// probably something that needs to be benchmarked though

// problems, please detail your unique predicament in a GitHub issue.

// process customContent

// prop

// properly measurable).

// properly serialize body

// properties then it's either IE, and thus we don't need to subtract

// property if it reached the end of the document.

// props have not changed. If false, the selector will always return a new

// proto

// prototype.

// provided element.

// providing a seed of `undefined` *should* be valid and trigger

// purpose of keymap fallthrough.

// push a cloned element of the desired slide

// push the handle

// pushing it to the end of the scheduler queue, and recycling the action.

// quality.

// quirks : documentElement.scrollHeight 最大等于可视窗口多一点？

// quirks mode

// r (AL):  Right-to-Left Arabic

// randomColor by David Merfield under the CC0 license

// range 的最大值

// range 的最小值

// ranges.

// rc-cascader should update ts define to fix this case

// rc-dropdown already can process the function of overlay, but we have check logic here.

// re-fire a series of drag-related events right after the drop (#1551)

// re-register node in componentDidUpdate if children diffs [#103]

// re-render

// reached the minimum or maximum available point, can't push anymore

// react 15，componentWillUnmount 时 Portal 返回 afterClose, visible.

// react bug?

// read from state to avoid loadData at same time

// real proto method for `library`

// reallocate them all on every rebase, but also avoid problems with

// reasonable approach: replace that eol with a space.

// record all form data

// record like context.tryEntries[i].completion. This interface could

// records.includes(record) 不生效，应该是数据的引用被改了

// rect coordinate, by direction

// rectangle into view. Returns an object with scrollTop and

// rectangles for it (in measureChar).

// recursion (flat tree structure)

// recursion and an "Out of stack space" error.

// reducer returns their initial state. This effectively populates

// ref: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button

// ref: https://github.com/ant-design/ant-design/issues/15795

// ref: https://github.com/ant-design/ant-design/issues/16742

// ref: https://github.com/ant-design/ant-design/issues/26372#issuecomment-679460266

// ref: https://github.com/ant-design/ant-design/issues/36559

// ref: https://github.com/ant-design/ant-design/issues/37179

// ref: https://github.com/ant-design/ant-design/issues/38818

// ref: https://github.com/ant-design/ant-design/pull/23456

// ref: https://github.com/antvis/G2/issues/3109

// ref: https://github.com/antvis/g/issues/210

// ref={ref as any}

// reference to decode was not a semicolon (`&semi;`), we can assume that the

// refers to the pre-change end).

// reflink, nolink

// refresh & ready change on the same time

// regeneratorRuntime in the outer scope, which allows this module to be

// regex template, placeholders will be replaced according to different paragraph

// regexLG.test(color)

// regexPR.test(color)

// regexRG.test(color)

// register build-in components

// registering a (non-DOM) handler on the editor for the event name,

// registering events on such objects more convenient.

// registering native DOM handlers.

// registers single-line changes.

// relative: https://github.com/antvis/g2/issues/1221

// relevant at this point.

// remove active state

// remove className

// remove keys if necessary

// remove padding, since height = content

// remove trailing #s

// removed

// removing box

// render drawer body dom

// render region

// render text

// rendered scroll bars nor it can be clipped.

// repeat 为 -1 只记录一次。不能跟 reverse 同时使用;

// replace service

// representation for dateAddRemove

// request its own.

// required for compatability with es6-shim

// reset

// reset target ref value

// reset the cache

// reset user styles for span element

// resize and scroll events or DOM mutations.

// resize the cache when the lengthCalculator changes.

// resize the cache when the max changes.

// restProps.expandIcon, Not mark as deps since this is a ReactNode

// resubscribe

// result in an ATX heading.

// result of computing the existing spans with the set of spans that

// result, either by returning a { value, done } result from the

// result.

// rethrow to report error

// retrive the data

// return (source: Observable<T>) => source.lift(new TimestampOperator(scheduler));

// return HitUtil.isHitShape(this, refX, refY);

// return [cp1.x, cp1.y, cp2.x, cp2.y, x2, y2];

// return a function that removes the new element out of elements (and create a new ref)

// return id ? id : option;

// return list of slides that need to be present

// return now

// return primitive with prefix

// return vec3.add(out, a, vec3.add(out, uv, uuv));

// return: boolean

// returned incorrectly when zoomed on IE10 and below.

// returning the number and optionally registering the line as

// returns a function that requires no arguments.

// returns locale data

// returns no of slides on the left of active slide

// returns no of slides on the right of active slide

// revert its position to the original value

// revert rotate

// revert to original value if pushing is impossible

// rgb 颜色转换成数组

// right

// right corner of the scrollbar box is the scrollbar box

// right or center will be put on the right side

// right), unit can be "codepoint", "char", "column" (like char, but

// right-click take effect on it.

// right-to-left text.

// rightDataSource should be ordered by targetKeys

// root but the previous entry for this target had an intersection,

// root 为 drawer-content 设定了 overflow, 判断为 root 的 parent 时结束滚动；

// rotateX

// rotateY

// rotateZ

// router 切换时可能会导至页面失去滚动条，所以需要时时获取。

// rows and slidesPerRow logic is handled here

// run all plugins hooks

// runs as long as the editor is focused.

// s (B):   Paragraph Separator

// safe

// same marker that appear on both sides of the change, and cuts off

// same text, or the end of the change if the change covers it.

// satisfies `pred`. Supports `from` being greater than `to`.

// save current path command

// scale

// scale.init 的时候清除缓存

// scale初始化

// scan index for next number in b

// scheduled callback. This allows us to implement single and repeat

// scheduler.schedule(function doWork(counter) {

// scheduling the next `setTimeout`, and so on. `setInterval` attempts to

// scroll (if it is large enough).

// scroll action is applied before the end of the operation, this

// scroll into view

// scrollLeft properties. When these are undefined, the

// scrollable area is big enough.

// scrolled into view (if we know enough to estimate it).

// scrolled out of view, this ensures that the cursor is visible.

// scrolling entirely here. It'll be slightly off from native, but

// scrolling. Turning off pointer events during the scroll seems

// second as exclusive, but we want to actually address the

// seconds to minute

// see https://codesandbox.io/s/kind-snow-9lidz

// see https://github.com/react-component/upload/issues/33

// see https://github.com/react-component/upload/issues/34

// see sorting in computeMonthsParse

// seek video by time

// seen text (can be empty), which is stored in prevInput (we must

// select-all detection hack)

// selected (unless it is huge, in which case a placeholder is

// selection in the meantime.

// selection into the 'done' array when it was significantly

// selection update.

// selections, and tries to estimate a character position even for

// self for left or right drag

// separators at the end of the string, stop now.

// sequences em should skip over [title](link), `code`, <html>

// serial `setTimeout` calls can be individually delayed, which delays

// serial `setTimeout` calls vs. a single `setInterval` call. An interval of

// set

// set default cursor style for canvas

// set headers

// set innerHTML

// set playback rate

// set position first, in-case top/left are set even on static elem

// set the scheduled flag to undefined so the next AnimationFrameAction will

// set the scheduled flag to undefined so the next AsapAction will schedule

// set up the events before open XHR

// set value to activeValue on every select

// set value to activeValue when select leaf option

// setState({ loading: false });

// setting context.delegate to null, and returning the ContinueSentinel.

// shape 的一些操作方法

// shape('a', ['dot', 'dash']), color('a', ['red', 'yellow'])

// shape({ values: [ 'funnel' ] })

// shared position objects being unsafely updated.

// shared: false 代表只显示当前拾取到的 shape 的数据，但是一个 view 会有多个 Geometry，所以有可能会拾取到多个 shape

// shift current slide to center of the frame

// shortest path

// shot to minimize update/measure roundtrips.

// should be recomputed.

// should calculate by self for other cases, like Safari in ios

// should move it to antd main repo?

// should not be render default indicator when indicator value is null

// should work with symbols and should have deterministic property order (V8 bug)

// shouldn't affect input elements if picker is active

// show enable 不计入正常的流程，其他情况则设置当前的 step

// show it

// show loading icon if upload progress listener is disabled

// show rest content as title on symbol

// shown.

// signal that waiting has ended

// signalLater looks whether there are any handlers, and schedules

// since if logic is on the bottom

// since it will update related data with other field with same name

// since parent field is already take in count

// since some scripts/fonts/browsers also treat other configurations

// since visual lines contain content order-consecutive chunks.

// single leaf node.

// situation, we can take this ordering to correspond to the visual

// size color 区别的配置

// size for the current document size. Returns true when an update

// size 的选中前景色，对于 color，则直接使用 color 标识

// size(3)

// skip if already destroyed

// skip single * in __abc*abc__

// skip the boolean and the target

// slider handlerStyle 手柄样式

// slider textStyle 字体标签样式

// small => sm

// smallest indentation, which tends to need the least context to

// so all subtitles will be turned off

// so check `userAgent` even if `.v8` exists, but 0

// so if for instance element is at least 200px in viewport, then show it.

// so move it there so that we don't get unecessary paragraph tags

// so that results are always delivered in the correct order. If

// so that the async generator function has the opportunity to do

// so that’s Unicode.

// so trigger focus will invoke handler's onEnd and another handler's onStart too early,

// so we can properly clone ourselves.

// so we have to make sure that C is also C in original path

// so we listen on document here.

// so we'll use event.code when available (Chrome 48+, FF 38+, Safari 10.1+)

// so we’re valid.

// so, return the marker for that span.

// solves curveArrays ending in Z

// some

// some Chrome versions have non-configurable methods on DOMTokenList

// some key combos in Mac (#2689).

// some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.

// some values

// something in the input textarea, we poll faster, to ensure that

// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere

// sort by percentage DESC

// sort by y ASC

// sort them by `order` property

// sort them in increasing order of their numerical value

// sorted by y, mutable

// source尾部补齐

// spacebar

// spans is larger (and thus includes the other). Falls back to

// spans partially within the change. Returns an array of span

// spans that aren't on the line.

// spec also contains listRef, trackRef

// spec also contains, trackRef and slideIndex

// specific stretches of text, and is used by the measuring code.

// specified which hour they want. So trying to maintain the same hour (in

// specified.  We do this lazily to minimize issues related to insufficient

// specify either the value prop, or the defaultValue prop, but not both.

// speed of video

// split out into 2 ifs for better coverage tracking

// split pedantic href and title

// stack (redo when undoing, and vice versa).

// standard case (slerp)

// start of selection drag, start of text drag, new cursor

// start or around the replaced test. Hint may be "start" or "around".

// start-of-first-week - start-of-year

// start.

// startIndex that needs to be present

// started by the argument, or undefined if there are no such lines.

// starting around 5000 chars.

// starting with * are always merged, those starting with + are

// starts after the coordinates. If we run across any whose box wrap

// state at the position that the state refers to.

// state in such a way that each change won't have to update the

// state on line 1 looked ahead 2 -- so saw 3

// state or simply not expect any other events to happen.

// static

// statics

// step 1 before creating the new block as a child of the last matched

// step 1: adjust items to spider

// step 1: 在虚拟 group 中创建 shapes

// step 1: 更新 shape 携带的信息

// step 2: reduce labels

// step 2: 使用虚拟 Group 重新绘制 shape，然后更新当前 shape

// step 2: 根据布局，调整 labels

// step 3.1: 绘制 labelLine

// step 3.2: 绘制 labelBackground

// step 3: antiCollision

// step 3: distribute position (x and y)

// step 3: 同步 shape 样式

// step 4: normalize y and adjust x

// step 4: 根据用户设置的偏移量调整 label

// step line

// step1. draw points with shadow

// step1: 移动至起点

// step1: 连接结束点

// step2. convert pixels

// step2: 绘制 curve line (起点 & 结合点与圆心的斜率不等时, 由于存在误差, 使用近似处理)

// step2: 连接拐点

// step3: 绘制圆弧 至 结束点

// step3: 连接至起点

// step4: applyTo labels and adjust labelLines

// step4: 连接结束点

// stop request

// store the rest of the parent Subscriptions.

// stored heights to match.

// stores highlight worker timeout

// stores maps added by addKeyMap

// strict mode using a global Function call. This could conceivably fail

// strict-limit 方式

// strictNullChecks oops.

// string

// string constants and placeholders

// string preceding current number in b, if any

// string type is from legacy `transformFile`.

// string, return a mode config object.

// strings.

// stroke and fill

// style dependencies

// style strings), which is used to highlight the tokens on the

// subject to the following conditions:

// subscribe same cachekey update, trigger update

// subscribe state change

// subscribe to operation state change

// subscribe to player state change

// subscription callback always has the selector from the latest render commit

// subscription is created and an inconsistent state may be observed

// substring from most specific to least, but move to the next array item if it's a more specific variant than the current root

// subtokenizer.

// subtraction forces infinities to NaN

// supply the RefCountSubscriber with the shared connection Subscription.

// support for the old title property

// support key-value array data

// supports only 2.0-style add(1, 's') or add(duration)

// supports only 2.0-style subtract(1, 's') or subtract(duration)

// sure line objects move the way they are supposed to.

// surrounding strong text if the text on both sides has the same

// svg > component > children

// svg 中点小于 3 个时，不显示，也无法被拾取

// svg元素

// switches to the new root Epic, synchronously terminating

// sync activeValue with value when panel open

// system entropy.  See #189

// t (S):   Segment Separator

// t * t * t 的性能大概是 Math.pow(t, 3) 的三倍

// t: current time, b: beginning value, _c: final value, d: total duration

// table (gfm)

// tables.

// tag

// target

// target < min

// target > max

// terms of their influence on neutrals. Start-of-level-run (sor)

// test 1 + 2 < 3 should cover this

// test the regex

// test 的 bug, 有动画过场，删除 dom

// text

// text was made out of.

// text-lines will not calculated properly as the shadow will technically be

// textShape 发生过调整

// textarea (making it as unobtrusive as possible) to let the

// textareaRef.current.value = '';

// textareaRef.current.value = tmpValue;

// than 0.5 will be discarded as well.

// than wanted:

// that are not there yet, and updating the ones that are out of

// that causes it, under certain circumstances, to provide the same value for

// that child, same as if it was wrapped in React.memo() or returned false from shouldComponentUpdate.

// that don't correspond to the ordering in our `order` array at

// that have been explicitly cleared should not be restored.

// that have been unsubscribed in the  middle of the notification loop.

// that just executes the given callback immediately.

// that remains on open element stack

// that start, move one part back.

// that the effect of intermediate scroll commands is not ignored.

// that the minimum number of relayouts are required.

// that this (partially) implements.

// that this document is part of.

// that to be increased. Set to zero for unlimited.

// that user code is usually dealing with.

// that want to inspect the mode state (say, for completion).

// that, when pasting, we know what kind of selections the copied

// the .value of the Promise<{value,done}> result for the

// the ConnectableObservable's shared connection Subscription if the

// the Date.UTC function remaps years 0-99 to 1900-1999

// the RefCountSubscriber's downstream Observers synchronously unsubscribe,

// the Software without restriction, including without limitation the rights to

// the Software, and to permit persons to whom the Software is furnished to do so,

// the Video component

// the Yallist.Node object.

// the `source` property as a convenience for inlining compiled templates.

// the abstract-drag-over-node

// the abstract-drop-node is the real drop node when drag and drop

// the amount of lines added or subtracted by the change. This is

// the amount of lines crosses a boundary that makes its width change)

// the array should mirror the parameters below

// the cfg order should be ensure

// the change appears on the screen quickly.

// the client width of 315px and for the width of 314.7px it may give

// the combined list

// the coordinates, and the coordinates aren't on the same line as

// the coordinates, store that.

// the current bidi part

// the current frame of the audio/video

// the current, or the origins don't allow matching. Origins

// the date constructor remaps years 0-99 to 1900-1999

// the document element's clientLeft/clientTop.  Since we already called

// the document rect, so no need to compute a new intersection.

// the final result produced by the iterator.

// the fly, without following the level-based algorithm.

// the given line.

// the global "global" var for now.

// the handle was pushed enough to create the needed `amount` gap

// the html5 video

// the initial state tree.

// the item was created without expiration in a non aged cache

// the line map. Takes care to render special characters separately.

// the marker configure order should be ensure

// the media resource is first known or changed

// the method takes exactly one argument, since that happens to be true

// the middle of the notification loop, where `subscription` will then be null. This can

// the new cursor position should be scrolled into view after

// the new state tree with any relevant data from the old one.

// the next character, and the next character is definitly being escaped,

// the next handling is asynchronous. Any errors thrown

// the next index in the string, or towards the character to the right

// the next value.

// the only allowed military tz is Z

// the only reliable means to get the global object is

// the outer generator.

// the panel should still be opened

// the pending selection in the history, and pushes the old pending

// the previous one

// the proper solution is to fix the accidental strict mode problem. If

// the reverse of daysToMonths

// the right of the character position, for example). When outside

// the same as above

// the same procedures is done to p2

// the scroll effect that the first few mouse wheel events have,

// the second being non-inclusive).

// the selection changes. A selection is one or more non-overlapping

// the selector is a regular expression.

// the textbox

// the the current scroll position). viewport may contain top,

// the try catch block below is left specifically for

// the validation rule rule should use the

// the version string are capturing groups.  The build metadata is not a

// the width of the progress bar

// them out.

// them to be executed when the last operation ends, or, if no

// them, which is needed for uniquely determining an outer marker

// theme 原因同上

// then _parent is set to null, and the loop exits

// then convert into [0, 1].

// then don’t match.

// then let that catch block handle the exception normally.

// then skip this escape.

// then subscribe to the selector result.

// then the content construct parses `d`.

// there is no such time in the given timezone.

// therefore not reporting its length accurately..

// these are actually numbers

// they are entirely covered by collapsed, non-widget span.

// they are in tables.

// things simple and return the next function itself.

// this adds a zero-width space so that we can later check whether

// this and fellow methods are wrapped in setTimeout

// this code.

// this component dose not render anything

// this function wraps mapToProps in a proxy function which does several things:

// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper

// this is false.

// this is not used

// this is primarily because using the reduce we only perform the regex

// this isn't actually relevant for versions, but keep it so that we

// this issue, we round to 1.0 when the ratio is close to 1.0.

// this may result in notifications being blocked for the rest of observers.

// this rule.

// this software and associated documentation files (the "Software"), to deal in

// this.

// this._afterDraw();

// this._events to be assigned to a new object

// this.clear(); // 不全部清理，会导致闪烁

// this.regionPath = null;

// this.set('cacheCanvasBBox', this.getCanvasBBox());

// this.set('imgSrc', img);

// this.set('isUpdating', false);

// this.themeColors = ThemeManage.colors

// this.translateCategory(dim, scale, normalPoint);

// this.updateInner();

// this.zoomCategory(dim, scale, normalPoint);

// those are *weird*.

// those cases and it's not possible to perform a precise and performance

// those too.

// three, it iterates over the range given by the first two (with

// thresholds, add a new entry.

// threw an error.

// throttle runAsync should be promise

// through.

// throw error in case of non string input

// throw the exception.

// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346

// tick 关键点顺序

// tickLine 不同 tick 对齐时需要调整 point

// time interval

// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'

// time 类型不做调整

// timeout, responseType and withCredentials can be set once the XHR is open

// timezone chunker

// title 和 items 需要清空, 否则 tooltip 内容会出现置空的情况

// to React.

// to avoid the issue.

// to create a new function object. We can even get away with assuming

// to determine what the child props should be

// to determine what the child props should be.

// to do some clean up

// to ensure that's the one we clone from next time.

// to explicitly cancel the selection rather than the user

// to have this flag this subscriber as `isStopped`. We can mimic the

// to identify iPhones, we need to exclude iPads.

// to indexed object, toObject with fallback for non-array-like ES3 strings

// to make sure initialize setState has happened before

// to make sure the children can get video property

// to next slide. That only goes away by click somewhere outside

// to remain open.

// to remove themselves from this subscription will noop

// to the current frame's queue

// to the found position (so xRel > 0 means the coordinates are to

// to the last character on the line.

// to the mapToProps function being wrapped. It is also used by makePurePropsSelector to determine

// to the native rAF function

// to undone, redoing moves them in the other direction.

// toData;

// toObject with fallback for non-array-like ES3 strings

// todo 是否应该取 _origin？因为 y 可能取到的值不正确，比如先 symmetric，再 stack！

// todo 添加 labelrank

// todo 这个到底目的是什么？

// todo 重写

// toggle play

// token:    'M'

// tokens.

// too expensive just to query them all.

// tooltip contianer 可捕获事件

// tooltip dom 样式

// tooltip 渲染时，渲染 title，items 和 corosshairs

// tooltip 相关 dom 的 css 类名

// tooltip 限制的区域

// top

// top-level paragraph

// totalMatrix 没有发生变化时，这里仅考虑两者都为 null 时

// to} object by default. Side can be passed to get a specific side

// tpmt is two power minus ten times t scaled to [0,1]

// trailing edge, the system time has gone backwards and we're treating

// trailing spaces at the end of a line when rendering text (issue #1362).

// transform 在 safari 下会留着单位，chrome 下会全部转换成 px;

// transformed to spaces when going from markdown to HTML anyway, we can swap

// treats it as part of a domain (yes, it says a valid domain must come

// trendCfg 因为有数据数组，所以使用浅替换

// trigger by element

// trigger callback function

// triggerChange will also update selected values

// triggerChangeOld(selectedValue);

// true  -> Array#includes

// true  -> String#at

// true 形式的配置：使用 overlap 默认的的处理方法进行处理

// truncate time

// try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each

// tslint:disable-line

// tslint:disable-next-line

// tslint:disable-next-line: forin

// tslint:disable-next-line:max-line-length

// tslint:disable-next-line:member-ordering

// tslint:disable-next-line:no-any latest TS seems to think xhr is "never" here.

// two given grapheme breaking classes

// two numbers of the same type changes to that type.

// two.

// type

// type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined

// type bitmap

// type property to also test for a particular type

// type-coverage:ignore-next-line

// typeof any so that it we don't have to cast when comparing a result to the error object

// u.v/|u||v|，计算夹角的余弦值

// un-register field callback

// undefined if nothing remains).

// undefined otherwise).

// undoing

// undoing brings back the span).

// unecessary split, and adds extra points to the bezier curve. To alleviate

// uneditable block element will put the cursor in that element,

// unified ._invoke helper method.

// unique

// unstandardized between browsers and even browser versions, and

// unsubscribe(), because the action could reschedule later.

// unsubscription logic is called, then synchronously rethrow the error.

// until the first strong type (R, L, AL, or sor) is found. If an

// until the first strong type (R, L, or sor) is found. If an L is

// up a 'line map', which points at the DOM nodes that represent

// up in Node's output if this results in an unhandled exception.

// update initial matrix

// update operation

// update state, but don't save a style array. Used for lines that

// update, since that speeds up the operations on most browsers.

// updateDisplay_W2 will use these properties to do the actual resizing

// updateLocale is called for creating a new locale

// upwards to parent nodes.

// url (gfm)

// use `getCanvasBBox`, because if Shape is been translated, `getBBox` is not the actual box position

// use named function instance to avoid closure.

// use named function to pass values in without closure

// use preload in IE Edge (to detect load errors)

// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of

// useCSS is true by default so it can be undefined

// useCachePlugin can set fetchInstance.state.params from cache when init

// useLayoutEffect in the browser. We need useLayoutEffect to ensure the store

// useToggle ignore value change

// used by (legacy) mechanisms like loadmode.js to automatically

// used by swipeEvent. differentites between touch and swipe.

// used exclusively as they provide rounded values.

// used for changes that span multiple lines, or change the way

// used in Player

// used in error messages

// used to compute Connect's displayName from the wrapped component's displayName.

// used to disable editing during key handlers when in readOnly mode

// used to preserve spaces and line breaks

// used). When nothing is selected, the cursor sits after previously

// useful for testing

// user-provided array of options. Otherwise, it must be just the _first_ arg, and so

// uses a heuristic used by v8 and chakra to force an object into dictionary mode.

// using try/catch optimizations.

// utilities on `state`.

// val

// valid state. If that fails, it returns the line with the

// validating, and parsing SemVer version strings.

// value

// value synchronously during subscription. We can just call it.

// values 是无序的

// values.length === 1 的判断是以下情况，获取用户设置的图形属性值

// value为index

// var yIndex = maxLevel - i;

// variable specified by delegate.resultName (see delegateYield).

// variables for this instance.

// vec3.scale(uuv, uuv, 2);

// vertical range.

// vertical/horizontal position does not need to be adjusted.

// very slow. So make the area wide instead.

// video height

// video width

// view 中使用 geometry 的时候，还需要清空它的容器，不然下一次 chart.geometry() 的时候，又创建了一个，导致泄露， #2799。

// view 生命周期 —— 渲染流程

// view, so that we don't interleave reading and writing to the DOM.

// view, that getCursor returns, etc).

// viewBBox 发生变化的时候进行更新

// viewport. In some browsers, el.offsetParent may be

// visual line. This finds the start of the visual line that the

// w (WS):  Whitespace

// w/o a bogus, which doesn’t make sense. But it does seem to help perf

// was opened.

// we can explicitly access globalThis. In older engines we can escape

// we can ignore everything in base after the last slash of its path component,

// we can't check .prototype since constructors produced by .bind haven't it

// we can't use just `it == null` since of `document.all` special case

// we can’t have containers “pierce” into them, so we can immediately

// we don't care about invariant's own frame

// we encounter an event that falls within the window.

// we group them, using negative numbers

// we ignore all errors here, since when the component

// we need it if the extension ends up not matching.

// we reference arguments instead of spreading them for performance reasons

// we unsubscribe from our source chain, reset our Subscriber flags,

// we wrap it in an array so we can apply it.

// webpackBootstrap

// weekday -- low day numbers are considered next week

// weeks to month

// well as nesting subscriptions of descendant components, so that we can ensure the

// what the next least recently used key will be, so just

// when arrow config exists

// when measurement is needed for a line that's not in the viewport.

// when not typing and nothing is selected)

// when not using server side rendering

// when set headers['X-Requested-With'] = null , can close default XHR header

// when the line isn't visible.

// when they overlap (they may nest, but not partially overlap).

// when trying to find en-US, en_US, en-us for every format call

// where `root.postMessage` means something completely different and can't be used for this purpose.

// where the ConnectableObservable source synchronously emits values, and

// whether `from` does.

// whether it has children or doesn't has children

// whether mapToProps needs to be invoked when props have changed.

// whether or not we can go next

// whether the lazy line started a new flow block.

// whether, in right-to-left text, direction 1 means to move towards

// which bidi section the coordinates fall into.

// which causes page_Offset and bounding client rects to use

// which may cause missed updates; we also must ensure the store subscription

// which may produce multiple C:s

// which months you are are talking about, so we have to store

// which one is the primary selection (the one that's scrolled into

// which point we can't mess with it anymore. Context menu is

// while retrieving files from application cache.

// whiteSpace: 'nowrap',

// why not write `fnRef.current = fn`?

// widgets and marker elements with the text behave more intuitive.

// width and height.

// width 为主

// width: 0,

// will add the minimum number of fields specified by the guide

// will be null.

// will be the case when there is a lot of text in the textarea,

// will match the longer piece.

// will receive the previous state. This effectively populates

// will return rgba when there is transparency.

// will throw again, if neither props nor store state

// with parseZone.

// with standard React renderers (ReactDOM, React Native)

// with whatever "extra arg" they want to inject into their thunks

// without * and _ to handle the different emphasis markers * and _

// without creating circular dependencies.

// without limitation the rights to use, copy, modify, merge, publish,

// would be moot.

// wrap

// wrap around out-of-range values into [0, 360] range

// wrap in an div for old version react

// wrap to dropDown

// wrapped line, and then do a flat search in which we discard any

// wrapper for elt, which removes the elt from the accessibility tree

// wriggle around in a most unseemly way. When we have an

// x axis

// x y 都是数组时，不做处理

// x 是数组

// x 的极值

// x 轴对应的值如果是非 cat 类型，在整圆的情况下坐标轴第一个和最后一个文本会重叠，默认只展示第一个文本

// x 轴对应的数据为线性以及时间类型，进行二分查找，性能更好

// x 轴对应的数据为非线性以及非时间类型的数据采用遍历查找

// x 轴方向扩展, y 轴方向占满全部

// x, y, xy

// x,y 是否生效

// x: 0,

// xField 中只有一个值，不需要做 dodge

// xRel is the relative x position of the input coordinates compared

// xValue 在 originData[xField] 的数值区间内

// xn--11b4c3d

// xn--1ck2e1b

// xn--1qqw23a

// xn--2scrj9c

// xn--30rr7y

// xn--3bst00m

// xn--3ds443g

// xn--3e0b707e

// xn--3hcrj9c

// xn--3oq18vl8pn36a

// xn--3pxu8k

// xn--42c2d9a

// xn--45br5cyl

// xn--45brj9c

// xn--45q11c

// xn--4gbrim

// xn--54b7fta0cc

// xn--55qw42g

// xn--55qx5d

// xn--5su34j936bgsg

// xn--5tzm5g

// xn--6frz82g

// xn--6qq986b3xl

// xn--80adxhks

// xn--80ao21a

// xn--80aqecdr1a

// xn--80asehdb

// xn--80aswg

// xn--8y0a063a

// xn--90a3ac

// xn--90ae

// xn--90ais

// xn--9dbq2a

// xn--9et52u

// xn--9krt00a

// xn--b4w605ferd

// xn--bck1b9a5dre4c

// xn--c1avg

// xn--c2br7g

// xn--cck2b3b

// xn--cg4bki

// xn--clchc0ea0b2g2a9gcd

// xn--czr694b

// xn--czrs0t

// xn--czru2d

// xn--d1acj3b

// xn--d1alf

// xn--e1a4c

// xn--eckvdtc9d

// xn--efvy88h

// xn--estv75g

// xn--fct429k

// xn--fhbei

// xn--fiq228c5hs

// xn--fiq64b

// xn--fiqs8s

// xn--fiqz9s

// xn--fjq720a

// xn--flw351e

// xn--fpcrj9c3d

// xn--fzc2c9e2c

// xn--fzys8d69uvgm

// xn--g2xx48c

// xn--gckr3f0f

// xn--gecrj9c

// xn--gk3at1e

// xn--h2breg3eve

// xn--h2brj9c

// xn--h2brj9c8c

// xn--hxt814e

// xn--i1b6b1a6a2e

// xn--imr513n

// xn--io0a7i

// xn--j1aef

// xn--j1amh

// xn--j6w193g

// xn--jlq61u9w7b

// xn--jvr189m

// xn--kcrx77d1x4a

// xn--kprw13d

// xn--kpry57d

// xn--kpu716f

// xn--kput3i

// xn--l1acc

// xn--lgbbat1ad8j

// xn--mgb9awbf

// xn--mgba3a3ejt

// xn--mgba3a4f16a

// xn--mgba7c0bbn0a

// xn--mgbaakc7dvf

// xn--mgbaam7a8h

// xn--mgbab2bd

// xn--mgbai9azgqp6j

// xn--mgbayh7gpa

// xn--mgbb9fbpob

// xn--mgbbh1a

// xn--mgbbh1a71e

// xn--mgbc0a9azcg

// xn--mgbca7dzdo

// xn--mgberp4a5d4ar

// xn--mgbgu82a

// xn--mgbi4ecexp

// xn--mgbpl2fh

// xn--mgbt3dhd

// xn--mgbtx2b

// xn--mgbx4cd0ab

// xn--mix891f

// xn--mk1bu44c

// xn--mxtq1m

// xn--ngbc5azd

// xn--ngbe9e0a

// xn--ngbrx

// xn--node

// xn--nqv7f

// xn--nqv7fs00ema

// xn--nyqy26a

// xn--o3cw4h

// xn--ogbpf8fl

// xn--otu796d

// xn--p1acf

// xn--p1ai

// xn--pbt977c

// xn--pgbs0dh

// xn--pssy2u

// xn--q9jyb4c

// xn--qcka1pmc

// xn--qxam

// xn--rhqv96g

// xn--rovu88b

// xn--rvc1e0am3e

// xn--s9brj9c

// xn--ses554g

// xn--t60b56a

// xn--tckwe

// xn--tiq49xqyj

// xn--unup4y

// xn--vermgensberater-ctb

// xn--vermgensberatung-pwb

// xn--vhquv

// xn--vuq861b

// xn--w4r85el8fhu5dnra

// xn--w4rs40l

// xn--wgbh1c

// xn--wgbl6a

// xn--xhq521b

// xn--xkc2al3hye2a

// xn--xkc2dl3a5ee0h

// xn--y9a3aq

// xn--yfro4i67o

// xn--ygbi2ammx

// xn--zfr164b

// x轴方向的每个分面的偏移

// y axes

// y 不相等，所以直接转换

// y 是数组

// y 有可能是数组，对应原始数据中 y 为一个区间数据，如 [19, 30]，为了统一也将 x 转换为数组

// y 的极值

// y 轴方向扩展, x 轴方向占满全部

// y 轴过滤仅取第一个 yScale

// yield `null`.

// yield* loop.

// you've misconfigured your bundler to force strict mode and applied a

// zombieJ: Not know why use `updateKey`. This makes Notice infinite loop in jest.

// zombieJ: That's why. User may close by key directly.

// { list: [ 11, 22 ] }

// { player, operation }

// {from, to, marker} object pointing to such marker objects, and

// |      |

// | ---==^== | <- mousePosition

// | -^-===== | <- mousePosition

// | Node     | <- abstractDropNode

// | Node1 | <- abstractDropNode

// |w| <= 1/2

// |w| > 1/2, may as well choose w > 1/2

// }

// }, 1000);

// }, [defaultValue, reverseValue]);

// …and either is not ended yet…

// …are archived, remove this (also from mdast).

// …or ends after it.

// …or it was followed by a line ending, in which case, there has to be

// ① 创建样式表 (默认创建 light 的样式表)

// ② 创建主题

// 一些 get 方法

// 一些工具方法导出

// 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19

// 一旦 remove，则无法在 element 上拿到包围盒

// 一旦执行，则缓存标记为，一直保持到跳出改环节

// 一维的情况下获取高度和默认size

// 一般不会走到这个逻辑，dom.style 获取的是标签 style 属性，也不准确

// 一般发生在设置了 localRefresh ,在没有图形发生变化的情况下，用户调用了 draw

// 三层

// 三层 group 中的 shape 事件都会通过 G 冒泡上来的

// 三态函数，判断两个double在eps精度下的大小关系

// 三次贝塞尔曲线有两个控制点

// 三角形

// 上一个控制点必须要在上一个点和这一个点之间

// 上一段结束位置, 即 C 的起始点

// 上层分组设置 matrix

// 上方或者下方超出

// 上边

// 下一个控制点必须在这个点和下一个点之间

// 下方,从左到右、上方,从右到做

// 下边

// 下面计算得到的 k = 0

// 不但应用到自己身上还要应用于子元素

// 不做任何处理

// 不允许 fill

// 不允许多选

// 不允许捕获事件

// 不允许被拾取

// 不允许被拾取，则返回 null

// 不再考虑在 shape 的 parent 内的情况

// 不再视窗内 cacheCanvasBBox 设置成 null，会提升局部渲染的性能，

// 不再调用 element.remove() 方法，会出现循环调用

// 不创建

// 不同的 Shape 各自实现

// 不在处理中的

// 不在数据范围内

// 不存在 filters，则不需要进行数据过滤

// 不存在 transpose，为其自动设置一个 action

// 不存在则 create

// 不存在则创建

// 不存在这个 syncKey，则创建一个空数组

// 不存在，则创建

// 不存在，则是所有需要被销毁的组件

// 不存在，创建

// 不对 body 做任何操作。。

// 不是所有的 component 都能进行 active，目前仅支持分类 scale 对应的组件

// 不是最后一个

// 不是高频操作直接使用 set

// 不显示 crosshair，都移除，没有设定 region 也都移除掉

// 不相交，则直接返回 null

// 不知道 🤷‍♀️ 只认 unchecked status

// 不知道为什么，需要把这个 export，不然 ts 会报类型错误

// 不管 skewX skewY了；

// 不继续向下传递矩阵

// 不要点击在 mask 上重新开始

// 不足 1 的取 1，超出 1 的取整

// 不进行 transpose 时，用户又没有设置这个参数时，默认从上向下

// 不重叠的坐标文本间距个数

// 不限制位置

// 与 Crosshairs 组件的 type 冲突故删除

// 与上面的处理一样，删除 start ，重新走一遍 start。。

// 两个多边形都需要判定

// 两根竖线

// 两点以内直接绘制成路径

// 为 shape 设置剪切区域

// 为了使固定的 clip 生效，clip 设置在 itemContainerGroup 上，itemGroup 需要在翻页时会设置 matrix

// 为了保证划出 canvas containerDom 时还没触发 mouseup

// 为了加速 path 的绘制、拾取和计算，这个地方可以缓存很多东西

// 为了加速绘制，可以提供参数的缓存，各个图形自己缓存

// 为了解决 js 运算的精度问题

// 主要是用在避免初始化时传入的 value 结构不合理

// 之前分组之后的数据，然后有合并回去（和分组前可以理解成是一样的）

// 之后更新属性需要计算动画已经执行的时长，如果暂停了，就把初始时间调后

// 之所以不拆成 isInStroke 和 isInPath 在于两者存在一些共同的计算

// 也可以 通过 get('center') 类似的方式逐个获取

// 也可以使用指定点的切线方程计算，成本有些高

// 也就是说 xs 里面的值都相同，比如：[1, 1, 1, 1]

// 事件冒泡, enter 和 leave 需要对 fromShape 和 toShape 进行判同

// 事件冒泡停止，不能妨碍委托事件

// 事件名称可能在委托过程中被修改，因此事件冒泡时需要重新设置事件名称

// 事件在 view 嵌套中冒泡（暂不提供阻止冒泡的机制）

// 事件委托机制

// 事件委托的形式 name:type

// 事件的x,y应该是基于画布左上角的，与canvas的matrix无关

// 二次贝塞尔曲线只有一个控制点

// 二次贝塞尔曲线的终点为 currentPoint

// 交换

// 仅仅使用包围盒检测来进行拾取

// 仅保留被整除的 label

// 仅在这个场景下判定

// 仅填充

// 仅填充时带有圆角的矩形直接通过图形拾取

// 仅当只有一个 M，没有 Z 时会发生这种情况

// 仅支持单个状态量的元素，只能由 element 触发

// 仅显示 x 的 crosshair，y 移除

// 仅显示 y 的 crosshair，x 移除

// 仅考虑 mask 导致的过滤

// 从 view 中移除分面 view

// 从主题中获取对应状态量的样式

// 从当前 group 开始触发 delegation

// 从矩阵获取旋转的角度

// 从第二个栅格线开始绘制

// 以 x, y 为中心的，上一个控制点的对称点

// 以 x,y 为中心，取上一个控制点，

// 以后可以改成纯数学的近似拾取，将圆弧切割成多边形

// 任意点击都需要清空之前的 range

// 会附加 element 的 name

// 传入延时为0或非数字，立即展示

// 传入延时大于0且当前没有在展示中，延时加载

// 传入的 value 有变更时重新计算

// 但对于 https://github.com/antvis/g/issues/422 的场景，全局渲染的模式下也需要记录更新的元素队列

// 但是始终要标记为 hasChanged，便于后面进行局部渲染

// 但是目前 10W 图形的拾取在 2-5ms 内，这个优化意义不大，可以后期观察再看

// 但是非 ie 不可能设置窗口边框，body html 也不是窗口 ,ie 可以通过 html,body 设置

// 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框，即使设了 border-top 也为 0

// 但测试发现，这样反而会导致当 html 和 body 有边距/边框样式时，获取的值不正确

// 作为其静态属性

// 使用 shape stroke 值

// 使用一个循环，计算min,max,secondMin

// 使用使用原始度量作为缩放标准

// 使用分面数据 创建分面 view

// 使用图形连接

// 使用方法构造 key，如果不存在 resolver，则直接取第一个参数作为 key

// 使用椭圆的公式： x*x/rx*rx + y*y/ry*ry = 1;

// 使用用户返回的值处理

// 使用虚拟 group 重新绘制 shape，然后对这个 shape 应用状态样式后，更新当前 shape。

// 使用迭代法取贝塞尔曲线的长度

// 使用迭代法取贝塞尔曲线的长度，二阶和三阶分开写，更清晰和便于调试

// 例如 <div 'relative'><el absolute></div>

// 保存上下文，设置 clip

// 保存旧的光标位置

// 保持 scales 引用不要变化

// 保持和 grid 相同的数据结构

// 保留TabPane

// 保留第一个或者最后一个

// 保证上边界和可视区域上边界对齐

// 保证左边界和可视区域左边界对齐

// 保证执行前的 context.event 是正确的

// 保证检测时的 event

// 修复了 mouseleave 的 bug 后不再出现这种情况

// 修复元素位于 document.documentElement 下导致崩溃问题

// 修饰键

// 倒三角形

// 值为 null的时候，忽视

// 假如椭圆半径为0则返回圆心

// 偏导数 x

// 偏导数 y

// 偏移之后，间距

// 偏移量也反下

// 做一下坐标系转化

// 元素可能已经被移动了

// 兄弟节点

// 先从 view 本身查找

// 先从数组中移除，然后放到合适的位置

// 先全部清空，然后 render

// 先创建 gridContainer，将 grid 放到 axis 底层

// 先判断 hasChanged，因为它的优先级判断应该高于 refresh

// 先将 attrs 应用到上下文中，再设置 clip。因为 clip 应该被当前元素的 matrix 所影响

// 先排序

// 先更新 maxSize，更新 layoutBBox，以便计算正确的 x y

// 先检查是否需要合并属性。若有相同的动画，将该属性从前一个动画中删除,直接用后一个动画中

// 先清理事件

// 先看是否有 regionFilter/shape 要更新

// 先结束当前 container 动画

// 先触发 mouseup 再触发 click

// 先进入画布

// 先进行排序，便于 tooltip 查找

// 先遍历需要刷新的元素，将这些元素的父元素也设置 refresh

// 先销毁 action 再清空，一边遍历，一边删除，所以数组需要更新引用

// 先销毁掉之前的分面

// 光标在中间，如果最后的值超过最大值，则采用原先的值

// 光标在尾部，直接截断

// 入参是 [24, 24] 这类时

// 入参是 object 结构，数据点

// 全局自定义图例

// 全局设置一个唯一离屏的 ctx，用于计算 isPointInPath

// 全部 setZIndex 之后，再执行 sort

// 关闭状态，但是状态未设置过

// 关闭默认的 X 轴数据排序

// 其他 Geometry 类型按照 x 字段数据进行查找

// 其他 element 状态不变

// 其他一些提供给子类使用的方法

// 其他如果不是 active，则设置成 unactive

// 其他情况不裁剪，原样返回

// 其他情况，只去四个

// 其他组

// 其他组件使用外层的统一 render 逻辑

// 其他组件布局

// 其实不用做任何事情，因为 facet 最终生成的 View 和 Geometry 都在父 view 的更新中处理了

// 具体的指定阶段是否允许执行

// 兼容 3.0 中的写法，onFrame 和 repeat 可在 toAttrs 中设置

// 兼容 r 和 radius 两种写法，推荐使用 r

// 兼容Theme配置

// 兼容theme配置

// 兼容方法和 字符串的写法

// 兼容移动端获取数据

// 兼容老写法

// 兼容老版本的接口

// 兼容逻辑

// 内容发生变化了更新 tooltip

// 内容未发生变化，则更新位置

// 内置 symbol 的 path 都是绝对路径，直接绘制即可，不需要对 path 进行特殊处理

// 内部产生的属性

// 再触发离开画布事件

// 减小, 同时未出边界

// 出现溢出直接应用 overflowLabel 样式

// 出现背景框

// 分别更新 label 和 tickLine

// 分别获取 4 个关键点

// 分割贝塞尔曲线

// 分多种输入情况

// 分段数量

// 分类 scale，调整 range 范围

// 分类或者 identity 的 scale 才进行处理

// 分类数据允许 0.5 范围内调整

// 分组字段的 scale 使用未过滤的数据创建

// 分组柱状图

// 切换时同时触发 onComplete。 手动跳出。。。

// 划分点

// 列表类的组件能够触发

// 创建

// 创建 coordinate controller

// 创建 geometry 实例

// 创建 interactions 实例

// 创建 mask

// 创建 view 实例

// 创建图形属性

// 创建图形属性相关的配置项

// 创建容器

// 创建新的分面

// 创建滑块的 shape

// 创建滑道的 shape

// 创建离屏的 group ,不添加在 canvas 中

// 创建虚拟分组

// 初始化 theme

// 初始化 tick

// 初始化上下文，并初始化 action

// 初始化为空

// 初始化动画

// 初始化图形、组件位置，计算 padding

// 初始化图形的之前，先创建 / 更新 scales

// 初始化坐标系大小，保证 padding 计算正确

// 初始化容器

// 初始化时组合 font，同时判断 text 是否换行

// 初始化样式

// 初始化组件 controller

// 初始状态下的 view 数据过滤

// 初始的 coordinate bbox 大小

// 初次创建

// 初次渲染和更新渲染的逻辑有所不同: 初次渲染值为空时，需要设置为 none，否则就会是黑色，而更新渲染则不需要

// 删除 scale 实例

// 删除图形元素

// 删除所有子孙节点的 value, 不包括自己

// 删除空数组值

// 判定包围盒是否相交，比判定点是否在多边形内要快的多，可以筛选掉大多数情况

// 判定点是否在多边形内部，一旦有一个点在另一个多边形内，则返回

// 判断两者是否相等，主要是进行 null 的判定

// 判断投影轴上的投影是否存在重叠，若检测到存在间隙则立刻退出判断，消除不必要的运算。

// 判断是否小于0

// 判断是否影响 siblings

// 判断点P在多边形内-射线法

// 判断点Q是否在p1和p2的线段上

// 利用 scale 来获取 y 上的映射

// 刷新图形元素(Shape 或者 Group)

// 刻度线的数量大于 2 时，才绘制子刻度

// 前一个判断min(p1[1],p2[1])<P.y<=max(p1[1],p2[1])

// 前置钩子

// 前面已经匹配到的图形元素，用于

// 前面已经有更新的图形或者插入的图形，则在这个图形后面插入

// 加一个 cache，提升性能

// 加上分页器并重新排序 items

// 加上延时，在没有播放过时；

// 加载完成后绘制

// 动态生成执行的方法，执行对应 action 的名称

// 动画停止时的回调

// 动画处理

// 动画已执行完

// 动画暂停时的回调

// 动画未执行完

// 动画过程

// 包含包围盒的 bbox

// 包含有基本事件、组合事件

// 包围盒计算依赖于绘制，如果还没有生成对应的 Dom 元素，则包围盒的长宽均为 0

// 匹配所有叶子节点的 value

// 单个 item 设置状态

// 单个元素设置和取消 highlight

// 单条 path

// 即 y 值为空的场景

// 即已经重绘完、但 hasChanged 标记没有清除的元素，需要统一清除掉。主要是 Group 存在问题，具体原因待排查

// 即：需要走进 !isEqual(lastTitle, title) || !isEqual(lastItems, items) 的逻辑，更新 tooltip 的内容

// 原始数据

// 去重

// 去重、去除 Nil 值

// 去除 plugins 的特殊名称。

// 去除引用

// 去除引用关系

// 发生冲突，则隐藏前一个保留后一个

// 发生过 stack 调整，yScale 的 max 被调整过，this.updateStackRange()

// 发送事件

// 取 rail 的高度，作为高度

// 取出原生事件

// 受 mask 影响

// 受控模式更新 value

// 变成 interval 的倍数

// 另外和 options 进行对比，删除

// 只有 element 是 Group 或者 Canvas 的时候，才需要判断 isParent

// 只有一个分类时,防止计算出现 [0.5,0.5] 的状态

// 只有一个维度

// 只有一维的情况下，同时调整 y，赋予默认值

// 只有一项数据时取当前值

// 只有存在于 canvas 上时生效

// 只有存在这个 scale 时才生效

// 只有当前是 start 时，才允许 processing

// 只有挂载到画布下，才对元素进行实际渲染

// 只有根节点才处理

// 只有点击事件支持从鼠标位置动画展开

// 只有第一次缓存，否则无法回滚

// 只有进行中，才会允许大小变化

// 只有鼠标左键的 mousedown 事件才会设置 mousedownShape 等属性，避免鼠标右键的 mousedown 事件引起其他事件发生

// 只要属性发生变化，都调整一些位置

// 可以加缓冲，&& this.get('imgSrc') !== value

// 可以考虑缓存机制，通过 hasUpdate 来避免一些运算

// 可能不在 currentInPlot 中

// 可能存在用户设置 values ，但是数据中没有对应的字段，则这时候 arr 就为 null

// 可能触发新的事件，保证执行前的 context.event 是正确的

// 右侧超出

// 右侧躲避

// 右边

// 叶子节点

// 各个 Geometry 默认的动画执行函数

// 各个 Geometry 默认的群组出场动画

// 合并两个区域

// 合并主题，用户配置优先级高于默认主题

// 合并包围盒

// 合并箭头的包围盒

// 同 shape 中的方法重复了

// 同初始化时相反顺序调用

// 同时填充和带有边框

// 同样递归处理子 views

// 同步 padding 之后，更新 coordinate

// 后一个判断被测点 在 射线与边交点 的左边

// 后一个动画开始执行的时间 < 前一个动画的结束时间 && 后一个动画的执行时间 > 前一个动画的延迟

// 后续扩展 id 用

// 后置钩子

// 向量角度

// 向量长度

// 否则在 canvas 上触发 drag 事件

// 否则将图形添加到动画元素队列

// 否则直接 zoom 展示

// 否则直接销毁

// 否则，按照高度均分

// 和 update 逻辑保持一致

// 回调函数形式的配置： 用户可以传入回调函数

// 因为 Annotation 不参与布局，但是渲染的位置依赖于坐标系，所以可以将绘制阶段延迟到 layout() 进行

// 因为 legend x y 要和 coordinateBBox 对齐，所以要做一个简单的判断

// 因为 tooltip 的交互是挂载在 Chart 上，所以当chart 上没有绘制 Geometry 的时候，就查找不到数据，并且绘图区域同子 View 的区域不同

// 因为 typescript 部分版本不支持 export * as 语法。

// 因为iconfont资源会把svg插入before，所以前加载相同type会覆盖后加载，为了数组覆盖顺序，倒叙插入

// 因为元素已经销毁所以无法获取到缓存的包围盒

// 因为在局部渲染影响的包围盒计算时不考虑这个图形的包围盒

// 因为存储的 start、end 可能不一定是按大小存储的，所以排序一下，对外是 end >= start

// 因为存在更新 scale 机制，所以在缓存之前，先从原 syncScales 中去除 sync 的缓存引用

// 因为已经计算了包围盒，所以仅需要计算到直线的距离即可，可以显著提升性能

// 因为有可能 shape 还在进行动画，导致 shape.getBBox() 获取到的值不是最终态，所以需要从 offscreenGroup 获取

// 因为有样式，所以深层覆盖

// 因为目前的方案是计算点到直线的距离，而有可能会在延长线上，所以要先判断是否在包围盒内

// 因为这里缓存了 shapeFactory，但是外部可能会变更 coordinate，导致无法重新设置到 shapeFactory 中

// 固定宽度，避免切换时菜单跳动的问题

// 图例分页器

// 图例项需要逆序

// 图形发生更新

// 图形的包围盒与重绘区域不相交时，也需要清除标记

// 图片未加载完，则已经被销毁

// 圆

// 圆和椭圆的点坐标属性不是 x, y，而是 cx, cy

// 在 defaultLayoutFn 中只会在 coordinateBBox 发生变化的时候会调用 adjustCoordinate()，所以不用担心被置位

// 在 document 上处理拖拽到外面，释放鼠标时触发 dragend

// 在 document 处理拖拽到画布外的事件，处理从图形上移除画布未被捕捉的问题

// 在 form 状态下，暂停时拉 moment 时，start 有值恢复播放，在 delay 的时间没有处理。。

// 在 form 状态下，暂停时拉 moment 时，start 有值，，往返方向播放时，在 delay 的时间没有处理。。

// 在 ie 下不对，需要直接用 offset 方式

// 在 onComplete 时更换动画时，raf 没结束，所以需要强制退出，避逸两个时间的冲突。

// 在 path 的基础上，增加两个坐标点

// 在plot 内部却离开画布

// 在动画时更改了 style, 作为更改开始数值。

// 在同一个 element 内部移动，label 和 shape 之间

// 在同一个 element 内部移动，忽视 label 和 shape 之间

// 在后面

// 在子元素上设置矩阵

// 在对组件分组之后，先对 axis 进行处理，然后取最大的超出即可。

// 在更新过程中数据变为空，同时 key 对应的 scale 已存在则保持 scale 同类型

// 在每一个分组中，将数据再按照 dim 分组，用于散列

// 在每个维度上，所有的值

// 在自定义容器下, 可以渲染 g2-tooltip 的样式, 以兼容线上场景, 但是不应该设置 visibility

// 在视窗外的 Group 元素会加入到更新队列里，但实际却没有执行 draw() 逻辑，也就没有清除 hasChanged 标记

// 在转换过程中进行了缓存

// 在重置样式之前补 complete；

// 均匀抽样隐藏标签，注意这里假设 label/tick 是均匀的

// 坐标与原点的连线不可能小于最小r值，但不排除因小数计算产生的略小于rMin的情况

// 坐标与原点的连线在第一圈上的交点，最小r值

// 坐标系有可能发生 transpose 等变换，所有通过两点之间的距离进行计算

// 坐标系类型也作为组件的 key

// 垂直

// 垂直布局的所有的文本都左对齐

// 垂直方向投影

// 垂直方向限制的长度，对文本自适应有很大影响

// 垂直方向，逆时针方向

// 垂直方向：柱形图系列

// 垂直时不需要判定 limitLength > maxWidth ，因为此时不会 overlap

// 垂直时计算 y

// 垂直的坐标轴计算垂直方向的间距

// 基础柱状图

// 基础配置，从当前数据中读到的配置

// 增加 x 轴的过滤器

// 增加一层 stackHeight

// 增加缓存

// 处理  timeCat 类型的 tick，在均匀的基础上，再次检查出现重叠的进行隐藏

// 处理 body 滚动

// 处理 plot 事件

// 处理 sync scale 的逻辑

// 处理 边界值

// 处理出场

// 处理完后再进行 style 回调处理

// 处理完成之后，更新 cache

// 处理完成之后，销毁删除的

// 处理小于 0 和小数的 tickCount

// 处理拖拽到外部的问题

// 处理拖拽过程中在外部释放鼠标的问题

// 处理数据：分组 -> 数字化 -> adjust 调整

// 处理漏斗图

// 处理漏斗图文本位置

// 处理码点大于U+010000的文字length属性不准确的bug，如"𠮷𠮷𠮷".lenght !== 3

// 处理移动到外面没有触发 shape mouse leave 的事件

// 处理精度问题，保证这三个数没有精度问题

// 处理触发源由 element 导致的状态变化

// 处理进场;

// 复位

// 复写 clear

// 复写 on, off, emit 透传到 group

// 复写 setLocation 方法，不需要重新创建 text

// 复写基类方法

// 复写基类的 draw 方法

// 复写基类的方法生成标签

// 复写填充逻辑

// 复写属性

// 复写清空函数，因为有模板的存在，所以默认的写法不合适

// 复写父类定义的绘制方法

// 复写绘制和填充的逻辑：对于文本，应该先绘制边框，再进行填充

// 复写绘制边框的逻辑

// 复制属性

// 复制数组

// 复制数组，删除时不会出错

// 多个 item 设置状态

// 多个元素设置、取消 highlight

// 多个点有可能重合

// 多参数映射，阻止程序报错

// 多边形场景，多用于地图

// 多边形的射线检测，参考：https://blog.csdn.net/WilliamSun0122/article/details/77994526

// 大于分钟

// 大于天

// 大于小时

// 大于月时

// 大于结束圆弧

// 大于限制的长度

// 大概能够节省全局渲染 15-20% 的性能，如果不在这里加缓存优化后 10W 个节点无法达到 5-6 ms，大概能够 30-40ms

// 大量的图形事件，都通过 mousemove 模拟

// 夹角为空、 0 或 PI 时，不需要计算夹角处的额外宽度

// 奇数

// 如有 customContent 则根据 customContent 设置 container

// 如果 action 既不是字符串，也不是函数，则不会生成 actionObject

// 如果 bbox 过小则不返回

// 如果 cfg 为空，则不在 updated 标记，那么会在后面逻辑中删除

// 如果 content 是 Group 或者 Shape，根据 textAlign 调整位置后，直接将其加入 labelGroup

// 如果 crosshair 对应的 dom 不存在，则创建

// 如果 customContent 不为空，就重新生成 tooltip

// 如果 geometry 开启，则监听

// 如果 interval label position 设置为 middle，则将主题中的 offset 覆盖为 0

// 如果 item 有配置 marker.spacing，采用 item 的配置

// 如果 item.name 匹配，则设置 highlight 以及取消

// 如果 items 空的话就不进行绘制调整操作

// 如果 label 支持 position 属性

// 如果 marker 是单填充或者单描边的话，就不要额外添加 stroke 或这 fill 属性，否则会影响 unchecked 后的显示

// 如果 nice = false ,补充 min, max

// 如果 object 里没对象了，自动杀掉；

// 如果 sync = true，则直接使用字段名作为 syncKey

// 如果 this.animate === false 或者 cfg.animate === false/null 则不进行动画，否则进行动画配置的合并

// 如果 tickLine 不居中对齐，则需要在最后面补充一个 tickLine

// 如果 view 不执行动画，那么 view 下所有的 geometry 都不执行动画

// 如果 view 关闭了 tooltip

// 如果 view 关闭动画，则不执行

// 如果 x 的值是数组

// 如果 x 轴是数值类型，如直方图，默认不需要加额外的宽度

// 如果 x,y 翻转，则偏移 x，否则偏移 y

// 如果min == 0, 则根据比0大的最小值，计算比例关系。这个最小值作为坐标轴上的第二个tick，第一个是0但是不显示

// 如果source和target不是完全不相等

// 如果width不存在，四点共其实点

// 如果x,y都是分类

// 如果上面对齐检测上面，不检测下面

// 如果下一个点的命令为 Z，则下一个点直接指向最近一个 M 点

// 如果下一个点的命令为 Z，则最近一个 M 点的前一个点为当前点

// 如果不 clone 则会多个 interaction 实例共享 step 的定义

// 如果不存在相对命令，则直接返回

// 如果不对 dragover 进行 preventDefault，则不会在 canvas 上触发 drop 事件

// 如果不支持拾取，则直接返回

// 如果不支持，则使用圆来绘制，进行变形

// 如果不是 auto padding，那么直接解析之后返回

// 如果不是 component 的事件触发，则所有满足触发条件的组件都清除该状态

// 如果不是都要取消 highlight, 则设置匹配的 element 的状态为 unactive

// 如果不进行清理 hasChanged 的状态会不正确

// 如果两个 box 中有一个是不合法的 box，也就是不会被渲染出来的，那么它们就不相交。

// 如果两个矩形没有旋转，使用快速判断

// 如果为空则不进行矩阵变化，防止报错

// 如果交换了位置，则对应的 min max 也交互

// 如果仅一个 label，多个 y, 取最后一个 y

// 如果以其开头，则取之，否则取他前面一个

// 如果以其结尾，则取之，否则取他后面一个

// 如果传入回调函数，则直接生成 CallbackAction

// 如果传入的值不等于 identity 的值，则直接返回，用于一维图时的 dodge

// 如果值小于等于0，则按照0处理

// 如果元素是新增加的元素，则遍历注册所有的子节点

// 如果全部渲染时，存在局部渲染，则抛弃掉局部渲染

// 如果分组没有子元素，则直接跳过

// 如果前段数据只有一个字段并且不需要展示时则不加入

// 如果前面有参数匹配不相同则直接返回；

// 如果加载的已经是当前图片，则不再处理

// 如果动画元素队列中已经有这个图形了

// 如果动画重复执行，则 elapsed > duration，计算 ratio 时需取模

// 如果取消 highlight，则要检测是否全部取消 highlight

// 如果只提供父类构造函数，则自动生成子类构造函数

// 如果可视区域不能完全放置当前节点时允许调整

// 如果图形元素隐藏了，怎不再 tooltip 上展示相关数据

// 如果在业务上都写绝对路径，这种方式最快，仅做了一次检测

// 如果在前面已经生成过包围盒，直接按照包围盒计算

// 如果在视觉通道上映射常量值，如 size(2) shape('circle') 不创建 legend

// 如果坐标系发生直角坐标系与极坐标的切换操作

// 如果垂直布局

// 如果失败，重新计算当前节点将要被放置的位置

// 如果存在 alternateColor 则绘制矩形

// 如果存在 callback，才绑定，有时候会出现无 callback 的情况

// 如果存在 clip

// 如果存在 draggingShape 则会在 draggingShape 上触发 drag 事件，冒泡到 canvas 上

// 如果存在 id，则使用 id string，否则直接使用 option 引用作为 key

// 如果存在 options, 优先使用

// 如果存在 shadow 则计算 shadow

// 如果存在分组类型，取第一个分组类型

// 如果存在小写的命令或者 V,H,T,S 则需要处理

// 如果存在拖拽的图形，则也触发 drop 事件

// 如果存在渐变、pattern 这个开销有些大

// 如果存在点，则说明没有遇到 'Z'，开始了一个新的多边形

// 如果存在相对位置的命令，则中断返回

// 如果定义了 end, 只有 end 时才允许回滚

// 如果定义了箭头，并且是自定义箭头，线条相应缩进

// 如果容器是 group

// 如果宽高一致，那么 changeSize 不执行任何操作

// 如果封闭，则计算起始点和结束点的边

// 如果小于最小值，则调整最小值

// 如果已经 enterable + 已经在 tooltip 上，那么不隐藏

// 如果已经定义过这个度量 (fix-later 单纯从数据中，推断 scale type 是不精确的)

// 如果已经是 rgb的格式

// 如果已经有父节点被 checked, 再进行 checked 没有意义，直接忽略

// 如果已经被销毁，直接移出队列

// 如果延时小于 负时间时,,不加,再减回延时;

// 如果当前 key 已存在 saveTweenTag 里，，刷新 child;

// 如果当前元素的父元素发生了改变，可以不放入队列，这句话大概能够提升 15% 的初次渲染性能

// 如果当前图形/分组 refresh = true，说明其子节点存在 changed

// 如果当前是 processing，则无法 start，必须等待 end 后才能执行

// 如果当前点与最近一个 M 点相同，则最近一个 M 点的前一个点为当前点的前一个点

// 如果当前点的命令为 Z，相当于当前点为最近一个 M 点，则下一个点直接指向最近一个 M 点的下一个点

// 如果想进一步提升局部渲染性能，可以进一步优化 refresh 的判定，依然有潜力

// 如果拖拽了 shape 会触发 dragenter, dragleave, dragover 和 drag 事件

// 如果指定了 region，同时不允许刷新时，直接返回

// 如果指定字段是非 position 的，同时是连续的

// 如果数值小于次小值，那么就计算 value / 次小值 占整体的比例

// 如果数据发生过 stack adjust，需要调整下 yScale 的数据范围

// 如果数据格式是 ['50%', '50%'] 的格式

// 如果数量小于 2 则直接返回，等于 2 时可能也会重合

// 如果数量小于或等于 2 则直接返回

// 如果文本位置位于圆心，则不展示

// 如果文本多行，需要获取文本间距

// 如果文本换行，则缓存数组

// 如果是 SVG, 样式全部提出为 transformSVG, 兼容 safari 不能获取 transform;

// 如果是 auto，默认 tooltip 在右上角，仅需要判定右侧和上测冲突即可

// 如果是 x 轴作为半径轴，那么只需要取圆弧收尾两个即可

// 如果是 xScale 数值类型，则进行排序

// 如果是一个 image 对象，则设置宽高

// 如果是允许的阶段，则验证 isEnable 方法

// 如果是分类类型，保持 values

// 如果是分组，则继续执行

// 如果是在本环节内仅允许触发一次，同时已经触发过，则不允许再触发

// 如果是字符串

// 如果是字符串，则按照 a*b 风格成数组

// 如果是已进入的，将直接返回标签。。

// 如果是当前画布整体发生了变化，则直接重绘整个画布

// 如果是数组

// 如果是数组时，则依次执行

// 如果是普通的图形

// 如果是设置 highlight ，则将匹配的 element 设置成 active，

// 如果是非线性的字段，直接从 values 中取值即可

// 如果最后一个被隐藏了

// 如果有 appearTo 且这条时间比 now 大时，，总时间用这条；

// 如果有 handler 为内置强制渲染；

// 如果有指定 y 字段，那么按照 y 字段来 stack

// 如果有自定义的 item，那么就直接使用，并合并主题的 marker 配置

// 如果未定义 end, 则判断是否是开始

// 如果未组装 font

// 如果未通过验证，则事件不要绑定在上面

// 如果本来已经大写，则不处理

// 如果正在拖拽图形, 则触发 dragleave

// 如果水平布局

// 如果没有定义，取最大范围  最小值 为 values 中的最小值， 如果最小值 超过了 定义的最大值 则 做限制  最大值 反之

// 如果没有开始，则不允许范围设置状态，保护性质

// 如果没有开始，则不执行过滤

// 如果没有指定 titleOffset 也没有渲染 label，这里需要自动计算 offset

// 如果没有数值则直接返回0

// 如果没有状态，则需要恢复至原始状态

// 如果没有缓存 bbox，则说明不可见

// 如果没有设置 id，默认使用 name

// 如果没有设置 limitLength，则使用固定的角度旋转

// 如果父元素正在清理，当前元素不触发 remove

// 如果用户在 style() 中配置了 fill

// 如果用户在 style() 中配置了 lineWidth 或者 r 属性

// 如果用户在 style() 中配置了 stroke，则以用户配置的为准

// 如果用户声明了使用哪些字段作为 id 值

// 如果用户打开了隐藏的坐标轴 chart.axis(true)/chart.axis('x', true)

// 如果用户没有设置 name，则默认根据索引值

// 如果用户没有设置 offset，则自动计算

// 如果用户没有配置 appear.animation，就默认走整体动画

// 如果目标节点存在

// 如果目标节点的下一个节点存在，插入到该节点之前

// 如果相关图形同当前图形在同一个容器内，不触发事件

// 如果端点相等，则判定点到点的距离

// 如果第一个被隐藏了

// 如果考虑到在加载过程中可能替换 img 属性，则情况更加复杂

// 如果自动旋转

// 如果自定义箭头，线条相应缩进

// 如果节点发生了 change，则需要级联设置子元素的 refresh

// 如果触发源时列表，图例、坐标轴

// 如果设置了 canvas 对象

// 如果设置了 debounce

// 如果设置了 min,max 则转换成时间戳

// 如果设置了最小间距，则使用最小间距

// 如果该节点不存在，则追加到末尾

// 如果跟随 label 显示，则检测是否存在对应的 label

// 如果还没有开始执行或暂停，先不更新

// 如果这个地方判定 isInView == false 设置 bbox 为 false 的话，拾取的性能会更高

// 如果进入、移出画布时存在图形，则要分别触发事件

// 如果都没有增加字符，说明都不适合则中断

// 如果配置了限制的 component name，则要进行检测

// 如果配置项为 null，则不移除 clipShape

// 如果间距大于 1 年，则将开始日期从整年开始

// 如果需要刷新当前节点，所有的子元素设置 refresh

// 如果需要刷新，说明子元素也需要刷新，继续进行判定

// 如果需要跟随鼠标移动，就需要将当前鼠标坐标点转换为对应的数值

// 如果颜色是单值，则是仅绘制偶数时的区域

// 始终填充

// 始终触发移动

// 始终通过图形拾取

// 委托事件要先触发

// 子 view 共享 options 配置数据

// 子 view 共用三层 group

// 子类上覆盖某些属性，不能直接在类上声明，否则会被覆盖

// 字段数据为null ,undefined时不显示

// 字段数据为null, undefined 时不显示

// 字符串依次判断是否有组合键

// 字符串字段或者数组字段

// 字符串整体没有超出

// 字符串类型的配置：按照名称执行 overlap 处理方法

// 存储到 map 中

// 存储原始数据

// 存储已经处理过的

// 存储当前开启的状态

// 存储映射后的数据,

// 存储绘图数据

// 存入到 option 中

// 存在 3 层 结构了

// 存在 NaN 时，min,max 判定会出问题

// 存在 parent， 那么就是通过父容器大小计算

// 存在 shape 触发，则进行冒泡处理

// 存在 sync 标记才进行 sync

// 存在 value 值，且用户没有配置 range 配置 to fix https://github.com/antvis/G2/issues/2996

// 存在则 update

// 存在则先销毁已有的

// 存在则更新

// 存在则更新，不存在在创建

// 存在则更新，同时检测类型是否一致

// 存在可以拖拽的图形，同时拖拽到其他图形上时触发 drag 事件

// 存在多个值时，设置最小间距

// 存在多种情形需要更新 cacheCanvasBBox 和 isInview 的判定

// 存在曲线时，暂时使用 canvas 的 api 计算，后续可以进行多边形切割

// 存在没有 y 的情况

// 存在点

// 存在过滤器，则逐个执行过滤，过滤器之间是 与 的关系

// 存起来

// 定义 ref 给外部使用；

// 实例化 Geometry，然后 view 将所有的 scale 管理起来

// 实现 IList 接口

// 实现 ILocation 接口的 getLocation

// 实现 IPointLocation 的接口

// 实现接口

// 实现接口的方法

// 宽 13px，高 8px

// 对 autoRotate，如果配置了旋转角度，直接进行固定角度旋转

// 对source进行增删path

// 对于 clip，不仅需要将 clipShape 对于的 SVG 元素删除，还需要将上层的 clipPath 元素也删除

// 对于 defs 下的 dom 节点，parent 为空，通过 context 统一挂载到 defs 节点下

// 对于 https://github.com/antvis/g/issues/422 的场景，全局渲染的模式下也会记录更新的元素队列，因此全局渲染完后也需要置空

// 对于 mouseenter, mouseleave 的计算处理

// 对于 regionFilter/shape，因为生命周期的原因，需要额外 render

// 对于 shape="line" path 不应该闭合，否则会造成 lineCap 绘图属性失效

// 对于 syncScales 中每一个 syncKey 下面的 scale 数组进行同步处理

// 对于内置的 option，避免覆盖。

// 对于原始值的必要转换，如分类、时间字段需转换成数值，用transform/map命名可能更好

// 对于还没有挂载到画布下的元素，canvas 可能为空

// 对于通配符 *，事件名称 = 委托事件名称

// 对图形进行拾取判断

// 对数据进行分组

// 对数据进行排序

// 对直方图的label X 方向的位置居中

// 对结束箭头进行拾取判断

// 对绘制区域边缘取整，避免浮点数问题

// 对虚线偏移量做动画

// 对起始箭头进行拾取判断

// 对齐位置反下

// 导出 Action 基类

// 导致返回的值是 [NaN, NaN]

// 封闭时，绘制整个圆

// 将 S 命令变换为 C 命令

// 将 S 命令变换为 SQ 命令

// 将 clip 的属性挂载到 context 上

// 将 label 同 element 进行关联

// 将 label 平移至 x, y 指定的位置

// 将 offset 转换成数值，支持百分比

// 将 path 保持原始态，否则会影响 setState() 的动画

// 将 path 转成绝对路径

// 将 path 转换成绝对路径

// 将 point 画布坐标转换为原始数据值

// 将 update 更新到 cache

// 将 x, y 转换成对应于 group 的局部坐标

// 将 x、y 转换成画布坐标

// 将两个点均分成count个点

// 将会在 4.1 版本中移除递归嵌套 view，仅仅只允许 chart - view 两层。

// 将传入的颜色转换成渐变色

// 将分类数据翻译成数据, 仅对位置相关的度量进行数字化处理

// 将动画执行到最后一帧

// 将向量应用设置的矩阵

// 将四个边看做矩形来检测，比边的检测算法要快

// 将夹角转为锐角

// 将委托事件的监听对象 delegateObject 挂载到事件对象上

// 将字符串转换成 action

// 将开始的点记录下来

// 将归一化的坐标值转换成画布坐标

// 将当前容器的矩阵应用到子元素

// 将所有在出场里的停止掉。避免间隔性出现

// 将数值从 0-255 转换成16进制字符串

// 将数据归一化

// 将数据数组展开一层

// 将数据映射至图形空间

// 将数据映射至图形空间前的操作：排序以及关键点的生成

// 将数组打平（dim value 有可能是数组，比如 stack 之后的）

// 将更新的数据用 key 索引

// 将最近距离问题转换成到椭圆中心 0,0 没有旋转的椭圆问题

// 将清空后的 defs 元素挂载到 el 下

// 将组件默认的配置项设置合并到传入的配置项

// 小于1像素的圆在图像上无法识别

// 小于分钟

// 小于起始圆弧

// 少用乘法：防止出现 -1.2 + 1.2 * 3 = 2.3999999999999995 的情况

// 局部刷新需要判定

// 层叠直方图场景，x 和 y 都是数组区间

// 层叠顺序翻转

// 居中的文本需要调整旋转度

// 展示 tooltip

// 展示 tooltip 内容框才渲染 tooltip

// 展示 tooltip 辅助线

// 展示 tooltipMarkers，tooltipMarkers 跟随数据

// 属性恢复至出厂状态

// 嵌套子组件更新

// 左下角

// 左侧超出

// 左侧躲避

// 左方,从下到上、右方,从上到下

// 左边

// 左边 padding

// 差值公式

// 已执行时间

// 已经在渲染树上的 shape

// 已经处理过的 legend

// 已经排序后的数据查找距离最小的

// 已经注册过了，则删除

// 布局图形、组件

// 平移分类的度量

// 平移度量

// 平铺树结构，方便根据 value（字符串） 获取到所有的 NodeItem 节点

// 应用 offset

// 应用到单个 DOM

// 应用当前状态

// 应用所有的样式

// 应用样式

// 应该只设置当前元素的 clip，不应该去修改 clip 本身，方便 clip 被复用

// 应该在 group 加个 insertAt 的方法

// 延迟生成

// 延迟生成 path，在动画场景下可能不会有拾取

// 开启状态

// 开始 mask 的标记

// 开始动画

// 开始执行动画的生命周期

// 开始时设置 capture: false，可以避免创建、resize 时触发事件

// 开始时间，不计算 react 渲染时间；

// 开始时，保证移动结束

// 开始的时候清理之前的状态

// 开始移动的标记

// 开始默认的数据；

// 引入所有内置的 shapes

// 弧形的起点和终点相同时，长轴和短轴的长度按 0 处理

// 弧线包括笛卡尔坐标系下的半圆弧线、极坐标系下以圆心为控制点的二阶曲线、笛卡尔坐标系下带权重的三阶曲线、极坐标系下带权重的以圆心为控制点的二阶曲线

// 归一化

// 当 path 不连续时，segmentL 可能为空，为空时需要作为 0 处理

// 当 width/height 设置为百分比时，通过 pixelLeft 方式转换的 width/height 值

// 当初加 clone 是因为 points 的引用关系，导致更新失败，可是现在貌似复现不出来了，所以暂时不进行 clone

// 当前 index 在那个行列

// 当前图形

// 当前点位于第index圈

// 当前点和上一个点一样的时候，忽略掉

// 当前索引 < 目标索引

// 当前索引 > 目标索引，直接插入到目标节点之前即可

// 当前节点将要所处的区域

// 当前节点将要被放置的位置

// 当前返回的位置

// 当前选中的范围

// 当前鼠标/touch所在位置的图形

// 当同时配置了 callback 和 cfg 时，以 callback 为准

// 当存在 unchecked 状态时不触发

// 当存在一个向量的长度为 0 时，夹角也为 0，即夹角的余弦值为 1

// 当存在整体的圆时，去除圆前面和后面的线，防止出现直线穿过整个圆的情形

// 当无 mask 时，将 width 应用到外层容器上

// 当是最后一行或者下面没有 view 时文本不显示

// 当曲线全部为负数时，取最大值，当曲线全部为正数时，取最小值，当曲线有正有负，则取零点

// 当某个父元素发生改变时，调用这个方法级联设置 refresh

// 当触发浏览器的 dragover 事件时，不会再触发 mousemove ，所以这时候的 dragenter, dragleave 事件需要重新处理

// 当设置了 maxWidth, maxHeight 时调整 rail 的宽度，

// 当这个 polygon 的点在一条线上的时候

// 当鼠标从 fromShape 移动到画布上时，重置鼠标样式

// 当鼠标从画布移动到 shape 或者从 preShape 移动到 shape 时，应用 shape 上的鼠标样式

// 当鼠标点击下去，同时移动时，进行 drag 判定

// 径向渐变

// 必须提供 defaultValue. 否则会导致下层依赖的 input 由非受控模式切换到受控模式

// 忽略掉一些配置

// 总共有几行

// 恢复事件

// 恢复可以拾取

// 或者说 ys 里面的值都相同，比如：[0, 0, 0, 0]

// 所以不需要复写 isInStrokeOrPath 的方法

// 所以这里做相应的处理

// 所有 shape 都是 canvas 的子元素

// 所有的 Coordinate map

// 所有的 SHAPES 都注册一下

// 所有的 attribute map

// 所有的 shape 都需要同步 clip

// 所有的 value 值

// 所有的 view 的 autoPadding 指向同一个引用

// 所有的值可能在画布的可视区外

// 所有的条件都通过，才算通过

// 所有调整维度的值数组

// 手工调用绘制接口

// 手机禁滚

// 打印警告提示

// 打标规则详见 ./label/base.ts#L263

// 执行 Action

// 执行入场动画

// 执行冒泡

// 执行完更新后设置状态位为更新

// 执行完更新后设置状态位为添加

// 执行完某个触发和反馈（子环节）

// 找到终止循环

// 找得到

// 投影距离 x1, y1 的向量，假设 p, p1, p2 三个点，投影点为 a

// 折线图以及区域图，一条线会对应一组数据，即多个 labels，为了区分这些 labels，需要在 line id 的前提下加上 x 字段值

// 抛出委托对象

// 拖动鼠标点下时的 shape

// 拖拽完成后，进行 enter，leave 的判定

// 拖拽开始

// 拖拽滑块的事件回调

// 拼音输入前保存一份旧值

// 拾取前的检测，只有通过检测才能继续拾取

// 拿到所有的 Geometry 的 Y scale，然后去重

// 拿到所有的 Geometry 的 分组字段 scale，然后打平去重

// 拿到缓存的内容

// 拿第一个 Geometry 的 X scale

// 指定 tickInterval 后 tickCount 不生效，需要重新计算

// 指定了动画配置则执行销毁动画

// 指定子类的prototype

// 按树的 dfs 前序排

// 按照 dim 维度分组

// 按照先保存第一个的逻辑循环一遍，最后一个不参与循环

// 按照方向计算 padding

// 按照树结构前顺排序

// 按照每一个分组来进行调整

// 按照角度进行计算，而不按照周长计算

// 按钮框框

// 按键抬起时，会终止拖拽、触发点击

// 按需构建 map

// 换行

// 排序

// 接受父 view 传入的参数

// 提供语法糖，使用更简单

// 提前终止

// 提前获取状态

// 提取出来的多边形包含闭合的和非闭合的，在这里统一按照多边形处理

// 插值的图形

// 插值的图形path，不考虑null

// 播放帧

// 操作不同的组件，反馈不一样

// 支持传入{ icon: null }来隐藏`Modal.confirm`默认的Icon

// 支持单独设置箭头的 stroke 和 lineWidth，若为空则使用 shape 的值

// 改变 range

// 改变 zIndex 不应该立即触发渲染 (调用 onCanvasChange('zIndex'))，需要经过 sort 再触发

// 改成原生的rect方法

// 放大

// 散点分开之后，距离边界的距离

// 数字类型直接匹配事件的 keyCode

// 数学定义上的参数，便于后面的计算

// 数据加工：分组 -> 数字化 -> adjust

// 数据发生变化

// 数据发生更新

// 数据点位置

// 数组处理逻辑

// 数组嵌套对象的场景不考虑

// 数组转换成颜色

// 整个圆是分割成两个圆

// 整体超出右侧

// 整体超出底部

// 整体超出顶部

// 整圆

// 文本旋转后，文本的对齐方式可能就不合适了

// 文本是否旋转

// 文本有可能发生旋转

// 文本的位置

// 文本被调整下去了，则添加拐点连接线

// 新建 element

// 新建交互实例

// 新生成的 shape

// 新的 element 没有 clip

// 新设置的属性与默认值进行合并

// 旋转

// 旋转到 xRotation 的角度

// 旋转前的起点坐标，且当长半轴和短半轴的长度为 0 时，坐标按 (0, 0) 处理

// 旋转文本

// 无内容则不展示，同时 tooltip 需要隐藏

// 无圆角时的策略

// 日期类型的 values 经常上文本类型，所以需要转换一下

// 时间类型需要 translate

// 时间精度补齐；

// 映射发生改变，则重新创建图形属性

// 是 auto padding，根据组件的情况，来计算 padding

// 是可捕获的，并且点在 tooltip dom 上

// 是否使用快速拾取的方案，默认为 false，上层可以打开

// 是否允许局部刷新图表

// 是否允许指定阶段名称执行

// 是否元素的父容器

// 是否在包围盒内

// 是否在多个多边形内部

// 是否在视图内自动裁剪

// 是否垂直

// 是否居中

// 是否忽略触发的列表项

// 是否支持对应字段的平移

// 是否是有效 bbox 判定，一些 NaN 或者 宽高为 0 的情况过滤掉

// 是否有子节点（包括自己）被选中

// 是否有父节点（包括自己）被选中

// 是否相交需要考虑 clip 的包围盒

// 是否自动绘制，不需要用户调用 draw 方法

// 是否被裁剪，被裁剪则不显示，不参与拾取

// 是否设置了 min, max，而不是直接取 this.min, this.max

// 是否重叠

// 是线性，直接返回

// 显示坐标轴标题详情信息

// 普通色块图，xs 和 ys 是数值

// 暂停倒放

// 暂定跟 name 绑定

// 暂时不支持标签上的 transform，后期增加;

// 暂时不考虑分页

// 暴露一些常量

// 更新

// 更新 _startPos

// 更新 coordinate controller

// 更新 coordinate 配置

// 更新 element

// 更新 left-arrow marker

// 更新 range

// 更新 region

// 更新 right-arrow marker

// 更新 start end range 范围

// 更新 ui

// 更新位置

// 更新内容

// 更新内部

// 更新则走更新逻辑；否则清空载重绘

// 更新动画配置，用户有可能在更新之前有对动画进行配置操作

// 更新发生层叠后的数据对应的度量范围

// 更新坐标系大小的时候，需要：

// 更新字符串

// 更新属性时，检测是否更改了 font、text

// 更新属性时，检测是否更改了 path

// 更新属性时，检测是否更改了 points

// 更新属性时，检测是否更改了箭头

// 更新属性的同时，可能会引起 DOM 的变化，这里对可能引起 DOM 变化的场景做了处理

// 更新当前 shape 的样式

// 更新当前已有的 components

// 更新数据

// 更新整个分组

// 更新时考虑capture

// 更新时考虑显示、隐藏

// 更新标题

// 更新样式

// 更新第一个节点

// 更新组件的图形

// 更新缓存

// 替换 checkedParent 下子树的值

// 最下的最后一个 STEP，使用 1 递增（用二分效果更高）

// 最后一个

// 最后一组

// 最后一行显示

// 最多显示 500 个数据标签

// 最大和最小限制

// 最大高度，会导致出现分页

// 最好是能从算法能解决这个问题，但是如果指定了 tickInterval，计算 ticks，也只能这么算，所以

// 最好禁止在 body 和 html 上边框 ，但 ie < 9 html 默认有 2px ，减去

// 最小值 <= 0 时显示 0

// 最终形态 l(0) 0:colors[0] 0.5:colors[1] 1:colors[2];

// 最终的绘制 render

// 最终调用 root view 的

// 有 4 种情况，

// 有 padding 的组件布局

// 有了 Z 后，当前节点从开始 M 的点开始

// 有可能 coordinate 变化

// 有可能为 false，所以不能直接判断

// 有可能已经销毁，设置了 undefined

// 有裁剪就剪切

// 未发生过排序

// 未指定 container 则创建

// 未设置时返回 Null，保证一致性

// 本来只有局部渲染模式下，才需要记录更新的元素队列

// 极坐标下 x 轴上的 crosshairs 表现为半径

// 极坐标下 y 轴上的 crosshairs 表现为圆弧

// 极坐标下使用通用的极坐标文本，转置则使用饼图

// 极坐标下多层环图

// 极坐标场景

// 极坐标系下 width 为弧长

// 构造 callback 方法

// 某个触发和反馈在本环节是否执行或

// 柱当柱状图全为负值时也需要从 0 开始生长，但是如果用户设置了则以用户的为准

// 柱状图数值轴默认从 0 开始

// 柱状图的 Y 轴要从 0 开始生长，但是如果用户设置了则以用户的为准

// 柱状图间隔与宽度相关配置

// 标准 ie 下 docElem.clientTop 就是 border-top

// 标准模式取 documentElement

// 标记为新的

// 标记为更新

// 标题单独在一行

// 标题对应的坐标轴上的点

// 标题的属性

// 样式更新了后再执行动画；

// 样式需要进行合并，不能单纯的替换，否则使用非常不方便

// 核心基类导出

// 根据 GBS 最新数据，A-Grade Browsers 都已支持 getBoundingClientRect 方法，不用再考虑传统的实现方式

// 根据 bbox 计算背景框的面积区域

// 根据 connectNulls 值处理 points

// 根据 customContent 渲染

// 根据 elementId 查找对应的 label，因为有可能一个 element 对应多个 labels，所以在给 labels 打标识时做了处理

// 根据 event 计算激活键数量

// 根据 region 计算当前 view 的 bbox 大小。

// 根据 tick 关键点绘制 path

// 根据columnWidthRatio/defaultSize/maxColumnWidth/minColumnWidth调整宽度

// 根据type对label布局

// 根据不同的度量分别调整位置

// 根据值分组

// 根据原始数据获取 tooltip item 中 name 值

// 根据圆心和半径获取点

// 根据坐标系类型获取整体的剪切区域配置信息

// 根据子节点确定 BBox

// 根据字段列表的值，拼接成 key

// 根据当前值获取占比

// 根据当前坐标设置动画点

// 根据数值个数使用对应的色板

// 根据数据点生成 Line 的两个关键点

// 根据数据点生成 tick shape 的 6 个关键点

// 根据方向设置渐变方向

// 根据最新的 coordinate 重新布局组件

// 根据条件设置 checked

// 根据条件设置 highlight

// 根据框选的记录来做过滤

// 根据椭圆公式计算 x*x/rx*rx + y*y/ry*ry;

// 根据点获取图形，提取成独立方法，便于后续优化

// 根据色相不同，色相转向不同

// 根据被框选的包围盒做过滤

// 根据角度求 x 坐标

// 根据角度求 y 坐标

// 根据角度获取，x,y

// 根据设置的矩阵，将向量转换相对于图形/分组的位置

// 根据选中的 element 的数据进行设置状态

// 根据配置获取 padding

// 框选

// 检查反下后的位置是否可以放下了，如果仍然放不下：

// 检查所有子元素是否可以刷新

// 检查所有的子元素是否应该更新

// 检测 activeItems 是否要全部取消

// 检测主题修改了

// 检测各边是否超出

// 检测左右位置

// 检测所有 activeElements 都要取消 highlight

// 检测是否允许触发对应的状态改变事件

// 检测是否换行

// 横向布局

// 正在加载则不绘制

// 正在拖拽中

// 正在拖拽时

// 正在被拖拽的图形

// 正方形

// 此刻属性

// 此处类型自动推导为 { label: string value: string }

// 此外，ie6 会忽略 html 的 margin 值，幸运地是没有谁会去设置 html 的 margin

// 每两个分面区域横向间隔xSPacing, 纵向间隔ySpacing

// 每个分类间的平均间距

// 每个分组中，分别按照不同的 dim 进行调整

// 每个分组内每条柱子的宽度占比，用户不可指定，用户需要通过 columnWidthRatio 指定

// 每个分面区域的横纵占比

// 每个的开始数据；

// 每帧的时间;

// 每次 16，调参工程师

// 每次都获取图形有一定成本，后期可以考虑进行缓存策略

// 每行有几列数据

// 水平坐标轴

// 水平布局

// 水平方向投影

// 水平方向的向量

// 水平方向：条形图系列

// 水平时至少有两个时才旋转

// 求以a为次幂，结果为b的基数，如 x^^a = b;求x

// 求出数组的最大值

// 求极值

// 没有 callback 或者用户 callback 返回值为空，则使用默认的逻辑处理

// 没有 diff 时直接返回最终 attrs，不需要额外动画

// 没有 params 的情况，是指没有指定 fields，直接返回配置的 values 常量

// 没有 y 字段，但是需要根据 y 调整

// 没有修改，则直接返回

// 没有动画

// 没有声明，则根据 toAttrs 做差值动画

// 没有对应的图形，则插入当前图形

// 没有按键按下时，则直接触发 mouse over 相关的各种事件

// 没有条件，则自身改成数组

// 没有设置 min, max 时

// 没有设置 stroke 不能被拾取, 没有线宽不能被拾取

// 没有超出，则计算剩余宽度

// 没有通过检测，则返回 null

// 没有配置背景色

// 沿着 rail 方向

// 注册 ComponentController

// 注册 G 渲染引擎

// 注册 G2 内置的 geometry

// 注册 Geometry

// 注册 Geometry Shape

// 注册 Geometry label 以及 Geometry Label 布局函数

// 注册 Geometry label 内置的布局函数

// 注册 Geometry 内置的 label

// 注册 Interaction Action

// 注册 facet

// 注册 interaction

// 注册 tooltip 的 interaction

// 注册主题

// 注册事件

// 注册内置的 Component

// 注册内置的 Facet

// 注册内置的 adjust

// 注册动画函数

// 注册的时候，需要校验 type 重名，不区分大小写

// 注册节点

// 注册需要的动画执行函数

// 注册黑暗主题

// 注册默认的 Interaction 交互行为

// 注册，第一次进入执行注册

// 注意: 由于计算精度问题，夹角为 0 的情况计算出来的角度可能是一个很小的值，还需要判断其与 0 是否近似相等

// 注意第二参数用 true，意思是即时 autoFit = false，forceFit() 调用之后一样是适配容器

// 注释掉的这段可能会加速拾取，上面的语句改写成 const bbox = element.cfg.cacheCanvasBBox;

// 注：jQuery 还考虑减去 docElem.clientLeft/clientTop

// 浏览器自动补全 input 的时候，会触发 keyDown、keyUp 事件，但此时 event.key 等为空

// 添加 hollowShape

// 添加 label

// 添加 parent 链接到父节点

// 添加 slider 组件

// 添加到跟 tooltip 同级的目录下

// 添加图形

// 添加图形或者分组时，需要把当前图元的矩阵设置进去

// 添加缓存 防止重新构建proxy

// 添加该 shape 对应的 hollow-shape

// 添加连接的图形

// 添加透明的背景，便于拾取和包围盒计算

// 清掉所有出场的。

// 清理 DOM

// 清理事件

// 清理指定区域

// 清理按下鼠标时缓存的值

// 清理掉所有的 active， unactive 状态

// 清理掉更新状态

// 清理掉缓存的包围盒

// 清理离屏缓存

// 清理缓存

// 清理缓存的对象

// 清理还在进行的绘制

// 清空

// 清空 SVG 元素

// 清空 defs 元素

// 清空标题

// 清除已有的 clip

// 清除延时状态

// 渲染 x 轴上的 tooltip 辅助线

// 渲染 y 轴上的辅助线

// 渲染在当前 dom 里；

// 渲染文本

// 渲染文本背景

// 渲染组件和 views

// 滑动过程中，计算偏移，更新滑块，然后 emit 数据出去

// 滑块相关的大小信息

// 漏斗图最底部

// 漏斗图的 size 是柱状图的两倍

// 点击滑道的事件回调,移动滑块位置

// 点击热区，设置透明矩形

// 点击选中，允许取消

// 点在多边形一条边上

// 点对称

// 点没有在圆弧上

// 热力图采用最小逼近策略查找 point 击中的数据

// 父元素 cacheCanvasBBox 计算的时候也不计算

// 特殊处理 area 的关键点数据，其关键点结构为 [{x: 0, y: 1}, {x: 0, y: 2}]

// 特殊逻辑：饼图需要填充满整个空间

// 状态下沉

// 状态提升

// 环半径为0时，默认无渐变，取渐变序列的最后一个颜色

// 现在还调用 element.getCanvasBBox(); 一个很大的原因是便于单元测试

// 生成 mask 的路径

// 生成 shape 的关键点

// 生成具体的 Action

// 生成分面布局信息

// 用于交互时

// 用于去重过滤

// 用于受控和非受控组件

// 用户传入的 id, 作为 container

// 用户在初始化的时候声明 visible: false

// 用户在图形通道上声明了常量字段 color('red'), size(5)

// 用户在进行 dodge 类型的 adjust 调整的时候设置了 dodgeBy 属性

// 用户声明了动画执行函数

// 用户如果在列定义中定义了 max

// 用户如果在列定义中定义了 min，则以用户定义的为准

// 用户定义了回调函数

// 用户有可能设置 min

// 用户未定义，则进行默认的逻辑

// 用户未配置 content，则默认为映射的第一个字段的值

// 用户没有指定任何规则，则使用默认的映射规则

// 用户没有设定旋转角度，同时设置自动旋转

// 用户直接配置样式属性

// 用户通过 view.scale() 接口指定了 values 属性

// 用户配置的数据，优先级更高

// 由于 crosshair 没有在 container 内，所以需要单独清理

// 由于 矩形的平行原理，所以只有 2 条投影轴: A -> B, B -> C

// 由于单个图例项变化，会引起全局变化，所以全部更新

// 由于对改变的图形放入 refreshElements 时做了优化，判定父元素 changed 时不加入

// 由于箭头的绘制依赖于 line 的诸多 attrs，因此这里不再对每个 attr 进行判断，attr 每次变化都会影响箭头的更新

// 由于计算圆弧的参数成本很大，所以要缓存

// 画布半径

// 画布圆心

// 画布销毁时自动停止动画

// 监听事件，绑定交互

// 目前 legend 的布局是以 viewBBox 为参照

// 目前先处理 平行矩形 的场景, 其他多边形不处理

// 目前先处理矩形的场景

// 目前针对配置项还没有特别好的 view 更新机制，为了不影响主流流程，所以在这里直接销毁

// 直接使用 x,y 的导数计算， x' = -rx * sin(t); y' = ry * cos(t);

// 直接使用 分类图例渲染

// 直接使用椭圆的 api

// 直接控制显示、隐藏

// 直接用距离，如果同时存在边和填充时，可以减少两次计算

// 直接触发 canvas 上的事件

// 直接设置

// 直接设置样式，不等待鼠标移动时再设置

// 直线坐标轴下任一点的向量方向都相同

// 直线的文本需要同直线垂直

// 直角坐标系

// 直角坐标系 非转置：最小值直接取 坐标系 minY

// 直角坐标系下绘制曲线时限制最大值、最小值

// 相关问题列表

// 相同位置不重复展示

// 相同的阶段允许同时执行

// 相对于屏幕位置没变，而 left/top 变了

// 矩形的四个关键点，结构如下（左下角顺时针连接）

// 矩阵 * 向量

// 矩阵中行列相等，等于指定的字段个数

// 确保tooltip已经创建的情况下

// 确实要调整，甚至可能会调整高度宽度

// 确认更新的元素，这个优化可以提升 10 倍左右的性能，10W 个带有 group 的节点，局部渲染会从 90ms 下降到 5-6 ms

// 示能在整个过程中都可用

// 禁止继续拾取，否则无法进行 dragover,dragenter,dragleave,drop的判定

// 离屏渲染

// 离开当前时设值 300；大于 300 则为离开。

// 离开时不会 render， 导到离开时数值不变，改用 func 。。

// 离散 scale 变换成索引

// 移动元素

// 移动到 element 上 active

// 移动端事件

// 移除

// 移除 action

// 移除同步的关系

// 移除多余的元素

// 移除最后一个满足 checked 的父节点的所有子孙节点 value

// 移除连接

// 稳定排序

// 空子级状态下刷新不做处理

// 空或者只有一个点并配置不展示时

// 空数组，或者一个点返回 false

// 窗口边框标准是设 documentElement ,quirks 时设置 body

// 立即执行一次

// 第一个 mouseenter 和 mouseleave 的停止即可，因为后面的都是前面的 Parent

// 第一列显示

// 第一格的 s 限制在 0.06-0.1 之间

// 第一次进入，默认进场

// 第一组

// 第一象限

// 第一进入，appear 为 true 时默认用 enter 或 tween-one 上的效果

// 第三个参数，既可以是缓动参数 easing，也可以是回调函数 callback

// 第三象限

// 第三象限 & 第四象限

// 第二个参数，既可以是动画最终状态 toAttrs，也可以是自定义帧动画函数 onFrame

// 第二个参数，既可以是执行时间 duration，也可以是动画参数 animateCfg

// 第二象限

// 第四个参数，既可以是回调函数 callback，也可以是延迟时间 delay

// 第四象限

// 筛选图形

// 筛选数据

// 箭头是否填充需要手动设置，不会继承自 shape 的值

// 约束值在 scale 的 range 之间

// 约束到 0 - 1 范围内

// 级联清理

// 级联获取 field 对应的 scale，如果 view 上没有，遍历子 view

// 纵向做了 y 轴镜像之后，数据也需要镜像反转

// 线

// 线性则使用线性值

// 线性情况下count值

// 线性方程

// 线性渐变

// 组件的名称

// 组合 plot 事件

// 组合键

// 组成 mask 的各个点

// 组装字体

// 组间距和组内间距均未配置

// 终止 crosshair

// 终止循环

// 终点状态

// 经过空白区域

// 结束之后，取消绑定的事件

// 绘制

// 绘制 Button 和 文本

// 绘制 arc

// 绘制 clip 路径

// 绘制 crosshair

// 绘制 label

// 绘制 legend 的选项

// 绘制 marker

// 绘制 path

// 绘制 shape

// 绘制 ticks 包括文本和 tickLine

// 绘制两条横线

// 绘制两条竖线

// 绘制后消除标记

// 绘制后，消除更新标记

// 绘制图例项

// 绘制图形

// 绘制图形时需要考虑 region 限制

// 绘制图片

// 绘制坐标轴刻度线

// 绘制坐标轴刻度线，包括子刻度线

// 绘制坐标轴线

// 绘制子元素

// 绘制完成后，再定位

// 绘制局部

// 绘制或者填充

// 绘制所有图形

// 绘制所有的图例选项

// 绘制文本

// 绘制文本的背景

// 绘制文本，同时考虑填充和绘制边框

// 绘制文本，考虑多行的场景

// 绘制时被跳过，一般发生在分组隐藏时

// 绘制栅格

// 绘制栅格线

// 绘制栅格线间的间隔

// 绘制标题

// 绘制标题，标题在图例项的上面

// 绘制的时候缓存包围盒

// 绘制线

// 绘制背景

// 统一处理所有的回调

// 统一小数位数

// 统一的 offsetParent 方法

// 统一移动到对应的位置

// 统一设置文本的角度

// 缓存

// 缓存 context 对象

// 缓存从当前 view 创建的 scale key

// 缓存原始地址，可以做对比，防止重复加载图片

// 缓存开始时的矩阵，防止反复拖拽

// 缓存模板设置的各种 DOM

// 缓存起来

// 缓存透明度

// 缓存，用于更新

// 缩放度量

// 翻转

// 考虑 size(10), shape('circle') 等场景

// 考虑 x 维度相同，y 是数组区间的情况

// 背景

// 背景从 (0,0) 开始绘制

// 背景色 shape

// 背景色 shape 不设置事件捕获

// 自动裁剪不在 view 内的区域

// 自定义 shape 有可能返回空 shape

// 自定义插入新主题

// 自身属性

// 自适应大小

// 至少有一个对象，且第一个对象为 shape

// 节点不一定有parentNode

// 若弧的起始点和终点重叠则错开一点

// 范围

// 范围大于整个 view 的范围，则返回 null

// 获取 itemWidth 的最终设置

// 获取 label 上的字段

// 获取 label 的位置

// 获取 label 的配置项

// 获取 label 相关的 x，y 的值，获取具体的 x, y，防止存在数组

// 获取 labels 组件

// 获取 step 的回调函数，如果已经生成，则直接返回，如果未生成，则创建

// 获取 style 配置

// 获取 tooltip crosshairs 存储的容器

// 获取 tooltip 上的字段

// 获取 tooltip 配置，因为用户可能会通过 view.tooltip() 重新配置 tooltip，所以就不做缓存，每次直接读取

// 获取 tooltipMarkers 存储的容器

// 获取 touch 事件的 clientX 和 clientY 需要单独处理

// 获取 track 的属性，由 path 和 颜色构成

// 获取 四个关键点

// 获取fromPath的pathSegment的端点，根据toPath的指令对其改造

// 获取中心的位置

// 获取事件的当前点的信息

// 获取从source到target所需改动

// 获取分组的构造函数

// 获取动画配置

// 获取发生委托时的对象，在事件中抛出

// 获取向量

// 获取图例项的高度，如果未定义，则按照 name 的高度计算

// 获取图形属性上的 fields

// 获取图形的包围盒

// 获取坐标轴的向量

// 获取坐标轴线的 path

// 获取垂直于坐标轴的向量

// 获取多个状态量的合并值

// 获取存储 tooltipMarkers 和 crosshairs 的容器

// 获取对应的 scale

// 获取属性值，将值映射到视觉通道

// 获取度量计算时，value占的定义域百分比

// 获取当前的位置

// 获取当前绘制的点

// 获取总的 matrix

// 获取所有允许执行 Action 的组件

// 获取扇形 path

// 获取扇形 path（其实是一个圆环，从 coordinate 的起始角度到结束角度）

// 获取文本的位置

// 获取文本的对齐方式，为了自适应真实操碎了心

// 获取映射至常量的值

// 获取最终的 offset

// 获取构造函数

// 获取某个环节的唯一的键值

// 获取每个 x 对应的最大的值

// 获取每个 xField 值中的最大值

// 获取每个维度对应的数据配置片段

// 获取沿坐标轴方向的向量

// 获取滑块的 path

// 获取滑轨的宽高信息

// 获取点在椭圆上的角度

// 获取画布的包围盒

// 获取目标节点的下一个节点

// 获取离屏的 ctx 进行计算

// 获取组件内部布局占的包围盒

// 获取组件的 layout bbox

// 获取缓存的 bbox，如果这个 bbox 还存在则说明父元素不是矩阵发生了改变

// 获取虚拟 Group

// 获取调整的位置

// 获取路径的配置项

// 获取连接的 path

// 获取配置项中的值，当前 scale 上的值可能会被修改

// 获取需要替换的属性，如果原先图形元素存在，而新图形不存在，则设置 undefined

// 获取顺时针方向的向量

// 获取颜色对应的 scale

// 获取默认数据

// 获取默认样式

// 获得更新数据所有的 keys

// 菱形

// 落到 0 - positiveMin 之间

// 虽然数学上 b 不支持负数，但是这里需要支持 负数

// 螺线圈数

// 螺线系数

// 补充 tick 的 id，为动画和更新做准备

// 补全 ticks

// 补齐数据空数据为默认值

// 表示弧线的方向，0 表示从起点到终点沿逆时针画弧, 1 表示顺时针

// 被组件触发

// 被裁减掉的和不在包围盒内的不进行计算

// 裁剪

// 要求为元素节点，且不能为 defs 节点

// 覆盖 Container 中通过遍历的方式获取 shape 对象的逻辑，直接走 SVG 的 dom 拾取即可

// 覆盖基类的 afterAttrsChange 方法

// 覆盖配置项，而不替代

// 解决 https://github.com/ant-design/ant-design/issues/12401 的问题

// 解析用户的动画配置

// 解析配置

// 触发 mask 的事件

// 触发 shape 上的事件

// 触发事件

// 触发事件的路径

// 触发源由于 element 导致

// 触发源由组件导致

// 触发目标事件，目标只能是 shape 或 canvas

// 触发绘制

// 计算 4 个顶点

// 计算 verticalLimitLength

// 计算出来的应该保存的长度

// 计算分面数据

// 计算包围盒时，需要缓存，这是一个高频的操作

// 计算单位

// 计算原始值值占的百分比

// 计算宽度

// 计算当前值在刻度中的占比

// 计算框选区域

// 计算每个 shape 的 size

// 计算每段的长度和总的长度

// 计算比例

// 计算点到椭圆圆弧的距离，暂时使用近似算法，后面可以改成切割法求最近距离

// 计算画布的 viewBBox

// 计算相对于画布的包围盒

// 记录下是在什么时候暂停的

// 记录下点击的位置、图形，便于拖拽事件、click 事件的判定

// 记录当前 x 的位置

// 记录当前时间;

// 记录总时间;

// 记录时间轴数据;

// 设定 crosshair 的位置，需要区分 x,y

// 设置

// 设置 annotation

// 设置 canvas 元素的宽度和高度，会重置缩放，因此 context.scale 需要在每次设置宽、高后调用

// 设置 checked 时，保留之前已经 checked 的项

// 设置 clip

// 设置 elem 相对 elem.ownerDocument 的坐标

// 设置 events

// 设置 highlight 时，保留之前已经 Highlight 的项

// 设置 min, max

// 设置 shape 上需要携带的信息

// 设置 start

// 设置 style

// 设置 sync 同步的 key

// 设置 text

// 设置 throttle

// 设置 title 文本

// 设置 x 方向的 filter

// 设置 y 方向的 filter

// 设置了 draggable 的 canvas 才能触发 drag 相关的事件

// 设置了 draggable 的 shape 才能触发 drag 相关的事件

// 设置了 item 的最大宽度限制，并且超出了，进行省略处理

// 设置了最大宽度

// 设置元素的 highlight

// 设置兄弟 view 的状态

// 设置全局的 legend 配置

// 设置分面的数据

// 设置初始宽度

// 设置初始显示状态

// 设置初始样式

// 设置动画配置，如果 geometry 的动画关闭了，那么 label 的动画也会关闭

// 设置单独的 Group 用于 setClip

// 设置坐标系

// 设置文本

// 设置标志位，防止头尾都没有附加字符

// 设置渲染引擎为 canvas，只读属性

// 设置状态

// 设置由组件选项导致的状态变化

// 设置矩阵

// 设置组件的 item active

// 设置组间距但未设置组内间距情况，避免组间距过小导致图形重叠，需乘以wr

// 设置虚线样式

// 设置虚线，只支持数组形式，非数组形式不做任何操作

// 设置跨域

// 设置默认值

// 设置默认值，并存储配置

// 设置默认动画数据;

// 设置默认数据

// 该状态已经开启，则返回

// 语法糖，在 view API 上增加原型方法

// 说明 points 未放入 polygons 或者 polyline

// 说明从某个图形直接移动到了画布外面，

// 调整 handler 的位置，如果未存在则绘制

// 调整 scale

// 调整 title 的 offset

// 调整位置

// 调整各个图形位置，适应宽高的限制

// 调整数据

// 调整目前包括：

// 调整组内间隔

// 调整组间距

// 调整范围

// 调用 view 的创建

// 调用根节点 view 的方法获取

// 调用隐藏

// 贴近圆周

// 赋新的状态值

// 起始状态

// 超出右侧

// 超出右边界

// 超出左侧

// 超出左边界

// 超出左边界， 则取第一个

// 超出底部

// 超出自动省略

// 超出顶部

// 超长的时候，tooltip tip 最大宽度为 50%，然后可以换行

// 趋势图数据

// 跟 attr 相关的配置

// 跳出循环

// 跳帧事件 moment;

// 跳过图形的拾取，在某些图形中可以省略一倍的检测成本

// 转成 object

// 转换 path 的格式

// 转换一下不与 canvas 兼容的属性名

// 转换为原始值

// 转换为画布坐标

// 转换到 0 - 2 * Math.PI 之间

// 转换到 0 - 2PI 内

// 转换成 0， 0 为中心的椭圆计算

// 转换成像素值

// 辅助线是否要跟随鼠标

// 输入可能是 dirty

// 边界值修正

// 边界判断

// 过去定义 text 作为 count 传入，与 antd 存在冲突，现更改逻辑

// 过滤values[]中 NaN/undefined/null 等

// 过滤出全部满足条件的数据

// 过滤多余的直线

// 过滤非法数据，排序

// 近似求解 https://community.khronos.org/t/3d-cubic-bezier-segment-length/62363/2

// 返回一个函数

// 返回值

// 还在拖拽过程中

// 这个 API 理论上用户量不多，所以暂时不发大版本，所以先暂时打一个 warning。

// 这个分支说明此次局部刷新，所有的节点和父元素没有发生变化，仅需要检查包围盒（缓存）是否相交即可

// 这个判定 10W 个图形下差不多能够节省 5-6 ms 的开销

// 这个地方如果用户添加了 name, 则附加 name ，否则就添加自己的 name

// 这个地方的逻辑比较复杂，简单画了一张图：https://www.yuque.com/antv/ou292n/pcgt5g#OW1QE

// 这个地方需要判定，在 G6 的场景每个 group 都有 transform 的场景下性能会开销非常大

// 这个方法以前直接使用的 getCanvasBBox，由于 group 上没有缓存，所以每次重新计算，导致性能开销比较大

// 这个方法在 text 时没有可以做的事情，如果要支持文字背景时可以考虑

// 这个方法复写了 g-base 的 getShape

// 这些缓存都是第一次需要时计算和存储，虽然增加了复杂度，但是频繁调用的方法，性能有很大提升

// 这时候的拾取假设图形/分组在上一次绘制都在视窗内，但是上面已经判定了 isInView 所以意义不大

// 这是一段 hack 的代码

// 这样可以兼容非点击方式展开

// 这段应该改成局部渲染

// 这种方式如果发生遮挡会出现问题

// 这种方案会在水平或者竖直的情况下载线的延长线上有半 lineWidth 的误差

// 这里会循环调用 _setImage 方法，但不会再走这个分支

// 这里因为代码公用，所以直接全部注册

// 这里必须保留，原因是后面子 view 的 viewBBox 或根据 parent 的 coordinateBBox

// 这里是 dom 原生事件，绑定在 dom 元素上的

// 这里暂时只对 tail 做处理

// 这里的成本比较大，如果不绘制则不再

// 进行 adjust 数据调整

// 进行坐标轴布局，应该是取 padding 的并集，而不是进行相加

// 进行添加、更新、销毁操作

// 迭代 4 次

// 迭代三次，划分成 8 段求长度

// 逆时针，需要将 startAngle 和 endAngle 转置，因为 G2 极坐标系为顺时针方向

// 递归 view 中所有的 Geometry，进行创建 legend

// 递归处理子 view

// 递归查找，并合并结果

// 递归渲染

// 通过 refresh 的判定，可以不刷新没有发生过变化的分组，不在视窗内的分组等等

// 通过 value 查找树节点

// 通过绘制数据的变更来判断是否需要更新，因为用户有可能会修改图形属性映射

// 逻辑和 render 保持一致

// 遇到 'M' 判定是否是新数组，新数组中没有点

// 遍历处理每一个创建逻辑

// 遍历所有数据集合

// 遍历每一个 attrOption，各自创建 Attribute 实例

// 遍历获取需要删除的图形元素

// 避免出现null、undefined

// 避免出现数字作为Key的情况，会进行按照数字的排序

// 避免遮挡，如果还不够的话，再考虑开放用户配置

// 避让规则，优先显示在两侧，只有显示不下的时候，才显示在中间

// 那么对于转置了的极坐标，半径轴显示的是 x 轴对应的数据

// 那么有可能会出现 elements 都为空，所以最终 group

// 都只有一个点，绘制一条竖线

// 都要取消，则取消所有的 active，unactive 状态

// 配置 labelLine

// 配置了背景色

// 配置信息存储

// 配置的相对值，相对于画布

// 重复位置，直接隐藏

// 重新做延时调用

// 重新构建缓存

// 重新渲染

// 重新计算 cp1 的值

// 重新计算 layout bbox，考虑到 line 不显示

// 重新计算 nextCp0 的值

// 重新计算 totalPagesCnt

// 重新计算最大最小值

// 重新设置 text 位置

// 重新调整位置

// 重置 capture 属性

// 重置 title

// 重置位置

// 重置对应部分的翻转逻辑

// 重置滑块 handler

// 重置绘制 path 存储的缓存

// 重置绘制时开始的位置，如果绘制边框，考虑边框的 padding

// 金字塔最底部

// 针对不同的滑动组件，处理的方式不同

// 针对大数据量进行优化配置

// 针对时间分类类型，会将时间统一转换为时间戳

// 销毁 controller 中的组件

// 销毁 interactions

// 销毁前事件，销毁之后已经没有意义了，所以不抛出事件

// 销毁原先的离线 Group

// 销毁子元素

// 销毁被删除的 elements

// 销毁，减少内存占用

// 锁定 tooltip 时不隐藏

// 键盘事件 keyCode 别名

// 镜像最多两个

// 防止一个字段创建两个 legend

// 防止代理已经代理过的对象

// 防止出错

// 防止反复刷新

// 防止发生改变的 elements 没有 region 的场景，这会发生在多个情况下

// 防止只设置单个属性的名字

// 防止未设置 id

// 防止浮点数加法出现问题

// 防止滑动到 canvas 外部之后，状态丢失

// 防止第一个命令不是 'M'

// 防止被 clear 了，offScreenBBox 不存在

// 防止闪烁

// 防止防止在页头报错

// 阻止继续冒泡，防止重复事件触发

// 阻止继续向上冒泡

// 附加 element 的 name, name 现在支持数组了，很好用了

// 附加委托信息，用于事件

// 附加状态对应的样式

// 除了d和这points外的标签动画；

// 随机出来的字段值

// 随机的范围

// 隐藏逻辑：一个 view 中的 Geometry 必须 x 字段一致

// 需要假设上一个线段为 C 或者 S

// 需要假设上一个节点的命令为 Q

// 需要全部清理 active 和 unactive

// 需要判定，asin 的参数 -1， 1

// 需要动画结束时移除图形

// 需要在外面统一做，同时处理 V,H,S,T 等特殊指令

// 需要处理 active 和 unactive 的互斥

// 需要展示文本

// 需要把已存在的 view 销毁，否则会重复创建

// 需要更新 visible 变量

// 需要注意可能没有 region 的场景

// 需要清理 canvas 画布内容，否则ios下 创建的canvas垃圾未回收，导致Total canvas memory use exceeds问题

// 需要清理掉延迟绘制的帧

// 需要清空配置项

// 需要生成关键点

// 需要考虑数组嵌套数组的场景

// 需要进行动画

// 需要闭合

// 非函数类型的值才能做插值

// 非受控模式更新 value

// 非垂直，或者非水平时不处理遮挡问题

// 非委托事件

// 非常奇葩的 js 特性

// 非数组处理逻辑

// 非最后一行

// 非极坐标场景

// 非根 view，不处理 legend

// 非漏斗图底部

// 非线性，使用 scale 变换

// 非自动渲染模式下，手动调用 canvas.draw() 重新渲染

// 顶层容器，从 canvas 中取值 宽高

// 顺时针还是逆时针

// 预先注册 raf, 初始动画数值。

// 预处理 ticks 确定位置和补充 id

// 首先通过 step 计算，找出最大的未超出长度的

// 高亮的颜色

// 高频率调用的地方直接使用 this.cfg.xxx

// 默认 smooth, undefined 也为 smooth

// 默认不渲染转置极坐标下的坐标轴

// 默认为 true

// 默认从 d3-ease 中获取

// 默认使用 tick.name 作为id

// 默认使用 update

// 默认填充一维 1*xx

// 默认展示 x 轴上的辅助线

// 默认情况

// 默认所有 overlap 都可执行

// 默认打开状态时推出 level;

// 默认放在 bottom

// 默认文本属性

// 默认样式

// 默认的 y 的值

// 默认的动画参数配置

// 默认箭头的边长为 10，夹角为 60 度

// 默认背景色，copy from active-region

// 默认返回 getBBox，不同的组件内部单独实现

// 鼠标 hover 的样式

//! author : Anthony : https://github.com/anthonylau

//! author : Ben : https://github.com/ben-lin

//! author : Chris Lam : https://github.com/hehachris

//! author : Konstantin : https://github.com/skfd

//! author : LI Long : https://github.com/baryon

//! author : Zeno Zeng : https://github.com/zenozeng

//! author : suupic : https://github.com/suupic

//! author : uu109 : https://github.com/uu109

//! authors : Tim Wood, Iskren Chernev, Moment.js contributors

//! license : MIT

//! locale : Chinese (China) [zh-cn]

//! locale : Chinese (Hong Kong) [zh-hk]

//! locale : Chinese (Taiwan) [zh-tw]

//! locale : Japanese [ja]

//! moment.js

//! moment.js locale configuration

//! momentjs.com

//! version : 2.29.4

//# sourceMappingURL=AnimationFrame.js.map

//# sourceMappingURL=BoundCallbackObservable.js.map

//# sourceMappingURL=BoundNodeCallbackObservable.js.map

//# sourceMappingURL=DeferObservable.js.map

//# sourceMappingURL=FastMap.js.map

//# sourceMappingURL=ForkJoinObservable.js.map

//# sourceMappingURL=IfObservable.js.map

//# sourceMappingURL=Immediate.js.map

//# sourceMappingURL=IteratorObservable.js.map

//# sourceMappingURL=Map.js.map

//# sourceMappingURL=MapPolyfill.js.map

//# sourceMappingURL=Notification.js.map

//# sourceMappingURL=Observable.js.map

//# sourceMappingURL=Observer.js.map

//# sourceMappingURL=PromiseObservable.js.map

//# sourceMappingURL=ReplaySubject.js.map

//# sourceMappingURL=Rx.js.map

//# sourceMappingURL=Scheduler.js.map

//# sourceMappingURL=Set.js.map

//# sourceMappingURL=Subscriber.js.map

//# sourceMappingURL=Subscription.js.map

//# sourceMappingURL=SubscriptionLog.js.map

//# sourceMappingURL=SubscriptionLoggable.js.map

//# sourceMappingURL=UsingObservable.js.map

//# sourceMappingURL=active-region.js.map

//# sourceMappingURL=active.js.map

//# sourceMappingURL=add-event-listener.js.map

//# sourceMappingURL=adjust-color.js.map

//# sourceMappingURL=adjust-position.js.map

//# sourceMappingURL=adjust.js.map

//# sourceMappingURL=ajax.js.map

//# sourceMappingURL=align.js.map

//# sourceMappingURL=animationFrame.js.map

//# sourceMappingURL=annotation.js.map

//# sourceMappingURL=applyMixins.js.map

//# sourceMappingURL=arc-2-cubic.js.map

//# sourceMappingURL=arc-params.js.map

//# sourceMappingURL=arc.js.map

//# sourceMappingURL=area.js.map

//# sourceMappingURL=arrow.js.map

//# sourceMappingURL=asap.js.map

//# sourceMappingURL=assign.js.map

//# sourceMappingURL=async.js.map

//# sourceMappingURL=attr.js.map

//# sourceMappingURL=audit.js.map

//# sourceMappingURL=auditTime.js.map

//# sourceMappingURL=augment.js.map

//# sourceMappingURL=auto-ellipsis.js.map

//# sourceMappingURL=auto-hide.js.map

//# sourceMappingURL=auto-rotate.js.map

//# sourceMappingURL=auto.js.map

//# sourceMappingURL=await-to-js.umd.js.map

//# sourceMappingURL=axis-description.js.map

//# sourceMappingURL=axis.js.map

//# sourceMappingURL=base.js.map

//# sourceMappingURL=bbox.js.map

//# sourceMappingURL=bezier.js.map

//# sourceMappingURL=bindCallback.js.map

//# sourceMappingURL=bindNodeCallback.js.map

//# sourceMappingURL=bisector.js.map

//# sourceMappingURL=box.js.map

//# sourceMappingURL=buffer.js.map

//# sourceMappingURL=bufferCount.js.map

//# sourceMappingURL=bufferTime.js.map

//# sourceMappingURL=bufferToggle.js.map

//# sourceMappingURL=bufferWhen.js.map

//# sourceMappingURL=button.js.map

//# sourceMappingURL=cache.js.map

//# sourceMappingURL=callback.js.map

//# sourceMappingURL=candle.js.map

//# sourceMappingURL=canvas.js.map

//# sourceMappingURL=cartesian.js.map

//# sourceMappingURL=cat.js.map

//# sourceMappingURL=catch.js.map

//# sourceMappingURL=category.js.map

//# sourceMappingURL=catmull-rom-2-bezier.js.map

//# sourceMappingURL=chart.js.map

//# sourceMappingURL=circle.js.map

//# sourceMappingURL=clamp.js.map

//# sourceMappingURL=clear-animation-frame.js.map

//# sourceMappingURL=clip.js.map

//# sourceMappingURL=clone.js.map

//# sourceMappingURL=collision-detect.js.map

//# sourceMappingURL=color.js.map

//# sourceMappingURL=combineAll.js.map

//# sourceMappingURL=combineLatest.js.map

//# sourceMappingURL=component.js.map

//# sourceMappingURL=concat.js.map

//# sourceMappingURL=concatAll.js.map

//# sourceMappingURL=concatMap.js.map

//# sourceMappingURL=concatMapTo.js.map

//# sourceMappingURL=constant.js.map

//# sourceMappingURL=container.js.map

//# sourceMappingURL=contains.js.map

//# sourceMappingURL=context.js.map

//# sourceMappingURL=continuous.js.map

//# sourceMappingURL=coordinate.js.map

//# sourceMappingURL=core.js.map

//# sourceMappingURL=count.js.map

//# sourceMappingURL=create-by-style-sheet.js.map

//# sourceMappingURL=create-dom.js.map

//# sourceMappingURL=create-theme.js.map

//# sourceMappingURL=css-const.js.map

//# sourceMappingURL=cubic.js.map

//# sourceMappingURL=cursor.js.map

//# sourceMappingURL=d3-linear.js.map

//# sourceMappingURL=dark.js.map

//# sourceMappingURL=data-marker.js.map

//# sourceMappingURL=data-region.js.map

//# sourceMappingURL=debounce.js.map

//# sourceMappingURL=debounceTime.js.map

//# sourceMappingURL=deep-mix.js.map

//# sourceMappingURL=defaultIfEmpty.js.map

//# sourceMappingURL=defer.js.map

//# sourceMappingURL=delay.js.map

//# sourceMappingURL=delayWhen.js.map

//# sourceMappingURL=dematerialize.js.map

//# sourceMappingURL=dependents.js.map

//# sourceMappingURL=diff.js.map

//# sourceMappingURL=difference.js.map

//# sourceMappingURL=dim-rect.js.map

//# sourceMappingURL=direction.js.map

//# sourceMappingURL=distinct.js.map

//# sourceMappingURL=distinctUntilChanged.js.map

//# sourceMappingURL=distinctUntilKeyChanged.js.map

//# sourceMappingURL=distribute.js.map

//# sourceMappingURL=do.js.map

//# sourceMappingURL=dodge.js.map

//# sourceMappingURL=dom.js.map

//# sourceMappingURL=drag.js.map

//# sourceMappingURL=draw.js.map

//# sourceMappingURL=each.js.map

//# sourceMappingURL=edge.js.map

//# sourceMappingURL=element.js.map

//# sourceMappingURL=elementAt.js.map

//# sourceMappingURL=ellipse.js.map

//# sourceMappingURL=ellipsis-text.js.map

//# sourceMappingURL=empty.js.map

//# sourceMappingURL=ends-with.js.map

//# sourceMappingURL=errorObject.js.map

//# sourceMappingURL=event-contoller.js.map

//# sourceMappingURL=event.js.map

//# sourceMappingURL=every.js.map

//# sourceMappingURL=exhaust.js.map

//# sourceMappingURL=exhaustMap.js.map

//# sourceMappingURL=expand.js.map

//# sourceMappingURL=ext.js.map

//# sourceMappingURL=extend.js.map

//# sourceMappingURL=extended.js.map

//# sourceMappingURL=facet.js.map

//# sourceMappingURL=factory.js.map

//# sourceMappingURL=fade.js.map

//# sourceMappingURL=fecha.umd.js.map

//# sourceMappingURL=fill-path-by-diff.js.map

//# sourceMappingURL=fill-path.js.map

//# sourceMappingURL=filter.js.map

//# sourceMappingURL=finally.js.map

//# sourceMappingURL=find-index.js.map

//# sourceMappingURL=find.js.map

//# sourceMappingURL=findIndex.js.map

//# sourceMappingURL=first-value.js.map

//# sourceMappingURL=first.js.map

//# sourceMappingURL=fixed-base.js.map

//# sourceMappingURL=flatten-deep.js.map

//# sourceMappingURL=flatten.js.map

//# sourceMappingURL=for-in.js.map

//# sourceMappingURL=forkJoin.js.map

//# sourceMappingURL=format-path.js.map

//# sourceMappingURL=format.js.map

//# sourceMappingURL=from.js.map

//# sourceMappingURL=fromEvent.js.map

//# sourceMappingURL=fromEventPattern.js.map

//# sourceMappingURL=fromPromise.js.map

//# sourceMappingURL=funnel.js.map

//# sourceMappingURL=generate.js.map

//# sourceMappingURL=geometry.js.map

//# sourceMappingURL=get-arc-params.js.map

//# sourceMappingURL=get-ellipsis-text.js.map

//# sourceMappingURL=get-height.js.map

//# sourceMappingURL=get-line-intersect.js.map

//# sourceMappingURL=get-outer-height.js.map

//# sourceMappingURL=get-outer-width.js.map

//# sourceMappingURL=get-path-points.js.map

//# sourceMappingURL=get-range.js.map

//# sourceMappingURL=get-ratio.js.map

//# sourceMappingURL=get-style.js.map

//# sourceMappingURL=get-type.js.map

//# sourceMappingURL=get-width.js.map

//# sourceMappingURL=get-wrap-behavior.js.map

//# sourceMappingURL=get.js.map

//# sourceMappingURL=gradient.js.map

//# sourceMappingURL=grammar-interaction.js.map

//# sourceMappingURL=graph-event.js.map

//# sourceMappingURL=graphic.js.map

//# sourceMappingURL=graphics.js.map

//# sourceMappingURL=grid.js.map

//# sourceMappingURL=group-by.js.map

//# sourceMappingURL=group-component.js.map

//# sourceMappingURL=group-data.js.map

//# sourceMappingURL=group-to-map.js.map

//# sourceMappingURL=group.js.map

//# sourceMappingURL=groupBy.js.map

//# sourceMappingURL=grow-in.js.map

//# sourceMappingURL=handler.js.map

//# sourceMappingURL=has-key.js.map

//# sourceMappingURL=has-value.js.map

//# sourceMappingURL=has.js.map

//# sourceMappingURL=head.js.map

//# sourceMappingURL=heatmap.js.map

//# sourceMappingURL=helix.js.map

//# sourceMappingURL=helper.js.map

//# sourceMappingURL=hide-overlap.js.map

//# sourceMappingURL=highlight-by-color.js.map

//# sourceMappingURL=highlight-by-x.js.map

//# sourceMappingURL=highlight-util.js.map

//# sourceMappingURL=highlight.js.map

//# sourceMappingURL=hit.js.map

//# sourceMappingURL=hollow-rect.js.map

//# sourceMappingURL=hollow.js.map

//# sourceMappingURL=html-component.js.map

//# sourceMappingURL=html-theme.js.map

//# sourceMappingURL=html.js.map

//# sourceMappingURL=identity.js.map

//# sourceMappingURL=if.js.map

//# sourceMappingURL=ignoreElements.js.map

//# sourceMappingURL=image.js.map

//# sourceMappingURL=immer.cjs.production.min.js.map

//# sourceMappingURL=immer.esm.js.map

//# sourceMappingURL=index-of.js.map

//# sourceMappingURL=index.js.map

//# sourceMappingURL=interaction.js.map

//# sourceMappingURL=interface.js.map

//# sourceMappingURL=interfaces.js.map

//# sourceMappingURL=interval.js.map

//# sourceMappingURL=is-arguments.js.map

//# sourceMappingURL=is-array-like.js.map

//# sourceMappingURL=is-array.js.map

//# sourceMappingURL=is-boolean.js.map

//# sourceMappingURL=is-date.js.map

//# sourceMappingURL=is-decimal.js.map

//# sourceMappingURL=is-element.js.map

//# sourceMappingURL=is-empty.js.map

//# sourceMappingURL=is-equal-with.js.map

//# sourceMappingURL=is-equal.js.map

//# sourceMappingURL=is-error.js.map

//# sourceMappingURL=is-even.js.map

//# sourceMappingURL=is-finite.js.map

//# sourceMappingURL=is-function.js.map

//# sourceMappingURL=is-integer.js.map

//# sourceMappingURL=is-match.js.map

//# sourceMappingURL=is-model-change.js.map

//# sourceMappingURL=is-negative.js.map

//# sourceMappingURL=is-nil.js.map

//# sourceMappingURL=is-null.js.map

//# sourceMappingURL=is-number-equal.js.map

//# sourceMappingURL=is-number.js.map

//# sourceMappingURL=is-object-like.js.map

//# sourceMappingURL=is-object.js.map

//# sourceMappingURL=is-odd.js.map

//# sourceMappingURL=is-plain-object.js.map

//# sourceMappingURL=is-polygons-intersect.js.map

//# sourceMappingURL=is-positive.js.map

//# sourceMappingURL=is-prototype.js.map

//# sourceMappingURL=is-reg-exp.js.map

//# sourceMappingURL=is-string.js.map

//# sourceMappingURL=is-type.js.map

//# sourceMappingURL=is-undefined.js.map

//# sourceMappingURL=isArray.js.map

//# sourceMappingURL=isArrayLike.js.map

//# sourceMappingURL=isDate.js.map

//# sourceMappingURL=isEmpty.js.map

//# sourceMappingURL=isFunction.js.map

//# sourceMappingURL=isNumeric.js.map

//# sourceMappingURL=isObject.js.map

//# sourceMappingURL=isPromise.js.map

//# sourceMappingURL=isScheduler.js.map

//# sourceMappingURL=iterator.js.map

//# sourceMappingURL=jitter.js.map

//# sourceMappingURL=keys.js.map

//# sourceMappingURL=label.js.map

//# sourceMappingURL=labels.js.map

//# sourceMappingURL=last.js.map

//# sourceMappingURL=legend.js.map

//# sourceMappingURL=let.js.map

//# sourceMappingURL=light.js.map

//# sourceMappingURL=limit-in-canvas.js.map

//# sourceMappingURL=limit-in-plot.js.map

//# sourceMappingURL=limit-in-shape.js.map

//# sourceMappingURL=line-2-cubic.js.map

//# sourceMappingURL=line.js.map

//# sourceMappingURL=linear.js.map

//# sourceMappingURL=link-by-color.js.map

//# sourceMappingURL=list-active.js.map

//# sourceMappingURL=list-checked.js.map

//# sourceMappingURL=list-focus.js.map

//# sourceMappingURL=list-highlight-util.js.map

//# sourceMappingURL=list-highlight.js.map

//# sourceMappingURL=list-radio.js.map

//# sourceMappingURL=list-selected.js.map

//# sourceMappingURL=list-state.js.map

//# sourceMappingURL=list-unchecked.js.map

//# sourceMappingURL=list.js.map

//# sourceMappingURL=log.js.map

//# sourceMappingURL=lower-case.js.map

//# sourceMappingURL=lower-first.js.map

//# sourceMappingURL=map-values.js.map

//# sourceMappingURL=map.js.map

//# sourceMappingURL=mapTo.js.map

//# sourceMappingURL=marker.js.map

//# sourceMappingURL=materialize.js.map

//# sourceMappingURL=math.js.map

//# sourceMappingURL=matrix.js.map

//# sourceMappingURL=max-by.js.map

//# sourceMappingURL=max.js.map

//# sourceMappingURL=measure-text-width.js.map

//# sourceMappingURL=memoize.js.map

//# sourceMappingURL=merge.js.map

//# sourceMappingURL=mergeAll.js.map

//# sourceMappingURL=mergeMap.js.map

//# sourceMappingURL=mergeMapTo.js.map

//# sourceMappingURL=mergeScan.js.map

//# sourceMappingURL=min-by.js.map

//# sourceMappingURL=min.js.map

//# sourceMappingURL=mirror.js.map

//# sourceMappingURL=mix.js.map

//# sourceMappingURL=mob.js.map

//# sourceMappingURL=mod.js.map

//# sourceMappingURL=modeDef.js.map

//# sourceMappingURL=modify-css.js.map

//# sourceMappingURL=mousewheel-scroll.js.map

//# sourceMappingURL=move.js.map

//# sourceMappingURL=multicast.js.map

//# sourceMappingURL=never.js.map

//# sourceMappingURL=noop.js.map

//# sourceMappingURL=not.js.map

//# sourceMappingURL=number2color.js.map

//# sourceMappingURL=observable.js.map

//# sourceMappingURL=observeOn.js.map

//# sourceMappingURL=of.js.map

//# sourceMappingURL=offscreen.js.map

//# sourceMappingURL=omit.js.map

//# sourceMappingURL=onErrorResumeNext.js.map

//# sourceMappingURL=opacity.js.map

//# sourceMappingURL=operators.js.map

//# sourceMappingURL=outer.js.map

//# sourceMappingURL=overlap.js.map

//# sourceMappingURL=padding-cal.js.map

//# sourceMappingURL=padding.js.map

//# sourceMappingURL=pairs.js.map

//# sourceMappingURL=pairwise.js.map

//# sourceMappingURL=parse-fields.js.map

//# sourceMappingURL=parse-path-array.js.map

//# sourceMappingURL=parse-path-string.js.map

//# sourceMappingURL=parse-path.js.map

//# sourceMappingURL=parse-radius.js.map

//# sourceMappingURL=parse.js.map

//# sourceMappingURL=partition.js.map

//# sourceMappingURL=path-2-absolute.js.map

//# sourceMappingURL=path-2-curve.js.map

//# sourceMappingURL=path-2-segments.js.map

//# sourceMappingURL=path-in.js.map

//# sourceMappingURL=path-intersection.js.map

//# sourceMappingURL=path.js.map

//# sourceMappingURL=pattern.js.map

//# sourceMappingURL=pc.js.map

//# sourceMappingURL=performance-now.js.map

//# sourceMappingURL=pick.js.map

//# sourceMappingURL=pie.js.map

//# sourceMappingURL=pipe.js.map

//# sourceMappingURL=pluck.js.map

//# sourceMappingURL=point-in-path.js.map

//# sourceMappingURL=point-in-polygon.js.map

//# sourceMappingURL=point.js.map

//# sourceMappingURL=polar.js.map

//# sourceMappingURL=polygon.js.map

//# sourceMappingURL=polyline.js.map

//# sourceMappingURL=position-update.js.map

//# sourceMappingURL=position.js.map

//# sourceMappingURL=pow.js.map

//# sourceMappingURL=pretty-number.js.map

//# sourceMappingURL=pretty.js.map

//# sourceMappingURL=publish.js.map

//# sourceMappingURL=publishBehavior.js.map

//# sourceMappingURL=publishLast.js.map

//# sourceMappingURL=publishReplay.js.map

//# sourceMappingURL=pull-at.js.map

//# sourceMappingURL=pull.js.map

//# sourceMappingURL=pyramid.js.map

//# sourceMappingURL=quad-2-cubic.js.map

//# sourceMappingURL=quadratic.js.map

//# sourceMappingURL=quantile.js.map

//# sourceMappingURL=quantize.js.map

//# sourceMappingURL=queue.js.map

//# sourceMappingURL=r-prettry.js.map

//# sourceMappingURL=race.js.map

//# sourceMappingURL=range-active.js.map

//# sourceMappingURL=range-filter.js.map

//# sourceMappingURL=range-highlight.js.map

//# sourceMappingURL=range-selected.js.map

//# sourceMappingURL=range-state.js.map

//# sourceMappingURL=range.js.map

//# sourceMappingURL=rect-path.js.map

//# sourceMappingURL=rect-radius.js.map

//# sourceMappingURL=rect.js.map

//# sourceMappingURL=reduce.js.map

//# sourceMappingURL=region-filter.js.map

//# sourceMappingURL=region.js.map

//# sourceMappingURL=register.js.map

//# sourceMappingURL=remove.js.map

//# sourceMappingURL=repeat.js.map

//# sourceMappingURL=repeatWhen.js.map

//# sourceMappingURL=request-animation-frame.js.map

//# sourceMappingURL=retry.js.map

//# sourceMappingURL=retryWhen.js.map

//# sourceMappingURL=root.js.map

//# sourceMappingURL=rxSubscriber.js.map

//# sourceMappingURL=sample.js.map

//# sourceMappingURL=sampleTime.js.map

//# sourceMappingURL=scale-in.js.map

//# sourceMappingURL=scale-pool.js.map

//# sourceMappingURL=scale-transform.js.map

//# sourceMappingURL=scale-translate.js.map

//# sourceMappingURL=scale-zoom.js.map

//# sourceMappingURL=scale.js.map

//# sourceMappingURL=scan.js.map

//# sourceMappingURL=schema.js.map

//# sourceMappingURL=scrollbar.js.map

//# sourceMappingURL=sector-path-update.js.map

//# sourceMappingURL=segment-2-cubic.js.map

//# sourceMappingURL=segments.js.map

//# sourceMappingURL=selected.js.map

//# sourceMappingURL=sequenceEqual.js.map

//# sourceMappingURL=set.js.map

//# sourceMappingURL=shadow.js.map

//# sourceMappingURL=shape-size.js.map

//# sourceMappingURL=shape.js.map

//# sourceMappingURL=share.js.map

//# sourceMappingURL=shareReplay.js.map

//# sourceMappingURL=sibling-filter.js.map

//# sourceMappingURL=sibling.js.map

//# sourceMappingURL=single-active.js.map

//# sourceMappingURL=single-highlight.js.map

//# sourceMappingURL=single-selected.js.map

//# sourceMappingURL=single-state.js.map

//# sourceMappingURL=single.js.map

//# sourceMappingURL=size.js.map

//# sourceMappingURL=skip.js.map

//# sourceMappingURL=skipLast.js.map

//# sourceMappingURL=skipUntil.js.map

//# sourceMappingURL=skipWhile.js.map

//# sourceMappingURL=slider.js.map

//# sourceMappingURL=smooth-line.js.map

//# sourceMappingURL=smooth-path.js.map

//# sourceMappingURL=smooth.js.map

//# sourceMappingURL=solid.js.map

//# sourceMappingURL=some.js.map

//# sourceMappingURL=sort-by.js.map

//# sourceMappingURL=spider.js.map

//# sourceMappingURL=split-points.js.map

//# sourceMappingURL=square.js.map

//# sourceMappingURL=stack.js.map

//# sourceMappingURL=startWith.js.map

//# sourceMappingURL=starts-with.js.map

//# sourceMappingURL=stat.js.map

//# sourceMappingURL=state-base.js.map

//# sourceMappingURL=state.js.map

//# sourceMappingURL=step.js.map

//# sourceMappingURL=strict-limit.js.map

//# sourceMappingURL=subscribeOn.js.map

//# sourceMappingURL=subscribeToResult.js.map

//# sourceMappingURL=substitute.js.map

//# sourceMappingURL=svg.js.map

//# sourceMappingURL=switch.js.map

//# sourceMappingURL=switchAll.js.map

//# sourceMappingURL=switchMap.js.map

//# sourceMappingURL=switchMapTo.js.map

//# sourceMappingURL=symbols.js.map

//# sourceMappingURL=symmetric.js.map

//# sourceMappingURL=sync-view-padding.js.map

//# sourceMappingURL=take.js.map

//# sourceMappingURL=takeLast.js.map

//# sourceMappingURL=takeUntil.js.map

//# sourceMappingURL=takeWhile.js.map

//# sourceMappingURL=text.js.map

//# sourceMappingURL=theme.js.map

//# sourceMappingURL=throttle.js.map

//# sourceMappingURL=throttleTime.js.map

//# sourceMappingURL=throw.js.map

//# sourceMappingURL=tick.js.map

//# sourceMappingURL=time-cat.js.map

//# sourceMappingURL=time-pretty.js.map

//# sourceMappingURL=time.js.map

//# sourceMappingURL=timeInterval.js.map

//# sourceMappingURL=timeline.js.map

//# sourceMappingURL=timeout.js.map

//# sourceMappingURL=timeoutWith.js.map

//# sourceMappingURL=timer.js.map

//# sourceMappingURL=timestamp.js.map

//# sourceMappingURL=to-array.js.map

//# sourceMappingURL=to-degree.js.map

//# sourceMappingURL=to-integer.js.map

//# sourceMappingURL=to-radian.js.map

//# sourceMappingURL=to-string.js.map

//# sourceMappingURL=toArray.js.map

//# sourceMappingURL=toSubscriber.js.map

//# sourceMappingURL=tooltip.js.map

//# sourceMappingURL=transform.js.map

//# sourceMappingURL=tree.js.map

//# sourceMappingURL=trend.js.map

//# sourceMappingURL=tryCatch.js.map

//# sourceMappingURL=types.js.map

//# sourceMappingURL=union.js.map

//# sourceMappingURL=uniq.js.map

//# sourceMappingURL=unique-id.js.map

//# sourceMappingURL=unstated-next.js.map

//# sourceMappingURL=update-label.js.map

//# sourceMappingURL=upper-case.js.map

//# sourceMappingURL=upper-first.js.map

//# sourceMappingURL=using.js.map

//# sourceMappingURL=util.js.map

//# sourceMappingURL=values-of-key.js.map

//# sourceMappingURL=values.js.map

//# sourceMappingURL=version.js.map

//# sourceMappingURL=vhv.js.map

//# sourceMappingURL=view.js.map

//# sourceMappingURL=violin.js.map

//# sourceMappingURL=wave-in.js.map

//# sourceMappingURL=webSocket.js.map

//# sourceMappingURL=window.js.map

//# sourceMappingURL=windowCount.js.map

//# sourceMappingURL=windowTime.js.map

//# sourceMappingURL=windowToggle.js.map

//# sourceMappingURL=windowWhen.js.map

//# sourceMappingURL=withLatestFrom.js.map

//# sourceMappingURL=wrap-behavior.js.map

//# sourceMappingURL=zip.js.map

//# sourceMappingURL=zipAll.js.map

//# sourceMappingURL=zoom.js.map

//(details: https://github.com/inikulin/parse5/tree/master/scripts/generate-named-entity-data/README.md)

//(see: http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#preprocessing-the-input-stream)

//(see: http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction.html#adoptionAgency)

//(see: https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/fromCharCode#Getting_it_to_work_with_higher_values)

//--

//------------------------------------------------------------------

///

/// <reference lib="dom" />

//1)NULL_CHARACTER_TOKEN - \u0000-character sequences (e.g. '\u0000\u0000\u0000')

//12.2.5.4.17 The "in select in table" insertion mode

//2)WHITESPACE_CHARACTER_TOKEN - any whitespace/new-line character sequences (e.g. '\n  \r\t   \f')

//3)CHARACTER_TOKEN - any character sequence which don't belong to groups 1 and 2 (e.g. 'abcdef1234@@#$%^')

//<noembed> as a rawtext.

//API

//Active formatting elements reconstruction

//Adoption agency algorithm

//Algorithm entry point

//Aliases

//Always perform inlining check before modifying this functions ('node --trace-inlining').

//Bootstrap parser

//Characters emission

//Check exit from foreign content

//Close elements

//Comments

//Const

//Consumption

//DOCTYPE

//Doctype

//Element in scope

//Element utils

//Elements

//Entry types

//Errors

//Foster parenting

//Fragment parsing

//Generic token handlers

//Hibernation

//If we have a sequence of characters that belong to the same group, parser can process it

//Implied end tags

//Index of element

//Insertion modes

//Integration points

//It's faster than using dictionary.

//List of formatting elements

//Mutations

//NOTE: HTML input preprocessing

//NOTE: If the next token is a U+000A LINE FEED (LF) character token, then ignore that token and move

//NOTE: LF should be in the last column of the line

//NOTE: String.fromCharCode() function can handle only characters from BMP subset.

//NOTE: _attachElementToTree is called from _appendElement, _insertElement and _insertTemplate methods.

//NOTE: add gap that should be avoided during retreat

//NOTE: all U+000D CARRIAGE RETURN (CR) characters must be converted to U+000A LINE FEED (LF) characters

//NOTE: any U+000A LINE FEED (LF) characters that immediately follow a U+000D CARRIAGE RETURN (CR) character

//NOTE: avoid reporting error twice on advance/retreat

//NOTE: build attrs map for the new element so we can perform fast lookups

//NOTE: create fake element which will be used as 'document' for fragment parsing.

//NOTE: do nothing =)

//NOTE: excluding NULL and ASCII whitespace

//NOTE: here we assume that root <html> element is always first in the open element stack, so

//NOTE: here we assume that we always act as an user agent with enabled plugins, so we parse

//NOTE: if we have character token and it's location wasn't set in the _emitCurrentToken(),

//NOTE: if we have pending character token make it's end location equal to the

//NOTE: isolated surrogate

//NOTE: matching can be abrupted by hibernation. In that case match

//NOTE: patch initial states for each mode to obtain token start position

//NOTE: remove bottommost candidates until Noah's Ark condition will not be met

//NOTE: store emited start tag's tagName to determine is the following end tag token is appropriate.

//NOTE: store last foster parenting location, so we will be able to find inserted text

//NOTE: store next element for the next loop iteration (it may be deleted from the stack by step 9.5)

//NOTE: this file contains auto-generated array mapped radix tree that is used for the named entity references consumption

//NOTE: try to peek a surrogate pair

//NOTE: use <template> element as a fragment context if context element was not provided,

//NOTE: used then we emit character explicitly. This is always a non-whitespace and a non-null character.

//NOTE: we are at the end of a chunk, therefore we can't infer surrogate pair yet.

//NOTE: we have a surrogate pair. Peek pair character and recalculate code point.

//NOTE: we use greedy search, so we continue lookup at this point

//Noah Ark's condition

//Node construction

//Node data

//Node types

//OPTIMIZATION: Integer comparisons are low-cost, so we can use very fast tag name length filters here.

//OPTIMIZATION: at first we try to find possible candidates for exclusion using

//OPTIMIZATION: specification uses only one type of character tokens (one token per character).

//OPTIMIZATION: these utility functions should not be moved out of this module. V8 Crankshaft will not inline

//Only scale if it makes sense

//PUBLIC

//Parser

//Parsing loop

//Preprocessor

//Properly nested <body> element (should be second element in stack).

//Search

//So we can avoid additional checks here.

//So we will use token location stored in this methods for the element.

//So, there are 3 types of character tokens in parse5:

//So, we already have advanced position.

//So, we need to workaround this manually.

//Special case for rad = 0

//Special elements

//Stack of open elements

//Static

//Step 13 of the algorithm

//Step 13.7 of the algorithm

//Step 14 of the algorithm

//Steps 15-19 of the algorithm

//Steps 5-8 of the algorithm

//Steps 9 and 10 of the algorithm

//Surrogates

//TODO Optimize this

//TODO(benlesh): correct type-flow through here.

//TODO: determine whether or not to forward to error handler

//TODO: evaluate use of glm_invsqrt here?

//Tag attributes

//Temp buffer

//Text

//Text parsing

//This causes a huge memory overhead and a lot of unnecessary parser loops. parse5 uses 3 groups of characters.

//This is important for jsdom there 'document' can't be recreated, therefore

//Token adjustments

//Token creation

//Token emission

//Token processing

//Token types

//Tokenizer

//Tokenizer initial states for different modes

//Translate point to the origin

//Tree mutation

//Tree traversing

//Update current element

//Utils

//We don't need to increment preprocessor position, since character token

//[CDATA[

//and adapted to JavaScript rules

//as a single solid character token.

//check for negative zero, return zero if negative zero

//compute day of the year from weeks and weekdays

//const { whyDidYouUpdate } = require('why-did-you-update')

//current token's start location.

//delete first

//dom

//emission is always forced by the start of the next character token here.

//fragment parsing causes messing of the main `document`.

//given a Unicode code point, determines this symbol's grapheme break property

//grapheme break property for Unicode 10.0.0, 

//if (process.env.NODE_ENV !== 'production') {

//if the day of the year is set, figure out what it is

//in case of foster parenting

//invert the arguments, but complain about it

//just return the char if an unmatched surrogate half or a 

//lightweight heuristics without thorough attributes check.

//must be ignored.

//normalise to object in an array

//on to the next one. (Newlines at the start of pre blocks are ignored as an authoring convenience.)

//on to the next one. (Newlines at the start of textarea elements are ignored as an authoring convenience.)

//operators

//or tokens

//perform rotation

//perform rotation and translate to correct position

//remove from array and exit each early

//results are no longer valid and we will need to start over.

//script

//short-circuit everything else

//single-char codepoint

//so we will parse in "forgiving" manner

//taken from http://www.unicode.org/Public/10.0.0/ucd/auxiliary/GraphemeBreakProperty.txt

//the next array item is better than a shallower substring of this one

//then set it's location at the current preprocessor position.

//this functions if they will be situated in another module due to context switch.

//translate to correct position

//using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978

//warn user if arguments are passed but the locale could not be set

//we perform this fast stack clean up.

//whyDidYouUpdate(React)

//}

//生成dimValuesMap
