bootstrap-table-pipeline.js 64 KB

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