bootstrap-table-pipeline.js 66 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875
  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 ($$4) { 'use strict';
  6. function _callSuper(t, o, e) {
  7. return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
  8. }
  9. function _isNativeReflectConstruct() {
  10. try {
  11. var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  12. } catch (t) {}
  13. return (_isNativeReflectConstruct = function () {
  14. return !!t;
  15. })();
  16. }
  17. function ownKeys$2(e, r) {
  18. var t = Object.keys(e);
  19. if (Object.getOwnPropertySymbols) {
  20. var o = Object.getOwnPropertySymbols(e);
  21. r && (o = o.filter(function (r) {
  22. return Object.getOwnPropertyDescriptor(e, r).enumerable;
  23. })), t.push.apply(t, o);
  24. }
  25. return t;
  26. }
  27. function _objectSpread2(e) {
  28. for (var r = 1; r < arguments.length; r++) {
  29. var t = null != arguments[r] ? arguments[r] : {};
  30. r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) {
  31. _defineProperty(e, r, t[r]);
  32. }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) {
  33. Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
  34. });
  35. }
  36. return e;
  37. }
  38. function _toPrimitive(t, r) {
  39. if ("object" != typeof t || !t) return t;
  40. var e = t[Symbol.toPrimitive];
  41. if (void 0 !== e) {
  42. var i = e.call(t, r || "default");
  43. if ("object" != typeof i) return i;
  44. throw new TypeError("@@toPrimitive must return a primitive value.");
  45. }
  46. return ("string" === r ? String : Number)(t);
  47. }
  48. function _toPropertyKey(t) {
  49. var i = _toPrimitive(t, "string");
  50. return "symbol" == typeof i ? i : i + "";
  51. }
  52. function _classCallCheck(instance, Constructor) {
  53. if (!(instance instanceof Constructor)) {
  54. throw new TypeError("Cannot call a class as a function");
  55. }
  56. }
  57. function _defineProperties(target, props) {
  58. for (var i = 0; i < props.length; i++) {
  59. var descriptor = props[i];
  60. descriptor.enumerable = descriptor.enumerable || false;
  61. descriptor.configurable = true;
  62. if ("value" in descriptor) descriptor.writable = true;
  63. Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
  64. }
  65. }
  66. function _createClass(Constructor, protoProps, staticProps) {
  67. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  68. if (staticProps) _defineProperties(Constructor, staticProps);
  69. Object.defineProperty(Constructor, "prototype", {
  70. writable: false
  71. });
  72. return Constructor;
  73. }
  74. function _defineProperty(obj, key, value) {
  75. key = _toPropertyKey(key);
  76. if (key in obj) {
  77. Object.defineProperty(obj, key, {
  78. value: value,
  79. enumerable: true,
  80. configurable: true,
  81. writable: true
  82. });
  83. } else {
  84. obj[key] = value;
  85. }
  86. return obj;
  87. }
  88. function _inherits(subClass, superClass) {
  89. if (typeof superClass !== "function" && superClass !== null) {
  90. throw new TypeError("Super expression must either be null or a function");
  91. }
  92. subClass.prototype = Object.create(superClass && superClass.prototype, {
  93. constructor: {
  94. value: subClass,
  95. writable: true,
  96. configurable: true
  97. }
  98. });
  99. Object.defineProperty(subClass, "prototype", {
  100. writable: false
  101. });
  102. if (superClass) _setPrototypeOf(subClass, superClass);
  103. }
  104. function _getPrototypeOf(o) {
  105. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  106. return o.__proto__ || Object.getPrototypeOf(o);
  107. };
  108. return _getPrototypeOf(o);
  109. }
  110. function _setPrototypeOf(o, p) {
  111. _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  112. o.__proto__ = p;
  113. return o;
  114. };
  115. return _setPrototypeOf(o, p);
  116. }
  117. function _assertThisInitialized(self) {
  118. if (self === void 0) {
  119. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  120. }
  121. return self;
  122. }
  123. function _possibleConstructorReturn(self, call) {
  124. if (call && (typeof call === "object" || typeof call === "function")) {
  125. return call;
  126. } else if (call !== void 0) {
  127. throw new TypeError("Derived constructors may only return object or undefined");
  128. }
  129. return _assertThisInitialized(self);
  130. }
  131. function _superPropBase(object, property) {
  132. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  133. object = _getPrototypeOf(object);
  134. if (object === null) break;
  135. }
  136. return object;
  137. }
  138. function _get() {
  139. if (typeof Reflect !== "undefined" && Reflect.get) {
  140. _get = Reflect.get.bind();
  141. } else {
  142. _get = function _get(target, property, receiver) {
  143. var base = _superPropBase(target, property);
  144. if (!base) return;
  145. var desc = Object.getOwnPropertyDescriptor(base, property);
  146. if (desc.get) {
  147. return desc.get.call(arguments.length < 3 ? target : receiver);
  148. }
  149. return desc.value;
  150. };
  151. }
  152. return _get.apply(this, arguments);
  153. }
  154. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  155. var check = function (it) {
  156. return it && it.Math === Math && it;
  157. };
  158. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  159. var global$b =
  160. // eslint-disable-next-line es/no-global-this -- safe
  161. check(typeof globalThis == 'object' && globalThis) ||
  162. check(typeof window == 'object' && window) ||
  163. // eslint-disable-next-line no-restricted-globals -- safe
  164. check(typeof self == 'object' && self) ||
  165. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  166. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  167. // eslint-disable-next-line no-new-func -- fallback
  168. (function () { return this; })() || Function('return this')();
  169. var objectGetOwnPropertyDescriptor = {};
  170. var fails$d = function (exec) {
  171. try {
  172. return !!exec();
  173. } catch (error) {
  174. return true;
  175. }
  176. };
  177. var fails$c = fails$d;
  178. // Detect IE8's incomplete defineProperty implementation
  179. var descriptors = !fails$c(function () {
  180. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  181. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  182. });
  183. var fails$b = fails$d;
  184. var functionBindNative = !fails$b(function () {
  185. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  186. var test = (function () { /* empty */ }).bind();
  187. // eslint-disable-next-line no-prototype-builtins -- safe
  188. return typeof test != 'function' || test.hasOwnProperty('prototype');
  189. });
  190. var NATIVE_BIND$1 = functionBindNative;
  191. var call$5 = Function.prototype.call;
  192. var functionCall = NATIVE_BIND$1 ? call$5.bind(call$5) : function () {
  193. return call$5.apply(call$5, arguments);
  194. };
  195. var objectPropertyIsEnumerable = {};
  196. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  197. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  198. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  199. // Nashorn ~ JDK8 bug
  200. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  201. // `Object.prototype.propertyIsEnumerable` method implementation
  202. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  203. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  204. var descriptor = getOwnPropertyDescriptor$1(this, V);
  205. return !!descriptor && descriptor.enumerable;
  206. } : $propertyIsEnumerable;
  207. var createPropertyDescriptor$3 = function (bitmap, value) {
  208. return {
  209. enumerable: !(bitmap & 1),
  210. configurable: !(bitmap & 2),
  211. writable: !(bitmap & 4),
  212. value: value
  213. };
  214. };
  215. var NATIVE_BIND = functionBindNative;
  216. var FunctionPrototype$1 = Function.prototype;
  217. var call$4 = FunctionPrototype$1.call;
  218. var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$4, call$4);
  219. var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
  220. return function () {
  221. return call$4.apply(fn, arguments);
  222. };
  223. };
  224. var uncurryThis$d = functionUncurryThis;
  225. var toString$4 = uncurryThis$d({}.toString);
  226. var stringSlice$1 = uncurryThis$d(''.slice);
  227. var classofRaw$1 = function (it) {
  228. return stringSlice$1(toString$4(it), 8, -1);
  229. };
  230. var uncurryThis$c = functionUncurryThis;
  231. var fails$a = fails$d;
  232. var classof$4 = classofRaw$1;
  233. var $Object$3 = Object;
  234. var split = uncurryThis$c(''.split);
  235. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  236. var indexedObject = fails$a(function () {
  237. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  238. // eslint-disable-next-line no-prototype-builtins -- safe
  239. return !$Object$3('z').propertyIsEnumerable(0);
  240. }) ? function (it) {
  241. return classof$4(it) === 'String' ? split(it, '') : $Object$3(it);
  242. } : $Object$3;
  243. // we can't use just `it == null` since of `document.all` special case
  244. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  245. var isNullOrUndefined$2 = function (it) {
  246. return it === null || it === undefined;
  247. };
  248. var isNullOrUndefined$1 = isNullOrUndefined$2;
  249. var $TypeError$6 = TypeError;
  250. // `RequireObjectCoercible` abstract operation
  251. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  252. var requireObjectCoercible$3 = function (it) {
  253. if (isNullOrUndefined$1(it)) throw new $TypeError$6("Can't call method on " + it);
  254. return it;
  255. };
  256. // toObject with fallback for non-array-like ES3 strings
  257. var IndexedObject$1 = indexedObject;
  258. var requireObjectCoercible$2 = requireObjectCoercible$3;
  259. var toIndexedObject$4 = function (it) {
  260. return IndexedObject$1(requireObjectCoercible$2(it));
  261. };
  262. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  263. var documentAll = typeof document == 'object' && document.all;
  264. // `IsCallable` abstract operation
  265. // https://tc39.es/ecma262/#sec-iscallable
  266. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  267. var isCallable$c = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  268. return typeof argument == 'function' || argument === documentAll;
  269. } : function (argument) {
  270. return typeof argument == 'function';
  271. };
  272. var isCallable$b = isCallable$c;
  273. var isObject$8 = function (it) {
  274. return typeof it == 'object' ? it !== null : isCallable$b(it);
  275. };
  276. var global$a = global$b;
  277. var isCallable$a = isCallable$c;
  278. var aFunction = function (argument) {
  279. return isCallable$a(argument) ? argument : undefined;
  280. };
  281. var getBuiltIn$3 = function (namespace, method) {
  282. return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
  283. };
  284. var uncurryThis$b = functionUncurryThis;
  285. var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
  286. var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
  287. var global$9 = global$b;
  288. var userAgent = engineUserAgent;
  289. var process = global$9.process;
  290. var Deno = global$9.Deno;
  291. var versions = process && process.versions || Deno && Deno.version;
  292. var v8 = versions && versions.v8;
  293. var match, version;
  294. if (v8) {
  295. match = v8.split('.');
  296. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  297. // but their correct versions are not interesting for us
  298. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  299. }
  300. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  301. // so check `userAgent` even if `.v8` exists, but 0
  302. if (!version && userAgent) {
  303. match = userAgent.match(/Edge\/(\d+)/);
  304. if (!match || match[1] >= 74) {
  305. match = userAgent.match(/Chrome\/(\d+)/);
  306. if (match) version = +match[1];
  307. }
  308. }
  309. var engineV8Version = version;
  310. /* eslint-disable es/no-symbol -- required for testing */
  311. var V8_VERSION$2 = engineV8Version;
  312. var fails$9 = fails$d;
  313. var global$8 = global$b;
  314. var $String$4 = global$8.String;
  315. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  316. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$9(function () {
  317. var symbol = Symbol('symbol detection');
  318. // Chrome 38 Symbol has incorrect toString conversion
  319. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  320. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  321. // of course, fail.
  322. return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
  323. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  324. !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
  325. });
  326. /* eslint-disable es/no-symbol -- required for testing */
  327. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  328. var useSymbolAsUid = NATIVE_SYMBOL$1
  329. && !Symbol.sham
  330. && typeof Symbol.iterator == 'symbol';
  331. var getBuiltIn$2 = getBuiltIn$3;
  332. var isCallable$9 = isCallable$c;
  333. var isPrototypeOf = objectIsPrototypeOf;
  334. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  335. var $Object$2 = Object;
  336. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  337. return typeof it == 'symbol';
  338. } : function (it) {
  339. var $Symbol = getBuiltIn$2('Symbol');
  340. return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
  341. };
  342. var $String$3 = String;
  343. var tryToString$1 = function (argument) {
  344. try {
  345. return $String$3(argument);
  346. } catch (error) {
  347. return 'Object';
  348. }
  349. };
  350. var isCallable$8 = isCallable$c;
  351. var tryToString = tryToString$1;
  352. var $TypeError$5 = TypeError;
  353. // `Assert: IsCallable(argument) is true`
  354. var aCallable$1 = function (argument) {
  355. if (isCallable$8(argument)) return argument;
  356. throw new $TypeError$5(tryToString(argument) + ' is not a function');
  357. };
  358. var aCallable = aCallable$1;
  359. var isNullOrUndefined = isNullOrUndefined$2;
  360. // `GetMethod` abstract operation
  361. // https://tc39.es/ecma262/#sec-getmethod
  362. var getMethod$1 = function (V, P) {
  363. var func = V[P];
  364. return isNullOrUndefined(func) ? undefined : aCallable(func);
  365. };
  366. var call$3 = functionCall;
  367. var isCallable$7 = isCallable$c;
  368. var isObject$7 = isObject$8;
  369. var $TypeError$4 = TypeError;
  370. // `OrdinaryToPrimitive` abstract operation
  371. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  372. var ordinaryToPrimitive$1 = function (input, pref) {
  373. var fn, val;
  374. if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$7(val = call$3(fn, input))) return val;
  375. if (isCallable$7(fn = input.valueOf) && !isObject$7(val = call$3(fn, input))) return val;
  376. if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$7(val = call$3(fn, input))) return val;
  377. throw new $TypeError$4("Can't convert object to primitive value");
  378. };
  379. var sharedStore = {exports: {}};
  380. var global$7 = global$b;
  381. // eslint-disable-next-line es/no-object-defineproperty -- safe
  382. var defineProperty$2 = Object.defineProperty;
  383. var defineGlobalProperty$3 = function (key, value) {
  384. try {
  385. defineProperty$2(global$7, key, { value: value, configurable: true, writable: true });
  386. } catch (error) {
  387. global$7[key] = value;
  388. } return value;
  389. };
  390. var globalThis$1 = global$b;
  391. var defineGlobalProperty$2 = defineGlobalProperty$3;
  392. var SHARED = '__core-js_shared__';
  393. var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
  394. (store$3.versions || (store$3.versions = [])).push({
  395. version: '3.36.1',
  396. mode: 'global',
  397. copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
  398. license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
  399. source: 'https://github.com/zloirock/core-js'
  400. });
  401. var sharedStoreExports = sharedStore.exports;
  402. var store$2 = sharedStoreExports;
  403. var shared$3 = function (key, value) {
  404. return store$2[key] || (store$2[key] = value || {});
  405. };
  406. var requireObjectCoercible$1 = requireObjectCoercible$3;
  407. var $Object$1 = Object;
  408. // `ToObject` abstract operation
  409. // https://tc39.es/ecma262/#sec-toobject
  410. var toObject$3 = function (argument) {
  411. return $Object$1(requireObjectCoercible$1(argument));
  412. };
  413. var uncurryThis$a = functionUncurryThis;
  414. var toObject$2 = toObject$3;
  415. var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
  416. // `HasOwnProperty` abstract operation
  417. // https://tc39.es/ecma262/#sec-hasownproperty
  418. // eslint-disable-next-line es/no-object-hasown -- safe
  419. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  420. return hasOwnProperty(toObject$2(it), key);
  421. };
  422. var uncurryThis$9 = functionUncurryThis;
  423. var id = 0;
  424. var postfix = Math.random();
  425. var toString$3 = uncurryThis$9(1.0.toString);
  426. var uid$2 = function (key) {
  427. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
  428. };
  429. var global$6 = global$b;
  430. var shared$2 = shared$3;
  431. var hasOwn$6 = hasOwnProperty_1;
  432. var uid$1 = uid$2;
  433. var NATIVE_SYMBOL = symbolConstructorDetection;
  434. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  435. var Symbol$2 = global$6.Symbol;
  436. var WellKnownSymbolsStore = shared$2('wks');
  437. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
  438. var wellKnownSymbol$7 = function (name) {
  439. if (!hasOwn$6(WellKnownSymbolsStore, name)) {
  440. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$2, name)
  441. ? Symbol$2[name]
  442. : createWellKnownSymbol('Symbol.' + name);
  443. } return WellKnownSymbolsStore[name];
  444. };
  445. var call$2 = functionCall;
  446. var isObject$6 = isObject$8;
  447. var isSymbol$1 = isSymbol$2;
  448. var getMethod = getMethod$1;
  449. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  450. var wellKnownSymbol$6 = wellKnownSymbol$7;
  451. var $TypeError$3 = TypeError;
  452. var TO_PRIMITIVE = wellKnownSymbol$6('toPrimitive');
  453. // `ToPrimitive` abstract operation
  454. // https://tc39.es/ecma262/#sec-toprimitive
  455. var toPrimitive$1 = function (input, pref) {
  456. if (!isObject$6(input) || isSymbol$1(input)) return input;
  457. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  458. var result;
  459. if (exoticToPrim) {
  460. if (pref === undefined) pref = 'default';
  461. result = call$2(exoticToPrim, input, pref);
  462. if (!isObject$6(result) || isSymbol$1(result)) return result;
  463. throw new $TypeError$3("Can't convert object to primitive value");
  464. }
  465. if (pref === undefined) pref = 'number';
  466. return ordinaryToPrimitive(input, pref);
  467. };
  468. var toPrimitive = toPrimitive$1;
  469. var isSymbol = isSymbol$2;
  470. // `ToPropertyKey` abstract operation
  471. // https://tc39.es/ecma262/#sec-topropertykey
  472. var toPropertyKey$2 = function (argument) {
  473. var key = toPrimitive(argument, 'string');
  474. return isSymbol(key) ? key : key + '';
  475. };
  476. var global$5 = global$b;
  477. var isObject$5 = isObject$8;
  478. var document$1 = global$5.document;
  479. // typeof document.createElement is 'object' in old IE
  480. var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
  481. var documentCreateElement = function (it) {
  482. return EXISTS$1 ? document$1.createElement(it) : {};
  483. };
  484. var DESCRIPTORS$8 = descriptors;
  485. var fails$8 = fails$d;
  486. var createElement = documentCreateElement;
  487. // Thanks to IE8 for its funny defineProperty
  488. var ie8DomDefine = !DESCRIPTORS$8 && !fails$8(function () {
  489. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  490. return Object.defineProperty(createElement('div'), 'a', {
  491. get: function () { return 7; }
  492. }).a !== 7;
  493. });
  494. var DESCRIPTORS$7 = descriptors;
  495. var call$1 = functionCall;
  496. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  497. var createPropertyDescriptor$2 = createPropertyDescriptor$3;
  498. var toIndexedObject$3 = toIndexedObject$4;
  499. var toPropertyKey$1 = toPropertyKey$2;
  500. var hasOwn$5 = hasOwnProperty_1;
  501. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  502. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  503. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  504. // `Object.getOwnPropertyDescriptor` method
  505. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  506. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  507. O = toIndexedObject$3(O);
  508. P = toPropertyKey$1(P);
  509. if (IE8_DOM_DEFINE$1) try {
  510. return $getOwnPropertyDescriptor$1(O, P);
  511. } catch (error) { /* empty */ }
  512. if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
  513. };
  514. var objectDefineProperty = {};
  515. var DESCRIPTORS$6 = descriptors;
  516. var fails$7 = fails$d;
  517. // V8 ~ Chrome 36-
  518. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  519. var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$7(function () {
  520. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  521. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  522. value: 42,
  523. writable: false
  524. }).prototype !== 42;
  525. });
  526. var isObject$4 = isObject$8;
  527. var $String$2 = String;
  528. var $TypeError$2 = TypeError;
  529. // `Assert: Type(argument) is Object`
  530. var anObject$2 = function (argument) {
  531. if (isObject$4(argument)) return argument;
  532. throw new $TypeError$2($String$2(argument) + ' is not an object');
  533. };
  534. var DESCRIPTORS$5 = descriptors;
  535. var IE8_DOM_DEFINE = ie8DomDefine;
  536. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  537. var anObject$1 = anObject$2;
  538. var toPropertyKey = toPropertyKey$2;
  539. var $TypeError$1 = TypeError;
  540. // eslint-disable-next-line es/no-object-defineproperty -- safe
  541. var $defineProperty = Object.defineProperty;
  542. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  543. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  544. var ENUMERABLE = 'enumerable';
  545. var CONFIGURABLE$1 = 'configurable';
  546. var WRITABLE = 'writable';
  547. // `Object.defineProperty` method
  548. // https://tc39.es/ecma262/#sec-object.defineproperty
  549. objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
  550. anObject$1(O);
  551. P = toPropertyKey(P);
  552. anObject$1(Attributes);
  553. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  554. var current = $getOwnPropertyDescriptor(O, P);
  555. if (current && current[WRITABLE]) {
  556. O[P] = Attributes.value;
  557. Attributes = {
  558. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  559. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  560. writable: false
  561. };
  562. }
  563. } return $defineProperty(O, P, Attributes);
  564. } : $defineProperty : function defineProperty(O, P, Attributes) {
  565. anObject$1(O);
  566. P = toPropertyKey(P);
  567. anObject$1(Attributes);
  568. if (IE8_DOM_DEFINE) try {
  569. return $defineProperty(O, P, Attributes);
  570. } catch (error) { /* empty */ }
  571. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
  572. if ('value' in Attributes) O[P] = Attributes.value;
  573. return O;
  574. };
  575. var DESCRIPTORS$4 = descriptors;
  576. var definePropertyModule$3 = objectDefineProperty;
  577. var createPropertyDescriptor$1 = createPropertyDescriptor$3;
  578. var createNonEnumerableProperty$2 = DESCRIPTORS$4 ? function (object, key, value) {
  579. return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
  580. } : function (object, key, value) {
  581. object[key] = value;
  582. return object;
  583. };
  584. var makeBuiltIn$2 = {exports: {}};
  585. var DESCRIPTORS$3 = descriptors;
  586. var hasOwn$4 = hasOwnProperty_1;
  587. var FunctionPrototype = Function.prototype;
  588. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  589. var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
  590. var EXISTS = hasOwn$4(FunctionPrototype, 'name');
  591. // additional protection from minified / mangled / dropped function names
  592. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  593. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
  594. var functionName = {
  595. EXISTS: EXISTS,
  596. PROPER: PROPER,
  597. CONFIGURABLE: CONFIGURABLE
  598. };
  599. var uncurryThis$8 = functionUncurryThis;
  600. var isCallable$6 = isCallable$c;
  601. var store$1 = sharedStoreExports;
  602. var functionToString = uncurryThis$8(Function.toString);
  603. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  604. if (!isCallable$6(store$1.inspectSource)) {
  605. store$1.inspectSource = function (it) {
  606. return functionToString(it);
  607. };
  608. }
  609. var inspectSource$2 = store$1.inspectSource;
  610. var global$4 = global$b;
  611. var isCallable$5 = isCallable$c;
  612. var WeakMap$1 = global$4.WeakMap;
  613. var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1));
  614. var shared$1 = shared$3;
  615. var uid = uid$2;
  616. var keys = shared$1('keys');
  617. var sharedKey$1 = function (key) {
  618. return keys[key] || (keys[key] = uid(key));
  619. };
  620. var hiddenKeys$3 = {};
  621. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  622. var global$3 = global$b;
  623. var isObject$3 = isObject$8;
  624. var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
  625. var hasOwn$3 = hasOwnProperty_1;
  626. var shared = sharedStoreExports;
  627. var sharedKey = sharedKey$1;
  628. var hiddenKeys$2 = hiddenKeys$3;
  629. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  630. var TypeError$1 = global$3.TypeError;
  631. var WeakMap = global$3.WeakMap;
  632. var set, get, has;
  633. var enforce = function (it) {
  634. return has(it) ? get(it) : set(it, {});
  635. };
  636. var getterFor = function (TYPE) {
  637. return function (it) {
  638. var state;
  639. if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
  640. throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  641. } return state;
  642. };
  643. };
  644. if (NATIVE_WEAK_MAP || shared.state) {
  645. var store = shared.state || (shared.state = new WeakMap());
  646. /* eslint-disable no-self-assign -- prototype methods protection */
  647. store.get = store.get;
  648. store.has = store.has;
  649. store.set = store.set;
  650. /* eslint-enable no-self-assign -- prototype methods protection */
  651. set = function (it, metadata) {
  652. if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  653. metadata.facade = it;
  654. store.set(it, metadata);
  655. return metadata;
  656. };
  657. get = function (it) {
  658. return store.get(it) || {};
  659. };
  660. has = function (it) {
  661. return store.has(it);
  662. };
  663. } else {
  664. var STATE = sharedKey('state');
  665. hiddenKeys$2[STATE] = true;
  666. set = function (it, metadata) {
  667. if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  668. metadata.facade = it;
  669. createNonEnumerableProperty$1(it, STATE, metadata);
  670. return metadata;
  671. };
  672. get = function (it) {
  673. return hasOwn$3(it, STATE) ? it[STATE] : {};
  674. };
  675. has = function (it) {
  676. return hasOwn$3(it, STATE);
  677. };
  678. }
  679. var internalState = {
  680. set: set,
  681. get: get,
  682. has: has,
  683. enforce: enforce,
  684. getterFor: getterFor
  685. };
  686. var uncurryThis$7 = functionUncurryThis;
  687. var fails$6 = fails$d;
  688. var isCallable$4 = isCallable$c;
  689. var hasOwn$2 = hasOwnProperty_1;
  690. var DESCRIPTORS$2 = descriptors;
  691. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  692. var inspectSource$1 = inspectSource$2;
  693. var InternalStateModule = internalState;
  694. var enforceInternalState = InternalStateModule.enforce;
  695. var getInternalState = InternalStateModule.get;
  696. var $String$1 = String;
  697. // eslint-disable-next-line es/no-object-defineproperty -- safe
  698. var defineProperty$1 = Object.defineProperty;
  699. var stringSlice = uncurryThis$7(''.slice);
  700. var replace$1 = uncurryThis$7(''.replace);
  701. var join = uncurryThis$7([].join);
  702. var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$6(function () {
  703. return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  704. });
  705. var TEMPLATE = String(String).split('String');
  706. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  707. if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
  708. name = '[' + replace$1($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
  709. }
  710. if (options && options.getter) name = 'get ' + name;
  711. if (options && options.setter) name = 'set ' + name;
  712. if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  713. if (DESCRIPTORS$2) defineProperty$1(value, 'name', { value: name, configurable: true });
  714. else value.name = name;
  715. }
  716. if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
  717. defineProperty$1(value, 'length', { value: options.arity });
  718. }
  719. try {
  720. if (options && hasOwn$2(options, 'constructor') && options.constructor) {
  721. if (DESCRIPTORS$2) defineProperty$1(value, 'prototype', { writable: false });
  722. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  723. } else if (value.prototype) value.prototype = undefined;
  724. } catch (error) { /* empty */ }
  725. var state = enforceInternalState(value);
  726. if (!hasOwn$2(state, 'source')) {
  727. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  728. } return value;
  729. };
  730. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  731. // eslint-disable-next-line no-extend-native -- required
  732. Function.prototype.toString = makeBuiltIn$1(function toString() {
  733. return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
  734. }, 'toString');
  735. var makeBuiltInExports = makeBuiltIn$2.exports;
  736. var isCallable$3 = isCallable$c;
  737. var definePropertyModule$2 = objectDefineProperty;
  738. var makeBuiltIn = makeBuiltInExports;
  739. var defineGlobalProperty$1 = defineGlobalProperty$3;
  740. var defineBuiltIn$1 = function (O, key, value, options) {
  741. if (!options) options = {};
  742. var simple = options.enumerable;
  743. var name = options.name !== undefined ? options.name : key;
  744. if (isCallable$3(value)) makeBuiltIn(value, name, options);
  745. if (options.global) {
  746. if (simple) O[key] = value;
  747. else defineGlobalProperty$1(key, value);
  748. } else {
  749. try {
  750. if (!options.unsafe) delete O[key];
  751. else if (O[key]) simple = true;
  752. } catch (error) { /* empty */ }
  753. if (simple) O[key] = value;
  754. else definePropertyModule$2.f(O, key, {
  755. value: value,
  756. enumerable: false,
  757. configurable: !options.nonConfigurable,
  758. writable: !options.nonWritable
  759. });
  760. } return O;
  761. };
  762. var objectGetOwnPropertyNames = {};
  763. var ceil = Math.ceil;
  764. var floor = Math.floor;
  765. // `Math.trunc` method
  766. // https://tc39.es/ecma262/#sec-math.trunc
  767. // eslint-disable-next-line es/no-math-trunc -- safe
  768. var mathTrunc = Math.trunc || function trunc(x) {
  769. var n = +x;
  770. return (n > 0 ? floor : ceil)(n);
  771. };
  772. var trunc = mathTrunc;
  773. // `ToIntegerOrInfinity` abstract operation
  774. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  775. var toIntegerOrInfinity$2 = function (argument) {
  776. var number = +argument;
  777. // eslint-disable-next-line no-self-compare -- NaN check
  778. return number !== number || number === 0 ? 0 : trunc(number);
  779. };
  780. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  781. var max$1 = Math.max;
  782. var min$1 = Math.min;
  783. // Helper for a popular repeating case of the spec:
  784. // Let integer be ? ToInteger(index).
  785. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  786. var toAbsoluteIndex$2 = function (index, length) {
  787. var integer = toIntegerOrInfinity$1(index);
  788. return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
  789. };
  790. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  791. var min = Math.min;
  792. // `ToLength` abstract operation
  793. // https://tc39.es/ecma262/#sec-tolength
  794. var toLength$1 = function (argument) {
  795. var len = toIntegerOrInfinity(argument);
  796. return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  797. };
  798. var toLength = toLength$1;
  799. // `LengthOfArrayLike` abstract operation
  800. // https://tc39.es/ecma262/#sec-lengthofarraylike
  801. var lengthOfArrayLike$3 = function (obj) {
  802. return toLength(obj.length);
  803. };
  804. var toIndexedObject$2 = toIndexedObject$4;
  805. var toAbsoluteIndex$1 = toAbsoluteIndex$2;
  806. var lengthOfArrayLike$2 = lengthOfArrayLike$3;
  807. // `Array.prototype.{ indexOf, includes }` methods implementation
  808. var createMethod$1 = function (IS_INCLUDES) {
  809. return function ($this, el, fromIndex) {
  810. var O = toIndexedObject$2($this);
  811. var length = lengthOfArrayLike$2(O);
  812. if (length === 0) return !IS_INCLUDES && -1;
  813. var index = toAbsoluteIndex$1(fromIndex, length);
  814. var value;
  815. // Array#includes uses SameValueZero equality algorithm
  816. // eslint-disable-next-line no-self-compare -- NaN check
  817. if (IS_INCLUDES && el !== el) while (length > index) {
  818. value = O[index++];
  819. // eslint-disable-next-line no-self-compare -- NaN check
  820. if (value !== value) return true;
  821. // Array#indexOf ignores holes, Array#includes - not
  822. } else for (;length > index; index++) {
  823. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  824. } return !IS_INCLUDES && -1;
  825. };
  826. };
  827. var arrayIncludes = {
  828. // `Array.prototype.includes` method
  829. // https://tc39.es/ecma262/#sec-array.prototype.includes
  830. includes: createMethod$1(true),
  831. // `Array.prototype.indexOf` method
  832. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  833. indexOf: createMethod$1(false)
  834. };
  835. var uncurryThis$6 = functionUncurryThis;
  836. var hasOwn$1 = hasOwnProperty_1;
  837. var toIndexedObject$1 = toIndexedObject$4;
  838. var indexOf = arrayIncludes.indexOf;
  839. var hiddenKeys$1 = hiddenKeys$3;
  840. var push = uncurryThis$6([].push);
  841. var objectKeysInternal = function (object, names) {
  842. var O = toIndexedObject$1(object);
  843. var i = 0;
  844. var result = [];
  845. var key;
  846. for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
  847. // Don't enum bug & hidden keys
  848. while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
  849. ~indexOf(result, key) || push(result, key);
  850. }
  851. return result;
  852. };
  853. // IE8- don't enum bug keys
  854. var enumBugKeys$2 = [
  855. 'constructor',
  856. 'hasOwnProperty',
  857. 'isPrototypeOf',
  858. 'propertyIsEnumerable',
  859. 'toLocaleString',
  860. 'toString',
  861. 'valueOf'
  862. ];
  863. var internalObjectKeys$1 = objectKeysInternal;
  864. var enumBugKeys$1 = enumBugKeys$2;
  865. var hiddenKeys = enumBugKeys$1.concat('length', 'prototype');
  866. // `Object.getOwnPropertyNames` method
  867. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  868. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  869. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  870. return internalObjectKeys$1(O, hiddenKeys);
  871. };
  872. var objectGetOwnPropertySymbols = {};
  873. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  874. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  875. var getBuiltIn$1 = getBuiltIn$3;
  876. var uncurryThis$5 = functionUncurryThis;
  877. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  878. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  879. var anObject = anObject$2;
  880. var concat$1 = uncurryThis$5([].concat);
  881. // all object keys, includes non-enumerable and symbols
  882. var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
  883. var keys = getOwnPropertyNamesModule.f(anObject(it));
  884. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  885. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  886. };
  887. var hasOwn = hasOwnProperty_1;
  888. var ownKeys = ownKeys$1;
  889. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  890. var definePropertyModule$1 = objectDefineProperty;
  891. var copyConstructorProperties$1 = function (target, source, exceptions) {
  892. var keys = ownKeys(source);
  893. var defineProperty = definePropertyModule$1.f;
  894. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  895. for (var i = 0; i < keys.length; i++) {
  896. var key = keys[i];
  897. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  898. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  899. }
  900. }
  901. };
  902. var fails$5 = fails$d;
  903. var isCallable$2 = isCallable$c;
  904. var replacement = /#|\.prototype\./;
  905. var isForced$1 = function (feature, detection) {
  906. var value = data[normalize(feature)];
  907. return value === POLYFILL ? true
  908. : value === NATIVE ? false
  909. : isCallable$2(detection) ? fails$5(detection)
  910. : !!detection;
  911. };
  912. var normalize = isForced$1.normalize = function (string) {
  913. return String(string).replace(replacement, '.').toLowerCase();
  914. };
  915. var data = isForced$1.data = {};
  916. var NATIVE = isForced$1.NATIVE = 'N';
  917. var POLYFILL = isForced$1.POLYFILL = 'P';
  918. var isForced_1 = isForced$1;
  919. var global$2 = global$b;
  920. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  921. var createNonEnumerableProperty = createNonEnumerableProperty$2;
  922. var defineBuiltIn = defineBuiltIn$1;
  923. var defineGlobalProperty = defineGlobalProperty$3;
  924. var copyConstructorProperties = copyConstructorProperties$1;
  925. var isForced = isForced_1;
  926. /*
  927. options.target - name of the target object
  928. options.global - target is the global object
  929. options.stat - export as static methods of target
  930. options.proto - export as prototype methods of target
  931. options.real - real prototype method for the `pure` version
  932. options.forced - export even if the native feature is available
  933. options.bind - bind methods to the target, required for the `pure` version
  934. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  935. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  936. options.sham - add a flag to not completely full polyfills
  937. options.enumerable - export as enumerable property
  938. options.dontCallGetSet - prevent calling a getter on target
  939. options.name - the .name of the function if it does not match the key
  940. */
  941. var _export = function (options, source) {
  942. var TARGET = options.target;
  943. var GLOBAL = options.global;
  944. var STATIC = options.stat;
  945. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  946. if (GLOBAL) {
  947. target = global$2;
  948. } else if (STATIC) {
  949. target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
  950. } else {
  951. target = global$2[TARGET] && global$2[TARGET].prototype;
  952. }
  953. if (target) for (key in source) {
  954. sourceProperty = source[key];
  955. if (options.dontCallGetSet) {
  956. descriptor = getOwnPropertyDescriptor(target, key);
  957. targetProperty = descriptor && descriptor.value;
  958. } else targetProperty = target[key];
  959. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  960. // contained in target
  961. if (!FORCED && targetProperty !== undefined) {
  962. if (typeof sourceProperty == typeof targetProperty) continue;
  963. copyConstructorProperties(sourceProperty, targetProperty);
  964. }
  965. // add a flag to not completely full polyfills
  966. if (options.sham || (targetProperty && targetProperty.sham)) {
  967. createNonEnumerableProperty(sourceProperty, 'sham', true);
  968. }
  969. defineBuiltIn(target, key, sourceProperty, options);
  970. }
  971. };
  972. var classof$3 = classofRaw$1;
  973. // `IsArray` abstract operation
  974. // https://tc39.es/ecma262/#sec-isarray
  975. // eslint-disable-next-line es/no-array-isarray -- safe
  976. var isArray$3 = Array.isArray || function isArray(argument) {
  977. return classof$3(argument) === 'Array';
  978. };
  979. var $TypeError = TypeError;
  980. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  981. var doesNotExceedSafeInteger$1 = function (it) {
  982. if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
  983. return it;
  984. };
  985. var DESCRIPTORS$1 = descriptors;
  986. var definePropertyModule = objectDefineProperty;
  987. var createPropertyDescriptor = createPropertyDescriptor$3;
  988. var createProperty$2 = function (object, key, value) {
  989. if (DESCRIPTORS$1) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
  990. else object[key] = value;
  991. };
  992. var wellKnownSymbol$5 = wellKnownSymbol$7;
  993. var TO_STRING_TAG$1 = wellKnownSymbol$5('toStringTag');
  994. var test = {};
  995. test[TO_STRING_TAG$1] = 'z';
  996. var toStringTagSupport = String(test) === '[object z]';
  997. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  998. var isCallable$1 = isCallable$c;
  999. var classofRaw = classofRaw$1;
  1000. var wellKnownSymbol$4 = wellKnownSymbol$7;
  1001. var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
  1002. var $Object = Object;
  1003. // ES3 wrong here
  1004. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
  1005. // fallback for IE11 Script Access Denied error
  1006. var tryGet = function (it, key) {
  1007. try {
  1008. return it[key];
  1009. } catch (error) { /* empty */ }
  1010. };
  1011. // getting tag from ES6+ `Object.prototype.toString`
  1012. var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
  1013. var O, tag, result;
  1014. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1015. // @@toStringTag case
  1016. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  1017. // builtinTag case
  1018. : CORRECT_ARGUMENTS ? classofRaw(O)
  1019. // ES3 arguments fallback
  1020. : (result = classofRaw(O)) === 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
  1021. };
  1022. var uncurryThis$4 = functionUncurryThis;
  1023. var fails$4 = fails$d;
  1024. var isCallable = isCallable$c;
  1025. var classof$1 = classof$2;
  1026. var getBuiltIn = getBuiltIn$3;
  1027. var inspectSource = inspectSource$2;
  1028. var noop = function () { /* empty */ };
  1029. var construct = getBuiltIn('Reflect', 'construct');
  1030. var constructorRegExp = /^\s*(?:class|function)\b/;
  1031. var exec$1 = uncurryThis$4(constructorRegExp.exec);
  1032. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1033. var isConstructorModern = function isConstructor(argument) {
  1034. if (!isCallable(argument)) return false;
  1035. try {
  1036. construct(noop, [], argument);
  1037. return true;
  1038. } catch (error) {
  1039. return false;
  1040. }
  1041. };
  1042. var isConstructorLegacy = function isConstructor(argument) {
  1043. if (!isCallable(argument)) return false;
  1044. switch (classof$1(argument)) {
  1045. case 'AsyncFunction':
  1046. case 'GeneratorFunction':
  1047. case 'AsyncGeneratorFunction': return false;
  1048. }
  1049. try {
  1050. // we can't check .prototype since constructors produced by .bind haven't it
  1051. // `Function#toString` throws on some built-it function in some legacy engines
  1052. // (for example, `DOMQuad` and similar in FF41-)
  1053. return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
  1054. } catch (error) {
  1055. return true;
  1056. }
  1057. };
  1058. isConstructorLegacy.sham = true;
  1059. // `IsConstructor` abstract operation
  1060. // https://tc39.es/ecma262/#sec-isconstructor
  1061. var isConstructor$2 = !construct || fails$4(function () {
  1062. var called;
  1063. return isConstructorModern(isConstructorModern.call)
  1064. || !isConstructorModern(Object)
  1065. || !isConstructorModern(function () { called = true; })
  1066. || called;
  1067. }) ? isConstructorLegacy : isConstructorModern;
  1068. var isArray$2 = isArray$3;
  1069. var isConstructor$1 = isConstructor$2;
  1070. var isObject$2 = isObject$8;
  1071. var wellKnownSymbol$3 = wellKnownSymbol$7;
  1072. var SPECIES$2 = wellKnownSymbol$3('species');
  1073. var $Array$1 = Array;
  1074. // a part of `ArraySpeciesCreate` abstract operation
  1075. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1076. var arraySpeciesConstructor$1 = function (originalArray) {
  1077. var C;
  1078. if (isArray$2(originalArray)) {
  1079. C = originalArray.constructor;
  1080. // cross-realm fallback
  1081. if (isConstructor$1(C) && (C === $Array$1 || isArray$2(C.prototype))) C = undefined;
  1082. else if (isObject$2(C)) {
  1083. C = C[SPECIES$2];
  1084. if (C === null) C = undefined;
  1085. }
  1086. } return C === undefined ? $Array$1 : C;
  1087. };
  1088. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1089. // `ArraySpeciesCreate` abstract operation
  1090. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1091. var arraySpeciesCreate$1 = function (originalArray, length) {
  1092. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1093. };
  1094. var fails$3 = fails$d;
  1095. var wellKnownSymbol$2 = wellKnownSymbol$7;
  1096. var V8_VERSION$1 = engineV8Version;
  1097. var SPECIES$1 = wellKnownSymbol$2('species');
  1098. var arrayMethodHasSpeciesSupport$2 = function (METHOD_NAME) {
  1099. // We can't use this feature detection in V8 since it causes
  1100. // deoptimization and serious performance degradation
  1101. // https://github.com/zloirock/core-js/issues/677
  1102. return V8_VERSION$1 >= 51 || !fails$3(function () {
  1103. var array = [];
  1104. var constructor = array.constructor = {};
  1105. constructor[SPECIES$1] = function () {
  1106. return { foo: 1 };
  1107. };
  1108. return array[METHOD_NAME](Boolean).foo !== 1;
  1109. });
  1110. };
  1111. var $$3 = _export;
  1112. var fails$2 = fails$d;
  1113. var isArray$1 = isArray$3;
  1114. var isObject$1 = isObject$8;
  1115. var toObject$1 = toObject$3;
  1116. var lengthOfArrayLike$1 = lengthOfArrayLike$3;
  1117. var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
  1118. var createProperty$1 = createProperty$2;
  1119. var arraySpeciesCreate = arraySpeciesCreate$1;
  1120. var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$2;
  1121. var wellKnownSymbol$1 = wellKnownSymbol$7;
  1122. var V8_VERSION = engineV8Version;
  1123. var IS_CONCAT_SPREADABLE = wellKnownSymbol$1('isConcatSpreadable');
  1124. // We can't use this feature detection in V8 since it causes
  1125. // deoptimization and serious performance degradation
  1126. // https://github.com/zloirock/core-js/issues/679
  1127. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$2(function () {
  1128. var array = [];
  1129. array[IS_CONCAT_SPREADABLE] = false;
  1130. return array.concat()[0] !== array;
  1131. });
  1132. var isConcatSpreadable = function (O) {
  1133. if (!isObject$1(O)) return false;
  1134. var spreadable = O[IS_CONCAT_SPREADABLE];
  1135. return spreadable !== undefined ? !!spreadable : isArray$1(O);
  1136. };
  1137. var FORCED$1 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport$1('concat');
  1138. // `Array.prototype.concat` method
  1139. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1140. // with adding support of @@isConcatSpreadable and @@species
  1141. $$3({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
  1142. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1143. concat: function concat(arg) {
  1144. var O = toObject$1(this);
  1145. var A = arraySpeciesCreate(O, 0);
  1146. var n = 0;
  1147. var i, k, length, len, E;
  1148. for (i = -1, length = arguments.length; i < length; i++) {
  1149. E = i === -1 ? O : arguments[i];
  1150. if (isConcatSpreadable(E)) {
  1151. len = lengthOfArrayLike$1(E);
  1152. doesNotExceedSafeInteger(n + len);
  1153. for (k = 0; k < len; k++, n++) if (k in E) createProperty$1(A, n, E[k]);
  1154. } else {
  1155. doesNotExceedSafeInteger(n + 1);
  1156. createProperty$1(A, n++, E);
  1157. }
  1158. }
  1159. A.length = n;
  1160. return A;
  1161. }
  1162. });
  1163. var uncurryThis$3 = functionUncurryThis;
  1164. var arraySlice = uncurryThis$3([].slice);
  1165. var $$2 = _export;
  1166. var isArray = isArray$3;
  1167. var isConstructor = isConstructor$2;
  1168. var isObject = isObject$8;
  1169. var toAbsoluteIndex = toAbsoluteIndex$2;
  1170. var lengthOfArrayLike = lengthOfArrayLike$3;
  1171. var toIndexedObject = toIndexedObject$4;
  1172. var createProperty = createProperty$2;
  1173. var wellKnownSymbol = wellKnownSymbol$7;
  1174. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$2;
  1175. var nativeSlice = arraySlice;
  1176. var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
  1177. var SPECIES = wellKnownSymbol('species');
  1178. var $Array = Array;
  1179. var max = Math.max;
  1180. // `Array.prototype.slice` method
  1181. // https://tc39.es/ecma262/#sec-array.prototype.slice
  1182. // fallback for not array-like ES3 strings and DOM objects
  1183. $$2({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
  1184. slice: function slice(start, end) {
  1185. var O = toIndexedObject(this);
  1186. var length = lengthOfArrayLike(O);
  1187. var k = toAbsoluteIndex(start, length);
  1188. var fin = toAbsoluteIndex(end === undefined ? length : end, length);
  1189. // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
  1190. var Constructor, result, n;
  1191. if (isArray(O)) {
  1192. Constructor = O.constructor;
  1193. // cross-realm fallback
  1194. if (isConstructor(Constructor) && (Constructor === $Array || isArray(Constructor.prototype))) {
  1195. Constructor = undefined;
  1196. } else if (isObject(Constructor)) {
  1197. Constructor = Constructor[SPECIES];
  1198. if (Constructor === null) Constructor = undefined;
  1199. }
  1200. if (Constructor === $Array || Constructor === undefined) {
  1201. return nativeSlice(O, k, fin);
  1202. }
  1203. }
  1204. result = new (Constructor === undefined ? $Array : Constructor)(max(fin - k, 0));
  1205. for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
  1206. result.length = n;
  1207. return result;
  1208. }
  1209. });
  1210. var internalObjectKeys = objectKeysInternal;
  1211. var enumBugKeys = enumBugKeys$2;
  1212. // `Object.keys` method
  1213. // https://tc39.es/ecma262/#sec-object.keys
  1214. // eslint-disable-next-line es/no-object-keys -- safe
  1215. var objectKeys$1 = Object.keys || function keys(O) {
  1216. return internalObjectKeys(O, enumBugKeys);
  1217. };
  1218. var DESCRIPTORS = descriptors;
  1219. var uncurryThis$2 = functionUncurryThis;
  1220. var call = functionCall;
  1221. var fails$1 = fails$d;
  1222. var objectKeys = objectKeys$1;
  1223. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  1224. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  1225. var toObject = toObject$3;
  1226. var IndexedObject = indexedObject;
  1227. // eslint-disable-next-line es/no-object-assign -- safe
  1228. var $assign = Object.assign;
  1229. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  1230. var defineProperty = Object.defineProperty;
  1231. var concat = uncurryThis$2([].concat);
  1232. // `Object.assign` method
  1233. // https://tc39.es/ecma262/#sec-object.assign
  1234. var objectAssign = !$assign || fails$1(function () {
  1235. // should have correct order of operations (Edge bug)
  1236. if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  1237. enumerable: true,
  1238. get: function () {
  1239. defineProperty(this, 'b', {
  1240. value: 3,
  1241. enumerable: false
  1242. });
  1243. }
  1244. }), { b: 2 })).b !== 1) return true;
  1245. // should work with symbols and should have deterministic property order (V8 bug)
  1246. var A = {};
  1247. var B = {};
  1248. // eslint-disable-next-line es/no-symbol -- safe
  1249. var symbol = Symbol('assign detection');
  1250. var alphabet = 'abcdefghijklmnopqrst';
  1251. A[symbol] = 7;
  1252. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1253. return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
  1254. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1255. var T = toObject(target);
  1256. var argumentsLength = arguments.length;
  1257. var index = 1;
  1258. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1259. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1260. while (argumentsLength > index) {
  1261. var S = IndexedObject(arguments[index++]);
  1262. var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
  1263. var length = keys.length;
  1264. var j = 0;
  1265. var key;
  1266. while (length > j) {
  1267. key = keys[j++];
  1268. if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
  1269. }
  1270. } return T;
  1271. } : $assign;
  1272. var $$1 = _export;
  1273. var assign = objectAssign;
  1274. // `Object.assign` method
  1275. // https://tc39.es/ecma262/#sec-object.assign
  1276. // eslint-disable-next-line es/no-object-assign -- required for testing
  1277. $$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1278. assign: assign
  1279. });
  1280. var classof = classof$2;
  1281. var $String = String;
  1282. var toString$2 = function (argument) {
  1283. if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
  1284. return $String(argument);
  1285. };
  1286. // a string of all valid unicode whitespaces
  1287. var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
  1288. '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
  1289. var uncurryThis$1 = functionUncurryThis;
  1290. var requireObjectCoercible = requireObjectCoercible$3;
  1291. var toString$1 = toString$2;
  1292. var whitespaces$1 = whitespaces$2;
  1293. var replace = uncurryThis$1(''.replace);
  1294. var ltrim = RegExp('^[' + whitespaces$1 + ']+');
  1295. var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
  1296. // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
  1297. var createMethod = function (TYPE) {
  1298. return function ($this) {
  1299. var string = toString$1(requireObjectCoercible($this));
  1300. if (TYPE & 1) string = replace(string, ltrim, '');
  1301. if (TYPE & 2) string = replace(string, rtrim, '$1');
  1302. return string;
  1303. };
  1304. };
  1305. var stringTrim = {
  1306. // `String.prototype.{ trimLeft, trimStart }` methods
  1307. // https://tc39.es/ecma262/#sec-string.prototype.trimstart
  1308. start: createMethod(1),
  1309. // `String.prototype.{ trimRight, trimEnd }` methods
  1310. // https://tc39.es/ecma262/#sec-string.prototype.trimend
  1311. end: createMethod(2),
  1312. // `String.prototype.trim` method
  1313. // https://tc39.es/ecma262/#sec-string.prototype.trim
  1314. trim: createMethod(3)
  1315. };
  1316. var global$1 = global$b;
  1317. var fails = fails$d;
  1318. var uncurryThis = functionUncurryThis;
  1319. var toString = toString$2;
  1320. var trim = stringTrim.trim;
  1321. var whitespaces = whitespaces$2;
  1322. var $parseInt$1 = global$1.parseInt;
  1323. var Symbol$1 = global$1.Symbol;
  1324. var ITERATOR = Symbol$1 && Symbol$1.iterator;
  1325. var hex = /^[+-]?0x/i;
  1326. var exec = uncurryThis(hex.exec);
  1327. var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
  1328. // MS Edge 18- broken with boxed symbols
  1329. || (ITERATOR && !fails(function () { $parseInt$1(Object(ITERATOR)); }));
  1330. // `parseInt` method
  1331. // https://tc39.es/ecma262/#sec-parseint-string-radix
  1332. var numberParseInt = FORCED ? function parseInt(string, radix) {
  1333. var S = trim(toString(string));
  1334. return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
  1335. } : $parseInt$1;
  1336. var $ = _export;
  1337. var $parseInt = numberParseInt;
  1338. // `parseInt` method
  1339. // https://tc39.es/ecma262/#sec-parseint-string-radix
  1340. $({ global: true, forced: parseInt !== $parseInt }, {
  1341. parseInt: $parseInt
  1342. });
  1343. /**
  1344. * @author doug-the-guy
  1345. * @update zhixin wen <wenzhixin2010@gmail.com>
  1346. *
  1347. * Bootstrap Table Pipeline
  1348. * -----------------------
  1349. *
  1350. * This plugin enables client side data caching for server side requests which will
  1351. * eliminate the need to issue a new request every page change. This will allow
  1352. * for a performance balance for a large data set between returning all data at once
  1353. * (client side paging) and a new server side request (server side paging).
  1354. *
  1355. * There are two new options:
  1356. * - usePipeline: enables this feature
  1357. * - pipelineSize: the size of each cache window
  1358. *
  1359. * The size of the pipeline must be evenly divisible by the current page size. This is
  1360. * assured by rounding up to the nearest evenly divisible value. For example, if
  1361. * the pipeline size is 4990 and the current page size is 25, then pipeline size will
  1362. * be dynamically set to 5000.
  1363. *
  1364. * The cache windows are computed based on the pipeline size and the total number of rows
  1365. * returned by the server side query. For example, with pipeline size 500 and total rows
  1366. * 1300, the cache windows will be:
  1367. *
  1368. * [{'lower': 0, 'upper': 499}, {'lower': 500, 'upper': 999}, {'lower': 1000, 'upper': 1499}]
  1369. *
  1370. * Using the limit (i.e. the pipelineSize) and offset parameters, the server side request
  1371. * **MUST** return only the data in the requested cache window **AND** the total number of rows.
  1372. * To wit, the server side code must use the offset and limit parameters to prepare the response
  1373. * data.
  1374. *
  1375. * On a page change, the new offset is checked if it is within the current cache window. If so,
  1376. * the requested page data is returned from the cached data set. Otherwise, a new server side
  1377. * request will be issued for the new cache window.
  1378. *
  1379. * The current cached data is only invalidated on these events:
  1380. * * sorting
  1381. * * searching
  1382. * * page size change
  1383. * * page change moves into a new cache window
  1384. *
  1385. * There are two new events:
  1386. * - cached-data-hit.bs.table: issued when cached data is used on a page change
  1387. * - cached-data-reset.bs.table: issued when the cached data is invalidated and a
  1388. * new server side request is issued
  1389. *
  1390. **/
  1391. var Utils = $$4.fn.bootstrapTable.utils;
  1392. Object.assign($$4.fn.bootstrapTable.defaults, {
  1393. usePipeline: false,
  1394. pipelineSize: 1000,
  1395. // eslint-disable-next-line no-unused-vars
  1396. onCachedDataHit: function onCachedDataHit(data) {
  1397. return false;
  1398. },
  1399. // eslint-disable-next-line no-unused-vars
  1400. onCachedDataReset: function onCachedDataReset(data) {
  1401. return false;
  1402. }
  1403. });
  1404. Object.assign($$4.fn.bootstrapTable.events, {
  1405. 'cached-data-hit.bs.table': 'onCachedDataHit',
  1406. 'cached-data-reset.bs.table': 'onCachedDataReset'
  1407. });
  1408. $$4.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1409. function _class() {
  1410. _classCallCheck(this, _class);
  1411. return _callSuper(this, _class, arguments);
  1412. }
  1413. _inherits(_class, _$$BootstrapTable);
  1414. return _createClass(_class, [{
  1415. key: "init",
  1416. value:
  1417. // needs to be called before initServer
  1418. function init() {
  1419. var _get2;
  1420. if (this.options.usePipeline) {
  1421. this.initPipeline();
  1422. }
  1423. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1424. args[_key] = arguments[_key];
  1425. }
  1426. (_get2 = _get(_getPrototypeOf(_class.prototype), "init", this)).call.apply(_get2, [this].concat(args));
  1427. }
  1428. }, {
  1429. key: "initPipeline",
  1430. value: function initPipeline() {
  1431. this.cacheRequestJSON = {};
  1432. this.cacheWindows = [];
  1433. this.currWindow = 0;
  1434. this.resetCache = true;
  1435. }
  1436. // force a cache reset on search
  1437. }, {
  1438. key: "onSearch",
  1439. value: function onSearch() {
  1440. var _get3;
  1441. if (this.options.usePipeline) {
  1442. this.resetCache = true;
  1443. }
  1444. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  1445. args[_key2] = arguments[_key2];
  1446. }
  1447. (_get3 = _get(_getPrototypeOf(_class.prototype), "onSearch", this)).call.apply(_get3, [this].concat(args));
  1448. }
  1449. // force a cache reset on sort
  1450. }, {
  1451. key: "onSort",
  1452. value: function onSort() {
  1453. var _get4;
  1454. if (this.options.usePipeline) {
  1455. this.resetCache = true;
  1456. }
  1457. for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  1458. args[_key3] = arguments[_key3];
  1459. }
  1460. (_get4 = _get(_getPrototypeOf(_class.prototype), "onSort", this)).call.apply(_get4, [this].concat(args));
  1461. }
  1462. // rebuild cache window on page size change
  1463. }, {
  1464. key: "onPageListChange",
  1465. value: function onPageListChange(event) {
  1466. var target = $$4(event.currentTarget);
  1467. var newPageSize = parseInt(target.text(), 10);
  1468. this.options.pipelineSize = this.calculatePipelineSize(this.options.pipelineSize, newPageSize);
  1469. this.resetCache = true;
  1470. _get(_getPrototypeOf(_class.prototype), "onPageListChange", this).call(this, event);
  1471. }
  1472. // calculate pipeline size by rounding up to
  1473. // the nearest value evenly divisible by the pageSize
  1474. }, {
  1475. key: "calculatePipelineSize",
  1476. value: function calculatePipelineSize(pipelineSize, pageSize) {
  1477. if (pageSize === 0) {
  1478. return 0;
  1479. }
  1480. return Math.ceil(pipelineSize / pageSize) * pageSize;
  1481. }
  1482. // set cache windows based on the total number of rows returned
  1483. // by server side request and the pipelineSize
  1484. }, {
  1485. key: "setCacheWindows",
  1486. value: function setCacheWindows() {
  1487. this.cacheWindows = [];
  1488. for (var i = 0; i <= this.options.totalRows / this.options.pipelineSize; i++) {
  1489. var lower = i * this.options.pipelineSize;
  1490. this.cacheWindows[i] = {
  1491. lower: lower,
  1492. upper: lower + this.options.pipelineSize - 1
  1493. };
  1494. }
  1495. }
  1496. // set the current cache window index, based on where the current offset falls
  1497. }, {
  1498. key: "setCurrWindow",
  1499. value: function setCurrWindow(offset) {
  1500. this.currWindow = 0;
  1501. for (var i = 0; i < this.cacheWindows.length; i++) {
  1502. if (this.cacheWindows[i].lower <= offset && offset <= this.cacheWindows[i].upper) {
  1503. this.currWindow = i;
  1504. break;
  1505. }
  1506. }
  1507. }
  1508. // draw rows from the cache using offset and limit
  1509. }, {
  1510. key: "drawFromCache",
  1511. value: function drawFromCache(offset, limit) {
  1512. var res = Utils.extend(true, {}, this.cacheRequestJSON);
  1513. var drawStart = offset - this.cacheWindows[this.currWindow].lower;
  1514. var drawEnd = drawStart + limit;
  1515. res.rows = res.rows.slice(drawStart, drawEnd);
  1516. return res;
  1517. }
  1518. /*
  1519. * determine if requested data is in cache (on paging) or if
  1520. * a new ajax request needs to be issued (sorting, searching, paging
  1521. * moving outside of cached data, page size change)
  1522. * initial version of this extension will entirely override base initServer
  1523. */
  1524. }, {
  1525. key: "initServer",
  1526. value: function initServer(silent, query, url) {
  1527. var _this = this;
  1528. if (!this.options.usePipeline) {
  1529. return _get(_getPrototypeOf(_class.prototype), "initServer", this).call(this, silent, query, url);
  1530. }
  1531. var useAjax = true;
  1532. var params = {};
  1533. if (this.options.queryParamsType === 'limit' && this.options.pagination && this.options.sidePagination === 'server') {
  1534. // same as parent initServer: params.offset
  1535. params.offset = this.options.pageSize === this.options.formatAllRows() ? 0 : this.options.pageSize * (this.options.pageNumber - 1);
  1536. params.limit = this.options.pageSize;
  1537. // if cacheWindows is empty, this is the initial request
  1538. if (!this.cacheWindows.length) {
  1539. useAjax = true;
  1540. params.drawOffset = params.offset;
  1541. // cache exists: determine if the page request is entirely within the current cached window
  1542. } else {
  1543. var w = this.cacheWindows[this.currWindow];
  1544. // case 1: reset cache but stay within current window (e.g. column sort)
  1545. // case 2: move outside of the current window (e.g. search or paging)
  1546. // since each cache window is aligned with the current page size
  1547. // checking if params.offset is outside the current window is sufficient.
  1548. // need to re-query for preceding or succeeding cache window
  1549. // also handle case
  1550. if (this.resetCache || params.offset < w.lower || params.offset > w.upper) {
  1551. useAjax = true;
  1552. this.setCurrWindow(params.offset);
  1553. // store the relative offset for drawing the page data afterwards
  1554. params.drawOffset = params.offset;
  1555. // now set params.offset to the lower bound of the new cache window
  1556. // the server will return that whole cache window
  1557. params.offset = this.cacheWindows[this.currWindow].lower;
  1558. // within current cache window
  1559. } else {
  1560. useAjax = false;
  1561. }
  1562. }
  1563. }
  1564. // force an ajax call - this is on search, sort or page size change
  1565. if (this.resetCache) {
  1566. useAjax = true;
  1567. this.resetCache = false;
  1568. }
  1569. if (useAjax) {
  1570. // in this scenario limit is used on the server to get the cache window
  1571. // and drawLimit is used to get the page data afterwards
  1572. params.drawLimit = params.limit;
  1573. params.limit = this.options.pipelineSize;
  1574. }
  1575. // cached results can be used
  1576. if (!useAjax) {
  1577. var res = this.drawFromCache(params.offset, params.limit);
  1578. this.load(res);
  1579. this.trigger('load-success', res);
  1580. this.trigger('cached-data-hit', res);
  1581. return;
  1582. }
  1583. if (!this.pipelineResponseHandler) {
  1584. this.pipelineResponseHandler = this.options.responseHandler;
  1585. this.options.responseHandler = function (_res, jqXHR) {
  1586. var res = Utils.calculateObjectValue(_this.options, _this.pipelineResponseHandler, [_res, jqXHR], _res);
  1587. // store entire request in cache
  1588. _this.cacheRequestJSON = Utils.extend(true, {}, res);
  1589. // this gets set in load() also but needs to be set before
  1590. // setting cacheWindows
  1591. _this.options.totalRows = res[_this.options.totalField];
  1592. // if this is a search, potentially less results will be returned
  1593. // so cache windows need to be rebuilt. Otherwise it
  1594. // will come out the same
  1595. _this.setCacheWindows();
  1596. // just load data for the page
  1597. res = _this.drawFromCache(params.drawOffset, params.drawLimit);
  1598. _this.trigger('cached-data-reset', res);
  1599. return res;
  1600. };
  1601. }
  1602. return _get(_getPrototypeOf(_class.prototype), "initServer", this).call(this, silent, _objectSpread2(_objectSpread2({}, query), params), url);
  1603. }
  1604. }, {
  1605. key: "destroy",
  1606. value: function destroy() {
  1607. var _get5;
  1608. this.options.responseHandler = this.pipelineResponseHandler;
  1609. this.pipelineResponseHandler = null;
  1610. for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
  1611. args[_key4] = arguments[_key4];
  1612. }
  1613. (_get5 = _get(_getPrototypeOf(_class.prototype), "destroy", this)).call.apply(_get5, [this].concat(args));
  1614. }
  1615. }]);
  1616. }($$4.BootstrapTable);
  1617. }));