bootstrap-table-group-by.js 83 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409
  1. (function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
  3. typeof define === 'function' && define.amd ? define(['jquery'], factory) :
  4. (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
  5. })(this, (function ($$7) { 'use strict';
  6. function _toPrimitive(t, r) {
  7. if ("object" != typeof t || !t) return t;
  8. var e = t[Symbol.toPrimitive];
  9. if (void 0 !== e) {
  10. var i = e.call(t, r || "default");
  11. if ("object" != typeof i) return i;
  12. throw new TypeError("@@toPrimitive must return a primitive value.");
  13. }
  14. return ("string" === r ? String : Number)(t);
  15. }
  16. function _toPropertyKey(t) {
  17. var i = _toPrimitive(t, "string");
  18. return "symbol" == typeof i ? i : String(i);
  19. }
  20. function _typeof(o) {
  21. "@babel/helpers - typeof";
  22. return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
  23. return typeof o;
  24. } : function (o) {
  25. return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
  26. }, _typeof(o);
  27. }
  28. function _classCallCheck(instance, Constructor) {
  29. if (!(instance instanceof Constructor)) {
  30. throw new TypeError("Cannot call a class as a function");
  31. }
  32. }
  33. function _defineProperties(target, props) {
  34. for (var i = 0; i < props.length; i++) {
  35. var descriptor = props[i];
  36. descriptor.enumerable = descriptor.enumerable || false;
  37. descriptor.configurable = true;
  38. if ("value" in descriptor) descriptor.writable = true;
  39. Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
  40. }
  41. }
  42. function _createClass(Constructor, protoProps, staticProps) {
  43. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  44. if (staticProps) _defineProperties(Constructor, staticProps);
  45. Object.defineProperty(Constructor, "prototype", {
  46. writable: false
  47. });
  48. return Constructor;
  49. }
  50. function _inherits(subClass, superClass) {
  51. if (typeof superClass !== "function" && superClass !== null) {
  52. throw new TypeError("Super expression must either be null or a function");
  53. }
  54. subClass.prototype = Object.create(superClass && superClass.prototype, {
  55. constructor: {
  56. value: subClass,
  57. writable: true,
  58. configurable: true
  59. }
  60. });
  61. Object.defineProperty(subClass, "prototype", {
  62. writable: false
  63. });
  64. if (superClass) _setPrototypeOf(subClass, superClass);
  65. }
  66. function _getPrototypeOf(o) {
  67. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  68. return o.__proto__ || Object.getPrototypeOf(o);
  69. };
  70. return _getPrototypeOf(o);
  71. }
  72. function _setPrototypeOf(o, p) {
  73. _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  74. o.__proto__ = p;
  75. return o;
  76. };
  77. return _setPrototypeOf(o, p);
  78. }
  79. function _isNativeReflectConstruct() {
  80. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  81. if (Reflect.construct.sham) return false;
  82. if (typeof Proxy === "function") return true;
  83. try {
  84. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  85. return true;
  86. } catch (e) {
  87. return false;
  88. }
  89. }
  90. function _assertThisInitialized(self) {
  91. if (self === void 0) {
  92. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  93. }
  94. return self;
  95. }
  96. function _possibleConstructorReturn(self, call) {
  97. if (call && (typeof call === "object" || typeof call === "function")) {
  98. return call;
  99. } else if (call !== void 0) {
  100. throw new TypeError("Derived constructors may only return object or undefined");
  101. }
  102. return _assertThisInitialized(self);
  103. }
  104. function _createSuper(Derived) {
  105. var hasNativeReflectConstruct = _isNativeReflectConstruct();
  106. return function _createSuperInternal() {
  107. var Super = _getPrototypeOf(Derived),
  108. result;
  109. if (hasNativeReflectConstruct) {
  110. var NewTarget = _getPrototypeOf(this).constructor;
  111. result = Reflect.construct(Super, arguments, NewTarget);
  112. } else {
  113. result = Super.apply(this, arguments);
  114. }
  115. return _possibleConstructorReturn(this, result);
  116. };
  117. }
  118. function _superPropBase(object, property) {
  119. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  120. object = _getPrototypeOf(object);
  121. if (object === null) break;
  122. }
  123. return object;
  124. }
  125. function _get() {
  126. if (typeof Reflect !== "undefined" && Reflect.get) {
  127. _get = Reflect.get.bind();
  128. } else {
  129. _get = function _get(target, property, receiver) {
  130. var base = _superPropBase(target, property);
  131. if (!base) return;
  132. var desc = Object.getOwnPropertyDescriptor(base, property);
  133. if (desc.get) {
  134. return desc.get.call(arguments.length < 3 ? target : receiver);
  135. }
  136. return desc.value;
  137. };
  138. }
  139. return _get.apply(this, arguments);
  140. }
  141. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  142. var check = function (it) {
  143. return it && it.Math === Math && it;
  144. };
  145. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  146. var global$c =
  147. // eslint-disable-next-line es/no-global-this -- safe
  148. check(typeof globalThis == 'object' && globalThis) ||
  149. check(typeof window == 'object' && window) ||
  150. // eslint-disable-next-line no-restricted-globals -- safe
  151. check(typeof self == 'object' && self) ||
  152. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  153. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  154. // eslint-disable-next-line no-new-func -- fallback
  155. (function () { return this; })() || Function('return this')();
  156. var shared$3 = {exports: {}};
  157. var global$b = global$c;
  158. // eslint-disable-next-line es/no-object-defineproperty -- safe
  159. var defineProperty$4 = Object.defineProperty;
  160. var defineGlobalProperty$3 = function (key, value) {
  161. try {
  162. defineProperty$4(global$b, key, { value: value, configurable: true, writable: true });
  163. } catch (error) {
  164. global$b[key] = value;
  165. } return value;
  166. };
  167. var global$a = global$c;
  168. var defineGlobalProperty$2 = defineGlobalProperty$3;
  169. var SHARED = '__core-js_shared__';
  170. var store$3 = global$a[SHARED] || defineGlobalProperty$2(SHARED, {});
  171. var sharedStore = store$3;
  172. var store$2 = sharedStore;
  173. (shared$3.exports = function (key, value) {
  174. return store$2[key] || (store$2[key] = value !== undefined ? value : {});
  175. })('versions', []).push({
  176. version: '3.34.0',
  177. mode: 'global',
  178. copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
  179. license: 'https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE',
  180. source: 'https://github.com/zloirock/core-js'
  181. });
  182. var sharedExports = shared$3.exports;
  183. var fails$e = function (exec) {
  184. try {
  185. return !!exec();
  186. } catch (error) {
  187. return true;
  188. }
  189. };
  190. var fails$d = fails$e;
  191. var functionBindNative = !fails$d(function () {
  192. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  193. var test = (function () { /* empty */ }).bind();
  194. // eslint-disable-next-line no-prototype-builtins -- safe
  195. return typeof test != 'function' || test.hasOwnProperty('prototype');
  196. });
  197. var NATIVE_BIND$2 = functionBindNative;
  198. var FunctionPrototype$2 = Function.prototype;
  199. var call$5 = FunctionPrototype$2.call;
  200. var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$5, call$5);
  201. var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
  202. return function () {
  203. return call$5.apply(fn, arguments);
  204. };
  205. };
  206. // we can't use just `it == null` since of `document.all` special case
  207. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  208. var isNullOrUndefined$2 = function (it) {
  209. return it === null || it === undefined;
  210. };
  211. var isNullOrUndefined$1 = isNullOrUndefined$2;
  212. var $TypeError$7 = TypeError;
  213. // `RequireObjectCoercible` abstract operation
  214. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  215. var requireObjectCoercible$2 = function (it) {
  216. if (isNullOrUndefined$1(it)) throw new $TypeError$7("Can't call method on " + it);
  217. return it;
  218. };
  219. var requireObjectCoercible$1 = requireObjectCoercible$2;
  220. var $Object$3 = Object;
  221. // `ToObject` abstract operation
  222. // https://tc39.es/ecma262/#sec-toobject
  223. var toObject$5 = function (argument) {
  224. return $Object$3(requireObjectCoercible$1(argument));
  225. };
  226. var uncurryThis$h = functionUncurryThis;
  227. var toObject$4 = toObject$5;
  228. var hasOwnProperty = uncurryThis$h({}.hasOwnProperty);
  229. // `HasOwnProperty` abstract operation
  230. // https://tc39.es/ecma262/#sec-hasownproperty
  231. // eslint-disable-next-line es/no-object-hasown -- safe
  232. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  233. return hasOwnProperty(toObject$4(it), key);
  234. };
  235. var uncurryThis$g = functionUncurryThis;
  236. var id = 0;
  237. var postfix = Math.random();
  238. var toString$4 = uncurryThis$g(1.0.toString);
  239. var uid$2 = function (key) {
  240. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
  241. };
  242. var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
  243. var global$9 = global$c;
  244. var userAgent$2 = engineUserAgent;
  245. var process = global$9.process;
  246. var Deno = global$9.Deno;
  247. var versions = process && process.versions || Deno && Deno.version;
  248. var v8 = versions && versions.v8;
  249. var match, version;
  250. if (v8) {
  251. match = v8.split('.');
  252. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  253. // but their correct versions are not interesting for us
  254. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  255. }
  256. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  257. // so check `userAgent` even if `.v8` exists, but 0
  258. if (!version && userAgent$2) {
  259. match = userAgent$2.match(/Edge\/(\d+)/);
  260. if (!match || match[1] >= 74) {
  261. match = userAgent$2.match(/Chrome\/(\d+)/);
  262. if (match) version = +match[1];
  263. }
  264. }
  265. var engineV8Version = version;
  266. /* eslint-disable es/no-symbol -- required for testing */
  267. var V8_VERSION$2 = engineV8Version;
  268. var fails$c = fails$e;
  269. var global$8 = global$c;
  270. var $String$4 = global$8.String;
  271. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  272. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$c(function () {
  273. var symbol = Symbol('symbol detection');
  274. // Chrome 38 Symbol has incorrect toString conversion
  275. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  276. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  277. // of course, fail.
  278. return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
  279. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  280. !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
  281. });
  282. /* eslint-disable es/no-symbol -- required for testing */
  283. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  284. var useSymbolAsUid = NATIVE_SYMBOL$1
  285. && !Symbol.sham
  286. && typeof Symbol.iterator == 'symbol';
  287. var global$7 = global$c;
  288. var shared$2 = sharedExports;
  289. var hasOwn$6 = hasOwnProperty_1;
  290. var uid$1 = uid$2;
  291. var NATIVE_SYMBOL = symbolConstructorDetection;
  292. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  293. var Symbol$1 = global$7.Symbol;
  294. var WellKnownSymbolsStore = shared$2('wks');
  295. var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
  296. var wellKnownSymbol$8 = function (name) {
  297. if (!hasOwn$6(WellKnownSymbolsStore, name)) {
  298. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
  299. ? Symbol$1[name]
  300. : createWellKnownSymbol('Symbol.' + name);
  301. } return WellKnownSymbolsStore[name];
  302. };
  303. var wellKnownSymbol$7 = wellKnownSymbol$8;
  304. var TO_STRING_TAG$1 = wellKnownSymbol$7('toStringTag');
  305. var test$1 = {};
  306. test$1[TO_STRING_TAG$1] = 'z';
  307. var toStringTagSupport = String(test$1) === '[object z]';
  308. var documentAll$2 = typeof document == 'object' && document.all;
  309. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  310. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  311. var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
  312. var documentAll_1 = {
  313. all: documentAll$2,
  314. IS_HTMLDDA: IS_HTMLDDA
  315. };
  316. var $documentAll$1 = documentAll_1;
  317. var documentAll$1 = $documentAll$1.all;
  318. // `IsCallable` abstract operation
  319. // https://tc39.es/ecma262/#sec-iscallable
  320. var isCallable$c = $documentAll$1.IS_HTMLDDA ? function (argument) {
  321. return typeof argument == 'function' || argument === documentAll$1;
  322. } : function (argument) {
  323. return typeof argument == 'function';
  324. };
  325. var objectDefineProperty = {};
  326. var fails$b = fails$e;
  327. // Detect IE8's incomplete defineProperty implementation
  328. var descriptors = !fails$b(function () {
  329. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  330. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  331. });
  332. var isCallable$b = isCallable$c;
  333. var $documentAll = documentAll_1;
  334. var documentAll = $documentAll.all;
  335. var isObject$8 = $documentAll.IS_HTMLDDA ? function (it) {
  336. return typeof it == 'object' ? it !== null : isCallable$b(it) || it === documentAll;
  337. } : function (it) {
  338. return typeof it == 'object' ? it !== null : isCallable$b(it);
  339. };
  340. var global$6 = global$c;
  341. var isObject$7 = isObject$8;
  342. var document$1 = global$6.document;
  343. // typeof document.createElement is 'object' in old IE
  344. var EXISTS$1 = isObject$7(document$1) && isObject$7(document$1.createElement);
  345. var documentCreateElement$2 = function (it) {
  346. return EXISTS$1 ? document$1.createElement(it) : {};
  347. };
  348. var DESCRIPTORS$9 = descriptors;
  349. var fails$a = fails$e;
  350. var createElement = documentCreateElement$2;
  351. // Thanks to IE8 for its funny defineProperty
  352. var ie8DomDefine = !DESCRIPTORS$9 && !fails$a(function () {
  353. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  354. return Object.defineProperty(createElement('div'), 'a', {
  355. get: function () { return 7; }
  356. }).a !== 7;
  357. });
  358. var DESCRIPTORS$8 = descriptors;
  359. var fails$9 = fails$e;
  360. // V8 ~ Chrome 36-
  361. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  362. var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$9(function () {
  363. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  364. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  365. value: 42,
  366. writable: false
  367. }).prototype !== 42;
  368. });
  369. var isObject$6 = isObject$8;
  370. var $String$3 = String;
  371. var $TypeError$6 = TypeError;
  372. // `Assert: Type(argument) is Object`
  373. var anObject$4 = function (argument) {
  374. if (isObject$6(argument)) return argument;
  375. throw new $TypeError$6($String$3(argument) + ' is not an object');
  376. };
  377. var NATIVE_BIND$1 = functionBindNative;
  378. var call$4 = Function.prototype.call;
  379. var functionCall = NATIVE_BIND$1 ? call$4.bind(call$4) : function () {
  380. return call$4.apply(call$4, arguments);
  381. };
  382. var global$5 = global$c;
  383. var isCallable$a = isCallable$c;
  384. var aFunction = function (argument) {
  385. return isCallable$a(argument) ? argument : undefined;
  386. };
  387. var getBuiltIn$4 = function (namespace, method) {
  388. return arguments.length < 2 ? aFunction(global$5[namespace]) : global$5[namespace] && global$5[namespace][method];
  389. };
  390. var uncurryThis$f = functionUncurryThis;
  391. var objectIsPrototypeOf = uncurryThis$f({}.isPrototypeOf);
  392. var getBuiltIn$3 = getBuiltIn$4;
  393. var isCallable$9 = isCallable$c;
  394. var isPrototypeOf = objectIsPrototypeOf;
  395. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  396. var $Object$2 = Object;
  397. var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
  398. return typeof it == 'symbol';
  399. } : function (it) {
  400. var $Symbol = getBuiltIn$3('Symbol');
  401. return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
  402. };
  403. var $String$2 = String;
  404. var tryToString$2 = function (argument) {
  405. try {
  406. return $String$2(argument);
  407. } catch (error) {
  408. return 'Object';
  409. }
  410. };
  411. var isCallable$8 = isCallable$c;
  412. var tryToString$1 = tryToString$2;
  413. var $TypeError$5 = TypeError;
  414. // `Assert: IsCallable(argument) is true`
  415. var aCallable$3 = function (argument) {
  416. if (isCallable$8(argument)) return argument;
  417. throw new $TypeError$5(tryToString$1(argument) + ' is not a function');
  418. };
  419. var aCallable$2 = aCallable$3;
  420. var isNullOrUndefined = isNullOrUndefined$2;
  421. // `GetMethod` abstract operation
  422. // https://tc39.es/ecma262/#sec-getmethod
  423. var getMethod$1 = function (V, P) {
  424. var func = V[P];
  425. return isNullOrUndefined(func) ? undefined : aCallable$2(func);
  426. };
  427. var call$3 = functionCall;
  428. var isCallable$7 = isCallable$c;
  429. var isObject$5 = isObject$8;
  430. var $TypeError$4 = TypeError;
  431. // `OrdinaryToPrimitive` abstract operation
  432. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  433. var ordinaryToPrimitive$1 = function (input, pref) {
  434. var fn, val;
  435. if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$5(val = call$3(fn, input))) return val;
  436. if (isCallable$7(fn = input.valueOf) && !isObject$5(val = call$3(fn, input))) return val;
  437. if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$5(val = call$3(fn, input))) return val;
  438. throw new $TypeError$4("Can't convert object to primitive value");
  439. };
  440. var call$2 = functionCall;
  441. var isObject$4 = isObject$8;
  442. var isSymbol$1 = isSymbol$2;
  443. var getMethod = getMethod$1;
  444. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  445. var wellKnownSymbol$6 = wellKnownSymbol$8;
  446. var $TypeError$3 = TypeError;
  447. var TO_PRIMITIVE = wellKnownSymbol$6('toPrimitive');
  448. // `ToPrimitive` abstract operation
  449. // https://tc39.es/ecma262/#sec-toprimitive
  450. var toPrimitive$1 = function (input, pref) {
  451. if (!isObject$4(input) || isSymbol$1(input)) return input;
  452. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  453. var result;
  454. if (exoticToPrim) {
  455. if (pref === undefined) pref = 'default';
  456. result = call$2(exoticToPrim, input, pref);
  457. if (!isObject$4(result) || isSymbol$1(result)) return result;
  458. throw new $TypeError$3("Can't convert object to primitive value");
  459. }
  460. if (pref === undefined) pref = 'number';
  461. return ordinaryToPrimitive(input, pref);
  462. };
  463. var toPrimitive = toPrimitive$1;
  464. var isSymbol = isSymbol$2;
  465. // `ToPropertyKey` abstract operation
  466. // https://tc39.es/ecma262/#sec-topropertykey
  467. var toPropertyKey$3 = function (argument) {
  468. var key = toPrimitive(argument, 'string');
  469. return isSymbol(key) ? key : key + '';
  470. };
  471. var DESCRIPTORS$7 = descriptors;
  472. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  473. var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
  474. var anObject$3 = anObject$4;
  475. var toPropertyKey$2 = toPropertyKey$3;
  476. var $TypeError$2 = TypeError;
  477. // eslint-disable-next-line es/no-object-defineproperty -- safe
  478. var $defineProperty = Object.defineProperty;
  479. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  480. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  481. var ENUMERABLE = 'enumerable';
  482. var CONFIGURABLE$1 = 'configurable';
  483. var WRITABLE = 'writable';
  484. // `Object.defineProperty` method
  485. // https://tc39.es/ecma262/#sec-object.defineproperty
  486. objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
  487. anObject$3(O);
  488. P = toPropertyKey$2(P);
  489. anObject$3(Attributes);
  490. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  491. var current = $getOwnPropertyDescriptor$1(O, P);
  492. if (current && current[WRITABLE]) {
  493. O[P] = Attributes.value;
  494. Attributes = {
  495. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  496. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  497. writable: false
  498. };
  499. }
  500. } return $defineProperty(O, P, Attributes);
  501. } : $defineProperty : function defineProperty(O, P, Attributes) {
  502. anObject$3(O);
  503. P = toPropertyKey$2(P);
  504. anObject$3(Attributes);
  505. if (IE8_DOM_DEFINE$1) try {
  506. return $defineProperty(O, P, Attributes);
  507. } catch (error) { /* empty */ }
  508. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$2('Accessors not supported');
  509. if ('value' in Attributes) O[P] = Attributes.value;
  510. return O;
  511. };
  512. var makeBuiltIn$3 = {exports: {}};
  513. var DESCRIPTORS$6 = descriptors;
  514. var hasOwn$5 = hasOwnProperty_1;
  515. var FunctionPrototype$1 = Function.prototype;
  516. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  517. var getDescriptor = DESCRIPTORS$6 && Object.getOwnPropertyDescriptor;
  518. var EXISTS = hasOwn$5(FunctionPrototype$1, 'name');
  519. // additional protection from minified / mangled / dropped function names
  520. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  521. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$6 || (DESCRIPTORS$6 && getDescriptor(FunctionPrototype$1, 'name').configurable));
  522. var functionName = {
  523. EXISTS: EXISTS,
  524. PROPER: PROPER,
  525. CONFIGURABLE: CONFIGURABLE
  526. };
  527. var uncurryThis$e = functionUncurryThis;
  528. var isCallable$6 = isCallable$c;
  529. var store$1 = sharedStore;
  530. var functionToString$1 = uncurryThis$e(Function.toString);
  531. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  532. if (!isCallable$6(store$1.inspectSource)) {
  533. store$1.inspectSource = function (it) {
  534. return functionToString$1(it);
  535. };
  536. }
  537. var inspectSource$2 = store$1.inspectSource;
  538. var global$4 = global$c;
  539. var isCallable$5 = isCallable$c;
  540. var WeakMap$1 = global$4.WeakMap;
  541. var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1));
  542. var createPropertyDescriptor$3 = function (bitmap, value) {
  543. return {
  544. enumerable: !(bitmap & 1),
  545. configurable: !(bitmap & 2),
  546. writable: !(bitmap & 4),
  547. value: value
  548. };
  549. };
  550. var DESCRIPTORS$5 = descriptors;
  551. var definePropertyModule$4 = objectDefineProperty;
  552. var createPropertyDescriptor$2 = createPropertyDescriptor$3;
  553. var createNonEnumerableProperty$3 = DESCRIPTORS$5 ? function (object, key, value) {
  554. return definePropertyModule$4.f(object, key, createPropertyDescriptor$2(1, value));
  555. } : function (object, key, value) {
  556. object[key] = value;
  557. return object;
  558. };
  559. var shared$1 = sharedExports;
  560. var uid = uid$2;
  561. var keys = shared$1('keys');
  562. var sharedKey$2 = function (key) {
  563. return keys[key] || (keys[key] = uid(key));
  564. };
  565. var hiddenKeys$4 = {};
  566. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  567. var global$3 = global$c;
  568. var isObject$3 = isObject$8;
  569. var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
  570. var hasOwn$4 = hasOwnProperty_1;
  571. var shared = sharedStore;
  572. var sharedKey$1 = sharedKey$2;
  573. var hiddenKeys$3 = hiddenKeys$4;
  574. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  575. var TypeError$1 = global$3.TypeError;
  576. var WeakMap = global$3.WeakMap;
  577. var set, get, has;
  578. var enforce = function (it) {
  579. return has(it) ? get(it) : set(it, {});
  580. };
  581. var getterFor = function (TYPE) {
  582. return function (it) {
  583. var state;
  584. if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
  585. throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  586. } return state;
  587. };
  588. };
  589. if (NATIVE_WEAK_MAP || shared.state) {
  590. var store = shared.state || (shared.state = new WeakMap());
  591. /* eslint-disable no-self-assign -- prototype methods protection */
  592. store.get = store.get;
  593. store.has = store.has;
  594. store.set = store.set;
  595. /* eslint-enable no-self-assign -- prototype methods protection */
  596. set = function (it, metadata) {
  597. if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  598. metadata.facade = it;
  599. store.set(it, metadata);
  600. return metadata;
  601. };
  602. get = function (it) {
  603. return store.get(it) || {};
  604. };
  605. has = function (it) {
  606. return store.has(it);
  607. };
  608. } else {
  609. var STATE = sharedKey$1('state');
  610. hiddenKeys$3[STATE] = true;
  611. set = function (it, metadata) {
  612. if (hasOwn$4(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  613. metadata.facade = it;
  614. createNonEnumerableProperty$2(it, STATE, metadata);
  615. return metadata;
  616. };
  617. get = function (it) {
  618. return hasOwn$4(it, STATE) ? it[STATE] : {};
  619. };
  620. has = function (it) {
  621. return hasOwn$4(it, STATE);
  622. };
  623. }
  624. var internalState = {
  625. set: set,
  626. get: get,
  627. has: has,
  628. enforce: enforce,
  629. getterFor: getterFor
  630. };
  631. var uncurryThis$d = functionUncurryThis;
  632. var fails$8 = fails$e;
  633. var isCallable$4 = isCallable$c;
  634. var hasOwn$3 = hasOwnProperty_1;
  635. var DESCRIPTORS$4 = descriptors;
  636. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  637. var inspectSource$1 = inspectSource$2;
  638. var InternalStateModule = internalState;
  639. var enforceInternalState = InternalStateModule.enforce;
  640. var getInternalState = InternalStateModule.get;
  641. var $String$1 = String;
  642. // eslint-disable-next-line es/no-object-defineproperty -- safe
  643. var defineProperty$3 = Object.defineProperty;
  644. var stringSlice$1 = uncurryThis$d(''.slice);
  645. var replace = uncurryThis$d(''.replace);
  646. var join = uncurryThis$d([].join);
  647. var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$8(function () {
  648. return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  649. });
  650. var TEMPLATE = String(String).split('String');
  651. var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
  652. if (stringSlice$1($String$1(name), 0, 7) === 'Symbol(') {
  653. name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
  654. }
  655. if (options && options.getter) name = 'get ' + name;
  656. if (options && options.setter) name = 'set ' + name;
  657. if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  658. if (DESCRIPTORS$4) defineProperty$3(value, 'name', { value: name, configurable: true });
  659. else value.name = name;
  660. }
  661. if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
  662. defineProperty$3(value, 'length', { value: options.arity });
  663. }
  664. try {
  665. if (options && hasOwn$3(options, 'constructor') && options.constructor) {
  666. if (DESCRIPTORS$4) defineProperty$3(value, 'prototype', { writable: false });
  667. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  668. } else if (value.prototype) value.prototype = undefined;
  669. } catch (error) { /* empty */ }
  670. var state = enforceInternalState(value);
  671. if (!hasOwn$3(state, 'source')) {
  672. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  673. } return value;
  674. };
  675. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  676. // eslint-disable-next-line no-extend-native -- required
  677. Function.prototype.toString = makeBuiltIn$2(function toString() {
  678. return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
  679. }, 'toString');
  680. var makeBuiltInExports = makeBuiltIn$3.exports;
  681. var isCallable$3 = isCallable$c;
  682. var definePropertyModule$3 = objectDefineProperty;
  683. var makeBuiltIn$1 = makeBuiltInExports;
  684. var defineGlobalProperty$1 = defineGlobalProperty$3;
  685. var defineBuiltIn$2 = function (O, key, value, options) {
  686. if (!options) options = {};
  687. var simple = options.enumerable;
  688. var name = options.name !== undefined ? options.name : key;
  689. if (isCallable$3(value)) makeBuiltIn$1(value, name, options);
  690. if (options.global) {
  691. if (simple) O[key] = value;
  692. else defineGlobalProperty$1(key, value);
  693. } else {
  694. try {
  695. if (!options.unsafe) delete O[key];
  696. else if (O[key]) simple = true;
  697. } catch (error) { /* empty */ }
  698. if (simple) O[key] = value;
  699. else definePropertyModule$3.f(O, key, {
  700. value: value,
  701. enumerable: false,
  702. configurable: !options.nonConfigurable,
  703. writable: !options.nonWritable
  704. });
  705. } return O;
  706. };
  707. var uncurryThis$c = functionUncurryThis;
  708. var toString$3 = uncurryThis$c({}.toString);
  709. var stringSlice = uncurryThis$c(''.slice);
  710. var classofRaw$2 = function (it) {
  711. return stringSlice(toString$3(it), 8, -1);
  712. };
  713. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  714. var isCallable$2 = isCallable$c;
  715. var classofRaw$1 = classofRaw$2;
  716. var wellKnownSymbol$5 = wellKnownSymbol$8;
  717. var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
  718. var $Object$1 = Object;
  719. // ES3 wrong here
  720. var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
  721. // fallback for IE11 Script Access Denied error
  722. var tryGet = function (it, key) {
  723. try {
  724. return it[key];
  725. } catch (error) { /* empty */ }
  726. };
  727. // getting tag from ES6+ `Object.prototype.toString`
  728. var classof$5 = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : function (it) {
  729. var O, tag, result;
  730. return it === undefined ? 'Undefined' : it === null ? 'Null'
  731. // @@toStringTag case
  732. : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG)) == 'string' ? tag
  733. // builtinTag case
  734. : CORRECT_ARGUMENTS ? classofRaw$1(O)
  735. // ES3 arguments fallback
  736. : (result = classofRaw$1(O)) === 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
  737. };
  738. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  739. var classof$4 = classof$5;
  740. // `Object.prototype.toString` method implementation
  741. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  742. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  743. return '[object ' + classof$4(this) + ']';
  744. };
  745. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  746. var defineBuiltIn$1 = defineBuiltIn$2;
  747. var toString$2 = objectToString;
  748. // `Object.prototype.toString` method
  749. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  750. if (!TO_STRING_TAG_SUPPORT) {
  751. defineBuiltIn$1(Object.prototype, 'toString', toString$2, { unsafe: true });
  752. }
  753. // iterable DOM collections
  754. // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
  755. var domIterables = {
  756. CSSRuleList: 0,
  757. CSSStyleDeclaration: 0,
  758. CSSValueList: 0,
  759. ClientRectList: 0,
  760. DOMRectList: 0,
  761. DOMStringList: 0,
  762. DOMTokenList: 1,
  763. DataTransferItemList: 0,
  764. FileList: 0,
  765. HTMLAllCollection: 0,
  766. HTMLCollection: 0,
  767. HTMLFormElement: 0,
  768. HTMLSelectElement: 0,
  769. MediaList: 0,
  770. MimeTypeArray: 0,
  771. NamedNodeMap: 0,
  772. NodeList: 1,
  773. PaintRequestList: 0,
  774. Plugin: 0,
  775. PluginArray: 0,
  776. SVGLengthList: 0,
  777. SVGNumberList: 0,
  778. SVGPathSegList: 0,
  779. SVGPointList: 0,
  780. SVGStringList: 0,
  781. SVGTransformList: 0,
  782. SourceBufferList: 0,
  783. StyleSheetList: 0,
  784. TextTrackCueList: 0,
  785. TextTrackList: 0,
  786. TouchList: 0
  787. };
  788. // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
  789. var documentCreateElement$1 = documentCreateElement$2;
  790. var classList = documentCreateElement$1('span').classList;
  791. var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
  792. var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
  793. var classofRaw = classofRaw$2;
  794. var uncurryThis$b = functionUncurryThis;
  795. var functionUncurryThisClause = function (fn) {
  796. // Nashorn bug:
  797. // https://github.com/zloirock/core-js/issues/1128
  798. // https://github.com/zloirock/core-js/issues/1130
  799. if (classofRaw(fn) === 'Function') return uncurryThis$b(fn);
  800. };
  801. var uncurryThis$a = functionUncurryThisClause;
  802. var aCallable$1 = aCallable$3;
  803. var NATIVE_BIND = functionBindNative;
  804. var bind$1 = uncurryThis$a(uncurryThis$a.bind);
  805. // optional / simple context binding
  806. var functionBindContext = function (fn, that) {
  807. aCallable$1(fn);
  808. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  809. return fn.apply(that, arguments);
  810. };
  811. };
  812. var uncurryThis$9 = functionUncurryThis;
  813. var fails$7 = fails$e;
  814. var classof$3 = classofRaw$2;
  815. var $Object = Object;
  816. var split = uncurryThis$9(''.split);
  817. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  818. var indexedObject = fails$7(function () {
  819. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  820. // eslint-disable-next-line no-prototype-builtins -- safe
  821. return !$Object('z').propertyIsEnumerable(0);
  822. }) ? function (it) {
  823. return classof$3(it) === 'String' ? split(it, '') : $Object(it);
  824. } : $Object;
  825. var ceil = Math.ceil;
  826. var floor$1 = Math.floor;
  827. // `Math.trunc` method
  828. // https://tc39.es/ecma262/#sec-math.trunc
  829. // eslint-disable-next-line es/no-math-trunc -- safe
  830. var mathTrunc = Math.trunc || function trunc(x) {
  831. var n = +x;
  832. return (n > 0 ? floor$1 : ceil)(n);
  833. };
  834. var trunc = mathTrunc;
  835. // `ToIntegerOrInfinity` abstract operation
  836. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  837. var toIntegerOrInfinity$2 = function (argument) {
  838. var number = +argument;
  839. // eslint-disable-next-line no-self-compare -- NaN check
  840. return number !== number || number === 0 ? 0 : trunc(number);
  841. };
  842. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  843. var min$1 = Math.min;
  844. // `ToLength` abstract operation
  845. // https://tc39.es/ecma262/#sec-tolength
  846. var toLength$1 = function (argument) {
  847. return argument > 0 ? min$1(toIntegerOrInfinity$1(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  848. };
  849. var toLength = toLength$1;
  850. // `LengthOfArrayLike` abstract operation
  851. // https://tc39.es/ecma262/#sec-lengthofarraylike
  852. var lengthOfArrayLike$6 = function (obj) {
  853. return toLength(obj.length);
  854. };
  855. var classof$2 = classofRaw$2;
  856. // `IsArray` abstract operation
  857. // https://tc39.es/ecma262/#sec-isarray
  858. // eslint-disable-next-line es/no-array-isarray -- safe
  859. var isArray$3 = Array.isArray || function isArray(argument) {
  860. return classof$2(argument) === 'Array';
  861. };
  862. var uncurryThis$8 = functionUncurryThis;
  863. var fails$6 = fails$e;
  864. var isCallable$1 = isCallable$c;
  865. var classof$1 = classof$5;
  866. var getBuiltIn$2 = getBuiltIn$4;
  867. var inspectSource = inspectSource$2;
  868. var noop = function () { /* empty */ };
  869. var empty = [];
  870. var construct = getBuiltIn$2('Reflect', 'construct');
  871. var constructorRegExp = /^\s*(?:class|function)\b/;
  872. var exec = uncurryThis$8(constructorRegExp.exec);
  873. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  874. var isConstructorModern = function isConstructor(argument) {
  875. if (!isCallable$1(argument)) return false;
  876. try {
  877. construct(noop, empty, argument);
  878. return true;
  879. } catch (error) {
  880. return false;
  881. }
  882. };
  883. var isConstructorLegacy = function isConstructor(argument) {
  884. if (!isCallable$1(argument)) return false;
  885. switch (classof$1(argument)) {
  886. case 'AsyncFunction':
  887. case 'GeneratorFunction':
  888. case 'AsyncGeneratorFunction': return false;
  889. }
  890. try {
  891. // we can't check .prototype since constructors produced by .bind haven't it
  892. // `Function#toString` throws on some built-it function in some legacy engines
  893. // (for example, `DOMQuad` and similar in FF41-)
  894. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  895. } catch (error) {
  896. return true;
  897. }
  898. };
  899. isConstructorLegacy.sham = true;
  900. // `IsConstructor` abstract operation
  901. // https://tc39.es/ecma262/#sec-isconstructor
  902. var isConstructor$2 = !construct || fails$6(function () {
  903. var called;
  904. return isConstructorModern(isConstructorModern.call)
  905. || !isConstructorModern(Object)
  906. || !isConstructorModern(function () { called = true; })
  907. || called;
  908. }) ? isConstructorLegacy : isConstructorModern;
  909. var isArray$2 = isArray$3;
  910. var isConstructor$1 = isConstructor$2;
  911. var isObject$2 = isObject$8;
  912. var wellKnownSymbol$4 = wellKnownSymbol$8;
  913. var SPECIES$2 = wellKnownSymbol$4('species');
  914. var $Array$2 = Array;
  915. // a part of `ArraySpeciesCreate` abstract operation
  916. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  917. var arraySpeciesConstructor$1 = function (originalArray) {
  918. var C;
  919. if (isArray$2(originalArray)) {
  920. C = originalArray.constructor;
  921. // cross-realm fallback
  922. if (isConstructor$1(C) && (C === $Array$2 || isArray$2(C.prototype))) C = undefined;
  923. else if (isObject$2(C)) {
  924. C = C[SPECIES$2];
  925. if (C === null) C = undefined;
  926. }
  927. } return C === undefined ? $Array$2 : C;
  928. };
  929. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  930. // `ArraySpeciesCreate` abstract operation
  931. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  932. var arraySpeciesCreate$2 = function (originalArray, length) {
  933. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  934. };
  935. var bind = functionBindContext;
  936. var uncurryThis$7 = functionUncurryThis;
  937. var IndexedObject$3 = indexedObject;
  938. var toObject$3 = toObject$5;
  939. var lengthOfArrayLike$5 = lengthOfArrayLike$6;
  940. var arraySpeciesCreate$1 = arraySpeciesCreate$2;
  941. var push$2 = uncurryThis$7([].push);
  942. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  943. var createMethod$1 = function (TYPE) {
  944. var IS_MAP = TYPE === 1;
  945. var IS_FILTER = TYPE === 2;
  946. var IS_SOME = TYPE === 3;
  947. var IS_EVERY = TYPE === 4;
  948. var IS_FIND_INDEX = TYPE === 6;
  949. var IS_FILTER_REJECT = TYPE === 7;
  950. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  951. return function ($this, callbackfn, that, specificCreate) {
  952. var O = toObject$3($this);
  953. var self = IndexedObject$3(O);
  954. var length = lengthOfArrayLike$5(self);
  955. var boundFunction = bind(callbackfn, that);
  956. var index = 0;
  957. var create = specificCreate || arraySpeciesCreate$1;
  958. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  959. var value, result;
  960. for (;length > index; index++) if (NO_HOLES || index in self) {
  961. value = self[index];
  962. result = boundFunction(value, index, O);
  963. if (TYPE) {
  964. if (IS_MAP) target[index] = result; // map
  965. else if (result) switch (TYPE) {
  966. case 3: return true; // some
  967. case 5: return value; // find
  968. case 6: return index; // findIndex
  969. case 2: push$2(target, value); // filter
  970. } else switch (TYPE) {
  971. case 4: return false; // every
  972. case 7: push$2(target, value); // filterReject
  973. }
  974. }
  975. }
  976. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  977. };
  978. };
  979. var arrayIteration = {
  980. // `Array.prototype.forEach` method
  981. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  982. forEach: createMethod$1(0),
  983. // `Array.prototype.map` method
  984. // https://tc39.es/ecma262/#sec-array.prototype.map
  985. map: createMethod$1(1),
  986. // `Array.prototype.filter` method
  987. // https://tc39.es/ecma262/#sec-array.prototype.filter
  988. filter: createMethod$1(2),
  989. // `Array.prototype.some` method
  990. // https://tc39.es/ecma262/#sec-array.prototype.some
  991. some: createMethod$1(3),
  992. // `Array.prototype.every` method
  993. // https://tc39.es/ecma262/#sec-array.prototype.every
  994. every: createMethod$1(4),
  995. // `Array.prototype.find` method
  996. // https://tc39.es/ecma262/#sec-array.prototype.find
  997. find: createMethod$1(5),
  998. // `Array.prototype.findIndex` method
  999. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1000. findIndex: createMethod$1(6),
  1001. // `Array.prototype.filterReject` method
  1002. // https://github.com/tc39/proposal-array-filtering
  1003. filterReject: createMethod$1(7)
  1004. };
  1005. var fails$5 = fails$e;
  1006. var arrayMethodIsStrict$3 = function (METHOD_NAME, argument) {
  1007. var method = [][METHOD_NAME];
  1008. return !!method && fails$5(function () {
  1009. // eslint-disable-next-line no-useless-call -- required for testing
  1010. method.call(null, argument || function () { return 1; }, 1);
  1011. });
  1012. };
  1013. var $forEach = arrayIteration.forEach;
  1014. var arrayMethodIsStrict$2 = arrayMethodIsStrict$3;
  1015. var STRICT_METHOD$1 = arrayMethodIsStrict$2('forEach');
  1016. // `Array.prototype.forEach` method implementation
  1017. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1018. var arrayForEach = !STRICT_METHOD$1 ? function forEach(callbackfn /* , thisArg */) {
  1019. return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1020. // eslint-disable-next-line es/no-array-prototype-foreach -- safe
  1021. } : [].forEach;
  1022. var global$2 = global$c;
  1023. var DOMIterables = domIterables;
  1024. var DOMTokenListPrototype = domTokenListPrototype;
  1025. var forEach = arrayForEach;
  1026. var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
  1027. var handlePrototype = function (CollectionPrototype) {
  1028. // some Chrome versions have non-configurable methods on DOMTokenList
  1029. if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
  1030. createNonEnumerableProperty$1(CollectionPrototype, 'forEach', forEach);
  1031. } catch (error) {
  1032. CollectionPrototype.forEach = forEach;
  1033. }
  1034. };
  1035. for (var COLLECTION_NAME in DOMIterables) {
  1036. if (DOMIterables[COLLECTION_NAME]) {
  1037. handlePrototype(global$2[COLLECTION_NAME] && global$2[COLLECTION_NAME].prototype);
  1038. }
  1039. }
  1040. handlePrototype(DOMTokenListPrototype);
  1041. var objectGetOwnPropertyDescriptor = {};
  1042. var objectPropertyIsEnumerable = {};
  1043. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  1044. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  1045. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  1046. // Nashorn ~ JDK8 bug
  1047. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  1048. // `Object.prototype.propertyIsEnumerable` method implementation
  1049. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  1050. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  1051. var descriptor = getOwnPropertyDescriptor$1(this, V);
  1052. return !!descriptor && descriptor.enumerable;
  1053. } : $propertyIsEnumerable;
  1054. // toObject with fallback for non-array-like ES3 strings
  1055. var IndexedObject$2 = indexedObject;
  1056. var requireObjectCoercible = requireObjectCoercible$2;
  1057. var toIndexedObject$6 = function (it) {
  1058. return IndexedObject$2(requireObjectCoercible(it));
  1059. };
  1060. var DESCRIPTORS$3 = descriptors;
  1061. var call$1 = functionCall;
  1062. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  1063. var createPropertyDescriptor$1 = createPropertyDescriptor$3;
  1064. var toIndexedObject$5 = toIndexedObject$6;
  1065. var toPropertyKey$1 = toPropertyKey$3;
  1066. var hasOwn$2 = hasOwnProperty_1;
  1067. var IE8_DOM_DEFINE = ie8DomDefine;
  1068. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  1069. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  1070. // `Object.getOwnPropertyDescriptor` method
  1071. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  1072. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$3 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
  1073. O = toIndexedObject$5(O);
  1074. P = toPropertyKey$1(P);
  1075. if (IE8_DOM_DEFINE) try {
  1076. return $getOwnPropertyDescriptor(O, P);
  1077. } catch (error) { /* empty */ }
  1078. if (hasOwn$2(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
  1079. };
  1080. var objectGetOwnPropertyNames = {};
  1081. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  1082. var max$2 = Math.max;
  1083. var min = Math.min;
  1084. // Helper for a popular repeating case of the spec:
  1085. // Let integer be ? ToInteger(index).
  1086. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  1087. var toAbsoluteIndex$3 = function (index, length) {
  1088. var integer = toIntegerOrInfinity(index);
  1089. return integer < 0 ? max$2(integer + length, 0) : min(integer, length);
  1090. };
  1091. var toIndexedObject$4 = toIndexedObject$6;
  1092. var toAbsoluteIndex$2 = toAbsoluteIndex$3;
  1093. var lengthOfArrayLike$4 = lengthOfArrayLike$6;
  1094. // `Array.prototype.{ indexOf, includes }` methods implementation
  1095. var createMethod = function (IS_INCLUDES) {
  1096. return function ($this, el, fromIndex) {
  1097. var O = toIndexedObject$4($this);
  1098. var length = lengthOfArrayLike$4(O);
  1099. var index = toAbsoluteIndex$2(fromIndex, length);
  1100. var value;
  1101. // Array#includes uses SameValueZero equality algorithm
  1102. // eslint-disable-next-line no-self-compare -- NaN check
  1103. if (IS_INCLUDES && el !== el) while (length > index) {
  1104. value = O[index++];
  1105. // eslint-disable-next-line no-self-compare -- NaN check
  1106. if (value !== value) return true;
  1107. // Array#indexOf ignores holes, Array#includes - not
  1108. } else for (;length > index; index++) {
  1109. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  1110. } return !IS_INCLUDES && -1;
  1111. };
  1112. };
  1113. var arrayIncludes = {
  1114. // `Array.prototype.includes` method
  1115. // https://tc39.es/ecma262/#sec-array.prototype.includes
  1116. includes: createMethod(true),
  1117. // `Array.prototype.indexOf` method
  1118. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  1119. indexOf: createMethod(false)
  1120. };
  1121. var uncurryThis$6 = functionUncurryThis;
  1122. var hasOwn$1 = hasOwnProperty_1;
  1123. var toIndexedObject$3 = toIndexedObject$6;
  1124. var indexOf = arrayIncludes.indexOf;
  1125. var hiddenKeys$2 = hiddenKeys$4;
  1126. var push$1 = uncurryThis$6([].push);
  1127. var objectKeysInternal = function (object, names) {
  1128. var O = toIndexedObject$3(object);
  1129. var i = 0;
  1130. var result = [];
  1131. var key;
  1132. for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(result, key);
  1133. // Don't enum bug & hidden keys
  1134. while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
  1135. ~indexOf(result, key) || push$1(result, key);
  1136. }
  1137. return result;
  1138. };
  1139. // IE8- don't enum bug keys
  1140. var enumBugKeys$3 = [
  1141. 'constructor',
  1142. 'hasOwnProperty',
  1143. 'isPrototypeOf',
  1144. 'propertyIsEnumerable',
  1145. 'toLocaleString',
  1146. 'toString',
  1147. 'valueOf'
  1148. ];
  1149. var internalObjectKeys$1 = objectKeysInternal;
  1150. var enumBugKeys$2 = enumBugKeys$3;
  1151. var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
  1152. // `Object.getOwnPropertyNames` method
  1153. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  1154. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  1155. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  1156. return internalObjectKeys$1(O, hiddenKeys$1);
  1157. };
  1158. var objectGetOwnPropertySymbols = {};
  1159. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  1160. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  1161. var getBuiltIn$1 = getBuiltIn$4;
  1162. var uncurryThis$5 = functionUncurryThis;
  1163. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  1164. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  1165. var anObject$2 = anObject$4;
  1166. var concat$1 = uncurryThis$5([].concat);
  1167. // all object keys, includes non-enumerable and symbols
  1168. var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
  1169. var keys = getOwnPropertyNamesModule.f(anObject$2(it));
  1170. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  1171. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  1172. };
  1173. var hasOwn = hasOwnProperty_1;
  1174. var ownKeys = ownKeys$1;
  1175. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  1176. var definePropertyModule$2 = objectDefineProperty;
  1177. var copyConstructorProperties$1 = function (target, source, exceptions) {
  1178. var keys = ownKeys(source);
  1179. var defineProperty = definePropertyModule$2.f;
  1180. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  1181. for (var i = 0; i < keys.length; i++) {
  1182. var key = keys[i];
  1183. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  1184. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  1185. }
  1186. }
  1187. };
  1188. var fails$4 = fails$e;
  1189. var isCallable = isCallable$c;
  1190. var replacement = /#|\.prototype\./;
  1191. var isForced$1 = function (feature, detection) {
  1192. var value = data[normalize(feature)];
  1193. return value === POLYFILL ? true
  1194. : value === NATIVE ? false
  1195. : isCallable(detection) ? fails$4(detection)
  1196. : !!detection;
  1197. };
  1198. var normalize = isForced$1.normalize = function (string) {
  1199. return String(string).replace(replacement, '.').toLowerCase();
  1200. };
  1201. var data = isForced$1.data = {};
  1202. var NATIVE = isForced$1.NATIVE = 'N';
  1203. var POLYFILL = isForced$1.POLYFILL = 'P';
  1204. var isForced_1 = isForced$1;
  1205. var global$1 = global$c;
  1206. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  1207. var createNonEnumerableProperty = createNonEnumerableProperty$3;
  1208. var defineBuiltIn = defineBuiltIn$2;
  1209. var defineGlobalProperty = defineGlobalProperty$3;
  1210. var copyConstructorProperties = copyConstructorProperties$1;
  1211. var isForced = isForced_1;
  1212. /*
  1213. options.target - name of the target object
  1214. options.global - target is the global object
  1215. options.stat - export as static methods of target
  1216. options.proto - export as prototype methods of target
  1217. options.real - real prototype method for the `pure` version
  1218. options.forced - export even if the native feature is available
  1219. options.bind - bind methods to the target, required for the `pure` version
  1220. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  1221. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  1222. options.sham - add a flag to not completely full polyfills
  1223. options.enumerable - export as enumerable property
  1224. options.dontCallGetSet - prevent calling a getter on target
  1225. options.name - the .name of the function if it does not match the key
  1226. */
  1227. var _export = function (options, source) {
  1228. var TARGET = options.target;
  1229. var GLOBAL = options.global;
  1230. var STATIC = options.stat;
  1231. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  1232. if (GLOBAL) {
  1233. target = global$1;
  1234. } else if (STATIC) {
  1235. target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
  1236. } else {
  1237. target = (global$1[TARGET] || {}).prototype;
  1238. }
  1239. if (target) for (key in source) {
  1240. sourceProperty = source[key];
  1241. if (options.dontCallGetSet) {
  1242. descriptor = getOwnPropertyDescriptor(target, key);
  1243. targetProperty = descriptor && descriptor.value;
  1244. } else targetProperty = target[key];
  1245. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  1246. // contained in target
  1247. if (!FORCED && targetProperty !== undefined) {
  1248. if (typeof sourceProperty == typeof targetProperty) continue;
  1249. copyConstructorProperties(sourceProperty, targetProperty);
  1250. }
  1251. // add a flag to not completely full polyfills
  1252. if (options.sham || (targetProperty && targetProperty.sham)) {
  1253. createNonEnumerableProperty(sourceProperty, 'sham', true);
  1254. }
  1255. defineBuiltIn(target, key, sourceProperty, options);
  1256. }
  1257. };
  1258. var internalObjectKeys = objectKeysInternal;
  1259. var enumBugKeys$1 = enumBugKeys$3;
  1260. // `Object.keys` method
  1261. // https://tc39.es/ecma262/#sec-object.keys
  1262. // eslint-disable-next-line es/no-object-keys -- safe
  1263. var objectKeys$2 = Object.keys || function keys(O) {
  1264. return internalObjectKeys(O, enumBugKeys$1);
  1265. };
  1266. var DESCRIPTORS$2 = descriptors;
  1267. var uncurryThis$4 = functionUncurryThis;
  1268. var call = functionCall;
  1269. var fails$3 = fails$e;
  1270. var objectKeys$1 = objectKeys$2;
  1271. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  1272. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  1273. var toObject$2 = toObject$5;
  1274. var IndexedObject$1 = indexedObject;
  1275. // eslint-disable-next-line es/no-object-assign -- safe
  1276. var $assign = Object.assign;
  1277. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  1278. var defineProperty$2 = Object.defineProperty;
  1279. var concat = uncurryThis$4([].concat);
  1280. // `Object.assign` method
  1281. // https://tc39.es/ecma262/#sec-object.assign
  1282. var objectAssign = !$assign || fails$3(function () {
  1283. // should have correct order of operations (Edge bug)
  1284. if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
  1285. enumerable: true,
  1286. get: function () {
  1287. defineProperty$2(this, 'b', {
  1288. value: 3,
  1289. enumerable: false
  1290. });
  1291. }
  1292. }), { b: 2 })).b !== 1) return true;
  1293. // should work with symbols and should have deterministic property order (V8 bug)
  1294. var A = {};
  1295. var B = {};
  1296. // eslint-disable-next-line es/no-symbol -- safe
  1297. var symbol = Symbol('assign detection');
  1298. var alphabet = 'abcdefghijklmnopqrst';
  1299. A[symbol] = 7;
  1300. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1301. return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
  1302. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1303. var T = toObject$2(target);
  1304. var argumentsLength = arguments.length;
  1305. var index = 1;
  1306. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1307. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1308. while (argumentsLength > index) {
  1309. var S = IndexedObject$1(arguments[index++]);
  1310. var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
  1311. var length = keys.length;
  1312. var j = 0;
  1313. var key;
  1314. while (length > j) {
  1315. key = keys[j++];
  1316. if (!DESCRIPTORS$2 || call(propertyIsEnumerable, S, key)) T[key] = S[key];
  1317. }
  1318. } return T;
  1319. } : $assign;
  1320. var $$6 = _export;
  1321. var assign = objectAssign;
  1322. // `Object.assign` method
  1323. // https://tc39.es/ecma262/#sec-object.assign
  1324. // eslint-disable-next-line es/no-object-assign -- required for testing
  1325. $$6({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1326. assign: assign
  1327. });
  1328. var toPropertyKey = toPropertyKey$3;
  1329. var definePropertyModule$1 = objectDefineProperty;
  1330. var createPropertyDescriptor = createPropertyDescriptor$3;
  1331. var createProperty$3 = function (object, key, value) {
  1332. var propertyKey = toPropertyKey(key);
  1333. if (propertyKey in object) definePropertyModule$1.f(object, propertyKey, createPropertyDescriptor(0, value));
  1334. else object[propertyKey] = value;
  1335. };
  1336. var fails$2 = fails$e;
  1337. var wellKnownSymbol$3 = wellKnownSymbol$8;
  1338. var V8_VERSION$1 = engineV8Version;
  1339. var SPECIES$1 = wellKnownSymbol$3('species');
  1340. var arrayMethodHasSpeciesSupport$3 = function (METHOD_NAME) {
  1341. // We can't use this feature detection in V8 since it causes
  1342. // deoptimization and serious performance degradation
  1343. // https://github.com/zloirock/core-js/issues/677
  1344. return V8_VERSION$1 >= 51 || !fails$2(function () {
  1345. var array = [];
  1346. var constructor = array.constructor = {};
  1347. constructor[SPECIES$1] = function () {
  1348. return { foo: 1 };
  1349. };
  1350. return array[METHOD_NAME](Boolean).foo !== 1;
  1351. });
  1352. };
  1353. var uncurryThis$3 = functionUncurryThis;
  1354. var arraySlice$1 = uncurryThis$3([].slice);
  1355. var $$5 = _export;
  1356. var isArray$1 = isArray$3;
  1357. var isConstructor = isConstructor$2;
  1358. var isObject$1 = isObject$8;
  1359. var toAbsoluteIndex$1 = toAbsoluteIndex$3;
  1360. var lengthOfArrayLike$3 = lengthOfArrayLike$6;
  1361. var toIndexedObject$2 = toIndexedObject$6;
  1362. var createProperty$2 = createProperty$3;
  1363. var wellKnownSymbol$2 = wellKnownSymbol$8;
  1364. var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$3;
  1365. var nativeSlice = arraySlice$1;
  1366. var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$2('slice');
  1367. var SPECIES = wellKnownSymbol$2('species');
  1368. var $Array$1 = Array;
  1369. var max$1 = Math.max;
  1370. // `Array.prototype.slice` method
  1371. // https://tc39.es/ecma262/#sec-array.prototype.slice
  1372. // fallback for not array-like ES3 strings and DOM objects
  1373. $$5({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
  1374. slice: function slice(start, end) {
  1375. var O = toIndexedObject$2(this);
  1376. var length = lengthOfArrayLike$3(O);
  1377. var k = toAbsoluteIndex$1(start, length);
  1378. var fin = toAbsoluteIndex$1(end === undefined ? length : end, length);
  1379. // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
  1380. var Constructor, result, n;
  1381. if (isArray$1(O)) {
  1382. Constructor = O.constructor;
  1383. // cross-realm fallback
  1384. if (isConstructor(Constructor) && (Constructor === $Array$1 || isArray$1(Constructor.prototype))) {
  1385. Constructor = undefined;
  1386. } else if (isObject$1(Constructor)) {
  1387. Constructor = Constructor[SPECIES];
  1388. if (Constructor === null) Constructor = undefined;
  1389. }
  1390. if (Constructor === $Array$1 || Constructor === undefined) {
  1391. return nativeSlice(O, k, fin);
  1392. }
  1393. }
  1394. result = new (Constructor === undefined ? $Array$1 : Constructor)(max$1(fin - k, 0));
  1395. for (n = 0; k < fin; k++, n++) if (k in O) createProperty$2(result, n, O[k]);
  1396. result.length = n;
  1397. return result;
  1398. }
  1399. });
  1400. var tryToString = tryToString$2;
  1401. var $TypeError$1 = TypeError;
  1402. var deletePropertyOrThrow$1 = function (O, P) {
  1403. if (!delete O[P]) throw new $TypeError$1('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
  1404. };
  1405. var classof = classof$5;
  1406. var $String = String;
  1407. var toString$1 = function (argument) {
  1408. if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  1409. return $String(argument);
  1410. };
  1411. var toAbsoluteIndex = toAbsoluteIndex$3;
  1412. var lengthOfArrayLike$2 = lengthOfArrayLike$6;
  1413. var createProperty$1 = createProperty$3;
  1414. var $Array = Array;
  1415. var max = Math.max;
  1416. var arraySliceSimple = function (O, start, end) {
  1417. var length = lengthOfArrayLike$2(O);
  1418. var k = toAbsoluteIndex(start, length);
  1419. var fin = toAbsoluteIndex(end === undefined ? length : end, length);
  1420. var result = $Array(max(fin - k, 0));
  1421. var n = 0;
  1422. for (; k < fin; k++, n++) createProperty$1(result, n, O[k]);
  1423. result.length = n;
  1424. return result;
  1425. };
  1426. var arraySlice = arraySliceSimple;
  1427. var floor = Math.floor;
  1428. var mergeSort = function (array, comparefn) {
  1429. var length = array.length;
  1430. var middle = floor(length / 2);
  1431. return length < 8 ? insertionSort(array, comparefn) : merge(
  1432. array,
  1433. mergeSort(arraySlice(array, 0, middle), comparefn),
  1434. mergeSort(arraySlice(array, middle), comparefn),
  1435. comparefn
  1436. );
  1437. };
  1438. var insertionSort = function (array, comparefn) {
  1439. var length = array.length;
  1440. var i = 1;
  1441. var element, j;
  1442. while (i < length) {
  1443. j = i;
  1444. element = array[i];
  1445. while (j && comparefn(array[j - 1], element) > 0) {
  1446. array[j] = array[--j];
  1447. }
  1448. if (j !== i++) array[j] = element;
  1449. } return array;
  1450. };
  1451. var merge = function (array, left, right, comparefn) {
  1452. var llength = left.length;
  1453. var rlength = right.length;
  1454. var lindex = 0;
  1455. var rindex = 0;
  1456. while (lindex < llength || rindex < rlength) {
  1457. array[lindex + rindex] = (lindex < llength && rindex < rlength)
  1458. ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
  1459. : lindex < llength ? left[lindex++] : right[rindex++];
  1460. } return array;
  1461. };
  1462. var arraySort = mergeSort;
  1463. var userAgent$1 = engineUserAgent;
  1464. var firefox = userAgent$1.match(/firefox\/(\d+)/i);
  1465. var engineFfVersion = !!firefox && +firefox[1];
  1466. var UA = engineUserAgent;
  1467. var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
  1468. var userAgent = engineUserAgent;
  1469. var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
  1470. var engineWebkitVersion = !!webkit && +webkit[1];
  1471. var $$4 = _export;
  1472. var uncurryThis$2 = functionUncurryThis;
  1473. var aCallable = aCallable$3;
  1474. var toObject$1 = toObject$5;
  1475. var lengthOfArrayLike$1 = lengthOfArrayLike$6;
  1476. var deletePropertyOrThrow = deletePropertyOrThrow$1;
  1477. var toString = toString$1;
  1478. var fails$1 = fails$e;
  1479. var internalSort = arraySort;
  1480. var arrayMethodIsStrict$1 = arrayMethodIsStrict$3;
  1481. var FF = engineFfVersion;
  1482. var IE_OR_EDGE = engineIsIeOrEdge;
  1483. var V8 = engineV8Version;
  1484. var WEBKIT = engineWebkitVersion;
  1485. var test = [];
  1486. var nativeSort = uncurryThis$2(test.sort);
  1487. var push = uncurryThis$2(test.push);
  1488. // IE8-
  1489. var FAILS_ON_UNDEFINED = fails$1(function () {
  1490. test.sort(undefined);
  1491. });
  1492. // V8 bug
  1493. var FAILS_ON_NULL = fails$1(function () {
  1494. test.sort(null);
  1495. });
  1496. // Old WebKit
  1497. var STRICT_METHOD = arrayMethodIsStrict$1('sort');
  1498. var STABLE_SORT = !fails$1(function () {
  1499. // feature detection can be too slow, so check engines versions
  1500. if (V8) return V8 < 70;
  1501. if (FF && FF > 3) return;
  1502. if (IE_OR_EDGE) return true;
  1503. if (WEBKIT) return WEBKIT < 603;
  1504. var result = '';
  1505. var code, chr, value, index;
  1506. // generate an array with more 512 elements (Chakra and old V8 fails only in this case)
  1507. for (code = 65; code < 76; code++) {
  1508. chr = String.fromCharCode(code);
  1509. switch (code) {
  1510. case 66: case 69: case 70: case 72: value = 3; break;
  1511. case 68: case 71: value = 4; break;
  1512. default: value = 2;
  1513. }
  1514. for (index = 0; index < 47; index++) {
  1515. test.push({ k: chr + index, v: value });
  1516. }
  1517. }
  1518. test.sort(function (a, b) { return b.v - a.v; });
  1519. for (index = 0; index < test.length; index++) {
  1520. chr = test[index].k.charAt(0);
  1521. if (result.charAt(result.length - 1) !== chr) result += chr;
  1522. }
  1523. return result !== 'DGBEFHACIJK';
  1524. });
  1525. var FORCED$2 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
  1526. var getSortCompare = function (comparefn) {
  1527. return function (x, y) {
  1528. if (y === undefined) return -1;
  1529. if (x === undefined) return 1;
  1530. if (comparefn !== undefined) return +comparefn(x, y) || 0;
  1531. return toString(x) > toString(y) ? 1 : -1;
  1532. };
  1533. };
  1534. // `Array.prototype.sort` method
  1535. // https://tc39.es/ecma262/#sec-array.prototype.sort
  1536. $$4({ target: 'Array', proto: true, forced: FORCED$2 }, {
  1537. sort: function sort(comparefn) {
  1538. if (comparefn !== undefined) aCallable(comparefn);
  1539. var array = toObject$1(this);
  1540. if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
  1541. var items = [];
  1542. var arrayLength = lengthOfArrayLike$1(array);
  1543. var itemsLength, index;
  1544. for (index = 0; index < arrayLength; index++) {
  1545. if (index in array) push(items, array[index]);
  1546. }
  1547. internalSort(items, getSortCompare(comparefn));
  1548. itemsLength = lengthOfArrayLike$1(items);
  1549. index = 0;
  1550. while (index < itemsLength) array[index] = items[index++];
  1551. while (index < arrayLength) deletePropertyOrThrow(array, index++);
  1552. return array;
  1553. }
  1554. });
  1555. var $$3 = _export;
  1556. var uncurryThis$1 = functionUncurryThis;
  1557. var IndexedObject = indexedObject;
  1558. var toIndexedObject$1 = toIndexedObject$6;
  1559. var arrayMethodIsStrict = arrayMethodIsStrict$3;
  1560. var nativeJoin = uncurryThis$1([].join);
  1561. var ES3_STRINGS = IndexedObject !== Object;
  1562. var FORCED$1 = ES3_STRINGS || !arrayMethodIsStrict('join', ',');
  1563. // `Array.prototype.join` method
  1564. // https://tc39.es/ecma262/#sec-array.prototype.join
  1565. $$3({ target: 'Array', proto: true, forced: FORCED$1 }, {
  1566. join: function join(separator) {
  1567. return nativeJoin(toIndexedObject$1(this), separator === undefined ? ',' : separator);
  1568. }
  1569. });
  1570. var makeBuiltIn = makeBuiltInExports;
  1571. var defineProperty$1 = objectDefineProperty;
  1572. var defineBuiltInAccessor$1 = function (target, name, descriptor) {
  1573. if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
  1574. if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
  1575. return defineProperty$1.f(target, name, descriptor);
  1576. };
  1577. var DESCRIPTORS$1 = descriptors;
  1578. var FUNCTION_NAME_EXISTS = functionName.EXISTS;
  1579. var uncurryThis = functionUncurryThis;
  1580. var defineBuiltInAccessor = defineBuiltInAccessor$1;
  1581. var FunctionPrototype = Function.prototype;
  1582. var functionToString = uncurryThis(FunctionPrototype.toString);
  1583. var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
  1584. var regExpExec = uncurryThis(nameRE.exec);
  1585. var NAME = 'name';
  1586. // Function instances `.name` property
  1587. // https://tc39.es/ecma262/#sec-function-instances-name
  1588. if (DESCRIPTORS$1 && !FUNCTION_NAME_EXISTS) {
  1589. defineBuiltInAccessor(FunctionPrototype, NAME, {
  1590. configurable: true,
  1591. get: function () {
  1592. try {
  1593. return regExpExec(nameRE, functionToString(this))[1];
  1594. } catch (error) {
  1595. return '';
  1596. }
  1597. }
  1598. });
  1599. }
  1600. var $TypeError = TypeError;
  1601. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  1602. var doesNotExceedSafeInteger$1 = function (it) {
  1603. if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
  1604. return it;
  1605. };
  1606. var $$2 = _export;
  1607. var fails = fails$e;
  1608. var isArray = isArray$3;
  1609. var isObject = isObject$8;
  1610. var toObject = toObject$5;
  1611. var lengthOfArrayLike = lengthOfArrayLike$6;
  1612. var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
  1613. var createProperty = createProperty$3;
  1614. var arraySpeciesCreate = arraySpeciesCreate$2;
  1615. var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$3;
  1616. var wellKnownSymbol$1 = wellKnownSymbol$8;
  1617. var V8_VERSION = engineV8Version;
  1618. var IS_CONCAT_SPREADABLE = wellKnownSymbol$1('isConcatSpreadable');
  1619. // We can't use this feature detection in V8 since it causes
  1620. // deoptimization and serious performance degradation
  1621. // https://github.com/zloirock/core-js/issues/679
  1622. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
  1623. var array = [];
  1624. array[IS_CONCAT_SPREADABLE] = false;
  1625. return array.concat()[0] !== array;
  1626. });
  1627. var isConcatSpreadable = function (O) {
  1628. if (!isObject(O)) return false;
  1629. var spreadable = O[IS_CONCAT_SPREADABLE];
  1630. return spreadable !== undefined ? !!spreadable : isArray(O);
  1631. };
  1632. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport$1('concat');
  1633. // `Array.prototype.concat` method
  1634. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1635. // with adding support of @@isConcatSpreadable and @@species
  1636. $$2({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
  1637. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1638. concat: function concat(arg) {
  1639. var O = toObject(this);
  1640. var A = arraySpeciesCreate(O, 0);
  1641. var n = 0;
  1642. var i, k, length, len, E;
  1643. for (i = -1, length = arguments.length; i < length; i++) {
  1644. E = i === -1 ? O : arguments[i];
  1645. if (isConcatSpreadable(E)) {
  1646. len = lengthOfArrayLike(E);
  1647. doesNotExceedSafeInteger(n + len);
  1648. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1649. } else {
  1650. doesNotExceedSafeInteger(n + 1);
  1651. createProperty(A, n++, E);
  1652. }
  1653. }
  1654. A.length = n;
  1655. return A;
  1656. }
  1657. });
  1658. var objectDefineProperties = {};
  1659. var DESCRIPTORS = descriptors;
  1660. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  1661. var definePropertyModule = objectDefineProperty;
  1662. var anObject$1 = anObject$4;
  1663. var toIndexedObject = toIndexedObject$6;
  1664. var objectKeys = objectKeys$2;
  1665. // `Object.defineProperties` method
  1666. // https://tc39.es/ecma262/#sec-object.defineproperties
  1667. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1668. objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1669. anObject$1(O);
  1670. var props = toIndexedObject(Properties);
  1671. var keys = objectKeys(Properties);
  1672. var length = keys.length;
  1673. var index = 0;
  1674. var key;
  1675. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1676. return O;
  1677. };
  1678. var getBuiltIn = getBuiltIn$4;
  1679. var html$1 = getBuiltIn('document', 'documentElement');
  1680. /* global ActiveXObject -- old IE, WSH */
  1681. var anObject = anObject$4;
  1682. var definePropertiesModule = objectDefineProperties;
  1683. var enumBugKeys = enumBugKeys$3;
  1684. var hiddenKeys = hiddenKeys$4;
  1685. var html = html$1;
  1686. var documentCreateElement = documentCreateElement$2;
  1687. var sharedKey = sharedKey$2;
  1688. var GT = '>';
  1689. var LT = '<';
  1690. var PROTOTYPE = 'prototype';
  1691. var SCRIPT = 'script';
  1692. var IE_PROTO = sharedKey('IE_PROTO');
  1693. var EmptyConstructor = function () { /* empty */ };
  1694. var scriptTag = function (content) {
  1695. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1696. };
  1697. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1698. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1699. activeXDocument.write(scriptTag(''));
  1700. activeXDocument.close();
  1701. var temp = activeXDocument.parentWindow.Object;
  1702. activeXDocument = null; // avoid memory leak
  1703. return temp;
  1704. };
  1705. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1706. var NullProtoObjectViaIFrame = function () {
  1707. // Thrash, waste and sodomy: IE GC bug
  1708. var iframe = documentCreateElement('iframe');
  1709. var JS = 'java' + SCRIPT + ':';
  1710. var iframeDocument;
  1711. iframe.style.display = 'none';
  1712. html.appendChild(iframe);
  1713. // https://github.com/zloirock/core-js/issues/475
  1714. iframe.src = String(JS);
  1715. iframeDocument = iframe.contentWindow.document;
  1716. iframeDocument.open();
  1717. iframeDocument.write(scriptTag('document.F=Object'));
  1718. iframeDocument.close();
  1719. return iframeDocument.F;
  1720. };
  1721. // Check for document.domain and active x support
  1722. // No need to use active x approach when document.domain is not set
  1723. // see https://github.com/es-shims/es5-shim/issues/150
  1724. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1725. // avoid IE GC bug
  1726. var activeXDocument;
  1727. var NullProtoObject = function () {
  1728. try {
  1729. activeXDocument = new ActiveXObject('htmlfile');
  1730. } catch (error) { /* ignore */ }
  1731. NullProtoObject = typeof document != 'undefined'
  1732. ? document.domain && activeXDocument
  1733. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1734. : NullProtoObjectViaIFrame()
  1735. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1736. var length = enumBugKeys.length;
  1737. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1738. return NullProtoObject();
  1739. };
  1740. hiddenKeys[IE_PROTO] = true;
  1741. // `Object.create` method
  1742. // https://tc39.es/ecma262/#sec-object.create
  1743. // eslint-disable-next-line es/no-object-create -- safe
  1744. var objectCreate = Object.create || function create(O, Properties) {
  1745. var result;
  1746. if (O !== null) {
  1747. EmptyConstructor[PROTOTYPE] = anObject(O);
  1748. result = new EmptyConstructor();
  1749. EmptyConstructor[PROTOTYPE] = null;
  1750. // add "__proto__" for Object.getPrototypeOf polyfill
  1751. result[IE_PROTO] = O;
  1752. } else result = NullProtoObject();
  1753. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1754. };
  1755. var wellKnownSymbol = wellKnownSymbol$8;
  1756. var create = objectCreate;
  1757. var defineProperty = objectDefineProperty.f;
  1758. var UNSCOPABLES = wellKnownSymbol('unscopables');
  1759. var ArrayPrototype = Array.prototype;
  1760. // Array.prototype[@@unscopables]
  1761. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1762. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  1763. defineProperty(ArrayPrototype, UNSCOPABLES, {
  1764. configurable: true,
  1765. value: create(null)
  1766. });
  1767. }
  1768. // add a key to Array.prototype[@@unscopables]
  1769. var addToUnscopables$1 = function (key) {
  1770. ArrayPrototype[UNSCOPABLES][key] = true;
  1771. };
  1772. var $$1 = _export;
  1773. var $find = arrayIteration.find;
  1774. var addToUnscopables = addToUnscopables$1;
  1775. var FIND = 'find';
  1776. var SKIPS_HOLES = true;
  1777. // Shouldn't skip holes
  1778. // eslint-disable-next-line es/no-array-prototype-find -- testing
  1779. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  1780. // `Array.prototype.find` method
  1781. // https://tc39.es/ecma262/#sec-array.prototype.find
  1782. $$1({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  1783. find: function find(callbackfn /* , that = undefined */) {
  1784. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1785. }
  1786. });
  1787. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1788. addToUnscopables(FIND);
  1789. var $ = _export;
  1790. var $filter = arrayIteration.filter;
  1791. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$3;
  1792. var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
  1793. // `Array.prototype.filter` method
  1794. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1795. // with adding support of @@species
  1796. $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
  1797. filter: function filter(callbackfn /* , thisArg */) {
  1798. return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1799. }
  1800. });
  1801. /**
  1802. * @author: Yura Knoxville
  1803. * @version: v1.1.0
  1804. */
  1805. var Utils = $$7.fn.bootstrapTable.utils;
  1806. var initBodyCaller;
  1807. var groupBy = function groupBy(array, f) {
  1808. var tmpGroups = {};
  1809. array.forEach(function (o) {
  1810. var groups = f(o);
  1811. tmpGroups[groups] = tmpGroups[groups] || [];
  1812. tmpGroups[groups].push(o);
  1813. });
  1814. return tmpGroups;
  1815. };
  1816. Object.assign($$7.fn.bootstrapTable.defaults.icons, {
  1817. collapseGroup: {
  1818. bootstrap3: 'glyphicon-chevron-up',
  1819. bootstrap5: 'bi-chevron-up',
  1820. materialize: 'arrow_drop_down'
  1821. }[$$7.fn.bootstrapTable.theme] || 'fa-angle-up',
  1822. expandGroup: {
  1823. bootstrap3: 'glyphicon-chevron-down',
  1824. bootstrap5: 'bi-chevron-down',
  1825. materialize: 'arrow_drop_up'
  1826. }[$$7.fn.bootstrapTable.theme] || 'fa-angle-down'
  1827. });
  1828. Object.assign($$7.fn.bootstrapTable.defaults, {
  1829. groupBy: false,
  1830. groupByField: '',
  1831. groupByFormatter: undefined,
  1832. groupByToggle: false,
  1833. groupByShowToggleIcon: false,
  1834. groupByCollapsedGroups: []
  1835. });
  1836. var BootstrapTable = $$7.fn.bootstrapTable.Constructor;
  1837. var _initSort = BootstrapTable.prototype.initSort;
  1838. var _initBody = BootstrapTable.prototype.initBody;
  1839. var _updateSelected = BootstrapTable.prototype.updateSelected;
  1840. BootstrapTable.prototype.initSort = function () {
  1841. var _this = this;
  1842. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1843. args[_key] = arguments[_key];
  1844. }
  1845. _initSort.apply(this, Array.prototype.slice.apply(args));
  1846. var that = this;
  1847. this.tableGroups = [];
  1848. if (this.options.groupBy && this.options.groupByField !== '') {
  1849. if (this.options.sortName !== this.options.groupByField) {
  1850. if (this.options.customSort) {
  1851. Utils.calculateObjectValue(this.options, this.options.customSort, [this.options.sortName, this.options.sortOrder, this.data]);
  1852. } else {
  1853. this.options.data.sort(function (a, b) {
  1854. var groupByFields = _this.getGroupByFields();
  1855. var fieldValuesA = [];
  1856. var fieldValuesB = [];
  1857. $$7.each(groupByFields, function (i, field) {
  1858. fieldValuesA.push(a[field]);
  1859. fieldValuesB.push(b[field]);
  1860. });
  1861. a = fieldValuesA.join();
  1862. b = fieldValuesB.join();
  1863. return a.localeCompare(b, undefined, {
  1864. numeric: true
  1865. });
  1866. });
  1867. }
  1868. }
  1869. var groups = groupBy(that.data, function (item) {
  1870. var groupByFields = _this.getGroupByFields();
  1871. var groupValues = [];
  1872. $$7.each(groupByFields, function (i, field) {
  1873. var value_ = Utils.getItemField(item, field, that.options.escape, item.escape);
  1874. groupValues.push(value_);
  1875. });
  1876. return groupValues.join(', ');
  1877. });
  1878. var index = 0;
  1879. $$7.each(groups, function (key, value) {
  1880. _this.tableGroups.push({
  1881. id: index,
  1882. name: key,
  1883. data: value
  1884. });
  1885. value.forEach(function (item) {
  1886. if (!item._data) {
  1887. item._data = {};
  1888. }
  1889. if (_this.isCollapsed(key, value)) {
  1890. item._class += ' hidden';
  1891. }
  1892. item._data['parent-index'] = index;
  1893. });
  1894. index++;
  1895. });
  1896. }
  1897. };
  1898. BootstrapTable.prototype.initBody = function () {
  1899. var _this2 = this;
  1900. initBodyCaller = true;
  1901. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  1902. args[_key2] = arguments[_key2];
  1903. }
  1904. _initBody.apply(this, Array.prototype.slice.apply(args));
  1905. if (this.options.groupBy && this.options.groupByField !== '') {
  1906. var that = this;
  1907. var checkBox = false;
  1908. var visibleColumns = 0;
  1909. this.columns.forEach(function (column) {
  1910. if (column.checkbox && !that.options.singleSelect) {
  1911. checkBox = true;
  1912. } else if (column.visible) {
  1913. visibleColumns += 1;
  1914. }
  1915. });
  1916. if (this.options.detailView && !this.options.cardView) {
  1917. visibleColumns += 1;
  1918. }
  1919. this.tableGroups.forEach(function (item) {
  1920. var html = [];
  1921. html.push(Utils.sprintf('<tr class="info group-by %s" data-group-index="%s">', _this2.options.groupByToggle ? 'expanded' : '', item.id));
  1922. if (that.options.detailView && !that.options.cardView) {
  1923. html.push('<td class="detail"></td>');
  1924. }
  1925. if (checkBox) {
  1926. html.push('<td class="bs-checkbox">', '<input name="btSelectGroup" type="checkbox" />', '</td>');
  1927. }
  1928. var formattedValue = item.name;
  1929. if (that.options.groupByFormatter !== undefined) {
  1930. formattedValue = Utils.calculateObjectValue(that.options, that.options.groupByFormatter, [item.name, item.id, item.data]);
  1931. }
  1932. html.push('<td', Utils.sprintf(' colspan="%s"', visibleColumns), '>', formattedValue);
  1933. var icon = _this2.options.icons.collapseGroup;
  1934. if (_this2.isCollapsed(item.name, item.data)) {
  1935. icon = _this2.options.icons.expandGroup;
  1936. }
  1937. if (_this2.options.groupByToggle && _this2.options.groupByShowToggleIcon) {
  1938. html.push("<span class=\"float-right ".concat(_this2.options.iconsPrefix, " ").concat(icon, "\"></span>"));
  1939. }
  1940. html.push('</td></tr>');
  1941. that.$body.find("tr[data-parent-index=".concat(item.id, "]:first")).before($$7(html.join('')));
  1942. });
  1943. this.$selectGroup = [];
  1944. this.$body.find('[name="btSelectGroup"]').each(function () {
  1945. var self = $$7(this);
  1946. that.$selectGroup.push({
  1947. group: self,
  1948. item: that.$selectItem.filter(function () {
  1949. return $$7(this).closest('tr').data('parent-index') === self.closest('tr').data('group-index');
  1950. })
  1951. });
  1952. });
  1953. if (this.options.groupByToggle) {
  1954. this.$container.off('click', '.group-by').on('click', '.group-by', function () {
  1955. var $this = $$7(this);
  1956. var groupIndex = $this.closest('tr').data('group-index');
  1957. var $groupRows = that.$body.find("tr[data-parent-index=".concat(groupIndex, "]"));
  1958. $this.toggleClass('expanded collapsed');
  1959. $this.find('span').toggleClass("".concat(that.options.icons.collapseGroup, " ").concat(that.options.icons.expandGroup));
  1960. $groupRows.toggleClass('hidden');
  1961. $groupRows.each(function (i, element) {
  1962. return that.collapseRow($$7(element).data('index'));
  1963. });
  1964. });
  1965. }
  1966. this.$container.off('click', '[name="btSelectGroup"]').on('click', '[name="btSelectGroup"]', function (event) {
  1967. event.stopImmediatePropagation();
  1968. var self = $$7(this);
  1969. var checked = self.prop('checked');
  1970. that[checked ? 'checkGroup' : 'uncheckGroup']($$7(this).closest('tr').data('group-index'));
  1971. });
  1972. }
  1973. initBodyCaller = false;
  1974. this.updateSelected();
  1975. };
  1976. BootstrapTable.prototype.updateSelected = function () {
  1977. if (!initBodyCaller) {
  1978. for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  1979. args[_key3] = arguments[_key3];
  1980. }
  1981. _updateSelected.apply(this, Array.prototype.slice.apply(args));
  1982. if (this.options.groupBy && this.options.groupByField !== '') {
  1983. this.$selectGroup.forEach(function (item) {
  1984. var checkGroup = item.item.filter(':enabled').length === item.item.filter(':enabled').filter(':checked').length;
  1985. item.group.prop('checked', checkGroup);
  1986. });
  1987. }
  1988. }
  1989. };
  1990. BootstrapTable.prototype.checkGroup = function (index) {
  1991. this.checkGroup_(index, true);
  1992. };
  1993. BootstrapTable.prototype.uncheckGroup = function (index) {
  1994. this.checkGroup_(index, false);
  1995. };
  1996. BootstrapTable.prototype.isCollapsed = function (groupKey, items) {
  1997. if (this.options.groupByCollapsedGroups) {
  1998. var collapsedGroups = Utils.calculateObjectValue(this, this.options.groupByCollapsedGroups, [groupKey, items], true);
  1999. if ($$7.inArray(groupKey, collapsedGroups) > -1) {
  2000. return true;
  2001. }
  2002. }
  2003. return false;
  2004. };
  2005. BootstrapTable.prototype.checkGroup_ = function (index, checked) {
  2006. var rowsBefore = this.getSelections();
  2007. var filter = function filter() {
  2008. return $$7(this).closest('tr').data('parent-index') === index;
  2009. };
  2010. this.$selectItem.filter(filter).prop('checked', checked);
  2011. this.updateRows();
  2012. this.updateSelected();
  2013. var rowsAfter = this.getSelections();
  2014. if (checked) {
  2015. this.trigger('check-all', rowsAfter, rowsBefore);
  2016. return;
  2017. }
  2018. this.trigger('uncheck-all', rowsAfter, rowsBefore);
  2019. };
  2020. BootstrapTable.prototype.getGroupByFields = function () {
  2021. var groupByFields = this.options.groupByField;
  2022. if (!$$7.isArray(this.options.groupByField)) {
  2023. groupByFields = [this.options.groupByField];
  2024. }
  2025. return groupByFields;
  2026. };
  2027. $$7.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  2028. _inherits(_class, _$$BootstrapTable);
  2029. var _super = _createSuper(_class);
  2030. function _class() {
  2031. _classCallCheck(this, _class);
  2032. return _super.apply(this, arguments);
  2033. }
  2034. _createClass(_class, [{
  2035. key: "scrollTo",
  2036. value: function scrollTo(params) {
  2037. if (this.options.groupBy) {
  2038. var options = {
  2039. unit: 'px',
  2040. value: 0
  2041. };
  2042. if (_typeof(params) === 'object') {
  2043. options = Object.assign(options, params);
  2044. }
  2045. if (options.unit === 'rows') {
  2046. var scrollTo = 0;
  2047. this.$body.find("> tr:not(.group-by):lt(".concat(options.value, ")")).each(function (i, el) {
  2048. scrollTo += $$7(el).outerHeight(true);
  2049. });
  2050. var $targetColumn = this.$body.find("> tr:not(.group-by):eq(".concat(options.value, ")"));
  2051. $targetColumn.prevAll('.group-by').each(function (i, el) {
  2052. scrollTo += $$7(el).outerHeight(true);
  2053. });
  2054. this.$tableBody.scrollTop(scrollTo);
  2055. return;
  2056. }
  2057. }
  2058. _get(_getPrototypeOf(_class.prototype), "scrollTo", this).call(this, params);
  2059. }
  2060. }]);
  2061. return _class;
  2062. }($$7.BootstrapTable);
  2063. }));