bootstrap-table-sticky-header.js 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832
  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 ($$2) { 'use strict';
  6. function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
  7. var $__default = /*#__PURE__*/_interopDefaultLegacy($$2);
  8. function _classCallCheck(instance, Constructor) {
  9. if (!(instance instanceof Constructor)) {
  10. throw new TypeError("Cannot call a class as a function");
  11. }
  12. }
  13. function _defineProperties(target, props) {
  14. for (var i = 0; i < props.length; i++) {
  15. var descriptor = props[i];
  16. descriptor.enumerable = descriptor.enumerable || false;
  17. descriptor.configurable = true;
  18. if ("value" in descriptor) descriptor.writable = true;
  19. Object.defineProperty(target, descriptor.key, descriptor);
  20. }
  21. }
  22. function _createClass(Constructor, protoProps, staticProps) {
  23. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  24. if (staticProps) _defineProperties(Constructor, staticProps);
  25. Object.defineProperty(Constructor, "prototype", {
  26. writable: false
  27. });
  28. return Constructor;
  29. }
  30. function _inherits(subClass, superClass) {
  31. if (typeof superClass !== "function" && superClass !== null) {
  32. throw new TypeError("Super expression must either be null or a function");
  33. }
  34. subClass.prototype = Object.create(superClass && superClass.prototype, {
  35. constructor: {
  36. value: subClass,
  37. writable: true,
  38. configurable: true
  39. }
  40. });
  41. Object.defineProperty(subClass, "prototype", {
  42. writable: false
  43. });
  44. if (superClass) _setPrototypeOf(subClass, superClass);
  45. }
  46. function _getPrototypeOf(o) {
  47. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  48. return o.__proto__ || Object.getPrototypeOf(o);
  49. };
  50. return _getPrototypeOf(o);
  51. }
  52. function _setPrototypeOf(o, p) {
  53. _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  54. o.__proto__ = p;
  55. return o;
  56. };
  57. return _setPrototypeOf(o, p);
  58. }
  59. function _isNativeReflectConstruct() {
  60. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  61. if (Reflect.construct.sham) return false;
  62. if (typeof Proxy === "function") return true;
  63. try {
  64. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  65. return true;
  66. } catch (e) {
  67. return false;
  68. }
  69. }
  70. function _assertThisInitialized(self) {
  71. if (self === void 0) {
  72. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  73. }
  74. return self;
  75. }
  76. function _possibleConstructorReturn(self, call) {
  77. if (call && (typeof call === "object" || typeof call === "function")) {
  78. return call;
  79. } else if (call !== void 0) {
  80. throw new TypeError("Derived constructors may only return object or undefined");
  81. }
  82. return _assertThisInitialized(self);
  83. }
  84. function _createSuper(Derived) {
  85. var hasNativeReflectConstruct = _isNativeReflectConstruct();
  86. return function _createSuperInternal() {
  87. var Super = _getPrototypeOf(Derived),
  88. result;
  89. if (hasNativeReflectConstruct) {
  90. var NewTarget = _getPrototypeOf(this).constructor;
  91. result = Reflect.construct(Super, arguments, NewTarget);
  92. } else {
  93. result = Super.apply(this, arguments);
  94. }
  95. return _possibleConstructorReturn(this, result);
  96. };
  97. }
  98. function _superPropBase(object, property) {
  99. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  100. object = _getPrototypeOf(object);
  101. if (object === null) break;
  102. }
  103. return object;
  104. }
  105. function _get() {
  106. if (typeof Reflect !== "undefined" && Reflect.get) {
  107. _get = Reflect.get.bind();
  108. } else {
  109. _get = function _get(target, property, receiver) {
  110. var base = _superPropBase(target, property);
  111. if (!base) return;
  112. var desc = Object.getOwnPropertyDescriptor(base, property);
  113. if (desc.get) {
  114. return desc.get.call(arguments.length < 3 ? target : receiver);
  115. }
  116. return desc.value;
  117. };
  118. }
  119. return _get.apply(this, arguments);
  120. }
  121. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  122. var check = function (it) {
  123. return it && it.Math == Math && it;
  124. };
  125. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  126. var global$a =
  127. // eslint-disable-next-line es-x/no-global-this -- safe
  128. check(typeof globalThis == 'object' && globalThis) ||
  129. check(typeof window == 'object' && window) ||
  130. // eslint-disable-next-line no-restricted-globals -- safe
  131. check(typeof self == 'object' && self) ||
  132. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  133. // eslint-disable-next-line no-new-func -- fallback
  134. (function () { return this; })() || Function('return this')();
  135. var objectGetOwnPropertyDescriptor = {};
  136. var fails$b = function (exec) {
  137. try {
  138. return !!exec();
  139. } catch (error) {
  140. return true;
  141. }
  142. };
  143. var fails$a = fails$b;
  144. // Detect IE8's incomplete defineProperty implementation
  145. var descriptors = !fails$a(function () {
  146. // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
  147. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
  148. });
  149. var fails$9 = fails$b;
  150. var functionBindNative = !fails$9(function () {
  151. // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
  152. var test = (function () { /* empty */ }).bind();
  153. // eslint-disable-next-line no-prototype-builtins -- safe
  154. return typeof test != 'function' || test.hasOwnProperty('prototype');
  155. });
  156. var NATIVE_BIND$2 = functionBindNative;
  157. var call$4 = Function.prototype.call;
  158. var functionCall = NATIVE_BIND$2 ? call$4.bind(call$4) : function () {
  159. return call$4.apply(call$4, arguments);
  160. };
  161. var objectPropertyIsEnumerable = {};
  162. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  163. // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
  164. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  165. // Nashorn ~ JDK8 bug
  166. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  167. // `Object.prototype.propertyIsEnumerable` method implementation
  168. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  169. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  170. var descriptor = getOwnPropertyDescriptor$1(this, V);
  171. return !!descriptor && descriptor.enumerable;
  172. } : $propertyIsEnumerable;
  173. var createPropertyDescriptor$3 = function (bitmap, value) {
  174. return {
  175. enumerable: !(bitmap & 1),
  176. configurable: !(bitmap & 2),
  177. writable: !(bitmap & 4),
  178. value: value
  179. };
  180. };
  181. var NATIVE_BIND$1 = functionBindNative;
  182. var FunctionPrototype$1 = Function.prototype;
  183. var bind$2 = FunctionPrototype$1.bind;
  184. var call$3 = FunctionPrototype$1.call;
  185. var uncurryThis$c = NATIVE_BIND$1 && bind$2.bind(call$3, call$3);
  186. var functionUncurryThis = NATIVE_BIND$1 ? function (fn) {
  187. return fn && uncurryThis$c(fn);
  188. } : function (fn) {
  189. return fn && function () {
  190. return call$3.apply(fn, arguments);
  191. };
  192. };
  193. var uncurryThis$b = functionUncurryThis;
  194. var toString$2 = uncurryThis$b({}.toString);
  195. var stringSlice = uncurryThis$b(''.slice);
  196. var classofRaw$1 = function (it) {
  197. return stringSlice(toString$2(it), 8, -1);
  198. };
  199. var uncurryThis$a = functionUncurryThis;
  200. var fails$8 = fails$b;
  201. var classof$4 = classofRaw$1;
  202. var $Object$3 = Object;
  203. var split = uncurryThis$a(''.split);
  204. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  205. var indexedObject = fails$8(function () {
  206. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  207. // eslint-disable-next-line no-prototype-builtins -- safe
  208. return !$Object$3('z').propertyIsEnumerable(0);
  209. }) ? function (it) {
  210. return classof$4(it) == 'String' ? split(it, '') : $Object$3(it);
  211. } : $Object$3;
  212. var $TypeError$6 = TypeError;
  213. // `RequireObjectCoercible` abstract operation
  214. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  215. var requireObjectCoercible$2 = function (it) {
  216. if (it == undefined) throw $TypeError$6("Can't call method on " + it);
  217. return it;
  218. };
  219. // toObject with fallback for non-array-like ES3 strings
  220. var IndexedObject$1 = indexedObject;
  221. var requireObjectCoercible$1 = requireObjectCoercible$2;
  222. var toIndexedObject$4 = function (it) {
  223. return IndexedObject$1(requireObjectCoercible$1(it));
  224. };
  225. // `IsCallable` abstract operation
  226. // https://tc39.es/ecma262/#sec-iscallable
  227. var isCallable$c = function (argument) {
  228. return typeof argument == 'function';
  229. };
  230. var isCallable$b = isCallable$c;
  231. var isObject$7 = function (it) {
  232. return typeof it == 'object' ? it !== null : isCallable$b(it);
  233. };
  234. var global$9 = global$a;
  235. var isCallable$a = isCallable$c;
  236. var aFunction = function (argument) {
  237. return isCallable$a(argument) ? argument : undefined;
  238. };
  239. var getBuiltIn$5 = function (namespace, method) {
  240. return arguments.length < 2 ? aFunction(global$9[namespace]) : global$9[namespace] && global$9[namespace][method];
  241. };
  242. var uncurryThis$9 = functionUncurryThis;
  243. var objectIsPrototypeOf = uncurryThis$9({}.isPrototypeOf);
  244. var getBuiltIn$4 = getBuiltIn$5;
  245. var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';
  246. var global$8 = global$a;
  247. var userAgent = engineUserAgent;
  248. var process = global$8.process;
  249. var Deno = global$8.Deno;
  250. var versions = process && process.versions || Deno && Deno.version;
  251. var v8 = versions && versions.v8;
  252. var match, version;
  253. if (v8) {
  254. match = v8.split('.');
  255. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  256. // but their correct versions are not interesting for us
  257. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  258. }
  259. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  260. // so check `userAgent` even if `.v8` exists, but 0
  261. if (!version && userAgent) {
  262. match = userAgent.match(/Edge\/(\d+)/);
  263. if (!match || match[1] >= 74) {
  264. match = userAgent.match(/Chrome\/(\d+)/);
  265. if (match) version = +match[1];
  266. }
  267. }
  268. var engineV8Version = version;
  269. /* eslint-disable es-x/no-symbol -- required for testing */
  270. var V8_VERSION$2 = engineV8Version;
  271. var fails$7 = fails$b;
  272. // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
  273. var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$7(function () {
  274. var symbol = Symbol();
  275. // Chrome 38 Symbol has incorrect toString conversion
  276. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  277. return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
  278. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  279. !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
  280. });
  281. /* eslint-disable es-x/no-symbol -- required for testing */
  282. var NATIVE_SYMBOL$1 = nativeSymbol;
  283. var useSymbolAsUid = NATIVE_SYMBOL$1
  284. && !Symbol.sham
  285. && typeof Symbol.iterator == 'symbol';
  286. var getBuiltIn$3 = getBuiltIn$5;
  287. var isCallable$9 = isCallable$c;
  288. var isPrototypeOf = objectIsPrototypeOf;
  289. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  290. var $Object$2 = Object;
  291. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  292. return typeof it == 'symbol';
  293. } : function (it) {
  294. var $Symbol = getBuiltIn$3('Symbol');
  295. return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
  296. };
  297. var $String$1 = String;
  298. var tryToString$1 = function (argument) {
  299. try {
  300. return $String$1(argument);
  301. } catch (error) {
  302. return 'Object';
  303. }
  304. };
  305. var isCallable$8 = isCallable$c;
  306. var tryToString = tryToString$1;
  307. var $TypeError$5 = TypeError;
  308. // `Assert: IsCallable(argument) is true`
  309. var aCallable$2 = function (argument) {
  310. if (isCallable$8(argument)) return argument;
  311. throw $TypeError$5(tryToString(argument) + ' is not a function');
  312. };
  313. var aCallable$1 = aCallable$2;
  314. // `GetMethod` abstract operation
  315. // https://tc39.es/ecma262/#sec-getmethod
  316. var getMethod$1 = function (V, P) {
  317. var func = V[P];
  318. return func == null ? undefined : aCallable$1(func);
  319. };
  320. var call$2 = functionCall;
  321. var isCallable$7 = isCallable$c;
  322. var isObject$6 = isObject$7;
  323. var $TypeError$4 = TypeError;
  324. // `OrdinaryToPrimitive` abstract operation
  325. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  326. var ordinaryToPrimitive$1 = function (input, pref) {
  327. var fn, val;
  328. if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val;
  329. if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val;
  330. if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val;
  331. throw $TypeError$4("Can't convert object to primitive value");
  332. };
  333. var shared$3 = {exports: {}};
  334. var global$7 = global$a;
  335. // eslint-disable-next-line es-x/no-object-defineproperty -- safe
  336. var defineProperty$2 = Object.defineProperty;
  337. var defineGlobalProperty$3 = function (key, value) {
  338. try {
  339. defineProperty$2(global$7, key, { value: value, configurable: true, writable: true });
  340. } catch (error) {
  341. global$7[key] = value;
  342. } return value;
  343. };
  344. var global$6 = global$a;
  345. var defineGlobalProperty$2 = defineGlobalProperty$3;
  346. var SHARED = '__core-js_shared__';
  347. var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {});
  348. var sharedStore = store$3;
  349. var store$2 = sharedStore;
  350. (shared$3.exports = function (key, value) {
  351. return store$2[key] || (store$2[key] = value !== undefined ? value : {});
  352. })('versions', []).push({
  353. version: '3.22.8',
  354. mode: 'global',
  355. copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
  356. license: 'https://github.com/zloirock/core-js/blob/v3.22.8/LICENSE',
  357. source: 'https://github.com/zloirock/core-js'
  358. });
  359. var requireObjectCoercible = requireObjectCoercible$2;
  360. var $Object$1 = Object;
  361. // `ToObject` abstract operation
  362. // https://tc39.es/ecma262/#sec-toobject
  363. var toObject$3 = function (argument) {
  364. return $Object$1(requireObjectCoercible(argument));
  365. };
  366. var uncurryThis$8 = functionUncurryThis;
  367. var toObject$2 = toObject$3;
  368. var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
  369. // `HasOwnProperty` abstract operation
  370. // https://tc39.es/ecma262/#sec-hasownproperty
  371. // eslint-disable-next-line es-x/no-object-hasown -- safe
  372. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  373. return hasOwnProperty(toObject$2(it), key);
  374. };
  375. var uncurryThis$7 = functionUncurryThis;
  376. var id = 0;
  377. var postfix = Math.random();
  378. var toString$1 = uncurryThis$7(1.0.toString);
  379. var uid$2 = function (key) {
  380. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$1(++id + postfix, 36);
  381. };
  382. var global$5 = global$a;
  383. var shared$2 = shared$3.exports;
  384. var hasOwn$6 = hasOwnProperty_1;
  385. var uid$1 = uid$2;
  386. var NATIVE_SYMBOL = nativeSymbol;
  387. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  388. var WellKnownSymbolsStore = shared$2('wks');
  389. var Symbol$1 = global$5.Symbol;
  390. var symbolFor = Symbol$1 && Symbol$1['for'];
  391. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
  392. var wellKnownSymbol$7 = function (name) {
  393. if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
  394. var description = 'Symbol.' + name;
  395. if (NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)) {
  396. WellKnownSymbolsStore[name] = Symbol$1[name];
  397. } else if (USE_SYMBOL_AS_UID && symbolFor) {
  398. WellKnownSymbolsStore[name] = symbolFor(description);
  399. } else {
  400. WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
  401. }
  402. } return WellKnownSymbolsStore[name];
  403. };
  404. var call$1 = functionCall;
  405. var isObject$5 = isObject$7;
  406. var isSymbol$1 = isSymbol$2;
  407. var getMethod = getMethod$1;
  408. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  409. var wellKnownSymbol$6 = wellKnownSymbol$7;
  410. var $TypeError$3 = TypeError;
  411. var TO_PRIMITIVE = wellKnownSymbol$6('toPrimitive');
  412. // `ToPrimitive` abstract operation
  413. // https://tc39.es/ecma262/#sec-toprimitive
  414. var toPrimitive$1 = function (input, pref) {
  415. if (!isObject$5(input) || isSymbol$1(input)) return input;
  416. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  417. var result;
  418. if (exoticToPrim) {
  419. if (pref === undefined) pref = 'default';
  420. result = call$1(exoticToPrim, input, pref);
  421. if (!isObject$5(result) || isSymbol$1(result)) return result;
  422. throw $TypeError$3("Can't convert object to primitive value");
  423. }
  424. if (pref === undefined) pref = 'number';
  425. return ordinaryToPrimitive(input, pref);
  426. };
  427. var toPrimitive = toPrimitive$1;
  428. var isSymbol = isSymbol$2;
  429. // `ToPropertyKey` abstract operation
  430. // https://tc39.es/ecma262/#sec-topropertykey
  431. var toPropertyKey$3 = function (argument) {
  432. var key = toPrimitive(argument, 'string');
  433. return isSymbol(key) ? key : key + '';
  434. };
  435. var global$4 = global$a;
  436. var isObject$4 = isObject$7;
  437. var document$1 = global$4.document;
  438. // typeof document.createElement is 'object' in old IE
  439. var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
  440. var documentCreateElement$1 = function (it) {
  441. return EXISTS$1 ? document$1.createElement(it) : {};
  442. };
  443. var DESCRIPTORS$7 = descriptors;
  444. var fails$6 = fails$b;
  445. var createElement = documentCreateElement$1;
  446. // Thanks to IE8 for its funny defineProperty
  447. var ie8DomDefine = !DESCRIPTORS$7 && !fails$6(function () {
  448. // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
  449. return Object.defineProperty(createElement('div'), 'a', {
  450. get: function () { return 7; }
  451. }).a != 7;
  452. });
  453. var DESCRIPTORS$6 = descriptors;
  454. var call = functionCall;
  455. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  456. var createPropertyDescriptor$2 = createPropertyDescriptor$3;
  457. var toIndexedObject$3 = toIndexedObject$4;
  458. var toPropertyKey$2 = toPropertyKey$3;
  459. var hasOwn$5 = hasOwnProperty_1;
  460. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  461. // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
  462. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  463. // `Object.getOwnPropertyDescriptor` method
  464. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  465. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  466. O = toIndexedObject$3(O);
  467. P = toPropertyKey$2(P);
  468. if (IE8_DOM_DEFINE$1) try {
  469. return $getOwnPropertyDescriptor$1(O, P);
  470. } catch (error) { /* empty */ }
  471. if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]);
  472. };
  473. var objectDefineProperty = {};
  474. var DESCRIPTORS$5 = descriptors;
  475. var fails$5 = fails$b;
  476. // V8 ~ Chrome 36-
  477. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  478. var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$5(function () {
  479. // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
  480. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  481. value: 42,
  482. writable: false
  483. }).prototype != 42;
  484. });
  485. var isObject$3 = isObject$7;
  486. var $String = String;
  487. var $TypeError$2 = TypeError;
  488. // `Assert: Type(argument) is Object`
  489. var anObject$4 = function (argument) {
  490. if (isObject$3(argument)) return argument;
  491. throw $TypeError$2($String(argument) + ' is not an object');
  492. };
  493. var DESCRIPTORS$4 = descriptors;
  494. var IE8_DOM_DEFINE = ie8DomDefine;
  495. var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
  496. var anObject$3 = anObject$4;
  497. var toPropertyKey$1 = toPropertyKey$3;
  498. var $TypeError$1 = TypeError;
  499. // eslint-disable-next-line es-x/no-object-defineproperty -- safe
  500. var $defineProperty = Object.defineProperty;
  501. // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
  502. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  503. var ENUMERABLE = 'enumerable';
  504. var CONFIGURABLE$1 = 'configurable';
  505. var WRITABLE = 'writable';
  506. // `Object.defineProperty` method
  507. // https://tc39.es/ecma262/#sec-object.defineproperty
  508. objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
  509. anObject$3(O);
  510. P = toPropertyKey$1(P);
  511. anObject$3(Attributes);
  512. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  513. var current = $getOwnPropertyDescriptor(O, P);
  514. if (current && current[WRITABLE]) {
  515. O[P] = Attributes.value;
  516. Attributes = {
  517. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  518. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  519. writable: false
  520. };
  521. }
  522. } return $defineProperty(O, P, Attributes);
  523. } : $defineProperty : function defineProperty(O, P, Attributes) {
  524. anObject$3(O);
  525. P = toPropertyKey$1(P);
  526. anObject$3(Attributes);
  527. if (IE8_DOM_DEFINE) try {
  528. return $defineProperty(O, P, Attributes);
  529. } catch (error) { /* empty */ }
  530. if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
  531. if ('value' in Attributes) O[P] = Attributes.value;
  532. return O;
  533. };
  534. var DESCRIPTORS$3 = descriptors;
  535. var definePropertyModule$3 = objectDefineProperty;
  536. var createPropertyDescriptor$1 = createPropertyDescriptor$3;
  537. var createNonEnumerableProperty$3 = DESCRIPTORS$3 ? function (object, key, value) {
  538. return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
  539. } : function (object, key, value) {
  540. object[key] = value;
  541. return object;
  542. };
  543. var makeBuiltIn$2 = {exports: {}};
  544. var DESCRIPTORS$2 = descriptors;
  545. var hasOwn$4 = hasOwnProperty_1;
  546. var FunctionPrototype = Function.prototype;
  547. // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
  548. var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
  549. var EXISTS = hasOwn$4(FunctionPrototype, 'name');
  550. // additional protection from minified / mangled / dropped function names
  551. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  552. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
  553. var functionName = {
  554. EXISTS: EXISTS,
  555. PROPER: PROPER,
  556. CONFIGURABLE: CONFIGURABLE
  557. };
  558. var uncurryThis$6 = functionUncurryThis;
  559. var isCallable$6 = isCallable$c;
  560. var store$1 = sharedStore;
  561. var functionToString = uncurryThis$6(Function.toString);
  562. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  563. if (!isCallable$6(store$1.inspectSource)) {
  564. store$1.inspectSource = function (it) {
  565. return functionToString(it);
  566. };
  567. }
  568. var inspectSource$3 = store$1.inspectSource;
  569. var global$3 = global$a;
  570. var isCallable$5 = isCallable$c;
  571. var inspectSource$2 = inspectSource$3;
  572. var WeakMap$1 = global$3.WeakMap;
  573. var nativeWeakMap = isCallable$5(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1));
  574. var shared$1 = shared$3.exports;
  575. var uid = uid$2;
  576. var keys = shared$1('keys');
  577. var sharedKey$2 = function (key) {
  578. return keys[key] || (keys[key] = uid(key));
  579. };
  580. var hiddenKeys$4 = {};
  581. var NATIVE_WEAK_MAP = nativeWeakMap;
  582. var global$2 = global$a;
  583. var uncurryThis$5 = functionUncurryThis;
  584. var isObject$2 = isObject$7;
  585. var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
  586. var hasOwn$3 = hasOwnProperty_1;
  587. var shared = sharedStore;
  588. var sharedKey$1 = sharedKey$2;
  589. var hiddenKeys$3 = hiddenKeys$4;
  590. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  591. var TypeError$1 = global$2.TypeError;
  592. var WeakMap = global$2.WeakMap;
  593. var set, get, has;
  594. var enforce = function (it) {
  595. return has(it) ? get(it) : set(it, {});
  596. };
  597. var getterFor = function (TYPE) {
  598. return function (it) {
  599. var state;
  600. if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
  601. throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  602. } return state;
  603. };
  604. };
  605. if (NATIVE_WEAK_MAP || shared.state) {
  606. var store = shared.state || (shared.state = new WeakMap());
  607. var wmget = uncurryThis$5(store.get);
  608. var wmhas = uncurryThis$5(store.has);
  609. var wmset = uncurryThis$5(store.set);
  610. set = function (it, metadata) {
  611. if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  612. metadata.facade = it;
  613. wmset(store, it, metadata);
  614. return metadata;
  615. };
  616. get = function (it) {
  617. return wmget(store, it) || {};
  618. };
  619. has = function (it) {
  620. return wmhas(store, it);
  621. };
  622. } else {
  623. var STATE = sharedKey$1('state');
  624. hiddenKeys$3[STATE] = true;
  625. set = function (it, metadata) {
  626. if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  627. metadata.facade = it;
  628. createNonEnumerableProperty$2(it, STATE, metadata);
  629. return metadata;
  630. };
  631. get = function (it) {
  632. return hasOwn$3(it, STATE) ? it[STATE] : {};
  633. };
  634. has = function (it) {
  635. return hasOwn$3(it, STATE);
  636. };
  637. }
  638. var internalState = {
  639. set: set,
  640. get: get,
  641. has: has,
  642. enforce: enforce,
  643. getterFor: getterFor
  644. };
  645. var fails$4 = fails$b;
  646. var isCallable$4 = isCallable$c;
  647. var hasOwn$2 = hasOwnProperty_1;
  648. var DESCRIPTORS$1 = descriptors;
  649. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  650. var inspectSource$1 = inspectSource$3;
  651. var InternalStateModule = internalState;
  652. var enforceInternalState = InternalStateModule.enforce;
  653. var getInternalState = InternalStateModule.get;
  654. // eslint-disable-next-line es-x/no-object-defineproperty -- safe
  655. var defineProperty$1 = Object.defineProperty;
  656. var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$4(function () {
  657. return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  658. });
  659. var TEMPLATE = String(String).split('String');
  660. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  661. if (String(name).slice(0, 7) === 'Symbol(') {
  662. name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
  663. }
  664. if (options && options.getter) name = 'get ' + name;
  665. if (options && options.setter) name = 'set ' + name;
  666. if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  667. defineProperty$1(value, 'name', { value: name, configurable: true });
  668. }
  669. if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
  670. defineProperty$1(value, 'length', { value: options.arity });
  671. }
  672. try {
  673. if (options && hasOwn$2(options, 'constructor') && options.constructor) {
  674. if (DESCRIPTORS$1) defineProperty$1(value, 'prototype', { writable: false });
  675. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  676. } else if (value.prototype) value.prototype = undefined;
  677. } catch (error) { /* empty */ }
  678. var state = enforceInternalState(value);
  679. if (!hasOwn$2(state, 'source')) {
  680. state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
  681. } return value;
  682. };
  683. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  684. // eslint-disable-next-line no-extend-native -- required
  685. Function.prototype.toString = makeBuiltIn$1(function toString() {
  686. return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
  687. }, 'toString');
  688. var isCallable$3 = isCallable$c;
  689. var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
  690. var makeBuiltIn = makeBuiltIn$2.exports;
  691. var defineGlobalProperty$1 = defineGlobalProperty$3;
  692. var defineBuiltIn$2 = function (O, key, value, options) {
  693. if (!options) options = {};
  694. var simple = options.enumerable;
  695. var name = options.name !== undefined ? options.name : key;
  696. if (isCallable$3(value)) makeBuiltIn(value, name, options);
  697. if (options.global) {
  698. if (simple) O[key] = value;
  699. else defineGlobalProperty$1(key, value);
  700. } else {
  701. if (!options.unsafe) delete O[key];
  702. else if (O[key]) simple = true;
  703. if (simple) O[key] = value;
  704. else createNonEnumerableProperty$1(O, key, value);
  705. } return O;
  706. };
  707. var objectGetOwnPropertyNames = {};
  708. var ceil = Math.ceil;
  709. var floor = Math.floor;
  710. // `Math.trunc` method
  711. // https://tc39.es/ecma262/#sec-math.trunc
  712. // eslint-disable-next-line es-x/no-math-trunc -- safe
  713. var mathTrunc = Math.trunc || function trunc(x) {
  714. var n = +x;
  715. return (n > 0 ? floor : ceil)(n);
  716. };
  717. var trunc = mathTrunc;
  718. // `ToIntegerOrInfinity` abstract operation
  719. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  720. var toIntegerOrInfinity$2 = function (argument) {
  721. var number = +argument;
  722. // eslint-disable-next-line no-self-compare -- NaN check
  723. return number !== number || number === 0 ? 0 : trunc(number);
  724. };
  725. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  726. var max = Math.max;
  727. var min$1 = Math.min;
  728. // Helper for a popular repeating case of the spec:
  729. // Let integer be ? ToInteger(index).
  730. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  731. var toAbsoluteIndex$1 = function (index, length) {
  732. var integer = toIntegerOrInfinity$1(index);
  733. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  734. };
  735. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  736. var min = Math.min;
  737. // `ToLength` abstract operation
  738. // https://tc39.es/ecma262/#sec-tolength
  739. var toLength$1 = function (argument) {
  740. return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  741. };
  742. var toLength = toLength$1;
  743. // `LengthOfArrayLike` abstract operation
  744. // https://tc39.es/ecma262/#sec-lengthofarraylike
  745. var lengthOfArrayLike$3 = function (obj) {
  746. return toLength(obj.length);
  747. };
  748. var toIndexedObject$2 = toIndexedObject$4;
  749. var toAbsoluteIndex = toAbsoluteIndex$1;
  750. var lengthOfArrayLike$2 = lengthOfArrayLike$3;
  751. // `Array.prototype.{ indexOf, includes }` methods implementation
  752. var createMethod$1 = function (IS_INCLUDES) {
  753. return function ($this, el, fromIndex) {
  754. var O = toIndexedObject$2($this);
  755. var length = lengthOfArrayLike$2(O);
  756. var index = toAbsoluteIndex(fromIndex, length);
  757. var value;
  758. // Array#includes uses SameValueZero equality algorithm
  759. // eslint-disable-next-line no-self-compare -- NaN check
  760. if (IS_INCLUDES && el != el) while (length > index) {
  761. value = O[index++];
  762. // eslint-disable-next-line no-self-compare -- NaN check
  763. if (value != value) return true;
  764. // Array#indexOf ignores holes, Array#includes - not
  765. } else for (;length > index; index++) {
  766. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  767. } return !IS_INCLUDES && -1;
  768. };
  769. };
  770. var arrayIncludes = {
  771. // `Array.prototype.includes` method
  772. // https://tc39.es/ecma262/#sec-array.prototype.includes
  773. includes: createMethod$1(true),
  774. // `Array.prototype.indexOf` method
  775. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  776. indexOf: createMethod$1(false)
  777. };
  778. var uncurryThis$4 = functionUncurryThis;
  779. var hasOwn$1 = hasOwnProperty_1;
  780. var toIndexedObject$1 = toIndexedObject$4;
  781. var indexOf = arrayIncludes.indexOf;
  782. var hiddenKeys$2 = hiddenKeys$4;
  783. var push$1 = uncurryThis$4([].push);
  784. var objectKeysInternal = function (object, names) {
  785. var O = toIndexedObject$1(object);
  786. var i = 0;
  787. var result = [];
  788. var key;
  789. for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(result, key);
  790. // Don't enum bug & hidden keys
  791. while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
  792. ~indexOf(result, key) || push$1(result, key);
  793. }
  794. return result;
  795. };
  796. // IE8- don't enum bug keys
  797. var enumBugKeys$3 = [
  798. 'constructor',
  799. 'hasOwnProperty',
  800. 'isPrototypeOf',
  801. 'propertyIsEnumerable',
  802. 'toLocaleString',
  803. 'toString',
  804. 'valueOf'
  805. ];
  806. var internalObjectKeys$1 = objectKeysInternal;
  807. var enumBugKeys$2 = enumBugKeys$3;
  808. var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
  809. // `Object.getOwnPropertyNames` method
  810. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  811. // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
  812. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  813. return internalObjectKeys$1(O, hiddenKeys$1);
  814. };
  815. var objectGetOwnPropertySymbols = {};
  816. // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
  817. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  818. var getBuiltIn$2 = getBuiltIn$5;
  819. var uncurryThis$3 = functionUncurryThis;
  820. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  821. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  822. var anObject$2 = anObject$4;
  823. var concat = uncurryThis$3([].concat);
  824. // all object keys, includes non-enumerable and symbols
  825. var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
  826. var keys = getOwnPropertyNamesModule.f(anObject$2(it));
  827. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  828. return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
  829. };
  830. var hasOwn = hasOwnProperty_1;
  831. var ownKeys = ownKeys$1;
  832. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  833. var definePropertyModule$2 = objectDefineProperty;
  834. var copyConstructorProperties$1 = function (target, source, exceptions) {
  835. var keys = ownKeys(source);
  836. var defineProperty = definePropertyModule$2.f;
  837. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  838. for (var i = 0; i < keys.length; i++) {
  839. var key = keys[i];
  840. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  841. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  842. }
  843. }
  844. };
  845. var fails$3 = fails$b;
  846. var isCallable$2 = isCallable$c;
  847. var replacement = /#|\.prototype\./;
  848. var isForced$1 = function (feature, detection) {
  849. var value = data[normalize(feature)];
  850. return value == POLYFILL ? true
  851. : value == NATIVE ? false
  852. : isCallable$2(detection) ? fails$3(detection)
  853. : !!detection;
  854. };
  855. var normalize = isForced$1.normalize = function (string) {
  856. return String(string).replace(replacement, '.').toLowerCase();
  857. };
  858. var data = isForced$1.data = {};
  859. var NATIVE = isForced$1.NATIVE = 'N';
  860. var POLYFILL = isForced$1.POLYFILL = 'P';
  861. var isForced_1 = isForced$1;
  862. var global$1 = global$a;
  863. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  864. var createNonEnumerableProperty = createNonEnumerableProperty$3;
  865. var defineBuiltIn$1 = defineBuiltIn$2;
  866. var defineGlobalProperty = defineGlobalProperty$3;
  867. var copyConstructorProperties = copyConstructorProperties$1;
  868. var isForced = isForced_1;
  869. /*
  870. options.target - name of the target object
  871. options.global - target is the global object
  872. options.stat - export as static methods of target
  873. options.proto - export as prototype methods of target
  874. options.real - real prototype method for the `pure` version
  875. options.forced - export even if the native feature is available
  876. options.bind - bind methods to the target, required for the `pure` version
  877. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  878. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  879. options.sham - add a flag to not completely full polyfills
  880. options.enumerable - export as enumerable property
  881. options.dontCallGetSet - prevent calling a getter on target
  882. options.name - the .name of the function if it does not match the key
  883. */
  884. var _export = function (options, source) {
  885. var TARGET = options.target;
  886. var GLOBAL = options.global;
  887. var STATIC = options.stat;
  888. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  889. if (GLOBAL) {
  890. target = global$1;
  891. } else if (STATIC) {
  892. target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
  893. } else {
  894. target = (global$1[TARGET] || {}).prototype;
  895. }
  896. if (target) for (key in source) {
  897. sourceProperty = source[key];
  898. if (options.dontCallGetSet) {
  899. descriptor = getOwnPropertyDescriptor(target, key);
  900. targetProperty = descriptor && descriptor.value;
  901. } else targetProperty = target[key];
  902. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  903. // contained in target
  904. if (!FORCED && targetProperty !== undefined) {
  905. if (typeof sourceProperty == typeof targetProperty) continue;
  906. copyConstructorProperties(sourceProperty, targetProperty);
  907. }
  908. // add a flag to not completely full polyfills
  909. if (options.sham || (targetProperty && targetProperty.sham)) {
  910. createNonEnumerableProperty(sourceProperty, 'sham', true);
  911. }
  912. defineBuiltIn$1(target, key, sourceProperty, options);
  913. }
  914. };
  915. var classof$3 = classofRaw$1;
  916. // `IsArray` abstract operation
  917. // https://tc39.es/ecma262/#sec-isarray
  918. // eslint-disable-next-line es-x/no-array-isarray -- safe
  919. var isArray$2 = Array.isArray || function isArray(argument) {
  920. return classof$3(argument) == 'Array';
  921. };
  922. var $TypeError = TypeError;
  923. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  924. var doesNotExceedSafeInteger$1 = function (it) {
  925. if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
  926. return it;
  927. };
  928. var toPropertyKey = toPropertyKey$3;
  929. var definePropertyModule$1 = objectDefineProperty;
  930. var createPropertyDescriptor = createPropertyDescriptor$3;
  931. var createProperty$1 = function (object, key, value) {
  932. var propertyKey = toPropertyKey(key);
  933. if (propertyKey in object) definePropertyModule$1.f(object, propertyKey, createPropertyDescriptor(0, value));
  934. else object[propertyKey] = value;
  935. };
  936. var wellKnownSymbol$5 = wellKnownSymbol$7;
  937. var TO_STRING_TAG$1 = wellKnownSymbol$5('toStringTag');
  938. var test = {};
  939. test[TO_STRING_TAG$1] = 'z';
  940. var toStringTagSupport = String(test) === '[object z]';
  941. var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
  942. var isCallable$1 = isCallable$c;
  943. var classofRaw = classofRaw$1;
  944. var wellKnownSymbol$4 = wellKnownSymbol$7;
  945. var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
  946. var $Object = Object;
  947. // ES3 wrong here
  948. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
  949. // fallback for IE11 Script Access Denied error
  950. var tryGet = function (it, key) {
  951. try {
  952. return it[key];
  953. } catch (error) { /* empty */ }
  954. };
  955. // getting tag from ES6+ `Object.prototype.toString`
  956. var classof$2 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
  957. var O, tag, result;
  958. return it === undefined ? 'Undefined' : it === null ? 'Null'
  959. // @@toStringTag case
  960. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  961. // builtinTag case
  962. : CORRECT_ARGUMENTS ? classofRaw(O)
  963. // ES3 arguments fallback
  964. : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
  965. };
  966. var uncurryThis$2 = functionUncurryThis;
  967. var fails$2 = fails$b;
  968. var isCallable = isCallable$c;
  969. var classof$1 = classof$2;
  970. var getBuiltIn$1 = getBuiltIn$5;
  971. var inspectSource = inspectSource$3;
  972. var noop = function () { /* empty */ };
  973. var empty = [];
  974. var construct = getBuiltIn$1('Reflect', 'construct');
  975. var constructorRegExp = /^\s*(?:class|function)\b/;
  976. var exec = uncurryThis$2(constructorRegExp.exec);
  977. var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
  978. var isConstructorModern = function isConstructor(argument) {
  979. if (!isCallable(argument)) return false;
  980. try {
  981. construct(noop, empty, argument);
  982. return true;
  983. } catch (error) {
  984. return false;
  985. }
  986. };
  987. var isConstructorLegacy = function isConstructor(argument) {
  988. if (!isCallable(argument)) return false;
  989. switch (classof$1(argument)) {
  990. case 'AsyncFunction':
  991. case 'GeneratorFunction':
  992. case 'AsyncGeneratorFunction': return false;
  993. }
  994. try {
  995. // we can't check .prototype since constructors produced by .bind haven't it
  996. // `Function#toString` throws on some built-it function in some legacy engines
  997. // (for example, `DOMQuad` and similar in FF41-)
  998. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  999. } catch (error) {
  1000. return true;
  1001. }
  1002. };
  1003. isConstructorLegacy.sham = true;
  1004. // `IsConstructor` abstract operation
  1005. // https://tc39.es/ecma262/#sec-isconstructor
  1006. var isConstructor$1 = !construct || fails$2(function () {
  1007. var called;
  1008. return isConstructorModern(isConstructorModern.call)
  1009. || !isConstructorModern(Object)
  1010. || !isConstructorModern(function () { called = true; })
  1011. || called;
  1012. }) ? isConstructorLegacy : isConstructorModern;
  1013. var isArray$1 = isArray$2;
  1014. var isConstructor = isConstructor$1;
  1015. var isObject$1 = isObject$7;
  1016. var wellKnownSymbol$3 = wellKnownSymbol$7;
  1017. var SPECIES$1 = wellKnownSymbol$3('species');
  1018. var $Array = Array;
  1019. // a part of `ArraySpeciesCreate` abstract operation
  1020. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1021. var arraySpeciesConstructor$1 = function (originalArray) {
  1022. var C;
  1023. if (isArray$1(originalArray)) {
  1024. C = originalArray.constructor;
  1025. // cross-realm fallback
  1026. if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
  1027. else if (isObject$1(C)) {
  1028. C = C[SPECIES$1];
  1029. if (C === null) C = undefined;
  1030. }
  1031. } return C === undefined ? $Array : C;
  1032. };
  1033. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1034. // `ArraySpeciesCreate` abstract operation
  1035. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1036. var arraySpeciesCreate$2 = function (originalArray, length) {
  1037. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1038. };
  1039. var fails$1 = fails$b;
  1040. var wellKnownSymbol$2 = wellKnownSymbol$7;
  1041. var V8_VERSION$1 = engineV8Version;
  1042. var SPECIES = wellKnownSymbol$2('species');
  1043. var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
  1044. // We can't use this feature detection in V8 since it causes
  1045. // deoptimization and serious performance degradation
  1046. // https://github.com/zloirock/core-js/issues/677
  1047. return V8_VERSION$1 >= 51 || !fails$1(function () {
  1048. var array = [];
  1049. var constructor = array.constructor = {};
  1050. constructor[SPECIES] = function () {
  1051. return { foo: 1 };
  1052. };
  1053. return array[METHOD_NAME](Boolean).foo !== 1;
  1054. });
  1055. };
  1056. var $$1 = _export;
  1057. var fails = fails$b;
  1058. var isArray = isArray$2;
  1059. var isObject = isObject$7;
  1060. var toObject$1 = toObject$3;
  1061. var lengthOfArrayLike$1 = lengthOfArrayLike$3;
  1062. var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
  1063. var createProperty = createProperty$1;
  1064. var arraySpeciesCreate$1 = arraySpeciesCreate$2;
  1065. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
  1066. var wellKnownSymbol$1 = wellKnownSymbol$7;
  1067. var V8_VERSION = engineV8Version;
  1068. var IS_CONCAT_SPREADABLE = wellKnownSymbol$1('isConcatSpreadable');
  1069. // We can't use this feature detection in V8 since it causes
  1070. // deoptimization and serious performance degradation
  1071. // https://github.com/zloirock/core-js/issues/679
  1072. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
  1073. var array = [];
  1074. array[IS_CONCAT_SPREADABLE] = false;
  1075. return array.concat()[0] !== array;
  1076. });
  1077. var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
  1078. var isConcatSpreadable = function (O) {
  1079. if (!isObject(O)) return false;
  1080. var spreadable = O[IS_CONCAT_SPREADABLE];
  1081. return spreadable !== undefined ? !!spreadable : isArray(O);
  1082. };
  1083. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
  1084. // `Array.prototype.concat` method
  1085. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1086. // with adding support of @@isConcatSpreadable and @@species
  1087. $$1({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
  1088. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1089. concat: function concat(arg) {
  1090. var O = toObject$1(this);
  1091. var A = arraySpeciesCreate$1(O, 0);
  1092. var n = 0;
  1093. var i, k, length, len, E;
  1094. for (i = -1, length = arguments.length; i < length; i++) {
  1095. E = i === -1 ? O : arguments[i];
  1096. if (isConcatSpreadable(E)) {
  1097. len = lengthOfArrayLike$1(E);
  1098. doesNotExceedSafeInteger(n + len);
  1099. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1100. } else {
  1101. doesNotExceedSafeInteger(n + 1);
  1102. createProperty(A, n++, E);
  1103. }
  1104. }
  1105. A.length = n;
  1106. return A;
  1107. }
  1108. });
  1109. var uncurryThis$1 = functionUncurryThis;
  1110. var aCallable = aCallable$2;
  1111. var NATIVE_BIND = functionBindNative;
  1112. var bind$1 = uncurryThis$1(uncurryThis$1.bind);
  1113. // optional / simple context binding
  1114. var functionBindContext = function (fn, that) {
  1115. aCallable(fn);
  1116. return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
  1117. return fn.apply(that, arguments);
  1118. };
  1119. };
  1120. var bind = functionBindContext;
  1121. var uncurryThis = functionUncurryThis;
  1122. var IndexedObject = indexedObject;
  1123. var toObject = toObject$3;
  1124. var lengthOfArrayLike = lengthOfArrayLike$3;
  1125. var arraySpeciesCreate = arraySpeciesCreate$2;
  1126. var push = uncurryThis([].push);
  1127. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
  1128. var createMethod = function (TYPE) {
  1129. var IS_MAP = TYPE == 1;
  1130. var IS_FILTER = TYPE == 2;
  1131. var IS_SOME = TYPE == 3;
  1132. var IS_EVERY = TYPE == 4;
  1133. var IS_FIND_INDEX = TYPE == 6;
  1134. var IS_FILTER_REJECT = TYPE == 7;
  1135. var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
  1136. return function ($this, callbackfn, that, specificCreate) {
  1137. var O = toObject($this);
  1138. var self = IndexedObject(O);
  1139. var boundFunction = bind(callbackfn, that);
  1140. var length = lengthOfArrayLike(self);
  1141. var index = 0;
  1142. var create = specificCreate || arraySpeciesCreate;
  1143. var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
  1144. var value, result;
  1145. for (;length > index; index++) if (NO_HOLES || index in self) {
  1146. value = self[index];
  1147. result = boundFunction(value, index, O);
  1148. if (TYPE) {
  1149. if (IS_MAP) target[index] = result; // map
  1150. else if (result) switch (TYPE) {
  1151. case 3: return true; // some
  1152. case 5: return value; // find
  1153. case 6: return index; // findIndex
  1154. case 2: push(target, value); // filter
  1155. } else switch (TYPE) {
  1156. case 4: return false; // every
  1157. case 7: push(target, value); // filterReject
  1158. }
  1159. }
  1160. }
  1161. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  1162. };
  1163. };
  1164. var arrayIteration = {
  1165. // `Array.prototype.forEach` method
  1166. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  1167. forEach: createMethod(0),
  1168. // `Array.prototype.map` method
  1169. // https://tc39.es/ecma262/#sec-array.prototype.map
  1170. map: createMethod(1),
  1171. // `Array.prototype.filter` method
  1172. // https://tc39.es/ecma262/#sec-array.prototype.filter
  1173. filter: createMethod(2),
  1174. // `Array.prototype.some` method
  1175. // https://tc39.es/ecma262/#sec-array.prototype.some
  1176. some: createMethod(3),
  1177. // `Array.prototype.every` method
  1178. // https://tc39.es/ecma262/#sec-array.prototype.every
  1179. every: createMethod(4),
  1180. // `Array.prototype.find` method
  1181. // https://tc39.es/ecma262/#sec-array.prototype.find
  1182. find: createMethod(5),
  1183. // `Array.prototype.findIndex` method
  1184. // https://tc39.es/ecma262/#sec-array.prototype.findIndex
  1185. findIndex: createMethod(6),
  1186. // `Array.prototype.filterReject` method
  1187. // https://github.com/tc39/proposal-array-filtering
  1188. filterReject: createMethod(7)
  1189. };
  1190. var objectDefineProperties = {};
  1191. var internalObjectKeys = objectKeysInternal;
  1192. var enumBugKeys$1 = enumBugKeys$3;
  1193. // `Object.keys` method
  1194. // https://tc39.es/ecma262/#sec-object.keys
  1195. // eslint-disable-next-line es-x/no-object-keys -- safe
  1196. var objectKeys$1 = Object.keys || function keys(O) {
  1197. return internalObjectKeys(O, enumBugKeys$1);
  1198. };
  1199. var DESCRIPTORS = descriptors;
  1200. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  1201. var definePropertyModule = objectDefineProperty;
  1202. var anObject$1 = anObject$4;
  1203. var toIndexedObject = toIndexedObject$4;
  1204. var objectKeys = objectKeys$1;
  1205. // `Object.defineProperties` method
  1206. // https://tc39.es/ecma262/#sec-object.defineproperties
  1207. // eslint-disable-next-line es-x/no-object-defineproperties -- safe
  1208. objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
  1209. anObject$1(O);
  1210. var props = toIndexedObject(Properties);
  1211. var keys = objectKeys(Properties);
  1212. var length = keys.length;
  1213. var index = 0;
  1214. var key;
  1215. while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
  1216. return O;
  1217. };
  1218. var getBuiltIn = getBuiltIn$5;
  1219. var html$1 = getBuiltIn('document', 'documentElement');
  1220. /* global ActiveXObject -- old IE, WSH */
  1221. var anObject = anObject$4;
  1222. var definePropertiesModule = objectDefineProperties;
  1223. var enumBugKeys = enumBugKeys$3;
  1224. var hiddenKeys = hiddenKeys$4;
  1225. var html = html$1;
  1226. var documentCreateElement = documentCreateElement$1;
  1227. var sharedKey = sharedKey$2;
  1228. var GT = '>';
  1229. var LT = '<';
  1230. var PROTOTYPE = 'prototype';
  1231. var SCRIPT = 'script';
  1232. var IE_PROTO = sharedKey('IE_PROTO');
  1233. var EmptyConstructor = function () { /* empty */ };
  1234. var scriptTag = function (content) {
  1235. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  1236. };
  1237. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  1238. var NullProtoObjectViaActiveX = function (activeXDocument) {
  1239. activeXDocument.write(scriptTag(''));
  1240. activeXDocument.close();
  1241. var temp = activeXDocument.parentWindow.Object;
  1242. activeXDocument = null; // avoid memory leak
  1243. return temp;
  1244. };
  1245. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  1246. var NullProtoObjectViaIFrame = function () {
  1247. // Thrash, waste and sodomy: IE GC bug
  1248. var iframe = documentCreateElement('iframe');
  1249. var JS = 'java' + SCRIPT + ':';
  1250. var iframeDocument;
  1251. iframe.style.display = 'none';
  1252. html.appendChild(iframe);
  1253. // https://github.com/zloirock/core-js/issues/475
  1254. iframe.src = String(JS);
  1255. iframeDocument = iframe.contentWindow.document;
  1256. iframeDocument.open();
  1257. iframeDocument.write(scriptTag('document.F=Object'));
  1258. iframeDocument.close();
  1259. return iframeDocument.F;
  1260. };
  1261. // Check for document.domain and active x support
  1262. // No need to use active x approach when document.domain is not set
  1263. // see https://github.com/es-shims/es5-shim/issues/150
  1264. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  1265. // avoid IE GC bug
  1266. var activeXDocument;
  1267. var NullProtoObject = function () {
  1268. try {
  1269. activeXDocument = new ActiveXObject('htmlfile');
  1270. } catch (error) { /* ignore */ }
  1271. NullProtoObject = typeof document != 'undefined'
  1272. ? document.domain && activeXDocument
  1273. ? NullProtoObjectViaActiveX(activeXDocument) // old IE
  1274. : NullProtoObjectViaIFrame()
  1275. : NullProtoObjectViaActiveX(activeXDocument); // WSH
  1276. var length = enumBugKeys.length;
  1277. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  1278. return NullProtoObject();
  1279. };
  1280. hiddenKeys[IE_PROTO] = true;
  1281. // `Object.create` method
  1282. // https://tc39.es/ecma262/#sec-object.create
  1283. // eslint-disable-next-line es-x/no-object-create -- safe
  1284. var objectCreate = Object.create || function create(O, Properties) {
  1285. var result;
  1286. if (O !== null) {
  1287. EmptyConstructor[PROTOTYPE] = anObject(O);
  1288. result = new EmptyConstructor();
  1289. EmptyConstructor[PROTOTYPE] = null;
  1290. // add "__proto__" for Object.getPrototypeOf polyfill
  1291. result[IE_PROTO] = O;
  1292. } else result = NullProtoObject();
  1293. return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
  1294. };
  1295. var wellKnownSymbol = wellKnownSymbol$7;
  1296. var create = objectCreate;
  1297. var defineProperty = objectDefineProperty.f;
  1298. var UNSCOPABLES = wellKnownSymbol('unscopables');
  1299. var ArrayPrototype = Array.prototype;
  1300. // Array.prototype[@@unscopables]
  1301. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1302. if (ArrayPrototype[UNSCOPABLES] == undefined) {
  1303. defineProperty(ArrayPrototype, UNSCOPABLES, {
  1304. configurable: true,
  1305. value: create(null)
  1306. });
  1307. }
  1308. // add a key to Array.prototype[@@unscopables]
  1309. var addToUnscopables$1 = function (key) {
  1310. ArrayPrototype[UNSCOPABLES][key] = true;
  1311. };
  1312. var $ = _export;
  1313. var $find = arrayIteration.find;
  1314. var addToUnscopables = addToUnscopables$1;
  1315. var FIND = 'find';
  1316. var SKIPS_HOLES = true;
  1317. // Shouldn't skip holes
  1318. if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
  1319. // `Array.prototype.find` method
  1320. // https://tc39.es/ecma262/#sec-array.prototype.find
  1321. $({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
  1322. find: function find(callbackfn /* , that = undefined */) {
  1323. return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1324. }
  1325. });
  1326. // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
  1327. addToUnscopables(FIND);
  1328. var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
  1329. var classof = classof$2;
  1330. // `Object.prototype.toString` method implementation
  1331. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1332. var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
  1333. return '[object ' + classof(this) + ']';
  1334. };
  1335. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  1336. var defineBuiltIn = defineBuiltIn$2;
  1337. var toString = objectToString;
  1338. // `Object.prototype.toString` method
  1339. // https://tc39.es/ecma262/#sec-object.prototype.tostring
  1340. if (!TO_STRING_TAG_SUPPORT) {
  1341. defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
  1342. }
  1343. /**
  1344. * @author vincent loh <vincent.ml@gmail.com>
  1345. * @update J Manuel Corona <jmcg92@gmail.com>
  1346. * @update zhixin wen <wenzhixin2010@gmail.com>
  1347. */
  1348. var Utils = $__default["default"].fn.bootstrapTable.utils;
  1349. $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
  1350. stickyHeader: false,
  1351. stickyHeaderOffsetY: 0,
  1352. stickyHeaderOffsetLeft: 0,
  1353. stickyHeaderOffsetRight: 0
  1354. });
  1355. $__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1356. _inherits(_class, _$$BootstrapTable);
  1357. var _super = _createSuper(_class);
  1358. function _class() {
  1359. _classCallCheck(this, _class);
  1360. return _super.apply(this, arguments);
  1361. }
  1362. _createClass(_class, [{
  1363. key: "initHeader",
  1364. value: function initHeader() {
  1365. var _get2,
  1366. _this = this;
  1367. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1368. args[_key] = arguments[_key];
  1369. }
  1370. (_get2 = _get(_getPrototypeOf(_class.prototype), "initHeader", this)).call.apply(_get2, [this].concat(args));
  1371. if (!this.options.stickyHeader) {
  1372. return;
  1373. }
  1374. this.$tableBody.find('.sticky-header-container,.sticky_anchor_begin,.sticky_anchor_end').remove();
  1375. this.$el.before('<div class="sticky-header-container"></div>');
  1376. this.$el.before('<div class="sticky_anchor_begin"></div>');
  1377. this.$el.after('<div class="sticky_anchor_end"></div>');
  1378. this.$header.addClass('sticky-header'); // clone header just once, to be used as sticky header
  1379. // deep clone header, using source header affects tbody>td width
  1380. this.$stickyContainer = this.$tableBody.find('.sticky-header-container');
  1381. this.$stickyBegin = this.$tableBody.find('.sticky_anchor_begin');
  1382. this.$stickyEnd = this.$tableBody.find('.sticky_anchor_end');
  1383. this.$stickyHeader = this.$header.clone(true, true); // render sticky on window scroll or resize
  1384. var resizeEvent = Utils.getEventName('resize.sticky-header-table', this.$el.attr('id'));
  1385. var scrollEvent = Utils.getEventName('scroll.sticky-header-table', this.$el.attr('id'));
  1386. $__default["default"](window).off(resizeEvent).on(resizeEvent, function () {
  1387. return _this.renderStickyHeader();
  1388. });
  1389. $__default["default"](window).off(scrollEvent).on(scrollEvent, function () {
  1390. return _this.renderStickyHeader();
  1391. });
  1392. this.$tableBody.off('scroll').on('scroll', function () {
  1393. return _this.matchPositionX();
  1394. });
  1395. }
  1396. }, {
  1397. key: "onColumnSearch",
  1398. value: function onColumnSearch(_ref) {
  1399. var currentTarget = _ref.currentTarget,
  1400. keyCode = _ref.keyCode;
  1401. _get(_getPrototypeOf(_class.prototype), "onColumnSearch", this).call(this, {
  1402. currentTarget: currentTarget,
  1403. keyCode: keyCode
  1404. });
  1405. this.renderStickyHeader();
  1406. }
  1407. }, {
  1408. key: "resetView",
  1409. value: function resetView() {
  1410. var _get3,
  1411. _this2 = this;
  1412. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  1413. args[_key2] = arguments[_key2];
  1414. }
  1415. (_get3 = _get(_getPrototypeOf(_class.prototype), "resetView", this)).call.apply(_get3, [this].concat(args));
  1416. $__default["default"]('.bootstrap-table.fullscreen').off('scroll').on('scroll', function () {
  1417. return _this2.renderStickyHeader();
  1418. });
  1419. }
  1420. }, {
  1421. key: "getCaret",
  1422. value: function getCaret() {
  1423. var _get4;
  1424. for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  1425. args[_key3] = arguments[_key3];
  1426. }
  1427. (_get4 = _get(_getPrototypeOf(_class.prototype), "getCaret", this)).call.apply(_get4, [this].concat(args));
  1428. if (this.$stickyHeader) {
  1429. var $ths = this.$stickyHeader.find('th');
  1430. this.$header.find('th').each(function (i, th) {
  1431. $ths.eq(i).find('.sortable').attr('class', $__default["default"](th).find('.sortable').attr('class'));
  1432. });
  1433. }
  1434. }
  1435. }, {
  1436. key: "horizontalScroll",
  1437. value: function horizontalScroll() {
  1438. var _this3 = this;
  1439. _get(_getPrototypeOf(_class.prototype), "horizontalScroll", this).call(this);
  1440. this.$tableBody.on('scroll', function () {
  1441. return _this3.matchPositionX();
  1442. });
  1443. }
  1444. }, {
  1445. key: "renderStickyHeader",
  1446. value: function renderStickyHeader() {
  1447. var _this4 = this;
  1448. var that = this;
  1449. this.$stickyHeader = this.$header.clone(true, true);
  1450. if (this.options.filterControl) {
  1451. $__default["default"](this.$stickyHeader).off('keyup change mouseup').on('keyup change mouse', function (e) {
  1452. var $target = $__default["default"](e.target);
  1453. var value = $target.val();
  1454. var field = $target.parents('th').data('field');
  1455. var $coreTh = that.$header.find("th[data-field=\"".concat(field, "\"]"));
  1456. if ($target.is('input')) {
  1457. $coreTh.find('input').val(value);
  1458. } else if ($target.is('select')) {
  1459. var $select = $coreTh.find('select');
  1460. $select.find('option[selected]').removeAttr('selected');
  1461. $select.find("option[value=\"".concat(value, "\"]")).attr('selected', true);
  1462. }
  1463. that.triggerSearch();
  1464. });
  1465. }
  1466. var top = $__default["default"](window).scrollTop(); // top anchor scroll position, minus header height
  1467. var start = this.$stickyBegin.offset().top - this.options.stickyHeaderOffsetY; // bottom anchor scroll position, minus header height, minus sticky height
  1468. var end = this.$stickyEnd.offset().top - this.options.stickyHeaderOffsetY - this.$header.height(); // show sticky when top anchor touches header, and when bottom anchor not exceeded
  1469. if (top > start && top <= end) {
  1470. // ensure clone and source column widths are the same
  1471. this.$stickyHeader.find('tr').each(function (indexRows, rows) {
  1472. var columns = $__default["default"](rows).find('th');
  1473. columns.each(function (indexColumns, celd) {
  1474. $__default["default"](celd).css('min-width', _this4.$header.find("tr:eq(".concat(indexRows, ")")).find("th:eq(".concat(indexColumns, ")")).css('width'));
  1475. });
  1476. }); // match bootstrap table style
  1477. this.$stickyContainer.show().addClass('fix-sticky fixed-table-container'); // stick it in position
  1478. var coords = this.$tableBody[0].getBoundingClientRect();
  1479. var width = '100%';
  1480. var stickyHeaderOffsetLeft = this.options.stickyHeaderOffsetLeft;
  1481. var stickyHeaderOffsetRight = this.options.stickyHeaderOffsetRight;
  1482. if (!stickyHeaderOffsetLeft) {
  1483. stickyHeaderOffsetLeft = coords.left;
  1484. }
  1485. if (!stickyHeaderOffsetRight) {
  1486. width = "".concat(coords.width, "px");
  1487. }
  1488. if (this.$el.closest('.bootstrap-table').hasClass('fullscreen')) {
  1489. stickyHeaderOffsetLeft = 0;
  1490. stickyHeaderOffsetRight = 0;
  1491. width = '100%';
  1492. }
  1493. this.$stickyContainer.css('top', "".concat(this.options.stickyHeaderOffsetY, "px"));
  1494. this.$stickyContainer.css('left', "".concat(stickyHeaderOffsetLeft, "px"));
  1495. this.$stickyContainer.css('right', "".concat(stickyHeaderOffsetRight, "px"));
  1496. this.$stickyContainer.css('width', "".concat(width)); // create scrollable container for header
  1497. this.$stickyTable = $__default["default"]('<table/>');
  1498. this.$stickyTable.addClass(this.options.classes); // append cloned header to dom
  1499. this.$stickyContainer.html(this.$stickyTable.append(this.$stickyHeader)); // match clone and source header positions when left-right scroll
  1500. this.matchPositionX();
  1501. } else {
  1502. this.$stickyContainer.removeClass('fix-sticky').hide();
  1503. }
  1504. }
  1505. }, {
  1506. key: "matchPositionX",
  1507. value: function matchPositionX() {
  1508. this.$stickyContainer.scrollLeft(this.$tableBody.scrollLeft());
  1509. }
  1510. }]);
  1511. return _class;
  1512. }($__default["default"].BootstrapTable);
  1513. }));