bootstrap-table-fixed-columns.js 74 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082
  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 ($$5) { 'use strict';
  6. function _assertThisInitialized(e) {
  7. if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  8. return e;
  9. }
  10. function _callSuper(t, o, e) {
  11. return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  12. }
  13. function _classCallCheck(a, n) {
  14. if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
  15. }
  16. function _defineProperties(e, r) {
  17. for (var t = 0; t < r.length; t++) {
  18. var o = r[t];
  19. o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
  20. }
  21. }
  22. function _createClass(e, r, t) {
  23. return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
  24. writable: !1
  25. }), e;
  26. }
  27. function _get() {
  28. return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
  29. var p = _superPropBase(e, t);
  30. if (p) {
  31. var n = Object.getOwnPropertyDescriptor(p, t);
  32. return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
  33. }
  34. }, _get.apply(null, arguments);
  35. }
  36. function _getPrototypeOf(t) {
  37. return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
  38. return t.__proto__ || Object.getPrototypeOf(t);
  39. }, _getPrototypeOf(t);
  40. }
  41. function _inherits(t, e) {
  42. if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
  43. t.prototype = Object.create(e && e.prototype, {
  44. constructor: {
  45. value: t,
  46. writable: !0,
  47. configurable: !0
  48. }
  49. }), Object.defineProperty(t, "prototype", {
  50. writable: !1
  51. }), e && _setPrototypeOf(t, e);
  52. }
  53. function _isNativeReflectConstruct() {
  54. try {
  55. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  56. } catch (t) {}
  57. return (_isNativeReflectConstruct = function () {
  58. return !!t;
  59. })();
  60. }
  61. function _possibleConstructorReturn(t, e) {
  62. if (e && ("object" == typeof e || "function" == typeof e)) return e;
  63. if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
  64. return _assertThisInitialized(t);
  65. }
  66. function _setPrototypeOf(t, e) {
  67. return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
  68. return t.__proto__ = e, t;
  69. }, _setPrototypeOf(t, e);
  70. }
  71. function _superPropBase(t, o) {
  72. for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
  73. return t;
  74. }
  75. function _superPropGet(t, e, r, o) {
  76. var p = _get(_getPrototypeOf(t.prototype ), e, r);
  77. return function (t) {
  78. return p.apply(r, t);
  79. } ;
  80. }
  81. function _toPrimitive(t, r) {
  82. if ("object" != typeof t || !t) return t;
  83. var e = t[Symbol.toPrimitive];
  84. if (void 0 !== e) {
  85. var i = e.call(t, r);
  86. if ("object" != typeof i) return i;
  87. throw new TypeError("@@toPrimitive must return a primitive value.");
  88. }
  89. return (String )(t);
  90. }
  91. function _toPropertyKey(t) {
  92. var i = _toPrimitive(t, "string");
  93. return "symbol" == typeof i ? i : i + "";
  94. }
  95. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  96. var check = function (it) {
  97. return it && it.Math === Math && it;
  98. };
  99. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  100. var globalThis_1 =
  101. // eslint-disable-next-line es/no-global-this -- safe
  102. check(typeof globalThis == 'object' && globalThis) ||
  103. check(typeof window == 'object' && window) ||
  104. // eslint-disable-next-line no-restricted-globals -- safe
  105. check(typeof self == 'object' && self) ||
  106. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  107. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  108. // eslint-disable-next-line no-new-func -- fallback
  109. (function () { return this; })() || Function('return this')();
  110. var objectGetOwnPropertyDescriptor = {};
  111. var fails$c = function (exec) {
  112. try {
  113. return !!exec();
  114. } catch (error) {
  115. return true;
  116. }
  117. };
  118. var fails$b = fails$c;
  119. // Detect IE8's incomplete defineProperty implementation
  120. var descriptors = !fails$b(function () {
  121. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  122. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  123. });
  124. var fails$a = fails$c;
  125. var functionBindNative = !fails$a(function () {
  126. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  127. var test = (function () { /* empty */ }).bind();
  128. // eslint-disable-next-line no-prototype-builtins -- safe
  129. return typeof test != 'function' || test.hasOwnProperty('prototype');
  130. });
  131. var NATIVE_BIND$2 = functionBindNative;
  132. var call$5 = Function.prototype.call;
  133. var functionCall = NATIVE_BIND$2 ? call$5.bind(call$5) : function () {
  134. return call$5.apply(call$5, arguments);
  135. };
  136. var objectPropertyIsEnumerable = {};
  137. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  138. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  139. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  140. // Nashorn ~ JDK8 bug
  141. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  142. // `Object.prototype.propertyIsEnumerable` method implementation
  143. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  144. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  145. var descriptor = getOwnPropertyDescriptor$1(this, V);
  146. return !!descriptor && descriptor.enumerable;
  147. } : $propertyIsEnumerable;
  148. var createPropertyDescriptor$2 = function (bitmap, value) {
  149. return {
  150. enumerable: !(bitmap & 1),
  151. configurable: !(bitmap & 2),
  152. writable: !(bitmap & 4),
  153. value: value
  154. };
  155. };
  156. var NATIVE_BIND$1 = functionBindNative;
  157. var FunctionPrototype$1 = Function.prototype;
  158. var call$4 = FunctionPrototype$1.call;
  159. var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$4, call$4);
  160. var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
  161. return function () {
  162. return call$4.apply(fn, arguments);
  163. };
  164. };
  165. var uncurryThis$h = functionUncurryThis;
  166. var toString$5 = uncurryThis$h({}.toString);
  167. var stringSlice$1 = uncurryThis$h(''.slice);
  168. var classofRaw$2 = function (it) {
  169. return stringSlice$1(toString$5(it), 8, -1);
  170. };
  171. var uncurryThis$g = functionUncurryThis;
  172. var fails$9 = fails$c;
  173. var classof$5 = classofRaw$2;
  174. var $Object$3 = Object;
  175. var split = uncurryThis$g(''.split);
  176. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  177. var indexedObject = fails$9(function () {
  178. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  179. // eslint-disable-next-line no-prototype-builtins -- safe
  180. return !$Object$3('z').propertyIsEnumerable(0);
  181. }) ? function (it) {
  182. return classof$5(it) === 'String' ? split(it, '') : $Object$3(it);
  183. } : $Object$3;
  184. // we can't use just `it == null` since of `document.all` special case
  185. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  186. var isNullOrUndefined$2 = function (it) {
  187. return it === null || it === undefined;
  188. };
  189. var isNullOrUndefined$1 = isNullOrUndefined$2;
  190. var $TypeError$5 = TypeError;
  191. // `RequireObjectCoercible` abstract operation
  192. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  193. var requireObjectCoercible$3 = function (it) {
  194. if (isNullOrUndefined$1(it)) throw new $TypeError$5("Can't call method on " + it);
  195. return it;
  196. };
  197. // toObject with fallback for non-array-like ES3 strings
  198. var IndexedObject$2 = indexedObject;
  199. var requireObjectCoercible$2 = requireObjectCoercible$3;
  200. var toIndexedObject$4 = function (it) {
  201. return IndexedObject$2(requireObjectCoercible$2(it));
  202. };
  203. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  204. var documentAll = typeof document == 'object' && document.all;
  205. // `IsCallable` abstract operation
  206. // https://tc39.es/ecma262/#sec-iscallable
  207. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  208. var isCallable$c = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  209. return typeof argument == 'function' || argument === documentAll;
  210. } : function (argument) {
  211. return typeof argument == 'function';
  212. };
  213. var isCallable$b = isCallable$c;
  214. var isObject$6 = function (it) {
  215. return typeof it == 'object' ? it !== null : isCallable$b(it);
  216. };
  217. var globalThis$c = globalThis_1;
  218. var isCallable$a = isCallable$c;
  219. var aFunction = function (argument) {
  220. return isCallable$a(argument) ? argument : undefined;
  221. };
  222. var getBuiltIn$4 = function (namespace, method) {
  223. return arguments.length < 2 ? aFunction(globalThis$c[namespace]) : globalThis$c[namespace] && globalThis$c[namespace][method];
  224. };
  225. var uncurryThis$f = functionUncurryThis;
  226. var objectIsPrototypeOf = uncurryThis$f({}.isPrototypeOf);
  227. var globalThis$b = globalThis_1;
  228. var navigator$1 = globalThis$b.navigator;
  229. var userAgent$1 = navigator$1 && navigator$1.userAgent;
  230. var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
  231. var globalThis$a = globalThis_1;
  232. var userAgent = environmentUserAgent;
  233. var process = globalThis$a.process;
  234. var Deno = globalThis$a.Deno;
  235. var versions = process && process.versions || Deno && Deno.version;
  236. var v8 = versions && versions.v8;
  237. var match, version;
  238. if (v8) {
  239. match = v8.split('.');
  240. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  241. // but their correct versions are not interesting for us
  242. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  243. }
  244. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  245. // so check `userAgent` even if `.v8` exists, but 0
  246. if (!version && userAgent) {
  247. match = userAgent.match(/Edge\/(\d+)/);
  248. if (!match || match[1] >= 74) {
  249. match = userAgent.match(/Chrome\/(\d+)/);
  250. if (match) version = +match[1];
  251. }
  252. }
  253. var environmentV8Version = version;
  254. /* eslint-disable es/no-symbol -- required for testing */
  255. var V8_VERSION = environmentV8Version;
  256. var fails$8 = fails$c;
  257. var globalThis$9 = globalThis_1;
  258. var $String$4 = globalThis$9.String;
  259. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  260. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
  261. var symbol = Symbol('symbol detection');
  262. // Chrome 38 Symbol has incorrect toString conversion
  263. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  264. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  265. // of course, fail.
  266. return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
  267. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  268. !Symbol.sham && V8_VERSION && V8_VERSION < 41;
  269. });
  270. /* eslint-disable es/no-symbol -- required for testing */
  271. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  272. var useSymbolAsUid = NATIVE_SYMBOL$1
  273. && !Symbol.sham
  274. && typeof Symbol.iterator == 'symbol';
  275. var getBuiltIn$3 = getBuiltIn$4;
  276. var isCallable$9 = isCallable$c;
  277. var isPrototypeOf = objectIsPrototypeOf;
  278. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  279. var $Object$2 = Object;
  280. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  281. return typeof it == 'symbol';
  282. } : function (it) {
  283. var $Symbol = getBuiltIn$3('Symbol');
  284. return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
  285. };
  286. var $String$3 = String;
  287. var tryToString$1 = function (argument) {
  288. try {
  289. return $String$3(argument);
  290. } catch (error) {
  291. return 'Object';
  292. }
  293. };
  294. var isCallable$8 = isCallable$c;
  295. var tryToString = tryToString$1;
  296. var $TypeError$4 = TypeError;
  297. // `Assert: IsCallable(argument) is true`
  298. var aCallable$2 = function (argument) {
  299. if (isCallable$8(argument)) return argument;
  300. throw new $TypeError$4(tryToString(argument) + ' is not a function');
  301. };
  302. var aCallable$1 = aCallable$2;
  303. var isNullOrUndefined = isNullOrUndefined$2;
  304. // `GetMethod` abstract operation
  305. // https://tc39.es/ecma262/#sec-getmethod
  306. var getMethod$1 = function (V, P) {
  307. var func = V[P];
  308. return isNullOrUndefined(func) ? undefined : aCallable$1(func);
  309. };
  310. var call$3 = functionCall;
  311. var isCallable$7 = isCallable$c;
  312. var isObject$5 = isObject$6;
  313. var $TypeError$3 = TypeError;
  314. // `OrdinaryToPrimitive` abstract operation
  315. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  316. var ordinaryToPrimitive$1 = function (input, pref) {
  317. var fn, val;
  318. if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$5(val = call$3(fn, input))) return val;
  319. if (isCallable$7(fn = input.valueOf) && !isObject$5(val = call$3(fn, input))) return val;
  320. if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$5(val = call$3(fn, input))) return val;
  321. throw new $TypeError$3("Can't convert object to primitive value");
  322. };
  323. var sharedStore = {exports: {}};
  324. var globalThis$8 = globalThis_1;
  325. // eslint-disable-next-line es/no-object-defineproperty -- safe
  326. var defineProperty$3 = Object.defineProperty;
  327. var defineGlobalProperty$3 = function (key, value) {
  328. try {
  329. defineProperty$3(globalThis$8, key, { value: value, configurable: true, writable: true });
  330. } catch (error) {
  331. globalThis$8[key] = value;
  332. } return value;
  333. };
  334. var globalThis$7 = globalThis_1;
  335. var defineGlobalProperty$2 = defineGlobalProperty$3;
  336. var SHARED = '__core-js_shared__';
  337. var store$3 = sharedStore.exports = globalThis$7[SHARED] || defineGlobalProperty$2(SHARED, {});
  338. (store$3.versions || (store$3.versions = [])).push({
  339. version: '3.38.1',
  340. mode: 'global',
  341. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  342. license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
  343. source: 'https://github.com/zloirock/core-js'
  344. });
  345. var sharedStoreExports = sharedStore.exports;
  346. var store$2 = sharedStoreExports;
  347. var shared$3 = function (key, value) {
  348. return store$2[key] || (store$2[key] = value || {});
  349. };
  350. var requireObjectCoercible$1 = requireObjectCoercible$3;
  351. var $Object$1 = Object;
  352. // `ToObject` abstract operation
  353. // https://tc39.es/ecma262/#sec-toobject
  354. var toObject$3 = function (argument) {
  355. return $Object$1(requireObjectCoercible$1(argument));
  356. };
  357. var uncurryThis$e = functionUncurryThis;
  358. var toObject$2 = toObject$3;
  359. var hasOwnProperty = uncurryThis$e({}.hasOwnProperty);
  360. // `HasOwnProperty` abstract operation
  361. // https://tc39.es/ecma262/#sec-hasownproperty
  362. // eslint-disable-next-line es/no-object-hasown -- safe
  363. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  364. return hasOwnProperty(toObject$2(it), key);
  365. };
  366. var uncurryThis$d = functionUncurryThis;
  367. var id = 0;
  368. var postfix = Math.random();
  369. var toString$4 = uncurryThis$d(1.0.toString);
  370. var uid$2 = function (key) {
  371. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
  372. };
  373. var globalThis$6 = globalThis_1;
  374. var shared$2 = shared$3;
  375. var hasOwn$6 = hasOwnProperty_1;
  376. var uid$1 = uid$2;
  377. var NATIVE_SYMBOL = symbolConstructorDetection;
  378. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  379. var Symbol$2 = globalThis$6.Symbol;
  380. var WellKnownSymbolsStore = shared$2('wks');
  381. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
  382. var wellKnownSymbol$5 = function (name) {
  383. if (!hasOwn$6(WellKnownSymbolsStore, name)) {
  384. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$2, name)
  385. ? Symbol$2[name]
  386. : createWellKnownSymbol('Symbol.' + name);
  387. } return WellKnownSymbolsStore[name];
  388. };
  389. var call$2 = functionCall;
  390. var isObject$4 = isObject$6;
  391. var isSymbol$1 = isSymbol$2;
  392. var getMethod = getMethod$1;
  393. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  394. var wellKnownSymbol$4 = wellKnownSymbol$5;
  395. var $TypeError$2 = TypeError;
  396. var TO_PRIMITIVE = wellKnownSymbol$4('toPrimitive');
  397. // `ToPrimitive` abstract operation
  398. // https://tc39.es/ecma262/#sec-toprimitive
  399. var toPrimitive$1 = function (input, pref) {
  400. if (!isObject$4(input) || isSymbol$1(input)) return input;
  401. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  402. var result;
  403. if (exoticToPrim) {
  404. if (pref === undefined) pref = 'default';
  405. result = call$2(exoticToPrim, input, pref);
  406. if (!isObject$4(result) || isSymbol$1(result)) return result;
  407. throw new $TypeError$2("Can't convert object to primitive value");
  408. }
  409. if (pref === undefined) pref = 'number';
  410. return ordinaryToPrimitive(input, pref);
  411. };
  412. var toPrimitive = toPrimitive$1;
  413. var isSymbol = isSymbol$2;
  414. // `ToPropertyKey` abstract operation
  415. // https://tc39.es/ecma262/#sec-topropertykey
  416. var toPropertyKey$2 = function (argument) {
  417. var key = toPrimitive(argument, 'string');
  418. return isSymbol(key) ? key : key + '';
  419. };
  420. var globalThis$5 = globalThis_1;
  421. var isObject$3 = isObject$6;
  422. var document$1 = globalThis$5.document;
  423. // typeof document.createElement is 'object' in old IE
  424. var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
  425. var documentCreateElement$1 = function (it) {
  426. return EXISTS$1 ? document$1.createElement(it) : {};
  427. };
  428. var DESCRIPTORS$8 = descriptors;
  429. var fails$7 = fails$c;
  430. var createElement = documentCreateElement$1;
  431. // Thanks to IE8 for its funny defineProperty
  432. var ie8DomDefine = !DESCRIPTORS$8 && !fails$7(function () {
  433. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  434. return Object.defineProperty(createElement('div'), 'a', {
  435. get: function () { return 7; }
  436. }).a !== 7;
  437. });
  438. var DESCRIPTORS$7 = descriptors;
  439. var call$1 = functionCall;
  440. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  441. var createPropertyDescriptor$1 = createPropertyDescriptor$2;
  442. var toIndexedObject$3 = toIndexedObject$4;
  443. var toPropertyKey$1 = toPropertyKey$2;
  444. var hasOwn$5 = hasOwnProperty_1;
  445. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  446. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  447. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  448. // `Object.getOwnPropertyDescriptor` method
  449. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  450. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  451. O = toIndexedObject$3(O);
  452. P = toPropertyKey$1(P);
  453. if (IE8_DOM_DEFINE$1) try {
  454. return $getOwnPropertyDescriptor$1(O, P);
  455. } catch (error) { /* empty */ }
  456. if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
  457. };
  458. var objectDefineProperty = {};
  459. var DESCRIPTORS$6 = descriptors;
  460. var fails$6 = fails$c;
  461. // V8 ~ Chrome 36-
  462. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  463. var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$6(function () {
  464. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  465. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  466. value: 42,
  467. writable: false
  468. }).prototype !== 42;
  469. });
  470. var isObject$2 = isObject$6;
  471. var $String$2 = String;
  472. var $TypeError$1 = TypeError;
  473. // `Assert: Type(argument) is Object`
  474. var anObject$4 = function (argument) {
  475. if (isObject$2(argument)) return argument;
  476. throw new $TypeError$1($String$2(argument) + ' is not an object');
  477. };
  478. var DESCRIPTORS$5 = descriptors;
  479. var IE8_DOM_DEFINE = ie8DomDefine;
  480. var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
  481. var anObject$3 = anObject$4;
  482. var toPropertyKey = toPropertyKey$2;
  483. var $TypeError = TypeError;
  484. // eslint-disable-next-line es/no-object-defineproperty -- safe
  485. var $defineProperty = Object.defineProperty;
  486. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  487. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  488. var ENUMERABLE = 'enumerable';
  489. var CONFIGURABLE$1 = 'configurable';
  490. var WRITABLE = 'writable';
  491. // `Object.defineProperty` method
  492. // https://tc39.es/ecma262/#sec-object.defineproperty
  493. objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
  494. anObject$3(O);
  495. P = toPropertyKey(P);
  496. anObject$3(Attributes);
  497. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  498. var current = $getOwnPropertyDescriptor(O, P);
  499. if (current && current[WRITABLE]) {
  500. O[P] = Attributes.value;
  501. Attributes = {
  502. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  503. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  504. writable: false
  505. };
  506. }
  507. } return $defineProperty(O, P, Attributes);
  508. } : $defineProperty : function defineProperty(O, P, Attributes) {
  509. anObject$3(O);
  510. P = toPropertyKey(P);
  511. anObject$3(Attributes);
  512. if (IE8_DOM_DEFINE) try {
  513. return $defineProperty(O, P, Attributes);
  514. } catch (error) { /* empty */ }
  515. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
  516. if ('value' in Attributes) O[P] = Attributes.value;
  517. return O;
  518. };
  519. var DESCRIPTORS$4 = descriptors;
  520. var definePropertyModule$3 = objectDefineProperty;
  521. var createPropertyDescriptor = createPropertyDescriptor$2;
  522. var createNonEnumerableProperty$2 = DESCRIPTORS$4 ? function (object, key, value) {
  523. return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
  524. } : function (object, key, value) {
  525. object[key] = value;
  526. return object;
  527. };
  528. var makeBuiltIn$2 = {exports: {}};
  529. var DESCRIPTORS$3 = descriptors;
  530. var hasOwn$4 = hasOwnProperty_1;
  531. var FunctionPrototype = Function.prototype;
  532. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  533. var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
  534. var EXISTS = hasOwn$4(FunctionPrototype, 'name');
  535. // additional protection from minified / mangled / dropped function names
  536. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  537. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
  538. var functionName = {
  539. EXISTS: EXISTS,
  540. PROPER: PROPER,
  541. CONFIGURABLE: CONFIGURABLE
  542. };
  543. var uncurryThis$c = functionUncurryThis;
  544. var isCallable$6 = isCallable$c;
  545. var store$1 = sharedStoreExports;
  546. var functionToString = uncurryThis$c(Function.toString);
  547. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  548. if (!isCallable$6(store$1.inspectSource)) {
  549. store$1.inspectSource = function (it) {
  550. return functionToString(it);
  551. };
  552. }
  553. var inspectSource$2 = store$1.inspectSource;
  554. var globalThis$4 = globalThis_1;
  555. var isCallable$5 = isCallable$c;
  556. var WeakMap$1 = globalThis$4.WeakMap;
  557. var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1));
  558. var shared$1 = shared$3;
  559. var uid = uid$2;
  560. var keys = shared$1('keys');
  561. var sharedKey$2 = function (key) {
  562. return keys[key] || (keys[key] = uid(key));
  563. };
  564. var hiddenKeys$4 = {};
  565. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  566. var globalThis$3 = globalThis_1;
  567. var isObject$1 = isObject$6;
  568. var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
  569. var hasOwn$3 = hasOwnProperty_1;
  570. var shared = sharedStoreExports;
  571. var sharedKey$1 = sharedKey$2;
  572. var hiddenKeys$3 = hiddenKeys$4;
  573. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  574. var TypeError$1 = globalThis$3.TypeError;
  575. var WeakMap = globalThis$3.WeakMap;
  576. var set, get, has;
  577. var enforce = function (it) {
  578. return has(it) ? get(it) : set(it, {});
  579. };
  580. var getterFor = function (TYPE) {
  581. return function (it) {
  582. var state;
  583. if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
  584. throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  585. } return state;
  586. };
  587. };
  588. if (NATIVE_WEAK_MAP || shared.state) {
  589. var store = shared.state || (shared.state = new WeakMap());
  590. /* eslint-disable no-self-assign -- prototype methods protection */
  591. store.get = store.get;
  592. store.has = store.has;
  593. store.set = store.set;
  594. /* eslint-enable no-self-assign -- prototype methods protection */
  595. set = function (it, metadata) {
  596. if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  597. metadata.facade = it;
  598. store.set(it, metadata);
  599. return metadata;
  600. };
  601. get = function (it) {
  602. return store.get(it) || {};
  603. };
  604. has = function (it) {
  605. return store.has(it);
  606. };
  607. } else {
  608. var STATE = sharedKey$1('state');
  609. hiddenKeys$3[STATE] = true;
  610. set = function (it, metadata) {
  611. if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  612. metadata.facade = it;
  613. createNonEnumerableProperty$1(it, STATE, metadata);
  614. return metadata;
  615. };
  616. get = function (it) {
  617. return hasOwn$3(it, STATE) ? it[STATE] : {};
  618. };
  619. has = function (it) {
  620. return hasOwn$3(it, STATE);
  621. };
  622. }
  623. var internalState = {
  624. set: set,
  625. get: get,
  626. has: has,
  627. enforce: enforce,
  628. getterFor: getterFor
  629. };
  630. var uncurryThis$b = functionUncurryThis;
  631. var fails$5 = fails$c;
  632. var isCallable$4 = isCallable$c;
  633. var hasOwn$2 = hasOwnProperty_1;
  634. var DESCRIPTORS$2 = descriptors;
  635. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  636. var inspectSource$1 = inspectSource$2;
  637. var InternalStateModule = internalState;
  638. var enforceInternalState = InternalStateModule.enforce;
  639. var getInternalState = InternalStateModule.get;
  640. var $String$1 = String;
  641. // eslint-disable-next-line es/no-object-defineproperty -- safe
  642. var defineProperty$2 = Object.defineProperty;
  643. var stringSlice = uncurryThis$b(''.slice);
  644. var replace$1 = uncurryThis$b(''.replace);
  645. var join = uncurryThis$b([].join);
  646. var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$5(function () {
  647. return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  648. });
  649. var TEMPLATE = String(String).split('String');
  650. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  651. if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
  652. name = '[' + replace$1($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  653. }
  654. if (options && options.getter) name = 'get ' + name;
  655. if (options && options.setter) name = 'set ' + name;
  656. if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  657. if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
  658. else value.name = name;
  659. }
  660. if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
  661. defineProperty$2(value, 'length', { value: options.arity });
  662. }
  663. try {
  664. if (options && hasOwn$2(options, 'constructor') && options.constructor) {
  665. if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
  666. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  667. } else if (value.prototype) value.prototype = undefined;
  668. } catch (error) { /* empty */ }
  669. var state = enforceInternalState(value);
  670. if (!hasOwn$2(state, 'source')) {
  671. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  672. } return value;
  673. };
  674. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  675. // eslint-disable-next-line no-extend-native -- required
  676. Function.prototype.toString = makeBuiltIn$1(function toString() {
  677. return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
  678. }, 'toString');
  679. var makeBuiltInExports = makeBuiltIn$2.exports;
  680. var isCallable$3 = isCallable$c;
  681. var definePropertyModule$2 = objectDefineProperty;
  682. var makeBuiltIn = makeBuiltInExports;
  683. var defineGlobalProperty$1 = defineGlobalProperty$3;
  684. var defineBuiltIn$2 = function (O, key, value, options) {
  685. if (!options) options = {};
  686. var simple = options.enumerable;
  687. var name = options.name !== undefined ? options.name : key;
  688. if (isCallable$3(value)) makeBuiltIn(value, name, options);
  689. if (options.global) {
  690. if (simple) O[key] = value;
  691. else defineGlobalProperty$1(key, value);
  692. } else {
  693. try {
  694. if (!options.unsafe) delete O[key];
  695. else if (O[key]) simple = true;
  696. } catch (error) { /* empty */ }
  697. if (simple) O[key] = value;
  698. else definePropertyModule$2.f(O, key, {
  699. value: value,
  700. enumerable: false,
  701. configurable: !options.nonConfigurable,
  702. writable: !options.nonWritable
  703. });
  704. } return O;
  705. };
  706. var objectGetOwnPropertyNames = {};
  707. var ceil = Math.ceil;
  708. var floor = Math.floor;
  709. // `Math.trunc` method
  710. // https://tc39.es/ecma262/#sec-math.trunc
  711. // eslint-disable-next-line es/no-math-trunc -- safe
  712. var mathTrunc = Math.trunc || function trunc(x) {
  713. var n = +x;
  714. return (n > 0 ? floor : ceil)(n);
  715. };
  716. var trunc = mathTrunc;
  717. // `ToIntegerOrInfinity` abstract operation
  718. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  719. var toIntegerOrInfinity$2 = function (argument) {
  720. var number = +argument;
  721. // eslint-disable-next-line no-self-compare -- NaN check
  722. return number !== number || number === 0 ? 0 : trunc(number);
  723. };
  724. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  725. var max = Math.max;
  726. var min$1 = Math.min;
  727. // Helper for a popular repeating case of the spec:
  728. // Let integer be ? ToInteger(index).
  729. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  730. var toAbsoluteIndex$1 = function (index, length) {
  731. var integer = toIntegerOrInfinity$1(index);
  732. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  733. };
  734. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  735. var min = Math.min;
  736. // `ToLength` abstract operation
  737. // https://tc39.es/ecma262/#sec-tolength
  738. var toLength$1 = function (argument) {
  739. var len = toIntegerOrInfinity(argument);
  740. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  741. };
  742. var toLength = toLength$1;
  743. // `LengthOfArrayLike` abstract operation
  744. // https://tc39.es/ecma262/#sec-lengthofarraylike
  745. var lengthOfArrayLike$2 = function (obj) {
  746. return toLength(obj.length);
  747. };
  748. var toIndexedObject$2 = toIndexedObject$4;
  749. var toAbsoluteIndex = toAbsoluteIndex$1;
  750. var lengthOfArrayLike$1 = lengthOfArrayLike$2;
  751. // `Array.prototype.{ indexOf, includes }` methods implementation
  752. var createMethod$2 = function (IS_INCLUDES) {
  753. return function ($this, el, fromIndex) {
  754. var O = toIndexedObject$2($this);
  755. var length = lengthOfArrayLike$1(O);
  756. if (length === 0) return !IS_INCLUDES && -1;
  757. var index = toAbsoluteIndex(fromIndex, length);
  758. var value;
  759. // Array#includes uses SameValueZero equality algorithm
  760. // eslint-disable-next-line no-self-compare -- NaN check
  761. if (IS_INCLUDES && el !== el) while (length > index) {
  762. value = O[index++];
  763. // eslint-disable-next-line no-self-compare -- NaN check
  764. if (value !== value) return true;
  765. // Array#indexOf ignores holes, Array#includes - not
  766. } else for (;length > index; index++) {
  767. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  768. } return !IS_INCLUDES && -1;
  769. };
  770. };
  771. var arrayIncludes = {
  772. // `Array.prototype.includes` method
  773. // https://tc39.es/ecma262/#sec-array.prototype.includes
  774. includes: createMethod$2(true),
  775. // `Array.prototype.indexOf` method
  776. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  777. indexOf: createMethod$2(false)
  778. };
  779. var uncurryThis$a = functionUncurryThis;
  780. var hasOwn$1 = hasOwnProperty_1;
  781. var toIndexedObject$1 = toIndexedObject$4;
  782. var indexOf = arrayIncludes.indexOf;
  783. var hiddenKeys$2 = hiddenKeys$4;
  784. var push$1 = uncurryThis$a([].push);
  785. var objectKeysInternal = function (object, names) {
  786. var O = toIndexedObject$1(object);
  787. var i = 0;
  788. var result = [];
  789. var key;
  790. for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(result, key);
  791. // Don't enum bug & hidden keys
  792. while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
  793. ~indexOf(result, key) || push$1(result, key);
  794. }
  795. return result;
  796. };
  797. // IE8- don't enum bug keys
  798. var enumBugKeys$3 = [
  799. 'constructor',
  800. 'hasOwnProperty',
  801. 'isPrototypeOf',
  802. 'propertyIsEnumerable',
  803. 'toLocaleString',
  804. 'toString',
  805. 'valueOf'
  806. ];
  807. var internalObjectKeys$1 = objectKeysInternal;
  808. var enumBugKeys$2 = enumBugKeys$3;
  809. var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
  810. // `Object.getOwnPropertyNames` method
  811. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  812. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  813. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  814. return internalObjectKeys$1(O, hiddenKeys$1);
  815. };
  816. var objectGetOwnPropertySymbols = {};
  817. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  818. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  819. var getBuiltIn$2 = getBuiltIn$4;
  820. var uncurryThis$9 = functionUncurryThis;
  821. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  822. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  823. var anObject$2 = anObject$4;
  824. var concat$1 = uncurryThis$9([].concat);
  825. // all object keys, includes non-enumerable and symbols
  826. var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
  827. var keys = getOwnPropertyNamesModule.f(anObject$2(it));
  828. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  829. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  830. };
  831. var hasOwn = hasOwnProperty_1;
  832. var ownKeys = ownKeys$1;
  833. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  834. var definePropertyModule$1 = objectDefineProperty;
  835. var copyConstructorProperties$1 = function (target, source, exceptions) {
  836. var keys = ownKeys(source);
  837. var defineProperty = definePropertyModule$1.f;
  838. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  839. for (var i = 0; i < keys.length; i++) {
  840. var key = keys[i];
  841. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  842. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  843. }
  844. }
  845. };
  846. var fails$4 = fails$c;
  847. var isCallable$2 = isCallable$c;
  848. var replacement = /#|\.prototype\./;
  849. var isForced$1 = function (feature, detection) {
  850. var value = data[normalize(feature)];
  851. return value === POLYFILL ? true
  852. : value === NATIVE ? false
  853. : isCallable$2(detection) ? fails$4(detection)
  854. : !!detection;
  855. };
  856. var normalize = isForced$1.normalize = function (string) {
  857. return String(string).replace(replacement, '.').toLowerCase();
  858. };
  859. var data = isForced$1.data = {};
  860. var NATIVE = isForced$1.NATIVE = 'N';
  861. var POLYFILL = isForced$1.POLYFILL = 'P';
  862. var isForced_1 = isForced$1;
  863. var globalThis$2 = globalThis_1;
  864. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  865. var createNonEnumerableProperty = createNonEnumerableProperty$2;
  866. var defineBuiltIn$1 = defineBuiltIn$2;
  867. var defineGlobalProperty = defineGlobalProperty$3;
  868. var copyConstructorProperties = copyConstructorProperties$1;
  869. var isForced = isForced_1;
  870. /*
  871. options.target - name of the target object
  872. options.global - target is the global object
  873. options.stat - export as static methods of target
  874. options.proto - export as prototype methods of target
  875. options.real - real prototype method for the `pure` version
  876. options.forced - export even if the native feature is available
  877. options.bind - bind methods to the target, required for the `pure` version
  878. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  879. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  880. options.sham - add a flag to not completely full polyfills
  881. options.enumerable - export as enumerable property
  882. options.dontCallGetSet - prevent calling a getter on target
  883. options.name - the .name of the function if it does not match the key
  884. */
  885. var _export = function (options, source) {
  886. var TARGET = options.target;
  887. var GLOBAL = options.global;
  888. var STATIC = options.stat;
  889. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  890. if (GLOBAL) {
  891. target = globalThis$2;
  892. } else if (STATIC) {
  893. target = globalThis$2[TARGET] || defineGlobalProperty(TARGET, {});
  894. } else {
  895. target = globalThis$2[TARGET] && globalThis$2[TARGET].prototype;
  896. }
  897. if (target) for (key in source) {
  898. sourceProperty = source[key];
  899. if (options.dontCallGetSet) {
  900. descriptor = getOwnPropertyDescriptor(target, key);
  901. targetProperty = descriptor && descriptor.value;
  902. } else targetProperty = target[key];
  903. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  904. // contained in target
  905. if (!FORCED && targetProperty !== undefined) {
  906. if (typeof sourceProperty == typeof targetProperty) continue;
  907. copyConstructorProperties(sourceProperty, targetProperty);
  908. }
  909. // add a flag to not completely full polyfills
  910. if (options.sham || (targetProperty && targetProperty.sham)) {
  911. createNonEnumerableProperty(sourceProperty, 'sham', true);
  912. }
  913. defineBuiltIn$1(target, key, sourceProperty, options);
  914. }
  915. };
  916. var classofRaw$1 = classofRaw$2;
  917. var uncurryThis$8 = functionUncurryThis;
  918. var functionUncurryThisClause = function (fn) {
  919. // Nashorn bug:
  920. // https://github.com/zloirock/core-js/issues/1128
  921. // https://github.com/zloirock/core-js/issues/1130
  922. if (classofRaw$1(fn) === 'Function') return uncurryThis$8(fn);
  923. };
  924. var uncurryThis$7 = functionUncurryThisClause;
  925. var aCallable = aCallable$2;
  926. var NATIVE_BIND = functionBindNative;
  927. var bind$1 = uncurryThis$7(uncurryThis$7.bind);
  928. // optional / simple context binding
  929. var functionBindContext = function (fn, that) {
  930. aCallable(fn);
  931. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  932. return fn.apply(that, arguments);
  933. };
  934. };
  935. var classof$4 = classofRaw$2;
  936. // `IsArray` abstract operation
  937. // https://tc39.es/ecma262/#sec-isarray
  938. // eslint-disable-next-line es/no-array-isarray -- safe
  939. var isArray$2 = Array.isArray || function isArray(argument) {
  940. return classof$4(argument) === 'Array';
  941. };
  942. var wellKnownSymbol$3 = wellKnownSymbol$5;
  943. var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
  944. var test$1 = {};
  945. test$1[TO_STRING_TAG$1] = 'z';
  946. var toStringTagSupport = String(test$1) === '[object z]';
  947. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  948. var isCallable$1 = isCallable$c;
  949. var classofRaw = classofRaw$2;
  950. var wellKnownSymbol$2 = wellKnownSymbol$5;
  951. var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
  952. var $Object = Object;
  953. // ES3 wrong here
  954. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
  955. // fallback for IE11 Script Access Denied error
  956. var tryGet = function (it, key) {
  957. try {
  958. return it[key];
  959. } catch (error) { /* empty */ }
  960. };
  961. // getting tag from ES6+ `Object.prototype.toString`
  962. var classof$3 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
  963. var O, tag, result;
  964. return it === undefined ? 'Undefined' : it === null ? 'Null'
  965. // @@toStringTag case
  966. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  967. // builtinTag case
  968. : CORRECT_ARGUMENTS ? classofRaw(O)
  969. // ES3 arguments fallback
  970. : (result = classofRaw(O)) === 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
  971. };
  972. var uncurryThis$6 = functionUncurryThis;
  973. var fails$3 = fails$c;
  974. var isCallable = isCallable$c;
  975. var classof$2 = classof$3;
  976. var getBuiltIn$1 = getBuiltIn$4;
  977. var inspectSource = inspectSource$2;
  978. var noop = function () { /* empty */ };
  979. var construct = getBuiltIn$1('Reflect', 'construct');
  980. var constructorRegExp = /^\s*(?:class|function)\b/;
  981. var exec$1 = uncurryThis$6(constructorRegExp.exec);
  982. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  983. var isConstructorModern = function isConstructor(argument) {
  984. if (!isCallable(argument)) return false;
  985. try {
  986. construct(noop, [], argument);
  987. return true;
  988. } catch (error) {
  989. return false;
  990. }
  991. };
  992. var isConstructorLegacy = function isConstructor(argument) {
  993. if (!isCallable(argument)) return false;
  994. switch (classof$2(argument)) {
  995. case 'AsyncFunction':
  996. case 'GeneratorFunction':
  997. case 'AsyncGeneratorFunction': return false;
  998. }
  999. try {
  1000. // we can't check .prototype since constructors produced by .bind haven't it
  1001. // `Function#toString` throws on some built-it function in some legacy engines
  1002. // (for example, `DOMQuad` and similar in FF41-)
  1003. return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
  1004. } catch (error) {
  1005. return true;
  1006. }
  1007. };
  1008. isConstructorLegacy.sham = true;
  1009. // `IsConstructor` abstract operation
  1010. // https://tc39.es/ecma262/#sec-isconstructor
  1011. var isConstructor$1 = !construct || fails$3(function () {
  1012. var called;
  1013. return isConstructorModern(isConstructorModern.call)
  1014. || !isConstructorModern(Object)
  1015. || !isConstructorModern(function () { called = true; })
  1016. || called;
  1017. }) ? isConstructorLegacy : isConstructorModern;
  1018. var isArray$1 = isArray$2;
  1019. var isConstructor = isConstructor$1;
  1020. var isObject = isObject$6;
  1021. var wellKnownSymbol$1 = wellKnownSymbol$5;
  1022. var SPECIES = wellKnownSymbol$1('species');
  1023. var $Array = Array;
  1024. // a part of `ArraySpeciesCreate` abstract operation
  1025. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1026. var arraySpeciesConstructor$1 = function (originalArray) {
  1027. var C;
  1028. if (isArray$1(originalArray)) {
  1029. C = originalArray.constructor;
  1030. // cross-realm fallback
  1031. if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
  1032. else if (isObject(C)) {
  1033. C = C[SPECIES];
  1034. if (C === null) C = undefined;
  1035. }
  1036. } return C === undefined ? $Array : C;
  1037. };
  1038. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1039. // `ArraySpeciesCreate` abstract operation
  1040. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1041. var arraySpeciesCreate$1 = function (originalArray, length) {
  1042. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1043. };
  1044. var bind = functionBindContext;
  1045. var uncurryThis$5 = functionUncurryThis;
  1046. var IndexedObject$1 = indexedObject;
  1047. var toObject$1 = toObject$3;
  1048. var lengthOfArrayLike = lengthOfArrayLike$2;
  1049. var arraySpeciesCreate = arraySpeciesCreate$1;
  1050. var push = uncurryThis$5([].push);
  1051. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1052. var createMethod$1 = function (TYPE) {
  1053. var IS_MAP = TYPE === 1;
  1054. var IS_FILTER = TYPE === 2;
  1055. var IS_SOME = TYPE === 3;
  1056. var IS_EVERY = TYPE === 4;
  1057. var IS_FIND_INDEX = TYPE === 6;
  1058. var IS_FILTER_REJECT = TYPE === 7;
  1059. var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
  1060. return function ($this, callbackfn, that, specificCreate) {
  1061. var O = toObject$1($this);
  1062. var self = IndexedObject$1(O);
  1063. var length = lengthOfArrayLike(self);
  1064. var boundFunction = bind(callbackfn, that);
  1065. var index = 0;
  1066. var create = specificCreate || arraySpeciesCreate;
  1067. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1068. var value, result;
  1069. for (;length > index; index++) if (NO_HOLES || index in self) {
  1070. value = self[index];
  1071. result = boundFunction(value, index, O);
  1072. if (TYPE) {
  1073. if (IS_MAP) target[index] = result; // map
  1074. else if (result) switch (TYPE) {
  1075. case 3: return true; // some
  1076. case 5: return value; // find
  1077. case 6: return index; // findIndex
  1078. case 2: push(target, value); // filter
  1079. } else switch (TYPE) {
  1080. case 4: return false; // every
  1081. case 7: push(target, value); // filterReject
  1082. }
  1083. }
  1084. }
  1085. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1086. };
  1087. };
  1088. var arrayIteration = {
  1089. // `Array.prototype.forEach` method
  1090. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1091. forEach: createMethod$1(0),
  1092. // `Array.prototype.map` method
  1093. // https://tc39.es/ecma262/#sec-array.prototype.map
  1094. map: createMethod$1(1),
  1095. // `Array.prototype.filter` method
  1096. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1097. filter: createMethod$1(2),
  1098. // `Array.prototype.some` method
  1099. // https://tc39.es/ecma262/#sec-array.prototype.some
  1100. some: createMethod$1(3),
  1101. // `Array.prototype.every` method
  1102. // https://tc39.es/ecma262/#sec-array.prototype.every
  1103. every: createMethod$1(4),
  1104. // `Array.prototype.find` method
  1105. // https://tc39.es/ecma262/#sec-array.prototype.find
  1106. find: createMethod$1(5),
  1107. // `Array.prototype.findIndex` method
  1108. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1109. findIndex: createMethod$1(6),
  1110. // `Array.prototype.filterReject` method
  1111. // https://github.com/tc39/proposal-array-filtering
  1112. filterReject: createMethod$1(7)
  1113. };
  1114. var objectDefineProperties = {};
  1115. var internalObjectKeys = objectKeysInternal;
  1116. var enumBugKeys$1 = enumBugKeys$3;
  1117. // `Object.keys` method
  1118. // https://tc39.es/ecma262/#sec-object.keys
  1119. // eslint-disable-next-line es/no-object-keys -- safe
  1120. var objectKeys$2 = Object.keys || function keys(O) {
  1121. return internalObjectKeys(O, enumBugKeys$1);
  1122. };
  1123. var DESCRIPTORS$1 = descriptors;
  1124. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  1125. var definePropertyModule = objectDefineProperty;
  1126. var anObject$1 = anObject$4;
  1127. var toIndexedObject = toIndexedObject$4;
  1128. var objectKeys$1 = objectKeys$2;
  1129. // `Object.defineProperties` method
  1130. // https://tc39.es/ecma262/#sec-object.defineproperties
  1131. // eslint-disable-next-line es/no-object-defineproperties -- safe
  1132. objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1133. anObject$1(O);
  1134. var props = toIndexedObject(Properties);
  1135. var keys = objectKeys$1(Properties);
  1136. var length = keys.length;
  1137. var index = 0;
  1138. var key;
  1139. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1140. return O;
  1141. };
  1142. var getBuiltIn = getBuiltIn$4;
  1143. var html$1 = getBuiltIn('document', 'documentElement');
  1144. /* global ActiveXObject -- old IE, WSH */
  1145. var anObject = anObject$4;
  1146. var definePropertiesModule = objectDefineProperties;
  1147. var enumBugKeys = enumBugKeys$3;
  1148. var hiddenKeys = hiddenKeys$4;
  1149. var html = html$1;
  1150. var documentCreateElement = documentCreateElement$1;
  1151. var sharedKey = sharedKey$2;
  1152. var GT = '>';
  1153. var LT = '<';
  1154. var PROTOTYPE = 'prototype';
  1155. var SCRIPT = 'script';
  1156. var IE_PROTO = sharedKey('IE_PROTO');
  1157. var EmptyConstructor = function () { /* empty */ };
  1158. var scriptTag = function (content) {
  1159. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1160. };
  1161. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1162. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1163. activeXDocument.write(scriptTag(''));
  1164. activeXDocument.close();
  1165. var temp = activeXDocument.parentWindow.Object;
  1166. // eslint-disable-next-line no-useless-assignment -- avoid memory leak
  1167. activeXDocument = null;
  1168. return temp;
  1169. };
  1170. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1171. var NullProtoObjectViaIFrame = function () {
  1172. // Thrash, waste and sodomy: IE GC bug
  1173. var iframe = documentCreateElement('iframe');
  1174. var JS = 'java' + SCRIPT + ':';
  1175. var iframeDocument;
  1176. iframe.style.display = 'none';
  1177. html.appendChild(iframe);
  1178. // https://github.com/zloirock/core-js/issues/475
  1179. iframe.src = String(JS);
  1180. iframeDocument = iframe.contentWindow.document;
  1181. iframeDocument.open();
  1182. iframeDocument.write(scriptTag('document.F=Object'));
  1183. iframeDocument.close();
  1184. return iframeDocument.F;
  1185. };
  1186. // Check for document.domain and active x support
  1187. // No need to use active x approach when document.domain is not set
  1188. // see https://github.com/es-shims/es5-shim/issues/150
  1189. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1190. // avoid IE GC bug
  1191. var activeXDocument;
  1192. var NullProtoObject = function () {
  1193. try {
  1194. activeXDocument = new ActiveXObject('htmlfile');
  1195. } catch (error) { /* ignore */ }
  1196. NullProtoObject = typeof document != 'undefined'
  1197. ? document.domain && activeXDocument
  1198. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1199. : NullProtoObjectViaIFrame()
  1200. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1201. var length = enumBugKeys.length;
  1202. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1203. return NullProtoObject();
  1204. };
  1205. hiddenKeys[IE_PROTO] = true;
  1206. // `Object.create` method
  1207. // https://tc39.es/ecma262/#sec-object.create
  1208. // eslint-disable-next-line es/no-object-create -- safe
  1209. var objectCreate = Object.create || function create(O, Properties) {
  1210. var result;
  1211. if (O !== null) {
  1212. EmptyConstructor[PROTOTYPE] = anObject(O);
  1213. result = new EmptyConstructor();
  1214. EmptyConstructor[PROTOTYPE] = null;
  1215. // add "__proto__" for Object.getPrototypeOf polyfill
  1216. result[IE_PROTO] = O;
  1217. } else result = NullProtoObject();
  1218. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1219. };
  1220. var wellKnownSymbol = wellKnownSymbol$5;
  1221. var create = objectCreate;
  1222. var defineProperty$1 = objectDefineProperty.f;
  1223. var UNSCOPABLES = wellKnownSymbol('unscopables');
  1224. var ArrayPrototype = Array.prototype;
  1225. // Array.prototype[@@unscopables]
  1226. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1227. if (ArrayPrototype[UNSCOPABLES] === undefined) {
  1228. defineProperty$1(ArrayPrototype, UNSCOPABLES, {
  1229. configurable: true,
  1230. value: create(null)
  1231. });
  1232. }
  1233. // add a key to Array.prototype[@@unscopables]
  1234. var addToUnscopables$1 = function (key) {
  1235. ArrayPrototype[UNSCOPABLES][key] = true;
  1236. };
  1237. var $$4 = _export;
  1238. var $find = arrayIteration.find;
  1239. var addToUnscopables = addToUnscopables$1;
  1240. var FIND = 'find';
  1241. var SKIPS_HOLES = true;
  1242. // Shouldn't skip holes
  1243. // eslint-disable-next-line es/no-array-prototype-find -- testing
  1244. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  1245. // `Array.prototype.find` method
  1246. // https://tc39.es/ecma262/#sec-array.prototype.find
  1247. $$4({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  1248. find: function find(callbackfn /* , that = undefined */) {
  1249. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1250. }
  1251. });
  1252. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1253. addToUnscopables(FIND);
  1254. var fails$2 = fails$c;
  1255. var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
  1256. var method = [][METHOD_NAME];
  1257. return !!method && fails$2(function () {
  1258. // eslint-disable-next-line no-useless-call -- required for testing
  1259. method.call(null, argument || function () { return 1; }, 1);
  1260. });
  1261. };
  1262. /* eslint-disable es/no-array-prototype-indexof -- required for testing */
  1263. var $$3 = _export;
  1264. var uncurryThis$4 = functionUncurryThisClause;
  1265. var $indexOf = arrayIncludes.indexOf;
  1266. var arrayMethodIsStrict = arrayMethodIsStrict$1;
  1267. var nativeIndexOf = uncurryThis$4([].indexOf);
  1268. var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;
  1269. var FORCED$1 = NEGATIVE_ZERO || !arrayMethodIsStrict('indexOf');
  1270. // `Array.prototype.indexOf` method
  1271. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  1272. $$3({ target: 'Array', proto: true, forced: FORCED$1 }, {
  1273. indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
  1274. var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
  1275. return NEGATIVE_ZERO
  1276. // convert -0 to +0
  1277. ? nativeIndexOf(this, searchElement, fromIndex) || 0
  1278. : $indexOf(this, searchElement, fromIndex);
  1279. }
  1280. });
  1281. var $$2 = _export;
  1282. var uncurryThis$3 = functionUncurryThis;
  1283. var isArray = isArray$2;
  1284. var nativeReverse = uncurryThis$3([].reverse);
  1285. var test = [1, 2];
  1286. // `Array.prototype.reverse` method
  1287. // https://tc39.es/ecma262/#sec-array.prototype.reverse
  1288. // fix for Safari 12.0 bug
  1289. // https://bugs.webkit.org/show_bug.cgi?id=188794
  1290. $$2({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {
  1291. reverse: function reverse() {
  1292. // eslint-disable-next-line no-self-assign -- dirty hack
  1293. if (isArray(this)) this.length = this.length;
  1294. return nativeReverse(this);
  1295. }
  1296. });
  1297. var DESCRIPTORS = descriptors;
  1298. var uncurryThis$2 = functionUncurryThis;
  1299. var call = functionCall;
  1300. var fails$1 = fails$c;
  1301. var objectKeys = objectKeys$2;
  1302. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  1303. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  1304. var toObject = toObject$3;
  1305. var IndexedObject = indexedObject;
  1306. // eslint-disable-next-line es/no-object-assign -- safe
  1307. var $assign = Object.assign;
  1308. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  1309. var defineProperty = Object.defineProperty;
  1310. var concat = uncurryThis$2([].concat);
  1311. // `Object.assign` method
  1312. // https://tc39.es/ecma262/#sec-object.assign
  1313. var objectAssign = !$assign || fails$1(function () {
  1314. // should have correct order of operations (Edge bug)
  1315. if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  1316. enumerable: true,
  1317. get: function () {
  1318. defineProperty(this, 'b', {
  1319. value: 3,
  1320. enumerable: false
  1321. });
  1322. }
  1323. }), { b: 2 })).b !== 1) return true;
  1324. // should work with symbols and should have deterministic property order (V8 bug)
  1325. var A = {};
  1326. var B = {};
  1327. // eslint-disable-next-line es/no-symbol -- safe
  1328. var symbol = Symbol('assign detection');
  1329. var alphabet = 'abcdefghijklmnopqrst';
  1330. A[symbol] = 7;
  1331. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1332. return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
  1333. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1334. var T = toObject(target);
  1335. var argumentsLength = arguments.length;
  1336. var index = 1;
  1337. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1338. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1339. while (argumentsLength > index) {
  1340. var S = IndexedObject(arguments[index++]);
  1341. var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
  1342. var length = keys.length;
  1343. var j = 0;
  1344. var key;
  1345. while (length > j) {
  1346. key = keys[j++];
  1347. if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
  1348. }
  1349. } return T;
  1350. } : $assign;
  1351. var $$1 = _export;
  1352. var assign = objectAssign;
  1353. // `Object.assign` method
  1354. // https://tc39.es/ecma262/#sec-object.assign
  1355. // eslint-disable-next-line es/no-object-assign -- required for testing
  1356. $$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1357. assign: assign
  1358. });
  1359. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  1360. var classof$1 = classof$3;
  1361. // `Object.prototype.toString` method implementation
  1362. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1363. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  1364. return '[object ' + classof$1(this) + ']';
  1365. };
  1366. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  1367. var defineBuiltIn = defineBuiltIn$2;
  1368. var toString$3 = objectToString;
  1369. // `Object.prototype.toString` method
  1370. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1371. if (!TO_STRING_TAG_SUPPORT) {
  1372. defineBuiltIn(Object.prototype, 'toString', toString$3, { unsafe: true });
  1373. }
  1374. var classof = classof$3;
  1375. var $String = String;
  1376. var toString$2 = function (argument) {
  1377. if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  1378. return $String(argument);
  1379. };
  1380. // a string of all valid unicode whitespaces
  1381. var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
  1382. '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
  1383. var uncurryThis$1 = functionUncurryThis;
  1384. var requireObjectCoercible = requireObjectCoercible$3;
  1385. var toString$1 = toString$2;
  1386. var whitespaces$1 = whitespaces$2;
  1387. var replace = uncurryThis$1(''.replace);
  1388. var ltrim = RegExp('^[' + whitespaces$1 + ']+');
  1389. var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
  1390. // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
  1391. var createMethod = function (TYPE) {
  1392. return function ($this) {
  1393. var string = toString$1(requireObjectCoercible($this));
  1394. if (TYPE & 1) string = replace(string, ltrim, '');
  1395. if (TYPE & 2) string = replace(string, rtrim, '$1');
  1396. return string;
  1397. };
  1398. };
  1399. var stringTrim = {
  1400. // `String.prototype.{ trimLeft, trimStart }` methods
  1401. // https://tc39.es/ecma262/#sec-string.prototype.trimstart
  1402. start: createMethod(1),
  1403. // `String.prototype.{ trimRight, trimEnd }` methods
  1404. // https://tc39.es/ecma262/#sec-string.prototype.trimend
  1405. end: createMethod(2),
  1406. // `String.prototype.trim` method
  1407. // https://tc39.es/ecma262/#sec-string.prototype.trim
  1408. trim: createMethod(3)
  1409. };
  1410. var globalThis$1 = globalThis_1;
  1411. var fails = fails$c;
  1412. var uncurryThis = functionUncurryThis;
  1413. var toString = toString$2;
  1414. var trim = stringTrim.trim;
  1415. var whitespaces = whitespaces$2;
  1416. var $parseInt$1 = globalThis$1.parseInt;
  1417. var Symbol$1 = globalThis$1.Symbol;
  1418. var ITERATOR = Symbol$1 && Symbol$1.iterator;
  1419. var hex = /^[+-]?0x/i;
  1420. var exec = uncurryThis(hex.exec);
  1421. var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
  1422. // MS Edge 18- broken with boxed symbols
  1423. || (ITERATOR && !fails(function () { $parseInt$1(Object(ITERATOR)); }));
  1424. // `parseInt` method
  1425. // https://tc39.es/ecma262/#sec-parseint-string-radix
  1426. var numberParseInt = FORCED ? function parseInt(string, radix) {
  1427. var S = trim(toString(string));
  1428. return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
  1429. } : $parseInt$1;
  1430. var $ = _export;
  1431. var $parseInt = numberParseInt;
  1432. // `parseInt` method
  1433. // https://tc39.es/ecma262/#sec-parseint-string-radix
  1434. $({ global: true, forced: parseInt !== $parseInt }, {
  1435. parseInt: $parseInt
  1436. });
  1437. /**
  1438. * @author zhixin wen <wenzhixin2010@gmail.com>
  1439. */
  1440. var Utils = $$5.fn.bootstrapTable.utils;
  1441. // Reasonable defaults
  1442. var PIXEL_STEP = 10;
  1443. var LINE_HEIGHT = 40;
  1444. var PAGE_HEIGHT = 800;
  1445. function normalizeWheel(event) {
  1446. var sX = 0; // spinX
  1447. var sY = 0; // spinY
  1448. var pX = 0; // pixelX
  1449. var pY = 0; // pixelY
  1450. // Legacy
  1451. if ('detail' in event) {
  1452. sY = event.detail;
  1453. }
  1454. if ('wheelDelta' in event) {
  1455. sY = -event.wheelDelta / 120;
  1456. }
  1457. if ('wheelDeltaY' in event) {
  1458. sY = -event.wheelDeltaY / 120;
  1459. }
  1460. if ('wheelDeltaX' in event) {
  1461. sX = -event.wheelDeltaX / 120;
  1462. }
  1463. // side scrolling on FF with DOMMouseScroll
  1464. if ('axis' in event && event.axis === event.HORIZONTAL_AXIS) {
  1465. sX = sY;
  1466. sY = 0;
  1467. }
  1468. pX = sX * PIXEL_STEP;
  1469. pY = sY * PIXEL_STEP;
  1470. if ('deltaY' in event) {
  1471. pY = event.deltaY;
  1472. }
  1473. if ('deltaX' in event) {
  1474. pX = event.deltaX;
  1475. }
  1476. if ((pX || pY) && event.deltaMode) {
  1477. if (event.deltaMode === 1) {
  1478. // delta in LINE units
  1479. pX *= LINE_HEIGHT;
  1480. pY *= LINE_HEIGHT;
  1481. } else {
  1482. // delta in PAGE units
  1483. pX *= PAGE_HEIGHT;
  1484. pY *= PAGE_HEIGHT;
  1485. }
  1486. }
  1487. // Fall-back if spin cannot be determined
  1488. if (pX && !sX) {
  1489. sX = pX < 1 ? -1 : 1;
  1490. }
  1491. if (pY && !sY) {
  1492. sY = pY < 1 ? -1 : 1;
  1493. }
  1494. return {
  1495. spinX: sX,
  1496. spinY: sY,
  1497. pixelX: pX,
  1498. pixelY: pY
  1499. };
  1500. }
  1501. Object.assign($$5.fn.bootstrapTable.defaults, {
  1502. fixedColumns: false,
  1503. fixedNumber: 0,
  1504. fixedRightNumber: 0
  1505. });
  1506. $$5.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1507. function _class() {
  1508. _classCallCheck(this, _class);
  1509. return _callSuper(this, _class, arguments);
  1510. }
  1511. _inherits(_class, _$$BootstrapTable);
  1512. return _createClass(_class, [{
  1513. key: "fixedColumnsSupported",
  1514. value: function fixedColumnsSupported() {
  1515. return this.options.fixedColumns && !this.options.detailView && !this.options.cardView;
  1516. }
  1517. }, {
  1518. key: "initContainer",
  1519. value: function initContainer() {
  1520. _superPropGet(_class, "initContainer", this)([]);
  1521. if (!this.fixedColumnsSupported()) {
  1522. return;
  1523. }
  1524. if (this.options.fixedNumber) {
  1525. this.$tableContainer.append('<div class="fixed-columns"></div>');
  1526. this.$fixedColumns = this.$tableContainer.find('.fixed-columns');
  1527. }
  1528. if (this.options.fixedRightNumber) {
  1529. this.$tableContainer.append('<div class="fixed-columns-right"></div>');
  1530. this.$fixedColumnsRight = this.$tableContainer.find('.fixed-columns-right');
  1531. }
  1532. }
  1533. }, {
  1534. key: "initBody",
  1535. value: function initBody() {
  1536. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1537. args[_key] = arguments[_key];
  1538. }
  1539. _superPropGet(_class, "initBody", this)(args);
  1540. if (this.$fixedColumns && this.$fixedColumns.length) {
  1541. this.$fixedColumns.toggle(this.fixedColumnsSupported());
  1542. }
  1543. if (this.$fixedColumnsRight && this.$fixedColumnsRight.length) {
  1544. this.$fixedColumnsRight.toggle(this.fixedColumnsSupported());
  1545. }
  1546. if (!this.fixedColumnsSupported()) {
  1547. return;
  1548. }
  1549. if (this.options.showHeader && this.options.height) {
  1550. return;
  1551. }
  1552. this.initFixedColumnsBody();
  1553. this.initFixedColumnsEvents();
  1554. }
  1555. }, {
  1556. key: "trigger",
  1557. value: function trigger() {
  1558. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  1559. args[_key2] = arguments[_key2];
  1560. }
  1561. _superPropGet(_class, "trigger", this)(args);
  1562. if (!this.fixedColumnsSupported()) {
  1563. return;
  1564. }
  1565. if (args[0] === 'post-header') {
  1566. this.initFixedColumnsHeader();
  1567. } else if (args[0] === 'scroll-body') {
  1568. if (this.needFixedColumns && this.options.fixedNumber) {
  1569. this.$fixedBody.scrollTop(this.$tableBody.scrollTop());
  1570. }
  1571. if (this.needFixedColumns && this.options.fixedRightNumber) {
  1572. this.$fixedBodyRight.scrollTop(this.$tableBody.scrollTop());
  1573. }
  1574. }
  1575. }
  1576. }, {
  1577. key: "updateSelected",
  1578. value: function updateSelected() {
  1579. var _this = this;
  1580. _superPropGet(_class, "updateSelected", this)([]);
  1581. if (!this.fixedColumnsSupported()) {
  1582. return;
  1583. }
  1584. this.$tableBody.find('tr').each(function (i, el) {
  1585. var $el = $$5(el);
  1586. var index = $el.data('index');
  1587. var classes = $el.attr('class');
  1588. var inputSelector = "[name=\"".concat(_this.options.selectItemName, "\"]");
  1589. var $input = $el.find(inputSelector);
  1590. if (typeof index === 'undefined') {
  1591. return;
  1592. }
  1593. var updateFixedBody = function updateFixedBody($fixedHeader, $fixedBody) {
  1594. var $tr = $fixedBody.find("tr[data-index=\"".concat(index, "\"]"));
  1595. $tr.attr('class', classes);
  1596. if ($input.length) {
  1597. $tr.find(inputSelector).prop('checked', $input.prop('checked'));
  1598. }
  1599. if (_this.$selectAll.length) {
  1600. $fixedHeader.add($fixedBody).find('[name="btSelectAll"]').prop('checked', _this.$selectAll.prop('checked'));
  1601. }
  1602. };
  1603. if (_this.$fixedBody && _this.options.fixedNumber) {
  1604. updateFixedBody(_this.$fixedHeader, _this.$fixedBody);
  1605. }
  1606. if (_this.$fixedBodyRight && _this.options.fixedRightNumber) {
  1607. updateFixedBody(_this.$fixedHeaderRight, _this.$fixedBodyRight);
  1608. }
  1609. });
  1610. }
  1611. }, {
  1612. key: "hideLoading",
  1613. value: function hideLoading() {
  1614. _superPropGet(_class, "hideLoading", this)([]);
  1615. if (this.needFixedColumns && this.options.fixedNumber) {
  1616. this.$fixedColumns.find('.fixed-table-loading').hide();
  1617. }
  1618. if (this.needFixedColumns && this.options.fixedRightNumber && this.$fixedColumnsRight) {
  1619. this.$fixedColumnsRight.find('.fixed-table-loading').hide();
  1620. }
  1621. }
  1622. }, {
  1623. key: "initFixedColumnsHeader",
  1624. value: function initFixedColumnsHeader() {
  1625. var _this2 = this;
  1626. if (this.options.height) {
  1627. this.needFixedColumns = this.$tableHeader.outerWidth(true) < this.$tableHeader.find('table').outerWidth(true);
  1628. } else {
  1629. this.needFixedColumns = this.$tableBody.outerWidth(true) < this.$tableBody.find('table').outerWidth(true);
  1630. }
  1631. var initFixedHeader = function initFixedHeader($fixedColumns, isRight) {
  1632. $fixedColumns.find('.fixed-table-header').remove();
  1633. $fixedColumns.append(_this2.$tableHeader.clone(true));
  1634. $fixedColumns.css({
  1635. width: _this2.getFixedColumnsWidth(isRight)
  1636. });
  1637. return $fixedColumns.find('.fixed-table-header');
  1638. };
  1639. if (this.needFixedColumns && this.options.fixedNumber) {
  1640. this.$fixedHeader = initFixedHeader(this.$fixedColumns);
  1641. this.$fixedHeader.css('margin-right', '');
  1642. } else if (this.$fixedColumns) {
  1643. this.$fixedColumns.html('').css('width', '');
  1644. }
  1645. if (this.needFixedColumns && this.options.fixedRightNumber && this.$fixedColumnsRight) {
  1646. this.$fixedHeaderRight = initFixedHeader(this.$fixedColumnsRight, true);
  1647. this.$fixedHeaderRight.scrollLeft(this.$fixedHeaderRight.find('table').width());
  1648. } else if (this.$fixedColumnsRight) {
  1649. this.$fixedColumnsRight.html('').css('width', '');
  1650. }
  1651. this.initFixedColumnsBody();
  1652. this.initFixedColumnsEvents();
  1653. }
  1654. }, {
  1655. key: "initFixedColumnsBody",
  1656. value: function initFixedColumnsBody() {
  1657. var _this3 = this;
  1658. var initFixedBody = function initFixedBody($fixedColumns, $fixedHeader) {
  1659. $fixedColumns.find('.fixed-table-body').remove();
  1660. $fixedColumns.append(_this3.$tableBody.clone(true));
  1661. $fixedColumns.find('.fixed-table-body table').removeAttr('id');
  1662. var $fixedBody = $fixedColumns.find('.fixed-table-body');
  1663. var tableBody = _this3.$tableBody.get(0);
  1664. var scrollHeight = tableBody.scrollWidth > tableBody.clientWidth ? Utils.getScrollBarWidth() : 0;
  1665. var height = _this3.$tableContainer.outerHeight(true) - scrollHeight - 1;
  1666. $fixedColumns.css({
  1667. height: height
  1668. });
  1669. $fixedBody.css({
  1670. height: height - $fixedHeader.height()
  1671. });
  1672. return $fixedBody;
  1673. };
  1674. if (this.needFixedColumns && this.options.fixedNumber) {
  1675. this.$fixedBody = initFixedBody(this.$fixedColumns, this.$fixedHeader);
  1676. }
  1677. if (this.needFixedColumns && this.options.fixedRightNumber && this.$fixedColumnsRight) {
  1678. this.$fixedBodyRight = initFixedBody(this.$fixedColumnsRight, this.$fixedHeaderRight);
  1679. this.$fixedBodyRight.scrollLeft(this.$fixedBodyRight.find('table').width());
  1680. this.$fixedBodyRight.css('overflow-y', this.options.height ? 'auto' : 'hidden');
  1681. }
  1682. }
  1683. }, {
  1684. key: "getFixedColumnsWidth",
  1685. value: function getFixedColumnsWidth(isRight) {
  1686. var visibleFields = this.getVisibleFields();
  1687. var width = 0;
  1688. var fixedNumber = this.options.fixedNumber;
  1689. var marginRight = 0;
  1690. if (isRight) {
  1691. visibleFields = visibleFields.reverse();
  1692. fixedNumber = this.options.fixedRightNumber;
  1693. marginRight = parseInt(this.$tableHeader.css('margin-right'), 10);
  1694. }
  1695. for (var i = 0; i < fixedNumber; i++) {
  1696. width += this.$header.find("th[data-field=\"".concat(visibleFields[i], "\"]")).outerWidth(true);
  1697. }
  1698. return width + marginRight + 1;
  1699. }
  1700. }, {
  1701. key: "initFixedColumnsEvents",
  1702. value: function initFixedColumnsEvents() {
  1703. var _this4 = this;
  1704. var toggleHover = function toggleHover(e, toggle) {
  1705. var tr = "tr[data-index=\"".concat($$5(e.currentTarget).data('index'), "\"]");
  1706. var $trs = _this4.$tableBody.find(tr);
  1707. if (_this4.$fixedBody) {
  1708. $trs = $trs.add(_this4.$fixedBody.find(tr));
  1709. }
  1710. if (_this4.$fixedBodyRight) {
  1711. $trs = $trs.add(_this4.$fixedBodyRight.find(tr));
  1712. }
  1713. $trs.css('background-color', toggle ? $$5(e.currentTarget).css('background-color') : '');
  1714. };
  1715. this.$tableBody.find('tr').hover(function (e) {
  1716. toggleHover(e, true);
  1717. }, function (e) {
  1718. toggleHover(e, false);
  1719. });
  1720. var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
  1721. var mousewheel = isFirefox ? 'DOMMouseScroll' : 'mousewheel';
  1722. var updateScroll = function updateScroll(e, fixedBody) {
  1723. var normalized = normalizeWheel(e);
  1724. var deltaY = Math.ceil(normalized.pixelY);
  1725. var top = _this4.$tableBody.scrollTop() + deltaY;
  1726. if (deltaY < 0 && top > 0 || deltaY > 0 && top < fixedBody.scrollHeight - fixedBody.clientHeight) {
  1727. e.preventDefault();
  1728. }
  1729. _this4.$tableBody.scrollTop(top);
  1730. if (_this4.$fixedBody) {
  1731. _this4.$fixedBody.scrollTop(top);
  1732. }
  1733. if (_this4.$fixedBodyRight) {
  1734. _this4.$fixedBodyRight.scrollTop(top);
  1735. }
  1736. };
  1737. if (this.needFixedColumns && this.options.fixedNumber && this.$fixedBody) {
  1738. this.$fixedBody.find('tr').hover(function (e) {
  1739. toggleHover(e, true);
  1740. }, function (e) {
  1741. toggleHover(e, false);
  1742. });
  1743. this.$fixedBody[0].addEventListener(mousewheel, function (e) {
  1744. updateScroll(e, _this4.$fixedBody[0]);
  1745. });
  1746. }
  1747. if (this.needFixedColumns && this.options.fixedRightNumber) {
  1748. this.$fixedBodyRight.find('tr').hover(function (e) {
  1749. toggleHover(e, true);
  1750. }, function (e) {
  1751. toggleHover(e, false);
  1752. });
  1753. this.$fixedBodyRight.off('scroll').on('scroll', function () {
  1754. var top = _this4.$fixedBodyRight.scrollTop();
  1755. _this4.$tableBody.scrollTop(top);
  1756. if (_this4.$fixedBody) {
  1757. _this4.$fixedBody.scrollTop(top);
  1758. }
  1759. });
  1760. }
  1761. if (this.options.filterControl) {
  1762. $$5(this.$fixedColumns).off('keyup change').on('keyup change', function (e) {
  1763. var $target = $$5(e.target);
  1764. var value = $target.val();
  1765. var field = $target.parents('th').data('field');
  1766. var $coreTh = _this4.$header.find("th[data-field=\"".concat(field, "\"]"));
  1767. if ($target.is('input')) {
  1768. $coreTh.find('input').val(value);
  1769. } else if ($target.is('select')) {
  1770. var $select = $coreTh.find('select');
  1771. $select.find('option[selected]').removeAttr('selected');
  1772. $select.find("option[value=\"".concat(value, "\"]")).attr('selected', true);
  1773. }
  1774. _this4.triggerSearch();
  1775. });
  1776. }
  1777. }
  1778. }, {
  1779. key: "renderStickyHeader",
  1780. value: function renderStickyHeader() {
  1781. if (!this.options.stickyHeader) {
  1782. return;
  1783. }
  1784. this.$stickyContainer = this.$container.find('.sticky-header-container');
  1785. _superPropGet(_class, "renderStickyHeader", this)([]);
  1786. if (this.needFixedColumns && this.options.fixedNumber) {
  1787. this.$fixedColumns.css('z-index', 101).find('.sticky-header-container').css('right', '').width(this.$fixedColumns.outerWidth());
  1788. }
  1789. if (this.needFixedColumns && this.options.fixedRightNumber) {
  1790. var $stickyHeaderContainerRight = this.$fixedColumnsRight.find('.sticky-header-container');
  1791. this.$fixedColumnsRight.css('z-index', 101);
  1792. $stickyHeaderContainerRight.css('left', '').scrollLeft($stickyHeaderContainerRight.find('.table').outerWidth()).width(this.$fixedColumnsRight.outerWidth());
  1793. }
  1794. }
  1795. }, {
  1796. key: "matchPositionX",
  1797. value: function matchPositionX() {
  1798. if (!this.options.stickyHeader) {
  1799. return;
  1800. }
  1801. this.$stickyContainer.eq(0).scrollLeft(this.$tableBody.scrollLeft());
  1802. }
  1803. }]);
  1804. }($$5.BootstrapTable);
  1805. }));