bootstrap-table-resizable.js 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533
  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 _toPrimitive(t, r) {
  7. if ("object" != typeof t || !t) return t;
  8. var e = t[Symbol.toPrimitive];
  9. if (void 0 !== e) {
  10. var i = e.call(t, r || "default");
  11. if ("object" != typeof i) return i;
  12. throw new TypeError("@@toPrimitive must return a primitive value.");
  13. }
  14. return ("string" === r ? String : Number)(t);
  15. }
  16. function _toPropertyKey(t) {
  17. var i = _toPrimitive(t, "string");
  18. return "symbol" == typeof i ? i : String(i);
  19. }
  20. function _classCallCheck(instance, Constructor) {
  21. if (!(instance instanceof Constructor)) {
  22. throw new TypeError("Cannot call a class as a function");
  23. }
  24. }
  25. function _defineProperties(target, props) {
  26. for (var i = 0; i < props.length; i++) {
  27. var descriptor = props[i];
  28. descriptor.enumerable = descriptor.enumerable || false;
  29. descriptor.configurable = true;
  30. if ("value" in descriptor) descriptor.writable = true;
  31. Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
  32. }
  33. }
  34. function _createClass(Constructor, protoProps, staticProps) {
  35. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  36. if (staticProps) _defineProperties(Constructor, staticProps);
  37. Object.defineProperty(Constructor, "prototype", {
  38. writable: false
  39. });
  40. return Constructor;
  41. }
  42. function _inherits(subClass, superClass) {
  43. if (typeof superClass !== "function" && superClass !== null) {
  44. throw new TypeError("Super expression must either be null or a function");
  45. }
  46. subClass.prototype = Object.create(superClass && superClass.prototype, {
  47. constructor: {
  48. value: subClass,
  49. writable: true,
  50. configurable: true
  51. }
  52. });
  53. Object.defineProperty(subClass, "prototype", {
  54. writable: false
  55. });
  56. if (superClass) _setPrototypeOf(subClass, superClass);
  57. }
  58. function _getPrototypeOf(o) {
  59. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
  60. return o.__proto__ || Object.getPrototypeOf(o);
  61. };
  62. return _getPrototypeOf(o);
  63. }
  64. function _setPrototypeOf(o, p) {
  65. _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
  66. o.__proto__ = p;
  67. return o;
  68. };
  69. return _setPrototypeOf(o, p);
  70. }
  71. function _isNativeReflectConstruct() {
  72. if (typeof Reflect === "undefined" || !Reflect.construct) return false;
  73. if (Reflect.construct.sham) return false;
  74. if (typeof Proxy === "function") return true;
  75. try {
  76. Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
  77. return true;
  78. } catch (e) {
  79. return false;
  80. }
  81. }
  82. function _assertThisInitialized(self) {
  83. if (self === void 0) {
  84. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  85. }
  86. return self;
  87. }
  88. function _possibleConstructorReturn(self, call) {
  89. if (call && (typeof call === "object" || typeof call === "function")) {
  90. return call;
  91. } else if (call !== void 0) {
  92. throw new TypeError("Derived constructors may only return object or undefined");
  93. }
  94. return _assertThisInitialized(self);
  95. }
  96. function _createSuper(Derived) {
  97. var hasNativeReflectConstruct = _isNativeReflectConstruct();
  98. return function _createSuperInternal() {
  99. var Super = _getPrototypeOf(Derived),
  100. result;
  101. if (hasNativeReflectConstruct) {
  102. var NewTarget = _getPrototypeOf(this).constructor;
  103. result = Reflect.construct(Super, arguments, NewTarget);
  104. } else {
  105. result = Super.apply(this, arguments);
  106. }
  107. return _possibleConstructorReturn(this, result);
  108. };
  109. }
  110. function _superPropBase(object, property) {
  111. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  112. object = _getPrototypeOf(object);
  113. if (object === null) break;
  114. }
  115. return object;
  116. }
  117. function _get() {
  118. if (typeof Reflect !== "undefined" && Reflect.get) {
  119. _get = Reflect.get.bind();
  120. } else {
  121. _get = function _get(target, property, receiver) {
  122. var base = _superPropBase(target, property);
  123. if (!base) return;
  124. var desc = Object.getOwnPropertyDescriptor(base, property);
  125. if (desc.get) {
  126. return desc.get.call(arguments.length < 3 ? target : receiver);
  127. }
  128. return desc.value;
  129. };
  130. }
  131. return _get.apply(this, arguments);
  132. }
  133. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  134. var check = function (it) {
  135. return it && it.Math === Math && it;
  136. };
  137. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  138. var global$b =
  139. // eslint-disable-next-line es/no-global-this -- safe
  140. check(typeof globalThis == 'object' && globalThis) ||
  141. check(typeof window == 'object' && window) ||
  142. // eslint-disable-next-line no-restricted-globals -- safe
  143. check(typeof self == 'object' && self) ||
  144. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  145. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  146. // eslint-disable-next-line no-new-func -- fallback
  147. (function () { return this; })() || Function('return this')();
  148. var objectGetOwnPropertyDescriptor = {};
  149. var fails$c = function (exec) {
  150. try {
  151. return !!exec();
  152. } catch (error) {
  153. return true;
  154. }
  155. };
  156. var fails$b = fails$c;
  157. // Detect IE8's incomplete defineProperty implementation
  158. var descriptors = !fails$b(function () {
  159. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  160. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
  161. });
  162. var fails$a = fails$c;
  163. var functionBindNative = !fails$a(function () {
  164. // eslint-disable-next-line es/no-function-prototype-bind -- safe
  165. var test = (function () { /* empty */ }).bind();
  166. // eslint-disable-next-line no-prototype-builtins -- safe
  167. return typeof test != 'function' || test.hasOwnProperty('prototype');
  168. });
  169. var NATIVE_BIND$1 = functionBindNative;
  170. var call$5 = Function.prototype.call;
  171. var functionCall = NATIVE_BIND$1 ? call$5.bind(call$5) : function () {
  172. return call$5.apply(call$5, arguments);
  173. };
  174. var objectPropertyIsEnumerable = {};
  175. var $propertyIsEnumerable = {}.propertyIsEnumerable;
  176. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  177. var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  178. // Nashorn ~ JDK8 bug
  179. var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
  180. // `Object.prototype.propertyIsEnumerable` method implementation
  181. // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
  182. objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  183. var descriptor = getOwnPropertyDescriptor$1(this, V);
  184. return !!descriptor && descriptor.enumerable;
  185. } : $propertyIsEnumerable;
  186. var createPropertyDescriptor$3 = function (bitmap, value) {
  187. return {
  188. enumerable: !(bitmap & 1),
  189. configurable: !(bitmap & 2),
  190. writable: !(bitmap & 4),
  191. value: value
  192. };
  193. };
  194. var NATIVE_BIND = functionBindNative;
  195. var FunctionPrototype$1 = Function.prototype;
  196. var call$4 = FunctionPrototype$1.call;
  197. var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$4, call$4);
  198. var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
  199. return function () {
  200. return call$4.apply(fn, arguments);
  201. };
  202. };
  203. var uncurryThis$a = functionUncurryThis;
  204. var toString$1 = uncurryThis$a({}.toString);
  205. var stringSlice$1 = uncurryThis$a(''.slice);
  206. var classofRaw$1 = function (it) {
  207. return stringSlice$1(toString$1(it), 8, -1);
  208. };
  209. var uncurryThis$9 = functionUncurryThis;
  210. var fails$9 = fails$c;
  211. var classof$3 = classofRaw$1;
  212. var $Object$3 = Object;
  213. var split = uncurryThis$9(''.split);
  214. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  215. var indexedObject = fails$9(function () {
  216. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  217. // eslint-disable-next-line no-prototype-builtins -- safe
  218. return !$Object$3('z').propertyIsEnumerable(0);
  219. }) ? function (it) {
  220. return classof$3(it) === 'String' ? split(it, '') : $Object$3(it);
  221. } : $Object$3;
  222. // we can't use just `it == null` since of `document.all` special case
  223. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
  224. var isNullOrUndefined$2 = function (it) {
  225. return it === null || it === undefined;
  226. };
  227. var isNullOrUndefined$1 = isNullOrUndefined$2;
  228. var $TypeError$6 = TypeError;
  229. // `RequireObjectCoercible` abstract operation
  230. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  231. var requireObjectCoercible$2 = function (it) {
  232. if (isNullOrUndefined$1(it)) throw new $TypeError$6("Can't call method on " + it);
  233. return it;
  234. };
  235. // toObject with fallback for non-array-like ES3 strings
  236. var IndexedObject$1 = indexedObject;
  237. var requireObjectCoercible$1 = requireObjectCoercible$2;
  238. var toIndexedObject$3 = function (it) {
  239. return IndexedObject$1(requireObjectCoercible$1(it));
  240. };
  241. var documentAll$2 = typeof document == 'object' && document.all;
  242. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  243. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  244. var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
  245. var documentAll_1 = {
  246. all: documentAll$2,
  247. IS_HTMLDDA: IS_HTMLDDA
  248. };
  249. var $documentAll$1 = documentAll_1;
  250. var documentAll$1 = $documentAll$1.all;
  251. // `IsCallable` abstract operation
  252. // https://tc39.es/ecma262/#sec-iscallable
  253. var isCallable$c = $documentAll$1.IS_HTMLDDA ? function (argument) {
  254. return typeof argument == 'function' || argument === documentAll$1;
  255. } : function (argument) {
  256. return typeof argument == 'function';
  257. };
  258. var isCallable$b = isCallable$c;
  259. var $documentAll = documentAll_1;
  260. var documentAll = $documentAll.all;
  261. var isObject$7 = $documentAll.IS_HTMLDDA ? function (it) {
  262. return typeof it == 'object' ? it !== null : isCallable$b(it) || it === documentAll;
  263. } : function (it) {
  264. return typeof it == 'object' ? it !== null : isCallable$b(it);
  265. };
  266. var global$a = global$b;
  267. var isCallable$a = isCallable$c;
  268. var aFunction = function (argument) {
  269. return isCallable$a(argument) ? argument : undefined;
  270. };
  271. var getBuiltIn$3 = function (namespace, method) {
  272. return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
  273. };
  274. var uncurryThis$8 = functionUncurryThis;
  275. var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
  276. var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
  277. var global$9 = global$b;
  278. var userAgent = engineUserAgent;
  279. var process = global$9.process;
  280. var Deno = global$9.Deno;
  281. var versions = process && process.versions || Deno && Deno.version;
  282. var v8 = versions && versions.v8;
  283. var match, version;
  284. if (v8) {
  285. match = v8.split('.');
  286. // in old Chrome, versions of V8 isn't V8 = Chrome / 10
  287. // but their correct versions are not interesting for us
  288. version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
  289. }
  290. // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
  291. // so check `userAgent` even if `.v8` exists, but 0
  292. if (!version && userAgent) {
  293. match = userAgent.match(/Edge\/(\d+)/);
  294. if (!match || match[1] >= 74) {
  295. match = userAgent.match(/Chrome\/(\d+)/);
  296. if (match) version = +match[1];
  297. }
  298. }
  299. var engineV8Version = version;
  300. /* eslint-disable es/no-symbol -- required for testing */
  301. var V8_VERSION$2 = engineV8Version;
  302. var fails$8 = fails$c;
  303. var global$8 = global$b;
  304. var $String$3 = global$8.String;
  305. // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
  306. var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
  307. var symbol = Symbol('symbol detection');
  308. // Chrome 38 Symbol has incorrect toString conversion
  309. // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
  310. // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
  311. // of course, fail.
  312. return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
  313. // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
  314. !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
  315. });
  316. /* eslint-disable es/no-symbol -- required for testing */
  317. var NATIVE_SYMBOL$1 = symbolConstructorDetection;
  318. var useSymbolAsUid = NATIVE_SYMBOL$1
  319. && !Symbol.sham
  320. && typeof Symbol.iterator == 'symbol';
  321. var getBuiltIn$2 = getBuiltIn$3;
  322. var isCallable$9 = isCallable$c;
  323. var isPrototypeOf = objectIsPrototypeOf;
  324. var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
  325. var $Object$2 = Object;
  326. var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
  327. return typeof it == 'symbol';
  328. } : function (it) {
  329. var $Symbol = getBuiltIn$2('Symbol');
  330. return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
  331. };
  332. var $String$2 = String;
  333. var tryToString$1 = function (argument) {
  334. try {
  335. return $String$2(argument);
  336. } catch (error) {
  337. return 'Object';
  338. }
  339. };
  340. var isCallable$8 = isCallable$c;
  341. var tryToString = tryToString$1;
  342. var $TypeError$5 = TypeError;
  343. // `Assert: IsCallable(argument) is true`
  344. var aCallable$1 = function (argument) {
  345. if (isCallable$8(argument)) return argument;
  346. throw new $TypeError$5(tryToString(argument) + ' is not a function');
  347. };
  348. var aCallable = aCallable$1;
  349. var isNullOrUndefined = isNullOrUndefined$2;
  350. // `GetMethod` abstract operation
  351. // https://tc39.es/ecma262/#sec-getmethod
  352. var getMethod$1 = function (V, P) {
  353. var func = V[P];
  354. return isNullOrUndefined(func) ? undefined : aCallable(func);
  355. };
  356. var call$3 = functionCall;
  357. var isCallable$7 = isCallable$c;
  358. var isObject$6 = isObject$7;
  359. var $TypeError$4 = TypeError;
  360. // `OrdinaryToPrimitive` abstract operation
  361. // https://tc39.es/ecma262/#sec-ordinarytoprimitive
  362. var ordinaryToPrimitive$1 = function (input, pref) {
  363. var fn, val;
  364. if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$3(fn, input))) return val;
  365. if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$3(fn, input))) return val;
  366. if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$3(fn, input))) return val;
  367. throw new $TypeError$4("Can't convert object to primitive value");
  368. };
  369. var shared$3 = {exports: {}};
  370. var global$7 = global$b;
  371. // eslint-disable-next-line es/no-object-defineproperty -- safe
  372. var defineProperty$2 = Object.defineProperty;
  373. var defineGlobalProperty$3 = function (key, value) {
  374. try {
  375. defineProperty$2(global$7, key, { value: value, configurable: true, writable: true });
  376. } catch (error) {
  377. global$7[key] = value;
  378. } return value;
  379. };
  380. var global$6 = global$b;
  381. var defineGlobalProperty$2 = defineGlobalProperty$3;
  382. var SHARED = '__core-js_shared__';
  383. var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {});
  384. var sharedStore = store$3;
  385. var store$2 = sharedStore;
  386. (shared$3.exports = function (key, value) {
  387. return store$2[key] || (store$2[key] = value !== undefined ? value : {});
  388. })('versions', []).push({
  389. version: '3.34.0',
  390. mode: 'global',
  391. copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
  392. license: 'https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE',
  393. source: 'https://github.com/zloirock/core-js'
  394. });
  395. var sharedExports = shared$3.exports;
  396. var requireObjectCoercible = requireObjectCoercible$2;
  397. var $Object$1 = Object;
  398. // `ToObject` abstract operation
  399. // https://tc39.es/ecma262/#sec-toobject
  400. var toObject$3 = function (argument) {
  401. return $Object$1(requireObjectCoercible(argument));
  402. };
  403. var uncurryThis$7 = functionUncurryThis;
  404. var toObject$2 = toObject$3;
  405. var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
  406. // `HasOwnProperty` abstract operation
  407. // https://tc39.es/ecma262/#sec-hasownproperty
  408. // eslint-disable-next-line es/no-object-hasown -- safe
  409. var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
  410. return hasOwnProperty(toObject$2(it), key);
  411. };
  412. var uncurryThis$6 = functionUncurryThis;
  413. var id = 0;
  414. var postfix = Math.random();
  415. var toString = uncurryThis$6(1.0.toString);
  416. var uid$2 = function (key) {
  417. return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
  418. };
  419. var global$5 = global$b;
  420. var shared$2 = sharedExports;
  421. var hasOwn$6 = hasOwnProperty_1;
  422. var uid$1 = uid$2;
  423. var NATIVE_SYMBOL = symbolConstructorDetection;
  424. var USE_SYMBOL_AS_UID = useSymbolAsUid;
  425. var Symbol$1 = global$5.Symbol;
  426. var WellKnownSymbolsStore = shared$2('wks');
  427. var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
  428. var wellKnownSymbol$6 = function (name) {
  429. if (!hasOwn$6(WellKnownSymbolsStore, name)) {
  430. WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
  431. ? Symbol$1[name]
  432. : createWellKnownSymbol('Symbol.' + name);
  433. } return WellKnownSymbolsStore[name];
  434. };
  435. var call$2 = functionCall;
  436. var isObject$5 = isObject$7;
  437. var isSymbol$1 = isSymbol$2;
  438. var getMethod = getMethod$1;
  439. var ordinaryToPrimitive = ordinaryToPrimitive$1;
  440. var wellKnownSymbol$5 = wellKnownSymbol$6;
  441. var $TypeError$3 = TypeError;
  442. var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
  443. // `ToPrimitive` abstract operation
  444. // https://tc39.es/ecma262/#sec-toprimitive
  445. var toPrimitive$1 = function (input, pref) {
  446. if (!isObject$5(input) || isSymbol$1(input)) return input;
  447. var exoticToPrim = getMethod(input, TO_PRIMITIVE);
  448. var result;
  449. if (exoticToPrim) {
  450. if (pref === undefined) pref = 'default';
  451. result = call$2(exoticToPrim, input, pref);
  452. if (!isObject$5(result) || isSymbol$1(result)) return result;
  453. throw new $TypeError$3("Can't convert object to primitive value");
  454. }
  455. if (pref === undefined) pref = 'number';
  456. return ordinaryToPrimitive(input, pref);
  457. };
  458. var toPrimitive = toPrimitive$1;
  459. var isSymbol = isSymbol$2;
  460. // `ToPropertyKey` abstract operation
  461. // https://tc39.es/ecma262/#sec-topropertykey
  462. var toPropertyKey$3 = function (argument) {
  463. var key = toPrimitive(argument, 'string');
  464. return isSymbol(key) ? key : key + '';
  465. };
  466. var global$4 = global$b;
  467. var isObject$4 = isObject$7;
  468. var document$1 = global$4.document;
  469. // typeof document.createElement is 'object' in old IE
  470. var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
  471. var documentCreateElement = function (it) {
  472. return EXISTS$1 ? document$1.createElement(it) : {};
  473. };
  474. var DESCRIPTORS$7 = descriptors;
  475. var fails$7 = fails$c;
  476. var createElement = documentCreateElement;
  477. // Thanks to IE8 for its funny defineProperty
  478. var ie8DomDefine = !DESCRIPTORS$7 && !fails$7(function () {
  479. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  480. return Object.defineProperty(createElement('div'), 'a', {
  481. get: function () { return 7; }
  482. }).a !== 7;
  483. });
  484. var DESCRIPTORS$6 = descriptors;
  485. var call$1 = functionCall;
  486. var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
  487. var createPropertyDescriptor$2 = createPropertyDescriptor$3;
  488. var toIndexedObject$2 = toIndexedObject$3;
  489. var toPropertyKey$2 = toPropertyKey$3;
  490. var hasOwn$5 = hasOwnProperty_1;
  491. var IE8_DOM_DEFINE$1 = ie8DomDefine;
  492. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  493. var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
  494. // `Object.getOwnPropertyDescriptor` method
  495. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  496. objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
  497. O = toIndexedObject$2(O);
  498. P = toPropertyKey$2(P);
  499. if (IE8_DOM_DEFINE$1) try {
  500. return $getOwnPropertyDescriptor$1(O, P);
  501. } catch (error) { /* empty */ }
  502. if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
  503. };
  504. var objectDefineProperty = {};
  505. var DESCRIPTORS$5 = descriptors;
  506. var fails$6 = fails$c;
  507. // V8 ~ Chrome 36-
  508. // https://bugs.chromium.org/p/v8/issues/detail?id=3334
  509. var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$6(function () {
  510. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  511. return Object.defineProperty(function () { /* empty */ }, 'prototype', {
  512. value: 42,
  513. writable: false
  514. }).prototype !== 42;
  515. });
  516. var isObject$3 = isObject$7;
  517. var $String$1 = String;
  518. var $TypeError$2 = TypeError;
  519. // `Assert: Type(argument) is Object`
  520. var anObject$2 = function (argument) {
  521. if (isObject$3(argument)) return argument;
  522. throw new $TypeError$2($String$1(argument) + ' is not an object');
  523. };
  524. var DESCRIPTORS$4 = descriptors;
  525. var IE8_DOM_DEFINE = ie8DomDefine;
  526. var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
  527. var anObject$1 = anObject$2;
  528. var toPropertyKey$1 = toPropertyKey$3;
  529. var $TypeError$1 = TypeError;
  530. // eslint-disable-next-line es/no-object-defineproperty -- safe
  531. var $defineProperty = Object.defineProperty;
  532. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  533. var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  534. var ENUMERABLE = 'enumerable';
  535. var CONFIGURABLE$1 = 'configurable';
  536. var WRITABLE = 'writable';
  537. // `Object.defineProperty` method
  538. // https://tc39.es/ecma262/#sec-object.defineproperty
  539. objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
  540. anObject$1(O);
  541. P = toPropertyKey$1(P);
  542. anObject$1(Attributes);
  543. if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
  544. var current = $getOwnPropertyDescriptor(O, P);
  545. if (current && current[WRITABLE]) {
  546. O[P] = Attributes.value;
  547. Attributes = {
  548. configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
  549. enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
  550. writable: false
  551. };
  552. }
  553. } return $defineProperty(O, P, Attributes);
  554. } : $defineProperty : function defineProperty(O, P, Attributes) {
  555. anObject$1(O);
  556. P = toPropertyKey$1(P);
  557. anObject$1(Attributes);
  558. if (IE8_DOM_DEFINE) try {
  559. return $defineProperty(O, P, Attributes);
  560. } catch (error) { /* empty */ }
  561. if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
  562. if ('value' in Attributes) O[P] = Attributes.value;
  563. return O;
  564. };
  565. var DESCRIPTORS$3 = descriptors;
  566. var definePropertyModule$3 = objectDefineProperty;
  567. var createPropertyDescriptor$1 = createPropertyDescriptor$3;
  568. var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value) {
  569. return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
  570. } : function (object, key, value) {
  571. object[key] = value;
  572. return object;
  573. };
  574. var makeBuiltIn$2 = {exports: {}};
  575. var DESCRIPTORS$2 = descriptors;
  576. var hasOwn$4 = hasOwnProperty_1;
  577. var FunctionPrototype = Function.prototype;
  578. // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
  579. var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
  580. var EXISTS = hasOwn$4(FunctionPrototype, 'name');
  581. // additional protection from minified / mangled / dropped function names
  582. var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
  583. var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
  584. var functionName = {
  585. EXISTS: EXISTS,
  586. PROPER: PROPER,
  587. CONFIGURABLE: CONFIGURABLE
  588. };
  589. var uncurryThis$5 = functionUncurryThis;
  590. var isCallable$6 = isCallable$c;
  591. var store$1 = sharedStore;
  592. var functionToString = uncurryThis$5(Function.toString);
  593. // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
  594. if (!isCallable$6(store$1.inspectSource)) {
  595. store$1.inspectSource = function (it) {
  596. return functionToString(it);
  597. };
  598. }
  599. var inspectSource$2 = store$1.inspectSource;
  600. var global$3 = global$b;
  601. var isCallable$5 = isCallable$c;
  602. var WeakMap$1 = global$3.WeakMap;
  603. var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1));
  604. var shared$1 = sharedExports;
  605. var uid = uid$2;
  606. var keys = shared$1('keys');
  607. var sharedKey$1 = function (key) {
  608. return keys[key] || (keys[key] = uid(key));
  609. };
  610. var hiddenKeys$3 = {};
  611. var NATIVE_WEAK_MAP = weakMapBasicDetection;
  612. var global$2 = global$b;
  613. var isObject$2 = isObject$7;
  614. var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
  615. var hasOwn$3 = hasOwnProperty_1;
  616. var shared = sharedStore;
  617. var sharedKey = sharedKey$1;
  618. var hiddenKeys$2 = hiddenKeys$3;
  619. var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
  620. var TypeError$1 = global$2.TypeError;
  621. var WeakMap = global$2.WeakMap;
  622. var set, get, has;
  623. var enforce = function (it) {
  624. return has(it) ? get(it) : set(it, {});
  625. };
  626. var getterFor = function (TYPE) {
  627. return function (it) {
  628. var state;
  629. if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
  630. throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
  631. } return state;
  632. };
  633. };
  634. if (NATIVE_WEAK_MAP || shared.state) {
  635. var store = shared.state || (shared.state = new WeakMap());
  636. /* eslint-disable no-self-assign -- prototype methods protection */
  637. store.get = store.get;
  638. store.has = store.has;
  639. store.set = store.set;
  640. /* eslint-enable no-self-assign -- prototype methods protection */
  641. set = function (it, metadata) {
  642. if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  643. metadata.facade = it;
  644. store.set(it, metadata);
  645. return metadata;
  646. };
  647. get = function (it) {
  648. return store.get(it) || {};
  649. };
  650. has = function (it) {
  651. return store.has(it);
  652. };
  653. } else {
  654. var STATE = sharedKey('state');
  655. hiddenKeys$2[STATE] = true;
  656. set = function (it, metadata) {
  657. if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
  658. metadata.facade = it;
  659. createNonEnumerableProperty$1(it, STATE, metadata);
  660. return metadata;
  661. };
  662. get = function (it) {
  663. return hasOwn$3(it, STATE) ? it[STATE] : {};
  664. };
  665. has = function (it) {
  666. return hasOwn$3(it, STATE);
  667. };
  668. }
  669. var internalState = {
  670. set: set,
  671. get: get,
  672. has: has,
  673. enforce: enforce,
  674. getterFor: getterFor
  675. };
  676. var uncurryThis$4 = functionUncurryThis;
  677. var fails$5 = fails$c;
  678. var isCallable$4 = isCallable$c;
  679. var hasOwn$2 = hasOwnProperty_1;
  680. var DESCRIPTORS$1 = descriptors;
  681. var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
  682. var inspectSource$1 = inspectSource$2;
  683. var InternalStateModule = internalState;
  684. var enforceInternalState = InternalStateModule.enforce;
  685. var getInternalState = InternalStateModule.get;
  686. var $String = String;
  687. // eslint-disable-next-line es/no-object-defineproperty -- safe
  688. var defineProperty$1 = Object.defineProperty;
  689. var stringSlice = uncurryThis$4(''.slice);
  690. var replace = uncurryThis$4(''.replace);
  691. var join = uncurryThis$4([].join);
  692. var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$5(function () {
  693. return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
  694. });
  695. var TEMPLATE = String(String).split('String');
  696. var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
  697. if (stringSlice($String(name), 0, 7) === 'Symbol(') {
  698. name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
  699. }
  700. if (options && options.getter) name = 'get ' + name;
  701. if (options && options.setter) name = 'set ' + name;
  702. if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
  703. if (DESCRIPTORS$1) defineProperty$1(value, 'name', { value: name, configurable: true });
  704. else value.name = name;
  705. }
  706. if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
  707. defineProperty$1(value, 'length', { value: options.arity });
  708. }
  709. try {
  710. if (options && hasOwn$2(options, 'constructor') && options.constructor) {
  711. if (DESCRIPTORS$1) defineProperty$1(value, 'prototype', { writable: false });
  712. // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
  713. } else if (value.prototype) value.prototype = undefined;
  714. } catch (error) { /* empty */ }
  715. var state = enforceInternalState(value);
  716. if (!hasOwn$2(state, 'source')) {
  717. state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
  718. } return value;
  719. };
  720. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  721. // eslint-disable-next-line no-extend-native -- required
  722. Function.prototype.toString = makeBuiltIn$1(function toString() {
  723. return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
  724. }, 'toString');
  725. var makeBuiltInExports = makeBuiltIn$2.exports;
  726. var isCallable$3 = isCallable$c;
  727. var definePropertyModule$2 = objectDefineProperty;
  728. var makeBuiltIn = makeBuiltInExports;
  729. var defineGlobalProperty$1 = defineGlobalProperty$3;
  730. var defineBuiltIn$1 = function (O, key, value, options) {
  731. if (!options) options = {};
  732. var simple = options.enumerable;
  733. var name = options.name !== undefined ? options.name : key;
  734. if (isCallable$3(value)) makeBuiltIn(value, name, options);
  735. if (options.global) {
  736. if (simple) O[key] = value;
  737. else defineGlobalProperty$1(key, value);
  738. } else {
  739. try {
  740. if (!options.unsafe) delete O[key];
  741. else if (O[key]) simple = true;
  742. } catch (error) { /* empty */ }
  743. if (simple) O[key] = value;
  744. else definePropertyModule$2.f(O, key, {
  745. value: value,
  746. enumerable: false,
  747. configurable: !options.nonConfigurable,
  748. writable: !options.nonWritable
  749. });
  750. } return O;
  751. };
  752. var objectGetOwnPropertyNames = {};
  753. var ceil = Math.ceil;
  754. var floor = Math.floor;
  755. // `Math.trunc` method
  756. // https://tc39.es/ecma262/#sec-math.trunc
  757. // eslint-disable-next-line es/no-math-trunc -- safe
  758. var mathTrunc = Math.trunc || function trunc(x) {
  759. var n = +x;
  760. return (n > 0 ? floor : ceil)(n);
  761. };
  762. var trunc = mathTrunc;
  763. // `ToIntegerOrInfinity` abstract operation
  764. // https://tc39.es/ecma262/#sec-tointegerorinfinity
  765. var toIntegerOrInfinity$2 = function (argument) {
  766. var number = +argument;
  767. // eslint-disable-next-line no-self-compare -- NaN check
  768. return number !== number || number === 0 ? 0 : trunc(number);
  769. };
  770. var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
  771. var max = Math.max;
  772. var min$1 = Math.min;
  773. // Helper for a popular repeating case of the spec:
  774. // Let integer be ? ToInteger(index).
  775. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  776. var toAbsoluteIndex$1 = function (index, length) {
  777. var integer = toIntegerOrInfinity$1(index);
  778. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  779. };
  780. var toIntegerOrInfinity = toIntegerOrInfinity$2;
  781. var min = Math.min;
  782. // `ToLength` abstract operation
  783. // https://tc39.es/ecma262/#sec-tolength
  784. var toLength$1 = function (argument) {
  785. return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  786. };
  787. var toLength = toLength$1;
  788. // `LengthOfArrayLike` abstract operation
  789. // https://tc39.es/ecma262/#sec-lengthofarraylike
  790. var lengthOfArrayLike$2 = function (obj) {
  791. return toLength(obj.length);
  792. };
  793. var toIndexedObject$1 = toIndexedObject$3;
  794. var toAbsoluteIndex = toAbsoluteIndex$1;
  795. var lengthOfArrayLike$1 = lengthOfArrayLike$2;
  796. // `Array.prototype.{ indexOf, includes }` methods implementation
  797. var createMethod = function (IS_INCLUDES) {
  798. return function ($this, el, fromIndex) {
  799. var O = toIndexedObject$1($this);
  800. var length = lengthOfArrayLike$1(O);
  801. var index = toAbsoluteIndex(fromIndex, length);
  802. var value;
  803. // Array#includes uses SameValueZero equality algorithm
  804. // eslint-disable-next-line no-self-compare -- NaN check
  805. if (IS_INCLUDES && el !== el) while (length > index) {
  806. value = O[index++];
  807. // eslint-disable-next-line no-self-compare -- NaN check
  808. if (value !== value) return true;
  809. // Array#indexOf ignores holes, Array#includes - not
  810. } else for (;length > index; index++) {
  811. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  812. } return !IS_INCLUDES && -1;
  813. };
  814. };
  815. var arrayIncludes = {
  816. // `Array.prototype.includes` method
  817. // https://tc39.es/ecma262/#sec-array.prototype.includes
  818. includes: createMethod(true),
  819. // `Array.prototype.indexOf` method
  820. // https://tc39.es/ecma262/#sec-array.prototype.indexof
  821. indexOf: createMethod(false)
  822. };
  823. var uncurryThis$3 = functionUncurryThis;
  824. var hasOwn$1 = hasOwnProperty_1;
  825. var toIndexedObject = toIndexedObject$3;
  826. var indexOf = arrayIncludes.indexOf;
  827. var hiddenKeys$1 = hiddenKeys$3;
  828. var push = uncurryThis$3([].push);
  829. var objectKeysInternal = function (object, names) {
  830. var O = toIndexedObject(object);
  831. var i = 0;
  832. var result = [];
  833. var key;
  834. for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
  835. // Don't enum bug & hidden keys
  836. while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
  837. ~indexOf(result, key) || push(result, key);
  838. }
  839. return result;
  840. };
  841. // IE8- don't enum bug keys
  842. var enumBugKeys$2 = [
  843. 'constructor',
  844. 'hasOwnProperty',
  845. 'isPrototypeOf',
  846. 'propertyIsEnumerable',
  847. 'toLocaleString',
  848. 'toString',
  849. 'valueOf'
  850. ];
  851. var internalObjectKeys$1 = objectKeysInternal;
  852. var enumBugKeys$1 = enumBugKeys$2;
  853. var hiddenKeys = enumBugKeys$1.concat('length', 'prototype');
  854. // `Object.getOwnPropertyNames` method
  855. // https://tc39.es/ecma262/#sec-object.getownpropertynames
  856. // eslint-disable-next-line es/no-object-getownpropertynames -- safe
  857. objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  858. return internalObjectKeys$1(O, hiddenKeys);
  859. };
  860. var objectGetOwnPropertySymbols = {};
  861. // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
  862. objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
  863. var getBuiltIn$1 = getBuiltIn$3;
  864. var uncurryThis$2 = functionUncurryThis;
  865. var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
  866. var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
  867. var anObject = anObject$2;
  868. var concat$1 = uncurryThis$2([].concat);
  869. // all object keys, includes non-enumerable and symbols
  870. var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
  871. var keys = getOwnPropertyNamesModule.f(anObject(it));
  872. var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
  873. return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
  874. };
  875. var hasOwn = hasOwnProperty_1;
  876. var ownKeys = ownKeys$1;
  877. var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
  878. var definePropertyModule$1 = objectDefineProperty;
  879. var copyConstructorProperties$1 = function (target, source, exceptions) {
  880. var keys = ownKeys(source);
  881. var defineProperty = definePropertyModule$1.f;
  882. var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
  883. for (var i = 0; i < keys.length; i++) {
  884. var key = keys[i];
  885. if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
  886. defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  887. }
  888. }
  889. };
  890. var fails$4 = fails$c;
  891. var isCallable$2 = isCallable$c;
  892. var replacement = /#|\.prototype\./;
  893. var isForced$1 = function (feature, detection) {
  894. var value = data[normalize(feature)];
  895. return value === POLYFILL ? true
  896. : value === NATIVE ? false
  897. : isCallable$2(detection) ? fails$4(detection)
  898. : !!detection;
  899. };
  900. var normalize = isForced$1.normalize = function (string) {
  901. return String(string).replace(replacement, '.').toLowerCase();
  902. };
  903. var data = isForced$1.data = {};
  904. var NATIVE = isForced$1.NATIVE = 'N';
  905. var POLYFILL = isForced$1.POLYFILL = 'P';
  906. var isForced_1 = isForced$1;
  907. var global$1 = global$b;
  908. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  909. var createNonEnumerableProperty = createNonEnumerableProperty$2;
  910. var defineBuiltIn = defineBuiltIn$1;
  911. var defineGlobalProperty = defineGlobalProperty$3;
  912. var copyConstructorProperties = copyConstructorProperties$1;
  913. var isForced = isForced_1;
  914. /*
  915. options.target - name of the target object
  916. options.global - target is the global object
  917. options.stat - export as static methods of target
  918. options.proto - export as prototype methods of target
  919. options.real - real prototype method for the `pure` version
  920. options.forced - export even if the native feature is available
  921. options.bind - bind methods to the target, required for the `pure` version
  922. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  923. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  924. options.sham - add a flag to not completely full polyfills
  925. options.enumerable - export as enumerable property
  926. options.dontCallGetSet - prevent calling a getter on target
  927. options.name - the .name of the function if it does not match the key
  928. */
  929. var _export = function (options, source) {
  930. var TARGET = options.target;
  931. var GLOBAL = options.global;
  932. var STATIC = options.stat;
  933. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  934. if (GLOBAL) {
  935. target = global$1;
  936. } else if (STATIC) {
  937. target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
  938. } else {
  939. target = (global$1[TARGET] || {}).prototype;
  940. }
  941. if (target) for (key in source) {
  942. sourceProperty = source[key];
  943. if (options.dontCallGetSet) {
  944. descriptor = getOwnPropertyDescriptor(target, key);
  945. targetProperty = descriptor && descriptor.value;
  946. } else targetProperty = target[key];
  947. FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  948. // contained in target
  949. if (!FORCED && targetProperty !== undefined) {
  950. if (typeof sourceProperty == typeof targetProperty) continue;
  951. copyConstructorProperties(sourceProperty, targetProperty);
  952. }
  953. // add a flag to not completely full polyfills
  954. if (options.sham || (targetProperty && targetProperty.sham)) {
  955. createNonEnumerableProperty(sourceProperty, 'sham', true);
  956. }
  957. defineBuiltIn(target, key, sourceProperty, options);
  958. }
  959. };
  960. var internalObjectKeys = objectKeysInternal;
  961. var enumBugKeys = enumBugKeys$2;
  962. // `Object.keys` method
  963. // https://tc39.es/ecma262/#sec-object.keys
  964. // eslint-disable-next-line es/no-object-keys -- safe
  965. var objectKeys$1 = Object.keys || function keys(O) {
  966. return internalObjectKeys(O, enumBugKeys);
  967. };
  968. var DESCRIPTORS = descriptors;
  969. var uncurryThis$1 = functionUncurryThis;
  970. var call = functionCall;
  971. var fails$3 = fails$c;
  972. var objectKeys = objectKeys$1;
  973. var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
  974. var propertyIsEnumerableModule = objectPropertyIsEnumerable;
  975. var toObject$1 = toObject$3;
  976. var IndexedObject = indexedObject;
  977. // eslint-disable-next-line es/no-object-assign -- safe
  978. var $assign = Object.assign;
  979. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  980. var defineProperty = Object.defineProperty;
  981. var concat = uncurryThis$1([].concat);
  982. // `Object.assign` method
  983. // https://tc39.es/ecma262/#sec-object.assign
  984. var objectAssign = !$assign || fails$3(function () {
  985. // should have correct order of operations (Edge bug)
  986. if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
  987. enumerable: true,
  988. get: function () {
  989. defineProperty(this, 'b', {
  990. value: 3,
  991. enumerable: false
  992. });
  993. }
  994. }), { b: 2 })).b !== 1) return true;
  995. // should work with symbols and should have deterministic property order (V8 bug)
  996. var A = {};
  997. var B = {};
  998. // eslint-disable-next-line es/no-symbol -- safe
  999. var symbol = Symbol('assign detection');
  1000. var alphabet = 'abcdefghijklmnopqrst';
  1001. A[symbol] = 7;
  1002. alphabet.split('').forEach(function (chr) { B[chr] = chr; });
  1003. return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
  1004. }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
  1005. var T = toObject$1(target);
  1006. var argumentsLength = arguments.length;
  1007. var index = 1;
  1008. var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
  1009. var propertyIsEnumerable = propertyIsEnumerableModule.f;
  1010. while (argumentsLength > index) {
  1011. var S = IndexedObject(arguments[index++]);
  1012. var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
  1013. var length = keys.length;
  1014. var j = 0;
  1015. var key;
  1016. while (length > j) {
  1017. key = keys[j++];
  1018. if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
  1019. }
  1020. } return T;
  1021. } : $assign;
  1022. var $$1 = _export;
  1023. var assign = objectAssign;
  1024. // `Object.assign` method
  1025. // https://tc39.es/ecma262/#sec-object.assign
  1026. // eslint-disable-next-line es/no-object-assign -- required for testing
  1027. $$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
  1028. assign: assign
  1029. });
  1030. var classof$2 = classofRaw$1;
  1031. // `IsArray` abstract operation
  1032. // https://tc39.es/ecma262/#sec-isarray
  1033. // eslint-disable-next-line es/no-array-isarray -- safe
  1034. var isArray$2 = Array.isArray || function isArray(argument) {
  1035. return classof$2(argument) === 'Array';
  1036. };
  1037. var $TypeError = TypeError;
  1038. var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
  1039. var doesNotExceedSafeInteger$1 = function (it) {
  1040. if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
  1041. return it;
  1042. };
  1043. var toPropertyKey = toPropertyKey$3;
  1044. var definePropertyModule = objectDefineProperty;
  1045. var createPropertyDescriptor = createPropertyDescriptor$3;
  1046. var createProperty$1 = function (object, key, value) {
  1047. var propertyKey = toPropertyKey(key);
  1048. if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
  1049. else object[propertyKey] = value;
  1050. };
  1051. var wellKnownSymbol$4 = wellKnownSymbol$6;
  1052. var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
  1053. var test = {};
  1054. test[TO_STRING_TAG$1] = 'z';
  1055. var toStringTagSupport = String(test) === '[object z]';
  1056. var TO_STRING_TAG_SUPPORT = toStringTagSupport;
  1057. var isCallable$1 = isCallable$c;
  1058. var classofRaw = classofRaw$1;
  1059. var wellKnownSymbol$3 = wellKnownSymbol$6;
  1060. var TO_STRING_TAG = wellKnownSymbol$3('toStringTag');
  1061. var $Object = Object;
  1062. // ES3 wrong here
  1063. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
  1064. // fallback for IE11 Script Access Denied error
  1065. var tryGet = function (it, key) {
  1066. try {
  1067. return it[key];
  1068. } catch (error) { /* empty */ }
  1069. };
  1070. // getting tag from ES6+ `Object.prototype.toString`
  1071. var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
  1072. var O, tag, result;
  1073. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1074. // @@toStringTag case
  1075. : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
  1076. // builtinTag case
  1077. : CORRECT_ARGUMENTS ? classofRaw(O)
  1078. // ES3 arguments fallback
  1079. : (result = classofRaw(O)) === 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
  1080. };
  1081. var uncurryThis = functionUncurryThis;
  1082. var fails$2 = fails$c;
  1083. var isCallable = isCallable$c;
  1084. var classof = classof$1;
  1085. var getBuiltIn = getBuiltIn$3;
  1086. var inspectSource = inspectSource$2;
  1087. var noop = function () { /* empty */ };
  1088. var empty = [];
  1089. var construct = getBuiltIn('Reflect', 'construct');
  1090. var constructorRegExp = /^\s*(?:class|function)\b/;
  1091. var exec = uncurryThis(constructorRegExp.exec);
  1092. var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
  1093. var isConstructorModern = function isConstructor(argument) {
  1094. if (!isCallable(argument)) return false;
  1095. try {
  1096. construct(noop, empty, argument);
  1097. return true;
  1098. } catch (error) {
  1099. return false;
  1100. }
  1101. };
  1102. var isConstructorLegacy = function isConstructor(argument) {
  1103. if (!isCallable(argument)) return false;
  1104. switch (classof(argument)) {
  1105. case 'AsyncFunction':
  1106. case 'GeneratorFunction':
  1107. case 'AsyncGeneratorFunction': return false;
  1108. }
  1109. try {
  1110. // we can't check .prototype since constructors produced by .bind haven't it
  1111. // `Function#toString` throws on some built-it function in some legacy engines
  1112. // (for example, `DOMQuad` and similar in FF41-)
  1113. return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
  1114. } catch (error) {
  1115. return true;
  1116. }
  1117. };
  1118. isConstructorLegacy.sham = true;
  1119. // `IsConstructor` abstract operation
  1120. // https://tc39.es/ecma262/#sec-isconstructor
  1121. var isConstructor$1 = !construct || fails$2(function () {
  1122. var called;
  1123. return isConstructorModern(isConstructorModern.call)
  1124. || !isConstructorModern(Object)
  1125. || !isConstructorModern(function () { called = true; })
  1126. || called;
  1127. }) ? isConstructorLegacy : isConstructorModern;
  1128. var isArray$1 = isArray$2;
  1129. var isConstructor = isConstructor$1;
  1130. var isObject$1 = isObject$7;
  1131. var wellKnownSymbol$2 = wellKnownSymbol$6;
  1132. var SPECIES$1 = wellKnownSymbol$2('species');
  1133. var $Array = Array;
  1134. // a part of `ArraySpeciesCreate` abstract operation
  1135. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1136. var arraySpeciesConstructor$1 = function (originalArray) {
  1137. var C;
  1138. if (isArray$1(originalArray)) {
  1139. C = originalArray.constructor;
  1140. // cross-realm fallback
  1141. if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
  1142. else if (isObject$1(C)) {
  1143. C = C[SPECIES$1];
  1144. if (C === null) C = undefined;
  1145. }
  1146. } return C === undefined ? $Array : C;
  1147. };
  1148. var arraySpeciesConstructor = arraySpeciesConstructor$1;
  1149. // `ArraySpeciesCreate` abstract operation
  1150. // https://tc39.es/ecma262/#sec-arrayspeciescreate
  1151. var arraySpeciesCreate$1 = function (originalArray, length) {
  1152. return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
  1153. };
  1154. var fails$1 = fails$c;
  1155. var wellKnownSymbol$1 = wellKnownSymbol$6;
  1156. var V8_VERSION$1 = engineV8Version;
  1157. var SPECIES = wellKnownSymbol$1('species');
  1158. var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
  1159. // We can't use this feature detection in V8 since it causes
  1160. // deoptimization and serious performance degradation
  1161. // https://github.com/zloirock/core-js/issues/677
  1162. return V8_VERSION$1 >= 51 || !fails$1(function () {
  1163. var array = [];
  1164. var constructor = array.constructor = {};
  1165. constructor[SPECIES] = function () {
  1166. return { foo: 1 };
  1167. };
  1168. return array[METHOD_NAME](Boolean).foo !== 1;
  1169. });
  1170. };
  1171. var $ = _export;
  1172. var fails = fails$c;
  1173. var isArray = isArray$2;
  1174. var isObject = isObject$7;
  1175. var toObject = toObject$3;
  1176. var lengthOfArrayLike = lengthOfArrayLike$2;
  1177. var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
  1178. var createProperty = createProperty$1;
  1179. var arraySpeciesCreate = arraySpeciesCreate$1;
  1180. var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
  1181. var wellKnownSymbol = wellKnownSymbol$6;
  1182. var V8_VERSION = engineV8Version;
  1183. var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
  1184. // We can't use this feature detection in V8 since it causes
  1185. // deoptimization and serious performance degradation
  1186. // https://github.com/zloirock/core-js/issues/679
  1187. var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
  1188. var array = [];
  1189. array[IS_CONCAT_SPREADABLE] = false;
  1190. return array.concat()[0] !== array;
  1191. });
  1192. var isConcatSpreadable = function (O) {
  1193. if (!isObject(O)) return false;
  1194. var spreadable = O[IS_CONCAT_SPREADABLE];
  1195. return spreadable !== undefined ? !!spreadable : isArray(O);
  1196. };
  1197. var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');
  1198. // `Array.prototype.concat` method
  1199. // https://tc39.es/ecma262/#sec-array.prototype.concat
  1200. // with adding support of @@isConcatSpreadable and @@species
  1201. $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
  1202. // eslint-disable-next-line no-unused-vars -- required for `.length`
  1203. concat: function concat(arg) {
  1204. var O = toObject(this);
  1205. var A = arraySpeciesCreate(O, 0);
  1206. var n = 0;
  1207. var i, k, length, len, E;
  1208. for (i = -1, length = arguments.length; i < length; i++) {
  1209. E = i === -1 ? O : arguments[i];
  1210. if (isConcatSpreadable(E)) {
  1211. len = lengthOfArrayLike(E);
  1212. doesNotExceedSafeInteger(n + len);
  1213. for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
  1214. } else {
  1215. doesNotExceedSafeInteger(n + 1);
  1216. createProperty(A, n++, E);
  1217. }
  1218. }
  1219. A.length = n;
  1220. return A;
  1221. }
  1222. });
  1223. /**
  1224. * @author: Dennis Hernández
  1225. * @version: v2.0.0
  1226. */
  1227. var isInit = function isInit(that) {
  1228. return that.$el.data('resizableColumns') !== undefined;
  1229. };
  1230. var initResizable = function initResizable(that) {
  1231. if (that.options.resizable && !that.options.cardView && !isInit(that) && that.$el.is(':visible')) {
  1232. that.$el.resizableColumns({
  1233. store: window.store
  1234. });
  1235. }
  1236. };
  1237. var destroy = function destroy(that) {
  1238. if (isInit(that)) {
  1239. that.$el.data('resizableColumns').destroy();
  1240. }
  1241. };
  1242. var reInitResizable = function reInitResizable(that) {
  1243. destroy(that);
  1244. initResizable(that);
  1245. };
  1246. Object.assign($$2.fn.bootstrapTable.defaults, {
  1247. resizable: false
  1248. });
  1249. $$2.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
  1250. _inherits(_class, _$$BootstrapTable);
  1251. var _super = _createSuper(_class);
  1252. function _class() {
  1253. _classCallCheck(this, _class);
  1254. return _super.apply(this, arguments);
  1255. }
  1256. _createClass(_class, [{
  1257. key: "initBody",
  1258. value: function initBody() {
  1259. var _get2,
  1260. _this = this;
  1261. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  1262. args[_key] = arguments[_key];
  1263. }
  1264. (_get2 = _get(_getPrototypeOf(_class.prototype), "initBody", this)).call.apply(_get2, [this].concat(args));
  1265. this.$el.off('column-switch.bs.table page-change.bs.table').on('column-switch.bs.table page-change.bs.table', function () {
  1266. reInitResizable(_this);
  1267. });
  1268. reInitResizable(this);
  1269. }
  1270. }, {
  1271. key: "toggleView",
  1272. value: function toggleView() {
  1273. var _get3;
  1274. for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
  1275. args[_key2] = arguments[_key2];
  1276. }
  1277. (_get3 = _get(_getPrototypeOf(_class.prototype), "toggleView", this)).call.apply(_get3, [this].concat(args));
  1278. if (this.options.resizable && this.options.cardView) {
  1279. // Destroy the plugin
  1280. destroy(this);
  1281. }
  1282. }
  1283. }, {
  1284. key: "resetView",
  1285. value: function resetView() {
  1286. var _get4,
  1287. _this2 = this;
  1288. for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
  1289. args[_key3] = arguments[_key3];
  1290. }
  1291. (_get4 = _get(_getPrototypeOf(_class.prototype), "resetView", this)).call.apply(_get4, [this].concat(args));
  1292. if (this.options.resizable) {
  1293. // because in fitHeader function, we use setTimeout(func, 100);
  1294. setTimeout(function () {
  1295. initResizable(_this2);
  1296. }, 100);
  1297. }
  1298. }
  1299. }]);
  1300. return _class;
  1301. }($$2.BootstrapTable);
  1302. }));